3363d6fbbe060db3e57fb5942fecc97a05acd335
[gnulib.git] / ChangeLog
1 2013-08-09  Pádraig Brady <P@draigBrady.com>
2
3         bootstrap: support checksum utils having -c but not --status
4         * build-aux/bootstrap: Only look for sha1sum if updating po files.
5         Add sha1 to the list of supported checksum utils since it's now
6         supported through adjustments below.
7         (update_po_files): Remove the use of --status
8         in a way that will suppress all error messages, but since this is
9         only used to minimize updates, it shouldn't cause an issue.
10         Exit early if there is a problem updating the po file checksums.
11         (find_tool): Remove the check for --version support as this
12         is optional as per commit 86186b17.  Don't even check for the
13         presence of the command as if that is needed, it's supported
14         through configuring prerequisites in bootstrap.conf.
15         Prompt that when a tool isn't found, one can define an environment
16         variable to add to the hardcoded search list.
17
18 2013-08-05  Jim Meyering  <meyering@fb.com>
19
20         regex: port to non-glibc/lock-using systems
21         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
22         system with GNULIB_LOCK would fail due to absence of the
23         included "glthread/lock.h".  This would affect any package
24         for which the "lock" module is used only by the regex module,
25         and not explicitly used.
26         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
27         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
28         Add a dependency on the "lock" module.
29
30 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31
32         localecharset: make locale_charset thread-safe on Mac OS X
33         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34         instead of MB_CUR_MAX.
35
36 2013-07-20  Daiki Ueno  <ueno@gnu.org>
37
38         gettext: update to version 0.18.3
39         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
40         require AC_PROG_SED to allow user to specify custom sed command when
41         generating en@quot PO file.
42
43 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
44
45         bootstrap: use correct source when copying build-aux files
46         * build-aux/bootstrap (gnulib_extra_files): This variable is
47         relative to upstream gnulib layout, not downstream.
48
49 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
50
51         tmpdir: fix bug in VMS port
52         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
53         See Steven M. Schweda in
54         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
55
56 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57
58         tmpdir: port to VMS, to // != /, and to long dirs
59         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
60         __secure_getenv, so that we're more like the glibc version.
61         All uses changed.
62         (path_search): Don't put slash after directory if __VMS.
63         Problem reported by Steven M. Schweda in
64         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
65         Simplify code to add slash; no need for a loop.
66         Do not remove trailing slash from "//".
67         Do not assume dlen <= INT_MAX.
68
69 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70
71         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
72         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
73         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
74         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
75
76         accept4, dup3, pipe2: port to Cygwin
77         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
78         * lib/accept4.c (accept4) [O_BINARY]:
79         * lib/dup3.c (dup3) [O_BINARY]:
80         * lib/pipe2.c (pipe2) [O_BINARY]:
81         Use set_binary_mode, not setmode.
82         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
83         * modules/binary-io (Depends-on): Remove module indicator.
84         These last two bits undo the previous change to pipe2 and binary-io.
85
86 2013-07-09  Pádraig Brady  <P@draigBrady.com>
87
88         mountlist: add support for deallocating returned list entries
89         * lib/mountlist.c (free_mount_entry): A new exported function
90         to deallocate a mount list entry.
91         (read_file_system_list): Refactor to use the new deallocation function.
92         Suggested by Anton Ovchinnikov.
93
94 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
95
96         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
97         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
98         * lib/stdalign.in.h (_Alignas, _Alignof):
99         Port to FreeBSD 9.1, and to C11 and C++11.
100         (_Alignas): Also support ICC.
101         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
102         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
103
104 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105
106         fnmatch: don't goto over declaration
107         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
108         undefined behavior for goto over a declaration.
109         Problem reported by Charlie Brown in
110         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
111
112         pipe2: decouple from binary-io a bit
113         This is for Emacs, which needs pipe2 but not binary-io.
114         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
115         * modules/binary-io (Depends-on): Add module indicator.
116
117 2013-07-03  Eric Blake  <eblake@redhat.com>
118
119         mgetgroups: relax license to LGPLv2+
120         * modules/getugroups (License): Change from GPLv3+.
121         * modules/mgetgroups (License): Likewise.
122         * modules/getgroups (License): Change from LGPLv3+.
123
124         xalloc-oversized: relax license to LGPLv2+
125         * modules/xalloc-oversized (License): Change from GPLv3+.
126
127         nproc: relax license to LGPLv2+
128         * modules/nproc (License): Change from LGPLv3+.
129
130         bootstrap: honor --no-git
131         * build-aux/bootstrap: Don't even try to use git when user is
132         pointing to a static checkout.
133
134 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
135
136         ignore-value: port to gcc -pedantic
137         * lib/ignore-value.h (ignore_value):
138         Port to gcc -pedantic, by using __extension__.
139         Reindent as per usual gnulib style nowadays.
140         Simplify GCC version check.
141
142 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
143
144         extern-inline: port to gcc -std=c89
145         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
146         Do not use __gnu_inline__ if pedantic and pre-C99.
147
148 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
149
150         doc: document extern-inline
151         * doc/extern-inline.texi: New file.
152         * doc/gnulib.texi (alloca-opt): Include it.
153         * m4/extern-inline.m4: Move some comments to documentation,
154         and others closer to what they describe.
155
156         doc: chatter less
157         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
158         (updated-stamp): Use it.  This causes 'make' to output just
159         one file name rather than zillions.
160
161         fflush, fseeko: port to musl cross-compiles
162         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
163         on some implementation that (1) is not known to be buggy,
164         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
165         cross-compiled to so we can't easily check for lack of
166         conformance.  This is for cross-compiling to musl.
167         Reported by Rich Felker in
168         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
169         * m4/fclose.m4 (gl_FUNC_FCLOSE):
170         * m4/fflush.m4 (gl_FUNC_FFLUSH):
171         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
172         Adjust to above change.
173         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
174         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
175         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
176         known not to work, or unknown.
177
178 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
179
180         msvc-inval: port to mingw-w64
181         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
182         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
183         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
184
185 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
186
187         getcwd-lgpl: port to Tru64
188         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
189         Problem reported by Steven M. Schweda in
190         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
191
192         tests: port large-fd POSIX spawn tests to OS X
193         Problem reported by Daiki Ueno in
194         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
195         * tests/test-posix_spawn_file_actions_addclose.c:
196         * tests/test-posix_spawn_file_actions_adddup2.c:
197         * tests/test-posix_spawn_file_actions_addopen.c:
198         Include <limits.h>, for OPEN_MAX, if available.
199         (big_fd): New static function.
200         (main): Use it.
201
202 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
203
204         tests/nap.h: use an adaptive delay to avoid ctime update issues
205         The recent change in nap.h (5191133e) decreased the probability of lost
206         races to about a third, however such problems could still be observed
207         in virtual machines and openSUSE's OBS.
208         Before, nap() detected the needed time once empirically and then used
209         that delay (together with a small correction multiplier) in further
210         calls.  This problem has been reported and discussed several times,
211         including guesses about possible kernel issues:
212         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
213         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
214         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
215         http://bugs.gnu.org/12820
216         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
217         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
218         Now, nap() avoids the race alltogether by verifying on a reference
219         file whether a timestamp difference has happened.
220         * tests/nap.h (nap_fd): Define file descriptor variable for the
221         witness file.
222         (nap_works): Change return value to bool.  Change passing
223         the old file's status by value instead of by reference as this function
224         does no longer update that timestamp; rename the function argument from
225         st to old_st.  Remove the local variables cdiff and mdiff because that
226         function now returns true/false instead of the precise delay.
227         (guess_delay): Remove function.
228         (clear_tmp_file): Add new function to close and unlink the witness file.
229         (nap): Instead of re-using the delay which has been calculated during
230         the first call, avoid the race by actually verifying that a timestamp
231         difference can be observed on the current file system.  Use an adaptive
232         approach for the delay to minimize execution time.  Assert that the
233         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
234         = 2^31 - 1 = 2.1s.
235         Use atexit to call clear_tmp_file when the process terminates.
236
237 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
238
239         sig2str: port to C++
240         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
241         Reported by Daniel J Sebald in
242         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
243
244 2013-05-30  Eric Blake  <eblake@redhat.com>
245
246         docs: mention cygwin shortcoming in <sys/un.h>
247         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
248
249         vasnprintf: silence mingw compiler warning
250         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
251
252 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
253
254         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
255         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
256         This fixes a porting bug I recently reintroduced in regex, and
257         some other instances that I discovered while testing the fix.
258         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
259         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
260         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
261         with an empty argument if this is a pedantic pre-C99 GCC.
262         * lib/verify.h: Do not use _Static_assert if this is a pedantic
263         pre-C11 GCC.
264
265         regex: adapt to locking regime instead of depending on pthread
266         Instead of depending on pthread, adapt to whatever thread
267         modules are in use.  Problem reported by Ludovic Courtès in
268         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
269         and by Mats Erik Andersson in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
271         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
272         Support either the 'lock' module, or the 'pthread' module, or
273         no module.
274         (lock_lock, lock_unlock): New macros.
275         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
276         * modules/lock, modules/pthread (configure.ac): Add module indicator.
277         * modules/regex (Depends-on): Remove pthread.
278
279 2013-05-22  Eric Blake  <eblake@redhat.com>
280
281         getgroups: document portability issues
282         * doc/glibc-functions/initgroups.texi (initgroups): Mention
283         multithread safety.
284         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
285         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
286         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
287         getugroups.
288         * doc/posix-functions/getgroups.texi (getgroups): Mention
289         multithread safety and mgetgroups.
290
291 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
292
293         test-lchown, test-chown: also skip test if chown fails with EPERM
294         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
295         skip this test, to handle FAT file systems.
296         * tests/test-chown.h (test_chown): Likewise.
297
298 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
299
300         regex: fix dfa race in multithreaded uses
301         Problem reported by Ludovic Courtès in
302         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
303         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
304         New macros.  All uses of __libc_lock_define, __libc_lock_init
305         changed to use the first two of these.
306         (__libc_lock_lock, __libc_lock_unlock): New macros, for
307         non-glibc platforms.
308         (struct re_dfa_t): Define the lock unconditionally.
309         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
310         '#ifdef _LIBC"s.
311         * modules/regex (Depends-on): Add pthread, if we use the
312         included regex.
313
314         * lib/regcomp.c: Do actions that are not needed for glibc,
315         but may be needed elsewhere.
316         (regfree, re_compile_internal): Destroy the lock.
317         (re_compile_internal): Check for lock-initialization failure.
318
319         malloca: port to compilers that reject size-zero arrays
320         This fixes a bug introduced in my previous patch.
321         * lib/malloca.c (struct preliminary_header): Use an int
322         rather than a character array of size int; that's simpler.
323         (struct header): Remove, replacing with ...
324         (union header): New type.  This avoids the need for declaring a
325         character array of size zero, which is not allowed on some platforms.
326         All uses changed.
327
328 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
329
330         parse-datetime, tests: don't use "string" + int
331         Recent versions of 'clang' complain about C source code that
332         uses expressions of the form '"string literal" + integer',
333         I guess on the theory that it's confusing for readers who are
334         used to C++.  On those grounds I suppose it's OK to make this
335         minor style change.
336         * lib/parse-datetime.y (parse_datetime):
337         * tests/test-fchdir.c (main):
338         * tests/test-snprintf-posix.h (test_function):
339         * tests/test-snprintf.c (main):
340         * tests/test-vasnprintf-posix.c (test_function):
341         * tests/test-vasnprintf.c (test_function):
342         * tests/test-vsnprintf.c (main):
343         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
344         Rewrite '"str" + E' to '&"str"[E]'.
345
346 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
347
348         argmatch: port to C++
349         * lib/argmatch.h [__cplusplus]: Add extern "C".
350
351         argp: typo fix
352         * lib/argp-help.c: Typo in comment.
353
354 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
355
356         manywarnings: update for GCC 4.8.0
357         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
358         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
359         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
360         -Wmissing-noreturn, as they are duplicates of other warnings.
361         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
362         was documented to be flaky in earlier versions of GCC.
363
364         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
365         * tests/test-spawn.c (main):
366         * tests/test-sys_socket.c (main):
367         * tests/test-sys_wait.c (main):
368         Don't have a switch value that isn't covered by a case.
369
370         getaddrinfo-tests: port --enable-gcc-warnings to clang
371         * tests/test-getaddrinfo.c (simple):
372         Avoid casts from looser to stricter-aligned pointers.
373
374         thread: port --enable-gcc-warnings to clang
375         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
376         Include <signal.h>, to pacify a warning about pthread_sigmask.
377
378         stdio: use __REDIRECT for fwrite, fwrite_unlocked
379         * lib/stdio.in.h (fwrite):
380         When working around bug 11959, use __REDIRECT rather than '#define
381         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
382         fix the -Wunused-value issue with clang, and it works with GCC too.
383         Problem with targeting reported by Eric Blake in
384         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
385         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
386         debugging the fwrite issue.
387
388         stdio: port --enable-gcc-warnings to clang
389         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
390         since the GCC workaround for fwrite does not pacify clang.
391
392         sig2str: port --enable-gcc-warnings to clang
393         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
394
395         obstack: port --enable-gcc-warnings to clang
396         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
397         Avoid casts from looser to stricter-aligned pointers.
398
399         memchr2: port --enable-gcc-warnings to clang
400         * lib/memchr2.c (memchr2):
401         Avoid casts from looser to stricter-aligned pointers.
402
403         mbsstr: port --enable-gcc-warnings to clang
404         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
405         Avoid casts from looser to stricter-aligned pointers.
406
407         malloca: port --enable-gcc-warnings to clang
408         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
409         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
410
411         inttostr: port --enable-gcc-warnings to clang
412         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
413
414         warnings: port to clang
415         Problem reported by Daniel P. Berrange via Eric Blake in
416         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
417         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
418         (gl_WARN_ADD): Use it.
419
420 2013-05-11  Jim Meyering  <meyering@fb.com>
421
422         quotearg: do not read beyond end of buffer
423         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
424         end of an ARG for which no length was specified.  With an N-byte
425         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
426         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
427         via coreutils' misc/sort-debug-keys.sh test and detected by running
428         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
429         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
430         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
431         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
432         characters correctly."
433
434 2013-05-11  Daiki Ueno  <ueno@gnu.org>
435
436         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
437         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
438         compilation target is Mac OS X 10.6.
439         Problem reported by parafin and Andoni Morales in
440         <http://savannah.gnu.org/bugs/?37844> and
441         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
442
443 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
444
445         mkdir-p: remove assumptions about umask and mode
446         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
447         umask is 0, or that MODE is a subset of MODE_BITS.
448
449 2013-05-10  Eric Blake  <eblake@redhat.com>
450
451         maint.mk: catch more abuse of HAVE_DECL in syntax-check
452         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
453
454 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
455
456         deps: require Automake >= 1.9.6 in generated Makefile fragments
457
458         That is the same minimal version required in the DEPENDENCIES file.
459         Moreover, the old code generated a requirement of Automake >= 1.5,
460         and that is an insanely outdated version.
461
462         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
463         * tests/havelib/rpathlx/Makefile.am: Likewise.
464         * tests/havelib/rpathly/Makefile.am: Likewise.
465         * tests/havelib/rpathlyx/Makefile.am: Likewise.
466         * tests/havelib/rpathlz/Makefile.am: Likewise.
467         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
468         * tests/havelib/rpathx/Makefile.am: Likewise.
469         * tests/havelib/rpathy/Makefile.am: Likewise.
470         * tests/havelib/rpathz/Makefile.am: Likewise.
471
472 2013-05-08  Eric Blake  <eblake@redhat.com>
473
474         bootstrap: AC_INIT may have more than four parameters
475         * build-aux/bootstrap (extract_package_name): Correctly extract
476         non-empty tarname field.  Avoid range in regex.
477         Based on a report by Sami Kerola <kerolasa@iki.fi>.
478
479 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
480
481         qacl: port to MS-Windows port of GNU Emacs
482         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
483         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
484         port of GNU Emacs.  Problem reported by Eli Zaretskii in
485         <http://bugs.gnu.org/14295#14>.
486
487 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
488
489         acl: include quote.h
490         * lib/copy-acl.c: Include quote.h.
491         * lib/set-acl.c: Likewise.
492
493 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
494
495         fchownat, renameat, unlinkat: update statat dependencies
496         These modules use statat and lstatat, not fstatat; so depend on
497         the statat module, which was split out recently from fstatat.
498         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
499         * modules/renameat: Likewise.  Also delete fstat.
500         URL: http://bugs.gentoo.org/468790
501
502 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
503
504         Assume gnulib is checked out from Git, not CVS
505
506         In fact, access to the gnulib repository through CVS has been
507         disabled, or more precisely, got broken and was never restored; see:
508         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
509
510         Note that support for CVS is not removed completely and unthinkingly
511         by this change: only support for CVS checkouts of gnulib itself is
512         removed.  For example, the 'bootstrap' script still cater to .cvsingore
513         files and CVS directories, for the benefit of those poor gnulib clients
514         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
515
516         * gnulib-tool: Simplify accordingly.
517         * posix-modules: Likewise.
518         * MODULES.html.sh: Likewise.
519         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
520         repository.
521         * doc/gnulib-intro.texi: Likewise.
522         * doc/gnulib-readme.texi: Likewise.
523         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
524         sample '.gitignore' file rather than a sample '.cvsignore'.
525         * NEWS: Update.
526         * m4/extensions.m4: While at it, remove a comment mistakenly referring
527         to "CVS Autoconf" rather than "git Autoconf".
528
529 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
530
531         utimensat-tests, etc.: try to fix some races
532         Problem reported by Bernhard Voelker in
533         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
534         I don't know whether this patch fixes that race condition, but it
535         fixes *some* race conditions, so it should be a win.
536         * modules/chown-tests (Depends-on):
537         * modules/fchownat-tests (Depends-on):
538         * modules/fdutimensat-tests (Depends-on):
539         * modules/futimens-tests (Depends-on):
540         * modules/lchown-tests (Depends-on):
541         * modules/stat-time-tests (Depends-on):
542         * modules/utimens-tests (Depends-on):
543         * modules/utimensat-tests (Depends-on):
544         Depend on nanosleep, not usleep.
545         * modules/chown-tests (test_chown_LDADD):
546         * modules/lchown-tests (test_lchown_LDADD):
547         * modules/stat-time-tests (test_stat_time_LDADD):
548         New macro.
549         * modules/fchownat-tests (test_fchownat_LDADD):
550         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
551         * modules/futimens-tests (test_futimens_LDADD):
552         * modules/utimens-tests (test_utimens_LDADD):
553         * modules/utimensat-tests (test_utimensat_LDADD):
554         Add $(LIB_NANOSLEEP).
555         * modules/stat-time-tests (Files): Add tests/nap.h.
556         * tests/nap.h: Include <limits.h>, for INT_MAX.
557         (lt_mtime): Remove.
558         (diff_timespec): New function.
559         (get_stat): Rename from get_mtime.  All callers changed.
560         (nap_works): Determine the needed delay by inspecting the
561         file system's timestamp jumps; this should be more reliable.
562         Look at both mtime and ctime, and take the maximum of the two jumps.
563         (nap_works, guess_delay):
564         Return a nanosecond cound, not a microsecond count.
565         All callers changed.
566         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
567         failure.
568         (nap): Multiply the guess by 1.125, to accommodate the case where
569         the file system's clock is a bit slower than nanosleep's clock.
570         * tests/test-stat-time.c (BASE): New macro.
571         Include nap.h.
572         (nap): Remove; nap.h now defines this.  This removes a duplicate
573         implementation of 'nap'.
574
575         utimens, utimensat: work around Solaris UTIME_OMIT bug
576         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
577         Linux kernel 2.6.32 does.  Work around it in the same way.
578         * doc/posix-functions/futimens.texi (futimens):
579         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
580         * lib/utimens.c (fdutimens, lutimens):
581         * lib/utimensat.c (rpl_utimensat): Work around the bug.
582
583         gettext: now it's your responsibility to add -I$(top_builddir)/intl
584         Formerly, it was your responsibility to do this for all Makefile.ams
585         other than Gnulib's.  Now it's your responsibility to do it for
586         Gnulib's Makefile.am, too.
587         * NEWS: Document this.
588         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
589
590         acl: include errno.h to get errno
591         Reported by Daiki Ueno in
592         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
593         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
594
595 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
596
597         tests: don't assume getdtablesize () <= 10000000
598         * modules/cloexec-tests:
599         * modules/dup2-tests:
600         * modules/dup3-tests:
601         * modules/nonblocking-tests:
602         * modules/posix_spawn_file_actions_addclose-tests:
603         * modules/posix_spawn_file_actions_adddup2-tests:
604         * modules/posix_spawn_file_actions_addopen-tests:
605         * modules/unistd-safer-tests:
606         Depend on the getdtablesize module.
607         * tests/test-cloexec.c:
608         * tests/test-dup-safer.c:
609         * tests/test-dup2.c:
610         * tests/test-dup3.c:
611         * tests/test-fcntl.c:
612         * tests/test-nonblocking.c:
613         * tests/test-posix_spawn_file_actions_addclose.c:
614         * tests/test-posix_spawn_file_actions_adddup2.c:
615         * tests/test-posix_spawn_file_actions_addopen.c:
616         Don't assume getdtablesize () <= 10000000.
617
618 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
619
620         extern-inline: work around bug in Sun c99
621         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
622         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
623
624 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
625
626         qacl: new module, broken out from the acl module
627         This is for GNU Emacs, which wants the acl functions but does
628         not want 'error' invoked when they fail.
629         * lib/acl-internal.h: Do not include error.h, quote.h.
630         (ENOSYS, ENOTSUP): Remove; no longer needed.
631         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
632         * lib/acl.h: Include <stdbool.h>.
633         (acl_errno_valid): New function.
634         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
635         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
636         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
637         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
638         (ACL_INTERNAL_INLINE): Remove; no longer needed.
639         * lib/file-has-acl.c (file_has_acl):
640         * lib/qcopy-acl.c (qcopy_acl):
641         * lib/qset-acl.c (qset_acl):
642         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
643         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
644         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
645         lib/file-has-acl.c, m4/acl.m4 to qacl module.
646         Add lib/set-acl.c.
647         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
648         Add qacl.
649         (configure.ac): Move gl_FUNC_ACL to qacl module.
650         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
651         Rename set-mode-acl.c to set-acl.c.
652         * lib/acl-errno-valid.c: New file.
653         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
654         copy_acl function remains in copy-acl.c.
655         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
656         (_): Remove; not needed.
657         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
658         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
659         * modules/qacl: New file, moved from the old modules/acl.
660         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
661         Remove set-mode-acl.c, copy-acl.c.
662         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
663
664         alignof, intprops, malloca: port better to IBM's C compiler
665         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
666         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
667         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
668
669 2013-04-25  Daiki Ueno  <ueno@gnu.org>
670
671         wctype-h: fix gettext link error on mingw
672         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
673         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
674         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
675         rpl_towupper and rpl_towupper.
676
677 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
678
679         regex-tests, regex: allow glibc re_search behavior
680         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
681         re_search input data to make the multi-character collating element
682         in it clearly visible, and treat re_search return code 0 as valid.
683         * m4/regex.m4 (gl_REGEX): Likewise.
684
685 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
686
687         stdalign: doc fix
688         * doc/posix-headers/stdalign.texi (stdalign.h):
689         Gnulib doesn't support '_Alignof expr'.
690
691 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
692
693         stdalign: port to stricter ISO C11
694         ISO C11 says that _Alignof's operand must be a parenthesized type.
695         Problem reported by Eli Zaretskii in
696         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
697         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
698         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
699
700 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
701
702         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
703         Problem reported by Marco Atzeri in
704         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
705         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
706         Simply delegate to the system <sys/select.h> in this case too.
707         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
708         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
709         be needed on Solaris either.
710         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
711         Simply delegate to the system <sys/time.h> in this case.
712
713 2013-03-19  Karl Berry  <karl@gnu.org>
714
715         * build-aux/gnupload: check for erroneous (with gnupload) use of
716         ftp-upload.gnu.org, tweak help.
717
718 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
719
720         copy-file, rpmatch: fix problems found by cppcheck
721         Reported by Arno Onken in
722         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
723         * lib/rpmatch.c (try): Fix memory leak.
724         * lib/copy-file.c: Include "ignore-value.h".
725         (qcopy_file_preserving): Ignore chown value.
726         * modules/copy-file (Depends-on): Add ignore-value.
727
728 2013-01-27  Jim Meyering  <jim@meyering.net>
729
730         prefix-gnulib-mk: give better diagnostics
731         * build-aux/prefix-gnulib-mk: Don't just "die".
732         Give better diagnostics upon failure.
733
734 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
735
736         putenv: port to Solaris 10
737         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
738         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
739         is not what is wanted here.
740         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
741         declaration, not for its existence.
742
743 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
744
745         mktime: fix configure typo
746         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
747
748 2013-03-12  Eric Blake  <eblake@redhat.com>
749
750         regex-tests: skip UTF-8 test on mingw
751         * modules/regex-tests (Depends-on): Add localcharset.
752         * tests/test-regex.c (main): Use it to skip test on mingw.
753
754 2013-03-11  Eric Blake  <eblake@redhat.com>
755
756         tests: make it easier to bypass alarm time in debugger
757         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
758         * tests/test-memmem.c (main): Likewise.
759         * tests/test-passfd.c (main): Likewise.
760         * tests/test-ptsname.c (main): Likewise.
761         * tests/test-ptsname_r.c (main): Likewise.
762         * tests/test-strcasestr.c (main): Likewise.
763         * tests/test-strstr.c (main): Likewise.
764
765         regex: port to mingw's recent addition of undeclared alarm
766         * doc/posix-functions/alarm.texi (alarm): Document that alarm
767         exists but still doesn't work in newer mingw.
768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
769         not existence.  Ensure SIGALRM is not trapped.
770         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
771         * m4/regex.m4 (gl_REGEX): Likewise.
772         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
773         * tests/test-regex.c (main): Use correct probe for alarm.
774
775         putenv: avoid compilation warning on mingw
776         * lib/putenv.c (_unsetenv): Protect variable declaration.
777         (putenv): Fix indentation.
778
779 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
780
781         unistd: don't prevent Tru64 Unix from using gnulib strtod.
782         * lib/unistd.in.h: be careful not to include un-needed system
783         stdlib.h from here, because that prevents gnulib stdlib.h from
784         defining rpl_strtod correctly.
785
786 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
787
788         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
789         changesets, but for the 'precision 0' test.
790         * tests/test-vasprintf-posix.c (test_function): Don't insist on
791         round-to-even, since POSIX says rounding is implementation-defined
792         and OS X 10.8.2 rounds 1.51 to 1 here.
793
794         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
795         changeset.
796         * tests/test-vasprintf-posix.c (test_function): Don't insist on
797         round-to-even, since POSIX says rounding is implementation-defined
798         and OS X 10.8.2 rounds 1.5 to 1 here.
799
800 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
801
802         vasnprintf-posix-tests: allow rounding 1.5 to 1
803         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
804         round-to-even, since POSIX says rounding is implementation-defined
805         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
806         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
807
808         bootstrap: port to FreeBSD
809         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
810         that treat '--' differently.  Reported by Mats Erik Andersson in
811         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
812
813 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
814
815         regex: rename remaining __attribute calls to __attribute__.
816         2012-02-25 changed definition of __attribute, but left some uses
817         unchanged, preventing compilation of regex module on most non-gcc
818         environments.
819         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
820         (lookup_collation_sequence_value, build_range_exp)
821         (build_collating_symbol): Set attributes with newly renamed
822         __attribute__ decorator.
823         * lib/regex_internal.c (re_string_peek_byte_case)
824         (re_node_set_compare, re_node_set_contains): Likewise.
825         * lib/regexec.c (acquire_init_state_context): Likewise.
826
827 2013-03-06  Bruno Haible  <bruno@clisp.org>
828
829         execute: Revert last change, but use a different condition.
830         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
831         on Windows.
832
833 2013-03-05  Eric Blake  <eblake@redhat.com>
834
835         execute: drop dead code
836         * lib/execute.c (nonintr_close, nonintr_open): Delete.
837
838 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
839
840         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
841         * m4/non-recursive-gnulib-prefix-hack.m4
842         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
843         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
844         <http://bugs.gnu.org/10305#237>.
845
846 2013-03-04  Eric Blake  <eblake@redhat.com>
847
848         test-getsockopt: avoid compiler warning
849         * tests/test-getsockopt.c (includes): Ensure close is declared.
850
851 2013-03-02  Bruno Haible  <bruno@clisp.org>
852
853         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
854         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
855
856 2013-03-02  Bruno Haible  <bruno@clisp.org>
857
858         gettext: Update to version 0.18.2.
859         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
860         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
861                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
862
863 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
864
865         regex: merge patches from libc
866
867         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
868         * lib/regex_internal.h (__attribute__): Rename from __attribute.
869         All uses changed.
870         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
871         (re_string_wchar_at, re_string_elem_size_at):
872         Mark function as possibly unused.
873
874         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
875         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
876         elements compare against the byte sequence of it, not its name.
877
878 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
879
880         putenv: port better to native Windows
881         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
882         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
883         (_unsetenv): Use _putenv if available.
884         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
885         a bit less likely to cause damage.
886         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
887         Fix the wrong value with SetEnvironmentVariable.
888         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
889         code better.
890
891 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
892
893         regex: ignore old-style-definition warnings
894         * lib/regex.c: Add pragma to ignore these warnings.
895         Problem reported for GNU tar by Pavel Raiskup.
896
897 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
898
899         getcwd: support coreutils better
900         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
901         but this might not be correct in coreutils, which disables
902         the raw decl checks.  Problem reported by Nagendra in
903         <http://bugs.gnu.org/10305#192>.
904         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
906         Test the getcwd function, not any macro, since getcwd.c wants the
907         function.
908         * m4/getcwd.m4 (gl_FUNC_GETCWD):
909         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
910         compile, as might happen if there's a macro but no function.
911
912         strtod: support coreutils better
913         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
914         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
915         disables the raw decl checks.  This assumes there is an underlying
916         strtod, but that's a safe assumption these days.
917         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
918
919         mountlist: port to HP NonStop
920         Reported by Joachim Schmitz in
921         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
922         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
923         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
924
925 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
926
927         extern-inline: avoid compilation error with HP-UX cc
928         Reported by Richard Lloyd in
929         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
930         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
931         Suppress extern inline with HP-UX cc.  This should be safe,
932         though it may hurt performance.  Perhaps someone with some HP-UX
933         experience can come up with a higher-performance fix.
934
935 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
936
937         putenv: fix heap corruption with mixed putenv/_putenv
938         Problem reported by Michael Goffioul in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
940         * lib/putenv.c (putenv) [HAVE__PUTENV]:
941         Rely on _putenv to allocate the new environment.
942         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
943         * modules/putenv (configure.ac): Use it.
944
945 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
946
947         unsetenv etc.: port to Solaris 11 + GNU Emacs
948         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
949         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
950         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
951         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
952         idea but is too painful to fix right now), and without this gnulib
953         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
954         compiling unsetenv.c on Solaris 11.  Fix the problem for
955         unsetenv.c, and fix other similar occurrences.
956
957 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
958
959         secure_getenv: fix C++ declaration typo
960         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
961         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
962         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
963
964 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
965
966         careadlinkat: stop exporting careadlinkatcwd
967         Only Emacs used it directly, and Emacs no longer needs it.
968         * NEWS: Document this simplification.
969         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
970         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
971         for readlink.
972         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
973         Don't include stdlib.h; no longer needed.
974         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
975         * lib/relocwrapper.c: Adjust comment to match new dependencies.
976         * modules/areadlink (Depends-on): Add readlink.
977         (Maintainer): Add self.
978         * modules/careadlinkat (Depends-on): Remove readlink.
979
980         extensions: port better to HP-UX
981         This is merged from git Autoconf.
982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
983         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
984         so that it's compatible with the value used when compiling.
985
986         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
987         Problem reported by Mats Erik Andersson in
988         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
989         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
990         openpty function exists, not merely when we intend to replace it.
991         This corrects the 2013-01-31 patch, which mistakenly defined
992         HAVE_OPENPTY even on hosts that lacked it.
993
994 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
995
996         secure_getenv: fix include typo
997         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
998
999         secure_getenv: port better to FreeBSD and Solaris
1000         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1001         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1002         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1003         This works better on BSDish platforms.
1004         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1005         Test for issetugid if __secure_getenv is missing.
1006
1007 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1010         Some of these changes are merged in from git Autoconf.
1011         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1012         When deciding whether to define _XOPEN_SOURCE, inspect the
1013         preprocessor macro __hpux instead of the more-heavyweight
1014         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1015         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1016         as the key for __EXTENSIONS__.
1017
1018         unistd: avoid namespace pollution on non-glibc systems
1019         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1020         This avoids namespace pollution on non-glibc systems, by causing
1021         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1022         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1023         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1024
1025 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1026
1027         tmpdir: use secure_getenv
1028         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1029         Define to secure_getenv, not getenv.
1030         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1031         as that's now secure_getenv's job.
1032         * modules/tmpdir (Depends-on): Add secure_getenv.
1033
1034         tempname: use secure_getenv
1035         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1036         Define to secure_getenv, not getenv.
1037         * modules/tempname (Depends-on):
1038         Add secure_getenv.
1039
1040         secure_getenv: new module
1041         * MODULES.html.sh (Extra functions based on ANSI C 89):
1042         Add secure_getenv.
1043         * doc/glibc-functions/secure_getenv.texi: New file.
1044         * doc/gnulib.texi: Include it.
1045         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1046         New files.
1047         * lib/stdlib.in.h (secure_getenv): New decl.
1048         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1049         * modules/stdlib (stdlib.h):
1050         Add secure_getenv checks.
1051
1052 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1053
1054         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1055         Reported for OS X 10.8.2 by Assaf Gordon in
1056         <http://bugs.gnu.org/13516>.
1057         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1058         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1059         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1060         so that they can be kept in sync more easily.  Avoid PATH_MAX
1061         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1062         mkdir or chdir failure.
1063         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1064         lib/getcwd.c.
1065         (test_abort_bug): Do not test for the deep directory bug unless we
1066         have openat support.  Avoid PATH_MAX test on the Hurd.
1067
1068         regex-tests, regex: fix bug: memset undeclared
1069         * tests/test-regex.c: Don't include regex.h twice.  Include
1070         string.h, to declare memset.  Christensen's report also mentioned
1071         this issue.
1072         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1073         test-regex.c, to avoid future problems like this.  Remove
1074         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1075         twice.
1076
1077         regex-tests: fix link errors on older Solaris
1078         These need to link with @LIBINTL@ to get libintl_gettext.
1079         Problem reported by Tom G. Christensen in
1080         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1081         * modules/regex-tests (test_regex_LDADD): New macro.
1082
1083 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         regex-tests: new module
1086         * modules/regex-tests, tests/test-regex.c: New files.
1087
1088         regex: fix off-by-one error in configure test
1089         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1090
1091 2013-01-31  Eric Blake  <eblake@redhat.com>
1092
1093         regex: avoid infinite configure test
1094         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1095
1096 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1097
1098         openpty: fix bug where HAVE_OPENPTY wasn't defined
1099         See the thread starting at:
1100         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1101         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1102         openpty function exists, not merely when we intend to replace it.
1103
1104 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         sys_time: port to Solaris 2.6
1107         There is a circularity problem on Solaris 2.6, where <time.h> includes
1108         <sys/time.h> for struct timespec.  The include nesting is gnulib
1109         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1110         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1111         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1112         <sys/siginfo.h>; the last, innermost file needs struct
1113         timestruc_t, which is defined in <sys/time.h>, which has not been
1114         fully parsed.  Problem reported by Tom G. Christensen in
1115         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1116         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1117         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1118         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1119         uses split double-inclusion guards.
1120
1121 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1122
1123         regex: test for buffer overrun
1124         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1125         for the just-fixed regex bug.
1126
1127 2013-01-29  Andreas Schwab  <schwab@suse.de>
1128
1129         regex: fix buffer overrun in regexp matcher [BZ #15078]
1130         * lib/regexec.c (extend_buffers): Add parameter min_len.
1131         (check_matching): Pass minimum needed length.
1132         (clean_state_log_if_needed): Likewise.
1133         (get_subexp): Likewise.
1134
1135 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1136
1137         mountlist: don't consider "devtmpfs" as dummy
1138         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1139         as there is storage associcated with it.
1140
1141 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         futimens-tests, utimens-tests: Depend on gettext.
1144         This works around a problem introduced in my 2013-01-12 patch,
1145         which added @LIBINTL@ to these modules.
1146         * modules/futimens-tests (Depends-on):
1147         * modules/utimens-tests (Depends-on): Add gettext.
1148
1149 2013-01-26  Eric Blake  <eblake@redhat.com>
1150
1151         test-getpeername: fix typo
1152         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1153
1154 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1155
1156         bootstrap: remove the need for a sorted .gitignore file
1157         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1158         rename to insert_if_absent(), so that we don't need or generate
1159         a sorted .gitignore file.  We do require a .gitignore with no
1160         existing duplicate entries and enforce that.
1161         (sort_patterns): Remove this function as we now use the simpler
1162         technigue of inserting blacklist entries at the top of the file,
1163         assuming gnulib won't be inserting !whitelist entries.
1164
1165 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         readlinkat: don't depend on gl_FUNC_OPENAT
1168         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1169         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1170         renameat.m4, symlinkat.m4; but one thing at a time.
1171
1172         statat: new module, split out from fstatat
1173         GNU Emacs needs the POSIX-specified fstatat, but not the
1174         gnulib-specified statat and lstat.  Split the latter two into a
1175         new module 'statat'.
1176         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1177         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1178         Rename from FSTATAT_INLINE. All uses changed.
1179         * modules/fstatat (Files): Remove lib/statat.c.
1180         (gl_MODULE_INDICATOR([fstatat])): Remove.
1181         (lib_SOURCES): Remove.
1182         (Maintainer): Add self.
1183         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1184         * tests/test-fstatat.c (BASE): Don't define if already defined.
1185         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1186
1187 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         tests: don't assume fd 99 is closed
1190         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1191         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1192         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1193         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1194         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1195         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1196         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1197         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1198         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1199         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1200         * tests/test-fwrite.c, tests/test-getpeername.c:
1201         * tests/test-getsockname.c, tests/test-getsockopt.c:
1202         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1203         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1204         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1205         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1206         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1207         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1208         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1209         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1210         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1211         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1212         Close file descriptor 99, instead of assuming it's already closed.
1213
1214 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1215
1216         stpncpy: port to OS X 10.8
1217         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1218         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1219
1220 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         unistd: port to recent mingw
1223         * lib/unistd.in.h: Remove special invocation convention for mingw,
1224         which breaks for the latest mingw version.  See John W. Eaton in
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1226
1227         largefile: port better to Mac OS X 10.5
1228         This patch is backported from Autoconf git.
1229         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1230         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1231         with ino_t size being different for configuration time versus
1232         build/run time.  Problem reported by PHO in
1233         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1234
1235 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1236
1237         doc: clarify -Werror
1238         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1239         clarify that it's intended for developers, not for ordinary builds,
1240         and mention --enable-gcc-warnings as one possible use.
1241
1242 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1243
1244         stdint: fix build with Android's Bionic fox x86
1245         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1246         was already included as _SSIZE_T_DEFINED_ might also be defined
1247         in include/machine/_types.h, which is included by stdio.h
1248
1249 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1250
1251         net_if-tests: port to Solaris 7 + GCC 3.4.6
1252         Problem reported by Tom G. Christensen in
1253         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1254         * tests/test-net_if.c (ni): Move to next the code that uses it,
1255         so that it's declared only if needed.
1256
1257 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         net_if-tests: port to older Solaris
1260         Problem reported by Tom G. Christensen in
1261         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1262         * modules/net_if-tests (NET_IF_LIB): New substitution.
1263         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1264         (HAVE_IF_NAMEINDEX): New C macro.
1265         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1266
1267         system-quote-tests: port to older Solaris
1268         Problem reported by Tom G. Christensen in
1269         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1270         * tests/test-system-quote-child.c (fopen, fread): Undef.
1271
1272         c-xvasprintf etc.: fix link errors on older Solaris
1273         These need to link with @LIBINTL@ to get libintl_gettext.
1274         Problem reported by Tom G. Christensen in
1275         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1276         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1277         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1278         * modules/futimens-tests (test_futimens_LDADD):
1279         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1280
1281 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1282
1283         locale: port to Solaris 2.6 and 7 + GNU gettext
1284         * lib/locale.in.h: Just include_next <locale.h> when
1285         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1286         when combining the localename module with GNU gettext 0.18.2.
1287         Problem reported by Tom G. Christensen in
1288         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1289
1290 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1291
1292         stdlib: port to Solaris 2.6
1293         Also, the code worked on Solaris 7 through 9 only by accident.
1294         Problem reported by Tom G. Christensen in
1295         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1296         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1297         simply include the system stdlib.h.
1298         * lib/getopt.in.h (__need_system_stdlib_h):
1299         * lib/pthread.in.h (__need_system_stdlib_h):
1300         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1301         Define when including <stdlib.h>, to avoid problems at least for
1302         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1303         with the system stdlib.h.
1304
1305 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         doc: update main copyright year
1308         * doc/gnulib.texi: Update copyright date.
1309
1310         doc: improve ISO 8601 discussion
1311         * doc/parse-datetime.texi (Combined date and time of day items):
1312         Specify more carefully what formats are supported and what is
1313         done with excess precision.
1314
1315 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1316
1317         doc: avoid small caps
1318         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1319         they're more trouble than they're worth.  Suggested by Karl Berry
1320         in <http://bugs.gnu.org/13360>.
1321
1322         regex: conform to strict C
1323         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1324         From Aharon Robbins.
1325
1326         gnulib-tool: fix incompatibility with autopoint 0.18.2
1327         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1328         Problem reported by Tom G. Christensen in
1329         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1330
1331 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1332
1333         fprintftime: bring back and reword fwrite comment
1334         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1335
1336         stdio: remove now-unnecessary stdio.c
1337         Since stdio.in.h no longer uses inline functions, we no longer
1338         need to compile the extern versions.
1339         * lib/stdio.c: Remove.
1340         * modules/stdio (Files): Remove lib/stdio.c.
1341         (lib_SOURCES): Remove.
1342
1343         unicodeio: depend on stdio, not ignore-value
1344         * lib/unicodeio.c: Do not include ignore-value.h.
1345         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1346         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1347
1348         fprintftime: depend on stdio, not ignore-value
1349         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1350         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1351         since the stdio module arranges to silence that warning now.
1352         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1353
1354 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1355
1356         stdint-tests: Fix expanded-before-required-warning.
1357         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1358
1359 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1360
1361         fwrite: silence __wur only for older glibc versions
1362         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1363         This will help us remove this workaround some time in the far future.
1364
1365 2013-01-03  Eric Blake  <eblake@redhat.com>
1366
1367         fwrite: silence __wur without using inline
1368         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1369         just gcc, and in a way that avoids inline issues.
1370         * modules/stdio (Depends-on): Drop extern-inline.
1371
1372 2013-01-03  Jim Meyering  <jim@meyering.net>
1373
1374         update-copyright: avoid copyright notice date corruption
1375         Given a sequence of copyright year numbers in which the final
1376         one was a two-digit number that happened to be a substring of
1377         a preceding four-digit year number, we would mistakenly update
1378         the substring (from two- to four-digit) rather than the two-digit
1379         number at the end, which, combined with the addition of the current
1380         4-digit year number would yield two 5-digit year numbers, e.g.,
1381         here, it would convert the first "99" to "1999, 2013" rather than
1382         the final one:
1383           1991, 99
1384           11999, 20131, 1999
1385         * build-aux/update-copyright: Tighten a regexp.
1386         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1387         Reported by Joseph Myers in
1388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1389
1390 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1391
1392         regex: omit needless signed-pointer casts
1393         * lib/regcomp.c (build_charclass, build_charclass_op):
1394         Use char *, not unsigned char *, for class name and extra.
1395         The char values are always nonnegative so there's no need to
1396         insist on unsigned char * here, and using char * removes the need
1397         for casts.  Reported by Aharon Robbins in
1398         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1399
1400         regex: support Gawk, which never uses alloca
1401         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1402         Do not include in this case.  Gawk doesn't supply a substitute
1403         alloca.h and doesn't need one.
1404
1405         regex: port __libc_lock_define usage to C89
1406         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1407         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1408         does not conform to C89, as it has an empty macro argument.
1409         Reported by Aharon Robbins in
1410         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1411
1412 2013-01-01  Eric Blake  <eblake@redhat.com>
1413
1414         maint: update all copyright year number ranges
1415         Run "make update-copyright".
1416
1417         version-etc: bump copyright year reported in --version
1418         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1419
1420 2012-12-31  Eric Blake  <eblake@redhat.com>
1421
1422         sigprocmask-tests: skip test if pid is unexpectedly large
1423         * tests/test-sigprocmask.c (main): Add range check.
1424
1425         git-version-gen: avoid test -z portability glitch
1426         * build-aux/git-version-gen: Prefer portable test spelling, since
1427         git-version-gen is run on more than just developer machines.
1428
1429 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1430
1431         git-version-gen: add --fallback option to use if git is not present
1432         * build-aux/git-version-gen: Add support for the new option --fallback,
1433         which comes into play when there is no $tarball_version_file and
1434         git is not working.
1435         (scriptversion): Update.
1436
1437         maint.mk: handle missing git with more grace
1438         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1439         Quietly proceed if git is not present.
1440
1441 2012-12-31  Eric Blake  <eblake@redhat.com>
1442
1443         dup2: work around cygwin bug
1444         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1445         * lib/dup2.c (rpl_dup2): Work around it.
1446         * doc/posix-functions/dup2.texi (dup2): Document it.
1447
1448 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         regex: remove unnecessary dependency on localcharset.h
1451         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1452         hasn't been needed for years.
1453         * modules/regex (Depends-on): Remove localcharset.
1454
1455         regex: revert single-byte change
1456         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1457         to this function.  This was alredy fixed in a different way, at
1458         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1459         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1460         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1461
1462         regex: simplify based on Gawk version
1463         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1464         Reported by Aharon Robbins in
1465         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1466
1467 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1468
1469         regex: check that pattern char is single-byte
1470         Reported by Aharon Robbins in
1471         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1472         * lib/regexec.c (check_node_accept_bytes):
1473         Return 0 if the pattern string has a multibyte character here.
1474
1475         regex: implement rational ranges
1476         Reported by Aharon Robbins in
1477         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1478         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1479         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1480         Implement rational ranges.
1481
1482         regex: avoid redefining __wctype
1483         Reported by Aharon Robbins in
1484         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1485         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1486         #undef before defining.
1487
1488         regex: port to hosts where malloc (0) == NULL
1489         Reported by Aharon Robbins in
1490         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1491         * lib/regex_internal.c (re_node_set_alloc):
1492         Don't assume that malloc (0) yields nonnull.
1493         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1494         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1495         * modules/regex (Files): Add m4/eealloc.m4.
1496
1497         regex: port to C89
1498         Reported by Aharon Robbins in
1499         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1500         * lib/regcomp.c (init_word_char): Declaration before statement.
1501
1502         regex: merge glibc changes
1503         Also, copy the license wording from glibc.  This simplifies
1504         merging changes.  gnulib-tool will change the wording to GPL as
1505         appropriate, when importing it to other packages.  The only
1506         glibc change made since the last merge, which needs merging, is:
1507         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1508         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1509
1510         * users.txt: Add Emacs.
1511
1512         doc: omit mention of version when not needed
1513         * doc/gnulib-intro.texi (Portability and Application Code):
1514         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1515         Don't mention particular dates or versions when not necessary, so
1516         that the documentation won't go out of date so quickly.
1517
1518         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1519
1520 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1521
1522         bootstrap: pass --force to autoreconf.
1523         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1524         Add "--force" so that Automake's ylwrap and other such tools
1525         be updated at each bootstrap invocation.
1526         Use it.
1527
1528 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1531         The earlier patch forgot to update one of the #if conditions, causing
1532         a problem on Debian testing i386 reported by Mats Erik Andersson
1533         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1534         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1535         (__argp_fmtstream_puts, argp_fmtstream_puts)
1536         (__argp_fmtstream_write, argp_fmtstream_write)
1537         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1538
1539         * doc/gnulib-readme.texi: Minor fixups.
1540         (Portability guidelines): Modernize URLs.  Remove some repetition.
1541         (Indent with spaces not TABs): Reword to avoid too-long lines.
1542         Remove some '@ifset standalone' stuff that isn't used.
1543
1544         * doc/gnulib-readme.texi (Portability guidelines):
1545         ctype.h, not ctime.h.
1546
1547         Correct name of POSIX.1-2001.
1548         * doc/posix-functions/fgetc.texi (fgetc):
1549         * doc/posix-functions/fgets.texi (fgets):
1550         * doc/posix-functions/fread.texi (fread):
1551         * doc/posix-functions/fscanf.texi (fscanf):
1552         * doc/posix-functions/getc.texi (getc):
1553         * doc/posix-functions/getchar.texi (getchar):
1554         * doc/posix-functions/scanf.texi (scanf):
1555         POSIX.1-2001, not POSIX-2001.
1556
1557         doc: move README into manual
1558         * README: Move contents to new file doc/gnulib-readme.texi.
1559         Replace with a one-line summary.
1560         * doc/gnulib.texi (Brief Overview): New section,
1561         with old intro preface.  Include gnulib-readme.texi for contents.
1562         (Philosophy): Rename from "Introduction", since this
1563         section no longer introduces the rest.  Write a new preface.
1564         * doc/gnulib-readme.texi: New file, with the old contents of
1565         README texinfo-ized.  This way, the README info appears
1566         in the online and printed manual.
1567
1568 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1569
1570         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1571         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1572         c_vasprintf() prototype.
1573
1574 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1575
1576         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1577         * lib/c-vasprintf.h: Remove stray semicolon.
1578
1579 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1582         It is obsolete and is planned to be removed from Automake 1.14; see
1583         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1584         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1585         (installdirs-data, installdirs-data-yes):
1586         Use $(MKDIR_P), not $(mkdir_p).
1587         * m4/intl.m4 (AM_INTL_SUBDIR):
1588         * m4/po.m4 (AM_PO_SUBDIRS):
1589         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1590
1591 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1594         On this platform, we are not optimizing but we are using
1595         the substitute for extern inlines, so compile as if
1596         C99-style extern inline, or a substitute, is available.
1597         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1598         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1599         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1600         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1601         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1602         Declare as ARGP_FS_EI, not as extern.
1603         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1604         (__option_is_short, _option_is_end, __option_is_end)
1605         [!_LIBC && __USE_EXTERN_INLINES]:
1606         Declare as ARGP_EI, not as extern.
1607
1608 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1611         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1612         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1613         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1614         ...), as the latter is fatal with older Autoconfs.
1615         Problem reported and fix suggested by Eric Blake in thread starting at
1616         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1617
1618 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1619
1620         AC_PROG_MKDIR_P: don't workaround if not buggy
1621         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1622         Define only for Autoconf versions before 2.62.
1623         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1624         undocumented m4_PACKAGE_VERSION, for consistency with the
1625         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1626         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1627         was introduced in 2.62.
1628
1629 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1630
1631         New 'c-*printf' modules for formatted output in C locale.
1632
1633         New module 'c-vasnprintf'.
1634         * modules/c-vasnprintf: New file.
1635         * lib/c-vasnprintf.c: New file.
1636         * lib/c-vasnprintf.h: New file.
1637
1638         New module 'c-snprintf'.
1639         * modules/c-snprintf: New file.
1640         * modules/c-snprintf-tests: New file.
1641         * lib/c-snprintf.c: New file.
1642         * lib/c-snprintf.h: New file.
1643         * tests/test-c-snprintf.c: New file.
1644         * tests/test-c-snprintf.sh: New file.
1645
1646         New module 'c-vsnprintf'.
1647         * modules/c-vsnprintf: New file.
1648         * modules/c-vsnprintf-tests: New file.
1649         * lib/c-vsnprintf.c: New file.
1650         * lib/c-vsnprintf.h: New file.
1651         * tests/test-c-vsnprintf.c: New file.
1652         * tests/test-c-vsnprintf.sh: New file.
1653
1654         New module 'c-vasprintf'.
1655         * modules/c-vasprintf: New file.
1656         * modules/c-vasprintf-tests: New file.
1657         * lib/c-asprintf.c: New file.
1658         * lib/c-vasprintf.c: New file.
1659         * lib/c-vasprintf.h: New file.
1660         * tests/test-c-vasprintf.c  +: New file.
1661         * tests/test-c-vasprintf.sh: New file.
1662
1663         New module 'c-xvasprintf'.
1664         * modules/c-xvasprintf: New file.
1665         * modules/c-xvasprintf-tests: New file.
1666         * lib/c-xasprintf.c: New file.
1667         * lib/c-xvasprintf.c: New file.
1668         * lib/c-xvasprintf.h: New file.
1669         * tests/test-c-xvasprintf.c: New file.
1670         * tests/test-c-xvasprintf.sh: New file.
1671
1672 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1673
1674         argp: better 'inline'
1675         Use extern-inline module to declare extern inline functions.
1676         This avoids some bogus warning diagnostics.  Problem discovered
1677         when modifying GNU tar to use the manywarnings module.
1678         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1679         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1680         Define based on extern-inline.
1681         * modules/argp (Depends-on): Add extern-inline.
1682
1683 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1684
1685         filemode, sys_stat: Handle MPX files a la AIX.
1686         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1687         * lib/sys_stat.in.h (S_ISMPX): New macro.
1688         * tests/test-sys_stat.c: Add tests for MPX files.
1689
1690 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1691
1692         x-to-1: honor $PERL
1693         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1694         a chance to use his preferred version of Perl.  This is typically
1695         required by Darwin users whose default /usr/bin/perl does not have all
1696         the libraries required by help2man, and who need to use their MacPorts
1697         installation of Perl instead.
1698
1699 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1700
1701         gnu-web-doc-update: add all the new files, even in new directories
1702         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1703         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1704         Use it.
1705         (main): Don't use cvsutils to get the list of unknown files,
1706         just add all the existing files and directories.
1707
1708 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1709
1710         gnu-web-doc-update: improve --help
1711         * build-aux/gnu-web-doc-update: Move comments into --help.
1712
1713 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1714
1715         mountlist: recognize more "dummy" file systems
1716         * lib/mountlist.c (ME_DUMMY_0):
1717         Add these dummy FS names to the list:
1718         - "debugfs" virtual filesystem for kernel debugging
1719         - "devpts" PTY slave filesystem
1720         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1721         - "fusectl" control filesystem for FUSE
1722         - "mqueue" enumerates POSIX message queues
1723         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1724         - "sysfs" is for exporting kernel objects
1725         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1726
1727 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         extern-inline: avoid incompatibility with Darwin Libc
1730         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1731         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1732         Problem reported by Akim Demaille in
1733         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1734
1735 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1736
1737         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1738         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1739         let it handle password prompting.
1740
1741 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1742
1743         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1744         * lib/canonicalize.c (canonicalize_filename_mode):
1745         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1746         fetching the current directory.  Don't overrun the beginning of
1747         rpath if there's no slashes after the MS-Windows drive letter.
1748
1749 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1750
1751         maint.mk: avoid extra forks
1752         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1753         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1754         So use that instead of "$(shell test -f FILE && echo FILE)".
1755
1756 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1757
1758         vasnprintf: fix ASCII_ONLY typo
1759         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1760         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1761         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1762         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1763         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1764
1765 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         list, oset, xlist, xoset: fix extern inline issue with C99
1768         This was introduced by my recent changes for 'inline'.
1769         Problem reported for gettext by Daiki Ueno in
1770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1771         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1772         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1773         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1774         (gl_list_previous_node, gl_list_get_at)
1775         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1776         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1777         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1778         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1779         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1780         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1781         (gl_list_iterator_free, gl_sortedlist_search)
1782         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1783         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1784         (gl_sortedlist_remove):
1785         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1786         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1787         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1788         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1789         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1790         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1791         (gl_list_add_at, gl_sortedlist_add):
1792         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1793         Wrap these extern decls inside "#if 0", because they are implemented
1794         as inline functions, and extern inline is not what's wanted here.
1795         It would simplify these .h files to remove the extern decls entirely,
1796         although a downside would be less-clear separation between
1797         specification and implementation.
1798
1799 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         sys_stat: no 'static inline'
1802         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1804
1805         extern-inline: no 'static inline'
1806         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1807         Do not require AC_C_INLINE.
1808         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1809         'static inline', for older compilers.
1810
1811         snippet/warn-on-use: no 'static inline'
1812         * build-aux/snippet/warn-on-use.h:
1813         Remove unnecessary 'inline' in comment.
1814
1815         rbtree-list, rbtreehash-list: no 'static inline'
1816         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1817         * lib/gl_anytree_list2.h (node_at):
1818         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1819         (gl_oset_first, add_nodes_to_buckets):
1820         Now static, not static inline.
1821
1822         regex: no 'static inline'
1823         * lib/regex_internal.c (calc_state_hash):
1824         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1825         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1826         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1827         Now static, not static inline.
1828         (inline) [__GNUC__ < 3 && _LIBC]:
1829         Remove macro; no longer needed.
1830
1831         xvasprintf: no 'static inline'
1832         * lib/xvasprintf.c (xstrcat):
1833         Now static, not static inline.
1834         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1835         Do not require AC_C_INLINE.
1836
1837         parse-datetime, parse-duration: no 'static inline'
1838         * lib/parse-datetime.y (to_uchar):
1839         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1840         (scale_n_add):
1841         Now static, not static inline.
1842         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1843         * modules/parse-duration (configure.ac):
1844         Do not require AC_C_INLINE.
1845
1846         getaddrinfo: no 'static inline'
1847         * lib/getaddrinfo.c (validate_family):
1848         Now static, not static inline.
1849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1850         Do not require AC_C_INLINE.
1851
1852         ftruncate, fts, lstat, openat, raise: no 'static inline'
1853         * lib/ftruncate.c (chsize_nothrow):
1854         * lib/fts.c (opendirat, diropen):
1855         * lib/lstat.c (orig_lstat):
1856         * lib/openat.c (orig_openat):
1857         * lib/raise.c (raise_nothrow):
1858         Now static, not static inline.
1859         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1860         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1861         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1862         * m4/openat.m4 (gl_PREREQ_OPENAT):
1863         * m4/raise.m4 (gl_PREREQ_RAISE):
1864         Do not require AC_C_INLINE.
1865
1866         fflush, stat: no 'static inline'
1867         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1868         (clear_ungetc_buffer, disable_seek_optimization)
1869         (restore_seek_optimization, update_fpos_cache):
1870         * lib/stat.c (orig_stat):
1871         Now static, not static inline.
1872         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1873         (update_fpos_cache):
1874         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1875         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1876         * m4/stat.m4 (gl_PREREQ_STAT):
1877         Do not require AC_C_INLINE.
1878
1879         error, filevercmp: no 'static inline'
1880         * lib/error.c (is_open, flush_stdout):
1881         * lib/filevercmp.c (order):
1882         Now static, not static inline.
1883         * m4/error.m4 (gl_PREREQ_ERROR):
1884         * modules/filevercmp (configure.ac):
1885         Do not require AC_C_INLINE.
1886
1887         dup, execute, fatal-signal, etc.: no 'static inline'
1888         * lib/dup.c (dup_nothrow):
1889         * lib/execute.c (nonintr_close, nonintr_open):
1890         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1891         * lib/fopen.c (orig_fopen):
1892         * lib/freadseek.c (freadptrinc):
1893         * lib/freopen.c (orig_freopen):
1894         * lib/fstat.c (orig_fstat, fstat_nothrow):
1895         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1896         (get_rusage_as_via_iterator):
1897         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1898         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1899         * lib/isatty.c (_isatty_nothrow):
1900         * lib/open.c (orig_open):
1901         * lib/read.c (read_nothrow):
1902         * lib/sigprocmask.c (signal_nothrow):
1903         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1904         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1905         * lib/wait-process.c (unregister_slave_subprocess):
1906         * lib/write.c (write_nothrow):
1907         Now static, not static inline.
1908         * lib/spawn-pipe.c (nonintr_open): Define only if
1909         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1910         * m4/dup.m4 (gl_PREREQ_DUP):
1911         * m4/execute.m4 (gl_EXECUTE):
1912         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1913         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1914         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1915         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1916         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1917         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1918         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1919         * m4/open.m4 (gl_PREREQ_OPEN):
1920         * m4/read.m4 (gl_PREREQ_READ):
1921         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1922         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1924         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1925         * m4/write.m4 (gl_PREREQ_WRITE):
1926         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1927         Do not require AC_C_INLINE.
1928
1929         c-strtod, memcoll, readutmp: no 'static inline'
1930         * lib/c-strtod.c (c_locale):
1931         * lib/memcoll.c (strcoll_loop):
1932         * lib/readutmp.c (desirable_utmp_entry):
1933         Now static, not static inline.
1934         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1935         * m4/memcoll.m4 (gl_MEMCOLL):
1936         * m4/readutmp.m4 (gl_READUTMP):
1937         Do not require AC_C_INLINE.
1938
1939         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1940         * lib/arctwo.c (to_uchar):
1941         * lib/md4.c (set_uint32):
1942         * lib/md5.c (set_uint32):
1943         * lib/sha1.c (set_uint32):
1944         * lib/sha256.c (set_uint32):
1945         * lib/sha512.c (set_uint64):
1946         Now static, not static inline.  This is a bit simpler, and doesn't
1947         affect performance with GCC and default optimization.
1948         * m4/arctwo.m4 (gl_ARCTWO):
1949         * m4/md4.m4 (gl_MD4):
1950         * m4/md5.m4 (gl_MD5):
1951         * m4/sha1.m4 (gl_SHA1):
1952         * m4/sha256.m4 (gl_SHA256):
1953         * m4/sha512.m4 (gl_SHA512):
1954         Do not require AC_C_INLINE.
1955
1956         cond, lock, thread: better 'inline'
1957         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1958         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1959         New macros.  Use them instead of static inline, for header functions.
1960         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1961         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1962         * lib/glthread/lock.c (gl_waitqueue_init)
1963         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1964         * lib/glthread/thread.c (get_current_thread_handle):
1965         Change 'static inline' to 'inline'.
1966         * lib/glthread/cond.h, lib/glthread/thread.h:
1967         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1968         * m4/cond.m4 (gl_COND):
1969         * m4/lock.m4 (gl_PREREQ_LOCK):
1970         * m4/thread.m4 (gl_THREAD):
1971         Do not require AC_C_INLINE.
1972         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1973
1974         chdir-long, cycle-check, savewd: better 'inline'
1975         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1976         (find_non_slash):
1977         * lib/cycle-check.c (is_zero_or_power_of_two):
1978         * lib/savewd.c (savewd_delegating):
1979         Change 'static inline' to 'inline'.
1980         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1981         Replace all remaining uses of 'static inline' with it.
1982         * lib/savewd.h:
1983         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1984         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1985         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1986         * m4/savewd.m4 (gl_SAVEWD):
1987         Do not require AC_C_INLINE.
1988         * modules/savewd (Depends-on): Add extern-inline.
1989
1990         base32, base64: no need for 'inline'
1991         * lib/base32.c (to_uchar, get_8, decode_8):
1992         * lib/base64.c (to_uchar, get_4, decode_4):
1993         Change 'static inline' to 'inline'.
1994         * m4/base32.m4 (gl_PREREQ_BASE32):
1995         * m4/base64.m4 (gl_PREREQ_BASE64):
1996         Do not require AC_C_INLINE.
1997
1998         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1999         * lib/gl_array_oset.c (gl_array_nx_add_at):
2000         (gl_array_remove_at):
2001         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2002         (add_to_bucket, remove_from_bucket):
2003         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2004         Change 'static inline' to 'static', as it's simpler to omit
2005         'inline' unless there's a significant performance advantage.
2006
2007         list, oset, xlist, xoset, xsublist: simplify via extern inline
2008         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2009         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2010         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2011         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2012         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2013         New macro.  Replace all uses of 'static inline' with it.
2014         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2015         instead of as macros FOO that are defined to static inline
2016         functions FOO_inline.
2017         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2018         * lib/gl_xsublist.c:
2019         Reimplement from scratch, by defining the corresponding *_INLINE
2020         macro and including the corresponding .h file.  This is simpler.
2021         * modules/list, modules/oset, modules/xlist, modules/xoset:
2022         (Files): Remove m4/gl_list.m4.
2023         (configure.ac): Remove gl_LIST.
2024         * m4/gl_list.m4: Remove.
2025         * modules/list, modules/oset, modules/xlist, modules/xoset:
2026         * modules/xsublist:
2027         (Depends-on): Depend on extern-inline, not inline.
2028
2029         xalloc: better 'inline'
2030         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2031         New macro.  Replace all uses of 'static inline' with it.
2032         (static_inline): Remove.
2033         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2034         Let 'extern inline' do the work automatically, instead of doing
2035         it by hand.
2036         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2037         Remove.  All uses removed.
2038         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2039
2040         gethrxtime: better 'inline'
2041         * lib/xtime.c: New file.
2042         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2043         * lib/xtime.h (XTIME_INCLUDE):
2044         New macros.  Replace all uses of 'static inline' with them.
2045         * lib/gethrxtime.c (gethrxtime): Define only if
2046         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2047         this source file is now always compiled, because of the extern inline.
2048         * lib/gethrxtime.h, lib/xtime.h:
2049         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2050         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2051         if gethrtime works, as they're not needed in that case.
2052         (gl_XTIME): Do not require AC_C_INLINE.
2053         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2054         compiled now.  Move the check into gl_GETHRXTIME.
2055         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2056         (Depends-on): Add extern-inline.
2057         (configure.ac): gethrxtime is always compiled now.
2058         (lib_SOURCES): Add gethrxtime.c.
2059
2060         wctype-h: better 'inline'
2061         * lib/wctype-h.c: New file.
2062         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2063         New macro.  Replace all uses of 'static inline' with it.
2064         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2065         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2066         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2067         (Depends-on): Add extern-inline.
2068
2069         unistd: better 'inline'
2070         * lib/unistd.c: New file.
2071         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2072         New macro.  Replace all uses of 'static inline' with it.
2073         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2074         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2075         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2076         (Depends-on): Add extern-inline.
2077
2078         sys_socket: better 'inline'
2079         * lib/sys_socket.c: New file.
2080         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2081         New macro.  Replace all uses of 'static inline' with it.
2082         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2084         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2085         (Depends-on): Add extern-inline.
2086
2087         stdio: better 'inline'
2088         * lib/stdio.c: New file.
2089         * lib/stdio.in.h (_GL_STDIO_INLINE):
2090         New macro.  Replace all uses of 'static inline' with it.
2091         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2092         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2093         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2094         (Depends-on): Add extern-inline.
2095
2096         sigaction: better 'inline'
2097         * lib/sig-handler.c: New file.
2098         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2099         New macro.  Replace all uses of 'static inline' with it.
2100         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2101         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2102         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2103         (Depends-on): Add extern-inline.
2104
2105         selinux-h: better 'inline'
2106         * lib/se-context.c, lib/se-selinux.c: New files.
2107         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2108         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2109         New macro.  Replace all uses of 'static inline' with it.
2110         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2111         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2112         New macro.  Replace all uses of 'static inline' with it.
2113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2114         * modules/selinux-h (Files, lib_SOURCES):
2115         Add lib/se-context.c, lib/se-selinux.c.
2116         (Depends-on): Add extern-inline.
2117         (configure.ac): Do not require AC_C_INLINE.
2118
2119         pthread: better 'inline'
2120         * lib/pthread.c: New file.
2121         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2122         New macro.  Replace all uses of 'static inline' with it.
2123         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2124         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2125         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2126         * modules/pthread (Files): Add lib/pthread.c.
2127         (Depends-on): Add extern-inline.
2128
2129         math: better 'inline'
2130         * lib/math.c: New file.
2131         * lib/math.in.h (_GL_MATH_INLINE):
2132         New macro.  Replace all uses of 'static inline' with it.
2133         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2134         * m4/math_h.m4 (gl_MATH_H):
2135         Do not require AC_C_INLINE.
2136         * modules/math (Files, lib_SOURCES):
2137         Add lib/math.c.
2138         (Depends-on): Add extern-inline.
2139
2140         count-one-bits: better 'inline'
2141         * lib/count-one-bits.c: New file.
2142         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2143         New macro.  Replace all uses of 'static inline' with it.
2144         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2145         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2146         Do not require AC_C_INLINE.
2147         * modules/count-one-bits (Files, lib_SOURCES):
2148         Add lib/count-one-bits.c.
2149         (Depends-on): Add extern-inline.
2150
2151         count-leading-zeros: better 'inline'
2152         * lib/count-leading-zeros.c: New file.
2153         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2154         New macro.  Replace all uses of 'static inline' with it.
2155         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2156         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2157         Do not require AC_C_INLINE.
2158         * modules/count-leading-zeros (Files, lib_SOURCES):
2159         Add lib/count-leading-zeros.c.
2160         (Depends-on): Add extern-inline.
2161
2162         bitrotate: better 'inline'
2163         * lib/bitrotate.c: New file.
2164         * lib/bitrotate.h (BITROTATE_INLINE):
2165         New macros.
2166         Replace all uses of 'static inline' with them.
2167         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2168         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2169         (Depends-on): Add extern-inline.
2170         (configure.ac): Do not require AC_C_INLINE.
2171
2172 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2173
2174         maint.mk: avoid gratuitous failure
2175         Reported by Stefano Lattarini in
2176         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2177         * top/maint.mk (public-submodule-commit): Quote more safely.
2178
2179 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2180
2181         canonicalize, canonicalize-lgpl: support MS-Windows file names
2182         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2183         for test cases, which it'd be nice to add at some point.
2184         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2185         * lib/canonicalize.c (canonicalize_filename_mode):
2186         * lib/canonicalize-lgpl.c (__realpath):
2187         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2188         slash is at the beginning of the file name.  Use ISSLASH, instead
2189         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2190         the first character with '/'.  Test for
2191         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2192         with a drive letter.
2193         * lib/canonicalize.c (SLASHES): New macro.
2194         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2195
2196 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2197
2198         fts: introduce FTS_VERBATIM
2199         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2200         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2201         * lib/fts.c (fts_open): Honor it.
2202
2203 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2204
2205         getlogin-tests: allow errno == ENXIO
2206         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2207         with errno == ENXIO (No controlling tty).
2208         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2209         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2210         with errno == ENOENT.  This was reported to happen in various
2211         situations on GNU/Linux.
2212
2213 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2214
2215         getlogin-tests: allow errno == ENOENT
2216         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2217         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2218         when running a test in an Emacs shell buffer.
2219
2220 2012-11-08  Jim Meyering  <jim@meyering.net>
2221
2222         tests/nap.h: avoid warning about unused variable
2223         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2224
2225         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2226         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2227         white space before each of the special-cased file names, to avoid
2228         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2229         in http://bugs.gnu.org/12830.
2230
2231 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2232
2233         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2234         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2235         fails with errno == EBADF when fd is opened with O_PATH.
2236         Reported by Jim Meyering in
2237         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2238         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2239         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2240
2241 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         test-utimens: speed up by taking shorter naps
2244         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2245         New functions.
2246         (nap): Use them, to do a better job of guessing the delay.
2247         On Fedora 17 with ext4 atop md atop hard disks, this made
2248         test-utimens run 10x faster, because the test napped for
2249         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2250         <http://bugs.gnu.org/12820#11>.
2251
2252 2012-11-07  Jim Meyering  <jim@meyering.net>
2253
2254         mountlist.c: fix a compilation failure
2255         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2256         I introduced while transforming commit v0.0-7683-g613bcb6
2257
2258 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         errno: port to LynxOS 178 2.2.2
2261         Problem reported by Joel Brobecker in
2262         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2263         * doc/posix-headers/errno.texi (errno.h): Document this.
2264         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2265         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2266         Supply a string for EILSEQ.
2267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2268
2269 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2272         Linux kernel 2.6.39 introduced O_PATH (see
2273         <http://lwn.net/Articles/433854/>) and this is a better fallback
2274         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2275         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2276         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2277         * lib/fcntl.in.h (O_ACCMODE):
2278         * tests/test-fcntl-h.c (main):
2279         Do not reject O_ACCMODE merely because it has more than the
2280         minimal number of bits, as POSIX allows extensions here.
2281
2282 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2283
2284         mountlist: do not classify a bind-mounted dir entry as "dummy"
2285         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2286         the "none"-testing clause.
2287         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2288         exception for bind-mounted directories.
2289
2290 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2291
2292         quote: provide a means to escape strings with nul characters
2293         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2294         (quote, quote_n): Rename formal arguments for consistency with
2295         quotearg.
2296
2297 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2298
2299         test-raise: don't assume 199 is an invalid signal
2300         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2301
2302         sh-quote-tests: port to Solaris 9
2303         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2304         Problem reported by Dagobert Michelsen in
2305         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2306
2307 2012-10-28  Jim Meyering  <jim@meyering.net>
2308
2309         maint.mk: rename a new configurable variable
2310         * top/maint.mk (_gl_translatable_string_re): Rename from
2311         translation-markers: _gl_ prefix to insulate from user Makefile code,
2312         and the _re suffix to inform that it's a regular expression.
2313
2314 2012-10-26  Eric Blake  <eblake@redhat.com>
2315
2316         maint.mk: let packages tweak sc_po_check pattern
2317         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2318         finding files with other translation markers.
2319
2320 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2321
2322         euidaccess: speed up 'configure' on GNU hosts
2323         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2324         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2325         it's needed only in this case.  Use AC_CHECK_DECLS, not
2326         AC_CHECK_DECLS_ONCE.
2327         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2328         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2329
2330         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2331
2332 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         fchmodat, fchownat, fstatat: port to non-inlining compilers
2335         Problem reported for FreeBSD 9 by Jim Meyering in
2336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2337         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2338         New files, which define FCHMODAT_INLINE etc.
2339         * lib/fchmodat.c (FCHMODAT_INLINE):
2340         * lib/fchownat.c (FCHOWNAT_INLINE):
2341         * lib/fstatat.c (FSTATAT_INLINE):
2342         Remove, as chmodat.c etc. now do this.
2343         * modules/fchmodat (Files): Add lib/chmodat.c.
2344         * modules/fchownat (Files): Add lib/chownat.c.
2345         * modules/fstatat (Files): Add lib/statat.c.
2346
2347 2012-10-15  Jim Meyering  <jim@meyering.net>
2348
2349         fchmodat.c, fchownat.c: compile-impeding typos
2350         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2351         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2352         Introduced in commit v0.0-7636-gd202279.
2353
2354 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         fcntl-h: support GNU flags like O_IGNORE_CTTY
2357         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2358         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2359         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2360         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2361         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2362         Define to 0 if not already defined.
2363         * tests/test-fcntl-h.c: Test these new flags.
2364
2365 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2366
2367         faccessat, etc.: support AT_FDCWD-only use
2368         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2369         this function only if its first argument is AT_FDCWD.
2370         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2371         values other than AT_FDCWD, so it doesn't want all the openat
2372         machinery with fchdir etc.
2373         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2374         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2375         * modules/unlinkat (Files):
2376         Remove lib/openat-priv.h, as at-internal supplies this file.
2377         Removing this file here allows us to support programs like Emacs
2378         that avoid at-internal.
2379
2380         faccessat: speed up 'configure' on mainstream hosts
2381         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2382         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2383         since it's only on unusual platforms that we need to check for
2384         'access', and it's better not to slow 'configure' down on all
2385         platforms.
2386
2387         faccessat: port to Solaris 10
2388         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2389         Needed on Solaris 10, which doesn't have AT_EACCESS,
2390         so we need the Gnulib fcntl.h, which defines it.
2391
2392 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2393         canonicalize: fix C89 compilation
2394         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2395         declarations so C89 is supported.  Also remove the comment
2396         referencing memorty allocation as the suggested feature could
2397         not be implemented as suggested.
2398         Reported by Michael Goffioul.
2399
2400 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         group-member: omit unnecessary dependencies
2403         This is for Emacs, which has its own allocator and where we
2404         don't want to use xalloc.
2405         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2406         since we no longer use xmalloc.  Do not include stdbool.h, since
2407         the changes below happen to remove the only use of bool.
2408         (GROUPBUF_SIZE): New constant.
2409         (struct group_info): Remove n_groups member.  Add groupbuf member.
2410         This lets us get the groups without using malloc, usually.
2411         (free_group_info, get_group_info): Adjust to this.
2412         (get_group_info): Return the number of groups found, or -1 on error.
2413         Use plain malloc not xmalloc, and treat its failure as if there
2414         are no groups, as the user already loses in case of error.
2415         (group_member): Simplify, based on changes to get_group_info.
2416         * modules/group-member (Depends-on): Remove dependencies on
2417         xalloc and stdbool.  Add dependency on xalloc-oversized.
2418
2419 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2420
2421         gethrxtime: port to C++
2422         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2423
2424 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         ptsname: fix macro-name typo
2427         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2428
2429 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2430
2431         inttostr: Relax license.
2432         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2433
2434 2012-10-03  Eric Blake  <eblake@redhat.com>
2435
2436         ptsname_r: support ptys returned by FreeBSD posix_openpt
2437         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2438         lives in /dev/pts/.
2439
2440 2012-10-02  Eric Blake  <eblake@redhat.com>
2441
2442         pselect: reject invalid file descriptors
2443         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2444         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2445         * modules/pselect (Depends-on): Add dup2.
2446         * doc/posix-functions/pselect.texi (pselect): Document this.
2447
2448         select: reject invalid file descriptors
2449         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2450         * lib/select.c (rpl_select) [!win32]: Work around it.
2451         * modules/select (Depends-on): Add dup2.
2452         * doc/posix-functions/select.texi (select): Document this.
2453
2454         select: enhance test
2455         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2456         New functions.
2457         (test_function): Enhance test.
2458         (do_select_bad_fd): Avoid any stale errno values.
2459
2460         ptsname: reject invalid file descriptors
2461         http://www.austingroupbugs.net/view.php?id=503
2462         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2464         * modules/stdlib (Makefile.am): Replace witness.
2465         * lib/stdlib.in.h (ptsname): Allow for replacement.
2466         * modules/ptsname (configure.ac): Trigger replacement.
2467         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2468
2469 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2470
2471         hash-pjw-bare: new module
2472         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2473         * lib/hash-pjw-bare.h: Likewise.
2474         * modules/hash-pjw-bare: New file.
2475         * MODULES.html.sh (Misc): Add it.
2476
2477 2012-10-02  Eric Blake  <eblake@redhat.com>
2478
2479         manywarnings: cater to more gcc infelicities
2480         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2481         -Wuninitialized without -O.
2482
2483 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2484
2485         select, poll tests: Make setsockopt invocation effective.
2486         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2487         the bind() call.
2488         * tests/test-select.h (open_server_socket): Likewise.
2489
2490 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2491
2492         sockets, sys_stat: restore AC_C_INLINE
2493         This undoes the 2012-09-22 patch.
2494         * m4/sockets.m4 (gl_SOCKETS):
2495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2496         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2497         and does not support plain 'inline'.  Reported by Bruno Haible in
2498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2499
2500 2012-09-30  Bruno Haible  <bruno@clisp.org>
2501
2502         localeconv tests: Avoid test failure on OpenIndiana.
2503         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2504         skip the 'grouping' and 'mon_grouping' tests.
2505         Reported by Jim Meyering.
2506
2507 2012-09-30  Bruno Haible  <bruno@clisp.org>
2508
2509         havelib: Follow libtool developments.
2510         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2511         Suggested by Simon Josefsson.
2512
2513 2012-09-29  Jim Meyering  <meyering@redhat.com>
2514
2515         fstatat.c: fix a compile-impeding typo
2516         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2517         Introduced in commit v0.0-7636-gd202279.
2518         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2519
2520 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2521
2522         extern-inline: provide a -Wundef safe config.h
2523         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2524         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2525         to produce a -Wundef warning free config.h.
2526
2527 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2528
2529         hash-pjw: relax license to LGPLv2+
2530         * modules/hash-pjw (License): Relax, with consent of author.
2531
2532 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2533
2534         maint.mk: fix strict vs. lazy variable issues with RELEASE
2535         * top/maint.mk (_equal): New function.
2536         (member_check): Strip the result to avoid spurious spaces.
2537         (url_dir_list): Do not use ifeq, which is strict, as it will
2538         require RELEASE_TYPE to be defined.
2539         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2540         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2541         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2542         (announcement_Cc_beta,announcement_mail_headers_beta)
2543         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2544         (release): Do not depend on $(release-type), as it forces its
2545         evaluation.  Bounce to it.
2546
2547 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2548
2549         maint.mk: formatting changes
2550         * top/maint.mk: Indent bodies of if's.
2551
2552 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2553
2554         maint.mk: factor the validation of RELEASE_TYPE
2555         With help from Jim Meyering.
2556         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2557         * top/maint.mk (_empty, _sp): Move their definition earlier.
2558         (member-check, release-type): New.
2559         Use the latter instead of $(RELEASE_TYPE).
2560         Remove now useless local checks.
2561
2562 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2563
2564         maint.mk: provide "make upload" to ease uploading
2565         See
2566         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2567         Do not depend simply on the current $(VERSION), as there may have been
2568         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2569         as "make release-commit" already does.
2570
2571         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2572         "make TYPE".
2573
2574         * top/maint.mk (upload_command, upload, release): New.
2575         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2576         (VERSION): first word of $(RELEASE) is always right.
2577         (emit_upload_commands): Adjust.
2578         * top/README-release: Update.
2579
2580 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2581
2582         maint.mk: silent rules
2583         With help from Stefano Lattarini.
2584         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2585         (announcement): Use $(AM_V_at).
2586
2587 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         localename: port gl_locale_name_thread_unsafe to FreeBSD
2590         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2591         and use the simpler FreeBSD implementation on Mac OS X as well.
2592         Original idea suggested by Ed Maste in
2593         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2594
2595 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2596
2597         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2598         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2599         * lib/mbuiter.c, lib/xsize.c: New files.
2600         * lib/binary-io.h (BINARY_IO_INLINE):
2601         * lib/eealloc.h (EEALLOC_INLINE):
2602         * lib/mbfile.h (MBFILE_INLINE):
2603         * lib/mbiter.h (MBITER_INLINE):
2604         * lib/mbuiter.h (MBUITER_INLINE):
2605         * lib/xsize.h (XSIZE_INLINE):
2606         New macros.
2607         Replace all uses of 'static inline' with them.
2608         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2609         * m4/eealloc.m4 (gl_EEALLOC):
2610         * m4/mbfile.m4 (gl_MBFILE):
2611         * m4/mbiter.m4 (gl_MBITER):
2612         * m4/xsize.m4 (gl_XSIZE):
2613         Do not require AC_C_INLINE.
2614         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2615         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2616         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2617         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2618         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2619         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2620         * modules/binary-io, modules/eealloc, modules/mbfile:
2621         * modules/mbiter, modules/mbuiter:
2622         (Depends-on): Add extern-inline.
2623
2624         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2625         * lib/pipe-filter-aux.c: New file.
2626         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2627         Replace all uses of 'static inline' with it.
2628         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2629         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2630         (filter_retcode): No real need for inline here.
2631         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2632         (Files): Add lib/pipe-filter-aux.c.
2633         (Depends-on): Add extern-inline.
2634         (configure.ac): Do not require AC_C_INLINE.
2635         (lib_SOURCES): Add pipe-filter-aux.c.
2636
2637         fdutimensat: omit unnecessary AC_C_INLINE
2638         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2639
2640         fchmodat, fchownat, fstatat: use extern-inline
2641         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2642         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2643         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2644         New macros.
2645         * lib/openat.h:
2646         Replace all uses of 'static inline' with them.
2647         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2648         * modules/fchmodat, modules/fchownat, modules/fstatat:
2649         * modules/openat-h:
2650         (Depends-on):
2651         Add extern-inline.
2652         (configure.ac): Remove AC_C_INLINE.
2653
2654         acl, mbchar, priv-set: use extern-inline
2655         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2656         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2657         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2658         New macros.
2659         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2660         Replace all uses of 'static inline' with it.
2661         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2662         * m4/acl.m4 (gl_FUNC_ACL):
2663         * m4/mbchar.m4 (gl_MBCHAR):
2664         * m4/priv-set.m4 (gl_PRIV_SET):
2665         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2666         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2667         Add extern-inline.
2668
2669         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2670         * m4/sockets.m4 (gl_SOCKETS):
2671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2672         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2673         environments where it's already guaranteed to work, so we needn't
2674         check for it at 'configure'-time.
2675
2676         tls-tests: omit unnecessary 'inline'
2677         * tests/test-tls.c (perhaps_yield): No longer inline.
2678         Simplicity and portability trump efficiency in test cases.
2679
2680         utimens-tests: avoid unnecessary 'inline'
2681         * modules/fdutimensat-tests (configure.ac):
2682         * modules/futimens-tests (configure.ac):
2683         * modules/utimens-tests (configure.ac):
2684         * modules/utimensat-tests (configure.ac):
2685         Remove AC_C_INLINE.
2686         * tests/test-utimens-common.h (ctime_compare):
2687         No longer inline.  Simplicity and portability trump efficiency here.
2688
2689         misc: don't limit commentary to inline functions
2690         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2691         * lib/xalloc-oversized.h, lib/xsize.h:
2692         Contrast macros to functions in general, not just to inline functions,
2693         when the commentary does not apply only to inline functions.
2694
2695 2012-09-20  Jim Meyering  <meyering@redhat.com>
2696
2697         non-recursive-gnulib-prefix-hack: new module
2698         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2699         the file that originated in Bison.
2700         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2701         largely copied from a snippet that resided in bison's configure.ac.
2702         * modules/non-recursive-gnulib-prefix-hack: New file.
2703         * MODULES.html.sh (Support for maintaining and releasing projects):
2704         Add it.
2705
2706 2012-09-18  Jim Meyering  <meyering@redhat.com>
2707
2708         maint.mk: generalize _gl_tight_scope for non-recursive make
2709         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2710         that *.h would describe additional .h files in the directory
2711         specified by $(_gl_TS_dir).  I.e., add this...
2712         (_gl_TS_other_headers): New variable.
2713
2714         maint.mk: exempt trailing blanks found in "binary" files
2715         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2716         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2717         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2718
2719 2012-09-17  Jim Meyering  <meyering@redhat.com>
2720
2721         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2722         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2723         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2724         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2725
2726 2012-09-17  Jim Meyering  <meyering@redhat.com>
2727
2728         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2729         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2730         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2731         It is not in the same category as "exit (0)" or "exit (1)", and
2732         besides, I know of no symbolic name for that 77.  Reported by
2733         Richard W.M. Jones in
2734         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2735
2736 2012-09-17  Jim Meyering  <meyering@redhat.com>
2737
2738         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2739         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2740         all uses of #define, not just those that start in column 1.
2741         Richard W.M. Jones reported a false positive in
2742         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2743
2744 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2747         * lib/localcharset.c (locale_charset) [DARWIN7]:
2748         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2749         as these two values are incompatible.  Problem reported by Max Horn.
2750         For more discussion, please see
2751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2752
2753         doc: document sticky-EOF issue
2754         * doc/posix-functions/fgetc.texi (fgetc):
2755         * doc/posix-functions/fgets.texi (fgets):
2756         * doc/posix-functions/fread.texi (fread):
2757         * doc/posix-functions/fscanf.texi (fscanf):
2758         * doc/posix-functions/getc.texi (getc):
2759         * doc/posix-functions/getchar.texi (getchar):
2760         * doc/posix-functions/scanf.texi (scanf):
2761         Mention that glibc and default Solaris do not conform to
2762         C99 and POSIX-2001 or later, with respect to how getchar
2763         etc. behave when feof reports nonzero.
2764
2765 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2766
2767         poll: fix poll(0, NULL, msec)
2768         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2769         but nfd is 0.  In that case poll should behave like select.
2770
2771 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2772             Paolo Bonzini <bonzini@gnu.org>
2773
2774         poll: fix for systems that can't recv() on a non-socket
2775         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2776         is readable.  In this case POLLHUP will not be supported.
2777         * doc/posix-functions/poll.texi: Document this.
2778
2779 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2780
2781         poll/select: document portability problems not fixed by Gnulib.
2782         * doc/posix-functions/poll.texi: poll does not work well on
2783         pipes under Windows.  It has the same limitations as select on
2784         BeOS.
2785         * doc/posix-functions/select.texi: select does not work well
2786         on pipes under Windows.
2787
2788 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2791         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2792         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2793         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2794
2795 2012-09-06  Eric Blake  <eblake@redhat.com>
2796
2797         net_if: give more details about the bug being fixed
2798         * doc/posix-headers/net_if.texi: Add clarification.
2799
2800 2012-09-05  Eric Blake  <eblake@redhat.com>
2801
2802         net_if: new module
2803         * modules/net_if: New module, borrowing ideas from netinet_in.
2804         * m4/net_if_h.m4: New file.
2805         * lib/net_if.in.h: Likewise.
2806         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2807         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2808         * tests/test-net_if.c: Make function checks conditional.
2809         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2810
2811 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2812
2813         readutmp: fix non-portable UT_PID use
2814         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2815         Use `UT_PID (u) > 0' as absolute condition.
2816
2817 2012-09-04  Jim Meyering  <meyering@redhat.com>
2818
2819         fts: reduce two or more trailing spaces to just one, usually
2820         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2821         or more slashes, trim all but the final one.  But if a name consists
2822         solely of two slashes, don't modify it.  If it consists solely of
2823         three or more slashes, strip all but one.
2824
2825         This is part of the solution to a minor problem with rm:
2826         it would print a bogus ELOOP diagnostic when failing to remove
2827         the slash-decorated name of a symlink-to-directory:
2828
2829             $ mkdir d && ln -s d s && env rm -r s/
2830             rm: cannot remove 's': Too many levels of symbolic links
2831
2832         With the change below and a trivial don't-trim-trailing-slashes
2833         adjustment to remove.c, it does this:
2834
2835             $ env rm -r s/
2836             rm: cannot remove 's/': Not a directory
2837
2838         Improved by: Eric Blake
2839
2840         fts: when there is no risk of overlap, use memcpy, not memmove
2841         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2842
2843 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2844
2845         stdbool: be more compatible with mixed C/C++ compiles
2846         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2847         Define to bool, true, false, respectively, as GCC's builtin
2848         stdbool.h does.  Problem reported by Michael Goffioul in
2849         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2850
2851 2012-08-28  Jim Meyering  <meyering@redhat.com>
2852
2853         revert last change: it was not needed
2854         * tests/test-vc-list-files-git.sh: There's already a test for
2855         a working git, just below.
2856
2857 2012-08-28  Jim Meyering  <meyering@redhat.com>
2858
2859         tests: test-vc-list-files-git.sh: skip if git is not available
2860         * tests/test-vc-list-files-git.sh: Skip this test when git is
2861         not available.
2862
2863 2012-08-26  Bruno Haible  <bruno@clisp.org>
2864
2865         gnulib-tool: Remove no-op option --no-changelog.
2866         * gnulib-tool (func_usage): Don't mention --no-changelog.
2867         (do_changelog): Remove variable.
2868         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2869
2870 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2871
2872         doc: remove fdl-1.2.texi
2873         It is no longer used or maintained, and its use of @acronym
2874         is problematic.  See the thread containing
2875         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2876         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2877         * doc/old-licenses/fdl-1.2.texi: Remove.
2878
2879         execinfo: port to FreeBSD
2880         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2881         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2883         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2884
2885 2012-08-23  Jim Meyering  <meyering@redhat.com>
2886
2887         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2888         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2889         to placate gcc's -Wold-style-declaration.
2890
2891 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         doc: do not use @acronym
2894         * doc/inet_ntoa.texi (inet_ntoa):
2895         * doc/parse-datetime.texi (Seconds since the Epoch)
2896         (Specifying time zone rules):
2897         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2898         Don't use @acronym.  Problem reported by John Darlington in
2899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2900
2901 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         stdnoreturn: port to newer GCCs
2904         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2905         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2906         Problem reported by Jim Meyering in
2907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2908         Also, rename the 'test' function to a void a clash with the
2909         already-supplied 'main' function; this fixes a bug that incorrectly
2910         rejected GCC 4.7.1's <stdnoreturn.h>.
2911         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2912         Document GCC problem.
2913
2914 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2915
2916         pipe-filter: fix comment typo
2917         * lib/pipe-filter.h: Mention correct function.
2918
2919 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         execinfo: new module
2922         This is for Emacs.  Currently, it provides a no-effect stub
2923         on all platforms where it does not already work.
2924         It already works on glibc-based systems, and on Solaris 11.
2925         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2926         New files.
2927         * doc/glibc-headers/execinfo.texi (execinfo.h):
2928         * MODULES.html.sh (Misc): Document it.
2929
2930 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         extern-inline: support old GCC 'inline'
2933         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2934         if available.  This applies to GCC versions 2.7 through 4.2, or
2935         when newer GCC is using -fgnu89-inline.  The goal is to address
2936         some of the performance issues mentioned by Bruno Haible in
2937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2938
2939 2012-08-20  Eric Blake  <eblake@redhat.com>
2940
2941         maint.mk: avoid redundant file name in message
2942         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2943         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2944         (sc_makefile_path_separator_check): Remove bogus $(ME).
2945
2946 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2947
2948         timer-time: fix link order when static linking on glibc
2949         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2950         _after_ -lrt so that it's significant.
2951
2952 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2953
2954         timespec: omit unnecessary AC_C_INLINE
2955         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2956
2957         stat-time: omit unnecessary AC_C_INLINE
2958         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2959         Do not require AC_C_INLINE.
2960
2961         ignore-value: omit unnecessary AC_C_INLINE
2962         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2963
2964         sys_select: avoid 'static inline'
2965         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2966
2967         mktime: avoid 'static inline'
2968         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2969         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2970
2971 2012-08-19  Bruno Haible  <bruno@clisp.org>
2972
2973         gnulib-tool: Improve coding style.
2974         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2975         func_emit_lib_Makefile_am.
2976         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2977
2978 2012-08-19  Bruno Haible  <bruno@clisp.org>
2979
2980         gnulib-tool: Fix indentation.
2981         * gnulib-tool (func_import): Fix indentation.
2982
2983 2012-08-19  Bruno Haible  <bruno@clisp.org>
2984
2985         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2986         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2987         on the list of removed files.
2988
2989 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2990
2991         test-parse-datetime: avoid glibc leap-second glitch
2992         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2993         with the 2012 rules.  Problem reported by Bruce Dubbs in
2994         <http://bugs.gnu.org/12206>.
2995
2996 2012-08-14  Bruno Haible  <bruno@clisp.org>
2997
2998         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2999         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3000         from argument.
3001         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3002
3003 2012-08-14  Eric Blake  <eblake@redhat.com>
3004
3005         ldexp: relax license
3006         * modules/ldexp (License): Trivial relax, since the module only
3007         provides a permissively licensed m4 file.
3008
3009 2012-08-13  Bruno Haible  <bruno@clisp.org>
3010
3011         gnulib-tool: Fix persistence of --witness-c-macro option.
3012         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3013         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3014
3015 2012-08-11  Eric Blake  <eblake@redhat.com>
3016
3017         count-leading-zeros: use a lookup table on non-gcc compilers
3018         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3019         alternate implementation, suggested by Jim Meyering.
3020
3021 2012-08-10  Eric Blake  <eblake@redhat.com>
3022
3023         count-leading-zeros: new module
3024         * modules/count-leading-zeros: New module.
3025         * m4/count-leading-zeros.m4: New file.
3026         * lib/count-leading-zeros.h: Likewise.
3027         * modules/count-leading-zeros-tests: New test.
3028         * tests/test-count-leading-zeros.c: New file.
3029         * MODULES.html.sh (Integer arithmetic functions): Document it.
3030
3031 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3032             Jim Meyering  <meyering@redhat.com>
3033
3034         maintainer-makefile: Fix syntax error with dash.
3035         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3036         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3037
3038 2012-08-05  Jim Meyering  <meyering@redhat.com>
3039
3040         extern-inline: also ignore -Wmissing-declarations
3041         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3042         required with gcc-4.8.0-to-be.
3043
3044         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3045         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3046         for /error ?([^,]*)/.  This avoids false-positives for strings like
3047         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3048
3049 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3050
3051         gnumakefile: better interaction with Automake-NG
3052         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3053         Automake-NG always contain a definition of VPATH, even in non-VPATH
3054         builds (its value being simply '.' in that case).  So, in the
3055         'clean-GNUmakefile' rule, to determine whether running under a
3056         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3057         '$(VPATH)' expands to the empty string.
3058
3059 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3060
3061         base64: Use extern C scope in header file, for C++.
3062         * lib/base64.h: Add C++ namespace protection.
3063
3064 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3065
3066         stat-time, timespec, u64: support naive out-of-dir builds
3067         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3068         Use '#include "foo.h"', not '#include <foo.h>', when including
3069         one's own interface.  This works better when configuring with
3070         out-of-directory builds, since packages need not add an
3071         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3072
3073 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3074
3075         utimens: use extern-inline
3076         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3077         * lib/utimens.h: Add copyright notice, since this is now large enough
3078         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3079         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3080         * modules/utimens (Depends-on): Add extern-inline.
3081
3082         u64: use extern-inline
3083         * lib/u64.c: New file.
3084         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3085         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3086         * modules/u64 (Files): Add lib/u64.c.
3087         (Depends-on): Add extern-inline.
3088         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3089         does that now.
3090         (lib_SOURCES): Add u64.c.
3091
3092         timespec: use extern-inline
3093         * lib/timespec.c: New file.
3094         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3095         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3096         * modules/timespec (Files): Add lib/timespec.c.
3097         (Depends-on): Add extern-inline.
3098         (lib_SOURCES): Add timespec.c.
3099
3100         stat-time: use extern-inline
3101         * lib/stat-time.c: New file.
3102         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3103         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3104         * modules/stat-time (Files): Add lib/stat-time.c.
3105         (Depends-on): Add extern-inline.
3106         (lib_SOURCES): Add stat-time.c.
3107
3108         extern-inline: new module
3109         * modules/extern-inline, m4/extern-inline.m4: New files.
3110         This is for better support of 'extern inline' a la ISO C99,
3111         with a portable alternative on compilers that do not support
3112         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3113         of the Emacs executable, when compiled with debugging disabled,
3114         which is a typical way that Emacs is built while developing.
3115
3116 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3117
3118         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3119         * build-aux/do-release-commit-and-tag: Move variable definitions
3120         together.
3121         ($branch): Instead of defaulting to "master", default to the current
3122         branch (as gnu-web-doc-update does).
3123         (help): Display the current values of the option arguments.
3124         * top/maint.mk (release-commit): New.
3125         * top/README-release: Simplify the corresponding step.
3126
3127 2012-07-30  Eric Blake  <eblake@redhat.com>
3128
3129         passfd: fix comment on recvfd
3130         * lib/passfd.c (recvfd): Fix comment.
3131         Reported by Jann Horn <jannhorn@googlemail.com>.
3132
3133 2012-07-30  Jim Meyering  <meyering@redhat.com>
3134
3135         maint.mk: avoid a sub-shell
3136         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3137
3138 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3139
3140         maint.mk: use silent-rules support from Automake
3141         * top/maint.mk (news-check, vc-diff-check, announcement)
3142         (no-submodule-changes, alpha beta stable, release-prep)
3143         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3144
3145 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3146
3147         maint.mk: provide a web-manual-update target
3148         * top/maint.mk: here.
3149         * top/README-release: Use it to simplify the web manual update step.
3150
3151 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3152
3153         README-release: shorten the circuit to post a news
3154         * top/README-release: Point directly to the news submission form.
3155
3156 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3157
3158         gnu-web-doc-update: fix --help
3159         * build-aux/gnu-web-doc-update: The information "top level" was written
3160         twice.
3161
3162 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3163
3164         maint.mk: absolute VPATH issue
3165         * top/maint.mk (release-prep): Help Git find .git/.
3166         From Jim Meyering.
3167
3168 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3169
3170         gitlog-to-changelog: fix previous change
3171         * build-aux/gitlog-to-changelog: Fix condition.
3172         Add missing ";".
3173
3174 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3175
3176         gitlog-to-changelog: don't expect .git to be in $srcdir
3177         Reported by Bruno Haible.
3178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3179         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3180         Use it.
3181
3182 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3183
3184         maint.mk: absolute VPATH build fix
3185         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3186         $(srcdir) is not a parent of $(builddir).
3187
3188 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3189
3190         clean-temp: Fix memory leak.
3191         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3192         'files' members of tmpdir.
3193
3194 2012-07-27  Jim Meyering  <meyering@redhat.com>
3195
3196         maint.mk: new rule: refresh-gnulib-patches
3197         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3198         Use this rule to refresh them.
3199         * top/maint.mk (refresh-gnulib-patches): New rule.
3200
3201 2012-07-24  Bruno Haible  <bruno@clisp.org>
3202
3203         gnulib-tool: Fix handling of inctests variable.
3204         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3205         Reported by Nick Bowler <nbowler@elliptictech.com>.
3206
3207 2012-07-22  Bruno Haible  <bruno@clisp.org>
3208
3209         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3210         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3211         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3212         Remove exemption for getpass.h.
3213         Suggested by Eric Blake.
3214
3215 2012-07-20  Eric Blake  <eblake@redhat.com>
3216
3217         verify: document conflict with -Wnested-externs
3218         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3219
3220         maint.mk: forbid exit(-1)
3221         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3222
3223 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3224
3225         fsusage: port back to Solaris
3226         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3227         error (fsd not declared) on Solaris 10.  Reported privately by
3228         Andrew Borodin.
3229
3230 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3231
3232         gnu-web-doc-update: fix error messages
3233         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3234
3235         gnu-web-doc-update: check the requirements.
3236         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3237         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3238         * build-aux/bootstrap (find_tool): Comment change.
3239
3240 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3241
3242         maint.mk: minor simplication.
3243         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3244         for default values.
3245
3246 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3247
3248         gitlog-to-changelog: VPATH build issues
3249         If builddir is not a subdirectory of srcdir, running git from it will
3250         fail.
3251         * build-aux/gitlog-to-changelog (--srcdir): New option.
3252
3253 2012-07-15  Bruno Haible  <bruno@clisp.org>
3254
3255         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3256         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3257         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3258         Remove exemption for fpending.h.
3259         Suggested by Eric Blake.
3260
3261 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         pthread_sigmask: fix bug on FreeBSD 9
3264         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3265         Include string.h.
3266         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3267         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3268         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3269         but pthread_sigmask (1729, NULL, NULL) returns zero.
3270         See <http://bugs.gnu.org/11884>.
3271         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3272         by inspecting whether the main call changed the old mask.
3273
3274 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3275
3276         README-release: make it more legible
3277         * top/README-release: Improve typography slightly.
3278
3279 2012-07-15  Jim Meyering  <meyering@redhat.com>
3280
3281         maint: require that each sc_... command start with "@"
3282         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3283         "make sc_maint" helps us avoid this nit.
3284
3285 2012-07-15  Jim Meyering  <meyering@redhat.com>
3286
3287         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3288         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3289
3290 2012-07-13  Eric Blake  <eblake@redhat.com>
3291
3292         maint.mk: new syntax check for HAVE_DECL checks
3293         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3294         * cfg.mk
3295         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3296         Exempt some false positives.
3297         Based on a report by Karel Zak.
3298
3299         argp: make HAVE_DECL usage consistent
3300         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3301         macros, not whether they are defined.
3302         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3303         convention with other declaration checks.
3304         Reported by Karel Zak, with suggestions from Paul Eggert.
3305
3306         stat-time: relax license to LGPLv2+
3307         * modules/stat-time (License): Relax, with consent of all authors.
3308
3309         strndup: fix m4 usage error
3310         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3311         defined, to either 0 or 1.
3312         Reported by Karel Zak.
3313
3314 2012-07-11  Jim Meyering  <meyering@redhat.com>
3315
3316         maint: enable the sc_avoid_if_before_free syntax-check rule
3317         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3318         (if_before_free_offenders_): Define.
3319         (if_before_free_basename_re_): Define.
3320         Exempt current files with useless if-before-free.
3321
3322 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3323
3324         gettext: do not assume '#define ... defined ...' behavior
3325         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3326         Do not use '#define FOO ... defined BAR ...', as the C standard says
3327         it's not portable to expect that this works after macro expansion.
3328         Problem reported for gzip by Steven M. Schweda in
3329         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3330
3331 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3332
3333         getloadavg: clean out old Emacs and Autoconf cruft
3334         See Glenn Morris in <http://bugs.gnu.org/11905>.
3335         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3336         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3337         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3338         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3339
3340 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3341
3342         bootstrap: let warn be like tests/init.sh's warn_
3343         Reported by Jim Meyering.
3344         * build-aux/bootstrap (warn): Remove, replaced by...
3345         (warnf_, warn_): these.
3346         Adjust callers.
3347         Shorten messages that no longer fit in 80 columns.
3348
3349 2012-07-09  Bruno Haible  <bruno@clisp.org>
3350
3351         getopt: Simplify after Emacs changed.
3352         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3353         (gl_GETOPT_IFELSE): Remove macro.
3354
3355 2012-07-09  Jim Meyering  <meyering@redhat.com>
3356
3357         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3358         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3359
3360         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3361         Bugs in both of those conspired to make the
3362         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3363         _sc_search_regexp's handling of non-empty $in_files would filter
3364         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3365         choice of in_files value meant there would be no match in most
3366         projects, due to the presence of two or more Makefile.in files.
3367         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3368         Fix a bug in how a non-empty $$in_files was processed:
3369         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3370         in spite of the name, it's a regexp, not a list of file names.
3371
3372 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3373
3374         getloadavg, getopt: fix commentary re configure.in
3375         Autoconf is deprecating the name 'configure.in', so change it to
3376         to the new name 'configure.ac' in a couple of places.
3377         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3378         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3379         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3380         Emacs has renamed it to configure.ac, and it no longer refers
3381         to these macros anyway.
3382
3383         timespec: mark functions with const attributes
3384         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3385         Mark with _GL_ATTRIBUTE_CONST.
3386
3387 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3388
3389         canonicalize[-lgpl]: handle "guessing" values when cross-building
3390         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3391         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3392         matches "*yes" instead of just "yes".  Regression introduced in commit
3393         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3394
3395 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3396             Bruno Haible  <bruno@clisp.org>
3397
3398         canonicalize: make the right guess when cross-compiling to GNU
3399         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3400         determine whether cross-compiling to glibc systems, so as to
3401         include GNU/Hurd.
3402
3403 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         timespec-sub: avoid duplicate include
3406         * lib/timespec-sub.c: Do not include <config.h> twice.
3407         Reported by Juanma Barranquero.
3408
3409 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3410
3411         bootstrap: use a more consistent error reporting scheme
3412         * build-aux/bootstrap (warn, die): New.
3413         Use them.
3414
3415 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3416
3417         sys_time: allow too-wide tv_sec
3418         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3419         timeval even if tv_sec is wider than time_t.  This allows
3420         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3421         as without this patch gnulib replaces struct timeval
3422         and OpenBSD futimes therefore has a type mismatch.
3423         * doc/posix-headers/sys_time.texi: Mention this.
3424
3425         pthread: check for both pthread_create and pthread_join
3426         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3427         alter the check so that it tests for both pthread_create and
3428         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3429         Suggested by Bruno Haible and Richard Yao in
3430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3431
3432         parse-datetime: doc tuneup
3433         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3434         spacing issues.
3435
3436 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3437
3438         do-release-commit-and-tag: fix the previous commit
3439         * build-aux/do-release-commit-and-tag: Actually the test was right,
3440         but the comment and the error message were misleading.
3441         Fix comment, and improve error message.
3442         Perform check first, so that NEWS is not modified uselessly.
3443
3444         do-release-commit-and-tag: fix typo
3445         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3446         _not_ start with a stub.
3447
3448 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         pthread: check for pthread_create, not pthread_join
3451         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3452         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3453         pthread_join in libc.  I hope this removes the need for all the
3454         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3456
3457 2012-07-04  Jim Meyering  <meyering@redhat.com>
3458
3459         parse-datetime: fix failure to diagnose invalid input
3460         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3461         rather than diagnosing the invalid input.  Now it reports this:
3462         date: invalid date '\260'
3463         * lib/parse-datetime.y (to_uchar): Define.
3464         (yylex): Don't sign-extend "other" bytes.
3465         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3466         Thanks to Bruno Haible for the patch to this file.
3467         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3468         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3469
3470 2012-07-03  Jim Meyering  <meyering@redhat.com>
3471
3472         bootstrap: do not require now-removed build-aux/missing
3473         Now that build-aux/missing is, er, missing, bootstrap would
3474         silently fail.
3475         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3476         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3477         no longer part of gnulib.
3478         Diagnose the failure.
3479
3480 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         alloca: add support for HP NonStop TNS/E native
3483         * lib/alloca.in.h (alloca): Support the new host.
3484         From a suggestion by Joachim Schmitz in
3485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3486
3487 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3488
3489         fsusage: remove code not needed on non GNU/Linux systems.
3490
3491         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3492         Don't include headers no longer needed in this case.
3493         * lib/fsusage.c [STAT_STATVFS &&
3494         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3495         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3496
3497 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3498
3499         fsusage: include files needed for glibc 2.6 fallback
3500         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3501         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3502         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3503         Problem reported by Ludovic Courtès in
3504         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3505
3506         fsusage: avoid needless check on GNU/Linux
3507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3508         on GNU/Linux systems, since it can't possibly work.
3509
3510 2012-07-01  Bruno Haible  <bruno@clisp.org>
3511
3512         log: Fix an autoconf >= 2.64 warning.
3513         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3514         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3515
3516 2012-06-28  Bruno Haible  <bruno@clisp.org>
3517
3518         log10f: Fix possible configuration problem.
3519         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3520         $LOGF_LIBM.
3521         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3522
3523 2012-06-28  Bruno Haible  <bruno@clisp.org>
3524
3525         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3526         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3527         not gl_cv_func_unlink_works.
3528         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3529
3530 2012-06-27  Eric Blake  <eblake@redhat.com>
3531
3532         config: drop scripts that automake says are not independent
3533         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3534         * build-aux/elisp-comp: Delete.
3535         * build-aux/missing: Likewise.
3536         * build-aux/ylwrap: Likewise.
3537         * modules/elisp-comp: Likewise.
3538         * MODULES.html.sh: Drop mention of elisp-comp.
3539         * NEWS: Mention this.
3540
3541 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3542
3543         root-uid: new module
3544         This is for portability to Tandem's NonStop Kernel.
3545         * lib/root-uid.h, modules/root-uid: New files.
3546         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3547         * lib/write-any-file.c, tests/test-sethostname2.c:
3548         Include "root-uid.h".
3549         * lib/euidaccess.c (euidaccess):
3550         * lib/pt_chown.c (main):
3551         * lib/unlinkdir.c (cannot_unlink_dir):
3552         * lib/write-any-file.c (can_write_any_file):
3553         * m4/mknod.m4 (gl_FUNC_MKNOD):
3554         * tests/test-sethostname2.c (geteuid, main):
3555         Don't assume ROOT_UID == 0.
3556         * modules/euidaccess (Depends-on):
3557         * modules/pt_chown (Depends-on):
3558         * modules/sethostname-tests (Depends-on):
3559         * modules/unlinkdir (Depends-on):
3560         * modules/write-any-file (Depends-on):
3561         Add root-uid.
3562
3563         regex: use locale-independent comparison for codeset name
3564         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3565         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3566         for codeset name.
3567         * lib/regex_internal.h: Do not include <strings.h>, since we
3568         no longer use strcasecmp.
3569         * modules/regex (Depends-on): Remove strcase.
3570
3571 2012-06-23  Bruno Haible  <bruno@clisp.org>
3572
3573         getopt-posix: No longer guarantee that option processing is resettable.
3574         * doc/posix-functions/getopt.texi: Drop description of problem with
3575         internal state. Fix info about mingw and msvc9.
3576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3577         option processing by getopt(). Run three test programs instead of one.
3578         Simplify cross-compilation guess.
3579         * NEWS: Mention the change.
3580         Reported by Rich Felker <dalias@aerifal.cx>.
3581
3582 2012-06-26  Bruno Haible  <bruno@clisp.org>
3583
3584         argp, regex: Ensure strcasecmp gets declared.
3585         * lib/argp-help.c: Include <strings.h>.
3586         * lib/regex_internal.h: Likewise.
3587         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3588
3589 2012-06-24  Bruno Haible  <bruno@clisp.org>
3590
3591         ptsname_r: Make it consistent with ptsname on AIX.
3592         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3593         implementation as for OSF/1.
3594         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3595         a pty master.
3596
3597         ptsname_r: Make it consistent with ptsname on OSF/1.
3598         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3599         OSF/1.
3600
3601 2012-06-24  Bruno Haible  <bruno@clisp.org>
3602
3603         ttyname_r: Fix result on OSF/1, Solaris.
3604         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3605
3606 2012-06-24  Bruno Haible  <bruno@clisp.org>
3607
3608         ptsname_r: Add support for Solaris.
3609         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3610         Solaris.
3611
3612         ptsname_r: Fix test failure on native Windows.
3613         * modules/ptsname_r (Depends-on): Add isatty.
3614
3615         ptsname_r: Fix test failures on IRIX, Solaris.
3616         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3617         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3618         accordingly.
3619         * lib/ptsname_r.c: Include <fcntl.h>.
3620         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3621         set errno if fd is invalid.
3622         * tests/test-isatty.c (main): Update comments.
3623
3624 2012-06-24  Bruno Haible  <bruno@clisp.org>
3625
3626         ptsname test: Extend test.
3627         * tests/test-ptsname.c: Include <errno.h>.
3628         (main): Test behaviour with invalid file descriptor.
3629
3630 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         time: fix obsolete comment
3633         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3634         reference to HAVE_STRUCT_TIMESPEC in comment.
3635
3636 2012-06-23  Bruno Haible  <bruno@clisp.org>
3637
3638         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3640         does not handle abbreviated long options with equivalent
3641         disambiguations, set gl_replace_getopt to yes.
3642         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3643
3644 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3645
3646         time_r: fix typo that always overrode localtime_r decl
3647         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3648         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3649         not in a standard include.
3650
3651 2012-06-22  Bruno Haible  <bruno@clisp.org>
3652
3653         Write "Mac OS X" instead of "MacOS X".
3654         * README: Write "Mac OS X" instead of "MacOS X".
3655         * build-aux/bootstrap: Likewise.
3656         * build-aux/install-reloc: Likewise.
3657         * lib/acl-internal.h: Likewise.
3658         * lib/acl_entries.c: Likewise.
3659         * lib/argp-ba.c: Likewise.
3660         * lib/argp-pv.c: Likewise.
3661         * lib/config.charset: Likewise.
3662         * lib/copy-acl.c: Likewise.
3663         * lib/csharpexec.c: Likewise.
3664         * lib/euidaccess.c: Likewise.
3665         * lib/fbufmode.c: Likewise.
3666         * lib/fflush.c: Likewise.
3667         * lib/file-has-acl.c: Likewise.
3668         * lib/filemode.h: Likewise.
3669         * lib/fpurge.c: Likewise.
3670         * lib/freadable.c: Likewise.
3671         * lib/freadahead.c: Likewise.
3672         * lib/freading.c: Likewise.
3673         * lib/freadptr.c: Likewise.
3674         * lib/freadseek.c: Likewise.
3675         * lib/fseeko.c: Likewise.
3676         * lib/fseterr.c: Likewise.
3677         * lib/fsusage.c: Likewise.
3678         * lib/fwritable.c: Likewise.
3679         * lib/fwriting.c: Likewise.
3680         * lib/get-rusage-as.c: Likewise.
3681         * lib/get-rusage-data.c: Likewise.
3682         * lib/getdomainname.c: Likewise.
3683         * lib/idpriv-drop.c: Likewise.
3684         * lib/idpriv-droptemp.c: Likewise.
3685         * lib/localcharset.c: Likewise.
3686         * lib/locale.in.h: Likewise.
3687         * lib/localename.c: Likewise.
3688         * lib/mbsrtowcs-state.c: Likewise.
3689         * lib/nproc.c: Likewise.
3690         * lib/passfd.c: Likewise.
3691         * lib/posix_openpt.c: Likewise.
3692         * lib/printf-parse.c: Likewise.
3693         * lib/progreloc.c: Likewise.
3694         * lib/safe-read.h: Likewise.
3695         * lib/safe-write.h: Likewise.
3696         * lib/sched.in.h: Likewise.
3697         * lib/set-mode-acl.c: Likewise.
3698         * lib/signal.in.h: Likewise.
3699         * lib/stdint.in.h: Likewise.
3700         * lib/stdio-impl.h: Likewise.
3701         * lib/stdlib.in.h: Likewise.
3702         * lib/strtod.c: Likewise.
3703         * lib/sys_select.in.h: Likewise.
3704         * lib/tcgetsid.c: Likewise.
3705         * lib/unistd.in.h: Likewise.
3706         * lib/unlockpt.c: Likewise.
3707         * lib/vasnprintf.c: Likewise.
3708         * lib/vma-iter.c: Likewise.
3709         * lib/wcsrtombs-state.c: Likewise.
3710         * m4/acl.m4: Likewise.
3711         * m4/acosl.m4: Likewise.
3712         * m4/asinl.m4: Likewise.
3713         * m4/atanl.m4: Likewise.
3714         * m4/c-stack.m4: Likewise.
3715         * m4/cosl.m4: Likewise.
3716         * m4/expl.m4: Likewise.
3717         * m4/extensions.m4: Likewise.
3718         * m4/fdatasync.m4: Likewise.
3719         * m4/fmal.m4: Likewise.
3720         * m4/frexp.m4: Likewise.
3721         * m4/frexpf.m4: Likewise.
3722         * m4/frexpl.m4: Likewise.
3723         * m4/fsusage.m4: Likewise.
3724         * m4/getdomainname.m4: Likewise.
3725         * m4/getloadavg.m4: Likewise.
3726         * m4/getopt.m4: Likewise.
3727         * m4/gettext.m4: Likewise.
3728         * m4/gnulib-common.m4: Likewise.
3729         * m4/intdiv0.m4: Likewise.
3730         * m4/intlmacosx.m4: Likewise.
3731         * m4/largefile.m4: Likewise.
3732         * m4/ldexpl.m4: Likewise.
3733         * m4/link-follow.m4: Likewise.
3734         * m4/locale-ar.m4: Likewise.
3735         * m4/locale-fr.m4: Likewise.
3736         * m4/locale-ja.m4: Likewise.
3737         * m4/locale-tr.m4: Likewise.
3738         * m4/locale-zh.m4: Likewise.
3739         * m4/locale_h.m4: Likewise.
3740         * m4/lock.m4: Likewise.
3741         * m4/logl.m4: Likewise.
3742         * m4/mathfunc.m4: Likewise.
3743         * m4/minus-zero.m4: Likewise.
3744         * m4/mktime.m4: Likewise.
3745         * m4/mmap-anon.m4: Likewise.
3746         * m4/multiarch.m4: Likewise.
3747         * m4/nanosleep.m4: Likewise.
3748         * m4/nocrash.m4: Likewise.
3749         * m4/poll.m4: Likewise.
3750         * m4/printf-frexpl.m4: Likewise.
3751         * m4/printf.m4: Likewise.
3752         * m4/signbit.m4: Likewise.
3753         * m4/sinl.m4: Likewise.
3754         * m4/sqrtl.m4: Likewise.
3755         * m4/strerror_r.m4: Likewise.
3756         * m4/tanl.m4: Likewise.
3757         * m4/threadlib.m4: Likewise.
3758         * m4/ttyname_r.m4: Likewise.
3759         * m4/unlink.m4: Likewise.
3760         * m4/visibility.m4: Likewise.
3761         * m4/wcwidth.m4: Likewise.
3762         * tests/minus-zero.h: Likewise.
3763         * tests/test-alloca-opt.c: Likewise.
3764         * tests/test-copy-acl.sh: Likewise.
3765         * tests/test-copy-file.sh: Likewise.
3766         * tests/test-fdatasync.c: Likewise.
3767         * tests/test-file-has-acl.sh: Likewise.
3768         * tests/test-flock.c: Likewise.
3769         * tests/test-fsync.c: Likewise.
3770         * tests/test-localename.c: Likewise.
3771         * tests/test-malloca.c: Likewise.
3772         * tests/test-nonblocking-pipe.h: Likewise.
3773         * tests/test-nonblocking-socket.h: Likewise.
3774         * tests/test-openpty.c: Likewise.
3775         * tests/test-posix_openpt.c: Likewise.
3776         * tests/test-ptsname.c: Likewise.
3777         * tests/test-ptsname_r.c: Likewise.
3778         * tests/test-sameacls.c: Likewise.
3779         * tests/test-select.h: Likewise.
3780         * tests/test-set-mode-acl.sh: Likewise.
3781         * tests/test-snprintf-posix.h: Likewise.
3782         * tests/test-sprintf-posix.h: Likewise.
3783         * tests/test-strtod.c: Likewise.
3784         * tests/test-time.c: Likewise.
3785         * tests/test-vasnprintf-posix.c: Likewise.
3786         * tests/test-vasprintf-posix.c: Likewise.
3787         * doc/acl-resources.txt: Likewise.
3788         * doc/**/*.texi: Likewise.
3789         Reported by Max Horn <max@quendi.de>.
3790
3791 2012-06-22  Bruno Haible  <bruno@clisp.org>
3792
3793         grantpt: Relax requirement regarding invalid file descriptors.
3794         * lib/grantpt.c: Don't include <fcntl.h>.
3795         (grantpt): Don't verify the validity of the file descriptor.
3796         * modules/grantpt (Depends-on): Remove fcntl-h.
3797         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3798         file descriptors.
3799         * doc/posix-functions/grantpt.texi: Document more platforms on which
3800         grantpt succeeds for invalid file descriptors.
3801         Reported by Rich Felker <dalias@aerifal.cx>.
3802
3803 2012-06-22  Bruno Haible  <bruno@clisp.org>
3804
3805         fbufmode test: Don't test unportable behaviour.
3806         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3807         (main): Invoke it three times.
3808         Reported by Szabolcs Nagy <nsz@port70.net>
3809         and Rich Felker <dalias@aerifal.cx>.
3810
3811 2012-06-21  Bruno Haible  <bruno@clisp.org>
3812
3813         gnulib-tool: Refactor inctests variable.
3814         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3815         (func_modules_transitive_closure,
3816         func_modules_transitive_closure_separately,
3817         func_import, func_create_testdir): Update.
3818
3819         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3820         * gnulib-tool: Accept option --without-tests.
3821         (func_usage): Document --without-tests option. Rearrange.
3822         (inctests): Normalize according to the mode.
3823         * NEWS: Mention the change.
3824         Suggested by Simon Josefsson.
3825
3826 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3827
3828         parse-duration test: Avoid spurious output.
3829         * tests/test-parse-duration.sh: Reindent with leading tabs.
3830
3831 2012-06-21  Jim Meyering  <meyering@redhat.com>
3832
3833         maint: disable the strncpy prohibition
3834         * cfg.mk: Do not prohibit strncpy here.
3835
3836 2012-06-21  Bruno Haible  <bruno@clisp.org>
3837
3838         nonblocking: Avoid compilation error on mingw64.
3839         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3840         fscanf.
3841         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3842         * modules/vfscanf (configure.ac): Likewise.
3843         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3844         definition only if stdio.h has prepared it.
3845         Reported by Daniel P. Berrange <berrange@redhat.com>.
3846
3847 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3848
3849         gnulib-tool: Use readlink if it is available.
3850         * gnulib-tool (func_readlink): Choose function more appropriately.
3851
3852 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3853
3854         posixtm-tests: port to buggy compiler
3855         Problem reported by Simon Josefsson in
3856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3857         * modules/posixtm-tests (Depends-on): Add stdint.
3858         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3859         Now of type int_least64_t, not int64_t, both because that's
3860         what INT64_C returns and because int_least64_t works even
3861         on 72-bit hosts.
3862         (T): Use INT64_C on constants outside the traditional int range,
3863         to work around compiler bug noted by Simon.
3864
3865         mktime: fix integer overflow in 'configure'-time test
3866         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3867         after integer overflow.  Problem reported by Rich Felker in
3868         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3869         Also, don't look for further instances of a bug if we've already
3870         found one instance; this helps 'configure' run faster.
3871
3872 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3873
3874         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3875         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3876         GetVersionEx correctly.
3877         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3878
3879 2012-06-20  Bruno Haible  <bruno@clisp.org>
3880
3881         fdopen: Allow implementations that don't reject invalid fd arguments.
3882         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3883         succeeds.
3884         Reported by Rich Felker <dalias@aerifal.cx>.
3885
3886 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3887
3888         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3889         bring in LIBINTL.
3890
3891 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3892
3893         init.sh: do not rely on autoupated PWD
3894         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3895         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3896         Although Nelson's bug was not necessarily fixed by this patch,
3897         it seems wise to make the change for safety.
3898         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3899         automagically after 'cd'; this is not reliable on older shells.
3900         (setup_): Fail if we cannot cd to temporary directory.
3901
3902 2012-06-19  Bruno Haible  <bruno@clisp.org>
3903
3904         stat, fstat: Avoid warnings on mingw64.
3905         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3906         redefining.
3907         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3908         Reported by Daniel P. Berrange <berrange@redhat.com>.
3909
3910 2012-06-19  Bruno Haible  <bruno@clisp.org>
3911
3912         stdioext: Add support for musl libc.
3913
3914         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3915         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3916
3917         * m4/fseterr.m4: New file.
3918         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3919         function exists.
3920         * modules/fseterr (Files): Add m4/fseterr.m4.
3921         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3922         __fseterr does not exist.
3923         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3924
3925         * lib/freadable.h: Update comment.
3926
3927         * lib/fwritable.h: Update comment.
3928
3929         * lib/freading.h: Update comment.
3930
3931         * lib/fwriting.h: Update comment.
3932
3933         * m4/freadahead.m4: New file.
3934         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3935         that function exists.
3936         * modules/freadahead (Files): Add m4/freadahead.m4.
3937         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3938         __freadahead does not exist.
3939         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3940
3941         * m4/freadptr.m4: New file.
3942         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3943         function exists.
3944         * modules/freadptr (Files): Add m4/freadptr.m4.
3945         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3946         __freadptr does not exist.
3947         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3948
3949         * m4/freadseek.m4: New file.
3950         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3951         exists.
3952         * modules/freadseek (Files): Add m4/freadseek.m4.
3953         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3954
3955         * lib/fpurge.c (fpurge): Update comment.
3956
3957         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3958
3959 2012-06-19  Bruno Haible  <bruno@clisp.org>
3960
3961         *printf-posix: Put more info into config.log.
3962         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3963         exit code into config.log.
3964
3965 2012-06-19  Bruno Haible  <bruno@clisp.org>
3966
3967         getopt-gnu: Fix exit code overflow in autoconf test.
3968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3969         to keep them below < 128.
3970
3971 2012-06-17  Jim Meyering  <meyering@redhat.com>
3972
3973         maint.mk: fix typo in code to derive GPG key at release time
3974         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3975
3976 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3977
3978         regex: avoid warning when pointers are not long
3979         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3980         and uintptr_t, not long, for portability to hosts where pointers and
3981         long have different sizes.  Issue noted by Daniel P. Berrange in
3982         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3983         and fix suggested by Bruno Haible in
3984         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3985
3986 2012-06-17  Bruno Haible  <bruno@clisp.org>
3987
3988         dummy: Relicense into the public domain.
3989         * modules/dummy (License): Set to "public domain".
3990         Suggested by Reuben Thomas.
3991
3992 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3993
3994         announce-gen: VPATH issues
3995         * build-aux/announce-gen (--srcdir): New option, used to trim the
3996         $srcdir part of the path from $builddir to NEWS.
3997         * top/maint.mk (announcement): Adjust.
3998
3999 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4000
4001         gnu-web-doc-update: VPATH builds
4002         * build-aux/gnu-web-doc-update (--builddir): New option.
4003         Revamp the handling of options.
4004         Prefer $(...) to `...`.
4005         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4006         the template, and it is GNU mktemp specific.
4007         Prefer set -e to long series of &&.
4008         Restore the initial git branch, not "master".
4009         Properly initialize submodules (don't rely only on bootstrap).
4010         Do not reconfigure blindly, use config.status.
4011         * top/README-release: Update instructions for gnu-web-doc-update.
4012
4013 2012-06-11  Jim Meyering  <meyering@redhat.com>
4014
4015         maint.mk: revert most of the previous change re "all these"
4016         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4017         For rationale, see the discussion at
4018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4019
4020 2012-06-10  Karl Berry  <karl@gnu.org>
4021
4022         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4023
4024         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4025
4026 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4027
4028         parse-duration: Relicense under LGPLv2+.
4029         * modules/parse-duration (License): Change to LGPLv2+.
4030
4031 2012-06-10  Jim Meyering  <meyering@redhat.com>
4032
4033         maint.mk: prohibit common grammar error: "all these"
4034         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4035         the list of prohibited word sequences.  It should be "all of these".
4036         * lib/tempname.c (__gen_tempname): Fix one of them.
4037
4038 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4039
4040         do-release-commit-and-tag: support VPATH builds
4041         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4042         (noteworthy): Defined earlier to factor its value.
4043         (noteworthy_stub): New.
4044         Use it to factor.
4045         (help_version): Split into...
4046         (help, version): these.
4047         Adjust the option processing part.
4048         Support "--option=value" in addition to "--option value".
4049         (builddir): New.
4050         (--builddir): New option.
4051         * top/README-release: Document this.
4052         Reword slightly so that the reader cannot understand that he
4053         has to do these steps before calling do-release-commit-and-tag.
4054
4055 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4056
4057         readme-release: also require announce-gen and maintainer-makefile
4058         * modules/readme-release (Depends-on): here.
4059         * modules/announce-gen, modules/do-release-commit-and-tag,
4060         modules/gnu-web-doc-update, modules/maintainer-makefile
4061         (Description): Point to readme-release.
4062
4063 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4064
4065         maint.mk: fix VPATH issues.
4066         * top/maint.mk (news-check): GNU Make understand $< very well.
4067         (release-prep): NEWS is in $(srcdir).
4068
4069 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4070
4071         readme-release: require the promoted modules.
4072         * modules/readme-release (Depends-on): Add
4073         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4074         in this text.
4075
4076 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4077             Bruno Haible  <bruno@clisp.org>
4078
4079         error, strerror-override: Support mingw64 from Fedora 17.
4080         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4081         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4082         EINPROGRESS.
4083         * lib/strerror-override.h (strerror_override): Test it.
4084         * lib/strerror-override.c (strerror_override): Likewise.
4085         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4086
4087 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4088             Bruno Haible  <bruno@clisp.org>
4089
4090         error, strerror-override: Support mingw64 from Fedora 17.
4091         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4092         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4093         * lib/strerror-override.h (strerror_override): Test it.
4094         * lib/strerror-override.c (strerror_override): Likewise.
4095
4096 2012-06-03  Bruno Haible  <bruno@clisp.org>
4097
4098         error, strerror-override: Support new errno values from POSIX:2008.
4099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4100         ENOTRECOVERABLE.
4101         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4102         platforms.
4103         * lib/strerror-override.c (strerror_override): Conditionalize the
4104         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4105         * lib/strerror-override.h (strerror_override): Declare also if
4106         GNULIB_defined_EOWNERDEAD is defined.
4107         * tests/test-errno.c (e130, e131): New variables.
4108         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4109         ENOTRECOVERABLE.
4110         Reported by Paolo Bonzini.
4111
4112 2012-05-31  Jim Meyering  <meyering@redhat.com>
4113
4114         savewd: add missing dependency on sys_wait module
4115         * modules/savewd (Depends-on): Add sys_wait, needed at least
4116         for MSVC.  Report and suggested change by Michael Goffioul.
4117
4118 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         system-quote-tests: port to CentOS 5
4121         Problem reported by Tom G. Christensen in
4122         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4123         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4124
4125 2012-05-29  Jim Meyering  <meyering@redhat.com>
4126
4127         maint: fix typos in comments and ChangeLog
4128         Culprits identified and fixed mostly automatically using these commands:
4129         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4130         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4131         using http://github.com/lyda/misspell-check
4132         * ChangeLog: Fix typos.
4133         * doc/solaris-versions: Likewise.
4134         * lib/regexec.c (re_search_stub): Likewise.
4135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4136
4137 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4138
4139         manywarnings: remove duplicate -Wmultichar entry
4140         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4141         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4142         so keep the entry marked as documented.
4143
4144 2012-05-27  Karl Berry  <karl@gnu.org>
4145
4146         * config/srclist.txt (mktime.c): remove last libc sync,
4147         perhaps just temporarily.
4148
4149 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4150
4151         regex: don't assume uint64_t or uint32_t
4152         * lib/regcomp.c (init_word_char): Don't assume that the types
4153         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4154         them, and on some 32-bit compilers there is no uint64_t.
4155         Problem reported by Gianluigi Tiesi in
4156         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4157
4158 2012-05-25  Jim Meyering  <meyering@redhat.com>
4159
4160         maint.mk: add strncpy-prohibiting syntax-check rule
4161         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4162
4163 2012-05-24  Jim Meyering  <meyering@redhat.com>
4164
4165         maint.mk: compute $(gpg_key_ID) more portably
4166         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4167         That use of sed is not portable to some fringe systems.
4168         Reported by Paul Eggert in
4169         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4170
4171 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4172
4173         mktime: sync from glibc
4174         * config/srclist.txt: Uncomment mktime.c.
4175         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4176         First, indent with tabs, since glibc uses tabs and doesn't want to
4177         change and we'd rather be identical to glibc.  Also, two small
4178         coding changes:
4179         (isdst_differ): Use &&, not &, as && is the usual style.
4180         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4181         for clarity.
4182
4183 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4184
4185         announce-gen: du -h is more portable than du --human
4186         * build-aux/announce-gen (sizes): Invoke du with -h instead
4187         of --human.  Accept leading white space in its output.
4188
4189 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4190
4191         announce-gen: Improve diagnostics.
4192         * build-aux/announce-gen: When parsing command line options,
4193         prefer "announce-gen: option --release-type requires an argument"
4194         to "Option release-type requires an argument".
4195
4196 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4197
4198         maint.mk: gpg_key_ID: use sed more portably
4199         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4200         the closing brace.
4201         (refresh-po): Fuse two sed invocations into one.
4202
4203 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4204
4205         gitlog-to-changelog: support the log message format used in Bison.
4206         * build-aux/gitlog-to-changelog: Support --strip-tab and
4207         --strip-cherry-picked.
4208
4209 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4210
4211         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4212         the rest of the current time slice to another thread in the current
4213         process. So if the thread that feeds the file decscriptor we're
4214         polling is not in the current process, we get busy-waiting.
4215         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4216         Patch from Theodore Leblond.
4217         * lib/select.c: Split polling out of the loop that sets the output
4218         fd_sets.  Check for zero result and loop if the wait timeout is
4219         infinite.
4220
4221 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4222
4223         select: Fix build error on IRIX 6.5.
4224         * lib/select.c: Include stddef.h for NULL.
4225
4226 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4227
4228         gc: fix libgcrypt detection on older machines.
4229         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4230         copyright years because the file has been distributed every year
4231         since it was created.
4232
4233 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4234
4235         crypto: fix bug in large buffer handling
4236         Problem reported by Serge Belyshev for glibc in
4237         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4239         * lib/md4.c (md4_process_block):
4240         * lib/md5.c (md5_process_block):
4241         * lib/sha1.c (sha1_process_block):
4242         * lib/sha256.c (sha256_process_block):
4243         Don't assume the buffer length is less than 2**32.
4244         * lib/sha512.c (sha512_process_block): Likewise.
4245         Here, the bug is present only in the rare case where the host does
4246         not support uint64_t or where size_t is wider than 64 bits.
4247         Use u64size to work around the problems.
4248         * lib/u64.h (u64size): New macro.
4249
4250 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4251
4252         fsusage: fix block size returned on older Linux 2.6
4253
4254         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4255         which is available since Linux 2.6.
4256         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4257         when the member is available so it can be used as a fallback.
4258         * doc/posix-functions/statvfs.texi: Mention the hang issue
4259         on Linux < 2.6.36.
4260
4261 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4262
4263         bootstrap: suppress stderr chatter
4264         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4265         Omit unnecessary chatter to stderr.  The main program chatter
4266         was there only inadvertantly.
4267
4268         bootstrap: .gitignore files created by autopoint, libtool
4269         I ran into this problem when bootstrapping the latest diffutils.
4270         After './bootstrap', 'git status' reported lots of untracked files
4271         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4272         autopoint and do not need to be version-controlled.
4273         * build-aux/bootstrap: Put into .gitignore the files that
4274         autopoint and libtool create, by keeping track of files that exist
4275         after but not before these programs are run.
4276         (version_controlled_file): Move up.  2nd arg is now full file
4277         name, not base name; this is more convenient.  Put CVS at the end,
4278         as it's now somewhat deprecated.
4279
4280 2012-05-14  Jim Meyering  <meyering@redhat.com>
4281
4282         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4283         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4284         definition.  Reported by Bruno Haible.
4285
4286 2012-05-13  Bruno Haible  <bruno@clisp.org>
4287             Paul Eggert  <eggert@cs.ucla.edu>
4288
4289         binary-io: Define set_binary_mode function.
4290         * lib/binary-io.h (set_binary_mode): New function.
4291         (SET_BINARY): Define in terms of set_binary_mode.
4292         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4293         * tests/test-binary-io.c (main): Accept an argument, and test either
4294         set_binary_mode or SET_BINARY depending on the argument.
4295         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4296         argument. Clean up also t-bin-out0.tmp.
4297
4298 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4299
4300         bootstrap: take advantage of POSIX shell features
4301
4302         The 'bootstrap' script offered by Gnulib script already uses POSIX
4303         shell features (like $((...)) arithmetic expansions) that are not
4304         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4305         means that bootstrap must already be run using a proper POSIX shell,
4306         which will thus provide more features, like ${var#pattern} parameter
4307         expansion or inversion of a command exit status with '!'.  We can
4308         thus use these features to improve the clarity and the performances
4309         of the bootstrap script.
4310
4311         Suggested by Eric Blake.
4312
4313         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4314         of sed/expr plus command substitutions, to save some forks.  While
4315         we are at it, prefer the POSIX $(...) form of command substitution,
4316         rather than the legacy form `...` (since the former is visually
4317         clearer and interacts better with quoting), and prefer the idiom:
4318           "if ! CMD; then ACTION ..."
4319         over the idiom:
4320           "if CMD; then :; else ACTION ..."
4321         which was required by legacy Bourne shells not supporting '!'.
4322
4323 2012-05-12  Bruno Haible  <bruno@clisp.org>
4324
4325         system-quote: Add more comments.
4326         * lib/system-quote.h: Add more comments about wilcards and limitations.
4327         Suggested by Eli Zaretskii <eliz@gnu.org>.
4328
4329         sh-quote, system-quote: Add comments about wildcards.
4330         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4331         * lib/system-quote.h: Likewise.
4332         Reported by Eli Zaretskii <eliz@gnu.org>.
4333
4334 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4335
4336         fsusage: check for GNU/Linux statvfs problem dynamically
4337         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4338         Define STAT_STATFS2_BSIZE too, since in this case the code now
4339         checks dynamically whether statvfs is reliable, falling back on
4340         Linux-style statfs otherwise.
4341         (statvfs_works): New function, for dynamically testing statvfs.
4342         (get_fs_usage) [STAT_STATVFS]: Use it.
4343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4344         statvfs on GNU/Linux hosts, since it's now done dynamically.
4345
4346 2012-05-10  Bruno Haible  <bruno@clisp.org>
4347
4348         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4349         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4350         '?' character.
4351         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4352         * tests/test-system-quote-main.c (check_all): Check also strings like
4353         "??????????".
4354         Reported by Eli Zaretskii <eliz@gnu.org>.
4355
4356 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         _Noreturn: port config.h to gcc -Wundef
4359         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4360         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4361         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4362
4363 2012-05-10  Bruno Haible  <bruno@clisp.org>
4364
4365         system-quote: Refactor.
4366         * lib/system-quote.h (system_quote_copy): Fix comment.
4367         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4368         New functions, extracted from system_quote_copy.
4369         (system_quote_length, system_quote_copy): Use these functions.
4370         Reported by Paul Eggert.
4371
4372 2012-05-08  Bruno Haible  <bruno@clisp.org>
4373
4374         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4375         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4376
4377 2012-05-08  Bruno Haible  <bruno@clisp.org>
4378
4379         Tests for module 'system-quote'.
4380         * modules/system-quote-tests: New file.
4381         * tests/test-system-quote.sh: New file.
4382         * tests/test-system-quote-main.c: New file.
4383         * tests/test-system-quote-child.c: New file.
4384
4385         New module 'system-quote'.
4386         * lib/system-quote.h: New file.
4387         * lib/system-quote.c: New file.
4388         * modules/system-quote: New file.
4389
4390 2012-05-08  Bruno Haible  <bruno@clisp.org>
4391
4392         sh-quote: Make C++ safe and allow multiple inclusion.
4393         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4394         declarations in extern "C".
4395
4396 2012-05-08  Bruno Haible  <bruno@clisp.org>
4397
4398         sh-quote tests: Make tests stricter.
4399         * tests/test-sh-quote.c (check_one): Check the return value of
4400         shell_quote_copy.
4401         (main): Check a string with a CR character. Check a string that
4402         contains UCHAR_MAX.
4403
4404 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4405
4406         warnings.m4: provide a means to specify the program to compile.
4407         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4408         (gl_WARN_ADD): here.
4409         Use gl_AS_VAR_APPEND.
4410         Support an argument to specify the program to compile.
4411         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4412         AC_SUBST the WARN_CFLAGS when they are used.
4413         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4414         leave this to gl_WARN_ADD.
4415
4416 2012-05-08  Eric Blake  <eblake@redhat.com>
4417
4418         doc: recommendations on gettext version
4419         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4420         choice between versions.
4421         * DEPENDENCIES (gettext): Cover both approaches.
4422
4423 2012-05-08  Jim Meyering  <meyering@redhat.com>
4424
4425         init.sh: explain why EXEEXT support uses aliases rather than functions
4426         * tests/init.sh: Add a comment.
4427
4428         init.sh: don't let bash aliases interfere with tests
4429         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4430         is bash.  This avoids problems for those who alias standard commands to
4431         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4432         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4433
4434 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4435
4436         stdint: be more consistent with glibc, SunOS libc
4437         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4438         (gl_int_fast16_t, gl_uint_fast16_t)
4439         (gl_int_fast32_t, gl_uint_fast32_t)
4440         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4441         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4442         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4443         Be consistent with glibc by default, and with SunOS 5.10 and later
4444         if __sun is defined.  This lessens the likelihood of clashes if
4445         code compiled for older hosts is combined with code compiled for
4446         newer ones.  Problem reported by Niels Möller in
4447         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4448
4449 2012-05-07  Eric Blake  <eblake@redhat.com>
4450
4451         isatty: relax license to LGPLv2+
4452         * modules/isatty (License): Relax license.
4453
4454 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4455
4456         stat-size: comment fix
4457         * lib/stat-size.h: Remove obsolete comment about indenting.
4458
4459 2012-05-06  Bruno Haible  <bruno@clisp.org>
4460
4461         Tests for module 'sh-quote'.
4462         * modules/sh-quote-tests: New file.
4463         * tests/test-sh-quote.c: New file.
4464
4465 2012-05-06  Bruno Haible  <bruno@clisp.org>
4466
4467         sh-quote: Improve shell_quote_argv's signature.
4468         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4469         * lib/sh-quote.c (shell_quote_argv): Likewise.
4470
4471 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4472
4473         stdint: document issues with int_fast8_t etc.
4474         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4475         stdint.h substitutes may define these types differently.  See
4476         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4477
4478 2012-05-05  Bruno Haible  <bruno@clisp.org>
4479
4480         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4482         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4483         or 'guessing no (mishandles large arguments)'.
4484
4485 2012-05-05  Bruno Haible  <bruno@clisp.org>
4486
4487         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4488         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4489         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4490         set gl_cv_func_link_follows_symlink to "guessing no".
4491
4492 2012-05-05  Bruno Haible  <bruno@clisp.org>
4493
4494         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4495         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4496         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4497         "guessing no".
4498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4499
4500 2012-05-05  Bruno Haible  <bruno@clisp.org>
4501
4502         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4503         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4504         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4505         set gl_cv_struct_dirent_d_ino to "guessing yes".
4506
4507 2012-05-05  Bruno Haible  <bruno@clisp.org>
4508
4509         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4510         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4511         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4512         "guessing yes".
4513
4514 2012-05-05  Bruno Haible  <bruno@clisp.org>
4515
4516         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4517         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4518         compiling to a glibc system, set gl_cv_func_signbit and
4519         gl_cv_func_signbit_gcc to "guessing yes".
4520
4521 2012-05-05  Bruno Haible  <bruno@clisp.org>
4522
4523         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4524         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4525         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4526         to "guessing yes".
4527         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4528         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4529
4530 2012-05-05  Bruno Haible  <bruno@clisp.org>
4531
4532         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4533         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4534         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4535         gl_cv_func_realpath_works to "guessing yes".
4536
4537 2012-05-05  Bruno Haible  <bruno@clisp.org>
4538
4539         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4540         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4541         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4542
4543 2012-05-04  Bruno Haible  <bruno@clisp.org>
4544
4545         Tweak last commit.
4546         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4547         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4548
4549 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4550
4551         unistd_h: make it easier to avoid sys_types_h
4552         This is useful for Emacs, which has its own method of porting to
4553         Windows, and which therefore does not need the sys_types_h module.
4554         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4555         code moved here from gl_SYS_TYPES_H.
4556         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4557         using the code directly.
4558         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4559         gl_SYS_TYPES_H.
4560         * modules/sys_types (Files):
4561         * modules/unistd (Files): Add m4/off_t.m4.
4562
4563 2012-05-03  Bruno Haible  <bruno@clisp.org>
4564
4565         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4566         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4567         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4568         "guessing yes" or "guessing no".
4569         (gl_FUNC_LSTAT): Update.
4570         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4571         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4572         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4573
4574 2012-05-03  Bruno Haible  <bruno@clisp.org>
4575
4576         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4577         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4578         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4580         cross-compiling, choose the first alternative on glibc systems.
4581         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4582
4583 2012-05-03  Bruno Haible  <bruno@clisp.org>
4584
4585         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4586         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4587         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4588
4589 2012-05-03  Bruno Haible  <bruno@clisp.org>
4590
4591         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4592         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4593
4594 2012-05-03  Bruno Haible  <bruno@clisp.org>
4595
4596         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4597         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4598         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4599         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4600         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4601         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4602         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4603         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4604         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4605         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4606         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4607         gl_cv_func_chown_ctime_works to "guessing yes".
4608         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4609         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4610         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4611         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4612         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4614         compiling to glibc systems, set gl_cv_func_open_directory_works to
4615         "guessing yes".
4616         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4617         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4618         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4619         "guessing yes".
4620         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4621         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4622         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4623         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4624         "guessing yes".
4625         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4626         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4627         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4628         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4629         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4630         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4631         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4632         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4633         "guessing yes".
4634         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4635         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4636         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4637         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4638         "guessing yes".
4639         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4640         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4641         "guessing yes".
4642         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4643         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4644         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4645         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4646         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4647         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4648         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4649         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4650         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4651         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4652         "guessing yes".
4653         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4654         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4655         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4656         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4657         "guessing yes".
4658         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4659         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4660         "guessing yes".
4661         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4662         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4663         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4664         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4665         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4666         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4667         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4668         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4669         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4670         "guessing yes".
4671         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4672         compiling to glibc systems, set gl_cv_func_mknod_works to
4673         "guessing yes".
4674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4675         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4676         "guessing yes".
4677         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4678         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4679         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4680         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4681         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4682         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4683         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4684         compiling to glibc systems, set gl_cv_func_svid_putenv to
4685         "guessing yes".
4686         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4687         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4688         "guessing yes".
4689         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4690         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4691         "guessing yes".
4692         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4693         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4694         to "guessing yes".
4695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4696         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4697         to "guessing yes".
4698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4699         compiling to glibc systems, set gl_cv_func_rmdir_works to
4700         "guessing yes".
4701         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4702         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4703         gl_cv_func_unlink_parent_fails to "guessing yes".
4704         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4705         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4706         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4707         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4708         gl_cv_func_rename_dest_works to "guessing yes".
4709         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4710         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4712         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4713         "guessing yes".
4714         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4715         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4716         "guessing yes".
4717         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4718         compiling to glibc systems, set gl_cv_func_setenv_works to
4719         "guessing yes".
4720         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4721         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4722         "guessing yes".
4723         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4724         compiling to glibc systems, set gl_cv_func_sleep_works to
4725         "guessing yes".
4726         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4727         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4728         "guessing yes".
4729         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4730         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4731         "guessing yes".
4732         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4733         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4734         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4735         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4736         "guessing yes".
4737         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4738         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4739         "guessing yes".
4740         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4741         compiling to glibc systems, set gl_cv_func_usleep_works to
4742         "guessing yes".
4743         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4744         compiling to glibc systems, set gl_cv_func_futimesat_works to
4745         "guessing yes".
4746
4747 2012-05-03  Bruno Haible  <bruno@clisp.org>
4748
4749         Say "guessing yes" or "guessing no" when cross-compiling.
4750         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4751         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4752         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4753         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4754         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4755         am_cv_func_working_getline to "guessing yes" or "guessing no".
4756         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4757         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4758         (gl_FUNC_MEMMEM): When cross-compiling, set
4759         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4761         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4763         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4764         "guessing no".
4765         (gl_FUNC_STRCASESTR): When cross-compiling, set
4766         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4767         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4768         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4769         (gl_FUNC_STRSTR): When cross-compiling, set
4770         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4771         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4772         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4773         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4774         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4775
4776 2012-05-01  Bruno Haible  <bruno@clisp.org>
4777
4778         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4779         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4780         * build-aux/reloc-ldflags: Likewise.
4781         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4782
4783 2012-05-01  Bruno Haible  <bruno@clisp.org>
4784
4785         gnulib-tool: Remove transitional code.
4786         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4787         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4788
4789 2012-05-01  Bruno Haible  <bruno@clisp.org>
4790
4791         getcwd: Fix misindentation.
4792         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4793
4794 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4795
4796         exclude: process exclude and include directives in order
4797         This restores the pre-2009 behavior, and is part of a fix of a
4798         grep bug reported by Quentin Arce in
4799         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4800         * lib/exclude.c (struct exclude): Remove 'tail' member.
4801         (new_exclude_segment): Prepend the new segment instead of appending.
4802         Return void, since that's now more convenient.
4803         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4804         (file_name_matches): Renamed from excluded_file_name_p.
4805         (file_pattern_matches, file_name_matches):
4806         Return true if the pattern matches, not if it excludes.
4807         All callers changed.
4808         (excluded_file_name): Process the list in reverse order;
4809         since the list is now reversed this restores the pre-2009 behavior.
4810         (add_exclude): Adjust to new reversed-order list.  Use local var
4811         rather than macro, for clarity.
4812         * tests/test-exclude7.sh: Adjust to corrected behavior.
4813
4814         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4815         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4816         it's not possible here.  Handle the case of \ at end of pattern
4817         without dumping core.
4818         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4819
4820         _Noreturn: future-proof non-GNU and non-MSVC compilers
4821         * build-aux/snippet/_Noreturn.h (_Noreturn):
4822         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4823         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4824         C11 or later.  This is more likely to work with random future C
4825         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4827
4828         exclude: handle wildcards with FNM_EXTMATCH
4829         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4830         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4831         comment that "has wildcards" really means "has or may have
4832         wildcards".  Simplify by avoiding the need to call strcspn.
4833
4834 2012-04-29  Bruno Haible  <bruno@clisp.org>
4835
4836         gnulib-tool: Fix list of authors.
4837         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4838
4839 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4840
4841         bootstrap: support Automake-NG in $buildreq
4842         * bootstrap (check_versions): Handle automake and aclocal from
4843         Automake-NG specially.  They can be specified as respectively
4844         the "automake-ng" and "aclocal-ng" requirements.
4845
4846 2012-04-25  Eric Blake  <eblake@redhat.com>
4847
4848         bootstrap: only force latest Makefile.in.in for gettext module
4849         * build-aux/bootstrap (with_gettext): Only install latest
4850         Makefile.in.in for projects requesting bleeding edge gettext.
4851
4852 2012-04-22  Bruno Haible  <bruno@clisp.org>
4853
4854         doc: Mention reason for replacement on glibc/Linux systems.
4855         * doc/posix-functions/dprintf.texi: Mention the problem with special
4856         'long double' values.
4857         * doc/posix-functions/fprintf.texi: Likewise.
4858         * doc/posix-functions/printf.texi: Likewise.
4859         * doc/posix-functions/snprintf.texi: Likewise.
4860         * doc/posix-functions/sprintf.texi: Likewise.
4861         * doc/posix-functions/vdprintf.texi: Likewise.
4862         * doc/posix-functions/vfprintf.texi: Likewise.
4863         * doc/posix-functions/vprintf.texi: Likewise.
4864         * doc/posix-functions/vsnprintf.texi: Likewise.
4865         * doc/posix-functions/vsprintf.texi: Likewise.
4866         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4867         platforms with F_DUPFD_CLOEXEC problems.
4868         * doc/posix-functions/glob.texi: Mention which platforms are affected
4869         by the problem with symbolic links.
4870         * doc/posix-functions/linkat.texi: Mention the problem with
4871         AT_SYMLINK_FOLLOW on Linux.
4872
4873 2012-04-22  Bruno Haible  <bruno@clisp.org>
4874
4875         pwrite: Don't replace on all platforms.
4876         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4877
4878 2012-04-22  Bruno Haible  <bruno@clisp.org>
4879
4880         rint* tests: Avoid gcc warnings.
4881         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4882         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4883         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4884
4885 2012-04-21  Bruno Haible  <bruno@clisp.org>
4886
4887         users.txt: Update.
4888         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4889         switched from CVS to git, bzr, or svn.
4890
4891 2012-04-21  Bruno Haible  <bruno@clisp.org>
4892
4893         Large File Support for native Windows platforms.
4894
4895         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4896         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4897
4898         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4899         type.
4900         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4901         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4902         * doc/posix-headers/sys_types.texi: Mention the effect of the
4903         'largefile' module.
4904
4905         * lib/fcntl.in.h: Add comments about off_t.
4906         * modules/fcntl-h (Depends-on): Add sys_types.
4907
4908         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4909         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4910         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4911         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4912         * modules/unistd (Depends-on): Add sys_types.
4913         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4914
4915         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4916         instead of lseek.
4917         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4918         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4919         * modules/lseek (Depends-on): Add sys_types.
4920
4921         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4922         msvc-nothrow.h.
4923         (SetFileSize): New function.
4924         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4925         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4926         if Large File Support is requested.
4927         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4928         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4929
4930         * lib/stdio.in.h: Add comments about off_t.
4931         * modules/stdio (Depends-on): Add sys_types.
4932
4933         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4934         instead of ftello.
4935         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4936         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4937         (gl_PREREQ_FTELLO): New macro.
4938         * modules/ftello (Depends-on): Add sys_types.
4939         (configure.ac): Incoke gl_PREREQ_FTELLO.
4940
4941         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4942         instead of fseeko.
4943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4944         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4945         (gl_PREREQ_FSEEKO): New macro.
4946         * modules/fseeko (Depends-on): Add sys_types.
4947         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4948
4949         * lib/sys_stat.in.h: Add comments about off_t.
4950         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4951         64-bit integer for st_size in 'struct stat'.
4952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4953         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4954         * modules/sys_stat (Depends-on): Add sys_types.
4955         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4956
4957         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4958         instead of stat or _stat.
4959
4960         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4961         'struct _stati64' instead of fstat and 'struct stat'.
4962         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4963         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4964
4965         Reported by Ray Satiro <raysatiro@yahoo.com>.
4966
4967 2012-04-19  Eric Blake  <eblake@redhat.com>
4968
4969         bootstrap: accommodate older libtool
4970         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4971         Reported by Daniel P. Berrange.
4972
4973 2012-04-19  Jim Meyering  <meyering@redhat.com>
4974
4975         announce-gen: avoid failure due to lack of Digest::SHA1
4976         Even with the preferred Digest::SHA available, this script
4977         would fail when the backup module, Digest::SHA1, was not installed.
4978         * build-aux/announce-gen: Quote the conditional use of "use".
4979         Reported by Reuben Thomas in:
4980         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4981
4982         bootstrap: don't let a user's CDPATH setting affect this script
4983         When CDPATH is set, cd will sometimes generate output.
4984         When "cd" is run in a subshell whose output matters, that
4985         surprising-to-some output can cause malfunction.
4986         Unsetting CDPATH turns off this shell "feature."
4987         * build-aux/bootstrap (CDPATH): Unset.
4988         Reported by Reuben Thomas in:
4989         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4990         and inspired by his patch here:
4991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4992
4993 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4994         and Jim Meyering  <meyering@redhat.com>
4995
4996         maint.mk: catch "see @xref{}" and similar
4997         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4998         prohibit "See also @xref{", "Also see @pxref{", and similar.
4999
5000 2012-04-16  Jim Meyering  <meyering@redhat.com>
5001
5002         bootstrap: really use gnulib's po/Makefile.in.in
5003         * build-aux/bootstrap: Correct the source file name in previous change.
5004         Reported by Akim Demaille.
5005
5006         configmake: correct minor inconsistency in Makefile rule
5007         * modules/configmake (Makefile.am): All other rules like this one
5008         run the final "mv -f ..." in the same backslash-continued command
5009         as the one that does everything else.  This one put the mv -f ...
5010         command on a separate, non-backslash-continued line.
5011         Make it like the others.
5012
5013         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5014         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5015         the one from gettext.  Reported by Akim Demaille.
5016
5017 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5018
5019         Fix recursion of install-* into po directories.
5020         Bison's install-pdf bug reported by Hans Aberg at
5021         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5022         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5023         (install-info, install-pdf, install-ps): New targets.
5024
5025 2012-04-16  Jim Meyering  <meyering@redhat.com>
5026
5027         maint: avoid spurious "make sc_maint" failure
5028         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5029         exempt all *.class file names, for lib/javaversion.class.
5030
5031 2012-04-15  Bruno Haible  <bruno@clisp.org>
5032
5033         lseek: Make configure test independent of environment.
5034         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5035         Windows, we know that lseek() on pipes is broken; skip the runtime
5036         test.
5037
5038 2012-04-14  Bruno Haible  <bruno@clisp.org>
5039
5040         stat: Bypass buggy override in mingw64.
5041         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5042         * lib/stat.c (stat) [mingw64]: Define to _stat.
5043         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5044
5045 2012-04-14  Bruno Haible  <bruno@clisp.org>
5046
5047         pathmax: Fix compilation error on MSVC 9.
5048         * modules/pathmax (Depends-on): Add unistd.
5049
5050 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5051
5052         README: document pointer comparison assumption
5053         * README (Portability guidelines): Document assumption about
5054         pointer comparisons, in response to a recent bug-gnulib comment by
5055         Jeffrey Kegler.
5056
5057 2012-04-12  Bruno Haible  <bruno@clisp.org>
5058
5059         Tests for module 'getrusage'.
5060         * modules/getrusage-tests: New file.
5061         * tests/test-getrusage.c: New file.
5062
5063         New module 'getrusage'.
5064         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5065         warn-on-use.h.
5066         (getrusage): New declaration.
5067         * lib/getrusage.c: New file.
5068         * m4/getrusage.m4: New file.
5069         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5070         is declared.
5071         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5072         HAVE_GETRUSAGE.
5073         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5074         snippet/c++defs, snippet/warn-on-use.
5075         (Makefile.am): Update generation of sys/resource.h. Substitute
5076         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5077         * modules/getrusage: New file.
5078         * doc/posix-functions/getrusage.texi: Mention the new module.
5079
5080 2012-04-12  Bruno Haible  <bruno@clisp.org>
5081
5082         Tests for module 'sys_resource'.
5083         * modules/sys_resource-tests: New file.
5084         * tests/test-sys_resource.c: New file.
5085
5086         New module 'sys_resource'.
5087         * lib/sys_resource.in.h: New file.
5088         * m4/sys_resource_h.m4: New file.
5089         * modules/sys_resource: New file.
5090         * doc/posix-headers/sys_resource.texi: Mention the new module.
5091
5092 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5093
5094         ioctl: Fix compilation error on mingw.
5095         * lib/ioctl.c: Include <windows.h>.
5096         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5097
5098 2012-04-04  Jim Meyering  <meyering@redhat.com>
5099
5100         regex: correct #pragma guard expression
5101         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5102         not 4.3.  Correct its cpp guard expression.
5103
5104 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5105
5106         regex: remove unnecessary type punning
5107         Problem reported by Vladimir Serbinenko in
5108         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5109         * lib/regex.h (struct re_pattern_buffer): Change the type of
5110         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5111         Fix comment to match code.
5112         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5113         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5114         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5115         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5116         (set_regs):
5117         Omit no-longer-necessary casts.
5118
5119 2012-04-03  Bruno Haible  <bruno@clisp.org>
5120
5121         Tests for module 'ilogbl'.
5122         * modules/ilogbl-tests: New file.
5123         * tests/test-ilogbl.c: New file.
5124
5125         New module 'ilogbl'.
5126         * lib/math.in.h (ilogbl): New declaration.
5127         * lib/ilogbl.c: New file.
5128         * m4/ilogbl.m4: New file.
5129         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5131         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5132         Split sed invocation, to avoid the limit of 100 substitutions of
5133         HP-UX 'sed'.
5134         * modules/ilogbl: New file.
5135         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5136         * doc/posix-functions/ilogbl.texi: Mention the new module.
5137
5138 2012-04-03  Bruno Haible  <bruno@clisp.org>
5139
5140         Tests for module 'ilogbf'.
5141         * modules/ilogbf-tests: New file.
5142         * tests/test-ilogbf.c: New file.
5143
5144         New module 'ilogbf'.
5145         * lib/math.in.h (ilogbf): New declaration.
5146         * lib/ilogbf.c: New file.
5147         * m4/ilogbf.m4: New file.
5148         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5150         REPLACE_ILOGBF.
5151         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5152         REPLACE_ILOGBF.
5153         * modules/ilogbf: New file.
5154         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5155         * doc/posix-functions/ilogbf.texi: Mention the new module.
5156
5157 2012-04-03  Bruno Haible  <bruno@clisp.org>
5158
5159         Tests for module 'ilogb'.
5160         * modules/ilogb-tests: New file.
5161         * tests/test-ilogb.c: New file.
5162         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5163         tests/test-logb-ieee.h.
5164
5165         New module 'ilogb'.
5166         * lib/math.in.h (ilogb): New declaration.
5167         * lib/ilogb.c: New file.
5168         * m4/ilogb.m4: New file.
5169         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5171         REPLACE_ILOGB.
5172         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5173         REPLACE_ILOGB.
5174         * modules/ilogb: New file.
5175         * tests/test-math-c++.cc: Check the declaration of ilogb.
5176         * doc/posix-functions/ilogb.texi: Mention the new module.
5177
5178 2012-04-03  Bruno Haible  <bruno@clisp.org>
5179
5180         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5181         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5182         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5183         (main): Check their values.
5184         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5185         problem.
5186
5187 2012-04-03  Bruno Haible  <bruno@clisp.org>
5188
5189         Tests for module 'logbl-ieee'.
5190         * modules/logbl-ieee-tests: New file.
5191         * tests/test-logbl-ieee.c: New file.
5192
5193         New module 'logbl-ieee'.
5194         * modules/logbl-ieee: New file.
5195
5196         Tests for module 'logb-ieee'.
5197         * modules/logb-ieee-tests: New file.
5198         * tests/test-logb-ieee.c: New file.
5199
5200         New module 'logb-ieee'.
5201         * modules/logb-ieee: New file.
5202
5203         Tests for module 'logbf-ieee'.
5204         * modules/logbf-ieee-tests: New file.
5205         * tests/test-logbf-ieee.c: New file.
5206         * tests/test-logb-ieee.h: New file.
5207
5208         New module 'logbf-ieee'.
5209         * modules/logbf-ieee: New file.
5210
5211 2012-04-03  Bruno Haible  <bruno@clisp.org>
5212
5213         Tests for module 'logbl'.
5214         * modules/logbl-tests: New file.
5215         * tests/test-logbl.c: New file.
5216
5217         New module 'logbl'.
5218         * lib/math.in.h (logbl): New declaration.
5219         * lib/logbl.c: New file.
5220         * m4/logbl.m4: New file.
5221         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5223         REPLACE_LOGBL.
5224         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5225         REPLACE_LOGBL.
5226         * modules/logbl: New file.
5227         * tests/test-math-c++.cc: Check the declaration of logbl.
5228         * doc/posix-functions/logbl.texi: Mention the new module.
5229
5230 2012-04-02  Bruno Haible  <bruno@clisp.org>
5231
5232         Tests for module 'logbf'.
5233         * modules/logbf-tests: New file.
5234         * tests/test-logbf.c: New file.
5235
5236         New module 'logbf'.
5237         * lib/math.in.h (logbf): New declaration.
5238         * lib/logbf.c: New file.
5239         * m4/logbf.m4: New file.
5240         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5242         REPLACE_LOGBF.
5243         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5244         REPLACE_LOGBF.
5245         * modules/logbf: New file.
5246         * tests/test-math-c++.cc: Check the declaration of logbf.
5247         * doc/posix-functions/logbf.texi: Mention the new module.
5248
5249 2012-04-02  Bruno Haible  <bruno@clisp.org>
5250
5251         logb tests: More tests.
5252         * tests/test-logb.h: New file, based on tests/test-logb.c and
5253         tests/test-frexp.h.
5254         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5255         (main): Just invoke test_function.
5256         * modules/logb-tests (Files): Add tests/test-logb.h,
5257         tests/minus-zero.h, tests/randomd.c.
5258         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5259
5260         logb: Provide replacement and workarounds.
5261         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5262         is 1.
5263         * lib/logb.c: New file.
5264         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5265         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5267         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5268         * modules/logb (Files): Add lib/logb.c.
5269         (Depends-on): Add isfinite, frexp, isnand.
5270         (configure.ac): Compile the replacement code logb.c if needed.
5271         * tests/test-math-c++.cc: Check the declaration of logb.
5272         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5273         with subnormal numbers.
5274
5275 2012-04-02  Bruno Haible  <bruno@clisp.org>
5276
5277         log10* tests: Speed up.
5278         * tests/test-log10.h (test_function): Reduce amount of random numbers
5279         to test.
5280
5281 2012-04-01  Bruno Haible  <bruno@clisp.org>
5282
5283         logf-ieee: Fix test whether logf works.
5284         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5285
5286 2012-04-01  Bruno Haible  <bruno@clisp.org>
5287
5288         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5289         * lib/log10l.c: Include <float.h>
5290         (log10l): On IRIX, normalize the +Infinity value.
5291         * modules/log10l (Depends-on): Add 'float'.
5292         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5293         +Infinity.
5294
5295         log10f-ieee: Work around test failure on NetBSD 5.1.
5296         * m4/log10f-ieee.m4: New file.
5297         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5298         test whether log10f works with a negative argument. Replace it if not.
5299         * lib/log10f.c (log10f): For negative arguments, return NaN.
5300         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5301         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5302         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5303
5304         log10f-ieee: Work around test failure on Solaris 9.
5305         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5306         (configure.ac): Require gl_FUNC_LOG10F.
5307
5308         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5309         * m4/log10-ieee.m4: New file.
5310         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5311         whether log10 works with a negative argument. Replace it if not.
5312         * lib/log10.c (log10): For negative arguments, return NaN.
5313         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5314         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5315         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5316
5317         Tests for module 'log10l-ieee'.
5318         * modules/log10l-ieee-tests: New file.
5319         * tests/test-log10l-ieee.c: New file.
5320
5321         New module 'log10l-ieee'.
5322         * modules/log10l-ieee: New file.
5323
5324         Tests for module 'log10-ieee'.
5325         * modules/log10-ieee-tests: New file.
5326         * tests/test-log10-ieee.c: New file.
5327
5328         New module 'log10-ieee'.
5329         * modules/log10-ieee: New file.
5330
5331         Tests for module 'log10f-ieee'.
5332         * modules/log10f-ieee-tests: New file.
5333         * tests/test-log10f-ieee.c: New file.
5334         * tests/test-log10-ieee.h: New file.
5335
5336         New module 'log10f-ieee'.
5337         * modules/log10f-ieee: New file.
5338
5339 2012-04-01  Bruno Haible  <bruno@clisp.org>
5340
5341         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5342         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5343         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5344         workaround.
5345         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5346         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5348         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5349         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5350         (Depends-on): Update conditions.
5351         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5352         IRIX 6.5, OSF/1 5.1 problems.
5353
5354 2012-04-01  Bruno Haible  <bruno@clisp.org>
5355
5356         log10f: Work around OSF/1 5.1 bug.
5357         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5358         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5359         workaround.
5360         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5361         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5363         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5364         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5365         (Depends-on): Update conditions.
5366         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5367
5368 2012-04-01  Bruno Haible  <bruno@clisp.org>
5369
5370         log10: Work around OSF/1 5.1 bug.
5371         * lib/math.in.h (log10): New declaration.
5372         * lib/log10.c: New file.
5373         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5374         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5375         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5377         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5378         * modules/log10 (Files): Add lib/log10.c.
5379         (Depends-on): Add math.
5380         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5381         * tests/test-math-c++.cc: Check the declaration of log10.
5382         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5383
5384 2012-03-31  Bruno Haible  <bruno@clisp.org>
5385
5386         log10l tests: More tests.
5387         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5388         tests/minus-zero.h, tests/randoml.c.
5389         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5390         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5391         (main): Invoke test_function.
5392
5393         log10f tests: More tests.
5394         * modules/log10f-tests (Files): Add tests/test-log10.h,
5395         tests/minus-zero.h, tests/randomf.c.
5396         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5397         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5398         (main): Invoke test_function.
5399
5400         log10 tests: More tests.
5401         * tests/test-log10.h: New file.
5402         * modules/log10-tests (Files): Add tests/test-log10.h,
5403         tests/minus-zero.h, tests/randomd.c.
5404         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5405         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5406         (main): Invoke test_function.
5407
5408 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5409
5410         fflush: Fix syntax error.
5411         * lib/fflush.c: Include unused-parameter.h, needed for
5412         _GL_UNUSED_PARAMETER.
5413         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5414
5415 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         regex: pacify GCC when compiling GRUB
5418         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5419         a diagnostic.  Reported by Vladimir Serbinenko in
5420         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5421
5422 2012-03-29  Eric Blake  <eblake@redhat.com>
5423
5424         stdio: don't assume gets any more
5425         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5426         support.
5427         * modules/stdio (Makefile.am): Likewise.
5428         * lib/stdio-read.c (gets): Likewise.
5429         * tests/test-stdio-c++.cc: Likewise.
5430         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5431         * lib/stdio.in.h (gets): Make warning occur in more places.
5432         * doc/posix-functions/gets.texi (gets): Update documentation.
5433         Reported by Christer Solskogen.
5434
5435         maint.mk: fix syntax checks without exclusions
5436         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5437         Reported by Daniel P. Berrange.
5438
5439         strerror_r: avoid compiler warning
5440         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5441         level.
5442
5443         fflush: avoid compiler warning
5444         * lib/fflush.c (update_fpos_cache): Mark variables that are
5445         potentially unused.
5446
5447 2012-03-25  Bruno Haible  <bruno@clisp.org>
5448
5449         Tests for module 'localeconv'.
5450         * modules/localeconv-tests: New file.
5451         * tests/test-localeconv.c: New file.
5452
5453         New module 'localeconv'.
5454         * lib/locale.in.h (localeconv): New declaration.
5455         * lib/localeconv.c: New file.
5456         * m4/localeconv.m4: New file.
5457         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5458         REPLACE_LOCALECONV.
5459         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5460         REPLACE_LOCALECONV.
5461         * modules/localeconv: New file.
5462         * modules/nl_langinfo (Depends-on): Add localeconv.
5463         * modules/human (Depends-on): Likewise.
5464         * doc/posix-functions/localeconv.texi: Mention the new module.
5465
5466 2012-03-25  Bruno Haible  <bruno@clisp.org>
5467
5468         locale: Provide a complete 'struct lconv'.
5469         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5470         'struct lconv' does not contain int_p_cs_precedes.
5471         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5472         * doc/posix-headers/locale.texi: Update.
5473
5474         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5475         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5476         * doc/posix-headers/locale.texi: Update.
5477
5478         locale: Provide a working 'struct lconv'.
5479         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5480         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5481         'struct lconv' does not even contain decimal_point.
5482         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5483         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5484         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5485         * doc/posix-headers/locale.texi: Mention the problems with
5486         'struct lconv'.
5487         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5488
5489 2012-03-24  Bruno Haible  <bruno@clisp.org>
5490
5491         Enable common subexpression optimization in GCC.
5492         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5493         macros.
5494         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5495         GCC attribute 'const'.
5496         (uc_locale_language): Declare with GCC attribute 'pure'.
5497         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5498         with GCC attribute 'const'.
5499         * lib/unictype.in.h (uc_is_general_category_withtable,
5500         uc_combining_class, uc_combining_class_name,
5501         uc_combining_class_long_name, uc_bidi_class_name,
5502         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5503         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5504         uc_decimal_value, uc_digit_value, uc_numeric_value,
5505         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5506         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5507         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5508         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5509         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5510         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5511         Declare with GCC attribute 'const'.
5512         (uc_general_category_name, uc_general_category_long_name,
5513         uc_general_category_byname, uc_general_category,
5514         uc_is_general_category, uc_combining_class_byname,
5515         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5516         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5517         Declare with GCC attribute 'pure'.
5518         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5519         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5520         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5521         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5522         with GCC attribute 'pure'.
5523         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5524         'const'.
5525         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5526         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5527         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5528         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5529         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5530         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5531         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5532         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5533         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5534         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5535         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5536         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5537         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5538         GCC attribute 'pure'.
5539         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5540         'const'.
5541         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5542         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5543         u32_strwidth): Declare with GCC attribute 'pure'.
5544
5545         Enable common subexpression optimization in GCC.
5546         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5547         (alphasort): Declare with GCC attribute 'pure'.
5548         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5549         (atoll): Declare with GCC attribute 'pure'.
5550         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5551         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5552         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5553         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5554         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5555         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5556         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5557
5558 2012-03-24  Bruno Haible  <bruno@clisp.org>
5559
5560         gnulib-tool: Avoid unintended error output from 'cmp'.
5561         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5562         "cmp -s", not "cmp > /dev/null".
5563
5564 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5565
5566         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5567
5568         It's not just Automake versions < 1.9b that creates an empty
5569         pkgdatadir at installation time if pkgdata_DATA is specified
5570         to empty; modern automake versions do this as well, at least
5571         until automake 1.11.4 (not yet released at the moment of writing,
5572         but soon to appear).  That behaviour was generally considered a
5573         feature rather than a bug, at least until this discussion:
5574         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5575
5576         See also automake bugs #10997 and #11030.
5577
5578         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5579         reference to relevant automake bug numbers.
5580         (func_emit_tests_Makefile_am): Likewise.
5581
5582 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5583
5584         announce-gen: use Digest::SHA when possible
5585         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5586         back to Digest::SHA1 if necessary.
5587
5588 2012-03-20  Jim Meyering  <meyering@redhat.com>
5589
5590         tests: avoid gcc warnings about argv vs. const initializers
5591         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5592         warnings about discarding 'const' qualifier from pointer target type.
5593         * tests/test-posix_spawn2.c (main): Likewise.
5594
5595 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5596
5597         README-release: simplify slightly
5598         * top/README-release: Run "git checkout master" only once.
5599
5600 2012-03-15  Mark Wielaard  <mark@klomp.org>
5601
5602         git-merge-changelog: add specific example on how to use with hg.
5603         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5604
5605 2012-03-18  Mark Wielaard  <mark@klomp.org>
5606
5607         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5608
5609 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5610
5611         git-version-gen: don't let "prefix" envvar cause trouble
5612         * build-aux/git-version-gen (prefix): Initialize properly,
5613         so as not to use a value specified via the environment.
5614         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5615
5616 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5617
5618         regex: diagnose too-large repeat counts in EREs
5619         Previously, the code did not diagnose the too-large repeat count
5620         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5621         as if it were 'b\{1000000000}', which is unexpected.
5622         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5623         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5624         is a reasonable one for this problem.  Another option would be to
5625         create a new REG_OVERFLOW error for repeat counts that are too large.
5626         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5627         count is too large, so that the caller can distinguish the two cases.
5628         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5629         "Too large" return code, and that repeat counts are one example of this.
5630
5631 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5632
5633         doc: some glibc x32 integer width issues
5634         * doc/posix-headers/sys_types.texi (sys/types.h):
5635         * doc/posix-headers/time.texi (time.h):
5636         Mention that glibc x32 does not conform to POSIX in a couple of
5637         areas related to integer widths.
5638
5639 2012-03-15  Bruno Haible  <bruno@clisp.org>
5640
5641         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5642         * lib/fma.c (VOLATILE): New macro.
5643         (FUNC): Use it to work around a GCC compiler bug.
5644
5645 2012-03-13  Bruno Haible  <bruno@clisp.org>
5646
5647         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5648         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5649         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5650         REPLACE_HYPOTL to 1.
5651         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5652
5653 2012-03-13  Bruno Haible  <bruno@clisp.org>
5654
5655         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5656         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5657         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5658         REPLACE_REMAINDERL to 1.
5659         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5660         bug.
5661
5662 2012-03-13  Bruno Haible  <bruno@clisp.org>
5663
5664         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5665         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5666         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5667         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5668         too big rounding errors.
5669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5670         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5671         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5672         (Depends-on): Update conditions.
5673         * tests/test-sqrtl.c (my_ldexpl): New function.
5674         (main): Add test of a particular value.
5675         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5676
5677 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5678
5679         doc: Update timer_* platform portability notes.
5680         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5681         that always return ENOSYS.
5682         * doc/posix-functions/timer_delete.texi: Likewise.
5683         * doc/posix-functions/timer_gettime.texi: Likewise.
5684         * doc/posix-functions/timer_settime.texi: Likewise.
5685
5686 2012-03-13  Bruno Haible  <bruno@clisp.org>
5687
5688         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5689         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5690         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5691         REPLACE_CBRTL to 1.
5692         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5693
5694 2012-03-13  Bruno Haible  <bruno@clisp.org>
5695
5696         remainderl: Avoid compilation error on AIX >= 5.2.
5697         * lib/math.in.h (remainderl): Undefine macro from the system header.
5698
5699 2012-03-13  Bruno Haible  <bruno@clisp.org>
5700
5701         Avoid compilation errors with MSVC option -fp:strict.
5702         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5703         * lib/cbrtf.c: Likewise.
5704         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5705
5706 2012-03-12  Bruno Haible  <bruno@clisp.org>
5707
5708         uninorm: Don't crash in out-of-memory conditions.
5709         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5710         gracefully.
5711         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5712         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5713
5714 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5715
5716         quote: fix syntax-check
5717         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5718         also exports quote_quoting_options.
5719
5720 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5721
5722         Collapse list of copyright years to ranges.  See
5723         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5724         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5725         build-aux/csharpexec.sh.in, build-aux/gnupload,
5726         build-aux/install-reloc, build-aux/javacomp.sh.in,
5727         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5728         build-aux/move-if-change, build-aux/reloc-ldflags,
5729         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5730
5731 2012-03-11  Bruno Haible  <bruno@clisp.org>
5732
5733         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5734         * m4/log2f-ieee.m4: New file.
5735         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5736         whether log2f works with a minus zero argument. Replace it if not.
5737         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5738         (Depends-on): Add log2-ieee.
5739         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5740         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5741
5742         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5743         * m4/log2-ieee.m4: New file.
5744         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5745         whether log2 works with a minus zero argument. Replace it if not.
5746         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5747         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5748         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5749
5750         Tests for module 'log2l-ieee'.
5751         * modules/log2l-ieee-tests: New file.
5752         * tests/test-log2l-ieee.c: New file.
5753
5754         New module 'log2l-ieee'.
5755         * modules/log2l-ieee: New file.
5756
5757         Tests for module 'log2-ieee'.
5758         * modules/log2-ieee-tests: New file.
5759         * tests/test-log2-ieee.c: New file.
5760
5761         New module 'log2-ieee'.
5762         * modules/log2-ieee: New file.
5763
5764         Tests for module 'log2f-ieee'.
5765         * modules/log2f-ieee-tests: New file.
5766         * tests/test-log2f-ieee.c: New file.
5767         * tests/test-log2-ieee.h: New file.
5768
5769         New module 'log2f-ieee'.
5770         * modules/log2f-ieee: New file.
5771
5772 2012-03-11  Bruno Haible  <bruno@clisp.org>
5773
5774         Tests for module 'log2l'.
5775         * modules/log2l-tests: New file.
5776         * tests/test-log2l.c: New file.
5777
5778         New module 'log2l'.
5779         * lib/math.in.h (log2l): New declaration.
5780         * lib/log2l.c: New file.
5781         * m4/log2l.m4: New file.
5782         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5784         REPLACE_LOG2L.
5785         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5786         REPLACE_LOG2L.
5787         * modules/log2l: New file.
5788         * tests/test-math-c++.cc: Check the declaration of log2l.
5789         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5790         and OSF/1 problems.
5791
5792 2012-03-11  Bruno Haible  <bruno@clisp.org>
5793
5794         Tests for module 'log2f'.
5795         * modules/log2f-tests: New file.
5796         * tests/test-log2f.c: New file.
5797
5798         New module 'log2f'.
5799         * lib/math.in.h (log2f): New declaration.
5800         * lib/log2f.c: New file.
5801         * m4/log2f.m4: New file.
5802         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5804         REPLACE_LOG2F.
5805         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5806         REPLACE_LOG2F.
5807         * modules/log2f: New file.
5808         * tests/test-math-c++.cc: Check the declaration of log2f.
5809         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5810         and OSF/1 and Cygwin problems.
5811
5812 2012-03-11  Bruno Haible  <bruno@clisp.org>
5813
5814         Tests for module 'log2'.
5815         * modules/log2-tests: New file.
5816         * tests/test-log2.c: New file.
5817         * tests/test-log2.h: New file.
5818
5819         New module 'log2'.
5820         * lib/math.in.h (log2): New declaration.
5821         * lib/log2.c: New file.
5822         * m4/log2.m4: New file.
5823         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5825         REPLACE_LOG2.
5826         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5827         REPLACE_LOG2.
5828         * modules/log2: New file.
5829         * tests/test-math-c++.cc: Check the declaration of log2.
5830         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5831         and OSF/1 and Cygwin problems.
5832
5833 2012-03-11  Bruno Haible  <bruno@clisp.org>
5834
5835         exp2* tests: More tests.
5836         * tests/test-exp2.h (test_function): Test all integral arguments that
5837         don't need to overflow or denormalized numbers.
5838         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5839         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5840         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5841
5842 2012-03-10  Bruno Haible  <bruno@clisp.org>
5843
5844         log1pl-ieee: Work around test failure on AIX 7.1.
5845         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5846
5847         log1pl-ieee: Work around test failure on IRIX 6.5.
5848         * m4/log1pl-ieee.m4: New file.
5849         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5850         test whether log1pl works with a minus zero argument. Replace it if
5851         not.
5852         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5854         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5855         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5856         (Depends-on): Update conditions.
5857         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5858         m4/signbit.m4.
5859         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5860         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5861
5862         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5863         * m4/log1pf-ieee.m4: New file.
5864         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5865         test whether log1pf works with a minus zero argument. Replace it if
5866         not.
5867         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5868         m4/signbit.m4.
5869         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5870         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5871
5872         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5873         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5874         (configure.ac): Require gl_FUNC_LOG1PF.
5875
5876         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5877         * m4/log1p-ieee.m4: New file.
5878         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5879         whether log1p works with a minus zero argument. Replace it if not.
5880         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5882         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5883         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5884         (Depends-on): Update conditions.
5885         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5886         m4/signbit.m4.
5887         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5888         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5889
5890         Tests for module 'log1pl-ieee'.
5891         * modules/log1pl-ieee-tests: New file.
5892         * tests/test-log1pl-ieee.c: New file.
5893
5894         New module 'log1pl-ieee'.
5895         * modules/log1pl-ieee: New file.
5896
5897         Tests for module 'log1p-ieee'.
5898         * modules/log1p-ieee-tests: New file.
5899         * tests/test-log1p-ieee.c: New file.
5900
5901         New module 'log1p-ieee'.
5902         * modules/log1p-ieee: New file.
5903
5904         Tests for module 'log1pf-ieee'.
5905         * modules/log1pf-ieee-tests: New file.
5906         * tests/test-log1pf-ieee.c: New file.
5907         * tests/test-log1p-ieee.h: New file.
5908
5909         New module 'log1pf-ieee'.
5910         * modules/log1pf-ieee: New file.
5911
5912 2012-03-10  Bruno Haible  <bruno@clisp.org>
5913
5914         Tests for module 'log1pl'.
5915         * modules/log1pl-tests: New file.
5916         * tests/test-log1pl.c: New file.
5917
5918         New module 'log1pl'.
5919         * lib/math.in.h (log1pl): New declaration.
5920         * lib/log1pl.c: New file.
5921         * m4/log1pl.m4: New file.
5922         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5924         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5925         * modules/log1pl: New file.
5926         * tests/test-math-c++.cc: Check the declaration of log1pl.
5927         * doc/posix-functions/log1pl.texi: Mention the new module.
5928
5929 2012-03-10  Bruno Haible  <bruno@clisp.org>
5930
5931         Tests for module 'log1pf'.
5932         * modules/log1pf-tests: New file.
5933         * tests/test-log1pf.c: New file.
5934
5935         New module 'log1pf'.
5936         * lib/math.in.h (log1pf): New declaration.
5937         * lib/log1pf.c: New file.
5938         * m4/log1pf.m4: New file.
5939         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5941         REPLACE_LOG1PF.
5942         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5943         REPLACE_LOG1PF.
5944         * modules/log1pf: New file.
5945         * tests/test-math-c++.cc: Check the declaration of log1pf.
5946         * doc/posix-functions/log1pf.texi: Mention the new module.
5947
5948 2012-03-10  Bruno Haible  <bruno@clisp.org>
5949
5950         log1p tests: More tests.
5951         * tests/test-log1p.h: New file.
5952         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5953         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5954         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5955         (main): Invoke test_function.
5956
5957         log1p: Provide replacement for Minix and MSVC.
5958         * lib/math.in.h (log1p): New declaration.
5959         * lib/log1p.c: New file.
5960         * m4/log1p.m4: New file.
5961         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5963         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5964         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5965         (Depends-on): Add math, isnand, log, round.
5966         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5967         HAVE_LOG1P is 0.
5968         * tests/test-math-c++.cc: Check the declaration of log1p.
5969         * doc/posix-functions/log1p.texi: Mention the replacement.
5970
5971 2012-03-10  Bruno Haible  <bruno@clisp.org>
5972
5973         math tests: Small simplification.
5974         * tests/test-exp.h (test_function): Use the same err_bound for
5975         'double' on platforms with sizeof (long double) == sizeof (double)
5976         than on platforms with sizeof (long double) > sizeof (double).
5977         * tests/test-exp2.h (test_function): Likewise.
5978         * tests/test-expm1.h (test_function): Likewise.
5979         * tests/test-log.h (test_function): Likewise.
5980
5981 2012-03-10  Bruno Haible  <bruno@clisp.org>
5982
5983         Fix some comments.
5984         * lib/expl.c: Fix an ambiguous comment.
5985         * lib/expm1.c: Likewise.
5986         * lib/expm1l.c: Likewise.
5987         * lib/exp2.c: Likewise.
5988         * lib/exp2l.c: Likewise.
5989
5990 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5991
5992         regex: allow inclusion of <regex.h> before <limits.h>
5993         Without this patch, portable programs had to include <limits.h> before
5994         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5995         I ran into this problem with a test version of GNU grep on Solaris 8.
5996         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5997         This is done conditionally so that this change can be merged
5998         back to glibc.
5999         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6000         using the included regex.
6001
6002         fts: depend on fdopendir
6003         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6004         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6005         problem was introduced when fdopendir was split out.
6006
6007 2012-03-10  Bruno Haible  <bruno@clisp.org>
6008
6009         Remove unused variables.
6010         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6011         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6012
6013 2012-03-10  Bruno Haible  <bruno@clisp.org>
6014
6015         isnanf-nolibm: Fix last commit.
6016         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6017
6018         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6019         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6020
6021 2012-03-10  Bruno Haible  <bruno@clisp.org>
6022
6023         logf-ieee: Work around test failure on NetBSD 5.1.
6024         * m4/logf-ieee.m4: New file.
6025         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6026         whether logf works with a negative argument. Replace it if not.
6027         * lib/logf.c (logf): For negative arguments, return NaN.
6028         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6029         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6030         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6031
6032         logf-ieee: Work around test failure on Solaris 9.
6033         * modules/logf-ieee (Depends-on): Add log-ieee.
6034         (configure.ac): Require gl_FUNC_LOGF.
6035
6036         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6037         * m4/log-ieee.m4: New file.
6038         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6039         log works with a negative argument. Replace it if not.
6040         * lib/log.c (log): For negative arguments, return NaN.
6041         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6042         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6043         * doc/posix-functions/log.texi: Mention the log-ieee module.
6044
6045         Tests for module 'logl-ieee'.
6046         * modules/logl-ieee-tests: New file.
6047         * tests/test-logl-ieee.c: New file.
6048
6049         New module 'logl-ieee'.
6050         * modules/logl-ieee: New file.
6051
6052         Tests for module 'log-ieee'.
6053         * modules/log-ieee-tests: New file.
6054         * tests/test-log-ieee.c: New file.
6055
6056         New module 'log-ieee'.
6057         * modules/log-ieee: New file.
6058
6059         Tests for module 'logf-ieee'.
6060         * modules/logf-ieee-tests: New file.
6061         * tests/test-logf-ieee.c: New file.
6062         * tests/test-log-ieee.h: New file.
6063
6064         New module 'logf-ieee'.
6065         * modules/logf-ieee: New file.
6066
6067 2012-03-10  Bruno Haible  <bruno@clisp.org>
6068
6069         log: Fix bug introduced on 2012-03-09.
6070         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6071
6072 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6073
6074         timer-time: link explicitly with pthreads on glibc
6075         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6076         to support static linking, when newer glibc is
6077         detected, as that contains pthread emulation of
6078         POSIX timer functions where required.
6079         * modules/timer-time: Depend on threadlib to
6080         pull in the appropriate library to link.
6081
6082 2012-03-10  Bruno Haible  <bruno@clisp.org>
6083
6084         log* tests: More tests.
6085         * tests/test-log.h: New file.
6086         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6087         (main): Invoke test_function.
6088         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6089         (main): Invoke test_function.
6090         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6091         (main): Invoke test_function.
6092         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6093         tests/randomd.c.
6094         (Makefile.am): Add randomd.c to test_log_SOURCES.
6095         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6096         tests/randomf.c.
6097         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6098         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6099         tests/randoml.c.
6100         (Depends-on): Add 'float'.
6101         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6102
6103 2012-03-09  Bruno Haible  <bruno@clisp.org>
6104
6105         logl: Work around OSF/1 5.1 bug.
6106         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6107         * lib/logl.c (logl): If logl exists, use it and provide just the
6108         workaround.
6109         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6110         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6112         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6113         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6114         (Depends-on): Update conditions.
6115         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6116
6117 2012-03-09  Bruno Haible  <bruno@clisp.org>
6118
6119         logf: Work around OSF/1 5.1 bug.
6120         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6121         * lib/logf.c (logf): If logf exists, use it and provide just the
6122         workaround.
6123         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6124         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6126         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6127         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6128         (Depends-on): Update conditions.
6129         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6130
6131 2012-03-09  Bruno Haible  <bruno@clisp.org>
6132
6133         log: Work around OSF/1 5.1 bug.
6134         * lib/math.in.h (log): New declaration.
6135         * lib/log.c: New file.
6136         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6137         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6138         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6140         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6141         * modules/log (Files): Add lib/log.c.
6142         (Depends-on): Add math.
6143         (configure.ac): If REPLACE_LOG is 1, compile an override.
6144         * tests/test-math-c++.cc: Check the declaration of log.
6145         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6146
6147 2012-03-09  Jim Meyering  <meyering@redhat.com>
6148
6149         readtokens.c: adjust wording in a comment
6150         * lib/readtokens.c: Insert omitted "that" in a comment.
6151
6152 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         modechange: add notations +40, 00440, etc.
6155         * lib/modechange.c (mode_compile): Support new notations
6156         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6157
6158 2012-03-08  Bruno Haible  <bruno@clisp.org>
6159
6160         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6161         * m4/exp2l-ieee.m4: New file.
6162         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6163         test whether exp2l works with a NaN argument and with a negative
6164         infinity argument. Replace it if not.
6165         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6167         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6168         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6169         (Depends-on): Update conditions.
6170         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6171         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6172         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6173
6174         Tests for module 'exp2l-ieee'.
6175         * modules/exp2l-ieee-tests: New file.
6176         * tests/test-exp2l-ieee.c: New file.
6177
6178         New module 'exp2l-ieee'.
6179         * modules/exp2l-ieee: New file.
6180
6181         Tests for module 'exp2-ieee'.
6182         * modules/exp2-ieee-tests: New file.
6183         * tests/test-exp2-ieee.c: New file.
6184
6185         New module 'exp2-ieee'.
6186         * modules/exp2-ieee: New file.
6187
6188         Tests for module 'exp2f-ieee'.
6189         * modules/exp2f-ieee-tests: New file.
6190         * tests/test-exp2f-ieee.c: New file.
6191         * tests/test-exp2-ieee.h: New file.
6192
6193         New module 'exp2f-ieee'.
6194         * modules/exp2f-ieee: New file.
6195
6196 2012-03-08  Bruno Haible  <bruno@clisp.org>
6197
6198         Tests for module 'exp2l'.
6199         * modules/exp2l-tests: New file.
6200         * tests/test-exp2l.c: New file.
6201
6202         New module 'exp2l'.
6203         * lib/math.in.h (exp2l): New declaration.
6204         * lib/exp2l.c: New file.
6205         * lib/expl-table.c: New file, extracted from lib/expl.c.
6206         * lib/expl.c (gl_expl_table): New declaration.
6207         (expl): Remove expl_table. Update reference.
6208         * m4/exp2l.m4: New file.
6209         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6211         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6212         * modules/exp2l: New file.
6213         * modules/expl (Files): Add lib/expl-table.c.
6214         (configure.ac): Compile also expl-table.c.
6215         * tests/test-math-c++.cc: Check the declaration of exp2l.
6216         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6217         problem.
6218
6219 2012-03-08  Bruno Haible  <bruno@clisp.org>
6220
6221         Tests for module 'exp2f'.
6222         * modules/exp2f-tests: New file.
6223         * tests/test-exp2f.c: New file.
6224
6225         New module 'exp2f'.
6226         * lib/math.in.h (exp2f): New declaration.
6227         * lib/exp2f.c: New file.
6228         * m4/exp2f.m4: New file.
6229         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6231         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6232         * modules/exp2f: New file.
6233         * tests/test-math-c++.cc: Check the declaration of exp2f.
6234         * doc/posix-functions/exp2f.texi: Mention the new module and the
6235         IRIX problem.
6236
6237 2012-03-08  Bruno Haible  <bruno@clisp.org>
6238
6239         Tests for module 'exp2'.
6240         * modules/exp2-tests: New file.
6241         * tests/test-exp2.c: New file.
6242         * tests/test-exp2.h: New file.
6243
6244         New module 'exp2'.
6245         * lib/math.in.h (exp2): New declaration.
6246         * lib/exp2.c: New file.
6247         * m4/exp2.m4: New file.
6248         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6250         REPLACE_EXP2.
6251         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6252         REPLACE_EXP2.
6253         * modules/exp2: New file.
6254         * tests/test-math-c++.cc: Check the declaration of exp2.
6255         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6256         and OpenBSD problems.
6257
6258 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         savedir: fix comment typo
6261         * lib/savedir.c (savedirstream): Fix typo in comment.
6262
6263 2012-03-08  Bruno Haible  <bruno@clisp.org>
6264
6265         test-readtokens.c: use const; remove unwarranted cast
6266         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6267
6268 2012-03-08  Bruno Haible  <bruno@clisp.org>
6269
6270         fmal: Avoid compilation error on AIX.
6271         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6272         AIX 5.2..7.1.
6273
6274 2012-03-08  Bruno Haible  <bruno@clisp.org>
6275
6276         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6277         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6278         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6279         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6280         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6281         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6282         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6283
6284 2012-03-08  Bruno Haible  <bruno@clisp.org>
6285
6286         remainderf: Override buggy system function on IRIX 6.5.
6287         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6288         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6289         when it exists.
6290         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6291
6292 2012-03-08  Jim Meyering  <meyering@redhat.com>
6293
6294         test-readtokens.c: avoid const-related compilation warnings
6295         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6296
6297 2012-03-07  Jim Meyering  <meyering@redhat.com>
6298             Bruno Haible  <bruno@clisp.org>
6299
6300         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6301         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6302         tests/randomd.c.
6303         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6304         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6305         tests/randoml.c.
6306         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6307
6308 2012-03-07  Bruno Haible  <bruno@clisp.org>
6309
6310         expm1l: Avoid compilation error on AIX.
6311         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6312         AIX 5.2..7.1.
6313
6314 2012-03-07  Bruno Haible  <bruno@clisp.org>
6315
6316         expm1l: Don't override undeclared system function on IRIX 6.5.
6317         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6318         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6319         it exists. Set HAVE_DECL_EXPM1L.
6320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6321         HAVE_EXPM1L.
6322         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6323         HAVE_EXPM1L.
6324         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6325
6326 2012-03-07  Bruno Haible  <bruno@clisp.org>
6327
6328         remainderl: Don't override undeclared system function on IRIX 6.5.
6329         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6330         HAVE_REMAINDERL.
6331         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6332         declared when it exists. Set HAVE_DECL_REMAINDERL.
6333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6334         not HAVE_REMAINDERL.
6335         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6336         HAVE_REMAINDERL.
6337         * doc/posix-functions/remainderl.texi: Mention missing declaration
6338         problem.
6339
6340 2012-03-07  Bruno Haible  <bruno@clisp.org>
6341
6342         rintf: Don't override undeclared system function on IRIX 6.5.
6343         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6344         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6345         exists. Set HAVE_DECL_RINTF.
6346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6347         HAVE_RINTF.
6348         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6349         HAVE_RINTF.
6350         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6351
6352 2012-03-07  Bruno Haible  <bruno@clisp.org>
6353
6354         roundl: Avoid compilation error on AIX.
6355         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6356         AIX 5.2..7.1.
6357
6358 2012-03-07  Bruno Haible  <bruno@clisp.org>
6359
6360         roundl: Don't override undeclared system function on IRIX 6.5.
6361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6362         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6363         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6364         * modules/roundl (configure.ac): For replacement code, test
6365         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6366         (Depends-on): Update conditions.
6367         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6368
6369 2012-03-07  Bruno Haible  <bruno@clisp.org>
6370
6371         roundf: Don't override undeclared system function on IRIX 6.5.
6372         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6373         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6374         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6375         * modules/roundf (configure.ac): For replacement code, test
6376         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6377         (Depends-on): Update conditions.
6378         * modules/roundf-ieee (Depends-on): Update conditions.
6379         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6380
6381 2012-03-07  Bruno Haible  <bruno@clisp.org>
6382
6383         round: Don't override undeclared system function on IRIX 6.5.
6384         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6385         argument.
6386         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6387         also when it is not declared. Set HAVE_ROUND. For replacement code,
6388         test HAVE_ROUND, not HAVE_DECL_ROUND.
6389         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6390         not HAVE_DECL_ROUND.
6391         (Depends-on): Update conditions.
6392         * modules/round-ieee (Depends-on): Update conditions.
6393         * doc/posix-functions/round.texi: Mention the IRIX problem.
6394
6395 2012-03-07  Bruno Haible  <bruno@clisp.org>
6396
6397         copysignf: Don't override undeclared system function on IRIX 6.5.
6398         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6399         HAVE_COPYSIGNF.
6400         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6401         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6403         not HAVE_COPYSIGNF.
6404         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6405         HAVE_COPYSIGNF.
6406         * doc/posix-functions/copysignf.texi: Mention missing declaration
6407         problem.
6408
6409 2012-03-07  Jim Meyering  <meyering@redhat.com>
6410
6411         readtokens: add tests
6412         * modules/readtokens-tests: New file.
6413         * tests/test-readtokens.c: New file.
6414
6415 2012-03-07  Jim Meyering  <meyering@redhat.com>
6416
6417         quotearg: the module must now include quote.h
6418         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6419         So must the module.
6420         * modules/quotearg (Files): Add quote.h.
6421
6422 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         readtokens: avoid core dumps with unusual calling patterns
6425         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6426         * lib/readtokens.c: Include limits.h.
6427         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6428         (readtoken): Don't cache the delimiters; the cache code was buggy
6429         if !delim && saved_delim, or if the new n_delim differs from the old.
6430         Also, it wasn't thread-safe.
6431
6432 2012-03-07  Bruno Haible  <bruno@clisp.org>
6433
6434         quote: Adhere to common module description layout.
6435         * modules/quote (Makefile.am): Add back empty section.
6436
6437 2012-03-06  Akim Demaille  <demaille@gostai.com>
6438
6439         quote: fuse into quotearg
6440         This patch is made for the benefit of Bison.
6441         quote does not leave the choice of the quoting style to the user.
6442         quoting_style provides poor customizability, yet quoting_options,
6443         which is very rich, is hidden inside quotearg.c.  So in order to
6444         allow quote customization, move its implementation to quotearg.c.
6445         * lib/quote.c: Remove.
6446         * modules/quote: Adjust.
6447         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6448         warning: provide all the members of literal structs.
6449         (quote_quoting_options): New.
6450         (quote, quote_n): Import implementation from quote.c.
6451         * lib/quote.h: Import the comments from quote.c.
6452         (quote_quoting_options): New.
6453
6454 2012-03-06  Bruno Haible  <bruno@clisp.org>
6455
6456         Tests for module 'expm1l-ieee'.
6457         * modules/expm1l-ieee-tests: New file.
6458         * tests/test-expm1l-ieee.c: New file.
6459
6460         New module 'expm1l-ieee'.
6461         * modules/expm1l-ieee: New file.
6462
6463         Tests for module 'expm1f-ieee'.
6464         * modules/expm1f-ieee-tests: New file.
6465         * tests/test-expm1f-ieee.c: New file.
6466
6467         New module 'expm1f-ieee'.
6468         * modules/expm1f-ieee: New file.
6469
6470         Tests for module 'expm1-ieee'.
6471         * modules/expm1-ieee-tests: New file.
6472         * tests/test-expm1-ieee.c: New file.
6473         * tests/test-expm1-ieee.h: New file.
6474
6475         New module 'expm1-ieee'.
6476         * modules/expm1-ieee: New file.
6477         * m4/expm1-ieee.m4: New file.
6478         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6479         whether expm1 works with a minus zero argument. Replace it if not.
6480         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6482         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6483         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6484         (Depends-on): Update conditions.
6485         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6486         AIX problem.
6487
6488 2012-03-06  Bruno Haible  <bruno@clisp.org>
6489
6490         Work around expm1f bug on IRIX 6.5.
6491         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6492         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6493         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6494         not work.
6495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6496         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6497         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6498         (Depends-on): Update conditions.
6499         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6500
6501 2012-03-06  Bruno Haible  <bruno@clisp.org>
6502
6503         Tests for module 'expm1l'.
6504         * modules/expm1l-tests: New file.
6505         * tests/test-expm1l.c: New file.
6506
6507         New module 'expm1l'.
6508         * lib/math.in.h (expm1l): New declaration.
6509         * lib/expm1l.c: New file.
6510         * m4/expm1l.m4: New file.
6511         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6513         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6514         * modules/expm1l: New file.
6515         * tests/test-math-c++.cc: Check the declaration of expm1l.
6516         * doc/posix-functions/expm1l.texi: Mention the new module.
6517
6518 2012-03-06  Bruno Haible  <bruno@clisp.org>
6519
6520         Tests for module 'expm1f'.
6521         * modules/expm1f-tests: New file.
6522         * tests/test-expm1f.c: New file.
6523
6524         New module 'expm1f'.
6525         * lib/math.in.h (expm1f): New declaration.
6526         * lib/expm1f.c: New file.
6527         * m4/expm1f.m4: New file.
6528         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6530         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6531         * modules/expm1f: New file.
6532         * tests/test-math-c++.cc: Check the declaration of expm1f.
6533         * doc/posix-functions/expm1f.texi: Mention the new module.
6534
6535 2012-03-06  Bruno Haible  <bruno@clisp.org>
6536
6537         Tests for module 'expm1'.
6538         * modules/expm1-tests: New file.
6539         * tests/test-expm1.c: New file.
6540         * tests/test-expm1.h: New file.
6541
6542         New module 'expm1'.
6543         * lib/math.in.h (expm1): New declaration.
6544         * lib/expm1.c: New file.
6545         * m4/expm1.m4: New file.
6546         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6548         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6549         * modules/expm1: New file.
6550         * tests/test-math-c++.cc: Check the declaration of expm1.
6551         * doc/posix-functions/expm1.texi: Mention the new module.
6552
6553 2012-03-06  Bruno Haible  <bruno@clisp.org>
6554
6555         math: Ensure declarations of math functions.
6556         * modules/acosf (Depends-on): Add 'extensions'.
6557         * modules/asinf (Depends-on): Likewise.
6558         * modules/atan2f (Depends-on): Likewise.
6559         * modules/atanf (Depends-on): Likewise.
6560         * modules/cbrt (Depends-on): Likewise.
6561         * modules/cbrtf (Depends-on): Likewise.
6562         * modules/cbrtl (Depends-on): Likewise.
6563         * modules/copysignf (Depends-on): Likewise.
6564         * modules/copysignl (Depends-on): Likewise.
6565         * modules/cosf (Depends-on): Likewise.
6566         * modules/coshf (Depends-on): Likewise.
6567         * modules/expf (Depends-on): Likewise.
6568         * modules/fabsf (Depends-on): Likewise.
6569         * modules/fabsl (Depends-on): Likewise.
6570         * modules/fmaf (Depends-on): Likewise.
6571         * modules/fmal (Depends-on): Likewise.
6572         * modules/fmodf (Depends-on): Likewise.
6573         * modules/fmodl (Depends-on): Likewise.
6574         * modules/frexpf (Depends-on): Likewise.
6575         * modules/frexpl (Depends-on): Likewise.
6576         * modules/hypot (Depends-on): Likewise.
6577         * modules/hypotf (Depends-on): Likewise.
6578         * modules/hypotl (Depends-on): Likewise.
6579         * modules/ldexpf (Depends-on): Likewise.
6580         * modules/ldexpl (Depends-on): Likewise.
6581         * modules/log10f (Depends-on): Likewise.
6582         * modules/log10l (Depends-on): Likewise.
6583         * modules/log1p (Depends-on): Likewise.
6584         * modules/logb (Depends-on): Likewise.
6585         * modules/logf (Depends-on): Likewise.
6586         * modules/modff (Depends-on): Likewise.
6587         * modules/modfl (Depends-on): Likewise.
6588         * modules/powf (Depends-on): Likewise.
6589         * modules/remainderf (Depends-on): Likewise.
6590         * modules/remainderl (Depends-on): Likewise.
6591         * modules/rintf (Depends-on): Likewise.
6592         * modules/rintl (Depends-on): Likewise.
6593         * modules/sinf (Depends-on): Likewise.
6594         * modules/sinhf (Depends-on): Likewise.
6595         * modules/sqrtf (Depends-on): Likewise.
6596         * modules/tanf (Depends-on): Likewise.
6597         * modules/tanhf (Depends-on): Likewise.
6598         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6599         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6600         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6601         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6602         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6603         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6604         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6605         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6606         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6607         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6608         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6609         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6610         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6611         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6612         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6613         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6614         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6615         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6616         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6617         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6618         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6619         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6620         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6621         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6623         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6624         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6625         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6626         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6627         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6628         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6629         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6630         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6631         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6632         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6633         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6634         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6635         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6636         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6637         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6638         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6639
6640 2012-03-06  Bruno Haible  <bruno@clisp.org>
6641
6642         math: Update module names in warnings.
6643         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6644         tanl): Use specific module name in warn-on-use warning.
6645
6646 2012-03-06  Bruno Haible  <bruno@clisp.org>
6647
6648         expl: Simplify computation.
6649         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6650
6651 2012-03-05  Bruno Haible  <bruno@clisp.org>
6652
6653         exp* tests: More tests.
6654         * tests/test-exp.h: New file.
6655         * tests/test-exp.c: Include <float.h> and test-exp.h.
6656         (main): Invoke test_function.
6657         * tests/test-expf.c: Include <float.h> and test-exp.h.
6658         (main): Invoke test_function.
6659         * tests/test-expl.c: Include <float.h> and test-exp.h.
6660         (main): Invoke test_function.
6661         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6662         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6663         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6664         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6665         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6666         (Depends-on): Add 'float'.
6667         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6668
6669         expl: Fix precision of computed result.
6670         * lib/expl.c: Completely rewritten.
6671         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6672         (Maintainer): Add me.
6673         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6674
6675 2012-03-05  Bruno Haible  <bruno@clisp.org>
6676
6677         cbrt* tests: More tests.
6678         * tests/test-cbrt.h: New file.
6679         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6680         (main): Invoke test_function.
6681         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6682         (main): Invoke test_function.
6683         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6684         (main): Invoke test_function.
6685         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6686         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6687         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6688         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6689         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6690         (Depends-on): Add 'float'.
6691         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6692
6693 2012-03-05  Bruno Haible  <bruno@clisp.org>
6694
6695         hypot* tests: More tests.
6696         * tests/test-hypot.h: New file, partially extracted from
6697         tests/test-hypotl.c.
6698         * tests/test-hypot.c: Include test-hypot.h.
6699         (main): Invoke test_function.
6700         * tests/test-hypotf.c: Include test-hypot.h.
6701         (main): Invoke test_function.
6702         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6703         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6704         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6705         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6706         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6707         tests/randomf.c.
6708         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6709         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6710         tests/randoml.c.
6711         (Depends-on): Add 'fpucw', 'float'.
6712         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6713
6714 2012-03-05  Bruno Haible  <bruno@clisp.org>
6715
6716         fpucw: Doc about FreeBSD.
6717         * lib/fpucw.h: Mention FreeBSD in comments.
6718
6719 2012-03-04  Bruno Haible  <bruno@clisp.org>
6720
6721         sqrt* tests: More tests.
6722         * tests/test-sqrt.h: New file.
6723         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6724         (main): Invoke test_function.
6725         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6726         (main): Invoke test_function.
6727         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6728         (main): Invoke test_function.
6729         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6730         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6731         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6732         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6733         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6734         (Depends-on): Add 'float'.
6735         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6736
6737 2012-03-04  Bruno Haible  <bruno@clisp.org>
6738
6739         remainder* tests: More tests.
6740         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6741         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6742         (main): Invoke test_function.
6743         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6744         (main): Invoke test_function.
6745         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6746         (main): Invoke test_function.
6747         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6748         tests/randomd.c.
6749         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6750         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6751         tests/randomf.c.
6752         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6753         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6754         tests/randoml.c.
6755         (Depends-on): Add 'float'.
6756         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6757
6758 2012-03-04  Bruno Haible  <bruno@clisp.org>
6759
6760         remainder, remainderf, remainderl: Fix computation for large quotients.
6761         * lib/remainder.c: Completely rewritten.
6762         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6763         USE_FLOAT.
6764         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6765         USE_LONG_DOUBLE.
6766         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6767         isnand, isinf. Remove round, fma.
6768         * modules/remainderf (Files): Add lib/remainder.c.
6769         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6770         Remove roundf, fmaf.
6771         * modules/remainderl (Files): Add lib/remainder.c.
6772         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6773         isinf. Remove roundl, fmal.
6774         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6775         REMAINDER_LIBM.
6776         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6777         REMAINDERF_LIBM.
6778         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6779         REMAINDERL_LIBM.
6780
6781 2012-03-04  Bruno Haible  <bruno@clisp.org>
6782
6783         fmod* tests: More tests.
6784         * tests/test-fmod.h (my_ldexp): New function.
6785         (test_function): Reduce amount of random numbers to test. Add tests
6786         of very large quotients x / y.
6787         * tests/test-fmod.c (MAX_EXP): New macro.
6788         * tests/test-fmodf.c (MAX_EXP): Likewise.
6789         * tests/test-fmodl.c (MAX_EXP): Likewise.
6790
6791 2012-03-04  Bruno Haible  <bruno@clisp.org>
6792
6793         fmod, fmodl: Fix computation for large quotients x / y.
6794         * lib/fmod.c: Completely rewritten.
6795         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6796         USE_LONG_DOUBLE.
6797         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6798         isnand. Remove fma.
6799         * modules/fmodl (Files): Add lib/fmod.c.
6800         (Depends-on): Add float, isfinite, signbit, fabsl,
6801         frexpl, ldexpl, isnanl. Remove fma.
6802         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6803         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6804
6805 2012-03-03  Bruno Haible  <bruno@clisp.org>
6806
6807         fmod* tests: More tests.
6808         * tests/test-fmod.h: New file.
6809         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6810         (main): Invoke test_function.
6811         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6812         (main): Invoke test_function.
6813         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6814         (main): Invoke test_function.
6815         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6816         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6817         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6818         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6819         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6820         (Depends-on): Add 'float'.
6821         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6822
6823 2012-03-03  Bruno Haible  <bruno@clisp.org>
6824
6825         rint* tests: More tests.
6826         * tests/test-rint.h: New file, partially extracted from
6827         tests/test-rintl.c.
6828         * tests/test-rint.c: Include test-rint.h.
6829         (main): Invoke test_function.
6830         * tests/test-rintf.c: Include test-rint.h.
6831         (main): Invoke test_function.
6832         * tests/test-rintl.c: Include test-rint.h.
6833         (main): Invoke test_function.
6834         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6835         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6836         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6837         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6838         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6839         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6840
6841 2012-03-03  Bruno Haible  <bruno@clisp.org>
6842
6843         modf* tests: More tests.
6844         * tests/test-modf.h: New file.
6845         * tests/test-modf.c: Include <float.h> and test-modf.h.
6846         (main): Invoke test_function.
6847         * tests/test-modff.c: Include <float.h> and test-modf.h.
6848         (main): Invoke test_function.
6849         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6850         (main): Invoke test_function.
6851         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6852         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6853         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6854         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6855         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6856         (Depends-on): Add 'float'.
6857         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6858
6859 2012-03-03  Bruno Haible  <bruno@clisp.org>
6860
6861         fabs* tests: More tests.
6862         * tests/test-fabs.h: New file, partially extracted from
6863         tests/test-fabsl.c.
6864         * tests/test-fabs.c (RANDOM): New macro.
6865         * tests/test-fabsf.c (RANDOM): New macro.
6866         * tests/test-fabsl.c (RANDOM): New macro.
6867         * modules/fabs-tests (Files): Add tests/randomd.c.
6868         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6869         * modules/fabsf-tests (Files): Add tests/randomf.c.
6870         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6871         * modules/fabsl-tests (Files): Add tests/randoml.c.
6872         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6873
6874 2012-03-03  Bruno Haible  <bruno@clisp.org>
6875
6876         ldexp* tests: More tests.
6877         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6878         * tests/test-ldexp.c (RANDOM): New macro.
6879         * tests/test-ldexpf.c (RANDOM): New macro.
6880         * tests/test-ldexpl.c (RANDOM): New macro.
6881         * modules/ldexp-tests (Files): Add tests/randomd.c.
6882         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6883         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6884         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6885         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6886         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6887
6888 2012-03-03  Bruno Haible  <bruno@clisp.org>
6889
6890         frexp* tests: More tests.
6891         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6892         * tests/test-frexp.c (RANDOM): New macro.
6893         * tests/test-frexpf.c (RANDOM): New macro.
6894         * tests/test-frexpl.c (RANDOM): New macro.
6895         * modules/frexp-tests (Files): Add tests/randomd.c.
6896         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6897         * modules/frexpf-tests (Files): Add tests/randomf.c.
6898         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6899         * modules/frexpl-tests (Files): Add tests/randoml.c.
6900         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6901
6902 2012-03-03  Bruno Haible  <bruno@clisp.org>
6903
6904         Support for pseudo-random numbers in tests.
6905         * tests/randomf.c: New file.
6906         * tests/randomd.c: New file.
6907         * tests/randoml.c: New file.
6908         * tests/macros.h (randomf, randomd, randoml): New declarations.
6909
6910 2012-03-03  Bruno Haible  <bruno@clisp.org>
6911
6912         frexp* tests: Refactor.
6913         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6914         * tests/test-frexp.c: Include and use it.
6915         * tests/test-frexpf.c: Likewise.
6916         * tests/test-frexpl.c: Likewise.
6917         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6918         * modules/frexpf-tests (Files): Likewise.
6919         * modules/frexpl-tests (Files): Likewise.
6920
6921 2012-03-02  Jim Meyering  <meyering@redhat.com>
6922
6923         maint: don't specify XZ_OPT=-9ev in dist-related rule
6924         Using xz's -9 option is warranted only if you have a very large
6925         tarball (see xz's documentation for the sizes vs. presets), and
6926         requires 64MiB of memory at decompression time.
6927         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6928         Automake's default of just "-e" is fine.  Override on a
6929         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6930
6931 2012-03-01  Eric Blake  <eblake@redhat.com>
6932
6933         maint.mk: allow announcement for non-gnulib project
6934         * maint.mk (announcement): Skip gnulib version if not used.
6935
6936 2012-03-01  Jim Meyering  <meyering@redhat.com>
6937
6938         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6939         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6940         envvar settings cannot interfere.  Otherwise, setting envvars like
6941         prohibit=foo require=bar, etc. would cause spurious test failures.
6942
6943 2012-03-01  Eric Blake  <eblake@redhat.com>
6944
6945         maint.mk: add per-line exclusions to prohibitions
6946         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6947         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6948         (sc_const_long_option): Use it.
6949
6950 2012-03-01  Bruno Haible  <bruno@clisp.org>
6951
6952         Tests for module 'expl-ieee'.
6953         * modules/expl-ieee-tests: New file.
6954         * tests/test-expl-ieee.c: New file.
6955
6956         New module 'expl-ieee'.
6957         * modules/expl-ieee: New file.
6958
6959         Tests for module 'exp-ieee'.
6960         * modules/exp-ieee-tests: New file.
6961         * tests/test-exp-ieee.c: New file.
6962
6963         New module 'exp-ieee'.
6964         * modules/exp-ieee: New file.
6965
6966         Tests for module 'expf-ieee'.
6967         * modules/expf-ieee-tests: New file.
6968         * tests/test-expf-ieee.c: New file.
6969         * tests/test-exp-ieee.h: New file.
6970
6971         New module 'expf-ieee'.
6972         * modules/expf-ieee: New file.
6973
6974 2012-02-29  Bruno Haible  <bruno@clisp.org>
6975
6976         cbrtl-ieee: Work around test failure on IRIX 6.5.
6977         * m4/cbrtl-ieee.m4: New file.
6978         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6979         test whether cbrtl works with a minus zero argument. Replace it if not.
6980         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6982         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6983         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6984         (Depends-on): Update conditions.
6985         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6986         m4/signbit.m4.
6987         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6988         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6989         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6990
6991         Tests for module 'cbrtl-ieee'.
6992         * modules/cbrtl-ieee-tests: New file.
6993         * tests/test-cbrtl-ieee.c: New file.
6994
6995         New module 'cbrtl-ieee'.
6996         * modules/cbrtl-ieee: New file.
6997
6998         Tests for module 'cbrt-ieee'.
6999         * modules/cbrt-ieee-tests: New file.
7000         * tests/test-cbrt-ieee.c: New file.
7001
7002         New module 'cbrt-ieee'.
7003         * modules/cbrt-ieee: New file.
7004
7005         Tests for module 'cbrtf-ieee'.
7006         * modules/cbrtf-ieee-tests: New file.
7007         * tests/test-cbrtf-ieee.c: New file.
7008         * tests/test-cbrt-ieee.h: New file.
7009
7010         New module 'cbrtf-ieee'.
7011         * modules/cbrtf-ieee: New file.
7012
7013 2012-02-29  Bruno Haible  <bruno@clisp.org>
7014
7015         cbrtf: Work around bug in IRIX 6.5 system function.
7016         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7017         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7018         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7019         work.
7020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7021         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7022         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7023         (Depends-on): Update conditions.
7024         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7025
7026 2012-02-29  Bruno Haible  <bruno@clisp.org>
7027
7028         Tests for module 'cbrtl'.
7029         * modules/cbrtl-tests: New file.
7030         * tests/test-cbrtl.c: New file.
7031
7032         New module 'cbrtl'.
7033         * lib/math.in.h (cbrtl): New declaration.
7034         * lib/cbrtl.c: New file.
7035         * m4/cbrtl.m4: New file.
7036         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7038         HAVE_DECL_CBRTL.
7039         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7040         HAVE_DECL_CBRTL.
7041         * modules/cbrtl: New file.
7042         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7043         * doc/posix-functions/cbrtl.texi: Mention the new module.
7044
7045 2012-02-29  Bruno Haible  <bruno@clisp.org>
7046
7047         Tests for module 'cbrtf'.
7048         * modules/cbrtf-tests: New file.
7049         * tests/test-cbrtf.c: New file.
7050
7051         New module 'cbrtf'.
7052         * lib/math.in.h (cbrtf): New declaration.
7053         * lib/cbrtf.c: New file.
7054         * m4/cbrtf.m4: New file.
7055         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7057         HAVE_DECL_CBRTF.
7058         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7059         HAVE_DECL_CBRTF.
7060         * modules/cbrtf: New file.
7061         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7062         * doc/posix-functions/cbrtf.texi: Mention the new module.
7063
7064 2012-02-29  Bruno Haible  <bruno@clisp.org>
7065
7066         cbrt: Provide replacement on MSVC and Minix.
7067         * lib/math.in.h (cbrt): New declaration.
7068         * lib/cbrt.c: New file.
7069         * m4/cbrt.m4: New file.
7070         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7072         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7073         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7074         (Depends-on): Add dependencies.
7075         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7076         * tests/test-math-c++.cc: Check the declaration of cbrt.
7077         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7078         replacement.
7079
7080 2012-02-29  Bruno Haible  <bruno@clisp.org>
7081
7082         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7083         * m4/hypotl-ieee.m4: New file.
7084         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7085         test whether hypotl works with mixed NaN and Infinity arguments.
7086         Replace it if not.
7087         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7089         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7090         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7091         (Depends-on): Update conditions.
7092         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7093         (Depends-on): Add hypot-ieee.
7094         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7095         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7096
7097         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7098         * m4/hypotf-ieee.m4: New file.
7099         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7100         test whether hypotf works with mixed NaN and Infinity arguments.
7101         Replace it if not.
7102         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7103         (Depends-on): Add hypot-ieee.
7104         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7105         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7106
7107         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7108         * lib/math.in.h (hypot): New declaration.
7109         * lib/hypot.c: New file.
7110         * m4/hypot-ieee.m4: New file.
7111         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7112         whether hypot works with mixed NaN and Infinity arguments. Replace it
7113         if not.
7114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7115         REPLACE_HYPOT.
7116         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7117         * modules/hypot (Files): Add lib/hypot.c.
7118         (Depends-on): Add dependencies.
7119         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7120         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7121         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7122         * tests/test-math-c++.cc: Check the declaration of hypot.
7123         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7124
7125         Tests for module 'hypotl-ieee'.
7126         * modules/hypotl-ieee-tests: New file.
7127         * tests/test-hypotl-ieee.c: New file.
7128
7129         New module 'hypotl-ieee'.
7130         * modules/hypotl-ieee: New file.
7131
7132         Tests for module 'hypot-ieee'.
7133         * modules/hypot-ieee-tests: New file.
7134         * tests/test-hypot-ieee.c: New file.
7135
7136         New module 'hypot-ieee'.
7137         * modules/hypot-ieee: New file.
7138
7139         Tests for module 'hypotf-ieee'.
7140         * modules/hypotf-ieee-tests: New file.
7141         * tests/test-hypotf-ieee.c: New file.
7142         * tests/test-hypot-ieee.h: New file.
7143
7144         New module 'hypotf-ieee'.
7145         * modules/hypotf-ieee: New file.
7146
7147 2012-02-29  Bruno Haible  <bruno@clisp.org>
7148
7149         Remove unused variables.
7150         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7151         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7152         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7153         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7154
7155 2012-02-29  Eric Blake  <eblake@redhat.com>
7156
7157         termios: fix pid_t always, not just for tcgetsid
7158         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7159         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7160         just when building tcgetsid.
7161
7162 2012-02-29  Bruno Haible  <bruno@clisp.org>
7163
7164         Tests for module 'hypotl'.
7165         * modules/hypotl-tests: New file.
7166         * tests/test-hypotl.c: New file.
7167
7168         New module 'hypotl'.
7169         * lib/math.in.h (hypotl): New declaration.
7170         * lib/hypotl.c: New file.
7171         * m4/hypotl.m4: New file.
7172         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7174         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7175         * modules/hypotl: New file.
7176         * tests/test-math-c++.cc: Check the hypotl declaration.
7177         * doc/posix-functions/hypotl.texi: Mention the new module.
7178
7179 2012-02-29  Eric Blake  <eblake@redhat.com>
7180
7181         tcgetsid: fix cygwin header bug
7182         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7183
7184         docs: update cygwin progress
7185         * doc/posix-functions/llround.texi (llround): Added in cygwin
7186         1.7.8.
7187         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7188         * doc/glibc-functions/program_invocation_name.texi
7189         (program_invocation_name): Likewise.
7190         * doc/glibc-functions/program_invocation_short_name.texi
7191         (program_invocation_short_name): Likewise.
7192         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7193         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7194         Likewise.
7195         * doc/posix-functions/pthread_spin_destroy.texi
7196         (pthread_spin_destroy): Added in cygwin 1.7.10.
7197         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7198         Likewise.
7199         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7200         Likewise.
7201         * doc/posix-functions/pthread_spin_trylock.texi
7202         (pthread_spin_trylock): Likewise.
7203         * doc/posix-functions/pthread_spin_unlock.texi
7204         (pthread_spin_unlock): Likewise.
7205         * doc/posix-functions/pthread_setschedprio.texi
7206         (pthread_setschedprio): Likewise.
7207         * doc/posix-functions/pthread_attr_getstack.texi
7208         (pthread_attr_getstack): Likewise.
7209         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7210         (pthread_attr_getstackaddr): Likewise.
7211         * doc/glibc-functions/pthread_getattr_np.texi
7212         (pthread_getattr_np): Likewise.
7213         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7214         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7215         * doc/posix-functions/clock_settime.texi (clock_settime):
7216         Likewise.
7217         * doc/posix-functions/pthread_attr_getguardsize.texi
7218         (pthread_attr_getguardsize): Likewise.
7219         * doc/posix-functions/pthread_attr_setguardsize.texi
7220         (pthread_attr_setguardsize): Likewise.
7221         * doc/posix-functions/pthread_attr_setstack.texi
7222         (pthread_attr_setstack): Likewise.
7223         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7224         (pthread_attr_setstackaddr): Likewise.
7225         * doc/posix-functions/clock_getcpuclockid.texi
7226         (clock_getcpuclockid): Likewise.
7227         * doc/posix-functions/pthread_getcpuclockid.texi
7228         (pthread_getcpuclockid): Likewise.
7229         * doc/glibc-functions/error.texi (error): Likewise.
7230         * doc/glibc-functions/error_at_line.texi (error_at_line):
7231         Likewise.
7232         * doc/glibc-functions/error_message_count.texi
7233         (error_message_count): Likewise.
7234         * doc/glibc-functions/error_one_per_line.texi
7235         (error_one_per_line): Likewise.
7236         * doc/glibc-functions/error_print_progname.texi
7237         (error_print_progname): Likewise.
7238         * doc/posix-functions/pthread_condattr_getclock.texi
7239         (pthread_condattr_getclock): Likewise.
7240         * doc/posix-functions/pthread_condattr_setclock.texi
7241         (pthread_condattr_setclock): Likewise.
7242         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7243         Likewise.
7244         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7245         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7246         * doc/glibc-functions/get_current_dir_name.texi
7247         (get_current_dir_name): Likewise.
7248         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7249         Likewise.
7250         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7251         wrong return type.
7252         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7253         1.7.11.
7254
7255 2012-02-29  Bruno Haible  <bruno@clisp.org>
7256
7257         Tests for module 'hypotf'.
7258         * modules/hypotf-tests: New file.
7259         * tests/test-hypotf.c: New file.
7260
7261         New module 'hypotf'.
7262         * lib/math.in.h (hypotf): New declaration.
7263         * lib/hypotf.c: New file.
7264         * m4/hypotf.m4: New file.
7265         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7267         REPLACE_HYPOTF.
7268         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7269         REPLACE_HYPOTF.
7270         * modules/hypotf: New file.
7271         * tests/test-math-c++.cc: Check the hypotf declaration.
7272         * doc/posix-functions/hypotf.texi: Mention the new module.
7273
7274         hypot: Prepare for hypotf module.
7275         * m4/hypot.m4: New file.
7276         * modules/hypot (Files): Add m4/hypot.m4.
7277         (configure.ac): Invoke gl_FUNC_HYPOT.
7278
7279 2012-02-29  Bruno Haible  <bruno@clisp.org>
7280
7281         hypot tests: More tests.
7282         * tests/test-hypot.c: Include <float.h>.
7283         (main): Add tests about overflow and underflow.
7284
7285 2012-02-29  Bruno Haible  <bruno@clisp.org>
7286
7287         math code: Add comments.
7288         * lib/acosl.c: Add comment about related glibc source files.
7289         * lib/asinl.c: Likewise.
7290         * lib/atanl.c: Likewise.
7291         * lib/expl.c: Likewise.
7292         * lib/logl.c: Likewise.
7293         * lib/sincosl.c: Likewise.
7294         * lib/sinl.c: Likewise.
7295         * lib/tanl.c: Likewise.
7296         * lib/trigl.c: Likewise.
7297         * lib/cosl.c: Likewise. Fix comments.
7298
7299 2012-02-28  Bruno Haible  <bruno@clisp.org>
7300
7301         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7302         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7303         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7304         HUGE_VALL are defined.
7305         (numeric_equald): Renamed from numeric_equal.
7306         (numeric_equalf, numeric_equall): New functions.
7307         (main): Check also HUGE_VALF, HUGE_VALL.
7308         * modules/math-tests (Files): Add tests/macros.h.
7309         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7310         HUGE_VALL.
7311
7312 2012-02-28  Bruno Haible  <bruno@clisp.org>
7313
7314         doc: Move ISO C11 feature notes into POSIX chapters.
7315         * doc/posix-functions/aligned_alloc.texi: Renamed from
7316         doc/glibc-functions/aligned_alloc.texi.
7317         * doc/posix-functions/quick_exit.texi: Renamed from
7318         doc/glibc-functions/quick_exit.texi.
7319         * doc/posix-headers/uchar.texi: Renamed from
7320         doc/glibc-headers/uchar.texi.
7321         * doc/posix-functions/c16rtomb.texi: Renamed from
7322         doc/glibc-functions/c16rtomb.texi.
7323         * doc/posix-functions/c32rtomb.texi: Renamed from
7324         doc/glibc-functions/c32rtomb.texi.
7325         * doc/posix-functions/mbrtoc16.texi: Renamed from
7326         doc/glibc-functions/mbrtoc16.texi.
7327         * doc/posix-functions/mbrtoc32.texi: Renamed from
7328         doc/glibc-functions/mbrtoc32.texi.
7329         * doc/gnulib.texi: Update.
7330         (Glibc uchar.h): Remove section.
7331         Suggested by Eric Blake.
7332
7333 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7334
7335         stdnoreturn: port to MSVC better
7336         MSVC standard headers use __declspec(noreturn), so #define noreturn
7337         to empty on that platform.  Reported by Bruno Haible in
7338         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7339         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7340         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7341
7342 2012-02-28  Bruno Haible  <bruno@clisp.org>
7343
7344         doc: Mention new glibc headers and functions.
7345         * doc/glibc-headers/uchar.texi: New file.
7346         * doc/glibc-functions/aligned_alloc.texi: New file.
7347         * doc/glibc-functions/c16rtomb.texi: New file.
7348         * doc/glibc-functions/c32rtomb.texi: New file.
7349         * doc/glibc-functions/clock_adjtime.texi: New file.
7350         * doc/glibc-functions/fanotify_init.texi: New file.
7351         * doc/glibc-functions/fanotify_mark.texi: New file.
7352         * doc/glibc-functions/inet6_opt_append.texi: New file.
7353         * doc/glibc-functions/inet6_opt_find.texi: New file.
7354         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7355         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7356         * doc/glibc-functions/inet6_opt_init.texi: New file.
7357         * doc/glibc-functions/inet6_opt_next.texi: New file.
7358         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7359         * doc/glibc-functions/inet6_rth_add.texi: New file.
7360         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7361         * doc/glibc-functions/inet6_rth_init.texi: New file.
7362         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7363         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7364         * doc/glibc-functions/inet6_rth_space.texi: New file.
7365         * doc/glibc-functions/login.texi: New file.
7366         * doc/glibc-functions/mbrtoc16.texi: New file.
7367         * doc/glibc-functions/mbrtoc32.texi: New file.
7368         * doc/glibc-functions/name_to_handle_at.texi: New file.
7369         * doc/glibc-functions/ntp_gettimex.texi: New file.
7370         * doc/glibc-functions/open_by_handle_at.texi: New file.
7371         * doc/glibc-functions/prlimit.texi: New file.
7372         * doc/glibc-functions/process_vm_readv.texi: New file.
7373         * doc/glibc-functions/process_vm_writev.texi: New file.
7374         * doc/glibc-functions/recvmmsg.texi: New file.
7375         * doc/glibc-functions/scandirat.texi: New file.
7376         * doc/glibc-functions/sendmmsg.texi: New file.
7377         * doc/glibc-functions/setns.texi: New file.
7378         * doc/glibc-functions/timespec_get.texi: New file.
7379         * doc/gnulib.texi: Include them.
7380         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7381         sections.
7382         Reported by Eric Blake.
7383
7384 2012-02-28  Bruno Haible  <bruno@clisp.org>
7385
7386         Avoid compilation errors with MSVC option -fp:strict.
7387         * lib/floor.c: Use MSVC specific pragma fenv_access.
7388         * lib/ceil.c: Likewise.
7389         * lib/trunc.c: Likewise.
7390         * lib/round.c: Likewise.
7391         * lib/rint.c: Likewise.
7392         * lib/fma.c: Likewise.
7393         * lib/integer_length.c: Likewise.
7394         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7396         * tests/test-floor2.c: Likewise.
7397         * tests/test-floorf2.c: Likewise.
7398         * tests/test-ceil2.c: Likewise.
7399         * tests/test-ceilf2.c: Likewise.
7400         * tests/test-trunc2.c: Likewise.
7401         * tests/test-truncf2.c: Likewise.
7402         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7403
7404 2012-02-27  Bruno Haible  <bruno@clisp.org>
7405
7406         Tests for module 'sqrtl-ieee'.
7407         * modules/sqrtl-ieee-tests: New file.
7408         * tests/test-sqrtl-ieee.c: New file.
7409
7410         New module 'sqrtl-ieee'.
7411         * modules/sqrtl-ieee: New file.
7412
7413         Tests for module 'sqrt-ieee'.
7414         * modules/sqrt-ieee-tests: New file.
7415         * tests/test-sqrt-ieee.c: New file.
7416
7417         New module 'sqrt-ieee'.
7418         * modules/sqrt-ieee: New file.
7419
7420         Tests for module 'sqrtf-ieee'.
7421         * modules/sqrtf-ieee-tests: New file.
7422         * tests/test-sqrtf-ieee.c: New file.
7423         * tests/test-sqrt-ieee.h: New file.
7424
7425         New module 'sqrtf-ieee'.
7426         * modules/sqrtf-ieee: New file.
7427
7428 2012-02-27  Bruno Haible  <bruno@clisp.org>
7429
7430         remainderl-ieee: Work around test failure on OSF/1.
7431         * m4/remainderl-ieee.m4: New file.
7432         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7433         present, test whether remainderl works with a zero second argument.
7434         Replace it if not.
7435         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7437         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7438         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7439         (Depends-on): Update conditions.
7440         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7441         (Depends-on): Add remainder-ieee.
7442         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7443         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7444         module.
7445
7446         remainderf-ieee: Work around test failure on OSF/1.
7447         * m4/remainderf-ieee.m4: New file.
7448         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7449         present, test whether remainderf works with a zero second argument.
7450         Replace it if not.
7451         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7453         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7454         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7455         (Depends-on): Update conditions.
7456         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7457         (Depends-on): Add remainder-ieee.
7458         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7459         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7460         module.
7461
7462         remainder-ieee: Work around test failure on OSF/1.
7463         * m4/remainder-ieee.m4: New file.
7464         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7465         present, test whether remainder works with a zero second argument.
7466         Replace it if not.
7467         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7469         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7470         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7471         (Depends-on): Update dependencies.
7472         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7473         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7474         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7475
7476         Tests for module 'remainderl-ieee'.
7477         * modules/remainderl-ieee-tests: New file.
7478         * tests/test-remainderl-ieee.c: New file.
7479
7480         New module 'remainderl-ieee'.
7481         * modules/remainderl-ieee: New file.
7482
7483         Tests for module 'remainder-ieee'.
7484         * modules/remainder-ieee-tests: New file.
7485         * tests/test-remainder-ieee.c: New file.
7486
7487         New module 'remainder-ieee'.
7488         * modules/remainder-ieee: New file.
7489
7490         Tests for module 'remainderf-ieee'.
7491         * modules/remainderf-ieee-tests: New file.
7492         * tests/test-remainderf-ieee.c: New file.
7493         * tests/test-remainder-ieee.h: New file.
7494
7495         New module 'remainderf-ieee'.
7496         * modules/remainderf-ieee: New file.
7497
7498 2012-02-27  Bruno Haible  <bruno@clisp.org>
7499
7500         modff, modfl: Fix configure syntax error.
7501         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7502         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7503
7504 2012-02-27  Bruno Haible  <bruno@clisp.org>
7505
7506         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7507         * m4/fmodl-ieee.m4: New file.
7508         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7509         whether fmodl works with zero arguments. Replace it if not.
7510         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7511         (Depends-on): Add fmod-ieee.
7512         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7513         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7514
7515         fmodf-ieee: Work around test failure on OSF/1.
7516         * m4/fmodf-ieee.m4: New file.
7517         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7518         whether fmodf works with zero arguments. Replace it if not.
7519         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7521         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7522         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7523         (Depends-on): Update dependencies.
7524         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7525         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7526         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7527
7528         fmodf-ieee: Work around test failure on MSVC 9.
7529         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7530         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7531
7532         fmod-ieee: Work around test failures on OSF/1, mingw.
7533         * m4/fmod-ieee.m4: New file.
7534         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7535         whether fmod works with zero arguments. Replace it if not.
7536         * lib/math.in.h (fmod): New declaration.
7537         * lib/fmod.c: New file.
7538         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7540         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7541         * modules/fmod (Files): Add lib/fmod.c.
7542         (Depends-on): Add math, isinf, trunc, fma.
7543         (configure.ac): Arrange to compile lib/fmod.c if needed.
7544         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7545         m4/signbit.m4.
7546         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7547         * tests/test-math-c++.cc: Check the declaration of fmod.
7548         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7549
7550         fmodl-ieee: Fix test failures.
7551         * lib/fmodl.c (fmodl): Treat Inf specially.
7552         * modules/fmodl (Depends-on): Add isinf.
7553
7554         Tests for module 'fmodl-ieee'.
7555         * modules/fmodl-ieee-tests: New file.
7556         * tests/test-fmodl-ieee.c: New file.
7557
7558         New module 'fmodl-ieee'.
7559         * modules/fmodl-ieee: New file.
7560
7561         Tests for module 'fmod-ieee'.
7562         * modules/fmod-ieee-tests: New file.
7563         * tests/test-fmod-ieee.c: New file.
7564
7565         New module 'fmod-ieee'.
7566         * modules/fmod-ieee: New file.
7567
7568         Tests for module 'fmodf-ieee'.
7569         * modules/fmodf-ieee-tests: New file.
7570         * tests/test-fmodf-ieee.c: New file.
7571         * tests/test-fmod-ieee.h: New file.
7572
7573         New module 'fmodf-ieee'.
7574         * modules/fmodf-ieee: New file.
7575
7576 2012-02-27  Bruno Haible  <bruno@clisp.org>
7577
7578         Tests for module 'rintl-ieee'.
7579         * modules/rintl-ieee-tests: New file.
7580         * tests/test-rintl-ieee.c: New file.
7581
7582         New module 'rintl-ieee'.
7583         * modules/rintl-ieee: New file.
7584
7585         Tests for module 'rint-ieee'.
7586         * modules/rint-ieee-tests: New file.
7587         * tests/test-rint-ieee.c: New file.
7588
7589         New module 'rint-ieee'.
7590         * modules/rint-ieee: New file.
7591
7592         Tests for module 'rintf-ieee'.
7593         * modules/rintf-ieee-tests: New file.
7594         * tests/test-rintf-ieee.c: New file.
7595         * tests/test-rint-ieee.h: New file.
7596
7597         New module 'rintf-ieee'.
7598         * modules/rintf-ieee: New file.
7599
7600 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         regex: re_search etc. should return -2 when memory exhausted
7603         This bug was uncovered when testing 'grep'.  Without the fix,
7604         re_search and friends return -1 when memory is exhausted, but -1
7605         means no match, and this causes grep to falsely report no-match
7606         instead of memory-exhaustion.  See
7607         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7608         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7609         trouble; this can occur if re_search_internal ran out of memory.
7610
7611 2012-02-26  Bruno Haible  <bruno@clisp.org>
7612
7613         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7614         * m4/modfl-ieee.m4: New file.
7615         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7616         whether modfl works with Inf. Replace it if not.
7617         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7619         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7620         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7621         (Depends-on): Update dependencies.
7622         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7623         m4/signbit.m4.
7624         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7625         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7626
7627         modfl-ieee: Fix dependencies.
7628         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7629
7630         modfl-ieee: Fix test failures.
7631         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7632         * modules/modfl (Depends-on): Add isfinite, isinf.
7633
7634         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7635         * m4/modff-ieee.m4: New file.
7636         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7637         whether modff works with NaN and Inf. Replace it if not.
7638         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7640         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7641         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7642         (Depends-on): Update dependencies.
7643         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7644         m4/signbit.m4.
7645         (Depends-on): Add modf-ieee.
7646         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7647         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7648
7649         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7650         * m4/modf-ieee.m4: New file.
7651         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7652         whether modf works with NaN and Inf. Replace it if not.
7653         * lib/math.in.h (modf): New declaration.
7654         * lib/modf.c: New file.
7655         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7657         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7658         * modules/modf (Files): Add lib/modf.c.
7659         (Depends-on): Add math, isfinite, trunc, isinf.
7660         (configure.ac): Addrange to compile lib/modf.c if needed.
7661         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7662         m4/signbit.m4.
7663         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7664         * tests/test-math-c++.cc: Check the declaration of modf.
7665         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7666
7667         Tests for module 'modfl-ieee'.
7668         * modules/modfl-ieee-tests: New file.
7669         * tests/test-modfl-ieee.c: New file.
7670
7671         New module 'modfl-ieee'.
7672         * modules/modfl-ieee: New file.
7673
7674         Tests for module 'modf-ieee'.
7675         * modules/modf-ieee-tests: New file.
7676         * tests/test-modf-ieee.c: New file.
7677
7678         New module 'modf-ieee'.
7679         * modules/modf-ieee: New file.
7680
7681         Tests for module 'modff-ieee'.
7682         * modules/modff-ieee-tests: New file.
7683         * tests/test-modff-ieee.c: New file.
7684         * tests/test-modf-ieee.h: New file.
7685
7686         New module 'modff-ieee'.
7687         * modules/modff-ieee: New file.
7688
7689 2012-02-26  Bruno Haible  <bruno@clisp.org>
7690
7691         Tests for module 'fabsl-ieee'.
7692         * modules/fabsl-ieee-tests: New file.
7693         * tests/test-fabsl-ieee.c: New file.
7694
7695         New module 'fabsl-ieee'.
7696         * modules/fabsl-ieee: New file.
7697
7698         Tests for module 'fabs-ieee'.
7699         * modules/fabs-ieee-tests: New file.
7700         * tests/test-fabs-ieee.c: New file.
7701
7702         New module 'fabs-ieee'.
7703         * modules/fabs-ieee: New file.
7704
7705         Tests for module 'fabsf-ieee'.
7706         * modules/fabsf-ieee-tests: New file.
7707         * tests/test-fabsf-ieee.c: New file.
7708         * tests/test-fabs-ieee.h: New file.
7709
7710         New module 'fabsf-ieee'.
7711         * modules/fabsf-ieee: New file.
7712
7713 2012-02-26  Bruno Haible  <bruno@clisp.org>
7714
7715         Tests for module 'fmal-ieee'.
7716         * modules/fmal-ieee-tests: New file.
7717         * tests/test-fmal-ieee.c: New file.
7718
7719         New module 'fmal-ieee'.
7720         * modules/fmal-ieee: New file.
7721
7722         Tests for module 'fma-ieee'.
7723         * modules/fma-ieee-tests: New file.
7724         * tests/test-fma-ieee.c: New file.
7725
7726         New module 'fma-ieee'.
7727         * modules/fma-ieee: New file.
7728
7729         Tests for module 'fmaf-ieee'.
7730         * modules/fmaf-ieee-tests: New file.
7731         * tests/test-fmaf-ieee.c: New file.
7732         * tests/test-fma-ieee.h: New file.
7733
7734         New module 'fmaf-ieee'.
7735         * modules/fmaf-ieee: New file.
7736
7737 2012-02-26  Bruno Haible  <bruno@clisp.org>
7738
7739         Tests for module 'ldexpl-ieee'.
7740         * modules/ldexpl-ieee-tests: New file.
7741         * tests/test-ldexpl-ieee.c: New file.
7742
7743         New module 'ldexpl-ieee'.
7744         * modules/ldexpl-ieee: New file.
7745
7746         Tests for module 'ldexp-ieee'.
7747         * modules/ldexp-ieee-tests: New file.
7748         * tests/test-ldexp-ieee.c: New file.
7749
7750         New module 'ldexp-ieee'.
7751         * modules/ldexp-ieee: New file.
7752
7753         Tests for module 'ldexpf-ieee'.
7754         * modules/ldexpf-ieee-tests: New file.
7755         * tests/test-ldexpf-ieee.c: New file.
7756         * tests/test-ldexp-ieee.h: New file.
7757
7758         New module 'ldexpf-ieee'.
7759         * modules/ldexpf-ieee: New file.
7760
7761 2012-02-26  Bruno Haible  <bruno@clisp.org>
7762
7763         Refactor frexp*-ieee tests.
7764         * tests/test-frexp-ieee.h: New file.
7765         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7766         (main): Just call test_function.
7767         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7768         (main): Just call test_function.
7769         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7770         (main): Just call test_function.
7771         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7772         * modules/frexp-ieee-tests (Files): Likewise.
7773         * modules/frexpl-ieee-tests (Files): Likewise.
7774
7775         Tests for module 'frexpl-ieee'.
7776         * modules/frexpl-ieee-tests: New file.
7777         * tests/test-frexpl-ieee.c: New file.
7778
7779         New module 'frexpl-ieee'.
7780         * modules/frexpl-ieee: New file.
7781
7782         Tests for module 'frexp-ieee'.
7783         * modules/frexp-ieee-tests: New file.
7784         * tests/test-frexp-ieee.c: New file.
7785
7786         New module 'frexp-ieee'.
7787         * modules/frexp-ieee: New file.
7788
7789         Tests for module 'frexpf-ieee'.
7790         * modules/frexpf-ieee-tests: New file.
7791         * tests/test-frexpf-ieee.c: New file.
7792
7793         New module 'frexpf-ieee'.
7794         * modules/frexpf-ieee: New file.
7795
7796 2012-02-26  Bruno Haible  <bruno@clisp.org>
7797
7798         roundl-ieee tests: More tests.
7799         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7800         (main): Add tests for [MX] shaded specification in POSIX.
7801         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7802         (Depends-on): Add isnanl-nolibm.
7803
7804         round-ieee tests: More tests.
7805         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7806         (main): Add tests for [MX] shaded specification in POSIX.
7807         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7808         (Depends-on): Add isnand-nolibm.
7809
7810         roundf-ieee tests: More tests.
7811         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7812         (main): Add tests for [MX] shaded specification in POSIX.
7813         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7814         (Depends-on): Add isnanf-nolibm.
7815
7816         truncl-ieee tests: More tests.
7817         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7818         (main): Add tests for [MX] shaded specification in POSIX.
7819         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7820         (Depends-on): Add isnanl-nolibm.
7821
7822         trunc-ieee tests: More tests.
7823         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7824         (main): Add tests for [MX] shaded specification in POSIX.
7825         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7826         (Depends-on): Add isnand-nolibm.
7827
7828         truncf-ieee tests: More tests.
7829         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7830         (main): Add tests for [MX] shaded specification in POSIX.
7831         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7832         (Depends-on): Add isnanf-nolibm.
7833
7834         ceill-ieee tests: More tests.
7835         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7836         (main): Add tests for [MX] shaded specification in POSIX.
7837         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7838         (Depends-on): Add isnanl-nolibm.
7839
7840         ceil-ieee tests: More tests.
7841         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7842         (main): Add tests for [MX] shaded specification in POSIX.
7843         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7844         (Depends-on): Add isnand-nolibm.
7845
7846         ceilf-ieee tests: More tests.
7847         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7848         (main): Add tests for [MX] shaded specification in POSIX.
7849         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7850         (Depends-on): Add isnanf-nolibm.
7851
7852         floorl-ieee tests: More tests.
7853         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7854         (main): Add tests for [MX] shaded specification in POSIX.
7855         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7856         (Depends-on): Add isnanl-nolibm.
7857
7858         floor-ieee tests: More tests.
7859         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7860         (main): Add tests for [MX] shaded specification in POSIX.
7861         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7862         (Depends-on): Add isnand-nolibm.
7863
7864         floorf-ieee tests: More tests.
7865         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7866         (main): Add tests for [MX] shaded specification in POSIX.
7867         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7868         (Depends-on): Add isnanf-nolibm.
7869
7870 2012-02-26  Bruno Haible  <bruno@clisp.org>
7871
7872         fpieee: More comments.
7873         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7874
7875 2012-02-25  Bruno Haible  <bruno@clisp.org>
7876
7877         Tests for module 'log10l'.
7878         * modules/log10l-tests: New file.
7879         * tests/test-log10l.c: New file.
7880         * tests/test-math-c++.cc: Check the declaration of log10l.
7881
7882         New module 'log10l'.
7883         * lib/math.in.h (log10l): New declaration.
7884         * lib/log10l.c: New file.
7885         * m4/log10l.m4: New file.
7886         * modules/log10l: New file.
7887         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7889         HAVE_DECL_LOG10L.
7890         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7891         HAVE_DECL_LOG10L.
7892         * doc/posix-functions/log10l.texi: Mention the new module.
7893
7894 2012-02-25  Bruno Haible  <bruno@clisp.org>
7895
7896         fmodl, remainder*: Avoid wrong results due to rounding errors.
7897         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7898         expected bounds.
7899         * lib/remainderf.c (remainderf): Likewise.
7900         * lib/remainder.c (remainder): Likewise.
7901         * lib/remainderl.c (remainderl): Likewise.
7902
7903 2012-02-25  Bruno Haible  <bruno@clisp.org>
7904
7905         Tests for module 'remainderl'.
7906         * modules/remainderl-tests: New file.
7907         * tests/test-remainderl.c: New file.
7908         * tests/test-math-c++.cc: Check the declaration of remainderl.
7909
7910         New module 'remainderl'.
7911         * lib/math.in.h (remainderl): New declaration.
7912         * lib/remainderl.c: New file.
7913         * m4/remainderl.m4: New file.
7914         * modules/remainderl: New file.
7915         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7917         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7918         HAVE_REMAINDERL.
7919         * doc/posix-functions/remainderl.texi: Mention the new module.
7920
7921 2012-02-25  Bruno Haible  <bruno@clisp.org>
7922
7923         Tests for module 'remainderf'.
7924         * modules/remainderf-tests: New file.
7925         * tests/test-remainderf.c: New file.
7926         * tests/test-math-c++.cc: Check the declaration of remainderf.
7927
7928         New module 'remainderf'.
7929         * lib/math.in.h (remainderf): New declaration.
7930         * lib/remainderf.c: New file.
7931         * m4/remainderf.m4: New file.
7932         * modules/remainderf: New file.
7933         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7935         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7936         HAVE_REMAINDERF.
7937         * doc/posix-functions/remainderf.texi: Mention the new module.
7938
7939 2012-02-25  Bruno Haible  <bruno@clisp.org>
7940
7941         remainder: Support for MSVC.
7942         * lib/math.in.h (remainder): New declaration.
7943         * lib/remainder.c: New file.
7944         * m4/remainder.m4: New file.
7945         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7946         (Depends-on): Add math, round, fma.
7947         (configure.ac): Use results of gl_FUNC_REMAINDER.
7948         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7950         HAVE_DECL_REMAINDER.
7951         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7952         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7953         * tests/test-math-c++.cc: Check the declaration of remainder.
7954         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7955         problems are fixed.
7956
7957 2012-02-25  Bruno Haible  <bruno@clisp.org>
7958
7959         Tests for module 'fmodl'.
7960         * modules/fmodl-tests: New file.
7961         * tests/test-fmodl.c: New file.
7962         * tests/test-math-c++.cc: Check the declaration of fmodl.
7963
7964         New module 'fmodl'.
7965         * lib/math.in.h (fmodl): New declaration.
7966         * lib/fmodl.c: New file.
7967         * m4/fmodl.m4: New file.
7968         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7970         REPLACE_FMODL.
7971         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7972         REPLACE_FMODL.
7973         * modules/fmodl: New file.
7974         * doc/posix-functions/fmodl.texi: Mention the new module.
7975
7976 2012-02-25  Bruno Haible  <bruno@clisp.org>
7977
7978         Tests for module 'modfl'.
7979         * modules/modfl-tests: New file.
7980         * tests/test-modfl.c: New file.
7981         * tests/test-math-c++.cc: Check the declaration of modfl.
7982
7983         New module 'modfl'.
7984         * lib/math.in.h (modfl): New declaration.
7985         * lib/modfl.c: New file.
7986         * m4/modfl.m4: New file.
7987         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7989         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7990         * modules/modfl: New file.
7991         * doc/posix-functions/modfl.texi: Mention the new module.
7992
7993 2012-02-25  Bruno Haible  <bruno@clisp.org>
7994
7995         Tests for module 'fabsl'.
7996         * modules/fabsl-tests: New file.
7997         * tests/test-fabsl.c: New file.
7998         * tests/test-math-c++.cc: Check the declaration of fabsl.
7999
8000         New module 'fabsl'.
8001         * lib/math.in.h (fabsl): New declaration.
8002         * lib/fabsl.c: New file.
8003         * m4/fabsl.m4: New file.
8004         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8006         REPLACE_FABSL.
8007         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8008         REPLACE_FABSL.
8009         * modules/fabsl: New file.
8010         * doc/posix-functions/fabsl.texi: Mention the new module.
8011
8012 2012-02-25  Bruno Haible  <bruno@clisp.org>
8013
8014         fabs tests: More tests.
8015         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8016         (zero): New variable.
8017         (main): Add tests for signed zero.
8018         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8019
8020         fabsf tests: More tests.
8021         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8022         (zero): New variable.
8023         (main): Add tests for signed zero.
8024         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8025
8026 2012-02-24  Bruno Haible  <bruno@clisp.org>
8027
8028         atanl: Provide function definition on MSVC.
8029         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8030         function pointer.
8031         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8032
8033 2012-02-24  Bruno Haible  <bruno@clisp.org>
8034
8035         acosl: Provide function definition on MSVC.
8036         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8037         function pointer.
8038         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8039
8040 2012-02-24  Bruno Haible  <bruno@clisp.org>
8041
8042         asinl: Provide function definition on MSVC.
8043         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8044         function pointer.
8045         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8046
8047 2012-02-24  Bruno Haible  <bruno@clisp.org>
8048
8049         tanl: Provide function definition on MSVC.
8050         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8051         function pointer.
8052         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8053
8054 2012-02-24  Bruno Haible  <bruno@clisp.org>
8055
8056         cosl: Provide function definition on MSVC.
8057         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8058         function pointer.
8059         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8060
8061 2012-02-24  Bruno Haible  <bruno@clisp.org>
8062
8063         sinl: Provide function definition on MSVC.
8064         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8065         function pointer.
8066         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8067
8068 2012-02-24  Bruno Haible  <bruno@clisp.org>
8069
8070         logl: Provide function definition on MSVC.
8071         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8072         function pointer.
8073         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8074
8075 2012-02-24  Bruno Haible  <bruno@clisp.org>
8076
8077         expl: Provide function definition on MSVC.
8078         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8079         function pointer.
8080         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8081
8082 2012-02-24  Bruno Haible  <bruno@clisp.org>
8083
8084         sqrtl: Provide function definition on MSVC.
8085         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8086         a function pointer.
8087         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8088
8089 2012-02-24  Bruno Haible  <bruno@clisp.org>
8090
8091         ceill: Provide function definition on MSVC.
8092         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8093         used as a function pointer.
8094         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8095
8096 2012-02-24  Bruno Haible  <bruno@clisp.org>
8097
8098         floorl: Provide function definition on MSVC.
8099         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8100         used as a function pointer.
8101         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8102
8103 2012-02-24  Bruno Haible  <bruno@clisp.org>
8104
8105         ceilf: Provide function definition on MSVC.
8106         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8107         used as a function pointer.
8108         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8109
8110 2012-02-24  Bruno Haible  <bruno@clisp.org>
8111
8112         floorf: Provide function definition on MSVC.
8113         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8114         used as a function pointer.
8115         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8116
8117 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8118
8119         stdnoreturn: new module
8120         This implements a replacement for C11's <stdnoreturn.h>.
8121         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8122         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8123         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8124         * tests/test-stdnoreturn.c: New files.
8125
8126 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8127
8128         regex: fix false multibyte matches in some regular expressions
8129         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8130         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8131         * lib/regex_internal.c (re_string_skip_chars):
8132         Fix miscomputation of remain_len that may cause incomplete
8133         multi-byte character and false match.
8134
8135 2012-02-24  Jim Meyering  <meyering@redhat.com>
8136
8137         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8138         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8139         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8140         Remove now-unnecessary str''cmp obfuscation.
8141         Suggested by Akim Demaille.
8142
8143 2012-02-24  Bruno Haible  <bruno@clisp.org>
8144
8145         streq: Rename macro.
8146         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8147         * NEWS: Mention the change.
8148         * lib/mbrtowc.c (mbrtowc): Update.
8149         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8150         * lib/wcwidth.c (wcwidth): Update.
8151         Suggested by Akim Demaille and Jim Meyering.
8152
8153 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8154
8155         regex: fix typo in definition of MIN
8156         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8157         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8158
8159 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8160             Bruno Haible  <bruno@clisp.org>
8161
8162         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8163         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8164         entries into a stack-allocated buffer directly.
8165         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8166
8167 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8168             Bruno Haible  <bruno@clisp.org>
8169
8170         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8171
8172          - There were several instances of this pattern:
8173
8174              for (;;) {
8175                n = acl (f, GETACLCNT, 0, NULL);
8176                [ allocate an array A of size N ]
8177                if (acl (f, GETACL, n, a) == n)
8178                  break;
8179              }
8180
8181            This loop might never terminate if some other process is constantly
8182            manipulating the file's ACL.  The loop should be rewritten to
8183            terminate.
8184
8185          - The acl (... GETACLNT ...) call is merely an optimization; its value
8186            is merely a hint as to how big to make the array.  A better
8187            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8188            and just guess a reasonably-big size, growing the size and trying
8189            again if it's not large enough.  This guarantees termination, and
8190            saves a system call.
8191
8192         * lib/acl-internal.h: Include <limits.h>.
8193         (MIN, SIZE_MAX): New macros.
8194         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8195         a stack-allocated buffer, and use malloc if it does not fit. Don't
8196         use GETACLCNT.
8197         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8198
8199 2012-02-19  Bruno Haible  <bruno@clisp.org>
8200
8201         acl: Fix endless loop on Solaris with vxfs.
8202         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8203         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8204         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8205         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8206         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8207         Reported by Bill Jones in
8208         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8209
8210 2012-02-19  Bruno Haible  <bruno@clisp.org>
8211
8212         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8213         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8214         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8215         that this function returns 0 in some more cases.
8216
8217 2012-02-19  Bruno Haible  <bruno@clisp.org>
8218
8219         acl: Update doc references.
8220         * doc/acl-resources.txt: Update links to Solaris documentation.
8221
8222 2012-02-19  Bruno Haible  <bruno@clisp.org>
8223
8224         Fix test failure in many locales on Solaris 11.
8225         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8226         'tr' arguments.
8227         * tests/test-pipe-filter-ii1.c (main): Likewise.
8228         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8229         expressions in the C locale.
8230         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8231         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8232
8233 2012-02-19  Bruno Haible  <bruno@clisp.org>
8234
8235         gnulib-tool: Improve usage message.
8236         * gnulib-tool (func_usage): Move doc of --help and --version to the
8237         section "Operation modes".
8238
8239 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8240
8241         README-release: make it easier to execute commands
8242         * top/README-release: break commands out on to separate lines.
8243
8244 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8245
8246         GNUmakefile: simplify detection of unconfigured trees
8247         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8248         whether the tree make is being run from is already configured or
8249         not.  Related simplifications.
8250
8251 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8252
8253         * gnulib-tool (func_usage): Document --help and --version.
8254
8255 2012-02-11  Jim Meyering  <meyering@redhat.com>
8256
8257         bootstrap: don't exit 0 upon gnulib-tool failure
8258         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8259         its exit status, not 0.
8260
8261 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8262
8263         README-release: various improvements
8264         * top/README-release: Give a command to push changes for the
8265         release.  Add "distcheck" to list of other pre-release checks.
8266         Fix instance of "make stable" which should be "make TYPE".
8267
8268 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         maint: replace FSF snail-mail addresses with URLs
8271         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8272         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8273         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8274         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8275         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8276         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8277         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8278         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8279         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8280         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8281         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8282         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8283         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8284         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8285         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8286         * lib/glthread/thread.c, lib/glthread/thread.h:
8287         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8288         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8289         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8290         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8291         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8292         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8293         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8294         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8295         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8296         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8297         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8298         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8299         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8300         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8301         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8302         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8303         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8304         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8305         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8306         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8307         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8308         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8309         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8310         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8311         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8312         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8313         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8314         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8315         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8316         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8317         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8318         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8319         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8320         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8321         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8322         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8323         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8324         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8325         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8326         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8327         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8328         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8329         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8330         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8331         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8332         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8333         * tests/test-poll.c, tests/test-quotearg-simple.c:
8334         * tests/test-quotearg.c, tests/test-quotearg.h:
8335         * tests/test-round-ieee.c, tests/test-round1.c:
8336         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8337         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8338         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8339         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8340         * tests/test-strerror.c, tests/test-strerror_r.c:
8341         * tests/test-strsignal.c, tests/test-strverscmp.c:
8342         * tests/test-xmemdup0.c:
8343         Replace FSF snail mail addresses with URLs, as per GNU coding
8344         standards.  See glibc bug
8345         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8346
8347 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8348
8349         README-release: capitalize a word and split a line
8350         * top/README-release: Fix punctuation and spacing.
8351
8352 2012-02-08  Akim Demaille  <demaille@gostai.com>
8353
8354         fatal-signal: use C prototypes (with explicit void).
8355         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8356         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8357
8358 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8359
8360         regex: spelling fix
8361         * lib/regexec.c: spelling fix
8362
8363         regex: rely on stdint.h for SIZE_MAX
8364         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8365
8366 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8367
8368         regex: merge glibc changes
8369
8370         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8371         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8372         (init_word_char): Work even if bitset words are not exactly 32 or
8373         64 bits wide.  Don't assume there are no padding bits.
8374         * lib/regex.c [_LIBC]: Do not include <config.h>.
8375         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8376         and -Wtype-limits.
8377         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8378         needless disagreement with glibc.  All uses changed.  Define it to
8379         1 only if _GNU_SOURCE, to match glibc.
8380         (_REG_RM_NAME): Remove; no longer needed, since the names in
8381         question are now all protected by __USE_GNU.
8382         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8383         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8384         * lib/regex_internal.h (MIN): New macro.
8385
8386         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8387         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8388
8389         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8390         * lib/regex_internal.c (re_string_fetch_byte_case):
8391         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8392         is miscompiled, and it turns out it is because of an incorrect
8393         attribute on re_string_fetch_byte_case.  Unlike
8394         re_string_peek_byte_case, this one is really not pure, it modifies
8395         memory (increments pstr->cur_idx), and with the pure attribute GCC
8396         assumed it doesn't and it cached the presumed value of
8397         regexp->cur_idx in a variable across the
8398          for (;; ++i)
8399            {
8400              if (i >= BRACKET_NAME_BUF_SIZE)
8401                return REG_EBRACK;
8402              if (token->type == OP_OPEN_CHAR_CLASS)
8403                ch = re_string_fetch_byte_case (regexp);
8404              else
8405                ch = re_string_fetch_byte (regexp);
8406              if (re_string_eoi(regexp))
8407                return REG_EBRACK;
8408              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8409                break;
8410              elem->opr.name[i] = ch;
8411            }
8412
8413         2011-11-29 Andreas Schwab <schwab@redhat.com>
8414         * lib/regcomp.c (build_equiv_class):
8415         Fix access after end of search string in regex matcher.
8416
8417         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8418         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8419
8420         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8421         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8422
8423         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8424         * lib/regcomp.c (parse_branch, parse_sub_exp):
8425         More regex memory leak fixes and tests.
8426         (parse_sub_exp, parse_bracket_exp):
8427         Fix memory leak for some invalid regular expressions.
8428
8429         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8430         * lib/regex_internal.c, lib/regexec.c:
8431         Fix unnecessary overallocation due to incomplete character.  When
8432         incomplete characters are found at the end of a string the code
8433         ran amok and allocated lots of memory.  Stricter limits are now in
8434         place.
8435
8436         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8437         * lib/regex.h: Update documentation.
8438
8439         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8440         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8441
8442         2010-05-05 Andreas Schwab <schwab@redhat.com>
8443         * lib/regexec.c (find_collation_sequence_value):
8444         Fix lookup of collation sequence value during regexp matching.
8445
8446         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8447         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8448
8449         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8450         * lib/regex.h: Cleanup namespace.
8451
8452         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8453         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8454
8455         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8456         * lib/regex_internal.h: Prevent some declarations and definitions
8457         to be seen when used in tests.
8458
8459         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8460         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8461         __libc_lock_* macros if not _LIBC.
8462         (struct re_dfa_t): Add lock.
8463
8464 2012-02-07  Eric Blake  <eblake@redhat.com>
8465
8466         maint.mk: also prohibit lower-case @var@
8467         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8468         lower case, like @top_srcdir@.
8469
8470 2012-02-04  Eric Blake  <eblake@redhat.com>
8471
8472         canonicalize: avoid uninitialized memory use
8473         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8474         random '/' left in dest.
8475         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8476
8477 2012-02-04  Bruno Haible  <bruno@clisp.org>
8478
8479         isatty: Fix test failure of ptsname_r on native Windows.
8480         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8481         and don't set errno.
8482         (isatty): Test first whether fd is valid. Set errno when returning 0.
8483
8484 2012-02-04  Bruno Haible  <bruno@clisp.org>
8485
8486         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8487         * tests/test-spawn-pipe-main.c: Include progname.h.
8488         (main): Invoke set_program_name.
8489         * modules/spawn-pipe-tests (Depends-on): Add progname.
8490
8491         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8492         * tests/test-nonblocking-socket-main.c: Include progname.h.
8493         (main): Invoke set_program_name.
8494         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8495
8496         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8497         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8498         (main): Invoke set_program_name.
8499         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8500
8501 2012-02-04  Eric Blake  <eblake@redhat.com>
8502
8503         canonicalize-lgpl: fix // handling
8504         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8505
8506         canonicalize: fix // handling
8507         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8508         /// to //, since only // is special.
8509
8510 2012-02-04  Bruno Haible  <bruno@clisp.org>
8511
8512         ioctl: Fix test failure on native Windows.
8513         * lib/ioctl.c: Include msvc-nothrow.h.
8514         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8515
8516 2012-02-04  Bruno Haible  <bruno@clisp.org>
8517
8518         fsync: Avoid test failure on native Windows.
8519         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8520         read-only.
8521
8522 2012-02-04  Bruno Haible  <bruno@clisp.org>
8523
8524         sys_select: Avoid syntax error on OpenBSD 5.0.
8525         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8526         currently being included, just include the system's <sys/select.h>.
8527
8528 2012-02-04  Bruno Haible  <bruno@clisp.org>
8529
8530         sys_select: Avoid syntax error on OpenBSD 5.0.
8531         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8532         <sys/select.h>, not before.
8533         Reported by Jiri B <jirib@devio.us>.
8534
8535 2012-02-04  Bruno Haible  <bruno@clisp.org>
8536
8537         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8538         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8539         global variables.
8540         * tests/test-get-rusage-data.c (main): Likewise.
8541         Reported by Jim Meyering.
8542
8543 2012-02-04  Bruno Haible  <bruno@clisp.org>
8544
8545         stdioext: Fix last commit.
8546         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8547
8548 2012-02-03  Bruno Haible  <bruno@clisp.org>
8549
8550         stdioext: Add tentative support for Plan9.
8551         * lib/stdio-impl.h: Include <errno.h>.
8552         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8553         * lib/freadable.c (freadable): Likewise.
8554         * lib/fwritable.c (fwritable): Likewise.
8555         * lib/fbufmode.c (fbufmode): Likewise.
8556         * lib/freading.c (freading): Likewise.
8557         * lib/fwriting.c (fwriting): Likewise.
8558         * lib/freadptr.c (freadptr): Likewise.
8559         * lib/freadseek.c (freadptrinc): Likewise.
8560         * lib/freadahead.c (freadahead): Likewise.
8561         * lib/fpurge.c (fpurge): Likewise.
8562         * lib/fseeko.c (rpl_fseeko): Likewise.
8563         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8564         Reported by Jens Staal <staal1978@gmail.com>.
8565
8566 2012-02-02  Jim Meyering  <meyering@redhat.com>
8567
8568         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8569         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8570         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8571         not even to try to add the attribute.  Instead, add a pragma to suppress
8572         the suggestion/warning.
8573
8574 2012-01-31  Karl Berry  <karl@gnu.org>
8575
8576         setstate doc: typo.
8577         * doc/posix-functions/setstate.texi (setstate): { not (.
8578
8579 2012-01-31  Bruno Haible  <bruno@clisp.org>
8580
8581         popen: Make more robust on Windows.
8582         * lib/popen.c: On native Windows, use the _popen based code even if
8583         HAVE_POPEN is set.
8584         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8585         environment variable on native Windows.
8586
8587 2012-01-30  Bruno Haible  <bruno@clisp.org>
8588
8589         pclose: Fix typo.
8590         * lib/stdio.in.h (pclose): Fix typo in warning message.
8591
8592 2012-01-30  Bruno Haible  <bruno@clisp.org>
8593
8594         doc about getlogin_r, setstate.
8595         * doc/posix-functions/getlogin_r.texi: List the incompatible
8596         declaration problem under "not fixed by gnulib".
8597         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8598         problem on Solaris 11 and other platforms.
8599
8600 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8601             Bruno Haible  <bruno@clisp.org>
8602
8603         poll tests: Make test more robust.
8604         * tests/test-poll.c: Include macros.h.
8605         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8606         return value of various I/O operations.
8607         * modules/poll-tests (Files): Add tests/macros.h.
8608
8609 2012-01-30  Bruno Haible  <bruno@clisp.org>
8610
8611         sys_stat: Fix support for mingw64 and MSVC.
8612         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8613         header files already do it.
8614         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8615         stat itself.
8616         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8617
8618 2012-01-30  Bruno Haible  <bruno@clisp.org>
8619
8620         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8622         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8623
8624 2012-01-29  Bruno Haible  <bruno@clisp.org>
8625
8626         quotearg: Fix test failure on MacOS X 10.5.
8627         * tests/test-quotearg-simple.c: Include localcharset.h.
8628         (main): If the locale encoding is not ASCII, bypass the tests of
8629         locale_quoting_style and clocale_quoting_style.
8630         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8631
8632 2012-01-29  Jim Meyering  <meyering@redhat.com>
8633
8634         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8635         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8636         detect uses of canonicalize_file_name.
8637
8638 2012-01-28  Bruno Haible  <bruno@clisp.org>
8639
8640         test-framework-sh: Fix test failure with AIX 7.1 diff.
8641         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8642         in column 1, like 'diff -c' does.
8643         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8644         whether 'diff -u' is used. Instead, test whether the output contains
8645         some '@' character.
8646
8647 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8648
8649         strtoimax: eliminate need for stdint.h, inttypes.h checks
8650         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8651         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8652         the prerequisites for a recently-introduced strtoimax test.
8653         I guess this might cause strtoimax to be replaced when not
8654         strictly necessary on older hosts, but this shouldn't introduce
8655         any bugs and it should make Emacs 'configure' faster on typical
8656         modern hosts.  Problem discovered when importing the latest gnulib
8657         to an Emacs test version.
8658         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8659
8660 2012-01-28  Bruno Haible  <bruno@clisp.org>
8661
8662         sys_time: Override 'struct timeval' on some native Windows platforms.
8663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8664         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8665         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8666         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8667         needs to be overridden.
8668         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8669         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8670         * tests/test-sys_select.c: Check that the tv_sec member has the same
8671         size as a 'time_t'.
8672         * tests/test-sys_time.c: Likewise.
8673         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8674         is set, set also REPLACE_GETTIMEOFDAY.
8675         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8676         convert the resulting 'struct timeval' before returning.
8677         * lib/select.c: Include <sys/time.h>.
8678         (select, timeval): Undefine at the right place.
8679         * modules/select (Depends-on): Add sys_time.
8680         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8681         some Windows platforms.
8682         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8683
8684 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8685
8686         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8687         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8688         an integer.
8689         * lib/fcntl.c (dupfd): Likewise.
8690         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8691
8692 2012-01-28  Bruno Haible  <bruno@clisp.org>
8693
8694         fcntl: Avoid compilation error on native Windows.
8695         * modules/fcntl (Depends-on): Add 'close'.
8696
8697 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8698
8699         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8700         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8701         pointer to an integer.
8702         * lib/poll.c (IsConsoleHandle): Likewise.
8703         * lib/isatty.c (IsConsoleHandle): Likewise.
8704
8705 2012-01-28  Jim Meyering  <meyering@redhat.com>
8706
8707         doc: clarify README-release
8708         * top/README-release: Clarify: you should make a point to have
8709         the latest stable versions of build tools in your PATH, and the
8710         reference to buildreq is solely for its list of tool names, not
8711         for its minimal-functional version numbers.
8712         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8713
8714         maint.mk: use more readable (yet functionally equivalent) quoting
8715         It is common to quote a single quote in a single quoted string like
8716         this:  '...'\''...'.  Unless you know the idiom, that looks like
8717         gibberish, so prefer to double-quote the string when possible.
8718         Then you can use a more readable, lone single quote: "...'..."
8719         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8720         "don't" is more readable than the equivalent 'don'\''t'.
8721         (sc_cast_of_x_alloc_return_value): Likewise.
8722         (sc_cast_of_alloca_return_value): Likewise.
8723         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8724         rather than '\'':'\''.
8725
8726 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8727
8728         stdalign: relax _Alignof and tighten _Alignas test
8729         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8730         as it was too strict: alignof must divide offsetof, but it need
8731         not equal offsetof.  Inspired by Joseph S. Myers's comment
8732         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8733         Conversely, tighten the _Alignas test a bit, as the resulting
8734         alignment must be exactly 8.
8735
8736 2012-01-27  Bruno Haible  <bruno@clisp.org>
8737
8738         stdalign: Document the last change.
8739         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8740
8741 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8742
8743         stdalign: check that alignof and offsetof are consistent
8744         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8745         Problem reported for gnulib by Richard W.M. Jones in
8746         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8747
8748 2012-01-27  Jim Meyering  <meyering@redhat.com>
8749
8750         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8751         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8752         convert a sequence with gaps to the minimal containing range.
8753         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8754         * tests/test-update-copyright.sh: Test for this.
8755         The FSF confirmed it is ok to do this, assuming there is at
8756         least one significant change per year in the affected range:
8757         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8758
8759 2012-01-26  Bruno Haible  <bruno@clisp.org>
8760
8761         pipe2: refine doc about thread-safety
8762         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8763         multithread-safety problem.
8764         * doc/glibc-functions/accept4.texi: Likewise.
8765
8766 2012-01-26  Bruno Haible  <bruno@clisp.org>
8767
8768         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8769         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8770         In the test program, include <fcntl.h>, for O_RDONLY.
8771
8772 2012-01-26  Eric Blake  <eblake@redhat.com>
8773
8774         pipe2: document lack of thread-safety in replacement
8775         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8776         issue in replacement.
8777         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8778         Based on a report by Eric Wong.
8779
8780 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8781             Bruno Haible  <bruno@clisp.org>
8782
8783         malloca: Avoid warnings on x86_64 mingw64.
8784         * lib/malloca.c: Include <stdint.h>.
8785         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8786         * modules/malloca (Depends-on): Add stdint.
8787         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8788
8789 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8790
8791         obstack: remove __STDC__ conditionals
8792         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8793         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8794         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8795         m4/include_next.m4 as the only gnulib-maintained places that still
8796         refer to __STDC__.
8797
8798 2012-01-24  Bruno Haible  <bruno@clisp.org>
8799
8800         havelib: Modern quoting.
8801         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8802         the recent change to the GNU coding standards.
8803
8804 2012-01-24  Bruno Haible  <bruno@clisp.org>
8805
8806         stdint: Improve support for Android.
8807         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8808         Reported by Simon Josefsson <simon@josefsson.org>.
8809
8810 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8811
8812         doc: omit trailing empty lines from INSTALL etc.
8813         * doc/Makefile (INSTALL): Omit trailing empty lines.
8814         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8815         omit trailing empty lines.  This simplifies the build procedure.
8816
8817 2012-01-23  Jim Meyering  <meyering@redhat.com>
8818
8819         tests: avoid spurious warnings about gl_sockets_startup
8820         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8821         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8822         reporting a "statement with no effect".
8823         * tests/test-accept.c (main): Mark as "(void)".
8824         * tests/test-accept4.c (main): Likewise.
8825         * tests/test-bind.c (main): Likewise.
8826         * tests/test-connect.c (main): Likewise.
8827         * tests/test-getpeername.c (main): Likewise.
8828         * tests/test-getsockname.c (main): Likewise.
8829         * tests/test-getsockopt.c (main): Likewise.
8830         * tests/test-listen.c (main): Likewise.
8831         * tests/test-recv.c (main): Likewise.
8832         * tests/test-recvfrom.c (main): Likewise.
8833         * tests/test-send.c (main): Likewise.
8834         * tests/test-sendto.c (main): Likewise.
8835         * tests/test-setsockopt.c (main): Likewise.
8836         * tests/test-shutdown.c (main): Likewise.
8837
8838 2012-01-21  Bruno Haible  <bruno@clisp.org>
8839
8840         locale-fr.m4: Fix for Android.
8841         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8842         failure of the test program on Bionic libc.
8843
8844 2012-01-21  Jim Meyering  <meyering@redhat.com>
8845
8846         bootstrap: fail when bootstrap_post_import_hook fails
8847         Otherwise, it's far too easy to miss diagnostics emitted
8848         between gnulib-tool's output and that of running configure.
8849         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8850
8851 2012-01-17  Jim Meyering  <meyering@redhat.com>
8852
8853         maint: enable sc_trailing_blank
8854         * build-aux/pmccabe.css: Remove trailing blanks.
8855         * doc/acl-cygwin.txt: Likewise.
8856         * doc/gnu-oids.texi: Likewise
8857         * cfg.mk: Enable sc_trailing_blank.
8858         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8859
8860 2012-01-17  Jim Meyering  <meyering@redhat.com>
8861
8862         maint: enable sc_prohibit_openat_without_use
8863         * cfg.mk: Enable sc_prohibit_openat_without_use.
8864         Exempt lib/selinux-at.c.
8865
8866 2012-01-17  Jim Meyering  <meyering@redhat.com>
8867
8868         maint: enable sc_prohibit_cloexec_without_use
8869         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8870         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8871
8872 2012-01-17  Jim Meyering  <meyering@redhat.com>
8873
8874         maint: enable sc_prohibit_intprops_without_use
8875         * cfg.mk: Enable sc_prohibit_intprops_without_use
8876         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8877
8878 2012-01-17  Jim Meyering  <meyering@redhat.com>
8879
8880         maint: enable sc_prohibit_hash_pjw_without_use
8881         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8882         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8883         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8884         following " (".
8885
8886 2012-01-17  Jim Meyering  <meyering@redhat.com>
8887
8888         maint: enable double-word-prohibiting rule
8889         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8890         Exempt three files.
8891
8892 2012-01-17  Jim Meyering  <meyering@redhat.com>
8893
8894         maint: remove empty lines at EOF, but excluding modules/*
8895         Apply syntax rules at home as well as abroad.  Most changes
8896         were induced by running this:
8897           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8898             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8899             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8900         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8901         Exempt modules/* and two binary files.
8902         Also exempt doc/INSTALL*, per request from Bruno Haible.
8903         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8904         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8905         * doc/Copyright/request-assign.future: Likewise.
8906         * doc/Copyright/request-disclaim.changes: Likewise.
8907         * doc/INSTALL: Likewise.
8908         * doc/INSTALL.ISO: Likewise.
8909         * doc/INSTALL.UTF-8: Likewise.
8910         * doc/acl-cygwin.txt: Likewise.
8911         * doc/acl-resources.txt: Likewise.
8912         * doc/fdl-1.2.texi: Likewise.
8913         * doc/fdl-1.3.texi: Likewise.
8914         * doc/fdl.texi: Likewise.
8915         * lib/argp-pin.c: Likewise.
8916         * lib/round.c: Likewise.
8917         * lib/unicase/u16-totitle.c: Likewise.
8918         * lib/unictype/block_test.c: Likewise.
8919         * lib/uninorm/canonical-decomposition.c: Likewise.
8920         * m4/README: Likewise.
8921         * m4/relocatable-lib.m4: Likewise.
8922         * tests/test-isnand-nolibm.c: Likewise.
8923         * tests/test-isnand.c: Likewise.
8924         * tests/uninorm/NormalizationTest.txt: Likewise.
8925
8926 2012-01-17  Jim Meyering  <meyering@redhat.com>
8927
8928         maint: add framework to run syntax-check rules against gnulib sources
8929         * cfg.mk: New file, to disable all currently-failing tests.
8930         We'll enable them one by one, as they are made to pass.
8931         * Makefile (sc_maint): New rule.
8932
8933 2012-01-21  Bruno Haible  <bruno@clisp.org>
8934
8935         stdint: Add support for Android.
8936         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8937         include the system's <stdint.h>.
8938         Reported by Simon Josefsson <simon@josefsson.org>.
8939
8940 2012-01-19  Jim Meyering  <meyering@redhat.com>
8941
8942         bootstrap: add bootstrap_post_import_hook
8943         Bison does still need something like the gnulib_mk_hook whose
8944         invocation I had to remove along with slurp in commit 767ccd40.
8945         Technically, we could get along without it, but doing so would
8946         have required living with a warning and a mandatory post-bootstrap
8947         automake rerun.
8948         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8949         (bootstrap_post_import_hook): New function.
8950         Invoke it after gnulib-tool --import and before autoreconf.
8951
8952 2012-01-18  Jim Meyering  <meyering@redhat.com>
8953
8954         gitlog-to-changelog: don't use "no_"-prefixed variable name
8955         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8956         to enable both --cluster and --no-cluster.  Change variable name,
8957         s/\$no_cluster/$cluster/, and reverse usage to match.
8958
8959         gitlog-to-changelog: use "||", not "or" in expressions
8960         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8961         expressions.
8962
8963 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8964
8965         gitlog-to-changelog: new option --no-cluster
8966         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8967         clustering of adjacent commit messages.
8968
8969 2012-01-17  Jim Meyering  <meyering@redhat.com>
8970
8971         maint: spell file systems with two words, not one
8972         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8973         two words, not one.
8974
8975 2012-01-16  Jim Meyering  <meyering@redhat.com>
8976
8977         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8978         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8979
8980 2012-01-16  Eric Blake  <eblake@redhat.com>
8981
8982         bootstrap: cater to autoconf 2.59
8983         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8984         is not available.
8985
8986         bootstrap: properly check for libtool
8987         * build-aux/bootstrap (libtoolize): Also run libtool when older
8988         usage is detected.
8989
8990 2012-01-15  Bruno Haible  <bruno@clisp.org>
8991
8992         Improve support for MSVC 9.
8993         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8994         clashes on MSVC.
8995         * lib/fcntl.in.h: Likewise.
8996         * lib/stdlib.in.h: Likewise.
8997         * lib/sys_stat.in.h: Likewise.
8998
8999 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9000
9001         gnupload: we hold the master copy of this script now
9002         For motivation and more information, see:
9003         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9004         * build-aux/gnupload: Make it clear in the heading comments that the
9005         master copy of this file is maintained by gnulib.  Since we are at
9006         it, bump its copyright year and ...
9007         ($scriptversion): ... the date in its version.
9008         ($usage): Patches and bug reports should be sent to the gnulib list,
9009         not the automake one.
9010         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9011         anymore.
9012
9013 2012-01-15  Bruno Haible  <bruno@clisp.org>
9014
9015         Fix module 'random'.
9016         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9017         initstate, setstate are declared.
9018
9019 2012-01-14  Bruno Haible  <bruno@clisp.org>
9020
9021         Tests for module 'random'.
9022         * modules/random-tests: New file.
9023         * tests/test-random.c: New file, based on tests/test-random_r.c.
9024
9025         New module 'random'.
9026         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9027         declarations.
9028         * lib/random.c: New file, based on glibc/stdlib/random.c.
9029         * m4/random.m4: New file.
9030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9031         HAVE_RANDOM.
9032         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9033         * modules/random: New file.
9034         * config/srclist.txt: Add an entry for random.c.
9035         * doc/posix-functions/random.texi: Mention the 'random' module.
9036         * doc/posix-functions/initstate.texi: Likewise.
9037         * doc/posix-functions/setstate.texi: Likewise.
9038         * doc/posix-functions/srandom.texi: Likewise.
9039
9040 2012-01-12  Bruno Haible  <bruno@clisp.org>
9041
9042         random_r: Use common idioms.
9043         * lib/random_r.c: Include <stdlib.h> first.
9044
9045         random_r: Override incompatible API on AIX, OSF/1.
9046         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9047         Override the system function if REPLACE_RANDOM_R is 1.
9048         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9049         and OSF/1, set REPLACE_RANDOM_R.
9050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9051         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9052         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9053         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9054         * doc/glibc-functions/random_r.texi: Likewise.
9055         * doc/glibc-functions/setstate_r.texi: Likewise.
9056
9057         random_r: Support for MSVC 9.
9058         * lib/random_r.c: Include stdint.h, not inttypes.h.
9059
9060 2012-01-12  Eric Blake  <eblake@redhat.com>
9061
9062         inet_ntop: guard extra work by IF_LINT
9063         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9064         better code generation when not checking for warnings.
9065         Suggested by Paul Eggert and Jim Meyering.
9066
9067         strptime: fix regression on mingw
9068         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9069         Fix regression.  Reported by Bruno Haible.
9070
9071 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9072             Bruno Haible  <bruno@clisp.org>
9073
9074         copy-file: add error-code-returning variant.
9075         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9076         (qcopy_file_preserving): New declaration.
9077         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9078         copy_file_preserving. Change return type to 'int'. Don't emit an error
9079         message here.
9080         (copy_file_preserving): New function.
9081         * tests/test-copy-file.c: Include <stdlib.h>.
9082         (main): Test qcopy_file_preserving if the environment variable
9083         NO_STDERR_OUTPUT is set.
9084         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9085         with NO_STDERR_OUTPUT
9086         * tests/test-copy-file-2.sh: Likewise.
9087
9088 2012-01-10  Bruno Haible  <bruno@clisp.org>
9089
9090         copy-file: Use 'quote' module consistently.
9091         * lib/copy-file.c (copy_file_preserving): Use quote().
9092
9093         copy-file: Refactor.
9094         * lib/copy-file.c: Include quote.h.
9095         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9096         message here.
9097         * modules/copy-file (Depends-on): Add quote.
9098
9099         acl: Export qcopy_acl.
9100         * lib/acl.h (qcopy_acl): New declaration.
9101         * lib/copy-acl.c (qcopy_acl): Make non-static.
9102
9103         acl: Rename a local variable.
9104         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9105
9106         acl: Align return values of copy_acl and qcopy_acl.
9107         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9108         maybe < -1.
9109
9110 2012-01-11  Eric Blake  <eblake@redhat.com>
9111
9112         strptime: silence gcc warnings
9113         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9114         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9115         Reported by Daniel P. Berrange.
9116
9117         inet_ntop: silence gcc warning
9118         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9119         Reported by Daniel P. Berrange.
9120
9121 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9122
9123         getloadavg test: skip the test on GNU/Linux without /proc mounted
9124         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9125         file.  When /proc is not mounted, it always fails with ENOENT.
9126         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9127         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9128
9129 2012-01-10  Bruno Haible  <bruno@clisp.org>
9130
9131         regex: Avoid link error on MSVC 9.
9132         * modules/regex (Depends-on): Add wctype.
9133
9134 2012-01-10  Bruno Haible  <bruno@clisp.org>
9135
9136         doc: Mention --with-tests option.
9137         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9138         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9139         --with-tests.
9140         Reported by Reuben Thomas.
9141
9142 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9143
9144         users.txt: order package names lexicographically.
9145         * users.txt: Order package names lexicographically.
9146
9147 2012-01-10  Jim Meyering  <meyering@redhat.com>
9148
9149         maint.mk: fix description in comment
9150         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9151
9152         ignore-value: remove deprecated ignore_ptr function
9153         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9154         * NEWS: Note this.
9155
9156 2012-01-09  Jim Meyering  <meyering@redhat.com>
9157
9158         test-init.sh: avoid a subshell
9159         * tests/test-init.sh: Remove protective subshell.
9160         Suggested by Bernhard Voelker.  While a subshell is normally
9161         required to protect against older shells (Solaris, FreeBSD) that
9162         warn about a missing program before performing redirection, the
9163         shell-selection tests performed by init.sh probably exclude any
9164         offending shell.
9165
9166 2012-01-08  Bruno Haible  <bruno@clisp.org>
9167
9168         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9169         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9170         variable.
9171
9172 2012-01-08  Bruno Haible  <bruno@clisp.org>
9173
9174         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9175         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9176         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9177         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9178         macro.
9179         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9180         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9181         * lib/spawn_faction_addopen.c: Add workaround implementation if
9182         HAVE_WORKING_POSIX_SPAWN.
9183         * modules/spawn (Makefile): Substitute
9184         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9185         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9186         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9188         (Depends-on): Update conditions.
9189         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9190         the Solaris 11 bug.
9191
9192 2012-01-08  Bruno Haible  <bruno@clisp.org>
9193
9194         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9195         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9196         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9197         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9198         macro.
9199         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9201         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9202         HAVE_WORKING_POSIX_SPAWN.
9203         * modules/spawn (Makefile): Substitute
9204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9205         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9206         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9207         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9208         (Depends-on): Update conditions.
9209         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9210         the Solaris 11 bug.
9211
9212 2012-01-08  Bruno Haible  <bruno@clisp.org>
9213
9214         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9215         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9216         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9217         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9218         HAVE_WORKING_POSIX_SPAWN.
9219         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9220         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9222         * lib/spawn_faction_addclose.c: Add workaround implementation if
9223         HAVE_WORKING_POSIX_SPAWN.
9224         * modules/spawn (Makefile): Substitute
9225         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9226         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9227         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9229         (Depends-on): Update conditions.
9230         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9231         the Solaris 11 bug.
9232
9233 2012-01-08  Bruno Haible  <bruno@clisp.org>
9234
9235         doc: Update for Solaris 11 2011-11.
9236         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9237         * m4/printf.m4: Update comments.
9238
9239 2012-01-08  Bruno Haible  <bruno@clisp.org>
9240
9241         mktime: Avoid compilation error on Solaris 11.
9242         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9243
9244 2012-01-08  Bruno Haible  <bruno@clisp.org>
9245
9246         doc: Small fix.
9247         * doc/posix-headers/nl_types.texi: Correct platforms list.
9248
9249 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9250
9251         Add lgpl-3.0 module.
9252         * MODULES.html.sh (Support for building documentation): Add
9253         lgpl-3.0.
9254         * modules/lgpl-3.0: New file.
9255
9256 2012-01-08  Jim Meyering  <meyering@redhat.com>
9257
9258         select.c: indent with spaces, not TABs
9259         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9260
9261 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9262
9263         quotearg: do not use grave accent for left quote
9264         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9265         locale_quoting_style.
9266         (quotearg_buffer_restyled): Fix example.
9267         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9268
9269 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9270
9271         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9272         Most programs do not have translation catalogs for English and much
9273         less separate catalogs for British and American English.  Drop the
9274         suggestion to translators about these two, and provide it
9275         automatically for Unicode locales.  Like most programs, even those
9276         using American English, we use single quotation marks.  This conflicts
9277         with the American typographic convention, but works better when you
9278         cite the entire error message within double quotes.  It also tries not
9279         to clash with established practice and with what non-gnulib programs
9280         will usually do.
9281         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9282         using an UTF-8 or GB-18030 locale.  The list of other locales with
9283         quotes was provided by Bruno Haible.
9284         (quotearg_buffer_restyled): Adjust instructions to translators.
9285         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9286         text, since this would be wrong when using Unicode.
9287         * modules/quotearg: Depend on c-strcaseeq.
9288
9289 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9290
9291         quotearg: fix Wikipedia link
9292         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9293
9294 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9295
9296         Fix for mingw with MSVC9.
9297         * m4/ld-version-script.m4: Check that compiler rejects version
9298         scripts with syntax errors.  Reported by Bruno Haible
9299         <bruno@clisp.org>.
9300
9301 2012-01-06  Bruno Haible  <bruno@clisp.org>
9302
9303         Talk about "native Windows API", not "Woe32".
9304         * lib/accept4.c: Update comments to mention native Windows.
9305         * lib/execute.c: Likewise.
9306         * lib/fatal-signal.c: Likewise.
9307         * lib/localcharset.c: Likewise.
9308         * lib/nanosleep.c: Likewise.
9309         * lib/nl_langinfo.c: Likewise.
9310         * lib/pclose.c: Likewise.
9311         * lib/pipe-filter-gi.c: Likewise.
9312         * lib/pipe-filter-ii.c: Likewise.
9313         * lib/pipe.c: Likewise.
9314         * lib/pipe2.c: Likewise.
9315         * lib/popen.c: Likewise.
9316         * lib/progreloc.c: Likewise.
9317         * lib/relocatable.c: Likewise.
9318         * lib/sigaction.c: Likewise.
9319         * lib/sigprocmask.c: Likewise.
9320         * lib/spawn-pipe.h: Likewise.
9321         * lib/spawn-pipe.c: Likewise.
9322         * lib/spawni.c: Likewise.
9323         * lib/stat-time.h: Likewise.
9324         * lib/w32spawn.h: Likewise.
9325         * tests/test-isatty.c: Likewise.
9326         * lib/config.charset: More comments.
9327         * doc/gnulib-intro.texi: Mention native Windows.
9328         * doc/posix-functions/_Exit_C99.texi: Likewise.
9329         * doc/posix-headers/fcntl.texi: Likewise.
9330
9331 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9332
9333         argp: Avoid crash if translator uses % characters in a translation.
9334         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9335         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9336
9337 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9338
9339         doc: C11 and C++11 are now official
9340         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9341         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9342         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9343         * modules/stdalign:
9344         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9345
9346 2012-01-06  Bruno Haible  <bruno@clisp.org>
9347
9348         uc-is-grapheme-break tests: Tweak.
9349         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9350         message.
9351
9352 2012-01-06  Bruno Haible  <bruno@clisp.org>
9353
9354         test-init.sh: correct the test for diff -u
9355         * tests/test-init.sh: Also redirect stdout to /dev/null.
9356
9357 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9358
9359         Use ', not `, for quoting output.
9360         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9361         (print_changelog_deltas, get_tool_versions, main program):
9362         * build-aux/git-version-gen:
9363         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9364         * build-aux/move-if-change (help):
9365         * build-aux/useless-if-before-free (usage, main program):
9366         * check-module (parse_module_file, usage)
9367         (find_included_lib_files, check_module):
9368         * lib/argmatch.c (main) [TEST]:
9369         * lib/argp-help.c (_help):
9370         * lib/getopt1.c (main) [TEST]:
9371         * lib/git-merge-changelog.c (usage):
9372         * lib/xstrtol-error.c (xstrtol_error):
9373         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9374         * m4/argz.m4 (gl_FUNC_ARGZ):
9375         * m4/bison.m4 (gl_BISON):
9376         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9378         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9379         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9380         * m4/gc-random.m4 (gl_GC_RANDOM):
9381         * m4/intl.m4 (gt_CHECK_DECL):
9382         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9383         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9384         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9385         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9386         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9387         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9388         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9389         * tests/test-dirname.c (main):
9390         * tests/test-getpass.c (main):
9391         * tests/test-iconvme.c (main):
9392         * tests/test-parse-datetime.c (LOG):
9393         * tests/test-xstrtoimax.sh:
9394         * tests/test-xstrtol.sh:
9395         * tests/test-xstrtoll.sh:
9396         * tests/test-xstrtoumax.sh:
9397         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9398         * top/GNUmakefile (abort-due-to-no-makefile):
9399         Quote 'like this', not `like this', as per the recent change to
9400         the GNU coding standards.
9401
9402 2012-01-05  Bruno Haible  <bruno@clisp.org>
9403
9404         strtoimax: Don't force a replacement on systems where intmax_t is int.
9405         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9406         'intmax_t' is not larger than 'int'.
9407         Reported by Pádraig Brady <P@draigBrady.com>.
9408
9409 2012-01-05  Bruno Haible  <bruno@clisp.org>
9410
9411         doc: Mention NetBSD bugs.
9412         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9413         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9414
9415 2012-01-05  Bruno Haible  <bruno@clisp.org>
9416
9417         strtoumax tests: Enhance tests.
9418         * tests/test-strtoumax.c (main): Add tests for large values.
9419
9420 2012-01-05  Bruno Haible  <bruno@clisp.org>
9421
9422         strtoimax: Work around AIX 5.1 bug.
9423         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9424         definition.
9425         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9426         Set HAVE_STRTOIMAX.
9427         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9428         REPLACE_STRTOIMAX.
9429         * modules/inttypes-incomplete (Makefile.am): Substitute
9430         REPLACE_STRTOIMAX.
9431         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9432         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9433         (Depends-on): Update conditions.
9434         * tests/test-strtoimax.c (main): Add tests for large values.
9435         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9436
9437 2012-01-05  Bruno Haible  <bruno@clisp.org>
9438
9439         inttypes: Modernize.
9440         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9441         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9442         (Makefile.am): Update inttypes.h rule.
9443
9444 2012-01-05  Jim Meyering  <meyering@redhat.com>
9445
9446         init.sh: don't waste a subshell just to redirect stderr
9447         * tests/init.sh: In testing for diff -u and diff -c, use a
9448         stderr-redirecting exec inside `...` rather than a subshell.
9449
9450         test-init.sh: avoid failure on HP-UX 11.00
9451         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9452         resolves to diff -c or cmp.  Reported by Bruno Haible.
9453
9454 2012-01-05  Bruno Haible  <bruno@clisp.org>
9455
9456         Tests for module 'strtoull'.
9457         * modules/strtoull-tests: New file.
9458         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9459
9460 2012-01-05  Bruno Haible  <bruno@clisp.org>
9461
9462         Tests for module 'strtoll'.
9463         * modules/strtoll-tests: New file.
9464         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9465
9466 2012-01-05  Bruno Haible  <bruno@clisp.org>
9467
9468         Tests for module 'strtoul'.
9469         * modules/strtoul-tests: New file.
9470         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9471
9472 2012-01-05  Bruno Haible  <bruno@clisp.org>
9473
9474         Tests for module 'strtol'.
9475         * modules/strtol-tests: New file.
9476         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9477
9478 2012-01-04  Jim Meyering  <meyering@redhat.com>
9479
9480         test-init.sh: accommodate Solaris 5.10's different diff -u output
9481         * tests/test-init.sh: Also exempt @@ lines from the comparison
9482         of diff output, since Solaris 5.10 and GNU diff formats differ.
9483         Reported by Stefano Lattarini.
9484
9485 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9486
9487         test-posixtm: don't assume signed integer wraparound
9488         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9489         after signed integer overflow.  Inspired by (though it may not
9490         fix) Bruno Haible's bug report in
9491         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9492
9493         Spell out "Windows 9x" and "Windows XP".
9494         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9495         "Windows 9x" and "WinXP" with "Windows XP".
9496
9497 2012-01-04  Jim Meyering  <meyering@redhat.com>
9498
9499         test-vc-list-files-cvs.sh: remove obsolete comment
9500         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9501         double exit.  Now that's all encapsulated via skip_ and Exit.
9502
9503 2012-01-04  Bruno Haible  <bruno@clisp.org>
9504
9505         Talk about "native Windows API", not "Win32".
9506         * lib/classpath.c: Update comments to mention native Windows.
9507         * lib/csharpexec.c: Likewise.
9508         * lib/dup2.c: Likewise.
9509         * lib/error.c: Likewise.
9510         * lib/fcntl.c: Likewise.
9511         * lib/filename.h: Likewise.
9512         * lib/findprog.c: Likewise.
9513         * lib/get-rusage-as.c: Likewise.
9514         * lib/get-rusage-data.c: Likewise.
9515         * lib/getpagesize.c: Likewise.
9516         * lib/javaexec.c: Likewise.
9517         * lib/msvc-inval.c: Likewise.
9518         * lib/msvc-nothrow.c: Likewise.
9519         * lib/nanosleep.c: Likewise.
9520         * lib/nonblocking.c: Likewise.
9521         * lib/printf-parse.c: Likewise.
9522         * lib/setlocale.c: Likewise.
9523         * lib/sigaction.c: Likewise.
9524         * lib/strerror_r.c: Likewise.
9525         * lib/tmpdir.c: Likewise.
9526         * lib/vasnprintf.c: Likewise.
9527         * lib/w32spawn.h: Likewise.
9528         * lib/waitpid.c: Likewise.
9529         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9530         * m4/locale-ar.m4: Likewise.
9531         * m4/locale-fr.m4: Likewise.
9532         * m4/locale-ja.m4: Likewise.
9533         * m4/locale-tr.m4: Likewise.
9534         * m4/locale-zh.m4: Likewise.
9535         * m4/printf.m4: Likewise.
9536         * tests/test-cloexec.c: Likewise.
9537         * tests/test-copy-acl.sh: Likewise.
9538         * tests/test-copy-file.sh: Likewise.
9539         * tests/test-file-has-acl.sh: Likewise.
9540         * tests/test-set-mode-acl.sh: Likewise.
9541         * tests/test-dup-safer.c: Likewise.
9542         * tests/test-dup2.c: Likewise.
9543         * tests/test-dup3.c: Likewise.
9544         * tests/test-fcntl.c: Likewise.
9545         * tests/test-nonblocking-pipe.h: Likewise.
9546         * tests/test-nonblocking-socket.h: Likewise.
9547         * tests/test-pipe.c: Likewise.
9548         * tests/test-pipe2.c: Likewise.
9549         * tests/test-spawn-pipe-child.c: Likewise.
9550         * doc/acl-resources.txt: Likewise.
9551         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9552         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9553         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9554         * lib/localcharset.c: Update comments to mention native Windows.
9555         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9556         * lib/localename.c: Likewise.
9557         * lib/progreloc.c: Likewise.
9558         * lib/relocatable.c: Likewise.
9559         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9560         (windows_compute_revents): Renamed from win32_compute_revents.
9561         (windows_compute_revents_socket): Renamed from
9562         win32_compute_revents_socket.
9563         * lib/select.c: Update comments to mention native Windows.
9564         (windows_poll_handle): Renamed from win32_poll_handle.
9565         * m4/threadlib.m4: Update comments to mention native Windows.
9566         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9567         --enable-threads=windows instead of --enable-threads=win32. Set
9568         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9569         * lib/glthread/lock.h: Update comments to mention native Windows.
9570         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9571         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9572         USE_WIN32_THREADS.
9573         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9574         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9575         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9576         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9577         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9578         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9579         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9580         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9581         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9582         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9583         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9584         * tests/test-tls.c: Likewise.
9585         Rationale:
9586         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9587         on both 32-bit and 64-bit Windows systems.
9588         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9589         line of distinction is between "native Windows" on one side and Unix/
9590         POSIX systems on the other side. More details in
9591         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9592         Suggested by Paul Eggert.
9593
9594 2012-01-03  Bruno Haible  <bruno@clisp.org>
9595
9596         isatty: Support for MSVC 9.
9597         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9598         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9599         (_isatty_nothrow): New function.
9600         (isatty): Use it instead of _isatty.
9601         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9602         * lib/poll.c (IsConsoleHandle): Likewise.
9603         * lib/select.c (IsConsoleHandle): Likewise.
9604         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9605         (gl_PREREQ_ISATTY): New macro.
9606         * modules/isatty (Depends-on): Add msvc-inval.
9607         (configure.ac): Invoke gl_PREREQ_ISATTY.
9608
9609 2012-01-03  Jim Meyering  <meyering@redhat.com>
9610
9611         maint.mk: remove temporary transition aid from over 1.5 years ago
9612         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9613         purpose was to aid in the transition (avoiding silent malfunction)
9614         from that old name to the new _sc_search_regexp.  This shim was
9615         added by commit 219c504b.
9616
9617         init.sh: do not try to accommodate compare arguments starting with "-"
9618         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9619         compare arguments that start with "-".  Besides, we do not worry
9620         about this when invoking diff or cmp; why start now with sed?
9621         Using "--" to separate options from argument would trigger sed
9622         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9623         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9624
9625 2012-01-02  Bruno Haible  <bruno@clisp.org>
9626
9627         Enhance tests for module 'isatty'.
9628         * modules/isatty-tests (Depends-on): Add pipe-posix.
9629         * tests/test-isatty.c: Include <fcntl.h>.
9630         (DEV_NULL): New macro.
9631         (main): Test the resut of isatty() also on regular files, pipes, and
9632         /dev/null.
9633
9634         New module 'isatty'.
9635         * lib/unistd.in.h (isatty): New declaration.
9636         * lib/isatty.c: New file, based on an idea of
9637         Bastien Roucariès <roucaries.bastien@gmail.com>.
9638         * m4/isatty.m4: New file.
9639         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9640         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9641         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9642         REPLACE_ISATTY.
9643         * modules/isatty: New file.
9644         * doc/posix-functions/isatty.texi: Mention the new module.
9645         Suggested by Paolo Bonzini.
9646
9647 2012-01-02  Bruno Haible  <bruno@clisp.org>
9648
9649         canonicalize: Tweak 2011-12-29 commit.
9650         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9651         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9652
9653 2012-01-02  Jim Meyering  <meyering@redhat.com>
9654
9655         gitlog-to-changelog: describe input syntax in --help output
9656         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9657
9658         gitlog-to-changelog: fix typo in --help: show backslash before email @
9659         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9660         in sources, but not in actual output.
9661
9662 2011-12-30  Jim Meyering  <meyering@redhat.com>
9663
9664         gitlog-to-changelog: don't malfunction when name contains %-directive
9665         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9666         in a name string cause trouble.  E.g., with a user name of "%s",
9667         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9668
9669 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9670
9671         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9672         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9673         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9674         the "  (tiny change)" notation that is appended to the standard
9675         ChangeLog "date  name  email" header line.
9676
9677 2012-01-01  Jim Meyering  <meyering@redhat.com>
9678
9679         test-framework-sh: init.sh: fix "make dist" failure
9680         When using gnulib-tool's --with-tests option and any module that
9681         depends on test-framework-sh, "make dist" would fail due to the
9682         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9683         in the gltests directory, and not in the gllib/ directory.
9684         One way to work around that is to move the EXTRA_DIST += init.sh
9685         from the primary module to the -tests one:
9686         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9687         * modules/test-framework-sh (Makefile.am): ...not here.
9688         Reported by Tom G. Christensen in
9689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9690
9691         version-etc: update copyright year reported by --version
9692         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9693
9694 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9695
9696         canonicalize: only stat() if required
9697         * lib/canonicalize.c (canonicalize_filename_mode):
9698         Avoid calling l?stat() when both CAN_MISSING,
9699         and CAN_NOLINKS are set, as we neither need
9700         to resolve symlinks or test component existence.
9701
9702 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         doc: cover st_ino issues once; add OpenVMS etc.
9705         * doc/posix-functions/stat.texi (stat):
9706         * doc/posix-functions/lstat.texi (lstat):
9707         * doc/posix-functions/fstatat.texi (fstatat):
9708         * doc/posix-functions/fstat.texi (fstat):
9709         Move general 'struct stat' stuff to sys_stat.texi,
9710         leaving behind a pointer.
9711         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9712         Merge duplicate info about 'struct stat' problems into here.
9713         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9714         and suggest partial workarounds.
9715
9716         same-inode: port to OpenVMS
9717         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9718         three st_ino values.
9719
9720 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9721
9722         canonicalize: fix references to stat() and lstat()
9723         * lib/canonicalize.c (canonicalize_filename_mode):
9724         Ensure references always resolve to a replacement
9725         function if required (even via a macro).
9726
9727 2011-12-30  Jim Meyering  <meyering@redhat.com>
9728
9729         gitlog-to-changelog: remove a little duplication
9730         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9731         rather than twice.
9732
9733 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9734
9735         canonicalize: add support for not resolving symlinks
9736         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9737         indicate we don't want to follow symlinks.  Also
9738         provide CAN_MODE_MASK to aid setting these existing
9739         mutually exclusive values.
9740         * lib/canonicalize.c (canonicalize_filename_mode):
9741         Extract the flags from can_mode parameter, which
9742         are currently just used to select between stat()
9743         and lstat().  Also ensure that mutually exclusive
9744         values are flagged immediately as invalid.
9745         * tests/test-canonicalize.c: Verify symlinks are
9746         not followed, and that invalid flag combinations
9747         are diagnosed.
9748
9749 2011-12-25  Jim Meyering  <meyering@redhat.com>
9750
9751         gitlog-to-changelog: do not clump multi-paragraph entries
9752         Identical header lines (date,name,email+coauthors) are suppressed,
9753         thus putting all entries with those same characteristics under
9754         a single header.  However, when a log entry consists of two or
9755         more paragraphs, it may not be clear where it starts and ends.
9756         This change makes it so that such an entry is always separated
9757         from others by a header line, even when that header would
9758         otherwise be suppressed.
9759         * build-aux/gitlog-to-changelog: Implement the above.
9760         Inspired by a related request from Stefano Lattarini in
9761         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9762
9763 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         announce-gen: fix `cmd' typo in diagnostic
9766         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9767         diagnostic: a missing '$' meant that the command was not output.
9768
9769 2011-12-23  Jim Meyering  <meyering@redhat.com>
9770
9771         test-framework-sh: distribute init.sh
9772         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9773         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9774         fail due to the lack of init.sh.
9775
9776         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9777         * modules/atexit-tests: Rather than listing tests/init.sh,
9778         now that there's a module for it, simply depend on that new module.
9779         * modules/closein-tests: Likewise.
9780         * modules/exclude-tests: Likewise.
9781         * modules/getcwd-tests: Likewise.
9782         * modules/perror-tests: Likewise.
9783         * modules/pread-tests: Likewise.
9784         * modules/pwrite-tests: Likewise.
9785         * modules/vc-list-files-tests: Likewise.
9786         * modules/verify-tests: Likewise.
9787         * modules/xalloc-die-tests: Likewise.
9788         * modules/xstrtoimax-tests: Likewise.
9789         * modules/xstrtol-tests: Likewise.
9790         * modules/xstrtoll-tests: Likewise.
9791         * modules/xstrtoumax-tests: Likewise.
9792         * modules/yesno-tests: Likewise.
9793
9794 2011-12-22  Jim Meyering  <meyering@redhat.com>
9795
9796         test-framework-sh: add minimal tests of init.sh's compare function
9797         * modules/test-framework-sh-tests: New file.
9798         * tests/test-init.sh: New file.
9799
9800         test-framework-sh: new module
9801         * modules/test-framework-sh: New file.
9802         * MODULES.html.sh (Support for maintaining and releasing projects):
9803         List it.
9804
9805         init.sh: do not emit simulated diff output to stderr
9806         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9807
9808 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9809
9810         .gitignore: ignore gnulib.dvi and regex.info
9811         * doc/.gitignore:add gnulib.dvi and regex.info
9812
9813 2011-12-22  Jim Meyering  <meyering@redhat.com>
9814
9815         init.sh: correct previous change
9816         * tests/init.sh (compare): My previous change was wrong.
9817         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9818
9819         init.sh: avoid unwarranted test failure when using "set -e"
9820         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9821         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9822         a use like "compare exp out" would get evoke an unconditional failure.
9823
9824 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9825
9826         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9827         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9828         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9829         autoreconf that did not.
9830         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9831         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9832
9833 2011-12-17  Jim Meyering  <meyering@redhat.com>
9834
9835         bootstrap: remove some now-unneeded code
9836         This script arose back when gnulib-tool was young.
9837         Since then, it has seen improvements that render much of this
9838         script unnecessary.  In particular, it can now make symlinks
9839         to the files it uses.  Also, I no longer see as much value in
9840         marking files as read-only via comments.
9841         If you relied on the symlink-creation feature of the preceding
9842         version of this script, you can get most of that functionality
9843         by adding the --symlink option to the definition of
9844         gnulib_tool_option_extras in your bootstrap.conf file.
9845         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9846         Run autopoint and libtoolize *before* gnulib-tool.
9847         After it, run an abbreviated autoreconf, rather than a loop around
9848         all tools.
9849         (slirp, bt_mark_as_generated): Remove functions.
9850
9851 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9852
9853         ftoastr: fix typo
9854         * lib/ftoastr.h: Fix misspelling in comment.
9855
9856 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9857
9858         * top/README-release: fix punctuation.
9859
9860 2011-12-17  Jim Meyering  <meyering@redhat.com>
9861
9862         bootstrap: correct the recent buildreq change
9863         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9864         had no effect.
9865         * build-aux/bootstrap (buildreq): Bracket each search term with
9866         "*...*", so that the shell "case" statement works as intended.
9867         Add comments.
9868
9869 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9870
9871         build: let bootstrap resort to wget when downloading .po files
9872         * build-aux/bootstrap (download_po_files): Fallback to wget when
9873         downloading the .po files via rsync fails.  This is necessary to
9874         bootstrap from behind a strict firewall.
9875
9876 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9877
9878         stdint: don't assume C++11 when compiling with g++
9879         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9881         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9882         work also in C++ before C++11, as that improperly inhibits
9883         generating a substitute stdint.h for that case.
9884
9885 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9886
9887         alloca: protect comment from gnulib-tool
9888         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9889         that gnulib-tool doesn't think it's a license, and munge it to
9890         say "GCC version 3".
9891
9892 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9893
9894         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9895         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9896         $(abs_top_builddir) instead of $(top_builddir).
9897
9898 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9899
9900         strftime-tests: also test nanoseconds
9901         * tests/test-strftime.c (T): Add a test of %N.
9902
9903 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9904
9905         inttypes, stdint: add C++11 support
9906         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9907         when including inttypes.h and stdint.h.  Support this change to
9908         the standard.
9909         * doc/posix-headers/inttypes.texi (inttypes.h):
9910         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9911         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9912         Define if not defined already, for the benefit of pre-C++11 hosts.
9913         Define the standard format macros (e.g., PRId8) always.
9914         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9915         Likewise, if __cpluspus.  Define the standard constant and limit
9916         macros (e.g., INT8_C, INT8_MAX) always.
9917         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9918         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9919         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9920         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9921         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9922         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9923         Likewise.
9924
9925 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9926
9927         nonblocking tests: Fix test failure on Linux/PPC.
9928         Suggested by Prerna Saxena in
9929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9930         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9931         Set to 1100000.
9932
9933 2011-12-12  Jim Meyering  <meyering@redhat.com>
9934
9935         argmatch: don't hard-code `' when listing valid option arguments
9936         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9937         use the quote function to add quotes.  Use fputs rather than
9938         fprintf for the format string with no format directive.
9939
9940 2011-12-07  Eric Blake  <eblake@redhat.com>
9941
9942         bootstrap: detect tools required by gnulib-tool
9943         * build-aux/bootstrap (buildreq): Provide minimum implicit
9944         dependencies.
9945         * DEPENDENCIES: Mention patch as a prereq.
9946
9947 2011-12-04  Bruno Haible  <bruno@clisp.org>
9948
9949         sethostname: Port to Windows platforms.
9950         * lib/sethostname.c: Provide an alternate implementation for Windows
9951         platforms.
9952         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9953         (main): Skip the test if sethostname() fails with EPERM. On Windows
9954         platforms, don't check the result of gethostname().
9955
9956 2011-12-04  Bruno Haible  <bruno@clisp.org>
9957             Jim Meyering  <meyering@redhat.com>
9958
9959         tests: Avoid spurious error message on platforms without mktemp program.
9960         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9961
9962 2011-12-04  Bruno Haible  <bruno@clisp.org>
9963
9964         sethostname: Fix documentation.
9965         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9966         "not fixed" section.
9967
9968 2011-12-03  Bruno Haible  <bruno@clisp.org>
9969
9970         gnulib-tool: Verify that the License field is present and non-empty.
9971         * gnulib-tool (func_get_license_raw): New function, extracted from
9972         func_get_license.
9973         (func_get_license): Use it. Warn if the module is not a test module and
9974         has no license.
9975         Suggested by Jim Meyering.
9976
9977 2011-12-03  Bruno Haible  <bruno@clisp.org>
9978
9979         sethostname tests: Fix link error on mingw.
9980         * tests/test-sethostname1.c: New file, extracted from
9981         tests/test-sethostname.c.
9982         * tests/test-sethostname2.c: New file, extracted from
9983         tests/test-sethostname.c.
9984         * tests/test-sethostname.c: Remove file.
9985         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9986         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9987         (Depends-on): Add gethostname.
9988         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9989         Link the latter with $(GETHOSTNAME_LIB).
9990
9991         sethostname tests: Fix compilation error on mingw.
9992         * tests/test-sethostname.c: Don't include <sys/types.h>.
9993         (geteuid): Use a dummy value without uid_t.
9994         * modules/sethostname-tests (Depends-on): Remove sys_types.
9995
9996         sethostname tests: Avoid a gcc warning.
9997         * tests/test-sethostname.c (main): Remove an unused variable.
9998
9999         Tweak last commit.
10000         * modules/sethostname-tests (Files): Sort by decreasing importance.
10001         (configure.ac): Check for geteuid.
10002         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10003         the test when there's nothing to test. Drop an unnecessary cast.
10004         Improve an error message. Verify that the final sethostname() call
10005         succeeds.
10006
10007 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10008
10009         Add a test suite for the sethostname module.
10010         * modules/sethostname-tests: New file.  A test program
10011         for the sethostname module.
10012         * tests/test-sethostname.c: Likewise.
10013
10014 2011-12-03  Bruno Haible  <bruno@clisp.org>
10015
10016         Tweak last commit.
10017         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10018         Fix preprocessor directives indentation. Fix typos.
10019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10020         * modules/unistd (Makefile): Likewise.
10021
10022 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10023
10024         Integrate the sethostname module into unistd.
10025         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10026         into the unistd.h header.
10027         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10028         preprocessor directives.
10029         * modules/unistd: Setup the Makefile substitutions of the
10030         SETHOSTNAME preprocessor directives.
10031
10032 2011-12-03  Bruno Haible  <bruno@clisp.org>
10033
10034         Tweak last commit.
10035         * lib/sethostname.c: Don't include <string.h>.
10036         (sethostname): No need to copy the argument string to the stack. Don't
10037         call clearerr. Preserve errno when fprintf failed.
10038         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10039         Don't invoke AC_REPLACE_FUNCS.
10040         * modules/sethostname (Link): Remove empty section.
10041         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10042         failure problem.
10043
10044 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10045
10046         New module 'sethostname'.
10047         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10048         for systems that lack it.
10049         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10050         sethostname declaration and function.
10051         * modules/sethostname: New file.  Define the sethostname module.
10052
10053 2011-12-03  Bruno Haible  <bruno@clisp.org>
10054
10055         Tweak last commit.
10056         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10057
10058 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10059
10060         Split the HOST_NAME_MAX detection into a separate m4 macro.
10061         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10062         macro so it can be used by the pending sethostname module.
10063
10064 2011-12-03  Bruno Haible  <bruno@clisp.org>
10065
10066         Fix module descriptions syntax.
10067         * modules/argv-iter (License): Fix syntax.
10068         * modules/di-set (License): Likewise.
10069         * modules/ino-map (License): Likewise.
10070         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10071
10072 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         stdalign: port to Clang 3.0
10075         Problem reported by Simon Josefsson in
10076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10077         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10078         which has <stdalign.h> but which does not define alignof.
10079         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10080
10081 2011-12-01  Eric Blake  <eblake@redhat.com>
10082
10083         mktempd: silence dd usage
10084         * build-aux/mktempd (rand_bytes): Silence dd.
10085
10086 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10087
10088         manywarnings: Don't mention gcc version in docstring.
10089         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10090         Jim Meyering <meyering@redhat.com>.
10091
10092 2011-11-30  Jim Meyering  <meyering@redhat.com>
10093
10094         hash: mark a few floating point constants with "f" suffix
10095         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10096         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10097         floating point constants with "f", since they're destined to be
10098         saved/used as "float"s.
10099
10100 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10101
10102         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10103         * tests/test-float.c (test_long_double): Correct and re-enable the
10104         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10105
10106 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10107
10108         Avoid subtracting two pointers that don't point into the same block.
10109         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10110         only pointers into the same memory block are subtracted. We cannot
10111         assume that sizeof (ptrdiff_t) == sizeof (void *).
10112
10113 2011-11-29  Eric Blake  <eblake@redhat.com>
10114
10115         maint.mk: add syntax check for use of compare from init.sh
10116         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10117         moved here from coreutils.
10118
10119         manywarnings: drop -Wunsuffixed-float-constants
10120         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10121         '1.0D', which is the only way to silence this warning for 'double'.
10122
10123 2011-11-29  Jim Meyering  <meyering@redhat.com>
10124
10125         hash: mark compute_bucket_size with the pure attribute
10126         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10127
10128         quotearg, propername: correct pragma guard expression
10129         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10130         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10131
10132 2011-11-28  Jim Meyering  <meyering@redhat.com>
10133
10134         propername: do not mark proper_name with the const attribute
10135         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10136         since it examines data pointed to by its parameter.
10137         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10138         the suggestion from -Wsuggest-attribute=const.
10139
10140         propername: mark one more function as const
10141         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10142
10143 2011-11-27  Jim Meyering  <meyering@redhat.com>
10144
10145         mark functions with const and pure attributes
10146
10147         Mark functions per suggestions from gcc-4.6 when using these options:
10148         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10149         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10150         Follow these guidelines: when possible, apply the attribute to
10151         an extern declaration, not to its definition.  Apply it to the
10152         definition only when the definition is static.
10153         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10154         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10155         * lib/base64.h (isbase64): Likewise.
10156         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10157         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10158         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10159         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10160         (c_tolower, c_toupper): Likewise.
10161         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10162         * lib/chdir-long.c (find_non_slash): Likewise.
10163         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10164         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10165         * lib/file-type.h (file_type): Likewise.
10166         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10167         * lib/filevercmp.c (verrevcmp): Likewise.
10168         * lib/freadahead.h (freadahead): Likewise.
10169         * lib/fts.c (fts_maxarglen): Likewise.
10170         * lib/hash-pjw.h (hash_pjw): Likewise.
10171         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10172         * lib/hash.c (is_prime, next_prime): Likewise.
10173         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10174         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10175         (hash_table_ok, hash_get_first, hash_string): Likewise.
10176         (compute_bucket_size): Likewise.
10177         * lib/i-ring.h (i_ring_empty): Likewise.
10178         * lib/isnan.c (isnanl): Likewise.
10179         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10180         * lib/memcasecmp.h (memcasecmp): Likewise.
10181         * lib/memchr2.h (memchr2): Likewise.
10182         * lib/memcmp2.h (memcmp2): Likewise.
10183         * lib/parse-datetime.y (lookup_zone): Likewise.
10184         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10185         [!WINDOWS_SOCKETS]: Likewise.
10186         * lib/strnlen1.h (strnlen1): Likewise.
10187         * lib/uniwidth.in.h (uc_width): Likewise.
10188         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10189         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10190         (quoting_options_from_style): Add a comment.
10191         * lib/propername.h (proper_name): Add a comment.
10192
10193 2011-11-27  Bruno Haible  <bruno@clisp.org>
10194
10195         Remove unused macros from !_LIBC code in glibc-borrowed files.
10196         * lib/fnmatch.c (STRCOLL): Remove macro.
10197         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10198         * lib/glob.c (__stat, __readdir64): Remove macros.
10199         * lib/tempname.c (__open64, __xstat64): Remove macros.
10200         Suggested by Paul Eggert.
10201
10202 2011-11-27  Bruno Haible  <bruno@clisp.org>
10203
10204         getcwd: Fix link error on MSVC 9.
10205         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10206
10207 2011-11-27  Bruno Haible  <bruno@clisp.org>
10208
10209         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10210         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10211         HAVE_OPENDIR is 0.
10212         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10213         HAVE_CLOSEDIR is 0.
10214         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10215         is 0.
10216         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10217
10218 2011-11-27  Bruno Haible  <bruno@clisp.org>
10219
10220         getcwd: Fix bug from 2011-08-17.
10221         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10222         platforms that need it.
10223         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10224         code of 4 to be a failure, not a success. This ensures that
10225         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10226
10227 2011-11-27  Bruno Haible  <bruno@clisp.org>
10228
10229         binary-io tests: Avoid test failure on mingw when libtool is used.
10230         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10231         Don't verify the size of t-bin-out1.tmp here.
10232         * tests/test-binary-io.sh: Verify it here.
10233         Reported by Simon Josefsson.
10234
10235 2011-11-26  Bruno Haible  <bruno@clisp.org>
10236
10237         Fix conflict between two instantiations of module 'unistd'.
10238         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10239         ${include_guard_prefix} also in the autoconf snippet.
10240         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10242         GNULIB_UNISTD_H_GETOPT.
10243         * modules/getopt-posix (configure.ac): Set the
10244         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10245         * modules/getopt-gnu (configure.ac): Likewise.
10246         * modules/unistd (Makefile.am): Change the substitution value of
10247         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10248         Reported by Simon Josefsson.
10249
10250 2011-11-25  Bruno Haible  <bruno@clisp.org>
10251
10252         pagealign_alloc: Doc and comments.
10253         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10254         module.
10255         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10256
10257 2011-11-25  Jim Meyering  <meyering@redhat.com>
10258
10259         test-update-copyright.sh: avoid false-positive failure
10260         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10261         around false positive failure on Cygwin/Windows.  The latter was
10262         matching erroneously-created files with names like
10263         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10264
10265 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10266
10267         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10268         * m4/valgrind-tests.m4: Check that the parameters that will be
10269         used works, not just a subset of them.  Reported by Bruno Haible
10270         <bruno@clisp.org>.
10271
10272 2011-11-24  Jim Meyering  <meyering@redhat.com>
10273
10274         test-stdalign.c: comment out long double tests
10275         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10276         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10277         error: '_Alignas' specifiers cannot reduce alignment of \
10278         'static_longdouble_alignas'.
10279
10280 2011-11-22  Jim Meyering  <meyering@redhat.com>
10281
10282         init.sh: make "compare /dev/null FILE" output more readable
10283         * tests/init.sh (compare_): Document the preferred order of arguments.
10284         (emit_diff_u_header_): New function.
10285         (compare_dev_null_): Emit a simulated diff, rather than just the
10286         contents of the unexpected file.  Suggestion from Bruno Haible.
10287
10288 2011-11-21  Jim Meyering  <meyering@redhat.com>
10289             Eric Blake  <eblake@redhat.com>
10290
10291         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10292         * tests/init.sh: Make our compare function slightly more portable.
10293         Reported by Bruno Haible in
10294         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10295
10296 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10297
10298         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10299         before using it, in code that ends up in config.h.
10300
10301 2011-11-20  Bruno Haible  <bruno@clisp.org>
10302
10303         getcwd: Work around getcwd bug on AIX 5..7.
10304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10305         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10306         Use a different value for gl_cv_func_getcwd_path_max. Move the
10307         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10308         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10309         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10310         Define HAVE_MINIMALLY_WORKING_GETCWD.
10311         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10312         where it is not even minimally working, that is, on AIX.
10313         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10314         m4/getcwd-path-max.m4.
10315         (main): Update exit code computation.
10316         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10317         getcwd does not handle long file names.
10318
10319 2011-11-20  Bruno Haible  <bruno@clisp.org>
10320
10321         getcwd: Fix bug from 2009-09-10.
10322         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10323         like "no".
10324
10325 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10326
10327         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10328
10329 2011-11-20  Bruno Haible  <bruno@clisp.org>
10330
10331         fma tests: Avoid shadowing local variables.
10332         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10333         expected.
10334
10335 2011-11-20  Bruno Haible  <bruno@clisp.org>
10336
10337         copysignf tests: Fix.
10338         * tests/test-copysignf.c: Fix signature check.
10339
10340 2011-11-20  Bruno Haible  <bruno@clisp.org>
10341
10342         fma: Remove unused code.
10343         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10344         unused macros.
10345
10346 2011-11-20  Bruno Haible  <bruno@clisp.org>
10347
10348         sethostname: Fix doc about AIX.
10349         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10350         sethostname; it has it.
10351
10352         sethostname: Mention more portability problems.
10353         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10354         problem.
10355         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10356
10357 2011-11-19  Bruno Haible  <bruno@clisp.org>
10358
10359         Depend on module fcntl-h when AT_FDCWD is used.
10360         * modules/utimens (Depends-on): Add fcntl-h.
10361         * modules/areadlinkat (Depends-on): Likewise.
10362         * modules/areadlinkat-with-size (Depends-on): Likewise.
10363         * modules/faccessat (Depends-on): Likewise.
10364         * modules/fchmodat (Depends-on): Likewise.
10365         * modules/fchownat (Depends-on): Likewise.
10366         * modules/getcwd (Depends-on): Likewise.
10367         * modules/mkdirat (Depends-on): Likewise.
10368         * modules/mkfifoat (Depends-on): Likewise.
10369         * modules/readlinkat (Depends-on): Likewise.
10370         * modules/symlinkat (Depends-on): Likewise.
10371         * modules/dup2-tests (Depends-on): Likewise.
10372         * modules/fdutimensat-tests (Depends-on): Likewise.
10373         * modules/futimens-tests (Depends-on): Likewise.
10374
10375 2011-11-19  Bruno Haible  <bruno@clisp.org>
10376
10377         euidaccess: Update a comment.
10378         * lib/euidaccess.c: Update comment about platforms with faccessat.
10379
10380 2011-11-19  Bruno Haible  <bruno@clisp.org>
10381
10382         openat: Fix file list.
10383         * modules/openat (Files): Remove lib/at-func.c.
10384
10385 2011-11-19  Bruno Haible  <bruno@clisp.org>
10386
10387         fstatat: Simplify.
10388         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10389         gnulib should define rpl_fstatat, there is a
10390         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10391
10392 2011-11-19  Bruno Haible  <bruno@clisp.org>
10393
10394         Ensure 'inline' can be used in tests/test-utimens-common.h.
10395         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10396         * modules/futimens-tests (configure.ac): Likewise.
10397         * modules/utimens-tests (configure.ac): Likewise.
10398         * modules/utimensat-tests (configure.ac): Likewise.
10399
10400 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10401
10402         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10403         not hash_insert0.
10404         (hash_insert_if_absent): Doc fix.
10405
10406 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10407
10408         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10409
10410 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10411
10412         test-getcwd: disambiguate exit status
10413         * tests/test-getcwd.c (test_long_name): Return 0..7.
10414         (main): Exit with an unambiguous exit status.  The old
10415         code yielded a mysterious mixture of two failure codes.
10416
10417         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10418         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10419         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10420         rpl_fstatat or fstatat.  This should fix the other problem
10421         reported by Kai Habel in
10422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10423         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10425         and I reproduced it on a Solaris 8 host we still have in production.
10426
10427 2011-11-18  Jim Meyering  <meyering@redhat.com>
10428
10429         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10430         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10431         Add a sentence to the comment.
10432         (hash_insert0): New function that simply calls hash_insert_if_absent.
10433         * lib/hash.h (hash_insert_if_absent): Declare it.
10434         (hash_insert0): Add deprecation attribute.
10435         (_GL_ATTRIBUTE_DEPRECATED): Define.
10436         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10437         not hash_insert0.
10438         * NEWS: Mention it, even though it's not really an incompatible change.
10439
10440 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10441
10442         openat: avoid compilation failure due to lack of <errno.h> inclusion
10443         * lib/openat.c: Include <errno.h>.
10444
10445 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         * modules/getcwd (Depends-on): Add fdopendir.
10448         This fixes one of the two problems reported by Kai Habel in
10449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10450
10451         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10452         stdalign problem reported by Ian Beckwith in
10453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10454         * modules/crypto/gc-arcfour (Depends-on):
10455         Depend conditionally on crypto/arcfour.
10456         * modules/crypto/gc-arctwo (Depends-on):
10457         Depend conditionally on crypto/arctwo.
10458         * modules/crypto/gc-des (Depends-on):
10459         Depend conditionally on crypto/des.
10460         * modules/crypto/gc-hmac-md5 (Depends-on):
10461         Depend conditionally on crypto/hmac-md5.
10462         * modules/crypto/gc-hmac-sha1 (Depends-on):
10463         Depend conditionally on crypto/hmac-sha1.
10464         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10465         * modules/crypto/gc-md4 (Depends-on):
10466         Depend conditionally on crypto/md4.
10467         * modules/crypto/gc-md5 (Depends-on):
10468         Depend conditionally on crypto/md5.
10469         * modules/crypto/gc-rijndael (Depends-on):
10470         Depend conditionally on crypto/rijndael.
10471         * modules/crypto/gc-sha1 (Depends-on):
10472         Depend conditionally on crypto/sha1.
10473         * modules/crypto/gc-arcfour:
10474         * modules/crypto/gc-arctwo:
10475         * modules/crypto/gc-des:
10476         * modules/crypto/gc-hmac-md5:
10477         * modules/crypto/gc-hmac-sha1:
10478         * modules/crypto/gc-md2:
10479         * modules/crypto/gc-md4:
10480         * modules/crypto/gc-md5:
10481         * modules/crypto/gc-rijndael:
10482         * modules/crypto/gc-sha1:
10483         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10484         now that the conditional dependencies do the work for us.
10485
10486 2011-11-17  Jim Meyering  <meyering@redhat.com>
10487
10488         tests: factor st_ctime-comparison out of two headers
10489         * tests/test-utimens-common.h (ctime_compare): Define.
10490         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10491         * tests/test-lutimens.h (test_lutimens): Likewise.
10492         * tests/test-utimens.h (test_utimens): Likewise.
10493
10494         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10495         Invoke the test program via an init.sh-using wrapper.
10496         * tests/test-getcwd.sh: New file.
10497         * modules/getcwd-tests (Files): Add it.
10498         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10499
10500 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10501
10502         gitlog-to-changelog: support multi-author commits.
10503         The FSF cares about keeping track of all authors of patches to its
10504         projects, but Git doesn't provide obvious support for multi-author
10505         changesets. Consensus seems to be forming around the use of extra
10506         Signed-off-by inspired lines in the log message formatted as
10507         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10508         multi-author commits between version control systems.
10509         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10510         log message and output in standard ChangeLog multi-author format.
10511         Reported by Peter Rosin <peda@lysator.liu.se>
10512
10513 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10514             Bruno Haible  <bruno@clisp.org>
10515
10516         Fix some modules' file list.
10517         * modules/fstatat (Files): Add m4/lstat.m4.
10518         * modules/openat (Files): Likewise.
10519         * modules/unlinkat (Files): Likewise.
10520
10521 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10522
10523         maint.mk: fix tight-scope.mk generation in VPATH builds.
10524         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10525         reference with $(srcdir) so that the file is found correctly even
10526         when running `make syntax-check' in a VPATH build.
10527
10528 2011-11-13  Bruno Haible  <bruno@clisp.org>
10529             Jim Meyering  <meyering@redhat.com>
10530
10531         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10532         * tests/init.sh (compare): Remove "No differences encountered" or
10533         synonymous output from the 'diff' program.
10534
10535 2011-11-13  Bruno Haible  <bruno@clisp.org>
10536
10537         Makefile: Tweak indentation.
10538         * Makefile: Use tab as first character in every line that contains rule
10539         commands.
10540
10541 2011-11-13  Bruno Haible  <bruno@clisp.org>
10542
10543         Syntax check for copyright statements.
10544         * check-copyright: New file.
10545         * Makefile (sc_check_copyright): New rule.
10546
10547 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10548
10549         * build-aux/git-version-gen: Add --prefix to configure the tag
10550         match string.
10551
10552 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10553
10554         * build-aux/git-version-gen: Add --help and --version.
10555
10556 2011-11-12  Jim Meyering  <meyering@redhat.com>
10557
10558         revamp the other test-exclude?.sh scripts to use init.sh, too
10559         * tests/test-exclude1.sh: Use init.sh.
10560         * tests/test-exclude2.sh: Likewise.
10561         * tests/test-exclude3.sh: Likewise.
10562         * tests/test-exclude4.sh: Likewise.
10563         * tests/test-exclude5.sh: Likewise.
10564         * tests/test-exclude6.sh: Likewise.
10565         * tests/test-exclude7.sh: Likewise.
10566         * tests/test-exclude8.sh: Likewise.
10567         * modules/exclude-tests (Files): List init.sh.
10568
10569         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10570         These shell scripts ignored failure of the binary test-exclude,
10571         so making the latter return 77 didn't cause them to be skipped.
10572         * tests/test-exclude5.sh: Exit with test-exclude's error status
10573         when that program fails.  Revamp to use init.sh.
10574         * tests/test-exclude2.sh: Likewise.
10575
10576         test-exclude: fix a typo
10577         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10578
10579 2011-11-11  Bruno Haible  <bruno@clisp.org>
10580
10581         obstack: Fix compilation error on MSVC 9.
10582         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10583
10584 2011-11-11  Jim Meyering  <meyering@redhat.com>
10585
10586         test-exclude: skip tests rather than failing on deficient systems
10587         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10588         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10589         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10590         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10591
10592 2011-11-10  Bruno Haible  <bruno@clisp.org>
10593
10594         ptsname_r test: Avoid gcc warning on glibc systems.
10595         * tests/test-ptsname_r.c (null_ptr): New function.
10596         (test_errors): Use it.
10597
10598 2011-11-10  Bruno Haible  <bruno@clisp.org>
10599
10600         ptsname_r: Avoid compilation error on OSF/1 5.1.
10601         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10603         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10604         function is not declared or incompatibly declared.
10605         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10606         * modules/ptsname_r (Depends-on, configure.ac): Update.
10607         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10608
10609 2011-11-10  Bruno Haible  <bruno@clisp.org>
10610
10611         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10612         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10613         When cross-compiling, guess yes on all platforms except AIX.
10614         Reported by Ludovic Courtès <ludo@gnu.org>.
10615
10616 2011-11-09  Bruno Haible  <bruno@clisp.org>
10617
10618         ptsname_r tests: Fix bugs.
10619         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10620         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10621
10622 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         fstatat: work with cross-compilation
10625         Problem reported by Ludovic Courtès in
10626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10627         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10628         "cross-compiling" and assume the bug is present.  Replace
10629         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10630         an inverted sense, to be more conservative about our assumptions.
10631         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10632
10633 2011-11-09  Bruno Haible  <bruno@clisp.org>
10634
10635         Improve MODULES.html output.
10636         * modules/mkfifoat (Description): Use the word "function".
10637         * modules/readlinkat (Description): Likewise.
10638         * modules/symlinkat (Description): Likewise.
10639
10640 2011-11-09  Eric Blake  <eblake@redhat.com>
10641
10642         ptsname_r-tests: new test module
10643         * modules/ptsname_r-tests: New module.
10644         * tests/test-ptsname_r.c: New file.
10645
10646         ptsname_r: new module
10647         * modules/ptsname_r: New module.
10648         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10649         * lib/ptsname.c (__ptsname_r): Split...
10650         * lib/ptsname_r.c: ...into new file.
10651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10652         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10653         * modules/stdlib (Makefile.am): Substitute witnesses.
10654         * lib/stdlib.in.h (ptsname_r): Declare it.
10655         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10656         * MODULES.html.sh (Misc): Likewise.
10657         * modules/ptsname (Depends-on): Alter dependency.
10658         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10659
10660 2011-11-09  Jim Meyering  <meyering@redhat.com>
10661
10662         announce-gen: be more concise when there's only one URL+tarball
10663         * build-aux/announce-gen (get_tool_versions): When you distribute
10664         only one type of tarball, combine the first two "Here are..."
10665         sections and make the key-checking grammar independent of
10666         how many tarballs there are.
10667
10668 2011-11-09  Eric Blake  <eblake@redhat.com>
10669
10670         openpty: provide a stub on mingw
10671         * lib/pty.in.h (includes): Provide forward declarations.
10672         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10673
10674         raise: fix mingw handling of SIGPIPE
10675         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10676
10677 2011-11-08  Bruno Haible  <bruno@clisp.org>
10678
10679         More conditional dependencies.
10680         * modules/faccessat (Depends-on): Add conditions.
10681         * modules/fchmodat (Depends-on): Likewise.
10682         * modules/fchownat (Depends-on): Likewise.
10683         * modules/fstatat (Depends-on): Likewise.
10684         * modules/mkfifoat (Depends-on): Likewise.
10685         * modules/readlinkat (Depends-on): Likewise.
10686         * modules/symlinkat (Depends-on): Likewise.
10687         * modules/unlinkat (Depends-on): Likewise.
10688         * modules/utimensat (Depends-on): Likewise.
10689         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10690         * modules/linkat (Depends-on): Refine the conditions.
10691         * modules/renameat (Depends-on): Likewise.
10692
10693 2011-11-08  Bruno Haible  <bruno@clisp.org>
10694
10695         faccessat: Move AC_LIBOBJ invocation to module description.
10696         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10697         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10698         invocation from here...
10699         * modules/faccessat (configure.ac): ... to here. Invoke
10700         gl_PREREQ_FACCESSAT.
10701
10702 2011-11-08  Bruno Haible  <bruno@clisp.org>
10703
10704         faccessat: Simplify autoconf macro.
10705         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10706         gl_FUNC_EUIDACCESS.
10707
10708 2011-11-08  Bruno Haible  <bruno@clisp.org>
10709
10710         renameat: Fix dependencies.
10711         * modules/renameat (Depends-on): Add stdbool.
10712
10713 2011-11-08  Bruno Haible  <bruno@clisp.org>
10714
10715         mkfifoat: Fix module description.
10716         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10717         not gl_UNISTD_MODULE_INDICATOR.
10718
10719 2011-11-08  Bruno Haible  <bruno@clisp.org>
10720
10721         fstatat: Remove unused dependency.
10722         * modules/fstatat (Depends-on): Remove fstat.
10723
10724 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10725
10726         GNUmakefile: behave when Makefile is missing.
10727         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10728
10729 2011-11-08  Bruno Haible  <bruno@clisp.org>
10730
10731         openat: Conditionalize dependencies.
10732         * lib/openat.c: Reduce the scope of some #includes.
10733         * modules/openat (Depends-on): Add conditions.
10734
10735 2011-11-07  Jim Meyering  <meyering@redhat.com>
10736
10737         maint.mk: extract GPG key ID without using a temporary file
10738         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10739         without using a temporary file.  Based on a suggestion from Werner Koch
10740         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10741
10742 2011-11-07  Eric Blake  <eblake@redhat.com>
10743
10744         grantpt: fix typo
10745         * lib/stdlib.in.h (grantpt): Check correct function.
10746
10747         maint.mk: silence new syntax check
10748         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10749
10750 2011-11-06  Bruno Haible  <bruno@clisp.org>
10751
10752         Doc about floating-point and math API.
10753         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10754         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10755
10756 2011-11-06  Bruno Haible  <bruno@clisp.org>
10757
10758         stdalign tests: Skip the test when compiled by Sun C.
10759         * tests/test-stdalign.c (main): Skip the test on Sun C.
10760
10761 2011-11-06  Bruno Haible  <bruno@clisp.org>
10762
10763         ansi-c++-opt: Complete the 2011-06-05 change.
10764         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10765         does not support namespaces, set the variable to "no", not to ":".
10766
10767 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10768
10769         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10770
10771 2011-11-06  Bruno Haible  <bruno@clisp.org>
10772
10773         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10774         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10775         (minus_zerol) [HP-UX]: New macro.
10776         (unary_minus) [HP-UX]: New function.
10777         (copysignl) [HP-UX]: Use unary_minus function.
10778
10779 2011-11-06  Bruno Haible  <bruno@clisp.org>
10780
10781         ldexp, ldexpf, ldexpl: Enhance tests.
10782         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10783         and tests/test-ldexpl.c.
10784         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10785         LDEXP, MIN_EXP, MAX_EXP): New macros.
10786         Include test-ldexp.h.
10787         (main): Just call test_function.
10788         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10789         infinity.h, nan.h.
10790         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10791         MAX_EXP): New macros.
10792         Include test-ldexp.h.
10793         (x, y): Remove variables.
10794         (main): Just call test_function.
10795         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10796         infinity.h, nan.h.
10797         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10798         MAX_EXP): New macros.
10799         Include test-ldexp.h.
10800         (x, y): Remove variables.
10801         (main): Just call test_function.
10802         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10803         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10804         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10805         (Depends-on): Add isnand-nolibm, signbit, float.
10806         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10807         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10808         (Depends-on): Add isnanf-nolibm, signbit, float.
10809
10810 2011-11-06  Bruno Haible  <bruno@clisp.org>
10811
10812         math tests: Cosmetics.
10813         * tests/test-math-c++.cc: Reorder declarations.
10814
10815 2011-11-05  Bruno Haible  <bruno@clisp.org>
10816
10817         fma*: Simplify test.
10818         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10819         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10820
10821         Tests for module 'fmal'.
10822         * modules/fmal-tests: New file.
10823         * tests/test-fmal1.c: New file.
10824         * tests/test-fmal2.c: New file.
10825
10826         New module 'fmal'.
10827         * lib/math.in.h (fmal): New declaration.
10828         * lib/fmal.c: New file.
10829         * m4/fmal.m4: New file.
10830         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10832         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10833         REPLACE_FMAL.
10834         * modules/fmal: New file.
10835         * doc/posix-functions/fmal.texi: Mention the new module and the various
10836         bugs.
10837
10838         Tests for module 'fmaf'.
10839         * modules/fmaf-tests: New file.
10840         * tests/test-fmaf1.c: New file.
10841         * tests/test-fmaf2.c: New file.
10842
10843         New module 'fmaf'.
10844         * lib/math.in.h (fmaf): New declaration.
10845         * lib/fmaf.c: New file.
10846         * m4/fmaf.m4: New file.
10847         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10849         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10850         REPLACE_FMAF.
10851         * modules/fmaf: New file.
10852         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10853         bugs.
10854
10855         Tests for module 'fma'.
10856         * modules/fma-tests: New file.
10857         * tests/test-fma1.c: New file.
10858         * tests/test-fma1.h: New file.
10859         * tests/test-fma2.c: New file.
10860         * tests/test-fma2.h: New file.
10861
10862         New module 'fma'.
10863         * lib/math.in.h (fma): New declaration.
10864         * lib/fma.c: New file.
10865         * m4/fma.m4: New file.
10866         * m4/fegetround.m4: New file.
10867         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10869         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10870         REPLACE_FMA.
10871         * modules/fma: New file.
10872         * doc/posix-functions/fma.texi: Mention the new module and the various
10873         bugs.
10874
10875         Extend gl_MATHFUNC.
10876         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10877         Support 'void' as argument type.
10878         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10879
10880 2011-11-05  Jim Meyering  <meyering@redhat.com>
10881
10882         maint.mk: also prohibit inclusion of dirent.h without use
10883         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10884
10885 2011-11-05  Bruno Haible  <bruno@clisp.org>
10886
10887         ldexpl tests: Avoid test failure on MSVC 9.
10888         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10889         value. Needed in order to enforce the conversion from a value greater
10890         than LDBL_MAX to Infinity.
10891
10892 2011-11-05  Bruno Haible  <bruno@clisp.org>
10893
10894         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10895         * modules/at-internal: New file, extracted from modules/openat.
10896         * modules/openat-h: New file.
10897         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10898         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10899         * modules/openat (Description): Add reference to POSIX function.
10900         (Files): Remove lib/openat.h, lib/openat-proc.c.
10901         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10902         intprops, unistd.
10903         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10904         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10905         gl_FCNTL_MODULE_INDICATOR.
10906         (Include): Remove unistd.h, openat.h.
10907         * modules/areadlinkat (Files): Add lib/at-func.c.
10908         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10909         openat-die, openat-h, save-cwd.
10910         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10911         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10912         openat-die, openat-h, save-cwd, unistd.
10913         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10914         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10915         openat-h, save-cwd. Remove fcntl-h, openat.
10916         * modules/fchmodat (Files): Remove lib/openat.h.
10917         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10918         openat, stdbool, unistd.
10919         * modules/fchownat (Files): Remove lib/openat.h.
10920         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10921         openat, stdbool, sys_stat.
10922         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10923         lib/openat-proc.c.
10924         (Depends-on): Add at-internal.
10925         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10926         * modules/fstatat (Files): Remove lib/openat.h.
10927         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10928         stdbool, unistd.
10929         * modules/fts (Depends-on): Add openat-h.
10930         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10931         openat.
10932         * modules/mkdirat (Files): Remove lib/openat.h.
10933         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10934         openat, stdbool, sys_stat.
10935         * modules/mkfifoat (Files): Add lib/at-func.c.
10936         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10937         openat-h, save-cwd. Remove fcntl-h, openat.
10938         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10939         * modules/readlinkat (Files): Add lib/at-func.c.
10940         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10941         openat-h, save-cwd. Remove fcntl-h, openat.
10942         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10943         openat.
10944         * modules/selinux-at (Files): Add lib/at-func.c.
10945         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10946         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10947         * modules/symlinkat (Files): Add lib/at-func.c.
10948         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10949         openat-h, save-cwd. Remove fcntl-h, openat.
10950         * modules/unlinkat (Files): Remove lib/openat.h.
10951         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10952         stdbool.
10953         * modules/utimensat (Files): Add lib/at-func.c.
10954         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10955         openat-die, openat-h, save-cwd.
10956         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10957         * modules/fdutimensat-tests (Depends-on): Add openat.
10958         * modules/fstatat-tests (Depends-on): Add openat-h.
10959         * modules/readlinkat-tests (Depends-on): Add openat.
10960         * modules/symlinkat-tests (Depends-on): Add openat.
10961
10962 2011-11-05  Bruno Haible  <bruno@clisp.org>
10963
10964         openat: Include <stdbool.h>.
10965         * lib/openat.c: Include <stdbool.h>.
10966
10967 2011-11-04  Bruno Haible  <bruno@clisp.org>
10968
10969         fchownat, renameat, unlinkat: Fix dependencies.
10970         * modules/fchownat (Depends-on): Add fstatat.
10971         * modules/renameat (Depends-on): Likewise.
10972         * modules/unlinkat (Depends-on): Likewise.
10973
10974 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10975
10976         openat: remove direct dependency on dirent
10977         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10978         and hasn't been needed ever since fdopendir was split into its own
10979         module on 2009-08-31.
10980         * modules/openat (Depends-on): Remove dirent.
10981
10982 2011-11-04  Bruno Haible  <bruno@clisp.org>
10983
10984         renameat: Optimize code size.
10985         * modules/renameat (configure.ac): Don't compile at-func2.c if
10986         REPLACE_RENAMEAT is 1.
10987
10988 2011-11-04  Bruno Haible  <bruno@clisp.org>
10989
10990         openat tests: Fix file list.
10991         * modules/openat-tests (Files): Add tests/test-open.h.
10992
10993 2011-11-04  Bruno Haible  <bruno@clisp.org>
10994
10995         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10996         * modules/fchmodat (Depends-on): Add openat-die.
10997         * modules/fchownat (Depends-on): Likewise.
10998         * modules/linkat (Depends-on): Likewise.
10999         * modules/renameat (Depends-on): Likewise.
11000         * modules/openat (Depends-on): Add dirent.
11001
11002 2011-11-04  Jim Meyering  <meyering@redhat.com>
11003
11004         at-func*.c: fix comments
11005         * lib/at-func2.c: Correct/improve first-line comment.
11006         * lib/at-func.c: Correct grammar in first-line comment.
11007
11008 2011-11-04  Bruno Haible  <bruno@clisp.org>
11009
11010         New module 'mkdirat', split off from module 'openat'.
11011         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11012         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11013         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11014         * modules/mkdirat: New file, extracted from modules/openat.
11015         * modules/openat (Files): Remove lib/mkdirat.c.
11016         (Depends-on): Remove mkdir.
11017         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11018         (Include): Remove <sys/stat.h>.
11019         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11020         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11021         tests/test-mkdir.h.
11022         (Depends-on): Remove ignore-value.
11023         (Makefile.am): Remove rules for test-mkdirat.
11024         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11025         of module 'openat'.
11026         * NEWS: Mention the change.
11027
11028 2011-11-04  Bruno Haible  <bruno@clisp.org>
11029
11030         closedir: Avoid warning on mingw.
11031         * lib/closedir.c: Include <unistd.h>.
11032
11033 2011-11-04  Bruno Haible  <bruno@clisp.org>
11034
11035         New module 'fstatat', split off from module 'openat'.
11036         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11037         defined.
11038         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11039         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11040         gl_FUNC_FSTATAT.
11041         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11042         * modules/fstatat: New file, extracted from modules/openat.
11043         * modules/openat (Files): Remove lib/fstatat.c.
11044         (Depends-on): Remove lstat.
11045         (configure.ac): Remove AC_LIBOBJ of fstatat.
11046         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11047         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11048         tests/test-lstat.h, tests/test-stat.h.
11049         (Depends-on): Remove getcwd-lgpl.
11050         (Makefile.am): Remove rules for test-fstatat.
11051         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11052         of module 'openat'.
11053         * NEWS: Mention the change.
11054         * modules/getcwd (Depends-on): Add fstatat.
11055         * modules/linkat (Depends-on): Likewise.
11056         * modules/mkfifoat-tests (Depends-on): Likewise.
11057         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11058
11059 2011-11-03  Bruno Haible  <bruno@clisp.org>
11060
11061         New module 'unlinkat', split off from module 'openat'.
11062         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11063         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11064         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11065         * modules/unlinkat: New file, extracted from modules/openat. Correct
11066         the dependency conditions.
11067         * modules/openat (Files): Remove lib/unlinkat.c.
11068         (Depends-on): Remove rmdir, unlink.
11069         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11070         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11071         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11072         tests/test-rmdir.h, tests/test-unlink.h.
11073         (Depends-on): Remove unlinkdir.
11074         (Makefile.am): Remove rules for test-unlinkat.
11075         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11076         of module 'openat'.
11077         * NEWS: Mention the change.
11078         * modules/linkat-tests (Depends-on): Add unlinkat.
11079         * modules/mkfifoat-tests (Depends-on): Likewise.
11080         * modules/readlinkat-tests (Depends-on): Likewise.
11081
11082 2011-11-02  Bruno Haible  <bruno@clisp.org>
11083
11084         New module 'fchmodat', split off from module 'openat'.
11085         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11086         defined.
11087         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11088         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11089         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11090         * modules/fchmodat: New file, extracted from modules/openat.
11091         * modules/openat (Files): Remove lib/fchmodat.c.
11092         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11093         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11094         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11095         (Makefile.am): Remove rules for test-fchmodat.
11096         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11097         of module 'openat'.
11098         * NEWS: Mention the change.
11099
11100 2011-11-02  Jim Meyering  <meyering@redhat.com>
11101
11102         putenv: indent #definition of "environ" to placate cppi
11103         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11104
11105         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11106         Git logs are often treated as immutable, because editing them
11107         changes the SHA1 checksums of all descendants.  Thus, errors in
11108         git logs tend to stay there forever.  However, when we generate
11109         a ChangeLog file -- typically for distribution -- from that git log,
11110         we can actually make corrections in the generated file.  The key
11111         lies in recording in machine-readable/applicable form the desired
11112         corrections.  See --help for description and an example.
11113         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11114         (usage): Describe it; alphabetize option descriptions.
11115         (main): Honor the new option, carefully.
11116
11117 2011-11-01  Jim Meyering  <meyering@redhat.com>
11118
11119         gitlog-to-changelog: avoid an infloop
11120         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11121         that ends up being empty.
11122
11123 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11124
11125         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11126         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11127         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11128         contains (possibly-quoted) backslashes.  This should avoid
11129         all-too-common shell bugs if COMPLICATED contains backslashes in
11130         the "wrong" places.  Reported by David Evans in
11131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11132         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11133         because we want ASCII ranges.  Is there some reason we don't use
11134         the C locale everywhere in this script?
11135         (func_module, top level): Avoid unwanted pathname expansion when
11136         $repo_url_prefix or $repo_url_suffix_repl contain shell
11137         metacharacters like '?' and '*'.
11138
11139 2011-11-01  Bruno Haible  <bruno@clisp.org>
11140
11141         fchownat: Improve description.
11142         * modules/fchownat (Description): Add link to function.
11143
11144 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11145
11146         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11147         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11149         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11150
11151 2011-11-01  Bruno Haible  <bruno@clisp.org>
11152
11153         alignof: Avoid collision with stdalign module.
11154         * lib/alignof.h (alignof): Remove macro.
11155         * NEWS: Mention the change.
11156         Reported by Paul Eggert.
11157
11158 2011-11-01  Bruno Haible  <bruno@clisp.org>
11159
11160         New module 'fchownat', split off from module 'openat'.
11161         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11162         defined.
11163         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11164         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11165         invoke gl_FUNC_FCHOWNAT.
11166         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11167         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11168         * modules/fchownat: New file, extracted from modules/openat.
11169         * modules/openat (Files): Remove lib/fchownat.c.
11170         (Depends-on): Remove lchown.
11171         (configure.ac): Remove AC_LIBOBJ of fchownat.
11172         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11173         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11174         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11175         (Depends-on): Remove mgetgroups, usleep, stat-time.
11176         (configure.ac): Remove test for getegid.
11177         (Makefile.am): Remove rules for test-fchownat.
11178         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11179         of module 'openat'.
11180         * NEWS: Mention the change.
11181
11182 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11183
11184         stdalign: port better to MSVC and to Sun C 5.11
11185         This fixes some of the problems reported by Bruno Haible in
11186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11187         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11188         shortcomings of MSVC and of Sun C 5.11.
11189         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11190         around __declspec arg.
11191         * modules/stdalign-tests (Files): Add tests/macros.h.
11192         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11193         Include macros.h, for ASSERT.
11194         (DECLARE_ALIGNED): Remove.
11195         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11196         to catch bug), and to 1 if not (simplifies the rest of the code).
11197         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11198         (CHECK_AUTO): Remove.
11199         (CHECK_ALIGNED): Check only the alignment of the static vars,
11200         since auto var alignment isn't supported by Sun C 5.11.
11201         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11202         ASSERT failures are easier to diagnose.
11203
11204 2011-10-31  Bruno Haible  <bruno@clisp.org>
11205
11206         doc about some IRIX 5.3 problems.
11207         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11208         on IRIX 5.3.
11209         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11210         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11211         5.3.
11212         * doc/posix-functions/grantpt.texi: Likewise.
11213         * doc/posix-functions/unlockpt.texi: Likewise.
11214         * doc/posix-functions/lgamma.texi: Likewise.
11215         * doc/posix-functions/nextafter.texi: Likewise.
11216         * doc/posix-functions/remainder.texi: Likewise.
11217         * doc/posix-functions/select.texi: Mention misplaced declaration on
11218         IRIX 5.3.
11219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11220
11221 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11222
11223         gitlog-to-changelog: fix git-log invocation.
11224         git-log mishandles date strings before 1970-01-01 UTC, and there is
11225         no use to specify --since=1970-01-01 by default anyway.
11226         * build-aux/gitlog-to-changelog: By default, when no --since option
11227         was given, do not specify explicit --since option to git-log.
11228
11229 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11230
11231         gitlog-to-changelog: new option --append-dot.
11232         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11233         first non-blank line of each commit message terminated with a dot.
11234
11235 2011-10-30  Bruno Haible  <bruno@clisp.org>
11236
11237         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11238         * lib/ffsl.h: Include <config.h>.
11239         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11240
11241 2011-10-30  Jim Meyering  <meyering@redhat.com>
11242
11243         GNUmakefile: reenable "make syntax-check" for most projects
11244         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11245         build-aux variable", "syntax-check" would do nothing but succeed with
11246         the "No version control files detected..." diagnostic (unless you
11247         happened to override _build-aux via cfg.mk).
11248         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11249         to precede inclusion of maint.mk.  Otherwise, these variables would
11250         be used undefined in any project that does not override the default.
11251
11252 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11253
11254         gitlog-to-changelog: treat a message with only blank lines as empty.
11255         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11256         trailing blank lines before the code that issues a warning about an
11257         empty commit message.
11258
11259 2011-10-30  Jim Meyering  <meyering@redhat.com>
11260
11261         test-parse-datetime.c: avoid new DST-related false positive test failure
11262         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11263         based on the time/date we'll convert, not the current time.
11264         Otherwise, the moment we cross a DST boundary like today's in
11265         Europe, (CEST to CET), that offset ends up being one hour off.
11266
11267 2011-10-27  Bruno Haible  <bruno@clisp.org>
11268
11269         fstat: Tweak documentation.
11270         * modules/fstat (Description): More precise description.
11271
11272 2011-10-27  Bruno Haible  <bruno@clisp.org>
11273
11274         Update documentation regarding 'largefile' module.
11275         * doc/posix-functions/fstat.texi: Tweak wording.
11276         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11277         problems with huge directories and/or small ino_t types.
11278         * doc/posix-functions/readdir.texi: Likewise.
11279         * doc/posix-functions/rewinddir.texi: Likewise.
11280
11281 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11282
11283         maint.mk: don't maintain a second build-aux variable.
11284         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11285         depends on GNUmakefile, which already maintains a cfg.mk
11286         overridable $(_build-aux) for projects with a non-standard
11287         build-aux directory location, although without the $(srcdir)
11288         prefix.  Use that variable consistently instead of introducing a
11289         second one.  Adjust all call sites.
11290
11291 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11292
11293         Add stdalign module and use it in other modules.
11294         This is based on a previous proposal by Bruno Haible
11295         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11296
11297         stdalign: new module
11298         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11299         * modules/stdalign: New files.
11300         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11301         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11302
11303         stdalign-tests: new module
11304         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11305
11306         argp: use stdalign
11307         * lib/argp-parse.c: Include <stdalign.h>.
11308         (alignof): Remove.
11309         * modules/argp (Depends-on): Add stdalign.
11310
11311         crypto libraries: use stdalign
11312         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11313         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11314         Do not include <stdlib.h> twice, in md4.c.
11315         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11316         because we are accessing a pointer's bit-pattern, not a size.
11317         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11318         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11319         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11320         * modules/crypto/sha512: Likewise.
11321
11322         sys_socket: use stdalign, not alignof
11323         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11324         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11325
11326 2011-10-27  Bruno Haible  <bruno@clisp.org>
11327
11328         raise test: Avoid a test failure on Linux/MIPS.
11329         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11330         because 99 is a valid signal on Linux/MIPS.
11331
11332 2011-10-27  Bruno Haible  <bruno@clisp.org>
11333
11334         nonblocking tests: Fix test failure on Linux/MIPS.
11335         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11336         Set to 270000.
11337
11338 2011-10-27  Bruno Haible  <bruno@clisp.org>
11339
11340         utimensat: Work around problem on Linux/hppa.
11341         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11342         values.
11343         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11344
11345 2011-10-25  Jim Meyering  <meyering@redhat.com>
11346
11347         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11348         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11349         after symbols like NULL, size_t, etc.
11350         Reported by Alfred M. Szmidt.
11351
11352         maint.mk: exempt ENODATA from a syntax-check rule
11353         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11354         from the sc_prohibit_always-defined_macros syntax-check rule.
11355         Add a comment.  See this for more details:
11356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11357
11358 2011-10-23  Jim Meyering  <meyering@redhat.com>
11359
11360         fts: close parent dir FD before returning from post-traversal fts_read
11361         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11362         unlink A, even though an FD open on A remained.  This is suboptimal
11363         (holding a file descriptor open longer than needed), but otherwise not
11364         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11365         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11366         that represents a real problem: it causes the removal of A to fail
11367         with e.g., "rm: cannot remove `A': Device or resource busy"
11368
11369         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11370         directory file descriptors.  After completing the final, FTS_DP,
11371         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11372         cache, but then proceeded to add a new FD to it via the subsequent
11373         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11374         final file descriptor would be closed only via fts_close's call to
11375         fd_ring_clear.  Now, it is usually closed earlier, via the final
11376         FTS_DP-returning fts_read call.
11377         * lib/fts.c (restore_initial_cwd): New function, converted from
11378         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11379         Update callers.
11380         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11381         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11382
11383 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11384             Bruno Haible  <bruno@clisp.org>
11385             Jim Meyering  <jim@meyering.net>
11386
11387         readme-release: improve safety of release prep instructions.
11388         * README-release: Don't git pull all branches when only master
11389         is needed for the release process.
11390         Run make maintainer-clean before changing trees and merging.
11391         Don't try to run ./configure right after git pull in case files
11392         that influence the bootstrap process have changed, move the
11393         ./configure step to after running ./bootstrap.
11394         Don't bootstrap "one last time"... it's the first time!
11395
11396 2011-10-22  Bruno Haible  <bruno@clisp.org>
11397
11398         errno, strerror-override: Support for MSVC 10.
11399         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11400         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11401         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11402         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11403         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11404         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11405         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11406         Assign values compatible with MSVC 10.
11407         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11408         New macros.
11409         (GNULIB_defined_EWINSOCK): New macro.
11410         * lib/strerror-override.c (strerror_override): Update accordingly.
11411         * lib/strerror-override.h: Likewise.
11412         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11413         longer equal to the corresponding errno value.
11414         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11415
11416 2011-10-22  Bruno Haible  <bruno@clisp.org>
11417
11418         perror: Recognize when test program crashes.
11419         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11420         strerror, set gl_cv_func_perror_works to no.
11421         Reported by Daniel Richard G. <skunk@iskunk.org>.
11422
11423         perror: Fix indentation.
11424         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11425
11426 2011-10-22  Bruno Haible  <bruno@clisp.org>
11427
11428         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11429         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11430         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11431         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11432         functions, not as a macro.
11433         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11434         macros.
11435         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11436         absence of macro.
11437         Suggested by Eric Blake.
11438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11439
11440 2011-10-21  Bruno Haible  <bruno@clisp.org>
11441
11442         relocatable-prog-wrapper: Don't leave object files behind.
11443         * build-aux/install-reloc: Re-synchronize list of .o files to be
11444         removed with list of compilation units.
11445
11446 2011-10-20  Bruno Haible  <bruno@clisp.org>
11447
11448         openpty, posix_openpt: Remove code duplication.
11449         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11450         * lib/openpty.c: Include <stdlib.h>.
11451         (openpty): Use posix_openpt on all platforms except IRIX.
11452         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11453
11454 2011-10-20  Bruno Haible  <bruno@clisp.org>
11455
11456         unlockpt: Detect invalid argument.
11457         * lib/unlockpt.c: Include <fcntl.h>.
11458         (unlockpt): Check whether fd is valid, using fcntl().
11459         * modules/unlockpt (Depends-on): Add fcntl-h.
11460
11461 2011-10-20  Bruno Haible  <bruno@clisp.org>
11462
11463         openpty: Avoid compilation error on AIX 6.1.
11464         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11465
11466 2011-10-20  Bruno Haible  <bruno@clisp.org>
11467
11468         posix_openpt: Support for OpenBSD.
11469         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11470         (posix_openpt) [OpenBSD]: New code.
11471         * lib/grantpt.c: Include <fcntl.h>.
11472         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11473         * modules/grantpt (Depends-on): Add fcntl-h.
11474
11475 2011-10-20  Bruno Haible  <bruno@clisp.org>
11476
11477         posix_openpt test: Coding style.
11478         * tests/test-posix_openpt.c: Use GNU coding style.
11479
11480 2011-10-20  Bruno Haible  <bruno@clisp.org>
11481
11482         grantpt: Support --avoid=pt_chown.
11483         * modules/grantpt (Files): Add lib/pty-private.h.
11484
11485 2011-10-20  Bruno Haible  <bruno@clisp.org>
11486
11487         posix_openpt: Fix autoconf macro.
11488         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11489         unneeded check for _getpty.
11490
11491 2011-10-20  Bruno Haible  <bruno@clisp.org>
11492
11493         openpty: Update comments.
11494         * lib/openpty.c: Add comments about Minix.
11495
11496 2011-10-19  Eric Blake  <eblake@redhat.com>
11497
11498         openpty: relax license
11499         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11500
11501         pt_chown: use configmake to simplify build
11502         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11503
11504         ptsname and others: relax license
11505         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11506         * modules/unlockpt (License): Likewise.
11507         * modules/pt_chown (License): Likewise.
11508         * modules/ptsname (License): Likewise.
11509         * modules/ttyname_r (License): Likewise.
11510
11511 2011-10-19  Jim Meyering  <meyering@redhat.com>
11512
11513         posix_openpt: remove spurious #endif
11514         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11515
11516 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11517
11518         maint.mk: Respect $(build_aux) in web-manual rule.
11519         * top/maint.mk (web-manual): Find gen-announce script in user's
11520         $(build_aux) directory instead of hard-coding 'build-aux'.
11521
11522 2011-10-19  Bruno Haible  <bruno@clisp.org>
11523
11524         posix_openpt: Fix compilation error.
11525         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11526         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11527         Mention the openpty module as an alternative.
11528
11529 2011-10-19  Bruno Haible  <bruno@clisp.org>
11530
11531         Support for old NeXTstep 3.3 frexp().
11532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11533         execution time of the test to 5 seconds.
11534         Reported by Daniel Richard G. <skunk@iskunk.org>.
11535
11536 2011-10-19  Bruno Haible  <bruno@clisp.org>
11537
11538         Support for old NeXTstep 3.3 sed.
11539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11540         part, use /.../, not \|...|. Escape periods in the header file name.
11541         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11542         Reported by Daniel Richard G. <skunk@iskunk.org>.
11543
11544 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11545
11546         Support for old NeXTstep 3.3 gcc.
11547         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11548         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11549         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11550         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11551         * lib/regex.h (_Restrict_arr_): Likewise.
11552         * lib/regex_internal.h (re_token_t): Likewise.
11553         * lib/regexec.c (check_node_accept_bytes): Likewise.
11554         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11555
11556 2011-10-18  Eric Blake  <eblake@redhat.com>
11557
11558         posix_openpt: new module
11559         * modules/posix_openpt: New module.
11560         * m4/posix_openpt.m4: New file.
11561         * lib/posix_openpt.c: Likewise.
11562         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11563         (gl_STDLIB_H_DEFAULTS): Set defaults.
11564         * modules/stdlib (Makefile.am): Substitute macros.
11565         * lib/stdlib.in.h (posix_openpt): Declare.
11566         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11567         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11568         * modules/posix_openpt-tests: New test module.
11569         * tests/test-posix_openpt.c: New test.
11570
11571 2011-10-15  Bruno Haible  <bruno@clisp.org>
11572
11573         xstrtoll: Fix compilation failure.
11574         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11575         from lib/strtol.c.
11576         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11577         some platforms.
11578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11579
11580 2011-10-15  Bruno Haible  <bruno@clisp.org>
11581
11582         vasnprintf: Optimize bit search operation.
11583         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11585         gl_DOUBLE_EXPONENT_LOCATION.
11586         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11587         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11588         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11589         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11590         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11591         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11592         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11593         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11594         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11595
11596 2011-10-15  Bruno Haible  <bruno@clisp.org>
11597
11598         vasnprintf: Fix comments.
11599         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11600
11601 2011-10-14  Bruno Haible  <bruno@clisp.org>
11602
11603         Tests for module 'integer_length_ll'.
11604         * modules/integer_length_ll-tests: New file.
11605         * tests/test-integer_length_ll.c: New file.
11606
11607         New module 'integer_length_ll'.
11608         * lib/integer_length_ll.c: New file.
11609         * modules/integer_length_ll: New file.
11610
11611 2011-10-14  Bruno Haible  <bruno@clisp.org>
11612
11613         Tests for module 'integer_length_l'.
11614         * modules/integer_length_l-tests: New file.
11615         * tests/test-integer_length_l.c: New file.
11616
11617         New module 'integer_length_l'.
11618         * lib/integer_length_l.c: New file.
11619         * modules/integer_length_l: New file.
11620
11621 2011-10-14  Bruno Haible  <bruno@clisp.org>
11622
11623         Tests for module 'integer_length'.
11624         * modules/integer_length-tests: New file.
11625         * tests/test-integer_length.c: New file.
11626
11627         New module 'integer_length'.
11628         * lib/integer_length.h: New file.
11629         * lib/integer_length.c: New file.
11630         * modules/integer_length: New file.
11631
11632 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11633
11634         popen: Fix dependency conditions.
11635         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11636
11637 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11638
11639         perror: Fix autoconf test.
11640         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11641         <stdlib.h> and <string.h>.
11642
11643 2011-10-14  Bruno Haible  <bruno@clisp.org>
11644
11645         ffsl: Optimize on 64-bit platforms.
11646         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11647         unrolling.
11648
11649 2011-10-13  Bruno Haible  <bruno@clisp.org>
11650
11651         ffsl: Optimize on 32-bit platforms.
11652         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11653         use ffs() without a loop.
11654
11655         ffsl, ffsll: Optimize for GCC.
11656         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11657         * lib/ffsl.c (GCC_BUILTIN): New macro.
11658         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11659
11660 2011-10-13  Bruno Haible  <bruno@clisp.org>
11661
11662         ffs, bcopy, memset: Support symbol renaming via config.h.
11663         * lib/ffs.c: Include <config.h>.
11664         * lib/bcopy.c: Likewise.
11665         * lib/memset.c: Likewise.
11666
11667 2011-10-10  Bruno Haible  <bruno@clisp.org>
11668
11669         atanl: Simplify for platforms where 'long double' == 'double'.
11670         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11671         alternative implementation.
11672         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11673         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11674         * modules/atanl (Depends-on): Add atan. Update conditions.
11675
11676 2011-10-10  Bruno Haible  <bruno@clisp.org>
11677
11678         acosl: Simplify for platforms where 'long double' == 'double'.
11679         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11680         alternative implementation.
11681         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11682         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11683         * modules/acosl (Depends-on): Add acos. Update conditions.
11684
11685 2011-10-10  Bruno Haible  <bruno@clisp.org>
11686
11687         asinl: Simplify for platforms where 'long double' == 'double'.
11688         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11689         alternative implementation.
11690         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11691         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11692         * modules/asinl (Depends-on): Add asin. Update conditions.
11693
11694 2011-10-10  Bruno Haible  <bruno@clisp.org>
11695
11696         tanl: Simplify for platforms where 'long double' == 'double'.
11697         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11698         implementation.
11699         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11700         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11701         * modules/tanl (Depends-on): Add tan. Update conditions.
11702         (configure.ac): Don't compile trigl.c if
11703         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11704
11705 2011-10-10  Bruno Haible  <bruno@clisp.org>
11706
11707         cosl: Simplify for platforms where 'long double' == 'double'.
11708         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11709         implementation.
11710         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11711         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11712         * modules/cosl (Depends-on): Add cos. Update conditions.
11713         (configure.ac): Don't compile sincosl.c and trigl.c if
11714         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11715
11716 2011-10-10  Bruno Haible  <bruno@clisp.org>
11717
11718         sinl: Simplify for platforms where 'long double' == 'double'.
11719         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11720         implementation.
11721         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11722         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11723         * modules/sinl (Depends-on): Add sin. Update conditions.
11724         (configure.ac): Don't compile sincosl.c and trigl.c if
11725         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11726
11727 2011-10-10  Bruno Haible  <bruno@clisp.org>
11728
11729         logl: Simplify for platforms where 'long double' == 'double'.
11730         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11731         implementation.
11732         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11733         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11734         * modules/logl (Depends-on): Add log. Update conditions.
11735
11736 2011-10-10  Bruno Haible  <bruno@clisp.org>
11737
11738         expl: Simplify for platforms where 'long double' == 'double'.
11739         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11740         implementation.
11741         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11742         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11743         * modules/expl (Depends-on): Add exp. Update conditions.
11744
11745 2011-10-10  Bruno Haible  <bruno@clisp.org>
11746
11747         sqrtl: Simplify for platforms where 'long double' == 'double'.
11748         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11749         alternative implementation.
11750         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11751         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11752         * modules/sqrtl (Depends-on): Update conditions.
11753
11754 2011-10-10  Bruno Haible  <bruno@clisp.org>
11755
11756         ldexpl: Simplify for platforms where 'long double' == 'double'.
11757         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11758         alternative implementation.
11759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11760         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11761         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11762
11763 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11764
11765         ffsll: set correct witness
11766         * modules/ffsll (configure.ac): Fix typo.
11767
11768 2011-10-10  Bruno Haible  <bruno@clisp.org>
11769
11770         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11771         * lib/printf-frexpl.c: Include <config.h>.
11772         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11773         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11774         second time.
11775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11776         gl_LONG_DOUBLE_VS_DOUBLE.
11777         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11778         conditions.
11779
11780 2011-10-10  Bruno Haible  <bruno@clisp.org>
11781
11782         frexpl: Simplify for platforms where 'long double' == 'double'.
11783         * lib/frexpl.c: Include <config.h>.
11784         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11785         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11786         time.
11787         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11788         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11789         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11790         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11791         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11792         conditions.
11793
11794 2011-10-10  Jim Meyering  <meyering@redhat.com>
11795
11796         test-renameat: don't leave behind a temporary file
11797         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11798           ERROR: files left in build directory after distclean:
11799           ./gltests/test-renameat.too
11800           make[1]: *** [distcleancheck] Error 1
11801         Reported by Tom G. Christensen.
11802
11803 2011-10-09  Bruno Haible  <bruno@clisp.org>
11804
11805         rint: Determine RINT_LIBM correctly on AIX 7.
11806         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11807         directly, not only through a function pointer. Also accept an optional
11808         4th argument with extra code.
11809         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11810         rintf() call by gcc when optimizing.
11811
11812         mathfunc.m4: Refactor.
11813         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11814         m4 variable.
11815
11816 2011-10-09  Bruno Haible  <bruno@clisp.org>
11817
11818         rintl: Simplify for platforms where 'long double' == 'double'.
11819         * lib/rintl.c: Include <config.h>.
11820         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11821         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11822         time.
11823         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11824         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11825         * modules/rintl (Depends-on): Add rint. Update conditions.
11826
11827 2011-10-09  Bruno Haible  <bruno@clisp.org>
11828
11829         roundl: Simplify for platforms where 'long double' == 'double'.
11830         * lib/roundl.c: Include <config.h>.
11831         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11832         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11833         time.
11834         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11835         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11836         * modules/roundl (Depends-on): Add round. Update conditions.
11837
11838 2011-10-09  Bruno Haible  <bruno@clisp.org>
11839
11840         truncl: Simplify for platforms where 'long double' == 'double'.
11841         * lib/truncl.c: Include <config.h>.
11842         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11843         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11844         time.
11845         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11846         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11847         * modules/truncl (Depends-on): Add trunc. Update conditions.
11848
11849 2011-10-09  Bruno Haible  <bruno@clisp.org>
11850
11851         ceill: Simplify for platforms where 'long double' == 'double'.
11852         * lib/ceill.c: Include <config.h>.
11853         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11854         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11855         time.
11856         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11857         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11858         * modules/ceill (Depends-on): Add ceil. Update conditions.
11859
11860 2011-10-09  Bruno Haible  <bruno@clisp.org>
11861
11862         floorl: Simplify for platforms where 'long double' == 'double'.
11863         * lib/floorl.c: Include <config.h>.
11864         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11865         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11866         time.
11867         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11868         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11869         * modules/floorl (Depends-on): Add floor. Update conditions.
11870
11871 2011-10-09  Bruno Haible  <bruno@clisp.org>
11872
11873         rint: Fix ordering constraints.
11874         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11875         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11876         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11877
11878 2011-10-09  Bruno Haible  <bruno@clisp.org>
11879
11880         copysignl: Simplify for platforms where 'long double' == 'double'.
11881         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11882         alternative.
11883         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11884         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11885         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11886
11887 2011-10-09  Bruno Haible  <bruno@clisp.org>
11888
11889         Tests for module 'rintl'.
11890         * modules/rintl-tests: New file.
11891         * tests/test-rintl.c: New file.
11892
11893         New module 'rintl'.
11894         * lib/math.in.h (rintl): New declaration.
11895         * lib/rintl.c: New file.
11896         * m4/rintl.m4: New file.
11897         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11899         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11900         * modules/rintl: New file.
11901         * tests/test-math-c++.cc: Check the declaration of rintl.
11902         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11903         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11904         * doc/posix-functions/rintl.texi: Mention the new module.
11905
11906 2011-10-09  Bruno Haible  <bruno@clisp.org>
11907
11908         Tests for module 'rintf'.
11909         * modules/rintf-tests: New file.
11910         * tests/test-rintf.c: New file.
11911
11912         New module 'rintf'.
11913         * lib/math.in.h (rintf): New declaration.
11914         * lib/rintf.c: New file.
11915         * m4/rintf.m4: New file.
11916         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11918         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11919         * modules/rintf: New file.
11920         * tests/test-math-c++.cc: Check the declaration of rintf.
11921         * doc/posix-functions/rintf.texi: Mention the new module.
11922
11923 2011-10-09  Bruno Haible  <bruno@clisp.org>
11924
11925         rint: Support for MSVC.
11926         * lib/math.in.h (rint): New declaration.
11927         * lib/rint.c: New file.
11928         * m4/rint.m4: New file.
11929         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11931         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11932         * modules/rint (Description): Fix.
11933         (Files): Add lib/rint.c, m4/rint.m4.
11934         (Depends-on): Add math.
11935         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11936         gl_MATH_MODULE_INDICATOR.
11937         * tests/test-math-c++.cc: Check the declaration of rint.
11938         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11939         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11940         * doc/posix-functions/rint.texi: Mention the replacement provided by
11941         the module.
11942
11943         rint tests: More tests.
11944         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11945         minus-zero.h, infinity.h, nan.h.
11946         (main): Skip the test if the current rounding mode is not standard. Add
11947         tests for negative numbers, minus zero, infinity, NaN.
11948         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11949         tests/nan.h.
11950         (Depends-on): Add isnand-nolibm.
11951
11952 2011-10-09  Bruno Haible  <bruno@clisp.org>
11953
11954         Tests for module 'copysignl'.
11955         * modules/copysignl-tests: New file.
11956         * tests/test-copysignl.c: New file.
11957
11958         New module 'copysignl'.
11959         * lib/math.in.h (copysignl): New declaration.
11960         * lib/copysignl.c: New file.
11961         * m4/copysignl.m4: New file.
11962         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11964         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11965         HAVE_COPYSIGNL.
11966         * modules/copysignl: New file.
11967         * tests/test-math-c++.cc: Check the declaration of copysignl.
11968         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11969         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11970         * doc/posix-functions/copysignl.texi: Mention the new module.
11971
11972 2011-10-09  Bruno Haible  <bruno@clisp.org>
11973
11974         Tests for module 'copysignf'.
11975         * modules/copysignf-tests: New file.
11976         * tests/test-copysignf.c: New file.
11977
11978         New module 'copysignf'.
11979         * lib/math.in.h (copysignf): New declaration.
11980         * lib/copysignf.c: New file.
11981         * m4/copysignf.m4: New file.
11982         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11984         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11985         HAVE_COPYSIGNF.
11986         * modules/copysignf: New file.
11987         * tests/test-math-c++.cc: Check the declaration of copysignf.
11988         * doc/posix-functions/copysignf.texi: Mention the new module.
11989
11990 2011-10-09  Bruno Haible  <bruno@clisp.org>
11991
11992         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11994         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11995         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11996         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11997         gl_SIGNAL_H_DEFAULTS.
11998
11999 2011-10-09  Bruno Haible  <bruno@clisp.org>
12000
12001         poll: Make macro safer.
12002         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12003         ac_cv_header_poll_h is not set.
12004
12005 2011-10-09  Bruno Haible  <bruno@clisp.org>
12006
12007         copysign: Provide replacement.
12008         * lib/math.in.h (copysign): New declaration.
12009         * lib/copysign.c: New file.
12010         * m4/copysign.m4: New file.
12011         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12013         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12014         HAVE_COPYSIGN.
12015         * modules/copysign (Description): Clarify.
12016         (Files): Add lib/copysign.c, m4/copysign.m4.
12017         (Depends-on): Add math, signbit.
12018         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12019         gl_MATH_MODULE_INDICATOR.
12020         * tests/test-math-c++.cc: Check the declaration of copysign.
12021         * doc/posix-functions/copysign.texi: Mention the effects of the module
12022         on Minix and MSVC.
12023
12024 2011-10-09  Bruno Haible  <bruno@clisp.org>
12025
12026         isinf: Ensure macro on AIX 5.1.
12027         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12028         macro.
12029         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12030
12031 2011-10-09  Bruno Haible  <bruno@clisp.org>
12032
12033         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12034         * modules/snprintf-posix-tests (configure.ac): Require
12035         gl_LONG_DOUBLE_VS_DOUBLE.
12036         * modules/sprintf-posix-tests (configure.ac): Likewise.
12037         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12038         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12039         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12040         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12041         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12042         tests on platforms where 'long double' is the same as 'double'.
12043         * tests/test-sprintf-posix.h (test_function): Likewise.
12044         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12045         * tests/test-vasprintf-posix.c (test_function): Likewise.
12046
12047         *printf: Fix for platforms where 'long double' == 'double'.
12048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12049         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12050         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12051         * modules/fprintf-posix (Files): Likewise.
12052         * modules/obstack-printf-posix (Files): Likewise.
12053         * modules/snprintf-posix (Files): Likewise.
12054         * modules/sprintf-posix (Files): Likewise.
12055         * modules/vasnprintf (Files): Likewise.
12056         * modules/vasnprintf-posix (Files): Likewise.
12057         * modules/vasprintf-posix (Files): Likewise.
12058         * modules/vdprintf-posix (Files): Likewise.
12059         * modules/vfprintf-posix (Files): Likewise.
12060         * modules/vsnprintf-posix (Files): Likewise.
12061         * modules/vsprintf-posix (Files): Likewise.
12062         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12063         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12064         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12065         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12066         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12067         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12068         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12069
12070         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12071         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12072         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12073         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12074         'long double'.
12075         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12076
12077         isinf: Fix for platforms where 'long double' == 'double'.
12078         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12079         Don't blindly assume 80-bit 'long double'.
12080
12081         isfinite: Fix for platforms where 'long double' == 'double'.
12082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12083         Don't blindly assume 80-bit 'long double'.
12084
12085         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12086         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12087         * modules/isfinite-tests (configure.ac): Require
12088         gl_LONG_DOUBLE_VS_DOUBLE.
12089         * modules/isinf-tests (configure.ac): Likewise.
12090         * modules/isnan-tests (configure.ac): Likewise.
12091         * modules/isnanl-tests (configure.ac): Likewise.
12092         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12093         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12094         tests on platforms where 'long double' is the same as 'double'.
12095         * tests/test-isinf.c (test_isinfl): Likewise.
12096         * tests/test-isnan.c (test_long_double): Likewise.
12097         * tests/test-isnanl.h (main): Likewise.
12098
12099 2011-10-08  Bruno Haible  <bruno@clisp.org>
12100
12101         Tests for module 'tanhf'.
12102         * modules/tanhf-tests: New file.
12103         * tests/test-tanhf.c: New file.
12104
12105         New module 'tanhf'.
12106         * lib/math.in.h (tanhf): New declaration.
12107         * lib/tanhf.c: New file.
12108         * m4/tanhf.m4: New file.
12109         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12111         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12112         * modules/tanhf: New file.
12113         * tests/test-math-c++.cc: Check the declaration of tanhf.
12114         * doc/posix-functions/tanhf.texi: Mention the new module.
12115
12116         tanh: Use a .m4 file.
12117         * m4/tanh.m4: New file.
12118         * modules/tanh (Files): Add it.
12119         (configure.ac): Just invoke gl_FUNC_TANH.
12120
12121 2011-10-08  Bruno Haible  <bruno@clisp.org>
12122
12123         Tests for module 'coshf'.
12124         * modules/coshf-tests: New file.
12125         * tests/test-coshf.c: New file.
12126
12127         New module 'coshf'.
12128         * lib/math.in.h (coshf): New declaration.
12129         * lib/coshf.c: New file.
12130         * m4/coshf.m4: New file.
12131         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12133         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12134         * modules/coshf: New file.
12135         * tests/test-math-c++.cc: Check the declaration of coshf.
12136         * doc/posix-functions/coshf.texi: Mention the new module.
12137
12138         cosh: Use a .m4 file.
12139         * m4/cosh.m4: New file.
12140         * modules/cosh (Files): Add it.
12141         (configure.ac): Just invoke gl_FUNC_COSH.
12142
12143 2011-10-08  Bruno Haible  <bruno@clisp.org>
12144
12145         Tests for module 'sinhf'.
12146         * modules/sinhf-tests: New file.
12147         * tests/test-sinhf.c: New file.
12148
12149         New module 'sinhf'.
12150         * lib/math.in.h (sinhf): New declaration.
12151         * lib/sinhf.c: New file.
12152         * m4/sinhf.m4: New file.
12153         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12155         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12156         * modules/sinhf: New file.
12157         * tests/test-math-c++.cc: Check the declaration of sinhf.
12158         * doc/posix-functions/sinhf.texi: Mention the new module.
12159
12160         sinh: Use a .m4 file.
12161         * m4/sinh.m4: New file.
12162         * modules/sinh (Files): Add it.
12163         (configure.ac): Just invoke gl_FUNC_SINH.
12164
12165 2011-10-08  Bruno Haible  <bruno@clisp.org>
12166
12167         Tests for module 'atan2f'.
12168         * modules/atan2f-tests: New file.
12169         * tests/test-atan2f.c: New file.
12170
12171         New module 'atan2f'.
12172         * lib/math.in.h (atan2f): New declaration.
12173         * lib/atan2f.c: New file.
12174         * m4/atan2f.m4: New file.
12175         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12177         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12178         * modules/atan2f: New file.
12179         * tests/test-math-c++.cc: Check the declaration of atan2f.
12180         * doc/posix-functions/atan2f.texi: Mention the new module.
12181
12182         atan2: Use a .m4 file.
12183         * m4/atan2.m4: New file.
12184         * modules/atan2 (Files): Add it.
12185         (configure.ac): Just invoke gl_FUNC_ATAN2.
12186
12187 2011-10-08  Bruno Haible  <bruno@clisp.org>
12188
12189         Tests for module 'atanf'.
12190         * modules/atanf-tests: New file.
12191         * tests/test-atanf.c: New file.
12192
12193         New module 'atanf'.
12194         * lib/math.in.h (atanf): New declaration.
12195         * lib/atanf.c: New file.
12196         * m4/atanf.m4: New file.
12197         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12199         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12200         * modules/atanf: New file.
12201         * tests/test-math-c++.cc: Check the declaration of atanf.
12202         * doc/posix-functions/atanf.texi: Mention the new module.
12203
12204         atan: Use a .m4 file.
12205         * m4/atan.m4: New file.
12206         * modules/atan (Files): Add it.
12207         (configure.ac): Just invoke gl_FUNC_ATAN.
12208
12209 2011-10-08  Bruno Haible  <bruno@clisp.org>
12210
12211         Tests for module 'acosf'.
12212         * modules/acosf-tests: New file.
12213         * tests/test-acosf.c: New file.
12214
12215         New module 'acosf'.
12216         * lib/math.in.h (acosf): New declaration.
12217         * lib/acosf.c: New file.
12218         * m4/acosf.m4: New file.
12219         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12221         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12222         * modules/acosf: New file.
12223         * tests/test-math-c++.cc: Check the declaration of acosf.
12224         * doc/posix-functions/acosf.texi: Mention the new module.
12225
12226         acos: Use a .m4 file.
12227         * m4/acos.m4: New file.
12228         * modules/acos (Files): Add it.
12229         (configure.ac): Just invoke gl_FUNC_ACOS.
12230
12231 2011-10-08  Bruno Haible  <bruno@clisp.org>
12232
12233         Tests for module 'asinf'.
12234         * modules/asinf-tests: New file.
12235         * tests/test-asinf.c: New file.
12236
12237         New module 'asinf'.
12238         * lib/math.in.h (asinf): New declaration.
12239         * lib/asinf.c: New file.
12240         * m4/asinf.m4: New file.
12241         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12243         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12244         * modules/asinf: New file.
12245         * tests/test-math-c++.cc: Check the declaration of asinf.
12246         * doc/posix-functions/asinf.texi: Mention the new module.
12247
12248         asin: Use a .m4 file.
12249         * m4/asin.m4: New file.
12250         * modules/asin (Files): Add it.
12251         (configure.ac): Just invoke gl_FUNC_ASIN.
12252
12253 2011-10-08  Bruno Haible  <bruno@clisp.org>
12254
12255         Tests for module 'tanf'.
12256         * modules/tanf-tests: New file.
12257         * tests/test-tanf.c: New file.
12258
12259         New module 'tanf'.
12260         * lib/math.in.h (tanf): New declaration.
12261         * lib/tanf.c: New file.
12262         * m4/tanf.m4: New file.
12263         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12265         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12266         * modules/tanf: New file.
12267         * tests/test-math-c++.cc: Check the declaration of tanf.
12268         * doc/posix-functions/tanf.texi: Mention the new module.
12269
12270         tan: Use a .m4 file.
12271         * m4/tan.m4: New file.
12272         * modules/tan (Files): Add it.
12273         (configure.ac): Just invoke gl_FUNC_TAN.
12274
12275 2011-10-08  Bruno Haible  <bruno@clisp.org>
12276
12277         Tests for module 'cosf'.
12278         * modules/cosf-tests: New file.
12279         * tests/test-cosf.c: New file.
12280
12281         New module 'cosf'.
12282         * lib/math.in.h (cosf): New declaration.
12283         * lib/cosf.c: New file.
12284         * m4/cosf.m4: New file.
12285         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12287         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12288         * modules/cosf: New file.
12289         * tests/test-math-c++.cc: Check the declaration of cosf.
12290         * doc/posix-functions/cosf.texi: Mention the new module.
12291
12292         cos: Use a .m4 file.
12293         * m4/cos.m4: New file.
12294         * modules/cos (Files): Add it.
12295         (configure.ac): Just invoke gl_FUNC_COS.
12296
12297 2011-10-08  Bruno Haible  <bruno@clisp.org>
12298
12299         Tests for module 'sinf'.
12300         * modules/sinf-tests: New file.
12301         * tests/test-sinf.c: New file.
12302
12303         New module 'sinf'.
12304         * lib/math.in.h (sinf): New declaration.
12305         * lib/sinf.c: New file.
12306         * m4/sinf.m4: New file.
12307         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12309         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12310         * modules/sinf: New file.
12311         * tests/test-math-c++.cc: Check the declaration of sinf.
12312         * doc/posix-functions/sinf.texi: Mention the new module.
12313
12314         sin: Use a .m4 file.
12315         * m4/sin.m4: New file.
12316         * modules/sin (Files): Add it.
12317         (configure.ac): Just invoke gl_FUNC_SIN.
12318
12319 2011-10-08  Bruno Haible  <bruno@clisp.org>
12320
12321         Tests for module 'powf'.
12322         * modules/powf-tests: New file.
12323         * tests/test-powf.c: New file.
12324
12325         New module 'powf'.
12326         * lib/math.in.h (powf): New declaration.
12327         * lib/powf.c: New file.
12328         * m4/powf.m4: New file.
12329         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12331         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12332         * modules/powf: New file.
12333         * tests/test-math-c++.cc: Check the declaration of powf.
12334         * doc/posix-functions/powf.texi: Mention the new module.
12335
12336         pow: Use a .m4 file.
12337         * m4/pow.m4: New file.
12338         * modules/pow (Files): Add it.
12339         (configure.ac): Just invoke gl_FUNC_POW.
12340
12341 2011-10-08  Bruno Haible  <bruno@clisp.org>
12342
12343         Tests for module 'log10f'.
12344         * modules/log10f-tests: New file.
12345         * tests/test-log10f.c: New file.
12346
12347         New module 'log10f'.
12348         * lib/math.in.h (log10f): New declaration.
12349         * lib/log10f.c: New file.
12350         * m4/log10f.m4: New file.
12351         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12353         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12354         * modules/log10f: New file.
12355         * tests/test-math-c++.cc: Check the declaration of log10f.
12356         * doc/posix-functions/log10f.texi: Mention the new module.
12357
12358         log10: Use a .m4 file.
12359         * m4/log10.m4: New file.
12360         * modules/log10 (Files): Add it.
12361         (configure.ac): Just invoke gl_FUNC_LOG10.
12362
12363 2011-10-08  Bruno Haible  <bruno@clisp.org>
12364
12365         Tests for module 'logf'.
12366         * modules/logf-tests: New file.
12367         * tests/test-logf.c: New file.
12368
12369         New module 'logf'.
12370         * lib/math.in.h (logf): New declaration.
12371         * lib/logf.c: New file.
12372         * m4/logf.m4: New file.
12373         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12375         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12376         * modules/logf: New file.
12377         * tests/test-math-c++.cc: Check the declaration of logf.
12378         * doc/posix-functions/logf.texi: Mention the new module.
12379
12380         log: Use a .m4 file.
12381         * m4/log.m4: New file.
12382         * modules/log (Files): Add it.
12383         (configure.ac): Just invoke gl_FUNC_LOG.
12384
12385 2011-10-08  Bruno Haible  <bruno@clisp.org>
12386
12387         Tests for module 'expf'.
12388         * modules/expf-tests: New file.
12389         * tests/test-expf.c: New file.
12390
12391         New module 'expf'.
12392         * lib/math.in.h (expf): New declaration.
12393         * lib/expf.c: New file.
12394         * m4/expf.m4: New file.
12395         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12397         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12398         * modules/expf: New file.
12399         * tests/test-math-c++.cc: Check the declaration of expf.
12400         * doc/posix-functions/expf.texi: Mention the new module.
12401
12402         exp: Use a .m4 file.
12403         * m4/exp.m4: New file.
12404         * modules/exp (Files): Add it.
12405         (configure.ac): Just invoke gl_FUNC_EXP.
12406
12407 2011-10-08  Bruno Haible  <bruno@clisp.org>
12408
12409         Tests for module 'sqrtf'.
12410         * modules/sqrtf-tests: New file.
12411         * tests/test-sqrtf.c: New file.
12412
12413         New module 'sqrtf'.
12414         * lib/math.in.h (sqrtf): New declaration.
12415         * lib/sqrtf.c: New file.
12416         * m4/sqrtf.m4: New file.
12417         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12419         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12420         * modules/sqrtf: New file.
12421         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12422         * doc/posix-functions/sqrtf.texi: Mention the new module.
12423
12424 2011-10-08  Bruno Haible  <bruno@clisp.org>
12425
12426         Tests: Avoid link failures w.r.t. libintl.
12427         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12428         $(LIBINTL).
12429         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12430         $(LIBINTL).
12431         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12432         against $(LIBINTL).
12433         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12434         $(LIBINTL).
12435         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12436         $(LIBINTL).
12437         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12438
12439 2011-10-08  Bruno Haible  <bruno@clisp.org>
12440
12441         pow tests: Defeat compiler optimizations.
12442         * tests/test-pow.c (main): Assign arguments to x and y before use.
12443
12444 2011-10-08  Bruno Haible  <bruno@clisp.org>
12445
12446         gnulib-tool: Improve last commit.
12447         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12448         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12449         ignore dependencies that are not among the modules list.
12450
12451 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12452
12453         gnulib-tool: don't follow dependencies to avoided modules
12454         This fixes a bug that is related to the previous one.
12455         * gnulib-tool (func_modules_transitive_closure)
12456         (func_emit_autoconf_snippets):
12457         Check whether a dependency is acceptable before using it.
12458         (--extract-dependencies): Report an error if --avoid is also used,
12459         since this combination of options is not yet supported.
12460
12461         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12462         Problem reported by Peter Dyballa in
12463         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12464         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12465         when echoing "$condition".
12466
12467 2011-10-07  Bruno Haible  <bruno@clisp.org>
12468
12469         Fix documentation about math functions on MacOS X.
12470         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12471         MacOS X 10.5.
12472         * doc/posix-functions/fdim.texi: Likewise.
12473         * doc/posix-functions/feclearexcept.texi: Likewise.
12474         * doc/posix-functions/fegetenv.texi: Likewise.
12475         * doc/posix-functions/fegetround.texi: Likewise.
12476         * doc/posix-functions/feholdexcept.texi: Likewise.
12477         * doc/posix-functions/feraiseexcept.texi: Likewise.
12478         * doc/posix-functions/fesetenv.texi: Likewise.
12479         * doc/posix-functions/fesetround.texi: Likewise.
12480         * doc/posix-functions/fetestexcept.texi: Likewise.
12481         * doc/posix-functions/feupdateenv.texi: Likewise.
12482         * doc/posix-functions/fmax.texi: Likewise.
12483         * doc/posix-functions/fmin.texi: Likewise.
12484         * doc/posix-functions/log2.texi: Likewise.
12485         * doc/posix-functions/modff.texi: Likewise.
12486         * doc/posix-functions/nan.texi: Likewise.
12487         * doc/posix-functions/nanf.texi: Likewise.
12488         * doc/posix-functions/nextafterf.texi: Likewise.
12489         * doc/posix-functions/remquo.texi: Likewise.
12490
12491 2011-10-07  Bruno Haible  <bruno@clisp.org>
12492
12493         modff: Drop assumption about library that defines modff.
12494         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12495         AC_CHECK_FUNCS.
12496         * modules/modff (Files): Add m4/mathfunc.m4.
12497
12498 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12499
12500         raise tests: Avoid a GCC warning.
12501         * tests/test-raise.c (handler): Use _Noreturn.
12502
12503 2011-10-07  Bruno Haible  <bruno@clisp.org>
12504
12505         Tests for module 'ldexpf'.
12506         * modules/ldexpf-tests: New file.
12507         * tests/test-ldexpf.c: New file.
12508
12509         New module 'ldexpf'.
12510         * lib/math.in.h (ldexpf): New declaration.
12511         * lib/ldexpf.c: New file.
12512         * m4/ldexpf.m4: New file.
12513         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12515         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12516         * modules/ldexpf: New file.
12517         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12518         * doc/posix-functions/ldexpf.texi: Mention the new module.
12519
12520 2011-10-06  Bruno Haible  <bruno@clisp.org>
12521
12522         frexpf: Work around problems on IRIX and mingw.
12523         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12525         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12526         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12527         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12528         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12529         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12530
12531 2011-10-06  Bruno Haible  <bruno@clisp.org>
12532
12533         fabsf: Drop assumption about library that defines fabsf.
12534         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12535         AC_CHECK_FUNCS.
12536         * modules/fabsf (Files): Add m4/mathfunc.m4.
12537
12538 2011-10-06  Bruno Haible  <bruno@clisp.org>
12539
12540         frexpf: Drop assumption about library that defines frexpf.
12541         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12542         'int *', 'float *', 'long double *', 'float', 'long double'.
12543         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12544         AC_CHECK_FUNCS.
12545         * modules/frexpf (Files): Add m4/mathfunc.m4.
12546
12547         Tests for module 'frexpf'.
12548         * modules/frexpf-tests: New file.
12549         * tests/test-frexpf.c: New file.
12550
12551         New module 'frexpf'.
12552         * lib/math.in.h (frexpf): New declaration.
12553         * lib/frexpf.c: New file.
12554         * m4/frexpf.m4: New file.
12555         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12557         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12558         * modules/frexpf: New file.
12559         * tests/test-math-c++.cc: Check the declaration of frexpf.
12560         * doc/posix-functions/frexpf.texi: Mention the new module.
12561
12562 2011-10-06  Bruno Haible  <bruno@clisp.org>
12563
12564         math: Sort function declarations of math.in.h.
12565         * lib/math.in.h (frexp, logb): Move declarations.
12566
12567 2011-10-05  Bruno Haible  <bruno@clisp.org>
12568
12569         Tests for module 'modff'.
12570         * modules/modff-tests: New file.
12571         * tests/test-modff.c: New file.
12572
12573         New module 'modff'.
12574         * lib/math.in.h (modff): New declaration.
12575         * lib/modff.c: New file.
12576         * m4/modff.m4: New file.
12577         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12579         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12580         * modules/modff: New file.
12581         * tests/test-math-c++.cc: Check the declaration of modff.
12582         * doc/posix-functions/modff.texi: Mention the new module.
12583
12584         modf tests: Make test sharper.
12585         * tests/test-modf.c (main): Strengthen upper bound.
12586
12587         modf: Use a .m4 file.
12588         * m4/modf.m4: New file.
12589         * modules/modf (Files): Add it.
12590         (configure.ac): Just invoke gl_FUNC_MODF.
12591
12592 2011-10-05  Bruno Haible  <bruno@clisp.org>
12593
12594         Tests for module 'fmodf'.
12595         * modules/fmodf-tests: New file.
12596         * tests/test-fmodf.c: New file.
12597
12598         New module 'fmodf'.
12599         * lib/math.in.h (fmodf): New declaration.
12600         * lib/fmodf.c: New file.
12601         * m4/fmodf.m4: New file.
12602         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12604         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12605         * modules/fmodf: New file.
12606         * tests/test-math-c++.cc: Check the declaration of fmodf.
12607         * doc/posix-functions/fmodf.texi: Mention the new module.
12608
12609         fmod: Use a .m4 file.
12610         * m4/fmod.m4: New file.
12611         * modules/fmod (Files): Add it.
12612         (configure.ac): Just invoke gl_FUNC_FMOD.
12613
12614 2011-10-05  Bruno Haible  <bruno@clisp.org>
12615
12616         Tests for module 'fabsf'.
12617         * modules/fabsf-tests: New file.
12618         * tests/test-fabsf.c: New file.
12619
12620         New module 'fabsf'.
12621         * lib/math.in.h (fabsf): New declaration.
12622         * lib/fabsf.c: New file.
12623         * m4/fabsf.m4: New file.
12624         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12626         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12627         * modules/fabsf: New file.
12628         * tests/test-math-c++.cc: Check the declaration of fabsf.
12629         * doc/posix-functions/fabsf.texi: Mention the new module.
12630
12631         fabs: Use a .m4 file.
12632         * m4/fabs.m4: New file.
12633         * modules/fabs (Files): Add it.
12634         (configure.ac): Just invoke gl_FUNC_FABS.
12635
12636 2011-10-05  Jim Meyering  <meyering@redhat.com>
12637
12638         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12639         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12640         ls -lL regression introduced in coreutils-8.12, it does so at the
12641         cost of an additional stat call in the common case.  Besides, now
12642         that the kernel change that prompted commit 95f7c57f has been reverted
12643         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12644         we have no use for commit 95f7c57f, "file-has-acl: use
12645         acl_extended_file_nofollow if available".
12646
12647 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12648
12649         file-has-acl: revert unintended change in behavior of ls -L
12650         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12651         derived from...
12652         (file_has_acl): ...code here.  Call it.
12653         This problem was introduced with 2011-07-22 commit 95f7c57f,
12654         "file-has-acl: use acl_extended_file_nofollow if available".
12655         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12656
12657 2011-10-03  Bruno Haible  <bruno@clisp.org>
12658
12659         poll: Avoid link errors on MSVC.
12660         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12661         * modules/poll (Depends-on): Add sockets.
12662         (Link): New section.
12663         * NEWS: Mention the change.
12664         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12665         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12666         $(LIB_POLL) instead of $(LIBSOCKET).
12667
12668 2011-10-03  Bruno Haible  <bruno@clisp.org>
12669
12670         sys_select tests: Fix link error on MSVC 9.
12671         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12672         with $(LIB_SELECT) instead of $(LIBSOCKET).
12673
12674 2011-10-03  Bruno Haible  <bruno@clisp.org>
12675
12676         sys_select: Fix compilation error on mingw.
12677         * lib/sys_select.in.h: On native Windows, include <io.h>.
12678
12679 2011-10-03  Bruno Haible  <bruno@clisp.org>
12680
12681         wmemset: Support for MSVC.
12682         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12683         whether wmemset() exists.
12684
12685 2011-10-03  Bruno Haible  <bruno@clisp.org>
12686
12687         wmemmove: Support for MSVC.
12688         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12689         whether wmemmove() exists.
12690
12691 2011-10-03  Bruno Haible  <bruno@clisp.org>
12692
12693         wmemcpy: Support for MSVC.
12694         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12695         whether wmemcpy() exists.
12696
12697 2011-10-03  Bruno Haible  <bruno@clisp.org>
12698
12699         wmemcmp: Support for MSVC.
12700         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12701         whether wmemcmp() exists.
12702
12703 2011-10-03  Bruno Haible  <bruno@clisp.org>
12704
12705         wmemchr: Support for MSVC.
12706         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12707         whether wmemchr() exists.
12708
12709 2011-10-03  Bruno Haible  <bruno@clisp.org>
12710
12711         glthread/*, strsignal: Support for MSVC.
12712         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12713         including <winsock.h> on MSVC 9.
12714         * lib/glthread/lock.h: Likewise.
12715         * lib/glthread/thread.h: Likewise.
12716         * lib/glthread/tls.h: Likewise.
12717         * lib/glthread/yield.h: Likewise.
12718         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12719         if HAVE_UNISTD_H is false.
12720         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12721
12722 2011-10-03  Bruno Haible  <bruno@clisp.org>
12723
12724         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12725         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12726         Set to 100000.
12727
12728 2011-10-03  Bruno Haible  <bruno@clisp.org>
12729
12730         acl: Fix specification.
12731         * lib/file-has-acl.c (file_has_acl): Fix specification.
12732
12733 2011-10-03  Bruno Haible  <bruno@clisp.org>
12734
12735         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12736         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12737         (compute_curr_prefix, shared_library_fullname,
12738         find_shared_library_fullname, get_shared_library_fullname, relocate):
12739         Use it together with PIC && INSTALLDIR.
12740         Reported by <jojelino@gmail.com>
12741         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12742
12743 2011-10-01  Jim Meyering  <meyering@redhat.com>
12744
12745         maint.mk: adjust a release-related rule not to require use of gzip
12746         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12747         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12748         projects that build only .tar.xz files.  Also fix an erroneous test.
12749
12750         test-linkat: don't leave behind a temporary file
12751         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12752         Otherwise, coreutils' "make distcheck" would fail with this:
12753           Only in /c/cu/tests/torture/coreutils/test/\
12754             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12755           make[2]: *** [my-distcheck] Error 1
12756
12757         float, math: add omitted file
12758         * lib/itold.c: Add file, required for yesterday's float change.
12759
12760 2011-10-01  Bruno Haible  <bruno@clisp.org>
12761
12762         isinf: Fix for OpenBSD/x86.
12763         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12764         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12765         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12766
12767 2011-10-01  Bruno Haible  <bruno@clisp.org>
12768
12769         isfinite: Fix syntax error in configure test.
12770         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12771
12772         isfinite: Fix typo.
12773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12774         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12775
12776 2011-10-01  Bruno Haible  <bruno@clisp.org>
12777
12778         nonblocking tests: Fix test failure on Linux/IA-64.
12779         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12780         Set to 270000.
12781
12782 2011-10-01  Bruno Haible  <bruno@clisp.org>
12783
12784         mkfifoat tests: Fix a test failure on mingw.
12785         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12786         with error ENOSYS.
12787
12788 2011-09-30  Bruno Haible  <bruno@clisp.org>
12789
12790         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12791         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12792         'long double'. Set REPLACE_ITOLD.
12793         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12794         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12795         * lib/itold.c: New file.
12796         * modules/float (Files): Add lib/itold.c.
12797         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12798         (Makefile.am): Substitute REPLACE_ITOLD.
12799         * modules/math (Depends-on): Add float.
12800         (Makefile.am): Substitute REPLACE_ITOLD.
12801         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12802         * doc/posix-headers/math.texi: Likewise.
12803         * doc/posix-functions/logl.texi: Likewise.
12804
12805 2011-09-30  Bruno Haible  <bruno@clisp.org>
12806
12807         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12808         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12809         Set to 140000.
12810
12811 2011-09-30  Bruno Haible  <bruno@clisp.org>
12812
12813         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12814         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12815         invocation, say "right after AC_PROG_CC_STDC", not "right after
12816         AC_PROG_CC".
12817         Reported by Gary V. Vaughan <gary@gnu.org>.
12818
12819 2011-09-30  Bruno Haible  <bruno@clisp.org>
12820
12821         Centralize C99 requirement.
12822         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12823         * modules/stdarg (configure.ac-early): Invoke it instead of
12824         AC_PROG_CC_STDC.
12825         Reported by Gary V. Vaughan and Paul Eggert.
12826
12827 2011-09-29  Bruno Haible  <bruno@clisp.org>
12828
12829         float: Fix LDBL_MAX value on Linux/PowerPC.
12830         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12831         on Linux/PowerPC.
12832         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12833         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12834         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12835         platform.
12836         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12837
12838 2011-09-29  Bruno Haible  <bruno@clisp.org>
12839
12840         doc: Improve doc about gl_EARLY.
12841         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12842         AC_PROG_CC_STDC invocation.
12843         Reported by Gary V. Vaughan <gary@gnu.org>.
12844
12845 2011-09-28  Bruno Haible  <bruno@clisp.org>
12846
12847         fgetc, fputc, fread, fwrite tests: Fix link error.
12848         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12849         on non-MSVC platforms.
12850         * tests/test-fputc.c (main): Likewise.
12851         * tests/test-fread.c (main): Likewise.
12852         * tests/test-fwrite.c (main): Likewise.
12853         Reported by Jim Meyering.
12854
12855 2011-09-27  Bruno Haible  <bruno@clisp.org>
12856
12857         fputc, fwrite tests: Avoid test failure on MSVC.
12858         * tests/test-fgetc.c: Include msvc-inval.h.
12859         (main): Invoke gl_msvc_inval_ensure_handler.
12860         * tests/test-fputc.c: Include msvc-inval.h.
12861         (main): Invoke gl_msvc_inval_ensure_handler.
12862         * tests/test-fread.c: Include msvc-inval.h.
12863         (main): Invoke gl_msvc_inval_ensure_handler.
12864         * tests/test-fwrite.c: Include msvc-inval.h.
12865         (main): Invoke gl_msvc_inval_ensure_handler.
12866         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12867         * modules/fputc-tests (Depends-on): Likewise.
12868         * modules/fread-tests (Depends-on): Likewise.
12869         * modules/fwrite-tests (Depends-on): Likewise.
12870
12871 2011-09-27  Bruno Haible  <bruno@clisp.org>
12872
12873         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12874         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12875         (raise): Remove older, duplicated declaration.
12876         (_gl_raise_SIGPIPE): New declaration.
12877         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12878         (rpl_raise): Remove function.
12879         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12880         a gnulib-defined SIGPIPE here.
12881         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12882         'sigprocmask' has detected missing signal-blocking and the module
12883         'sigpipe' is enabled.
12884         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12885
12886 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12887
12888         base64-tests: avoid memory leak
12889         * tests/test-base64.c (main): Plug memory leak.
12890
12891         base32: new module
12892         * modules/base32: New module.
12893         * lib/base32.c: New file.
12894         * lib/base32.h: Likewise.
12895         * m4/base32.m4: Likewise.
12896         * modules/base32-tests: New test.
12897         * tests/test-base32.c: Likewise.
12898         * MODULES.html.sh (Misc): Mention it.
12899
12900 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         gnulib: use more-standard license notice wording
12903         * gnulib-tool (func_emit_copyright_notice): When emitting a
12904         license notice into a file, use the standard wording as suggested
12905         by the current information for GNU maintainers, except say "file"
12906         rather than "program".  The new wording gives a license version
12907         number, which addresses an issue raised by Glenn Morris in
12908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12909         * m4/onceonly.m4: Use that same wording here, too.
12910
12911         dup2: minor simplification
12912         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12913         as lib/dup2.c no longer uses 'inline'.
12914
12915 2011-09-25  Bruno Haible  <bruno@clisp.org>
12916
12917         strings: Fix compilation error on MSVC.
12918         * lib/strings.in.h: Include <stddef.h> for size_t.
12919
12920 2011-09-25  Bruno Haible  <bruno@clisp.org>
12921
12922         fflush et al.: Document limitation on MSVC.
12923         * doc/posix-functions/fflush.texi: Document possible crash in handling
12924         mode other than DEFAULT_HANDLING.
12925         * doc/posix-functions/fgetc.texi: Likewise.
12926         * doc/posix-functions/fputc.texi: Likewise.
12927         * doc/posix-functions/fread.texi: Likewise.
12928         * doc/posix-functions/fwrite.texi: Likewise.
12929
12930 2011-09-25  Bruno Haible  <bruno@clisp.org>
12931
12932         msvc-inval: Allow three invalid parameter handling modes.
12933         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12934         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12935         macros.
12936         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12937         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12938         SANE_LIBRARY_HANDLING as a no-op.
12939         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12940         <stdlib.h>.
12941         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12942
12943 2011-09-25  Bruno Haible  <bruno@clisp.org>
12944
12945         msvc-inval: Make handler multithread-safe.
12946         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12947         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12948         declarations.
12949         (gl_msvc_inval_current): New declaration.
12950         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12951         Operate on the structure returned by gl_msvc_inval_current().
12952         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12953         Remove varaiables.
12954         (tls_index, tls_initialized): New variables.
12955         (not_per_thread): New variable.
12956         (gl_msvc_inval_current): New function.
12957         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12958         returned by gl_msvc_inval_current().
12959
12960 2011-09-25  Bruno Haible  <bruno@clisp.org>
12961
12962         msvc-inval: Install handler globally.
12963         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12964         !_MSC_VER.
12965         (gl_msvc_invalid_parameter_handler): Remove declaration.
12966         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12967         declarations.
12968         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12969         Install the handler globally, don't uninstall it.
12970         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12971         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12972         currently valid, call RaiseException instead.
12973         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12974         for !_MSC_VER.
12975
12976 2011-09-25  Bruno Haible  <bruno@clisp.org>
12977
12978         strerror_r-posix: Fix for MSVC 9.
12979         * lib/strerror_r.c (local_snprintf): New function.
12980         (snprintf): Define to local_snprintf, not to _snprintf.
12981
12982 2011-09-25  Bruno Haible  <bruno@clisp.org>
12983
12984         ftruncate: Support for MSVC 9.
12985         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12986         (chsize_nothrow): New function.
12987         (chsize): Redefine as a macro.
12988         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12989         * modules/ftruncate (Depends-on): Add msvc-inval.
12990
12991 2011-09-25  Bruno Haible  <bruno@clisp.org>
12992
12993         New module 'fstat'.
12994         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12995         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12996         * lib/fchdir.c (rpl_fstat): Remove function.
12997         * m4/fstat.m4: New file.
12998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13000         declared.
13001         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13002         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13003         * modules/fstat: New file.
13004         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13005         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13006         is set.
13007         * doc/posix-functions/fstat.texi: Mention the new module and the
13008         problem on MSVC.
13009         * NEWS: Mention the change.
13010         * modules/acl (Depends-on): Add fstat.
13011         * modules/chdir-safer (Depends-on): Likewise.
13012         * modules/chown (Depends-on): Likewise.
13013         * modules/copy-file (Depends-on): Likewise.
13014         * modules/fchdir (Depends-on): Likewise.
13015         * modules/fdopendir (Depends-on): Likewise.
13016         * modules/fopen (Depends-on): Likewise.
13017         * modules/fts (Depends-on): Likewise.
13018         * modules/getcwd (Depends-on): Likewise.
13019         * modules/isapipe (Depends-on): Likewise.
13020         * modules/linkat (Depends-on): Likewise.
13021         * modules/lseek (Depends-on): Likewise.
13022         * modules/mkdir-p (Depends-on): Likewise.
13023         * modules/open (Depends-on): Likewise.
13024         * modules/openat (Depends-on): Likewise.
13025         * modules/read-file (Depends-on): Likewise.
13026         * modules/renameat (Depends-on): Likewise.
13027         * modules/utimens (Depends-on): Likewise.
13028
13029 2011-09-25  Bruno Haible  <bruno@clisp.org>
13030
13031         linkat: Fix compilation on MSVC 9.
13032         * lib/linkat.c: Don't include <stdint.h>.
13033
13034 2011-09-25  Bruno Haible  <bruno@clisp.org>
13035
13036         fclose: Support for MSVC 9.
13037         * lib/fclose.c: Include msvc-inval.h.
13038         (fclose_nothrow): New function.
13039         (rpl_fclose): Use it.
13040         * modules/fclose (Depends-on): Add msvc-inval.
13041         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13042
13043 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13044
13045         dup2: minor simplifications
13046         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13047         that it's a performance win.
13048         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13049         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13050
13051 2011-09-24  Jim Meyering  <meyering@redhat.com>
13052
13053         test-futimens: avoid a warning from gcc -Wshadow
13054         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13055         to avoid a shadowing warning.
13056
13057 2011-09-24  Bruno Haible  <bruno@clisp.org>
13058
13059         fdopen: Support for MSVC 9.
13060         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13061         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13062         * lib/fdopen.c: Include msvc-inval.h.
13063         (fdopen_nothrow): New function.
13064         (rpl_fdopen): Use it.
13065         * modules/fdopen (Depends-on): Add msvc-inval.
13066         * modules/fclose-tests (Depends-on): Add fdopen.
13067         * modules/fflush-tests (Depends-on): Likewise.
13068         * modules/fgetc-tests (Depends-on): Likewise.
13069         * modules/fputc-tests (Depends-on): Likewise.
13070         * modules/fread-tests (Depends-on): Likewise.
13071         * modules/freopen-tests (Depends-on): Likewise.
13072         * modules/fseeko-tests (Depends-on): Likewise.
13073         * modules/ftello-tests (Depends-on): Likewise.
13074         * modules/fwrite-tests  (Depends-on): Likewise.
13075         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13076
13077 2011-09-24  Bruno Haible  <bruno@clisp.org>
13078
13079         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13080         * modules/fgetc-tests (Depends-on): Add unistd.
13081         * modules/fputc-tests (Depends-on): Likewise.
13082         * modules/fread-tests (Depends-on): Likewise.
13083         * modules/fwrite-tests (Depends-on): Likewise.
13084
13085 2011-09-24  Bruno Haible  <bruno@clisp.org>
13086
13087         dup: Simplify autoconf test.
13088         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13089         on gl_MSVC_INVAL's result.
13090
13091 2011-09-24  Bruno Haible  <bruno@clisp.org>
13092
13093         Tests for function fwrite().
13094         * modules/fwrite-tests: New file.
13095         * tests/test-fwrite.c: New file.
13096         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13097
13098         Tests for function fread().
13099         * modules/fread-tests: New file.
13100         * tests/test-fread.c: New file.
13101         * modules/stdio-tests (Depends-on): Add fread-tests.
13102
13103         Activate fputc tests.
13104         * modules/stdio-tests (Depends-on): Add fputc-tests.
13105
13106         Enhance fgetc, fputc tests.
13107         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13108         * tests/test-fputc.c (main): Likewise.
13109
13110 2011-09-24  Bruno Haible  <bruno@clisp.org>
13111
13112         write: Support for MSVC 9.
13113         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13114         is not 1.
13115         * lib/write.c (write_nothrow): New function.
13116         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13117         not 1. Use write_nothrow.
13118         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13119         invalid parameter handler.
13120         (gl_PREREQ_WRITE): New macro.
13121         * modules/write (Depends-on): Add msvc-inval.
13122         (configure.ac): Invoke gl_PREREQ_WRITE.
13123         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13124
13125 2011-09-24  Bruno Haible  <bruno@clisp.org>
13126
13127         read: Fix last commit.
13128         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13129
13130 2011-09-24  Bruno Haible  <bruno@clisp.org>
13131
13132         dup2: Fix last commit.
13133         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13134         (rpl_dup2): Disable fcntl workaround on native Windows.
13135
13136         sigprocmask: Make code safer.
13137         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13138         section that changes macro definitions for this compilation unit.
13139
13140 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         dup2: clarify by coalescing Windows-specific material
13143         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13144         "msvc-nothrow.h"' to the Windows-specific section, so that the
13145         Emacs source need not contain these include files.
13146         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13147         Windows-specific fixes into this function rather than just the
13148         nothrow fix, as this shortens and clarifies the code.  Always
13149         define as a function, as that's a bit cleaner than having it be
13150         sometimes a function and sometimes a macro.
13151         (rpl_dup2): Move the Windows-specific stuff out of here and into
13152         ms_windows_dup2.  Don't protect the Haiku-related fix with
13153         "#if !defined __linux__", as the same code also works around
13154         a Linux kernel bug, and it doesn't add any system calls on any
13155         platform.  Add comment about FreeBSD 6.1.
13156
13157         sigprocmask: move #include directive
13158         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13159         Windows-specific section, so that the Emacs source need not
13160         contain msvc-inval.h.
13161
13162 2011-09-23  Bruno Haible  <bruno@clisp.org>
13163
13164         read: Support for MSVC 9.
13165         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13166         is not 1.
13167         * lib/read.c (read_nothrow): New function.
13168         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13169         read_nothrow.
13170         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13171         invalid parameter handler.
13172         (gl_PREREQ_READ): New macro.
13173         * modules/read (Depends-on): Add msvc-inval.
13174         (configure.ac): Invoke gl_PREREQ_READ.
13175         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13176
13177 2011-09-23  Bruno Haible  <bruno@clisp.org>
13178
13179         close: Support for MSVC 9.
13180         * lib/close.c: Include <errno.h>, msvc-inval.h.
13181         (close_nothrow): New function.
13182         (rpl_close): Use it.
13183         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13184         invalid parameter handler.
13185         * modules/close (Depends-on): Add msvc-inval.
13186         * modules/dup2-tests (Depends-on): Add close.
13187         * modules/dup3-tests (Depends-on): Likewise.
13188         * modules/fcntl-tests (Depends-on): Likewise.
13189         * modules/spawn-pipe-tests (Depends-on): Likewise.
13190         * modules/unistd-safer-tests (Depends-on): Likewise.
13191         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13192
13193 2011-09-23  Bruno Haible  <bruno@clisp.org>
13194
13195         New module 'dup'.
13196         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13197         Allow replacement.
13198         * lib/dup.c: New file.
13199         * lib/fchdir.c (rpl_dup): Remove function.
13200         * m4/dup.m4: New file.
13201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13202         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13203         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13204         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13205         * modules/dup: New file.
13206         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13207         'dup' module is in use.
13208         * modules/fdopendir (Depends-on): Add dup.
13209         * modules/fdutimensat-tests (Depends-on): Likewise.
13210         * modules/fts (Depends-on): Likewise.
13211         * modules/futimens-tests (Depends-on): Likewise.
13212         * modules/posix_spawnp-tests (Depends-on): Likewise.
13213         * modules/unistd-safer-tests (Depends-on): Likewise.
13214         * modules/utimens-tests (Depends-on): Likewise.
13215         * doc/posix-functions/dup.texi: Mention the new module and the problem
13216         on MSVC.
13217
13218 2011-09-23  Bruno Haible  <bruno@clisp.org>
13219
13220         getdtablesize: Support for MSVC 9.
13221         * lib/getdtablesize.c: Include msvc-inval.h.
13222         (_setmaxstdio_nothrow): New function.
13223         (_setmaxstdio): Redefine it.
13224         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13225         * modules/getdtablesize (Depends-on): Add msvc-inval.
13226         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13227
13228 2011-09-23  Bruno Haible  <bruno@clisp.org>
13229
13230         signal-h: Rename from signal.
13231         * modules/signal-h: Renamed from modules/signal.
13232         * modules/pthread_sigmask (Depends-on): Update.
13233         * modules/raise (Depends-on): Likewise.
13234         * modules/sigaction (Depends-on): Likewise.
13235         * modules/sigpipe (Depends-on): Likewise.
13236         * modules/sigprocmask (Depends-on): Likewise.
13237         * modules/sys_select (Depends-on): Likewise.
13238         * modules/signal-h-tests: Renamed from modules/signal-tests.
13239         (Files, Depends-on, Makefile.am): Update.
13240         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13241         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13242         (Files, Makefile.am): Update.
13243         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13244         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13245         * modules/signal: New placeholder file.
13246         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13247         * doc/posix-headers/signal.texi: Update.
13248         * NEWS: Mention the change.
13249
13250 2011-09-23  Bruno Haible  <bruno@clisp.org>
13251
13252         sigprocmask: Avoid crashes through signal() on MSVC 9.
13253         * lib/sigprocmask.c: Include msvc-inval.h.
13254         (signal_nothrow): New function.
13255         (signal): Redefine it.
13256         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13257         * modules/sigprocmask (Depends-on): Add msvc-inval.
13258         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13259
13260 2011-09-23  Bruno Haible  <bruno@clisp.org>
13261
13262         Tests for module 'raise'.
13263         * modules/raise-tests: New file.
13264         * tests/test-raise.c: New file.
13265
13266         raise: Support for MSVC.
13267         * lib/signal.in.h (raise): New declaration.
13268         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13269         for native Windows platforms.
13270         * m4/raise.m4: New file.
13271         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13272         HAVE_RAISE, REPLACE_RAISE.
13273         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13274         REPLACE_RAISE.
13275         * modules/raise (Status, Notice): Remove fields.
13276         (Files): Add m4/raise.m4.
13277         (Depends-on): Add signal, msvc-inval.
13278         (configure.ac): Use the common idioms.
13279         (Maintainer): Add me.
13280         * tests/test-signal-c++.cc: Check the signature of raise.
13281         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13282
13283 2011-09-23  Bruno Haible  <bruno@clisp.org>
13284
13285         pipe2: Fix compilation on pre-C99 compilers.
13286         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13287
13288 2011-09-23  Bruno Haible  <bruno@clisp.org>
13289
13290         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13291         * lib/msvc-nothrow.h: New file.
13292         * lib/msvc-nothrow.c: New file.
13293         * m4/msvc-nothrow.m4: New file.
13294         * modules/msvc-nothrow: New file.
13295         * lib/dup2.c: Include msvc-nothrow.h.
13296         (rpl_dup2): No need to protect _get_osfhandle call here.
13297         * lib/accept4.c: Include msvc-nothrow.h.
13298         * lib/error.c: Likewise.
13299         * lib/fcntl.c: Likewise.
13300         * lib/lseek.c: Likewise.
13301         * lib/nonblocking.c: Likewise.
13302         * lib/poll.c: Likewise.
13303         * lib/read.c: Likewise.
13304         * lib/select.c: Likewise.
13305         * lib/sockets.h: Likewise.
13306         * lib/sockets.c: Likewise.
13307         * lib/stdio-read.c: Likewise.
13308         * lib/stdio-write.c: Likewise.
13309         * lib/write.c: Likewise.
13310         * lib/w32sock.h: Likewise.
13311         * lib/w32spawn.h: Likewise.
13312         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13313         * lib/fsync.c: Likewise.
13314         * lib/isapipe.c: Likewise.
13315         * modules/dup2 (Depends-on): Add msvc-nothrow.
13316         * modules/accept4 (Depends-on): Likewise.
13317         * modules/error (Depends-on): Likewise.
13318         * modules/fcntl (Depends-on): Likewise.
13319         * modules/lseek (Depends-on): Likewise.
13320         * modules/nonblocking (Depends-on): Likewise.
13321         * modules/poll (Depends-on): Likewise.
13322         * modules/read (Depends-on): Likewise.
13323         * modules/select (Depends-on): Likewise.
13324         * modules/sockets (Depends-on): Likewise.
13325         * modules/sigpipe (Depends-on): Likewise.
13326         * modules/write (Depends-on): Likewise.
13327         * modules/accept (Depends-on): Likewise.
13328         * modules/bind (Depends-on): Likewise.
13329         * modules/connect (Depends-on): Likewise.
13330         * modules/gethostname (Depends-on): Likewise.
13331         * modules/getpeername (Depends-on): Likewise.
13332         * modules/getsockname (Depends-on): Likewise.
13333         * modules/getsockopt (Depends-on): Likewise.
13334         * modules/ioctl (Depends-on): Likewise.
13335         * modules/listen (Depends-on): Likewise.
13336         * modules/recv (Depends-on): Likewise.
13337         * modules/recvfrom (Depends-on): Likewise.
13338         * modules/send (Depends-on): Likewise.
13339         * modules/sendto (Depends-on): Likewise.
13340         * modules/setsockopt (Depends-on): Likewise.
13341         * modules/shutdown (Depends-on): Likewise.
13342         * modules/socket (Depends-on): Likewise.
13343         * modules/execute (Depends-on): Likewise.
13344         * modules/spawn-pipe (Depends-on): Likewise.
13345         * modules/flock (Depends-on): Likewise.
13346         * modules/fsync (Depends-on): Likewise.
13347         * modules/isapipe (Depends-on): Likewise.
13348         * tests/test-cloexec.c: Include msvc-nothrow.h.
13349         * tests/test-dup-safer.c: Likewise.
13350         * tests/test-dup2.c: Likewise.
13351         * tests/test-dup3.c: Likewise.
13352         * tests/test-fcntl.c: Likewise.
13353         * tests/test-pipe.c: Likewise.
13354         * tests/test-pipe2.c: Likewise.
13355         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13356         * modules/unistd-safer-tests (Depends-on): Likewise.
13357         * modules/dup2-tests (Depends-on): Likewise.
13358         * modules/dup3-tests (Depends-on): Likewise.
13359         * modules/fcntl-tests (Depends-on): Likewise.
13360         * modules/pipe-posix-tests (Depends-on): Likewise.
13361         * modules/pipe2-tests (Depends-on): Likewise.
13362
13363 2011-09-23  Bruno Haible  <bruno@clisp.org>
13364
13365         dup2: Make code more maintainable.
13366         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13367         (rpl_dup2): Use it.
13368         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13369         * modules/dup2 (configure.ac): Invoke it.
13370         Reported by Paul Eggert.
13371
13372 2011-09-23  Bruno Haible  <bruno@clisp.org>
13373
13374         msvc-inval: Fix compilation error.
13375         * lib/msvc-inval.h: Include <excpt.h>.
13376
13377 2011-09-23  Bruno Haible  <bruno@clisp.org>
13378
13379         mkdir: Tweak for MSVC 9.
13380         * lib/sys_stat.in.h: Update comments.
13381         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13382
13383         Tests for module 'chdir'.
13384         * modules/chdir-tests: New file.
13385         * tests/test-chdir.c: New file.
13386
13387         New module 'chdir'.
13388         * modules/chdir: New file.
13389         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13390         (chdir): New declaration.
13391         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13392         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13393         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13394         * tests/test-unistd-c++.cc: Check signature of chdir.
13395         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13396         * modules/chdir-long (Depends-on): Add chdir.
13397         * modules/fchdir (Depends-on): Likewise.
13398         * modules/rename (Depends-on): Likewise.
13399         * modules/savewd (Depends-on): Likewise.
13400
13401         rmdir: Support for mingw, MSVC 9.
13402         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13403         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13404
13405         getcwd: Tweak for MSVC 9.
13406         * lib/unistd.in.h: Update comments.
13407         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13408
13409 2011-09-22  Bruno Haible  <bruno@clisp.org>
13410
13411         strerror_r-posix: Avoid a link error on MSVC.
13412         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13413         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13414
13415 2011-09-22  Bruno Haible  <bruno@clisp.org>
13416
13417         select: Avoid link errors on MSVC.
13418         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13419         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13420         * modules/pselect (Link): Likewise.
13421         * NEWS: Mention the change.
13422         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13423         test-select-stdin against $(LIB_SELECT).
13424         * modules/pselect-tests (Makefile.am): Link test-pselect against
13425         $(LIB_SELECT).
13426
13427 2011-09-22  Bruno Haible  <bruno@clisp.org>
13428
13429         select: Avoid compilation error on MSVC.
13430         * lib/select.c: Don't include <stdbool.h>.
13431
13432 2011-09-21  Bruno Haible  <bruno@clisp.org>
13433
13434         Consolidate all uses of PATH_MAX in *.m4 files.
13435         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13436         macros.
13437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13438         and gl_PATHMAX_SNIPPET.
13439         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13440         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13441         * modules/chdir-long (Files): Add m4/pathmax.m4.
13442         * modules/getcwd (Files): Likewise.
13443
13444 2011-09-21  Bruno Haible  <bruno@clisp.org>
13445
13446         ftruncate: Un-deprecate, concentrate on Win32 support.
13447         * modules/ftruncate (Status, Notice): Remove sections.
13448         (Depends-on): Add largefile.
13449         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13450         non-mingw platforms.
13451         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13452         include <io.h>.
13453         * modules/perror-tests (Depends-on): Add ftruncate.
13454         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13455         'ftruncate' module.
13456
13457 2011-09-21  Bruno Haible  <bruno@clisp.org>
13458
13459         Add dependencies to new dirent related modules.
13460         * modules/opendir (Depends-on): Add closedir.
13461         * modules/getcwd (Depends-on): Add opendir, closedir.
13462         * modules/dirent-safer-tests (Depends-on): Likewise.
13463         * modules/fdopendir-tests (Depends-on): Likewise.
13464         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13465         * modules/renameat-tests (Depends-on): Likewise.
13466
13467 2011-09-21  Bruno Haible  <bruno@clisp.org>
13468
13469         opendir: Avoid compilation error on mingw.
13470         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13471         * modules/opendir (Depends-on): Add unistd.
13472
13473 2011-09-21  Bruno Haible  <bruno@clisp.org>
13474
13475         ftruncate tests: Avoid a test failure on mingw.
13476         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13477
13478 2011-09-21  Bruno Haible  <bruno@clisp.org>
13479
13480         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13481         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13482         native Windows.
13483
13484 2011-09-21  Bruno Haible  <bruno@clisp.org>
13485
13486         New module 'fdopen'.
13487         * lib/stdio.in.h (fdopen): New declaration.
13488         * lib/fdopen.c: New file.
13489         * m4/fdopen.m4: New file.
13490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13491         REPLACE_FDOPEN.
13492         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13493         REPLACE_FDOPEN.
13494         * modules/fdopen: New file.
13495         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13496         * tests/test-stdio-c++.cc: Check signature of fdopen.
13497         * doc/posix-functions/fdopen.texi: Mention the new module.
13498
13499 2011-09-21  Bruno Haible  <bruno@clisp.org>
13500
13501         unlockpt tests: Avoid test failure on NetBSD 5.1.
13502         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13503         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13504
13505 2011-09-21  Bruno Haible  <bruno@clisp.org>
13506
13507         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13508         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13509         * tests/test-getlogin_r.c (main): Likewise.
13510
13511 2011-09-20  Bruno Haible  <bruno@clisp.org>
13512
13513         time tests: Don't require pid_t.
13514         * doc/posix-headers/time.texi: Revert last change.
13515         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13516         * tests/test-time.c: Comment out the check for pid_t.
13517
13518 2011-09-20  Bruno Haible  <bruno@clisp.org>
13519
13520         fsync tests: Avoid a test failure on mingw.
13521         * tests/test-fsync.c (main): Allow a failure with EIO.
13522
13523 2011-09-20  Bruno Haible  <bruno@clisp.org>
13524
13525         euidaccess: Update comments.
13526         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13527
13528 2011-09-20  Bruno Haible  <bruno@clisp.org>
13529
13530         Ensure EBADF returns for socket functions on mingw.
13531         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13532         descriptor is invalid.
13533         * lib/bind.c (rpl_bind): Likewise.
13534         * lib/connect.c (rpl_connect): Likewise.
13535         * lib/getpeername.c (rpl_getpeername): Likewise.
13536         * lib/getsockname.c (rpl_getsockname): Likewise.
13537         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13538         * lib/listen.c (rpl_listen): Likewise.
13539         * lib/recv.c (rpl_recv): Likewise.
13540         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13541         * lib/send.c (rpl_send): Likewise.
13542         * lib/sendto.c (rpl_sendto): Likewise.
13543         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13544         * lib/shutdown.c (rpl_shutdown): Likewise.
13545
13546 2011-09-20  Bruno Haible  <bruno@clisp.org>
13547
13548         select tests: EBADF tests.
13549         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13550         test_bad_fd): New functions.
13551         (test_function): Invoke also test_bad_fd.
13552
13553 2011-09-20  Bruno Haible  <bruno@clisp.org>
13554
13555         Tests for module 'posix_spawn_file_actions_addopen.
13556         * modules/posix_spawn_file_actions_addopen-tests: New file.
13557         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13558
13559         Tests for module 'posix_spawn_file_actions_adddup2'.
13560         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13561         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13562
13563         Tests for module 'posix_spawn_file_actions_addclose'.
13564         * modules/posix_spawn_file_actions_addclose-tests: New file.
13565         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13566
13567 2011-09-20  Bruno Haible  <bruno@clisp.org>
13568
13569         Tests for module 'unlockpt'.
13570         * modules/unlockpt-tests: New file.
13571         * tests/test-unlockpt.c: New file.
13572         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13573
13574         Tests for module 'grantpt'.
13575         * modules/grantpt-tests: New file.
13576         * tests/test-grantpt.c: New file.
13577         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13578
13579 2011-09-20  Bruno Haible  <bruno@clisp.org>
13580
13581         freopen tests: EBADF tests.
13582         * tests/test-freopen.c: Include errno.h, unistd.h.
13583         (main): Add tests for EBADF, commented out for the moment.
13584
13585         fclose tests: EBADF tests.
13586         * tests/test-fclose.c (main): Add tests for EBADF.
13587
13588         fflush tests: EBADF tests.
13589         * tests/test-fflush.c: Include errno.h, macros.h.
13590         (main): Add tests for EBADF.
13591
13592         ftello tests: EBADF tests.
13593         * tests/test-ftello4.sh: New file.
13594         * tests/test-ftello4.c: New file.
13595         * modules/ftello-tests (Files): Add them.
13596         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13597
13598         fseeko tests: EBADF tests.
13599         * tests/test-fseeko4.sh: New file.
13600         * tests/test-fseeko4.c: New file.
13601         * modules/fseeko-tests (Files): Add them.
13602         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13603
13604         Tests for function fputc().
13605         * modules/fputc-tests: New file.
13606         * tests/test-fputc.c: New file.
13607         * modules/stdio-tests (Depends-on): Add fputc-tests.
13608
13609         Tests for function fgetc().
13610         * modules/fgetc-tests: New file.
13611         * tests/test-fgetc.c: New file.
13612         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13613
13614         Tests for function fdopen().
13615         * modules/fdopen-tests: New file.
13616         * tests/test-fdopen.c: New file.
13617         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13618
13619         Tests for module 'vdprintf'.
13620         * modules/vdprintf-tests: New file.
13621         * tests/test-vdprintf.c: New file.
13622
13623         Tests for module 'dprintf'.
13624         * modules/dprintf-tests: New file.
13625         * tests/test-dprintf.c: New file.
13626
13627 2011-09-20  Bruno Haible  <bruno@clisp.org>
13628
13629         Tests for module 'ioctl'.
13630         * modules/ioctl-tests: New file.
13631         * tests/test-ioctl.c: New file.
13632
13633 2011-09-20  Bruno Haible  <bruno@clisp.org>
13634
13635         fcntl tests: EBADF tests.
13636         * tests/test-fcntl.c (main): Add more tests for EBADF.
13637
13638 2011-09-20  Bruno Haible  <bruno@clisp.org>
13639
13640         utimensat tests: EBADF tests.
13641         * tests/test-utimensat.c (main): Add tests for EBADF.
13642
13643         renameat tests: EBADF tests.
13644         * tests/test-renameat.c (main): Add tests for EBADF.
13645
13646         mkfifoat tests: EBADF tests.
13647         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13648
13649         readlinkat tests: EBADF tests.
13650         * tests/test-readlinkat.c (main): Add tests for EBADF.
13651
13652         symlinkat tests: EBADF tests.
13653         * tests/test-symlinkat.c (main): Add tests for EBADF.
13654
13655         linkat tests: EBADF tests.
13656         * tests/test-linkat.c (main): Add tests for EBADF.
13657
13658         Tests for module 'faccessat'.
13659         * modules/faccessat-tests: New file.
13660         * tests/test-faccessat.c: New file.
13661
13662         fdopendir tests: EBADF tests.
13663         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13664
13665         openat tests: EBADF tests.
13666         * tests/test-fchownat.c (main): Add tests for EBADF.
13667         * tests/test-fstatat.c (main): Likewise.
13668         * tests/test-mkdirat.c (main): Likewise.
13669         * tests/test-openat.c (main): Likewise.
13670         * tests/test-unlinkat.c (main): Likewise.
13671         * tests/test-fchmodat.c: New file.
13672         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13673         (Makefile.am): Also run 'test-fchmodat'.
13674
13675 2011-09-20  Bruno Haible  <bruno@clisp.org>
13676
13677         utimens, futimens, fdutimensat tests: EBADF tests.
13678         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13679
13680         Tests for function fstat().
13681         * modules/fstat-tests: New file.
13682         * tests/test-fstat.c: New file.
13683         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13684
13685 2011-09-20  Bruno Haible  <bruno@clisp.org>
13686
13687         test-ttyname_r tests: EBADF tests.
13688         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13689
13690         Tests for module 'isatty'.
13691         * modules/isatty-tests: New file.
13692         * tests/test-isatty.c: New file.
13693
13694         Tests for module 'write'.
13695         * modules/write-tests: New file.
13696         * tests/test-write.c: New file.
13697
13698         Tests for module 'read'.
13699         * modules/read-tests: New file.
13700         * tests/test-read.c: New file.
13701
13702         pwrite tests: EBADF tests.
13703         * tests/test-pwrite.c (main): Add tests for EBADF.
13704
13705         pread tests: EBADF tests.
13706         * tests/test-pread.c (main): Add tests for EBADF.
13707
13708         lseek tests: EBADF tests.
13709         * tests/test-lseek.c (main): Add more tests for EBADF.
13710
13711         Tests for module 'ftruncate'.
13712         * modules/ftruncate-tests: New file.
13713         * tests/test-ftruncate.sh: New file.
13714         * tests/test-ftruncate.c: New file.
13715
13716         fsync tests: EBADF tests.
13717         * tests/test-fsync.c (main): Add more tests for EBADF.
13718
13719         fdatasync tests: EBADF tests.
13720         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13721
13722         Tests for module 'fchown'.
13723         * modules/fchown-tests: New file.
13724         * tests/test-fchown.c: New file.
13725
13726         Tests for module 'fchmod'.
13727         * modules/fchmod-tests: New file.
13728         * tests/test-fchmod.c: New file.
13729
13730         fchdir tests: EBADF tests.
13731         * tests/test-fchdir.c (main): Add more tests for EBADF.
13732
13733         dup2 tests: EBADF tests.
13734         * tests/test-dup2.c (main): Add more tests for EBADF.
13735
13736         Tests for module 'dup'.
13737         * modules/dup-tests: New file.
13738         * tests/test-dup.c: New file.
13739
13740         Tests for module 'close'.
13741         * modules/close-tests: New file.
13742         * tests/test-close.c: New file.
13743
13744 2011-09-20  Bruno Haible  <bruno@clisp.org>
13745
13746         Tests for module 'shutdown'.
13747         * modules/shutdown-tests: New file.
13748         * tests/test-shutdown.c: New file.
13749
13750         Tests for module 'setsockopt'.
13751         * modules/setsockopt-tests: New file.
13752         * tests/test-setsockopt.c: New file.
13753
13754         Tests for module 'sendto'.
13755         * modules/sendto-tests: New file.
13756         * tests/test-sendto.c: New file.
13757
13758         Tests for module 'send'.
13759         * modules/send-tests: New file.
13760         * tests/test-send.c: New file.
13761
13762         Tests for module 'recvfrom'.
13763         * modules/recvfrom-tests: New file.
13764         * tests/test-recvfrom.c: New file.
13765
13766         Tests for module 'recv'.
13767         * modules/recv-tests: New file.
13768         * tests/test-recv.c: New file.
13769
13770         Tests for module 'listen'.
13771         * modules/listen-tests: New file.
13772         * tests/test-listen.c: New file.
13773
13774         Tests for module 'getsockopt'.
13775         * modules/getsockopt-tests: New file.
13776         * tests/test-getsockopt.c: New file.
13777
13778         Tests for module 'getsockname'.
13779         * modules/getsockname-tests: New file.
13780         * tests/test-getsockname.c: New file.
13781
13782         Tests for module 'getpeername'.
13783         * modules/getpeername-tests: New file.
13784         * tests/test-getpeername.c: New file.
13785
13786         Tests for module 'connect'.
13787         * modules/connect-tests: New file.
13788         * tests/test-connect.c: New file.
13789
13790         Tests for module 'bind'.
13791         * modules/bind-tests: New file.
13792         * tests/test-bind.c: New file.
13793
13794         accept4 tests: Fix for native Windows.
13795         * tests/test-accept4.c: Include sockets.h.
13796         (main): Invoke gl_sockets_startup.
13797         * modules/accept4-tests (Depends-on): Add sockets.
13798
13799         accept tests: Fix for native Windows.
13800         * tests/test-accept.c: Include sockets.h.
13801         (main): Invoke gl_sockets_startup.
13802         * modules/accept-tests (Depends-on): Add sockets.
13803
13804 2011-09-19  Bruno Haible  <bruno@clisp.org>
13805
13806         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13807         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13808         do...while(0).
13809         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13810         Suggested by Paul Eggert.
13811
13812 2011-09-19  Bruno Haible  <bruno@clisp.org>
13813
13814         sched: Ensure pid_t is defined.
13815         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13816         not define pid_t.
13817         * lib/sched.in.h: Include <sys/types.h>.
13818         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13820
13821 2011-09-19  Bruno Haible  <bruno@clisp.org>
13822
13823         msvc-inval: Ensure the entire expansion is a single statement.
13824         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13825         of braces.
13826
13827 2011-09-19  Jim Meyering  <meyering@redhat.com>
13828
13829         tests: use printf, not echo in init.sh's warn_ function
13830         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13831         misbehave when given strings containing a backslash or starting
13832         with e.g., -n.  James Youngman suggested setting IFS.
13833
13834 2011-09-19  Eric Blake  <eblake@redhat.com>
13835
13836         futimens: enhance test
13837         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13838         closed non-negative fd.
13839
13840         date: accept 'hence' as opposite of 'ago'
13841         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13842         * tests/test-parse-datetime.c (main): Enhance test.
13843         Suggested by Jesse Wilson.
13844
13845 2011-09-19  Jim Meyering  <meyering@redhat.com>
13846
13847         getcwd: don't fail in a deep directory on a system without openat
13848         Before this change, getcwd would fail when called from a directory
13849         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13850         the non-openat implementation used "..", "../..", "../../..", etc.
13851         to access ancestor directories.  With too many, that string would
13852         be longer than PATH_MAX.
13853         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13854         using gnulib's openat replacement.
13855         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13856         we're using the replacement function.
13857
13858 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13859
13860         maint.mk: avoid warnings from perl about missing files
13861         * top/maint.mk (def_sym_regex): Ignore files listed in
13862         $(gl_other_headers_) that do not exist, say because a project
13863         does not use a corresponding module.
13864
13865 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13866
13867         stat: use pathmax.h only if needed
13868         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13869         This is better for Emacs, which does not have a mingw port and
13870         therefore can avoid the pathmax module.
13871
13872         utimens: remove dependency on dup2
13873         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13874         to work around the Linux kernel bug.
13875         * modules/utimens (Depends-on): Remove dup2.
13876
13877 2011-09-18  Bruno Haible  <bruno@clisp.org>
13878
13879         inet_ntop, inet_pton: Look for it also in libresolv.
13880         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13881         libnsl, search for it in libresolv.
13882         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13883         Needed on Solaris 7.
13884
13885 2011-09-18  Bruno Haible  <bruno@clisp.org>
13886
13887         accept, accept4 tests: Avoid link error on Solaris.
13888         * modules/accept-tests (Makefile.am): Link test-accept against
13889         $(LIBSOCKET).
13890         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13891         $(LIBSOCKET).
13892
13893         accept4: Avoid link error on Solaris.
13894         * modules/accept4 (Link): New section.
13895
13896         socket functions: Avoid link errors on Solaris.
13897         * modules/accept (Depends-on): Add socketlib.
13898         (Link): New section.
13899         * modules/bind (Depends-on): Add socketlib.
13900         (Link): New section.
13901         * modules/connect (Depends-on): Add socketlib.
13902         (Link): New section.
13903         * modules/getpeername (Depends-on): Add socketlib.
13904         (Link): New section.
13905         * modules/getsockname (Depends-on): Add socketlib.
13906         (Link): New section.
13907         * modules/getsockopt (Depends-on): Add socketlib.
13908         (Link): New section.
13909         * modules/listen (Depends-on): Add socketlib.
13910         (Link): New section.
13911         * modules/recv (Depends-on): Add socketlib.
13912         (Link): New section.
13913         * modules/recvfrom (Depends-on): Add socketlib.
13914         (Link): New section.
13915         * modules/send (Depends-on): Add socketlib.
13916         (Link): New section.
13917         * modules/sendto (Depends-on): Add socketlib.
13918         (Link): New section.
13919         * modules/setsockopt (Depends-on): Add socketlib.
13920         (Link): New section.
13921         * modules/shutdown (Depends-on): Add socketlib.
13922         (Link): New section.
13923         * modules/socket (Depends-on): Add socketlib.
13924         (Link): New section.
13925
13926 2011-09-18  Bruno Haible  <bruno@clisp.org>
13927
13928         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13929         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13930         than 5 seconds.
13931         * modules/ptsname-tests (configure.ac): Test for alarm.
13932
13933 2011-09-18  Bruno Haible  <bruno@clisp.org>
13934
13935         posix_spawn_file_actions_add*: Fix module dependencies.
13936         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13937         posix_spawn_file_actions_init.
13938         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13939         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13940
13941 2011-09-18  Bruno Haible  <bruno@clisp.org>
13942
13943         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13944         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13945         * tests/test-renameat.c (main): Likewise.
13946
13947 2011-09-18  Bruno Haible  <bruno@clisp.org>
13948
13949         Tests for module 'accept4'.
13950         * modules/accept4-tests: New file.
13951         * tests/test-accept4.c: New file.
13952
13953 2011-09-18  Bruno Haible  <bruno@clisp.org>
13954
13955         Tests for module 'accept'.
13956         * modules/accept-tests: New file.
13957         * tests/test-accept.c: New file.
13958
13959 2011-09-18  Bruno Haible  <bruno@clisp.org>
13960
13961         dup2: Support for MSVC.
13962         * lib/dup2.c: Include msvc-inval.h.
13963         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13964         _get_osfhandle calls.
13965         * modules/dup2 (Depends-on): Add msvc-inval.
13966         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13967
13968         New module 'msvc-inval'.
13969         * lib/msvc-inval.h: New file.
13970         * lib/msvc-inval.c: New file.
13971         * m4/msvc-inval.m4: New file.
13972         * modules/msvc-inval: New file.
13973
13974 2011-09-17  Bruno Haible  <bruno@clisp.org>
13975
13976         Tests for module 'pclose'.
13977         * modules/pclose-tests: New file.
13978
13979         New module 'pclose'.
13980         * lib/stdio.in.h (pclose): New declaration.
13981         * lib/pclose.c: New file.
13982         * m4/pclose.m4: New file.
13983         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13984         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13985         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13986         * modules/pclose: New file.
13987         * modules/popen-tests (Depends-on): Add pclose.
13988         * modules/popen-safer-tests (Depends-on): Likewise.
13989         * doc/posix-functions/pclose.texi: Mention the new module.
13990
13991 2011-09-17  Bruno Haible  <bruno@clisp.org>
13992
13993         popen: Support for MSVC.
13994         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13995         * lib/popen.c (popen): Provide alternate definition for native Windows.
13996         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13998         * modules/popen (Depends-on, configure.ac): Update condition.
13999         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14000         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14001         fixed.
14002
14003 2011-09-17  Bruno Haible  <bruno@clisp.org>
14004
14005         isnanl, isnand, isnanf: Work around MSVC bug.
14006         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14007
14008 2011-09-17  Bruno Haible  <bruno@clisp.org>
14009
14010         sys_socket tests: Fix recent mistake.
14011         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14012
14013 2011-09-17  Bruno Haible  <bruno@clisp.org>
14014
14015         putenv: Support for MSVC.
14016         * modules/putenv (Depends-on): Add environ.
14017         * lib/putenv.c (environ): Disable declaration.
14018         * lib/unistd.in.h: Update comment.
14019
14020 2011-09-17  Bruno Haible  <bruno@clisp.org>
14021
14022         math: Avoid macro redefinition warnings on MSVC.
14023         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14024         Undefine before redefining.
14025
14026 2011-09-17  Bruno Haible  <bruno@clisp.org>
14027
14028         doc: Mention functions which are declared as macros.
14029         * doc/posix-functions/*[fl].texi: Mention that some functions are
14030         defined as macros with arguments only.
14031
14032 2011-09-17  Bruno Haible  <bruno@clisp.org>
14033
14034         Add dependencies to new dirent related modules.
14035         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14036         * modules/fts (Depends-on): Likewise.
14037         * modules/glob (Depends-on): Likewise.
14038         * modules/savedir (Depends-on): Likewise.
14039         * modules/scandir (Depends-on): Likewise.
14040         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14041         * modules/fdopendir (Depends-on): Add opendir.
14042
14043 2011-09-17  Bruno Haible  <bruno@clisp.org>
14044
14045         inet_pton: Support for MSVC on Windows Vista or newer.
14046         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14047         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14048         HAVE_DECL_INET_PTON is defined.
14049         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14050         On platforms with <winsock2.h>, test whether inet_pton is declared in
14051         <ws2tcpip.h>. If so, arrange to replace it.
14052         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14053         REPLACE_INET_PTON.
14054         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14055         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14056         (Depends-on, configure.ac): Update condition.
14057         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14058
14059 2011-09-17  Bruno Haible  <bruno@clisp.org>
14060
14061         inet_ntop: Support for MSVC on Windows Vista or newer.
14062         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14063         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14064         HAVE_DECL_INET_NTOP is defined.
14065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14066         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14067         <ws2tcpip.h>. If so, arrange to replace it.
14068         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14069         REPLACE_INET_NTOP.
14070         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14071         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14072         (Depends-on, configure.ac): Update condition.
14073         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14074
14075 2011-09-16  Eric Blake  <eblake@redhat.com>
14076
14077         test-fsync: yet another enhancement
14078         * tests/test-fsync.c (main): Also test behavior on read-only text
14079         file.
14080
14081 2011-09-16  Bruno Haible  <bruno@clisp.org>
14082
14083         Enhance fsync, fdatasync tests.
14084         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14085         * tests/test-fdatasync.c (main): Likewise.
14086
14087 2011-09-16  Bruno Haible  <bruno@clisp.org>
14088
14089         Support for MSVC compiler: Ensure mode_t gets defined.
14090         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14091         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14093         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14094         * tests/test-fcntl-h.c: Check that mode_t is defined.
14095         * tests/test-sys_stat.c: Likewise.
14096         * tests/test-sys_types.c: Likewise.
14097         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14098         * doc/posix-headers/sys_stat.texi: Likewise.
14099         * doc/posix-headers/sys_types.texi: Likewise.
14100
14101 2011-09-16  Bruno Haible  <bruno@clisp.org>
14102
14103         sys_stat: Support for MSVC.
14104         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14105         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14106         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14107         MSVC.
14108
14109 2011-09-16  Bruno Haible  <bruno@clisp.org>
14110
14111         Support for MSVC compiler: Ensure off_t gets defined.
14112         * lib/unistd.in.h: Include <sys/types.h>.
14113         * tests/test-fcntl-h.c: Check that off_t is defined.
14114         * tests/test-sys_stat.c: Likewise.
14115         * tests/test-sys_types.c: Likewise.
14116
14117 2011-09-16  Eric Blake  <eblake@redhat.com>
14118
14119         fdatasync: port to Solaris
14120         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14121         * modules/fdatasync (Link): Document it.
14122         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14123
14124         fdatasync: port to MacOS X 10.7
14125         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14126         declared.
14127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14128         * modules/unistd (Makefile.am): Substitute it.
14129         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14130         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14131
14132         fdatasync: minor improvements
14133         * modules/fdatasync (Depends-on): Add condition for fsync.
14134         * lib/fdatasync.c (fdatasync): Add comment.
14135         * tests/test-unistd-c++.cc: Test fdatasync.
14136
14137         unistd: update refs to newer POSIX
14138         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14139         Suggested by Bruno Haible.
14140
14141         fdatasync: new module
14142         * modules/fsync (Description): Document difference to fdatasync.
14143         * modules/fdatasync: New module.
14144         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14145         * lib/fdatasync.c (fdatasync): Likewise.
14146         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14147         defaults.
14148         * modules/unistd (Makefile.am): Set witnesses.
14149         * lib/unistd.in.h (fdatasync): Declare.
14150         * MODULES.html.sh: Document it.
14151         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14152         * modules/fdatasync-tests: New test.
14153         * tests/test-fdatasync.c: Likewise.
14154
14155 2011-09-16  Eric Blake  <eblake@redhat.com>
14156
14157         test-fsync: enhance tests
14158         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14159         * tests/test-fsync.c (main): Enhance test.
14160
14161 2011-09-15  Bruno Haible  <bruno@clisp.org>
14162
14163         Support for MSVC compiler: Ensure ssize_t gets defined.
14164         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14165         * doc/posix-headers/stdio.texi: Likewise.
14166         * modules/stdio (Depends-on): Add ssize_t.
14167         * modules/sys_socket (Depends-on): Likewise.
14168         * modules/sys_types (Depends-on): Likewise.
14169         * modules/sys_uio (Depends-on): Likewise.
14170         * modules/unistd (Depends-on): Likewise.
14171         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14172         * tests/test-sys_types.c: Check that ssize_t is defined.
14173
14174 2011-09-14  Bruno Haible  <bruno@clisp.org>
14175
14176         Avoid using #, the m4 comment starter character, near brackets.
14177         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14178         delimiter character in sed expressions.
14179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14180         Suggested by Eric Blake.
14181
14182         Properly quote AC_CHECK_DECLS' 4th argument.
14183         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14184         argument.
14185         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14186         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14188         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14189         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14190         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14191         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14192         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14193         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14194         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14195         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14196         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14197         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14198         * m4/isinf.m4 (gl_ISINF): Likewise.
14199         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14200         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14202         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14205         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14206         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14207         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14208         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14209         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14210         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14212         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14214         Reported by Eric Blake.
14215
14216         Properly quote AC_CHECK_DECL's 4th argument.
14217         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14218         argument.
14219         * m4/argp.m4 (gl_ARGP): Likewise.
14220         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14221         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14222         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14223         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14224         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14225         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14227         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14229         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14230         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14231         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14232         Reported by Eric Blake.
14233
14234 2011-09-14  Eric Blake  <eblake@redhat.com>
14235
14236         opendir: avoid compile warning
14237         * lib/opendir.c (includes): Always include errno.h.
14238         Reported by Tatsuro MATSUOKA.
14239
14240 2011-09-14  Jim Meyering  <meyering@redhat.com>
14241
14242         maint.mk: sc_tight_scope: propagate failure from sub-make
14243         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14244         Reported by Martin von Gagern.
14245
14246 2011-09-13  Bruno Haible  <bruno@clisp.org>
14247
14248         tempname: Support for MSVC.
14249         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14250         MSVC.
14251         * modules/tempname (Depends-on): Add fcntl-h.
14252
14253 2011-09-13  Bruno Haible  <bruno@clisp.org>
14254
14255         sys_time: Support for MSVC.
14256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14257         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14258         include <winsock2.h>.
14259         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14260         function declarations that collide with POSIX.
14261         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14262         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14263
14264 2011-09-13  Bruno Haible  <bruno@clisp.org>
14265
14266         stat: Support for MSVC.
14267         * lib/stat.c: Include pathmax.h.
14268         * modules/stat (Depends-on): Add pathmax.
14269
14270         pathmax: Support for native Windows.
14271         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14272
14273 2011-09-12  Bruno Haible  <bruno@clisp.org>
14274
14275         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14276         * lib/dirent.in.h (struct dirent): New type.
14277         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14278         DT_WHT): New macros.
14279         (DIR): New type.
14280         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14281         (readdir, rewinddir): New declarations.
14282         * lib/dirent-private.h: New file.
14283         * lib/opendir.c: New file.
14284         * lib/readdir.c: New file.
14285         * lib/rewinddir.c: New file.
14286         * lib/closedir.c: New file.
14287         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14288         * m4/opendir.m4: New file.
14289         * m4/readdir.m4: New file.
14290         * m4/rewinddir.m4: New file.
14291         * m4/closedir.m4: New file.
14292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14293         REPLACE_CLOSEDIR here.
14294         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14295         readdir, rewinddir are declared.
14296         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14297         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14298         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14299         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14300         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14301         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14302         * modules/opendir: New file.
14303         * modules/readdir: New file.
14304         * modules/rewinddir: New file.
14305         * modules/closedir: New file.
14306         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14307         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14308         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14309         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14310         * NEWS: Mention the 'fchdir' change.
14311
14312 2011-09-11  Bruno Haible  <bruno@clisp.org>
14313
14314         asm-underscore.m4: Support for MSVC.
14315         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14316         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14317
14318 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14319
14320         Doc about crypt functions.
14321         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14322         needing for _GNU_SOURCE to get crypt.
14323         * doc/posix-functions/encrypt.texi: Likewise.
14324         * doc/posix-functions/setkey.texi: Likewise.
14325
14326 2011-09-11  Bruno Haible  <bruno@clisp.org>
14327
14328         doc: Update regarding MSVC 9.
14329         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14330         tested".
14331         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14332         * doc/posix-headers/*.texi: Likewise.
14333         * doc/pastposix-functions/*.texi: Likewise.
14334         * doc/glibc-functions/*.texi: Likewise.
14335         * doc/glibc-headers/*.texi: Likewise.
14336
14337 2011-09-11  Bruno Haible  <bruno@clisp.org>
14338
14339         unistd et al.: Don't assume <unistd.h> exists.
14340         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14341         does not exist.
14342         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14343         exist. But include <stdlib.h>.
14344         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14345         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14346         symlink() does not exist.
14347         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14348         include <io.h> instead.
14349         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14350         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14351         include <direct.h> instead.
14352         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14354         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14355         <io.h> instead.
14356         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14357         correctly if the system does not have hard links.
14358         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14359         <direct.h> instead.
14360         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14361         it when looking for function declarations.
14362         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14363         <direct.h> and <io.h> instead.
14364         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14365
14366 2011-09-11  Bruno Haible  <bruno@clisp.org>
14367
14368         strcase: Support for MSVC.
14369         * modules/strcase (Status, Notice): Remove obsoletion mark.
14370         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14371         * doc/posix-functions/strncasecmp.texi: Likewise.
14372
14373         strings: Don't assume <strings.h> exists.
14374         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14375         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14376         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14377         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14378
14379 2011-09-11  Bruno Haible  <bruno@clisp.org>
14380
14381         dirent: Don't assume <dirent.h> exists.
14382         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14383         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14384         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14385         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14386
14387 2011-09-11  Bruno Haible  <bruno@clisp.org>
14388
14389         Fix wint_t on MSVC.
14390         * lib/wchar.in.h (wint_t): On MSVC, override it.
14391         * lib/wctype.in.h (wint_t): Likewise.
14392         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14393         MSVC.
14394         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14395         * doc/posix-headers/wctype.texi: Likewise.
14396
14397 2011-09-11  Bruno Haible  <bruno@clisp.org>
14398
14399         sys_types: Fix typo.
14400         * lib/sys_types.in.h: Fix typo in comment.
14401         Reported by Paul Eggert.
14402
14403         Support for MSVC compiler: Ensure size_t gets defined.
14404         * modules/strings (Depends-on): Add 'sys_types'.
14405         * modules/sys_uio (Depends-on): Likewise.
14406         * lib/sys_uio.in.h: Update comment.
14407
14408         C++ tests for module 'sys_types'.
14409         * modules/sys_types-c++-tests: New file.
14410         * tests/test-sys_types-c++.cc: New file.
14411
14412         Tests for module 'sys_types'.
14413         * modules/sys_types-tests: New file.
14414         * tests/test-sys_types.c: New file.
14415
14416         New module 'sys_types'.
14417         * lib/sys_types.in.h: New file.
14418         * m4/sys_types_h.m4: New file.
14419         * modules/sys_types: New file.
14420         * doc/posix-headers/sys_types.texi: Mention the new module and the
14421         size_t problem on MSVC 9.
14422
14423 2011-09-11  Bruno Haible  <bruno@clisp.org>
14424
14425         Support for MSVC compiler: Avoid division by a literal 0.
14426         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14428         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14429         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14430         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14431         * tests/infinity.h: New file.
14432         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14433         on MSVC.
14434         * tests/test-ceilf1.c: Include infinity.h.
14435         (main): Use Infinityf.
14436         * tests/test-ceil1.c: Include infinity.h.
14437         (main): Use Infinityd.
14438         * tests/test-ceill.c: Include infinity.h.
14439         (main): Use Infinityl.
14440         * tests/test-dprintf-posix.c: Include infinity.h.
14441         (test_function): Use Infinityd.
14442         * tests/test-floorf1.c: Include infinity.h.
14443         (main): Use Infinityf.
14444         * tests/test-floor1.c: Include infinity.h.
14445         (main): Use Infinityd.
14446         * tests/test-floorl.c: Include infinity.h.
14447         (main): Use Infinityl.
14448         * tests/test-fprintf-posix.c: Include infinity.h.
14449         (test_function): Use Infinityd.
14450         * tests/test-frexp.c: Include infinity.h.
14451         (main): Use Infinityd.
14452         * tests/test-frexpl.c: Include infinity.h.
14453         (main): Use Infinityl.
14454         * tests/test-isfinite.c: Include infinity.h.
14455         (test_isfinitef): Use Infinityf.
14456         (test_isfinited): Use Infinityd.
14457         (test_isfinitel): Use Infinityl.
14458         * tests/test-isinf.c: Include infinity.h.
14459         (test_isinff): Use Infinityf.
14460         (test_isinfd): Use Infinityd.
14461         (test_isinfl): Use Infinityl.
14462         * tests/test-isnan.c: Include infinity.h.
14463         (test_float): Use Infinityf.
14464         (test_double): Use Infinityd.
14465         (test_long_double): Use Infinityl.
14466         * tests/test-isnanf.h: Include infinity.h.
14467         (main): Use Infinityf.
14468         * tests/test-isnand.h: Include infinity.h.
14469         (main): Use Infinityd.
14470         * tests/test-isnanl.h: Include infinity.h.
14471         (main): Use Infinityl.
14472         * tests/test-ldexpl.c: Include infinity.h.
14473         (main): Use Infinityl.
14474         * tests/test-printf-posix.h: Include infinity.h.
14475         (test_function): Use Infinityd.
14476         * tests/test-roundf1.c: Include infinity.h.
14477         (main): Use Infinityf.
14478         * tests/test-round1.c: Include infinity.h.
14479         (main): Use Infinityd.
14480         * tests/test-roundl.c: Include infinity.h.
14481         (main): Use Infinityl.
14482         * tests/test-signbit.c: Include infinity.h.
14483         (test_signbitf): Use Infinityf.
14484         (test_signbitd): Use Infinityd.
14485         (test_signbitl): Use Infinityl.
14486         * tests/test-snprintf-posix.h: Include infinity.h.
14487         (test_function): Use Infinityd, Infinityl.
14488         * tests/test-sprintf-posix.h: Include infinity.h.
14489         (test_function): Use Infinityd, Infinityl.
14490         * tests/test-truncf1.c: Include infinity.h.
14491         (main): Use Infinityf.
14492         * tests/test-trunc1.c: Include infinity.h.
14493         (main): Use Infinityd.
14494         * tests/test-truncl.c: Include infinity.h.
14495         (main): Use Infinityl.
14496         * tests/test-vasnprintf-posix.c: Include infinity.h.
14497         (test_function): Use Infinityd, Infinityl.
14498         * tests/test-vasprintf-posix.c: Include infinity.h.
14499         (test_function): Use Infinityd, Infinityl.
14500         * modules/ceilf-tests (Files): Add tests/infinity.h.
14501         * modules/ceil-tests (Files): Likewise.
14502         * modules/ceill-tests (Files): Likewise.
14503         * modules/dprintf-posix-tests (Files): Likewise.
14504         * modules/floorf-tests (Files): Likewise.
14505         * modules/floor-tests (Files): Likewise.
14506         * modules/floorl-tests (Files): Likewise.
14507         * modules/fprintf-posix-tests (Files): Likewise.
14508         * modules/frexp-tests (Files): Likewise.
14509         * modules/frexp-nolibm-tests (Files): Likewise.
14510         * modules/frexpl-tests (Files): Likewise.
14511         * modules/frexpl-nolibm-tests (Files): Likewise.
14512         * modules/isfinite-tests (Files): Likewise.
14513         * modules/isinf-tests (Files): Likewise.
14514         * modules/isnan-tests (Files): Likewise.
14515         * modules/isnanf-tests (Files): Likewise.
14516         * modules/isnanf-nolibm-tests (Files): Likewise.
14517         * modules/isnand-tests (Files): Likewise.
14518         * modules/isnand-nolibm-tests (Files): Likewise.
14519         * modules/isnanl-tests (Files): Likewise.
14520         * modules/isnanl-nolibm-tests (Files): Likewise.
14521         * modules/ldexpl-tests (Files): Likewise.
14522         * modules/printf-posix-tests (Files): Likewise.
14523         * modules/roundf-tests (Files): Likewise.
14524         * modules/round-tests (Files): Likewise.
14525         * modules/roundl-tests (Files): Likewise.
14526         * modules/signbit-tests (Files): Likewise.
14527         * modules/snprintf-posix-tests (Files): Likewise.
14528         * modules/sprintf-posix-tests (Files): Likewise.
14529         * modules/truncf-tests (Files): Likewise.
14530         * modules/trunc-tests (Files): Likewise.
14531         * modules/truncl-tests (Files): Likewise.
14532         * modules/vasnprintf-posix-tests (Files): Likewise.
14533         * modules/vasprintf-posix-tests (Files): Likewise.
14534         * modules/vdprintf-posix-tests (Files): Likewise.
14535         * modules/vfprintf-posix-tests (Files): Likewise.
14536         * modules/vprintf-posix-tests (Files): Likewise.
14537         * modules/vsnprintf-posix-tests (Files): Likewise.
14538         * modules/vsprintf-posix-tests (Files): Likewise.
14539         * modules/xprintf-posix-tests (Files): Likewise.
14540
14541 2011-09-11  Bruno Haible  <bruno@clisp.org>
14542
14543         Ensure pid_t gets defined.
14544         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14545         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14546         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14547         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14548         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14549         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14550         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14551         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14552         * tests/test-fcntl-h.c: Check that pid_t is defined.
14553         * tests/test-sched.c: Likewise.
14554         * tests/test-termios.c: Likewise.
14555         * tests/test-time.c: Likewise.
14556         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14557         * doc/posix-headers/signal.texi: Likewise.
14558         * doc/posix-headers/sys_types.texi: Likewise.
14559         * doc/posix-headers/time.texi: Likewise.
14560
14561 2011-09-11  Bruno Haible  <bruno@clisp.org>
14562
14563         acl: Fix compilation on Solaris 10 (older version).
14564         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14565         of ACE_EVERYONE.
14566         * lib/set-mode-acl.c (qset_acl): Likewise.
14567         Reported by Christian Jullien <eligis@orange.fr>.
14568
14569 2011-09-10  Bruno Haible  <bruno@clisp.org>
14570
14571         iconv, unsetenv: Add support for MSVC compiler.
14572         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14574
14575 2011-09-10  Bruno Haible  <bruno@clisp.org>
14576
14577         *printf: Add support for MSVC compiler.
14578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14579         handles the exception caused by the %n directive. When cross-compiling,
14580         guess no on native Windows.
14581         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14582         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14583         emulate it through vsnprintf.
14584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14585         * doc/posix-functions/dprintf.texi: Update documentation regarding
14586         MSVC 9.
14587         * doc/posix-functions/fprintf.texi: Likewise.
14588         * doc/posix-functions/printf.texi: Likewise.
14589         * doc/posix-functions/snprintf.texi: Likewise.
14590         * doc/posix-functions/sprintf.texi: Likewise.
14591         * doc/posix-functions/swprintf.texi: Likewise.
14592         * doc/posix-functions/vdprintf.texi: Likewise.
14593         * doc/posix-functions/vfprintf.texi: Likewise.
14594         * doc/posix-functions/vprintf.texi: Likewise.
14595         * doc/posix-functions/vsnprintf.texi: Likewise.
14596         * doc/posix-functions/vsprintf.texi: Likewise.
14597         * doc/glibc-functions/asprintf.texi: Likewise.
14598         * doc/glibc-functions/obstack_printf.texi: Likewise.
14599         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14600         * doc/glibc-functions/vasprintf.texi: Likewise.
14601
14602 2011-09-10  Bruno Haible  <bruno@clisp.org>
14603
14604         nocrash: Add support for native Windows.
14605         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14606
14607 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14608             Bruno Haible  <bruno@clisp.org>
14609
14610         absolute-header, include-next: Add support for MSVC compiler.
14611         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14612         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14613         directory separator in #line directives.
14614         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14615         recognize also backslash as directory separator in #line directives.
14616
14617 2011-09-08  Jim Meyering  <meyering@redhat.com>
14618
14619         maint.mk: mark the post-release commit log with "maint: " prefix
14620         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14621         one-line commit-log summary.
14622
14623 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14624             Bruno Haible  <bruno@clisp.org>
14625
14626         Doc about crypt functions.
14627         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14628         systems.
14629         * doc/posix-functions/encrypt.texi: Likewise.
14630         * doc/posix-functions/setkey.texi: Likewise.
14631
14632 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14633
14634         * lib/gc.h: Fix copyright header.
14635
14636 2011-09-07  Bruno Haible  <bruno@clisp.org>
14637
14638         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14639         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14640         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14641
14642 2011-09-07  Bruno Haible  <bruno@clisp.org>
14643
14644         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14645         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14646         * lib/freopen.c: Likewise.
14647         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14648         * lib/lstat.c: Likewise.
14649         * lib/stat.c: Likewise.
14650         * lib/open.c: Use different syntax for include of <fcntl.h>.
14651         * lib/openat.c: Include fcntl.h again, explicitly.
14652
14653 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14654
14655         parse-datetime: document the newly accepted format
14656         * doc/parse-datetime.texi (Combined date and time of day items):
14657         New section.
14658
14659 2011-09-06  Bruno Haible  <bruno@clisp.org>
14660
14661         acl: Fix a test failure on newer Solaris 10 with ZFS.
14662         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14663         ENOSYS as no ACL.
14664         Reported by Jim Meyering.
14665
14666 2011-09-06  Bruno Haible  <bruno@clisp.org>
14667
14668         acl: Update for AIX >= 5.3 with NFS.
14669         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14670         ENOSYS as no ACL.
14671
14672         acl: Fix a test failure on AIX >= 5.3 with NFS.
14673         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14674         as no ACL.
14675
14676 2011-09-06  Bruno Haible  <bruno@clisp.org>
14677
14678         acl: Fix a test failure on IRIX 6.5 with NFS.
14679         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14680         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14681         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14682         * lib/copy-acl.c (qcopy_acl): Likewise.
14683
14684 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         openat: port to AIX 7.1 with large files
14687         AIX 7.1 does a "#define openat open64at" if large files are in use,
14688         so we can't simply #undef openat.  Use the orig_openat trick (similar
14689         to orig_open in lib/open.c) to work around the problem.  Problem
14690         reported by Kevin Brott for GNU tar, in the thread containing
14691         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14692         * lib/openat.c (__need_system_fcntl_h): Define first.
14693         Include <fcntl.h> and <sys/types.h> before undefining.
14694         (orig_openat) [HAVE_OPENAT]: New inline function.
14695         (openat) [HAVE_OPENAT]: Do not undef.
14696         (rpl_openat): Use orig_openat, not openat.
14697
14698 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14699             Bruno Haible  <bruno@clisp.org>
14700
14701         acl: Avoid errors on NonStop Kernel.
14702         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14703         ENOTSUP errors.
14704
14705 2011-09-05  Bruno Haible  <bruno@clisp.org>
14706
14707         acl: Clean up Solaris code.
14708         * lib/acl-internal.h: Remove no-op #if.
14709         * lib/file-has-acl.c: Likewise.
14710         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14711         * lib/copy-acl.c (qcopy_acl): Likewise.
14712
14713 2011-09-05  Bruno Haible  <bruno@clisp.org>
14714
14715         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14716         binaries built on the original Solaris 10.
14717         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14718         trivial.
14719
14720 2011-09-05  Bruno Haible  <bruno@clisp.org>
14721
14722         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14723         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14724         10.
14725         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14726         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14727         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14728         instead of acl_get, facl_get, acl_set, facl_set.
14729
14730 2011-09-05  Bruno Haible  <bruno@clisp.org>
14731
14732         copy-file: Try unit tests on more file systems.
14733         * tests/test-copy-file-1.sh: New file.
14734         * tests/test-copy-file-2.sh: New file.
14735         * modules/copy-file-tests (Files): Add them.
14736         (Makefile.am): Add them to TESTS.
14737
14738         acl: Try unit tests on more file systems.
14739         * tests/test-file-has-acl-1.sh: New file.
14740         * tests/test-file-has-acl-2.sh: New file.
14741         * tests/test-set-mode-acl-1.sh: New file.
14742         * tests/test-set-mode-acl-2.sh: New file.
14743         * tests/test-copy-acl-1.sh: New file.
14744         * tests/test-copy-acl-2.sh: New file.
14745         * modules/acl-tests (Files): Add them.
14746         (Makefile.am): Add them to TESTS.
14747
14748 2011-09-04  Bruno Haible  <bruno@clisp.org>
14749
14750         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14751         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14752         10.
14753         (OLD_ALLOW, OLD_DENY): New macros.
14754         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14755         ACE_ACCESS_ALLOWED_ACE_TYPE.
14756         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14757         ACE_ACCESS_DENIED_ACE_TYPE.
14758         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14759         (NEW_ACE_EXECUTE): Fix value.
14760         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14761         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14762         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14763         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14764         NEW_ACE_SYNCHRONIZE): New macros.
14765         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14766         instead of acl_fromtext, acl_set, facl_set.
14767         Fixes a coreutils/tests/cp/perm failure.
14768
14769 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         openat: test for fstatat (..., 0) bug
14772         Further testing with tar suggests that fstatat (..., 0)
14773         does not work in general, on AIX 7.1; see
14774         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14775         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14776         replacement fstatat (which is what older AIX releases were using
14777         anyway).
14778         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14779         use is now changed to orig_fstatat.  This was probably the right
14780         thing to do anyway.
14781         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14782         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14783         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14784         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14785         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14786         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14787         if the bug is found.
14788
14789         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14790         This tests for another fstatat bug on AIX 7.1:
14791         fstatat (AT_FDCWD, ..., 0) does not work.  See
14792         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14793         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14794         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14795         (rpl_fstatat): Adjust so that it works around either (or both)
14796         bugs if present.
14797         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14798
14799 2011-09-03  Karl Berry  <karl@gnu.org>
14800
14801         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14802         in index entries.
14803
14804 2011-09-02  Bruno Haible  <bruno@clisp.org>
14805
14806         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14807         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14808         values of AR, ARFLAGS, RANLIB.
14809         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14810
14811 2011-09-02  Bruno Haible  <bruno@clisp.org>
14812
14813         Find 'ar' program that fits with --host argument.
14814         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14815
14816 2011-09-02  Bruno Haible  <bruno@clisp.org>
14817
14818         tests: init.sh: Support any non-GNU diff.
14819         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14820         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14821         Solaris 8.
14822
14823 2011-09-02  Bruno Haible  <bruno@clisp.org>
14824
14825         tests: init.sh: work also with any non-GNU diff that supports -u
14826         * tests/init.sh: Relax check for diff -u support.
14827         Rather than checking for GNU diff via --version, simply check
14828         for support for -u itself.  Useful at least on OpenBSD 4.9,
14829         AIX 7.1, IRIX 6.5, and Solaris 10.
14830
14831 2011-09-01  Bruno Haible  <bruno@clisp.org>
14832
14833         strtoimax, strtoumax: Document problem on HP-UX 11.
14834         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14835         * doc/posix-functions/strtoumax.texi: Likewise.
14836
14837 2011-09-01  Bruno Haible  <bruno@clisp.org>
14838
14839         strtoumax: Avoid link error on OSF/1 with DTK cc.
14840         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14841         defined as a function.
14842         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14843         strtoumax is defined, not whether it is declared.
14844
14845 2011-09-01  Bruno Haible  <bruno@clisp.org>
14846
14847         strtoimax: Avoid link error on OSF/1 with DTK cc.
14848         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14849         defined as a function.
14850         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14851         strtoimax is defined, not whether it is declared.
14852
14853 2011-09-01  Bruno Haible  <bruno@clisp.org>
14854
14855         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14856         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14857         as a function.
14858         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14859         whether it is declared.
14860
14861 2011-09-01  Bruno Haible  <bruno@clisp.org>
14862
14863         imaxabs: Avoid link error on OSF/1 with DTK cc.
14864         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14865         as a function.
14866         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14867         whether it is declared.
14868
14869 2011-09-01  Bruno Haible  <bruno@clisp.org>
14870
14871         Tests for module 'strtoumax'.
14872         * modules/strtoumax-tests: New file.
14873         * tests/test-strtoumax.c: New file.
14874
14875         Tests for module 'strtoimax'.
14876         * modules/strtoimax-tests: New file.
14877         * tests/test-strtoimax.c: New file.
14878
14879         Tests for module 'imaxdiv'.
14880         * modules/imaxdiv-tests: New file.
14881         * tests/test-imaxdiv.c: New file.
14882
14883         Tests for module 'imaxabs'.
14884         * modules/imaxabs-tests: New file.
14885         * tests/test-imaxabs.c: New file.
14886
14887 2011-09-01  Bruno Haible  <bruno@clisp.org>
14888
14889         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14890         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14891         pthread_create.
14892
14893 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14894
14895         openat: work around AIX 7.1 fstatat issue
14896         This should fix the problem that was not properly fixed
14897         in the previous change, dated 2011-08-30.
14898         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14899         __need_system_stat_h defined.
14900         (orig_fstatat) [HAVE_FSTATAT]: New function.
14901         (rpl_fstatat): Go back to the old way of doing things,
14902         except call orig_fstatat instead of fstatat.
14903         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14904         Remove unnecessary check whether fstatat fills in st_size etc.
14905
14906 2011-09-01  Bruno Haible  <bruno@clisp.org>
14907
14908         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14909         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14910         just include the system's header.
14911
14912 2011-08-31  Jim Meyering  <meyering@redhat.com>
14913
14914         tests: avoid spurious assertion failure in test-float.c on ppc64
14915         * tests/test-float.c (test_long_double): Comment out an assertion,
14916         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14917         with gcc-4.4.4.
14918
14919         maint: indent with spaces, not TABs
14920         I need to get in the habit of running gnulib's "make check".
14921         Both of these would have been caught.
14922         * m4/largefile.m4: Indent with spaces, not TABs.
14923         * lib/parse-datetime.y (iso_8601_time): Likewise.
14924         Spotted by Pádraig Brady.
14925
14926         test-parse-datetime.c: accommodate a relatively strict gcc warning
14927         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14928         to avoid a warning from gcc's -Werror=missing-declarations.
14929         Insert a few spaces-before-funcall-parenthesis.
14930
14931 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14932
14933         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14934         The parser now accepts ISO 8601 date-time strings with "T" as the
14935         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14936         with a space between the date and time strings.  Now it also parses
14937         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14938         variants like "2004-02-29T16:21:42.333-07:00"
14939         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14940         of day representation using the 'T' separator character.
14941         * doc/parse-datetime.texi (General date syntax): replace use of
14942         deprecated --iso-8601 option with --rfc-3339 in example of date
14943         command output formats that can be parsed.
14944         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14945         lib/parse-datetime.y.
14946         (gmt_offset): New function.
14947         (main): Add additional test cases to validate ISO8601 extended
14948         date and time of day parsing.
14949
14950 2011-08-31  Bruno Haible  <bruno@clisp.org>
14951
14952         freopen: Documentation.
14953         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14954         name.
14955         Reported by Claudio Bley <claudio.bley@gmail.com>.
14956
14957 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14958
14959         freopen: Don't crash if the filename argument is NULL.
14960         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14961         NULL.
14962
14963 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14964
14965         openat: work around AIX 7.1 fstatat bug
14966         Problem reported by Kevin Brott for GNU tar, in the thread containing
14967         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14968         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14969         FSTATAT_ST_SIZE_ETC_BROKEN.
14970         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14971         rpl_fstatat.
14972         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14973         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14974         AC_CHECK_FUNCS_ONCE for fstatat.
14975         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14976         fchmodat, mkdirat, openat and unlinkat.
14977
14978 2011-08-30  Bruno Haible  <bruno@clisp.org>
14979
14980         Avoid endless recursions if config.h includes some header files.
14981         * lib/fopen.c (__need_FILE): Define already before including config.h.
14982         * lib/freopen.c (__need_FILE): Likewise.
14983         * lib/open.c (__need_system_fcntl_h): Likewise.
14984         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14985         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14986         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14987
14988 2011-08-25  Karl Berry  <karl@gnu.org>
14989
14990         * config/srclist.txt (ylwrap): new try.
14991         * build-aux/ylwrap: new file.
14992
14993 2011-08-23  Bruno Haible  <bruno@clisp.org>
14994
14995         tmpdir: Use a good default directory on native Windows.
14996         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14997         (P_tmpdir): Default to _P_tmpdir on native Windows.
14998         (path_search): On native Windows, try the value returned by GetTempPath
14999         before trying P_tmpdir.
15000         * modules/tmpdir (Depends-on): Add pathmax.
15001         Suggested by John Darrington <john@darrington.wattle.id.au>.
15002
15003 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15004
15005         doc: fix typo in README-release
15006         * top/README-release: Capitalize first word of a sentence.
15007
15008 2011-08-19  Jim Meyering  <meyering@redhat.com>
15009
15010         fts: do not exhaust memory when processing million-entry directories
15011         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15012         directory would require about 256*N bytes of memory.  Thus, it was
15013         easy to construct a directory too large to be processed by any of
15014         those tools.  With this change, fts' maximum memory utilization is
15015         now limited to around 30MB.
15016         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15017         (fts_read): When we've processed the final entry (i.e., when
15018         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15019         using the parent entry to read any remaining entries.  Dispatch
15020         depending on what fts_build returns:
15021         - NULL+stop, aka failure: stop
15022         - NULL otherwise: move up in the dir hierarchy
15023         - non-NULL: handle this new entry
15024         (fts_build): Declare and use new local, continue_readdir.
15025         Prepare to be called from fts_read, when the entries
15026         from a partially-read directory have just been exhausted.
15027         In that case, we'll skip the opendir and instead use the parent's
15028         fts_dirp and derive dir_fd from that.
15029         Finally, in the readdir loop, if we read max_entries entries,
15030         exit the loop ensuring *not* to call closedir.  This is required
15031         so that fts_dirp can be reused on a subsequent call.
15032         Prompted by Ben England's report of memory exhaustion in find
15033         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15034
15035         maint: fts: move decl of `dp' down into while loop; split a long line
15036         * lib/fts.c (fts_build): No semantic change.
15037
15038         fts: add/use new struct member, fts_dirp
15039         We are about to use this to manage any directory with
15040         too many entries to read all of them into memory at once.
15041         To do that, we'll need to save the DIR* pointer in each
15042         affected FTSENT struct.
15043         * lib/fts_.h: Include <dirent.h>.
15044         (struct FTSENT) [fts_dirp]: New member.
15045         * lib/fts.c (closedir_and_clear): Define.
15046         Use it in place of closedir so that we are sure to
15047         clear the new fts_dirp member when done with it.
15048         (fts_alloc): Initialize the new member.
15049         (fts_lfree): Free, if needed.
15050
15051         maint: fts: give __opendir2 a new parameter and rename
15052         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15053         than surreptitiously using sole caller's "dir_fd".
15054         (fts_opendir): Rename from __opendir2.
15055
15056         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15057         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15058
15059         maint: fts.c: correct off-by-one indentation
15060         * lib/fts.c (fts_build): Correct indentation, change style
15061         of a couple of block comments, and bracing style.
15062
15063         maint: fts.c: move __opendir2 #define "up" out of function body
15064         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15065
15066         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15067         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15068         out for a long time and besides was useful only on BSD systems.
15069
15070 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15071
15072         regex: port to Stratus OpenVOS
15073         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15074         define to empty, rather than attempting nonportable optimizations.
15075         Problem reported by Paul Green in:
15076         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15077         and fix suggested by Eric Blake in:
15078         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15079
15080 2011-08-17  Eric Blake  <eblake@redhat.com>
15081
15082         getcwd: fix test failures on mingw
15083         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15084         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15085         test if long directory cannot be created, and allow mingw errno.
15086
15087         getcwd-lgpl: fix m4 to match relaxed test for BSD
15088         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15089         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15090         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15091         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15092         signature problem.
15093
15094         getcwd: fix compilation on mingw64
15095         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15096         getcwd.
15097         Reported by Marc-André Lureau.
15098
15099         pipe2: silence compiler warning
15100         * lib/pipe2.c (pipe2): Hide label if it is not used.
15101
15102 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15103
15104         relocatable-prog: fix link error
15105         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15106         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15107         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15108         into modules/relocatable-lib without noticing that
15109         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15110         also needs to build relocatable.c.
15111
15112 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15116         shell code: it contained a 'break' that was not in a loop.
15117         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15118         via a shell-language loop; this may have been true in old Autoconf
15119         versions, but it's not true in Autoconf 2.68.  I found this bug
15120         when testing coreutils git on Solaris 8, whose shell complains
15121         about the syntax error.
15122
15123 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15124
15125         * lib/base64.c: Fix comment to reference RFC 4648.
15126         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15127         <gvtulder@gmail.com>.
15128
15129 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15130
15131         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15132
15133         po/Makefile.in.in: fix make -q problem
15134         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15135         rule, since there's no file named 'check-macro-version' and its
15136         use as a file breaks make -q.
15137         (all): Don't depend on check-macro-version.
15138         (CHECK_MACRO_VERSION): New macro.
15139         (stamp-po): Use it.
15140
15141         configmake: fix make -q problem
15142         * modules/configmake (configmake.h): Update configmake.h's time stamp
15143         even if the file does not change.  Otherwise, 'make -q' fails.
15144         Problem reported by Simon Josefsson in
15145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15146
15147 2011-08-11  Jim Meyering  <meyering@redhat.com>
15148
15149         git-version-gen: correct the advice in a comment
15150         * build-aux/git-version-gen: Correct comment.
15151         Don't recommend to list .tarball-version in .gitignore.
15152
15153 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         base64: fix off-by-one buffer size bug
15156         Problem and (trivial) fix reported by Gijs van Tulder in
15157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15158         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15159         * tests/test-base64.c (main): Catch the bug.
15160
15161 2011-08-10  Eric Blake  <eblake@redhat.com>
15162
15163         closein: correct comments
15164         * lib/closein.c (close_stdin): Improve comments.
15165
15166 2011-08-09  Bruno Haible  <bruno@clisp.org>
15167
15168         More tests for 'fseeko'.
15169         * tests/test-fseeko3.c: New file, from Eric Blake.
15170         * tests/test-fseeko3.sh: New file.
15171         * modules/fseeko-tests (Files): Add them.
15172         (TESTS): Add test-fseeko3.sh.
15173         (check_PROGRAMS): Add test-fseeko3.
15174
15175 2011-08-09  Eric Blake  <eblake@redhat.com>
15176
15177         fseeko: remove unneeded hack
15178         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15179
15180         fseeko: fix bug on glibc
15181         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15182         Reported by John W. Eaton.
15183
15184 2011-08-08  Bruno Haible  <bruno@clisp.org>
15185
15186         unictype/base: Fix interoperability with preinstalled libunistring.
15187         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15188         Reported by Simon Josefsson.
15189
15190 2011-08-08  Bruno Haible  <bruno@clisp.org>
15191
15192         iswblank: Detect declaration correctly.
15193         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15194         AC_CHECK_DECLS invocation.
15195
15196 2011-08-08  Bruno Haible  <bruno@clisp.org>
15197
15198         tcgetsid: Detect declaration correctly.
15199         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15200         AC_CHECK_DECLS invocation.
15201         Reported by Simon Josefsson.
15202
15203 2011-08-08  Eric Blake  <eblake@redhat.com>
15204
15205         largefile: fix typo that regressed large file support
15206         * modules/largefile (configure.ac-early): Fix section name.
15207
15208 2011-08-06  Karl Berry  <karl@gnu.org>
15209
15210         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15211         a separate module.
15212
15213 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15214
15215         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15216         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15217         get prototype for free.
15218
15219 2011-08-04  Bruno Haible  <bruno@clisp.org>
15220
15221         Tests for module 'pathmax'.
15222         * modules/pathmax-tests: New file.
15223         * tests/test-pathmax.c: New file.
15224
15225         canonicalize-lgpl: Support larger filenames on the Hurd.
15226         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15227         Reported by Paul Eggert.
15228
15229         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15230         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15231         * lib/chdir-long.h: Include pathmax.h.
15232         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15233         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15234         (PATH_MAX): Remove code that is done by pathmax.h.
15235         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15236         * lib/tmpfile.c: Add a comment.
15237         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15238         * modules/chdir-long (Depends-on): Add pathmax.
15239         * modules/getcwd (Depends-on): Add pathmax.
15240         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15241         is not defined.
15242         * doc/posix-headers/limits.texi: Mention the pathmax module.
15243         * NEWS: Mention the change.
15244
15245 2011-08-02  Bruno Haible  <bruno@clisp.org>
15246
15247         pthread_sigmask: Actually use results of gl_THREADLIB.
15248         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15249         gl_THREADLIB, not gl_[]THREADLIB.
15250         Reported by Eric Blake.
15251
15252 2011-08-02  Jim Meyering  <meyering@redhat.com>
15253
15254         maint.mk: relax the default _gl_TS_function_match regexp
15255         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15256         space between function name and "(" in an "extern" declaration.
15257         That would fail to match a decl with no space there: extern void foo();
15258
15259 2011-07-31  Iain Nicol  <iain@thenicols.net>
15260
15261         git-version-gen: document that EXTRA_DIST must include .version
15262         * build-aux/git-version-gen: In the how-to-use comment, document
15263         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15264         will fail when run from an unpacked distribution tarball.
15265
15266 2011-08-01  Bruno Haible  <bruno@clisp.org>
15267
15268         wctype-h: Fix last change.
15269         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15270         REPLACE_TOWLOWER to 0.
15271         Reported by Sam Steingold <sds@gnu.org>.
15272
15273 2011-07-31  Bruno Haible  <bruno@clisp.org>
15274
15275         frexpl: Update autoconf test.
15276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15277         according to changes of 2011-06-20.
15278
15279 2011-07-31  Bruno Haible  <bruno@clisp.org>
15280
15281         sys_utsname: Add support for Minix.
15282         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15283         <sys/utsname.h>.
15284         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15285         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15286
15287 2011-07-31  Bruno Haible  <bruno@clisp.org>
15288
15289         strings: Add support for Minix.
15290         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15291         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15292         * doc/posix-headers/strings.texi: Document the Minix problem.
15293
15294 2011-07-31  Bruno Haible  <bruno@clisp.org>
15295
15296         wctype-h: Add support for Minix.
15297         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15298         REPLACE_TOWLOWER.
15299         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15300         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15301         REPLACE_ISWCNTRL.
15302
15303 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15304
15305         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15306         This is a performance improvement for 64-bit hosts: it causes the
15307         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15308
15309 2011-07-31  Bruno Haible  <bruno@clisp.org>
15310
15311         stdioext: Add support for Minix.
15312         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15313         * lib/fpurge.c (fpurge): Likewise.
15314         * lib/freadahead.c (freadahead): Likewise.
15315         * lib/freadable.c (freadable): Likewise.
15316         * lib/freading.c (freading): Likewise.
15317         * lib/freadptr.c (freadptr): Likewise.
15318         * lib/freadseek.c (freadptrinc): Likewise.
15319         * lib/fseeko.c (rpl_fseeko): Likewise.
15320         * lib/fseterr.c (fseterr): Likewise.
15321         * lib/fwritable.c (fwritable): Likewise.
15322         * lib/fwriting.c (fwriting): Likewise.
15323         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15324         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15325
15326 2011-07-31  Bruno Haible  <bruno@clisp.org>
15327
15328         errno: Port to Minix.
15329         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15330         ECONNABORTED are defined.
15331         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15332         GNULIB_defined_ECONNABORTED): New macros.
15333         * lib/strerror-override.h (strerror_override): Test also
15334         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15335         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15336         ECONNABORTED.
15337         * doc/posix-headers/errno.texi: Mention the Minix problem.
15338
15339 2011-07-31  Bruno Haible  <bruno@clisp.org>
15340
15341         Work around declaration collisions on Minix.
15342         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15343         defined, set REPLACE_MBSINIT.
15344         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15345         defined, set REPLACE_MBRTOWC.
15346         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15347         set REPLACE_MBRLEN.
15348         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15349         defined, set REPLACE_MBSRTOWCS.
15350         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15351         defined, set REPLACE_WCRTOMB.
15352         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15353         defined, set REPLACE_WCSRTOMBS.
15354
15355 2011-07-31  Bruno Haible  <bruno@clisp.org>
15356
15357         Add support for Minix with ACK compiler.
15358         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15359         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15360         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15361
15362 2011-07-31  Bruno Haible  <bruno@clisp.org>
15363
15364         Documentation about Minix.
15365         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15366         * doc/glibc-headers/*.texi: Likewise.
15367         * doc/posix-functions/*.texi: Likewise.
15368         * doc/glibc-functions/*.texi: Likewise.
15369
15370 2011-07-31  Bruno Haible  <bruno@clisp.org>
15371
15372         snippet/warn-on-use: Fix indentation.
15373         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15374
15375 2011-07-25  Jim Meyering  <meyering@redhat.com>
15376
15377         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15378         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15379         commands.
15380
15381 2011-07-27  Jim Meyering  <meyering@redhat.com>
15382
15383         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15384         * top/maint.mk (gl_extract_significant_defines_): Now that
15385         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15386         gnulib/lib/signal.in.h, and now that we recommend to
15387         define-if-undefined those two symbols in application code,
15388         we must filter them out of the "significant" list.
15389         This avoids a "make syntax-check" failure in coreutils.
15390
15391 2011-07-26  Eric Blake  <eblake@redhat.com>
15392
15393         warnings: add comments about previous patch
15394         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15395         * m4/include_next.m4: Likewise.
15396         * m4/warn-on-use.m4: Likewise.
15397         * m4/warnings.m4: Likewise, and simplify use.
15398         Suggested by Stefano Lattarini.
15399
15400         include-next, warnings: support older autoconf
15401         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15402         AS_VAR_PUSHDEF in a way that works with older autoconf.
15403         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15404         Reported by Daniel P. Berrange.
15405
15406 2011-07-25  Bruno Haible  <bruno@clisp.org>
15407
15408         fseek, ftell: Fix doc.
15409         * doc/posix-functions/fseek.texi: Reword statement about
15410         AC_SYS_LARGEFILE.
15411         * doc/posix-functions/ftell.texi: Likewise.
15412
15413 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15414             Bruno Haible  <bruno@clisp.org>
15415
15416         Add dependencies to the 'largefile' module.
15417         * modules/fopen (Depends-on): Add 'largefile'.
15418         * modules/freopen (Depends-on): Likewise.
15419         * modules/fseeko (Depends-on): Likewise.
15420         * modules/ftello (Depends-on): Likewise.
15421         * modules/glob (Depends-on): Likewise.
15422         * modules/lseek (Depends-on): Likewise.
15423         * modules/lstat (Depends-on): Likewise.
15424         * modules/mkostemp (Depends-on): Likewise.
15425         * modules/mkostemps (Depends-on): Likewise.
15426         * modules/mkstemp (Depends-on): Likewise.
15427         * modules/mkstemps (Depends-on): Likewise.
15428         * modules/open (Depends-on): Likewise.
15429         * modules/openat (Depends-on): Likewise.
15430         * modules/pread (Depends-on): Likewise.
15431         * modules/pwrite (Depends-on): Likewise.
15432         * modules/scandir (Depends-on): Likewise.
15433         * modules/stat (Depends-on): Likewise.
15434         * modules/tmpfile (Depends-on): Likewise.
15435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15436         since the containing module now depends on the largefile module.
15437         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15438         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15439         off_t is fixed by gnulib.
15440         * doc/posix-functions/freopen.texi: Likewise.
15441         * doc/posix-functions/fseeko.texi: Likewise.
15442         * doc/posix-functions/fstatat.texi: Likewise.
15443         * doc/posix-functions/ftello.texi: Likewise.
15444         * doc/posix-functions/glob.texi: Likewise.
15445         * doc/posix-functions/lseek.texi: Likewise.
15446         * doc/posix-functions/lstat.texi: Likewise.
15447         * doc/posix-functions/mkstemp.texi: Likewise.
15448         * doc/posix-functions/open.texi: Likewise.
15449         * doc/posix-functions/openat.texi: Likewise.
15450         * doc/posix-functions/pread.texi: Likewise.
15451         * doc/posix-functions/pwrite.texi: Likewise.
15452         * doc/posix-functions/scandir.texi: Likewise.
15453         * doc/posix-functions/stat.texi: Likewise.
15454         * doc/posix-functions/tmpfile.texi: Likewise.
15455         * doc/glibc-functions/mkostemp.texi: Likewise.
15456         * doc/glibc-functions/mkostemps.texi: Likewise.
15457         * doc/glibc-functions/mkstemps.texi: Likewise.
15458
15459 2011-07-25  Bruno Haible  <bruno@clisp.org>
15460
15461         fcntl: Move AC_LIBOBJ invocation to module description.
15462         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15463         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15464
15465         fcntl: Remove call-in from fchdir.m4.
15466         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15468
15469         dup3: Remove potential call-in from fchdir.m4.
15470         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15472
15473         dup2: Move AC_LIBOBJ invocation to module description.
15474         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15475         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15476         Don't invoke AC_LIBOBJ.
15477         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15478
15479         dup2: Remove call-in from fchdir.m4.
15480         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15482
15483         fclose: Move AC_LIBOBJ invocation to module description.
15484         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15485         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15486         to 1.
15487         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15488
15489         fclose: Remove call-in from close.m4.
15490         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15491         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15492
15493         close: Move AC_LIBOBJ invocation to module description.
15494         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15495         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15496         1.
15497         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15498
15499         close: Remove call-in from fchdir.m4.
15500         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15502
15503         open: Move AC_LIBOBJ invocation to module description.
15504         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15505         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15506         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15507
15508         open: Remove call-in from fchdir.m4.
15509         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15511
15512         fchdir: Start to remove gl_REPLACE_* idiom.
15513         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15514         (gl_FUNC_FCHDIR): Invoke it.
15515
15516 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15517
15518         * lib/ftell.c (ftell): Comment out cast.
15519
15520         close: use gl_REPLACE_FCLOSE only if defined
15521         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15522         is defined.  The close module doesn't depend on the fclose module
15523         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15525         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15526
15527 2011-07-24  Jim Meyering  <meyering@redhat.com>
15528
15529         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15530         * tests/test-select.h (test_function): Declare as "static".
15531
15532 2011-07-24  Bruno Haible  <bruno@clisp.org>
15533
15534         doc: Mention the effects of AC_SYS_LARGEFILE.
15535         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15536         on this function.
15537         * doc/posix-functions/aio_error.texi: Likewise.
15538         * doc/posix-functions/aio_fsync.texi: Likewise.
15539         * doc/posix-functions/aio_read.texi: Likewise.
15540         * doc/posix-functions/aio_return.texi: Likewise.
15541         * doc/posix-functions/aio_suspend.texi: Likewise.
15542         * doc/posix-functions/aio_write.texi: Likewise.
15543         * doc/posix-functions/fgetpos.texi: Likewise.
15544         * doc/posix-functions/fopen.texi: Likewise.
15545         * doc/posix-functions/freopen.texi: Likewise.
15546         * doc/posix-functions/fsetpos.texi: Likewise.
15547         * doc/posix-functions/fstatvfs.texi: Likewise.
15548         * doc/posix-functions/ftruncate.texi: Likewise.
15549         * doc/posix-functions/ftw.texi: Likewise.
15550         * doc/posix-functions/getrlimit.texi: Likewise.
15551         * doc/posix-functions/glob.texi: Likewise.
15552         * doc/posix-functions/lio_listio.texi: Likewise.
15553         * doc/posix-functions/lockf.texi: Likewise.
15554         * doc/posix-functions/mkstemp.texi: Likewise.
15555         * doc/posix-functions/mmap.texi: Likewise.
15556         * doc/posix-functions/nftw.texi: Likewise.
15557         * doc/posix-functions/openat.texi: Likewise.
15558         * doc/posix-functions/opendir.texi: Likewise.
15559         * doc/posix-functions/posix_fadvise.texi: Likewise.
15560         * doc/posix-functions/posix_fallocate.texi: Likewise.
15561         * doc/posix-functions/pread.texi: Likewise.
15562         * doc/posix-functions/pwrite.texi: Likewise.
15563         * doc/posix-functions/readdir.texi: Likewise.
15564         * doc/posix-functions/readdir_r.texi: Likewise.
15565         * doc/posix-functions/rewinddir.texi: Likewise.
15566         * doc/posix-functions/scandir.texi: Likewise.
15567         * doc/posix-functions/seekdir.texi: Likewise.
15568         * doc/posix-functions/setrlimit.texi: Likewise.
15569         * doc/posix-functions/statvfs.texi: Likewise.
15570         * doc/posix-functions/telldir.texi: Likewise.
15571         * doc/posix-functions/tmpfile.texi: Likewise.
15572         * doc/posix-functions/truncate.texi: Likewise.
15573         * doc/glibc-functions/fallocate.texi: Likewise.
15574         * doc/glibc-functions/fstatfs.texi: Likewise.
15575         * doc/glibc-functions/fts_children.texi: Likewise.
15576         * doc/glibc-functions/fts_read.texi: Likewise.
15577         * doc/glibc-functions/getdirentries.texi: Likewise.
15578         * doc/glibc-functions/mkostemp.texi: Likewise.
15579         * doc/glibc-functions/mkostemps.texi: Likewise.
15580         * doc/glibc-functions/mkstemps.texi: Likewise.
15581         * doc/glibc-functions/preadv.texi: Likewise.
15582         * doc/glibc-functions/pwritev.texi: Likewise.
15583         * doc/glibc-functions/sendfile.texi: Likewise.
15584         * doc/glibc-functions/statfs.texi: Likewise.
15585
15586 2011-07-24  Bruno Haible  <bruno@clisp.org>
15587
15588         doc: Fix typo.
15589         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15590
15591 2011-07-24  Bruno Haible  <bruno@clisp.org>
15592
15593         doc: Mention fsusage.
15594         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15595
15596 2011-07-24  Bruno Haible  <bruno@clisp.org>
15597
15598         doc: Mention new glibc headers and functions.
15599         * doc/glibc-headers/gshadow.texi: New file.
15600         * doc/glibc-functions/endsgent.texi: New file.
15601         * doc/glibc-functions/fgetsgent.texi: New file.
15602         * doc/glibc-functions/fgetsgent_r.texi: New file.
15603         * doc/glibc-functions/getsgent.texi: New file.
15604         * doc/glibc-functions/getsgent_r.texi: New file.
15605         * doc/glibc-functions/getsgnam.texi: New file.
15606         * doc/glibc-functions/getsgnam_r.texi: New file.
15607         * doc/glibc-functions/putsgent.texi: New file.
15608         * doc/glibc-functions/setsgent.texi: New file.
15609         * doc/glibc-functions/sgetsgent.texi: New file.
15610         * doc/glibc-functions/sgetsgent_r.texi: New file.
15611         * doc/glibc-functions/malloc_info.texi: New file.
15612         * doc/glibc-functions/preadv.texi: New file.
15613         * doc/glibc-functions/pwritev.texi: New file.
15614         * doc/glibc-functions/register_printf_modifier.texi: New file.
15615         * doc/glibc-functions/register_printf_specifier.texi: New file.
15616         * doc/glibc-functions/register_printf_type.texi: New file.
15617         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15618         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15619         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15620         * doc/glibc-functions/pthread_getname_np.texi: New file.
15621         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15622         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15623         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15624         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15625         * doc/glibc-functions/pthread_setname_np.texi: New file.
15626         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15627         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15628         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15629         * doc/glibc-functions/qsort_r.texi: New file.
15630         * doc/glibc-functions/quick_exit.texi: New file.
15631         * doc/glibc-functions/syncfs.texi: New file.
15632         * doc/gnulib.texi: Include them.
15633         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15634         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15635         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15636         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15637         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15638         * doc/glibc-functions/execvpe.texi: Likewise.
15639
15640 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15641
15642         ftell: don't include <unistd.h>
15643         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15644         guaranteed to define off_t, and the ftell module depends on the
15645         stdio module.
15646
15647         ftell: do not assume wraparound signed arithmetic
15648         * lib/ftell.c: Include <limits.h>.
15649         (ftell): Don't assume wraparound signed arithmetic.
15650
15651 2011-07-24  Bruno Haible  <bruno@clisp.org>
15652
15653         close: No longer depend on module 'fclose'.
15654         * modules/close (Depends-on): Remove fclose.
15655         * NEWS: Mention the change.
15656         Suggested by Sam Steingold <sds@gnu.org>.
15657
15658 2011-07-24  Bruno Haible  <bruno@clisp.org>
15659
15660         fsusage: Enable large volume support on AIX >= 5.2.
15661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15662         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15663         instead of STAT_STATVFS.
15664         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15665
15666         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15667         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15668         f_blocks field only on MacOS X.
15669
15670         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15672         * modules/fsusage (Depends-on): Add largefile.
15673
15674 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         * README: Modernize discussion of signed integers.
15677         Assuming overflow wraparound is no longer safe.
15678         Mention ones' complement and signed magnitude.
15679
15680 2011-07-22  Bruno Haible  <bruno@clisp.org>
15681
15682         select tests, pselect tests: Refactor.
15683         * tests/test-select.h: New file, extracted from tests/test-select.c.
15684         (select_fn): New type.
15685         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15686         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15687         test_pipe): Add my_select argument.
15688         (test_function): Renamed from main. Add my_select argument.
15689         * tests/test-select.c: Move most code to tests/test-select.h. Include
15690         test-select.h.
15691         * modules/select-tests (Files): Add tests/test-select.h.
15692         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15693         (my_select, main): New functions.
15694         * modules/pselect-tests (Files): Add tests/test-select.h,
15695         tests/macros.h, tests/signature.h.
15696         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15697         (configure.ac): Check for <sys/wait.h>.
15698
15699 2011-07-22  Bruno Haible  <bruno@clisp.org>
15700
15701         sys_select tests: Check the signature of FD_*.
15702         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15703         signature tests from here...
15704         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15705         here.
15706         * modules/sys_select-tests (Files): Add tests/signature.h.
15707
15708 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15709
15710         largefile: new module, replacing large-inode
15711         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15712         * MODULES.html.sh: Add largefile, remove large-inode.
15713         * modules/largefile, m4/largefile.m4: New files.
15714         * modules/large-inode, m4/large-inode.m4: Remove.
15715
15716         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15718         implementations that use only 32 bits to count blocks.
15719         On typical hosts with 1024-byte blocks, this fails with file
15720         systems as small as 4 TiB.  Problem reported by Herb Wartens
15721         <http://debbugs.gnu.org/9140> and this should also fix a similar
15722         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15723
15724         large-inode: New module
15725         * MODULES.html.sh: Add it.
15726         * modules/large-inode, m4/large-inode.m4: New files.
15727
15728         extensions: Enable extensions on MacOS X 10.5 and later.
15729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15730
15731 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15732
15733         file-has-acl: use acl_extended_file_nofollow if available
15734         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15735         (acl_extended_file): New macro.
15736         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15737         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15738
15739 2011-07-21  Bruno Haible  <bruno@clisp.org>
15740
15741         Declare system functions in a way that works with C++.
15742         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15743         declare fdopendir as extern "C".
15744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15745         declare frexpl as extern "C".
15746         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15747         declare gai_strerror as extern "C".
15748         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15749         programs, declare gai_strerror as extern "C".
15750         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15751         declare getlogin_r as extern "C".
15752         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15753         as extern "C".
15754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15755         declare ldexpl as extern "C".
15756         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15757         as extern "C".
15758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15759         program, declare getmntinfo as extern "C".
15760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15761         stpncpy as extern "C".
15762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15763         program, declare __xpg_strerror_r as extern "C".
15764         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15765         strndup as extern "C".
15766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15767         declare memset and bzero as extern "C".
15768         Reported by Sam Steingold <sds@gnu.org>.
15769
15770 2011-07-12  Jim Meyering  <meyering@redhat.com>
15771
15772         maint.mk: prohibit inclusion of "verify.h" without use
15773         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15774
15775 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15776
15777         timer-time: A new module to check for timer_settime()
15778         * m4/timer_time.m4: Check for the posix function.
15779         * modules/timer-time: Add the new module.
15780         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15781         Mention it.
15782
15783 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15784             Bruno Haible  <bruno@clisp.org>
15785
15786         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15787         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15788         not defined, assume POSIX threads and look for pthread_sigmask in
15789         $LIBS, without changing $CPPFLAGS.
15790
15791 2011-07-19  Bruno Haible  <bruno@clisp.org>
15792
15793         strstr: Update cross-compilation guess.
15794         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15795         CPUs, guess no, in view of glibc
15796         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15797         Suggested by Eric Blake. Reported by Reuben Thomas.
15798
15799 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15800
15801         getopt-gnu: suppress core dumps from detection code
15802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15803         to suppress core dumps that may well occur on glibc systems.
15804         * modules/getopt-gnu: Depend on nocrash.
15805
15806 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         pthread_sigmask: ensure usleep is declared
15809         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15810         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15811
15812 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         doc: Document NonStop portability issues.
15815         * doc/posix-functions/sigaction.texi (sigaction):
15816         * doc/posix-headers/signal.texi (signal.h):
15817         Document NonStop.  See Joachim Schmitz in
15818         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15819
15820 2011-07-15  Bruno Haible  <bruno@clisp.org>
15821
15822         ffsl, ffsll: Avoid unportable behaviour.
15823         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15824
15825 2011-07-15  Bruno Haible  <bruno@clisp.org>
15826
15827         ffs: More tests.
15828         * tests/test-ffs.c (NBITS): New macro.
15829         (main): Add more tests.
15830         * tests/test-ffsl.c (NBITS): New macro.
15831         (main): Add more tests.
15832         * tests/test-ffsll.c (NBITS): New macro.
15833         (main): Add more tests.
15834
15835 2011-07-15  Eric Blake  <eblake@redhat.com>
15836
15837         ffsl, ffsll: new modules
15838         * modules/ffsl: New file.
15839         * modules/ffsll: Likewise.
15840         * m4/ffsl.m4: Likewise.
15841         * m4/ffsll.m4: Likewise.
15842         * lib/ffsl.c: Likewise.
15843         * lib/ffsl.h: Likewise.
15844         * lib/ffsll.c: Likewise.
15845         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15846         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15847         * modules/string (Makefile.am): Substitute witnesses.
15848         * lib/strings.in.h (ffsl, ffsll): Declare.
15849         * modules/ffsl-tests: New test file.
15850         * modules/ffsll-tests: Likewise.
15851         * tests/test-ffsl.c: Likewise.
15852         * tests/test-ffsll.c: Likewise.
15853         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15854         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15855         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15856
15857         ffs: fix m4 prerequisite
15858         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15859
15860         ffs: avoid undefined behavior
15861         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15862         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15863         Reported by Bruno Haible.
15864
15865 2011-07-12  Bruno Haible  <bruno@clisp.org>
15866
15867         pthread_sigmask: Rely on module 'threadlib'.
15868         * modules/pthread_sigmask (Depends-on): Add threadlib.
15869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15870         is defined.
15871
15872 2011-07-12  Bruno Haible  <bruno@clisp.org>
15873
15874         regex: Depend on module 'strcase'.
15875         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15876
15877 2011-07-12  Jim Meyering  <meyering@redhat.com>
15878
15879         warn-on-use: fix typo in file name
15880         * modules/snippet/warn-on-use (Files): Correct file name:
15881         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15882
15883 2011-07-12  Bruno Haible  <bruno@clisp.org>
15884
15885         strings: Document module.
15886         * doc/posix-headers/strings.texi: Mention module 'strings'.
15887
15888 2011-07-12  Bruno Haible  <bruno@clisp.org>
15889
15890         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15891         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15892         (Files, Makefile.am): Update.
15893         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15894         * modules/stdlib (Depends-on): Update.
15895
15896 2011-07-12  Bruno Haible  <bruno@clisp.org>
15897
15898         * NEWS: Mention the changes.
15899
15900         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15901         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15902         (Files, Makefile.am): Update.
15903         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15904         * modules/arpa_inet (Depends-on): Update.
15905         * modules/ctype (Depends-on): Update.
15906         * modules/dirent (Depends-on): Update.
15907         * modules/fcntl-h (Depends-on): Update.
15908         * modules/glob (Depends-on): Update.
15909         * modules/iconv-h (Depends-on): Update.
15910         * modules/inttypes-incomplete (Depends-on): Update.
15911         * modules/langinfo (Depends-on): Update.
15912         * modules/locale (Depends-on): Update.
15913         * modules/math (Depends-on): Update.
15914         * modules/netdb (Depends-on): Update.
15915         * modules/poll-h (Depends-on): Update.
15916         * modules/pty (Depends-on): Update.
15917         * modules/search (Depends-on): Update.
15918         * modules/signal (Depends-on): Update.
15919         * modules/spawn (Depends-on): Update.
15920         * modules/stdio (Depends-on): Update.
15921         * modules/stdlib (Depends-on): Update.
15922         * modules/string (Depends-on): Update.
15923         * modules/strings (Depends-on): Update.
15924         * modules/sys_file (Depends-on): Update.
15925         * modules/sys_ioctl (Depends-on): Update.
15926         * modules/sys_select (Depends-on): Update.
15927         * modules/sys_socket (Depends-on): Update.
15928         * modules/sys_stat (Depends-on): Update.
15929         * modules/sys_time (Depends-on): Update.
15930         * modules/sys_times (Depends-on): Update.
15931         * modules/sys_utsname (Depends-on): Update.
15932         * modules/sys_wait (Depends-on): Update.
15933         * modules/termios (Depends-on): Update.
15934         * modules/time (Depends-on): Update.
15935         * modules/unistd (Depends-on): Update.
15936         * modules/wchar (Depends-on): Update.
15937         * modules/wctype-h (Depends-on): Update.
15938         * MODULES.html.sh (Support for building libraries and executables):
15939         Update.
15940
15941         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15942         * modules/snippet/unused-parameter: Renamed from
15943         modules/unused-parameter.
15944         (Files, Makefile.am): Update.
15945         * build-aux/snippet/unused-parameter.h: Renamed from
15946         build-aux/unused-parameter.h.
15947         * modules/selinux-h (Depends-on): Update.
15948         * modules/unistr/base (Depends-on): Update.
15949         * MODULES.html.sh (Core language properties): Update.
15950
15951         Rename module 'link-warning' to 'snippet/link-warning'.
15952         * modules/snippet/link-warning: Renamed from modules/link-warning.
15953         (Files, Makefile.am): Update.
15954         * build-aux/snippet/link-warning.h: Renamed from
15955         build-aux/link-warning.h.
15956         * MODULES.html.sh (Support for building libraries and executables):
15957         Update.
15958
15959         Rename module 'c++defs' to 'snippet/c++defs'.
15960         * modules/snippet/c++defs: Renamed from modules/c++defs.
15961         (Files, Makefile.am): Update.
15962         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15963         * modules/arpa_inet (Depends-on): Update.
15964         * modules/ctype (Depends-on): Update.
15965         * modules/dirent (Depends-on): Update.
15966         * modules/fcntl-h (Depends-on): Update.
15967         * modules/glob (Depends-on): Update.
15968         * modules/iconv-h (Depends-on): Update.
15969         * modules/langinfo (Depends-on): Update.
15970         * modules/locale (Depends-on): Update.
15971         * modules/math (Depends-on): Update.
15972         * modules/netdb (Depends-on): Update.
15973         * modules/poll-h (Depends-on): Update.
15974         * modules/pty (Depends-on): Update.
15975         * modules/search (Depends-on): Update.
15976         * modules/signal (Depends-on): Update.
15977         * modules/spawn (Depends-on): Update.
15978         * modules/stdio (Depends-on): Update.
15979         * modules/stdlib (Depends-on): Update.
15980         * modules/string (Depends-on): Update.
15981         * modules/strings (Depends-on): Update.
15982         * modules/sys_ioctl (Depends-on): Update.
15983         * modules/sys_select (Depends-on): Update.
15984         * modules/sys_socket (Depends-on): Update.
15985         * modules/sys_stat (Depends-on): Update.
15986         * modules/sys_time (Depends-on): Update.
15987         * modules/sys_wait (Depends-on): Update.
15988         * modules/termios (Depends-on): Update.
15989         * modules/time (Depends-on): Update.
15990         * modules/unistd (Depends-on): Update.
15991         * modules/wchar (Depends-on): Update.
15992         * modules/wctype-h (Depends-on): Update.
15993
15994         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15995         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15996         (Files, Makefile.am): Update.
15997         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15998         * modules/argv-iter (Depends-on): Update.
15999         * modules/arpa_inet (Depends-on): Update.
16000         * modules/dirent (Depends-on): Update.
16001         * modules/fcntl-h (Depends-on): Update.
16002         * modules/fnmatch (Depends-on): Update.
16003         * modules/getopt-posix (Depends-on): Update.
16004         * modules/glob (Depends-on): Update.
16005         * modules/iconv-h (Depends-on): Update.
16006         * modules/inttypes-incomplete (Depends-on): Update.
16007         * modules/locale (Depends-on): Update.
16008         * modules/math (Depends-on): Update.
16009         * modules/netdb (Depends-on): Update.
16010         * modules/search (Depends-on): Update.
16011         * modules/signal (Depends-on): Update.
16012         * modules/spawn (Depends-on): Update.
16013         * modules/stdio (Depends-on): Update.
16014         * modules/stdlib (Depends-on): Update.
16015         * modules/string (Depends-on): Update.
16016         * modules/strings (Depends-on): Update.
16017         * modules/sys_socket (Depends-on): Update.
16018         * modules/sys_stat (Depends-on): Update.
16019         * modules/sys_time (Depends-on): Update.
16020         * modules/sys_times (Depends-on): Update.
16021         * modules/sys_utsname (Depends-on): Update.
16022         * modules/time (Depends-on): Update.
16023         * modules/unistd (Depends-on): Update.
16024         * modules/wchar (Depends-on): Update.
16025         * MODULES.html.sh (Support for building libraries and executables):
16026         Update.
16027
16028 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         Improvements on _Noreturn and related modules.
16031
16032         modules/_Exit-tests: test _Noreturn too
16033         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16034         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16035         (main): Use them.
16036
16037         stdnoreturn, stdnoreturn-tests: remove modules
16038         They're not needed here and a bit premature for use elsewhere.  See
16039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16040         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16041         * tests/test-stdnoreturn.c: Remove files.
16042         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16043         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16044         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16045         and using noreturn.
16046         * modules/openat, modules/sigpipe-die, modules/xalloc:
16047         * modules/xmemdup0, modules/xstrtol:
16048         Remove dependency on stdnoreturn.
16049
16050         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16051         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16052         Reparenthesize to avoid GCC warning.
16053         Support Microsoft's syntax.
16054         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16055
16056         _Noreturn-tests: remove module
16057         * modules/_Noreturn-tests: Remove.
16058         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16059         * tests/test-_Noreturn.c: Remove.
16060         * tests/test-stdnoreturn.c: Merge from the old
16061         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16062
16063 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16064
16065         _Noreturn, stdnoreturn, and related modules.
16066
16067         * top/maint.mk: Adjust to new noreturn support.
16068         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16069         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16070
16071         xalloc: use stdnoreturn.h
16072         * lib/xalloc.h: Include <stdnoreturn.h>.
16073         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16074         * modules/xalloc (Depends-on): Add stdnoreturn.
16075
16076         xstrtol: use stdnoreturn.h
16077         * lib/xstrtol.h: Include <stdnoreturn.h>.
16078         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16079         * modules/xstrtol (Depends-on): Add stdnoreturn.
16080
16081         xmemdup0: use stdnoreturn.h
16082         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16083         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16084         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16085
16086         sigpipe-die: use stdnoreturn.h
16087         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16088         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16089         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16090
16091         openat: use stdnoreturn.h
16092         * lib/openat.h: Include <stdnoreturn.h>.
16093         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16094         * modules/openat (Depends-on): Add stdnoreturn.
16095
16096         * lib/openat-die.c (openat_save_fail): Modernize comment.
16097
16098         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16099
16100         * lib/glthread/thread.h: Modernize comment.
16101
16102         obstack: use _Noreturn
16103         * lib/obstack.c (__attribute__): Remove macro.
16104         (print_and_abort): Use _Noreturn.
16105
16106         c-stack: use _Noreturn
16107         * lib/c-stack.c (die, overflow_handler, segv_handler):
16108         Use _Noreturn rather than __attribute__((noreturn)).
16109
16110         argmatch-tests, exclude_tests: use _Noreturn
16111         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16112         Remove.
16113         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16114
16115         stdlib: use _Noreturn
16116         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16117         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16118         * modules/stdlib (Depends-on): Add _Noreturn.
16119         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16120
16121         stdnoreturn-tests: new module
16122         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16123
16124         stdnoreturn: new module
16125         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16126         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16127
16128         _Noreturn-tests: new module
16129         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16130
16131         _Noreturn: new module
16132         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16133         New section, mentioning it.
16134         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16135
16136         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16137
16138 2011-07-11  Eric Blake  <eblake@redhat.com>
16139
16140         ffs: new module
16141         * modules/ffs: New file.
16142         * m4/ffs.m4: Likewise.
16143         * lib/ffs.c: Likewise.
16144         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16145         * modules/strings (Makefile.am): Substitute witness.
16146         (Depends-on): Add c++defs.
16147         * lib/strings.in.h (ffs): Declare.
16148         * modules/ffs-tests: New test file.
16149         * tests/test-ffs.c: Test new module.
16150         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16151         * doc/posix-functions/ffs.texi (ffs): Likewise.
16152
16153         regex: avoid compiler warning
16154         * lib/regex.c (includes): Include <strings.h>, for use of
16155         strcasecmp in regcomp.c.
16156         Reported by Joachim Schmitz.
16157
16158 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16159
16160         stdint: respect system's intmax_t if INTMAX_MAX
16161         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16162         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16163         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16164         long but int64_t is long long, and where we will clash with the
16165         system intmax_t if we override it.  See
16166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16167         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16168         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16169         similarly for UINTMAX_C.
16170
16171 2011-07-08  Bruno Haible  <bruno@clisp.org>
16172
16173         pthread_sigmask tests: Avoid a compiler warning.
16174         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16175         non-zero.
16176
16177         sigprocmask tests: A better way to avoid a compiler warning.
16178         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16179         (main): Complain if system() returns non-zero.
16180         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16181
16182 2011-07-08  Bruno Haible  <bruno@clisp.org>
16183
16184         pthread_sigmask: Work around IRIX bug.
16185         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16186         bug.
16187         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16188         there may be unblocked pending signals.
16189         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16190
16191 2011-07-08  Bruno Haible  <bruno@clisp.org>
16192
16193         pthread_sigmask: Work around Cygwin bug.
16194         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16195         bug.
16196         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16197         the system's pthread_sigmask function.
16198         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16199
16200 2011-07-08  Bruno Haible  <bruno@clisp.org>
16201
16202         pthread_sigmask: Work around bug in single-threaded implementation.
16203         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16204         FreeBSD, HP-UX, Solaris bug.
16205         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16206         * lib/pthread_sigmask.c: Include <stddef.h>.
16207         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16208         the system's pthread_sigmask function.
16209         * modules/pthread_sigmask (configure.ac): Invoke
16210         gl_PREREQ_PTHREAD_SIGMASK.
16211         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16212         HP-UX, Solaris.
16213
16214 2011-07-08  Eric Blake  <eblake@redhat.com>
16215
16216         test-sigprocmask: avoid compiler warning
16217         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16218         * tests/test-sigprocmask.c (main): Use it to silence warning.
16219         Reported by Jim Meyering.
16220
16221         test-snprintf: avoid compiler warning
16222         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16223         * tests/test-vsnprintf.c (main): Likewise.
16224         Reported by Jim Meyering.
16225
16226 2011-07-08  Bruno Haible  <bruno@clisp.org>
16227
16228         Tests for module 'pthread_sigmask'.
16229         * modules/pthread_sigmask-tests: New file.
16230         * tests/test-pthread_sigmask1.c: New file, based on
16231         tests/test-sigprocmask.c.
16232         * tests/test-pthread_sigmask2.c: New file.
16233
16234 2011-07-08  Jim Meyering  <meyering@redhat.com>
16235
16236         test-getopt.h: avoid warning about an unused variable
16237         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16238
16239 2011-07-07  Jim Meyering  <meyering@redhat.com>
16240
16241         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16242         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16243         now that it no longer contains leading TABs.
16244         Remove unused "url=FIXME" statement.
16245
16246 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16250         When gl_THREADLIB is not in use, assume that the POSIX sematics
16251         are desired.  This is better for Emacs, which uses POSIX semantics
16252         on GNUish and/or POSIXish platforms, and does not use threads at
16253         all otherwise.
16254
16255         pthread_sigmask: fix typo when testing for libraries
16256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16257         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16258
16259 2011-07-08  Eric Blake  <eblake@redhat.com>
16260
16261         fts: introduce FTS_NOATIME
16262         * lib/fts_.h (FTS_NOATIME): New bit flag.
16263         (FTS_OPTIONMASK): Adjust.
16264         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16265         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16266
16267 2011-07-08  Bruno Haible  <bruno@clisp.org>
16268
16269         Tests for module 'thread'.
16270         * modules/thread-tests: New file.
16271         * tests/test-thread_self.c: New file.
16272         * tests/test-thread_create.cc: New file.
16273
16274 2011-07-08  Bruno Haible  <bruno@clisp.org>
16275
16276         thread: Avoid gcc warnings when using gl_thread_self().
16277         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16278         'void *'.
16279         (gl_thread_self_pointer): Update.
16280
16281 2011-07-07  Bruno Haible  <bruno@clisp.org>
16282
16283         signal-c++-tests: Check declaration of pthread_sigmask.
16284         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16285         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16286         $(LIB_PTHREAD_SIGMASK).
16287
16288 2011-07-07  Bruno Haible  <bruno@clisp.org>
16289
16290         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16291         * lib/signal.in.h (pthread_sigmask): Override if
16292         REPLACE_PTHREAD_SIGMASK is 1.
16293         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16294         REPLACE_PTHREAD_SIGMASK.
16295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16296         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16297         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16298         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16299         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16300
16301 2011-07-07  Bruno Haible  <bruno@clisp.org>
16302
16303         pthread_sigmask: Ensure declaration in <signal.h>.
16304         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16305         include <pthread.h>.
16306         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16307         problem.
16308
16309 2011-07-07  Bruno Haible  <bruno@clisp.org>
16310
16311         pthread_sigmask: Document the module.
16312         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16313
16314 2011-07-07  Bruno Haible  <bruno@clisp.org>
16315
16316         pthread_sigmask: Follow gnulib conventions.
16317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16318         gl_PTHREAD_SIGMASK.
16319         * modules/pthread_sigmask (configure.ac): Update.
16320
16321 2011-07-07  Bruno Haible  <bruno@clisp.org>
16322
16323         pthread_sigmask: Make declaration C++ safe.
16324         * lib/signal.in.h: In two special conditions, just do an #include_next.
16325         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16326         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16327         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16328         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16329         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16330         not REPLACE_PTHREAD_MASK.
16331         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16332         not REPLACE_PTHREAD_MASK.
16333         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16334
16335 2011-07-07  Bruno Haible  <bruno@clisp.org>
16336
16337         pthread_sigmask: Fix return value.
16338         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16339         * lib/pthread_sigmask.c: New file.
16340         * modules/pthread_sigmask (Files): Add it.
16341         (configure.ac): Invoke AC_LIBOBJ.
16342
16343 2011-07-07  Eric Blake  <eblake@redhat.com>
16344
16345         getopt: more portable argv creation
16346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16347         const, use char arrays rather than strings.
16348         Suggested by Paul Eggert.
16349
16350 2011-07-07  Bruno Haible  <bruno@clisp.org>
16351
16352         Tests for module 'sigprocmask'.
16353         * modules/sigprocmask-tests: New file.
16354         * tests/test-sigprocmask.c: New file.
16355
16356 2011-07-07  Bruno Haible  <bruno@clisp.org>
16357
16358         float tests: Tweak.
16359         * tests/test-float.c (main): Tweak skip message.
16360
16361 2011-07-07  Eric Blake  <eblake@redhat.com>
16362
16363         getopt: avoid compiler warning during configure
16364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16365         assigning string literals to non-const pointer.
16366
16367         getopt-gnu: avoid crash in glibc getopt
16368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16369         * tests/test-getopt.h (test_getopt): Enhance test.
16370         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16371         * doc/posix-functions/getopt.texi (getopt): Document it.
16372         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16373         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16374         Likewise.
16375
16376 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16377
16378         getopt: handle W; without long options in getopt [BZ #12922]
16379         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16380         but no long options are defined, just return 'W'.
16381
16382 2011-07-07  Bruno Haible  <bruno@clisp.org>
16383
16384         Avoid literal tabs.
16385         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16386         variable containing a tab instead of a literal tab.
16387         Reported by Jim Meyering.
16388
16389 2011-07-07  Bruno Haible  <bruno@clisp.org>
16390
16391         Comments.
16392         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16393
16394 2011-07-06  Bruno Haible  <bruno@clisp.org>
16395
16396         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16397         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16398         <winsock2.h>.
16399         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16400         lib/sys_socket.in.h.
16401         (close, gethostname): Hide declarations from <winsock2.h>.
16402         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16403         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16404         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16405         (select): Don't override if gnulib's <sys/select.h> was already
16406         included.
16407         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16408         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16409         setsockopt, shutdown, select): Tweak indentation.
16410
16411 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16412
16413         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16414         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16415         in an application that does not use the sys_select module.
16416
16417 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16418
16419         poll: do not return 0 on timeout=-1
16420         * lib/poll.c: Loop with yield if no events occurred.
16421
16422 2011-07-06  Eric Blake  <eblake@redhat.com>
16423
16424         pthread_sigmask: always replace when not using pthread
16425         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16426         replacement when using some threading other than pthread.  Fix
16427         logic bug.
16428
16429 2011-07-06  Bruno Haible  <bruno@clisp.org>
16430
16431         Comments.
16432         * m4/printf.m4: Update comments about mingw.
16433
16434 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         sys_select: define sigset_t more portably
16437         * lib/sys_select.in.h: Always include <sys/types.h>, since
16438         we now need sigset_t and mingw defines it there.
16439         Include <signal.h> before split inclusion guard, to avoid
16440         mishaps on Solaris, whose <signal.h> eventually includes us.
16441         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16442         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16443         which come from ...
16444         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16445         gl_CHECK_TYPE_SIGSET_T.
16446         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16447         does the real work.
16448         * modules/sys_select (Depends-on): Add 'signal'.
16449
16450         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16451         Suggested by Bruno Haible.
16452
16453         pselect: Use pthread_sigmask, not sigprocmask.
16454         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16455         multithreaded apps better than sigprocmask does.
16456         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16457         sigprocmask directly.
16458
16459 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16460
16461         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16462         Don't #undef,  since we don't need any underlying pselect.
16463         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16464         (Depends-on): Add select.
16465         (Link): Add $(LIBSOCKET).
16466         These changes suggested by Bruno Haible.
16467
16468         pselect: document better
16469         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16470         * doc/posix-functions/pselect.texi (pselect): Document new module.
16471
16472         pthread_sigmask: new module
16473         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16474         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16475         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16476         This is done only as a macro; I don't know how well that'll
16477         work for C++.  Move <sys/types.h> include before the include_next,
16478         to avoid mishap on Solaris.
16479         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16480         * modules/signal (Makefile.am): Substitute the check's results.
16481         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16482
16483         test-pselect: new module
16484         * modules/pselect-tests, tests/test-pselect.c: New files.
16485         * tests/test-select.c, tests/test-sys_select-c++.cc:
16486         If TEST_PSELECT is defined, test pselect instead of testing select.
16487
16488         * tests/test-sys_select.c (sigset_t): Test for it, too.
16489         Suggested by Bruno Haible.
16490
16491 2011-07-05  Eric Blake  <eblake@redhat.com>
16492
16493         snprintf: guarantee %1$d, for libintl
16494         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16495         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16496         * doc/posix-functions/snprintf.texi (snprintf): Update.
16497         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16498         * tests/test-snprintf.c (main): Enhance test.
16499         * tests/test-vsnprintf.c (main): Likewise.
16500
16501 2011-07-05  Jim Meyering  <meyering@redhat.com>
16502
16503         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16504         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16505         per Bruno's request, to accommodate this idiom (no space after "#")
16506         even when the function is inside an #if block:
16507         char *
16508         gets (char *s)
16509         #undef gets
16510         {
16511           ...
16512         }
16513
16514 2011-07-04  Jim Meyering  <meyering@redhat.com>
16515
16516         maint: indent with spaces, not TABs, and add a rule to check this
16517         * tests/test-userspec.c: Indent with spaces, not TABs.
16518         * tests/test-argp.c: Likewise.
16519         * tests/test-c-stack2.sh: Likewise.
16520         * tests/test-parse-duration.sh: Likewise
16521         * m4/strtod.m4: Likewise.
16522         * m4/alloca.m4: Likewise.
16523         * m4/pselect.m4: Likewise.
16524         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16525
16526 2011-07-03  Jim Meyering  <meyering@redhat.com>
16527
16528         maint.mk: correct omissions in prohibit_argmatch_without_use check
16529         This rule would mistakenly report that argmatch.h is included without
16530         use even when both the argmatch and invalid_arg macro were used.
16531         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16532         of argmatch and invalid_arg.
16533
16534 2011-07-03  Bruno Haible  <bruno@clisp.org>
16535
16536         Comments about EINTR.
16537         * lib/safe-read.h: Explain the purpose of this module.
16538         * lib/safe-write.h: Likewise.
16539         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16540         module.
16541         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16542         module.
16543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16544
16545 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16546
16547         xnanosleep: Rewrite to use new dtotimespec module.
16548         It has the conversion code that used to be in xnanosleep.
16549         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16550         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16551         (TIME_T_MAX): Remove.
16552         (xnanosleep): Rewrite in terms of dtotimespec.
16553         * modules/xnanosleep (Depends-on): Add dtotimespec.
16554         Remove intprops, stdbool.
16555
16556         timespec-add, timespec-sub: new modules
16557         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16558         * lib/timespec-add.c, lib/timespec-sub.c:
16559         * modules/timespec-add, modules/timespec-sub: New files.
16560
16561         dtotimespec: new module
16562         * lib/timespec.h (dtotimespec): New decl.
16563         * lib/dtotimespec.c, modules/dtotimespec: New files.
16564
16565         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16566
16567         pselect: new module
16568         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16569         (pselect): New decls.
16570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16571         since the standard pselect decl uses 'restrict'.
16572         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16573         HAVE_PSELECT, REPLACE_PSELECT.
16574         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16575         HAVE_PSELECT, REPLACE_PSELECT.
16576         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16577
16578         sys_select: don't depend on sys_socket
16579         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16581         This fix works on GNU and GNU-like platforms, but has not been tested
16582         on native Windows.
16583         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16585         gl_HEADER_SYS_SOCKET.
16586         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16587         gl_PREREQ_SYS_H_WINSOCK2.
16588
16589 2011-06-29  Eric Blake  <eblake@redhat.com>
16590
16591         pipe2: fix C89 compile problem
16592         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16593         Reported by Bruno Haible.
16594
16595         pipe, pipe2: don't corrupt fd on error
16596         * lib/pipe.c (pipe): Leave fd unchanged on error.
16597         * lib/pipe2.c (pipe2): Likewise.
16598         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16599         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16600
16601 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16602
16603         mmap-anon: do not use regular expressions inadvertently
16604         * m4/mmap-anon.m4: Remove trailing period from strings sought
16605         in the output.
16606
16607 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16608
16609         nanosleep: fix integer overflow problem
16610         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16611         arithmetic wraps around on overflow.
16612
16613         nanosleep: simplify carrying
16614         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16615         first call to the underyling nanosleep, not for the last one.
16616         This doesn't fix any bugs, but it simplifies the computation of
16617         the remaining delay.  Found while auditing integer overflow issues.
16618
16619         dup2: remove test for existence of fcntl
16620         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16621         "#if HAVE_FCNTL", in the configure-time test program.
16622         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16623         and therefore speeds up "configure" a bit.  Found while
16624         adding the dup2 module to Emacs.
16625
16626 2011-06-24  Eric Blake  <eblake@redhat.com>
16627
16628         maint.mk: enhance useless header checks
16629         * top/maint.mk (_sc_header_without_use): Check both include
16630         styles.
16631         (sc_prohibit_assert_without_use)
16632         (sc_prohibit_close_stream_without_use)
16633         (sc_prohibit_getopt_without_use)
16634         (sc_prohibit_quotearg_without_use)
16635         (sc_prohibit_quote_without_use)
16636         (sc_prohibit_long_options_without_use)
16637         (sc_prohibit_inttostr_without_use)
16638         (sc_prohibit_ignore_value_without_use)
16639         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16640         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16641         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16642         (sc_prohibit_hash_pjw_without_use)
16643         (sc_prohibit_safe_read_without_use)
16644         (sc_prohibit_argmatch_without_use)
16645         (sc_prohibit_canonicalize_without_use)
16646         (sc_prohibit_root_dev_ino_without_use)
16647         (sc_prohibit_openat_without_use)
16648         (sc_prohibit_c_ctype_without_use)
16649         (sc_prohibit_signal_without_use)
16650         (sc_prohibit_stdio--_without_use)
16651         (sc_prohibit_stdio-safer_without_use)
16652         (sc_prohibit_strings_without_use)
16653         (sc_prohibit_intprops_without_use)
16654         (sc_prohibit_stddef_without_use)
16655         (sc_prohibit_xfreopen_without_use): Update clients.
16656
16657 2011-06-24  Jim Meyering  <meyering@redhat.com>
16658
16659         syntax-check: keep one maint.mk rule in sync with its header
16660         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16661         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16662         I prefer to avoid temporary files here, so use <(...), but that
16663         is not supported by /bin/sh, so...
16664         (SHELL): Define to /bin/bash.
16665
16666 2011-06-24  Eric Blake  <eblake@redhat.com>
16667
16668         maint.mk: update sc_prohibit_intprops_without_use
16669         * top/maint.mk (_intprops_names): Match recent changes.
16670
16671 2011-06-24  Bruno Haible  <bruno@clisp.org>
16672
16673         strerror-override: No-op tweak.
16674         * lib/strerror-override.h (strerror_override): Reorder conditions,
16675         for consistency with lib/strerror-override.c.
16676
16677 2011-06-23  Eric Blake  <eblake@redhat.com>
16678
16679         maint.mk: test further PATH_MAX issues
16680         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16681         (sc_prohibit_path_max_allocation): ...and also test alloca.
16682         Suggested by Jim Meyering.
16683
16684 2011-06-22  Eric Blake  <eblake@redhat.com>
16685
16686         maint.mk: add syntax-check to avoid char[PATH_MAX]
16687         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16688
16689         stat: be robust to PATH_MAX definition
16690         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16691         * modules/stat (Depends-on): Add verify.
16692
16693         link: work around IRIX bug
16694         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16695         * lib/link.c (rpl_link): Work around it.
16696         * tests/test-link.h (test_link): Enhance test.
16697         * doc/posix-functions/link.texi (link): Document the bug.
16698
16699         getopt: silence clang warning
16700         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16701         dereference.
16702         Reported by Gustavo Martin Domato.
16703
16704 2011-06-22  Jim Meyering  <meyering@redhat.com>
16705
16706         bootstrap: do not insert a blank line into each .gitignore file
16707         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16708
16709 2011-06-21  Eric Blake  <eblake@redhat.com>
16710
16711         perror: test for output mismatch
16712         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16713         perror on IRIX.
16714
16715         strerror_r: fix OpenBSD behavior on out-of-range
16716         * lib/strerror_r.c (strerror_r): Always use maximal string.
16717         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16718
16719         strerror_r: fix OpenBSD behavior on 0
16720         * lib/strerror-override.c (strerror_override): Also override 0
16721         when needed.
16722         * lib/strerror-override.h (strerror_override): Likewise.
16723         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16724         earlier.
16725         * lib/strerror_r.c (strerror_r): Likewise.
16726         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16727         behavior...
16728         (gl_FUNC_STRERROR_0): ...into new macro.
16729         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16730         is overridden.
16731         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16732         * modules/strerror-override (Files): Add strerror.m4.
16733         (configure.ac): Also provide override for 0 when needed.
16734         * doc/posix-functions/strerror.texi (strerror): Document this.
16735         * doc/posix-functions/perror.texi (perror): Likewise.
16736
16737         perror: adjust array size
16738         * modules/perror (Depends-on): Add strerror-override.
16739         * lib/perror.c (perror): Use it to avoid magic number.
16740
16741         strerror-override: reduce size
16742         * lib/strerror-override.c (strerror_override): Use fewer lines.
16743
16744 2011-06-20  Bruno Haible  <bruno@clisp.org>
16745
16746         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16747         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16748
16749 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16750
16751         alloca: port to compilers that can optimize like GCC 4.6.0
16752         * lib/alloca.c (find_stack_direction): New signature, taken from
16753         Autoconf git.  This works with GCC 4.6.0.  This code should never
16754         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16755         be used with other compilers that optimize as well as GCC 4.6.0 does.
16756         (alloca): Adjust to new signature.
16757         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16758         New macro, which patches Autoconf in a similar way.
16759
16760         c-stack: stop worrying about stack direction
16761         * lib/c-stack.c (find_stack_direction): Remove.
16762         (segv_handler): Don't worry about stack direction growth, as it's
16763         too much of a pain to configure this correctly, given how compilers
16764         are optimizing-away our stack-growth detection code.  Instead, assume
16765         that any access to just before or just after the stack is OK.
16766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16767         Don't require AC_FUNC_ALLOCA; no longer needed.
16768
16769 2011-06-20  Eric Blake  <eblake@redhat.com>
16770
16771         test-stat: don't allocate PATH_MAX bytes
16772         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16773         PATH_MAX-sized buffer.
16774         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16775         * modules/stat-tests (Depends-on): Likewise.
16776         * tests/test-fstatat.c (includes): Drop pathmax.h.
16777         * tests/test-stat.c (includes): Likewise.
16778         Reported by Bruno Haible.
16779
16780 2011-06-20  Bruno Haible  <bruno@clisp.org>
16781
16782         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16783         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16784         * lib/float.c: New file.
16785         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16786         REPLACE_FLOAT_LDBL.
16787         * modules/float (Files): Add lib/float.c.
16788         (configure.ac): Invoke AC_LIBOBJ.
16789         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16790
16791 2011-06-20  Bruno Haible  <bruno@clisp.org>
16792
16793         Tests for module 'float'.
16794         * modules/float-tests: New file.
16795         * tests/test-float.c: New file.
16796
16797 2011-06-19  Bruno Haible  <bruno@clisp.org>
16798
16799         isinf: Coding style.
16800         * lib/isinf.c: Use GNU coding style.
16801
16802 2011-06-19  Bruno Haible  <bruno@clisp.org>
16803
16804         linkat test: Avoid test failure on AIX 7.1.
16805         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16806         * tests/test-link.h (test_link): Likewise.
16807
16808 2011-06-19  Bruno Haible  <bruno@clisp.org>
16809
16810         pread test: Avoid test failure on OpenBSD 4.9.
16811         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16812
16813 2011-06-19  Bruno Haible  <bruno@clisp.org>
16814
16815         sprintf-posix: Fix test failure on AIX 7.1.
16816         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16817         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16818         on AIX.
16819         * doc/posix-functions/fprintf.texi: Likewise.
16820         * doc/posix-functions/printf.texi: Likewise.
16821         * doc/posix-functions/snprintf.texi: Likewise.
16822         * doc/posix-functions/sprintf.texi: Likewise.
16823         * doc/posix-functions/vdprintf.texi: Likewise.
16824         * doc/posix-functions/vfprintf.texi: Likewise.
16825         * doc/posix-functions/vprintf.texi: Likewise.
16826         * doc/posix-functions/vsnprintf.texi: Likewise.
16827         * doc/posix-functions/vsprintf.texi: Likewise.
16828
16829 2011-06-19  Bruno Haible  <bruno@clisp.org>
16830
16831         roundl-ieee: Fix test failure on AIX 7.1.
16832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16833         * doc/posix-functions/roundl.texi: Mention problem with negative
16834         arguments.
16835
16836 2011-06-19  Bruno Haible  <bruno@clisp.org>
16837
16838         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16839         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16840         * doc/posix-functions/round.texi: Mention problem with negative
16841         arguments.
16842         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16843
16844 2011-06-19  Bruno Haible  <bruno@clisp.org>
16845
16846         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16847         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16848         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16849         * doc/posix-functions/roundf.texi: Mention problem with negative
16850         arguments.
16851         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16852
16853 2011-06-19  Bruno Haible  <bruno@clisp.org>
16854
16855         ceilf-ieee: Work around bug on MacOS X 10.5.
16856         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16857
16858         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16859         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16860         IEEE compliant, avoid compiler optimizations.
16861         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16862         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16863         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16864         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16865         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16866         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16868         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16869         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16870         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16871
16872 2011-06-19  Bruno Haible  <bruno@clisp.org>
16873
16874         ceilf-ieee: Work around bug on AIX 7.1.
16875         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16876         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16877
16878 2011-06-19  Bruno Haible  <bruno@clisp.org>
16879
16880         ceil-ieee: Work around bug on AIX 7.1.
16881         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16882         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16883
16884 2011-06-18  Bruno Haible  <bruno@clisp.org>
16885
16886         fsync test: Avoid test failure on MacOS X and AIX.
16887         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16888         EINVAL.
16889
16890 2011-06-18  Bruno Haible  <bruno@clisp.org>
16891
16892         openat, fdopendir tests: Fix link errors.
16893         * modules/openat-tests (Depends-on): Add progname.
16894         * modules/fdopendir-tests (Depends-on): Likewise.
16895         * tests/test-fchownat.c: Include progname.h.
16896         (main): Call set_program_name.
16897         * tests/test-fstatat.c: Include progname.h.
16898         (main): Call set_program_name.
16899         * tests/test-mkdirat.c: Include progname.h.
16900         (main): Call set_program_name.
16901         * tests/test-openat.c: Include progname.h.
16902         (main): Call set_program_name.
16903         * tests/test-unlinkat.c: Include progname.h.
16904         (main): Call set_program_name.
16905         * tests/test-fdopendir.c: Include progname.h.
16906         (main): Call set_program_name.
16907
16908 2011-06-18  Bruno Haible  <bruno@clisp.org>
16909
16910         Doc update.
16911         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16912         HP-UX.
16913         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16914
16915 2011-06-18  Bruno Haible  <bruno@clisp.org>
16916
16917         getcwd tests: Avoid compilation error on HP-UX 11.31.
16918         * modules/getcwd-tests (Depends-on): Add pathmax.
16919         * tests/test-getcwd.c: Include pathmax.h.
16920
16921 2011-06-18  Bruno Haible  <bruno@clisp.org>
16922
16923         isfinite, isinf: Fix link error on AIX 6 and 7.
16924         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16925         needed, also test the macro with a 'float' argument.
16926         * m4/isinf.m4 (gl_ISINF): Likewise.
16927
16928 2011-06-18  Bruno Haible  <bruno@clisp.org>
16929
16930         getloadavg: Don't clobber LIBS. Regression from previous commit.
16931         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16932         AC_CHECK_LIB from here...
16933         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16934         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16935         gl_func_getloadavg_done.
16936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16937
16938 2011-06-18  Bruno Haible  <bruno@clisp.org>
16939
16940         clean-temp: Improve documentation.
16941         * lib/clean-temp.h: Explain better how to use this module.
16942         Reported by John Darrington <john@darrington.wattle.id.au>.
16943
16944 2011-06-17  Bruno Haible  <bruno@clisp.org>
16945
16946         pread, pwrite: Avoid cc warning on AIX.
16947         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16948         (pwrite): Likewise.
16949
16950 2011-06-17  Bruno Haible  <bruno@clisp.org>
16951
16952         spawn-pipe tests: Fix link error.
16953         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16955
16956 2011-06-17  Bruno Haible  <bruno@clisp.org>
16957
16958         Tests: Remove unnecessary dependency.
16959         * modules/canonicalize-tests (Depends-on): Remove progname.
16960         * modules/chown-tests (Depends-on): Likewise.
16961         * modules/dirname-tests (Depends-on): Likewise.
16962         * modules/fdopendir-tests (Depends-on): Likewise.
16963         * modules/fdutimensat-tests (Depends-on): Likewise.
16964         * modules/hash-tests (Depends-on): Likewise.
16965         * modules/lchown-tests (Depends-on): Likewise.
16966         * modules/linkat-tests (Depends-on): Likewise.
16967         * modules/renameat-tests (Depends-on): Likewise.
16968         * modules/spawn-pipe-tests (Depends-on): Likewise.
16969         * modules/utimensat-tests (Depends-on): Likewise.
16970
16971 2011-06-17  Bruno Haible  <bruno@clisp.org>
16972
16973         spawn-pipe tests: Fix link error.
16974         * tests/test-spawn-pipe-child.c: Undefine fflush.
16975
16976 2011-06-17  Bruno Haible  <bruno@clisp.org>
16977
16978         Fix tests link errors.
16979         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16980         * modules/chown-tests (Makefile.am): Don't link test-chown with
16981         LIBINTL.
16982         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16983         LIBINTL.
16984         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16985         LIBINTL.
16986         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16987         LIBINTL.
16988
16989 2011-06-16  Bruno Haible  <bruno@clisp.org>
16990
16991         crypto/gc-sha1: Fix recent regression.
16992         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16993         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16994
16995         crypto/gc-md5: Fix recent regression.
16996         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16997
16998         crypto/gc-md4: Fix recent regression.
16999         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17000         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17001
17002         crypto/gc-arctwo: Fix recent regression.
17003         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17004         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17005
17006         crypto/gc-rijndael: Fix recent regression.
17007         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17008         (configure.ac): Invoke AC_LIBOBJ here.
17009         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17011
17012         crypto/gc-hmac-sha1: Fix recent regression.
17013         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17014         (configure.ac): Invoke AC_LIBOBJ here.
17015         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17017
17018         crypto/gc-hmac-md5: Fix recent regression.
17019         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17020         (configure.ac): Invoke AC_LIBOBJ here.
17021         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17023
17024         crypto/gc-des: Fix recent regression.
17025         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17026         (configure.ac): Invoke AC_LIBOBJ here.
17027         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17029
17030         crypto/gc-arcfour: Fix recent regression.
17031         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17032         (configure.ac): Invoke AC_LIBOBJ here.
17033         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17035
17036 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17037
17038         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17039         After the 2011-05-21 change, this macro requires
17040         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17041         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17042
17043 2011-06-16  Bruno Haible  <bruno@clisp.org>
17044
17045         fprintftime: Move AC_LIBOBJ invocations to module description.
17046         * m4/fprintftime.m4: Remove file.
17047         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17048         (configure.ac): Remove gl_FPRINTFTIME call.
17049         (Makefile.am): Augment lib_SOURCES.
17050         Reported by Jim Meyering.
17051
17052 2011-06-16  Bruno Haible  <bruno@clisp.org>
17053
17054         tmpfile-safer: Finish 2011-05-23 commit.
17055         * m4/stdio-safer.m4: Really remove file.
17056         Reported by Jim Meyering.
17057
17058 2011-06-16  Bruno Haible  <bruno@clisp.org>
17059
17060         syntax-check: Fix typo.
17061         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17062         printf-posix.m4.
17063         Reported by Jim Meyering.
17064
17065 2011-06-13  Jim Meyering  <meyering@redhat.com>
17066
17067         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17068         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17069
17070 2011-05-23  Bruno Haible  <bruno@clisp.org>
17071
17072         yesno: Move AC_LIBOBJ invocations to module description.
17073         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17074         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17075
17076 2011-05-23  Bruno Haible  <bruno@clisp.org>
17077
17078         xstrtol: Move AC_LIBOBJ invocations to module description.
17079         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17080         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17081
17082 2011-05-23  Bruno Haible  <bruno@clisp.org>
17083
17084         xstrtold: Move AC_LIBOBJ invocations to module description.
17085         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17086         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17087
17088 2011-05-23  Bruno Haible  <bruno@clisp.org>
17089
17090         xstrtod: Move AC_LIBOBJ invocations to module description.
17091         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17092         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17093
17094 2011-05-23  Bruno Haible  <bruno@clisp.org>
17095
17096         xnanosleep: Move AC_LIBOBJ invocations to module description.
17097         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17098         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17099
17100 2011-05-23  Bruno Haible  <bruno@clisp.org>
17101
17102         xgetcwd: Move AC_LIBOBJ invocations to module description.
17103         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17104         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17105
17106 2011-05-23  Bruno Haible  <bruno@clisp.org>
17107
17108         xalloc: Move AC_LIBOBJ invocations to module description.
17109         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17110         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17111
17112 2011-05-23  Bruno Haible  <bruno@clisp.org>
17113
17114         write-any-file: Move AC_LIBOBJ invocations to module description.
17115         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17116         invocation.
17117         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17118
17119 2011-05-23  Bruno Haible  <bruno@clisp.org>
17120
17121         utimens: Move AC_LIBOBJ invocations to module description.
17122         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17123         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17124
17125 2011-05-23  Bruno Haible  <bruno@clisp.org>
17126
17127         utimecmp: Move AC_LIBOBJ invocations to module description.
17128         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17129         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17130
17131 2011-05-23  Bruno Haible  <bruno@clisp.org>
17132
17133         userspec: Move AC_LIBOBJ invocations to module description.
17134         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17135         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17136
17137 2011-05-23  Bruno Haible  <bruno@clisp.org>
17138
17139         unlinkdir: Move AC_LIBOBJ invocations to module description.
17140         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17141         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17142
17143 2011-05-23  Bruno Haible  <bruno@clisp.org>
17144
17145         unistd-safer: Move AC_LIBOBJ invocations to module description.
17146         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17147         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17148
17149 2011-05-23  Bruno Haible  <bruno@clisp.org>
17150
17151         tempname: Move AC_LIBOBJ invocations to module description.
17152         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17153         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17154
17155 2011-05-23  Bruno Haible  <bruno@clisp.org>
17156
17157         strftime: Move AC_LIBOBJ invocations to module description.
17158         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17159         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17160
17161 2011-05-23  Bruno Haible  <bruno@clisp.org>
17162
17163         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17164         * m4/stdlib-safer.m4: Remove file.
17165         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17166         (configure.ac): Remove gl_STDLIB_SAFER call.
17167         (Makefile.am): Augment lib_SOURCES.
17168
17169 2011-05-23  Bruno Haible  <bruno@clisp.org>
17170
17171         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17172         * m4/stdio-safer.m4: Remove file.
17173         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17174         (configure.ac): Remove gl_TMPFILE_SAFER call.
17175         (Makefile.am): Augment lib_SOURCES.
17176
17177 2011-05-23  Bruno Haible  <bruno@clisp.org>
17178
17179         popen-safer: Move AC_LIBOBJ invocations to module description.
17180         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17181         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17182         (configure.ac): Remove gl_POPEN_SAFER call.
17183         (Makefile.am): Augment lib_SOURCES.
17184
17185 2011-05-23  Bruno Haible  <bruno@clisp.org>
17186
17187         freopen-safer: Move AC_LIBOBJ invocations to module description.
17188         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17189         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17190         (configure.ac): Remove gl_FREOPEN_SAFER call.
17191         (Makefile.am): Augment lib_SOURCES.
17192
17193 2011-05-23  Bruno Haible  <bruno@clisp.org>
17194
17195         fopen-safer: Move AC_LIBOBJ invocations to module description.
17196         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17197         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17198         (configure.ac): Remove gl_FOPEN_SAFER call.
17199         (Makefile.am): Augment lib_SOURCES.
17200
17201 2011-05-23  Bruno Haible  <bruno@clisp.org>
17202
17203         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17204         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17205         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17206
17207 2011-05-23  Bruno Haible  <bruno@clisp.org>
17208
17209         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17210         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17211         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17212
17213 2011-05-23  Bruno Haible  <bruno@clisp.org>
17214
17215         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17216         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17217         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17218
17219 2011-05-23  Bruno Haible  <bruno@clisp.org>
17220
17221         settime: Move AC_LIBOBJ invocations to module description.
17222         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17223         * modules/settime (Makefile.am): Augment lib_SOURCES.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         savedir: Move AC_LIBOBJ invocations to module description.
17228         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17229         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17230
17231 2011-05-23  Bruno Haible  <bruno@clisp.org>
17232
17233         save-cwd: Move AC_LIBOBJ invocations to module description.
17234         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17235         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17236
17237 2011-05-23  Bruno Haible  <bruno@clisp.org>
17238
17239         same: Move AC_LIBOBJ invocations to module description.
17240         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17241         * modules/same (Makefile.am): Augment lib_SOURCES.
17242
17243 2011-05-23  Bruno Haible  <bruno@clisp.org>
17244
17245         safe-write: Move AC_LIBOBJ invocations to module description.
17246         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17247         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17248         instead of gl_SAFE_WRITE.
17249         (Makefile.am): Augment lib_SOURCES.
17250
17251 2011-05-23  Bruno Haible  <bruno@clisp.org>
17252
17253         safe-read: Move AC_LIBOBJ invocations to module description.
17254         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17255         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17256         of gl_SAFE_READ.
17257         (Makefile.am): Augment lib_SOURCES.
17258
17259 2011-05-23  Bruno Haible  <bruno@clisp.org>
17260
17261         safe-alloc: Move AC_LIBOBJ invocations to module description.
17262         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17263         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17264
17265 2011-05-23  Bruno Haible  <bruno@clisp.org>
17266
17267         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17268         * m4/rijndael.m4: Remove file.
17269         * modules/crypto/rijndael (Files): Remove it.
17270         (configure.ac): Remove gl_RIJNDAEL call.
17271         (Makefile.am): Augment lib_SOURCES.
17272
17273 2011-05-23  Bruno Haible  <bruno@clisp.org>
17274
17275         readtokens: Move AC_LIBOBJ invocations to module description.
17276         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17277         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17278
17279 2011-05-23  Bruno Haible  <bruno@clisp.org>
17280
17281         read-file: Move AC_LIBOBJ invocations to module description.
17282         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17283         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17284         of gl_FUNC_READ_FILE.
17285         (Makefile.am): Augment lib_SOURCES.
17286
17287 2011-05-23  Bruno Haible  <bruno@clisp.org>
17288
17289         quotearg: Move AC_LIBOBJ invocations to module description.
17290         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17291         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17292
17293 2011-05-23  Bruno Haible  <bruno@clisp.org>
17294
17295         quote: Move AC_LIBOBJ invocations to module description.
17296         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17297         * modules/quote (Makefile.am): Augment lib_SOURCES.
17298
17299 2011-05-23  Bruno Haible  <bruno@clisp.org>
17300
17301         posixver: Move AC_LIBOBJ invocations to module description.
17302         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17303         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17304
17305 2011-05-23  Bruno Haible  <bruno@clisp.org>
17306
17307         posixtm: Move AC_LIBOBJ invocations to module description.
17308         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17309         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17310
17311 2011-05-23  Bruno Haible  <bruno@clisp.org>
17312
17313         physmem: Move AC_LIBOBJ invocations to module description.
17314         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17315         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17316
17317 2011-05-23  Bruno Haible  <bruno@clisp.org>
17318
17319         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17320         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17321         invocation.
17322         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17323
17324 2011-05-23  Bruno Haible  <bruno@clisp.org>
17325
17326         mpsort: Move AC_LIBOBJ invocations to module description.
17327         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17328         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17329
17330 2011-05-23  Bruno Haible  <bruno@clisp.org>
17331
17332         modechange: Move AC_LIBOBJ invocations to module description.
17333         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17334         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17335
17336 2011-05-23  Bruno Haible  <bruno@clisp.org>
17337
17338         mkdir-p: Move AC_LIBOBJ invocations to module description.
17339         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17340         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17341
17342 2011-05-23  Bruno Haible  <bruno@clisp.org>
17343
17344         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17345         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17346         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17347
17348 2011-05-23  Bruno Haible  <bruno@clisp.org>
17349
17350         mgetgroups: Move AC_LIBOBJ invocations to module description.
17351         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17352         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17353
17354 2011-05-23  Bruno Haible  <bruno@clisp.org>
17355
17356         memxor: Move AC_LIBOBJ invocations to module description.
17357         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17358         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17359
17360 2011-05-23  Bruno Haible  <bruno@clisp.org>
17361
17362         memcoll: Move AC_LIBOBJ invocations to module description.
17363         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17364         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17365
17366 2011-05-23  Bruno Haible  <bruno@clisp.org>
17367
17368         memcasecmp: Move AC_LIBOBJ invocations to module description.
17369         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17370         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17371
17372 2011-05-23  Bruno Haible  <bruno@clisp.org>
17373
17374         crypto/md5: Move AC_LIBOBJ invocations to module description.
17375         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17376         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17377
17378 2011-05-23  Bruno Haible  <bruno@clisp.org>
17379
17380         crypto/md4: Move AC_LIBOBJ invocations to module description.
17381         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17382         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17383
17384 2011-05-23  Bruno Haible  <bruno@clisp.org>
17385
17386         crypto/md2: Move AC_LIBOBJ invocations to module description.
17387         * m4/md2.m4: Remove file.
17388         * modules/crypto/md2 (Files): Remove it.
17389         (configure.ac): Remove gl_MD2 call.
17390         (Makefile.am): Augment lib_SOURCES.
17391
17392 2011-05-23  Bruno Haible  <bruno@clisp.org>
17393
17394         long-options: Move AC_LIBOBJ invocations to module description.
17395         * m4/long-options.m4: Remove file.
17396         * modules/long-options (Files): Remove it.
17397         (configure.ac): Remove gl_LONG_OPTIONS call.
17398         (Makefile.am): Augment lib_SOURCES.
17399
17400 2011-05-23  Bruno Haible  <bruno@clisp.org>
17401
17402         i-ring: Move AC_LIBOBJ invocations to module description.
17403         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17404         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17405
17406 2011-05-23  Bruno Haible  <bruno@clisp.org>
17407
17408         idcache: Move AC_LIBOBJ invocations to module description.
17409         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17410         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17411
17412 2011-05-23  Bruno Haible  <bruno@clisp.org>
17413
17414         human: Move AC_LIBOBJ invocations to module description.
17415         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17416         * modules/human (Makefile.am): Augment lib_SOURCES.
17417
17418 2011-05-23  Bruno Haible  <bruno@clisp.org>
17419
17420         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17421         * m4/hmac-sha1.m4: Remove file.
17422         * modules/crypto/hmac-sha1 (Files): Remove it.
17423         (configure.ac): Remove gl_HMAC_SHA1 call.
17424         (Makefile.am): Augment lib_SOURCES.
17425
17426 2011-05-23  Bruno Haible  <bruno@clisp.org>
17427
17428         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17429         * m4/hmac-md5.m4: Remove file.
17430         * modules/crypto/hmac-md5 (Files): Remove it.
17431         (configure.ac): Remove gl_HMAC_MD5 call.
17432         (Makefile.am): Augment lib_SOURCES.
17433
17434 2011-05-23  Bruno Haible  <bruno@clisp.org>
17435
17436         hash: Move AC_LIBOBJ invocations to module description.
17437         * m4/hash.m4: Remove file.
17438         * modules/hash (Files): Remove it.
17439         (configure.ac): Remove gl_HASH call.
17440         (Makefile.am): Augment lib_SOURCES.
17441
17442 2011-05-23  Bruno Haible  <bruno@clisp.org>
17443
17444         hard-locale: Move AC_LIBOBJ invocations to module description.
17445         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17446         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17447
17448 2011-05-23  Bruno Haible  <bruno@clisp.org>
17449
17450         getugroups: Move AC_LIBOBJ invocations to module description.
17451         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17452         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17453
17454 2011-05-23  Bruno Haible  <bruno@clisp.org>
17455
17456         gettime: Move AC_LIBOBJ invocations to module description.
17457         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17458         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17459
17460 2011-05-23  Bruno Haible  <bruno@clisp.org>
17461
17462         getndelim2: Move AC_LIBOBJ invocations to module description.
17463         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17464         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17465
17466 2011-05-23  Bruno Haible  <bruno@clisp.org>
17467
17468         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17469         * m4/gc-pbkdf2-sha1.m4: Remove file.
17470         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17471         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17472         (Makefile.am): Augment lib_SOURCES.
17473
17474 2011-05-23  Bruno Haible  <bruno@clisp.org>
17475
17476         fts: Move AC_LIBOBJ invocations to module description.
17477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17478         * modules/fts (configure.ac): ... to here.
17479
17480 2011-05-23  Bruno Haible  <bruno@clisp.org>
17481
17482         file-type: Move AC_LIBOBJ invocations to module description.
17483         * m4/file-type.m4: Remove file.
17484         * modules/file-type (Files): Remove it.
17485         (configure.ac): Remove gl_FILE_TYPE call.
17486         (Makefile.am): Augment lib_SOURCES.
17487
17488 2011-05-23  Bruno Haible  <bruno@clisp.org>
17489
17490         filenamecat*: Respect rules for use of AC_LIBOBJ.
17491         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17492         Remove AC_LIBOBJ invocation.
17493         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17494         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17495
17496 2011-05-23  Bruno Haible  <bruno@clisp.org>
17497
17498         filemode: Move AC_LIBOBJ invocations to module description.
17499         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17500         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17501
17502 2011-05-23  Bruno Haible  <bruno@clisp.org>
17503
17504         openat-safer: Move AC_LIBOBJ invocations to module description.
17505         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17506         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17507
17508 2011-05-23  Bruno Haible  <bruno@clisp.org>
17509
17510         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17511         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17512         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17513
17514 2011-05-23  Bruno Haible  <bruno@clisp.org>
17515
17516         exclude: Move AC_LIBOBJ invocations to module description.
17517         * m4/exclude.m4: Remove file.
17518         * modules/exclude (Files): Remove it.
17519         (configure.ac): Remove gl_EXCLUDE call.
17520         (Makefile.am): Augment lib_SOURCES.
17521
17522 2011-05-23  Bruno Haible  <bruno@clisp.org>
17523
17524         dirname*: Respect rules for use of AC_LIBOBJ.
17525         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17526         invocations.
17527         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17528         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17529
17530 2011-05-23  Bruno Haible  <bruno@clisp.org>
17531
17532         dirent-safer: Move AC_LIBOBJ invocations to module description.
17533         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17534         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17535
17536 2011-05-23  Bruno Haible  <bruno@clisp.org>
17537
17538         crypto/des: Move AC_LIBOBJ invocations to module description.
17539         * m4/des.m4: Remove file.
17540         * modules/crypto/des (Files): Remove it.
17541         (configure.ac): Remove gl_DES call.
17542         (Makefile.am): Augment lib_SOURCES.
17543
17544 2011-05-23  Bruno Haible  <bruno@clisp.org>
17545
17546         cycle-check: Move AC_LIBOBJ invocations to module description.
17547         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17548         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17549
17550 2011-05-23  Bruno Haible  <bruno@clisp.org>
17551
17552         c-strtold: Move AC_LIBOBJ invocations to module description.
17553         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17554         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17555
17556 2011-05-23  Bruno Haible  <bruno@clisp.org>
17557
17558         c-strtod: Move AC_LIBOBJ invocations to module description.
17559         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17560         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17561
17562 2011-05-23  Bruno Haible  <bruno@clisp.org>
17563
17564         crc: Move AC_LIBOBJ invocations to module description.
17565         * m4/crc.m4: Remove file.
17566         * modules/crc (Files): Remove it.
17567         (configure.ac): Remove gl_CRC call.
17568         (Makefile.am): Augment lib_SOURCES.
17569
17570 2011-05-23  Bruno Haible  <bruno@clisp.org>
17571
17572         close-stream: Move AC_LIBOBJ invocations to module description.
17573         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17574         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17575
17576 2011-05-23  Bruno Haible  <bruno@clisp.org>
17577
17578         closeout: Move AC_LIBOBJ invocations to module description.
17579         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17580         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17581
17582 2011-05-23  Bruno Haible  <bruno@clisp.org>
17583
17584         closein: Move AC_LIBOBJ invocations to module description.
17585         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17586         * modules/closein (Makefile.am): Augment lib_SOURCES.
17587
17588 2011-05-23  Bruno Haible  <bruno@clisp.org>
17589
17590         cloexec: Move AC_LIBOBJ invocations to module description.
17591         * m4/cloexec.m4: Remove file.
17592         * modules/cloexec (Files): Remove it.
17593         (configure.ac): Remove gl_CLOEXEC call.
17594         (Makefile.am): Augment lib_SOURCES.
17595
17596 2011-05-23  Bruno Haible  <bruno@clisp.org>
17597
17598         check-version: Move AC_LIBOBJ invocations to module description.
17599         * m4/check-version.m4: Remove file.
17600         * modules/check-version (Files): Remove it.
17601         (configure.ac): Remove gl_CHECK_VERSION call.
17602         (Makefile.am): Augment lib_SOURCES.
17603
17604 2011-05-23  Bruno Haible  <bruno@clisp.org>
17605
17606         chdir-safer: Move AC_LIBOBJ invocations to module description.
17607         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17608         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17609
17610 2011-05-23  Bruno Haible  <bruno@clisp.org>
17611
17612         canonicalize: Move AC_LIBOBJ invocations to module description.
17613         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17614         AC_LIBOBJ invocation.
17615         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17616
17617 2011-05-23  Bruno Haible  <bruno@clisp.org>
17618
17619         canon-host: Move AC_LIBOBJ invocations to module description.
17620         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17621         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17622         instead of gl_CANON_HOST.
17623         (Makefile.am): Augment lib_SOURCES.
17624
17625 2011-05-23  Bruno Haible  <bruno@clisp.org>
17626
17627         backupfile: Move AC_LIBOBJ invocations to module description.
17628         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17629         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17630
17631 2011-05-23  Bruno Haible  <bruno@clisp.org>
17632
17633         argmatch: Move AC_LIBOBJ invocations to module description.
17634         * m4/argmatch.m4: Remove file.
17635         * modules/argmatch (Files): Remove it.
17636         (configure.ac): Remove gl_ARGMATCH call.
17637         (Makefile.am): Augment lib_SOURCES.
17638
17639 2011-05-23  Bruno Haible  <bruno@clisp.org>
17640
17641         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17642         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17643         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17644
17645 2011-05-23  Bruno Haible  <bruno@clisp.org>
17646
17647         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17648         * m4/arcfour.m4: Remove file.
17649         * modules/crypto/arcfour (Files): Remove it.
17650         (configure.ac): Remove gl_ARCFOUR call.
17651         (Makefile.am): Augment lib_SOURCES.
17652
17653 2011-05-22  Bruno Haible  <bruno@clisp.org>
17654
17655         write: Move AC_LIBOBJ invocations to module description.
17656         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17657         * modules/write (configure.ac): ... to here.
17658
17659 2011-05-22  Bruno Haible  <bruno@clisp.org>
17660
17661         wmemset: Move AC_LIBOBJ invocations to module description.
17662         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17663         here...
17664         * modules/wmemset (configure.ac): ... to here.
17665
17666 2011-05-22  Bruno Haible  <bruno@clisp.org>
17667
17668         wmemmove: Move AC_LIBOBJ invocations to module description.
17669         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17670         here...
17671         * modules/wmemmove (configure.ac): ... to here.
17672
17673 2011-05-22  Bruno Haible  <bruno@clisp.org>
17674
17675         wmemcpy: Move AC_LIBOBJ invocations to module description.
17676         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17677         here...
17678         * modules/wmemcpy (configure.ac): ... to here.
17679
17680 2011-05-22  Bruno Haible  <bruno@clisp.org>
17681
17682         wmemcmp: Move AC_LIBOBJ invocations to module description.
17683         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17684         here...
17685         * modules/wmemcmp (configure.ac): ... to here.
17686
17687 2011-05-22  Bruno Haible  <bruno@clisp.org>
17688
17689         wmemchr: Move AC_LIBOBJ invocations to module description.
17690         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17691         here...
17692         * modules/wmemchr (configure.ac): ... to here.
17693
17694 2011-05-22  Bruno Haible  <bruno@clisp.org>
17695
17696         wcswidth: Move AC_LIBOBJ invocations to module description.
17697         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17698         here...
17699         * modules/wcswidth (configure.ac): ... to here.
17700
17701 2011-05-22  Bruno Haible  <bruno@clisp.org>
17702
17703         wcwidth: Respect rules for use of AC_LIBOBJ.
17704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17705         invocation from here...
17706         * modules/wcwidth (configure.ac): ... to here.
17707         (Depends-on): Update conditions.
17708
17709 2011-05-22  Bruno Haible  <bruno@clisp.org>
17710
17711         wctype: Move AC_LIBOBJ invocations to module description.
17712         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17713         invocation from here...
17714         * modules/wctype (configure.ac): ... to here.
17715         (Depends-on): Update conditions.
17716
17717 2011-05-22  Bruno Haible  <bruno@clisp.org>
17718
17719         wctrans: Move AC_LIBOBJ invocations to module description.
17720         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17721         invocation from here...
17722         * modules/wctrans (configure.ac): ... to here.
17723
17724 2011-05-22  Bruno Haible  <bruno@clisp.org>
17725
17726         wctomb: Move AC_LIBOBJ invocations to module description.
17727         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17728         invocations from here...
17729         * modules/wctomb (configure.ac): ... to here.
17730
17731 2011-05-22  Bruno Haible  <bruno@clisp.org>
17732
17733         wctob: Move AC_LIBOBJ invocations to module description.
17734         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17735         gl_PREREQ_WCTOB invocations from here...
17736         * modules/wctob (configure.ac): ... to here.
17737         (Depends-on): Update conditions.
17738
17739 2011-05-22  Bruno Haible  <bruno@clisp.org>
17740
17741         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17742         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17743         here...
17744         * modules/wcsxfrm (configure.ac): ... to here.
17745
17746 2011-05-22  Bruno Haible  <bruno@clisp.org>
17747
17748         wcstok: Move AC_LIBOBJ invocations to module description.
17749         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17750         * modules/wcstok (configure.ac): ... to here.
17751
17752 2011-05-22  Bruno Haible  <bruno@clisp.org>
17753
17754         wcsstr: Move AC_LIBOBJ invocations to module description.
17755         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17756         * modules/wcsstr (configure.ac): ... to here.
17757
17758 2011-05-22  Bruno Haible  <bruno@clisp.org>
17759
17760         wcsspn: Move AC_LIBOBJ invocations to module description.
17761         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17762         * modules/wcsspn (configure.ac): ... to here.
17763
17764 2011-05-22  Bruno Haible  <bruno@clisp.org>
17765
17766         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17767         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17768         gl_PREREQ_WCSRTOMBS invocations from here...
17769         * modules/wcsrtombs (configure.ac): ... to here.
17770
17771 2011-05-22  Bruno Haible  <bruno@clisp.org>
17772
17773         wcsrchr: Move AC_LIBOBJ invocations to module description.
17774         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17775         here...
17776         * modules/wcsrchr (configure.ac): ... to here.
17777
17778 2011-05-22  Bruno Haible  <bruno@clisp.org>
17779
17780         wcspbrk: Move AC_LIBOBJ invocations to module description.
17781         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17782         here...
17783         * modules/wcspbrk (configure.ac): ... to here.
17784
17785 2011-05-22  Bruno Haible  <bruno@clisp.org>
17786
17787         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17788         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17789         gl_PREREQ_WCSNRTOMBS invocations from here...
17790         * modules/wcsnrtombs (configure.ac): ... to here.
17791
17792 2011-05-22  Bruno Haible  <bruno@clisp.org>
17793
17794         wcsnlen: Move AC_LIBOBJ invocations to module description.
17795         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17796         here...
17797         * modules/wcsnlen (configure.ac): ... to here.
17798
17799 2011-05-22  Bruno Haible  <bruno@clisp.org>
17800
17801         wcsncpy: Move AC_LIBOBJ invocations to module description.
17802         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17803         here...
17804         * modules/wcsncpy (configure.ac): ... to here.
17805
17806 2011-05-22  Bruno Haible  <bruno@clisp.org>
17807
17808         wcsncmp: Move AC_LIBOBJ invocations to module description.
17809         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17810         here...
17811         * modules/wcsncmp (configure.ac): ... to here.
17812
17813 2011-05-22  Bruno Haible  <bruno@clisp.org>
17814
17815         wcsncat: Move AC_LIBOBJ invocations to module description.
17816         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17817         here...
17818         * modules/wcsncat (configure.ac): ... to here.
17819
17820 2011-05-22  Bruno Haible  <bruno@clisp.org>
17821
17822         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17823         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17824         from here...
17825         * modules/wcsncasecmp (configure.ac): ... to here.
17826
17827 2011-05-22  Bruno Haible  <bruno@clisp.org>
17828
17829         wcslen: Move AC_LIBOBJ invocations to module description.
17830         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17831         * modules/wcslen (configure.ac): ... to here.
17832
17833 2011-05-22  Bruno Haible  <bruno@clisp.org>
17834
17835         wcsdup: Move AC_LIBOBJ invocations to module description.
17836         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17837         * modules/wcsdup (configure.ac): ... to here.
17838
17839 2011-05-22  Bruno Haible  <bruno@clisp.org>
17840
17841         wcscspn: Move AC_LIBOBJ invocations to module description.
17842         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17843         here...
17844         * modules/wcscspn (configure.ac): ... to here.
17845
17846 2011-05-22  Bruno Haible  <bruno@clisp.org>
17847
17848         wcscpy: Move AC_LIBOBJ invocations to module description.
17849         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17850         * modules/wcscpy (configure.ac): ... to here.
17851
17852 2011-05-22  Bruno Haible  <bruno@clisp.org>
17853
17854         wcscoll: Move AC_LIBOBJ invocations to module description.
17855         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17856         here...
17857         * modules/wcscoll (configure.ac): ... to here.
17858
17859 2011-05-22  Bruno Haible  <bruno@clisp.org>
17860
17861         wcscmp: Move AC_LIBOBJ invocations to module description.
17862         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17863         * modules/wcscmp (configure.ac): ... to here.
17864
17865 2011-05-22  Bruno Haible  <bruno@clisp.org>
17866
17867         wcschr: Move AC_LIBOBJ invocations to module description.
17868         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17869         * modules/wcschr (configure.ac): ... to here.
17870
17871 2011-05-22  Bruno Haible  <bruno@clisp.org>
17872
17873         wcscat: Move AC_LIBOBJ invocations to module description.
17874         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17875         * modules/wcscat (configure.ac): ... to here.
17876
17877 2011-05-22  Bruno Haible  <bruno@clisp.org>
17878
17879         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17880         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17881         here...
17882         * modules/wcscasecmp (configure.ac): ... to here.
17883
17884 2011-05-22  Bruno Haible  <bruno@clisp.org>
17885
17886         wcrtomb: Move AC_LIBOBJ invocations to module description.
17887         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17888         invocations from here...
17889         * modules/wcrtomb (configure.ac): ... to here.
17890
17891 2011-05-22  Bruno Haible  <bruno@clisp.org>
17892
17893         wcpncpy: Move AC_LIBOBJ invocations to module description.
17894         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17895         here...
17896         * modules/wcpncpy (configure.ac): ... to here.
17897
17898 2011-05-22  Bruno Haible  <bruno@clisp.org>
17899
17900         wcpcpy: Move AC_LIBOBJ invocations to module description.
17901         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17902         * modules/wcpcpy (configure.ac): ... to here.
17903
17904 2011-05-22  Bruno Haible  <bruno@clisp.org>
17905
17906         waitpid: Move AC_LIBOBJ invocations to module description.
17907         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17908         invocation from here...
17909         * modules/waitpid (configure.ac): ... to here.
17910
17911 2011-05-22  Bruno Haible  <bruno@clisp.org>
17912
17913         utimensat: Move AC_LIBOBJ invocations to module description.
17914         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17915         here...
17916         * modules/utimensat (configure.ac): ... to here.
17917
17918 2011-05-22  Bruno Haible  <bruno@clisp.org>
17919
17920         usleep: Move AC_LIBOBJ invocations to module description.
17921         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17922         here...
17923         * modules/usleep (configure.ac): ... to here.
17924
17925 2011-05-22  Bruno Haible  <bruno@clisp.org>
17926
17927         unlockpt: Move AC_LIBOBJ invocations to module description.
17928         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17929         gl_PREREQ_UNLOCKPT invocations from here...
17930         * modules/unlockpt (configure.ac): ... to here.
17931
17932 2011-05-22  Bruno Haible  <bruno@clisp.org>
17933
17934         unlink: Respect rules for use of AC_LIBOBJ.
17935         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17936         * modules/unlink (configure.ac): ... to here.
17937
17938 2011-05-22  Bruno Haible  <bruno@clisp.org>
17939
17940         uname: Move AC_LIBOBJ invocations to module description.
17941         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17943         here...
17944         * modules/uname (configure.ac): ... to here.
17945
17946 2011-05-22  Bruno Haible  <bruno@clisp.org>
17947
17948         ttyname_r: Move AC_LIBOBJ invocations to module description.
17949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17950         gl_PREREQ_TTYNAME_R invocations from here...
17951         * modules/ttyname_r (configure.ac): ... to here.
17952
17953 2011-05-22  Bruno Haible  <bruno@clisp.org>
17954
17955         tsearch: Move AC_LIBOBJ invocations to module description.
17956         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17957         invocations from here...
17958         * modules/tsearch (configure.ac): ... to here.
17959
17960 2011-05-22  Bruno Haible  <bruno@clisp.org>
17961
17962         towctrans: Move AC_LIBOBJ invocations to module description.
17963         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17964         AC_LIBOBJ invocation from here...
17965         * modules/towctrans (configure.ac): ... to here.
17966
17967 2011-05-22  Bruno Haible  <bruno@clisp.org>
17968
17969         tmpfile: Move AC_LIBOBJ invocations to module description.
17970         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17971         invocations from here...
17972         * modules/tmpfile (configure.ac): ... to here.
17973
17974 2011-05-22  Bruno Haible  <bruno@clisp.org>
17975
17976         times: Move AC_LIBOBJ invocations to module description.
17977         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17978         * modules/times (configure.ac): ... to here.
17979
17980 2011-05-22  Bruno Haible  <bruno@clisp.org>
17981
17982         time_r: Move AC_LIBOBJ invocations to module description.
17983         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17984         invocations from here...
17985         * modules/time_r (configure.ac): ... to here.
17986
17987 2011-05-22  Bruno Haible  <bruno@clisp.org>
17988
17989         timegm: Move AC_LIBOBJ invocations to module description.
17990         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17991         invocations from here...
17992         * modules/timegm (configure.ac): ... to here.
17993
17994 2011-05-22  Bruno Haible  <bruno@clisp.org>
17995
17996         tcgetsid: Move AC_LIBOBJ invocations to module description.
17997         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17998         and gl_PREREQ_TCGETSID invocations from here...
17999         * modules/tcgetsid (configure.ac): ... to here.
18000         (Depends-on): Update conditions.
18001
18002 2011-05-22  Bruno Haible  <bruno@clisp.org>
18003
18004         symlinkat: Move AC_LIBOBJ invocations to module description.
18005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18006         here...
18007         * modules/symlinkat (configure.ac): ... to here.
18008
18009 2011-05-22  Bruno Haible  <bruno@clisp.org>
18010
18011         symlink: Move AC_LIBOBJ invocations to module description.
18012         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18013         here...
18014         * modules/symlink (configure.ac): ... to here.
18015
18016 2011-05-22  Bruno Haible  <bruno@clisp.org>
18017
18018         strverscmp: Move AC_LIBOBJ invocations to module description.
18019         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18021         from here...
18022         * modules/strverscmp (configure.ac): ... to here.
18023
18024 2011-05-22  Bruno Haible  <bruno@clisp.org>
18025
18026         strtok_r: Move AC_LIBOBJ invocations to module description.
18027         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18028         and gl_PREREQ_STRTOK_R invocations from here...
18029         * modules/strtok_r (configure.ac): ... to here.
18030         (Depends-on): Update conditions.
18031
18032 2011-05-22  Bruno Haible  <bruno@clisp.org>
18033
18034         strtoumax: Move AC_LIBOBJ invocations to module description.
18035         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18036         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18037         from here...
18038         * modules/strtoumax (configure.ac): ... to here.
18039
18040 2011-05-22  Bruno Haible  <bruno@clisp.org>
18041
18042         strtoimax: Move AC_LIBOBJ invocations to module description.
18043         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18045         from here...
18046         * modules/strtoimax (configure.ac): ... to here.
18047
18048 2011-05-22  Bruno Haible  <bruno@clisp.org>
18049
18050         strtoull: Move AC_LIBOBJ invocations to module description.
18051         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18053         from here...
18054         * modules/strtoull (configure.ac): ... to here.
18055
18056 2011-05-22  Bruno Haible  <bruno@clisp.org>
18057
18058         strtoll: Move AC_LIBOBJ invocations to module description.
18059         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18061         here...
18062         * modules/strtoll (configure.ac): ... to here.
18063
18064 2011-05-22  Bruno Haible  <bruno@clisp.org>
18065
18066         strtoul: Move AC_LIBOBJ invocations to module description.
18067         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18068         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18069         * modules/strtoul (configure.ac): ... to here.
18070
18071 2011-05-22  Bruno Haible  <bruno@clisp.org>
18072
18073         strtol: Move AC_LIBOBJ invocations to module description.
18074         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18075         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18076         * modules/strtol (configure.ac): ... to here.
18077
18078 2011-05-22  Bruno Haible  <bruno@clisp.org>
18079
18080         strtod: Move AC_LIBOBJ invocations to module description.
18081         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18082         invocations from here...
18083         * modules/strtod (configure.ac): ... to here.
18084
18085 2011-05-22  Bruno Haible  <bruno@clisp.org>
18086
18087         strstr*: Move AC_LIBOBJ invocations to module description.
18088         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18089         invocations from here...
18090         * modules/strstr-simple (configure.ac): ... to here.
18091         * modules/strstr (configure.ac): ... and here.
18092
18093 2011-05-22  Bruno Haible  <bruno@clisp.org>
18094
18095         strsignal: Move AC_LIBOBJ invocations to module description.
18096         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18097         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18098         * modules/strsignal (configure.ac): ... to here.
18099         (Depends-on): Update conditions.
18100
18101 2011-05-22  Bruno Haible  <bruno@clisp.org>
18102
18103         strsep: Move AC_LIBOBJ invocations to module description.
18104         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18105         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18106         here...
18107         * modules/strsep (configure.ac): ... to here.
18108
18109 2011-05-22  Bruno Haible  <bruno@clisp.org>
18110
18111         strptime: Move AC_LIBOBJ invocations to module description.
18112         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18113         gl_PREREQ_STRPTIME invocations from here...
18114         * modules/strptime (configure.ac): ... to here.
18115
18116 2011-05-22  Bruno Haible  <bruno@clisp.org>
18117
18118         strpbrk: Move AC_LIBOBJ invocations to module description.
18119         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18120         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18121         here...
18122         * modules/strpbrk (configure.ac): ... to here.
18123
18124 2011-05-22  Bruno Haible  <bruno@clisp.org>
18125
18126         strnlen: Move AC_LIBOBJ invocations to module description.
18127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18128         invocations from here...
18129         * modules/strnlen (configure.ac): ... to here.
18130
18131 2011-05-22  Bruno Haible  <bruno@clisp.org>
18132
18133         strndup: Move AC_LIBOBJ invocations to module description.
18134         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18135         invocations from here...
18136         * modules/strndup (configure.ac): ... to here.
18137         (Depends-on): Update conditions.
18138
18139 2011-05-22  Bruno Haible  <bruno@clisp.org>
18140
18141         strncat: Move AC_LIBOBJ invocations to module description.
18142         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18143         invocations from here...
18144         * modules/strncat (configure.ac): ... to here.
18145
18146 2011-05-22  Bruno Haible  <bruno@clisp.org>
18147
18148         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18149         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18150         invocations from here...
18151         * modules/strdup (configure.ac): ... to here.
18152         * modules/strdup-posix (configure.ac): ... and here.
18153
18154 2011-05-22  Bruno Haible  <bruno@clisp.org>
18155
18156         strcspn: Move AC_LIBOBJ invocations to module description.
18157         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18158         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18159         here...
18160         * modules/strcspn (configure.ac): ... to here.
18161
18162 2011-05-22  Bruno Haible  <bruno@clisp.org>
18163
18164         strchrnul: Move AC_LIBOBJ invocations to module description.
18165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18166         gl_PREREQ_STRCHRNUL invocations from here...
18167         * modules/strchrnul (configure.ac): ... to here.
18168
18169 2011-05-22  Bruno Haible  <bruno@clisp.org>
18170
18171         strcasestr*: Move AC_LIBOBJ invocations to module description.
18172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18173         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18174         * modules/strcasestr-simple (configure.ac): ... to here.
18175         * modules/strcasestr (configure.ac): ... and here.
18176
18177 2011-05-22  Bruno Haible  <bruno@clisp.org>
18178
18179         strcase: Move AC_LIBOBJ invocations to module description.
18180         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18181         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18182         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18183         gl_PREREQ_STRNCASECMP invocations from here...
18184         * modules/strcase (configure.ac): ... to here.
18185
18186 2011-05-22  Bruno Haible  <bruno@clisp.org>
18187
18188         stpncpy: Move AC_LIBOBJ invocations to module description.
18189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18190         here...
18191         * modules/stpncpy (configure.ac): ... to here.
18192
18193 2011-05-22  Bruno Haible  <bruno@clisp.org>
18194
18195         stpcpy: Move AC_LIBOBJ invocations to module description.
18196         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18198         here...
18199         * modules/stpcpy (configure.ac): ... to here.
18200
18201 2011-05-21  Bruno Haible  <bruno@clisp.org>
18202
18203         stat: Move AC_LIBOBJ invocations to module description.
18204         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18205         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18206         here...
18207         * modules/stat (configure.ac): ... to here.
18208
18209 2011-05-21  Bruno Haible  <bruno@clisp.org>
18210
18211         sleep: Move AC_LIBOBJ invocations to module description.
18212         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18213         * modules/sleep (configure.ac): ... to here.
18214
18215 2011-05-21  Bruno Haible  <bruno@clisp.org>
18216
18217         signbit: Move AC_LIBOBJ invocations to module description.
18218         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18219         * modules/signbit (configure.ac): ... to here.
18220
18221 2011-05-21  Bruno Haible  <bruno@clisp.org>
18222
18223         sigprocmask: Move AC_LIBOBJ invocations to module description.
18224         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18225         gl_PREREQ_SIGPROMASK invocations from here...
18226         * modules/sigprocmask (configure.ac): ... to here.
18227
18228 2011-05-21  Bruno Haible  <bruno@clisp.org>
18229
18230         sigaction: Move AC_LIBOBJ invocations to module description.
18231         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18232         gl_PREREQ_SIGACTION invocations from here...
18233         * modules/sigaction (configure.ac): ... to here.
18234
18235 2011-05-21  Bruno Haible  <bruno@clisp.org>
18236
18237         sig2str: Move AC_LIBOBJ invocations to module description.
18238         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18239         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18240         here...
18241         * modules/sig2str (configure.ac): ... to here.
18242
18243 2011-05-21  Bruno Haible  <bruno@clisp.org>
18244
18245         setlocale: Move AC_LIBOBJ invocations to module description.
18246         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18247         gl_PREREQ_SETLOCALE invocations from here...
18248         * modules/setlocale (configure.ac): ... to here.
18249
18250 2011-05-21  Bruno Haible  <bruno@clisp.org>
18251
18252         unsetenv: Move AC_LIBOBJ invocations to module description.
18253         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18254         and gl_PREREQ_UNSETENV invocations from here...
18255         * modules/unsetenv (configure.ac): ... to here.
18256         (Depends-on): Update.
18257
18258 2011-05-21  Bruno Haible  <bruno@clisp.org>
18259
18260         setenv: Move AC_LIBOBJ invocations to module description.
18261         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18262         here...
18263         * modules/setenv (configure.ac): ... to here.
18264
18265 2011-05-21  Bruno Haible  <bruno@clisp.org>
18266
18267         selinux-h: Move AC_LIBOBJ invocations to module description.
18268         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18269         AC_LIBOBJ invocation from here...
18270         * modules/selinux-h (configure.ac): ... to here.
18271
18272 2011-05-21  Bruno Haible  <bruno@clisp.org>
18273
18274         select: Respect rules for use of AC_LIBOBJ.
18275         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18276         here...
18277         * modules/select (configure.ac): ... to here.
18278
18279 2011-05-21  Bruno Haible  <bruno@clisp.org>
18280
18281         scandir: Move AC_LIBOBJ invocations to module description.
18282         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18283         invocations from here...
18284         * modules/scandir (configure.ac): ... to here.
18285
18286 2011-05-21  Bruno Haible  <bruno@clisp.org>
18287
18288         rpmatch: Move AC_LIBOBJ invocations to module description.
18289         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18291         here...
18292         * modules/rpmatch (configure.ac): ... to here.
18293
18294 2011-05-21  Bruno Haible  <bruno@clisp.org>
18295
18296         rmdir: Respect rules for use of AC_LIBOBJ.
18297         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18298         * modules/rmdir (configure.ac): ... to here.
18299
18300 2011-05-21  Bruno Haible  <bruno@clisp.org>
18301
18302         renameat: Move AC_LIBOBJ invocations to module description.
18303         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18304         here...
18305         * modules/renameat (configure.ac): ... to here.
18306
18307 2011-05-21  Bruno Haible  <bruno@clisp.org>
18308
18309         rename: Respect rules for use of AC_LIBOBJ.
18310         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18311         here...
18312         * modules/rename (configure.ac): ... to here.
18313
18314 2011-05-21  Bruno Haible  <bruno@clisp.org>
18315
18316         remove: Move AC_LIBOBJ invocations to module description.
18317         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18318         here...
18319         * modules/remove (configure.ac): ... to here.
18320
18321 2011-05-21  Bruno Haible  <bruno@clisp.org>
18322
18323         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18324         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18325         macro.
18326         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18327         * modules/relocatable-lib (configure.ac): ... to here.
18328         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18329         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18330
18331 2011-05-21  Bruno Haible  <bruno@clisp.org>
18332
18333         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18334         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18335         here...
18336         * modules/relocatable-prog (configure.ac): ... to here.
18337
18338 2011-05-21  Bruno Haible  <bruno@clisp.org>
18339
18340         regex: Move AC_LIBOBJ invocations to module description.
18341         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18342         invocations from here...
18343         * modules/regex (configure.ac): ... to here.
18344
18345 2011-05-21  Bruno Haible  <bruno@clisp.org>
18346
18347         realloc-*: Move AC_LIBOBJ invocations to module description.
18348         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18349         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18350         AC_LIBOBJ invocations from here...
18351         * modules/realloc-gnu (configure.ac): ... to here.
18352         * modules/realloc-posix (configure.ac): ... and here.
18353
18354 2011-05-21  Bruno Haible  <bruno@clisp.org>
18355
18356         readutmp: Move AC_LIBOBJ invocations to module description.
18357         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18358         * modules/readutmp (configure.ac): ... to here.
18359
18360 2011-05-21  Bruno Haible  <bruno@clisp.org>
18361
18362         readlinkat: Move AC_LIBOBJ invocations to module description.
18363         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18364         here...
18365         * modules/readlinkat (configure.ac): ... to here.
18366
18367 2011-05-21  Bruno Haible  <bruno@clisp.org>
18368
18369         readlink: Move AC_LIBOBJ invocations to module description.
18370         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18371         gl_PREREQ_READLINK invocations from here...
18372         * modules/readlink (configure.ac): ... to here.
18373
18374 2011-05-21  Bruno Haible  <bruno@clisp.org>
18375
18376         readline: Move AC_LIBOBJ invocations to module description.
18377         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18378         gl_PREREQ_READLINE invocations from here...
18379         * modules/readline (configure.ac): ... to here.
18380
18381 2011-05-21  Bruno Haible  <bruno@clisp.org>
18382
18383         read: Move AC_LIBOBJ invocations to module description.
18384         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18385         * modules/read (configure.ac): ... to here.
18386
18387 2011-05-21  Bruno Haible  <bruno@clisp.org>
18388
18389         rawmemchr: Move AC_LIBOBJ invocations to module description.
18390         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18391         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18392         from here...
18393         * modules/rawmemchr (configure.ac): ... to here.
18394
18395 2011-05-21  Bruno Haible  <bruno@clisp.org>
18396
18397         random_r: Move AC_LIBOBJ invocations to module description.
18398         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18399         gl_PREREQ_RANDOM_R invocations from here...
18400         * modules/random_r (configure.ac): ... to here.
18401
18402 2011-05-21  Bruno Haible  <bruno@clisp.org>
18403
18404         pwrite: Move AC_LIBOBJ invocations to module description.
18405         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18406         * modules/pwrite (configure.ac): ... to here.
18407
18408 2011-05-21  Bruno Haible  <bruno@clisp.org>
18409
18410         putenv: Move AC_LIBOBJ invocations to module description.
18411         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18412         * modules/putenv (configure.ac): ... to here.
18413
18414 2011-05-21  Bruno Haible  <bruno@clisp.org>
18415
18416         login_tty: Move AC_LIBOBJ invocations to module description.
18417         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18418         * modules/login_tty (configure.ac): ... to here.
18419
18420 2011-05-21  Bruno Haible  <bruno@clisp.org>
18421
18422         openpty: Move AC_LIBOBJ invocations to module description.
18423         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18424         * modules/openpty (configure.ac): ... to here.
18425
18426 2011-05-21  Bruno Haible  <bruno@clisp.org>
18427
18428         forkpty: Move AC_LIBOBJ invocations to module description.
18429         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18430         * modules/forkpty (configure.ac): ... to here.
18431
18432 2011-05-21  Bruno Haible  <bruno@clisp.org>
18433
18434         ptsname: Move AC_LIBOBJ invocations to module description.
18435         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18436         invocations from here...
18437         * modules/ptsname (configure.ac): ... to here.
18438
18439 2011-05-21  Bruno Haible  <bruno@clisp.org>
18440
18441         pread: Move AC_LIBOBJ invocations to module description.
18442         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18443         * modules/pread (configure.ac): ... to here.
18444
18445 2011-05-21  Bruno Haible  <bruno@clisp.org>
18446
18447         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18448         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18449         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18450         * modules/posix_spawn (configure.ac): ... to here.
18451         * modules/posix_spawnp (configure.ac): ... and here.
18452
18453 2011-05-21  Bruno Haible  <bruno@clisp.org>
18454
18455         popen: Move AC_LIBOBJ invocations to module description.
18456         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18457         invocations from here...
18458         * modules/popen (configure.ac): ... to here.
18459
18460 2011-05-21  Bruno Haible  <bruno@clisp.org>
18461
18462         poll: Move AC_LIBOBJ invocations to module description.
18463         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18464         invocations from here...
18465         * modules/poll (configure.ac): ... to here.
18466
18467 2011-05-21  Bruno Haible  <bruno@clisp.org>
18468
18469         pipe-posix: Move AC_LIBOBJ invocations to module description.
18470         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18471         * modules/pipe-posix (configure.ac): ... to here.
18472
18473 2011-05-21  Bruno Haible  <bruno@clisp.org>
18474
18475         openat: Respect rules for use of AC_LIBOBJ.
18476         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18477         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18478         * modules/openat (configure.ac): ... to here.
18479
18480 2011-05-21  Bruno Haible  <bruno@clisp.org>
18481
18482         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18483         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18484         invocation from here...
18485         * modules/obstack-printf (configure.ac): ... to here.
18486         * modules/obstack-printf-posix (configure.ac): ... and here.
18487
18488 2011-05-21  Bruno Haible  <bruno@clisp.org>
18489
18490         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18491         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18492         from here...
18493         * modules/nl_langinfo (configure.ac): ... to here.
18494
18495 2011-05-21  Bruno Haible  <bruno@clisp.org>
18496
18497         nanosleep: Move AC_LIBOBJ invocations to module description.
18498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18499         gl_PREREQ_NANOSLEEP invocations from here...
18500         * modules/nanosleep (configure.ac): ... to here.
18501
18502 2011-05-21  Bruno Haible  <bruno@clisp.org>
18503
18504         mountlist: Move AC_LIBOBJ invocations to module description.
18505         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18506         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18507         * modules/mountlist (configure.ac): ... to here.
18508
18509 2011-05-21  Bruno Haible  <bruno@clisp.org>
18510
18511         mktime: Respect rules for use of AC_LIBOBJ.
18512         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18513         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18514         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18515         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18516         * modules/mktime (configure.ac): ... to here.
18517         * modules/mktime-internal (configure.ac): ... and here.
18518         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18519
18520 2011-05-21  Bruno Haible  <bruno@clisp.org>
18521
18522         mkstemps: Move AC_LIBOBJ invocations to module description.
18523         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18524         here...
18525         * modules/mkstemps (configure.ac): ... to here.
18526
18527 2011-05-21  Bruno Haible  <bruno@clisp.org>
18528
18529         mkstemp: Move AC_LIBOBJ invocations to module description.
18530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18531         gl_PREREQ_MKSTEMP invocations from here...
18532         * modules/mkstemp (configure.ac): ... to here.
18533
18534 2011-05-21  Bruno Haible  <bruno@clisp.org>
18535
18536         mkostemps: Move AC_LIBOBJ invocations to module description.
18537         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18538         here...
18539         * modules/mkostemps (configure.ac): ... to here.
18540
18541 2011-05-21  Bruno Haible  <bruno@clisp.org>
18542
18543         mkostemp: Move AC_LIBOBJ invocations to module description.
18544         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18545         gl_PREREQ_MKOSTEMP invocations from here...
18546         * modules/mkostemp (configure.ac): ... to here.
18547
18548 2011-05-21  Bruno Haible  <bruno@clisp.org>
18549
18550         mknod: Move AC_LIBOBJ invocations to module description.
18551         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18552         * modules/mknod (configure.ac): ... to here.
18553
18554 2011-05-21  Bruno Haible  <bruno@clisp.org>
18555
18556         mkfifoat: Move AC_LIBOBJ invocations to module description.
18557         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18558         here...
18559         * modules/mkfifoat (configure.ac): ... to here.
18560
18561 2011-05-21  Bruno Haible  <bruno@clisp.org>
18562
18563         mkfifo: Respect rules for use of AC_LIBOBJ.
18564         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18565         here...
18566         * modules/mkfifo (configure.ac): ... to here.
18567
18568 2011-05-21  Bruno Haible  <bruno@clisp.org>
18569
18570         mkdtemp: Move AC_LIBOBJ invocations to module description.
18571         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18572         invocations from here...
18573         * modules/mkdtemp (configure.ac): ... to here.
18574
18575 2011-05-21  Bruno Haible  <bruno@clisp.org>
18576
18577         mkdir: Move AC_LIBOBJ invocations to module description.
18578         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18579         * modules/mkdir (configure.ac): ... to here.
18580
18581 2011-05-21  Bruno Haible  <bruno@clisp.org>
18582
18583         memset: Move AC_LIBOBJ invocations to module description.
18584         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18586         here...
18587         * modules/memset (configure.ac): ... to here.
18588
18589 2011-05-21  Bruno Haible  <bruno@clisp.org>
18590
18591         memrchr: Move AC_LIBOBJ invocations to module description.
18592         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18594         here...
18595         * modules/memrchr (configure.ac): ... to here.
18596
18597 2011-05-21  Bruno Haible  <bruno@clisp.org>
18598
18599         mempcpy: Move AC_LIBOBJ invocations to module description.
18600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18602         here...
18603         * modules/mempcpy (configure.ac): ... to here.
18604
18605 2011-05-21  Bruno Haible  <bruno@clisp.org>
18606
18607         memmove: Move AC_LIBOBJ invocations to module description.
18608         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18610         here...
18611         * modules/memmove (configure.ac): ... to here.
18612
18613 2011-05-21  Bruno Haible  <bruno@clisp.org>
18614
18615         memmem*: Move AC_LIBOBJ invocations to module description.
18616         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18617         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18618         here...
18619         (gl_FUNC_MEMMEM): ... and here...
18620         * modules/memmem-simple (configure.ac): ... to here.
18621         * modules/memmem (configure.ac): ... and here.
18622
18623 2011-05-21  Bruno Haible  <bruno@clisp.org>
18624
18625         memcpy: Move AC_LIBOBJ invocations to module description.
18626         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18628         here...
18629         * modules/memcpy (configure.ac): ... to here.
18630
18631 2011-05-21  Bruno Haible  <bruno@clisp.org>
18632
18633         memcmp: Simplify autoconf macro.
18634         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18635         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18636         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18637
18638 2011-05-21  Bruno Haible  <bruno@clisp.org>
18639
18640         memcmp: Move AC_LIBOBJ invocations to module description.
18641         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18642         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18643         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18644         * modules/memcmp (configure.ac): ... to here.
18645         (Depends-on): Update conditions.
18646
18647 2011-05-21  Bruno Haible  <bruno@clisp.org>
18648
18649         memchr: Respect rules for use of AC_LIBOBJ.
18650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18651         invocations from here...
18652         * modules/memchr (configure.ac): ... to here.
18653
18654 2011-05-21  Bruno Haible  <bruno@clisp.org>
18655
18656         mbtowc: Move AC_LIBOBJ invocations to module description.
18657         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18658         invocations from here...
18659         * modules/mbtowc (configure.ac): ... to here.
18660
18661 2011-05-21  Bruno Haible  <bruno@clisp.org>
18662
18663         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18664         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18665         gl_PREREQ_MBSRTOWCS invocations from here...
18666         * modules/mbsrtowcs (configure.ac): ... to here.
18667
18668 2011-05-21  Bruno Haible  <bruno@clisp.org>
18669
18670         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18671         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18672         gl_PREREQ_MBSNRTOWCS invocations from here...
18673         * modules/mbsnrtowcs (configure.ac): ... to here.
18674
18675 2011-05-21  Bruno Haible  <bruno@clisp.org>
18676
18677         mbsinit: Move AC_LIBOBJ invocations to module description.
18678         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18679         invocations from here...
18680         * modules/mbsinit (configure.ac): ... to here.
18681
18682 2011-05-21  Bruno Haible  <bruno@clisp.org>
18683
18684         mbrlen: Move AC_LIBOBJ invocations to module description.
18685         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18686         invocations from here...
18687         * modules/mbrlen (configure.ac): ... to here.
18688
18689 2011-05-21  Bruno Haible  <bruno@clisp.org>
18690
18691         mbrtowc: Respect rules for use of AC_LIBOBJ.
18692         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18693         invocations from here...
18694         * modules/mbrtowc (configure.ac): ... to here.
18695
18696 2011-05-21  Bruno Haible  <bruno@clisp.org>
18697
18698         malloc-*: Move AC_LIBOBJ invocations to module description.
18699         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18700         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18701         AC_LIBOBJ invocations from here...
18702         * modules/malloc-gnu (configure.ac): ... to here.
18703         * modules/malloc-posix (configure.ac): ... and here.
18704
18705 2011-05-21  Bruno Haible  <bruno@clisp.org>
18706
18707         lstat, openat: Respect rules for use of AC_LIBOBJ.
18708         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18709         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18710         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18711         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18712         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18713         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18714         here.
18715         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18716
18717 2011-05-21  Bruno Haible  <bruno@clisp.org>
18718
18719         lseek: Move AC_LIBOBJ invocations to module description.
18720         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18721         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18722         * modules/lseek (configure.ac): ... to here.
18723
18724 2011-05-21  Bruno Haible  <bruno@clisp.org>
18725
18726         linkat: Move AC_LIBOBJ invocations to module description.
18727         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18728         here...
18729         * modules/linkat (configure.ac): ... to here.
18730
18731 2011-05-21  Bruno Haible  <bruno@clisp.org>
18732
18733         link: Respect rules for use of AC_LIBOBJ.
18734         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18735         * modules/link (configure.ac): ... to here.
18736
18737 2011-05-21  Bruno Haible  <bruno@clisp.org>
18738
18739         lchown: Move AC_LIBOBJ invocations to module description.
18740         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18741         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18742         * modules/lchown (configure.ac): ... to here.
18743
18744 2011-05-21  Bruno Haible  <bruno@clisp.org>
18745
18746         iswctype: Move AC_LIBOBJ invocations to module description.
18747         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18748         here...
18749         * modules/iswctype (configure.ac): ... to here.
18750
18751 2011-05-21  Bruno Haible  <bruno@clisp.org>
18752
18753         iswblank: Move AC_LIBOBJ invocations to module description.
18754         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18755         here...
18756         * modules/iswblank (configure.ac): ... to here.
18757
18758 2011-05-21  Bruno Haible  <bruno@clisp.org>
18759
18760         atanl: Move AC_LIBOBJ invocations to module description.
18761         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18762         * modules/atanl (configure.ac): ... to here.
18763
18764 2011-05-21  Bruno Haible  <bruno@clisp.org>
18765
18766         acosl: Move AC_LIBOBJ invocations to module description.
18767         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18768         * modules/acosl (configure.ac): ... to here.
18769
18770 2011-05-21  Bruno Haible  <bruno@clisp.org>
18771
18772         asinl: Respect rules for use of AC_LIBOBJ.
18773         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18774         * modules/asinl (configure.ac): ... to here.
18775
18776 2011-05-21  Bruno Haible  <bruno@clisp.org>
18777
18778         tanl: Move AC_LIBOBJ invocations to module description.
18779         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18780         * modules/tanl (configure.ac): ... to here.
18781
18782 2011-05-21  Bruno Haible  <bruno@clisp.org>
18783
18784         cosl: Move AC_LIBOBJ invocations to module description.
18785         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18786         * modules/cosl (configure.ac): ... to here.
18787
18788 2011-05-21  Bruno Haible  <bruno@clisp.org>
18789
18790         sinl: Move AC_LIBOBJ invocations to module description.
18791         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18792         * modules/sinl (configure.ac): ... to here.
18793
18794 2011-05-21  Bruno Haible  <bruno@clisp.org>
18795
18796         logl: Move AC_LIBOBJ invocations to module description.
18797         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18798         * modules/logl (configure.ac): ... to here.
18799
18800 2011-05-21  Bruno Haible  <bruno@clisp.org>
18801
18802         expl: Move AC_LIBOBJ invocations to module description.
18803         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18804         * modules/expl (configure.ac): ... to here.
18805
18806 2011-05-21  Bruno Haible  <bruno@clisp.org>
18807
18808         roundl: Move AC_LIBOBJ invocations to module description.
18809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18810         * modules/roundl (configure.ac): ... to here.
18811
18812 2011-05-21  Bruno Haible  <bruno@clisp.org>
18813
18814         round: Move AC_LIBOBJ invocations to module description.
18815         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18816         * modules/round (configure.ac): ... to here.
18817
18818 2011-05-21  Bruno Haible  <bruno@clisp.org>
18819
18820         roundf: Move AC_LIBOBJ invocations to module description.
18821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18822         * modules/roundf (configure.ac): ... to here.
18823
18824 2011-05-21  Bruno Haible  <bruno@clisp.org>
18825
18826         truncl: Move AC_LIBOBJ invocations to module description.
18827         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18828         * modules/truncl (configure.ac): ... to here.
18829
18830 2011-05-21  Bruno Haible  <bruno@clisp.org>
18831
18832         trunc: Move AC_LIBOBJ invocations to module description.
18833         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18834         * modules/trunc (configure.ac): ... to here.
18835
18836 2011-05-21  Bruno Haible  <bruno@clisp.org>
18837
18838         truncf: Move AC_LIBOBJ invocations to module description.
18839         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18840         * modules/truncf (configure.ac): ... to here.
18841
18842 2011-05-21  Bruno Haible  <bruno@clisp.org>
18843
18844         ceill: Move AC_LIBOBJ invocations to module description.
18845         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18846         * modules/ceill (configure.ac): ... to here.
18847
18848 2011-05-21  Bruno Haible  <bruno@clisp.org>
18849
18850         ceil: Move AC_LIBOBJ invocations to module description.
18851         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18852         * modules/ceil (configure.ac): ... to here.
18853
18854 2011-05-21  Bruno Haible  <bruno@clisp.org>
18855
18856         ceilf: Move AC_LIBOBJ invocations to module description.
18857         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18858         * modules/ceilf (configure.ac): ... to here.
18859
18860 2011-05-21  Bruno Haible  <bruno@clisp.org>
18861
18862         floorl: Respect rules for use of AC_LIBOBJ.
18863         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18864         * modules/floorl (configure.ac): ... to here.
18865
18866 2011-05-21  Bruno Haible  <bruno@clisp.org>
18867
18868         floor: Respect rules for use of AC_LIBOBJ.
18869         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18870         * modules/floor (configure.ac): ... to here.
18871
18872 2011-05-21  Bruno Haible  <bruno@clisp.org>
18873
18874         floorf: Move AC_LIBOBJ invocations to module description.
18875         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18876         * modules/floorf (configure.ac): ... to here.
18877
18878 2011-05-20  Bruno Haible  <bruno@clisp.org>
18879
18880         sqrtl: Respect rules for use of AC_LIBOBJ.
18881         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18882         * modules/sqrtl (configure.ac): ... to here.
18883
18884 2011-05-20  Bruno Haible  <bruno@clisp.org>
18885
18886         ldexpl: Respect rules for use of AC_LIBOBJ.
18887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18888         * modules/ldexpl (configure.ac): ... to here.
18889
18890 2011-05-20  Bruno Haible  <bruno@clisp.org>
18891
18892         frexpl*: Respect rules for use of AC_LIBOBJ.
18893         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18894         invocation from here...
18895         * modules/frexpl (configure.ac): ... to here.
18896         * modules/frexpl-nolibm (configure.ac): ... and here.
18897
18898 2011-05-20  Bruno Haible  <bruno@clisp.org>
18899
18900         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18901         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18902         invocation from here...
18903         * modules/frexp (configure.ac): ... to here.
18904         * modules/frexp-nolibm (configure.ac): ... and here.
18905
18906 2011-05-20  Bruno Haible  <bruno@clisp.org>
18907
18908         isnan: Respect rules for use of AC_LIBOBJ.
18909         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18910         invocations here.
18911         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18912         REPLACE_ISNAN.
18913         * modules/isnand (configure.ac): Likewise.
18914         * modules/isnanl (configure.ac): Likewise.
18915
18916 2011-05-20  Bruno Haible  <bruno@clisp.org>
18917
18918         isnanl*: Respect rules for use of AC_LIBOBJ.
18919         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18920         invocation from here...
18921         * modules/isnanl (configure.ac): ... to here.
18922         * modules/isnanl-nolibm (configure.ac): ... and here.
18923
18924 2011-05-20  Bruno Haible  <bruno@clisp.org>
18925
18926         isnand*: Move AC_LIBOBJ invocations to module description.
18927         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18928         invocation from here...
18929         * modules/isnand (configure.ac): ... to here.
18930         * modules/isnand-nolibm (configure.ac): ... and here.
18931
18932 2011-05-20  Bruno Haible  <bruno@clisp.org>
18933
18934         isnanf*: Move AC_LIBOBJ invocations to module description.
18935         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18936         invocation from here...
18937         * modules/isnanf (configure.ac): ... to here.
18938         * modules/isnanf-nolibm (configure.ac): ... and here.
18939
18940 2011-05-20  Bruno Haible  <bruno@clisp.org>
18941
18942         isnan*: Separate the AC_LIBOBJ invocations.
18943         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18944         AC_LIBOBJ invocation.
18945         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18946         here.
18947         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18948         AC_LIBOBJ invocation.
18949         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18950         here.
18951         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18952         AC_LIBOBJ invocation.
18953         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18954         here.
18955         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18956
18957 2011-05-08  Bruno Haible  <bruno@clisp.org>
18958
18959         isinf: Move AC_LIBOBJ invocations to module description.
18960         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18961         * modules/isinf (configure.ac): ... to here.
18962
18963 2011-05-08  Bruno Haible  <bruno@clisp.org>
18964
18965         isfinite: Move AC_LIBOBJ invocations to module description.
18966         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18967         * modules/isfinite (configure.ac): ... to here.
18968
18969 2011-05-08  Bruno Haible  <bruno@clisp.org>
18970
18971         isblank: Move AC_LIBOBJ invocations to module description.
18972         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18973         here...
18974         * modules/isblank (configure.ac): ... to here.
18975
18976 2011-05-08  Bruno Haible  <bruno@clisp.org>
18977
18978         isapipe: Move AC_LIBOBJ invocations to module description.
18979         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18980         gl_PREREQ_ISAPIPE invocations from here...
18981         * modules/isapipe (configure.ac): ... to here.
18982         (Depends-on): Update condition.
18983
18984 2011-05-08  Bruno Haible  <bruno@clisp.org>
18985
18986         ioctl: Move AC_LIBOBJ invocations to module description.
18987         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18988         invocations from here...
18989         * modules/ioctl (configure.ac): ... to here.
18990         (Depends-on): Update condition.
18991
18992 2011-05-08  Bruno Haible  <bruno@clisp.org>
18993
18994         imaxdiv: Move AC_LIBOBJ invocations to module description.
18995         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18996         invocations from here...
18997         * modules/imaxdiv (configure.ac): ... to here.
18998
18999 2011-05-08  Bruno Haible  <bruno@clisp.org>
19000
19001         imaxabs: Move AC_LIBOBJ invocations to module description.
19002         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19003         invocations from here...
19004         * modules/imaxabs (configure.ac): ... to here.
19005
19006 2011-05-08  Bruno Haible  <bruno@clisp.org>
19007
19008         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19010         AC_LIBOBJ invocations from here...
19011         * modules/getaddrinfo (configure.ac): ... to here.
19012         (Depends-on): Add conditions.
19013
19014 2011-05-08  Bruno Haible  <bruno@clisp.org>
19015
19016         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19017         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19018         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19019         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19020         (gl_PREREQ_INET_PTON): ... from here.
19021         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19022         gl_PREREQ_INET_PTON here.
19023         (Depends-on): Update condition.
19024
19025 2011-05-08  Bruno Haible  <bruno@clisp.org>
19026
19027         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19028         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19029         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19030         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19031         (gl_PREREQ_INET_NTOP): ... from here.
19032         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19033         gl_PREREQ_INET_NTOP here.
19034         (Depends-on): Update condition.
19035
19036 2011-05-08  Bruno Haible  <bruno@clisp.org>
19037
19038         iconv_open: Move AC_LIBOBJ invocations to module description.
19039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19040         AC_LIBOBJ invocations from here...
19041         * modules/iconv_open (configure.ac): ... to here.
19042
19043 2011-05-08  Bruno Haible  <bruno@clisp.org>
19044
19045         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19046         If module 'iconv_open' is among the main modules and module
19047         'iconv_open-utf' is among the tests dependencies, then
19048         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19049         return the special iconv_t values. Therefore iconv() and iconv_close()
19050         must support these special iconv_t values, already in lib, not only in
19051         tests.
19052         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19053         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19054         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19055         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19056         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19057         (Depends-on): Add the dependencies of iconv_open-utf.
19058         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19059         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19060         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19061
19062 2011-05-08  Bruno Haible  <bruno@clisp.org>
19063
19064         group-member: Move AC_LIBOBJ invocations to module description.
19065         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19066         gl_PREREQ_GROUP_MEMBER invocations from here...
19067         * modules/group-member (configure.ac): ... to here.
19068
19069 2011-05-08  Bruno Haible  <bruno@clisp.org>
19070
19071         grantpt: Move AC_LIBOBJ invocations to module description.
19072         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19073         invocations from here...
19074         * modules/grantpt (configure.ac): ... to here.
19075
19076 2011-05-08  Bruno Haible  <bruno@clisp.org>
19077
19078         glob: Move AC_LIBOBJ invocations to module description.
19079         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19080         from here...
19081         * modules/glob (configure.ac): ... to here.
19082
19083 2011-05-08  Bruno Haible  <bruno@clisp.org>
19084
19085         getusershell: Move AC_LIBOBJ invocations to module description.
19086         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19087         Move AC_LIBOBJ invocation from here...
19088         * modules/getusershell (configure.ac): ... to here.
19089         (Depends-on): Update condition.
19090
19091 2011-05-08  Bruno Haible  <bruno@clisp.org>
19092
19093         gettimeofday: Move AC_LIBOBJ invocations to module description.
19094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19095         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19096         gl_PREREQ_GETTIMEOFDAY invocations from here...
19097         * modules/gettimeofday (configure.ac): ... to here.
19098
19099 2011-05-08  Bruno Haible  <bruno@clisp.org>
19100
19101         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19102         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19103         just gl_FUNC_TZSET.
19104         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19105         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19106         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19107         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19108
19109 2011-05-08  Bruno Haible  <bruno@clisp.org>
19110
19111         getsubopt: Move AC_LIBOBJ invocations to module description.
19112         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19113         gl_PREREQ_GETSUBOPT invocations from here...
19114         * modules/getsubopt (configure.ac): ... to here.
19115
19116 2011-05-08  Bruno Haible  <bruno@clisp.org>
19117
19118         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19119         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19120         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19121         * modules/getpass-gnu (configure.ac): ... to here.
19122
19123 2011-05-08  Bruno Haible  <bruno@clisp.org>
19124
19125         getpass: Move AC_LIBOBJ invocations to module description.
19126         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19127         gl_PREREQ_GETPASS invocations from here...
19128         * modules/getpass (configure.ac): ... to here.
19129
19130 2011-05-08  Bruno Haible  <bruno@clisp.org>
19131
19132         getpagesize: Move AC_LIBOBJ invocations to module description.
19133         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19134         from here...
19135         * modules/getpagesize (configure.ac): ... to here.
19136
19137 2011-05-08  Bruno Haible  <bruno@clisp.org>
19138
19139         getopt: Move AC_LIBOBJ invocations to module description.
19140         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19141         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19142         invocations from here...
19143         * modules/getopt-gnu (configure.ac): ... to here.
19144         * modules/getopt-posix (configure.ac): ... and here.
19145         (Depends-on): Update condition.
19146
19147 2011-05-08  Bruno Haible  <bruno@clisp.org>
19148
19149         getopt, argp: Respect rules for use of AC_LIBOBJ.
19150         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19151         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19152         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19153         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19154
19155 2011-05-08  Bruno Haible  <bruno@clisp.org>
19156
19157         getlogin_r: Move AC_LIBOBJ invocations to module description.
19158         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19159         gl_PREREQ_GETLOGIN_R invocations from here...
19160         * modules/getlogin_r (configure.ac): ... to here.
19161
19162 2011-05-08  Bruno Haible  <bruno@clisp.org>
19163
19164         getlogin: Move AC_LIBOBJ invocations to module description.
19165         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19166         here...
19167         * modules/getlogin (configure.ac): ... to here.
19168
19169 2011-05-08  Bruno Haible  <bruno@clisp.org>
19170
19171         getloadavg: Move AC_LIBOBJ invocations to module description.
19172         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19173         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19174         * modules/getloadavg (configure.ac): ... to here.
19175
19176 2011-05-08  Bruno Haible  <bruno@clisp.org>
19177
19178         gethrxtime: Move AC_LIBOBJ invocations to module description.
19179         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19180         LIB_GETHRXTIME from here...
19181         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19182         invocations from here...
19183         * modules/gethrxtime (configure.ac): ... to here.
19184
19185 2011-05-08  Bruno Haible  <bruno@clisp.org>
19186
19187         gethostname: Move AC_LIBOBJ invocations to module description.
19188         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19189         gl_PREREQ_GETHOSTNAME invocations from here...
19190         * modules/gethostname (configure.ac): ... to here.
19191
19192 2011-05-08  Bruno Haible  <bruno@clisp.org>
19193
19194         getgroups: Move AC_LIBOBJ invocations to module description.
19195         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19196         here...
19197         * modules/getgroups (configure.ac): ... to here.
19198
19199 2011-05-08  Bruno Haible  <bruno@clisp.org>
19200
19201         getdtablesize: Move AC_LIBOBJ invocations to module description.
19202         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19203         invocation from here...
19204         * modules/getdtablesize (configure.ac): ... to here.
19205
19206 2011-05-08  Bruno Haible  <bruno@clisp.org>
19207
19208         getdomainname: Move AC_LIBOBJ invocations to module description.
19209         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19210         gl_PREREQ_GETDOMAINNAME invocations from here...
19211         * modules/getdomainname (configure.ac): ... to here.
19212
19213 2011-05-08  Bruno Haible  <bruno@clisp.org>
19214
19215         getline: Move AC_LIBOBJ invocations to module description.
19216         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19217         invocations from here...
19218         * modules/getline (configure.ac): ... to here.
19219
19220 2011-05-08  Bruno Haible  <bruno@clisp.org>
19221
19222         getline: Simplify.
19223         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19224         It's already handled through the module dependency.
19225
19226 2011-05-08  Bruno Haible  <bruno@clisp.org>
19227
19228         getdelim: Move AC_LIBOBJ invocations to module description.
19229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19230         and gl_PREREQ_GETDELIM invocations from here...
19231         * modules/getdelim (configure.ac): ... to here.
19232         (Depends-on): Fix condition.
19233
19234 2011-05-08  Bruno Haible  <bruno@clisp.org>
19235
19236         getcwd: Move AC_LIBOBJ invocations to module description.
19237         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19238         invocations from here...
19239         * modules/getcwd (configure.ac): ... to here.
19240
19241 2011-05-08  Bruno Haible  <bruno@clisp.org>
19242
19243         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19244         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19245         here...
19246         * modules/getcwd-lgpl (configure.ac): ... to here.
19247
19248 2011-05-07  Bruno Haible  <bruno@clisp.org>
19249
19250         crypto/gc: Move AC_LIBOBJ invocations to module description.
19251         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19252         * modules/crypto/gc (configure.ac): ... to here.
19253
19254 2011-05-07  Bruno Haible  <bruno@clisp.org>
19255
19256         fwriting: Move AC_LIBOBJ invocations to module description.
19257         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19258         here...
19259         * modules/fwriting (configure.ac): ... to here.
19260
19261 2011-05-07  Bruno Haible  <bruno@clisp.org>
19262
19263         fwritable: Move AC_LIBOBJ invocations to module description.
19264         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19265         here...
19266         * modules/fwritable (configure.ac): ... to here.
19267
19268 2011-05-07  Bruno Haible  <bruno@clisp.org>
19269
19270         futimens: Move AC_LIBOBJ invocations to module description.
19271         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19272         here...
19273         * modules/futimens (configure.ac): ... to here.
19274
19275 2011-05-07  Bruno Haible  <bruno@clisp.org>
19276
19277         ftruncate: Move AC_LIBOBJ invocations to module description.
19278         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19279         gl_PREREQ_FTRUNCATE invocations from here...
19280         * modules/ftruncate (configure.ac): ... to here.
19281
19282 2011-05-07  Bruno Haible  <bruno@clisp.org>
19283
19284         fsync: Move AC_LIBOBJ invocations to module description.
19285         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19286         invocations from here...
19287         * modules/fsync (configure.ac): ... to here.
19288
19289 2011-05-07  Bruno Haible  <bruno@clisp.org>
19290
19291         fsusage: Move AC_LIBOBJ invocations to module description.
19292         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19293         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19294         * modules/fsusage (configure.ac): ... to here.
19295
19296 2011-05-07  Bruno Haible  <bruno@clisp.org>
19297
19298         freopen: Move AC_LIBOBJ invocations to module description.
19299         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19300         invocations from here...
19301         * modules/freopen (configure.ac): ... to here.
19302
19303 2011-05-07  Bruno Haible  <bruno@clisp.org>
19304
19305         free: Move AC_LIBOBJ invocations to module description.
19306         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19307         invocations from here...
19308         * modules/free (configure.ac): ... to here.
19309
19310 2011-05-07  Bruno Haible  <bruno@clisp.org>
19311
19312         freadable: Move AC_LIBOBJ invocations to module description.
19313         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19314         here...
19315         * modules/freadable (configure.ac): ... to here.
19316
19317 2011-05-07  Bruno Haible  <bruno@clisp.org>
19318
19319         fpurge: Move AC_LIBOBJ invocations to module description.
19320         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19321         invocations from here...
19322         * modules/fpurge (configure.ac): ... to here.
19323
19324 2011-05-07  Bruno Haible  <bruno@clisp.org>
19325
19326         fpending: Move AC_LIBOBJ invocations to module description.
19327         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19328         gl_FUNC_FPENDING.
19329         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19330         invocations from here...
19331         * modules/fpending (configure.ac): ... to here.
19332
19333 2011-05-07  Bruno Haible  <bruno@clisp.org>
19334
19335         fopen: Move AC_LIBOBJ invocations to module description.
19336         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19337         invocations from here...
19338         * modules/fopen (configure.ac): ... to here.
19339
19340 2011-05-07  Bruno Haible  <bruno@clisp.org>
19341
19342         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19343         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19344         gl_FUNC_FNMATCH_POSIX.
19345         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19346         invocations from here...
19347         * modules/fnmatch (configure.ac): ... to here.
19348         * modules/fnmatch-gnu (configure.ac): ... and here.
19349
19350 2011-05-07  Bruno Haible  <bruno@clisp.org>
19351
19352         flock: Move AC_LIBOBJ invocations to module description.
19353         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19354         invocations from here...
19355         * modules/flock (configure.ac): ... to here.
19356
19357 2011-05-07  Bruno Haible  <bruno@clisp.org>
19358
19359         fileblocks: Move AC_LIBOBJ invocations to module description.
19360         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19361         gl_PREREQ_FILEBLOCKS invocations from here...
19362         * modules/fileblocks (configure.ac): ... to here.
19363
19364 2011-05-06  Bruno Haible  <bruno@clisp.org>
19365
19366         fflush: Move AC_LIBOBJ invocations to module description.
19367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19368         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19369         invocations from here...
19370         * modules/fflush (configure.ac): ... to here.
19371
19372 2011-05-06  Bruno Haible  <bruno@clisp.org>
19373
19374         fdopendir: Move AC_LIBOBJ invocations to module description.
19375         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19376         here...
19377         * modules/fdopendir (configure.ac): ... to here.
19378         (Depends-on): Improve conditions.
19379
19380 2011-05-06  Bruno Haible  <bruno@clisp.org>
19381
19382         _Exit: Move AC_LIBOBJ invocations to module description.
19383         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19384         invocations from here...
19385         * modules/_Exit (configure.ac): ... to here.
19386
19387 2011-05-21  Bruno Haible  <bruno@clisp.org>
19388
19389         euidaccess: Respect rules for use of AC_LIBOBJ.
19390         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19391         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19392         from here...
19393         * modules/euidaccess (configure.ac): ... to here.
19394
19395 2011-05-06  Bruno Haible  <bruno@clisp.org>
19396
19397         error: Move AC_LIBOBJ invocations to module description.
19398         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19399         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19400         invocations from here...
19401         * modules/error (configure.ac): ... to here.
19402
19403 2011-05-06  Bruno Haible  <bruno@clisp.org>
19404
19405         duplocale: Move AC_LIBOBJ invocations to module description.
19406         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19407         gl_PREREQ_DUPLOCALE invocations from here...
19408         * modules/duplocale (configure.ac): ... to here.
19409
19410 2011-05-05  Bruno Haible  <bruno@clisp.org>
19411
19412         dirfd: Move AC_LIBOBJ invocations to module description.
19413         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19414         gl_FUNC_DIRFD.
19415         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19416         here...
19417         * modules/dirfd (configure.ac): ... to here.
19418         (Depends-on): Fix condition.
19419
19420 2011-05-05  Bruno Haible  <bruno@clisp.org>
19421
19422         chown: Respect rules for use of AC_LIBOBJ.
19423         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19424         * modules/chown (configure.ac): ... to here.
19425
19426 2011-05-05  Bruno Haible  <bruno@clisp.org>
19427
19428         chdir-long: Move AC_LIBOBJ invocations to module description.
19429         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19430         gl_PREREQ_CHDIR_LONG invocations from here...
19431         * modules/chdir-long (configure.ac): ... to here.
19432
19433 2011-05-05  Bruno Haible  <bruno@clisp.org>
19434
19435         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19436         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19437         from here...
19438         * modules/canonicalize-lgpl (configure.ac): ... to here.
19439
19440 2011-05-05  Bruno Haible  <bruno@clisp.org>
19441
19442         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19443         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19444         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19445         REPLACE_CALLOC.
19446         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19447         * modules/calloc-gnu (configure.ac): Likewise.
19448
19449 2011-05-05  Bruno Haible  <bruno@clisp.org>
19450
19451         btowc: Move AC_LIBOBJ invocations to module description.
19452         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19453         invocations from here...
19454         * modules/btowc (configure.ac): ... to here.
19455
19456 2011-05-21  Bruno Haible  <bruno@clisp.org>
19457
19458         atexit: Move AC_LIBOBJ invocations to module description.
19459         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19461         here...
19462         * modules/atexit (configure.ac): ... to here.
19463
19464 2011-05-05  Bruno Haible  <bruno@clisp.org>
19465
19466         atoll: Move AC_LIBOBJ invocations to module description.
19467         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19468         invocations from here...
19469         * modules/atoll (configure.ac): ... to here.
19470
19471 2011-05-05  Bruno Haible  <bruno@clisp.org>
19472
19473         argz: Move AC_LIBOBJ invocations to module description.
19474         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19475         * modules/argz (configure.ac): ... to here.
19476
19477 2011-05-05  Bruno Haible  <bruno@clisp.org>
19478
19479         alphasort: Move AC_LIBOBJ invocations to module description.
19480         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19481         gl_PREREQ_ALPHASORT invocations from here...
19482         * modules/alphasort (configure.ac): ... to here.
19483
19484 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19485
19486         verify: new macro verify_expr; verify_true deprecated
19487         * NEWS: Mention this.
19488         * doc/verify.texi (Compile-time Assertions): Document this.
19489         * lib/verify.h (verify_true): Deprecate.
19490         (verify_expr): New macro.
19491         * tests/test-verify.c (function): Test verify_expr.
19492
19493 2011-06-14  Jim Meyering  <meyering@redhat.com>
19494
19495         init.sh: give more portable redirection-related advice in a comment
19496         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19497         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19498         for lots of discussion.  Stefano Lattarini suggested the solution
19499         of putting "9>&2" after the command.  Reported by Bruno Haible.
19500
19501 2011-06-13  Bruno Haible  <bruno@clisp.org>
19502
19503         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19505         'none'.
19506
19507 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         ftoastr: use strtof only if HAVE_STRTOF
19510         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19512         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19513         * modules/ftoastr (configure.ac): Check for strtof.
19514
19515 2011-06-13  Bruno Haible  <bruno@clisp.org>
19516
19517         gnulib-tool: Addendum to 2011-06-08 commit.
19518         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19519         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19520
19521 2011-06-13  Bruno Haible  <bruno@clisp.org>
19522
19523         fseeko: Provide a non-inline replacement of fseek().
19524         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19525         * modules/fseeko (Depends-on): Add fseek.
19526         * modules/fseek (License): Change to LGPLv2+.
19527
19528 2011-06-13  Bruno Haible  <bruno@clisp.org>
19529
19530         ftello: Provide a non-inline replacement of ftell().
19531         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19532         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19533         not have ftello() (such as on mingw).
19534         * modules/ftello (Depends-on): Add ftell.
19535         * modules/ftell (License): Change to LGPLv2+.
19536
19537 2011-05-07  Bruno Haible  <bruno@clisp.org>
19538
19539         ftell: Move AC_LIBOBJ invocations to module description.
19540         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19541         * modules/ftell (configure.ac): ... to here.
19542
19543 2011-05-07  Bruno Haible  <bruno@clisp.org>
19544
19545         ftello: Respect rules for use of AC_LIBOBJ.
19546         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19547         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19548         here...
19549         * modules/ftello (configure.ac): ... to here.
19550
19551 2011-05-07  Bruno Haible  <bruno@clisp.org>
19552
19553         fseeko: Simplify.
19554         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19555         (gl_FUNC_FSEEKO): Inline it here.
19556
19557 2011-05-07  Bruno Haible  <bruno@clisp.org>
19558
19559         fseek: Move AC_LIBOBJ invocations to module description.
19560         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19561         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19562         * modules/fseek (configure.ac): ... to here.
19563
19564 2011-05-07  Bruno Haible  <bruno@clisp.org>
19565
19566         fseek: Respect rules for use of AC_LIBOBJ.
19567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19568         here...
19569         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19570
19571 2011-05-07  Bruno Haible  <bruno@clisp.org>
19572
19573         fseeko: Respect rules for use of AC_LIBOBJ.
19574         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19575         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19576         here...
19577         * modules/fseeko (configure.ac): ... to here.
19578
19579 2011-06-13  Bruno Haible  <bruno@clisp.org>
19580
19581         gnulib-tool: Allow comments in the 'Depends-on' section.
19582         * doc/gnulib.texi (Module description): Mention comment syntax in the
19583         Depends-on section.
19584         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19585
19586 2011-06-13  Bruno Haible  <bruno@clisp.org>
19587
19588         file-set.h: guard __attibute__ use, now that it's not always defined
19589         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19590         versions that support it.  This fixes a coreutils build failure with
19591         the vendor cc on HP-UX 11.31.
19592
19593 2011-06-12  Bruno Haible  <bruno@clisp.org>
19594
19595         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19596         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19597         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19598         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19599         (acl, aclsort): New declarations.
19600         (aclv_nontrivial): New declaration.
19601         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19602         (file_has_acl): Read also the second kind of HP-UX ACLs.
19603         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19604         kind of HP-UX ACLs if the first kind fails.
19605         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19606         second kind of HP-UX ACLs.
19607         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19608         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19609         agree.
19610         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19611         hpuxjfs.
19612         Handle hpuxjfs.
19613         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19614         hpuxjfs.
19615         Handle hpuxjfs.
19616         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19617         (func_test_same_acls): Use both lsacl and getacl.
19618         Handle hpuxjfs.
19619         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19620         (func_test_same_acls): Use both lsacl and getacl.
19621         Handle hpuxjfs.
19622
19623 2011-06-12  Bruno Haible  <bruno@clisp.org>
19624
19625         acl: Complete the 2010-08-10 fix.
19626         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19627         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19628         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19629         explicitly.
19630         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19631         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19632
19633 2011-06-12  Bruno Haible  <bruno@clisp.org>
19634
19635         spawn-pipe tests: Comments.
19636         * tests/test-spawn-pipe-child.c (main): Update comment.
19637         Reported by James Youngman <jay@gnu.org>.
19638
19639 2011-06-11  James Youngman  <jay@gnu.org>
19640
19641         New module 'stat-size'.
19642         * modules/stat-size: New module.  Provides macros for accessing
19643         file size information in instances of struct stat.  Depends on the
19644         fileblocks module because it calls st_blocks.
19645         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19646         * doc/gnulib.texi: Include stat-size.texi.
19647         * doc/stat-size.texi: Documentation for this module.
19648         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19649         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19650         AC_STRUCT_ST_BLOCKS.
19651
19652 2011-06-09  Bruno Haible  <bruno@clisp.org>
19653
19654         thread: Support pthreads-win32.
19655         * lib/glthread/thread.h (gl_thread_self): Define differently on
19656         pthreads-win32.
19657         (gl_null_thread): New declaration.
19658         (gl_thread_self_pointer): New macro.
19659         * lib/glthread/thread.c (gl_null_thread): New constant.
19660         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19661         gl_thread_self.
19662         * tests/test-tls.c: Likewise.
19663         Suggested by Paul Eggert. Reported by Eric Blake.
19664
19665 2011-06-09  Bruno Haible  <bruno@clisp.org>
19666
19667         thread: Fix confusion between NULL and 0.
19668         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19669         Reported by Paul Eggert.
19670
19671 2011-06-09  Bruno Haible  <bruno@clisp.org>
19672
19673         spawn-pipe tests: Avoid test failure on HP-UX 11.
19674         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19675         is closed.
19676
19677 2011-06-09  Bruno Haible  <bruno@clisp.org>
19678
19679         acl tests: Fix compilation error on HP-UX 11.
19680         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19681
19682 2011-06-09  Bruno Haible  <bruno@clisp.org>
19683
19684         rmdir: Avoid test failure on HP-UX 10.20.
19685         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19686         EEXIST.
19687
19688 2011-06-08  Eric Blake  <eblake@redhat.com>
19689
19690         perror: fix test on mingw
19691         * modules/perror-tests (Depends-on): Add dup2.
19692
19693         strerror_r-posix: fix on MacOS
19694         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19696         logic bug.
19697         * lib/strerror_r.c (strerror_r): Fix the bug.
19698         * lib/strerror.c (strerror): Likewise.
19699         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19700         problem.
19701         * doc/posix-functions/strerror.texi (strerror): Likewise.
19702         * doc/posix-functions/perror.texi (perror): Likewise.
19703         * tests/test-strerror.c (main): Enhance test.
19704         * tests/test-strerror_r.c (main): Likewise.
19705
19706 2011-06-08  Bruno Haible  <bruno@clisp.org>
19707
19708         gnulib-tool: Better isolation between different gnulib-tool invocations.
19709         * gnulib-tool: New option --witness-c-macro.
19710         (witness_c_macro): New variable.
19711         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19712         AM_CPPFLAGS define it as a C macro.
19713         (func_emit_tests_Makefile_am): Likewise.
19714         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19715         read it from there.
19716         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19717         m4_define, not AC_DEFUN.
19718         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19719         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19720         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19721         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19722         s|...|...|, to substitute the values of the GNULIB_* module indicator
19723         variables.
19724         * modules/dirent (Makefile.am): Likewise.
19725         * modules/fcntl-h (Makefile.am): Likewise.
19726         * modules/iconv-h (Makefile.am): Likewise.
19727         * modules/langinfo (Makefile.am): Likewise.
19728         * modules/locale (Makefile.am): Likewise.
19729         * modules/math (Makefile.am): Likewise.
19730         * modules/netdb (Makefile.am): Likewise.
19731         * modules/poll-h (Makefile.am): Likewise.
19732         * modules/pty (Makefile.am): Likewise.
19733         * modules/search (Makefile.am): Likewise.
19734         * modules/signal (Makefile.am): Likewise.
19735         * modules/spawn (Makefile.am): Likewise.
19736         * modules/stdio (Makefile.am): Likewise.
19737         * modules/stdlib (Makefile.am): Likewise.
19738         * modules/string (Makefile.am): Likewise.
19739         * modules/sys_ioctl (Makefile.am): Likewise.
19740         * modules/sys_select (Makefile.am): Likewise.
19741         * modules/sys_socket (Makefile.am): Likewise.
19742         * modules/sys_stat (Makefile.am): Likewise.
19743         * modules/sys_times (Makefile.am): Likewise.
19744         * modules/sys_utsname (Makefile.am): Likewise.
19745         * modules/sys_wait (Makefile.am): Likewise.
19746         * modules/termios (Makefile.am): Likewise.
19747         * modules/time (Makefile.am): Likewise.
19748         * modules/unistd (Makefile.am): Likewise.
19749         * modules/wchar (Makefile.am): Likewise.
19750
19751 2011-06-08  Eric Blake  <eblake@redhat.com>
19752
19753         strerror: simplify replacement
19754         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19755         * modules/strerror (configure.ac): No prereqs needed here...
19756         * modules/strerror-override (configure.ac): ...but this needs it.
19757         (Files): Add file for needed prereq macro.
19758
19759 2011-06-08  Bruno Haible  <bruno@clisp.org>
19760
19761         strerror_r-posix: Tweaks.
19762         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19763         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19764         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19765         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19766         (gl_FUNC_STRERROR_R): ... to here.
19767         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19768
19769 2011-06-07  Eric Blake  <eblake@redhat.com>
19770
19771         perror: document fixed bugs
19772         * doc/posix-functions/perror.texi (perror): Document recent
19773         patches.
19774
19775 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19776
19777         stat-time: get_stat_birthtime failure is better-defined
19778         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19779         return a timestamp whose tv_sec and tv_nsec values are both -1.
19780         Previously, the spec said only that the tv_nsec value was negative.
19781         This upward-compatible change simplifies GNU tar a bit.
19782
19783 2011-06-07  Eric Blake  <eblake@redhat.com>
19784
19785         strerror_r-posix: work around cygwin 1.7.9
19786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19787         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19788         bug without replacing strerror_r.
19789         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19790         strerror_r is buggy, but without requiring strerror_r compilation.
19791         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19792
19793         test-perror: relax test to ignore cygwin bug
19794         * tests/test-perror2.c (main): Relax test on requiring detection
19795         of stream errors, and use unbuffered stream.
19796         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19797         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19798         * doc/posix-functions/fputc.texi (fputc): Likewise.
19799         * doc/posix-functions/fputs.texi (fputs): Likewise.
19800         * doc/posix-functions/fputws.texi (fputws): Likewise.
19801         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19802         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19803         * doc/posix-functions/getopt.texi (getopt): Likewise.
19804         * doc/posix-functions/perror.texi (perror): Likewise.
19805         * doc/posix-functions/printf.texi (printf): Likewise.
19806         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19807         * doc/posix-functions/psignal.texi (psignal): Likewise.
19808         * doc/posix-functions/putc.texi (putc): Likewise.
19809         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19810         Likewise.
19811         * doc/posix-functions/putchar.texi (putchar): Likewise.
19812         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19813         Likewise.
19814         * doc/posix-functions/puts.texi (puts): Likewise.
19815         * doc/posix-functions/putwc.texi (putwc): Likewise.
19816         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19817         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19818         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19819         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19820         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19821         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19822         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19823         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19824
19825 2011-05-22  Bruno Haible  <bruno@clisp.org>
19826
19827         strerror: Move AC_LIBOBJ invocations to module description.
19828         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19829         gl_PREREQ_STRERROR invocations from here...
19830         * modules/strerror (configure.ac): ... to here.
19831
19832 2011-05-21  Bruno Haible  <bruno@clisp.org>
19833
19834         perror: Use common idiom.
19835         * modules/perror (configure.ac): Reorder statements.
19836
19837 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19838
19839         tests: fix usage message in 'mktempd_'
19840         * tests/init.sh (mktempd_): In the usage message, use literal
19841         'mktempd_', not '$ME' (which is even undefined), as the name of
19842         the subroutine.
19843
19844 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19845
19846         tests init: new function 'fatal_', for hard errors
19847         Before this patch, the only way offered by tests/init.sh to
19848         properly signal a hard error was the `framework_failure_'
19849         function.  But the error message issued by that function,
19850         as its name would suggest, refers to a set-up failure in the
19851         testsuite, while hard errors can obviously also be due to
19852         other reasons.  The best way to fix this inconsistency is to
19853         introduce a new function with a more general error message.
19854         * tests/init.sh (fatal_): New function.
19855
19856 2011-06-06  Eric Blake  <eblake@redhat.com>
19857
19858         canonicalize-lgpl: use common idiom
19859         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19860         over newer POSIX -Rf.
19861         Reported by Bruno Haible.
19862
19863         canonicalize-lgpl: work around AIX realpath bug
19864         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19865         * doc/posix-functions/realpath.texi (realpath): Document it.
19866         Reported by Bruno Haible.
19867
19868         strerror: work around FreeBSD bug
19869         * lib/strerror.c (strerror): Special case 0.
19870         Reported by Bruno Haible.
19871
19872         strerror-override: avoid bloating errno module
19873         * modules/errno (Files, configure.ac): Move replacement strings...
19874         * modules/strerror-override: ...to new module.
19875         * modules/strerror (Depends-on): Add strerror-override.
19876         * modules/strerror_r-posix (Depends-on): Likewise.
19877         * MODULES.html.sh: Document new module.
19878         Reported by Bruno Haible.
19879
19880 2011-06-06  Bruno Haible  <bruno@clisp.org>
19881
19882         spawn-pipe tests: Rename program.
19883         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19884         * tests/test-spawn-pipe-child.c: Update comment.
19885         * tests/test-spawn-pipe.sh: Update.
19886         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19887
19888         spawn-pipe tests: Link the child program only against libc.
19889         * tests/test-spawn-pipe-child.c: New file, extracted from
19890         tests/test-spawn-pipe.c.
19891         (main): Expect only one argument.
19892         (is_open): New function, copied from tests/test-pipe.c.
19893         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19894         (child_main): Remove function.
19895         (test_pipe): Pass only one argument to the child program.
19896         (main): Remove child process code. Expect the child program's name as
19897         first argument.
19898         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19899         argument.
19900         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19901         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19902         test-spawn-pipe-child against no libraries.
19903
19904 2011-06-06  Bruno Haible  <bruno@clisp.org>
19905
19906         careadlinkat: Avoid mismatch between ssize_t and int.
19907         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19908         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19909
19910 2011-06-06  Jim Meyering  <meyering@redhat.com>
19911
19912         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19913         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19914         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19915
19916 2011-06-05  Bruno Haible  <bruno@clisp.org>
19917
19918         ansi-c++-opt: Interoperability with libtool.
19919         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19920         set the variable to "no", not to ":".
19921         * NEWS: Mention the change.
19922
19923 2011-06-05  Bruno Haible  <bruno@clisp.org>
19924
19925         acl: Fix test failure on AIX 7.
19926         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19927         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19928
19929 2011-06-05  Bruno Haible  <bruno@clisp.org>
19930
19931         pipe-filter-ii: Fix test failure on AIX and IRIX.
19932         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19933         with EAGAIN, retry with a smaller buffer size.
19934
19935 2011-06-05  Bruno Haible  <bruno@clisp.org>
19936
19937         localename: Fix link dependencies.
19938         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19939         * modules/localename-tests (Makefile.am): Link test-localename with
19940         $(LIBTHREAD).
19941
19942 2011-06-05  Bruno Haible  <bruno@clisp.org>
19943
19944         error: Avoid gcc warning.
19945         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19946
19947 2011-06-05  Bruno Haible  <bruno@clisp.org>
19948
19949         unsetenv: Avoid gcc warning.
19950         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19951
19952 2011-06-05  Bruno Haible  <bruno@clisp.org>
19953
19954         setenv: Avoid gcc warning.
19955         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19956
19957 2011-06-05  Bruno Haible  <bruno@clisp.org>
19958
19959         sys_select: Ensure memset is declared also on AIX 7.
19960         * lib/sys_select.in.h: Include <string.h> also on AIX.
19961         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19962         self-contained also on AIX 7.1.
19963
19964 2011-06-04  Jim Meyering  <meyering@redhat.com>
19965
19966         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19967         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19968         function name, "error".
19969         (_gl_translatable_diag_func_re): New configurable variable.
19970
19971 2011-06-04  Bruno Haible  <bruno@clisp.org>
19972
19973         getopt: Avoid gcc warning.
19974         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19975
19976 2011-06-04  Bruno Haible  <bruno@clisp.org>
19977
19978         strerror_r: Fix comments.
19979         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19980         commit.
19981
19982 2011-06-04  Bruno Haible  <bruno@clisp.org>
19983
19984         perror: Fix compilation error.
19985         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19986         Undefine fprintf, not sprintf.
19987         * modules/perror (Depends-on): Remove intprops, verify.
19988
19989 2011-06-04  Bruno Haible  <bruno@clisp.org>
19990
19991         setlocale: Enable replacement on Cygwin 1.5.
19992         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19993         Cygwin 1.5.x.
19994         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19995         LC_CTYPE category also exists on Cygwin 1.5.x.
19996
19997 2011-06-04  Bruno Haible  <bruno@clisp.org>
19998
19999         strerror-override: Don't disable symbol renamings.
20000         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20001         * lib/strerror-override.c: Include config.h.
20002         (strerror_override): Don't undefine.
20003
20004 2011-06-03  Bruno Haible  <bruno@clisp.org>
20005
20006         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20007         * lib/localename.h: Update copyright header.
20008         * lib/localename.c: Likewise.
20009         * lib/relocatable.h: Likewise.
20010         * lib/relocatable.c: Likewise.
20011
20012 2011-06-02  Bruno Haible  <bruno@clisp.org>
20013
20014         doc: Fix a module name.
20015         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20016
20017 2011-06-02  Bruno Haible  <bruno@clisp.org>
20018
20019         pipe2: Remove dependency on 'nonblocking' module.
20020         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20021         O_NONBLOCK is defined by gnulib.
20022         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20023         is zero.
20024         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20025         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20026         defined by gnulib.
20027         (get_nonblocking_flag): New function.
20028         (main): Test O_NONBLOCK flag only if it is nonzero.
20029         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20030
20031 2011-06-03  Jim Meyering  <meyering@redhat.com>
20032
20033         maint: three new prohibit-header-without-use rules
20034         Prohibit use of cloexec.h, posixver.h, same.h without use.
20035         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20036         (sc_prohibit_posixver_without_use): Likewise.
20037         (sc_prohibit_same_without_use): Likewise.
20038
20039 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20040
20041         allocator: 'die' routine is now given requested size
20042         * lib/allocator.h (struct allocator.die): New size arg.
20043         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20044         If the actual problem is an ssize_t limitation, not a size_t or
20045         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20046
20047 2011-06-01  Eric Blake  <eblake@redhat.com>
20048
20049         strerror: drop strerror_r dependency
20050         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20051         * lib/strerror-override.c (strerror_override): ...to new file.
20052         * lib/strerror-override.h: Add prototype.
20053         * lib/strerror-impl.h: Delete.
20054         * lib/strerror.c (strerror): New implementation.
20055         * modules/errno (Files): Add new files.
20056         (configure.ac): Compile new file as appropriate.
20057         * modules/strerror (Files): Drop unused file.
20058         (Depends-on): Drop strerror_r-posix.
20059         * MODULES.html.sh: Document strerror_r-posix.
20060         Requested by Sam Steingold.
20061
20062         perror: call strerror_r directly
20063         * modules/perror (Files): Drop strerror-impl.h.
20064         * lib/perror.c (perror): Use our own stack buffer, rather than
20065         calling a wrapper that uses static storage.
20066         * doc/posix-functions/perror.texi (perror): Document a limitation
20067         of our replacement.
20068
20069         strerror_r: fix includes for FreeBSD
20070         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20071         since we use abort on some platforms.
20072         Reported by Matthias Bolte.
20073
20074 2011-05-31  Bruno Haible  <bruno@clisp.org>
20075
20076         Fix link errors in tests: openat-die uses gettext-h.
20077         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20078         against $(LIBINTL).
20079         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20080         against $(LIBINTL).
20081         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20082         $(LIBINTL).
20083         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20084         against $(LIBINTL).
20085         * modules/linkat-tests (Makefile.am): Link test-linkat against
20086         $(LIBINTL).
20087         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20088         $(LIBINTL).
20089         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20090         against $(LIBINTL).
20091         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20092         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20093         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20094         $(LIBINTL).
20095         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20096         $(LIBINTL).
20097         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20098         $(LIBINTL).
20099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20100
20101 2011-05-31  Bruno Haible  <bruno@clisp.org>
20102
20103         Fix link errors in tests: wait-process uses gettext-h.
20104         * modules/nonblocking-pipe-tests (Makefile.am): Set
20105         test_nonblocking_pipe_main_LDADD.
20106         * modules/nonblocking-socket-tests (Makefile.am): Link
20107         test-nonblocking-socket-main against $(LIBINTL).
20108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20109
20110 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20111
20112         assert-h: work around 'verify' incompatibility
20113         * lib/verify.h: Use @...@ directives, not ifdef.
20114         * modules/assert-h (assert.h): Implement the directives.
20115         (assert.h): Substitute the symbol-prefix more consistently.
20116
20117 2011-05-29  Jim Meyering  <meyering@redhat.com>
20118
20119         trim: remove three superfluous assignments
20120         * lib/trim.c (trim2): Remove three superfluous assignments
20121         and correct brace positioning.
20122
20123 2011-05-29  Bruno Haible  <bruno@clisp.org>
20124
20125         wctype-h: Avoid namespace pollution on Solaris 2.6.
20126         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20127         identifiers.
20128         * doc/posix-headers/wctype.texi: Mention the problem.
20129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20130
20131 2011-05-28  Jim Meyering  <meyering@redhat.com>
20132
20133         parse-datetime.y: accommodate -Wstrict-overflow
20134         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20135         placate -Wstrict-overflow.
20136
20137         trim: avoid a warning from -O2 -Wstrict-overflow
20138         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20139
20140 2011-05-29  Bruno Haible  <bruno@clisp.org>
20141
20142         gnulib-tool: Fix bug in yesterday's commit.
20143         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20144         twice.
20145
20146 2011-05-29  Bruno Haible  <bruno@clisp.org>
20147
20148         Allow multiple gnulib generated include files to be combined.
20149         * gnulib-tool (func_compute_include_guard_prefix): New function.
20150         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20151         ${gl_include_guard_prefix} references.
20152         (func_import, func_create_testdir): Invoke
20153         func_compute_include_guard_prefix.
20154         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20155         * lib/ctype.in.h: Likewise.
20156         * lib/dirent.in.h: Likewise.
20157         * lib/errno.in.h: Likewise.
20158         * lib/fcntl.in.h: Likewise.
20159         * lib/float.in.h: Likewise.
20160         * lib/getopt.in.h: Likewise.
20161         * lib/iconv.in.h: Likewise.
20162         * lib/langinfo.in.h: Likewise.
20163         * lib/locale.in.h: Likewise.
20164         * lib/math.in.h: Likewise.
20165         * lib/netdb.in.h: Likewise.
20166         * lib/netinet_in.in.h: Likewise.
20167         * lib/poll.in.h: Likewise.
20168         * lib/pthread.in.h: Likewise.
20169         * lib/pty.in.h: Likewise.
20170         * lib/sched.in.h: Likewise.
20171         * lib/se-selinux.in.h: Likewise.
20172         * lib/search.in.h: Likewise.
20173         * lib/signal.in.h: Likewise.
20174         * lib/spawn.in.h: Likewise.
20175         * lib/stdarg.in.h: Likewise.
20176         * lib/stddef.in.h: Likewise.
20177         * lib/stdint.in.h: Likewise.
20178         * lib/stdio.in.h: Likewise.
20179         * lib/stdlib.in.h: Likewise.
20180         * lib/string.in.h: Likewise.
20181         * lib/strings.in.h: Likewise.
20182         * lib/sys_file.in.h: Likewise.
20183         * lib/sys_ioctl.in.h: Likewise.
20184         * lib/sys_select.in.h: Likewise.
20185         * lib/sys_socket.in.h: Likewise.
20186         * lib/sys_stat.in.h: Likewise.
20187         * lib/sys_time.in.h: Likewise.
20188         * lib/sys_times.in.h: Likewise.
20189         * lib/sys_uio.in.h: Likewise.
20190         * lib/sys_utsname.in.h: Likewise.
20191         * lib/sys_wait.in.h: Likewise.
20192         * lib/sysexits.in.h: Likewise.
20193         * lib/termios.in.h: Likewise.
20194         * lib/time.in.h: Likewise.
20195         * lib/unistd.in.h: Likewise.
20196         * lib/wchar.in.h: Likewise.
20197         * lib/wctype.in.h: Likewise.
20198         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20199         * modules/ctype (Makefile.am): Likewise.
20200         * modules/dirent (Makefile.am): Likewise.
20201         * modules/errno (Makefile.am): Likewise.
20202         * modules/fcntl-h (Makefile.am): Likewise.
20203         * modules/float (Makefile.am): Likewise.
20204         * modules/getopt-posix (Makefile.am): Likewise.
20205         * modules/iconv-h (Makefile.am): Likewise.
20206         * modules/langinfo (Makefile.am): Likewise.
20207         * modules/locale (Makefile.am): Likewise.
20208         * modules/math (Makefile.am): Likewise.
20209         * modules/netdb (Makefile.am): Likewise.
20210         * modules/netinet_in (Makefile.am): Likewise.
20211         * modules/poll-h (Makefile.am): Likewise.
20212         * modules/pthread (Makefile.am): Likewise.
20213         * modules/pty (Makefile.am): Likewise.
20214         * modules/sched (Makefile.am): Likewise.
20215         * modules/search (Makefile.am): Likewise.
20216         * modules/selinux-h (Makefile.am): Likewise.
20217         * modules/signal (Makefile.am): Likewise.
20218         * modules/spawn (Makefile.am): Likewise.
20219         * modules/stdarg (Makefile.am): Likewise.
20220         * modules/stddef (Makefile.am): Likewise.
20221         * modules/stdint (Makefile.am): Likewise.
20222         * modules/stdio (Makefile.am): Likewise.
20223         * modules/stdlib (Makefile.am): Likewise.
20224         * modules/string (Makefile.am): Likewise.
20225         * modules/strings (Makefile.am): Likewise.
20226         * modules/sys_file (Makefile.am): Likewise.
20227         * modules/sys_ioctl (Makefile.am): Likewise.
20228         * modules/sys_select (Makefile.am): Likewise.
20229         * modules/sys_socket (Makefile.am): Likewise.
20230         * modules/sys_stat (Makefile.am): Likewise.
20231         * modules/sys_time (Makefile.am): Likewise.
20232         * modules/sys_times (Makefile.am): Likewise.
20233         * modules/sys_uio (Makefile.am): Likewise.
20234         * modules/sys_utsname (Makefile.am): Likewise.
20235         * modules/sys_wait (Makefile.am): Likewise.
20236         * modules/sysexits (Makefile.am): Likewise.
20237         * modules/termios (Makefile.am): Likewise.
20238         * modules/time (Makefile.am): Likewise.
20239         * modules/unistd (Makefile.am): Likewise.
20240         * modules/wchar (Makefile.am): Likewise.
20241         * modules/wctype-h (Makefile.am): Likewise.
20242         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20243
20244 2011-05-29  Bruno Haible  <bruno@clisp.org>
20245
20246         assert-h: Allow multiple gnulib generated replacements to coexist.
20247         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20248
20249 2011-05-29  Bruno Haible  <bruno@clisp.org>
20250
20251         argp: Allow coexistence with strerror_r-posix module.
20252         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20253         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20254         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20255         not the glibc signature.
20256
20257 2011-05-28  Bruno Haible  <bruno@clisp.org>
20258
20259         gnulib-tool: Alternative structure of testdirs, similar to --import.
20260         * gnulib-tool: New option --single-configure.
20261         (func_usage): Document it.
20262         (single_configure): New variable.
20263         (func_modules_transitive_closure_separately,
20264         func_modules_transitive_closure_separately,
20265         func_determine_use_libtests, func_modules_add_dummy_separately,
20266         func_modules_to_filelist_separately): New functions, extracted from
20267         func_import.
20268         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20269         (func_import): Use the new functions.
20270         (func_create_testdir): Set final_modules. Handle $single_configure =
20271         true case.
20272
20273 2011-05-28  Bruno Haible  <bruno@clisp.org>
20274
20275         getloadavg: Remove an unreliable safety check.
20276         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20277         getloadavg.c is in place.
20278         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20279         Reported by Sam Steingold <sds@gnu.org>.
20280
20281 2011-05-28  Bruno Haible  <bruno@clisp.org>
20282
20283         doc: Cleanup yet another file produced by texinfo.tex.
20284         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20285
20286 2011-05-28  Bruno Haible  <bruno@clisp.org>
20287
20288         Finish the conditional dependencies mechanism.
20289         * gnulib-tool: New option --no-conditional-dependencies.
20290         (func_usage): Document it. Don't mark --conditional-dependencies as
20291         experimental.
20292         (cond_dependencies): The possible values can now be true, false, empty.
20293         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20294         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20295         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20296
20297 2011-05-28  Bruno Haible  <bruno@clisp.org>
20298
20299         doc: Use a recent texinfo.tex.
20300         * doc/Makefile (tex_opts): New variable.
20301         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20302
20303 2011-05-28  Jim Meyering  <meyering@redhat.com>
20304
20305         intprops.h: adjust comment to match code change
20306         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20307         only once, it *may* have side effects.  Also fix an unrelated typo.
20308         (_GL_INT_SIGNED): Likewise.
20309
20310 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20311
20312         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20313
20314 2011-05-26  Bruno Haible  <bruno@clisp.org>
20315
20316         mbsrchr: Avoid collision with system function on Interix.
20317         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20318         Reported by Markus Duft <mduft@gentoo.org>.
20319
20320 2011-05-15  James Youngman  <jay@gnu.org>
20321
20322         getopt: for ambiguous options, enumerate the possibilities.
20323         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20324         the ambiguous options when an ambiguous prefix is given. This was
20325         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20326         glibc change was
20327         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20328
20329 2011-05-25  Eric Blake  <eblake@redhat.com>
20330
20331         getcwd: work around mingw bug
20332         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20333         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20334         Reported by Matthias Bolte.
20335
20336 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20337
20338         test-intprops: disable -Wtype-limits diagnostics
20339         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20340         diagnostics.  Otherwise, the integer overflow macros generate many
20341         diagnostics.  Reported by Jim Meyering in
20342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20343
20344         intprops: shorten, to pacify gcc -Woverlength-strings
20345         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20346         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20347         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20348         likely to run afoul of C compiler limits for string constant lengths.
20349         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20350
20351 2011-05-24  Eric Blake  <eblake@redhat.com>
20352
20353         docs: document recently fixed glibc printf bug
20354         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20355         * doc/posix-functions/printf.texi (printf): Likewise.
20356         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20357         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20358
20359         closein-tests: convert to init.sh
20360         * modules/closein-tests (Files): Add init.sh
20361         * tests/test-closein.sh Use it.
20362
20363         yesno-tests: convert to init.sh
20364         * modules/yesno-tests (Files): Add init.sh.
20365         * tests/test-yesno.sh: Use it.
20366
20367         atexit-tests: ensure reliable exit status
20368         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20369         Reported by Bruno Haible.
20370
20371 2011-05-24  Bruno Haible  <bruno@clisp.org>
20372
20373         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20374         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20375         gl_PREREQ_STRERROR_R invocations from here...
20376         * modules/strerror_r-posix (configure.ac): ... to here.
20377
20378 2011-05-24  Eric Blake  <eblake@redhat.com>
20379
20380         strerror_r: fix missing header
20381         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20382
20383         strerror_r: fix AIX test failures
20384         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20385         ERANGE failure.
20386
20387         strerror_r: fix Solaris test failures
20388         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20389         failures.
20390         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20391
20392         strerror_r: enforce POSIX recommendations
20393         * lib/strerror_r.c (safe_copy): New helper method.
20394         (strerror_r): Guarantee a non-empty string.
20395         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20396         recent POSIX rulings and to match our strerror guarantees.
20397         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20398
20399 2011-05-24  Jim Meyering  <meyering@redhat.com>
20400
20401         test-perror2.c: avoid warning about unused variable
20402         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20403
20404 2011-05-24  Eric Blake  <eblake@redhat.com>
20405
20406         perror: avoid spurious test failure on HP-UX
20407         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20408
20409         tests: fix logic bug in init.sh
20410         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20411         shell.
20412
20413 2011-05-24  Jim Meyering  <meyering@redhat.com>
20414
20415         utimensat: do not reference an out-of-scope buffer
20416         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20417         declared in an inner scope, yet "times" would be dereferenced outside
20418         the scope in which "ts" was valid.
20419         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20420         of ts[2] "out/up", so that the use of aliased "times" (via
20421         "times = ts;") does not end up referencing an out-of-scope "ts"
20422
20423         opendir-safer.c: don't clobber errno; don't close negative FD
20424         * lib/opendir-safer.c (opendir_safer):
20425         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20426         file descriptor, and more importantly, don't clobber the
20427         offending errno value with EINVAL.  Before, upon failure
20428         of dup_safer, we would pass the negative file descriptor to
20429         fdopendir, which would clobber errno.
20430
20431 2011-05-23  Bruno Haible  <bruno@clisp.org>
20432
20433         idcache: Fix module description.
20434         * modules/idcache (Include): Set to "idcache.h".
20435
20436 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20437
20438         gnulib-tool: fix portability problem with MacOS sed
20439         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20440         before the "}".  Problem reported by Leo in
20441         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20442         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20443         sed_extract_condition1, sed_extract_condition2.
20444
20445 2011-05-23  Bruno Haible  <bruno@clisp.org>
20446
20447         hash: Simplify autoconf macro.
20448         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20449
20450 2011-05-23  Bruno Haible  <bruno@clisp.org>
20451
20452         getugroups: Fix module description.
20453         * modules/getugroups (Include): Set to "getugroups.h".
20454
20455 2011-05-23  Bruno Haible  <bruno@clisp.org>
20456
20457         linkat: Simplify autoconf macro.
20458         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20459
20460 2011-05-23  Bruno Haible  <bruno@clisp.org>
20461             Eric Blake  <eblake@redhat.com>
20462
20463         linkat, renameat: Update dependencies.
20464         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20465         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20466         symlinkat.
20467
20468 2011-05-23  Jim Meyering  <meyering@redhat.com>
20469
20470         maint.mk: more tight_scope improvements
20471         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20472         (_gl_TS_headers): Define only in if-0'd block.
20473         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20474         sometimes we must *not* use it.  Adjust uses accordingly.
20475         (sc_tight_scope): Use much simpler grep-based test to determine
20476         whether we skip this rule.
20477
20478         maint.mk: generalize/improve the tight-scope rule
20479         * top/maint.mk: Emit a warning when the test is skipped.
20480         (_gl_TS_dir): Add $(srcdir)/ prefix.
20481         (_gl_TS_function_match): Simplify, rather than trying
20482         to enumerate common types.  Otherwise, it would fail to match an
20483         "extern unsigned char const *" declaration in idutils.
20484         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20485         a way to support use of that type of macro.
20486         (_gl_TS_var_match): Simplify regexp.
20487         (_gl_TS_obj_files): New configurable variable.
20488         (_gl_TS_headers): Likewise.
20489
20490 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20491
20492         verify: fix bug when gnulib <assert.h> is also included
20493         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20494         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20495         Perhaps there's a better way, but this fixes the immediate problem.
20496         Problem reported by Bruno Haible in
20497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20498
20499 2011-05-22  Bruno Haible  <bruno@clisp.org>
20500
20501         xgetcwd: Simplify autoconf macro.
20502         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20503
20504 2011-05-22  Bruno Haible  <bruno@clisp.org>
20505
20506         New module 'mktime-internal'.
20507         * modules/mktime-internal: New file.
20508         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20509         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20510         mktime_internal as a C macro if libc has __mktime_internal.
20511         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20512         conditions.
20513         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20514
20515 2011-05-22  Bruno Haible  <bruno@clisp.org>
20516
20517         timegm: Correct mktime replacement statements.
20518         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20519         defining mktime as a C macro. This completes a 2009-07-28 commit.
20520
20521 2011-05-22  Bruno Haible  <bruno@clisp.org>
20522
20523         timegm: Simplify autoconf macro.
20524         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20525
20526 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20527
20528         clock-time: change to LGPLv2+.
20529         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20530         BSD-like but we have no mark for that; this is good enough for now.
20531
20532 2011-05-21  Bruno Haible  <bruno@clisp.org>
20533
20534         strerror_r: Fix comments.
20535         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20536
20537 2011-05-21  Bruno Haible  <bruno@clisp.org>
20538
20539         relocatable-prog-wrapper: Fix possible link error.
20540         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20541         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20542         (gl_FUNC_SETENV): ... to here.
20543         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20544         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20545
20546 2011-05-21  Bruno Haible  <bruno@clisp.org>
20547
20548         relocatable-prog-wrapper: Assume strerror() exists.
20549         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20550         m4/strerror.m4.
20551         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20552         * lib/relocwrapper.c: Remove mention of strerror module.
20553         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20555         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20556         C macro.
20557
20558 2011-05-21  Bruno Haible  <bruno@clisp.org>
20559
20560         select: Simplify replacement idiom.
20561         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20562         Win32 platforms.
20563         * lib/sys_select.in.h (select): Simplify accordingly.
20564         * modules/select (Depends-on): Likewise.
20565
20566 2011-05-21  Bruno Haible  <bruno@clisp.org>
20567
20568         mkdir-p: Simplify autoconf macro.
20569         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20570         gl_FUNC_LCHOWN.
20571
20572 2011-05-21  Eric Blake  <eblake@redhat.com>
20573
20574         strerror_r: avoid clobbering strerror on cygwin
20575         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20576         fall back instead to sys_errlist.
20577         * modules/strerror (configure.ac): Add witness.
20578         * tests/test-strerror_r.c (main): Enhance test.
20579         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20580         * tests/test-perror2.c (main): Free memory before exit.
20581
20582 2011-05-21  Bruno Haible  <bruno@clisp.org>
20583
20584         mkdtemp: Use gnulib naming conventions.
20585         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20586         * modules/mkdtemp (configure.ac): Update.
20587
20588 2011-05-20  Eric Blake  <eblake@redhat.com>
20589
20590         strerror_r: avoid corrupting errno on Solaris
20591         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20592         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20593
20594         strerror_r: avoid compiler warning
20595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20596
20597         strerror_r: simplify AIX code
20598         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20599
20600         test-perror: avoid spurious failure on FreeBSD
20601         * modules/perror-tests (Depends-on): Add strerror, now that
20602         strerror_r no longer pulls it in.
20603
20604 2011-05-20  Bruno Haible  <bruno@clisp.org>
20605
20606         strerror_r-posix: Remove unused dependencies.
20607         * modules/strerror_r-posix (Depends-on): Remove strerror.
20608         Reported by Eric Blake.
20609
20610 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         intprops: remove assumption about A|B representation
20613         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20614         is a valid integer if both A and B are.  Although this is true for
20615         all known practical hosts, the C standard doesn't guarantee it,
20616         and the code need not assume it.  Also, this change may work around
20617         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20619
20620 2011-05-20  Eric Blake  <eblake@redhat.com>
20621
20622         perror: work around FreeBSD bug
20623         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20624         is broken.  Move AC_LIBOBJ...
20625         * modules/perror (configure.ac): Here.
20626         * doc/posix-functions/perror.texi (perror): Document this.
20627         * tests/test-perror2.c (main): Enhance test.
20628
20629         test-perror: check for strerror interactions
20630         * tests/macros.h (STREQ): Add macro.
20631         * modules/perror-tests (Files): Add second test.
20632         * tests/test-perror2.c (main): New file.
20633         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20634
20635         test-perror: rewrite to use init script
20636         * modules/perror-tests (Files): Add init.sh.
20637         * tests/test-perror.sh: Use temporary directory.
20638
20639 2011-05-20  Jim Meyering  <meyering@redhat.com>
20640
20641         maint: replace misused "a" with "an"
20642         * doc/intprops.texi: "a integer"
20643         * doc/regex.texi: "a explanation"
20644         * lib/alignof.h: "a object"
20645         * lib/argmatch.h: "a explanation"
20646         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20647         * lib/stdint.in.h: "a integer"
20648         * lib/userspec.c: "a owner"
20649         * doc/gnulib.texi: Fix "a idea", and reword.
20650
20651 2011-05-19  Jim Meyering  <meyering@redhat.com>
20652
20653         maint: correct misuse of "a" and "an"
20654         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20655         * lib/argp-help.c: "an docum...": s/an/a/
20656         * lib/argp-parse.c: "An vector": s/An/A/
20657         * lib/execute.c: "an native": s/an/a/
20658         * lib/spawn-pipe.c: Likewise.
20659         * lib/gc.h: "an Gc_rc": s/an/a/
20660         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20661         * lib/fts.c: "an stat.st_dev": s/an/a/
20662
20663 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         intprops-tests: work around HP-UX 11.23 cc bug with constants
20666         * tests/test-intprops.c (VERIFY): New macro.
20667         (main): Use it, instead of verify, to work around the compiler bug; see
20668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20669
20670         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20671         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20672         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20673         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20674         (_GL_REMAINDER_OVERFLOW): Use it.
20675
20676         intprops-tests: revert unsigned part of previous change
20677         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20678         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20679         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20681
20682 2011-05-19  Bruno Haible  <bruno@clisp.org>
20683
20684         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20685         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20686         strerror_r() returned without filling the buffer.
20687         Reported by Eric Blake.
20688
20689 2011-05-19  Eric Blake  <eblake@redhat.com>
20690
20691         strerror_r: guarantee unchanged errno
20692         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20693         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20694         failure.
20695         * tests/test-strerror_r.c (main): Enhance test.
20696
20697 2011-05-19  Bruno Haible  <bruno@clisp.org>
20698
20699         strerror_r: Reorder #if blocks.
20700         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20701         for consistency with the previous commit.
20702
20703 2011-05-19  Bruno Haible  <bruno@clisp.org>
20704
20705         perror: Avoid clobbering the strerror buffer when possible.
20706         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20707         * lib/strerror.c: Include it.
20708         * modules/strerror (Files): Add lib/strerror-impl.h.
20709         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20710         (my_strerror): New function, defined through lib/strerror-impl.h.
20711         (perror): Use it instead of strerror.
20712         * modules/perror (Files): Add lib/strerror-impl.h.
20713         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20714
20715 2011-05-19  Eric Blake  <eblake@redhat.com>
20716
20717         strerror_r: fix on newer cygwin
20718         * lib/strerror_r.c (strerror_r): Cygwin now has
20719         __xpg_strerror_r, use it.
20720
20721 2011-05-19  Bruno Haible  <bruno@clisp.org>
20722
20723         strerror_r: Avoid clobbering the strerror buffer when possible.
20724         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20725         (sys_nerr, sys_errlist): New declarations.
20726         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20727         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20728         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20729
20730 2011-05-19  Bruno Haible  <bruno@clisp.org>
20731
20732         strerror_r: Fix test failure on mingw.
20733         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20734         EXTEND_STRERROR_R.
20735         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20736         macros from errno.in.h instead.
20737
20738 2011-05-19  Eric Blake  <eblake@redhat.com>
20739
20740         strerror: relax test for Solaris
20741         * tests/test-strerror.c (main): Permit Solaris behavior.
20742         * tests/test-strerror_r.c (main): Likewise.
20743
20744         strerror: enforce POSIX ruling on strerror(0)
20745         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20746         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20747         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20748         * doc/posix-functions/strerror.texi (strerror): Document it.
20749         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20750         * tests/test-strerror.c (main): Strengthen test.
20751         * tests/test-strerror_r.c (main): Likewise.
20752
20753 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20754
20755         intprop-tests: port to older and more-pedantic compilers
20756         * modules/intprops-tests (Files): Add tests/macros.h.
20757         * tests/test-intprops.c: Include macros.h.
20758         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20759         it's no longer documented to expand to an integer constant expression.
20760         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20761         argument is floating point, as it's no longer documented to expand
20762         to an integer constant expression in that case.
20763         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20764         compiler bugs reported by Bruno Haible.  See
20765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20766         (U0, U1): New constants, to work around the same bugs.  Also,
20767         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20768
20769         intprops: work around C compiler bugs
20770         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20771         bug in Sun C 5.11 2010/08/13 and other compilers; see
20772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20773
20774         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20775         * doc/intprops.texi (Integer Type Determination): Fix
20776         documentation for TYPE_IS_INTEGER: it returns an constant
20777         expression, not an integer constant expression.  Fix doc for
20778         TYPE_SIGNED: it returns an integer constant expression only if its
20779         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20780         hardly worth documented that way....)
20781
20782 2011-05-18  Bruno Haible  <bruno@clisp.org>
20783
20784         strerror_r: Avoid clobbering the strerror buffer when possible.
20785         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20786         Handle gnulib defined errno values here. When strerror() returns NULL
20787         or an empty string, return EINVAL.
20788         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20789         gnulib defined errno values here.
20790         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20791
20792 2011-05-18  Eric Blake  <eblake@redhat.com>
20793
20794         fnmatch: avoid compiler warning
20795         * lib/fnmatch_loop.c (FCT): Use correct type.
20796         Reported by Matthias Bolte.
20797
20798 2011-05-13  Jim Meyering  <meyering@redhat.com>
20799
20800         maint.mk: three new prohibit_<HDR>_without_use rules
20801         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20802         (sc_prohibit_stdio-safer_without_use): Likewise.
20803         (sc_prohibit_xfreopen_without_use): Likewise.
20804
20805 2011-05-17  Jim Meyering  <meyering@redhat.com>
20806
20807         announce-gen: fail if the NEWS delta is empty
20808         If there's nothing noteworthy in NEWS, then either you forgot
20809         or you shouldn't be releasing.
20810         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20811
20812 2011-05-17  Pádraig Brady <P@draigBrady.com>
20813
20814         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20815         reserved symbols starting with double underscore from the check.
20816
20817 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20818
20819         intprops: add doc
20820         * doc/intprops.texi: New file, documenting intprops.
20821         * doc/gnulib.texi (Particular Modules): Include it.
20822
20823         verify: add doc to gnulib manual and fix example
20824         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20825         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20826         (Compile-time Assertions): Fix example so it can't overflow.
20827
20828 2011-05-17  Jim Meyering  <meyering@redhat.com>
20829
20830         warnings.m4: don't usurp save_CPPFLAGS variable name
20831         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20832
20833         doc: fix typo
20834         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20835
20836 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20837             Bruno Haible  <bruno@clisp.org>
20838
20839         doc: Tweak recent change.
20840         * README (Portability guidelines): Tweak new text.
20841         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20842         Interix 6.1.
20843
20844 2011-05-16  Eric Blake  <eblake@redhat.com>
20845
20846         inttypes: avoid autoconf warning
20847         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20848         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20849
20850 2011-05-16  Sam Steingold <sds@gnu.org>
20851         and Eric Blake  <eblake@redhat.com>
20852
20853         vc-list-files: accept multiple directory operands
20854         * build-aux/vc-list-files: Iterate over all remaining operands.
20855
20856 2011-05-16  Bruno Haible  <bruno@clisp.org>
20857
20858         Fix confusion regarding deprecated modules.
20859         * modules/calloc (Status, Notice): Mark module as deprecated, not
20860         obsolete.
20861         * modules/fnmatch-posix (Status, Notice): Likewise.
20862         * modules/getdate (Status, Notice): Likewise.
20863         * modules/getopt (Status, Notice): Likewise.
20864         * modules/malloc (Status, Notice): Likewise.
20865         * modules/pipe (Status, Notice): Likewise.
20866         * modules/realloc (Status, Notice): Likewise.
20867         * modules/rename-dest-slash (Status, Notice): Likewise.
20868         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20869         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20870         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20871         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20872         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20873
20874 2011-05-16  Bruno Haible  <bruno@clisp.org>
20875
20876         doc: List the target platforms.
20877         * doc/gnulib-intro.texi (Target Platforms): New section.
20878         * doc/gnulib.texi (Introduction): Update menu.
20879         * README (Portability guidelines): Refer to the new section. Update
20880         statement about oldest supported environment. Remove rationale why
20881         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20882         unportable C89 function.
20883         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20884         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20885
20886 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20887
20888         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20889
20890 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20891
20892         intprops-tests: new module
20893         * modules/intprops-tests, tests/test-intprops.c: New files.
20894
20895         intprops: add safe, portable integer overflow checking
20896         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20897         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20898         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20899         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20900         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20901         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20902         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20903         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20904         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20905         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20906         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20907
20908 2011-05-12  James Youngman  <jay@gnu.org>
20909
20910         Add a test for glibc's Bugzilla bug #12378.
20911         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20912         doesn't allow the literal matching of a lone "[" (which is
20913         required by POSIX).
20914         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20915
20916 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20917
20918         Sync glibc change fixing Bugzilla bug #12378.
20919         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20920         beginning and fall back to matching as normal character if the
20921         string ends before the matching ']' is found.  This is what POSIX
20922         requires.
20923
20924 2011-05-13  Eric Blake  <eblake@redhat.com>
20925
20926         getcwd-lgpl: relax test for FreeBSD
20927         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20928         issue.
20929         * tests/test-getcwd-lgpl.c (main): Relax test.
20930         Reported by Matthias Bolte.
20931
20932 2011-05-11  Eric Blake  <eblake@redhat.com>
20933
20934         test-fflush: silence compiler warning
20935         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20936
20937 2011-05-11  Bruno Haible  <bruno@clisp.org>
20938
20939         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20940         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20941         * modules/canonicalize (Depends-on): Add 'nocrash'.
20942         * modules/canonicalize-lgpl (Depends-on): Likewise.
20943         * doc/posix-functions/realpath.texi: Update platforms list.
20944         Reported by Ryan Schmidt <ryandesign@macports.org>.
20945
20946 2011-05-11  Bruno Haible  <bruno@clisp.org>
20947
20948         group-member: Declare function in <unistd.h>.
20949         * lib/unistd.in.h (group_member): New declaration.
20950         * lib/group-member.h: Remove file.
20951         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20952         * tests/test-unistd-c++.cc: Check signature of group_member.
20953         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20954         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20955         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20956         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20957         HAVE_GROUP_MEMBER.
20958         * modules/group-member (Files): Remove lib/group-member.h.
20959         (Depends-on): Add unistd. Specify conditions.
20960         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20961         (Include): Change to <unistd.h>.
20962         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20963         HAVE_GROUP_MEMBER.
20964         * NEWS: Mention the change.
20965         * lib/euidaccess.c: Don't include group-member.h.
20966
20967 2011-05-11  Bruno Haible  <bruno@clisp.org>
20968
20969         group-member: Document module.
20970         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20971         module.
20972
20973 2011-05-11  Bruno Haible  <bruno@clisp.org>
20974
20975         fclose: Fix mistake earlier today.
20976         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20977
20978 2011-05-11  Eric Blake  <eblake@redhat.com>
20979
20980         fclose: preserve fflush errors
20981         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20982         Reported by Jim Meyering.
20983
20984         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20985         * build-aux/bootstrap (check_versions): When no specific version
20986         is required, merely check that the app produces an exit status
20987         that indicates its existence.
20988
20989         maint.mk: drop redundant check
20990         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20991         the same but better.
20992
20993 2011-05-11  Bruno Haible  <bruno@clisp.org>
20994
20995         fclose: Fix possible link error.
20996         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20997         unregister_shadow_fd. Improve comments.
20998         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20999         Eric Blake.
21000
21001 2011-05-11  Jim Meyering  <meyering@redhat.com>
21002
21003         maint.mk: improve "can not" detection and generalize rule name
21004         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21005         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21006         Use the same technique as in sc_prohibit_doubled_word, so that
21007         we recognize "can not" also when the words are separated by a newline.
21008         Suggested by Eric Blake.
21009         (perl_filename_lineno_text_): Define.  Factored out of...
21010         (prohibit_doubled_word_): ...here.  Use the new definition.
21011         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21012         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21013         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21014
21015 2011-05-10  Eric Blake  <eblake@redhat.com>
21016
21017         fclose: avoid double close race when possible
21018         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21019         all but WINDOWS_SOCKETS.
21020
21021 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21022
21023         openat: correct new comment
21024         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21025
21026 2011-05-10  Jim Meyering  <meyering@redhat.com>
21027
21028         openat: add comments
21029         * lib/openat-proc.c (openat_proc_name): Add comments,
21030         mostly from Eric Blake.
21031
21032 2011-05-09  Eric Blake  <eblake@redhat.com>
21033
21034         openat: reduce syscalls in first probe of /proc
21035         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21036         be a directory.  Simplify the probe for .. bugs.
21037         * modules/openat (Depends-on): Drop same-inode.
21038         Reported by Bastien ROUCARIES.
21039
21040 2011-05-09  Jim Meyering  <meyering@redhat.com>
21041
21042         maint.mk: change semantics/name of tight_scope variables
21043         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21044         Rename variables to align with semantics that make them more useful.
21045
21046         maint.mk: tweak new rule's name not to impinge
21047         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21048         (sc_tight_scope): Use new rule name rather than $@-0.
21049
21050         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21051         * top/maint.mk (sc_tight_scope): New rule.
21052         (sc_tight_scope-0): New rule, ifdef'd out.
21053         (_gl_TS_dir): Default.
21054         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21055         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21056
21057 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21058
21059         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21060         Haible <bruno@clisp.org>.
21061
21062 2011-05-08  Bruno Haible  <bruno@clisp.org>
21063
21064         Comments.
21065         * m4/isnanf.m4: Add comment.
21066         * m4/isnanl.m4: Likewise.
21067
21068 2011-05-08  Bruno Haible  <bruno@clisp.org>
21069
21070         glob: Remove obsolete macro.
21071         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21072
21073 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21074
21075         intprops: Sun C 5.11 supports __typeof__
21076         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21077         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21078         which is new.
21079         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21080
21081         intprops: switch to usual gnulib indenting and naming
21082         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21083         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21084
21085         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21086
21087 2011-05-08  Jim Meyering  <meyering@redhat.com>
21088
21089         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21090         * top/maint.mk (release-prep): Use make's --no-print-directory
21091         option when generating the announcement.  This eliminates the
21092         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21093         generated announcement template.
21094
21095 2011-05-08  Bruno Haible  <bruno@clisp.org>
21096
21097         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21098         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21099         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21100
21101 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21102
21103         ignore-value, verify: Omit include files from lib_SOURCES.
21104         * modules/ignore-value, modules/verify (Makefile.am):
21105         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21106         that leads Automake to duplicate use of am__objects_... variables
21107         in Makefile.in.  See
21108         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21109
21110 2011-05-07  Bruno Haible  <bruno@clisp.org>
21111
21112         fclose: Simplify autoconf macro.
21113         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21114         defined.
21115
21116 2011-05-07  Bruno Haible  <bruno@clisp.org>
21117
21118         canonicalize-lgpl: Fix autoconf macro ordering bug.
21119         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21120         gl_STDLIB_H_DEFAULTS.
21121
21122 2011-05-06  Eric Blake  <eblake@redhat.com>
21123
21124         maintainer-makefile: make sc_po_check easier to tune
21125         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21126         to probe for strings, such as an alternate location for gnulib.
21127
21128         fclose: guarantee behavior on seekable stdin
21129         * modules/fclose (Depends-on): Add fflush.
21130         * doc/posix-functions/fclose.texi (fclose): Document this.
21131         * tests/test-fclose.c (main): Make test for this unconditional.
21132
21133 2011-05-06  Bruno Haible  <bruno@clisp.org>
21134
21135         fflush, fpurge: Relicense under LGPLv2+.
21136         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21137         * modules/fpurge (License): Likewise.
21138         With permission from Eric Blake and Jim Meyering.
21139         Suggested by Eric Blake.
21140
21141 2011-05-06  Karl Berry  <karl@gnu.org>
21142
21143         * MODULES.html.sh (func_all_modules): remove exit.
21144
21145 2011-05-06  Jim Meyering  <meyering@redhat.com>
21146
21147         maint.mk: use info-gnu@ as the default only for a stable release
21148         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21149         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21150         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21152
21153 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21154
21155         assert-h: new module, which supports C1X-style static_assert
21156         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21157         * lib/verify.h: Revamp so that this can be copied into assert.h,
21158         while retaining the ability to use it standalone as before.
21159         Rename private identifiers so as not to encroach on the
21160         standard C namespace, since this is now used by assert.h.
21161         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21162         the old verify_true.
21163         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21164         the old verify_true.  Use _GL_VERIFY_TYPE.
21165         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21166         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21167         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21168         defined when this file is copied into the replacement assert.h.
21169         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21170         and _Static_assert is not built in.
21171         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21172         defined, and use the new macros mentioned above.
21173         * doc/posix-headers/assert.texi: Document this.
21174
21175 2011-05-05  Bruno Haible  <bruno@clisp.org>
21176
21177         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21178         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21179         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21180         gl_REPLACE_FCLOSE here.
21181         * modules/fflush (Depends-on): Remove fclose.
21182         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21183         combination with module 'fclose'.
21184
21185 2011-05-05  Bruno Haible  <bruno@clisp.org>
21186
21187         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21188         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21189         gl_FUNC_FFLUSH.
21190         (gl_FUNC_FFLUSH): Use it.
21191         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21193         gl_REPLACE_FSEEKO here.
21194
21195 2011-05-05  Bruno Haible  <bruno@clisp.org>
21196
21197         tzset: Relicense under LGPL.
21198         * modules/tzset (License): Change to LGPL.
21199         No agreement needed; it's a no-op.
21200
21201         strtoimax, strtoumax: Relicense under LGPL.
21202         * modules/strtoimax (License): Change to LGPL.
21203         * modules/strtoumax (License): Likewise.
21204         With permission from Jim Meyering, Paul Eggert:
21205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21207
21208         getgroups: Relicense under LGPL.
21209         * modules/getgroups (License): Change to LGPL.
21210         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21214
21215         nanosleep: Relicense under LGPL.
21216         * modules/nanosleep (License): Change to LGPL.
21217         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21218         Haible:
21219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21223
21224         futimens: Relicense under LGPL.
21225         * modules/futimens (License): Change to LGPL.
21226         With permission from Eric Blake:
21227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21228
21229         fflush: Relicense under LGPL.
21230         * modules/fflush (License): Change to LGPL.
21231         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21235
21236         tmpfile: Relicense under LGPL.
21237         * modules/tmpfile (License): Change to LGPL.
21238         With permission from Ben Pfaff:
21239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21240
21241         isfinite: Relicense under LGPL.
21242         * modules/isfinite (License): Change to LGPL.
21243         With permission from Ben Pfaff, Bruno Haible:
21244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21246
21247         acosl..tanl: Relicense under LGPL.
21248         * modules/acosl (License): Change to LGPL.
21249         * modules/asinl (License): Likewise.
21250         * modules/atanl (License): Likewise.
21251         * modules/cosl (License): Likewise.
21252         * modules/expl (License): Likewise.
21253         * modules/logl (License): Likewise.
21254         * modules/sinl (License): Likewise.
21255         * modules/sqrtl (License): Likewise.
21256         * modules/tanl (License): Likewise.
21257         Source code originally from glibc and Paolo Bonzini. Agreements:
21258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21260
21261 2011-05-05  Bruno Haible  <bruno@clisp.org>
21262
21263         signal: Define sighandler_t.
21264         * lib/signal.in.h (sighandler_t): New type.
21265         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21266         whether sighandler_t is defined.
21267         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21268         * modules/signal (Depends-on): Add extensions.
21269         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21270         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21271         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21272
21273 2011-05-05  Eric Blake  <eblake@redhat.com>
21274
21275         maint: remove useless REPLACE_*_H macros
21276         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21277         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21278         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21279         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21280         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21281         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21282         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21283         * m4/btowc.m4: Update callers.
21284         * m4/dirfd.m4: Likewise.
21285         * m4/duplocale.m4: Likewise.
21286         * m4/fchdir.m4: Likewise.
21287         * m4/fdopendir.m4: Likewise.
21288         * m4/inet_ntop.m4: Likewise.
21289         * m4/inet_pton.m4: Likewise.
21290         * m4/ioctl.m4: Likewise.
21291         * m4/mbrlen.m4: Likewise.
21292         * m4/mbrtowc.m4: Likewise.
21293         * m4/mbsinit.m4: Likewise.
21294         * m4/mbsnrtowcs.m4: Likewise.
21295         * m4/mbsrtowcs.m4: Likewise.
21296         * m4/poll.m4: Likewise.
21297         * m4/setlocale.m4: Likewise.
21298         * m4/wcrtomb.m4: Likewise.
21299         * m4/wcsnrtombs.m4: Likewise.
21300         * m4/wcsrtombs.m4: Likewise.
21301         * m4/wctob.m4: Likewise.
21302         * m4/wcwidth.m4: Likewise.
21303         * modules/posix_spawn: Likewise.
21304         * modules/posix_spawn_file_actions_addclose: Likewise.
21305         * modules/posix_spawn_file_actions_adddup2: Likewise.
21306         * modules/posix_spawn_file_actions_addopen: Likewise.
21307         * modules/posix_spawn_file_actions_destroy: Likewise.
21308         * modules/posix_spawn_file_actions_init: Likewise.
21309         * modules/posix_spawnattr_destroy: Likewise.
21310         * modules/posix_spawnattr_getflags: Likewise.
21311         * modules/posix_spawnattr_getpgroup: Likewise.
21312         * modules/posix_spawnattr_getschedparam: Likewise.
21313         * modules/posix_spawnattr_getschedpolicy: Likewise.
21314         * modules/posix_spawnattr_getsigdefault: Likewise.
21315         * modules/posix_spawnattr_getsigmask: Likewise.
21316         * modules/posix_spawnattr_init: Likewise.
21317         * modules/posix_spawnattr_setflags: Likewise.
21318         * modules/posix_spawnattr_setpgroup: Likewise.
21319         * modules/posix_spawnattr_setschedparam: Likewise.
21320         * modules/posix_spawnattr_setschedpolicy: Likewise.
21321         * modules/posix_spawnattr_setsigdefault: Likewise.
21322         * modules/posix_spawnattr_setsigmask: Likewise.
21323         * modules/posix_spawnp: Likewise.
21324
21325 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21326
21327         Add option to do-release-commit-and-tag to specify branch.
21328         * build-aux/do-release-commit-and-tag: Add --branch.
21329
21330 2011-05-03  Bruno Haible  <bruno@clisp.org>
21331
21332         Avoid unnecessary compilation units, through conditional dependencies.
21333         * modules/accept (Depends-on): Add conditions to the dependencies.
21334         * modules/acosl (Depends-on): Likewise.
21335         * modules/argz (Depends-on): Likewise.
21336         * modules/asinl (Depends-on): Likewise.
21337         * modules/atanl (Depends-on): Likewise.
21338         * modules/atoll (Depends-on): Likewise.
21339         * modules/bind (Depends-on): Likewise.
21340         * modules/btowc (Depends-on): Likewise.
21341         * modules/canonicalize-lgpl (Depends-on): Likewise.
21342         * modules/ceil (Depends-on): Likewise.
21343         * modules/ceilf (Depends-on): Likewise.
21344         * modules/ceill (Depends-on): Likewise.
21345         * modules/chdir-long (Depends-on): Likewise.
21346         * modules/chown (Depends-on): Likewise.
21347         * modules/close (Depends-on): Likewise.
21348         * modules/connect (Depends-on): Likewise.
21349         * modules/cosl (Depends-on): Likewise.
21350         * modules/dirfd (Depends-on): Likewise.
21351         * modules/dprintf (Depends-on): Likewise.
21352         * modules/dprintf-posix (Depends-on): Likewise.
21353         * modules/error (Depends-on): Likewise.
21354         * modules/euidaccess (Depends-on): Likewise.
21355         * modules/expl (Depends-on): Likewise.
21356         * modules/faccessat (Depends-on): Likewise.
21357         * modules/fchdir (Depends-on): Likewise.
21358         * modules/fclose (Depends-on): Likewise.
21359         * modules/fcntl (Depends-on): Likewise.
21360         * modules/fdopendir (Depends-on): Likewise.
21361         * modules/fflush (Depends-on): Likewise.
21362         * modules/floor (Depends-on): Likewise.
21363         * modules/floorf (Depends-on): Likewise.
21364         * modules/floorl (Depends-on): Likewise.
21365         * modules/fnmatch (Depends-on): Likewise.
21366         * modules/fopen (Depends-on): Likewise.
21367         * modules/fprintf-posix (Depends-on): Likewise.
21368         * modules/frexp (Depends-on): Likewise.
21369         * modules/frexp-nolibm (Depends-on): Likewise.
21370         * modules/frexpl (Depends-on): Likewise.
21371         * modules/frexpl-nolibm (Depends-on): Likewise.
21372         * modules/fseek (Depends-on): Likewise.
21373         * modules/fsusage (Depends-on): Likewise.
21374         * modules/ftell (Depends-on): Likewise.
21375         * modules/ftello (Depends-on): Likewise.
21376         * modules/futimens (Depends-on): Likewise.
21377         * modules/getcwd (Depends-on): Likewise.
21378         * modules/getcwd-lgpl (Depends-on): Likewise.
21379         * modules/getdelim (Depends-on): Likewise.
21380         * modules/getdomainname (Depends-on): Likewise.
21381         * modules/getgroups (Depends-on): Likewise.
21382         * modules/gethostname (Depends-on): Likewise.
21383         * modules/getline (Depends-on): Likewise.
21384         * modules/getlogin_r (Depends-on): Likewise.
21385         * modules/getopt-posix (Depends-on): Likewise.
21386         * modules/getpeername (Depends-on): Likewise.
21387         * modules/getsockname (Depends-on): Likewise.
21388         * modules/getsockopt (Depends-on): Likewise.
21389         * modules/getsubopt (Depends-on): Likewise.
21390         * modules/getusershell (Depends-on): Likewise.
21391         * modules/glob (Depends-on): Likewise.
21392         * modules/grantpt (Depends-on): Likewise.
21393         * modules/iconv_open (Depends-on): Likewise.
21394         * modules/iconv_open-utf (Depends-on): Likewise.
21395         * modules/inet_ntop (Depends-on): Likewise.
21396         * modules/inet_pton (Depends-on): Likewise.
21397         * modules/ioctl (Depends-on): Likewise.
21398         * modules/isapipe (Depends-on): Likewise.
21399         * modules/isfinite (Depends-on): Likewise.
21400         * modules/isinf (Depends-on): Likewise.
21401         * modules/lchown (Depends-on): Likewise.
21402         * modules/ldexpl (Depends-on): Likewise.
21403         * modules/link (Depends-on): Likewise.
21404         * modules/linkat (Depends-on): Likewise.
21405         * modules/listen (Depends-on): Likewise.
21406         * modules/logl (Depends-on): Likewise.
21407         * modules/lstat (Depends-on): Likewise.
21408         * modules/mbrlen (Depends-on): Likewise.
21409         * modules/mbrtowc (Depends-on): Likewise.
21410         * modules/mbsinit (Depends-on): Likewise.
21411         * modules/mbsnrtowcs (Depends-on): Likewise.
21412         * modules/mbsrtowcs (Depends-on): Likewise.
21413         * modules/mbtowc (Depends-on): Likewise.
21414         * modules/memcmp (Depends-on): Likewise.
21415         * modules/mkdir (Depends-on): Likewise.
21416         * modules/mkdtemp (Depends-on): Likewise.
21417         * modules/mkfifo (Depends-on): Likewise.
21418         * modules/mkfifoat (Depends-on): Likewise.
21419         * modules/mknod (Depends-on): Likewise.
21420         * modules/mkostemp (Depends-on): Likewise.
21421         * modules/mkostemps (Depends-on): Likewise.
21422         * modules/mkstemp (Depends-on): Likewise.
21423         * modules/mkstemps (Depends-on): Likewise.
21424         * modules/mktime (Depends-on): Likewise.
21425         * modules/nanosleep (Depends-on): Likewise.
21426         * modules/open (Depends-on): Likewise.
21427         * modules/openat (Depends-on): Likewise.
21428         * modules/perror (Depends-on): Likewise.
21429         * modules/poll (Depends-on): Likewise.
21430         * modules/popen (Depends-on): Likewise.
21431         * modules/posix_spawn (Depends-on): Likewise.
21432         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21433         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21434         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21435         * modules/posix_spawnp (Depends-on): Likewise.
21436         * modules/pread (Depends-on): Likewise.
21437         * modules/printf-posix (Depends-on): Likewise.
21438         * modules/ptsname (Depends-on): Likewise.
21439         * modules/putenv (Depends-on): Likewise.
21440         * modules/pwrite (Depends-on): Likewise.
21441         * modules/readline (Depends-on): Likewise.
21442         * modules/readlink (Depends-on): Likewise.
21443         * modules/readlinkat (Depends-on): Likewise.
21444         * modules/recv (Depends-on): Likewise.
21445         * modules/recvfrom (Depends-on): Likewise.
21446         * modules/regex (Depends-on): Likewise.
21447         * modules/remove (Depends-on): Likewise.
21448         * modules/rename (Depends-on): Likewise.
21449         * modules/renameat (Depends-on): Likewise.
21450         * modules/rmdir (Depends-on): Likewise.
21451         * modules/round (Depends-on): Likewise.
21452         * modules/roundf (Depends-on): Likewise.
21453         * modules/roundl (Depends-on): Likewise.
21454         * modules/rpmatch (Depends-on): Likewise.
21455         * modules/select (Depends-on): Likewise.
21456         * modules/send (Depends-on): Likewise.
21457         * modules/sendto (Depends-on): Likewise.
21458         * modules/setenv (Depends-on): Likewise.
21459         * modules/setlocale (Depends-on): Likewise.
21460         * modules/setsockopt (Depends-on): Likewise.
21461         * modules/shutdown (Depends-on): Likewise.
21462         * modules/sigaction (Depends-on): Likewise.
21463         * modules/signbit (Depends-on): Likewise.
21464         * modules/sigprocmask (Depends-on): Likewise.
21465         * modules/sinl (Depends-on): Likewise.
21466         * modules/sleep (Depends-on): Likewise.
21467         * modules/snprintf (Depends-on): Likewise.
21468         * modules/snprintf-posix (Depends-on): Likewise.
21469         * modules/socket (Depends-on): Likewise.
21470         * modules/sprintf-posix (Depends-on): Likewise.
21471         * modules/sqrtl (Depends-on): Likewise.
21472         * modules/stat (Depends-on): Likewise.
21473         * modules/strchrnul (Depends-on): Likewise.
21474         * modules/strdup-posix (Depends-on): Likewise.
21475         * modules/strerror (Depends-on): Likewise.
21476         * modules/strerror_r-posix (Depends-on): Likewise.
21477         * modules/strndup (Depends-on): Likewise.
21478         * modules/strnlen (Depends-on): Likewise.
21479         * modules/strptime (Depends-on): Likewise.
21480         * modules/strsep (Depends-on): Likewise.
21481         * modules/strsignal (Depends-on): Likewise.
21482         * modules/strstr-simple (Depends-on): Likewise.
21483         * modules/strtod (Depends-on): Likewise.
21484         * modules/strtoimax (Depends-on): Likewise.
21485         * modules/strtok_r (Depends-on): Likewise.
21486         * modules/strtoumax (Depends-on): Likewise.
21487         * modules/symlink (Depends-on): Likewise.
21488         * modules/symlinkat (Depends-on): Likewise.
21489         * modules/tanl (Depends-on): Likewise.
21490         * modules/tcgetsid (Depends-on): Likewise.
21491         * modules/tmpfile (Depends-on): Likewise.
21492         * modules/trunc (Depends-on): Likewise.
21493         * modules/truncf (Depends-on): Likewise.
21494         * modules/truncl (Depends-on): Likewise.
21495         * modules/uname (Depends-on): Likewise.
21496         * modules/unlink (Depends-on): Likewise.
21497         * modules/unlockpt (Depends-on): Likewise.
21498         * modules/unsetenv (Depends-on): Likewise.
21499         * modules/usleep (Depends-on): Likewise.
21500         * modules/utimensat (Depends-on): Likewise.
21501         * modules/vasprintf (Depends-on): Likewise.
21502         * modules/vdprintf (Depends-on): Likewise.
21503         * modules/vdprintf-posix (Depends-on): Likewise.
21504         * modules/vfprintf-posix (Depends-on): Likewise.
21505         * modules/vprintf-posix (Depends-on): Likewise.
21506         * modules/vsnprintf (Depends-on): Likewise.
21507         * modules/vsnprintf-posix (Depends-on): Likewise.
21508         * modules/vsprintf-posix (Depends-on): Likewise.
21509         * modules/wcrtomb (Depends-on): Likewise.
21510         * modules/wcscasecmp (Depends-on): Likewise.
21511         * modules/wcscspn (Depends-on): Likewise.
21512         * modules/wcsdup (Depends-on): Likewise.
21513         * modules/wcsncasecmp (Depends-on): Likewise.
21514         * modules/wcsnrtombs (Depends-on): Likewise.
21515         * modules/wcspbrk (Depends-on): Likewise.
21516         * modules/wcsrtombs (Depends-on): Likewise.
21517         * modules/wcsspn (Depends-on): Likewise.
21518         * modules/wcsstr (Depends-on): Likewise.
21519         * modules/wcstok (Depends-on): Likewise.
21520         * modules/wcswidth (Depends-on): Likewise.
21521         * modules/wctob (Depends-on): Likewise.
21522         * modules/wctomb (Depends-on): Likewise.
21523         * modules/wctype (Depends-on): Likewise.
21524         * modules/wcwidth (Depends-on): Likewise.
21525         * modules/write (Depends-on): Likewise.
21526
21527 2011-05-03  Bruno Haible  <bruno@clisp.org>
21528
21529         Support for conditional dependencies.
21530         * doc/gnulib.texi (Module description): Document the syntax of
21531         conditional dependencies.
21532         * gnulib-tool: New option --conditional-dependencies.
21533         (func_usage): Document it.
21534         (cond_dependencies): New variable.
21535         (func_get_automake_snippet_conditional,
21536         func_get_automake_snippet_unconditional): New functions, extracted from
21537         func_get_automake_snippet.
21538         (func_get_automake_snippet): Use them.
21539         (sed_first_32_chars): New variable.
21540         (func_module_shellfunc_name): New function.
21541         (func_module_shellvar_name): New function.
21542         (func_module_conditional_name): New function.
21543         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21544         func_cond_module_condition): New functions.
21545         (func_modules_transitive_closure): Add support for conditional
21546         dependencies.
21547         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21548         conditional automake snippet in an automake conditional.
21549         (func_emit_autoconf_snippets): Emit shell functions that contain the
21550         code for conditional modules.
21551         (func_import, func_create_testdir): Update specification.
21552
21553 2011-05-03  Eric Blake  <eblake@redhat.com>
21554
21555         test-getaddrinfo: report error information
21556         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21557
21558 2011-05-03  Jim Meyering  <meyering@redhat.com>
21559
21560         bootstrap: avoid build failure when $GZIP is set
21561         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21562         program name.  If defined at all, it is supposed to list gzip options.
21563         Reported by Alan Curry in http://debbugs.gnu.org/8609
21564
21565 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21566
21567         readme-release: new module with release instructions
21568         * modules/readme-release: New module.
21569         * top/README-release: New file, from coreutils, grep, diffutils.
21570         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21571
21572 2011-05-02  Eric Blake  <eblake@redhat.com>
21573
21574         fflush: also replace fclose when fixing fflush
21575         * modules/fflush (Depends-on): Add fclose.
21576         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21577         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21578         memstreams with no backing fd.
21579         * doc/posix-functions/fclose.texi (fclose): Document the use of
21580         fflush module to fix the bug.
21581         * tests/test-fclose.c (main): Relax test when fclose is used in
21582         isolation.
21583
21584         fclose: add some tests
21585         * modules/fclose-tests: New test module.
21586         * tests/test-fclose.c: New file.
21587         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21588
21589         fclose: reduced dependencies
21590         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21591         simpler lseek.
21592         * lib/fclose.c (rpl_fclose): Likewise.
21593         Reported by Simon Josefsson.
21594
21595         exit: drop remaining clients
21596         * modules/argmatch (Depends-on): Replace exit with stdlib.
21597         * modules/copy-file (Depends-on): Likewise.
21598         * modules/execute (Depends-on): Likewise.
21599         * modules/exitfail (Depends-on): Likewise.
21600         * modules/obstack (Depends-on): Likewise.
21601         * modules/pagealign_alloc (Depends-on): Likewise.
21602         * modules/pipe-filter-gi (Depends-on): Likewise.
21603         * modules/pipe-filter-ii (Depends-on): Likewise.
21604         * modules/savewd (Depends-on): Likewise.
21605         * modules/spawn-pipe (Depends-on): Likewise.
21606         * modules/wait-process (Depends-on): Likewise.
21607         * modules/xsetenv (Depends-on): Likewise.
21608         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21609         * modules/git-merge-changelog (Depends-on): Likewise.
21610         * modules/long-options (Depends-on): Likewise.
21611         * modules/pt_chown (Depends-on): Likewise.
21612         * modules/sysexits (Depends-on): Likewise.
21613
21614         freading: relax license from LGPLv3+ to LGPLv2+
21615         * modules/freading (License): Relax LGPL version.
21616
21617 2011-05-02  Bruno Haible  <bruno@clisp.org>
21618
21619         fchdir: Remove unused dependencies.
21620         * modules/fchdir (Depends-on): Remove include_next.
21621
21622 2011-05-02  Bruno Haible  <bruno@clisp.org>
21623
21624         gnulib-tool: Refactor.
21625         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21626         from func_emit_autoconf_snippets.
21627         (func_emit_autoconf_snippets): Use it.
21628
21629 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21630
21631         * NEWS: Document removal of 'exit'.
21632         * modules/exit: Remove file.
21633
21634 2011-05-01  Bruno Haible  <bruno@clisp.org>
21635
21636         Update DEPENDENCIES.
21637         * DEPENDENCIES (gettext): Recommend the newest release.
21638         Reported by Simon Josefsson.
21639
21640 2011-05-01  Bruno Haible  <bruno@clisp.org>
21641
21642         gnulib-tool: Reduce code duplication.
21643         * gnulib-tool (func_emit_autoconf_snippets): New function.
21644         (func_import, func_create_testdir): Use it.
21645
21646 2011-04-30  Eric Blake  <eblake@redhat.com>
21647
21648         fclose: don't fail on non-seekable input stream
21649         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21650         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21651         since fflush is allowed to fail in that case.
21652
21653 2011-04-30  Bruno Haible  <bruno@clisp.org>
21654
21655         dup3: cleanup
21656         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21657
21658 2011-04-30  Bruno Haible  <bruno@clisp.org>
21659
21660         netdb: Make it work in C++ mode.
21661         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21662         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21663         module.
21664         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21665         gl_MODULE_INDICATOR_FOR_TESTS.
21666         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21667         * modules/netdb-c++-tests: New file.
21668         * tests/test-netdb-c++.cc: New file.
21669
21670 2011-04-30  Bruno Haible  <bruno@clisp.org>
21671
21672         New modules 'vfscanf', 'vscanf'.
21673         * modules/vfscanf: New file.
21674         * modules/vscanf: New file.
21675         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21676         here.
21677         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21678         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21679
21680 2011-04-30  Bruno Haible  <bruno@clisp.org>
21681
21682         passfd: Add comments.
21683         * lib/passfd.c: Add comments about platforms.
21684
21685 2011-04-30  Bruno Haible  <bruno@clisp.org>
21686
21687         sys_uio: Make <sys/uio.h> self-contained.
21688         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21689         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21690
21691 2011-04-30  Bruno Haible  <bruno@clisp.org>
21692
21693         sys_socket: Ensure 'struct iovec' definition.
21694         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21695         <sys/socket.h>.
21696         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21697
21698 2011-04-30  Bruno Haible  <bruno@clisp.org>
21699
21700         sys_uio: Protect definition of 'struct iovec'.
21701         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21702         it as a C struct.
21703
21704 2011-04-30  Bruno Haible  <bruno@clisp.org>
21705
21706         manywarnings: fix indentation
21707         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21708
21709 2011-04-30  Pádraig Brady <P@draigBrady.com>
21710
21711         manywarnings: add -Wno-missing-field-initializers if needed.
21712         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21713         option if it's needed to allow initialization with { 0, }
21714
21715 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21716
21717         announce-gen: cosmetic improvement
21718         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21719
21720 2011-04-29  Jim Meyering  <meyering@redhat.com>
21721
21722         vc-list-files: indent with spaces, not TABs
21723         * build-aux/vc-list-files: Convert leading TABs to spaces,
21724         to match the style of most other files in gnulib.
21725
21726         announce-gen: indent with spaces, not TABs
21727         * build-aux/announce-gen: Convert all TABs to spaces, to match
21728         the style of most other files in gnulib.
21729
21730 2011-04-29  Eric Blake  <eblake@redhat.com>
21731
21732         quotearg: avoid uninitialized variable use
21733         * lib/quotearg.c (quoting_options_from_style): Initialize
21734         remaining fields, and ensure that custom styles are only used via
21735         quoting_options rather than quoting_style.
21736
21737 2011-04-29  Jim Meyering  <meyering@redhat.com>
21738
21739         maint.mk: remove unused VC-tag variable
21740         * top/maint.mk (VC-tag): Remove unused variable.
21741
21742 2011-04-29  Bruno Haible  <bruno@clisp.org>
21743
21744         netdb: fix gai_strerror replacements
21745         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21746         * modules/netdb: Substitute it.
21747
21748 2011-04-29  Jim Meyering  <meyering@redhat.com>
21749
21750         test-getcwd.c: avoid new set-but-not-used warning
21751         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21752         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21753         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21754         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21755
21756         test-hash.c: avoid a new shadowing warning
21757         * tests/test-hash.c (main): Don't shadow "dup".
21758
21759 2011-04-28  Eric Blake  <eblake@redhat.com>
21760
21761         getaddrinfo: fix gai_strerror signature
21762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21763         and work around mingw with UNICODE defined.
21764         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21765         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21766         * modules/netdb (Makefile.am): Substitute it.
21767         * lib/netdb.in.h (gai_strerror): Declare replacement.
21768         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21769         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21770         the fix.
21771
21772         getsockopt: avoid compiler warning
21773         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21774         Reported by Matthias Bolte.
21775
21776         tests: drop unused link dependency
21777         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21778         * modules/dirent-safer-tests (Makefile.am): Likewise.
21779         * modules/fdopendir-tests (Makefile.am): Likewise.
21780         * modules/mkfifoat-tests (Makefile.am): Likewise.
21781         * modules/openat-safer-tests (Makefile.am): Likewise.
21782         * modules/openat-tests (Makefile.am): Likewise.
21783         * modules/readlinkat-tests (Makefile.am): Likewise.
21784         * modules/symlinkat-tests (Makefile.am): Likewise.
21785         * modules/linkat-tests (Makefile.am): Likewise.
21786         (Depends-on): Switch to filenamecat-lgpl.
21787         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21788         LIBINTL.
21789         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21790         * tests/test-linkat.c (main): Don't require xalloc.
21791
21792         hash, mgetgroups: drop xalloc dependency
21793         * lib/hash.c (includes): Adjust includes.
21794         * lib/mgetgroups.c (includes): Likewise.
21795         (xgetgroups): Move...
21796         * lib/xgetgroups.c: ...to new file.
21797         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21798         * modules/xgetgroups: New file, split from...
21799         * modules/mgetgroups: ...here.
21800         (Depends-on): Add xalloc-oversized.
21801         * modules/hash (Depends-on): Likewise.
21802         * modules/hash-tests (Depends-on): Drop xalloc.
21803         (test_hash_LDADD): Drop unused library.
21804         * tests/test-hash.c (main): Break xalloc dependency.
21805         (includes): Drop unused include.
21806
21807         xalloc-oversized: new module
21808         * modules/xalloc-oversized: New module.
21809         * modules/xalloc (Depends-on): Add it.
21810         * lib/xalloc.h (xalloc_oversized): Move...
21811         * lib/xalloc-oversized.h: ...into new file.
21812
21813         utimecmp: drop dependency on xmalloc
21814         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21815         due to memory pressure.
21816         * modules/utimecmp (Depends-on): Drop xalloc.
21817
21818 2011-04-27  Eric Blake  <eblake@redhat.com>
21819
21820         getcwd: fix mingw bugs
21821         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21822         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21823         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21824
21825 2011-04-27  Bruno Haible  <bruno@clisp.org>
21826
21827         mkstemps: Ensure declaration on MacOS X 10.5.
21828         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21829         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21830         MacOS X.
21831
21832 2011-04-27  Bruno Haible  <bruno@clisp.org>
21833
21834         mkstemp: More documentation.
21835         * doc/posix-functions/mkstemp.texi: Document header file problem on
21836         MacOS X.
21837
21838 2011-04-27  Bruno Haible  <bruno@clisp.org>
21839
21840         mkstemp: Tweak configure message when cross-compiling.
21841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21842         result as a guess.
21843
21844 2011-04-27  Bruno Haible  <bruno@clisp.org>
21845
21846         clean-temp: Clarify what it does.
21847         * lib/clean-temp.h: Add more comments.
21848         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21849         module.
21850         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21851         * doc/glibc-functions/mkstemps.texi: Likewise.
21852         * doc/glibc-functions/mkostemps.texi: Likewise.
21853
21854 2011-04-27  Eric Blake  <eblake@redhat.com>
21855
21856         fchdir: avoid extra chdir and fix test
21857         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21858         getcwd-lgpl.
21859         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21860         have to be canonical.
21861         (canonicalize_file_name): Drop unused macro.
21862         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21863
21864         filenamecat-lgpl: fix licence
21865         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21866         when it was first created.
21867
21868         linkat, renameat: add missing dependency
21869         * modules/linkat (Depends-on): Require getcwd-lgpl.
21870         * modules/renameat (Depends-on): Likewise.
21871
21872         tests: reduce dependencies
21873         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21874         * tests/test-renameat.c (main): Likewise.
21875         * modules/linkat-tests (Depends-on): Relax dependency.
21876         * modules/renameat-tests (Depends-on): Likewise.
21877         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21878         dependency explicit.
21879
21880         save-cwd: reduce default dependency
21881         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21882         * lib/save-cwd.c: Update comments.
21883         * NEWS: Document the semantic change.
21884
21885         getcwd: enhance tests
21886         * tests/test-getcwd-lgpl.c: New file, taken from...
21887         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21888         repeat long path stress tests from m4 probe.
21889         * modules/getcwd-lgpl-tests: New module.
21890         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21891         * m4/getcwd-abort-bug.m4: Update comment.
21892         * m4/getcwd-path-max.m4: Likewise.
21893
21894         getcwd-lgpl: new module
21895         * modules/getcwd-lgpl: New module.
21896         * lib/getcwd-lgpl.c: New file.
21897         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21898         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21899         * modules/getcwd (configure.ac): Set C witness.
21900         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21901
21902         getcwd: tweak comments
21903         * m4/getcwd-abort-bug.m4: Fix comments.
21904         * m4/getcwd-path-max.m4: Likewise.
21905         * m4/getcwd.m4: Likewise.
21906
21907 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21908         and Eric Blake  <eblake@redhat.com>
21909
21910         mkstemp: replace if system version uses wrong permissions
21911         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21912         read/write mode bits set in file created by mkstemp.
21913         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21914
21915 2011-04-27  Eric Blake  <eblake@redhat.com>
21916
21917         passfd: avoid compiler warning
21918         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21919         Reported by Laine Stump.
21920
21921 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21922
21923         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21924         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21925
21926 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21927         and Eric Blake  <eblake@redhat.com>
21928
21929         mkstemp: mention clean-temp module
21930         * lib/mkstemp.c: Add comment.
21931         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21932
21933 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21934
21935         inttypes: also provide default values for 32-bit tests
21936         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21937         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21938
21939 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21940
21941         strtoumax: remove dependency on strtoimax
21942         This is like the strtoull change of yesterday.
21943         * modules/strtoumax (Files): Add lib/strtoimax.c.
21944         (Depends-on): Remove strtoimax and add verify.
21945
21946         inttypes-incomplete: new module
21947         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21948         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21949         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21950         of gl_INTTYPES_H.
21951         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21952         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21953         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21954         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21955         * modules/strtoumax, modules/xstrtol (Depends-on):
21956         Depend on inttypes-incomplete, not inttypes.
21957         * modules/inttypes-incomplete: New module, containing the contents
21958         of the old modules/inttypes module, except that the Files: section
21959         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21960         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21961         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21962         (Depends-on): Depend only on inttypes-incomplete.
21963         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21964
21965         inttypes: omit now-redundant strtoimax and strtoumax work
21966         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21967         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21968
21969         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21970         This supports apps that need pointers to strtoimax and strtoumax,
21971         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21972         nonexistent functions.  See
21973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21974         et seq.
21975         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21976         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21977         a macro.
21978         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21979
21980 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21981
21982         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21983
21984 2011-04-25  Bruno Haible  <bruno@clisp.org>
21985
21986         strtol, strtoul: Mark modules as obsolete.
21987         * modules/strtol (Status, Notice): New sections.
21988         * modules/strtoul (Status, Notice): New sections.
21989
21990 2011-04-25  Bruno Haible  <bruno@clisp.org>
21991
21992         strtod: Remove check for strtod, unless supporting old platforms.
21993         * modules/strtod-obsolete: New file.
21994         * m4/strtod-obsolete.m4: New file.
21995         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21996         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21997         * modules/strtod (Depends-on): Add strtod-obsolete.
21998         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21999
22000 2011-04-25  Bruno Haible  <bruno@clisp.org>
22001
22002         strcase: Make module obsolete.
22003         * modules/strcase (Status, Notice): New sections.
22004
22005 2011-04-25  Bruno Haible  <bruno@clisp.org>
22006
22007         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22008         * modules/dup2-obsolete: New file.
22009         * m4/dup2-obsolete.m4: New file.
22010         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22011         gl_FUNC_DUP2_OBSOLETE is not also defined.
22012         * modules/dup2 (Depends-on): Add dup2-obsolete.
22013         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22014
22015 2011-04-25  Bruno Haible  <bruno@clisp.org>
22016
22017         strnlen: Avoid memchr related link error on old obsolete platforms.
22018         * modules/memchr-obsolete: New file.
22019         * m4/memchr-obsolete.m4: New file.
22020         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22021         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22022         * modules/memchr (Depends-on): Add memchr-obsolete.
22023         * modules/strnlen (Depends-on): Likewise.
22024         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22025
22026 2011-04-25  Jim Meyering  <meyering@redhat.com>
22027
22028         maint.mk: makefile_at_at_check extend and clean up
22029         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22030         in addition to */Makefile.am.
22031         Exempt legitimate uses of @VAR@ notation, e.g.,
22032         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22033         Remove obsolete coreutils-specific comment.
22034         Prompted by discussion here:
22035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22036
22037 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22038
22039         strtoul: remove dependency on strtol
22040         This is so that 'configure' need not check for strtol merely because
22041         the application needs strtoul.
22042         * modules/strtoul (Files): Add lib/strtol.c.
22043         (Depends-on): Remove strtol.
22044
22045         strtoull: remove dependency on strtoul
22046         This is like the strtoll change.
22047         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22048         (Depends-on): Remove strtoul.
22049
22050         strtoll: remove dependency on strtol
22051         This is so that 'configure' need not check for strtol merely because
22052         the application needs strtoll.
22053         * modules/strtoll (Files): Add lib/strtol.c.
22054         (Depends-on): Remove strtol.
22055
22056 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         inttypes: Move some configure check to module 'imaxdiv'.
22059         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22060         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22061         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22062
22063 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22064
22065         inttypes: Move some configure check to module 'imaxabs'.
22066         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22067         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22068         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22069
22070 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22071
22072         inttypes: Remove configure tests that are not needed since 2009-12-31.
22073         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22074         gl_cv_header_working_inttypes_h.
22075
22076 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22077
22078         * modules/strnlen (Depends-on): Remove memchr.
22079         The strnlen implementation doesn't need the memchr module's fixes; see
22080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22081
22082         strtol: remove dependency on wchar
22083         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22084         * modules/strtol (Depends-on): Remove wchar.
22085
22086 2011-04-21  Eric Blake  <eblake@redhat.com>
22087
22088         passfd: fix test regression on Linux
22089         * modules/passfd-tests (configure.ac): Correct socketpair check.
22090
22091         passfd: speed up configure and drop unused code
22092         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22093         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22094         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22095         Instead of probing at configure for unix_scm_rights_bsd44_way,
22096         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22097         check to a struct member probe.
22098         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22099         (sendfd, recvfd): Update preprocessor checks.
22100         * modules/passfd (Files): Reflect rename, and drop unused file.
22101         (Depends-on): Drop unused dependency.
22102
22103         passfd: allow compilation on mingw
22104         * modules/sys_socket (Depends-on): Add sys_uio.
22105         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22106         iovec and a minimal struct msghdr.
22107         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22108         * tests/test-sys_socket.c (main): Enhance test.
22109         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22110         guaranteed to provide what we need.
22111         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22112         * modules/passfd-tests (Depends-on): Add sys_wait.
22113         * tests/test-passfd.c (main): Skip test on mingw, for now.
22114         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22115         partial 'struct msghdr' implementation.
22116
22117         sys_uio: new module
22118         * modules/sys_uio: New module.
22119         * modules/sys_uio-tests: Likewise.
22120         * lib/sys_uio.in.h: New file.
22121         * m4/sys_uio_h.m4: Likewise.
22122         * tests/test-sys_uio.c: Likewise.
22123         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22124         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22125
22126 2011-04-20  Jim Meyering  <meyering@redhat.com>
22127
22128         useless-if-before-free: avoid false-positive
22129         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22130         disjunct so that it too requires a terminating ";".  Without that,
22131         this script would identify as useless one statement from gcc that
22132         was not:
22133           if (aligned_ptr)
22134             free (((void **) aligned_ptr) [-1]);
22135
22136 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22137
22138         doc: update users.txt.
22139         * users.txt: Add barcode.
22140
22141 2011-04-19  Bruno Haible  <bruno@clisp.org>
22142
22143         ioctl: Remove link dependency on native Windows.
22144         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22145         (gl_close_fn, gl_ioctl_fn): New types.
22146         (struct fd_hook): Renamed from struct close_hook. Change type of
22147         private_close_fn field. Add private_ioctl_fn field.
22148         (close_hook_fn): Add parameter for primary close method.
22149         (execute_close_hooks, execute_all_close_hooks): Likewise.
22150         (ioctl_hook_fn): New type.
22151         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22152         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22153         argument.
22154         (unregister_fd_hook): Renamed from unregister_close_hook.
22155         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22156         Don't include <unistd.h>.
22157         (close): Remove undef.
22158         (anchor): Update.
22159         (execute_close_hooks): Add argument for primary close method.
22160         (execute_all_close_hooks): Likewise.
22161         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22162         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22163         argument. Allow each argument to be NULL.
22164         (unregister_fd_hook): Renamed from unregister_close_hook.
22165         * lib/close.c (rpl_close): Pass 'close' function pointer to
22166         execute_all_close_hooks.
22167         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22168         (primary_ioctl): New function.
22169         (ioctl): Don't call ioctlsocket here. Instead, call
22170         execute_all_ioctl_hooks.
22171         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22172         close method.
22173         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22174         (fd_sockets_hook): Renamed from close_sockets_hook.
22175         (gl_sockets_startup, gl_sockets_cleanup): Update.
22176         * modules/fd-hook: Renamed from modules/close-hook. Update.
22177         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22178         * modules/sockets (Depends-on): Likewise.
22179         * modules/ioctl (Depends-on): Add fd-hook.
22180         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22181         GNULIB_SOCKET.
22182
22183 2011-04-19  Bruno Haible  <bruno@clisp.org>
22184
22185         Move the support of O_NONBLOCK in open() to the 'open' module.
22186         * modules/nonblocking (Depends-on): Remove 'open'.
22187         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22188         gl_cv_have_open_O_NONBLOCK.
22189         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22190         O_NONBLOCK support.
22191         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22192
22193 2011-04-17  Bruno Haible  <bruno@clisp.org>
22194
22195         pipe2: Simplify code.
22196         * lib/pipe2.c (pipe2): Reduce code duplication.
22197
22198 2011-04-17  Bruno Haible  <bruno@clisp.org>
22199
22200         nonblocking: Add comment.
22201         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22202
22203 2011-04-17  Bruno Haible  <bruno@clisp.org>
22204
22205         nonblocking: Add tests for sockets.
22206         * tests/test-nonblocking-socket.sh: New file.
22207         * tests/test-nonblocking-socket-main.c: New file.
22208         * tests/test-nonblocking-socket-child.c: New file.
22209         * tests/test-nonblocking-socket.h: New file.
22210         * tests/socket-server.h: New file.
22211         * tests/socket-client.h: New file.
22212         * modules/nonblocking-socket-tests: New file.
22213         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22214
22215 2011-04-17  Bruno Haible  <bruno@clisp.org>
22216
22217         nonblocking: Add tests for pipes.
22218         * tests/test-nonblocking-pipe.sh: New file.
22219         * tests/test-nonblocking-pipe-main.c: New file.
22220         * tests/test-nonblocking-pipe-child.c: New file.
22221         * tests/test-nonblocking-pipe.h: New file.
22222         * tests/test-nonblocking-writer.h: New file.
22223         * tests/test-nonblocking-reader.h: New file.
22224         * tests/test-nonblocking-misc.h: New file.
22225         * modules/nonblocking-pipe-tests: New file.
22226         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22227
22228 2011-04-16  Bruno Haible  <bruno@clisp.org>
22229
22230         gettext: Clarify the needed programmer actions.
22231         * modules/gettext (Notice): New field.
22232         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22233
22234 2011-04-16  Bruno Haible  <bruno@clisp.org>
22235
22236         strchrnul: Tweak last commit.
22237         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22238         bug.
22239         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22240         as in _GL_FUNCDECL_SYS.
22241         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22242         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22243
22244 2011-04-15  Eric Blake  <eblake@redhat.com>
22245
22246         strchrnul: work around cygwin bug
22247         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22248         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22250         * modules/string (Makefile.am): Substitute it.
22251         * lib/string.in.h (strchrnul): Use it.
22252
22253 2011-04-15  Bruno Haible  <bruno@clisp.org>
22254
22255         Don't require lib/stdio-write.c when only module 'stdio' is used.
22256         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22257         invocation.
22258         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22259
22260 2011-04-14  Bruno Haible  <bruno@clisp.org>
22261
22262         Support non-blocking pipe I/O in read() on native Windows.
22263         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22264         (read): New declaration.
22265         * lib/read.c: New file.
22266         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22267         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22268         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22269         vscanf): New declarations.
22270         * lib/stdio-read.c: New file.
22271         * m4/read.m4: New file.
22272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22273         REPLACE_READ.
22274         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22275         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22276         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22277         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22278         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22279         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22280         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22281         * modules/read: New file.
22282         * modules/nonblocking (Files): Add lib/stdio-read.c.
22283         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22284         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22285         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22286         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22287         * modules/pread (Depends-on): Add read.
22288         * modules/safe-read (Depends-on): Likewise.
22289         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22290         gets, scanf, vfscanf, vscanf): Verify signatures.
22291         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22292         problem with non-blocking pipes.
22293         * doc/posix-functions/fgetc.texi: Likewise.
22294         * doc/posix-functions/fgets.texi: Likewise.
22295         * doc/posix-functions/fread.texi: Likewise.
22296         * doc/posix-functions/fscanf.texi: Likewise.
22297         * doc/posix-functions/getc.texi: Likewise.
22298         * doc/posix-functions/getchar.texi: Likewise.
22299         * doc/posix-functions/gets.texi: Likewise.
22300         * doc/posix-functions/scanf.texi: Likewise.
22301         * doc/posix-functions/vfscanf.texi: Likewise.
22302         * doc/posix-functions/vscanf.texi: Likewise.
22303
22304 2011-04-14  Bruno Haible  <bruno@clisp.org>
22305
22306         Support non-blocking pipe I/O in write() on native Windows.
22307         * lib/write.c (rpl_write): Split a write request that failed merely
22308         because the byte count was larger than the pipe buffer's size.
22309         * doc/posix-functions/write.texi: Mention the problem with large byte
22310         counts.
22311
22312 2011-04-14  Bruno Haible  <bruno@clisp.org>
22313
22314         wchar: Ensure that wchar_t gets defined on uClibc.
22315         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22316         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22317
22318 2011-04-13  Bruno Haible  <bruno@clisp.org>
22319
22320         safe-write, full-read: Avoid unnecessary compilation units.
22321         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22322         (Depends-on): Remove safe-read. Add ssize_t.
22323         * modules/full-read (Files): Add lib/full-write.c.
22324         (Depends-on): Add full-write.
22325
22326 2011-04-13  Bruno Haible  <bruno@clisp.org>
22327
22328         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22329         * modules/pwrite (Depends-on): Add 'write'.
22330
22331 2011-04-13  Bruno Haible  <bruno@clisp.org>
22332
22333         Support non-blocking pipe I/O in write() on native Windows.
22334         * lib/unistd.in.h (write): Enable replacement also if
22335         GNULIB_UNISTD_H_NONBLOCKING is 1.
22336         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22337         (rpl_write): When failing to write on a non-blocking pipe, change
22338         errno from ENOSPC to EAGAIN.
22339         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22340         putchar, puts, vfprintf, vprintf): Enable replacement also if
22341         GNULIB_STDIO_H_NONBLOCKING is 1.
22342         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22343         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22344         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22345         CALL_WITH_SIGPIPE_EMULATION.
22346         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22347         * m4/nonblocking.m4: New file.
22348         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22349         for non-blocking I/O support.
22350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22351         GNULIB_UNISTD_H_NONBLOCKING.
22352         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22353         required for non-blocking I/O support.
22354         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22355         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22356         lib/stdio-write.c, m4/asm-underscore.m4.
22357         (Depends-on): Add stdio, unistd.
22358         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22359         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22360         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22361         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22362         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22363         problem with non-blocking pipes.
22364         * doc/posix-functions/fputc.texi: Likewise.
22365         * doc/posix-functions/fputs.texi: Likewise.
22366         * doc/posix-functions/fwrite.texi: Likewise.
22367         * doc/posix-functions/printf.texi: Likewise.
22368         * doc/posix-functions/putc.texi: Likewise.
22369         * doc/posix-functions/putchar.texi: Likewise.
22370         * doc/posix-functions/puts.texi: Likewise.
22371         * doc/posix-functions/vfprintf.texi: Likewise.
22372         * doc/posix-functions/vprintf.texi: Likewise.
22373         * doc/posix-functions/write.texi: Likewise.
22374
22375 2011-04-10  Jim Meyering  <meyering@redhat.com>
22376
22377         maint.mk: prohibit doubled words
22378         Detect them also when they're separated by a newline.
22379         There are 3 ways to customize it:
22380           - disable the test on a per file basis, as usual with rules using
22381             $(VC_LIST_EXCEPT)
22382           - replace the default doubled-word-selecting regexp (affects all files)
22383           - ignore a particular file-vs-doubled-word match
22384         I nearly used that last one to ignore the "is is" match in
22385         coreutils' NEWS file, since the text was "ls -is is ..."
22386         To do that, I would have added this line to cfg.mk:
22387           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22388         but it would have ignored any "is is" match in NEWS.
22389         Low probability, but still...
22390         Instead, I changed the text, slightly:
22391           -  ls -is is now consistent with ls -lis in ignoring values returned
22392           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22393         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22394         (prohibit_doubled_word_): Define.
22395         (sc_prohibit_doubled_word): New rule.
22396         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22397
22398 2011-04-10  Jim Meyering  <meyering@redhat.com>
22399
22400         maint: fix doubled-word typo in comment
22401         * m4/gethostname.m4: s/is is/it is/
22402         * m4/getdomainname.m4: Likewise.
22403
22404 2011-04-10  Jim Meyering  <meyering@redhat.com>
22405
22406         maint: remove doubled word: s/it it/it/
22407         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22408
22409 2011-04-10  Jim Meyering  <meyering@redhat.com>
22410
22411         maint.mk: remove useless semicolon and backslash
22412         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22413         semicolon and backslash.
22414
22415 2011-04-10  Bruno Haible  <bruno@clisp.org>
22416
22417         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22418         * modules/stdint-tests (Depends-on): Add wchar.
22419
22420 2011-04-10  Jim Meyering  <meyering@redhat.com>
22421
22422         maint: remove doubled words in comments, e.g., s/a a/a/
22423         * lib/strptime.c (day_of_the_week): s/the the/the/
22424         * tests/test-chown.h (test_chown): s/a a/a/
22425
22426         test-chown.h: correct a cast
22427         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22428         when the destination is a stat.st_gid.
22429
22430 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22431
22432         getaddrinfo: Fix test for sa_len member.
22433         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22434         include <sys/types.h> before <sys/socket.h>.
22435
22436 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22437
22438         maint: change "can not" to "cannot"
22439         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22440         boundaries.
22441
22442 2011-04-09  Jim Meyering  <meyering@redhat.com>
22443
22444         maint: change "a a" to "a"
22445         * tests/test-lchown.h (test_lchown): s/a a/a/
22446
22447         maint.mk: prohibit \<the the\>
22448         * top/maint.mk (sc_prohibit_the_the): New rule.
22449
22450         maint: fix "the the" in comment
22451         * lib/count-one-bits.h: s/the the/the/
22452
22453         maint: change "can not" to "cannot"
22454         But do not change the occurrences in maintain.texi or in
22455         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22456         * doc/gnulib-tool.texi: s/can not/cannot/
22457         * doc/posix-functions/accept.texi (accept): Likewise.
22458         * doc/posix-functions/socket.texi (socket): Likewise.
22459         * lib/mbrtowc.c: Likewise.
22460
22461         maint.mk: prohibit use of "can not"
22462         * top/maint.mk (sc_prohibit_can_not): New rule.
22463         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22464
22465 2011-04-09  Bruno Haible  <bruno@clisp.org>
22466
22467         careadlinkat: Guard against misuse of careadlinkatcwd.
22468         * lib/careadlinkat.c: Include <stdlib.h>.
22469         (careadlinkatcwd): Check that the fd argument is as expected.
22470
22471 2011-04-09  Bruno Haible  <bruno@clisp.org>
22472
22473         careadlinkat: Use common coding style.
22474         * lib/careadlinkat.c: Move gnulib includes after system includes.
22475
22476 2011-04-09  Bruno Haible  <bruno@clisp.org>
22477
22478         careadlinkat: Clarify specification.
22479         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22480         (careadlinkatcwd): Add comment.
22481         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22482
22483 2011-04-09  Bruno Haible  <bruno@clisp.org>
22484
22485         areadlinkat: Avoid link error on many platforms.
22486         * modules/areadlinkat (Depends-on): Add areadlink.
22487
22488 2011-04-09  Bruno Haible  <bruno@clisp.org>
22489
22490         allocator, careadlinkat: Fix double-inclusion guard.
22491         * lib/allocator.h: Fix double-inclusion guard.
22492         * lib/careadlinkat.h: Likewise.
22493
22494 2011-04-09  Bruno Haible  <bruno@clisp.org>
22495
22496         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22497         * lib/relocwrapper.c: Update dependencies hierarchy.
22498         * build-aux/install-reloc: Update list of files to be compiled.
22499         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22500         lib/allocator.[hc].
22501
22502 2011-04-08  Eric Blake  <eblake@redhat.com>
22503
22504         strftime: silence gnulib-tool warning
22505         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22506
22507 2011-04-08  Bruno Haible  <bruno@clisp.org>
22508
22509         verify: Fix syntax error with GCC 4.6 in C++ mode.
22510         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22511         (HAVE_STATIC_ASSERT): New macro.
22512         (verify_true, verify): Use 'static_assert' if it is supported and
22513         '_Static_assert' is not supported.
22514
22515 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22516
22517         allocator: New module.
22518         * modules/allocator, lib/allocator.c: New files.
22519         * lib/allocator.h (stdlib_allocator): New decl.
22520         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22521         Remove.  Do not include <stdlib.h>.
22522         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22523         * modules/careadlinkat (Files): Remove lib/allocator.h.
22524         (Depends-on): Add allocator.
22525
22526         stdlib: let modules use system malloc, realloc
22527         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22528         if !_GL_USE_STDLIB_ALLOC.
22529         (malloc, realloc): Limit this change to a smaller scope.
22530
22531         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22532         (malloc, realloc): Don't #undef; no longer needed.
22533         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22534         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22535         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22536         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22537         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22538         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22539         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22540         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22541
22542         careadlinkat: rename members to avoid problem
22543         * lib/allocator.h (struct allocator): Rename members from
22544         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22545         and realloc are #define'd.  Reported by Eric Blake in
22546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22547         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22548
22549 2011-04-08  Eric Blake  <eblake@redhat.com>
22550
22551         nonblocking: reduce dependency
22552         * tests/test-nonblocking.c: Only test sockets when in use.
22553         * modules/nonblocking-tests (Depends-on): Drop socket.
22554         (Makefile.am): Link even if sockets are not present.
22555         * modules/pipe2-tests (Makefile.am): Likewise.
22556         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22557
22558         pipe2: fix O_NONBLOCK support on mingw
22559         * modules/pipe2 (Depends-on): Add nonblocking.
22560         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22561         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22562         * tests/test-nonblocking.c (main): Likewise.
22563         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22564
22565         fcntl-h: fix O_ACCMODE on cygwin
22566         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22567         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22568
22569         pipe-filter: drop O_NONBLOCK workarounds
22570         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22571         * modules/pipe-filter-ii (Depends-on): Likewise.
22572         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22573
22574         nonblocking: provide O_NONBLOCK for mingw
22575         * modules/nonblocking (Depends-on): Add open.
22576         (configure.ac): Set new witness macro.
22577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22578         * modules/fcntl-h (Makefile.am): Substitute it.
22579         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22580         nonblocking module is in use.
22581         * lib/nonblocking.c: Adjust portability test.
22582         * lib/open.c (open): Don't let native open see gnulib flag.
22583         * tests/test-fcntl-h.c (main): Enhance test.
22584         * tests/test-open.h (test_open): Likewise.
22585         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22586
22587         careadlinkat: fix compilation error on mingw
22588         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22589         within struct allocator.
22590
22591 2011-04-06  Eric Blake  <eblake@redhat.com>
22592
22593         binary-io: relicense under LGPLv2+
22594         * modules/binary-io (License): Relax to LGPLv2+.
22595         Requested for libvirt, and required by pipe2.
22596
22597 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22598
22599         verify: use _Static_assert if available
22600         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22601         (verify_true, verify): Use it if available.  This generates better
22602         diagnostics with GCC 4.6.0 and later.
22603
22604 2011-04-05  Bruno Haible  <bruno@clisp.org>
22605
22606         Remove leftover generated .h files after config.status changed.
22607
22608         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22609         GL_GENERATE_ALLOCA_H.
22610         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22611         GL_GENERATE_ALLOCA_H evaluates to false.
22612
22613         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22614         GL_GENERATE_ARGZ_H.
22615         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22616         evaluates to false.
22617
22618         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22619         GL_GENERATE_BYTESWAP_H.
22620         * modules/byteswap (Makefile.am): Remove byteswap.h if
22621         GL_GENERATE_BYTESWAP_H evaluates to false.
22622
22623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22624         GL_GENERATE_ERRNO_H.
22625         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22626         evaluates to false.
22627
22628         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22629         GL_GENERATE_FLOAT_H.
22630         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22631         evaluates to false.
22632
22633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22634         GL_GENERATE_FNMATCH_H.
22635         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22636         GL_GENERATE_FNMATCH_H evaluates to false.
22637
22638         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22639         GL_GENERATE_GLOB_H.
22640         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22641         evaluates to false.
22642
22643         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22644         automake conditional GL_GENERATE_ICONV_H.
22645         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22646         evaluates to false.
22647
22648         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22649         GL_GENERATE_NETINET_IN_H.
22650         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22651         GL_GENERATE_NETINET_IN_H evaluates to false.
22652
22653         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22654         conditional GL_GENERATE_PTHREAD_H.
22655         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22656         * modules/pthread (Makefile.am): Remove pthread.h if
22657         GL_GENERATE_PTHREAD_H evaluates to false.
22658
22659         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22660         GL_GENERATE_SCHED_H.
22661         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22662         evaluates to false.
22663
22664         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22665         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22666         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22667         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22668
22669         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22670         GL_GENERATE_STDARG_H.
22671         * modules/stdarg (Makefile.am): Remove stdarg.h if
22672         GL_GENERATE_STDARG_H evaluates to false.
22673
22674         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22675         GL_GENERATE_STDBOOL_H.
22676         * modules/stdbool (Makefile.am): Remove stdbool.h if
22677         GL_GENERATE_STDBOOL_H evaluates to false.
22678
22679         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22680         conditional GL_GENERATE_STDDEF_H.
22681         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22682         * modules/stddef (Makefile.am): Remove stddef.h if
22683         GL_GENERATE_STDDEF_H evaluates to false.
22684
22685         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22686         GL_GENERATE_STDINT_H.
22687         * modules/stdint (Makefile.am): Remove stdint.h if
22688         GL_GENERATE_STDINT_H evaluates to false.
22689
22690         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22691         GL_GENERATE_SYSEXITS_H.
22692         * modules/sysexits (Makefile.am): Remove sysexits.h if
22693         GL_GENERATE_SYSEXITS_H evaluates to false.
22694
22695         Reported by Karl Berry and Ralf Wildenhues.
22696
22697 2011-04-05  Bruno Haible  <bruno@clisp.org>
22698
22699         Ensure to rebuild generated .h files when config.status has changed.
22700         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22701         config.status.
22702         * modules/ctype (Makefile.am): Likewise.
22703         * modules/dirent (Makefile.am): Likewise.
22704         * modules/errno (Makefile.am): Likewise.
22705         * modules/fcntl-h (Makefile.am): Likewise.
22706         * modules/float (Makefile.am): Likewise.
22707         * modules/getopt-posix (Makefile.am): Likewise.
22708         * modules/glob (Makefile.am): Likewise.
22709         * modules/iconv-h (Makefile.am): Likewise.
22710         * modules/inttypes (Makefile.am): Likewise.
22711         * modules/langinfo (Makefile.am): Likewise.
22712         * modules/locale (Makefile.am): Likewise.
22713         * modules/math (Makefile.am): Likewise.
22714         * modules/netdb (Makefile.am): Likewise.
22715         * modules/netinet_in (Makefile.am): Likewise.
22716         * modules/poll-h (Makefile.am): Likewise.
22717         * modules/pthread (Makefile.am): Likewise.
22718         * modules/pty (Makefile.am): Likewise.
22719         * modules/sched (Makefile.am): Likewise.
22720         * modules/search (Makefile.am): Likewise.
22721         * modules/selinux-h (Makefile.am): Likewise.
22722         * modules/signal (Makefile.am): Likewise.
22723         * modules/spawn (Makefile.am): Likewise.
22724         * modules/stdarg (Makefile.am): Likewise.
22725         * modules/stdbool (Makefile.am): Likewise.
22726         * modules/stddef (Makefile.am): Likewise.
22727         * modules/stdint (Makefile.am): Likewise.
22728         * modules/stdio (Makefile.am): Likewise.
22729         * modules/stdlib (Makefile.am): Likewise.
22730         * modules/string (Makefile.am): Likewise.
22731         * modules/strings (Makefile.am): Likewise.
22732         * modules/sys_file (Makefile.am): Likewise.
22733         * modules/sys_ioctl (Makefile.am): Likewise.
22734         * modules/sys_select (Makefile.am): Likewise.
22735         * modules/sys_socket (Makefile.am): Likewise.
22736         * modules/sys_stat (Makefile.am): Likewise.
22737         * modules/sys_time (Makefile.am): Likewise.
22738         * modules/sys_times (Makefile.am): Likewise.
22739         * modules/sys_utsname (Makefile.am): Likewise.
22740         * modules/sys_wait (Makefile.am): Likewise.
22741         * modules/sysexits (Makefile.am): Likewise.
22742         * modules/termios (Makefile.am): Likewise.
22743         * modules/time (Makefile.am): Likewise.
22744         * modules/unistd (Makefile.am): Likewise.
22745         * modules/wchar (Makefile.am): Likewise.
22746         * modules/wctype-h (Makefile.am): Likewise.
22747         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22748
22749 2011-04-05  Bruno Haible  <bruno@clisp.org>
22750
22751         pipe2: Relicense under LGPLv2+.
22752         * modules/pipe2 (License): Change to LGPLv2+.
22753         Requested by Eric Blake, for libvirt.
22754
22755 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22756
22757         bootstrap: compute gnulib_extra_files after updating build_aux
22758         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22759         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22760
22761 2011-04-05  Eric Blake  <eblake@redhat.com>
22762
22763         bootstrap: preserve git whitelist item sorting
22764         * build-aux/bootstrap (sort_patterns): New function.
22765         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22766
22767 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22768
22769         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22770         sc_space_tab check.
22771
22772 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22773
22774         areadlink, areadlinkat: rewrite in terms of careadlinkat
22775         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22776         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22777         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22778         (malloc, realloc): Remove #undefs.
22779         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22780         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22781         readlink, ssize_t, stdint, unistd.
22782         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22783         areadlink, stdint.
22784
22785         careadlinkat: new module
22786         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22787         * modules/careadlinkat: New files, written by me with
22788         a review and feedback from Ben Pfaff in
22789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22790
22791 2011-04-01  Bruno Haible  <bruno@clisp.org>
22792
22793         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22794         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22795         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22796         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22797         Reported by Bruce Korb <bruce.korb@gmail.com>.
22798
22799 2011-04-01  Bruno Haible  <bruno@clisp.org>
22800
22801         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22802         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22803         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22804         * modules/wcpcpy (Depends-on): Add extensions.
22805         * modules/wcpncpy (Depends-on): Likewise.
22806         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22807         systems.
22808         * doc/posix-functions/wcpncpy.texi: Likewise.
22809         * doc/posix-functions/wcwidth.texi: Likewise.
22810
22811 2011-03-31  Eric Blake  <eblake@redhat.com>
22812
22813         nonblocking: fix mingw test failures
22814         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22815         non-blocking flag on regular file.
22816         (get_nonblocking_flag): Set errno on invalid fd.
22817         * tests/test-nonblocking.c (main): Avoid test failure on
22818         directories if fchdir is not active.
22819         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22820
22821 2011-03-31  Bruno Haible  <bruno@clisp.org>
22822
22823         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22824         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22825         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22826         Reported by Simon Josefsson <simon@josefsson.org>.
22827
22828 2011-03-31  Bruno Haible  <bruno@clisp.org>
22829         and Eric Blake  <eblake@redhat.com>
22830
22831         nonblocking: new module
22832         * modules/nonblocking: New module.
22833         * modules/nonblocking-tests: Likewise.
22834         * lib/nonblocking.h: New file.
22835         * lib/nonblocking.c: Likewise.
22836         * tests/test-nonblocking.c: New test.
22837         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22838
22839 2011-03-30  Bruno Haible  <bruno@clisp.org>
22840
22841         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22842         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22843         instead of 'printf' format for GCC >= 4.4.
22844         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22845         (fprintf, printf, vfprintf, vprintf): Declare with
22846         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22847         the system's vfprintf() function.
22848         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22849
22850 2011-03-30  Eric Blake  <eblake@redhat.com>
22851
22852         passfd: fix scoping bug
22853         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22854         before sendmsg/recvmsg.
22855
22856         passfd: standardize coding conventions
22857         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22858         can be learned at compile time.
22859         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22860         ifdefs.
22861         (sendfd, recvfd): Follow gnulib code conventions.
22862
22863         passfd: fix incorrect sendmsg arguments
22864         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22865         incorrect msg_controllen value.
22866         * modules/passfd-tests (Depends-on): Check for alarm.
22867         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22868         Reported by Bastien ROUCARIES.
22869
22870 2011-03-30  Bruno Haible  <bruno@clisp.org>
22871
22872         c-strcasestr: Relicense under LGPLv2+.
22873         * modules/c-strcasestr (License): Change to LGPLv2+.
22874         Requested by Eric Blake, for libvirt.
22875
22876 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22877
22878         * users.txt: Add libidn2.  Fix libtasn1 link.
22879
22880 2011-03-30  Jim Meyering  <meyering@redhat.com>
22881
22882         tests: readlink* ("",... fails with EINVAL on newer kernels
22883         readlink and readlinkat have typically failed with ENOENT for
22884         the invalid, empty file name,  "".  However, with the advent
22885         of linux-2.6.39, they fail with EINVAL.
22886         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22887         when operating on the empty file name.
22888         * tests/test-readlink.h (test_readlink): Likewise.
22889
22890 2011-03-29  Bruno Haible  <bruno@clisp.org>
22891
22892         Relicense some modules under LGPLv2+, for libidn2.
22893         * modules/array-mergesort (License): Change to LGPLv2+.
22894         * modules/c-strcaseeq (License): Likewise.
22895         * modules/striconveh (License): Likewise.
22896         * modules/striconveha (License): Likewise.
22897         * modules/uniconv/base (License): Likewise.
22898         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22899         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22900         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22901         * modules/unictype/base (License): Likewise.
22902         * modules/unictype/bidiclass-of (License): Likewise.
22903         * modules/unictype/category-M (License): Likewise.
22904         * modules/unictype/category-none (License): Likewise.
22905         * modules/unictype/category-of (License): Likewise.
22906         * modules/unictype/category-test (License): Likewise.
22907         * modules/unictype/category-test-withtable (License): Likewise.
22908         * modules/unictype/combining-class (License): Likewise.
22909         * modules/unictype/joiningtype-of (License): Likewise.
22910         * modules/unictype/scripts (License): Likewise.
22911         * modules/uninorm/base (License): Likewise.
22912         * modules/uninorm/canonical-decomposition (License): Likewise.
22913         * modules/uninorm/composition (License): Likewise.
22914         * modules/uninorm/decompose-internal (License): Likewise.
22915         * modules/uninorm/decomposition-table (License): Likewise.
22916         * modules/uninorm/nfc (License): Likewise.
22917         * modules/uninorm/nfd (License): Likewise.
22918         * modules/uninorm/u32-normalize (License): Likewise.
22919         * modules/unistr/base (License): Likewise.
22920         * modules/unistr/u32-cpy (License): Likewise.
22921         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22922         * modules/unistr/u32-to-u8 (License): Likewise.
22923         * modules/unistr/u32-uctomb (License): Likewise.
22924         * modules/unistr/u8-check (License): Likewise.
22925         * modules/unistr/u8-mblen (License): Likewise.
22926         * modules/unistr/u8-mbtouc (License): Likewise.
22927         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22928         * modules/unistr/u8-mbtoucr (License): Likewise.
22929         * modules/unistr/u8-prev (License): Likewise.
22930         * modules/unistr/u8-strlen (License): Likewise.
22931         * modules/unistr/u8-to-u32 (License): Likewise.
22932         * modules/unistr/u8-uctomb (License): Likewise.
22933         * modules/unitypes (License): Likewise.
22934         Requested by Simon Josefsson.
22935
22936 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22937
22938         lib-symbol-visibility: Add a notice.
22939         * modules/lib-symbol-visibility (Notice): New field.
22940
22941 2011-03-29  Bruno Haible  <bruno@clisp.org>
22942
22943         getaddrinfo: Doc fix.
22944         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22945         section "fixed in Gnulib".
22946
22947 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22948
22949         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22950         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22951
22952 2011-03-26  Bruno Haible  <bruno@clisp.org>
22953
22954         unictype/property-byname: Reduce the number of load-time relocations.
22955         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22956         (UC_PROPERTY_INDEX_*): New enumeration values.
22957         (uc_property_byname): Convert an index from the lookup table to an
22958         uc_property_t.
22959         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22960         values.
22961
22962 2011-03-26  Bruno Haible  <bruno@clisp.org>
22963
22964         unictype/property-byname: Allow omitted word separators and aliases.
22965         * lib/unictype/pr_byname.gperf: Add property names without word
22966         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22967         for 'space'.
22968
22969 2011-03-26  Bruno Haible  <bruno@clisp.org>
22970
22971         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22972         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22973         also hyphens to space.
22974         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22975         without spaces.
22976         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22977
22978 2011-03-26  Bruno Haible  <bruno@clisp.org>
22979
22980         unictype/joiningtype-byname: Recognize long names as well.
22981         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22982         a long name.
22983         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22984         unictype/joiningtype_byname.h.
22985         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22986         * lib/unictype/joiningtype_byname.gperf: New file.
22987         * modules/unictype/joiningtype-byname (Files): Add
22988         lib/unictype/joiningtype_byname.gperf.
22989         (Depends-on): Add gperf.
22990         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22991         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22992         long names.
22993
22994         Tests for module 'unictype/joiningtype-longname'.
22995         * modules/unictype/joiningtype-longname-tests: New file.
22996         * tests/unictype/test-joiningtype_longname.c: New file.
22997
22998         New module 'unictype/joiningtype-longname'.
22999         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23000         * lib/unictype/joiningtype_longname.c: New file.
23001         * modules/unictype/joiningtype-longname: New file.
23002         * modules/unictype/joiningtype-all (Depends-on): Add
23003         unictype/joiningtype-longname.
23004
23005 2011-03-26  Bruno Haible  <bruno@clisp.org>
23006
23007         unictype/bidiclass-byname: Recognize long names as well.
23008         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23009         name.
23010         * lib/unictype/bidi_byname.c: Include <string.h>,
23011         unictype/bidi_byname.h.
23012         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23013         * lib/unictype/bidi_byname.gperf: New file.
23014         * modules/unictype/bidiclass-byname (Files): Add
23015         lib/unictype/bidi_byname.gperf.
23016         (Depends-on): Add gperf.
23017         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23018         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23019         long names.
23020
23021         Tests for module 'unictype/bidiclass-longname'.
23022         * modules/unictype/bidiclass-longname-tests: New file.
23023         * tests/unictype/test-bidi_longname.c: New file.
23024
23025         New module 'unictype/bidiclass-longname'.
23026         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23027         * lib/unictype/bidi_longname.c: New file.
23028         * modules/unictype/bidiclass-longname: New file.
23029         * modules/unictype/bidiclass-all (Depends-on): Add
23030         unictype/bidiclass-longname.
23031
23032 2011-03-26  Bruno Haible  <bruno@clisp.org>
23033
23034         unictype/bidi*: Rename modules.
23035         * modules/unictype/bidiclass-all: Renamed from
23036         modules/unictype/bidicategory-all.
23037         * modules/unictype/bidiclass-name: Renamed from
23038         modules/unictype/bidiclass-name.
23039         (Description): Update.
23040         * modules/unictype/bidiclass-name-tests: Renamed from
23041         modules/unictype/bidicategory-name-tests.
23042         * modules/unictype/bidiclass-byname: Renamed from
23043         modules/unictype/bidicategory-byname.
23044         (Description): Update.
23045         * modules/unictype/bidiclass-byname-tests: Renamed from
23046         modules/unictype/bidicategory-byname-tests.
23047         * modules/unictype/bidiclass-of: Renamed from
23048         modules/unictype/bidicategory-of.
23049         (Description): Update.
23050         * modules/unictype/bidiclass-of-tests: Renamed from
23051         modules/unictype/bidicategory-of-tests.
23052         * modules/unictype/bidiclass-test: Renamed from
23053         modules/unictype/bidicategory-test.
23054         (Description): Update.
23055         * modules/unictype/bidiclass-test-tests: Renamed from
23056         modules/unictype/bidicategory-test-tests.
23057         * modules/unictype/bidicategory-all: New file, a simple redirection.
23058         * modules/unictype/bidicategory-name: Likewise.
23059         * modules/unictype/bidicategory-byname: Likewise.
23060         * modules/unictype/bidicategory-of: Likewise.
23061         * modules/unictype/bidicategory-test: Likewise.
23062         * modules/unictype/property-bidi-* (Dependencies): Update.
23063         * lib/unictype/bidi_*.c: Update comment.
23064
23065 2011-03-26  Bruno Haible  <bruno@clisp.org>
23066
23067         unictype/bidi*: Rename functions, part 2.
23068         * modules/unictype/bidicategory-name (configure.ac): Update required
23069         libunistring version.
23070         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23071
23072 2011-03-25  Bruno Haible  <bruno@clisp.org>
23073
23074         New module 'unictype/combining-class-all'.
23075         * modules/unictype/combining-class-all: New file.
23076
23077         Tests for module 'unictype/combining-class-byname'.
23078         * modules/unictype/combining-class-byname-tests: New file.
23079         * tests/unictype/test-combiningclass_byname.c: New file.
23080
23081         New module 'unictype/combining-class-byname'.
23082         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23083         * lib/unictype/combiningclass_byname.c: New file.
23084         * lib/unictype/combiningclass_byname.gperf: New file.
23085         * modules/unictype/combining-class-byname: New file.
23086
23087         Tests for module 'unictype/combining-class-longname'.
23088         * modules/unictype/combining-class-longname-tests: New file.
23089         * tests/unictype/test-combiningclass_longname.c: New file.
23090
23091         New module 'unictype/combining-class-longname'.
23092         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23093         * lib/unictype/combiningclass_longname.c: New file.
23094         * modules/unictype/combining-class-longname: New file.
23095
23096         Tests for module 'unictype/combining-class-name'.
23097         * modules/unictype/combining-class-name-tests: New file.
23098         * tests/unictype/test-combiningclass_name.c: New file.
23099
23100         New module 'unictype/combining-class-name'.
23101         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23102         * lib/unictype/combiningclass_name.c: New file.
23103         * modules/unictype/combining-class-name: New file.
23104
23105 2011-03-25  Bruno Haible  <bruno@clisp.org>
23106
23107         unictype/combining-class: Rename source files.
23108         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23109         of unictype/combining.h.
23110         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23111         Update.
23112         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23113         * modules/unictype/combining-class (Description): Fix.
23114         (Files, Makefile.am): Update.
23115         * tests/unictype/test-combiningclass.c: Renamed from
23116         tests/unictype/test-combining.c.
23117         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23118
23119 2011-03-25  Bruno Haible  <bruno@clisp.org>
23120
23121         unictype: Update list of canonical combining classes.
23122         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23123
23124 2011-03-25  Bruno Haible  <bruno@clisp.org>
23125
23126         unictype/category-byname: Recognize long names as well.
23127         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23128         a long name.
23129         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23130         unictype/categ_byname.h.
23131         (UC_CATEGORY_INDEX_*): New enumeration values.
23132         (uc_general_category_byname): Use uc_general_category_lookup and
23133         convert from index to value.
23134         * lib/unictype/categ_byname.gperf: New file.
23135         * modules/unictype/category-byname (Files): Add
23136         lib/unictype/categ_byname.gperf.
23137         (Depends-on): Add gperf.
23138         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23139         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23140         long names.
23141
23142         Tests for module 'unictype/category-longname'.
23143         * modules/unictype/category-longname-tests: New file.
23144         * tests/unictype/test-categ_longname.c: New file.
23145
23146         New module 'unictype/category-longname'.
23147         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23148         * lib/unictype/categ_longname.c: New file.
23149         * modules/unictype/category-longname: New file.
23150         * modules/unictype/category-all (Depends-on): Add it.
23151
23152 2011-03-25  Bruno Haible  <bruno@clisp.org>
23153
23154         Tests for module 'unictype/category-LC'.
23155         * modules/unictype/category-LC-tests: New file.
23156         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23157
23158         New module 'unictype/category-LC'.
23159         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23160         (UC_CATEGORY_LC): New declaration.
23161         (UC_CASED_LETTER): New macro.
23162         * lib/gen-uni-tables.c (is_category_LC): New function.
23163         (output_categories): Also handle category LC.
23164         (UC_CATEGORY_MASK_LC): New enumeration value.
23165         (general_category_byname): Also handle category LC.
23166         * lib/unictype/categ_LC.c: New file.
23167         * lib/unictype/categ_LC.h: New file, automatically generated.
23168         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23169         category LC.
23170         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23171         * modules/unictype/category-LC: New file.
23172         * modules/unictype/category-byname (Depends-on): Add
23173         unictype/category-LC.
23174         * modules/unictype/category-all (Depends-on): Likewise.
23175
23176 2011-03-25  Eric Blake  <eblake@redhat.com>
23177
23178         xmalloc: revert yesterday's regression
23179         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23180         realloc's underlying behavior (allowing allocation of zero-size
23181         objects, especially if malloc-gnu is also in use).
23182
23183 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23184
23185         maint.mk: add missing version to VC-tag
23186         * top/maint.mk: git tag was missing actual tag name; add it.
23187
23188         valgrind: do leak checking, and exit with code 1 on error (not 0)
23189         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23190         to VALGRIND.
23191
23192 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23193
23194         posix-modules: say what it does.
23195         * posix-modules: Add a line to the --help output saying what it does.
23196
23197 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         xmalloc: Do not leak if underlying realloc is C99 compatible.
23200         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23201         This avoids a leak on C99-based systems.  See
23202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23203
23204 2011-03-24  Eric Blake  <eblake@redhat.com>
23205
23206         realloc: document portability problem
23207         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23208         passing 0 size to realloc.
23209
23210 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23211
23212         doc: update users.txt
23213         * users.txt: Add cvsps, tmpwatch
23214
23215 2011-03-23  Matt Rice  <ratmice@gmail.com>
23216
23217         doc: update users.txt
23218         * users.txt: Add gdb.
23219
23220 2011-03-23  Jim Meyering  <meyering@redhat.com>
23221
23222         doc: update users.txt
23223         Looking through matches up to the following URL (there are still
23224         several more pages), I found several projects that use gnulib:
23225         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23226         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23227         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23228
23229 2011-03-22  Bruno Haible  <bruno@clisp.org>
23230
23231         unictype/bidi*: Rename functions.
23232         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23233         uc_bidi_class, uc_is_bidi_class): New declarations.
23234         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23235         uc_bidi_category_byname.
23236         (uc_bidi_category_byname): New function.
23237         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23238         u_bidi_category_name.
23239         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23240         (uc_bidi_category_name): New function.
23241         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23242         uc_bidi_category.
23243         (uc_bidi_category): New function.
23244         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23245         uc_is_bidi_category. Invoke uc_bidi_class.
23246         (uc_is_bidi_category): New function.
23247         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23248         instead of uc_bidi_category_byname.
23249         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23250         instead of uc_bidi_category_name.
23251         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23252         uc_bidi_category.
23253         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23254         instead of uc_is_bidi_category.
23255
23256 2011-03-21  Bruno Haible  <bruno@clisp.org>
23257
23258         New module 'unictype/joininggroup-all'.
23259         * modules/unictype/joininggroup-all: New file.
23260
23261         Tests for module 'unictype/joininggroup-of'.
23262         * modules/unictype/joininggroup-of-tests: New file.
23263         * tests/unictype/test-joininggroup_of.c: New file.
23264         * tests/unictype/test-joininggroup_of.h: New file, automatically
23265         generated by gen-uni-tables.
23266
23267         New module 'unictype/joininggroup-of'.
23268         * modules/unictype/joininggroup-of: New file.
23269         * lib/unictype/joininggroup_of.c: New file.
23270         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23271         gen-uni-tables.
23272
23273         Tests for module 'unictype/joininggroup-byname'.
23274         * modules/unictype/joininggroup-byname-tests: New file.
23275         * tests/unictype/test-joininggroup_byname.c: New file.
23276
23277         New module 'unictype/joininggroup-byname'.
23278         * modules/unictype/joininggroup-byname: New file.
23279         * lib/unictype/joininggroup_byname.c: New file.
23280         * lib/unictype/joininggroup_byname.gperf: New file.
23281
23282         Tests for module 'unictype/joininggroup-name'.
23283         * modules/unictype/joininggroup-name-tests: New file.
23284         * tests/unictype/test-joininggroup_name.c: New file.
23285
23286         New module 'unictype/joininggroup-name'.
23287         * modules/unictype/joininggroup-name: New file.
23288         * lib/unictype/joininggroup_name.c: New file.
23289         * lib/unictype/joininggroup_name.h: New file.
23290
23291         New module 'unictype/joiningtype-all'.
23292         * modules/unictype/joiningtype-all: New file.
23293
23294         Tests for module 'unictype/joiningtype-of'.
23295         * modules/unictype/joiningtype-of-tests: New file.
23296         * tests/unictype/test-joiningtype_of.c: New file.
23297         * tests/unictype/test-joiningtype_of.h: New file, automatically
23298         generated by gen-uni-tables.
23299
23300         New module 'unictype/joiningtype-of'.
23301         * modules/unictype/joiningtype-of: New file.
23302         * lib/unictype/joiningtype_of.c: New file.
23303         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23304         gen-uni-tables.
23305
23306         Tests for module 'unictype/joiningtype-byname'.
23307         * modules/unictype/joiningtype-byname-tests: New file.
23308         * tests/unictype/test-joiningtype_byname.c: New file.
23309
23310         New module 'unictype/joiningtype-byname'.
23311         * modules/unictype/joiningtype-byname: New file.
23312         * lib/unictype/joiningtype_byname.c: New file.
23313
23314         Tests for module 'unictype/joiningtype-name'.
23315         * modules/unictype/joiningtype-name-tests: New file.
23316         * tests/unictype/test-joiningtype_name.c: New file.
23317
23318         New module 'unictype/joiningtype-name'.
23319         * modules/unictype/joiningtype-name: New file.
23320         * lib/unictype/joiningtype_name.c: New file.
23321
23322         unictype: Add support for Arabic shaping properties.
23323         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23324         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23325         declarations.
23326         (UC_JOINING_GROUP_*): New enumeration values.
23327         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23328         declarations.
23329         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23330         (unicode_joining_type): New variable.
23331         (UC_JOINING_GROUP_*): New enumeration values.
23332         (unicode_joining_group): New variable.
23333         (fill_arabicshaping, joining_type_as_c_identifier,
23334         output_joining_type_test, output_joining_type,
23335         joining_group_as_c_identifier, output_joining_group_test,
23336         output_joining_group): New functions.
23337         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23338         fill_arabicshaping and output_joining_type_test, output_joining_type,
23339         output_joining_group_test, output_joining_group.
23340         Reported by Simon Josefsson.
23341
23342 2011-03-21  Jim Meyering  <meyering@redhat.com>
23343
23344         strftime: fix a bug in yesterday's change
23345         * lib/strftime.c (add): Accommodate width's initial value of -1.
23346         Otherwise, nstrftime would copy uninitialized data into
23347         the result buffer.
23348
23349 2011-03-21  Jim Meyering  <meyering@redhat.com>
23350
23351         tests: add strftime-tests module
23352         * tests/test-strftime.c: New file.
23353         * modules/strftime-tests: New module.
23354
23355 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23356
23357         strftime: don't assume a byte count fits in 'int'
23358         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23359         found this problem by static analysis, using gcc -Wstrict-overflow
23360         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23361         on an integer overflow having undefined behavior, but it turns out
23362         that the argument is a size, which might not fit in 'int' anyway,
23363
23364 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         stdio: don't require ignore_value around fwrite
23367
23368         This patch works around libc bug 11959
23369         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23370         Without this patch, applications must often write
23371         ignore_value (fwrite (...)) even though the ignore_value is
23372         not helpful here.  It's common to write many objects, using
23373         fwrite/printf/etc., and then use ferror to detect output error.
23374
23375         I considered making this patch optional, but decided against it,
23376         because libc is obviously being inconsistent here: there is no
23377         reason libc should insist that user code must inspect fwrite
23378         return's value without also insisting that it inspect printf's,
23379         putchar's, etc.  If user code wants to have a strict style where
23380         all these functions' values are checked (so that ferror need not
23381         be checked), we could add support for that style in a new gnulib
23382         module, but in the meantime it's better to be consistent and to
23383         support common usage.
23384
23385         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23386         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23387         that we are compiling in checking mode, and if not C++, and
23388         if not already wrapping fwrite for some other reason.
23389         (fwrite): #define to rpl_fwrite if the latter is defined.
23390
23391 2011-03-20  Bruno Haible  <bruno@clisp.org>
23392
23393         verror: Fix compilation error introduced on 2011-02-13.
23394         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23395         instead of __attribute__.
23396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23397
23398 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23399             Bruno Haible  <bruno@clisp.org>
23400
23401         socklen: do not depend on sys_socket
23402         While trying to modify Emacs to use gnulib's socklen module,
23403         I discovered a circular dependency: socklen depends on sys_socket
23404         and vice versa.  Emacs can use socklen, but it does not need
23405         sys_socket because it has its own substitute for sys/socket.h.
23406         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23407         gl_TYPE_SOCKLEN_T.
23408         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23409         gl_PREREQ_SYS_H_SOCKET.
23410         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23411         gl_PREREQ_SYS_H_SOCKET.
23412         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23413         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23414         * modules/socklen (Depends-on): Do not depend on sys_socket.
23415         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23416
23417 2011-03-20  Jim Meyering  <meyering@redhat.com>
23418
23419         maint.mk: sort file names *after* new transformation
23420         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23421         prefix would have led to an unwarranted failure in GNU parted.
23422         Sort after that transformation.
23423
23424 2011-03-19  Jim Meyering  <meyering@redhat.com>
23425
23426         maint.mk: fix po-file syntax-check rule
23427         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23428         Patch by Bruno Haible.
23429
23430 2011-03-19  Bruno Haible  <bruno@clisp.org>
23431
23432         socklen: Update comment.
23433         * m4/socklen.m4: Update comment about platforms.
23434
23435 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23436             Bruno Haible  <bruno@clisp.org>
23437
23438         inet_ntop, inet_pton: Simplify.
23439         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23440         documented to provide socklen_t and we already depend on sys_socket.
23441         * modules/inet_pton (Depends-on): Likewise.
23442         * lib/arpa_inet.in.h: Adjust comment.
23443
23444 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23445             Bruno Haible  <bruno@clisp.org>
23446
23447         netdb: Simplify.
23448         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23449         documented to provide socklen_t and we already depend on sys_socket.
23450         * lib/netdb.in.h: Adjust comment.
23451
23452 2011-03-19  Bruno Haible  <bruno@clisp.org>
23453
23454         sys_socket, netdb: Document problem with socklen_t.
23455         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23456         platforms.
23457         * doc/posix-headers/netdb.texi: Likewise.
23458
23459 2011-03-18  Eric Blake  <eblake@redhat.com>
23460
23461         maint.mk: let po check work in VPATH build
23462         * top/maint.mk (po_file): Allow cfg.mk override.
23463         (sc_po_check): Allow VPATH use.
23464         Reported by Jiri Denemark.
23465
23466 2011-03-16  Jim Meyering  <meyering@redhat.com>
23467
23468         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23469         Before, you would have had to create one .x-sc_ file per rule in order
23470         to exempt offending files.  Now, you may instead use a Make variable --
23471         usually defined in cfg.mk -- whose name identifies the affected rule.
23472         * top/maint.mk (_sc_excl): Define.
23473         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23474         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23475
23476 2011-03-13  Bruno Haible  <bruno@clisp.org>
23477
23478         ignore-value tests: Avoid warnings.
23479         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23480         empty for gcc < 3.4.
23481
23482 2011-03-13  Bruno Haible  <bruno@clisp.org>
23483
23484         passfd: Fix link error on Solaris.
23485         * modules/passfd (Description): Correct.
23486         (Depends-on): Add socketlib.
23487         (Link): New section.
23488         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23489
23490 2011-03-13  Bruno Haible  <bruno@clisp.org>
23491
23492         passfd: Fix link error on AIX 5.2.
23493         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23494
23495 2011-03-13  Bruno Haible  <bruno@clisp.org>
23496
23497         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23498         * lib/sys_socket.in.h: Include <stddef.h>.
23499         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23500         CMSG_FIRSTHDR. Remove unused variable.
23501
23502 2011-03-13  Bruno Haible  <bruno@clisp.org>
23503
23504         passfd: Fix compilation error on OpenBSD.
23505         * lib/passfd.c: Include <sys/uio.h>.
23506
23507 2011-03-13  Bruno Haible  <bruno@clisp.org>
23508
23509         passfd test: Fix warnings.
23510         * tests/test-passfd.c: Include <sys/wait.h>.
23511         (main): Fix typo.
23512
23513 2011-03-13  Bruno Haible  <bruno@clisp.org>
23514
23515         passfd module, part 4, tweaks.
23516         * tests/test-passfd.c: Reorder includes.
23517         (main): Fix perror and printf calls.
23518
23519 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23520
23521         passfd module, part 4.
23522         * modules/passfd-tests: New file.
23523         * tests/test-passfd.c: New file.
23524
23525 2011-03-13  Jim Meyering  <meyering@redhat.com>
23526
23527         Makefile: rely on GNU make; derive syntax-check rule names
23528         Rather than requiring that each sc_ rule be listed as a dependent
23529         of "check", use features of GNU make to derive the list.
23530         * Makefile (syntax-check-rules): Define.
23531         (check): Depend on the new variable, not the hard-coded list.
23532
23533 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23534             Bruno Haible  <bruno@clisp.org>
23535
23536         passfd module, part 3.
23537         * lib/passfd.h (recvfd): Add a flags argument.
23538         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23539         (recvfd): Add a flags argument.
23540         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23541         exists.
23542         * modules/passfd (Depends-on): Add cloexec.
23543         Suggested by Eric Blake.
23544
23545 2011-03-13  Bruno Haible  <bruno@clisp.org>
23546
23547         passfd module, part 2, tweaks.
23548         * modules/passfd (Files): Reorder.
23549         (Depends-on): Remove errno.
23550         (Include): Remove <sys/socket.h>, <sys/un.h>.
23551         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23552         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23553         specification header. Include <sys/socket.h> always. Don't include
23554         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23555         (sendfd): Clarify that it sets errno when it fails.
23556         (recvfd): Fix specification.
23557
23558 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23559
23560         passfd module, part 2.
23561         * modules/passfd: New file.
23562         * lib/passfd.h: New file.
23563         * lib/passfd.c: New file.
23564
23565 2011-03-12  Bruno Haible  <bruno@clisp.org>
23566
23567         wcswidth, mbswidth: Avoid integer overflow.
23568         * lib/wcswidth.c: Include <limits.h>.
23569         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23570         * lib/mbswidth.c: Include <limits.h>.
23571         (mbsnwidth): Avoid 'int' overflow.
23572         Reported by Jim Meyering.
23573
23574 2011-03-12  Bruno Haible  <bruno@clisp.org>
23575
23576         futimens, utimensat: Avoid endless recursion on Solaris 10.
23577         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23578         Solaris.
23579         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23580         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23581
23582 2011-03-11  Jim Meyering  <meyering@redhat.com>
23583
23584         maint.mk: relax a regexp to accommodate other formatting styles
23585         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23586         between "ngettext" and the following "(".
23587
23588 2011-03-11  Pádraig Brady <P@draigBrady.com>
23589
23590         maint.mk: suppress a false positive warning
23591         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23592         diagnostics are marked with ngettext.
23593
23594 2011-03-10  Eric Blake  <eblake@redhat.com>
23595
23596         wchar: add explicit dependencies, for Tru64
23597         * modules/mbmemcasecoll (Depends-on): Add wchar.
23598         * modules/mbtowc (Depends-on): Likewise.
23599         * modules/vasnprintf (Depends-on): Likewise.
23600         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23601         * modules/wctomb (Depends-on): Likewise.
23602         Reported by Peter O'Gorman.
23603
23604 2011-03-08  Bruno Haible  <bruno@clisp.org>
23605
23606         passfd module, part 1, tweaks.
23607         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23608         Improve indentation. Improve AC_MSG_CHECKING messages.
23609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23610         gl_SOCKET_FAMILIES.
23611
23612 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23613
23614         passfd module, part 1.
23615         * m4/afunix.m4: New file.
23616         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23617         sockets.
23618
23619 2011-03-08  Bruno Haible  <bruno@clisp.org>
23620
23621         regex-quote: New API.
23622         * lib/regex-quote.h: Include <stdbool.h>.
23623         (struct regex_quote_spec): New type.
23624         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23625         New declarations.
23626         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23627         'const struct regex_quote_spec *' argument.
23628         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23629         (pcre_special): New constant.
23630         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23631         New functions.
23632         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23633         'const struct regex_quote_spec *' argument.
23634         * modules/regex-quote (Depends-on): Add stdbool.
23635         * tests/test-regex-quote.c (check): Update for new API. Add test for
23636         anchored results.
23637         * NEWS: Mention the API change.
23638         Reported by Reuben Thomas and Eric Blake.
23639
23640 2011-03-06  Bruno Haible  <bruno@clisp.org>
23641
23642         regex-quote: Fix creation of POSIX extended regular expressions.
23643         * lib/regex-quote.c (ere_special): Add grouping and alternation
23644         operators.
23645
23646 2011-03-05  Bruno Haible  <bruno@clisp.org>
23647
23648         doc: Improve doc regarding autopoint vs. gnulib.
23649         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23650         disable autopoint while running autoreconf.
23651         Suggested by Ralf Wildenhues.
23652
23653 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23654
23655         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23656         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23657
23658 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23659
23660         parse-duration: remove xalloc.h dependency
23661         * lib/parse-duration.c (parse_period): handle NULL return from
23662         strdup instead of calling xstrdup().
23663         * modules/parse-duration: remove "xalloc" dependency
23664
23665 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23666
23667         bootstrap: honor m4_base when running aclocal
23668         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23669
23670 2011-03-02  Jim Meyering  <meyering@redhat.com>
23671
23672         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23673         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23674         on request from Matt Booth.
23675
23676 2011-03-01  Eric Blake  <eblake@redhat.com>
23677
23678         test-link: work on Hurd
23679         * tests/test-link.h (test_link): Hurd rejects linking directories
23680         with EISDIR instead of the POSIX-mandated EPERM.
23681
23682 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23683
23684         stdio: simplify by moving files to printf-posix, sigpipe
23685         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23686         since this symbol is needed only if printf is replaced.
23687         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23688         Require gl_ASM_SYMBOL_PREFIX.
23689         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23690         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23691         (Depends-on): Add 'raise'.
23692         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23693         * modules/stdio (Files): Remove lib/stdio-write.c,
23694         m4/asm-underscore.m4.
23695         (Depends-on): Remove 'raise'.
23696
23697         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23698         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23699         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23700         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23701
23702 2011-02-28  Bruno Haible  <bruno@clisp.org>
23703
23704         localcharset: Assume ANSI C behaviour of free().
23705         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23706         calling free().
23707         Suggested by Simon Josefsson <simon@josefsson.org>.
23708
23709 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23710             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23711             Bruno Haible  <bruno@clisp.org>  (tiny change)
23712
23713         On Cygwin, use /proc file system instead of win32 API.
23714         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23715         Win32 file names.
23716         (DllMain): Simplify by removing Cygwin specific code.
23717         (find_shared_library_fullname): Use Linux specific implementation also
23718         for Cygwin.
23719         (get_shared_library_fullname): Update accordingly.
23720         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23721         Win32 file names.
23722         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23723         Cygwin specific code.
23724
23725 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23726             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23727
23728         Fix OpenMP flag detection for various Fortran compilers.
23729         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23730         OpenMP-conditional compilation construct, to force compile
23731         failure with missing OpenMP flag.
23732         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23733
23734 2011-02-25  Eric Blake  <eblake@redhat.com>
23735
23736         strstr: expand test coverage
23737         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23738         compilation.
23739         * tests/test-memmem.c (main): Duplicate tests.
23740         * tests/test-strcasestr.c (main): Likewise.
23741         * tests/test-c-strcasestr.c (main): Likewise.
23742
23743 2011-02-25  Jim Meyering  <meyering@redhat.com>
23744
23745         maint.mk: detect missing-NL-at-EOF, too
23746         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23747         it also detects when a file lacks a newline at EOF.
23748         (require_exactly_one_NL_at_EOF_): Renamed from
23749         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23750         since people may well have .x-sc_... file names tied to the
23751         existing name.  Suggested by Eric Blake.
23752
23753 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23754
23755         dirname: move m4/dos.m4 functionality into lib/dosname.h
23756
23757         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23758         extracts symbols from it, puts them into config.h; but it's much
23759         easier to use the symbols directly.  filename.h already does this,
23760         but it disagrees with dos.m4 in some respects.  This patch
23761         introduces a different include file dosname.h that packages up
23762         dos.m4, and then later we can work on merging filename.h and
23763         dosname.h.  Applications that need only the easy-to-configure
23764         symbols should consider including dosname.h rather than dirname.h.
23765         * NEWS: Mention incompatible changes.
23766         * m4/dos.m4: Remove.
23767         * lib/dosname.h, modules/dosname: New files.
23768         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23769         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23770         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23771         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23772         Include dosname.h, not dirname.h.
23773         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23774         Include dosname.h, for definitions of symbols like ISSLASH
23775         that used to be in config.h.
23776         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23778         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23779         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23780         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23781         * modules/rmdir (Files): Likewise.
23782         * modules/stat (Files): Likewise.
23783         * modules/unlink (Files): Likewise.
23784         * modules/dirname-lgpl (Depends-on): Add dosname.
23785         * modules/lstat (Depends-on): Likewise.
23786         * modules/openat (Depends-on): Likewise.
23787         * modules/rmdir (Depends-on): Likewise.
23788         * modules/savewd (Depends-on): Likewise.
23789         * modules/stat (Depends-on): Likewise.
23790         * modules/unlink (Depends-on): Likewise.
23791         * modules/openat (Depends-on): Remove dirname-lgpl.
23792         * modules/savewd (Depends-on): Likewise.
23793         * tests/test-dirname.c: Do not use removed symbols like
23794         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23795         the remaining symbols, e.g., ISSLASH ('\\').
23796
23797 2011-02-25  Eric Blake  <eblake@redhat.com>
23798
23799         strstr: revert patches that introduced bug and pessimization
23800         * lib/str-two-way.h: Add another reference.
23801         (two_way_short_needle, two_way_long_needle): Revert changes from
23802         2011-02-24; they pessimize search speed.
23803         (critical_factorization): Partially revert changes from
23804         2010-06-22; they violate the requirement that the left half of the
23805         needle be smaller than the period of the needle.
23806
23807 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         filenamecat: remove unnecessary dependency on dirname-lgpl
23810         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23811         is no direct dependency, just an indirect one via filenamecat-lgpl.
23812
23813         remove: remove unnecessary use of m4/dos.m4
23814         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23815         * modules/remove (FILES): Remove m4/dos.m4.
23816
23817         * lib/openat-proc.c: Don't include dirname.h; not needed.
23818
23819         backupfile: remove unnecessary use of m4/dos.m4
23820         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23821         of its symbols are used by the backupfile code.  backupfile.c does
23822         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23823         for the rare case of programs that want all their backup file
23824         names to live within 8+3 limits, and dos.m4 doesn't address that.
23825         * modules/backupfile (Files): Remove m4/dos.m4.
23826
23827 2011-02-24  Jim Meyering  <meyering@redhat.com>
23828
23829         strstr: fix a bug whereby strstr would mistakenly return NULL
23830         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23831         in period calculation.
23832         (two_way_long_needle): Likewise.
23833         The original problem was reported by Mike Stump in
23834         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23835         Ralf Wildenhues provided the short needle and haystack.
23836         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23837         Add a more involved test to trigger the bug in two_way_long_needle.
23838
23839 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23840
23841         gnulib-tool: remove use of bold display in help screen
23842         * gnulib-tool (func_usage): Do not use bold display anymore in the
23843         help screen.  That was just meant to be a temporary emphasis for a
23844         backward-incompatible change.
23845
23846 2011-02-23  Bruno Haible  <bruno@clisp.org>
23847
23848         Fix misindentation of preprocessor directives.
23849         * lib/argp-namefrob.h: Reindent preprocessor directives.
23850         * lib/getopt_int.h (struct _getopt_data): Likewise.
23851         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23852         * lib/vasnprintf.c (decode_long_double): Likewise.
23853         * tests/test-argmatch.c: Insert blank lines, for clarity.
23854         * tests/test-exclude.c: Likewise.
23855
23856 2011-02-22  Bruno Haible  <bruno@clisp.org>
23857
23858         ioctl: Fix for MacOS X in 64-bit mode.
23859         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23860         value.
23861         Suggested by Eric Blake.
23862         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23863
23864 2011-02-22  Jim Meyering  <meyering@redhat.com>
23865
23866         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23867         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23868         in lib/.
23869
23870 2011-02-22  Eric Blake  <eblake@redhat.com>
23871
23872         maint: avoid any CDPATH issue
23873         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23874
23875         maint: adjust cpp indentation for my modules, as well
23876         * Makefile (sc_cpp_indent_check): Add my name.
23877         * lib/fbufmode.c: Filter through cppi.
23878         * lib/fpurge.c: Likewise.
23879         * lib/freadable.c: Likewise.
23880         * lib/freading.c: Likewise.
23881         * lib/fwritable.c: Likewise.
23882         * lib/fwriting.c: Likewise.
23883         * lib/sigaction.c: Likewise.
23884
23885 2011-02-22  Jim Meyering  <meyering@redhat.com>
23886
23887         maint: adjust cpp indentation to reflect nesting depth
23888         I.e., in a block of code that begins with an unnested "#if",
23889         put one space between the "#" in column 1 and following token.
23890         For example,
23891         -#include <sys/vfs.h>
23892         +# include <sys/vfs.h>
23893         Do this only in .c files that are part of a module I maintain.
23894         * lib/linkat.c: Filter through cppi.
23895         * lib/nanosleep.c: Likewise.
23896         * lib/openat.c: Likewise.
23897         * lib/openat-die.c: Likewise.
23898         * lib/dup3.c: Likewise.
23899         * lib/fchownat.c: Likewise.
23900         * lib/flock.c: Likewise.
23901         * lib/fsync.c: Likewise.
23902         * lib/fts.c: Likewise.
23903         * lib/getpass.c: Likewise.
23904         * lib/gettimeofday.c: Likewise.
23905         * lib/userspec.c: Likewise.
23906         * Makefile (sc_cpp_indent_check): New rule, to check this.
23907
23908 2011-02-22  Bruno Haible  <bruno@clisp.org>
23909
23910         New module 'wctomb'.
23911         * lib/stdlib.in.h (wctomb): New declaration.
23912         * lib/wctomb.c: New file.
23913         * lib/wctomb-impl.h: New file.
23914         * m4/wctomb.m4: New file.
23915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23916         REPLACE_WCTOMB.
23917         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23918         REPLACE_WCTOMB.
23919         * modules/wctomb: New file.
23920         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23921         * doc/posix-functions/wctomb.texi: Mention the new module.
23922         * modules/wctob (Depends-on): Add wctomb.
23923
23924 2011-02-22  Bruno Haible  <bruno@clisp.org>
23925
23926         New module 'mbtowc'.
23927         * lib/stdlib.in.h (mbtowc): New declaration.
23928         * lib/mbtowc.c: New file.
23929         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23930         * m4/mbtowc.m4: New file.
23931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23932         REPLACE_MBTOWC.
23933         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23934         REPLACE_MBTOWC.
23935         * modules/mbtowc: New file.
23936         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23937         * doc/posix-functions/mbtowc.texi: Mention the new module.
23938         * modules/btowc (Depends-on): Add mbtowc.
23939
23940 2011-02-22  Bruno Haible  <bruno@clisp.org>
23941
23942         wcrtomb: Add more tests for native Windows platforms.
23943         * tests/test-wcrtomb-w32-1.sh: New file.
23944         * tests/test-wcrtomb-w32-2.sh: New file.
23945         * tests/test-wcrtomb-w32-3.sh: New file.
23946         * tests/test-wcrtomb-w32-4.sh: New file.
23947         * tests/test-wcrtomb-w32-5.sh: New file.
23948         * tests/test-wcrtomb-w32.c: New file.
23949         * modules/wcrtomb-tests (Files): Add them.
23950         (Makefile.am): Arrange to run these tests.
23951         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23952         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23953
23954 2011-02-20  Bruno Haible  <bruno@clisp.org>
23955
23956         wcrtomb: Enhance test.
23957         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23958
23959 2011-02-20  Bruno Haible  <bruno@clisp.org>
23960
23961         mbrtowc: Tiny optimization.
23962         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23963
23964 2011-02-20  Jim Meyering  <meyering@redhat.com>
23965
23966         test-exclude.c: remove unmatched #endif
23967         * tests/test-exclude.c: Remove stray #endif, left over from
23968         the change of a week ago.
23969
23970 2011-02-19  Jim Meyering  <meyering@redhat.com>
23971
23972         git-version-gen: skip "-dirty" check when appropriate
23973         * build-aux/git-version-gen: Don't run any git commands when the
23974         version string comes from .tarball-version.  Prior to this, we
23975         would run git update-index --refresh even from a just-unpacked
23976         tarball directory, and that could affect a .git/ directory in a
23977         parent of the build directory.  Reported by Mike Frysinger.
23978
23979 2011-02-19  Bruno Haible  <bruno@clisp.org>
23980
23981         unictype/property-byname: Reduce the size of the 'data' segment.
23982         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23983
23984 2011-02-19  Bruno Haible  <bruno@clisp.org>
23985
23986         unictype/scripts: Reduce the size of the 'data' segment.
23987         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23988         '%pic'.
23989         * lib/unictype/scripts_byname.gperf: Regenerated.
23990
23991 2011-02-19  Bruno Haible  <bruno@clisp.org>
23992
23993         stdint: Update documentation.
23994         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23995
23996 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23997
23998         stdint: omit redundant check for wchar.h
23999         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24000         always tests whether wchar.h exists, so remove the now-redundant test.
24001
24002 2011-02-18  Bruno Haible  <bruno@clisp.org>
24003
24004         stdint: Cut dependency to module 'wchar'.
24005         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24006         include the necessary prerequisites.
24007         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24008         * modules/stdint (Depends-on): Remove wchar.
24009         (Makefile.am): Substitute HAVE_WCHAR_H.
24010         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24011
24012 2011-02-18  Eric Blake  <eblake@redhat.com>
24013
24014         longlong: skip, rather than fail, on cross-compilation
24015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24016         when cross-compiling; regression from 2011-02-16.
24017
24018 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24019
24020         * NEWS: Mention 2011-02-08 change to stdlib.
24021
24022 2011-02-17  Bruno Haible  <bruno@clisp.org>
24023
24024         getloadavg: Add comments about platforms.
24025         * m4/getloadavg.m4: Add comment.
24026         * lib/getloadavg.c: Likewise.
24027
24028 2011-02-17  Bruno Haible  <bruno@clisp.org>
24029
24030         getloadavg: Fix link error on Solaris 2.6.
24031         * modules/getloadavg (Link): New section.
24032         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24033         linking test-getloadavg.
24034         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24035         getloadavg.
24036
24037 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24040         It was 'int', but this doesn't match the IRIX 6.5 manual.
24041         Suggested by Bruno Haible in
24042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24043
24044 2011-02-17  Bruno Haible  <bruno@clisp.org>
24045
24046         havelib: Fix comments.
24047         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24048         change.
24049
24050 2011-02-17  Bruno Haible  <bruno@clisp.org>
24051
24052         havelib: Update config.rpath.
24053         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24054
24055 2011-02-17  Bruno Haible  <bruno@clisp.org>
24056
24057         getloadavg test: Add some plausibility checks.
24058         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24059         is improbable.
24060
24061 2011-02-16  Eric Blake  <eblake@redhat.com>
24062
24063         maintainer-makefile: make syntax-check a no-op from tarballs
24064         * top/maint.mk (no-vc-detected): New rule.
24065         (local-checks-available): Use it to avoid hanging if someone tries
24066         'make syntax-check' from a tarball.  Also append to any non-syntax
24067         checks already defined in cfg.mk.
24068
24069 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24070
24071         longlong: tune, particularly for common case of c99
24072
24073         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24074         or running anything if c99, or if unsigned long long int does not
24075         work.  In either case, we know the answer without further tests.
24076         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24077         it at most once, and use its results for both long long int and
24078         unsigned long long int.  This is more likely to be efficient in
24079         the common case where the program wants to check for both long
24080         long int and unsigned long long int.
24081         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24082         since the answer is already known.
24083
24084 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24085
24086         getloadavg: set errno
24087         * lib/getloadavg.c: Set errno when returning -1.  If no other
24088         error number looks appropriate, set it to ENOSYS if the getloadavg
24089         looks like it can't possibly ever work, ENOTSUP otherwise.
24090         Suggested by Bruno Haible in
24091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24092
24093         getloadavg: trim unused parts and speed up 'configure'
24094         * NEWS: Document this.
24095         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24096         always compiled if getloadavg is absent.
24097         Move test code to ...
24098         * tests/test-getloadavg.c: New file, containing previous
24099         contents of test from lib/getloadavg.c.  It also contains
24100         suggestions by Bruno Haible in
24101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24102         * modules/getloadavg-tests: New file.
24103         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24104         Do tests in the same order as they're needed for getloadavg.c.
24105         Omit setgid-related tests that generate symbols KMEM_GROUP,
24106         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24107         Do only the tests that are needed to see whether the system has
24108         getloadavg, moving the other tests into ...
24109         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24110         NLIST_NAME_UNION; nobody should be using it.  Do not define
24111         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24112         relevant, as the user of this module shouldn't care how getloadavg
24113         is implemented.
24114
24115         getloadavg: omit unused var
24116         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24117
24118 2011-02-15  Jim Meyering  <meyering@redhat.com>
24119
24120         doc: update users.txt
24121         * users.txt: Update iwhd's URL.
24122
24123 2011-02-13  Bruno Haible  <bruno@clisp.org>
24124
24125         Consistent macro naming for macros that use GCC __attribute__.
24126         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24127         _ATTRIBUTE_NONNULL_.
24128         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24129         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24130         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24131         ATTRIBUTE_DEPRECATED.
24132         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24133         ATTRIBUTE_NORETURN.
24134         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24135         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24136         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24137         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24138         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24139         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24140         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24141         ATTRIBUTE_SENTINEL.
24142         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24143         ATTRIBUTE_RETURN_CHECK.
24144         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24145         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24146         ATTRIBUTE_NORETURN.
24147         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24148         Reported by Paul Eggert.
24149
24150 2011-02-13  Bruno Haible  <bruno@clisp.org>
24151
24152         Don't interfere with a program's definition of __attribute__.
24153         * lib/argp.h (__attribute__): Remove definition.
24154         (_GL_ATTRIBUTE_FORMAT): New macro.
24155         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24156         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24157         (_GL_ATTRIBUTE_FORMAT): New macro.
24158         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24159         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24160         GCC 3 or newer.
24161         * lib/error.h (__attribute__): Remove definition.
24162         (_GL_ATTRIBUTE_FORMAT): New macro.
24163         (error, error_at_line): Use it.
24164         * lib/hash.h (__attribute__): Remove definition.
24165         (ATTRIBUTE_WUR): Update definition. Define always.
24166         * lib/openat.h (__attribute__): Remove definition.
24167         (ATTRIBUTE_NORETURN): Update definition. Define always.
24168         * lib/sigpipe-die.h (__attribute__): Remove definition.
24169         (ATTRIBUTE_NORETURN): Update definition. Define always.
24170         * lib/vasnprintf.h (__attribute__): Remove definition.
24171         (_GL_ATTRIBUTE_FORMAT): New macro.
24172         (asnprintf, vasnprintf): Use it.
24173         * lib/xalloc.h (__attribute__): Remove definition.
24174         (ATTRIBUTE_NORETURN): Update definition. Define always.
24175         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24176         * lib/xmemdup0.h (__attribute__): Remove definition.
24177         (ATTRIBUTE_NORETURN): Update definition. Define always.
24178         * lib/xprintf.h (__attribute__): Remove definition.
24179         (_GL_ATTRIBUTE_FORMAT): New macro.
24180         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24181         * lib/xstrtol.h (__attribute__): Remove definition.
24182         (ATTRIBUTE_NORETURN): Update definition. Define always.
24183         * lib/xvasprintf.h (__attribute__): Remove definition.
24184         (_GL_ATTRIBUTE_FORMAT): New macro.
24185         (xasprintf, xvasprintf): Use it.
24186         * tests/test-argmatch.c (__attribute__): Remove definition.
24187         (ATTRIBUTE_NORETURN): Update definition. Define always.
24188         * tests/test-exclude.c (__attribute__): Remove definition.
24189         (ATTRIBUTE_NORETURN): Update definition. Define always.
24190         Reported by Paul Eggert.
24191
24192 2011-02-13  Bruno Haible  <bruno@clisp.org>
24193
24194         mbrtowc: Add more tests for native Windows platforms.
24195         * tests/test-mbrtowc-w32-1.sh: New file.
24196         * tests/test-mbrtowc-w32-2.sh: New file.
24197         * tests/test-mbrtowc-w32-3.sh: New file.
24198         * tests/test-mbrtowc-w32-4.sh: New file.
24199         * tests/test-mbrtowc-w32-5.sh: New file.
24200         * tests/test-mbrtowc-w32.c: New file.
24201         * modules/mbrtowc-tests (Files): Add them.
24202         (Makefile.am): Arrange to run these tests.
24203         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24204         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24205
24206 2011-02-13  Bruno Haible  <bruno@clisp.org>
24207
24208         mbrtowc: Work around native Windows bug.
24209         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24210         guess when no suitable locale for testing was found.
24211         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24212
24213 2011-02-13  Bruno Haible  <bruno@clisp.org>
24214
24215         mbsinit: Work around mingw bug.
24216         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24217         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24218         Windows.
24219         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24220
24221 2011-02-13  Bruno Haible  <bruno@clisp.org>
24222
24223         mbsinit: Don't crash for a NULL argument.
24224         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24225         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24226
24227 2011-02-13  Bruno Haible  <bruno@clisp.org>
24228
24229         Don't interfere with a program's definition of __attribute__.
24230         * lib/stdio.in.h (__attribute__): Remove definition.
24231         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24232         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24233         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24234         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24235         * lib/string.in.h (__attribute__): Remove definition.
24236         Reported by Paul Eggert.
24237
24238 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         stdlib: don't get in the way of non-GCC __attribute__
24241         See thread starting at
24242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24243         Revert previous stdlib change, installing the following instead:
24244         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24245         to get in the way of a non-GCC compiler that supports __attribute__.
24246         (_GL_ATTRIBUTE_RETURN): New macro.
24247         (_Exit): Use it instead of __attribute__.
24248
24249 2011-02-12  Bruno Haible  <bruno@clisp.org>
24250
24251         quotearg test: Avoid test failure on mingw.
24252         * tests/test-quotearg.sh: Convert the locale identifier from native
24253         Windows syntax to Unix syntax.
24254
24255 2011-02-12  Bruno Haible  <bruno@clisp.org>
24256
24257         setlocale: Prefer gnulib's override over libintl's override.
24258         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24259         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24260         GNULIB_defined_setlocale is set.
24261
24262 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24263
24264         stdlib: support non-GCC __attribute__
24265
24266         Fix a serious and tricky problem encountered when attempting to
24267         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24268         5.5, but it crashed due to memory corruption on Solaris 10 with
24269         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24270         bits that are otherwise zero.  This tagging is optional inside
24271         Emacs but is preferred and is used when __attribute__ ((__aligned
24272         (8))) works, as it does with both recent-enough GCC and with Sun C
24273         5.11.  However, Sun C 5.11 is not GCC and does not #define
24274         __GNUC__ and __GNUC_MINOR__.
24275
24276         When I added the getloadavg module to Emacs, it brought in
24277         stdlib.in.h, which contained this fragment:
24278
24279            #ifndef __attribute__
24280            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24281            #  define __attribute__(Spec)   /* empty */
24282            # endif
24283            #endif
24284
24285         When files that include <stdlib.h> were compiled with Sun C 5.11,
24286         the above code disabled __attribute__ ((__aligned (8))), which
24287         caused variables to not be properly aligned, which eventually led
24288         to the pointer corruption mentioned above.  (This was a bit hard
24289         to diagnose, unfortunately.)
24290
24291         Several "#define __attribute__(X) /* empty */" code snippets need
24292         to be eradicated from Gnulib to work with non-GCC compilers that
24293         support __attribute__.  The Autoconf way to do this is to test for
24294         each kind of attribute that we want support for, and selectively
24295         enable that in source code.
24296
24297         Fix this problem just for stdlib.h, by adding a test for the
24298         __noreturn__ attribute, and change stdlib.in.h to use that test
24299         when needed.  This technique can be easily generalized to the
24300         other *.in.h files and attributes, and a similar technique can be
24301         used for *.h and *.c files.  This patch is enough to solve the
24302         problem for Emacs + getloadavg, and I thought I'd publish it for
24303         feedback before undertaking further, similar fixes in other
24304         modules.
24305
24306         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24307         because it's not needed for stdlib.h.  It merely substitutes the
24308         value directly into stdlib.h.  We may well need to #define it, or
24309         similar symbols, for other modules, but it's nice to also have an
24310         option to not #define it for applications like Emacs that do not
24311         need it.
24312
24313         * lib/stdlib.in.h (__attribute__): Do not #define.
24314         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24315         be defined only if the _Exit module is also used.
24316         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24318         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24319         platforms.
24320         * modules/_Exit (Files): Add m4/attribute.m4.
24321         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24322         * m4/attribute.m4: New file.
24323
24324 2011-02-12  Bruno Haible  <bruno@clisp.org>
24325
24326         wcsrtombs: Work around bug on native Windows.
24327         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24328         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24329         instead of len.
24330         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24331
24332 2011-02-12  Bruno Haible  <bruno@clisp.org>
24333
24334         mbsrtowcs: Work around bug on native Windows.
24335         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24336         against mingw bug.
24337         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24338
24339 2011-02-12  Bruno Haible  <bruno@clisp.org>
24340
24341         Avoid setlocale bugs in tests.
24342         * modules/btowc (Dependencies): Add setlocale.
24343         * modules/c-strcase (Dependencies): Likewise.
24344         * modules/mbmemcasecmp (Dependencies): Likewise.
24345         * modules/mbmemcasecoll (Dependencies): Likewise.
24346         * modules/mbrtowc (Dependencies): Likewise.
24347         * modules/mbscasecmp (Dependencies): Likewise.
24348         * modules/mbscasestr (Dependencies): Likewise.
24349         * modules/mbschr (Dependencies): Likewise.
24350         * modules/mbscspn (Dependencies): Likewise.
24351         * modules/mbsinit (Dependencies): Likewise.
24352         * modules/mbsncasecmp (Dependencies): Likewise.
24353         * modules/mbsnrtowcs (Dependencies): Likewise.
24354         * modules/mbspbrk (Dependencies): Likewise.
24355         * modules/mbspcasecmp (Dependencies): Likewise.
24356         * modules/mbsrchr (Dependencies): Likewise.
24357         * modules/mbsrtowcs (Dependencies): Likewise.
24358         * modules/mbsspn (Dependencies): Likewise.
24359         * modules/mbsstr (Dependencies): Likewise.
24360         * modules/nl_langinfo (Dependencies): Likewise.
24361         * modules/quotearg (Dependencies): Likewise.
24362         * modules/unicase/locale-language (Dependencies): Likewise.
24363         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24364         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24365         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24366         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24367         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24368         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24369         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24370         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24371         * modules/vasnprintf-posix (Dependencies): Likewise.
24372         * modules/wcrtomb (Dependencies): Likewise.
24373         * modules/wcsnrtombs (Dependencies): Likewise.
24374         * modules/wcsrtombs (Dependencies): Likewise.
24375
24376 2011-02-12  Bruno Haible  <bruno@clisp.org>
24377
24378         setlocale: Workaround native Windows bug.
24379         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24380         succeeds but sets LC_CTYPE to "C", report a failure.
24381         * tests/test-setlocale2.sh: New file.
24382         * tests/test-setlocale2.c: New file.
24383         * modules/setlocale-tests (Files): Add the new files.
24384         (Makefile.am): Enable test-setlocale2.sh test.
24385         * doc/posix-functions/setlocale.texi: Mention workaround.
24386
24387 2011-02-11  Bruno Haible  <bruno@clisp.org>
24388
24389         Tests for module 'setlocale'.
24390         * modules/setlocale-tests: New file.
24391         * tests/test-setlocale1.sh: New file.
24392         * tests/test-setlocale1.c: New file.
24393
24394         New module 'setlocale'.
24395         * lib/locale.in.h (setlocale): New declaration.
24396         * lib/setlocale.c: New file, based on
24397         gettext/gettext-runtime/intl/setlocale.c.
24398         * m4/setlocale.m4: New file.
24399         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24400         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24401         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24402         REPLACE_SETLOCALE.
24403         * modules/setlocale: New file.
24404         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24405         * doc/posix-functions/setlocale.texi: Mention the new module.
24406
24407 2011-02-11  Bruno Haible  <bruno@clisp.org>
24408
24409         Prepare for locale dependent tests on mingw.
24410         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24411         because it has the wrong locale encoding.
24412         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24413         French_France.1252 instead of "fr".
24414         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24415         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24416         because it has the wrong locale encoding.
24417         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24418         native Windows, try Turkish_Turkey.65001.
24419         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24420         Chinese_China.54936.
24421
24422         Prepare for locale dependent tests on mingw.
24423         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24424         differently.
24425         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24426         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24427         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24428         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24429
24430 2011-02-11  Eric Blake  <eblake@redhat.com>
24431
24432         strptime: avoid compiler warnings
24433         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24434         compiler warnings about dead code.
24435         Reported by Daniel P. Berrange.
24436
24437 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24438
24439         doc: update users.txt
24440         * users.txt: Add rcs.
24441
24442 2011-02-10  John W. Eaton  <jwe@gnu.org>
24443
24444         doc: update users.txt
24445         * users.txt: Add octave.
24446
24447 2011-02-10  Jim Meyering  <meyering@redhat.com>
24448
24449         doc: update users.txt
24450         * users.txt: Add iwhd.
24451
24452 2011-02-09  Bruno Haible  <bruno@clisp.org>
24453
24454         gnulib-tool: Make copyright notice adjustment more robust.
24455         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24456         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24457         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24458         License".
24459         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24460
24461 2011-02-06  Bruno Haible  <bruno@clisp.org>
24462
24463         New module 'towctrans'.
24464         * modules/towctrans: New file.
24465         * lib/wctype.in.h (towctrans): New declaration.
24466         * lib/towctrans.c: New file.
24467         * lib/towctrans-impl.h: New file.
24468         * m4/towctrans.m4: New file.
24469         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24470         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24471         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24472         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24473         * doc/posix-functions/towctrans.texi: Mention the new module.
24474
24475 2011-02-06  Bruno Haible  <bruno@clisp.org>
24476
24477         New module 'wctrans'.
24478         * modules/wctrans: New file.
24479         * lib/wctype.in.h (wctrans): New declaration.
24480         * lib/wctrans.c: New file.
24481         * lib/wctrans-impl.h: New file.
24482         * m4/wctrans.m4: New file.
24483         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24484         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24485         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24486         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24487         * doc/posix-functions/wctrans.texi: Mention the new module.
24488
24489 2011-02-06  Bruno Haible  <bruno@clisp.org>
24490
24491         New module 'iswctype'.
24492         * modules/iswctype: New file.
24493         * lib/wctype.in.h (iswctype): New declaration.
24494         * lib/iswctype.c: New file.
24495         * lib/iswctype-impl.h: New file.
24496         * m4/iswctype.m4: New file.
24497         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24498         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24499         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24500         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24501         * doc/posix-functions/iswctype.texi: Mention the new module and the
24502         HP-UX 11.00 problem.
24503
24504 2011-02-06  Bruno Haible  <bruno@clisp.org>
24505
24506         New module 'wctype'.
24507         * modules/wctype: Change to represent the wctype() substitute.
24508         * lib/wctype.in.h (wctype): New declaration.
24509         * lib/wctype.c: New file.
24510         * lib/wctype-impl.h: New file.
24511         * m4/wctype.m4: New file.
24512         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24513         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24514         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24515         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24516         * doc/posix-functions/wctype.texi: Mention the new module and the
24517         HP-UX 11.00 problem.
24518
24519 2011-02-06  Bruno Haible  <bruno@clisp.org>
24520
24521         wctype-h: Ensure wctype_t and wctrans_t are defined.
24522         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24523         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24524         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24525         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24526         HAVE_WCTRANS_T.
24527         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24528
24529 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24530
24531         flock: fix license typo
24532
24533         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24534         omitted.
24535
24536 2011-02-08  Bruno Haible  <bruno@clisp.org>
24537
24538         Split large sed scripts, for HP-UX sed.
24539         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24540         to avoid HP-UX limit of 99 commands, in the near future.
24541         * modules/stdlib (Makefile.am): Likewise.
24542         * modules/unistd (Makefile.am): Likewise.
24543         * modules/wchar (Makefile.am): Likewise.
24544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24545         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24547
24548 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24549             Bruno Haible  <bruno@clisp.org>
24550
24551         stdlib: improve random_r modularization
24552         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24553         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24554         you also need the random_r module to get this material right.
24555         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24556         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24557         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24558
24559 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24560
24561         stdlib: don't depend on stdint
24562         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24563         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24564         be independent of whether stdint.h is needed.
24565         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24566         here, instead of ...
24567         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24568         struct random_data should be using the random_r module, not just
24569         the stdlib module (which wouldn't make sense: what package needs
24570         just struct random_data without also needing random_r?).
24571         * modules/stdlib (Depends-on): Remove stdint.
24572
24573         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24574         See the thread rooted at
24575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24576         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24577         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24578         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24579         __VMS)); previously it was always included (via fcntl--.h).
24580         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24581         hand; this is good enough for load averages.  Also, do not use
24582         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24583         flags directly if available and don't bother otherwise.  (Packages
24584         that need the extra reliability should use the modules that define
24585         these flags on older platforms that lack them.)
24586         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24587         fcntl-safer.
24588
24589 2011-02-08  Jim Meyering  <meyering@redhat.com>
24590
24591         di-set.h, ino-map.h: add multiple-inclusion guard
24592         Technically, the guard is required only for ino-map.h, due to its
24593         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24594         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24595         * lib/ino-map.h: Likewise.
24596
24597 2011-02-06  Bruno Haible  <bruno@clisp.org>
24598
24599         iswblank: Ensure declaration on glibc systems.
24600         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24601         * modules/iswblank (Dependencies): Add 'extensions'.
24602         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24603
24604 2011-02-06  Bruno Haible  <bruno@clisp.org>
24605
24606         New module 'iswblank'.
24607         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24608         * modules/iswblank: New file.
24609         * modules/wctype-h (Files): Remove lib/iswblank.c.
24610         (Makefile.am): Substitute GNULIB_ISWBLANK.
24611         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24612         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24613         (gl_WCTYPE_H_DEFAULTS): New macro.
24614         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24615         * modules/iswblank-tests: New file.
24616         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24617         * tests/test-wctype-h.c (main): Remove iswblank tests.
24618         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24619         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24620         of 'wctype-h'.
24621         * NEWS: Mention the change.
24622         * modules/mbchar (Depends-on): Add iswblank.
24623
24624 2011-02-08  Bruno Haible  <bruno@clisp.org>
24625
24626         di-set tests: Refactor.
24627         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24628         unnecessary includes.
24629         (ASSERT): Remove macro.
24630         (main): Make C90 compliant by avoiding variable declaration after
24631         statement.
24632         * modules/di-set-tests (Files): Add tests/macros.h.
24633
24634 2011-02-08  Bruno Haible  <bruno@clisp.org>
24635
24636         ino-map tests: Refactor.
24637         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24638         unnecessary includes.
24639         (ASSERT): Remove macro.
24640         (main): Make C90 compliant by avoiding variable declaration after
24641         statement.
24642         * modules/ino-map-tests (Files): Add tests/macros.h.
24643
24644 2011-02-08  Jim Meyering  <meyering@redhat.com>
24645
24646         di-set: add "const" to a cast
24647         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24648         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24649
24650 2011-02-06  Bruno Haible  <bruno@clisp.org>
24651
24652         Rename module 'wctype' to 'wctype-h'.
24653         * modules/wctype-h: Renamed from modules/wctype.
24654         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24655         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24656         (Files, Depends-on, Makefile.am): Update.
24657         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24658         (Files, Makefile.am): Update.
24659         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24660         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24661         * doc/posix-headers/wctype.texi: Update.
24662         * doc/posix-functions/iswalnum.texi: Update.
24663         * doc/posix-functions/iswalpha.texi: Update.
24664         * doc/posix-functions/iswblank.texi: Update.
24665         * doc/posix-functions/iswcntrl.texi: Update.
24666         * doc/posix-functions/iswdigit.texi: Update.
24667         * doc/posix-functions/iswgraph.texi: Update.
24668         * doc/posix-functions/iswlower.texi: Update.
24669         * doc/posix-functions/iswprint.texi: Update.
24670         * doc/posix-functions/iswpunct.texi: Update.
24671         * doc/posix-functions/iswspace.texi: Update.
24672         * doc/posix-functions/iswupper.texi: Update.
24673         * doc/posix-functions/iswxdigit.texi: Update.
24674         * doc/posix-functions/towlower.texi: Update.
24675         * doc/posix-functions/towupper.texi: Update.
24676         * NEWS: Mention the change.
24677         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24678         * modules/mbchar (Dependencies): Likewise.
24679         * modules/mbswidth (Dependencies): Likewise.
24680         * modules/quotearg (Dependencies): Likewise.
24681         * modules/regex (Dependencies): Likewise.
24682         * modules/wcscasecmp (Dependencies): Likewise.
24683         * modules/wcsncasecmp (Dependencies): Likewise.
24684         * modules/wcwidth (Dependencies): Likewise.
24685
24686 2011-02-06  Bruno Haible  <bruno@clisp.org>
24687
24688         New module 'wcswidth'.
24689         * modules/wcswidth: New file.
24690         * lib/wchar.in.h (wcswidth): New declaration.
24691         * lib/wcswidth.c: New file.
24692         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24693         * m4/wcswidth.m4: New file.
24694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24696         REPLACE_WCSWIDTH.
24697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24698         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24699         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24700         * doc/posix-functions/wcswidth.texi: Mention the new module.
24701
24702 2011-02-06  Bruno Haible  <bruno@clisp.org>
24703
24704         New module 'wcstok'.
24705         * modules/wcstok: New file.
24706         * lib/wchar.in.h (wcstok): New declaration.
24707         * lib/wcstok.c: New file.
24708         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24709         * m4/wcstok.m4: New file.
24710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24713         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24714         * doc/posix-functions/wcstok.texi: Mention the new module.
24715
24716 2011-02-06  Bruno Haible  <bruno@clisp.org>
24717
24718         New module 'wcsstr'.
24719         * modules/wcsstr: New file.
24720         * lib/wchar.in.h (wcsstr): New declaration.
24721         * lib/wcsstr.c: New file.
24722         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24723         * m4/wcsstr.m4: New file.
24724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24727         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24728         * doc/posix-functions/wcsstr.texi: Mention the new module.
24729
24730 2011-02-06  Bruno Haible  <bruno@clisp.org>
24731
24732         New module 'wcspbrk'.
24733         * modules/wcspbrk: New file.
24734         * lib/wchar.in.h (wcspbrk): New declaration.
24735         * lib/wcspbrk.c: New file.
24736         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24737         * m4/wcspbrk.m4: New file.
24738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24741         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24742         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24743
24744 2011-02-06  Bruno Haible  <bruno@clisp.org>
24745
24746         New module 'wcsspn'.
24747         * modules/wcsspn: New file.
24748         * lib/wchar.in.h (wcsspn): New declaration.
24749         * lib/wcsspn.c: New file.
24750         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24751         * m4/wcsspn.m4: New file.
24752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24755         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24756         * doc/posix-functions/wcsspn.texi: Mention the new module.
24757
24758 2011-02-06  Bruno Haible  <bruno@clisp.org>
24759
24760         New module 'wcscspn'.
24761         * modules/wcscspn: New file.
24762         * lib/wchar.in.h (wcscspn): New declaration.
24763         * lib/wcscspn.c: New file.
24764         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24765         * m4/wcscspn.m4: New file.
24766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24769         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24770         * doc/posix-functions/wcscspn.texi: Mention the new module.
24771
24772 2011-02-06  Bruno Haible  <bruno@clisp.org>
24773
24774         New module 'wcsrchr'.
24775         * modules/wcsrchr: New file.
24776         * lib/wchar.in.h (wcsrchr): New declaration.
24777         * lib/wcsrchr.c: New file.
24778         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24779         * m4/wcsrchr.m4: New file.
24780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24783         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24784         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24785
24786 2011-02-06  Bruno Haible  <bruno@clisp.org>
24787
24788         New module 'wcschr'.
24789         * modules/wcschr: New file.
24790         * lib/wchar.in.h (wcschr): New declaration.
24791         * lib/wcschr.c: New file.
24792         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24793         * m4/wcschr.m4: New file.
24794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24797         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24798         * doc/posix-functions/wcschr.texi: Mention the new module.
24799
24800 2011-02-06  Bruno Haible  <bruno@clisp.org>
24801
24802         New module 'wcsdup'.
24803         * modules/wcsdup: New file.
24804         * lib/wchar.in.h (wcsdup): New declaration.
24805         * lib/wcsdup.c: New file.
24806         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24807         * m4/wcsdup.m4: New file.
24808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24811         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24812         * doc/posix-functions/wcsdup.texi: Mention the new module.
24813
24814 2011-02-06  Bruno Haible  <bruno@clisp.org>
24815
24816         New module 'wcsxfrm'.
24817         * modules/wcsxfrm: New file.
24818         * lib/wchar.in.h (wcsxfrm): New declaration.
24819         * lib/wcsxfrm.c: New file.
24820         * lib/wcsxfrm-impl.h: New file.
24821         * m4/wcsxfrm.m4: New file.
24822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24825         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24826         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24827
24828 2011-02-06  Bruno Haible  <bruno@clisp.org>
24829
24830         New module 'wcscoll'.
24831         * modules/wcscoll: New file.
24832         * lib/wchar.in.h (wcscoll): New declaration.
24833         * lib/wcscoll.c: New file.
24834         * lib/wcscoll-impl.h: New file.
24835         * m4/wcscoll.m4: New file.
24836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24839         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24840         * doc/posix-functions/wcscoll.texi: Mention the new module.
24841
24842 2011-02-06  Bruno Haible  <bruno@clisp.org>
24843
24844         New module 'wcsncasecmp'.
24845         * modules/wcsncasecmp: New file.
24846         * lib/wchar.in.h (wcsncasecmp): New declaration.
24847         * lib/wcsncasecmp.c: New file.
24848         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24849         * m4/wcsncasecmp.m4: New file.
24850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24853         HAVE_WCSNCASECMP.
24854         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24855         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24856
24857 2011-02-06  Bruno Haible  <bruno@clisp.org>
24858
24859         New module 'wcscasecmp'.
24860         * modules/wcscasecmp: New file.
24861         * lib/wchar.in.h (wcscasecmp): New declaration.
24862         * lib/wcscasecmp.c: New file.
24863         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24864         * m4/wcscasecmp.m4: New file.
24865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24868         HAVE_WCSCASECMP.
24869         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24870         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24871
24872 2011-02-05  Bruno Haible  <bruno@clisp.org>
24873
24874         New module 'wcsncmp'.
24875         * modules/wcsncmp: New file.
24876         * lib/wchar.in.h (wcsncmp): New declaration.
24877         * lib/wcsncmp.c: New file.
24878         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24879         * m4/wcsncmp.m4: New file.
24880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24883         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24884         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24885
24886 2011-02-05  Bruno Haible  <bruno@clisp.org>
24887
24888         New module 'wcscmp'.
24889         * modules/wcscmp: New file.
24890         * lib/wchar.in.h (wcscmp): New declaration.
24891         * lib/wcscmp.c: New file.
24892         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24893         * m4/wcscmp.m4: New file.
24894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24897         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24898         * doc/posix-functions/wcscmp.texi: Mention the new module.
24899
24900 2011-02-05  Bruno Haible  <bruno@clisp.org>
24901
24902         New module 'wcsncat'.
24903         * modules/wcsncat: New file.
24904         * lib/wchar.in.h (wcsncat): New declaration.
24905         * lib/wcsncat.c: New file.
24906         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24907         * m4/wcsncat.m4: New file.
24908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24911         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24912         * doc/posix-functions/wcsncat.texi: Mention the new module.
24913
24914 2011-02-05  Bruno Haible  <bruno@clisp.org>
24915
24916         New module 'wcscat'.
24917         * modules/wcscat: New file.
24918         * lib/wchar.in.h (wcscat): New declaration.
24919         * lib/wcscat.c: New file.
24920         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24921         * m4/wcscat.m4: New file.
24922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24925         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24926         * doc/posix-functions/wcscat.texi: Mention the new module.
24927
24928 2011-02-05  Bruno Haible  <bruno@clisp.org>
24929
24930         New module 'wcpncpy'.
24931         * modules/wcpncpy: New file.
24932         * lib/wchar.in.h (wcpncpy): New declaration.
24933         * lib/wcpncpy.c: New file.
24934         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24935         * m4/wcpncpy.m4: New file.
24936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24938         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24939         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24940         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24941
24942 2011-02-05  Bruno Haible  <bruno@clisp.org>
24943
24944         New module 'wcsncpy'.
24945         * modules/wcsncpy: New file.
24946         * lib/wchar.in.h (wcsncpy): New declaration.
24947         * lib/wcsncpy.c: New file.
24948         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24949         * m4/wcsncpy.m4: New file.
24950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24953         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24954         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24955
24956 2011-02-05  Bruno Haible  <bruno@clisp.org>
24957
24958         New module 'wcpcpy'.
24959         * modules/wcpcpy: New file.
24960         * lib/wchar.in.h (wcpcpy): New declaration.
24961         * lib/wcpcpy.c: New file.
24962         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24963         * m4/wcpcpy.m4: New file.
24964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24966         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24967         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24968         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24969
24970 2011-02-05  Bruno Haible  <bruno@clisp.org>
24971
24972         New module 'wcscpy'.
24973         * modules/wcscpy: New file.
24974         * lib/wchar.in.h (wcscpy): New declaration.
24975         * lib/wcscpy.c: New file.
24976         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24977         * m4/wcscpy.m4: New file.
24978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24981         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24982         * doc/posix-functions/wcscpy.texi: Mention the new module.
24983
24984 2011-02-05  Bruno Haible  <bruno@clisp.org>
24985
24986         New module 'wcsnlen'.
24987         * modules/wcsnlen: New file.
24988         * lib/wchar.in.h (wcsnlen): New declaration.
24989         * lib/wcsnlen.c: New file.
24990         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24991         * m4/wcsnlen.m4: New file.
24992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24995         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24996         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24997
24998 2011-02-05  Bruno Haible  <bruno@clisp.org>
24999
25000         New module 'wcslen'.
25001         * modules/wcslen: New file.
25002         * lib/wchar.in.h (wcslen): New declaration.
25003         * lib/wcslen.c: New file.
25004         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25005         * m4/wcslen.m4: New file.
25006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25009         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25010         * doc/posix-functions/wcslen.texi: Mention the new module.
25011
25012 2011-02-05  Bruno Haible  <bruno@clisp.org>
25013
25014         New module 'wmemset'.
25015         * modules/wmemset: New file.
25016         * lib/wchar.in.h (wmemset): New declaration.
25017         * lib/wmemset.c: New file.
25018         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25019         * m4/wmemset.m4: New file.
25020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25022         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25023         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25024         * doc/posix-functions/wmemset.texi: Mention the new module.
25025
25026 2011-02-05  Bruno Haible  <bruno@clisp.org>
25027
25028         New module 'wmemmove'.
25029         * modules/wmemmove: New file.
25030         * lib/wchar.in.h (wmemmove): New declaration.
25031         * lib/wmemmove.c: New file.
25032         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25033         * m4/wmemmove.m4: New file.
25034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25036         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25037         HAVE_WMEMMOVE.
25038         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25039         * doc/posix-functions/wmemmove.texi: Mention the new module.
25040
25041 2011-02-05  Bruno Haible  <bruno@clisp.org>
25042
25043         New module 'wmemcpy'.
25044         * modules/wmemcpy: New file.
25045         * lib/wchar.in.h (wmemcpy): New declaration.
25046         * lib/wmemcpy.c: New file.
25047         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25048         * m4/wmemcpy.m4: New file.
25049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25051         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25052         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25053         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25054
25055 2011-02-05  Bruno Haible  <bruno@clisp.org>
25056
25057         New module 'wmemcmp'.
25058         * modules/wmemcmp: New file.
25059         * lib/wchar.in.h (wmemcmp): New declaration.
25060         * lib/wmemcmp.c: New file.
25061         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25062         * m4/wmemcmp.m4: New file.
25063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25065         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25066         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25067         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25068
25069 2011-02-07  Jim Meyering  <meyering@redhat.com>
25070
25071         di-set, ino-map: new modules, from coreutils
25072         * lib/di-set.c: New file.
25073         * lib/di-set.h: Likewise.
25074         * lib/ino-map.c: Likewise.
25075         * lib/ino-map.h: Likewise.
25076         * modules/di-set: Likewise.
25077         * modules/di-set-tests: Likewise.
25078         * modules/ino-map: Likewise.
25079         * modules/ino-map-tests: Likewise.
25080         * tests/test-di-set.c: Likewise.
25081         * tests/test-ino-map.c: Likewise.
25082
25083 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25084
25085         getloadavg: merge minor changes from Emacs
25086
25087         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25088         (getloadavg): Use memset, not bzero.
25089
25090         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25091         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25092         clash (bug#86).
25093
25094 2010-11-14  Bruno Haible  <bruno@clisp.org>
25095
25096         Allow multiple gnulib generated replacements to coexist.
25097         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25098         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25099         * lib/langinfo.in.h (nl_item): Likewise.
25100         * lib/math.in.h (_NaN, NAN): Likewise.
25101         * lib/netdb.in.h (struct addrinfo): Likewise.
25102         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25103         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25104         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25105         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25106         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25107         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25108         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25109         pthread_mutexattr_init, pthread_mutexattr_settype,
25110         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25111         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25112         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25113         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25114         * lib/sched.in.h (struct sched_param): Likewise.
25115         * lib/se-selinux.in.h (security_class_t, security_context_t,
25116         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25117         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25118         lsetfilecon, fsetfilecon, security_check_context,
25119         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25120         Likewise.
25121         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25122         Likewise.
25123         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25124         _gl_function_taking_int_returning_void_t, union sigval,
25125         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25126         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25127         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25128         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25129         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25130         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25131         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25132         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25133         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25134         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25135         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25136         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25137         socklen_t, rpl_fd_isset): Likewise.
25138         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25139         * lib/sys_time.in.h (struct timeval): Likewise.
25140         * lib/sys_times.in.h (struct tms): Likewise.
25141         * lib/sys_utsname.in.h (struct utsname):
25142         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25143         * lib/unistd.in.h (getpagesize): Likewise.
25144         * lib/wchar.in.h (mbstate_t): Likewise.
25145         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25146         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25147         towlower, towupper): Likewise.
25148         Reported by Sam Steingold <sds@gnu.org>.
25149
25150 2011-02-05  Eric Blake  <eblake@redhat.com>
25151
25152         unsetenv: work around Haiku issues
25153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25154         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25155
25156 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25157
25158         libposix: avoid calling error() within libposix
25159         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25160         is defined.
25161
25162 2011-02-05  Eric Blake  <eblake@redhat.com>
25163
25164         strerror_r-posix: port to cygwin
25165         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25166         implementation.
25167         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25168         * tests/test-strerror_r.c (main): Fix test.
25169         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25170         issue.
25171
25172 2011-02-05  Bruno Haible  <bruno@clisp.org>
25173
25174         New module 'wmemchr'.
25175         * modules/wmemchr: New file.
25176         * lib/wchar.in.h (wmemchr): New declaration.
25177         * lib/wmemchr.c: New file.
25178         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25179         * m4/wmemchr.m4: New file.
25180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25182         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25183         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25184         * doc/posix-functions/wmemchr.texi: Mention the new module.
25185
25186 2011-02-04  Eric Blake  <eblake@redhat.com>
25187
25188         fdopendir: detect FreeBSD bug
25189         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25190         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25191
25192 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25193
25194         stdbool: do not define HAVE_STDBOOL_H
25195         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25196         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25197         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25198         imported from the latest Autoconf git.  It was motivated by Emacs,
25199         which uses gnulib but does not need HAVE_STDBOOL_H.
25200
25201 2011-02-04  Bruno Haible  <bruno@clisp.org>
25202
25203         wcsnrtombs: Prepare for new module wwcsnrtombs.
25204         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25205         * lib/wcsnrtombs.c: Include it.
25206         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25207
25208         wcsrtombs: Prepare for new module wwcsrtombs.
25209         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25210         * lib/wcsrtombs.c: Include it.
25211         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25212
25213         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25214         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25215         * lib/mbsnrtowcs.c: Include it.
25216         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25217
25218         mbsrtowcs: Prepare for new module mbsrtowwcs.
25219         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25220         * lib/mbsrtowcs.c: Include it.
25221         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25222
25223 2011-02-04  Bruno Haible  <bruno@clisp.org>
25224
25225         vasnprintf: Reduce use of malloc for small format strings.
25226         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25227         (arguments): Add room for the first 7 arguments.
25228         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25229         (char_directives, u8_directives, u16_directives, u32_directives): Add
25230         room for the first 7 directives.
25231         * lib/printf-parse.c: Include <string.h>.
25232         (PRINTF_PARSE): Change memory handling code so that it uses the first
25233         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25234         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25235         Reported by Pádraig Brady <P@draigbrady.com>.
25236
25237 2011-01-31  Eric Blake  <eblake@redhat.com>
25238
25239         dup2: work around Haiku bug
25240         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25241         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25242         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25243         * tests/test-dup2.c (main): Enhance test.
25244
25245 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25246
25247         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25248         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25249         declared by eglibc 2.11.2.
25250         * lib/stdio.in.h: Likewise.
25251
25252 2011-01-31  Eric Blake  <eblake@redhat.com>
25253
25254         ignore-value: add missing test dependency
25255         * tests/test-ignore-value.c: Revert previous change; stdio.h
25256         provides off_t.
25257         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25258
25259 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25260
25261         mktime: clarify long_int width checking
25262         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25263         the top level, to make it clearer that the assumption about
25264         long_int width is being checked.  See
25265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25266
25267 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25268
25269         ignore-value: Fix self-test.
25270         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25271
25272 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         TYPE_MAXIMUM: avoid theoretically undefined behavior
25275         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25276         negative number, which the C Standard says has undefined behavior.
25277         In practice this is not a problem, but might as well do it by the book.
25278         Reported by Rich Felker and Eric Blake; see
25279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25280         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25281         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25283         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25284         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25285         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25286
25287         mktime: #undef mktime before #defining it
25288         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25289
25290         mktime: systematically normalize tm_isdst comparisons
25291         * lib/mktime.c (isdst_differ): New function.
25292         (__mktime_internal): Use it systematically for all isdst comparisons.
25293         This completes the fix for libc BZ #6723, and removes the need for
25294         normalizing tm_isdst.  See
25295         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25296         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25297
25298         mktime: fix some integer overflow issues and sidestep the rest
25299
25300         This was prompted by a bug report by Benjamin Lindner for MinGW
25301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25302         His bug is due to signed integer overflow (0 - INT_MIN), and I
25303         I scanned through mktime.c looking for other integer overflow
25304         problems, fixing all the bugs I found.
25305
25306         Although the C Standard says the resulting code is still not safe
25307         in the presence of integer overflow, in practice it should be good
25308         enough for all real-world two's-complement implementations, except
25309         for debugging environments that deliberately trap on integer
25310         overflow (e.g., gcc -ftrapv).
25311
25312         * lib/mktime.c (WRAPV): New macro.
25313         (SHR): Also check that long_int and time_t shift right in the
25314         usual way, before using the fast-but-unportable method.
25315         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25316         used.  The code already assumed two's complement, so there's
25317         no need to test for alternatives.  All uses removed.
25318         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25319         the C standard.  Problem reported by Rich Felker in
25320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25321         (twos_complement_arithmetic): Also check long_int and time_t.
25322         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25323         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25324         (__mktime_internal): Avoid integer overflow with unary subtraction
25325         in two instances where -1 - X is an adequate replacement for -X,
25326         since the calculations are approximate.
25327
25328 2011-01-29  Eric Blake  <eblake@redhat.com>
25329
25330         mktime: avoid infinite loop
25331         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25332         type; behavior is still undefined but portable to all known targets.
25333         Reported by Rich Felker.
25334
25335 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25336
25337         rename, unlink, same-inode: Relicense.
25338         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25339         * modules/unlink (License): Likewise.
25340         * modules/same-inode (License): Likewise.
25341
25342 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25343
25344         mktime: avoid problems on NetBSD 5 / i386
25345         * lib/mktime.c (long_int): New type.  This works around a problem
25346         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25347         but time_t is 64 bits, and where I expect the existing code is
25348         wrong in some cases.
25349         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25350         (ydhms_diff): Bring back the compile-time check for wide-enough
25351         year and yday.
25352
25353         mktime: fix misspelling in comment
25354         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25355         This merges all recent glibc changes of importance.
25356
25357 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25358
25359         move-if-change: cope with concurrent mv of identical file.
25360         * build-aux/move-if-change (CMPPROG): Accept environment
25361         variable as an override for `cmp'.
25362         (usage): Document CMPPROG.
25363         Adjust comparison to drop stdout.  Cope with failure of mv if
25364         the target file exists and is identical to the source, for
25365         parallel builds.
25366         Report from H.J. Lu against binutils in PR binutils/12283.
25367
25368 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25369
25370         * users.txt: Mention sharutils.
25371
25372 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25373
25374         * users.txt: Mention OATH Toolkit.
25375
25376 2011-01-27  Bruno Haible  <bruno@clisp.org>
25377
25378         Prepare for supporting FreeBSD 10.
25379         * build-aux/config.libpath: Remove handling of freebsd1*.
25380
25381 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25382
25383         Prepare for supporting FreeBSD 10.
25384         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25385         match FreeBSD 10.0.
25386
25387 2011-01-27  Bruno Haible  <bruno@clisp.org>
25388
25389         vma-iter, get-rusage-as: Add OpenBSD support.
25390         * modules/vma-iter (configure.ac): Test for mquery.
25391         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25392         * lib/vma-iter.c: Include <sys/mman.h>.
25393         (vma_iterate): Add an implementation based on mquery().
25394         * lib/resource-ext.h (get_rusage_as): Update comments.
25395         * lib/get-rusage-as.c: Likewise.
25396         * lib/get-rusage-data.c: Likewise.
25397
25398 2011-01-26  Karl Berry  <karl@gnu.org>
25399
25400         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25401         variables to make it easier to override the makeinfo program used.
25402
25403 2011-01-26  Eric Blake  <eblake@redhat.com>
25404
25405         fcntl: work around Haiku F_DUPFD bugs
25406         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25407         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25408         cloexec bit on duplication.
25409         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25410
25411 2011-01-26  Bruno Haible  <bruno@clisp.org>
25412
25413         Enable memory leak tests on AIX.
25414         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25415         * tests/test-fprintf-posix3.c (main): Likewise.
25416
25417 2011-01-26  Bruno Haible  <bruno@clisp.org>
25418
25419         Tests for module 'get-rusage-data'.
25420         * modules/get-rusage-data-tests: New file.
25421         * tests/test-get-rusage-data.c: New file.
25422
25423         New module 'get-rusage-data'.
25424         * lib/resource-ext.h (get_rusage_data): New declaration.
25425         * lib/get-rusage-data.c: New file.
25426         * modules/get-rusage-data: New file.
25427
25428 2011-01-25  Bruno Haible  <bruno@clisp.org>
25429
25430         get-rusage-as: Allow for easier testing.
25431         * lib/resource-ext.h (get_rusage_as): Add comment.
25432         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25433         (main): New function for interactive testing.
25434
25435 2011-01-25  Bruno Haible  <bruno@clisp.org>
25436
25437         vma-iter: Treat Haiku like BeOS.
25438         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25439         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25440
25441 2011-01-25  Eric Blake  <eblake@redhat.com>
25442
25443         c-stack: fix regression on cygwin when libsigsegv is present
25444         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25445
25446 2011-01-24  Bruno Haible  <bruno@clisp.org>
25447
25448         vma-iter: Avoid empty intervals.
25449         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25450         on an empty interval.
25451
25452 2011-01-24  Jim Meyering  <meyering@redhat.com>
25453
25454         u64: remove unnecessary #include
25455         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25456
25457 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25458
25459         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25460         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25461
25462 2011-01-23  Bruno Haible  <bruno@clisp.org>
25463
25464         New module 'vma-iter'.
25465         * lib/vma-iter.h: New file.
25466         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25467         * modules/vma-iter: New file.
25468         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25469         for get_rusage_as_via_iterator.
25470         (vma_iterate_callback): New function.
25471         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25472         * modules/get-rusage-as (Depends-on): Add vma-iter.
25473
25474 2011-01-23  Bruno Haible  <bruno@clisp.org>
25475
25476         uninorm: Tweak includes.
25477         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25478         Reported by Jim Meyering.
25479
25480 2011-01-23  Bruno Haible  <bruno@clisp.org>
25481
25482         get-rusage-as: Improve on NetBSD.
25483         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25484         /proc, like on FreeBSD.
25485
25486 2011-01-23  Jim Meyering  <meyering@redhat.com>
25487
25488         xreadlink.h: remove unnecessary #include
25489         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25490
25491         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25492         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25493
25494 2011-01-23  Bruno Haible  <bruno@clisp.org>
25495
25496         get-rusage-as: Fix bug.
25497         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25498         original limit when aborting the first loop.
25499
25500 2011-01-23  Bruno Haible  <bruno@clisp.org>
25501
25502         wctype: Ensure valid C syntax.
25503         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25504         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25505
25506 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25507
25508         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25510         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25511         as they are needed only for configure's test case.
25512         This removes two unnecessary symbols from config.h.
25513
25514         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25515         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25517         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25518         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25519         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25521         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25522         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25523         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25524         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25527         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25528         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25529         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25530         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25531         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25532
25533 2011-01-21  Eric Blake  <eblake@redhat.com>
25534
25535         maintainer-makefile: work with older git for submodule check
25536         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25537         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25538         Reported by Matthias Bolte.
25539
25540         bootstrap: minor portability fixes
25541         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25542         (usage): Omit leading capital and trailing . on help phrases, per
25543         GNU Coding Standards.
25544         (check_versions, top level): Prefix messages with script name.
25545
25546 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25547
25548         bootstrap: support --no-git option
25549         * build-aux/bootstrap: Add --no-git option, to be used when
25550         --gnulib-srcdir points to the exact desired checkout.
25551
25552 2011-01-21  Eric Blake  <eblake@redhat.com>
25553
25554         strerror_r-posix: work with glibc 2.13
25555         * lib/strerror_r.c (strerror_r): Fix return type.
25556
25557 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25558             Bruno Haible  <bruno@clisp.org>
25559
25560         uN_strstr: New unit tests.
25561         * modules/unistr/u8-strstr-tests: New file.
25562         * modules/unistr/u16-strstr-tests: New file.
25563         * modules/unistr/u32-strstr-tests: New file.
25564         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25565         * tests/unistr/test-u8-strstr.c: New file.
25566         * tests/unistr/test-u16-strstr.c: New file.
25567         * tests/unistr/test-u32-strstr.c: New file.
25568
25569 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25570             Bruno Haible  <bruno@clisp.org>
25571
25572         Make uN_strstr functions O(n) worst-case.
25573         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25574         16-bit and 32-bit unit cases, use the unibyte algorithm from
25575         lib/mbsstr.c.
25576         * lib/unistr/u8-strstr.c: Include <string.h>.
25577         (UNIT_IS_UINT8_T): New macro.
25578         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25579         (U_STRLEN, U_STRNLEN): New macros.
25580         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25581         (U_STRLEN, U_STRNLEN): New macros.
25582         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25583         (configure.ac): Update required libunistring version.
25584         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25585         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25586         malloca.
25587         (configure.ac): Update required libunistring version.
25588         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25589         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25590         malloca.
25591         (configure.ac): Update required libunistring version.
25592
25593 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25594             Bruno Haible  <bruno@clisp.org>
25595
25596         Prepare for faster uN_strstr functions.
25597         * lib/str-kmp.h: Support definable UNITs.
25598         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25599         needle_len argument.
25600         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25601         * lib/mbscasestr.c (mbscasestr): Likewise.
25602
25603 2011-01-21  Pádraig Brady <P@draigBrady.com>
25604
25605         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25606         * tests/test-malloca.c (main): Unset the environment variable
25607         to greatly speed up the test.
25608         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25609         * modules/malloca-tests: Depend on unsetenv.
25610
25611 2011-01-21  Pádraig Brady <P@draigBrady.com>
25612
25613         ignore-value: remove stdint dependency
25614         * lib/ignore-value.h: Remove <stdint.h>
25615         * modules/ignore-value: Remove stdint dependency.
25616
25617 2011-01-21  Jim Meyering  <meyering@redhat.com>
25618
25619         maint.mk: adjust variable name to be consistent with other gl_ vars
25620         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25621         to be lower case.
25622
25623 2011-01-20  Jim Meyering  <meyering@redhat.com>
25624
25625         maint.mk: make "check" depend on public-submodule-commit by default
25626         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25627
25628 2011-01-20  Bruno Haible  <bruno@clisp.org>
25629
25630         mbfile, mbiter: Complete change from 2008-12-21.
25631         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25632         * m4/mbiter.m4 (gl_MBITER): Likewise.
25633
25634 2011-01-20  Jim Meyering  <meyering@redhat.com>
25635
25636         init.sh: insert space between each function name and "()"
25637         * tests/init.sh: Make it a little easier to see that a function's
25638         name is "warn_", and not "warn" when looking at the first part of
25639         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25640
25641 2011-01-20  Jim Meyering  <meyering@redhat.com>
25642
25643         mountlist: clean up code formatting
25644         * lib/mountlist.c (read_file_system_list): Split a long line,
25645         correct bracing style, use NULL in place of "(struct statfs *)0",
25646         don't parenthesize return value, add spaces around "=" and after
25647         ";-in-for-stmt".
25648
25649 2011-01-14  Markus Duft <mduft@gentoo.org>
25650
25651         mountlist: add support for Interix
25652         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25653         Apply statvfs to all entries of /dev/fs.
25654         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25655         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25656
25657 2011-01-20  Jim Meyering  <meyering@redhat.com>
25658
25659         maint.mk: improve the public-submodule-commit rule
25660         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25661         to suppress printing of its commands... unless V=1.
25662         Add git submodule's --quiet option to suppress printing of e.g.,
25663         "Entering gnulib" output.
25664         "cd" into $(srcdir) before running git submodule.
25665
25666 2011-01-20  Bruno Haible  <bruno@clisp.org>
25667
25668         include_next: Fix bug introduced on 2011-01-18.
25669         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25670         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25671         ac_cv_header_... variable if the second argument is not 'check'.
25672         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25673         gl_NEXT_HEADERS_INTERNAL.
25674
25675 2011-01-20  Bruno Haible  <bruno@clisp.org>
25676
25677         Allow the user to avoid the GNULIB_TEST_* macros.
25678         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25679         Suggested by Paul Eggert.
25680
25681 2011-01-14  Jim Meyering  <meyering@redhat.com>
25682
25683         bootstrap: avoid failure when there is no .gitmodules file
25684         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25685         has been assigned to, even when its value is the empty string.
25686         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25687         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25688         Reported by John W. Eaton <jwe@gnu.org>.
25689
25690 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25691
25692         assume <ctype.h>, ..., <time.h> exist
25693         For years gnulib has been assuming the existence of the headers
25694         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25695         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25696         them, since they don't appear to be needed.
25697         * README (Portability guidelines): Document this.
25698         * lib/flock.c: Assume <fcntl.h> exists.
25699         * lib/regex_internal.h: Assume <locale.h> exists.
25700         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25702         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25703         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25704         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25705         * m4/regex.m4 (gl_REGEX): Likewise.
25706         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25707         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25708         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25709         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25710         * tests/test-argp.c: Likewise.
25711         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25712
25713         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25714         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25715         AA_APPLE_UNIVERSAL_BUILD.  See
25716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25717         * NEWS: Document this.
25718
25719 2011-01-19  Eric Blake  <eblake@redhat.com>
25720
25721         c-stack: assume stack overflow if SA_SIGINFO unsupported
25722         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25723         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25724         sigaction will work.
25725         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25726         behavior match Linux.
25727         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25728
25729         stdbool-tests: accommodate Haiku
25730         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25731
25732         binary-io: fix O_TEXT on Haiku
25733         * modules/binary-io (Depends-on): Add fcntl-h.
25734         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25735         than blindly undefining O_TEXT.
25736         Reported by Scott McCreary.
25737
25738 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25739
25740         include_next: do not check for standard headers like stddef.h
25741
25742         I found this problem when modifying Emacs to use gnulib.
25743         I noticed that it added HAVE_STDDEF_H to config.h, even though
25744         gnulib always assumes <stddef.h> exists as per README and this
25745         symbol is unnecessary.
25746         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25747         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25748         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25749         faster for headers like stddef.h that are known to exist.
25750         (gl_CHECK_NEXT_HEADERS): Use it.
25751         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25752         rather than gl_CHECK_NEXT_HEADERS.
25753         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25754         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25755
25756 2011-01-18  Eric Blake  <eblake@redhat.com>
25757
25758         ansi-c++-opt: skip C++ dependency style if C++ is unused
25759         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25760         tests when we know C++ compilation is not desired.
25761         Reported by Scott McCreary.
25762
25763 2011-01-18  Bruno Haible  <bruno@clisp.org>
25764
25765         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25766         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25767         (main): Perform test also when getrlimit and setrlimit don't exist or
25768         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25769         limiting the address space size using setrlimit, compare the address
25770         space size before and after the the test.
25771         * tests/test-dprintf-posix2.c: Likewise.
25772         * tests/test-fprintf-posix3.sh: Update skip messages.
25773         * tests/test-dprintf-posix2.sh: Likewise.
25774         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25775         * modules/dprintf-posix-tests (Depends-on): Likewise.
25776         Reported by Bruce Korb <bkorb@gnu.org> and
25777         Gary V. Vaughan <gary@gnu.org>.
25778
25779 2011-01-18  Bruno Haible  <bruno@clisp.org>
25780
25781         get-rusage-as: Improvement for Cygwin.
25782         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25783         areas that are merely reserved.
25784
25785 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25786
25787         strftime: remove dependencies on multibyte modules
25788
25789         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25790         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25791         only if __osf__ is defined, and I suspect OSF doesn't need these
25792         other modules.  If my guess is wrong, we'll need to come up with a
25793         variant of strftime that doesn't need the multibyte modules.
25794
25795         I discovered this problem when attempting modify Emacs to use the
25796         strftime module.  With the previous gnulib, this caused Emacs to
25797         need 31 new files, ranging from lib/config.charset to
25798         m4/wint_t.m4.  This was overkill and I expect would be offputting
25799         to the Emacs maintainers.  After this change, only 6 new files are
25800         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25801         stdbool.m4, and tm_gmtoff.m4.
25802
25803         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25804         Suggested by Bruno Haible in
25805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25807         and do not check for wchar.h.
25808         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25809         (Depends-on): Remove mbrlen, mbsinit, wchar.
25810
25811 2011-01-18  Bruno Haible  <bruno@clisp.org>
25812
25813         Tests for module 'get-rusage-as'.
25814         * modules/get-rusage-as-tests: New file.
25815         * tests/test-get-rusage-as.c: New file.
25816
25817         New module 'get-rusage-as'.
25818         * modules/get-rusage-as: New file.
25819         * lib/resource-ext.h: New file.
25820         * lib/get-rusage-as.c: New file.
25821
25822 2011-01-17  Eric Blake  <eblake@redhat.com>
25823
25824         sigaction: relax license from LGPLv3+ to LGPLv2+
25825         * modules/sigaction (License): Relax to LGPLv2+.
25826
25827 2011-01-14  Bruno Haible  <bruno@clisp.org>
25828
25829         filemode: Make function declarations usable in C++ mode.
25830         * lib/filemode.h: Enclose function declarations in extern "C" block.
25831         Reported by John W. Eaton <jwe@gnu.org>.
25832
25833 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25834
25835         save-cwd: no longer include "xgetcwd.h"
25836         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25837         This avoids a compilation failure in projects that use save-cwd
25838         without also using the xgetcwd module.
25839
25840 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25841
25842         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25843         This is so that a program like Emacs, which needs only dtoastr,
25844         does not have to bother with distributing and compiling ftoastr
25845         and ldtoastr.
25846         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25847         * modules/dtoastr, modules/ldtoastr: New files.
25848         * modules/ftoastr: Now works just for 'float'.
25849         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25850         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25851         dtoastr.c, ldtoastr.c.
25852
25853 2011-01-11  Jim Meyering  <meyering@redhat.com>
25854
25855         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25856         There is no need to work around the lack of the fchdir function,
25857         since gnulib can now provide a replacement when required.
25858         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25859         * modules/save-cwd (Depends-on): Add fchdir.
25860
25861 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25862
25863         openat, save-cwd: avoid xmalloc
25864
25865         This removes a direct (but undocumented) dependency of openat on
25866         xalloc, along with an indirect dependency via save-cwd.  It also
25867         removes a dependency of save-cwd on xgetcwd, and thereby
25868         indirectly on xalloc.  This change causes the openat substitute
25869         to fall back on save_cwd when memory is tight, and for save_cwd to
25870         fail instead of dying when memory is tight, but that's good enough.
25871         Problem and initial idea for fix reported by Bastien Roucaries in
25872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25873
25874         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25875         xalloc.h (for xmalloc).
25876         (openat_proc_name): Use malloc, not xmalloc.
25877         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25878         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25879
25880         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25881         This avoids heap allocation for file names whose lengths are in
25882         the range 512..1023, with the upper bound increasing to at most
25883         4031 depending on the platform's PATH_MAX.  (We do not want
25884         pathmax.h here as it might supply a non-constant PATH_MAX.)
25885         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25886         Perhaps they should be moved to malloca.h?
25887         (OPENAT_BUFFER_SIZE): Use them.
25888
25889 2011-01-10  Bruno Haible  <bruno@clisp.org>
25890
25891         doc: Update users.txt.
25892         * users.txt: Add recutils.
25893
25894 2011-01-09  Karl Berry  <karl@gnu.org>
25895
25896         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25897
25898         * doc/configmake.texi: New file.
25899         * doc/gnulib.texi: Include it.
25900         * modules/configmake: Move documentation from here.
25901
25902 2011-01-09  Bruno Haible  <bruno@clisp.org>
25903
25904         Update to Unicode 6.0.0.
25905         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25906         (get_lbp): Update for Unicode 6.0.0.
25907         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25908         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25909         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25910         U+11001, U+11038..U+11046. Remove U+06DE.
25911         (uc_width): Fix bounds of planes.
25912         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25913         lib/uniwidth/width.c.
25914         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25915         trailing whitespace removed.
25916         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25917         without comments, but with the original copyright notice.
25918         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25919         * lib/unicase/ignorable.h: Likewise.
25920         * lib/unicase/tocasefold.h: Likewise.
25921         * lib/unicase/tolower.h: Likewise.
25922         * lib/unicase/totitle.h: Likewise.
25923         * lib/unicase/toupper.h: Likewise.
25924         * lib/unictype/bidi_of.h: Likewise.
25925         * lib/unictype/blocks.h: Likewise.
25926         * lib/unictype/categ_C.h: Likewise.
25927         * lib/unictype/categ_Cn.h: Likewise.
25928         * lib/unictype/categ_L.h: Likewise.
25929         * lib/unictype/categ_Ll.h: Likewise.
25930         * lib/unictype/categ_Lm.h: Likewise.
25931         * lib/unictype/categ_Lo.h: Likewise.
25932         * lib/unictype/categ_Lu.h: Likewise.
25933         * lib/unictype/categ_M.h: Likewise.
25934         * lib/unictype/categ_Mc.h: Likewise.
25935         * lib/unictype/categ_Me.h: Likewise.
25936         * lib/unictype/categ_Mn.h: Likewise.
25937         * lib/unictype/categ_N.h: Likewise.
25938         * lib/unictype/categ_Nd.h: Likewise.
25939         * lib/unictype/categ_No.h: Likewise.
25940         * lib/unictype/categ_P.h: Likewise.
25941         * lib/unictype/categ_Po.h: Likewise.
25942         * lib/unictype/categ_S.h: Likewise.
25943         * lib/unictype/categ_Sc.h: Likewise.
25944         * lib/unictype/categ_Sk.h: Likewise.
25945         * lib/unictype/categ_Sm.h: Likewise.
25946         * lib/unictype/categ_So.h: Likewise.
25947         * lib/unictype/categ_of.h: Likewise.
25948         * lib/unictype/combining.h: Likewise.
25949         * lib/unictype/ctype_alnum.h: Likewise.
25950         * lib/unictype/ctype_alpha.h: Likewise.
25951         * lib/unictype/ctype_graph.h: Likewise.
25952         * lib/unictype/ctype_lower.h: Likewise.
25953         * lib/unictype/ctype_print.h: Likewise.
25954         * lib/unictype/ctype_punct.h: Likewise.
25955         * lib/unictype/ctype_upper.h: Likewise.
25956         * lib/unictype/decdigit.h: Likewise.
25957         * lib/unictype/digit.h: Likewise.
25958         * lib/unictype/numeric.h: Likewise.
25959         * lib/unictype/pr_alphabetic.h: Likewise.
25960         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25961         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25962         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25963         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25964         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25965         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25966         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25967         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25968         * lib/unictype/pr_case_ignorable.h: Likewise.
25969         * lib/unictype/pr_cased.h: Likewise.
25970         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25971         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25972         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25973         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25974         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25975         * lib/unictype/pr_combining.h: Likewise.
25976         * lib/unictype/pr_composite.h: Likewise.
25977         * lib/unictype/pr_currency_symbol.h: Likewise.
25978         * lib/unictype/pr_decimal_digit.h: Likewise.
25979         * lib/unictype/pr_deprecated.h: Likewise.
25980         * lib/unictype/pr_format_control.h: Likewise.
25981         * lib/unictype/pr_grapheme_base.h: Likewise.
25982         * lib/unictype/pr_grapheme_extend.h: Likewise.
25983         * lib/unictype/pr_grapheme_link.h: Likewise.
25984         * lib/unictype/pr_id_continue.h: Likewise.
25985         * lib/unictype/pr_id_start.h: Likewise.
25986         * lib/unictype/pr_ideographic.h: Likewise.
25987         * lib/unictype/pr_lowercase.h: Likewise.
25988         * lib/unictype/pr_math.h: Likewise.
25989         * lib/unictype/pr_numeric.h: Likewise.
25990         * lib/unictype/pr_other_alphabetic.h: Likewise.
25991         * lib/unictype/pr_other_id_continue.h: Likewise.
25992         * lib/unictype/pr_other_math.h: Likewise.
25993         * lib/unictype/pr_punctuation.h: Likewise.
25994         * lib/unictype/pr_sentence_terminal.h: Likewise.
25995         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25996         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25997         * lib/unictype/pr_unified_ideograph.h: Likewise.
25998         * lib/unictype/pr_uppercase.h: Likewise.
25999         * lib/unictype/pr_xid_continue.h: Likewise.
26000         * lib/unictype/pr_xid_start.h: Likewise.
26001         * lib/unictype/scripts.h: Likewise.
26002         * lib/unictype/scripts_byname.gperf: Likewise.
26003         * lib/unictype/sy_java_ident.h: Likewise.
26004         * lib/unigbrk/gbrkprop.h: Likewise.
26005         * lib/unilbrk/lbrkprop1.h: Likewise.
26006         * lib/unilbrk/lbrkprop2.h: Likewise.
26007         * lib/uninorm/decomposition-table2.h: Likewise.
26008         * lib/uniwbrk/wbrkprop.h: Likewise.
26009         * tests/unicase/test-cased.c: Likewise.
26010         * tests/unicase/test-ignorable.c: Likewise.
26011         * tests/unicase/test-uc_tolower.c: Likewise.
26012         * tests/unicase/test-uc_totitle.c: Likewise.
26013         * tests/unicase/test-uc_toupper.c: Likewise.
26014         * tests/unictype/test-categ_C.c: Likewise.
26015         * tests/unictype/test-categ_Cn.c: Likewise.
26016         * tests/unictype/test-categ_L.c: Likewise.
26017         * tests/unictype/test-categ_Ll.c: Likewise.
26018         * tests/unictype/test-categ_Lm.c: Likewise.
26019         * tests/unictype/test-categ_Lo.c: Likewise.
26020         * tests/unictype/test-categ_Lu.c: Likewise.
26021         * tests/unictype/test-categ_M.c: Likewise.
26022         * tests/unictype/test-categ_Mc.c: Likewise.
26023         * tests/unictype/test-categ_Me.c: Likewise.
26024         * tests/unictype/test-categ_Mn.c: Likewise.
26025         * tests/unictype/test-categ_N.c: Likewise.
26026         * tests/unictype/test-categ_Nd.c: Likewise.
26027         * tests/unictype/test-categ_No.c: Likewise.
26028         * tests/unictype/test-categ_P.c: Likewise.
26029         * tests/unictype/test-categ_Po.c: Likewise.
26030         * tests/unictype/test-categ_S.c: Likewise.
26031         * tests/unictype/test-categ_Sc.c: Likewise.
26032         * tests/unictype/test-categ_Sk.c: Likewise.
26033         * tests/unictype/test-categ_Sm.c: Likewise.
26034         * tests/unictype/test-categ_So.c: Likewise.
26035         * tests/unictype/test-ctype_alnum.c: Likewise.
26036         * tests/unictype/test-ctype_alpha.c: Likewise.
26037         * tests/unictype/test-ctype_graph.c: Likewise.
26038         * tests/unictype/test-ctype_lower.c: Likewise.
26039         * tests/unictype/test-ctype_print.c: Likewise.
26040         * tests/unictype/test-ctype_punct.c: Likewise.
26041         * tests/unictype/test-ctype_upper.c: Likewise.
26042         * tests/unictype/test-decdigit.h: Likewise.
26043         * tests/unictype/test-digit.h: Likewise.
26044         * tests/unictype/test-numeric.h: Likewise.
26045         * tests/unictype/test-pr_alphabetic.c: Likewise.
26046         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26047         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26048         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26049         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26050         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26051         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26052         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26053         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26054         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26055         * tests/unictype/test-pr_cased.c: Likewise.
26056         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26057         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26058         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26059         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26060         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26061         * tests/unictype/test-pr_combining.c: Likewise.
26062         * tests/unictype/test-pr_composite.c: Likewise.
26063         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26064         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26065         * tests/unictype/test-pr_deprecated.c: Likewise.
26066         * tests/unictype/test-pr_format_control.c: Likewise.
26067         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26068         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26069         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26070         * tests/unictype/test-pr_id_continue.c: Likewise.
26071         * tests/unictype/test-pr_id_start.c: Likewise.
26072         * tests/unictype/test-pr_ideographic.c: Likewise.
26073         * tests/unictype/test-pr_lowercase.c: Likewise.
26074         * tests/unictype/test-pr_math.c: Likewise.
26075         * tests/unictype/test-pr_numeric.c: Likewise.
26076         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26077         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26078         * tests/unictype/test-pr_other_math.c: Likewise.
26079         * tests/unictype/test-pr_punctuation.c: Likewise.
26080         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26081         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26082         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26083         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26084         * tests/unictype/test-pr_uppercase.c: Likewise.
26085         * tests/unictype/test-pr_xid_continue.c: Likewise.
26086         * tests/unictype/test-pr_xid_start.c: Likewise.
26087         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26088         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26089         changes.
26090         * lib/unictype/categ_Cc.h: Likewise.
26091         * lib/unictype/categ_Cf.h: Likewise.
26092         * lib/unictype/categ_Co.h: Likewise.
26093         * lib/unictype/categ_Cs.h: Likewise.
26094         * lib/unictype/categ_Lt.h: Likewise.
26095         * lib/unictype/categ_Nl.h: Likewise.
26096         * lib/unictype/categ_Pc.h: Likewise.
26097         * lib/unictype/categ_Pd.h: Likewise.
26098         * lib/unictype/categ_Pe.h: Likewise.
26099         * lib/unictype/categ_Pf.h: Likewise.
26100         * lib/unictype/categ_Pi.h: Likewise.
26101         * lib/unictype/categ_Ps.h: Likewise.
26102         * lib/unictype/categ_Z.h: Likewise.
26103         * lib/unictype/categ_Zl.h: Likewise.
26104         * lib/unictype/categ_Zp.h: Likewise.
26105         * lib/unictype/categ_Zs.h: Likewise.
26106         * lib/unictype/ctype_blank.h: Likewise.
26107         * lib/unictype/ctype_cntrl.h: Likewise.
26108         * lib/unictype/ctype_digit.h: Likewise.
26109         * lib/unictype/ctype_space.h: Likewise.
26110         * lib/unictype/ctype_xdigit.h: Likewise.
26111         * lib/unictype/mirror.h: Likewise.
26112         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26113         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26114         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26115         * lib/unictype/pr_bidi_control.h: Likewise.
26116         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26117         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26118         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26119         * lib/unictype/pr_bidi_pdf.h: Likewise.
26120         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26121         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26122         * lib/unictype/pr_dash.h: Likewise.
26123         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26124         * lib/unictype/pr_diacritic.h: Likewise.
26125         * lib/unictype/pr_extender.h: Likewise.
26126         * lib/unictype/pr_hex_digit.h: Likewise.
26127         * lib/unictype/pr_hyphen.h: Likewise.
26128         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26129         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26130         * lib/unictype/pr_ignorable_control.h: Likewise.
26131         * lib/unictype/pr_iso_control.h: Likewise.
26132         * lib/unictype/pr_join_control.h: Likewise.
26133         * lib/unictype/pr_left_of_pair.h: Likewise.
26134         * lib/unictype/pr_line_separator.h: Likewise.
26135         * lib/unictype/pr_logical_order_exception.h: Likewise.
26136         * lib/unictype/pr_non_break.h: Likewise.
26137         * lib/unictype/pr_not_a_character.h: Likewise.
26138         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26139         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26140         * lib/unictype/pr_other_id_start.h: Likewise.
26141         * lib/unictype/pr_other_lowercase.h: Likewise.
26142         * lib/unictype/pr_other_uppercase.h: Likewise.
26143         * lib/unictype/pr_paired_punctuation.h: Likewise.
26144         * lib/unictype/pr_paragraph_separator.h: Likewise.
26145         * lib/unictype/pr_pattern_syntax.h: Likewise.
26146         * lib/unictype/pr_pattern_white_space.h: Likewise.
26147         * lib/unictype/pr_private_use.h: Likewise.
26148         * lib/unictype/pr_quotation_mark.h: Likewise.
26149         * lib/unictype/pr_radical.h: Likewise.
26150         * lib/unictype/pr_soft_dotted.h: Likewise.
26151         * lib/unictype/pr_space.h: Likewise.
26152         * lib/unictype/pr_titlecase.h: Likewise.
26153         * lib/unictype/pr_variation_selector.h: Likewise.
26154         * lib/unictype/pr_white_space.h: Likewise.
26155         * lib/unictype/pr_zero_width.h: Likewise.
26156         * lib/unictype/sy_c_ident.h: Likewise.
26157         * lib/unictype/sy_c_whitespace.h: Likewise.
26158         * lib/unictype/sy_java_whitespace.h: Likewise.
26159         * lib/uninorm/composition-table.gperf: Likewise.
26160         * lib/uninorm/decomposition-table1.h: Likewise.
26161         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26162         LB8.
26163         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26164         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26165         * modules/unictype/*: Bump version number of expected libunistring
26166         version.
26167
26168 2011-01-09  Bruno Haible  <bruno@clisp.org>
26169
26170         Update to Unicode 5.2.0.
26171         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26172         trailing whitespace removed.
26173
26174 2011-01-09  Bruno Haible  <bruno@clisp.org>
26175
26176         New Unicode character properties, from Unicode 5.2.0.
26177         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26178         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26179         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26180         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26181         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26182         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26183         uc_is_property_cased, uc_is_property_case_ignorable,
26184         uc_is_property_changes_when_lowercased,
26185         uc_is_property_changes_when_uppercased,
26186         uc_is_property_changes_when_titlecased,
26187         uc_is_property_changes_when_casefolded,
26188         uc_is_property_changes_when_casemapped): New declarations.
26189         * lib/unictype/pr_byname.gperf: Add the new properties.
26190         * modules/unictype/property-byname (Depends-on): Depend on the new
26191         properties modules.
26192         * modules/unictype/property-all (Depends-on): Likewise.
26193         * MODULES.html.sh (Unicode string functions): Add
26194         unictype/property-case-ignorable, unictype/property-cased,
26195         unictype/property-changes-when-casefolded,
26196         unictype/property-changes-when-casemapped,
26197         unictype/property-changes-when-lowercased,
26198         unictype/property-changes-when-titlecased,
26199         unictype/property-changes-when-uppercased.
26200
26201         New module 'unictype/property-changes-when-casemapped'.
26202         * modules/unictype/property-changes-when-casemapped: New file.
26203         * lib/unictype/pr_changes_when_casemapped.c: New file.
26204         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26205         generated by gen-uni-tables.
26206         * modules/unictype/property-changes-when-casemapped-tests: New file.
26207         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26208         automatically generated by gen-uni-tables.
26209
26210         New module 'unictype/property-changes-when-casefolded'.
26211         * modules/unictype/property-changes-when-casefolded: New file.
26212         * lib/unictype/pr_changes_when_casefolded.c: New file.
26213         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26214         generated by gen-uni-tables.
26215         * modules/unictype/property-changes-when-casefolded-tests: New file.
26216         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26217         automatically generated by gen-uni-tables.
26218
26219         New module 'unictype/property-changes-when-titlecased'.
26220         * modules/unictype/property-changes-when-titlecased: New file.
26221         * lib/unictype/pr_changes_when_titlecased.c: New file.
26222         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26223         generated by gen-uni-tables.
26224         * modules/unictype/property-changes-when-titlecased-tests: New file.
26225         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26226         automatically generated by gen-uni-tables.
26227
26228         New module 'unictype/property-changes-when-uppercased'.
26229         * modules/unictype/property-changes-when-uppercased: New file.
26230         * lib/unictype/pr_changes_when_uppercased.c: New file.
26231         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26232         generated by gen-uni-tables.
26233         * modules/unictype/property-changes-when-uppercased-tests: New file.
26234         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26235         automatically generated by gen-uni-tables.
26236
26237         New module 'unictype/property-changes-when-lowercased'.
26238         * modules/unictype/property-changes-when-lowercased: New file.
26239         * lib/unictype/pr_changes_when_lowercased.c: New file.
26240         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26241         generated by gen-uni-tables.
26242         * modules/unictype/property-changes-when-lowercased-tests: New file.
26243         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26244         automatically generated by gen-uni-tables.
26245
26246         New module 'unictype/property-case-ignorable'.
26247         * modules/unictype/property-case-ignorable: New file.
26248         * lib/unictype/pr_case_ignorable.c: New file.
26249         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26250         by gen-uni-tables.
26251         * modules/unictype/property-case-ignorable-tests: New file.
26252         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26253         generated by gen-uni-tables.
26254
26255         New module 'unictype/property-cased'.
26256         * modules/unictype/property-cased: New file.
26257         * lib/unictype/pr_cased.c: New file.
26258         * lib/unictype/pr_cased.h: New file, automatically generated by
26259         gen-uni-tables.
26260         * modules/unictype/property-cased-tests: New file.
26261         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26262         gen-uni-tables.
26263
26264 2011-01-09  Bruno Haible  <bruno@clisp.org>
26265
26266         Update to Unicode 5.2.0.
26267         * lib/gen-uni-tables.c (output_predicate, output_category,
26268         output_combclass, output_bidi_category, output_decimal_digit_test,
26269         output_decimal_digit, output_digit_test, output_digit,
26270         output_numeric_test, output_numeric, output_mirror, output_scripts,
26271         output_scripts_byname, output_blocks, output_ident_category): Fix
26272         comment header.
26273         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26274         get_wbp.
26275         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26276         items.
26277         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26278         Changes_When_Lowercased, Changes_When_Uppercased,
26279         Changes_When_Titlecased, Changes_When_Casefolded,
26280         Changes_When_Casemapped.
26281         (is_property_alphabetic, is_property_default_ignorable_code_point):
26282         Update for Unicode 5.2.0.
26283         (is_property_cased, is_property_case_ignorable,
26284         is_property_changes_when_lowercased,
26285         is_property_changes_when_uppercased,
26286         is_property_changes_when_titlecased,
26287         is_property_changes_when_casefolded,
26288         is_property_changes_when_casemapped): New functions.
26289         (output_properties): Output also the properties cased, case_ignorable,
26290         changes_when_lowercased, changes_when_uppercased,
26291         changes_when_titlecased, changes_when_casefolded,
26292         changes_when_casemapped.
26293         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26294         Unicode TR#11 revision 17 -> 19.
26295         (LBP_CP): New enumeration value.
26296         (LBP_*): Adjust values accordingly.
26297         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26298         TR#14 revision 22 -> 24.
26299         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26300         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26301         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26302         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26303         is_WBP_MIDLETTER.
26304         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26305         the code1 and code2 of each composition rule.
26306         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26307         * lib/unicase/ignorable.h: Likewise.
26308         * lib/unicase/tocasefold.h: Likewise.
26309         * lib/unicase/tolower.h: Likewise.
26310         * lib/unicase/totitle.h: Likewise.
26311         * lib/unicase/toupper.h: Likewise.
26312         * lib/unictype/bidi_of.h: Likewise.
26313         * lib/unictype/blocks.h: Likewise.
26314         * lib/unictype/categ_C.h: Likewise.
26315         * lib/unictype/categ_Cf.h: Likewise.
26316         * lib/unictype/categ_Cn.h: Likewise.
26317         * lib/unictype/categ_L.h: Likewise.
26318         * lib/unictype/categ_Ll.h: Likewise.
26319         * lib/unictype/categ_Lm.h: Likewise.
26320         * lib/unictype/categ_Lo.h: Likewise.
26321         * lib/unictype/categ_Lu.h: Likewise.
26322         * lib/unictype/categ_M.h: Likewise.
26323         * lib/unictype/categ_Mc.h: Likewise.
26324         * lib/unictype/categ_Mn.h: Likewise.
26325         * lib/unictype/categ_N.h: Likewise.
26326         * lib/unictype/categ_Nd.h: Likewise.
26327         * lib/unictype/categ_Nl.h: Likewise.
26328         * lib/unictype/categ_No.h: Likewise.
26329         * lib/unictype/categ_P.h: Likewise.
26330         * lib/unictype/categ_Pd.h: Likewise.
26331         * lib/unictype/categ_Po.h: Likewise.
26332         * lib/unictype/categ_S.h: Likewise.
26333         * lib/unictype/categ_Sc.h: Likewise.
26334         * lib/unictype/categ_So.h: Likewise.
26335         * lib/unictype/categ_of.h: Likewise.
26336         * lib/unictype/combining.h: Likewise.
26337         * lib/unictype/ctype_alnum.h: Likewise.
26338         * lib/unictype/ctype_alpha.h: Likewise.
26339         * lib/unictype/ctype_graph.h: Likewise.
26340         * lib/unictype/ctype_lower.h: Likewise.
26341         * lib/unictype/ctype_print.h: Likewise.
26342         * lib/unictype/ctype_punct.h: Likewise.
26343         * lib/unictype/ctype_upper.h: Likewise.
26344         * lib/unictype/decdigit.h: Likewise.
26345         * lib/unictype/digit.h: Likewise.
26346         * lib/unictype/numeric.h: Likewise.
26347         * lib/unictype/pr_alphabetic.h: Likewise.
26348         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26349         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26350         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26351         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26352         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26353         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26354         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26355         * lib/unictype/pr_combining.h: Likewise.
26356         * lib/unictype/pr_composite.h: Likewise.
26357         * lib/unictype/pr_currency_symbol.h: Likewise.
26358         * lib/unictype/pr_dash.h: Likewise.
26359         * lib/unictype/pr_decimal_digit.h: Likewise.
26360         * lib/unictype/pr_deprecated.h: Likewise.
26361         * lib/unictype/pr_diacritic.h: Likewise.
26362         * lib/unictype/pr_extender.h: Likewise.
26363         * lib/unictype/pr_grapheme_base.h: Likewise.
26364         * lib/unictype/pr_grapheme_extend.h: Likewise.
26365         * lib/unictype/pr_grapheme_link.h: Likewise.
26366         * lib/unictype/pr_id_continue.h: Likewise.
26367         * lib/unictype/pr_id_start.h: Likewise.
26368         * lib/unictype/pr_ideographic.h: Likewise.
26369         * lib/unictype/pr_ignorable_control.h: Likewise.
26370         * lib/unictype/pr_logical_order_exception.h: Likewise.
26371         * lib/unictype/pr_lowercase.h: Likewise.
26372         * lib/unictype/pr_numeric.h: Likewise.
26373         * lib/unictype/pr_other_alphabetic.h: Likewise.
26374         * lib/unictype/pr_punctuation.h: Likewise.
26375         * lib/unictype/pr_sentence_terminal.h: Likewise.
26376         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26377         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26378         * lib/unictype/pr_unified_ideograph.h: Likewise.
26379         * lib/unictype/pr_uppercase.h: Likewise.
26380         * lib/unictype/pr_xid_continue.h: Likewise.
26381         * lib/unictype/pr_xid_start.h: Likewise.
26382         * lib/unictype/pr_zero_width.h: Likewise.
26383         * lib/unictype/scripts.h: Likewise.
26384         * lib/unictype/scripts_byname.gperf: Likewise.
26385         * lib/unictype/sy_java_ident.h: Likewise.
26386         * lib/unigbrk/gbrkprop.h: Likewise.
26387         * lib/unilbrk/lbrkprop1.h: Likewise.
26388         * lib/unilbrk/lbrkprop2.h: Likewise.
26389         * lib/unilbrk/lbrktables.h: Likewise.
26390         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26391         LBP_CP. Implement rule LB30.
26392         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26393         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26394         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26395         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26396         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26397         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26398         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26399         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26400         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26401         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26402         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26403         bits instead of 16 bits in the code1 and code2 of each composition
26404         rule.
26405         (uc_composition): Update for Unicode 5.2.0.
26406         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26407         * lib/uninorm/decomposition-table2.h: Likewise.
26408         * lib/uniwbrk/wbrkprop.h: Likewise.
26409         * tests/unicase/test-cased.c: Likewise.
26410         * tests/unicase/test-ignorable.c: Likewise.
26411         * tests/unicase/test-uc_tolower.c: Likewise.
26412         * tests/unicase/test-uc_totitle.c: Likewise.
26413         * tests/unicase/test-uc_toupper.c: Likewise.
26414         * tests/unictype/test-categ_C.c: Likewise.
26415         * tests/unictype/test-categ_Cf.c: Likewise.
26416         * tests/unictype/test-categ_Cn.c: Likewise.
26417         * tests/unictype/test-categ_L.c: Likewise.
26418         * tests/unictype/test-categ_Ll.c: Likewise.
26419         * tests/unictype/test-categ_Lm.c: Likewise.
26420         * tests/unictype/test-categ_Lo.c: Likewise.
26421         * tests/unictype/test-categ_Lu.c: Likewise.
26422         * tests/unictype/test-categ_M.c: Likewise.
26423         * tests/unictype/test-categ_Mc.c: Likewise.
26424         * tests/unictype/test-categ_Mn.c: Likewise.
26425         * tests/unictype/test-categ_N.c: Likewise.
26426         * tests/unictype/test-categ_Nd.c: Likewise.
26427         * tests/unictype/test-categ_Nl.c: Likewise.
26428         * tests/unictype/test-categ_No.c: Likewise.
26429         * tests/unictype/test-categ_P.c: Likewise.
26430         * tests/unictype/test-categ_Pd.c: Likewise.
26431         * tests/unictype/test-categ_Po.c: Likewise.
26432         * tests/unictype/test-categ_S.c: Likewise.
26433         * tests/unictype/test-categ_Sc.c: Likewise.
26434         * tests/unictype/test-categ_So.c: Likewise.
26435         * tests/unictype/test-ctype_alnum.c: Likewise.
26436         * tests/unictype/test-ctype_alpha.c: Likewise.
26437         * tests/unictype/test-ctype_graph.c: Likewise.
26438         * tests/unictype/test-ctype_lower.c: Likewise.
26439         * tests/unictype/test-ctype_print.c: Likewise.
26440         * tests/unictype/test-ctype_punct.c: Likewise.
26441         * tests/unictype/test-ctype_upper.c: Likewise.
26442         * tests/unictype/test-decdigit.h: Likewise.
26443         * tests/unictype/test-digit.h: Likewise.
26444         * tests/unictype/test-numeric.h: Likewise.
26445         * tests/unictype/test-pr_alphabetic.c: Likewise.
26446         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26447         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26448         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26449         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26450         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26451         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26452         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26453         * tests/unictype/test-pr_combining.c: Likewise.
26454         * tests/unictype/test-pr_composite.c: Likewise.
26455         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26456         * tests/unictype/test-pr_dash.c: Likewise.
26457         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26458         * tests/unictype/test-pr_deprecated.c: Likewise.
26459         * tests/unictype/test-pr_diacritic.c: Likewise.
26460         * tests/unictype/test-pr_extender.c: Likewise.
26461         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26462         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26463         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26464         * tests/unictype/test-pr_id_continue.c: Likewise.
26465         * tests/unictype/test-pr_id_start.c: Likewise.
26466         * tests/unictype/test-pr_ideographic.c: Likewise.
26467         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26468         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26469         * tests/unictype/test-pr_lowercase.c: Likewise.
26470         * tests/unictype/test-pr_numeric.c: Likewise.
26471         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26472         * tests/unictype/test-pr_punctuation.c: Likewise.
26473         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26474         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26475         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26476         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26477         * tests/unictype/test-pr_uppercase.c: Likewise.
26478         * tests/unictype/test-pr_xid_continue.c: Likewise.
26479         * tests/unictype/test-pr_xid_start.c: Likewise.
26480         * tests/unictype/test-pr_zero_width.c: Likewise.
26481         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26482         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26483         changed behaviour: line breaking is now disallowed between a letter
26484         or '=' and '('.
26485         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26486         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26487         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26488         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26489         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26490         lib/uniwidth/width.c.
26491         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26492         without comments, but with the original copyright notice.
26493         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26494         changes.
26495         * lib/unictype/categ_Cc.h: Likewise.
26496         * lib/unictype/categ_Co.h: Likewise.
26497         * lib/unictype/categ_Cs.h: Likewise.
26498         * lib/unictype/categ_Lt.h: Likewise.
26499         * lib/unictype/categ_Me.h: Likewise.
26500         * lib/unictype/categ_Pc.h: Likewise.
26501         * lib/unictype/categ_Pe.h: Likewise.
26502         * lib/unictype/categ_Pf.h: Likewise.
26503         * lib/unictype/categ_Pi.h: Likewise.
26504         * lib/unictype/categ_Ps.h: Likewise.
26505         * lib/unictype/categ_Sk.h: Likewise.
26506         * lib/unictype/categ_Sm.h: Likewise.
26507         * lib/unictype/categ_Z.h: Likewise.
26508         * lib/unictype/categ_Zl.h: Likewise.
26509         * lib/unictype/categ_Zp.h: Likewise.
26510         * lib/unictype/categ_Zs.h: Likewise.
26511         * lib/unictype/ctype_blank.h: Likewise.
26512         * lib/unictype/ctype_cntrl.h: Likewise.
26513         * lib/unictype/ctype_digit.h: Likewise.
26514         * lib/unictype/ctype_space.h: Likewise.
26515         * lib/unictype/ctype_xdigit.h: Likewise.
26516         * lib/unictype/mirror.h: Likewise.
26517         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26518         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26519         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26520         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26521         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26522         * lib/unictype/pr_bidi_control.h: Likewise.
26523         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26524         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26525         * lib/unictype/pr_bidi_pdf.h: Likewise.
26526         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26527         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26528         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26529         * lib/unictype/pr_format_control.h: Likewise.
26530         * lib/unictype/pr_hex_digit.h: Likewise.
26531         * lib/unictype/pr_hyphen.h: Likewise.
26532         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26533         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26534         * lib/unictype/pr_iso_control.h: Likewise.
26535         * lib/unictype/pr_join_control.h: Likewise.
26536         * lib/unictype/pr_left_of_pair.h: Likewise.
26537         * lib/unictype/pr_line_separator.h: Likewise.
26538         * lib/unictype/pr_math.h: Likewise.
26539         * lib/unictype/pr_non_break.h: Likewise.
26540         * lib/unictype/pr_not_a_character.h: Likewise.
26541         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26542         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26543         * lib/unictype/pr_other_id_continue.h: Likewise.
26544         * lib/unictype/pr_other_id_start.h: Likewise.
26545         * lib/unictype/pr_other_lowercase.h: Likewise.
26546         * lib/unictype/pr_other_math.h: Likewise.
26547         * lib/unictype/pr_other_uppercase.h: Likewise.
26548         * lib/unictype/pr_paired_punctuation.h: Likewise.
26549         * lib/unictype/pr_paragraph_separator.h: Likewise.
26550         * lib/unictype/pr_pattern_syntax.h: Likewise.
26551         * lib/unictype/pr_pattern_white_space.h: Likewise.
26552         * lib/unictype/pr_private_use.h: Likewise.
26553         * lib/unictype/pr_quotation_mark.h: Likewise.
26554         * lib/unictype/pr_radical.h: Likewise.
26555         * lib/unictype/pr_soft_dotted.h: Likewise.
26556         * lib/unictype/pr_space.h: Likewise.
26557         * lib/unictype/pr_titlecase.h: Likewise.
26558         * lib/unictype/pr_variation_selector.h: Likewise.
26559         * lib/unictype/pr_white_space.h: Likewise.
26560         * lib/unictype/sy_c_ident.h: Likewise.
26561         * lib/unictype/sy_c_whitespace.h: Likewise.
26562         * lib/unictype/sy_java_whitespace.h: Likewise.
26563         * modules/uni*/*: Bump version number of expected libunistring version.
26564         Reported by Simon Josefsson.
26565
26566 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26567
26568         useless-if-before-free: fix typo in --help and make the internal,
26569         automatic version date update process work once again.
26570         --help output contained a NUL character instead of the
26571         backslash-zero that was intended.  Also, the "must lie within
26572         the first 8 lines" line is on line 9, and hence not getting
26573         automatically updated.
26574         * build-aux/useless-if-before-free: Fix the former by adding a
26575         backslash, and the latter by condensing the three lines of what-it-does
26576         to a single line, leaving one line of slack for the future.
26577
26578 2011-01-09  Bruno Haible  <bruno@clisp.org>
26579
26580         uniwidth/width: Fix width of U+1D173..U+1D17A.
26581         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26582         symbolic_width, output_width_property_test): New functions.
26583         (main): Invoke output_nonspacing_property, output_width_property_test.
26584         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26585         U+1D173..U+1D17A.
26586         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26587         1.
26588         * modules/uniwidth/*: Bump version number of expected libunistring
26589         version.
26590         * modules/unilbrk/*: Likewise.
26591
26592 2011-01-08  Bruno Haible  <bruno@clisp.org>
26593
26594         uninorm tests: Preserve copyright of Unicode data file.
26595         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26596         Mention modifications.
26597
26598 2011-01-08  Bruno Haible  <bruno@clisp.org>
26599
26600         gen-uni-tables: Prepare for Unicode 5.2.0.
26601         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26602         (debug_output_lbp, output_lbp): Update.
26603
26604 2011-01-08  Bruno Haible  <bruno@clisp.org>
26605
26606         unilbrk: Clarify gen-uni-tables.c code.
26607         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26608         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26609         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26610
26611 2011-01-07  Bruno Haible  <bruno@clisp.org>
26612
26613         strtod: Restore errno when successfully parsing Infinity or NaN.
26614         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26615         restore the original errno.
26616
26617 2011-01-07  Bruno Haible  <bruno@clisp.org>
26618
26619         remove test: Avoid failure on HP-UX 11.
26620         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26621
26622 2011-01-07  Bruno Haible  <bruno@clisp.org>
26623
26624         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26625         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26626         error code.
26627
26628 2011-01-07  Pádraig Brady <P@draigBrady.com>
26629
26630         ignore-value: fixup comments, and add Eric Blake
26631         as an author since he rewrote the macros.
26632         * lib/ignore-value.h (ignore_value):  State that
26633         we now support aggregates.  Also specify exactly
26634         when the GCC warn_unused_result feature was added.
26635
26636 2011-01-06  Eric Blake  <eblake@redhat.com>
26637
26638         ignore-value: support aggregate types
26639         * lib/ignore-value.h (ignore_value): Provide separate gcc
26640         definition.
26641         * modules/ignore-value-tests: New test module.
26642         * tests/test-ignore-value.c: New test.
26643
26644         maint.mk: improve sc_prohibit_strcmp regex
26645         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26646         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26647         definition of STRNEQ.
26648
26649         signal: work around Haiku issue with SIGBUS
26650         * lib/siglist.h: Add comment.
26651         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26652         strsignal's favoring of SIGSEGV.
26653         * tests/test-signal.c (main): Avoid test failure.
26654         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26655         Reported by Scott McCreary.
26656
26657         maint.mk: add pre-release check to ensure submodule commits are public
26658         * top/maint.mk (public-submodule-commit): New rule.
26659         (submodule-checks): New variable.
26660         (alpha beta stable): Depend on the variable.
26661
26662 2011-01-05  Pádraig Brady <P@draigBrady.com>
26663         and Jim Meyering  <meyering@redhat.com>
26664
26665         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26666         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26667         (ATTRIBUTE_DEPRECATED): Define.
26668         (_ignore_case): New function.
26669         (ignore_value): New macro, to replace the old function.
26670         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26671         * modules/ignore-value (Depends-on): Add stdint.
26672
26673 2011-01-04  Eric Blake  <eblake@redhat.com>
26674
26675         doc: regenerate INSTALL
26676         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26677         @firstparagraphindent support, now that autoconf dropped it.
26678         (INSTALL_PRELUDE): Reinstate old macro.
26679         * doc/install.texi: Resync from autoconf.
26680         * doc/INSTALL: Reflect recent autoconf update.
26681         * doc/INSTALL.ISO: Likewise.
26682         * doc/INSTALL.UTF-8: Likewise.
26683         Reported by Karl Berry.
26684
26685 2011-01-04  Bruce Korb  <address@hidden>
26686
26687         git-version-gen: avoid a sub-shell
26688         * build-aux/git-version-gen: Redirect stderr in `...` via
26689         "exec 2>...", rather than via an added sub-shell.
26690
26691 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26692
26693         git-version-gen: use (...) rather than sh -c '...'
26694         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26695         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26696
26697 2011-01-03  Jim Meyering  <meyering@redhat.com>
26698
26699         git-version-gen: convert leading TABs to spaces
26700         * build-aux/git-version-gen: Expand leading TABs.
26701
26702         git-version-gen: handle failed "git rev-list"
26703         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26704         from git and proceeding as if it had succeeded but printed no SHA1
26705         checksums, suppress the diagnostic and handle the failure.
26706         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26707
26708         git-version-gen: include command name in one more diagnostic
26709         * build-aux/git-version-gen: When the required .tarball-version file
26710         was missing or unreadable, you might see the diagnostic from "cat",
26711         but no trace of the name of the invoking script.  Now, you still see
26712         the diagnostic from cat, but also get one from "git-version-gen: ".
26713         Inspired by a patch from Bruce Korb.
26714
26715         update-copyright: adjust test to match changed code
26716         * tests/test-update-copyright.sh: Change test's expected output
26717         to match new actual output.
26718
26719 2011-01-02  Bruno Haible  <bruno@clisp.org>
26720
26721         getlogin_r: Avoid test failure on HP-UX 11.
26722         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26723         ERANGE when the second argument is zero.
26724         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26725         portability problem.
26726
26727 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26728
26729         * build-aux/update-copyright: doc Simon's changes
26730
26731 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26732
26733         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26734         environment variable.
26735
26736 2011-01-02  Bruno Haible  <bruno@clisp.org>
26737
26738         unigbrk: Avoid gcc warnings.
26739         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26740         unused variable.
26741         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26742         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26743         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26744         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26745         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26746         Change type of first argument to 'const char *'.
26747         (main): Remove unused variable.
26748         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26749         type of first argument to 'const char *'.
26750         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26751         Likewise.
26752         (main): Change type of variable 's'.
26753         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26754         to 'int'.
26755
26756 2011-01-02  Bruno Haible  <bruno@clisp.org>
26757
26758         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26759         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26760         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26761         bug.
26762         * lib/pwrite.c: Undo 2010-12-31 patch.
26763         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26764
26765 2011-01-02  Bruno Haible  <bruno@clisp.org>
26766
26767         pread: Fix test whether it works.
26768         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26769
26770 2011-01-02  Bruno Haible  <bruno@clisp.org>
26771
26772         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26773         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26774         ends in "6". Don't require a specific month name. Try also the locale
26775         names found on HP-UX 11 and Solaris 7.
26776
26777 2011-01-02  Bruno Haible  <bruno@clisp.org>
26778
26779         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26780         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26781         C linkage.
26782         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26783
26784 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26785
26786         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26787         for consistency, since the "cluster" term is not used elsewhere.
26788         * lib/unigbrk.in.h: Update name.
26789         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26790         * lib/unigbrk/u16-grapheme-next.c: Update name.
26791         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26792         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26793         * lib/unigbrk/u32-grapheme-next.c: Update name.
26794         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26795         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26796         * lib/unigbrk/u8-grapheme-next.c: Update name.
26797         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26798         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26799         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26800         Suggested by Bruno Haible.
26801
26802 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26803
26804         Remove module 'u8-grapheme-len' as too redundant with
26805         'u8-grapheme-next'.
26806         * modules/unigbrk/u8-grapheme-len: Delete file.
26807         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26808         * lib/unigbrk.in.h: Remove prototype for deleted function.
26809         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26810         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26811
26812         Remove module 'u16-grapheme-len' as too redundant with
26813         'u16-grapheme-next'.
26814         * modules/unigbrk/u16-grapheme-len: Delete file.
26815         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26816         * lib/unigbrk.in.h: Remove prototype for deleted function.
26817         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26818         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26819
26820         Remove module 'u32-grapheme-len' as too redundant with
26821         'u32-grapheme-next'.
26822         * modules/unigbrk/u32-grapheme-len: Delete file.
26823         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26824         * lib/unigbrk.in.h: Remove prototype for deleted function.
26825         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26826         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26827
26828         Suggested by Bruno Haible.
26829
26830 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26831
26832         * unigbrk.in.h: Fix typo: "ben" => "been".
26833         Reported by Bruno Haible.
26834
26835 2011-01-01  Jim Meyering  <meyering@redhat.com>
26836
26837         maint: update almost all copyright ranges to include 2011
26838         Run the new "make update-copyright" rule.
26839
26840 2011-01-01  Jim Meyering  <meyering@redhat.com>
26841
26842         maint: update-copyright: exempt doc/INSTALL*
26843         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26844         since they are generated.  Suggested by Bruno Haible.
26845
26846 2011-01-01  Jim Meyering  <meyering@redhat.com>
26847
26848         maint: refine the update-copyright rule
26849         * Makefile (update-copyright): Also exclude any file that includes
26850         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26851         code that merely generates the comment.
26852
26853 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26854
26855         New module 'u8-grapheme-len'.
26856         * modules/unigbrk/u8-grapheme-len: New file.
26857         * modules/unigbrk/u8-grapheme-len-tests: New file.
26858         * lib/unigbrk.in.h: Add prototype for new function.
26859         * lib/unigbrk/u8-grapheme-len.c: New file.
26860         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26861
26862         New module 'u16-grapheme-len'.
26863         * modules/unigbrk/u16-grapheme-len: New file.
26864         * modules/unigbrk/u16-grapheme-len-tests: New file.
26865         * lib/unigbrk.in.h: Add prototype for new function.
26866         * lib/unigbrk/u16-grapheme-len.c: New file.
26867         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26868
26869         New module 'u32-grapheme-len'.
26870         * modules/unigbrk/u32-grapheme-len: New file.
26871         * modules/unigbrk/u32-grapheme-len-tests: New file.
26872         * lib/unigbrk.in.h: Add prototype for new function.
26873         * lib/unigbrk/u32-grapheme-len.c: New file.
26874         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26875
26876         New module 'u8-grapheme-next'.
26877         * modules/unigbrk/u8-grapheme-next: New file.
26878         * modules/unigbrk/u8-grapheme-next-tests: New file.
26879         * lib/unigbrk.in.h: Add prototype for new function.
26880         * lib/unigbrk/u8-grapheme-next.c: New file.
26881         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26882
26883         New module 'u16-grapheme-next'.
26884         * modules/unigbrk/u16-grapheme-next: New file.
26885         * modules/unigbrk/u16-grapheme-next-tests: New file.
26886         * lib/unigbrk.in.h: Add prototype for new function.
26887         * lib/unigbrk/u16-grapheme-next.c: New file.
26888         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26889
26890         New module 'u32-grapheme-next'.
26891         * modules/unigbrk/u32-grapheme-next: New file.
26892         * modules/unigbrk/u32-grapheme-next-tests: New file.
26893         * lib/unigbrk.in.h: Add prototype for new function.
26894         * lib/unigbrk/u32-grapheme-next.c: New file.
26895         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26896
26897         New module 'u8-grapheme-prev'.
26898         * modules/unigbrk/u8-grapheme-prev: New file.
26899         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26900         * lib/unigbrk.in.h: Add prototype for new function.
26901         * lib/unigbrk/u8-grapheme-prev.c: New file.
26902         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26903
26904         New module 'u16-grapheme-prev'.
26905         * modules/unigbrk/u16-grapheme-prev: New file.
26906         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26907         * lib/unigbrk.in.h: Add prototype for new function.
26908         * lib/unigbrk/u16-grapheme-prev.c: New file.
26909         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26910
26911         New module 'u32-grapheme-prev'.
26912         * modules/unigbrk/u32-grapheme-prev: New file.
26913         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26914         * lib/unigbrk.in.h: Add prototype for new function.
26915         * lib/unigbrk/u32-grapheme-prev.c: New file.
26916         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26917
26918         New module 'u8-grapheme-breaks'.
26919         * modules/unigbrk/u8-grapheme-breaks: New file.
26920         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26921         * lib/unigbrk.in.h: Add prototype for new function.
26922         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26923         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26924
26925         New module 'u16-grapheme-breaks'.
26926         * modules/unigbrk/u16-grapheme-breaks: New file.
26927         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26928         * lib/unigbrk.in.h: Add prototype for new function.
26929         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26930         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26931
26932         New module 'u32-grapheme-breaks'.
26933         * modules/unigbrk/u32-grapheme-breaks: New file.
26934         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26935         * lib/unigbrk.in.h: Add prototype for new function.
26936         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26937         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26938
26939         New module 'ulc-grapheme-breaks'.
26940         * modules/unigbrk/ulc-grapheme-breaks: New file.
26941         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26942         * m4/locale-ar.m4: New file.
26943         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26944         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26945         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26946
26947 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26948
26949         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26950         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26951         modified how this file was generated before I initially submitted
26952         the module, but failed to regenerate it.  This meant that several
26953         of the level2 entries were wrong.
26954         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26955         Remove the division-by-2 that is folded into the table now that
26956         gbrkprop.h has been regenerated properly.  Now -1 entries are
26957         handled correctly.
26958
26959         New module 'unigbrk/uc-gbrk-prop-tests'.
26960         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26961         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26962         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26963         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26964
26965 2011-01-01  Bruno Haible  <bruno@clisp.org>
26966
26967         Avoid use of hexadecimal escapes.
26968         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26969         instead of hexadecimal escapes.
26970
26971 2011-01-01  Jim Meyering  <meyering@redhat.com>
26972
26973         maint: new rule to update copyright year ranges
26974         * Makefile (update-copyright): New rule.
26975
26976         maint: indent with TABs in Makefile
26977         * Makefile: Expand leading sequences of spaces to TABs
26978
26979         version-etc: update the copyright year it reports
26980         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26981
26982 2010-12-31  Bruno Haible  <bruno@clisp.org>
26983
26984         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26985         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26986         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26987         zero.
26988
26989 2010-12-31  Bruno Haible  <bruno@clisp.org>
26990
26991         pwrite: Work around HP-UX 11.11 bug.
26992         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26993         works and set REPLACE_PWRITE if not.
26994         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26995         function.
26996         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26997
26998 2010-12-31  Bruno Haible  <bruno@clisp.org>
26999
27000         pread: Work around HP-UX 11 bugs.
27001         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27002         and set REPLACE_PREAD if not.
27003         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27004
27005 2010-12-31  Eric Blake  <eblake@redhat.com>
27006
27007         nl_langinfo: fix YESEXPR on Irix 6.5
27008         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27009         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27010         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27011         it.
27012
27013 2010-12-31  Bruno Haible  <bruno@clisp.org>
27014
27015         iconv: Document HP-UX 11 bug.
27016         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27017
27018 2010-12-31  Bruno Haible  <bruno@clisp.org>
27019
27020         ldexpl: Fix link error on HP-UX 11.
27021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27022         LDEXPL_LIBM, using $ISNANL_LIBM.
27023
27024 2010-12-31  Eric Blake  <eblake@redhat.com>
27025
27026         ftello: avoid compilation failure with SunStudio c89
27027         * lib/ftello.c (ftello): Use lseek, not llseek.
27028
27029         tests: avoid failing coreutils tests on cygwin
27030         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27031         (create_exe_shims_): Return 0 when skipping.
27032
27033 2010-12-31  Bruno Haible  <bruno@clisp.org>
27034
27035         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27036         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27037
27038 2010-12-31  Bruno Haible  <bruno@clisp.org>
27039
27040         waitpid: Fix link error in C++ mode.
27041         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27042
27043 2010-12-31  Bruno Haible  <bruno@clisp.org>
27044
27045         isnan: Use GCC built-ins when possible.
27046         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27047         __builtin_isnan.
27048         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27049         (isnan): Define using GCC built-ins for GCC >= 4.0.
27050
27051 2010-12-31  Bruno Haible  <bruno@clisp.org>
27052
27053         isnand: Fix mistake.
27054         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27055         __builtin_isnand.
27056
27057 2010-12-31  Bruno Haible  <bruno@clisp.org>
27058
27059         open: Avoid C++ error on HP-UX 11.
27060         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27061
27062 2010-12-31  Bruno Haible  <bruno@clisp.org>
27063
27064         time_r: Add missing declarations on HP-UX 11.
27065         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27066         instead of HAVE_LOCALTIME_R.
27067         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27068         HAVE_LOCALTIME_R always.
27069         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27070         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27071         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27072         HAVE_LOCALTIME_R.
27073         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27074         * doc/posix-functions/localtime_r.texi: Likewise.
27075
27076 2010-12-29  Eric Blake  <eblake@redhat.com>
27077
27078         mountlist: tweak previous commit
27079         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27080         Reported by Paul Eggert.
27081
27082         mountlist: fix local drive detection on cygwin
27083         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27084         that works for cygwin.
27085
27086 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27087
27088         ftoastr, snprintf: ftoastr + snprintf module
27089         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27090         since the snprintf module now should be good enough here.
27091         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27092         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27093         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27094         GNULIB_SNPRINTF only for the test directory, and the latter
27095         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27096         seems to suffice by itself.
27097
27098 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27099
27100         alloca: one step towards thread-safety
27101         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27102         need for a static variable.  All callers changed.  This does not
27103         make the alloca replacement thread-safe, but it's one step.
27104
27105         tests: minor indenting change
27106         * tests/init.sh: Sync from coreutils housekeeping patch
27107         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27108         to keep lines within 80 columns.
27109
27110 2010-12-28  Jim Meyering  <meyering@redhat.com>
27111
27112         regex: don't infloop on persistent failing calloc
27113         * lib/regexec.c (build_trtable): Return failure indication upon
27114         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27115         In glibc, this was fixed for version 2.13:
27116         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27117
27118 2010-12-28  Bruno Haible  <bruno@clisp.org>
27119             Paul Eggert <eggert@cs.ucla.edu>
27120
27121         linkat: Make implementation robust against system behaviour variations.
27122         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27123         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27124         way, and to -2 if it needs a generic runtime test.
27125         * lib/linkat.c (solaris_optimized_link_immediate,
27126         solaris_optimized_link_follow): New functions.
27127         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27128         (check_same_link): Use it.
27129
27130 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27131
27132         New module 'unigbrk/base'.
27133         * modules/unigbrk/base: New file.
27134         * lib/unigbrk.in.h: New file.
27135
27136         New module 'unigbrk/uc-gbrk-prop'.
27137         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27138         * modules/unigbrk/uc-gbrk-prop: New file.
27139         * lib/unigbrk/gbrkprop.h: New file.
27140         * lib/unigbrk/uc-gbrk-prop.c: New file.
27141
27142         New module 'unigbrk/uc-is-grapheme-break'.
27143         * modules/unigbrk/uc-is-grapheme-break: New file.
27144         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27145         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27146         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27147         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27148         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27149
27150         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27151
27152 2010-12-27  Bruno Haible  <bruno@clisp.org>
27153
27154         linkat test: Avoid failure on Solaris 11 2010-11.
27155         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27156
27157 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27158
27159         utimens: work around glibc rounding bug on more platforms
27160         * lib/utimens.c (fdutimens): Work around rounding bug even if
27161         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27162         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27163
27164 2010-12-27  Bruno Haible  <bruno@clisp.org>
27165
27166         select tests: Improve comments.
27167         * tests/test-select.c (do_select): Add comments.
27168
27169 2010-12-27  Bruno Haible  <bruno@clisp.org>
27170
27171         select tests: Safer way of handling timeout.
27172         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27173         at every invocation.
27174
27175 2010-12-27  Bruno Haible  <bruno@clisp.org>
27176
27177         select tests: Use 'bool' where appropriate.
27178         * tests/test-select.c (connect_to_socket): Change argument type to
27179         'bool'.
27180
27181 2010-12-27  Bruno Haible  <bruno@clisp.org>
27182
27183         select tests: Use existing modules.
27184         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27185         (configure.ac): Don't test for unistd.h.
27186         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27187         declared in <unistd.h>.
27188
27189 2010-12-27  Bruno Haible  <bruno@clisp.org>
27190
27191         mbrtowc: Work around a Solaris 7 bug.
27192         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27193         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27194         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27195         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27196         MBRTOWC_NULL_ARG1_BUG.
27197         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27198         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27199         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27200         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27201
27202 2010-12-27  Jim Meyering  <meyering@redhat.com>
27203
27204         read-file.c: tweak syntax
27205         * lib/read-file.c (fread_file): Remove space after "*" in function
27206         definitions.
27207
27208 2010-12-27  Bruno Haible  <bruno@clisp.org>
27209
27210         times test: Avoid gcc warnings on OSF/1.
27211         * tests/test-times.c (main): Cast printf arguments from clock_t to
27212         'long int'.
27213
27214 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27215
27216         utimens: work around glibc rounding bug on older Linux kernels
27217         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27218         on Linux with a glibc whose utimes might not work, then work
27219         around a longstanding glibc bug involving rounding rather than
27220         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27222
27223 2010-12-26  Bruno Haible  <bruno@clisp.org>
27224
27225         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27226         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27227         _GL_CXXALIAS_SYS.
27228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27229
27230 2010-12-26  Bruno Haible  <bruno@clisp.org>
27231
27232         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27233         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27235         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27236         looking for the declaration.
27237         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27238         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27239         problem.
27240         * doc/posix-functions/inet_pton.texi: Likewise.
27241
27242 2010-12-26  Bruno Haible  <bruno@clisp.org>
27243
27244         arpa_inet: Use the common idioms with C++ support.
27245         * lib/arpa_inet.in.h: Include c++defs.h.
27246         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27247         support.
27248         * modules/arpa_inet (Depends-on): Add c++defs.
27249         (Makefile.am): Substitute the contents of c++defs.h.
27250         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27251         * modules/arpa_inet-c++-tests: New file.
27252         * tests/test-arpa_inet-c++.cc: New file.
27253
27254 2010-12-25  Bruno Haible  <bruno@clisp.org>
27255
27256         Fix more C++ link errors on Solaris 8.
27257         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27258         $(LIB_EACCESS).
27259         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27260         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27261         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27262         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27263         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27264
27265 2010-12-25  Bruno Haible  <bruno@clisp.org>
27266
27267         printf-posix: Fix link error when a non-GCC compiler is used.
27268         * lib/stdio.in.h (printf): When not using GCC, override printf
27269         correctly.
27270         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27271
27272 2010-12-25  Bruno Haible  <bruno@clisp.org>
27273
27274         strerror_r-posix: Update doc.
27275         * doc/posix-functions/strerror_r.texi: Update doc about the return
27276         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27277
27278 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27279
27280         utimens: simplify the logic of the previous change
27281         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27282         This should not affect whether the test succeeds or fails.
27283
27284         utimens: configure better on hosts with NFS clock skew
27285         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27286         uses the clock of the local host.  It might use the clock of the
27287         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27289
27290 2010-12-25  Bruno Haible  <bruno@clisp.org>
27291
27292         ptsname test: Avoid failure on Solaris.
27293         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27294         open a pseudo-terminal; don't use BSD-style ptys.
27295         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27296
27297 2010-12-25  Bruno Haible  <bruno@clisp.org>
27298
27299         ptsname: Avoid ERANGE failure on some systems.
27300         * lib/ptsname.c (buffer): Increase size.
27301
27302 2010-12-25  Bruno Haible  <bruno@clisp.org>
27303
27304         rename, renameat: Avoid test failures at NFS mounted locations.
27305         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27306         so that subsequent mkdir calls succeed.
27307
27308 2010-12-25  Bruno Haible  <bruno@clisp.org>
27309
27310         iswblank: Fix C++ link error on Solaris 8.
27311         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27312         _GL_FUNCDECL_SYS.
27313
27314 2010-12-25  Bruno Haible  <bruno@clisp.org>
27315
27316         unistd: Fix C++ link error on Solaris 8.
27317         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27318
27319 2010-12-25  Bruno Haible  <bruno@clisp.org>
27320
27321         readlink doc: Mention an old glibc bug.
27322         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27323
27324 2010-12-25  Bruno Haible  <bruno@clisp.org>
27325
27326         fcntl-h: Fix for use of C++ on glibc systems.
27327         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27328         also on glibc systems in C++ mode.
27329         Reported by Gary V. Vaughan <gary@gnu.org>.
27330
27331 2010-12-25  Bruno Haible  <bruno@clisp.org>
27332
27333         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27334         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27335
27336 2010-12-25  Bruno Haible  <bruno@clisp.org>
27337
27338         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27339         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27340         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27341         test whether truncl works according to ISO C 99 with IEC 60559.
27342         * m4/truncl-ieee.m4: New file.
27343         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27344         m4/signbit.m4.
27345         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27346
27347 2010-12-25  Bruno Haible  <bruno@clisp.org>
27348
27349         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27350         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27351         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27352         test whether ceill works according to ISO C 99 with IEC 60559.
27353         * m4/ceill-ieee.m4: New file.
27354         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27355         m4/signbit.m4.
27356         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27357
27358 2010-12-25  Bruno Haible  <bruno@clisp.org>
27359
27360         Ensure all prerequisites of <wchar.h> are included.
27361         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27362         before <wchar.h>.
27363         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27364         gl_MBRLEN_NUL_RETVAL): Likewise.
27365         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27366         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27367         AC_FUNC_MBRTOWC): Likewise.
27368         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27369         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27370         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27371         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27372         Likewise.
27373         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27374         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27375         (gl_WCHAR_H): Improve comments.
27376         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27377
27378 2010-12-25  Bruno Haible  <bruno@clisp.org>
27379
27380         strtok_r: Fix C syntax error in autoconf macro.
27381         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27382         characters in test program.
27383
27384 2010-12-24  Bruno Haible  <bruno@clisp.org>
27385
27386         ceil, trunc, round: Fix gcc warnings.
27387         * lib/ceil.c (MIN): Undefine before redefining.
27388         * lib/trunc.c (MIN): Likewise.
27389         * lib/round.c (MIN): Likewise.
27390         Include <math.h> first.
27391
27392 2010-12-24  Bruno Haible  <bruno@clisp.org>
27393
27394         select tests: Avoid failures on OSF/1 5.1.
27395         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27396         failure of closing the last socket; it may fail with ECONNRESET.
27397
27398 2010-12-24  Eric Blake  <eblake@redhat.com>
27399
27400         stdint: avoid HP-UX 10.20 preprocessor bug
27401         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27402         than #if.
27403         * tests/test-floor2.c (main): Likewise.
27404         Reported by Peter O'Gorman.
27405
27406         pipe: make obsoletion transition easier
27407         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27408         * modules/pipe (Files): Include revived file.
27409         (Include): Drop reference, to mirror getdate's behavior.
27410
27411 2010-12-24  Bruno Haible  <bruno@clisp.org>
27412
27413         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27414         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27415         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27417
27418 2010-12-24  Bruno Haible  <bruno@clisp.org>
27419
27420         gethostname: Ensure declaration on NonStop Kernel.
27421         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27422         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27423
27424 2010-12-24  Bruno Haible  <bruno@clisp.org>
27425
27426         sys_select: Ensure all necessary types on NonStop Kernel.
27427         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27428         include <sys/time.h>.
27429         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27430         NonStop Kernel.
27431         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27432
27433 2010-12-24  Bruno Haible  <bruno@clisp.org>
27434
27435         sys_select: Remove unneeded include.
27436         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27437         have <sys/select.h>.
27438
27439 2010-12-24  Bruno Haible  <bruno@clisp.org>
27440
27441         gethostname: Provide a fallback for HOST_NAME_MAX.
27442         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27443         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27444         instead.
27445         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27446
27447 2010-12-24  Bruno Haible  <bruno@clisp.org>
27448
27449         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27450         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27451         (SA_RESTART): Likewise.
27452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27453
27454 2010-12-24  Bruno Haible  <bruno@clisp.org>
27455
27456         signal: Define NSIG.
27457         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27458         * tests/test-signal.c (nsig): New variable.
27459         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27460
27461 2010-12-24  Bruno Haible  <bruno@clisp.org>
27462
27463         rename, renameat: Avoid test failures on OSF/1 5.1.
27464         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27465         alternative error codes.
27466         * tests/test-renameat.c (main): Likewise.
27467
27468 2010-12-24  Bruno Haible  <bruno@clisp.org>
27469
27470         *printf: Detect large precisions bug on Solaris 10/SPARC.
27471         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27472         by Paul Eggert.
27473         * tests/test-snprintf-posix.h (test_function): Add this test code here
27474         too.
27475         * tests/test-sprintf-posix.h (test_function): Likewise.
27476         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27477         * tests/test-vasprintf-posix.c (test_function): Likewise.
27478         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27479         around by gnulib.
27480         * doc/posix-functions/printf.texi: Likewise.
27481         * doc/posix-functions/snprintf.texi: Likewise.
27482         * doc/posix-functions/sprintf.texi: Likewise.
27483         * doc/posix-functions/vfprintf.texi: Likewise.
27484         * doc/posix-functions/vprintf.texi: Likewise.
27485         * doc/posix-functions/vsnprintf.texi: Likewise.
27486         * doc/posix-functions/vsprintf.texi: Likewise.
27487         * doc/posix-functions/dprintf.texi: Undo last commit.
27488         * doc/posix-functions/vdprintf.texi: Likewise.
27489
27490 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27491
27492         tests: port test-fdutimensat.c to Solaris 8
27493         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27494         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27495         On Solaris 8, it fails with errno == ENOSYS, because there is no
27496         futimens (so it can't use the fd), and there is no lutimens (so it
27497         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27498
27499         vsnprintf: make more consistent with snprintf; doc fixes
27500
27501         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27502         the byte count return problem was promoted from the snprintf-posix
27503         to the snprintf module.
27504         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27505         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27506         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27507         * tests/test-snprintf.c (main): Check the byte count returned.
27508         * tests/test-vsnprintf.c (main): Likewise.
27509
27510 2010-12-23  Eric Blake  <eblake@redhat.com>
27511
27512         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27513         * modules/sigpipe (License): Relax license.
27514
27515 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27516
27517         doc: document Solaris printf bug with large float precisions
27518         * doc/posix-functions/dprintf.texi (dprintf):
27519         * doc/posix-functions/fprintf.texi (fprintf):
27520         * doc/posix-functions/printf.texi (printf):
27521         * doc/posix-functions/snprintf.texi (snprintf):
27522         * doc/posix-functions/sprintf.texi (sprintf):
27523         * doc/posix-functions/vdprintf.texi (vdprintf):
27524         * doc/posix-functions/vfprintf.texi (vfprintf):
27525         * doc/posix-functions/vprintf.texi (vprintf):
27526         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27527         * doc/posix-functions/vsprintf.texi (vsprintf):
27528         Mention that these functions mishandle large floating point
27529         precisions on Solaris 10.  The same bug is also present in Solaris
27530         8, and I assume earlier.  This causes "cd gnulib-tests; make
27531         check" to fail on Solaris 8 (and I assume, later) when building
27532         the latest coreutils, in test-vasprintf-posix's call to
27533         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27534         the wide flavors (e.g., wprintf) so this patch just updates the
27535         documentation for the narrow ones.
27536
27537         test-posixtm.c: add two tests
27538         * tests/test-posixtm.c: Add two tests, to highlight the
27539         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27540         around this bug; this is merely to document it.
27541
27542 2010-12-22  Bruno Haible  <bruno@clisp.org>
27543
27544         getlogin_r: Work around portability problem on OSF/1.
27545         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27546         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27547         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27548         test for a truncated result.
27549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27550         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27551         * modules/getlogin_r (Depends-on): Add memchr.
27552         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27553
27554 2010-12-22  Bruno Haible  <bruno@clisp.org>
27555
27556         ptsname: Avoid test failure on OSF/1 5.1.
27557         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27558         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27559         (same_slave): New function.
27560         (main): Use it to compare ptsname's result with the expected file name.
27561
27562 2010-12-22  Bruno Haible  <bruno@clisp.org>
27563
27564         Port extended stdio modules to HP NonStop Kernel.
27565         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27566         macros.
27567         * lib/fbufmode.c: Update comments.
27568         * lib/fflush.c: Likewise.
27569         * lib/fpurge.c: Likewise.
27570         * lib/freadable.c: Likewise.
27571         * lib/freadahead.c: Likewise.
27572         * lib/freading.c: Likewise.
27573         * lib/freadptr.c: Likewise.
27574         * lib/freadseek.c: Likewise.
27575         * lib/fseeko.c: Likewise.
27576         * lib/fseterr.c: Likewise.
27577         * lib/fwritable.c: Likewise.
27578         * lib/fwriting.c: Likewise.
27579         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27580
27581 2010-12-22  Bruno Haible  <bruno@clisp.org>
27582
27583         ttyname_r: Work around bug on OSF/1 5.1.
27584         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27585         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27586         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27587         present.
27588         * lib/ttyname_r.c (ttyname_r): Update comments.
27589
27590 2010-12-22  Bruno Haible  <bruno@clisp.org>
27591
27592         round: Implement result sign according to IEEE 754.
27593         * lib/round.c (MIN, MINUS_ZERO): New macros.
27594         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27595         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27596         * tests/test-round-ieee.c (main): Likewise.
27597         * tests/test-roundl-ieee.c (main): Likewise.
27598
27599         trunc: Implement result sign according to IEEE 754.
27600         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27601         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27602         * tests/test-trunc2.c: Include minus-zero.h.
27603         (MINUS_ZERO): New macro.
27604         (trunc_reference): Keep in sync with lib/trunc.c.
27605         * tests/test-truncf2.c: Include minus-zero.h.
27606         (MINUS_ZERO): New macro.
27607         (truncf_reference): Keep in sync with lib/trunc.c.
27608         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27609         * tests/test-trunc-ieee.c (main): Likewise.
27610         * tests/test-truncl-ieee.c (main): Likewise.
27611
27612         ceil: Implement result sign according to IEEE 754.
27613         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27614         (FUNC): Return -0.0 for -1 < x < 0.
27615         * tests/test-ceil2.c: Include minus-zero.h.
27616         (MINUS_ZERO): New macro.
27617         (ceil_reference): Keep in sync with lib/ceil.c.
27618         * tests/test-ceilf2.c: Include minus-zero.h.
27619         (MINUS_ZERO): New macro.
27620         (ceilf_reference): Keep in sync with lib/ceil.c.
27621         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27622         * tests/test-ceil-ieee.c (main): Likewise.
27623         * tests/test-ceill-ieee.c (main): Likewise.
27624
27625         floor: Implement result sign according to IEEE 754.
27626         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27627         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27628         * tests/test-floorf2.c (floorf_reference): Likewise.
27629         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27630         * tests/test-floor-ieee.c (main): Likewise.
27631         * tests/test-floorl-ieee.c (main): Likewise.
27632
27633 2010-12-22  Bruno Haible  <bruno@clisp.org>
27634
27635         getaddrinfo: Update doc.
27636         * doc/posix-functions/gai_strerror.texi: Return type is also different
27637         on AIX and HP-UX.
27638
27639 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27640
27641         getaddrinfo, inet_ntop: Update doc for Solaris.
27642         * doc/posix-functions/gai_strerror.texi: Return type is also an
27643         issue on Solaris 9 and earlier.
27644         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27645         on Solaris 10 and earlier.
27646
27647 2010-12-21  Bruno Haible  <bruno@clisp.org>
27648
27649         New module 'roundl-ieee'.
27650         * modules/roundl-ieee: New file.
27651         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27652         test whether roundl works according to ISO C 99 with IEC 60559.
27653         * m4/roundl-ieee.m4: New file.
27654         * modules/roundl-ieee-tests: New file.
27655         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27656         * tests/test-roundl.c (main): Remove signbit tests.
27657         * modules/roundl-tests (Depends-on): Remove signbit.
27658         * doc/posix-functions/roundl.texi: Mention the new module.
27659
27660 2010-12-21  Bruno Haible  <bruno@clisp.org>
27661
27662         New module 'truncl-ieee'.
27663         * modules/truncl-ieee: New file.
27664         * modules/truncl-ieee-tests: New file.
27665         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27666         * tests/test-truncl.c (main): Remove signbit tests.
27667         * modules/truncl-tests (Depends-on): Remove signbit.
27668         * doc/posix-functions/truncl.texi: Mention the new module.
27669
27670 2010-12-21  Bruno Haible  <bruno@clisp.org>
27671
27672         New module 'ceill-ieee'.
27673         * modules/ceill-ieee: New file.
27674         * modules/ceill-ieee-tests: New file.
27675         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27676         * tests/test-ceill.c (main): Remove signbit tests.
27677         * modules/ceill-tests (Depends-on): Remove signbit.
27678         * doc/posix-functions/ceill.texi: Mention the new module.
27679
27680 2010-12-21  Bruno Haible  <bruno@clisp.org>
27681
27682         New module 'floorl-ieee'.
27683         * modules/floorl-ieee: New file.
27684         * modules/floorl-ieee-tests: New file.
27685         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27686         * tests/test-floorl.c (main): Remove signbit tests.
27687         * modules/floorl-tests (Depends-on): Remove signbit.
27688         * doc/posix-functions/floorl.texi: Mention the new module.
27689
27690 2010-12-21  Bruno Haible  <bruno@clisp.org>
27691
27692         New module 'round-ieee'.
27693         * modules/round-ieee: New file.
27694         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27695         whether round works according to ISO C 99 with IEC 60559.
27696         * m4/round-ieee.m4: New file.
27697         * modules/round-ieee-tests: New file.
27698         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27699         * tests/test-round1.c (main): Remove signbit tests.
27700         * modules/round-tests (Depends-on): Remove 'signbit'.
27701         * doc/posix-functions/round.texi: Mention the new module.
27702
27703 2010-12-21  Bruno Haible  <bruno@clisp.org>
27704
27705         New module 'trunc-ieee'.
27706         * modules/trunc-ieee: New file.
27707         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27708         whether trunc works according to ISO C 99 with IEC 60559.
27709         * m4/trunc-ieee.m4: New file.
27710         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27712         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27713         * modules/trunc-ieee-tests: New file.
27714         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27715         * tests/test-trunc1.c (main): Remove signbit tests.
27716         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27717         * doc/posix-functions/trunc.texi: Mention the new module.
27718
27719 2010-12-21  Bruno Haible  <bruno@clisp.org>
27720
27721         New module 'ceil-ieee'.
27722         * modules/ceil-ieee: New file.
27723         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27724         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27725         ISO C 99 with IEC 60559.
27726         * m4/ceil-ieee.m4: New file.
27727         * modules/ceil (Files): Add lib/ceil.c.
27728         (Depends-on): Add 'float'.
27729         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27730         * lib/math.in.h (ceil): New declaration.
27731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27732         REPLACE_CEIL.
27733         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27734         * modules/ceil-ieee-tests: New file.
27735         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27736         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27737         * doc/posix-functions/ceil.texi: Mention the new module.
27738
27739 2010-12-21  Bruno Haible  <bruno@clisp.org>
27740
27741         New module 'floor-ieee'.
27742         * modules/floor-ieee: New file.
27743         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27744         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27745         ISO C 99 with IEC 60559.
27746         * m4/floor-ieee.m4: New file.
27747         * modules/floor (Files): Add lib/floor.c.
27748         (Depends-on): Add 'float'.
27749         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27750         * lib/math.in.h (floor): New declaration.
27751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27752         REPLACE_FLOOR.
27753         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27754         * modules/floor-ieee-tests: New file.
27755         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27756         * tests/test-math-c++.cc: Check the signature of 'floor'.
27757         * doc/posix-functions/floor.texi: Mention the new module.
27758
27759 2010-12-21  Bruno Haible  <bruno@clisp.org>
27760
27761         New module 'roundf-ieee'.
27762         * modules/roundf-ieee: New file.
27763         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27764         test whether roundf works according to ISO C 99 with IEC 60559.
27765         * m4/roundf-ieee.m4: New file.
27766         * modules/roundf-ieee-tests: New file.
27767         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27768         * tests/test-roundf1.c (main): Remove signbit tests.
27769         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27770         * doc/posix-functions/roundf.texi: Mention the new module.
27771
27772 2010-12-21  Bruno Haible  <bruno@clisp.org>
27773
27774         New module 'truncf-ieee'.
27775         * modules/truncf-ieee: New file.
27776         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27777         test whether truncf works according to ISO C 99 with IEC 60559.
27778         * m4/truncf-ieee.m4: New file.
27779         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27781         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27782         * modules/truncf-ieee-tests: New file.
27783         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27784         * tests/test-truncf1.c (main): Remove signbit tests.
27785         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27786         * doc/posix-functions/truncf.texi: Mention the new module.
27787
27788 2010-12-21  Bruno Haible  <bruno@clisp.org>
27789
27790         New module 'ceilf-ieee'.
27791         * modules/ceilf-ieee: New file.
27792         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27793         test whether ceilf works according to ISO C 99 with IEC 60559.
27794         * m4/ceilf-ieee.m4: New file.
27795         * modules/ceilf-ieee-tests: New file.
27796         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27797         * tests/test-ceilf1.c (main): Remove signbit tests.
27798         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27799         * doc/posix-functions/ceilf.texi: Mention the new module.
27800
27801 2010-12-21  Bruno Haible  <bruno@clisp.org>
27802
27803         New module 'floorf-ieee'.
27804         * modules/floorf-ieee: New file.
27805         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27806         test whether floorf works according to ISO C 99 with IEC 60559.
27807         * m4/floorf-ieee.m4: New file.
27808         * modules/floorf-ieee-tests: New file.
27809         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27810         * tests/test-floorf1.c (main): Remove signbit tests.
27811         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27812         * doc/posix-functions/floorf.texi: Mention the new module.
27813
27814 2010-12-21  Bruno Haible  <bruno@clisp.org>
27815
27816         Support for minus zero in autoconf macros.
27817         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27818         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27819         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27820         * tests/minus-zero.h: Update comments.
27821
27822 2010-12-21  Bruno Haible  <bruno@clisp.org>
27823
27824         Tests for module 'ceil'.
27825         * modules/ceil-tests: New file.
27826         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27827         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27828
27829 2010-12-21  Bruno Haible  <bruno@clisp.org>
27830
27831         Tests for module 'floor'.
27832         * modules/floor-tests: New file.
27833         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27834         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27835
27836 2010-12-21  Bruno Haible  <bruno@clisp.org>
27837
27838         math: Fix indentation.
27839         * lib/math.in.h (floorf): Fix indentation.
27840
27841 2010-12-21  Bruno Haible  <bruno@clisp.org>
27842
27843         Fix cross-compilation guesses on Solaris.
27844         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27845         not match "solaris2.10".
27846         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27847         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27848         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27849
27850 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27851
27852         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27853         This fixes a problem observed with the latest coreutils snapshot
27854         that caused a test to fail on Solaris 8.  src/csplit.c's call
27855         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27856         earlier, instead of returning the number of bytes that would have
27857         been generated; this causes csplit to incorrectly report memory
27858         exhaustion.
27859         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27860         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27861         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27862         comments to match.
27863         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27864         Fix typo in matching older versions of Solaris: "solaris2.10"
27865         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27866         only for guessing while cross-compiling.
27867         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27868
27869 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27870
27871         ftoastr: fix comment again
27872         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27874         Also, simplify example a bit by using flags = 0.
27875
27876 2010-12-20  Bruno Haible  <bruno@clisp.org>
27877
27878         round*, trunc*: Update documentation regarding glibc.
27879         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27880         * doc/posix-functions/round.texi: Likewise.
27881         * doc/posix-functions/roundl.texi: Likewise.
27882         * doc/posix-functions/truncf.texi: Likewise.
27883         * doc/posix-functions/trunc.texi: Likewise.
27884         * doc/posix-functions/truncl.texi: Likewise.
27885
27886 2010-12-20  Bruno Haible  <bruno@clisp.org>
27887
27888         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27889         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27890         * doc/posix-functions/round.texi: Likewise.
27891         * doc/posix-functions/roundl.texi: Likewise.
27892
27893 2010-12-20  Bruno Haible  <bruno@clisp.org>
27894
27895         ttyname_r: Add missing declaration on HP-UX 11.
27896         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27897         HAVE_TTYNAME_R.
27898         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27899         declared. Set HAVE_TTYNAME_R always.
27900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27901         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27902         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27903         HAVE_TTYNAME_R.
27904         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27905
27906 2010-12-20  Bruno Haible  <bruno@clisp.org>
27907
27908         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27909         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27910         * doc/posix-functions/getlogin_r.texi: Likewise.
27911         * tests/test-getlogin.c: Include <errno.h>.
27912         (main): Avoid test failure on HP-UX 11.11.
27913         * tests/test-getlogin_r.c (main): Likewise.
27914
27915 2010-12-20  Bruno Haible  <bruno@clisp.org>
27916
27917         getlogin_r: Add missing declaration on HP-UX 11.
27918         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27919         declared also when it exists as a function.
27920         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27921
27922 2010-12-20  Bruno Haible  <bruno@clisp.org>
27923
27924         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27925         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27926         through wcrtomb.
27927
27928 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27929
27930         ftoastr: fix comment
27931         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27933
27934 2010-12-19  Bruno Haible  <bruno@clisp.org>
27935
27936         isnan: Ensure it is a macro.
27937         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27938         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27939         Solaris.
27940
27941 2010-12-19  Bruno Haible  <bruno@clisp.org>
27942
27943         ldexpl test: Fix link error on OSF/1 5.1.
27944         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27945
27946 2010-12-19  Bruno Haible  <bruno@clisp.org>
27947
27948         wctype: Make it work in C++ mode on OSF/1 5.1.
27949         * lib/wctype.in.h (iswblank): Declare but not define here.
27950         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27951         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27952         * modules/wctype (Files): Add lib/iswblank.c.
27953
27954 2010-12-19  Bruno Haible  <bruno@clisp.org>
27955
27956         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27957         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27958         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27959
27960 2010-12-19  Bruno Haible  <bruno@clisp.org>
27961
27962         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27964         _POSIX_PII_SOCKET.
27965         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27966         * doc/posix-functions/recvfrom.texi: Likewise.
27967         * doc/posix-functions/send.texi: Likewise.
27968         * doc/posix-functions/sendto.texi: Likewise.
27969
27970 2010-12-19  Bruno Haible  <bruno@clisp.org>
27971
27972         tcgetsid: Add missing declaration on OSF/1 5.1.
27973         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27974         HAVE_TCGETSID.
27975         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27976         Don't set HAVE_TCGETSID.
27977         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27978         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27979         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27980         HAVE_TCGETSID.
27981         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27982
27983 2010-12-19  Bruno Haible  <bruno@clisp.org>
27984
27985         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27986         * lib/stdio.in.h: During the include_next statement, let recursive
27987         includes of this file include only the system header file.
27988
27989 2010-12-19  Bruno Haible  <bruno@clisp.org>
27990
27991         iconv_open: Fix regression from 2010-12-04.
27992         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27993         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27994
27995 2010-12-19  Bruno Haible  <bruno@clisp.org>
27996
27997         stdbool test: Avoid a gcc warning.
27998         * tests/test-stdbool.c (main): Fail if e1 is false.
27999         Reported by Jim Meyering.
28000
28001 2010-12-19  Jim Meyering  <meyering@redhat.com>
28002
28003         setenv: restore to working order
28004         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28005         mistakenly removed.
28006         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28007         HAVE_SETENV.
28008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28009         HAVE_SETENV.
28010
28011 2010-12-19  Bruno Haible  <bruno@clisp.org>
28012
28013         Document some different function declarations on OSF/1 5.1.
28014         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28015         * doc/posix-functions/inet_ntop.texi: Likewise.
28016         * doc/posix-functions/gethostname.texi: Likewise.
28017         * lib/unistd.in.h (gethostname): Update comment.
28018
28019 2010-12-19  Bruno Haible  <bruno@clisp.org>
28020
28021         doc: Mention vasprintf-posix module.
28022         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28023         the 'vasprintf-posix' module.
28024         * doc/glibc-functions/vasprintf.texi: Likewise.
28025
28026 2010-12-19  Bruno Haible  <bruno@clisp.org>
28027
28028         unsetenv: Add missing declaration on OSF/1 5.1.
28029         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28030         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28031         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28033         not HAVE_UNSETENV.
28034         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28035         HAVE_UNSETENV.
28036         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28037
28038 2010-12-19  Bruno Haible  <bruno@clisp.org>
28039
28040         setenv: Add missing declaration on OSF/1 5.1.
28041         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28042         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28043         declared. Don't set HAVE_SETENV.
28044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28045         not HAVE_SETENV.
28046         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28047         HAVE_SETENV.
28048         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28049
28050 2010-12-19  Bruno Haible  <bruno@clisp.org>
28051
28052         nl_langinfo tests: Avoid gcc warning.
28053         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28054
28055 2010-12-19  Bruno Haible  <bruno@clisp.org>
28056
28057         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28058         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28059         _GL_CXXALIAS_SYS.
28060
28061 2010-12-19  Bruno Haible  <bruno@clisp.org>
28062
28063         stdbool: Relax test.
28064         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28065         address to 'bool' work in static initializer, for compilers other than
28066         GCC.
28067
28068 2010-12-19  Bruno Haible  <bruno@clisp.org>
28069
28070         ftello: Add missing declaration on OSF/1 5.1.
28071         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28072         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28074         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28075         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28076
28077 2010-12-19  Bruno Haible  <bruno@clisp.org>
28078
28079         fseeko: Add missing declaration on OSF/1 5.1.
28080         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28083         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28084         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28085
28086 2010-12-19  Bruno Haible  <bruno@clisp.org>
28087
28088         fchdir: Add missing declaration on OSF/1 5.1.
28089         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28092         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28093         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28094
28095 2010-12-19  Bruno Haible  <bruno@clisp.org>
28096
28097         relocatable-prog-wrapper: Separate from relocatable-prog.
28098         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28099         uninstall-relocwrapper rule here.
28100         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28101         Reported by Ian Beckwith <ianb@erislabs.net>.
28102
28103 2010-12-19  Bruno Haible  <bruno@clisp.org>
28104
28105         unistr/u8-mbsnlen: Add missing dependency.
28106         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28107         Reported by Ian Beckwith <ianb@erislabs.net>.
28108
28109 2010-12-19  Bruno Haible  <bruno@clisp.org>
28110
28111         iconv: Make it possible again to use this module without 'iconv-h'.
28112         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28113         if it is not defined.
28114         Reported by Ian Beckwith <ianb@erislabs.net>.
28115
28116 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         acl: port to Solaris 8 when copying from tmpfs to ufs
28119         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28120         error number.  Problem observed on Solaris 8 with latest
28121         coreutils, with "mv A B", where A is on a tmpfs file system and B
28122         is on a ufs file system.  This caused coreutils' mv/part-symlink
28123         test to fail.
28124
28125         tests: set fail=0 at start
28126         * tests/init.sh (setup_): Move fail=0 initialization here ...
28127         (mktempd_): ... from here, so that tests can rely on fail being
28128         set to 0 initially.  This fixes a problem in coreutils; see:
28129         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28130
28131 2010-12-18  Bruno Haible  <bruno@clisp.org>
28132
28133         memmem-simple: Stylistic changes.
28134         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28135         Fix preprocessor directive indentation.
28136
28137 2010-12-15  Pádraig Brady <P@draigBrady.com>
28138
28139         memmem, memmem-simple: reorganize and expand empty needle check
28140         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28141         functional checks to memmem-simple so that one has a fully functional
28142         memmem by using just this module.
28143         Restrict the performance only check to the memmem module.
28144         Also expand the empty needle check to ensure the correct
28145         pointer is returned, not just a non NULL pointer.
28146         * doc/glibc-functions/memmem.texi: Rearrange the portability
28147         documentation to correlate with the rearranged checks.
28148         Clarify exactly how the memmem and memmem-simple modules
28149         relate to each other.
28150
28151 2010-12-15  Pádraig Brady <P@draigBrady.com>
28152             Bruno Haible  <bruno@clisp.org>
28153
28154         Improve cross-compilation guesses for uClibc.
28155         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28156         that uClibc does not have the glibc bug.
28157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28158         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28159
28160 2010-12-14  Eric Blake  <eblake@redhat.com>
28161
28162         configmake: provide fallbacks for oldest supported autotools
28163         * m4/configmake.m4: New file.
28164         * modules/configmake (Files): Ship it.
28165         (configure.ac): Use it to guarantee fallbacks.
28166
28167 2010-12-13  Pádraig Brady <P@draigBrady.com>
28168
28169         read-file: Improve handling of large files
28170         * lib/read-file.c (fread_file): Minimize realloc()s
28171         for regular files, and better manage sizes around SIZE_MAX.
28172
28173 2010-12-13  Eric Blake  <eblake@redhat.com>
28174
28175         cloexec, fcntl: relax license
28176         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28177         consent from all contributors.
28178         * modules/fcntl (License): Likewise.
28179
28180 2010-12-10  Bruno Haible  <bruno@clisp.org>
28181
28182         Tests for module 'pipe-posix'.
28183         * modules/pipe-posix-tests: New file.
28184         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28185
28186 2010-12-10  Bruno Haible  <bruno@clisp.org>
28187
28188         pipe-posix: Make it work in C++ mode.
28189         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28190         (pipe): Use common idiom, not a macro definition.
28191         * lib/pipe.c: New file.
28192         * m4/pipe.m4: New file.
28193         * modules/pipe-posix (Description): Enhance.
28194         (Files): Add lib/pipe.c, m4/pipe.m4.
28195         (configure.ac): Invoke gl_FUNC_PIPE.
28196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28197         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28198         * tests/test-unistd-c++.cc: Check the signature of pipe.
28199
28200 2010-12-10  Bruno Haible  <bruno@clisp.org>
28201
28202         Rename module 'pipe' to 'spawn-pipe'.
28203         * modules/spawn-pipe: New file, renamed from modules/pipe.
28204         (Files, configure.ac, Makefile.am): Update.
28205         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28206         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28207         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28208         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28209         "spawn-pipe.h" instead of "pipe.h".
28210         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28211         to gl_SPAWN_PIPE.
28212         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28213         (Files, Makefile.am): Update.
28214         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28215         Update.
28216         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28217         Include "spawn-pipe.h" instead of "pipe.h".
28218         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28219         * lib/javacomp.c: Likewise.
28220         * lib/javaversion.c: Likewise.
28221         * lib/pipe-filter-gi.c: Likewise.
28222         * lib/pipe-filter-ii.c: Likewise.
28223         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28224         * modules/javacomp (Depends-on): Likewise.
28225         * modules/javaversion (Depends-on): Likewise.
28226         * modules/pipe-filter-gi (Depends-on): Likewise.
28227         * modules/pipe-filter-ii (Depends-on): Likewise.
28228         * MODULES.html.sh (Executing programs): Update.
28229         * NEWS: Mention the change.
28230
28231 2010-12-10  Eric Blake  <eblake@redhat.com>
28232
28233         pipe-posix: new module
28234         * modules/pipe-posix: New file.
28235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28236         (gl_UNISTD_H): Check for declaration.
28237         * modules/unistd (Makefile.am): Substitute it.
28238         * lib/unistd.in.h (pipe): Provide it for mingw.
28239         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28240         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28241
28242 2010-12-07  Bruno Haible  <bruno@clisp.org>
28243
28244         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28245         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28246         u8_strcmp_gnu.
28247         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28248
28249 2010-12-06  Bruno Haible  <bruno@clisp.org>
28250
28251         Update internal documentation.
28252         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28253
28254 2010-12-04  Bruno Haible  <bruno@clisp.org>
28255
28256         Put more information about failed tests into the test return codes.
28257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28258         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28260         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28261         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28263         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28264         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28265         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28268         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28269         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28270         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28272         returns a bit mask.
28273         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28274         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28275         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28276         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28277         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28281         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28282         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28283         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28284         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28285         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28287         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28288         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28289         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28290         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28292         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28293         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28294         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28296         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28297         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28298         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28299         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28300         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28301         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28302         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28303         gl_PRINTF_PRECISION): Likewise.
28304         * m4/regex.m4 (gl_REGEX): Likewise.
28305         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28306         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28308         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28312         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28313         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28314         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28315         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28316         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28317         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28318         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28319         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28320         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28321         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28322         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28325         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28326         enumerated value.
28327         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28328
28329 2010-12-04  Bruno Haible  <bruno@clisp.org>
28330
28331         Update for Solaris 11 2010-11.
28332         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28333         Express, released in November 2010.
28334
28335 2010-12-04  Bruno Haible  <bruno@clisp.org>
28336
28337         nproc: Relax license.
28338         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28339         and Paul Eggert.
28340         Requested by Ludovic Courtès <ludo@gnu.org>.
28341
28342 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28343
28344         utimecmp: fine-grained src to nearby coarse-grained dest
28345
28346         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28347         and the source is on a file system with higher-resolution time
28348         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28349         not work, and the time stamps are close together, the algorithm to
28350         determine the exact resolution from the read-back mtime was buggy:
28351         it had a "!=" where it should have had an "==".  This bug has been
28352         in the code ever since it was introduced to gnulib.
28353         Problem reported by Dan Jacobson in
28354         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28355
28356 2010-11-30  Bruno Haible  <bruno@clisp.org>
28357
28358         strerror_r-posix: Fix autoconf test.
28359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28360
28361 2010-11-28  Bruno Haible  <bruno@clisp.org>
28362             Paul Eggert  <eggert@cs.ucla.edu>
28363
28364         Tests for module 'getdomainname'.
28365         * modules/getdomainname-tests: New file.
28366         * tests/test-getdomainname.c: New file, based on
28367         tests/test-gethostname.c.
28368
28369 2010-11-28  Bruno Haible  <bruno@clisp.org>
28370             Paul Eggert  <eggert@cs.ucla.edu>
28371
28372         getdomainname: Use the system function when possible.
28373         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28374         (getdomainname): Replace if needed. Provide the declaration if it is
28375         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28376         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28377         (getdomainname): When the system has getdomainname, call the system
28378         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28379         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28380         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28381         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28382         the function if its second argument is of type 'int' or if it is found
28383         in libnsl.
28384         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28385         <sys/systeminfo.h> and sysinfo().
28386         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28388         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28389         HAVE_GETDOMAINNAME.
28390         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28391         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28392         * doc/glibc-functions/getdomainname.texi: Document the problems with
28393         the getdomainname declaration.
28394
28395 2010-11-28  Bruno Haible  <bruno@clisp.org>
28396
28397         sys_socket: Ensure ss_family field on AIX.
28398         * lib/sys_socket.in.h (ss_family): New macro definition.
28399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28400         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28401         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28402         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28403         * modules/sys_socket (Makefile.am): Substitute
28404         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28405         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28406
28407 2010-11-27  Bruno Haible  <bruno@clisp.org>
28408
28409         readline: Improve configure output.
28410         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28411         "checking for readline..." result understandable.
28412
28413 2010-11-27  Bruno Haible  <bruno@clisp.org>
28414
28415         *printf-posix: Detect a bug on Solaris 10/x86.
28416         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28417         for floating-point output.
28418         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28419         directive.
28420         * tests/test-snprintf-posix.h (test_function): Likewise.
28421         * tests/test-sprintf-posix.h (test_function): Likewise.
28422         * tests/test-vasprintf-posix.c (test_function): Likewise.
28423         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28424         * doc/posix-functions/printf.texi: Likewise.
28425         * doc/posix-functions/snprintf.texi: Likewise.
28426         * doc/posix-functions/sprintf.texi: Likewise.
28427         * doc/posix-functions/vfprintf.texi: Likewise.
28428         * doc/posix-functions/vprintf.texi: Likewise.
28429         * doc/posix-functions/vsnprintf.texi: Likewise.
28430         * doc/posix-functions/vsprintf.texi: Likewise.
28431         * doc/glibc-functions/obstack_printf.texi: Likewise.
28432         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28433
28434 2010-11-27  Bruno Haible  <bruno@clisp.org>
28435
28436         Fix link error when module libunistring-optional is in use.
28437         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28438         * modules/striconveha-tests (Makefile.am): Likewise.
28439
28440 2010-11-27  Bruno Haible  <bruno@clisp.org>
28441
28442         regex: Mention link dependencies.
28443         * modules/regex (Link): New section.
28444         * modules/rpmatch (Link): Likewise.
28445         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28446
28447 2010-11-27  Bruno Haible  <bruno@clisp.org>
28448
28449         ftoastr: Fix compilation error on Solaris.
28450         * lib/ftoastr.c: Include <config.h>.
28451
28452 2010-11-27  Bruno Haible  <bruno@clisp.org>
28453
28454         getloadavg: Update documentation.
28455         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28456
28457 2010-11-27  Bruno Haible  <bruno@clisp.org>
28458
28459         sys_socket: Fix test whether the functions are declared.
28460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28461         not <sys/select.h>.
28462
28463 2010-11-27  Bruno Haible  <bruno@clisp.org>
28464
28465         getpass: Make sure to get system declaration on some platforms.
28466         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28467         gl_USE_SYSTEM_EXTENSIONS.
28468         * modules/getpass (Depends-on): Add extensions.
28469
28470 2010-11-26  Bruno Haible  <bruno@clisp.org>
28471
28472         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28473         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28474         'iconv' module is present.
28475         (ICONV_CONST): New macro.
28476         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28477         ICONV_CONST.
28478         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28479         set ICONV_CONST.
28480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28481         here.
28482         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28483         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28484         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28485         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28486         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28487         present.
28488
28489 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28490
28491         ftoastr: comment fix
28492         * lib/ftoastr.c: "little" -> "little or no" in comment
28493
28494 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28495
28496         stdint: port to GCC 4.3 + OSX + Octave
28497         On this platform, stdint.h is buggy and defines int64_t to long
28498         long int.  The replacement defined it to long int, causing
28499         problems with C++ style name mangling.  Instead, trust the system
28500         definition if INT64_MAX is defined, and likewise for the unsigned
28501         variant.   Problem reported by Jarno Rajahalme in
28502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28503         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28504         and don't mess with int64_t and INT64_MAX in this case.
28505         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28506
28507 2010-11-24  Bruno Haible  <bruno@clisp.org>
28508
28509         doc: Corrections regarding MacOS X 10.4 and 10.5.
28510         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28511         MacOS X.
28512         Reported by Simon Josefsson.
28513
28514 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28515
28516         Uninstall ".bin" files installed by relocwrapper.
28517         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28518         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28519         unless it is already there.
28520
28521 2010-11-21  Bruno Haible  <bruno@clisp.org>
28522
28523         Update for NetBSD 5.0.
28524         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28525         NetBSD; the test fails on NetBSD 5.0.
28526         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28527         about NetBSD.
28528
28529 2010-11-21  Bruno Haible  <bruno@clisp.org>
28530
28531         Update for HP-UX 11.23 and HP-UX 11.31.
28532         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28533         HP-UX.
28534
28535 2010-11-21  Bruno Haible  <bruno@clisp.org>
28536
28537         Update for MacOS X 10.5.
28538         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28539         MacOS X; the test fails on MacOS X 10.5.8.
28540         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28541         about MacOS X.
28542
28543 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28544
28545         bootstrap: add bootstrap_sync option.
28546         See discussion at
28547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28549         * build-aux/bootstrap: Accept --bootstrap-sync to update
28550         bootstrap if it is not identical to the local gnulib's
28551         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28552         enable this by default.  Accept --no-bootstrap-sync to disable
28553         it.
28554
28555 2010-11-20  Bruno Haible  <bruno@clisp.org>
28556
28557         Ensure that <features.h> is included before __GLIBC__ is tested.
28558         * lib/printf-parse.h: Include <features.h>.
28559         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28560         Reported by Mike Frysinger <vapier@gentoo.org>.
28561
28562         Ensure that <features.h> is included before __GLIBC__ is tested.
28563         * lib/wchar.in.h: Include <features.h>.
28564         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28565         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28566         Reported by Mike Frysinger <vapier@gentoo.org>.
28567
28568         Ensure that <features.h> is included before __GLIBC__ is tested.
28569         * lib/arpa_inet.in.h: Include <features.h>.
28570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28571         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28572         Reported by Mike Frysinger <vapier@gentoo.org>.
28573
28574         Ensure that <features.h> is included before __GLIBC__ is tested.
28575         * build-aux/link-warning.h: Include <features.h>.
28576         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28577         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28578         Reported by Mike Frysinger <vapier@gentoo.org>.
28579
28580         Ensure that <features.h> is included before __GLIBC__ is tested.
28581         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28582         Reported by Mike Frysinger <vapier@gentoo.org>.
28583
28584 2010-11-20  Bruno Haible  <bruno@clisp.org>
28585
28586         memmem: Fix autoconf test.
28587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28588
28589 2010-11-20  Bruno Haible  <bruno@clisp.org>
28590
28591         Port to uClibc.
28592         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28593         * lib/fcntl.in.h: Likewise.
28594         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28595         * lib/mbrtowc.c (mbrtowc): Likewise.
28596         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28597         * lib/strerror_r.c: Likewise.
28598         * lib/unistr/u8-strnlen.c: Likewise.
28599         * lib/vasnprintf.c (decimal_point_char): Likewise.
28600         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28602         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28603         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28604         * tests/test-sigaction.c (handler, main): Likewise.
28605         * lib/freading.h: Treat uClibc like a non-glibc platform.
28606         * lib/freading.c: Likewise.
28607         * lib/gettext.h: Likewise.
28608         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28609         Likewise.
28610         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28611         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28612         * lib/propername.c (proper_name_utf8): Likewise.
28613         * lib/spawn.in.h: Likewise.
28614         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28615         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28616         mem_cd_iconveh_internal): Likewise.
28617         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28618         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28619         strstr, strcasestr): Likewise.
28620         * lib/unicodeio.c (unicode_to_mb): Likewise.
28621         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28622         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28623         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28624         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28625         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28626         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28627         * lib/unistr/u8-stpncpy.c: Likewise.
28628         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28629         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28631         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28632         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28633         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28634         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28637         Likewise.
28638         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28639         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28642         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28643         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28644         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28645         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28646         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28647         * tests/test-striconveha.c (main): Likewise.
28648         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28649         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28650         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28651         * doc/posix-functions/getline.texi: Likewise.
28652         Reported by Mike Frysinger <vapier@gentoo.org>.
28653
28654 2010-11-20  Bruno Haible  <bruno@clisp.org>
28655
28656         nproc: Fix condition.
28657         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28658         HAVE_PTHREAD_AFFINITY_NP.
28659
28660 2010-11-20  Bruno Haible  <bruno@clisp.org>
28661
28662         Fix a comment.
28663         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28664
28665 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28666
28667         ftoastr: don't assume snprintf
28668         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28669         Implement a subset of snprintf here, by using sprintf safely.
28670         * modules/ftoastr (Depends-on): Remove snprintf.
28671
28672 2010-11-19  Jim Meyering  <meyering@redhat.com>
28673
28674         test-rename.h: fix compilation failure
28675         * tests/test-rename.h (test_rename): Add omitted "}".
28676
28677 2010-11-17  Jim Meyering  <meyering@redhat.com>
28678
28679         maint.mk: add a URL discussing the no-@acronym policy
28680         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28681
28682 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28683
28684         ftoastr: depend on snprintf, improve comments
28685         * lib/ftoastr.c: Also mention Loitsch's draft.
28686         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28687         needed in the current implementation, but it might simplify
28688         speeding up the code later.
28689         * modules/ftoastr: Depend on snprintf; this improves portability.
28690         Suggested by Bruno Haible in the same email.
28691
28692         ftoastr: port to hosts lacking strtof and strtold
28693         Problem reported by Bruno Haible in
28694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28695         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28696         environment and strtold (and presumably strtof) are not available.
28697         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28698         (configure.ac): Require gl_C99_STRTOLD.
28699
28700 2010-11-18  Bruno Haible  <bruno@clisp.org>
28701
28702         c-strtold: Avoid link error on AIX 7.
28703         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28704         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28705         (gl_C_STRTOLD): Test whether strtold_l exists.
28706         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28707
28708 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28709
28710         intprops: new macro INT_BITS_STRLEN_BOUND
28711         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28712         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28713         not exposed.  Also, it uses a slightly tighter bound than before;
28714         though this makes no practical difference, we might as well be as
28715         tight as we easily can.
28716
28717         ftoastr: new module, for lossless conversion of floats to short strings
28718         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28719         * modules/ftoastr: New files.
28720
28721 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28722
28723         bootstrap: port to Solaris sed
28724         * build-aux/bootstrap (get_version): Port to Solaris sed.
28725         See Ralf Wildenhues's note in
28726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28727
28728 2010-11-14  Jim Meyering  <meyering@redhat.com>
28729
28730         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28731         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28732         and move definition closer to sole use.
28733
28734 2010-11-13  Jim Meyering  <meyering@redhat.com>
28735
28736         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28737         Now we require at least autoconf-2.59, which means the work-around
28738         is no longer needed.
28739         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28740         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28741         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28742         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28743         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28744
28745 2010-11-13  Bruno Haible  <bruno@clisp.org>
28746
28747         rename, renameat: Avoid test failures at NFS mounted locations.
28748         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28749         functions.
28750         (test_rename): Use assert_nonexistent.
28751         * tests/test-rename.c: Include <dirent.h>.
28752         * tests/test-renameat.c: Likewise.
28753         Reported by Gary V. Vaughan <gary@gnu.org>.
28754
28755         rename, renameat: Document Linux bug with NFS
28756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28757         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28758         * doc/posix-functions/renameat.texi: Likewise.
28759         Suggested by Eric Blake.
28760
28761 2010-11-13  Bruno Haible  <bruno@clisp.org>
28762
28763         rename test: Add comments.
28764         * tests/test-rename.h (test_rename): Add structure and comments.
28765
28766 2010-11-13  Eric Blake  <eblake@redhat.com>
28767
28768         maintainer-makefile: cover a few more files
28769         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28770         scripts generated within C files, for libvirt.
28771
28772 2010-11-13  Bruno Haible  <bruno@clisp.org>
28773
28774         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28775         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28776         character, return the number of bytes that belong together, not always
28777         1.
28778         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28779         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28780         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28781         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28782         number of bytes of an invalid character.
28783         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28784         (main): Invoke it.
28785         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28786         results.
28787         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28788         malformed byte sequences.
28789         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28790         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28791         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28792         Reported by Ben Pfaff and Paolo Bonzini.
28793
28794 2010-11-13  Bruno Haible  <bruno@clisp.org>
28795
28796         openat: Work around glibc bug with fchownat() and empty file names.
28797         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28798         (gl_FUNC_FCHOWNAT): Invoke it.
28799         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28800         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28801         Reported by Gary V. Vaughan <gary@gnu.org>.
28802
28803 2010-11-13  Bruno Haible  <bruno@clisp.org>
28804
28805         openat: Ensure autoconf macro ordering.
28806         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28807         gl_USE_SYSTEM_EXTENSIONS.
28808         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28809
28810 2010-11-13  Bruno Haible  <bruno@clisp.org>
28811
28812         Update comments.
28813         * lib/unistr/u8-check.c: Update file name in comments.
28814         * lib/unistr/u8-mblen.c: Likewise.
28815         * lib/unistr/u8-prev.c: Likewise.
28816         * lib/unistr/u8-strmblen.c: Likewise.
28817         * lib/unistr/u8-strmbtouc.c: Likewise.
28818
28819 2010-11-13  Jim Meyering  <meyering@redhat.com>
28820
28821         tests: avoid test failure on Solaris 10 due to lack of PATH export
28822         * tests/test-update-copyright.sh: Don't forget to export PATH.
28823
28824         init.sh: ensure that IFS is defined, just in case...
28825         * tests/init.sh (setup_): Ensure that IFS is defined,
28826         so that saving and restoring it works as expected.  This
28827         appears to be useful at least for an old version of dash
28828         from a long time ago (RH 6).  See here for details:
28829         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28830
28831         maint.mk: tighten "test a == b" check
28832         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28833         test to files that contain something like #!/bin/sh.
28834         Without this, coreutils would get two false positives in
28835         the comments of C source files.
28836
28837 2010-11-12  Eric Blake  <eblake@redhat.com>
28838
28839         bootstrap: fix typo in previous attempt
28840         * build-aux/bootstrap (buildreq): Correct the grouping.
28841         Reported by Paul Eggert.
28842
28843         maintainer-makefile: prohibit test x == x
28844         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28845         Based on a report by Matthias Bolte.
28846
28847         bootstrap: allow FreeBSD gzip
28848         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28849         which has no '.' and goes to stderr.
28850         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28851         Reported by Matthias Bolte.
28852
28853         maintainer-makefile: check for i18n setup
28854         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28855         will likely work.
28856
28857 2010-11-12  Bruno Haible  <bruno@clisp.org>
28858
28859         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28860         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28861         * lib/nanosleep.c (nanosleep): Likewise.
28862
28863 2010-11-11  Bruno Haible  <bruno@clisp.org>
28864
28865         fcntl-h: Fix for use of C++ on glibc systems.
28866         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28867         also on glibc systems in C++ mode.
28868         Reported by Gary V. Vaughan <gary@gnu.org>.
28869
28870 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28871
28872         mknod: avoid false failure with dash
28873         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28874
28875 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28876
28877         unlink: Fix "is it should" typo in diagnostic.
28878         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28880
28881 2010-11-11  Bruno Haible  <bruno@clisp.org>
28882
28883         Tests for module 'strerror_r-posix'.
28884         * modules/strerror_r-posix-tests: New file.
28885         * tests/test-strerror_r.c: New file.
28886         * tests/test-string-c++.cc: Check the signature of strerror_r.
28887
28888         New module 'strerror_r-posix'.
28889         * lib/string.in.h (strerror_r): New declaration.
28890         * lib/strerror_r.c: New file.
28891         * m4/strerror_r.m4: New file.
28892         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28893         of strerror_r.
28894         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28895         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28896         * modules/strerror_r-posix: New file.
28897         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28898         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28899         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28900         portability problems.
28901
28902 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28903
28904         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28905         line is also considered for output. Quoted function name in shell
28906         command, so temporary files for functions like MyClass::operator()
28907         are removed correctly without errors.
28908
28909 2010-11-09  Bruno Haible  <bruno@clisp.org>
28910
28911         * doc/posix-functions/strerror.texi: List more failing platforms.
28912
28913         * doc/posix-functions/strerror.texi: Add a comment.
28914
28915 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28916
28917         fdopendir: fix bug on MacOS X when low on file descriptors
28918
28919         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28920         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28921         All callers changed.
28922         (fdopendir): Invoke save_cwd at the top level, not after using
28923         multiple dup() calls to use up file descriptors.  Then retry
28924         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28925         less than the maximum number of open file descriptors, because
28926         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28927         on Mac OS X 10.6.4 for tar 1.24
28928         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28929         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28930         and for tar 1.25
28931         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28932
28933 2010-11-07  Bruno Haible  <bruno@clisp.org>
28934
28935         vasnprintf: Support I flag on glibc systems.
28936         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28937         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28938         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28939         snprintf function.
28940         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28941         glibc systems.
28942         * tests/test-vasnprintf-posix3.c: New file.
28943         * modules/vasnprintf-posix-tests (Files): Add it.
28944         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28945
28946 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28947
28948         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28949         * MODULES.html.sh: For compiler warnings, use name
28950         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28951
28952 2010-11-05  Eric Blake  <eblake@redhat.com>
28953
28954         ceil, floor: avoid spurious failure with icc
28955         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28956         [denormals-as-zero] when optimizing without -mieee-fp option.
28957         * tests/test-floorf2.c (floorf_reference): Likewise.
28958         * tests/test-ceilf1.c (dummy): New function.
28959         (main): Use it to outsmart icc's optimization.
28960         * tests/test-floorf1.c (dummy, main): Likewise.
28961
28962         tests: require working signbit
28963         * modules/ceilf-tests (Depends-on): Add signbit.
28964         * modules/ceill-tests (Depends-on): Likewise.
28965         * modules/floorf-tests (Depends-on): Likewise.
28966         * modules/floorl-tests (Depends-on): Likewise.
28967         * modules/round-tests (Depends-on): Likewise.
28968         * modules/roundf-tests (Depends-on): Likewise.
28969         * modules/roundl-tests (Depends-on): Likewise.
28970         * modules/trunc-tests (Depends-on): Likewise.
28971         * modules/truncf-tests (Depends-on): Likewise.
28972         * modules/truncl-tests (Depends-on): Likewise.
28973
28974         strtod: work around icc bug
28975         * lib/strtod.c (minus_zero): Define to working value.
28976         (strtod): Use it to avoid icc bug.
28977
28978         copysign: enhance tests
28979         * modules/copysign-tests (Files): Add minus-zero.h.
28980         * tests/test-copysign.c (main): Also test zeros.
28981
28982 2010-11-04  Eric Blake  <eblake@redhat.com>
28983
28984         ceil, floor, round, trunc: enhance tests of -0
28985         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28986         * tests/test-ceill.c (main): Likewise.
28987         * tests/test-floorf1.c (main): Likewise.
28988         * tests/test-floorl.c (main): Likewise.
28989         * tests/test-round1.c (main): Likewise.
28990         * tests/test-roundf1.c (main): Likewise.
28991         * tests/test-roundl.c (main): Likewise.
28992         * tests/test-trunc1.c (main): Likewise.
28993         * tests/test-truncf1.c (main): Likewise.
28994         * tests/test-truncl.c (main): Likewise.
28995
28996 2010-11-04  Eric Blake  <eblake@redhat.com>
28997
28998         frexp, tests: work around ICC bug with -zero
28999         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29000         works with more compilers.
29001         * tests/minus-zero.h: New file.
29002         * modules/ceilf-tests (Files): Include it.
29003         * modules/ceill-tests (Files): Likewise.
29004         * modules/floorf-tests (Files): Likewise.
29005         * modules/floorl-tests (Files): Likewise.
29006         * modules/frexp-nolibm-tests (Files): Likewise.
29007         * modules/frexp-tests (Files): Likewise.
29008         * modules/frexpl-nolibm-tests (Files): Likewise.
29009         * modules/frexpl-tests (Files): Likewise.
29010         * modules/isnan-tests (Files): Likewise.
29011         * modules/isnand-nolibm-tests (Files): Likewise.
29012         * modules/isnand-tests (Files): Likewise.
29013         * modules/isnanf-nolibm-tests (Files): Likewise.
29014         * modules/isnanf-tests (Files): Likewise.
29015         * modules/isnanl-nolibm-tests (Files): Likewise.
29016         * modules/isnanl-tests (Files): Likewise.
29017         * modules/round-tests (Files): Likewise.
29018         * modules/roundf-tests (Files): Likewise.
29019         * modules/roundl-tests (Files): Likewise.
29020         * modules/ldexpl-tests (Files): Likewise.
29021         * modules/signbit-tests (Files): Likewise.
29022         * modules/snprintf-posix-tests (Files): Likewise.
29023         * modules/sprintf-posix-tests (Files): Likewise.
29024         * modules/strtod-tests (Files): Likewise.
29025         * modules/trunc-tests (Files): Likewise.
29026         * modules/truncf-tests (Files): Likewise.
29027         * modules/truncl-tests (Files): Likewise.
29028         * modules/vsnprintf-posix-tests (Files): Likewise.
29029         * modules/vsprintf-posix-tests (Files): Likewise.
29030         * modules/vasnprintf-posix-tests (Files): Likewise.
29031         * modules/vasprintf-posix-tests (Files): Likewise.
29032         * tests/test-ceilf1.c (main): Use it.
29033         * tests/test-ceill.c (main): Likewise.
29034         * tests/test-floorf1.c (main): Likewise.
29035         * tests/test-floorl.c (main): Likewise.
29036         * tests/test-frexp.c (main): Likewise.
29037         * tests/test-frexpl.c (main): Likewise.
29038         * tests/test-isnan.c (main): Likewise.
29039         * tests/test-isnand.h (main): Likewise.
29040         * tests/test-isnanf.h (main): Likewise.
29041         * tests/test-isnanl.h (main): Likewise.
29042         * tests/test-ldexpl.c (main): Likewise.
29043         * tests/test-round.c (main): Likewise.
29044         * tests/test-roundf.c (main): Likewise.
29045         * tests/test-roundl.c (main): Likewise.
29046         * tests/test-signbit.c (test_signbitf, test_signbitd)
29047         (test_signbitl): Likewise.
29048         * tests/test-snprintf-posix.h (test_function): Likewise.
29049         * tests/test-sprintf-posix.h (test_function): Likewise.
29050         * tests/test-strtod.c (main): Likewise.
29051         * tests/test-trunc1.c (main): Likewise.
29052         * tests/test-truncf1.c (main): Likewise.
29053         * tests/test-truncl.c (main): Likewise.
29054
29055         isnanl: work around icc bug
29056         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29057
29058 2010-11-03  Eric Blake  <eblake@redhat.com>
29059
29060         tests: fix compiler warnings
29061         * tests/test-getopt.h (test_getopt): Fix condition.
29062         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29063         * tests/test-pipe2.c (main): Likewise.
29064         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29065
29066         utimens: fix broken m4 test
29067         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29068
29069 2010-10-28  Bruno Haible  <bruno@clisp.org>
29070
29071         posix_spawn*, getdtablesize: Relax license.
29072         * modules/posix_spawn (License): Change to LGPLv2+.
29073         * modules/posix_spawnp (License): Likewise.
29074         * modules/posix_spawn-internal (License): Likewise.
29075         * modules/posix_spawnattr_init (License): Likewise.
29076         * modules/posix_spawnattr_getflags (License): Likewise.
29077         * modules/posix_spawnattr_setflags (License): Likewise.
29078         * modules/posix_spawnattr_getpgroup (License): Likewise.
29079         * modules/posix_spawnattr_setpgroup (License): Likewise.
29080         * modules/posix_spawnattr_getschedparam (License): Likewise.
29081         * modules/posix_spawnattr_setschedparam (License): Likewise.
29082         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29083         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29084         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29085         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29086         * modules/posix_spawnattr_getsigmask (License): Likewise.
29087         * modules/posix_spawnattr_setsigmask (License): Likewise.
29088         * modules/posix_spawnattr_destroy (License): Likewise.
29089         * modules/posix_spawn_file_actions_init (License): Likewise.
29090         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29091         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29092         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29093         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29094         * modules/getdtablesize (License): Likewise.
29095         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29096
29097 2010-10-26  Bruno Haible  <bruno@clisp.org>
29098
29099         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29100         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29101         Cygwin and mingw.
29102         Suggested by Eric Blake.
29103
29104 2010-10-26  Bruno Haible  <bruno@clisp.org>
29105
29106         stdio: Work around compilation error due to renameat() on Solaris 10.
29107         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29108         * lib/renameat.c: Don't include <unistd.h> here.
29109         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29110         Reported by Paul Eggert and Eric Blake.
29111
29112 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29113
29114         renameat: port to Solaris 10, which declares renameat in unistd.h
29115
29116         * lib/renameat.c: Include unistd.h before stdio.h, because
29117         Solaris 10 declares renameat in unistd.h.  Problem encountered
29118         when building GNU tar 1.24 on Solaris 10.
29119
29120 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29121
29122         fdopendir: fix C89 compilation
29123         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29124         compilers.
29125
29126 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29127
29128         inttostr: simplify by removing unnecessary redundancy
29129         * lib/anytostr.c: Don't include verify.h.
29130         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29131         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29132         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29133         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29134         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29135         Likewise.
29136         * modules/inttostr (Depends-on): Remove 'verify'.
29137
29138 2010-10-23  Bruno Haible  <bruno@clisp.org>
29139
29140         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29141         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29142         Reported by Eric Blake.
29143
29144 2010-10-23  Bruno Haible  <bruno@clisp.org>
29145
29146         Tests: Fix LOCALE_JA on MirBSD 10.
29147         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29148         to an UTF-8 locale.
29149         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29150         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29151         Reported by Eric Blake.
29152
29153 2010-10-21  Bruno Haible  <bruno@clisp.org>
29154
29155         nl_langinfo test: Avoid test failure on NetBSD 5.
29156         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29157         Reported by Eric Blake.
29158
29159 2010-10-21  Eric Blake  <eblake@redhat.com>
29160
29161         c-stack: work around libsigsegv 2.8 bug
29162         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29163         overflow on at least PowerPC64.
29164
29165 2010-10-17  Bruno Haible  <bruno@clisp.org>
29166
29167         userspec: Drop redundant file.
29168         * modules/userspec (Files): Remove lib/inttostr.h.
29169
29170 2010-10-17  Bruno Haible  <bruno@clisp.org>
29171
29172         nl_langinfo tests: Silence some warnings.
29173         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29174         Reported by Jim Meyering.
29175
29176 2010-10-17  Bruno Haible  <bruno@clisp.org>
29177
29178         Make use of GCC's attribute __alloc_size__.
29179         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29180         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29181         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29182         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29183         __alloc_size__.
29184         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29185         Suggested by Jim Meyering.
29186
29187 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29188
29189         bootstrap: anchor .gitignore entries.
29190         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29191         with...
29192         (insert_vc_ignore): ... this new function, which prepends `/' to
29193         all .gitignore entries before passing them to
29194         insert_sorted_if_absent.
29195
29196 2010-10-16  Bruno Haible  <bruno@clisp.org>
29197
29198         nextafter: Fix configure check.
29199         * modules/nextafter (configure.ac): Correct expected prototype.
29200
29201 2010-10-16  Bruno Haible  <bruno@clisp.org>
29202
29203         termios: Update documentation.
29204         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29205
29206 2010-10-16  Bruno Haible  <bruno@clisp.org>
29207
29208         tests: Make them compile with TinyCC.
29209         * tests/test-strstr.c (main): Remove parentheses around array
29210         initializer.
29211
29212 2010-10-15  Eric Blake  <eblake@redhat.com>
29213
29214         ignore-value: make header idempotent
29215         * lib/ignore-value.h: Add double-inclusion guards.
29216         Reported by Stefan Berger.
29217
29218 2010-10-15  Jim Meyering  <meyering@redhat.com>
29219
29220         GNUmakefile: handle "stable" target, not "major"
29221         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29222         lists in maint.mk and announce-gen.  Without this, "make stable"
29223         would fail to ensure that $(VERSION) is up to date.
29224
29225 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29226
29227         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29228         & co.
29229
29230 2010-10-14  Bruno Haible  <bruno@clisp.org>
29231
29232         vasnprintf: Don't set errno to 0.
29233         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29234         block that sets it to 0.
29235         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29236
29237 2010-10-14  Bruno Haible  <bruno@clisp.org>
29238
29239         socketlib: Fix.
29240         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29241         gl_PREREQ_SYS_H_WINSOCK2.
29242         Reported by Ian Beckwith <ianb@erislabs.net>.
29243
29244 2010-10-13  Jim Meyering  <meyering@redhat.com>
29245
29246         test-select-stdin.c: avoid warn_unused_result warnings
29247         * tests/test-select-stdin.c: Include "macros.h".
29248         ASSERT that read and fflush succeed.
29249
29250 2010-10-13  Jim Meyering  <meyering@redhat.com>
29251
29252         git-version-gen: do require git-VC'd files in cwd
29253         * build-aux/git-version-gen: Reject a git version string
29254         if there are no commits associated with the current directory.
29255         This avoids an unlikely false-positive (unrelated dir whose parent
29256         repository also contains a tag matching v*), as pointed out
29257         by Giuseppe Scrivano in
29258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29259
29260 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29261
29262         argv-iter: omit nonconforming declaration
29263         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29264         enum arg_iter_err declaration, which doesn't conform to C99.
29265         Solaris 10 cc warns about this.
29266
29267 2010-10-13  Eric Blake  <eblake@redhat.com>
29268
29269         termios: fix compilation on mingw
29270         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29271         (gl_TERMIOS_H): Adjust it on mingw.
29272         * modules/termios (Makefile.am): Substitute new key.
29273         * lib/termios.in.h (includes): Make include_next conditional.
29274         * doc/posix-headers/termios.texi (termios.h): Update
29275         documentation.
29276         Reported by Daniel P. Berrange.
29277
29278 2010-10-13  Jim Meyering  <meyering@redhat.com>
29279
29280         git-version-gen: don't require that .git/ be in the current dir
29281         * build-aux/git-version-gen: Adjust this script so that it works
29282         when run from any working directory beneath the top-level .git/-
29283         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29284         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29285
29286         test-select: avoid warn_unused_result warnings
29287         * tests/test-select.c: Include "macros.h".
29288         ASSERT that each call to read, write, and pipe succeeds.
29289         While not technically required, also check each "close".
29290         * modules/select-tests (Files): Add tests/macros.h.
29291
29292         test-symlinkat: remove declaration of unused local
29293         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29294
29295         test-inttostr: avoid shadowing warnings
29296         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29297         and use malloc rather than the stack for the same reason as
29298         mentioned in the comment justifying the other allocation.
29299
29300 2010-10-11  Bruno Haible  <bruno@clisp.org>
29301
29302         stdlib: Allow multiple gnulib generated replacements to coexist.
29303         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29304         Reported by Sam Steingold <sds@gnu.org>.
29305
29306 2010-10-11  Jim Meyering  <meyering@redhat.com>
29307
29308         fix a documentation typo
29309         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29310
29311 2010-10-11  Eric Blake  <eblake@redhat.com>
29312
29313         futimens: work around Solaris 11 bug
29314         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29315         * tests/test-futimens.h (test_futimens): Enhance, rather than
29316         weaken test.
29317         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29318
29319 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29320
29321         Indentation.
29322         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29323         higher-level operators more to the left.
29324
29325 2010-10-11  Jim Meyering  <meyering@redhat.com>
29326
29327         test-futimens: avoid unwarranted test failure on Solaris 5.11
29328         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29329         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29330         because it tries to dereference the NULL name argument.
29331
29332 2010-10-11  Bruno Haible  <bruno@clisp.org>
29333
29334         Indentation.
29335         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29336         indentation.
29337
29338 2010-10-11  Jim Meyering  <meyering@redhat.com>
29339
29340         spawn.in.h: make indentation consistent with parentheses
29341         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29342         Make indentation consistent with parentheses.
29343
29344 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29345
29346         Fix mismatched parens in previous commit
29347         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29348         parens.
29349
29350 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29351
29352         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29353
29354         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29355         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29356         * lib/malloca.c: Include "verify.h".
29357         (verify1): Remove, replacing with a verify call.
29358         * lib/relocwrapper.c (verify1): Likewise.
29359         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29360         Likewise.
29361         * modules/malloca (Depends-on): Add 'verify'.
29362         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29363         * modules/vasnprintf (Depends-on): Add 'verify'.
29364         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29365         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29366         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29367         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29368         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29369         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29370         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29371
29372         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29373
29374         Formerly the style was sometimes 2*X - 1, because the C standard
29375         was wrongly thought to disallow ?: in integral constant expressions.
29376         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29377         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29378         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29379         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29380         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29381         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29382         verify that time_t cannot be floating.
29383
29384 2010-10-08  Eric Blake  <eblake@redhat.com>
29385
29386         time: enforce recent POSIX ruling that time_t is integral
29387         * lib/time.in.h (__time_t_must_be_integral): Detect any
29388         problematic systems, allowing the rest of gnulib to assume POSIX.
29389
29390 2010-10-08  Jim Meyering  <meyering@redhat.com>
29391
29392         fdopendir: fix a bug on systems lacking openat and /proc support
29393         OpenBSD 4.7 is one such system.  The most noticeable effect was
29394         failure of any application making nontrivial use of fts: rm, du,
29395         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29396           ./rm: traversal failed: `a': Bad file descriptor
29397         Debugging that, you see that even though FD 6 was closed just
29398         prior to the opendir call in fd_clone_opendir, its resulting
29399         dir->dd_fd was 8, rather than the expected value of 6:
29400
29401         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29402         93                close (fd);
29403         (gdb) n
29404         94                dir = fd_clone_opendir (dupfd);
29405         (gdb) n
29406         95                saved_errno = errno;
29407         (gdb) p dir->dd_fd
29408         $11 = 8
29409
29410         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29411         The problem is that on OpenBSD, fd_clone_opendir has to resort
29412         to using the old-style save/restore CWD mechanism, due to its
29413         lack of openat/proc support, and *that* would steal the FD (6)
29414         that opendir was supposed to use.
29415
29416         The fix is to squirrel away the desired FD so that save_cwd uses a
29417         different one, and then free the dest FD right before calling opendir.
29418         That guarantees opendir will use the required file descriptor.
29419
29420         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29421
29422 2010-10-08  Bruno Haible  <bruno@clisp.org>
29423
29424         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29425         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29426
29427 2010-10-08  Bruno Haible  <bruno@clisp.org>
29428
29429         nanosleep: Make replacement POSIX compliant.
29430         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29431         is out of range.
29432         Reported by Jim Meyering.
29433
29434 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29435
29436         bootstrap: add hook for altering gnulib.mk, for Bison
29437         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29438         the Bison bootstrapping process can rewrite file names and variables
29439         in this file before later parts of 'bootstrap' use the file.
29440         Bison wants to include lib/gnulib.mk from the top-level makefile,
29441         so it needs the file names in this file to be relative to the top
29442         level, not relative to lib; plus it needs variable names to be
29443         rewritten.
29444         (slurp): Use the new function.
29445
29446         bootstrap: reformat for readability
29447         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29448
29449 2010-10-08  Eric Blake  <eblake@redhat.com>
29450
29451         docs: update cygwin progress
29452         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29453         1.7.7.
29454         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29455         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29456         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29457         * doc/posix-functions/carg.texi (carg): Likewise.
29458         * doc/posix-functions/cargf.texi (cargf): Likewise.
29459         * doc/posix-functions/casin.texi (casin): Likewise.
29460         * doc/posix-functions/casinf.texi (casinf): Likewise.
29461         * doc/posix-functions/casinh.texi (casinh): Likewise.
29462         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29463         * doc/posix-functions/catan.texi (catan): Likewise.
29464         * doc/posix-functions/catanf.texi (catanf): Likewise.
29465         * doc/posix-functions/catanh.texi (catanh): Likewise.
29466         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29467         * doc/posix-functions/ccos.texi (ccos): Likewise.
29468         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29469         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29470         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29471         * doc/posix-functions/cexp.texi (cexp): Likewise.
29472         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29473         * doc/posix-functions/cimag.texi (cimag): Likewise.
29474         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29475         * doc/posix-functions/clog.texi (clog): Likewise.
29476         * doc/posix-functions/clogf.texi (clogf): Likewise.
29477         * doc/posix-functions/conj.texi (conj): Likewise.
29478         * doc/posix-functions/conjf.texi (conjf): Likewise.
29479         * doc/posix-functions/cpow.texi (cpow): Likewise.
29480         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29481         * doc/posix-functions/cproj.texi (cproj): Likewise.
29482         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29483         * doc/posix-functions/creal.texi (creal): Likewise.
29484         * doc/posix-functions/crealf.texi (crealf): Likewise.
29485         * doc/posix-functions/csin.texi (csin): Likewise.
29486         * doc/posix-functions/csinf.texi (csinf): Likewise.
29487         * doc/posix-functions/csinh.texi (csinh): Likewise.
29488         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29489         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29490         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29491         * doc/posix-functions/ctan.texi (ctan): Likewise.
29492         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29493         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29494         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29495         * doc/posix-headers/complex.texi (complex.h): Likewise.
29496
29497 2010-10-07  Jim Meyering  <meyering@redhat.com>
29498
29499         parse-datetime: avoid compilation failure on OpenBSD 4.7
29500         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29501         This works around a compilation failure on OpenBSD 4.7:
29502         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29503
29504 2010-10-07  Eric Blake  <eblake@redhat.com>
29505
29506         docs: update cygwin progress
29507         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29508         1.7.6.
29509         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29510         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29511         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29512         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29513         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29514         Likewise.
29515         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29516         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29517         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29518         Likewise.
29519         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29520         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29521         Likewise.
29522         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29523         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29524         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29525         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29526         Likewise.
29527         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29528         Likewise.
29529         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29530
29531         docs: update parse-datetime history
29532         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29533         documentation of this function's history and alternatives.
29534
29535         cygwin: use more robust version check
29536         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29537         exclude an eventual cygwin 1.9.1.
29538         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29540         (gl_FUNC_STRCASESTR): Likewise.
29541         Reported by Bruno Haible.
29542
29543 2010-10-06  Bruno Haible  <bruno@clisp.org>
29544
29545         string, sys_select: Avoid #including large headers unless necessary.
29546         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29547         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29548         OSF/1, BeOS, Haiku.
29549         Reported by Jim Meyering.
29550
29551 2010-10-05  Eric Blake  <eblake@redhat.com>
29552
29553         memmem, strstr, strcasestr: fix bug with long periodic needle
29554         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29555         periodic needle having false positive.
29556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29557         and cygwin 1.7.7.
29558         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29560         (gl_FUNC_STRCASESTR): Likewise.
29561         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29562         * tests/test-memmem.c (main): Expose the bug.
29563         * tests/test-strcasestr.c (main): Likewise.
29564         * tests/test-strstr.c (main): Likewise.
29565         * tests/test-c-strcasestr.c (main): Likewise.
29566         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29567         * doc/posix-functions/strstr.texi (strstr): Likewise.
29568         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29569         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29570
29571 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29572
29573         parse-datetime: do some more renaming
29574         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29575         parse_datetime, not get_date.  Mention the renaming.
29576         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29577         in comments.
29578         * m4/bison.m4: Likewise.
29579
29580 2010-10-05  Eric Blake  <eblake@redhat.com>
29581
29582         parse-datetime: better name than get_date
29583         * NEWS: Reword the deprecation notice.
29584         * modules/get_date: Rename to modules/parse-datetime.
29585         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29586         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29587         * lib/get_date.y: Rename to lib/parse-datetime.y.
29588         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29589         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29590         * doc/getdate.texi: Provide fallback wrapper.
29591         * lib/getdate.h: Move guts, and wrap...
29592         * lib/parse-datetime.h: ...new file.
29593         * lib/parse-datetime.y (get_date): Rename...
29594         (parse_datetime): ...to this.
29595         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29596         (gl_PARSE_DATETIME): ...to this.
29597         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29598         documentation.
29599         * modules/getdate (Files): Provide fallback docs and header.
29600         (Notice, Depends-on): Update references.
29601         * tests/test-parse-datetime.c: Likewise.
29602         * DEPENDENCIES: Likewise.
29603         * MODULES.html.sh (Date and time <time.h>): Likewise.
29604         * doc/parse-datetime.texi (Date input formats)
29605         (Authors of parse_datetime): Likewise.
29606         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29607         (Include): Likewise.
29608         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29609         * gnulib-tool: Likewise.
29610         * m4/bison.m4 (gl_BISON): Likewise.
29611         Suggested by Bruno Haible.
29612
29613 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29614
29615         more ports to Solaris tr, which needs [] around ranges
29616         * gnulib-tool: Solaris tr needs [] around ranges.
29617         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29618         * tests/test-pipe-filter-gi1.c (main): Likewise.
29619         * tests/test-pipe-filter-ii1.c (main): Likewise.
29620
29621 2010-10-05  Eric Blake  <eblake@redhat.com>
29622
29623         bootstrap: fix Solaris regression
29624         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29625         around ranges.
29626         Reported by Pádraig Brady.
29627
29628         bootstrap: work with pkg-config
29629         * build-aux/bootstrap (check_versions): Also transliterate - in
29630         prerequisite name.
29631         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29632         prerequisites that were already found, to avoid confusion.
29633         Reported by Justin Clift.
29634
29635         faccessat: remove unused wrappers
29636         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29637         presence of these wrappers dragged in -lgen on Solaris.
29638         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29639
29640 2010-10-05  Jim Meyering  <meyering@redhat.com>
29641
29642         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29643         * Makefile (sc_pragma_columns): New syntax-check rule.
29644
29645 2010-10-04  Bruno Haible  <bruno@clisp.org>
29646
29647         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29648         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29649         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29650         Reported by Bruce Korb and Eric Blake.
29651
29652 2010-10-04  Bruno Haible  <bruno@clisp.org>
29653
29654         threadlib: Make option --with-libpth-prefix work.
29655         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29656         use $LIBPTH, not just -lpth.
29657
29658 2010-10-04  Bruno Haible  <bruno@clisp.org>
29659
29660         Avoid line length limitation from HP NonStop system header files.
29661         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29662         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29663         * lib/ctype.in.h: Likewise.
29664         * lib/dirent.in.h: Likewise.
29665         * lib/errno.in.h: Likewise.
29666         * lib/fcntl.in.h: Likewise.
29667         * lib/float.in.h: Likewise.
29668         * lib/getopt.in.h: Likewise.
29669         * lib/iconv.in.h: Likewise.
29670         * lib/inttypes.in.h: Likewise.
29671         * lib/langinfo.in.h: Likewise.
29672         * lib/locale.in.h: Likewise.
29673         * lib/math.in.h: Likewise.
29674         * lib/netdb.in.h: Likewise.
29675         * lib/netinet_in.in.h: Likewise.
29676         * lib/poll.in.h: Likewise.
29677         * lib/pthread.in.h: Likewise.
29678         * lib/pty.in.h: Likewise.
29679         * lib/sched.in.h: Likewise.
29680         * lib/se-selinux.in.h: Likewise.
29681         * lib/search.in.h: Likewise.
29682         * lib/signal.in.h: Likewise.
29683         * lib/spawn.in.h: Likewise.
29684         * lib/stdarg.in.h: Likewise.
29685         * lib/stddef.in.h: Likewise.
29686         * lib/stdint.in.h: Likewise.
29687         * lib/stdio.in.h: Likewise.
29688         * lib/stdlib.in.h: Likewise.
29689         * lib/string.in.h: Likewise.
29690         * lib/strings.in.h: Likewise.
29691         * lib/sys_file.in.h: Likewise.
29692         * lib/sys_ioctl.in.h: Likewise.
29693         * lib/sys_select.in.h: Likewise.
29694         * lib/sys_socket.in.h: Likewise.
29695         * lib/sys_stat.in.h: Likewise.
29696         * lib/sys_time.in.h: Likewise.
29697         * lib/sys_times.in.h: Likewise.
29698         * lib/sys_utsname.in.h: Likewise.
29699         * lib/sys_wait.in.h: Likewise.
29700         * lib/sysexits.in.h: Likewise.
29701         * lib/termios.in.h: Likewise.
29702         * lib/time.in.h: Likewise.
29703         * lib/unistd.in.h: Likewise.
29704         * lib/wchar.in.h: Likewise.
29705         * lib/wctype.in.h: Likewise.
29706         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29707         * modules/ctype (Makefile.am): Likewise.
29708         * modules/dirent (Makefile.am): Likewise.
29709         * modules/errno (Makefile.am): Likewise.
29710         * modules/fcntl-h (Makefile.am): Likewise.
29711         * modules/float (Makefile.am): Likewise.
29712         * modules/getopt-posix (Makefile.am): Likewise.
29713         * modules/iconv-h (Makefile.am): Likewise.
29714         * modules/inttypes (Makefile.am): Likewise.
29715         * modules/langinfo (Makefile.am): Likewise.
29716         * modules/locale (Makefile.am): Likewise.
29717         * modules/math (Makefile.am): Likewise.
29718         * modules/netdb (Makefile.am): Likewise.
29719         * modules/netinet_in (Makefile.am): Likewise.
29720         * modules/poll-h (Makefile.am): Likewise.
29721         * modules/pthread (Makefile.am): Likewise.
29722         * modules/pty (Makefile.am): Likewise.
29723         * modules/sched (Makefile.am): Likewise.
29724         * modules/search (Makefile.am): Likewise.
29725         * modules/selinux-h (Makefile.am): Likewise.
29726         * modules/signal (Makefile.am): Likewise.
29727         * modules/spawn (Makefile.am): Likewise.
29728         * modules/stdarg (Makefile.am): Likewise.
29729         * modules/stddef (Makefile.am): Likewise.
29730         * modules/stdint (Makefile.am): Likewise.
29731         * modules/stdio (Makefile.am): Likewise.
29732         * modules/stdlib (Makefile.am): Likewise.
29733         * modules/string (Makefile.am): Likewise.
29734         * modules/strings (Makefile.am): Likewise.
29735         * modules/sys_file (Makefile.am): Likewise.
29736         * modules/sys_ioctl (Makefile.am): Likewise.
29737         * modules/sys_select (Makefile.am): Likewise.
29738         * modules/sys_socket (Makefile.am): Likewise.
29739         * modules/sys_stat (Makefile.am): Likewise.
29740         * modules/sys_time (Makefile.am): Likewise.
29741         * modules/sys_times (Makefile.am): Likewise.
29742         * modules/sys_utsname (Makefile.am): Likewise.
29743         * modules/sys_wait (Makefile.am): Likewise.
29744         * modules/sysexits (Makefile.am): Likewise.
29745         * modules/termios (Makefile.am): Likewise.
29746         * modules/time (Makefile.am): Likewise.
29747         * modules/unistd (Makefile.am): Likewise.
29748         * modules/wchar (Makefile.am): Likewise.
29749         * modules/wctype (Makefile.am): Likewise.
29750
29751 2010-10-04  Bruno Haible  <bruno@clisp.org>
29752
29753         read-file tests: Avoid a test failure on NonStop Kernel.
29754         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29755         a regular file.
29756         Reported by Joachim Schmitz <schmitz@hp.com>.
29757
29758 2010-10-03  Bruno Haible  <bruno@clisp.org>
29759
29760         gnulib-tool: Fixes for --create-testdir with --libtool.
29761         * gnulib-tool (func_get_automake_snippet): Don't augment
29762         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29763         an executable.
29764         (func_create_testdir): Handle module 'alloca' like func_import.
29765         Reported by Bruce Korb <bruce.korb@gmail.com>.
29766
29767 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29768
29769         Avoid some lines longer than 80 characters.
29770         * lib/stdint.in.h: Break long comment lines.
29771         * lib/math.in.h: Likewise.
29772         (_GL_NUM_UINT_WORDS): New macro, for readability.
29773         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29774         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29775         * lib/stdlib.in.h: Likewise.
29776         * lib/spawn.in.h: Likewise.
29777         * lib/sys_socket.in.h: Update an URL.
29778         * lib/sys_stat.in.h: Break long line.
29779
29780 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29781
29782         Improve pmccabe2html.
29783         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29784         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29785         when the sources change. Remove the line in the HTML about "Used
29786         ranges" (which implied that there might be other unused ranges),
29787         rename "Resume" to "Summary" (easier to understand for more users).
29788         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29789         styles, and some unnecessary blank lines.
29790
29791 2010-10-03  Bruno Haible  <bruno@clisp.org>
29792             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29793
29794         acl: Add support for ACLs on NonStop Kernel.
29795         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29796         Check whether the function aclsort() exists.
29797         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29798         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29799         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29800         (acl_nontrivial [HAVE_ACLSORT]: New function.
29801         (file_has_acl): Implement for NonStop Kernel.
29802         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29803         (qset_acl): Implement for NonStop Kernel.
29804         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29805         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29806         (main): Implement for NonStop Kernel.
29807         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29808         Kernel. Handle this flavor.
29809         * tests/test-set-mode-acl.sh: Likewise.
29810         * tests/test-copy-acl.sh: Likewise.
29811         * tests/test-copy-file.sh: Likewise.
29812
29813 2010-10-03  Bruno Haible  <bruno@clisp.org>
29814
29815         Info about ACLs on NonStop Kernel.
29816         * doc/acl-resources.txt: Add info about NonStop Kernel.
29817         References by Joachim Schmitz <schmitz@hp.com>.
29818
29819 2010-10-02  Bruno Haible  <bruno@clisp.org>
29820
29821         Define missing EDQUOT on NonStop Kernel.
29822         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29823         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29825         missing.
29826         * doc/posix-headers/errno.texi: Mention the NSK bug.
29827         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29828         Reported by Joachim Schmitz <schmitz@hp.com>.
29829
29830 2010-10-02  Bruno Haible  <bruno@clisp.org>
29831
29832         Update doc for POSIX:2008.
29833         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29834         Update URL of POSIX specification.
29835
29836 2010-10-02  Bruno Haible  <bruno@clisp.org>
29837
29838         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29839         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29840         from gnulib, not from Automake.
29841
29842 2010-10-02  Bruno Haible  <bruno@clisp.org>
29843
29844         New module 'system-posix'.
29845         * modules/system-posix: New file.
29846         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29847         module is present.
29848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29849         GNULIB_SYSTEM_POSIX.
29850         * modules/stdlib (Depends-on): Remove sys_wait.
29851         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29852         * doc/posix-functions/system.texi: Mention the new module.
29853         * doc/posix-headers/stdlib.texi: Likewise.
29854         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29855         define test_sys_wait_macros to a no-op.
29856         Reported by Sam Steingold <sds@gnu.org>.
29857
29858 2010-09-30  Bruno Haible  <bruno@clisp.org>
29859
29860         More renaming from 'getdate' to 'get_date'.
29861         * doc/get_date.texi: Renamed from doc/getdate.texi.
29862         * modules/get_date (Files): Update.
29863         * MODULES.html.sh (Date and time <time.h>): Update.
29864         * DEPENDENCIES: Update.
29865         * gnulib-tool: Update comment.
29866         * m4/bison.m4 (gl_BISON): Likewise.
29867         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29868
29869 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29870
29871         bootstrap: support ACLOCAL_FLAGS during aclocal
29872         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29873         can add additional -I dir for third-party .m4 files.
29874
29875 2010-09-30  Eric Blake  <eblake@redhat.com>
29876
29877         bootstrap: use glibtoolize on MacOS
29878         * build-aux/bootstrap (check_versions): Convert libtool into
29879         libtoolize.
29880         (tool search): Move libtool check earlier, and look for
29881         glibtoolize for MacOS.
29882         (gnulib_tool_options): Auto-add --libtool when appropriate.
29883         Reported by Justin Clift.
29884
29885         poll: fix typo that broke test on MacOS
29886         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29887         Reported by Justin Clift.
29888
29889         getdate: rename to get_date
29890         Note: getdate.h is not renamed, to minimize client impact.
29891         * modules/getdate: Mark obsolete.  Move old contents...
29892         * modules/get_date: ...to new module name.
29893         * modules/getdate-tests: Move...
29894         * modules/get_date-tests: ...here.
29895         * m4/getdate.m4: Move...
29896         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29897         * lib/getdate.y: Move...
29898         * lib/get_date.y: ...here.
29899         * tests/test-getdate.c: Move...
29900         * tests/test-get_date.c: ...here.
29901         * doc/posix-functions/getdate.texi (getdate): Update name.
29902         * NEWS: Mention the change.
29903
29904 2010-09-29  Bruno Haible  <bruno@clisp.org>
29905
29906         Separate the module 'waitpid' from the module 'sys_wait'.
29907         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29908         present.
29909         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29910         gl_MODULE_INDICATOR_FOR_TESTS.
29911         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29912         * modules/sys_wait (Depends-on): Remove waitpid.
29913         (Makefile.am): Substitute GNULIB_WAITPID.
29914         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29915         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29916         signature only if the 'waitpid' module is present.
29917         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29918         * NEWS: Mention the change.
29919         * modules/grantpt (Depends-on): Add waitpid.
29920         * modules/wait-process (Depends-on): Likewise.
29921
29922 2010-09-29  Bruno Haible  <bruno@clisp.org>
29923
29924         More tests for module 'sys_wait'.
29925         * modules/sys_wait-c++-tests: New file.
29926         * tests/test-sys_wait-c++.cc: New file.
29927         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29928         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29929
29930 2010-09-29  Bruno Haible  <bruno@clisp.org>
29931
29932         New module 'waitpid'.
29933         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29934         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29935         Don't include <process.h>.
29936         (waitpid): Declare only, using modern idiom.
29937         * m4/waitpid.m4: New file.
29938         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29939         * modules/waitpid: New file.
29940         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29941         (Makefile.am): Update.
29942         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29943
29944 2010-09-28  Bruno Haible  <bruno@clisp.org>
29945
29946         poll: Assume ANSI C.
29947         * lib/poll.c (poll): Use an ANSI C declaration.
29948
29949 2010-09-28  Bruno Haible  <bruno@clisp.org>
29950
29951         poll-h: Create poll.h on all platforms.
29952         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29953         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29954         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29955         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29956         (gl_REPLACE_POLL_H): Don't set POLL_H.
29957         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29958         * modules/poll-h (Depends-on): Add include_next.
29959         (Makefile.am): Create poll.h unconditionally. Substitute also
29960         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29961
29962 2010-09-28  Bruno Haible  <bruno@clisp.org>
29963
29964         Tests for module 'poll-h'.
29965         * modules/poll-h-c++-tests: New file.
29966         * tests/test-poll-h-c++.cc: New file.
29967
29968         Tests for module 'poll-h'.
29969         * modules/poll-h-tests: New file.
29970         * tests/test-poll-h.c: New file.
29971
29972 2010-09-28  Bruno Haible  <bruno@clisp.org>
29973
29974         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29975         * modules/poll-h (Depends-on): Add 'extensions'.
29976
29977 2010-09-28  Bruno Haible  <bruno@clisp.org>
29978
29979         New module 'poll-h'.
29980         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29981         (poll): Use modern idiom.
29982         * modules/poll-h: New file.
29983         * modules/poll (Files): Remove lib/poll.in.h.
29984         (Depends-on): Add poll-h.
29985         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29986         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29987         * m4/poll_h.m4: New file.
29988         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29989         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29990         and invoke gl_REPLACE_POLL_H.
29991         * lib/poll.c: Use common idiom.
29992         * tests/test-poll.c: Likewise.
29993         * doc/posix-headers/poll.texi: Mention the poll-h module.
29994         Suggested by Eric Blake.
29995
29996 2010-09-26  Bruno Haible  <bruno@clisp.org>
29997
29998         sys_wait: Implement WSTOPSIG.
29999         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30000         Reported by Simon Josefsson.
30001
30002 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30003
30004         stdlib, sys_wait: Avoid compilation error on mingw.
30005         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30006
30007 2010-09-26  Bruno Haible  <bruno@clisp.org>
30008
30009         stdlib tests: Avoid code duplication.
30010         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30011         * modules/sys_wait-tests (Files): Likewise.
30012         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30013         * tests/test-stdlib.c: Include test-sys_wait.h.
30014         (main): Invoke test_sys_wait_macros.
30015         * tests/test-sys_wait.c: Include test-sys_wait.h.
30016         (main): Invoke test_sys_wait_macros.
30017
30018 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30019
30020         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30021         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30022         sure Windows sockets are working before calling getaddrinfo.
30023         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30024         * doc/gnulib.texi (Windows sockets): Fix typo.
30025
30026 2010-09-25  Bruno Haible  <bruno@clisp.org>
30027
30028         Tests for module 'regex-quote'.
30029         * modules/regex-quote-tests: New file.
30030         * tests/test-regex-quote.c: New file.
30031
30032         New module 'regex-quote'.
30033         * lib/regex-quote.h: New file.
30034         * lib/regex-quote.c: New file.
30035         * modules/regex-quote: New file.
30036         Suggested by Reuben Thomas <rrt@sc3d.org>.
30037
30038 2010-09-24  Bruno Haible  <bruno@clisp.org>
30039
30040         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30041         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30042
30043 2010-09-23  Bruno Haible  <bruno@clisp.org>
30044
30045         setenv: Relax license.
30046         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30047         Blake.
30048         Requested by Eric Blake.
30049
30050 2010-09-22  Bruno Haible  <bruno@clisp.org>
30051
30052         termios: Relax license.
30053         * modules/termios (License): Change to LGPLv2+.
30054         Requested by Eric Blake.
30055
30056 2010-09-22  Bruno Haible  <bruno@clisp.org>
30057
30058         threadlib: Allow the package to change the default to 'no'.
30059         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30060         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30061         Reported by Paul Eggert.
30062
30063 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30064             Bruno Haible  <bruno@clisp.org>
30065
30066         Fix endless loop in mbmemcasecoll.
30067         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30068         byte.
30069         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30070
30071 2010-09-22  Bruno Haible  <bruno@clisp.org>
30072
30073         Tests for module 'memcoll'.
30074         * modules/memcoll-tests: New file.
30075         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30076
30077         memcoll, xmemcoll: Clarify size vs. length.
30078         * modules/memcoll.c (memcoll0): Clarify specification.
30079         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30080         passed to collate_error.
30081
30082 2010-09-22  Bruno Haible  <bruno@clisp.org>
30083
30084         Tests for module 'memcasecmp'.
30085         * modules/memcasecmp-tests: New file.
30086         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30087
30088 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30089
30090         * lib/pthread.in.h: Add split double-inclusion guard, and include
30091         system <pthread.h> if there is one.  Use @@-style as in other
30092         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30093         pthread.h doesn't.
30094         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30095         (pthread_mutexattr_settype, pthread_mutex_trylock):
30096         New static inline functions, if there's no system <pthread.h>.
30097         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30098         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30099         Approximate with mutexes if the system lacks spinlocks, as in
30100         MacOS.
30101         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30102         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30103         @@-style.  Check for spinlocks separately.
30104         (gl_PTHREAD_DEFAULTS): New macro.
30105         * modules/pthread: Redo to use a more typical style for in.h files.
30106
30107 2010-09-21  Eric Blake  <eblake@redhat.com>
30108
30109         net_if: enhance tests
30110         * tests/test-net_if.c (main): Move signature checks earlier.
30111         Print failures to stderr.
30112         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30113         Document the bug that we do not yet fix.
30114
30115 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30116
30117         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30118         about gnulib, not GSS.
30119
30120 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30121
30122         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30123         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30124         for Emacs.
30125         * build-aux/pmccabe2html: Make Makefile.am example code more
30126         cut-and-paste friendly.
30127
30128 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30129
30130         * tests/test-net_if.c: New file.
30131         * modules/net_if-tests: New file.
30132
30133 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30134
30135         pthread: add pthread_spin_destroy
30136         * lib/pthread.in.h (pthread_spin_destroy): New function.
30137
30138 2010-09-19  Bruno Haible  <bruno@clisp.org>
30139
30140         gnulib-tool: Fix --help output.
30141         * gnulib-tool (func_usage): Fix help message.
30142         Reported by Reuben Thomas <rrt@sc3d.org>.
30143
30144 2010-09-18  Jim Meyering  <meyering@redhat.com>
30145
30146         maint.mk: avoid unexpanded \n in two diagnostics
30147         * top/maint.mk (sc_prohibit_always_true_header_tests):
30148         Don't use a literal \n in a halt=... assignment.  It would not be
30149         expanded, and the two \n bytes would appear in the diagnostic output
30150         rather than the desired newline.  Use halt=$$(printf ... instead.
30151         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30152
30153 2010-09-18  Bruno Haible  <bruno@clisp.org>
30154
30155         netinet_in: Doc tweak.
30156         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30157         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30158
30159 2010-09-18  Jim Meyering  <meyering@redhat.com>
30160
30161         init.sh: correct an outdated comment
30162         * tests/init.sh (create_exe_shims_):  s/function/alias/
30163
30164         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30165         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30166         a file named "*.exe" is removed between the glob expansion and the
30167         processing of that oddly named file.
30168
30169 2010-09-17  Eric Blake  <eblake@redhat.com>
30170
30171         mirbsd: add some more support
30172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30173         in BSD family.
30174         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30175         devices as OpenBSD.
30176         * m4/host-os.m4 (mirbsd): Add MirBSD.
30177
30178         tests: fix unportable assumption on sys/wait.h
30179         * tests/test-sys_wait.c (main): Relax test.
30180         * tests/test-stdlib.c (main): Likewise.
30181
30182         init.sh: accommodate directory with no .exes
30183         * tests/init.sh: Accomodate directory containing only scripts.
30184
30185         tests: avoid compiler warning
30186         * tests/test-stdlib.c (main): Use the variable.
30187
30188         fdutimens, fdutimensat: update signature, again
30189         * lib/utimens.h (gl_futimens): Delete, and move signature...
30190         (fdutimens): ...here.
30191         (fdutimensat): Rearrange signature.
30192         (lutimensat): Rename variable for clarity.
30193         * lib/fdutimensat.c (fdutimensat): Update signature.
30194         * lib/utimens.c (fdutimens): Likewise.
30195         (gl_futimens): Delete.
30196         (utimens, lutimens): Update callers.
30197         * lib/futimens.c (futimens): Likewise.
30198         * tests/test-fdutimensat.c: Likewise.
30199         * tests/test-utimens.c: Likewise.
30200         * tests/test-futimens.h: Update comment.
30201         * NEWS: Mention this.
30202         Suggested by Paul Eggert.
30203
30204 2010-09-17  Bruno Haible  <bruno@clisp.org>
30205
30206         Take over the maintenance of some older macros from Autoconf.
30207         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30208         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30209         GNU Autoconf.
30210         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30211         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30212
30213 2010-09-17  Eric Blake  <eblake@redhat.com>
30214
30215         fdutimensat: drop atflag validation
30216         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30217         with valid fd, to close a race scenario where futimens is
30218         unsupported and FILE was replaced by a symlink.
30219         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30220         accordingly.
30221         Suggested by Paul Eggert.
30222
30223 2010-09-16  Bruno Haible  <bruno@clisp.org>
30224
30225         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30226         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30227
30228 2010-09-16  Bruno Haible  <bruno@clisp.org>
30229
30230         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30231         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30232         login_tty exists.
30233         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30234
30235 2010-09-16  Bruno Haible  <bruno@clisp.org>
30236
30237         login_tty: Make the replacement code work on BSD systems.
30238         * lib/login_tty.c: Include <sys/ioctl.h>.
30239         (login_tty): Use ioctl TIOCSCTTY when available.
30240         * modules/login_tty (Depends-on): Add sys_ioctl.
30241         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30242
30243 2010-09-16  Bruno Haible  <bruno@clisp.org>
30244
30245         login_tty: Stricter unit test.
30246         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30247         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30248         and tcgetsid() after login_tty.
30249         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30250
30251 2010-09-16  Bruno Haible  <bruno@clisp.org>
30252
30253         New module 'tcgetsid'.
30254         * lib/tcgetsid.c: New file.
30255         * m4/tcgetsid.m4: New file.
30256         * modules/tcgetsid: New file.
30257         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30258         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30259         GNULIB_TCGETSID, HAVE_TCGETSID.
30260         * lib/termios.in.h: Include <sys/types.h>.
30261         (tcgetsid): New declaration.
30262         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30263         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30264         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30265         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30266
30267 2010-09-16  Bruno Haible  <bruno@clisp.org>
30268
30269         Tests for module 'termios'.
30270         * modules/termios-c++-tests: New file.
30271         * modules/termios-tests: New file.
30272         * tests/test-termios-c++.cc: New file.
30273         * tests/test-termios.c: New file.
30274
30275         New module 'termios'.
30276         * modules/termios: New file.
30277         * lib/termios.in.h: New file.
30278         * m4/termios_h.m4: New file.
30279         * doc/posix-headers/termios.texi: Mention the new module.
30280
30281 2010-09-16  Eric Blake  <eblake@redhat.com>
30282
30283         fdutimensat: add an atflag parameter
30284         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30285         * lib/utimens.h (fdutimensat): Update prototype.
30286         * tests/test-fdutimensat.c: Adjust test to match.
30287         * NEWS: Document the change.
30288         Suggested by Paul Eggert.
30289
30290 2010-09-16  Bruno Haible  <bruno@clisp.org>
30291
30292         Fix typos in comments.
30293         * lib/striconveh.h: Fix typo in comment.
30294         * lib/login_tty.c (login_tty): Likewise.
30295
30296 2010-09-15  Bruno Haible  <bruno@clisp.org>
30297
30298         stdlib: clarify MirBSD WEXITSTATUS bug
30299         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30300         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30301
30302 2010-09-15  Eric Blake  <eblake@redhat.com>
30303
30304         stdlib: work around MirBSD WEXITSTATUS bug
30305         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30306         * modules/stdlib (Depends-on): Add sys_wait.
30307         * tests/test-sys_wait.c (main): Enhance test.
30308         * tests/test-stdlib.c (main): Likewise.
30309         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30310
30311         docs: mention MacOS issue with WEXITSTATUS(constant)
30312         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30313         issue.
30314         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30315
30316         strnlen: add tests
30317         * modules/strnlen-tests: New file.
30318         * tests/test-strnlen.c: Likewise.
30319
30320 2010-09-14  Bruno Haible  <bruno@clisp.org>
30321
30322         unistr/base: Avoid link errors when module 'libunistring' is also used.
30323         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30324         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30325         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30326         Declare also when HAVE_LIBUNISTRING is set.
30327         Reported by Pádraig Brady <P@draigbrady.com>.
30328
30329 2010-09-14  Eric Blake  <eblake@redhat.com>
30330
30331         test-rawmemchr: make more robust
30332         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30333         (Depends-on, configure.ac): Add needed prerequisites to use it.
30334         * modules/memchr-tests (Files, Depends-on, configure.ac):
30335         Likewise, to avoid implicit reliance on memchr module prereqs.
30336         * tests/test-memchr.c (main): Ensure proper masking.
30337         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30338         reads.
30339
30340         memchr: detect glibc Alpha bug
30341         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30342         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30343         Alpha.
30344         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30345         * tests/test-memchr.c (main): Enhance test.
30346         Reported by Nelson H. F. Beebe.
30347
30348 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30349
30350         fts, getcwd, glob: audit for dirfd returning -1
30351         * lib/fts.c (opendir): Remove #define; no longer used.
30352         (opendirat): New arg PDIR_FD.  All callers changed.
30353         (fts_build, _opendir2): Use new opendirat to avoid the need for
30354         dirfd, or for checking whether dirfd returns a negative value.
30355         Don't use opendir; always use openat followed by fdopendir.
30356         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30357         it.
30358         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30359         returns -1 here.
30360         * modules/fts (Depends-on): Remove dirfd.
30361         * modules/getcwd (Depends-on): Likewise.
30362
30363 2010-09-13  Eric Blake  <eblake@redhat.com>
30364
30365         float: fix broken MirBSD header
30366         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30367         * doc/posix-headers/float.texi (float.h): Document it.
30368
30369 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30370
30371         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30372         * lib/fts.c (opendirat): New arg extra_flags.
30373         (__opendir2): Use it to avoid following symlinks when opening
30374         a directory, if symlinks are not supposed to be followed.  See
30375         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30376
30377         fdopendir: preserve argument fd before returning
30378         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30379         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30380         (fdopendir): Use them, arranging for FD to be open to the same
30381         directory that it was when it started.  (It might be temporarily
30382         closed while fdopendir is running, so this not thread- or
30383         signal-safe.)  Be careful to do the right thing even when file
30384         descriptors are scarce and dup fails with errno == EMFILE.  See
30385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30386
30387 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30388
30389         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30390         * NEWS: Document change.
30391         * m4/regex.m4: Disable test for regoff_t size.
30392
30393 2010-09-13  Jim Meyering  <meyering@redhat.com>
30394
30395         fts: don't operate on an invalid file descriptor after failed dup
30396         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30397         negative file descriptor.
30398
30399 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30400
30401         savedir: add streamsavedir, deprecate fdsavedir
30402         * NEWS: Mention deprecation of fdsavedir.
30403         * lib/savedir.c (streamsavedir): New extern function, whose name
30404         ends in "savedir" to be consistent with the others.  This differs
30405         from savedirstream in that it doesn't close its argument.  The
30406         next version of GNU tar will use this instead of fdsavedir, to
30407         avoid some race conditions and conserve file descriptors.
30408         (savedirstream): Reimplement as a wrapper around streamsavedir.
30409         (fdsavedir): Add a comment deprecating this function.  As far as
30410         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30411         * lib/savedir.h (streamsavedir): New decl.
30412         (fdsavedir): Add a comment deprecating this.
30413
30414 2010-09-10  Bruno Haible  <bruno@clisp.org>
30415
30416         langinfo: Fix last commit.
30417         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30418         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30420
30421 2010-09-10  Bruno Haible  <bruno@clisp.org>
30422
30423         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30424         * lib/progreloc.c (O_EXEC): Define fallback.
30425
30426 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30427
30428         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30429         * NEWS: Document recent changes to fcntl-h.
30430         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30431         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30432         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30433         Similarly for O_SEARCH; this last was already true, but not documented.
30434         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30435         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30436         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30437         Likewise.
30438         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30439         is zero, not whether it is defined.
30440         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30441         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30442         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30443
30444 2010-09-10  Bruno Haible  <bruno@clisp.org>
30445
30446         langinfo, nl_langinfo: Fix for IRIX 5.3.
30447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30448         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30449         HAVE_LANGINFO_YESEXPR.
30450         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30451         HAVE_LANGINFO_YESEXPR.
30452         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30453         HAVE_LANGINFO_T_FMT_AMPM is 0.
30454         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30455         HAVE_LANGINFO_YESEXPR is 0.
30456         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30457         NOEXPR.
30458         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30459         * doc/posix-functions/nl_langinfo.texi: Likewise.
30460         Reported by Eric Blake.
30461
30462 2010-09-10  Bruno Haible  <bruno@clisp.org>
30463
30464         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30465         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30466         on FreeBSD 8.0 and OpenBSD 4.6.
30467         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30468         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30469         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30470         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30471         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30472         ac_includes_default.
30473         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30474
30475 2010-09-09  Eric Blake  <eblake@redhat.com>
30476
30477         strsignal: work around NetBSD bug
30478         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30479         * lib/string.in.h (includes): Likewise.
30480         * doc/posix-functions/strsignal.texi (strsignal): Document the
30481         bug.
30482         Reported by Nelson H. F. Beebe.
30483
30484         gnulib-tool: work with NetBSD /bin/sh
30485         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30486         (func_get_description, func_get_comment, func_get_status)
30487         (func_get_notice, func_get_applicability, func_get_filelist)
30488         (func_get_dependencies, func_get_autoconf_early_snippet)
30489         (func_get_autoconf_snippet, func_get_automake_snippet)
30490         (func_get_include_directive, func_get_link_directive)
30491         (func_get_license, func_get_maintainer, func_import): Avoid
30492         shell syntax errors from parsing syntax extensions.
30493
30494 2010-09-09  Bruno Haible  <bruno@clisp.org>
30495
30496         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30497         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30498         a reliable way to determine whether the 'alias' command works.
30499
30500 2010-09-08  Jim Meyering  <meyering@redhat.com>
30501
30502         init.sh: penalize a set-x-impaired shell; don't disqualify it
30503         * tests/init.sh: Too many shells corrupt application stderr when
30504         you set -x, so we can't afford to disqualify them, since at least
30505         on Irix-6.5, that would disqualify all bourne shells.
30506         Instead, use a two-pass approach.
30507         On the first pass, try to find a shell that meets the stricter
30508         condition that set -x does not corrupt stderr.
30509         If no shell meets the stricter condition, retest each candidate
30510         shell, but without that extra condition.  Finally, when
30511         VERBOSE=yes is requested and set -x might cause trouble, simply
30512         issue a warning and refrain from enabling debug output.
30513
30514 2010-09-08  Eric Blake  <eblake@redhat.com>
30515
30516         unsetenv: fix OpenBSD bug
30517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30518         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30519         documentation.
30520         Reported by Jim Meyering.
30521
30522         strtod: work around IRIX 6.5 bug
30523         * lib/strtod.c (strtod): Reparse number on shorter string if
30524         exponent parse was invalid.
30525         * tests/test-strtod.c (main): Add check for "0x1p 2".
30526         Reported by Tom G. Christensen.
30527
30528         getopt: optimize previous patch
30529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30530         empty variable.  Speed up awk script.
30531         Reported by Paolo Bonzini.
30532
30533 2010-09-08  Jim Meyering  <meyering@redhat.com>
30534
30535         test.sh: disqualify shells for which set -x corrupts stderr
30536         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30537         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30538         appear in stderr output.  For example, this command:
30539             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30540         prints "P=1" on those two systems:
30541
30542 2010-09-08  Bruno Haible  <bruno@clisp.org>
30543
30544         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30545         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30546         commands, because some shells ignore redirections when there is an
30547         error in the command lookup.
30548         Reported by Eric Blake.
30549
30550 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30551
30552         * lib/regex.h: Fix a mention of `regex_compile' (should be
30553         `re_compile_pattern').
30554         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30555         (re_set_registers): Correct name of parameter in comment.
30556
30557         * doc/regex.texi: Add documentation for missing syntax flags.
30558         Remove commented-out documentation of defunct syntax option
30559         RE_NO_EMPTY_ALTS.
30560         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30561         Add documentation of re_set_registers.
30562         Document trick to re-use a pattern buffer by setting fastmap manually.
30563         Update documentation of struct re_pattern_buffer per public members.
30564         Uncomment documentation of equivalence class operators and
30565         collating symbol operators, since they are now implemented,
30566         Explain leftmost-longest matching in relation to alternatives.
30567         Tidy documentation of substring matching.
30568         Remove POSIX documentation, which is done better in
30569         glibc, and refer the reader there. Keep BSD API documentation, as
30570         that is not readily available elsewhere.
30571
30572 2010-09-07  Eric Blake  <eblake@redhat.com>
30573
30574         getopt: handle POSIXLY_CORRECT set but not exported
30575         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30576         export state of POSIXLY_CORRECT, due to bash set -o posix.
30577         Reported by Dustin J. Mitchell.
30578
30579 2010-09-05  Bruno Haible  <bruno@clisp.org>
30580
30581         gnulib-tool: Highlight the changed options.
30582         * gnulib-tool (func_usage): Display the --import, --add-import,
30583         --remove-import explanations in bold font.
30584
30585 2010-09-06  Karl Berry  <karl@gnu.org>
30586
30587         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30588
30589 2010-09-05  Bruno Haible  <bruno@clisp.org>
30590
30591         uniwidth/width: Update comment.
30592         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30593         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30594
30595 2010-09-05  Bruno Haible  <bruno@clisp.org>
30596
30597         isinf, isnan: Relax license.
30598         * modules/isinf (License): Change from GPL to LGPL, with consent from
30599         Ben Pfaff.
30600         * modules/isnan (License): Likewise.
30601         Requested by Ludovic Courtès.
30602
30603 2010-09-04  Bruno Haible  <bruno@clisp.org>
30604
30605         gnulib-tool: Help migration from --import to --add-import or --update.
30606         * gnulib-tool: Emit a verbose error message when --import is used
30607         without any module name.
30608
30609 2010-09-04  Bruno Haible  <bruno@clisp.org>
30610
30611         Update doc about gnulib-tool.
30612         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30613         'gnulib-tool --update' in more detail.
30614         Reported by Eric Blake.
30615
30616 2010-09-04  Bruno Haible  <bruno@clisp.org>
30617
30618         gnulib-tool: Change --import. New options --add/remove-import.
30619         * gnulib-tool: New options --add-import, --remove-import.
30620         (func_usage): Document them.
30621         (have_associative): Define always.
30622         (func_import): In import mode, don't merge the specified settings with
30623         the cached settings. Implement remove-import mode.
30624         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30625         Explain when to use them versus --import.
30626         (Simple update): Use --add-import instead of --import.
30627         * NEWS: Mention the change.
30628
30629 2010-09-04  Bruno Haible  <bruno@clisp.org>
30630
30631         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30632         separate gnulib.mk.
30633
30634 2010-09-04  Bruno Haible  <bruno@clisp.org>
30635
30636         gnulib-tool: Don't talk about CVS any more.
30637         * gnulib-tool (func_usage, func_import): Write "version control"
30638         instead of CVS.
30639
30640 2010-09-04  Jim Meyering  <meyering@redhat.com>
30641
30642         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30643         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30644         false positives (whose names may be ill-chosen) when searching
30645         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30646         would cause a false-positive.
30647
30648         avoid coreutils "make distcheck" failure
30649         Coreutils tests with an absolute build directory name that contains
30650         a space.  Not quoting this directory name caused a failure.
30651         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30652         * tests/test-vc-list-files-cvs.sh: Likewise.
30653
30654 2010-09-04  Bruno Haible  <bruno@clisp.org>
30655
30656         gnulib-tool: Avoid error when run in a package without Makefile.am.
30657         * gnulib-tool: When collecting the m4dirs in a package that does not
30658         have a Makefile.am, eliminate those directories that contain no
30659         gnulib-cache.m4. Fix expression that counts these directories.
30660
30661 2010-09-04  Bruno Haible  <bruno@clisp.org>
30662
30663         update-copyright test: Improve output when perl is missing or too old.
30664         * tests/test-update-copyright.sh: Move test of Perl version down after
30665         the test whether Perl exists. Provide an explanation relating Perl's
30666         error message to Automake's SKIP: message.
30667
30668 2010-09-04  Bruno Haible  <bruno@clisp.org>
30669
30670         Don't augment PATH in TESTS_ENVIRONMENT.
30671         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30672         set abs_aux_dir instead of augmenting PATH.
30673         * modules/vc-list-files-tests (Makefile.am): Likewise.
30674         * tests/test-update-copyright.sh: Augment PATH here.
30675         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30676         path_prepend_.
30677         * tests/test-vc-list-files-git.sh: Likewise.
30678
30679 2010-09-04  Jim Meyering  <meyering@redhat.com>
30680
30681         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30682         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30683
30684 2010-09-04  Bruno Haible  <bruno@clisp.org>
30685
30686         strdup: Fix compilation error in C++ mode.
30687         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30688         the macro.
30689
30690 2010-09-04  Bruno Haible  <bruno@clisp.org>
30691
30692         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30693         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30694         macro into a function.
30695         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30696
30697 2010-09-04  Bruno Haible  <bruno@clisp.org>
30698
30699         Set PATH_SEPARATOR the same way autoconf does.
30700         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30701         the value of PATH_SEPARATOR the same way autoconf-generated configure
30702         scripts do.
30703         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30704         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30705
30706 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30707
30708         Set PATH_SEPARATOR the same way autoconf does.
30709         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30710         the same way autoconf-generated configure scripts do.
30711         * posix-modules: Likewise.
30712
30713 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30714
30715         hash: fix safe_hasher const typo
30716         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30717         const; otherwise, there is a type error later.
30718
30719 2010-09-02  Jim Meyering  <meyering@redhat.com>
30720
30721         test-update-copyright.sh: require perl 5.8.0
30722         * tests/test-update-copyright.sh: Require 5.8.0,
30723         which Tom G. Christensen has confirmed is adequate,
30724         while 5.6.1 is not.
30725
30726 2010-09-02  Eric Blake  <eblake@redhat.com>
30727
30728         tests: init.sh improvements for re-exec'ing with zsh
30729         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30730         -vx through shell re-exec.
30731         Reported by Tom G. Christensen.
30732
30733         wctype: fix typo in previous commit
30734         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30735         Reported by Ludovic Courtès.
30736
30737 2010-09-02  Jim Meyering  <meyering@redhat.com>
30738
30739         test-update-copyright.sh: skip test if Perl is too old
30740         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30741         Reported by Tom G. Christensen.
30742
30743 2010-09-02  Bruno Haible  <bruno@clisp.org>
30744
30745         wctype: Avoid compilation error on IRIX 6.5.30.
30746         * lib/wctype.in.h (iswblank): Declare with a replacement if
30747         REPLACE_ISWBLANK is set.
30748         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30749         declared. Set REPLACE_ISWBLANK.
30750         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30751         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30752         * doc/posix-headers/wctype.texi: Likewise.
30753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30754
30755 2010-09-01  Bruno Haible  <bruno@clisp.org>
30756
30757         New module 'socketlib'.
30758         * modules/socketlib: New file.
30759         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30760         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30761         * modules/sockets (Depends-on): Add socketlib.
30762         Suggested by Sam Steingold <sds@gnu.org>.
30763
30764 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30765
30766         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30767
30768         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30769         when one needs search access to a directory but not read access.
30770         On systems where it is available, it works in some cases where
30771         O_RDONLY does not, namely on directories that are searchable but
30772         not readable, and which need only to be searchable.  If O_SEARCH
30773         is not available, fall back to the traditional method of using
30774         O_RDONLY.
30775
30776         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30777         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30778         when opening a directory that needs only to be searchable.
30779         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30780         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30781         * lib/openat-proc.c (openat_proc_name): Likewise.
30782         * lib/openat.c (openat_needs_fchdir): Likewise.
30783         * lib/save-cwd.c (save_cwd): Likewise.
30784         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30785
30786 2010-08-28  Bruno Haible  <bruno@clisp.org>
30787
30788         New module 'host-cpu-c-abi'.
30789         * modules/host-cpu-c-abi: New file.
30790         * m4/host-cpu-c-abi.m4: New file, based on part of
30791         clisp/src/m4/general.m4.
30792         Requested by Sam Steingold <sds@gnu.org>.
30793
30794 2010-08-31  Eric Blake  <eblake@redhat.com>
30795         and Jim Meyering  <meyering@redhat.com>
30796
30797         hash: factor, and guard against misbehaving hasher function
30798         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30799         of table->hasher's return value.  Also protect against a hash value
30800         so large that adding it to table->bucket results in a NULL pointer.
30801         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30802         Use it in place of open-coded check-and-abort.
30803
30804 2010-08-30  Bruno Haible  <bruno@clisp.org>
30805
30806         hash: silence spurious clang warning
30807         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30808         Reported by Eric Blake.
30809
30810 2010-08-30  Eric Blake  <eblake@redhat.com>
30811
30812         strstr, memmem, strcasestr: avoid leaked shell message
30813         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30814         FreeBSD.
30815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30817
30818         tests: silence clang warning
30819         * tests/test-malloca.c (do_allocation): Avoid dead store.
30820
30821 2010-08-29  Bruno Haible  <bruno@clisp.org>
30822
30823         gettext: Fix recent mistake.
30824         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30825
30826 2010-08-29  Bruno Haible  <bruno@clisp.org>
30827
30828         selinux-h: Offer a --without-selinux option.
30829         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30830         --without-selinux was specified, skip all tests and define
30831         HAVE_SELINUX_SELINUX_H to 0.
30832         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30833         set LIB_SELINUX to empty.
30834         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30835         gl_LIBSELINUX. If --without-selinux was specified, replace
30836         selinux/context.h.
30837         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30838
30839 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30840             Bruno Haible  <bruno@clisp.org>
30841
30842         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30843         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30844         of HAVE_REALLOC.
30845         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30846         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30847         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30848         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30849
30850 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30851             Bruno Haible  <bruno@clisp.org>
30852
30853         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30854         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30855         HAVE_CALLOC.
30856         * lib/xmalloc.c: Update accordingly.
30857         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30858         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30859         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30860
30861 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30862             Bruno Haible  <bruno@clisp.org>
30863
30864         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30865         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30866         HAVE_MALLOC.
30867         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30868         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30869         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30870
30871 2010-08-29  Bruno Haible  <bruno@clisp.org>
30872
30873         Update modules list.
30874         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30875         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30876         (String handling <string.h>): Add astrxfrm.
30877         (File system functions): Add readlinkat.
30878
30879 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30880
30881         Tests for module 'realloc-gnu'.
30882         * modules/realloc-gnu-tests: New file.
30883         * tests/test-realloc-gnu.c: New file.
30884
30885         Tests for module 'calloc-gnu'.
30886         * modules/calloc-gnu-tests: New file.
30887         * tests/test-calloc-gnu.c: New file.
30888
30889         Tests for module 'malloc-gnu'.
30890         * modules/malloc-gnu-tests: New file.
30891         * tests/test-malloc-gnu.c: New file.
30892
30893 2010-08-28  Bruno Haible  <bruno@clisp.org>
30894
30895         Rename module 'realloc' -> 'realloc-gnu'.
30896         * modules/realloc-gnu: New file, copied from modules/realloc.
30897         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30898         obsolete.
30899         * modules/mgetgroups (Depends-on): Update.
30900         * doc/posix-functions/realloc.texi: Update.
30901         * NEWS: Mention the change.
30902
30903         Rename module 'calloc' -> 'calloc-gnu'.
30904         * modules/calloc-gnu: New file, copied from modules/calloc.
30905         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30906         obsolete.
30907         * doc/posix-functions/calloc.texi: Update.
30908         * NEWS: Mention the change.
30909
30910         Rename module 'malloc' -> 'malloc-gnu'.
30911         * modules/malloc-gnu: New file, copied from modules/malloc.
30912         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30913         obsolete.
30914         * modules/argp (Depends-on): Update.
30915         * modules/regex (Depends-on): Update.
30916         * doc/posix-functions/malloc.texi: Update.
30917         * NEWS: Mention the change.
30918
30919 2010-08-28  Eric Blake  <eblake@redhat.com>
30920
30921         pread, pwrite: add missing dependency
30922         * modules/pread (Depends-on): Add extensions.
30923         * modules/pwrite (Depends-on): Likewise.
30924
30925 2010-08-28  Bruno Haible  <bruno@clisp.org>
30926
30927         unistr/u*-strchr: Fix tests dependencies.
30928         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30929         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30930         Reported by Ian Beckwith <ianb@erislabs.net>.
30931
30932 2010-08-28  Bruno Haible  <bruno@clisp.org>
30933
30934         read-file: Don't occupy too much unused memory.
30935         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30936
30937 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30938             Eric Blake  <eblake@redhat.com>
30939             Bruno Haible  <bruno@clisp.org>
30940
30941         read-file: Avoid memory reallocations with regular files.
30942         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30943         (fread_file): With regular files, use the remaining length as the
30944         initial buffer size.  Check against overflow.
30945         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30946         sys_stat.
30947
30948 2010-08-28  Bruno Haible  <bruno@clisp.org>
30949
30950         ftello: Relax license.
30951         * modules/ftello (License): Relax to LGPLv2+.
30952         Reported by Eric Blake.
30953
30954 2010-08-28  Bruno Haible  <bruno@clisp.org>
30955
30956         Avoid relocwrapper link errors due to gnulib replacement functions.
30957         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30958         function.
30959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30960
30961 2010-08-28  Bruno Haible  <bruno@clisp.org>
30962
30963         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30964         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30965         defined.
30966         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30967         Suggested by Eric Blake.
30968
30969 2010-08-28  Bruno Haible  <bruno@clisp.org>
30970
30971         sys_socket, netdb: Ensure socklen_t gets defined.
30972         * modules/sys_socket (Depends-on): Add socklen.
30973         * modules/netdb (Depends-on): Likewise.
30974         * modules/getaddrinfo (Depends-on): Remove socklen.
30975         * modules/getsockopt (Depends-on): Likewise.
30976         * modules/setsockopt (Depends-on): Likewise.
30977         * tests/test-sys_socket.c: Check that socklen_t is defined.
30978         * tests/test-netdb.c: Likewise.
30979         * m4/socklen.m4: Update comments.
30980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30981
30982 2010-08-27  Eric Blake  <eblake@redhat.com>
30983
30984         login_tty: add missing dependency
30985         * modules/login_tty (Depends-on): Add pty.
30986
30987 2010-08-26  Eric Blake  <eblake@redhat.com>
30988
30989         lib-symbol-versions: fix m4 quoting
30990         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30991         format for AC_LINK_IFELSE.
30992
30993         glob: fix compile test
30994         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30995
30996         btowc: fix missing file
30997         * modules/btowc (Files): Also ship locale-fr.m4.
30998
30999         lseek: fix link test
31000         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31001         AC_LINK_IFELSE.
31002
31003         include_next: silence autoconf 2.68 warning
31004         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31005         AC_COMPILE_IFELSE as special.
31006         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31007         autoconf < 2.68.
31008
31009         acl: fix compilation test
31010         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31011         AC_COMPILE_IFELSE.
31012
31013 2010-08-26  Bruno Haible  <bruno@clisp.org>
31014
31015         Modernize AC_TRY_RUN invocations.
31016         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31017         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31018         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31019         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31020         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31021         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31024         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31025         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31027         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31028         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31031         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31032         gl_MBRLEN_NUL_RETVAL): Likewise.
31033         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31034         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31035         Likewise.
31036         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31037         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31038         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31039         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31040         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31041         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31042         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31043         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31044         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31045         Likewise.
31046         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31047         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31049         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31050         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31051         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31052         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31053         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31054         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31056
31057 2010-08-26  Bruno Haible  <bruno@clisp.org>
31058
31059         Modernize AC_TRY_LINK invocations.
31060         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31061         AC_TRY_LINK.
31062         * m4/argp.m4 (gl_ARGP): Likewise.
31063         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31064         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31065         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31066         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31067         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31068         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31069         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31070         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31071         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31072         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31074         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31075         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31076         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31077         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31078         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31079         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31080         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31081         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31082         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31083         Likewise.
31084         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31085         Likewise.
31086         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31087         Likewise.
31088         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31090         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31091         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31092         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31093         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31094         * m4/servent.m4 (gl_SERVENT): Likewise.
31095         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31096         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31097         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31098         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31099         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31100         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31101         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31102         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31103         * modules/tsearch-tests (configure.ac): Likewise.
31104
31105 2010-08-26  Bruno Haible  <bruno@clisp.org>
31106
31107         Modernize AC_TRY_COMPILE invocations.
31108         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31109         AC_TRY_COMPILE.
31110         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31111         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31112         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31113         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31114         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31115         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31116         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31117         * m4/lock.m4 (gl_LOCK): Likewise.
31118         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31119         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31120         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31121         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31122         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31123         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31124         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31126         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31127         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31128         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31129         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31130         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31131         extraneous semicolon.
31132
31133 2010-08-26  Jim Meyering  <meyering@redhat.com>
31134
31135         stat-time: relax license LGPL
31136         * modules/stat-time (License): Change from GPL to LGPL,
31137         with consent from all contributors, for use in libguile.
31138         Requested by Ludovic Courtès.
31139
31140 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31141
31142         poll: return immediately on POLLHUP.
31143         * lib/poll.c (poll): Always set timeout before wait_timeout is
31144         computed.
31145
31146 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31147
31148         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31149         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31150         rmdir ("dir/.//"), unlinkat.
31151
31152 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31153
31154         stdbool: avoid spurious failure with modern xlc
31155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31156
31157 2010-08-24  Bruno Haible  <bruno@clisp.org>
31158
31159         getloadavg: simplify code
31160         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31161         gl_have_func. Update comments.
31162
31163 2010-08-24  Eric Blake  <eblake@redhat.com>
31164
31165         getloadavg: don't define SVR4 on cygwin
31166         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31167         only define SVR4 when -lkvm is required.
31168         Reported by Yaakov Selkowitz.
31169
31170 2010-08-24  Bruno Haible  <bruno@clisp.org>
31171
31172         priv-set: fix comment
31173         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31174
31175 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31176
31177         priv-set: fix comments
31178         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31179         to match code, as suggested by David Bartley in:
31180         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31181
31182 2010-08-23  Eric Blake  <eblake@redhat.com>
31183
31184         stdbool: avoid rejecting clang
31185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31186         * tests/test-stdbool.c: Enable more tests if using the system
31187         <stdbool.h> instead of the gnulib replacement.
31188         (main): Move xlc bug test to a runtime test for all compilers.
31189         Reported by Anders Kaseorg.
31190
31191         argz: fix shell quoting issue
31192         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31193         Reported by Charles Wilson.
31194
31195 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31196             Erik Faye-Lund <kusmabite@gmail.com>
31197
31198         poll, select: handle ERROR_BROKEN_PIPE.
31199         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31200         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31201         * lib/select.c (win32_compute_revents): Do not mark a pipe
31202         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31203
31204 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31205
31206         fts: allow compilation with C++
31207         * lib/fts_.h: Specify extern "C" linkage with C++.
31208
31209 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31210
31211         Fix gnulib-tool sed script de-commentation for AIX sed.
31212         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31213         sed.
31214
31215 2010-08-17  Eric Blake  <eblake@redhat.com>
31216
31217         test-stddef: test for (some) offsetof bugs
31218         * tests/test-stddef.c: Enhance test to ensure correct type of
31219         offsetof.
31220         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31221         that we are not fixing at this time.
31222
31223 2010-08-15  Bruno Haible  <bruno@clisp.org>
31224
31225         stpncpy: Allow stpncpy to be defined as a macro.
31226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31227         if it's already correctly declared.
31228         * lib/string.in.h (stpncpy): Undefine before redefining.
31229         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31230
31231 2010-08-14  Bruno Haible  <bruno@clisp.org>
31232
31233         Rename module 'memxfrm' to 'amemxfrm'.
31234         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31235         (amemxfrm): Renamed from memxfrm.
31236         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31237         (amemxfrm): Renamed from memxfrm.
31238         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31239         * NEWS: Mention the change.
31240         * MODULES.html.sh (String handling <string.h>): Update.
31241         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31242         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31243         * lib/unicase/u16-casexfrm.c: Likewise.
31244         * lib/unicase/u32-casexfrm.c: Likewise.
31245         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31246         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31247         * lib/uninorm/u16-normxfrm.c: Likewise.
31248         * lib/uninorm/u32-normxfrm.c: Likewise.
31249         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31250         memxfrm.
31251         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31252         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31253         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31254         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31255         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31256         Suggested by Paul Eggert.
31257
31258 2010-08-14  Bruno Haible  <bruno@clisp.org>
31259
31260         Tests for module 'astrxfrm'.
31261         * modules/astrxfrm-tests: New file.
31262         * tests/test-astrxfrm.c: New file.
31263
31264         New module 'astrxfrm'.
31265         * lib/astrxfrm.h: New file.
31266         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31267         * modules/astrxfrm: New file.
31268
31269 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31270
31271         regex: Tweak doc.
31272         * doc/regex.texi (Overview): Don't mention regex.c.
31273         (GNU Regular Expression Compiling): Likewise.
31274         (Match-end-of-line Operator): Mention 'not_eol'.
31275
31276 2010-08-14  Brian Gough  <bjg@gnu.org>
31277             Bruno Haible  <bruno@clisp.org>
31278
31279         git-merge-changelog: add doc relating to use with bzr and hg.
31280         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31281
31282 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31283
31284         pthread: fix pthread.h creation for srcdir != builddir
31285         * modules/pthread (Makefile.am): Fix the rule to work also in a
31286         non-srcdir build.
31287
31288 2010-08-13  Karl Berry  <karl@gnu.org>
31289
31290         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31291         * doc/posix-*/*: force line break before @url of POSIX
31292         specifications.
31293         Suggested by Werner Lemberg.
31294
31295 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31296
31297         strtod: fix const diagnostic
31298         * lib/strtod.c (strtod): Don't assign const char * to char *,
31299         as this elicits a warning from GCC when warnings are enabled.
31300
31301 2010-08-10  Pádraig Brady <P@draigbrady.com>
31302         and Eric Blake  <eblake@redhat.com>
31303
31304         copy-acl: ignore ENOTSUP on HP-UX
31305         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31306         so that it is available for HP-UX.
31307         * lib/copy-acl.c (qcopy_acl): Use it.
31308         Reported by Patrick M. Callahan.
31309
31310 2010-08-10  Eric Blake  <eblake@redhat.com>
31311
31312         open, chown: relax license
31313         * modules/open (License): Change to LGPLv2+, with consent by all
31314         authors, for use in augeas.
31315         * modules/chown (License): Likewise.
31316         * modules/lchown (Likewise): Likewise.
31317         Requested by Adam Stokes.
31318
31319 2010-08-09  Karl Berry  <karl@gnu.org>
31320
31321         * build-aux/ar-lib: new file, import from Automake.
31322         * config/srclist.txt: autocheck for updates.
31323
31324 2010-08-09  Eric Blake  <eblake@redhat.com>
31325
31326         readlinkat: adjust client modules
31327         * modules/areadlinkat (Depends-on): Use readlinkat, not
31328         symlinkat.
31329         * modules/areadlinkat-with-size (Depends-on): Likewise.
31330
31331         mknod: be more vocal about danger of running tests as root
31332         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31333         root, since that is just asking for problems.
31334         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31335
31336         readlinkat: split into its own module
31337         * modules/symlinkat: Split readlinkat...
31338         * modules/readlinkat: ...into separate module.
31339         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31340         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31341         * lib/symlinkat.c (readlinkat): Move...
31342         * lib/readlinkat.c: ...into new file.
31343         * modules/symlinkat-tests: Split readlinkat test...
31344         * modules/readlinkat-tests: ...into separate module.
31345         * tests/test-symlinkat.c: Split...
31346         * tests/test-readlinkat.c: ...into new file.
31347         * NEWS: Document the split.
31348         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31349         * lib/unistd.in.h (readlinkat): Likewise.
31350         Suggested by Bruno Haible.
31351
31352 2010-08-08  Bruno Haible  <bruno@clisp.org>
31353
31354         memxfrm: Speed up.
31355         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31356         that usually only one call to strxfrm is necessary for each string
31357         part.
31358         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31359
31360 2010-08-07  Karl Berry  <karl@gnu.org>
31361
31362         * doc/posix-headers/limits.texi,
31363         * doc/posix-functions/malloc.texi,
31364         * doc/posix-functions/strsignal.texi: missing @item.
31365         * doc/ld-version-script.texi: spurious leading i.
31366         * doc/regex.texi (Interval Operators): no commas inside @var.
31367
31368 2010-08-01  Bruno Haible  <bruno@clisp.org>
31369
31370         Integrate the regex documentation.
31371         * doc/gnulib.texi: Define 'cn' index.
31372         (Regular expressions): New a chapter that includes regex.texi and
31373         regexprops-generic.texi.
31374         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31375         syntax.
31376
31377         Whitespace cleanup.
31378         * doc/regex.texi: Remove trailing spaces.
31379
31380         Add regex documentation.
31381         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31382         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31383         Written by Kathy A. Hargreaves and Karl Berry.
31384
31385 2010-08-01  Bruno Haible  <bruno@clisp.org>
31386
31387         link: Update documentation.
31388         * doc/posix-functions/link.texi: Update regarding Solaris.
31389
31390 2010-07-31  Bruno Haible  <bruno@clisp.org>
31391
31392         Update modules list.
31393         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31394         (String handling <string.h>): Add memcmp2, memxfrm.
31395         (Container data structures): Add xlist, xsublist, xoset.
31396         (Core language properties): Add alignof, unused-parameter.
31397         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31398         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31399         (Unibyte characters <ctype.h>): New section.
31400         (String handling <string.h>): New section.
31401         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31402         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31403         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31404         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31405         tan, tanh, tanl, y0, y1, yn.
31406         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31407         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31408         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31409         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31410         unlockpt, vdprintf, vdprintf-posix.
31411         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31412         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31413         xconcat-filename.
31414         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31415         getdtablesize, pipe2, pipe2-safer.
31416         (Security): New section.
31417         (Networking functions): Add accept4.
31418         (Signal handling): Add sigpipe.
31419         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31420         mbmemcasecoll.
31421         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31422         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31423         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31424         pipe-filter-ii.
31425         (Misc): Add argp-version-etc, login_tty, parse-duration.
31426
31427 2010-07-31  Bruno Haible  <bruno@clisp.org>
31428
31429         Improve doc in MODULES.html.
31430         * modules/linkat (Description): Add the word "function".
31431         * modules/mkfifo (Description): Likewise.
31432         * modules/mknod (Description): Likewise.
31433         * modules/remove (Description): Likewise.
31434         * modules/renameat (Description): Likewise.
31435         * modules/stat (Description): Likewise.
31436         * modules/symlink (Description): Likewise.
31437         * modules/unlink (Description): Likewise.
31438
31439 2010-07-31  Bruno Haible  <bruno@clisp.org>
31440
31441         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31442         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31443         option --enable/disable-c++ instead of --enable/disable-cxx.
31444         * NEWS: Mention the change.
31445
31446 2010-07-31  Bruno Haible  <bruno@clisp.org>
31447
31448         readlink, areadlink: Relax test a bit.
31449         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31450         alternative to ENOTDIR.
31451         * tests/test-areadlink.h (test_areadlink): Likewise.
31452         Reported by Rainer Tammer.
31453
31454 2010-07-31  Bruno Haible  <bruno@clisp.org>
31455
31456         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31457         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31458         character, perform the search using U_STRCHR.
31459         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31460         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31461         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31462         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31463         Suggested by Paolo Bonzini.
31464
31465 2010-07-31  Bruno Haible  <bruno@clisp.org>
31466
31467         unistr/u*-strstr: Fix dependencies.
31468         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31469         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31470         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31471
31472 2010-07-31  Bruno Haible  <bruno@clisp.org>
31473
31474         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31475         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31476         the beginning of the loop.
31477         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31478         cases in 'switch' statement.
31479
31480         unistr/u8-strchr: Fix several bugs.
31481         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31482         the string. When not found, return NULL, not a pointer near the end.
31483
31484         More tests for unistr/u8-strchr.
31485         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31486         that the function does not read past the first occurrence of the byte
31487         being searched.
31488         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31489         * tests/unistr/test-u16-strchr.c (main): New function.
31490         * tests/unistr/test-u32-strchr.c (main): New function.
31491
31492 2010-07-31  Bruno Haible  <bruno@clisp.org>
31493
31494         posix-modules: Ignore backup files of documentation files.
31495         * posix-modules: grep only through files named *.texi.
31496
31497 2010-07-31  Bruno Haible  <bruno@clisp.org>
31498
31499         symlinkat: Fix documentation.
31500         * doc/posix-functions/readlinkat.texi: Fix module name.
31501
31502 2010-07-31  Bruno Haible  <bruno@clisp.org>
31503
31504         fchownat: Replace also when chown has the trailing slash bug.
31505         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31506         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31507         introduced on 2010-04-10.
31508         Reported by Rainer Tammer.
31509
31510 2010-07-31  Bruno Haible  <bruno@clisp.org>
31511
31512         linkat: Work around AIX 7.1 bug.
31513         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31514         whether linkat handles trailing slash correctly. If not, replace linkat
31515         and define LINKAT_TRAILING_SLASH_BUG.
31516         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31517         check whether (fd1,file1) points to a directory if file1 or file2 ends
31518         in a slash. Code taken from lib/link.c.
31519         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31520         Reported by Rainer Tammer.
31521
31522 2010-07-31  Bruno Haible  <bruno@clisp.org>
31523
31524         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31525         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31526         This disables an xlc optimization that was causing wrong test results.
31527         Reported by Rainer Tammer.
31528
31529 2010-07-31  Bruno Haible  <bruno@clisp.org>
31530
31531         iconv: Work around AIX 6.1..7.1 bug.
31532         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31533         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31534         cross-compiling, guess no on all versions of AIX.
31535         Reported by Rainer Tammer.
31536
31537 2010-07-31  Bruno Haible  <bruno@clisp.org>
31538
31539         readlink: Relax test a bit.
31540         * tests/test-readlink.h (test_readlink): Allow different errno value
31541         when readlink is called with a file name that ends in / and refers to
31542         a file.
31543         Suggested by Eric Blake.
31544         Reported by Rainer Tammer.
31545
31546 2010-07-31  Bruno Haible  <bruno@clisp.org>
31547
31548         copysign: Does not require -lm on glibc systems.
31549         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31550         gl_COMMON_DOUBLE_MATHFUNC.
31551         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31552
31553 2010-07-31  Bruno Haible  <bruno@clisp.org>
31554
31555         duplocale: Work around AIX 7.1 bug.
31556         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31557         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31558         * lib/duplocale.c (rpl_duplocale): Update comment.
31559         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31560         Reported by Rainer Tammer.
31561
31562 2010-07-30  Bruno Haible  <bruno@clisp.org>
31563
31564         dirfd: Avoid link error on AIX 7.1.
31565         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31566         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31567         exist, set REPLACE_DIRFD.
31568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31569         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31570         * doc/posix-functions/dirfd.texi: Update.
31571         Reported by Rainer Tammer.
31572
31573 2010-07-30  Eric Blake  <eblake@redhat.com>
31574
31575         strtod: next round of AIX fixes
31576         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31577         exponent.
31578         * tests/test-strtod.c (main): Enhance tests.
31579         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31580         Reported by Rainer Tammer.
31581
31582         futimens: fix configure check
31583         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31584         Reported by Bruno Haible.
31585
31586 2010-07-30  Bruno Haible  <bruno@clisp.org>
31587
31588         getline: Update regarding AIX.
31589         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31590         Reported by Rainer Tammer.
31591
31592 2010-07-30  Bruno Haible  <bruno@clisp.org>
31593
31594         wcwidth: Drop replacement on AIX 7.
31595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31596         AIX 7.
31597         Reported by Rainer Tammer.
31598
31599 2010-07-30  Bruno Haible  <bruno@clisp.org>
31600
31601         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31603         a 'char *'.
31604         Reported by Rainer Tammer.
31605
31606 2010-07-30  Bruno Haible  <bruno@clisp.org>
31607
31608         unlink: Update regarding AIX.
31609         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31610         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31611         Reported by Rainer Tammer.
31612
31613 2010-07-30  Bruno Haible  <bruno@clisp.org>
31614
31615         symlink: Update regarding AIX.
31616         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31617         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31618         Reported by Rainer Tammer.
31619
31620 2010-07-30  Bruno Haible  <bruno@clisp.org>
31621
31622         strndup: Update regarding AIX.
31623         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31624         AIX 7.
31625         Reported by Rainer Tammer.
31626
31627 2010-07-30  Bruno Haible  <bruno@clisp.org>
31628
31629         stat: Update regarding AIX.
31630         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31631         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31632         Reported by Rainer Tammer.
31633
31634 2010-07-30  Bruno Haible  <bruno@clisp.org>
31635
31636         truncl: Fix autoconf test.
31637         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31638         whether truncl works.
31639         Reported by Rainer Tammer.
31640
31641 2010-07-30  Bruno Haible  <bruno@clisp.org>
31642
31643         round: Update regarding AIX.
31644         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31645         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31646         Reported by Rainer Tammer.
31647
31648 2010-07-30  Bruno Haible  <bruno@clisp.org>
31649
31650         rename: Update regarding AIX.
31651         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31652         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31653         Reported by Rainer Tammer.
31654
31655 2010-07-30  Bruno Haible  <bruno@clisp.org>
31656
31657         printf.m4: Update regarding AIX.
31658         * m4/printf.m4: Update comments regarding AIX.
31659         Reported by Rainer Tammer.
31660
31661 2010-07-30  Bruno Haible  <bruno@clisp.org>
31662
31663         iconv: Update regarding AIX.
31664         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31665         AIX 7.
31666         Reported by Rainer Tammer.
31667
31668 2010-07-30  Bruno Haible  <bruno@clisp.org>
31669
31670         getopt: Update regarding AIX.
31671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31672         no on AIX.
31673         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31674         Reported by Rainer Tammer.
31675
31676 2010-07-30  Bruno Haible  <bruno@clisp.org>
31677
31678         ldexpl; Update regarding AIX.
31679         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31680         on AIX 7.
31681         Reported by Rainer Tammer.
31682
31683 2010-07-30  Bruno Haible  <bruno@clisp.org>
31684
31685         frexpl: Update regarding AIX.
31686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31687         on AIX 7.
31688         Reported by Rainer Tammer.
31689
31690 2010-07-30  Bruno Haible  <bruno@clisp.org>
31691
31692         open, fopen: Update regarding AIX.
31693         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31694         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31695         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31696         * doc/posix-functions/fopen.texi: Likewise.
31697         Reported by Rainer Tammer.
31698
31699 2010-07-30  Bruno Haible  <bruno@clisp.org>
31700
31701         chown: Update doc regarding AIX.
31702         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31703         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31704         Reported by Rainer Tammer.
31705
31706 2010-07-30  Eric Blake  <eblake@redhat.com>
31707
31708         strtod: fix bug in replacement function on AIX
31709         * lib/strtod.c (strtod): Special case broken "0x" parse in
31710         underlying strtod.
31711         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31712         * doc/posix-functions/strtod.texi (strtod): Likewise.
31713         Reported by Rainer Tammer.
31714
31715 2010-07-30  Bruno Haible  <bruno@clisp.org>
31716
31717         mbrlen: Fix cross-compilation guess for AIX.
31718         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31719         guess. Leftover from 2008-12-22.
31720
31721 2010-07-30  Bruno Haible  <bruno@clisp.org>
31722
31723         mbrtowc: Fix cross-compilation guess for AIX.
31724         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31725         guess. Leftover from 2008-12-21.
31726
31727 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31728
31729         init.sh: work around trap limitation of some shells
31730         * tests/init.sh (setup_): Move exit trap outside of shell function.
31731
31732 2010-07-29  Eric Blake  <eblake@redhat.com>
31733
31734         strtod: aid debugging
31735         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31736         understanding why strtod is rejected.
31737
31738 2010-07-28  Bruno Haible  <bruno@clisp.org>
31739
31740         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31741         * lib/unistr/u8-chr.c: Include <string.h>.
31742         * tests/unistr/test-u8-chr.c: Likewise.
31743         * tests/unistr/test-u16-chr.c: Likewise.
31744         * tests/unistr/test-u32-chr.c: Likewise.
31745         * tests/unistr/test-u8-strchr.c: Likewise.
31746         * tests/unistr/test-u16-strchr.c: Likewise.
31747         * tests/unistr/test-u32-strchr.c: Likewise.
31748         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31749         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31750         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31751         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31752
31753 2010-07-28  Bruno Haible  <bruno@clisp.org>
31754
31755         Use spaces for indentation, not tabs.
31756         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31757
31758 2010-07-27  Bruno Haible  <bruno@clisp.org>
31759
31760         mbspcasecmp: Fix function specification.
31761         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31762         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31763         Reported by Eric Blake <eblake@redhat.com>.
31764
31765 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31766
31767         timespec: use cast and not conditional, as truncation isn't possible
31768         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31769         instead of a conditional.  Comment about the situation in more detail.
31770         This undoes most of the 2009-10-29 patch.
31771
31772 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31773
31774         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31775         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31776         * lib/unistr/u8-strchr.c: Likewise.
31777         * modules/unistr/u8-chr: Depend on memchr.
31778
31779         unistr/u*-strchr: add tests
31780         * modules/unistr/u8-strchr-tests: New file.
31781         * modules/unistr/u16-strchr-tests: New file.
31782         * modules/unistr/u32-strchr-tests: New file.
31783         * tests/unistr/test-strchr.h: New file.
31784         * tests/unistr/test-u8-strchr.c: New file.
31785         * tests/unistr/test-u16-strchr.c: New file.
31786         * tests/unistr/test-u32-strchr.c: New file.
31787
31788         unistr/u*-chr: test multibyte sequences more
31789         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31790         test vector.
31791         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31792         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31793         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31794
31795         unistr/u*-chr: test multibyte sequences
31796         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31797
31798         unistr/u*-chr: prepare for multibyte tests
31799         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31800         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31801         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31802         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31803         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31804         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31805
31806 2010-07-18  Bruno Haible  <bruno@clisp.org>
31807
31808         unistr/u8-strchr: Optimize non-ASCII argument case.
31809         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31810         because the first byte often matches anyway.
31811         Reported by Pádraig Brady <P@draigbrady.com>.
31812
31813 2010-07-15  Karl Berry  <karl@gnu.org>
31814
31815         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31816
31817 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31818
31819         getcwd: on Solaris, work better if ancestors are inaccessible
31820         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31821         buffer and size, try again with a large buffer.  This works better
31822         on Solaris, since its getcwd succeeds even if the path to the root
31823         is inaccessible, and this is helpful in common cases such as .zfs
31824         hidden directories.  Problem reported by J Chapman Flack in
31825         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31826         Use system getcwd if it's declared, not merely if it's partly
31827         working; use the partly-working test only to avoid needless effort
31828         if the system getcwd fails.
31829         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31830         comment that was already obsolete and is now even more obsolete.
31831         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31832         now might call strdup.
31833
31834 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31835
31836         pthread: Add enough so that coreutils/src/sort.c compiles.
31837         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31838         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31839         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31840         Include <sys/types.h>, in case it defines pthread_t.
31841         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31842         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31843         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31844         (pthread_rwlockattr_t, pthread_spinlock_t):
31845         New typedefs, if HAVE_PTHREAD_T is not defined.
31846         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31847         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31848         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31849         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31850         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31851         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31852         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31853         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31854         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31855         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31856         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31857         New macros.
31858         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31859         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31860         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31861         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31862         (pthread_spin_unlock): New dummy functions.
31863         (pthread_create): Return EAGAIN; don't set errno.
31864         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31865         require AC_C_INLINE.
31866         * modules/pthread (Depends-on): Add sched, time.
31867         (pthread.h): Use AM_V_GEN.
31868
31869 2010-07-13  Bruno Haible  <bruno@clisp.org>
31870
31871         striconveh: Don't malloc memory if the result buffer is sufficient.
31872         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31873         buffer if its size is sufficient.
31874         Reported by Ludovic Courtès <ludo@gnu.org>.
31875
31876 2010-07-13  Bruno Haible  <bruno@clisp.org>
31877
31878         strtod: Add safety check.
31879         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31880
31881 2010-07-12  Bruno Haible  <bruno@clisp.org>
31882
31883         Unify tests that set gl_cv_func_ldexpl_no_libm.
31884         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31885         gl_FUNC_LDEXPL.
31886         (gl_FUNC_LDEXPL): 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_ldexp_no_libm.
31892         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31893         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31894         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31895         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31896         * modules/strtod (Files): Add m4/ldexp.m4.
31897
31898 2010-07-12  Bruno Haible  <bruno@clisp.org>
31899
31900         Unify tests that set gl_cv_func_frexpl_no_libm.
31901         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31902         gl_FUNC_FREXPL_NO_LIBM.
31903         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31904         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31905
31906 2010-07-12  Bruno Haible  <bruno@clisp.org>
31907
31908         Unify tests that set gl_cv_func_frexp_no_libm.
31909         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31910         gl_FUNC_FREXP_NO_LIBM.
31911         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31912         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31913
31914 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31915
31916         memcoll: clarify sizes versus lengths, document better, and tweak perf
31917         * lib/memcoll.c (strcoll_loop, memcoll0):
31918         Improve quality of descriptive comments.  Name variables
31919         consistently as to whether they are lengths (which do not include
31920         terminating null) versus sizes (which do).
31921         * lib/xmemcoll.c (xmemcoll0): Likewise.
31922         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31923         returned when s1size == 0; this is easier to compile and saves
31924         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31925
31926 2010-07-12  Bruno Haible  <bruno@clisp.org>
31927
31928         Tests for module '_Exit'.
31929         * modules/_Exit-tests: New file.
31930         * tests/test-_Exit.sh: New file.
31931         * tests/test-_Exit.c: New file.
31932
31933         New module '_Exit'.
31934         * lib/stdlib.in.h (__attribute__): New macro.
31935         (_Exit): New declaration.
31936         * lib/_Exit.c: New file.
31937         * m4/_Exit.m4: New file.
31938         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31939         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31940         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31941         * modules/_Exit: New file.
31942         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31943         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31944
31945 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31946
31947         strtod: make it more-accurate typically, and don't require libm
31948         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31949         Include limits.h.  Don't include string.h.
31950         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31951         (locale_isspace): New function, so that no casts are needed to
31952         check whether *s is a space.
31953         (ldexp): Provide an unused dummy if not available.
31954         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31955         (strtod): Use them.  This implementation prefers to use the
31956         underlying strtod if available, falling back on our own code
31957         only to fix known bugs.  This is more likely to produce an
31958         accurate result.  Also, it avoids the use of libm functions.
31959         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31960         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31961         was absent, but it caused a test failure with coreutils.
31962         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31963         with libm.
31964         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31965         * modules/strtod-tests (Makefile.am): Likewise.
31966
31967 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31968             Bruno Haible  <bruno@clisp.org>
31969
31970         unistr/u8-strchr: Optimize ASCII argument case.
31971         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31972
31973 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31974
31975         (x)memcoll: minor tweaks
31976         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31977         is after the type that it qualifies.
31978         (memcoll0): Likewise.
31979         * lib/memcoll.h (memcoll0): Likewise.
31980         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31981         * lib/xmemcoll.h (xmemcoll0): Likewise.
31982         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31983         differs from memcoll in that the NUL byte is part of the argument.
31984         Omit the abort-checks, as performance is a real issue here.  Plus,
31985         the checks were wrong anyway (an off-by-one error).  Omit local
31986         variable 'diff', as it's a bit clearer that way.
31987         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31988         no longer needed.
31989
31990 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31991
31992         (x)memcoll: speedup when input is known to be NUL delimited
31993         * lib/memcoll.c: Include stdlib.
31994         (memcoll0): New function.
31995         (strcoll_loop): New function, refactored for use in both memcoll
31996         and memcoll0.
31997         * lib/memcoll.h (memcoll0): Add prototype.
31998         * lib/xmemcoll.c (xmemcoll0): New function.
31999         (collate_error): New function, refactored for use in both xmemcoll
32000         and xmemcoll0.
32001         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32002         * m4/memcoll.m4: add inline invocation.
32003
32004 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32005
32006         * build-aux/bootstrap: Remove any local translations
32007         from the translation project synchronization directory,
32008         so that local only translations are not distributed.
32009
32010 2010-07-04  Bruno Haible  <bruno@clisp.org>
32011
32012         fsusage: Clarify which code applies to which platforms.
32013         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32014         platform.
32015         * lib/fsusage.c (get_fs_usage): Likewise.
32016
32017 2010-07-04  Bruno Haible  <bruno@clisp.org>
32018
32019         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32020         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32021         Reported by Martin Lambers <marlam@marlam.de>.
32022
32023 2010-07-04  Jim Meyering  <meyering@redhat.com>
32024
32025         hash: once again explicitly disallow insertion of NULL
32026         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32027         inserting a NULL pointer cannot work with these functions.
32028         Add a comment with details.
32029         This reverts part of the 2010-07-01 commit, 5bef1a35
32030         "hash: extend module to deal with non-pointer keys".
32031
32032 2010-07-01  Bruno Haible  <bruno@clisp.org>
32033
32034         stdbool: Update doc.
32035         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32036         Info from Christian Weisgerber <naddy@mips.inka.de>.
32037
32038 2010-07-01  Jim Meyering  <meyering@redhat.com>
32039
32040         hash: extend module to deal with non-pointer keys
32041         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32042         but that allows insertion of non-pointer entries.
32043         Do not disallow an ENTRY value of NULL.
32044         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32045         * lib/hash.h (hash_insert0): Declare.
32046
32047 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32048
32049         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32050         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32051         not present (i.e. with autoconf 2.59 and when using gettextize, not
32052         gnulib), require AC_GNU_SOURCE instead.
32053
32054 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32055
32056         idpriv-drop: Fix tests.
32057         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32058         not to the test-idpriv-droptemp program.
32059
32060 2010-06-29  Bruno Haible  <bruno@clisp.org>
32061
32062         string: Fix syntax error with g++ 2.96.
32063         * lib/string.in.h (__pure__): Remove definition.
32064         (_GL_ATTRIBUTE_PURE): New macro.
32065         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32066         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32067         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32068
32069 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32070
32071         unitypes: Fix bug introduced on 2010-05-18.
32072         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32073
32074 2010-06-22  Eric Blake  <eblake@redhat.com>
32075
32076         memmem: slight optimization
32077         * lib/str-two-way.h (critical_factorization): Update comments.
32078         Reduce work during factorization phase.
32079         Reported by Carlos Bueno <carlos@bueno.org>.
32080
32081 2010-06-21  Bruno Haible  <bruno@clisp.org>
32082
32083         Fix HAVE_CALLOC_POSIX misnomer.
32084         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32085         !HAVE_CALLOC_POSIX.
32086         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32087         HAVE_CALLOC_POSIX.
32088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32089         instead of HAVE_CALLOC_POSIX.
32090         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32091         HAVE_CALLOC_POSIX.
32092
32093         Use modern idiom for calloc() replacement.
32094         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32095         AC_FUNC_CALLOC.
32096         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32097         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32098         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32099         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32100         (gl_REPLACE_CALLOC): New macro.
32101
32102 2010-06-21  Bruno Haible  <bruno@clisp.org>
32103
32104         Fix HAVE_REALLOC_POSIX misnomer.
32105         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32106         !HAVE_REALLOC_POSIX.
32107         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32108         HAVE_REALLOC_POSIX.
32109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32110         instead of HAVE_REALLOC_POSIX.
32111         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32112         HAVE_REALLOC_POSIX.
32113
32114         Use modern idiom for realloc() replacement.
32115         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32116         AC_FUNC_REALLOC.
32117         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32118         Autoconf's AC_FUNC_REALLOC.
32119         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32120         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32121         (gl_REPLACE_REALLOC): New macro.
32122         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32123
32124 2010-06-21  Bruno Haible  <bruno@clisp.org>
32125
32126         Fix HAVE_MALLOC_POSIX misnomer.
32127         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32128         !HAVE_MALLOC_POSIX.
32129         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32130         HAVE_MALLOC_POSIX.
32131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32132         instead of HAVE_MALLOC_POSIX.
32133         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32134         HAVE_MALLOC_POSIX.
32135
32136         Use modern idiom for malloc() replacement.
32137         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32138         AC_FUNC_MALLOC.
32139         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32140         Autoconf's AC_FUNC_MALLOC.
32141         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32142         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32143         (gl_REPLACE_MALLOC): New macro.
32144         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32145
32146 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32147
32148         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32149         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32150         This macro takes 3 arguments, not 4.
32151
32152 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32153
32154         ipv6: fix detection under mingw
32155         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32156         in6_addr.
32157
32158 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32159
32160         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32161         that strtod() works when cross-compiling to a glibc version known
32162         to work.
32163
32164 2010-06-15  Bruno Haible  <bruno@clisp.org>
32165
32166         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32167
32168 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32169
32170         select: Correct timeout.
32171         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32172
32173 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32174
32175         git-version-gen: init shell var to avoid env var influence
32176         * build-aux/git-version-gen (v): Init shell var to empty.
32177
32178 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32179
32180         priv-set: Don't assume that priv.h exists merely because getppriv does.
32181         See Jan Andersen's bug report about AIX 5L in
32182         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32183         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32184         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32185         * lib/priv-set.h: Likewise.
32186         * tests/test-priv-set.c: Likewise.
32187
32188 2010-06-13  Bruno Haible  <bruno@clisp.org>
32189
32190         relocatable: Make it easier to test whether to install wrappers.
32191         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32192         RELOCATABLE_VIA_WRAPPER.
32193
32194 2010-06-13  Bruno Haible  <bruno@clisp.org>
32195
32196         gnulib-tool: Display specified modules and dependencies differently.
32197         * gnulib-tool (func_show_module_list): New function.
32198         (func_import, func_create_testdir): Invoke it.
32199         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32200
32201 2010-06-13  Bruno Haible  <bruno@clisp.org>
32202
32203         gnulib-tool: Align code of func_import and func_create_testdir.
32204         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32205         specified_modules.
32206
32207 2010-06-12  Jim Meyering  <meyering@redhat.com>
32208
32209         test-inttostr: avoid spurious failure on Solaris 9
32210         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32211         to accept "%ju".  Reported by Bruno Haible.
32212
32213 2010-06-11  Jim Meyering  <meyering@redhat.com>
32214
32215         test-sys_socket: mark variables as used more readably
32216         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32217         as "used" explicitly via (void) statement casts.  This is more
32218         readable than using them in an artificial return expression.
32219         Suggestion from Bruno Haible.
32220
32221 2010-06-11  Bruno Haible  <bruno@clisp.org>
32222
32223         Avoid some more warnings from "gcc -Wwrite-strings".
32224         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32225         to 'const char *'.
32226         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32227         * tests/test-c-strcasestr.c (main): Likewise.
32228         * tests/test-mbscasestr1.c (main): Likewise.
32229         * tests/test-mbscasestr2.c (main): Likewise.
32230         * tests/test-memmem.c (main): Likewise.
32231         * tests/test-strstr.c (main): Likewise.
32232         * tests/test-strcasestr.c (main): Likewise.
32233
32234 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32235
32236         init.sh: change framework_failure_ to fail with status 99, not 1
32237         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32238         automake's parallel-tests rule that this is an unexpected failure,
32239         even if the test is listed in XFAIL_TESTS.
32240
32241 2010-06-11  Jim Meyering  <meyering@redhat.com>
32242
32243         test-inttostr: avoid warnings about 4-6KB literal strings
32244         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32245         Include "macros.h", for its definition of ASSERT.
32246         (CK): s/assert/ASSERT/
32247         * modules/inttostr-tests (Files): Add macros.h.
32248
32249         init.sh: don't use $ME_ or skip_ before they are defined
32250         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32251         their first uses.  Also hoist their companions: warn_, fail_,
32252         framework_failure_, $stderr_fileno.  Prompted by a patch from
32253         Stefano Lattarini.
32254
32255         test-sys_socket: avoid set-but-not-used warnings from gcc
32256         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32257         avoid warning about set-but-not-used variables.
32258
32259         test-xvasprintf: avoid 'const' discard warnings
32260         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32261         "const" when assigning from literal strings.
32262         (test_xasprintf): Add "void" in function argument list to placate
32263         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32264
32265         tests: avoid compilation warnings in argmatch and exclude tests...
32266         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32267         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32268         Since it always exits, declare with the "noreturn" attribute.
32269         * tests/test-argmatch.c: Likewise.
32270
32271         tests: avoid 'const' discard warnings in mbsstr tests
32272         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32273         * tests/test-mbsstr2.c (main): Likewise.
32274
32275         test-verify: avoid warning from gcc's -Wmissing-declarations
32276         * tests/test-verify.c (function): Declare to be static.
32277
32278         test-inttostr.c: include <string.h> for use of strcmp
32279         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32280
32281         test-linkat: avoid failed assertion on "other" architectures
32282         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32283         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32284         sparc: https://bugs.launchpad.net/bugs/591968
32285
32286 2010-06-11  Jim Meyering  <meyering@redhat.com>
32287
32288         printf.m4: avoid autoconf's "Expanded Before Required" warning
32289         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32290         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32291         autoconf warning.
32292
32293 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32294
32295         Replacement header templates are now named with ".in", not "_".
32296         * doc/gnulib-intro.texi: Correct.
32297
32298 2010-06-10  Jim Meyering  <meyering@redhat.com>
32299
32300         inttostr-tests: depend on snprintf, not snprintf-posix
32301         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32302         snprintf-posix, to avoid this aclocal failure:
32303           missing file gnulib-tests/vasnprintf.c
32304           configure.ac:45: error: expected source file, required through \
32305           AC_LIBSOURCES, not found
32306
32307 2010-06-10  Jim Meyering  <meyering@redhat.com>
32308
32309         inttostr: add a new function, inttostr, and tests
32310         The namesake function was not available.  The existence of the
32311         template file, inttostr.c makes its addition nontrivial.
32312         * lib/anytostr.c: Rename from inttostr.c.
32313         (anytostr): Rename from inttostr.
32314         * lib/inttostr.c: New file.
32315         * modules/inttostr (Files): Add anytostr.c.
32316         (Makefile.am): Set lib_SOURCES instead of ...
32317         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32318         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32319         * lib/offtostr.c: Likewise.
32320         * lib/uinttostr.c: Likewise.
32321         * lib/umaxtostr.c: Likewise.
32322         * modules/inttostr-tests: New file.
32323         * tests/test-inttostr.c: New file.  Test these functions.
32324
32325 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32326             Bruno Haible  <bruno@clisp.org>
32327
32328         Add "Extending Gnulib" chapter to manual.
32329         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32330         chapter.
32331         (Extending Gnulib): New chapter.
32332         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32333         chapter.
32334
32335 2010-06-09  Bruno Haible  <bruno@clisp.org>
32336
32337         Avoid relocwrapper link errors due to gnulib replacement functions.
32338         * lib/areadlink.c: Use the system's malloc, realloc functions.
32339         (areadlink): Set errno to ENOMEM explicitly.
32340         * modules/areadlink (Depends-on): Remove malloc-posix.
32341         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32342
32343 2010-06-09  Bruno Haible  <bruno@clisp.org>
32344
32345         Avoid relocwrapper link errors due to gnulib replacement functions.
32346         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32347         * lib/malloca.c: Likewise.
32348         * lib/relocatable.c: Likewise.
32349         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32350         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32351         * lib/setenv.c: Use the system's malloc, realloc functions.
32352         * lib/strerror.c: Use the system's sprintf function.
32353         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32354
32355 2010-06-04  Bruno Haible  <bruno@clisp.org>
32356
32357         Prefer documented low-level autoconf macro names.
32358         * m4/lib-link.m4: Use m4_translit instead of translit.
32359         * m4/environ.m4: Likewise.
32360         * m4/mathfunc.m4: Likewise.
32361         * m4/onceonly.m4: Likewise.
32362         * m4/stdint.m4: Likewise.
32363         Suggested by Eric Blake.
32364
32365 2010-06-04  Martin Lambers  <marlam@marlam.de>
32366             Bruno Haible  <bruno@clisp.org>
32367
32368         havelib: Allow library names with '+' characters.
32369         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32370         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32371
32372 2010-06-09  Bruno Haible  <bruno@clisp.org>
32373
32374         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32375         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32376         realloc failed.
32377
32378 2010-06-08  Peter Simons  <simons@cryp.to>
32379
32380         maint.mk: make the news-check rule more configurable
32381         * top/maint.mk (news-check-lines-spec): New variable.
32382         (news-check): Use "sed -n 1,10p" in place of "head".
32383
32384 2010-06-07  Jim Meyering  <meyering@redhat.com>
32385
32386         do-release-commit-and-tag: fix typo in --help
32387         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32388
32389         regex: avoid new dead-code warning with gcc-4.6.0
32390         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32391         if-block containing a while-loop.  It's been unused for at least
32392         5 years.
32393
32394 2010-06-05  Bruno Haible  <bruno@clisp.org>
32395
32396         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32397         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32398
32399 2010-06-04  Bruno Haible  <bruno@clisp.org>
32400
32401         Update to GNU gettext 0.18.1.
32402         * modules/gettext (configure.ac): Require gettext infrastructure from
32403         version 0.18.1.
32404
32405 2010-06-03  Bruno Haible  <bruno@clisp.org>
32406
32407         Don't use AC_LIBOBJ with file names in subdirectories.
32408         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32409         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32410         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32411         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32412         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32413         gl_LIBUNISTRING_LIBSOURCE.
32414         (Makefile.am): Augment lib_SOURCES here, conditionally.
32415         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32416
32417 2010-06-03  Bruno Haible  <bruno@clisp.org>
32418
32419         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32420         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32421         expansion does not end with a newline.
32422         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32423         unnecessary newline.
32424
32425 2010-06-03  Bruno Haible  <bruno@clisp.org>
32426
32427         Reduce dependencies.
32428         * tests/test-quotearg.h: New file, extracted from
32429         tests/test-quotearg.c.
32430         * tests/test-quotearg-simple.c: New file, extracted from
32431         tests/test-quotearg.c.
32432         * tests/test-quotearg.c: Don't include <ctype.h>.
32433         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32434         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32435         use_quote_double_quotes, use_quotearg_colon): Moved to
32436         tests/test-quotearg.h.
32437         (results_g, flag_results, custom_quotes, custom_results): Moved
32438         to tests/test-quotearg-simple.c.
32439         (main): Moved the part that does not depend on gettext to
32440         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32441         performed.
32442         * modules/quotearg-simple: New file.
32443         * modules/quotearg-simple-tests: New file.
32444         * modules/quotearg (Depends-on): Add quotearg-simple.
32445         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32446         (Files): Add tests/test-quotearg.h.
32447         Reported by Paolo Bonzini.
32448
32449 2010-06-03  Bruno Haible  <bruno@clisp.org>
32450
32451         Reduce dependencies.
32452         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32453
32454 2010-06-03  Bruno Haible  <bruno@clisp.org>
32455
32456         time: Undefine more broken macros.
32457         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32458         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32459         Reported by Eric Blake.
32460
32461 2010-06-03  Bruno Haible  <bruno@clisp.org>
32462
32463         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32464         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32465         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32466         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32467         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32468         Reported by Ludovic Courtès <ludo@gnu.org>.
32469
32470 2010-06-02  Eric Blake  <eblake@redhat.com>
32471
32472         time: work with mingw + pthreads-win32 library
32473         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32474         if timespec is defined only in pthread.h.
32475         * modules/time (Makefile.am): Substitute it.
32476         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32477         <pthread.h>, when needed.
32478         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32479         from the library.
32480
32481 2010-05-31  Bruno Haible  <bruno@clisp.org>
32482
32483         Avoid expanding two macros in the wrong order.
32484         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32485         gl_LIBUNISTRING if it is defined.
32486         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32487         autoconf >= 2.64.
32488         Reported by Ludovic Courtès <ludo@gnu.org>.
32489
32490 2010-05-27  Jim Meyering  <meyering@redhat.com>
32491
32492         maint.mk: also prohibit "#undef" of always-defined symbols
32493         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32494         Allow more than one space before the symbol name.
32495         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32496         the regexp uses alternation.
32497
32498 2010-05-26  Eric Blake  <eblake@redhat.com>
32499
32500         maint.mk: avoid echo -e
32501         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32502         Convert all uses of echo -* to printf.
32503         Reported by Matthias Bolte.
32504
32505 2010-05-25  Bruno Haible  <bruno@clisp.org>
32506
32507         Update to GNU gettext 0.18, part 2.
32508         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32509         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32510
32511 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32512
32513         Add missing include in test-pwrite.c.
32514         * tests/test-pwrite.c: Include string.h, for strcmp.
32515
32516 2010-05-24  Bruno Haible  <bruno@clisp.org>
32517
32518         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32519
32520 2010-05-24  Bruno Haible  <bruno@clisp.org>
32521
32522         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32523         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32524         iconveh_error argument.
32525         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32526         U_STRCONV_TO_LOCALE.
32527         * lib/unistr/u16-strcoll.c: Likewise.
32528         * lib/unistr/u32-strcoll.c: Likewise.
32529         * modules/unistr/u8-strcoll (Depends-on): Add
32530         uniconv/u8-strconv-to-enc, localcharset. Remove
32531         uniconv/u8-strconv-to-locale.
32532         (configure.ac): Bump version number.
32533         * modules/unistr/u16-strcoll (Depends-on): Add
32534         uniconv/u16-strconv-to-enc, localcharset. Remove
32535         uniconv/u16-strconv-to-locale.
32536         (configure.ac): Bump version number.
32537         * modules/unistr/u32-strcoll (Depends-on): Add
32538         uniconv/u32-strconv-to-enc, localcharset. Remove
32539         uniconv/u32-strconv-to-locale.
32540         (configure.ac): Bump version number.
32541
32542 2010-05-24  Bruno Haible  <bruno@clisp.org>
32543
32544         Avoid a test failure on NetBSD 5.0.
32545         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32546         an iconv() bug.
32547
32548 2010-05-24  Bruno Haible  <bruno@clisp.org>
32549
32550         Adjust #include directive style.
32551         * modules/regex (Includes): Recommend to write <regex.h>.
32552
32553 2010-05-24  Bruno Haible  <bruno@clisp.org>
32554
32555         regex: Don't require alloca.
32556         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32557         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32558         only inside if (0).
32559
32560 2010-05-23  Jim Meyering  <meyering@redhat.com>
32561
32562         test-renameat.c: include <sys/stat.h>
32563         * tests/test-renameat.c: Include <sys/stat.h>; required for
32564         definition of S_IS* macros.
32565
32566 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32567
32568         Update maintainer documentation for 'relocatable-prog' module.
32569         * doc/relocatable-maint.texi: Update.
32570         Comments by Bruno Haible.
32571
32572 2010-05-23  Bruno Haible  <bruno@clisp.org>
32573
32574         git-merge-changelog: Enable --split-merged-entry by default.
32575         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32576         (usage): Don't mention this option any more.
32577         Reported by Ralf Wildenhues.
32578
32579 2010-05-23  Jim Meyering  <meyering@redhat.com>
32580
32581         test-pwrite: do not leave behind a test file named "out"
32582         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32583         The trivial-looking use of init.sh is really necessary.
32584         It ensures that the temporary file, "out", is created in
32585         a temporary directory, and removed upon termination.
32586         * tests/test-pwrite.sh: Re-add file.
32587         * modules/pwrite-tests: Reference it.
32588
32589 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32590
32591         Fix output redirection buglet in init.sh.
32592         * tests/init.sh: Fix redirection of stderr.
32593
32594 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32595
32596         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32597
32598 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32599
32600         * modules/valgrind-tests: New file.
32601         * m4/valgrind-tests.m4: New file.
32602         * doc/valgrind-tests.texi: New file.
32603         * doc/gnulib.texi (Running self-tests under valgrind): New
32604         section.
32605
32606 2010-05-19  Bruno Haible  <bruno@clisp.org>
32607
32608         Clean up dead code in recent commit.
32609         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32610         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32611         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32612         Suggested by Paolo Bonzini.
32613
32614 2010-05-19  Bruno Haible  <bruno@clisp.org>
32615
32616         Avoid valgrind error reports from libunistring.
32617         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32618         * modules/libunistring (Files): Add it.
32619         * modules/libunistring-optional (Files): Likewise.
32620
32621 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32622             Bruno Haible  <bruno@clisp.org>
32623
32624         New module 'libunistring-optional'.
32625         * modules/libunistring-optional: New file.
32626         * m4/libunistring-base.m4: New file.
32627         * m4/libunistring-optional.m4: New file.
32628         * lib/unicase.in.h: Renamed from lib/unicase.h.
32629         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32630         * lib/unictype.in.h: Renamed from lib/unictype.h.
32631         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32632         * lib/uniname.in.h: Renamed from lib/uniname.h.
32633         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32634         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32635         * lib/unistr.in.h: Renamed from lib/unistr.h.
32636         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32637         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32638         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32639         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32640         gl_LIBUNISTRING. If the library was found, determine the installed
32641         version and set LIBUNISTRING_VERSION.
32642         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32643         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32644         handle a configuration option --with-included-libunistring.
32645         * modules/libunistring (Files): Add m4/absolute-header.m4.
32646         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32647         Add m4/libunistring-base.m4.
32648         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32649         (Makefile.am): Build unicase.h from unicase.in.h.
32650         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32651         Add m4/libunistring-base.m4.
32652         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32653         (Makefile.am): Build uniconv.h from uniconv.in.h.
32654         * modules/unictype/base (Files): Use unictype.in.h instead of
32655         unictype.h. Add m4/libunistring-base.m4.
32656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32657         (Makefile.am): Build unictype.h from unictype.in.h.
32658         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32659         Add m4/libunistring-base.m4.
32660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32661         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32662         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32663         Add m4/libunistring-base.m4.
32664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32665         (Makefile.am): Build uniname.h from uniname.in.h.
32666         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32667         Add m4/libunistring-base.m4.
32668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32669         (Makefile.am): Build uninorm.h from uninorm.in.h.
32670         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32671         unistdio.h. Add m4/libunistring-base.m4.
32672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32673         (Makefile.am): Build unistdio.h from unistdio.in.h.
32674         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32675         Add m4/libunistring-base.m4.
32676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32677         (Makefile.am): Build unistr.h from unistr.in.h.
32678         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32679         Add m4/libunistring-base.m4.
32680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32681         (Makefile.am): Build unitypes.h from unitypes.in.h.
32682         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32683         Add m4/libunistring-base.m4.
32684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32685         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32686         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32687         uniwidth.h. Add m4/libunistring-base.m4.
32688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32689         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32690         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32691         instead of augmenting lib_SOURCES.
32692         * modules/unicase/empty-suffix-context: Likewise.
32693         * modules/unicase/locale-language: Likewise.
32694         * modules/unicase/tolower: Likewise.
32695         * modules/unicase/totitle: Likewise.
32696         * modules/unicase/toupper: Likewise.
32697         * modules/unicase/u8-casecmp: Likewise.
32698         * modules/unicase/u8-casecoll: Likewise.
32699         * modules/unicase/u8-casefold: Likewise.
32700         * modules/unicase/u8-casexfrm: Likewise.
32701         * modules/unicase/u8-ct-casefold: Likewise.
32702         * modules/unicase/u8-ct-tolower: Likewise.
32703         * modules/unicase/u8-ct-totitle: Likewise.
32704         * modules/unicase/u8-ct-toupper: Likewise.
32705         * modules/unicase/u8-is-cased: Likewise.
32706         * modules/unicase/u8-is-casefolded: Likewise.
32707         * modules/unicase/u8-is-lowercase: Likewise.
32708         * modules/unicase/u8-is-titlecase: Likewise.
32709         * modules/unicase/u8-is-uppercase: Likewise.
32710         * modules/unicase/u8-prefix-context: Likewise.
32711         * modules/unicase/u8-suffix-context: Likewise.
32712         * modules/unicase/u8-tolower: Likewise.
32713         * modules/unicase/u8-totitle: Likewise.
32714         * modules/unicase/u8-toupper: Likewise.
32715         * modules/unicase/u16-casecmp: Likewise.
32716         * modules/unicase/u16-casecoll: Likewise.
32717         * modules/unicase/u16-casefold: Likewise.
32718         * modules/unicase/u16-casexfrm: Likewise.
32719         * modules/unicase/u16-ct-casefold: Likewise.
32720         * modules/unicase/u16-ct-tolower: Likewise.
32721         * modules/unicase/u16-ct-totitle: Likewise.
32722         * modules/unicase/u16-ct-toupper: Likewise.
32723         * modules/unicase/u16-is-cased: Likewise.
32724         * modules/unicase/u16-is-casefolded: Likewise.
32725         * modules/unicase/u16-is-lowercase: Likewise.
32726         * modules/unicase/u16-is-titlecase: Likewise.
32727         * modules/unicase/u16-is-uppercase: Likewise.
32728         * modules/unicase/u16-prefix-context: Likewise.
32729         * modules/unicase/u16-suffix-context: Likewise.
32730         * modules/unicase/u16-tolower: Likewise.
32731         * modules/unicase/u16-totitle: Likewise.
32732         * modules/unicase/u16-toupper: Likewise.
32733         * modules/unicase/u32-casecmp: Likewise.
32734         * modules/unicase/u32-casecoll: Likewise.
32735         * modules/unicase/u32-casefold: Likewise.
32736         * modules/unicase/u32-casexfrm: Likewise.
32737         * modules/unicase/u32-ct-casefold: Likewise.
32738         * modules/unicase/u32-ct-tolower: Likewise.
32739         * modules/unicase/u32-ct-totitle: Likewise.
32740         * modules/unicase/u32-ct-toupper: Likewise.
32741         * modules/unicase/u32-is-cased: Likewise.
32742         * modules/unicase/u32-is-casefolded: Likewise.
32743         * modules/unicase/u32-is-lowercase: Likewise.
32744         * modules/unicase/u32-is-titlecase: Likewise.
32745         * modules/unicase/u32-is-uppercase: Likewise.
32746         * modules/unicase/u32-prefix-context: Likewise.
32747         * modules/unicase/u32-suffix-context: Likewise.
32748         * modules/unicase/u32-tolower: Likewise.
32749         * modules/unicase/u32-totitle: Likewise.
32750         * modules/unicase/u32-toupper: Likewise.
32751         * modules/unicase/ulc-casecmp: Likewise.
32752         * modules/unicase/ulc-casecoll: Likewise.
32753         * modules/unicase/ulc-casexfrm: Likewise.
32754         * modules/uniconv/u8-conv-from-enc: Likewise.
32755         * modules/uniconv/u8-conv-to-enc: Likewise.
32756         * modules/uniconv/u8-strconv-from-enc: Likewise.
32757         * modules/uniconv/u8-strconv-from-locale: Likewise.
32758         * modules/uniconv/u8-strconv-to-enc: Likewise.
32759         * modules/uniconv/u8-strconv-to-locale: Likewise.
32760         * modules/uniconv/u16-conv-from-enc: Likewise.
32761         * modules/uniconv/u16-conv-to-enc: Likewise.
32762         * modules/uniconv/u16-strconv-from-enc: Likewise.
32763         * modules/uniconv/u16-strconv-from-locale: Likewise.
32764         * modules/uniconv/u16-strconv-to-enc: Likewise.
32765         * modules/uniconv/u16-strconv-to-locale: Likewise.
32766         * modules/uniconv/u32-conv-from-enc: Likewise.
32767         * modules/uniconv/u32-conv-to-enc: Likewise.
32768         * modules/uniconv/u32-strconv-from-enc: Likewise.
32769         * modules/uniconv/u32-strconv-from-locale: Likewise.
32770         * modules/uniconv/u32-strconv-to-enc: Likewise.
32771         * modules/uniconv/u32-strconv-to-locale: Likewise.
32772         * modules/unictype/bidicategory-byname: Likewise.
32773         * modules/unictype/bidicategory-name: Likewise.
32774         * modules/unictype/bidicategory-of: Likewise.
32775         * modules/unictype/bidicategory-test: Likewise.
32776         * modules/unictype/block-list: Likewise.
32777         * modules/unictype/block-test: Likewise.
32778         * modules/unictype/category-C: Likewise.
32779         * modules/unictype/category-Cc: Likewise.
32780         * modules/unictype/category-Cf: Likewise.
32781         * modules/unictype/category-Cn: Likewise.
32782         * modules/unictype/category-Co: Likewise.
32783         * modules/unictype/category-Cs: Likewise.
32784         * modules/unictype/category-L: Likewise.
32785         * modules/unictype/category-Ll: Likewise.
32786         * modules/unictype/category-Lm: Likewise.
32787         * modules/unictype/category-Lo: Likewise.
32788         * modules/unictype/category-Lt: Likewise.
32789         * modules/unictype/category-Lu: Likewise.
32790         * modules/unictype/category-M: Likewise.
32791         * modules/unictype/category-Mc: Likewise.
32792         * modules/unictype/category-Me: Likewise.
32793         * modules/unictype/category-Mn: Likewise.
32794         * modules/unictype/category-N: Likewise.
32795         * modules/unictype/category-Nd: Likewise.
32796         * modules/unictype/category-Nl: Likewise.
32797         * modules/unictype/category-No: Likewise.
32798         * modules/unictype/category-P: Likewise.
32799         * modules/unictype/category-Pc: Likewise.
32800         * modules/unictype/category-Pd: Likewise.
32801         * modules/unictype/category-Pe: Likewise.
32802         * modules/unictype/category-Pf: Likewise.
32803         * modules/unictype/category-Pi: Likewise.
32804         * modules/unictype/category-Po: Likewise.
32805         * modules/unictype/category-Ps: Likewise.
32806         * modules/unictype/category-S: Likewise.
32807         * modules/unictype/category-Sc: Likewise.
32808         * modules/unictype/category-Sk: Likewise.
32809         * modules/unictype/category-Sm: Likewise.
32810         * modules/unictype/category-So: Likewise.
32811         * modules/unictype/category-Z: Likewise.
32812         * modules/unictype/category-Zl: Likewise.
32813         * modules/unictype/category-Zp: Likewise.
32814         * modules/unictype/category-Zs: Likewise.
32815         * modules/unictype/category-and: Likewise.
32816         * modules/unictype/category-and-not: Likewise.
32817         * modules/unictype/category-byname: Likewise.
32818         * modules/unictype/category-name: Likewise.
32819         * modules/unictype/category-none: Likewise.
32820         * modules/unictype/category-of: Likewise.
32821         * modules/unictype/category-or: Likewise.
32822         * modules/unictype/category-test: Likewise.
32823         * modules/unictype/combining-class: Likewise.
32824         * modules/unictype/ctype-alnum: Likewise.
32825         * modules/unictype/ctype-alpha: Likewise.
32826         * modules/unictype/ctype-blank: Likewise.
32827         * modules/unictype/ctype-cntrl: Likewise.
32828         * modules/unictype/ctype-digit: Likewise.
32829         * modules/unictype/ctype-graph: Likewise.
32830         * modules/unictype/ctype-lower: Likewise.
32831         * modules/unictype/ctype-print: Likewise.
32832         * modules/unictype/ctype-punct: Likewise.
32833         * modules/unictype/ctype-space: Likewise.
32834         * modules/unictype/ctype-upper: Likewise.
32835         * modules/unictype/ctype-xdigit: Likewise.
32836         * modules/unictype/decimal-digit: Likewise.
32837         * modules/unictype/digit: Likewise.
32838         * modules/unictype/mirror: Likewise.
32839         * modules/unictype/numeric: Likewise.
32840         * modules/unictype/property-alphabetic: Likewise.
32841         * modules/unictype/property-ascii-hex-digit: Likewise.
32842         * modules/unictype/property-bidi-arabic-digit: Likewise.
32843         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32844         * modules/unictype/property-bidi-block-separator: Likewise.
32845         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32846         * modules/unictype/property-bidi-common-separator: Likewise.
32847         * modules/unictype/property-bidi-control: Likewise.
32848         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32849         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32850         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32851         * modules/unictype/property-bidi-european-digit: Likewise.
32852         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32853         * modules/unictype/property-bidi-left-to-right: Likewise.
32854         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32855         * modules/unictype/property-bidi-other-neutral: Likewise.
32856         * modules/unictype/property-bidi-pdf: Likewise.
32857         * modules/unictype/property-bidi-segment-separator: Likewise.
32858         * modules/unictype/property-bidi-whitespace: Likewise.
32859         * modules/unictype/property-byname: Likewise.
32860         * modules/unictype/property-combining: Likewise.
32861         * modules/unictype/property-composite: Likewise.
32862         * modules/unictype/property-currency-symbol: Likewise.
32863         * modules/unictype/property-dash: Likewise.
32864         * modules/unictype/property-decimal-digit: Likewise.
32865         * modules/unictype/property-default-ignorable-code-point: Likewise.
32866         * modules/unictype/property-deprecated: Likewise.
32867         * modules/unictype/property-diacritic: Likewise.
32868         * modules/unictype/property-extender: Likewise.
32869         * modules/unictype/property-format-control: Likewise.
32870         * modules/unictype/property-grapheme-base: Likewise.
32871         * modules/unictype/property-grapheme-extend: Likewise.
32872         * modules/unictype/property-grapheme-link: Likewise.
32873         * modules/unictype/property-hex-digit: Likewise.
32874         * modules/unictype/property-hyphen: Likewise.
32875         * modules/unictype/property-id-continue: Likewise.
32876         * modules/unictype/property-id-start: Likewise.
32877         * modules/unictype/property-ideographic: Likewise.
32878         * modules/unictype/property-ids-binary-operator: Likewise.
32879         * modules/unictype/property-ids-trinary-operator: Likewise.
32880         * modules/unictype/property-ignorable-control: Likewise.
32881         * modules/unictype/property-iso-control: Likewise.
32882         * modules/unictype/property-join-control: Likewise.
32883         * modules/unictype/property-left-of-pair: Likewise.
32884         * modules/unictype/property-line-separator: Likewise.
32885         * modules/unictype/property-logical-order-exception: Likewise.
32886         * modules/unictype/property-lowercase: Likewise.
32887         * modules/unictype/property-math: Likewise.
32888         * modules/unictype/property-non-break: Likewise.
32889         * modules/unictype/property-not-a-character: Likewise.
32890         * modules/unictype/property-numeric: Likewise.
32891         * modules/unictype/property-other-alphabetic: Likewise.
32892         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32893         * modules/unictype/property-other-grapheme-extend: Likewise.
32894         * modules/unictype/property-other-id-continue: Likewise.
32895         * modules/unictype/property-other-id-start: Likewise.
32896         * modules/unictype/property-other-lowercase: Likewise.
32897         * modules/unictype/property-other-math: Likewise.
32898         * modules/unictype/property-other-uppercase: Likewise.
32899         * modules/unictype/property-paired-punctuation: Likewise.
32900         * modules/unictype/property-paragraph-separator: Likewise.
32901         * modules/unictype/property-pattern-syntax: Likewise.
32902         * modules/unictype/property-pattern-white-space: Likewise.
32903         * modules/unictype/property-private-use: Likewise.
32904         * modules/unictype/property-punctuation: Likewise.
32905         * modules/unictype/property-quotation-mark: Likewise.
32906         * modules/unictype/property-radical: Likewise.
32907         * modules/unictype/property-sentence-terminal: Likewise.
32908         * modules/unictype/property-soft-dotted: Likewise.
32909         * modules/unictype/property-space: Likewise.
32910         * modules/unictype/property-terminal-punctuation: Likewise.
32911         * modules/unictype/property-test: Likewise.
32912         * modules/unictype/property-titlecase: Likewise.
32913         * modules/unictype/property-unassigned-code-value: Likewise.
32914         * modules/unictype/property-unified-ideograph: Likewise.
32915         * modules/unictype/property-uppercase: Likewise.
32916         * modules/unictype/property-variation-selector: Likewise.
32917         * modules/unictype/property-white-space: Likewise.
32918         * modules/unictype/property-xid-continue: Likewise.
32919         * modules/unictype/property-xid-start: Likewise.
32920         * modules/unictype/property-zero-width: Likewise.
32921         * modules/unictype/scripts: Likewise.
32922         * modules/unictype/syntax-c-ident: Likewise.
32923         * modules/unictype/syntax-c-whitespace: Likewise.
32924         * modules/unictype/syntax-java-ident: Likewise.
32925         * modules/unictype/syntax-java-whitespace: Likewise.
32926         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32927         * modules/unilbrk/u8-width-linebreaks: Likewise.
32928         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32929         * modules/unilbrk/u16-width-linebreaks: Likewise.
32930         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32931         * modules/unilbrk/u32-width-linebreaks: Likewise.
32932         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32933         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32934         * modules/uniname/uniname: Likewise.
32935         * modules/uninorm/canonical-decomposition: Likewise.
32936         * modules/uninorm/composition: Likewise.
32937         * modules/uninorm/decomposing-form: Likewise.
32938         * modules/uninorm/decomposition: Likewise.
32939         * modules/uninorm/filter: Likewise.
32940         * modules/uninorm/nfc: Likewise.
32941         * modules/uninorm/nfd: Likewise.
32942         * modules/uninorm/nfkc: Likewise.
32943         * modules/uninorm/nfkd: Likewise.
32944         * modules/uninorm/u8-normalize: Likewise.
32945         * modules/uninorm/u8-normcmp: Likewise.
32946         * modules/uninorm/u8-normcoll: Likewise.
32947         * modules/uninorm/u8-normxfrm: Likewise.
32948         * modules/uninorm/u16-normalize: Likewise.
32949         * modules/uninorm/u16-normcmp: Likewise.
32950         * modules/uninorm/u16-normcoll: Likewise.
32951         * modules/uninorm/u16-normxfrm: Likewise.
32952         * modules/uninorm/u32-normalize: Likewise.
32953         * modules/uninorm/u32-normcmp: Likewise.
32954         * modules/uninorm/u32-normcoll: Likewise.
32955         * modules/uninorm/u32-normxfrm: Likewise.
32956         * modules/unistdio/u8-asnprintf: Likewise.
32957         * modules/unistdio/u8-asprintf: Likewise.
32958         * modules/unistdio/u8-snprintf: Likewise.
32959         * modules/unistdio/u8-sprintf: Likewise.
32960         * modules/unistdio/u8-u8-asnprintf: Likewise.
32961         * modules/unistdio/u8-u8-asprintf: Likewise.
32962         * modules/unistdio/u8-u8-snprintf: Likewise.
32963         * modules/unistdio/u8-u8-sprintf: Likewise.
32964         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32965         * modules/unistdio/u8-u8-vasprintf: Likewise.
32966         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32967         * modules/unistdio/u8-u8-vsprintf: Likewise.
32968         * modules/unistdio/u8-vasnprintf: Likewise.
32969         * modules/unistdio/u8-vasprintf: Likewise.
32970         * modules/unistdio/u8-vsnprintf: Likewise.
32971         * modules/unistdio/u8-vsprintf: Likewise.
32972         * modules/unistdio/u16-asnprintf: Likewise.
32973         * modules/unistdio/u16-asprintf: Likewise.
32974         * modules/unistdio/u16-snprintf: Likewise.
32975         * modules/unistdio/u16-sprintf: Likewise.
32976         * modules/unistdio/u16-u16-asnprintf: Likewise.
32977         * modules/unistdio/u16-u16-asprintf: Likewise.
32978         * modules/unistdio/u16-u16-snprintf: Likewise.
32979         * modules/unistdio/u16-u16-sprintf: Likewise.
32980         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32981         * modules/unistdio/u16-u16-vasprintf: Likewise.
32982         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32983         * modules/unistdio/u16-u16-vsprintf: Likewise.
32984         * modules/unistdio/u16-vasnprintf: Likewise.
32985         * modules/unistdio/u16-vasprintf: Likewise.
32986         * modules/unistdio/u16-vsnprintf: Likewise.
32987         * modules/unistdio/u16-vsprintf: Likewise.
32988         * modules/unistdio/u32-asnprintf: Likewise.
32989         * modules/unistdio/u32-asprintf: Likewise.
32990         * modules/unistdio/u32-snprintf: Likewise.
32991         * modules/unistdio/u32-sprintf: Likewise.
32992         * modules/unistdio/u32-u32-asnprintf: Likewise.
32993         * modules/unistdio/u32-u32-asprintf: Likewise.
32994         * modules/unistdio/u32-u32-snprintf: Likewise.
32995         * modules/unistdio/u32-u32-sprintf: Likewise.
32996         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32997         * modules/unistdio/u32-u32-vasprintf: Likewise.
32998         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32999         * modules/unistdio/u32-u32-vsprintf: Likewise.
33000         * modules/unistdio/u32-vasnprintf: Likewise.
33001         * modules/unistdio/u32-vasprintf: Likewise.
33002         * modules/unistdio/u32-vsnprintf: Likewise.
33003         * modules/unistdio/u32-vsprintf: Likewise.
33004         * modules/unistdio/ulc-asnprintf: Likewise.
33005         * modules/unistdio/ulc-asprintf: Likewise.
33006         * modules/unistdio/ulc-fprintf: Likewise.
33007         * modules/unistdio/ulc-snprintf: Likewise.
33008         * modules/unistdio/ulc-sprintf: Likewise.
33009         * modules/unistdio/ulc-vasnprintf: Likewise.
33010         * modules/unistdio/ulc-vasprintf: Likewise.
33011         * modules/unistdio/ulc-vfprintf: Likewise.
33012         * modules/unistdio/ulc-vsnprintf: Likewise.
33013         * modules/unistdio/ulc-vsprintf: Likewise.
33014         * modules/unistr/u8-check: Likewise.
33015         * modules/unistr/u8-chr: Likewise.
33016         * modules/unistr/u8-cmp: Likewise.
33017         * modules/unistr/u8-cmp2: Likewise.
33018         * modules/unistr/u8-cpy: Likewise.
33019         * modules/unistr/u8-cpy-alloc: Likewise.
33020         * modules/unistr/u8-endswith: Likewise.
33021         * modules/unistr/u8-mblen: Likewise.
33022         * modules/unistr/u8-mbsnlen: Likewise.
33023         * modules/unistr/u8-mbtouc: Likewise.
33024         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33025         * modules/unistr/u8-mbtoucr: Likewise.
33026         * modules/unistr/u8-move: Likewise.
33027         * modules/unistr/u8-next: Likewise.
33028         * modules/unistr/u8-prev: Likewise.
33029         * modules/unistr/u8-set: Likewise.
33030         * modules/unistr/u8-startswith: Likewise.
33031         * modules/unistr/u8-stpcpy: Likewise.
33032         * modules/unistr/u8-stpncpy: Likewise.
33033         * modules/unistr/u8-strcat: Likewise.
33034         * modules/unistr/u8-strchr: Likewise.
33035         * modules/unistr/u8-strcmp: Likewise.
33036         * modules/unistr/u8-strcoll: Likewise.
33037         * modules/unistr/u8-strcpy: Likewise.
33038         * modules/unistr/u8-strcspn: Likewise.
33039         * modules/unistr/u8-strdup: Likewise.
33040         * modules/unistr/u8-strlen: Likewise.
33041         * modules/unistr/u8-strmblen: Likewise.
33042         * modules/unistr/u8-strmbtouc: Likewise.
33043         * modules/unistr/u8-strncat: Likewise.
33044         * modules/unistr/u8-strncmp: Likewise.
33045         * modules/unistr/u8-strncpy: Likewise.
33046         * modules/unistr/u8-strnlen: Likewise.
33047         * modules/unistr/u8-strpbrk: Likewise.
33048         * modules/unistr/u8-strrchr: Likewise.
33049         * modules/unistr/u8-strspn: Likewise.
33050         * modules/unistr/u8-strstr: Likewise.
33051         * modules/unistr/u8-strtok: Likewise.
33052         * modules/unistr/u8-to-u16: Likewise.
33053         * modules/unistr/u8-to-u32: Likewise.
33054         * modules/unistr/u8-uctomb: Likewise.
33055         * modules/unistr/u16-check: Likewise.
33056         * modules/unistr/u16-chr: Likewise.
33057         * modules/unistr/u16-cmp: Likewise.
33058         * modules/unistr/u16-cmp2: Likewise.
33059         * modules/unistr/u16-cpy: Likewise.
33060         * modules/unistr/u16-cpy-alloc: Likewise.
33061         * modules/unistr/u16-endswith: Likewise.
33062         * modules/unistr/u16-mblen: Likewise.
33063         * modules/unistr/u16-mbsnlen: Likewise.
33064         * modules/unistr/u16-mbtouc: Likewise.
33065         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33066         * modules/unistr/u16-mbtoucr: Likewise.
33067         * modules/unistr/u16-move: Likewise.
33068         * modules/unistr/u16-next: Likewise.
33069         * modules/unistr/u16-prev: Likewise.
33070         * modules/unistr/u16-set: Likewise.
33071         * modules/unistr/u16-startswith: Likewise.
33072         * modules/unistr/u16-stpcpy: Likewise.
33073         * modules/unistr/u16-stpncpy: Likewise.
33074         * modules/unistr/u16-strcat: Likewise.
33075         * modules/unistr/u16-strchr: Likewise.
33076         * modules/unistr/u16-strcmp: Likewise.
33077         * modules/unistr/u16-strcoll: Likewise.
33078         * modules/unistr/u16-strcpy: Likewise.
33079         * modules/unistr/u16-strcspn: Likewise.
33080         * modules/unistr/u16-strdup: Likewise.
33081         * modules/unistr/u16-strlen: Likewise.
33082         * modules/unistr/u16-strmblen: Likewise.
33083         * modules/unistr/u16-strmbtouc: Likewise.
33084         * modules/unistr/u16-strncat: Likewise.
33085         * modules/unistr/u16-strncmp: Likewise.
33086         * modules/unistr/u16-strncpy: Likewise.
33087         * modules/unistr/u16-strnlen: Likewise.
33088         * modules/unistr/u16-strpbrk: Likewise.
33089         * modules/unistr/u16-strrchr: Likewise.
33090         * modules/unistr/u16-strspn: Likewise.
33091         * modules/unistr/u16-strstr: Likewise.
33092         * modules/unistr/u16-strtok: Likewise.
33093         * modules/unistr/u16-to-u32: Likewise.
33094         * modules/unistr/u16-to-u8: Likewise.
33095         * modules/unistr/u16-uctomb: Likewise.
33096         * modules/unistr/u32-check: Likewise.
33097         * modules/unistr/u32-chr: Likewise.
33098         * modules/unistr/u32-cmp: Likewise.
33099         * modules/unistr/u32-cmp2: Likewise.
33100         * modules/unistr/u32-cpy: Likewise.
33101         * modules/unistr/u32-cpy-alloc: Likewise.
33102         * modules/unistr/u32-endswith: Likewise.
33103         * modules/unistr/u32-mblen: Likewise.
33104         * modules/unistr/u32-mbsnlen: Likewise.
33105         * modules/unistr/u32-mbtouc: Likewise.
33106         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33107         * modules/unistr/u32-mbtoucr: Likewise.
33108         * modules/unistr/u32-move: Likewise.
33109         * modules/unistr/u32-next: Likewise.
33110         * modules/unistr/u32-prev: Likewise.
33111         * modules/unistr/u32-set: Likewise.
33112         * modules/unistr/u32-startswith: Likewise.
33113         * modules/unistr/u32-stpcpy: Likewise.
33114         * modules/unistr/u32-stpncpy: Likewise.
33115         * modules/unistr/u32-strcat: Likewise.
33116         * modules/unistr/u32-strchr: Likewise.
33117         * modules/unistr/u32-strcmp: Likewise.
33118         * modules/unistr/u32-strcoll: Likewise.
33119         * modules/unistr/u32-strcpy: Likewise.
33120         * modules/unistr/u32-strcspn: Likewise.
33121         * modules/unistr/u32-strdup: Likewise.
33122         * modules/unistr/u32-strlen: Likewise.
33123         * modules/unistr/u32-strmblen: Likewise.
33124         * modules/unistr/u32-strmbtouc: Likewise.
33125         * modules/unistr/u32-strncat: Likewise.
33126         * modules/unistr/u32-strncmp: Likewise.
33127         * modules/unistr/u32-strncpy: Likewise.
33128         * modules/unistr/u32-strnlen: Likewise.
33129         * modules/unistr/u32-strpbrk: Likewise.
33130         * modules/unistr/u32-strrchr: Likewise.
33131         * modules/unistr/u32-strspn: Likewise.
33132         * modules/unistr/u32-strstr: Likewise.
33133         * modules/unistr/u32-strtok: Likewise.
33134         * modules/unistr/u32-to-u16: Likewise.
33135         * modules/unistr/u32-to-u8: Likewise.
33136         * modules/unistr/u32-uctomb: Likewise.
33137         * modules/uniwbrk/u8-wordbreaks: Likewise.
33138         * modules/uniwbrk/u16-wordbreaks: Likewise.
33139         * modules/uniwbrk/u32-wordbreaks: Likewise.
33140         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33141         * modules/uniwbrk/wordbreak-property: Likewise.
33142         * modules/uniwidth/u8-strwidth: Likewise.
33143         * modules/uniwidth/u8-width: Likewise.
33144         * modules/uniwidth/u16-strwidth: Likewise.
33145         * modules/uniwidth/u16-width: Likewise.
33146         * modules/uniwidth/u32-strwidth: Likewise.
33147         * modules/uniwidth/u32-width: Likewise.
33148         * modules/uniwidth/width: Likewise.
33149         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33150         with $(LIBUNISTRING).
33151         * modules/unicase/ignorable-tests: Likewise.
33152         * modules/unicase/locale-language-tests: Likewise.
33153         * modules/unicase/tolower-tests: Likewise.
33154         * modules/unicase/totitle-tests: Likewise.
33155         * modules/unicase/toupper-tests: Likewise.
33156         * modules/unicase/u8-casecmp-tests: Likewise.
33157         * modules/unicase/u8-casecoll-tests: Likewise.
33158         * modules/unicase/u8-casefold-tests: Likewise.
33159         * modules/unicase/u8-is-cased-tests: Likewise.
33160         * modules/unicase/u8-is-casefolded-tests: Likewise.
33161         * modules/unicase/u8-is-lowercase-tests: Likewise.
33162         * modules/unicase/u8-is-titlecase-tests: Likewise.
33163         * modules/unicase/u8-is-uppercase-tests: Likewise.
33164         * modules/unicase/u8-tolower-tests: Likewise.
33165         * modules/unicase/u8-totitle-tests: Likewise.
33166         * modules/unicase/u8-toupper-tests: Likewise.
33167         * modules/unicase/u16-casecmp-tests: Likewise.
33168         * modules/unicase/u16-casecoll-tests: Likewise.
33169         * modules/unicase/u16-casefold-tests: Likewise.
33170         * modules/unicase/u16-is-cased-tests: Likewise.
33171         * modules/unicase/u16-is-casefolded-tests: Likewise.
33172         * modules/unicase/u16-is-lowercase-tests: Likewise.
33173         * modules/unicase/u16-is-titlecase-tests: Likewise.
33174         * modules/unicase/u16-is-uppercase-tests: Likewise.
33175         * modules/unicase/u16-tolower-tests: Likewise.
33176         * modules/unicase/u16-totitle-tests: Likewise.
33177         * modules/unicase/u16-toupper-tests: Likewise.
33178         * modules/unicase/u32-casecmp-tests: Likewise.
33179         * modules/unicase/u32-casecoll-tests: Likewise.
33180         * modules/unicase/u32-casefold-tests: Likewise.
33181         * modules/unicase/u32-is-cased-tests: Likewise.
33182         * modules/unicase/u32-is-casefolded-tests: Likewise.
33183         * modules/unicase/u32-is-lowercase-tests: Likewise.
33184         * modules/unicase/u32-is-titlecase-tests: Likewise.
33185         * modules/unicase/u32-is-uppercase-tests: Likewise.
33186         * modules/unicase/u32-tolower-tests: Likewise.
33187         * modules/unicase/u32-totitle-tests: Likewise.
33188         * modules/unicase/u32-toupper-tests: Likewise.
33189         * modules/unicase/ulc-casecmp-tests: Likewise.
33190         * modules/unicase/ulc-casecoll-tests: Likewise.
33191         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33192         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33193         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33194         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33195         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33196         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33197         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33198         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33199         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33200         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33201         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33202         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33203         * modules/unictype/bidicategory-byname-tests: Likewise.
33204         * modules/unictype/bidicategory-name-tests: Likewise.
33205         * modules/unictype/bidicategory-of-tests: Likewise.
33206         * modules/unictype/bidicategory-test-tests: Likewise.
33207         * modules/unictype/block-list-tests: Likewise.
33208         * modules/unictype/block-of-tests: Likewise.
33209         * modules/unictype/block-test-tests: Likewise.
33210         * modules/unictype/category-C-tests: Likewise.
33211         * modules/unictype/category-Cc-tests: Likewise.
33212         * modules/unictype/category-Cf-tests: Likewise.
33213         * modules/unictype/category-Cn-tests: Likewise.
33214         * modules/unictype/category-Co-tests: Likewise.
33215         * modules/unictype/category-Cs-tests: Likewise.
33216         * modules/unictype/category-L-tests: Likewise.
33217         * modules/unictype/category-Ll-tests: Likewise.
33218         * modules/unictype/category-Lm-tests: Likewise.
33219         * modules/unictype/category-Lo-tests: Likewise.
33220         * modules/unictype/category-Lt-tests: Likewise.
33221         * modules/unictype/category-Lu-tests: Likewise.
33222         * modules/unictype/category-M-tests: Likewise.
33223         * modules/unictype/category-Mc-tests: Likewise.
33224         * modules/unictype/category-Me-tests: Likewise.
33225         * modules/unictype/category-Mn-tests: Likewise.
33226         * modules/unictype/category-N-tests: Likewise.
33227         * modules/unictype/category-Nd-tests: Likewise.
33228         * modules/unictype/category-Nl-tests: Likewise.
33229         * modules/unictype/category-No-tests: Likewise.
33230         * modules/unictype/category-P-tests: Likewise.
33231         * modules/unictype/category-Pc-tests: Likewise.
33232         * modules/unictype/category-Pd-tests: Likewise.
33233         * modules/unictype/category-Pe-tests: Likewise.
33234         * modules/unictype/category-Pf-tests: Likewise.
33235         * modules/unictype/category-Pi-tests: Likewise.
33236         * modules/unictype/category-Po-tests: Likewise.
33237         * modules/unictype/category-Ps-tests: Likewise.
33238         * modules/unictype/category-S-tests: Likewise.
33239         * modules/unictype/category-Sc-tests: Likewise.
33240         * modules/unictype/category-Sk-tests: Likewise.
33241         * modules/unictype/category-Sm-tests: Likewise.
33242         * modules/unictype/category-So-tests: Likewise.
33243         * modules/unictype/category-Z-tests: Likewise.
33244         * modules/unictype/category-Zl-tests: Likewise.
33245         * modules/unictype/category-Zp-tests: Likewise.
33246         * modules/unictype/category-Zs-tests: Likewise.
33247         * modules/unictype/category-and-not-tests: Likewise.
33248         * modules/unictype/category-and-tests: Likewise.
33249         * modules/unictype/category-byname-tests: Likewise.
33250         * modules/unictype/category-name-tests: Likewise.
33251         * modules/unictype/category-none-tests: Likewise.
33252         * modules/unictype/category-of-tests: Likewise.
33253         * modules/unictype/category-or-tests: Likewise.
33254         * modules/unictype/category-test-withtable-tests: Likewise.
33255         * modules/unictype/combining-class-tests: Likewise.
33256         * modules/unictype/ctype-alnum-tests: Likewise.
33257         * modules/unictype/ctype-alpha-tests: Likewise.
33258         * modules/unictype/ctype-blank-tests: Likewise.
33259         * modules/unictype/ctype-cntrl-tests: Likewise.
33260         * modules/unictype/ctype-digit-tests: Likewise.
33261         * modules/unictype/ctype-graph-tests: Likewise.
33262         * modules/unictype/ctype-lower-tests: Likewise.
33263         * modules/unictype/ctype-print-tests: Likewise.
33264         * modules/unictype/ctype-punct-tests: Likewise.
33265         * modules/unictype/ctype-space-tests: Likewise.
33266         * modules/unictype/ctype-upper-tests: Likewise.
33267         * modules/unictype/ctype-xdigit-tests: Likewise.
33268         * modules/unictype/decimal-digit-tests: Likewise.
33269         * modules/unictype/digit-tests: Likewise.
33270         * modules/unictype/mirror-tests: Likewise.
33271         * modules/unictype/numeric-tests: Likewise.
33272         * modules/unictype/property-alphabetic-tests: Likewise.
33273         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33274         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33275         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33276         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33277         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33278         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33279         * modules/unictype/property-bidi-control-tests: Likewise.
33280         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33281         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33282         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33283         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33284         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33285         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33286         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33287         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33288         * modules/unictype/property-bidi-pdf-tests: Likewise.
33289         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33290         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33291         * modules/unictype/property-byname-tests: Likewise.
33292         * modules/unictype/property-combining-tests: Likewise.
33293         * modules/unictype/property-composite-tests: Likewise.
33294         * modules/unictype/property-currency-symbol-tests: Likewise.
33295         * modules/unictype/property-dash-tests: Likewise.
33296         * modules/unictype/property-decimal-digit-tests: Likewise.
33297         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33298         * modules/unictype/property-deprecated-tests: Likewise.
33299         * modules/unictype/property-diacritic-tests: Likewise.
33300         * modules/unictype/property-extender-tests: Likewise.
33301         * modules/unictype/property-format-control-tests: Likewise.
33302         * modules/unictype/property-grapheme-base-tests: Likewise.
33303         * modules/unictype/property-grapheme-extend-tests: Likewise.
33304         * modules/unictype/property-grapheme-link-tests: Likewise.
33305         * modules/unictype/property-hex-digit-tests: Likewise.
33306         * modules/unictype/property-hyphen-tests: Likewise.
33307         * modules/unictype/property-id-continue-tests: Likewise.
33308         * modules/unictype/property-id-start-tests: Likewise.
33309         * modules/unictype/property-ideographic-tests: Likewise.
33310         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33311         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33312         * modules/unictype/property-ignorable-control-tests: Likewise.
33313         * modules/unictype/property-iso-control-tests: Likewise.
33314         * modules/unictype/property-join-control-tests: Likewise.
33315         * modules/unictype/property-left-of-pair-tests: Likewise.
33316         * modules/unictype/property-line-separator-tests: Likewise.
33317         * modules/unictype/property-logical-order-exception-tests: Likewise.
33318         * modules/unictype/property-lowercase-tests: Likewise.
33319         * modules/unictype/property-math-tests: Likewise.
33320         * modules/unictype/property-non-break-tests: Likewise.
33321         * modules/unictype/property-not-a-character-tests: Likewise.
33322         * modules/unictype/property-numeric-tests: Likewise.
33323         * modules/unictype/property-other-alphabetic-tests: Likewise.
33324         * modules/unictype/property-other-default-ignorable-code-point-tests:
33325         Likewise.
33326         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33327         * modules/unictype/property-other-id-continue-tests: Likewise.
33328         * modules/unictype/property-other-id-start-tests: Likewise.
33329         * modules/unictype/property-other-lowercase-tests: Likewise.
33330         * modules/unictype/property-other-math-tests: Likewise.
33331         * modules/unictype/property-other-uppercase-tests: Likewise.
33332         * modules/unictype/property-paired-punctuation-tests: Likewise.
33333         * modules/unictype/property-paragraph-separator-tests: Likewise.
33334         * modules/unictype/property-pattern-syntax-tests: Likewise.
33335         * modules/unictype/property-pattern-white-space-tests: Likewise.
33336         * modules/unictype/property-private-use-tests: Likewise.
33337         * modules/unictype/property-punctuation-tests: Likewise.
33338         * modules/unictype/property-quotation-mark-tests: Likewise.
33339         * modules/unictype/property-radical-tests: Likewise.
33340         * modules/unictype/property-sentence-terminal-tests: Likewise.
33341         * modules/unictype/property-soft-dotted-tests: Likewise.
33342         * modules/unictype/property-space-tests: Likewise.
33343         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33344         * modules/unictype/property-test-tests: Likewise.
33345         * modules/unictype/property-titlecase-tests: Likewise.
33346         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33347         * modules/unictype/property-unified-ideograph-tests: Likewise.
33348         * modules/unictype/property-uppercase-tests: Likewise.
33349         * modules/unictype/property-variation-selector-tests: Likewise.
33350         * modules/unictype/property-white-space-tests: Likewise.
33351         * modules/unictype/property-xid-continue-tests: Likewise.
33352         * modules/unictype/property-xid-start-tests: Likewise.
33353         * modules/unictype/property-zero-width-tests: Likewise.
33354         * modules/unictype/scripts-tests: Likewise.
33355         * modules/unictype/syntax-c-ident-tests: Likewise.
33356         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33357         * modules/unictype/syntax-java-ident-tests: Likewise.
33358         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33359         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33360         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33361         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33362         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33363         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33364         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33365         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33366         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33367         * modules/uniname/uniname-tests: Likewise.
33368         * modules/uninorm/canonical-decomposition-tests: Likewise.
33369         * modules/uninorm/compat-decomposition-tests: Likewise.
33370         * modules/uninorm/composition-tests: Likewise.
33371         * modules/uninorm/decomposing-form-tests: Likewise.
33372         * modules/uninorm/decomposition-tests: Likewise.
33373         * modules/uninorm/filter-tests: Likewise.
33374         * modules/uninorm/nfc-tests: Likewise.
33375         * modules/uninorm/nfd-tests: Likewise.
33376         * modules/uninorm/nfkc-tests: Likewise.
33377         * modules/uninorm/nfkd-tests: Likewise.
33378         * modules/uninorm/u8-normcmp-tests: Likewise.
33379         * modules/uninorm/u8-normcoll-tests: Likewise.
33380         * modules/uninorm/u16-normcmp-tests: Likewise.
33381         * modules/uninorm/u16-normcoll-tests: Likewise.
33382         * modules/uninorm/u32-normcmp-tests: Likewise.
33383         * modules/uninorm/u32-normcoll-tests: Likewise.
33384         * modules/unistdio/u8-asnprintf-tests: Likewise.
33385         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33386         * modules/unistdio/u8-vasprintf-tests: Likewise.
33387         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33388         * modules/unistdio/u8-vsprintf-tests: Likewise.
33389         * modules/unistdio/u16-asnprintf-tests: Likewise.
33390         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33391         * modules/unistdio/u16-vasprintf-tests: Likewise.
33392         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33393         * modules/unistdio/u16-vsprintf-tests: Likewise.
33394         * modules/unistdio/u32-asnprintf-tests: Likewise.
33395         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33396         * modules/unistdio/u32-vasprintf-tests: Likewise.
33397         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33398         * modules/unistdio/u32-vsprintf-tests: Likewise.
33399         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33400         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33401         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33402         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33403         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33404         * modules/unistr/u8-check-tests: Likewise.
33405         * modules/unistr/u8-chr-tests: Likewise.
33406         * modules/unistr/u8-cmp-tests: Likewise.
33407         * modules/unistr/u8-cmp2-tests: Likewise.
33408         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33409         * modules/unistr/u8-cpy-tests: Likewise.
33410         * modules/unistr/u8-mblen-tests: Likewise.
33411         * modules/unistr/u8-mbsnlen-tests: Likewise.
33412         * modules/unistr/u8-mbtouc-tests: Likewise.
33413         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33414         * modules/unistr/u8-mbtoucr-tests: Likewise.
33415         * modules/unistr/u8-move-tests: Likewise.
33416         * modules/unistr/u8-next-tests: Likewise.
33417         * modules/unistr/u8-prev-tests: Likewise.
33418         * modules/unistr/u8-set-tests: Likewise.
33419         * modules/unistr/u8-stpcpy-tests: Likewise.
33420         * modules/unistr/u8-stpncpy-tests: Likewise.
33421         * modules/unistr/u8-strcat-tests: Likewise.
33422         * modules/unistr/u8-strcmp-tests: Likewise.
33423         * modules/unistr/u8-strcoll-tests: Likewise.
33424         * modules/unistr/u8-strcpy-tests: Likewise.
33425         * modules/unistr/u8-strdup-tests: Likewise.
33426         * modules/unistr/u8-strlen-tests: Likewise.
33427         * modules/unistr/u8-strmblen-tests: Likewise.
33428         * modules/unistr/u8-strmbtouc-tests: Likewise.
33429         * modules/unistr/u8-strncat-tests: Likewise.
33430         * modules/unistr/u8-strncmp-tests: Likewise.
33431         * modules/unistr/u8-strncpy-tests: Likewise.
33432         * modules/unistr/u8-strnlen-tests: Likewise.
33433         * modules/unistr/u8-to-u16-tests: Likewise.
33434         * modules/unistr/u8-to-u32-tests: Likewise.
33435         * modules/unistr/u8-uctomb-tests: Likewise.
33436         * modules/unistr/u16-check-tests: Likewise.
33437         * modules/unistr/u16-chr-tests: Likewise.
33438         * modules/unistr/u16-cmp-tests: Likewise.
33439         * modules/unistr/u16-cmp2-tests: Likewise.
33440         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33441         * modules/unistr/u16-cpy-tests: Likewise.
33442         * modules/unistr/u16-mblen-tests: Likewise.
33443         * modules/unistr/u16-mbsnlen-tests: Likewise.
33444         * modules/unistr/u16-mbtouc-tests: Likewise.
33445         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33446         * modules/unistr/u16-mbtoucr-tests: Likewise.
33447         * modules/unistr/u16-move-tests: Likewise.
33448         * modules/unistr/u16-next-tests: Likewise.
33449         * modules/unistr/u16-prev-tests: Likewise.
33450         * modules/unistr/u16-set-tests: Likewise.
33451         * modules/unistr/u16-stpcpy-tests: Likewise.
33452         * modules/unistr/u16-stpncpy-tests: Likewise.
33453         * modules/unistr/u16-strcat-tests: Likewise.
33454         * modules/unistr/u16-strcmp-tests: Likewise.
33455         * modules/unistr/u16-strcoll-tests: Likewise.
33456         * modules/unistr/u16-strcpy-tests: Likewise.
33457         * modules/unistr/u16-strdup-tests: Likewise.
33458         * modules/unistr/u16-strlen-tests: Likewise.
33459         * modules/unistr/u16-strmblen-tests: Likewise.
33460         * modules/unistr/u16-strmbtouc-tests: Likewise.
33461         * modules/unistr/u16-strncat-tests: Likewise.
33462         * modules/unistr/u16-strncmp-tests: Likewise.
33463         * modules/unistr/u16-strncpy-tests: Likewise.
33464         * modules/unistr/u16-strnlen-tests: Likewise.
33465         * modules/unistr/u16-to-u32-tests: Likewise.
33466         * modules/unistr/u16-to-u8-tests: Likewise.
33467         * modules/unistr/u16-uctomb-tests: Likewise.
33468         * modules/unistr/u32-check-tests: Likewise.
33469         * modules/unistr/u32-chr-tests: Likewise.
33470         * modules/unistr/u32-cmp-tests: Likewise.
33471         * modules/unistr/u32-cmp2-tests: Likewise.
33472         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33473         * modules/unistr/u32-cpy-tests: Likewise.
33474         * modules/unistr/u32-mblen-tests: Likewise.
33475         * modules/unistr/u32-mbsnlen-tests: Likewise.
33476         * modules/unistr/u32-mbtouc-tests: Likewise.
33477         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33478         * modules/unistr/u32-mbtoucr-tests: Likewise.
33479         * modules/unistr/u32-move-tests: Likewise.
33480         * modules/unistr/u32-next-tests: Likewise.
33481         * modules/unistr/u32-prev-tests: Likewise.
33482         * modules/unistr/u32-set-tests: Likewise.
33483         * modules/unistr/u32-stpcpy-tests: Likewise.
33484         * modules/unistr/u32-stpncpy-tests: Likewise.
33485         * modules/unistr/u32-strcat-tests: Likewise.
33486         * modules/unistr/u32-strcmp-tests: Likewise.
33487         * modules/unistr/u32-strcoll-tests: Likewise.
33488         * modules/unistr/u32-strcpy-tests: Likewise.
33489         * modules/unistr/u32-strdup-tests: Likewise.
33490         * modules/unistr/u32-strlen-tests: Likewise.
33491         * modules/unistr/u32-strmblen-tests: Likewise.
33492         * modules/unistr/u32-strmbtouc-tests: Likewise.
33493         * modules/unistr/u32-strncat-tests: Likewise.
33494         * modules/unistr/u32-strncmp-tests: Likewise.
33495         * modules/unistr/u32-strncpy-tests: Likewise.
33496         * modules/unistr/u32-strnlen-tests: Likewise.
33497         * modules/unistr/u32-to-u16-tests: Likewise.
33498         * modules/unistr/u32-to-u8-tests: Likewise.
33499         * modules/unistr/u32-uctomb-tests: Likewise.
33500         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33501         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33502         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33503         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33504         * modules/uniwidth/u8-strwidth-tests: Likewise.
33505         * modules/uniwidth/u8-width-tests: Likewise.
33506         * modules/uniwidth/u16-strwidth-tests: Likewise.
33507         * modules/uniwidth/u16-width-tests: Likewise.
33508         * modules/uniwidth/u32-strwidth-tests: Likewise.
33509         * modules/uniwidth/u32-width-tests: Likewise.
33510         * modules/uniwidth/width-tests: Likewise.
33511
33512 2010-05-18  Richard Jones  <rjones@redhat.com>
33513
33514         doc: users.txt: list hivex
33515         * users.txt: Add hivex.
33516
33517 2010-05-18  Richard Jones  <rjones@redhat.com>
33518
33519         doc: users.txt: list febootstrap
33520         * users.txt: Add febootstrap.
33521
33522 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33523
33524         bootstrap: fix an error when gnulib is not used as a git submodule
33525         * build-aux/bootstrap (gnulib_path): If its length is zero then
33526         assign "gnulib" to it.
33527         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33528
33529 2010-05-16  Bruno Haible  <bruno@clisp.org>
33530
33531         Avoid autoconf warnings about AM_ICONV.
33532         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33533         2.64.
33534
33535 2010-05-16  Bruno Haible  <bruno@clisp.org>
33536
33537         absolute-header: Make the macro usable in more situations.
33538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33539         from gl_ABSOLUTE_HEADER.
33540         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33541
33542 2010-05-16  James Youngman  <jay@gnu.org>
33543
33544         doc: update users.txt
33545         * users.txt: Add CSSC.
33546
33547 2010-05-16  Jim Meyering  <meyering@redhat.com>
33548
33549         init.sh: fix an error in the previous change; add more comments
33550         * tests/init.sh: Compare exit code in loop against 9, not 2.
33551         Patch by Bruno Haible.
33552         Make the two tests more similar by adding an empty "then" clause.
33553         Add comments.
33554
33555         init.sh: avoid unnecessary shell re-exec
33556         * tests/init.sh: Improve the re-exec-required check to first test the
33557         current shell.  If it passes the test, do not search for a shell that
33558         does pass, and do not re-exec.  This test is particularly contorted to
33559         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33560         of $(...) evokes a syntax error and causes immediate shell exit with
33561         status 2.  Bruno Haible reported that the re-exec made it impossible
33562         to single-step through any init.sh-using script.
33563
33564 2010-05-16  Bruno Haible  <bruno@clisp.org>
33565
33566         Fix collision between gnulib's and libintl's printf replacements.
33567         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33568         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33569         (printf): When using GNU C, map the __printf__ function to rpl_printf
33570         via __asm__. When not using GNU C, define rpl_printf instead of
33571         __printf__.
33572         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33573         commit.
33574         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33575         commit.
33576         * m4/asm-underscore.m4: New file.
33577         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33578         * modules/stdio (Files): Add m4/asm-underscore.m4.
33579         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33580         Reported by Ben Pfaff.
33581
33582 2010-05-16  Bruno Haible  <bruno@clisp.org>
33583
33584         verify: Avoid skipping the test on openSUSE 11.0.
33585         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33586
33587 2010-05-13  Bruno Haible  <bruno@clisp.org>
33588
33589         Avoid useless warnings from G++.
33590         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33591         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33592         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33593
33594 2010-05-11  Jim Meyering  <meyering@redhat.com>
33595
33596         maint.mk: tweak preceding change
33597         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33598         regexps tighter by anchoring at EOL, and make the new group "shy"
33599         for slightly decreased overhead.
33600
33601 2010-05-11  Eric Blake  <eblake@redhat.com>
33602
33603         maint.mk: gnulib doesn't guarantee NSIG
33604         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33605
33606 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33607
33608         test-pwrite.c: Remove unused variable declaration.
33609         * tests/test-pwrite.c (main): Remove read_buf declaration.
33610
33611         Remove useless test-pwrite.sh file.
33612         * tests/test-pwrite.sh: Delete file.
33613         * modules/pwrite-tests: Remove references.
33614         Reported by Bruno Haible.
33615
33616 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33617
33618         init.sh: fix a typo
33619         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33620
33621 2010-05-10  Jim Meyering  <meyering@redhat.com>
33622
33623         maint.mk: avoid using a temporary file in the always-defined-macros check
33624         * top/maint.mk (.re-defmac): Remove rule.
33625         (gl_trap_): Remove definition.
33626         (sc_prohibit_always-defined_macros): Rewrite not to create and
33627         depend on a temporary file.  Instead, depend on GNU grep's ability
33628         to read a list of regular expressions from stdin when given "-f -".
33629
33630 2010-05-09  Bruno Haible  <bruno@clisp.org>
33631
33632         Update to GNU gettext 0.18, part 1.
33633         * m4/gettext.m4: Update to GNU gettext 0.18.
33634         * m4/intl.m4: Likewise.
33635         * m4/po.m4: Likewise.
33636         * modules/gettext (Files): Add m4/fcntl-o.m4.
33637         (configure.ac): Require gettext infrastructure from version 0.18.
33638
33639 2010-05-09  Jim Meyering  <meyering@redhat.com>
33640
33641         init.sh: enable MALLOC_PERTURB_
33642         * tests/init.sh: Enable glibc's malloc-perturbing option.
33643
33644         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33645         With my recent change in init.sh from the two-line form:
33646             -#   : ${srcdir=.}
33647             -#   . "$srcdir/init.sh"; path_prepend_ .
33648             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33649         I noticed that using the one-line form would cause this test
33650         to fail with a false-positive, or to stop working altogether,
33651         depending on whether help-version changed or all the tests did.
33652         * top/maint.mk (_hv_regex): Remove this definition.
33653         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33654         (_hv_regex_strong): Use a stronger regex to check for conformance.
33655         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33656         Give a separate diagnostic for lack of conforming use.
33657
33658         maint.mk: prohibit definition of symbols defined by gnulib
33659         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33660         definition of symbols defined by gnulib.
33661
33662 2010-05-09  Bruno Haible  <bruno@clisp.org>
33663
33664         acl: Avoid test failure on Cygwin-hosted mingw.
33665         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33666
33667 2010-05-09  Bruno Haible  <bruno@clisp.org>
33668
33669         error: Use system's fcntl function.
33670         * lib/error.c (fcntl): Undefine.
33671
33672 2010-05-09  Jim Meyering  <meyering@redhat.com>
33673
33674         verify: adjust formatting to be more consistent
33675         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33676         argument-list '('s, and after one comma.
33677
33678 2010-05-09  Bruno Haible  <bruno@clisp.org>
33679
33680         error: More reliable output on mingw.
33681         * lib/error.c: Include <windows.h>.
33682         (is_open): New function.
33683         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33684         defined.
33685
33686 2010-05-09  Bruno Haible  <bruno@clisp.org>
33687
33688         vasnprintf: Fix syntax errors in libintl build on mingw.
33689         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33690         pad_ourselves and prec_ourselves after use.
33691
33692 2010-05-08  Bruno Haible  <bruno@clisp.org>
33693
33694         * lib/config.charset: Update comments for Cygwin 1.7.
33695         * lib/localcharset.c: Likewise.
33696
33697 2010-05-07  Jim Meyering  <meyering@redhat.com>
33698
33699         init.sh: improve comments
33700         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33701         . "${srcdir=.}/init.sh"; path_prepend_ .
33702         Add a note about path_prepend_ and the alternative of using
33703         TESTS_ENVIRONMENT.
33704
33705 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33706
33707         exclude: Unescape hashed patterns in wildcard mode.
33708         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33709         to the hash list.
33710         * tests/test-exclude8.sh: New test case.
33711         * modules/exclude-tests: Add new test.
33712
33713 2010-05-05  Eric Blake  <eblake@redhat.com>
33714
33715         verify: automate tests
33716         * modules/verify-tests: New module.
33717         * tests/test-verify.sh: New file.
33718         * tests/test-verify.c: Guard each negative test with a unique id.
33719         Also avoid warning about unused left hand of comma expressions.
33720
33721 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33722
33723         Further improvements to verify.h, suggested by Eric Blake.
33724         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33725         the GL_* versions, to avoid collision with OpenGL.
33726         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33727         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33728         than testing merely whether it's defined.
33729
33730         Modify verify.h to pacify gcc -Wredundant_decls.
33731         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33732         These use the prefix "GL_" since they're likely to be useful elsewhere.
33733         We may need to break them out into a different .h file.
33734         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33735         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33736         of verify_function__.
33737
33738 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33739
33740         Tests for module pwrite.
33741         * modules/pwrite-tests: New file.
33742         * tests/test-pwrite.sh: New file.
33743         * tests/test-pwrite.c: New file.
33744
33745         New module pwrite.
33746         * lib/unistd.in.h (pwrite): New declaration.
33747         * lib/pwrite.c: New file, from glibc with modifications.
33748         * m4/pwrite.m4: New file.
33749         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33751         REPLACE_PWRITE.
33752         * modules/pwrite: New file.
33753         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33754         REPLACE_PWRITE.
33755         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33756         * doc/posix-functions/pwrite.texi: Mention the new module.
33757
33758 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33759
33760         pread: Update documentation.
33761         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33762
33763 2010-05-04  Eric Blake  <eblake@redhat.com>
33764
33765         docs: update cygwin progress
33766         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33767         this bug.
33768         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33769         Added in cygwin 1.7.2.
33770         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33771         Likewise.
33772         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33773         Likewise.
33774         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33775         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33776         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33777         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33778         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33779         Mention nproc module.
33780         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33781         bug in cygwin 1.7.5 addition.
33782         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33783         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33784         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33785         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33786         1.7.5.
33787         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33788         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33789         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33790         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33791         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33792         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33793         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33794         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33795         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33796         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33797         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33798         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33799         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33800         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33801         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33802         Likewise.
33803         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33804         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33805         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33806         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33807         Likewise.
33808         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33809         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33810         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33811         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33812         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33813         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33814         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33815         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33816         Likewise.
33817         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33818         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33819         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33820         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33821         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33822         Likewise.
33823         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33824         Likewise.
33825         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33826         Likewise.
33827         * doc/glibc-functions/xdrrec_endofrecord.texi
33828         (xdrrec_endofrecord): Likewise.
33829         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33830         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33831         Likewise.
33832         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33833         Likewise.
33834
33835 2010-05-04  Jim Meyering  <meyering@redhat.com>
33836
33837         gendocs.sh: make its "-s FILE" option more useful
33838         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33839         $PACKAGE to reflect the probably-different basename of "FILE".
33840
33841 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33842
33843         bootstrap: don't ignore download_po_files failure
33844         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33845         failure.
33846
33847 2010-05-03  Jim Meyering  <meyering@redhat.com>
33848
33849         maint.mk: allow to pass options to gendocs.sh
33850         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33851         (gendocs_options_): New overridable variable.
33852
33853         gnu-web-doc-update: don't ignore configure or build failure
33854         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33855
33856         announce-gen: backslash-escape '@'s in --help output
33857         * build-aux/announce-gen: Fix syntax errors.
33858
33859         maint.mk, announce-gen: allow project-specific announcement mail headers
33860         * top/maint.mk (translation_project_): Define default.
33861         (announcement_Cc_, announcement_mail_headers_): Likewise.
33862         (announcement): Invoke announce-gen with new --mail-headers option.
33863         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33864
33865         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33866         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33867         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33868         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33869         line in the "err2" output file when running "make check" in verbose
33870         mode (i.e., with set -x enabled).
33871
33872 2010-05-03  Bruno Haible  <bruno@clisp.org>
33873
33874         wctob: Fix for weird platforms.
33875         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33876         argument value.
33877
33878 2010-05-03  Jim Meyering  <meyering@redhat.com>
33879
33880         maint.mk: prohibit unwarranted use of <strings.h>
33881         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33882         strings.h in a file that does not also use strcasecmp, strncasecmp,
33883         ffs or ffsll.
33884
33885         maint.mk: remove obsolete comments
33886         * top/maint.mk: Remove stale, commented-out rules.
33887
33888 2010-05-02  Bruno Haible  <bruno@clisp.org>
33889
33890         wcwidth: Declare also when it's aliased.
33891         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33892         macro.
33893
33894 2010-05-02  Bruno Haible  <bruno@clisp.org>
33895
33896         Fix regression from 2010-04-25.
33897         * gnulib-tool (func_modules_transitive_closure): Check the status of
33898         all modules, not only of the tests that are of the form foo-tests where
33899         foo is a module.
33900
33901 2010-05-02  Bruno Haible  <bruno@clisp.org>
33902
33903         wctob: Work around nasty Cygwin 1.7.2 bug.
33904         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33905         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33906
33907 2010-05-01  Bruno Haible  <bruno@clisp.org>
33908
33909         fpurge: Sharper test.
33910         * tests/test-fpurge.c (main): Add one more ftell check.
33911         * modules/fpurge-tests (Depends-on): Add ftell.
33912         Suggested by Eric Blake.
33913
33914 2010-05-01  Bruno Haible  <bruno@clisp.org>
33915
33916         ftello: Another test.
33917         * tests/test-ftello3.c: New file.
33918         * modules/ftello-tests (Files): Add it.
33919         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33920         MOSTLYCLEANFILES.
33921
33922         ftell: Another test.
33923         * tests/test-ftell3.c: New file.
33924         * modules/ftell-tests (Files): Add it.
33925         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33926         MOSTLYCLEANFILES.
33927
33928 2010-05-01  Bruno Haible  <bruno@clisp.org>
33929
33930         ftell, ftello: Work around Solaris bug.
33931         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33932         * lib/ftello.c: Include stdio-impl.h.
33933         (ftello): On Solaris, when _IOWRT is set, compute the result without
33934         looking at _IOREAD.
33935         * modules/ftello (Files): Add lib/stdio-impl.h.
33936         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33937         * doc/posix-functions/ftello.texi: Likewise.
33938         Reported by Eric Blake.
33939
33940 2010-05-01  Bruno Haible  <bruno@clisp.org>
33941
33942         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33943         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33944         the _IOWRT flag is also set.
33945
33946 2010-05-01  Bruno Haible  <bruno@clisp.org>
33947
33948         Fix doc about a HP-UX stdio bug.
33949         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33950         * doc/posix-functions/ftello.texi: Likewise.
33951
33952 2010-05-01  Bruno Haible  <bruno@clisp.org>
33953
33954         lseek test: Fix failure on Solaris.
33955         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33956         output.
33957
33958 2010-04-30  Jim Meyering  <meyering@redhat.com>
33959
33960         bootstrap: don't ignore failure to generate po*/Makevars
33961         * build-aux/bootstrap (with_gettext): Don't ignore failure
33962         to create po/Makevars or runtime-po/Makevars.
33963
33964 2010-04-29  Eric Blake  <eblake@redhat.com>
33965
33966         headers: relax license to LGPLv2+
33967         * modules/fcntl-h (License): Relax license.
33968         * modules/getopt-posix (License): Likewise.
33969         * modules/locale (License): Likewise.
33970         * modules/math (License): Likewise.
33971         * modules/pty (License): Likewise.
33972         * modules/sched (License): Likewise.
33973         * modules/search (License): Likewise.
33974         * modules/spawn (License): Likewise.
33975         * modules/stdarg (License): Likewise.
33976         * modules/sysexits (License): Likewise.
33977
33978 2010-04-29  Jim Meyering  <meyering@redhat.com>
33979
33980         inttypes: relax license to LGPLv2+
33981         * modules/inttypes (License): Relax license.
33982
33983 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33984
33985         * top/maint.mk (indent): Run twice to produce idempotent results.
33986
33987 2010-04-28  Bruno Haible  <bruno@clisp.org>
33988
33989         getdate: Generate getdate.c in the source directory.
33990         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33991         MOSTLYCLEANFILES.
33992         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33993
33994 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33995
33996         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33997         is not declared as a const *; avoid warnings in that case.
33998
33999 2010-04-28  Eric Blake  <eblake@redhat.com>
34000
34001         canonicalize-lgpl: avoid compiler warning
34002         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34003         declaration' / 'extraneous semicolon' warning with some compilers.
34004         Reported by Andreas Gruenbacher.
34005
34006 2010-04-28  Jim Meyering  <meyering@redhat.com>
34007
34008         init.sh: ensure a more reliable exit status when exiting via trap
34009         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34010         Inspired by patches from Dmitry V. Levin.
34011         Also trap on signal 3 (SIGQUIT).
34012
34013 2010-04-27  Bruno Haible  <bruno@clisp.org>
34014
34015         Update doc about utimes().
34016         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34017         'utimens' module.
34018         Reported by Andreas Gruenbacher <agruen@suse.de>.
34019
34020 2010-04-27  Eric Blake  <eblake@redhat.com>
34021
34022         full-read, full-write: relax license
34023         * modules/full-read (License): Drop to LGPLv2+.
34024         * modules/full-write (License): Likewise.
34025         * modules/safe-read (License): Likewise.
34026         * modules/safe-write (License): Likewise.
34027
34028         pthread: mention library for linking
34029         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34030
34031 2010-04-27  Jim Meyering  <meyering@redhat.com>
34032
34033         maint.mk: fix a bug introduced in last change
34034         * top/maint.mk (gl_assured_headers_): Now that all names are on
34035         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34036         is not anchored to end of word, it should be adequate.
34037
34038         maint.mk: avoid side-effect in latest syntax-check
34039         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34040         to run commands via $(shell...), and hence to incur cost only when
34041         the new rule is actually run.
34042
34043         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34044         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34045         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34046         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34047         (gl_assured_headers_, az_, AZ_): Define.
34048         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34049
34050 2010-04-26  Jim Meyering  <jim@meyering.net>
34051             Bruno Haible  <bruno@clisp.org>
34052
34053         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34054         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34055         Prompted by an exchange with Gilles Espinasse.
34056
34057 2010-04-26  Jim Meyering  <meyering@redhat.com>
34058
34059         git-version-gen: aesthetic tweak
34060         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34061         so that the command remains on a single line.
34062
34063 2010-04-26  Eric Blake  <eblake@redhat.com>
34064
34065         git-version-gen: allow use on EBCDIC hosts
34066         * build-aux/git-version-gen (dirty): Use literal rather than tying
34067         ourselves to ascii.
34068         Reported by Steve Goetze.
34069
34070 2010-04-25  Bruno Haible  <bruno@clisp.org>
34071
34072         netdb: Add support for GNULIB_POSIXCHECK.
34073         * lib/netdb.in.h: Include warn-on-use.h.
34074         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34075         functions are used when GNULIB_POSIXCHECK is defined and the
34076         getaddrinfo module is not in use.
34077         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34078         freeaddrinfo, gai_strerror, getnameinfo are declared.
34079         * modules/netdb (Depends-on): Add warn-on-use.
34080         (Makefile.am): Include warn-on-use.h in netdb.h.
34081
34082 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34083
34084         build: avoid "make check" failure without .git/ directory
34085         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34086         there is no .git/ directory.
34087
34088 2010-04-25  Bruno Haible  <bruno@clisp.org>
34089
34090         ptsname: Fix misuse of ttyname_r.
34091         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34092         of errno.
34093
34094 2010-04-25  Bruno Haible  <bruno@clisp.org>
34095
34096         ttyname_r: Make it work on Solaris 10.
34097         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34098         if the system function has the POSIX declaration. Test whether the
34099         function fails if the buffer is less than 128 bytes large.
34100         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34101         system's ttyname_r function. Provide a reasonably large buffer.
34102         * modules/ttyname_r (Depends-on): Add extensions.
34103         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34104
34105 2010-04-25  Bruno Haible  <bruno@clisp.org>
34106
34107         Use the 'extensions' module for some more functions on Solaris.
34108         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34109         module.
34110         * doc/posix-functions/ctime_r.texi: Likewise.
34111         * doc/posix-functions/getgrgid_r.texi: Likewise.
34112         * doc/posix-functions/getgrnam_r.texi: Likewise.
34113         * doc/posix-functions/getpwnam_r.texi: Likewise.
34114         * doc/posix-functions/getpwuid_r.texi: Likewise.
34115         * doc/posix-functions/readdir_r.texi: Likewise.
34116         * doc/posix-functions/sigwait.texi: Likewise.
34117         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34118         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34119
34120 2010-04-25  Bruno Haible  <bruno@clisp.org>
34121
34122         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34123         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34124         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34125         * lib/ttyname_r.c: Include <limits.h>.
34126         (ttyname_r): Define using the system's ttyname_r function, if it exists
34127         and not on Solaris.
34128         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34129         set.
34130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34131         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34132         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34133         Reported by Simon Josefsson.
34134
34135 2010-04-25  Bruno Haible  <bruno@clisp.org>
34136
34137         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34138         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34139         * doc/posix-functions/ctime_r.texi: Likewise.
34140         * doc/posix-functions/getgrgid_r.texi: Likewise.
34141         * doc/posix-functions/getgrnam_r.texi: Likewise.
34142         * doc/posix-functions/getlogin_r.texi: Likewise.
34143         * doc/posix-functions/getpwnam_r.texi: Likewise.
34144         * doc/posix-functions/getpwuid_r.texi: Likewise.
34145         * doc/posix-functions/readdir_r.texi: Likewise.
34146         * doc/posix-functions/sigwait.texi: Likewise.
34147         * doc/posix-functions/ttyname_r.texi: Likewise.
34148         Reported by Simon Josefsson.
34149
34150 2010-04-25  Bruno Haible  <bruno@clisp.org>
34151
34152         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34153         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34154         also to --create-testdir.
34155         (func_acceptable): Don't consider the status of *-tests modules here.
34156         (func_modules_transitive_closure): Consider it here, before including a
34157         test module.
34158         (func_import, func_create_testdir): Set inc_all_direct_tests,
34159         inc_all_indirect_tests.
34160         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34161         --create-testdir and --create-megatestdir.
34162
34163 2010-04-25  Bruno Haible  <bruno@clisp.org>
34164
34165         gnulib-tool: Add --without-*-tests options.
34166         * gnulib-tool (func_usage): Document the --without-*-tests options.
34167         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34168         excl_unportable_tests): New variables.
34169         Fail if they are specified with --import or --update.
34170         (func_acceptable): Respect the excl_*_tests variables.
34171         (func_import): Set the excl_*_tests variables to empty.
34172
34173 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34174             Bruno Haible  <bruno@clisp.org>
34175
34176         Work around a MacOS X 10.4 bug with openpty.
34177         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34178         * tests/test-openpty.c (main): Close the master side explicitly.
34179
34180 2010-04-25  Bruno Haible  <bruno@clisp.org>
34181
34182         strnlen: Fix a C++ test error on MacOS X and Solaris.
34183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34184         the function is not declared.
34185         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34186         Simon Josefsson.
34187
34188 2010-04-24  Bruno Haible  <bruno@clisp.org>
34189
34190         Avoid a gcc warning.
34191         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34192         of correct type for %08lx directive.
34193         Reported by Eric Blake.
34194
34195 2010-04-24  Bruno Haible  <bruno@clisp.org>
34196
34197         vasnprintf: Correct errno value in case of out-of-memory.
34198         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34199         or sprintf. Use the errno value from SNPRINTF or sprintf.
34200         Reported by Ian Beckwith <ianb@erislabs.net>.
34201
34202 2010-04-24  Bruno Haible  <bruno@clisp.org>
34203
34204         ansi-c++-opt: Find correct compiler when cross-compiling.
34205         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34206         AC_CHECK_PROGS.
34207         Reported by Simon Josefsson.
34208
34209 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34210
34211         vc-list-files: Add support for subversion
34212         * build-aux/vc-list-files: Use "svn list" to generate the list of
34213         files controlled by subversion.
34214
34215 2010-04-23  Jim Meyering  <meyering@redhat.com>
34216
34217         vc-list-files tests: convert to use init.sh
34218         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34219         path_prepend_.
34220         Use Exit, not exit.
34221         Use skip_ rather than open coding it.
34222         Remove trap set-up and compare definitions.
34223         * tests/test-vc-list-files-git.sh: Likewise.
34224         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34225
34226 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34227
34228         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34229         backup files.
34230
34231 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34232
34233         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34234
34235 2010-04-20  Eric Blake  <eblake@redhat.com>
34236
34237         tests: be robust to ignored SIGPIPE
34238         * tests/test-select-in.sh: Consume all output.
34239         * tests/test-lseek.sh: Check correct exit status, while avoiding
34240         EPIPE.
34241
34242 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34243             Bruno Haible  <bruno@clisp.org>
34244
34245         visibility: Don't use -fvisibility if it leads to a warning.
34246         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34247         yes, don't pretend that visibility works if it leads to a warning.
34248         Reported by Mike Gran <spk121@yahoo.com>.
34249
34250 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34251
34252         * build-aux/bootstrap: Use "git -h" for testing for supported options
34253         instead of "git --help".  The short-form option only shows a summary,
34254         and doesn't layout the full man page.  Grep for the full option name
34255         in the summary, too.
34256
34257 2010-04-19  Bruno Haible  <bruno@clisp.org>
34258
34259         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34260         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34261         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34262         mention of RELOCATABLE_STRIP.
34263         Reported by Sylvain Beucler <beuc@beuc.net>.
34264
34265 2010-04-19  Bruno Haible  <bruno@clisp.org>
34266
34267         * lib/diffseq.h: Fix typo in comment.
34268         Reported by Eric Blake.
34269
34270 2010-04-19  Bruno Haible  <bruno@clisp.org>
34271
34272         ioctl: Move autoconf macro to a .m4 file.
34273         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34274         * modules/ioctl (Files): Add it.
34275         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34276         Reported by Ian Beckwith <ianb@erislabs.net>.
34277
34278 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34279             Bruno Haible  <bruno@clisp.org>
34280
34281         diffseq: Accommodate use-case with abstract arrays.
34282         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34283         is not defined.
34284         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34285         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34286
34287 2010-04-18  Bruno Haible  <bruno@clisp.org>
34288
34289         * doc/posix-headers/stdbool.texi: More precise wording.
34290
34291 2010-04-17  Jim Meyering  <meyering@redhat.com>
34292
34293         maint.mk: use gnu-style indentation in an embedded perl script
34294         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34295         Rename variable: s/two/last_two_bytes/
34296
34297 2010-04-16  Eric Blake  <eblake@redhat.com>
34298
34299         test-stdbool: skip test that fails with Solaris CC
34300         * tests/test-stdbool.c (f): Skip test that causes compilation
34301         error under buggy C++ compiler.
34302         * lib/stdbool.in.h: Document the limitation.
34303         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34304
34305         setenv: allow compilation with C++
34306         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34307         register keyword.
34308
34309         stdint: allow test to pass with C++
34310         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34311
34312         getopt: allow compilation with C++
34313         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34314         struct.
34315         * lib/getopt.c (_getopt_internal_r): Use correct type.
34316         Reported by Dagobert Michelson, via Joel E. Denny.
34317
34318 2010-04-16  Bruno Haible  <bruno@clisp.org>
34319
34320         Override netdb.h always.
34321         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34322         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34323         Reported by Ludovic Courtès <ludo@gnu.org>.
34324
34325 2010-04-15  Bruno Haible  <bruno@clisp.org>
34326
34327         openpty: Fix mistake from 2010-03-21.
34328         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34329         Reported by Simon Josefsson.
34330
34331 2010-04-15  Eric Blake  <eblake@redhat.com>
34332
34333         test-forkpty: fix expected signature
34334         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34335         Reported by Simon Josefsson.
34336
34337 2010-04-15  Jim Meyering  <meyering@redhat.com>
34338
34339         maint.mk: texinfo_suffix_re_: correct the default regexp
34340         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34341
34342         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34343         make it configurable via texinfo_suffix_re_.
34344
34345 2010-04-14  Eric Blake  <eblake@redhat.com>
34346
34347         strtok_r: relax license to LGPLv2+
34348         * modules/strtok_r (License): Relax license.
34349         Reported by Matthias Bolte.
34350
34351 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34352
34353         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34354         version 1.4.4 by default instead of requiring the libgcrypt
34355         version used during build.  This makes it possible to use the
34356         application with older but still binary compatible libgcrypt
34357         versions.
34358
34359 2010-04-13  Eric Blake  <eblake@redhat.com>
34360
34361         getopt-gnu: match recent glibc fixes and posix ruling
34362         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34363         '+' handling, when requesting extensions.
34364         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34365         'W;' handling.
34366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34367         * doc/posix-functions/getopt.texi (getopt): Document this.
34368         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34369         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34370         Likewise.
34371
34372         getopt: merge bug fixes from glibc
34373         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34374         diagnostics.  Honor '+:' correctly.  Reject ';'.
34375
34376         getopt-posix: detect MacOS bug
34377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34378         optind when missing a required argument.
34379         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34380         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34381         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34382         Likewise.
34383
34384         getopt-posix: avoid spurious failure on Solaris
34385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34386         an indicator that setting optind=1 is sufficient for reset.
34387
34388         getopt-posix: avoid spurious failure on FreeBSD
34389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34390         in POSIX mode, since the m4 test uses it.
34391
34392         gnulib-tool: silence warning on BSD sh
34393         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34394
34395 2010-04-13  Jim Meyering  <meyering@redhat.com>
34396
34397         doc: users.txt: GNU patch now uses gnulib
34398         * users.txt: Add patch.
34399
34400 2010-04-12  Jim Meyering  <meyering@redhat.com>
34401
34402         maint.mk: generate more concise timing data for syntax-check rules
34403         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34404         " done" from each line that reports a syntax-check test duration.
34405
34406 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34407
34408         git-version-gen: use "git update-index..." rather than "git status"
34409         * build-aux/git-version-gen: Use git update-index --refresh, not
34410         "git status".  With some versions of git, "git status" would fail
34411         to update the index and result in an unwarranted "-dirty" suffix.
34412
34413 2010-04-11  Jim Meyering  <meyering@redhat.com>
34414
34415         openat: correct formatting (no semantic change)
34416         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34417         Suggested by Bruno Haible.
34418
34419 2010-04-11  Bruno Haible  <bruno@clisp.org>
34420
34421         Stricter declaration checking in testdirs.
34422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34423         If for_tests is true, augment AM_CPPFLAGS to define
34424         GNULIB_STRICT_CHECKING.
34425         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34426         GNULIB_STRICT_CHECKING is defined, verify that the function is
34427         declared.
34428
34429 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34430             Bruno Haible  <bruno@clisp.org>
34431
34432         libunistring: Improve configure output.
34433         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34434         Don't say "consider installing GNU libunistring" when checking again
34435         with libiconv.
34436
34437 2010-04-11  Bruno Haible  <bruno@clisp.org>
34438
34439         libunistring: Correct value of $LTLIBUNISTRING.
34440         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34441         correct the value of $LTLIBUNISTRING.
34442
34443 2010-04-11  Bruno Haible  <bruno@clisp.org>
34444
34445         havelib: Add static libraries to LIBS in the right order.
34446         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34447         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34448
34449 2010-04-11  Bruno Haible  <bruno@clisp.org>
34450
34451         libunistring: Detect libunistring also when it depends on libiconv.
34452         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34453         the second AC_LIB_HAVE_LINKFLAGS invocation.
34454
34455 2010-04-11  James Youngman  <jay@gnu.org>
34456
34457         close-stream: declare local scalars to be "const"
34458         * lib/close-stream.c (close_stream): Make boolean variables const
34459         to document the fact that we set but do not change them.
34460
34461 2010-04-11  Bruno Haible  <bruno@clisp.org>
34462
34463         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34464
34465 2010-04-11  Jim Meyering  <meyering@redhat.com>
34466
34467         maint.mk: don't include dist-check.mk
34468         * top/maint.mk: Remove bogus include directive.
34469
34470         maint.mk: improve empty-line-at-EOF check
34471         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34472         solution, rather than tail+Perl-based one.  The latter would read
34473         a few kilobytes from the end of each file, and did not handle empty
34474         files properly.
34475
34476         maint.mk: print the elapsed time for each syntax-check rule
34477         * top/maint.mk (sc_m_rules_): Save start time in a file.
34478         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34479         (local-check): Interpose the .z rules
34480
34481 2010-04-11  Jim Meyering  <meyering@redhat.com>
34482
34483         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34484         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34485         empty file with one that ends in an empty line.
34486
34487 2010-04-10  Bruno Haible  <bruno@clisp.org>
34488
34489         mkdir: Make it work on mingw64.
34490         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34491         * lib/mkdir.c: Update comment.
34492         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34493
34494 2010-04-10  Bruno Haible  <bruno@clisp.org>
34495
34496         Don't override improved macro from newer autoconf.
34497         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34498         autoconf >= 2.62.
34499         Reported by Joel E. Denny <jdenny@clemson.edu>.
34500
34501 2010-04-10  Jim Meyering  <meyering@redhat.com>
34502
34503         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34504         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34505
34506         maint.mk: correct a diagnostic
34507         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34508         in diagnostic; now use $prohibit.
34509
34510 2010-04-10  Bruno Haible  <address@hidden>
34511
34512         fchownat: Fix a C++ test error on Solaris 8.
34513         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34514         the function does not exist.
34515
34516 2010-04-10  Bruno Haible  <bruno@clisp.org>
34517
34518         vasnprintf: Add more tests.
34519         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34520         (test_function): Test converting an invalid wide string.
34521
34522         vasnprintf: Correct handling of unconvertible wide string arguments.
34523         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34524         VASNPRINTF.
34525         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34526         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34527         smaller than the expected maximum need for the directive. Set errno to
34528         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34529         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34531         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34532         * modules/vasnprintf (Files): Add m4/printf.m4.
34533         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34534
34535 2010-04-10  Bruno Haible  <bruno@clisp.org>
34536
34537         vasnprintf: Fix crash in %ls directive.
34538         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34539         string is passed as argument to %ls, with no precision and no width.
34540         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34541
34542 2010-04-10  Bruno Haible  <bruno@clisp.org>
34543
34544         vasnprintf: Fix multiple test failures on mingw.
34545         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34546         _snprintf, or snwprintf, not _snwprintf.
34547
34548 2010-04-10  Bruno Haible  <bruno@clisp.org>
34549
34550         write: Fix a C++ test error on mingw.
34551         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34552
34553 2010-04-10  Bruno Haible  <bruno@clisp.org>
34554
34555         vasnprintf test: Reduce code duplication.
34556         * tests/test-vasnprintf.c (test_function): New function, extracted from
34557         test_vasnprintf.
34558         (test_vasnprintf, test_asnprintf): Invoke it.
34559
34560 2010-04-10  Bruno Haible  <bruno@clisp.org>
34561
34562         strnlen: Fix warning in C++ mode on MacOS X.
34563         * lib/string.in.h (strnlen): Use the modern idiom.
34564         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34565         defining strnlen as a macro already in <config.h>.
34566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34567         REPLACE_STRNLEN.
34568         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34569         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34570
34571 2010-04-08  James Youngman  <jay@gnu.org>
34572
34573         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34574         the example.
34575
34576 2010-04-09  Jim Meyering  <meyering@redhat.com>
34577
34578         maint.mk: print better diagnostic when there is no $(_hv_file)
34579         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34580         announce that when $(_hv_file) (aka help-version) does not exist.
34581
34582         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34583         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34584         not try to interpret its random input bytes.  Jarno Rajahalme reported
34585         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34586         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34587         (mktempd_): Likewise, just in case.
34588
34589         ftruncate: add two years to projected module removal date: 2012
34590         * m4/ftruncate.m4: Adjust comments.
34591
34592         ftruncate: mark module as obsolete; even MinGW provides it, now
34593         * modules/ftruncate (Status): Obsolete.
34594         (Notice): Say that.
34595         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34597
34598 2010-04-08  Bruno Haible  <bruno@clisp.org>
34599
34600         Fix side effects from tests-related modules.
34601         * modules/dprintf-posix (Comment): New section.
34602         * modules/fprintf-posix (Comment): Likewise.
34603         * modules/obstack-printf-posix (Comment): Likewise.
34604         * modules/printf-posix (Comment): Likewise.
34605         * modules/snprintf-posix (Comment): Likewise.
34606         * modules/sprintf-posix (Comment): Likewise.
34607         * modules/vasnprintf-posix (Comment): Likewise.
34608         * modules/vasprintf-posix (Comment): Likewise.
34609         * modules/vdprintf-posix (Comment): Likewise.
34610         * modules/vfprintf-posix (Comment): Likewise.
34611         * modules/vprintf-posix (Comment): Likewise.
34612         * modules/vsnprintf-posix (Comment): Likewise.
34613         * modules/vsprintf-posix (Comment): Likewise.
34614         * modules/xprintf-posix (Comment): Likewise.
34615         * modules/xvasprintf-posix (Comment): Likewise.
34616         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34617         * modules/floorf-tests (Depends-on): Likewise.
34618         * modules/round-tests (Depends-on): Likewise.
34619         * modules/roundf-tests (Depends-on): Likewise.
34620         * modules/trunc-tests (Depends-on): Likewise.
34621         * modules/truncf-tests (Depends-on): Likewise.
34622         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34623         'fprintf-posix' module is not present.
34624         * tests/test-floorf2.c (check): Likewise.
34625         * tests/test-trunc2.c (check): Likewise.
34626         * tests/test-truncf2.c (check): Likewise.
34627         * tests/test-round2.c (equal): Likewise.
34628         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34629
34630 2010-04-07  Karl Berry  <karl@gnu.org>
34631
34632         * config/srclist.txt,
34633         * config/srclistvars.sh,
34634         * config/srclist-update: doc fixes.
34635
34636 2010-04-07  Jim Meyering  <meyering@redhat.com>
34637
34638         maint.mk: add a PATH crosschecking syntax-check rule
34639         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34640         Useful if you use a test like the one in help-version (coreutils,
34641         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34642         printed by prog --version.
34643
34644 2010-04-06  Bruno Haible  <bruno@clisp.org>
34645
34646         Fix link error on mingw.
34647         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34648         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34649
34650 2010-04-06  Bruno Haible  <bruno@clisp.org>
34651
34652         Assume rmdir exists.
34653         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34654
34655 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34656
34657         doc: update users.txt
34658         * users.txt: Add gcal.
34659
34660 2010-04-06  Jim Meyering  <meyering@redhat.com>
34661
34662         init.sh: simply unset TMPDIR rather than risking env -i
34663         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34664         although it probably works fine on all Unix-based systems, some
34665         systems (Cygwin?) cannot tolerate a totally cleared environment.
34666         Suggestion from Eric Blake.
34667
34668 2010-04-06  Jim Meyering  <meyering@redhat.com>
34669
34670         init.sh: portability fix: use env's POSIX-specified -i option not -u
34671         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34672         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34673
34674 2010-04-05  Bruno Haible  <bruno@clisp.org>
34675
34676         btowc: Work around Cygwin 1.7.2 bug.
34677         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34678         does not map NUL to 0.
34679         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34680
34681 2010-04-05  Bruno Haible  <bruno@clisp.org>
34682
34683         Make the multithread modules work on Cygwin 1.7.2.
34684         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34685         imported symbols can be declared weak, so that it returns "no" on
34686         Cygwin 1.7.2.
34687
34688 2010-04-05  Bruno Haible  <bruno@clisp.org>
34689
34690         Use the module 'strncat'.
34691         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34692
34693         Tests for module 'strncat'.
34694         * modules/strncat-tests: New file.
34695         * tests/test-strncat.c: New file.
34696
34697         New module 'strncat'.
34698         * lib/string.in.h (strncat): New declaration.
34699         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34700         * m4/strncat.m4: New file, based on m4/memchr.m4.
34701         * modules/strncat: New file.
34702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34703         is declared.
34704         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34705         REPLACE_STRNCAT.
34706         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34707         REPLACE_STRNCAT.
34708         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34709         module.
34710         * tests/test-string-c++.cc: Check signature of strncat.
34711
34712 2010-04-05  Jim Meyering  <meyering@redhat.com>
34713
34714         xstrtoumax-tests: convert to use init.sh
34715         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34716         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34717         Use Exit, not exit.
34718         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34719
34720         xstrtoimax-tests: convert to use init.sh
34721         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34722         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34723         Use Exit, not exit.
34724         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34725
34726 2010-04-05  Bruno Haible  <bruno@clisp.org>
34727
34728         sys_socket: Avoid #define replacements in C++ mode.
34729         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34730         warning to the function if possible, rather than #defining the symbol
34731         to a dysfunctional alias.
34732
34733 2010-04-05  Bruno Haible  <bruno@clisp.org>
34734
34735         fseeko: Fix C++ test error on mingw.
34736         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34737         gl_FUNC_FSEEKO.
34738         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34739         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34740         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34741         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34742
34743 2010-04-05  Bruno Haible  <bruno@clisp.org>
34744
34745         duplocale: Improve test output.
34746         * tests/test-duplocale.c (main): Print reason for skipped test.
34747
34748 2010-04-05  Bruno Haible  <bruno@clisp.org>
34749
34750         Assume rmdir exists.
34751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34752         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34753
34754 2010-04-05  Bruno Haible  <bruno@clisp.org>
34755
34756         Fix link error on Solaris 8 with cc.
34757         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34758
34759 2010-04-05  Bruno Haible  <bruno@clisp.org>
34760
34761         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34762         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34763
34764 2010-04-05  Bruno Haible  <bruno@clisp.org>
34765
34766         vasprintf: Update documentation.
34767         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34768
34769 2010-04-05  Bruno Haible  <bruno@clisp.org>
34770
34771         ptsname: Improve test.
34772         * tests/test-ptsname.c (main): Also try the various master names of BSD
34773         systems.
34774
34775 2010-04-05  Bruno Haible  <bruno@clisp.org>
34776
34777         memchr: Avoid a possible C++ test error.
34778         * lib/string.in.h (memchr): Provide declaration if function is missing.
34779         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34780         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34782         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34783
34784 2010-04-05  Bruno Haible  <bruno@clisp.org>
34785
34786         strtok_r: Improve idiom.
34787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34788         AC_LIBOBJ is used.
34789
34790 2010-04-05  Bruno Haible  <bruno@clisp.org>
34791
34792         strdup: Improve idiom.
34793         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34794         AC_LIBOBJ is used.
34795         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34796         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34797         when AC_LIBOBJ is used.
34798
34799 2010-04-05  Bruno Haible  <bruno@clisp.org>
34800
34801         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34802         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34803         don't set REPLACE_MBSINIT to 1.
34804         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34805         don't set REPLACE_MBRTOWC to 1.
34806         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34807         exist, don't set REPLACE_MBSRTOWCS to 1.
34808         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34809         exist, don't set REPLACE_MBSNRTOWCS to 1.
34810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34811         don't set REPLACE_WCRTOMB to 1.
34812         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34813         exist, don't set REPLACE_WCSRTOMBS to 1.
34814         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34815         exist, don't set REPLACE_WCSNRTOMBS to 1.
34816
34817 2010-04-05  Bruno Haible  <bruno@clisp.org>
34818
34819         ldexpl: Improve idiom.
34820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34821         make sure to set HAVE_DECL_LDEXPL to 0.
34822
34823 2010-04-05  Jim Meyering  <meyering@redhat.com>
34824
34825         xstrtol-tests: convert to use init.sh
34826         * modules/xstrtol-tests (Files): Add tests/init.sh.
34827         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34828         Use Exit, not exit.
34829         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34830
34831         atexit-tests: convert to use init.sh
34832         * modules/atexit-tests (Files): Add tests/init.sh.
34833         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34834         Use Exit, not exit.
34835         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34836
34837         init.sh: fix typo
34838         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34839
34840         init.sh: make it easier for a test script to write to the tty, ...
34841         when using automake's parallel-tests mode.
34842         * tests/init.sh (stderr_fileno_): Define overridable variable.
34843         (warn_): New function, to use it.
34844         (fail_, skip_, framework_failure_): Use warn_.
34845
34846 2010-04-04  Bruno Haible  <bruno@clisp.org>
34847
34848         btowc: Avoid warning.
34849         * lib/btowc.c: Include <stdlib.h>.
34850         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34851
34852 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34853             Bruno Haible  <bruno@clisp.org>
34854
34855         wchar: Port to NetBSD 1.5.
34856         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34857         * lib/wctype.in.h (WEOF): Likewise.
34858
34859 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34860             Bruno Haible  <bruno@clisp.org>
34861
34862         Port extended stdio to NetBSD 1.5.
34863         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34864         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34865         older.
34866
34867 2010-04-04  Bruno Haible  <bruno@clisp.org>
34868
34869         string: Remove unused substitution.
34870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34871         HAVE_DECL_STRERROR.
34872         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34873
34874 2010-04-04  Bruno Haible  <bruno@clisp.org>
34875
34876         strtod: Avoid a possible C++ test error.
34877         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34878         set REPLACE_STRTOD.
34879
34880 2010-04-04  Bruno Haible  <bruno@clisp.org>
34881
34882         strerror: Update documentation.
34883         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34884
34885 2010-04-04  Bruno Haible  <bruno@clisp.org>
34886
34887         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34888         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34889         _GL_CXXALIAS_SYS_CAST.
34890
34891 2010-04-04  Bruno Haible  <bruno@clisp.org>
34892
34893         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34894         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34895         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34896         REPLACE_FREXPL to 1.
34897         * doc/posix-functions/frexpl.texi: Update documentation.
34898
34899 2010-04-04  Bruno Haible  <bruno@clisp.org>
34900
34901         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34902         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34903
34904 2010-04-04  Bruno Haible  <bruno@clisp.org>
34905
34906         Implement nanosleep for native Windows.
34907         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34908
34909 2010-04-04  Bruno Haible  <bruno@clisp.org>
34910
34911         math: Fix some C++ test errors on Solaris 8.
34912         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34913
34914 2010-04-04  Bruno Haible  <bruno@clisp.org>
34915
34916         math: Fix some C++ test errors on Cygwin.
34917         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34918         truncl): Provide declaration if the system does not have it.
34919         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34920         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34921         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34922         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34923         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34924         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34925         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34926         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34927         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34928         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34929         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34930         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34931         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34932         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34933         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34934         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34936         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34937         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34938         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34939         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34940         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34941
34942 2010-04-04  Bruno Haible  <bruno@clisp.org>
34943
34944         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34945         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34946         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34947         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34948         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34949         * m4/isinf.m4 (gl_ISINF): Likewise.
34950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34951
34952 2010-04-04  Bruno Haible  <bruno@clisp.org>
34953
34954         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34955         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34956
34957 2010-04-04  Bruno Haible  <bruno@clisp.org>
34958
34959         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34960         * modules/tmpfile (configure.ac): Update.
34961
34962         tmpfile: Fix C++ test error on mingw.
34963         * lib/stdio.in.h (tmpfile): New declaration.
34964         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34965         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34966         * modules/tmpfile (Depends-on): Add stdio.
34967         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34968         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34969         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34970         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34971         REPLACE_TMPFILE.
34972         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34973
34974 2010-04-04  Bruno Haible  <bruno@clisp.org>
34975
34976         ioctl: Fix C++ test error on mingw.
34977         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34978         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34979         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34980
34981 2010-04-03  Bruno Haible  <bruno@clisp.org>
34982
34983         wcwidth: Fix C++ test error on mingw.
34984         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34986         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34987
34988 2010-04-03  Bruno Haible  <bruno@clisp.org>
34989
34990         nanosleep: Fix C++ test error on mingw.
34991         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34992         * lib/time.in.h (nanosleep): Use modern idiom.
34993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34994         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34995         REPLACE_NANOSLEEP to 1.
34996         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34997         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34998
34999 2010-04-03  Bruno Haible  <bruno@clisp.org>
35000
35001         strptime: Fix C++ test error on mingw.
35002         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35003         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35004         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35005         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35006         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35007         not REPLACE_STRPTIME.
35008         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35009         REPLACE_STRPTIME.
35010
35011 2010-04-03  Bruno Haible  <bruno@clisp.org>
35012
35013         timegm: Fix C++ test error on mingw.
35014         * lib/time.in.h (timegm): Use modern idiom.
35015         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35016         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35017         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35018         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35019
35020 2010-04-03  Bruno Haible  <bruno@clisp.org>
35021
35022         timegm: Assume declaration if function exists.
35023         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35024         if it exists. Don't clobber ac_cv_func_timegm.
35025
35026 2010-04-03  Bruno Haible  <bruno@clisp.org>
35027
35028         time_r: Fix C++ test error on mingw.
35029         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35030         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35031         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35032         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35033         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35034
35035 2010-04-03  Bruno Haible  <bruno@clisp.org>
35036
35037         time_r: Minor updates.
35038         * modules/time_r (Description): Mention the provided functions.
35039         * lib/time_r.c: Don't include <string.h>.
35040         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35041         * doc/posix-functions/localtime_r.texi: Likewise.
35042
35043 2010-04-03  Bruno Haible  <bruno@clisp.org>
35044
35045         time: Fix regression introduced on 2010-03-08.
35046         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35047         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35048
35049 2010-04-03  Jim Meyering  <meyering@redhat.com>
35050
35051         maint.mk: don't silently disable project-specific syntax-check rules
35052         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35053         that they need to convert their project-specific syntax-check rules
35054         to use the new _sc_search_regexp.
35055
35056 2010-04-03  Bruno Haible  <bruno@clisp.org>
35057
35058         fchdir: Fix regression introduced on 2010-03-08.
35059         * lib/unistd.in.h (fchdir): Fix declaration.
35060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35062         REPLACE_FCHDIR.
35063         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35064         REPLACE_FCHDIR.
35065
35066 2010-04-03  Bruno Haible  <bruno@clisp.org>
35067
35068         getpagesize: Fix C++ test error on mingw.
35069         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35070         system does not declare the function.
35071         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35072         declared.
35073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35074         HAVE_DECL_GETPAGESIZE.
35075         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35076
35077 2010-04-03  Bruno Haible  <bruno@clisp.org>
35078
35079         stdio: Make C++ tests work on mingw.
35080         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35081         does not declare the function.
35082
35083 2010-04-03  Bruno Haible  <bruno@clisp.org>
35084
35085         ftello: Fix C++ test error on mingw.
35086         * lib/stdio.in.h (ftello): Use modern idiom.
35087         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35088         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35089         is missing and that it needs to be replaced.
35090         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35092         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35093
35094 2010-04-03  Bruno Haible  <bruno@clisp.org>
35095
35096         fseeko: Fix C++ test error on mingw.
35097         * lib/stdio.in.h (fseeko): Use modern idiom.
35098         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35100         is missing and that it needs to be replaced.
35101         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35103         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35104
35105 2010-04-03  Bruno Haible  <bruno@clisp.org>
35106
35107         mkstemp: Fix C++ test error on mingw.
35108         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35110         function is missing and that it needs to be replaced.
35111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35112         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35113
35114 2010-04-03  Bruno Haible  <bruno@clisp.org>
35115
35116         stpncpy: Fix C++ test error on mingw.
35117         * lib/string.in.h (stpncpy): Use modern idiom.
35118         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35119         function is missing and that it needs to be replaced.
35120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35121         REPLACE_STPNCPY.
35122         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35123
35124 2010-04-03  Bruno Haible  <bruno@clisp.org>
35125
35126         sys_stat: Fix C++ test error on mingw.
35127         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35128         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35129
35130 2010-04-03  Bruno Haible  <bruno@clisp.org>
35131
35132         pty: Update doc.
35133         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35134
35135 2010-04-03  Bruno Haible  <bruno@clisp.org>
35136
35137         unistd: Fix C++ test error on mingw.
35138         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35139
35140 2010-04-03  Bruno Haible  <bruno@clisp.org>
35141
35142         Update doc regarding mingw.
35143         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35144         * doc/glibc-functions/login_tty.texi: Likewise.
35145         * doc/glibc-functions/forkpty.texi: Likewise.
35146
35147 2010-04-03  Bruno Haible  <bruno@clisp.org>
35148
35149         stdlib: Avoid compilation failure of c-strtold on mingw.
35150         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35151
35152 2010-04-03  Bruno Haible  <bruno@clisp.org>
35153
35154         locale: Make C++ tests work on Cygwin and mingw.
35155         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35156         cannot provide the function.
35157         Reported by Simon Josefsson.
35158
35159 2010-04-03  Bruno Haible  <bruno@clisp.org>
35160
35161         localename: Port to MacOS X 10.6.
35162         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35163         memory layout of the locales in MacOS X 10.6 as well.
35164         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35165
35166 2010-04-02  Bruno Haible  <bruno@clisp.org>
35167
35168         gnulib-tool: Ensure that long-running tests are executed last.
35169         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35170         running tests after the one for the other tests.
35171
35172 2010-04-02  Bruno Haible  <bruno@clisp.org>
35173
35174         gnulib-tool: Ensure the tests in the main directory are executed first.
35175         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35176         start with the current directory.
35177
35178 2010-04-02  Bruno Haible  <bruno@clisp.org>
35179
35180         Tests for module 'havelib', moved here from GNU gettext.
35181         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35182         modifications.
35183         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35184         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35185         with modifications.
35186         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35187         modifications.
35188         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35189         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35190         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35191         with modifications.
35192         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35193         with modifications.
35194         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35195         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35196         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35197         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35198         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35199         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35200         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35201         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35202         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35203         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35204         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35205         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35206         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35207         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35208         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35209         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35210         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35211         with modifications.
35212         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35213         with modifications.
35214         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35215         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35216         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35217         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35218         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35219         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35220         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35221         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35222         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35223         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35224         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35225         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35226         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35227         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35228         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35229         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35230         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35231         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35232         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35233         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35234         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35235         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35236         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35237         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35238         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35239         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35240         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35241         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35242         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35243         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35244         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35245         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35246         * tests/havelib/rpathx/rpathx.c: New file, from
35247         gettext/autoconf-lib-link.
35248         * tests/havelib/rpathx/Makefile.am: New file, from
35249         gettext/autoconf-lib-link.
35250         * tests/havelib/rpathx/configure.ac: New file, from
35251         gettext/autoconf-lib-link with modifications.
35252         * tests/havelib/rpathy/rpathy.c: New file, from
35253         gettext/autoconf-lib-link.
35254         * tests/havelib/rpathy/Makefile.am: New file, from
35255         gettext/autoconf-lib-link.
35256         * tests/havelib/rpathy/configure.ac: New file, from
35257         gettext/autoconf-lib-link with modifications.
35258         * tests/havelib/rpathz/rpathz.c: New file, from
35259         gettext/autoconf-lib-link.
35260         * tests/havelib/rpathz/Makefile.am: New file, from
35261         gettext/autoconf-lib-link.
35262         * tests/havelib/rpathz/configure.ac: New file, from
35263         gettext/autoconf-lib-link with modifications.
35264         * tests/havelib/rpathlx/usex.c: New file, from
35265         gettext/autoconf-lib-link.
35266         * tests/havelib/rpathlx/Makefile.am: New file, from
35267         gettext/autoconf-lib-link.
35268         * tests/havelib/rpathlx/configure.ac: New file, from
35269         gettext/autoconf-lib-link with modifications.
35270         * tests/havelib/rpathly/usey.c: New file, from
35271         gettext/autoconf-lib-link.
35272         * tests/havelib/rpathly/Makefile.am: New file, from
35273         gettext/autoconf-lib-link.
35274         * tests/havelib/rpathly/configure.ac: New file, from
35275         gettext/autoconf-lib-link with modifications.
35276         * tests/havelib/rpathlz/usez.c: New file, from
35277         gettext/autoconf-lib-link.
35278         * tests/havelib/rpathlz/Makefile.am: New file, from
35279         gettext/autoconf-lib-link.
35280         * tests/havelib/rpathlz/configure.ac: New file, from
35281         gettext/autoconf-lib-link with modifications.
35282         * tests/havelib/rpathlyx/usey.c: New file, from
35283         gettext/autoconf-lib-link.
35284         * tests/havelib/rpathlyx/Makefile.am: New file, from
35285         gettext/autoconf-lib-link.
35286         * tests/havelib/rpathlyx/configure.ac: New file, from
35287         gettext/autoconf-lib-link with modifications.
35288         * tests/havelib/rpathlzyx/usez.c: New file, from
35289         gettext/autoconf-lib-link.
35290         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35291         gettext/autoconf-lib-link.
35292         * tests/havelib/rpathlzyx/configure.ac: New file, from
35293         gettext/autoconf-lib-link with modifications.
35294         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35295         with modifications.
35296
35297 2010-04-02  Bruno Haible  <bruno@clisp.org>
35298
35299         gnulib-tool: Create distributed built sources also for the tests.
35300         * gnulib-tool (func_create_testdir): Also generate distributed built
35301         sources in the tests directory.
35302
35303 2010-04-02  Bruno Haible  <bruno@clisp.org>
35304
35305         gnulib-tool: Obey user's environment variables.
35306         * gnulib-tool (func_create_testdir): When creating built sources,
35307         respect the environment variables for autoconf, automake, etc. given by
35308         the user.
35309
35310 2010-04-02  Bruno Haible  <bruno@clisp.org>
35311
35312         gnulib-tool: Provide the value of --m4-base to modules.
35313         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35314         of gl_m4_base.
35315
35316 2010-04-02  Eric Blake  <eblake@redhat.com>
35317
35318         maint.mk: fix some fallout
35319         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35320         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35321
35322 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35323
35324         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35325         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35326         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35327         (sc_cast_of_x_alloc_return_value): Likewise.
35328         (sc_cast_of_alloca_return_value): Likewise.
35329         (sc_space_tab): Likewise.
35330         (sc_prohibit_atoi_atof): Likewise.
35331         (sc_prohibit_magic_number_exit): Likewise.
35332         (sc_error_exit_success): Likewise.
35333         (sc_file_system): Likewise.
35334         (sc_prohibit_have_config_h): Likewise.
35335         (sc_require_config_h): Likewise.
35336         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35337         (sc_obsolete_symbols): Likewise.
35338         (sc_changelog): Likewise.
35339         (sc_program_name): Likewise.
35340         (sc_the_the): Likewise.
35341         (sc_trailing_blank): Likewise.
35342         (sc_two_space_separator_in_usage): Likewise.
35343         (sc_useless_cpp_parens): Likewise.
35344         (sc_GPL_version): Likewise.
35345         (sc_GFDL_version): Likewise.
35346         (sc_texinfo_acronym): Likewise.
35347         (sc_prohibit_cvs_keyword): Likewise.
35348         (sc_prohibit_stat_st_blocks): Likewise.
35349         (sc_prohibit_S_IS_definition): Likewise.
35350         (sc_redundant_const): Likewise.
35351         (sc_makefile_TAB_only_indentation): Likewise.
35352         (sc_m4_quote_check): Likewise.
35353         (sc_makefile_path_separator_check): Likewise.
35354         (sc_copyright_check): Likewise.
35355         (sc_Wundef_boolean): Likewise.
35356         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35357
35358         maint.mk: match 0 or more whitespace-before-function-call '('
35359         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35360         that have zero or two-and-more spaces between the function name
35361         and the open parenthesis.
35362         (sc_error_message_warn_fatal): Likewise.
35363         (sc_error_message_uppercase): Likewise.
35364         (sc_error_message_period): Likewise.
35365
35366 2010-03-31  Eric Blake  <eblake@redhat.com>
35367
35368         maint.mk: check for [ as well as test
35369         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35370         Based on a libvirt report by Matthias Bolte.
35371
35372         gnumakefile: don't squelch _version output
35373         * top/GNUmakefile (_version): Create one-shot dependency rather
35374         than using $(shell) when version must be regenerated.
35375         (_autoreconf): Run verbosely, by default.
35376
35377         sys_time: avoid compiler warnings
35378         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35379         unconditional, fixing regression from 2010-03-29.
35380         Reported by Simon Josefsson.
35381
35382 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35383
35384         maint.mk: s/_header_without_use/_sc_header_without_use/
35385         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35386         (sc_prohibit_assert_without_use): Use the new name.
35387         (sc_prohibit_close_stream_without_use): Likewise.
35388         (sc_prohibit_getopt_without_use): Likewise.
35389         (sc_prohibit_quotearg_without_use): Likewise.
35390         (sc_prohibit_quote_without_use): Likewise.
35391         (sc_prohibit_long_options_without_use): Likewise.
35392         (sc_prohibit_inttostr_without_use): Likewise.
35393         (sc_prohibit_ignore_value_without_use): Likewise.
35394         (sc_prohibit_error_without_use): Likewise.
35395         (sc_prohibit_xalloc_without_use): Likewise.
35396         (sc_prohibit_hash_without_use): Likewise.
35397         (sc_prohibit_hash_pjw_without_use): Likewise.
35398         (sc_prohibit_safe_read_without_use): Likewise.
35399         (sc_prohibit_argmatch_without_use): Likewise.
35400         (sc_prohibit_canonicalize_without_use): Likewise.
35401         (sc_prohibit_root_dev_ino_without_use): Likewise.
35402         (sc_prohibit_openat_without_use): Likewise.
35403         (sc_prohibit_c_ctype_without_use): Likewise.
35404         (sc_prohibit_signal_without_use): Likewise.
35405         (sc_prohibit_intprops_without_use): Likewise.
35406
35407 2010-03-30  Eric Blake  <eblake@redhat.com>
35408
35409         maint: improve module indicators
35410         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35411         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35412         columns, and avoid extra macro expansion.
35413
35414         fdopendir: work around FreeBSD bug
35415         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35417         * modules/dirent (Makefile.am): Substitute it.
35418         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35419         declaration.
35420         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35421         fix.
35422         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35423
35424 2010-03-29  Bruno Haible  <bruno@clisp.org>
35425
35426         Emit #pragma system_header after the inclusion guard, not before.
35427         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35428         guard that spans the entire file, not before. This enables an
35429         optimization in GCC's preprocessor.
35430         * lib/ctype.in.h: Likewise.
35431         * lib/dirent.in.h: Likewise.
35432         * lib/errno.in.h: Likewise.
35433         * lib/float.in.h: Likewise.
35434         * lib/getopt.in.h: Likewise.
35435         * lib/iconv.in.h: Likewise.
35436         * lib/langinfo.in.h: Likewise.
35437         * lib/locale.in.h: Likewise.
35438         * lib/math.in.h: Likewise.
35439         * lib/netdb.in.h: Likewise.
35440         * lib/netinet_in.in.h: Likewise.
35441         * lib/pty.in.h: Likewise.
35442         * lib/sched.in.h: Likewise.
35443         * lib/se-selinux.in.h: Likewise.
35444         * lib/search.in.h: Likewise.
35445         * lib/spawn.in.h: Likewise.
35446         * lib/stdarg.in.h: Likewise.
35447         * lib/stdint.in.h: Likewise.
35448         * lib/string.in.h: Likewise.
35449         * lib/strings.in.h: Likewise.
35450         * lib/sys_file.in.h: Likewise.
35451         * lib/sys_ioctl.in.h: Likewise.
35452         * lib/sys_time.in.h: Likewise.
35453         * lib/sys_times.in.h: Likewise.
35454         * lib/sys_utsname.in.h: Likewise.
35455         * lib/sys_wait.in.h: Likewise.
35456         * lib/sysexits.in.h: Likewise.
35457         * lib/wctype.in.h: Likewise.
35458
35459 2010-03-28  James Youngman  <jay@gnu.org>
35460
35461         save-cwd: don't leak a file descriptor when the caller execs.
35462         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35463         saved file descriptor.
35464         * modules/save-cwd (Depends-on): Depend on cloexec.
35465
35466 2010-03-29  Bruno Haible  <bruno@clisp.org>
35467
35468         Remove vestiges of fts-lgpl module.
35469         * lib/fts_.h: Assume GNULIB_FTS is 1.
35470         * lib/fts.c: Likewise.
35471         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35472
35473 2010-03-28  Bruno Haible  <bruno@clisp.org>
35474
35475         Fix definition of tests witness macro.
35476         * gnulib-tool (func_import): Fix definition of witness macro.
35477
35478 2010-03-28  Bruno Haible  <bruno@clisp.org>
35479
35480         Fix ioctl's protoype on glibc systems.
35481         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35482         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35483         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35484         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35485         signature. If not, arrange to replace the ioctl function.
35486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35487         REPLACE_IOCTL.
35488         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35489         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35490         Reported by Ludovic Courtès <ludo@gnu.org>.
35491
35492 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35493
35494         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35495         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35496         made it so grep -r --include=GLOB* ... did not work.
35497
35498 2010-03-26  Jim Meyering  <meyering@redhat.com>
35499             Eric Blake  <eblake@redhat.com>
35500
35501         maint.mk: prohibit use of test's -o and -a operators
35502         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35503
35504 2010-03-28  Bruno Haible  <bruno@clisp.org>
35505
35506         Remove unused GNULIB_XYZ macro definitions.
35507         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35508         invocation.
35509
35510 2010-03-28  Bruno Haible  <bruno@clisp.org>
35511
35512         Mark privileged tests modules.
35513         * modules/idpriv-drop-tests (Status): New section.
35514         * modules/idpriv-droptemp-tests (Status): New section.
35515
35516 2010-03-28  Bruno Haible  <bruno@clisp.org>
35517
35518         Split C++ tests into separate tests modules.
35519         * modules/dirent-c++-tests: New file, extracted from
35520         modules/dirent-tests.
35521         * modules/dirent-tests: Depend on it.
35522         * modules/fcntl-h-c++-tests: New file, extracted from
35523         modules/fcntl-h-tests.
35524         * modules/fcntl-h-tests: Depend on it.
35525         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35526         * modules/glob-tests: Depend on it.
35527         * modules/iconv-h-c++-tests: New file, extracted from
35528         modules/iconv-h-tests.
35529         * modules/iconv-h-tests: Depend on it.
35530         * modules/langinfo-c++-tests: New file, extracted from
35531         modules/langinfo-tests.
35532         * modules/langinfo-tests: Depend on it.
35533         * modules/locale-c++-tests: New file, extracted from
35534         modules/locale-tests.
35535         * modules/locale-tests: Depend on it.
35536         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35537         * modules/math-tests: Depend on it.
35538         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35539         * modules/pty-tests: Depend on it.
35540         * modules/search-c++-tests: New file, extracted from
35541         modules/search-tests.
35542         * modules/search-tests: Depend on it.
35543         * modules/signal-c++-tests: New file, extracted from
35544         modules/signal-tests.
35545         * modules/signal-tests: Depend on it.
35546         * modules/spawn-c++-tests: New file, extracted from
35547         modules/spawn-tests.
35548         * modules/spawn-tests: Depend on it.
35549         * modules/stdio-c++-tests: New file, extracted from
35550         modules/stdio-tests.
35551         * modules/stdio-tests: Depend on it.
35552         * modules/stdlib-c++-tests: New file, extracted from
35553         modules/stdlib-tests.
35554         * modules/stdlib-tests: Depend on it.
35555         * modules/string-c++-tests: New file, extracted from
35556         modules/string-tests.
35557         * modules/string-tests: Depend on it.
35558         * modules/sys_ioctl-c++-tests: New file, extracted from
35559         modules/sys_ioctl-tests.
35560         * modules/sys_ioctl-tests: Depend on it.
35561         * modules/sys_select-c++-tests: New file, extracted from
35562         modules/sys_select-tests.
35563         * modules/sys_select-tests: Depend on it.
35564         * modules/sys_socket-c++-tests: New file, extracted from
35565         modules/sys_socket-tests.
35566         * modules/sys_socket-tests: Depend on it.
35567         * modules/sys_stat-c++-tests: New file, extracted from
35568         modules/sys_stat-tests.
35569         * modules/sys_stat-tests: Depend on it.
35570         * modules/sys_time-c++-tests: New file, extracted from
35571         modules/sys_time-tests.
35572         * modules/sys_time-tests: Depend on it.
35573         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35574         * modules/time-tests: Depend on it.
35575         * modules/unistd-c++-tests: New file, extracted from
35576         modules/unistd-tests.
35577         * modules/unistd-tests: Depend on it.
35578         * modules/wchar-c++-tests: New file, extracted from
35579         modules/wchar-tests.
35580         * modules/wchar-tests: Depend on it.
35581         * modules/wctype-c++-tests: New file, extracted from
35582         modules/wctype-tests.
35583         * modules/wctype-tests: Depend on it.
35584         Reported by Simon Josefsson.
35585
35586 2010-03-28  Bruno Haible  <bruno@clisp.org>
35587
35588         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35589         * gnulib-tool (func_exists_module): New function, extracted from
35590         func_verify_module.
35591         (func_verify_module): Use it.
35592         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35593         'foo' only if 'foo' exists.
35594         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35595         module.
35596
35597 2010-03-28  Bruno Haible  <bruno@clisp.org>
35598
35599         gnulib-tool: Add support for special categories of tests.
35600         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35601         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35602         (func_usage): Document them.
35603         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35604         inc_unportable_tests, inc_all_tests): New variables.
35605         (func_acceptable): Consider these variables.
35606         (func_modules_transitive_closure): Make it work when the 'Status' field
35607         consists of multiple words.
35608         (func_import): Store and restore the values of inc_cxx_tests,
35609         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35610         inc_all_tests in gnulib-comp.m4.
35611         (func_create_testdir): Set inc_all_tests to true.
35612         * doc/gnulib.texi (Extra tests modules): New section.
35613         Suggested by Jim Meyering.
35614
35615 2010-03-28  Bruno Haible  <bruno@clisp.org>
35616
35617         ansi-c++-opt: Allow turning off the C++ build by default.
35618         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35619         gl_CXX_CHOICE_DEFAULT_NO is defined.
35620         Requested by Eric Blake.
35621
35622 2010-03-28  Bruno Haible  <bruno@clisp.org>
35623
35624         unistd: Avoid #define replacements in C++ mode.
35625         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35626         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35627         setsockopt, shutdown, select): In C++, attach a warning to the function
35628         if possible, rather than #defining the symbol to a dysfunctional alias.
35629         Reported by John W. Eaton <jwe@gnu.org>.
35630
35631 2010-03-28  Bruno Haible  <bruno@clisp.org>
35632
35633         Fix link errors on mingw.
35634         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35635         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35636         $(LIBSOCKET).
35637         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35638         $(LIBSOCKET).
35639
35640 2010-03-28  Bruno Haible  <bruno@clisp.org>
35641             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35642
35643         lib-ignore: Determine different options for different compilers.
35644         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35645         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35646         Add comments.
35647         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35648         * NEWS: Mention the change.
35649
35650 2010-03-27  Bruno Haible  <bruno@clisp.org>
35651
35652         Remove unused GNULIB_XYZ macro definitions.
35653         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35654         * modules/fseek (configure.ac): Likewise.
35655         * modules/ioctl (configure.ac): Likewise.
35656         * modules/open (configure.ac): Likewise.
35657         * modules/stdlib-safer (configure.ac): Likewise.
35658
35659 2010-03-27  Bruno Haible  <bruno@clisp.org>
35660
35661         Add a remark about certain modules.
35662         * modules/malloc (Comment): New section.
35663         * modules/realloc (Comment): Likewise.
35664         * modules/sigpipe (Comment): Likewise.
35665
35666 2010-03-27  Bruno Haible  <bruno@clisp.org>
35667
35668         Resolve conflict between the two kinds of module indicators.
35669         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35670         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35671         * modules/canonicalize (configure.ac): Invoke
35672         gl_MODULE_INDICATOR_FOR_TESTS.
35673         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35674         GNULIB_XYZ.
35675         * tests/test-dirent-c++.cc: Likewise.
35676         * tests/test-dirent-safer.c: Likewise.
35677         * tests/test-dup2.c: Likewise.
35678         * tests/test-fchdir.c: Likewise.
35679         * tests/test-fcntl-h-c++.cc: Likewise.
35680         * tests/test-getopt.c: Likewise.
35681         * tests/test-getopt.h: Likewise.
35682         * tests/test-langinfo-c++.cc: Likewise.
35683         * tests/test-locale-c++.cc: Likewise.
35684         * tests/test-math-c++.cc: Likewise.
35685         * tests/test-pty-c++.cc: Likewise.
35686         * tests/test-search-c++.cc: Likewise.
35687         * tests/test-signal-c++.cc: Likewise.
35688         * tests/test-spawn-c++.cc: Likewise.
35689         * tests/test-stdio-c++.cc: Likewise.
35690         * tests/test-stdlib-c++.cc: Likewise.
35691         * tests/test-string-c++.cc: Likewise.
35692         * tests/test-sys_ioctl-c++.cc: Likewise.
35693         * tests/test-sys_select-c++.cc: Likewise.
35694         * tests/test-sys_socket-c++.cc: Likewise.
35695         * tests/test-sys_stat-c++.cc: Likewise.
35696         * tests/test-sys_time-c++.cc: Likewise.
35697         * tests/test-time-c++.cc: Likewise.
35698         * tests/test-unistd-c++.cc: Likewise.
35699         * tests/test-wchar-c++.cc: Likewise.
35700         * tests/uninorm/test-u8-nfc.c: Likewise.
35701         * tests/uninorm/test-u8-nfd.c: Likewise.
35702         * tests/uninorm/test-u8-nfkc.c: Likewise.
35703         * tests/uninorm/test-u8-nfkd.c: Likewise.
35704         * tests/uninorm/test-u16-nfc.c: Likewise.
35705         * tests/uninorm/test-u16-nfd.c: Likewise.
35706         * tests/uninorm/test-u16-nfkc.c: Likewise.
35707         * tests/uninorm/test-u16-nfkd.c: Likewise.
35708         * tests/uninorm/test-u32-nfc.c: Likewise.
35709         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35710         * tests/uninorm/test-u32-nfd.c: Likewise.
35711         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35712         * tests/uninorm/test-u32-nfkc.c: Likewise.
35713         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35714         * tests/uninorm/test-u32-nfkd.c: Likewise.
35715         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35716         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35717
35718 2010-03-27  Bruno Haible  <bruno@clisp.org>
35719
35720         Distinguish two kinds of module indicators.
35721         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35722         gl_MODULE_INDICATOR.
35723         (gl_MODULE_INDICATOR): New macro.
35724         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35725         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35726         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35727         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35728         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35729         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35730         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35731         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35732         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35733         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35734         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35735         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35737         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35738         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35739         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35740         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35741         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35742         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35743         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35744         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35745         * modules/cloexec (configure.ac): Likewise.
35746         * modules/getopt-gnu (configure.ac): Likewise.
35747         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35748         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35749         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35750         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35751
35752 2010-03-27  Bruno Haible  <bruno@clisp.org>
35753
35754         New module description field 'Comment'.
35755         * gnulib-tool: New option --extract-comment.
35756         (func_usage): Document it.
35757         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35758         (func_get_comment): New function.
35759         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35760
35761 2010-03-27  Bruno Haible  <bruno@clisp.org>
35762
35763         Addendum to 2010-02-07 commit.
35764         * gnulib-tool (func_usage): Document --extract-applicability option.
35765
35766 2010-03-27  Bruno Haible  <bruno@clisp.org>
35767
35768         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35769         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35770         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35771         rather than link errors.
35772
35773 2010-03-27  Bruno Haible  <bruno@clisp.org>
35774
35775         Avoid side effects from tests-related modules on the compilation of lib.
35776         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35777         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35778         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35779         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35780         macro.
35781         (func_import): Define a witness macro. Assign it a value that depends
35782         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35783         tests-related modules.
35784         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35785         Reported by Jim Meyering.
35786
35787 2010-03-27  Bruno Haible  <bruno@clisp.org>
35788
35789         Factorize common .m4 code.
35790         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35791         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35792         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35793         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35795         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35796         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35797         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35798         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35799         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35800         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35801         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35802         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35803         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35804         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35805         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35806         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35807         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35809         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35810         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35811         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35812         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35813         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35814         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35815         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35816         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35818         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35819         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35820         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35821         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35822
35823 2010-03-27  Bruno Haible  <bruno@clisp.org>
35824
35825         Fix a compilation error on Cygwin with g++ >= 4.3.
35826         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35827         if it is undefined or if we alias it to chmod.
35828         (lstat): Don't warn about the use of this function if it is undefined
35829         or if we alias it to stat.
35830         Reported by Simon Josefsson.
35831
35832 2010-03-27  Bruno Haible  <bruno@clisp.org>
35833
35834         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35835         * modules/getlogin (configure.ac): Update.
35836
35837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35838         * modules/getlogin_r (configure.ac): Update.
35839
35840         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35842         * modules/inet_ntop (configure.ac): Update.
35843
35844         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35845         * modules/inet_pton (configure.ac): Update.
35846
35847         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35848         * modules/mbslen (configure.ac): Update.
35849
35850         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35851         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35852         * modules/forkpty (configure.ac): Update.
35853         * modules/openpty (configure.ac): Update.
35854
35855 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35856
35857         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35858         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35859
35860 2010-03-25  Eric Blake  <eblake@redhat.com>
35861
35862         maint: use pragma consistently across replacement headers
35863         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35864         * lib/dirent.in.h (system_header): Likewise.
35865         * lib/errno.in.h (system_header): Likewise.
35866         * lib/float.in.h (system_header): Likewise.
35867         * lib/getopt.in.h (system_header): Likewise.
35868         * lib/iconv.in.h (system_header): Likewise.
35869         * lib/inttypes.in.h (system_header): Likewise.
35870         * lib/langinfo.in.h (system_header): Likewise.
35871         * lib/locale.in.h (system_header): Likewise.
35872         * lib/math.in.h (system_header): Likewise.
35873         * lib/netdb.in.h (system_header): Likewise.
35874         * lib/netinet_in.in.h (system_header): Likewise.
35875         * lib/pty.in.h (system_header): Likewise.
35876         * lib/sched.in.h (system_header): Likewise.
35877         * lib/se-selinux.in.h (system_header): Likewise.
35878         * lib/search.in.h (system_header): Likewise.
35879         * lib/spawn.in.h (system_header): Likewise.
35880         * lib/stdarg.in.h (system_header): Likewise.
35881         * lib/stdint.in.h (system_header): Likewise.
35882         * lib/string.in.h (system_header): Likewise.
35883         * lib/strings.in.h (system_header): Likewise.
35884         * lib/sys_file.in.h (system_header): Likewise.
35885         * lib/sys_ioctl.in.h (system_header): Likewise.
35886         * lib/sys_socket.in.h (system_header): Likewise.
35887         * lib/sys_times.in.h (system_header): Likewise.
35888         * lib/sys_utsname.in.h (system_header): Likewise.
35889         * lib/sys_wait.in.h (system_header): Likewise.
35890         * lib/sysexits.in.h (system_header): Likewise.
35891         * lib/unistd.in.h (system_header): Likewise.
35892         * lib/wctype.in.h (system_header): Likewise.
35893
35894         arpa/inet: fix mingw compilation warning
35895         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35896         Reported by Matthew Bolte.
35897
35898 2010-03-25  Bruno Haible  <bruno@clisp.org>
35899
35900         Avoid collision between gnulib wrapper and libintl wrapper.
35901         * lib/printf.c (printf): Don't define if a printf wrapper is already
35902         defined in intl/printf.c.
35903         Reported by Michel Boaventura <michel@michelboaventura.com>.
35904
35905 2010-03-25  Bruno Haible  <bruno@clisp.org>
35906
35907         Use ANSI C.
35908         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35909
35910 2010-03-25  Bruno Haible  <bruno@clisp.org>
35911
35912         Minor formatting changes.
35913         * lib/acosl.c: Insert space before function argument list.
35914         * lib/argz.c: Likewise.
35915         * lib/asinl.c: Likewise.
35916         * lib/expl.c: Likewise.
35917         * lib/gen-uni-tables.c: Likewise.
35918         * lib/gettext.h: Likewise.
35919         * lib/glthread/lock.h: Likewise.
35920         * lib/tanl.c: Likewise.
35921         * lib/uniname/uniname.c: Likewise.
35922         * tests/test-idpriv-drop.c: Likewise.
35923         * tests/test-idpriv-droptemp.c: Likewise.
35924         * tests/test-lock.c: Likewise.
35925         * tests/test-tls.c: Likewise.
35926         * lib/argp-help.c: Insert space before function-like macro argument
35927         list.
35928         * lib/memcmp.c: Likewise.
35929         * tests/test-base64.c: Likewise.
35930         * lib/localename.c: Insert space before sizeof's argument list.
35931         * lib/safe-alloc.h: Likewise.
35932         * lib/file-set.h: Insert space before macro argument list.
35933         * tests/test-argp.c: Likewise.
35934         * lib/argp-namefrob.h: Insert space before function parameter list.
35935         * lib/getaddrinfo.c: Likewise.
35936         * lib/netdb.in.h: Likewise.
35937         * lib/parse-duration.h: Likewise.
35938         * lib/parse-duration.c: Likewise.
35939         * lib/poll.c: Likewise.
35940         * lib/select.c: Likewise.
35941         * lib/trim.h: Likewise.
35942         * tests/test-usleep.c: Likewise.
35943         * lib/ldexpl.c: Insert space before function parameter list and before
35944         function argument list.
35945         * lib/logl.c: Likewise.
35946         * lib/sqrtl.c: Likewise.
35947         * lib/trim.c: Likewise.
35948         * lib/cosl.c: Use GNU style indentation. Insert space before function
35949         argument list.
35950         * lib/sinl.c: Likewise.
35951         * lib/tsearch.c: Insert space after 'for'.
35952         Reported by Jim Meyering.
35953
35954 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35955
35956         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35957         config header before grepping, as it's not present before
35958         autoreconf/configure are run.  Reported by Simon Josefsson.
35959
35960 2010-03-23  Bruno Haible  <bruno@clisp.org>
35961
35962         pt_chown: Make it work with automake < 1.11.
35963         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35964         Reported by Simon Josefsson.
35965
35966 2010-03-23  Bruno Haible  <bruno@clisp.org>
35967
35968         pt_chown: Don't depend on GPLed modules.
35969         * lib/pt_chown.c: Don't include idpriv.h.
35970         (main): Don't drop privileges.
35971         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35972         Reported by Simon Josefsson.
35973
35974 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35975
35976         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35977         suggestions from karl@freefriends.org (Karl Berry).
35978
35979 2010-03-22  Eric Blake  <eblake@redhat.com>
35980
35981         gethostname: further tweaks
35982         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35983         are overriding gethostname.
35984         Suggested by Bruno Haible.
35985
35986 2010-03-21  Bruno Haible  <bruno@clisp.org>
35987
35988         Fix comments.
35989         * lib/forkpty.c (rpl_forkpty): Fix comment.
35990         * lib/openpty.c (rpl_openpty): Likewise.
35991         Reported by Eric Blake.
35992
35993 2010-03-22  Eric Blake  <eblake@redhat.com>
35994
35995         gethostname: fix build on mingw
35996         * lib/unistd.in.h (includes): Work around fact that mingw
35997         <winsock2.h> re-includes <unistd.h>, by avoiding any
35998         redeclarations if we are being included by <winsock2.h>.
35999         Reported by Matthias Bolte.
36000
36001 2010-03-21  Bruno Haible  <bruno@clisp.org>
36002
36003         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36004         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36005         modifications.
36006         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36007         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36008         provide the replacement.
36009         * modules/forkpty (Depends-on): Add openpty, login_tty.
36010         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36011         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36012         * doc/glibc-functions/forkpty.texi: More supported platforms.
36013         * config/srclist.txt: Add forkpty.c (commented).
36014
36015 2010-03-21  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36018         (Makefile.am): Verify that PTY_LIB is defined.
36019
36020         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36021
36022 2010-03-21  Bruno Haible  <bruno@clisp.org>
36023
36024         Tests for module 'login_tty'.
36025         * modules/login_tty-tests: New file.
36026         * tests/test-login_tty.c: New file.
36027
36028         New module 'login_tty'.
36029         * lib/login_tty.c: New file.
36030         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36031         * modules/login_tty: New file.
36032         * doc/glibc-functions/login_tty.texi: Mention the new module.
36033
36034 2010-03-21  Bruno Haible  <bruno@clisp.org>
36035
36036         login_tty: Documentation.
36037         * doc/glibc-functions/login_tty.texi: New file.
36038         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36039
36040 2010-03-21  Bruno Haible  <bruno@clisp.org>
36041
36042         pty: Consistent macro naming.
36043         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36044         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36045         * modules/pty (configure.ac): Update.
36046
36047 2010-03-21  Bruno Haible  <bruno@clisp.org>
36048
36049         Tests for openpty: Make stricter.
36050         * tests/test-openpty.c (main): Add test of canonical processing and
36051         erase.
36052         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36053
36054         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36055         * lib/openpty.c (openpty): New replacement function.
36056         * lib/pty.in.h: Include <termios.h>.
36057         (openpty): Update declaration. Add comments.
36058         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36059         is not declared, arrange to provide the replacement. Check for _getpty
36060         and posix_openpt.
36061         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36062         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36063         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36064         * modules/pty-tests (test_pty_c___LDADD): New variable.
36065         * doc/glibc-functions/openpty.texi: More supported platforms.
36066
36067 2010-03-21  Bruno Haible  <bruno@clisp.org>
36068
36069         setenv: Tweaks.
36070         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36071         the test program.
36072         * doc/posix-functions/setenv.texi: Update platforms list.
36073
36074 2010-03-21  Bruno Haible  <bruno@clisp.org>
36075
36076         New module 'unlockpt'.
36077         * lib/unlockpt.c: New file, from glibc with modifications.
36078         * m4/unlockpt.m4: New file.
36079         * modules/unlockpt: New file.
36080         * lib/stdlib.in.h (unlockpt): New declaration.
36081         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36082         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36083         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36084         HAVE_UNLOCKPT.
36085         * doc/posix-functions/unlockpt.texi: Mention the new module.
36086         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36087         * config/srclist.txt: Add unlockpt.c (commented).
36088
36089 2010-03-21  Jim Meyering  <meyering@redhat.com>
36090
36091         maint.mk: prohibit inclusion of "intprops.h" without use
36092         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36093
36094 2010-03-21  Bruno Haible  <bruno@clisp.org>
36095
36096         New module 'grantpt'.
36097         * lib/grantpt.c: New file, from glibc with modifications.
36098         * m4/grantpt.m4: New file.
36099         * modules/grantpt: New file.
36100         * lib/stdlib.in.h (grantpt): New declaration.
36101         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36102         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36103         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36104         HAVE_GRANTPT.
36105         * doc/posix-functions/grantpt.texi: Mention the new module.
36106         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36107         * config/srclist.txt: Add grantpt.c (commented).
36108
36109 2010-03-21  Bruno Haible  <bruno@clisp.org>
36110
36111         New module 'pt_chown'.
36112         * lib/pt_chown.c: New file, from glibc with modifications.
36113         * lib/pty-private.h: New file, from glibc with modifications.
36114         * modules/pt_chown: New file.
36115         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36116
36117 2010-03-21  Bruno Haible  <bruno@clisp.org>
36118
36119         Tests for module 'ptsname'.
36120         * modules/ptsname-tests: New file.
36121         * tests/test-ptsname.c: New file.
36122
36123         New module 'ptsname'.
36124         * lib/ptsname.c: New file, from glibc with modifications.
36125         * m4/ptsname.m4: New file.
36126         * modules/ptsname: New file.
36127         * lib/stdlib.in.h (ptsname): New declaration.
36128         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36129         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36130         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36131         HAVE_PTSNAME.
36132         * doc/posix-functions/ptsname.texi: Mention the new module.
36133         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36134         * config/srclist.txt: Add ptsname.c (commented).
36135
36136 2010-03-21  Bruno Haible  <bruno@clisp.org>
36137
36138         Tests for module 'ttyname_r'.
36139         * modules/ttyname_r-tests: New file.
36140         * tests/test-ttyname_r.c: New file.
36141
36142         New module 'ttyname_r'.
36143         * lib/ttyname_r.c: New file.
36144         * m4/ttyname_r.m4: New file.
36145         * modules/ttyname_r: New file.
36146         * lib/unistd.in.h (ttyname_r): New declaration.
36147         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36148         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36149         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36150         HAVE_TTYNAME_R.
36151         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36152         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36153
36154 2010-03-20  Bruno Haible  <bruno@clisp.org>
36155
36156         signal: Undefine macro definitions in C++ mode.
36157         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36158         sigfillset): Undefine macro definitions from the system header in C++
36159         mode.
36160         Reported by John W. Eaton <jwe@gnu.org>.
36161
36162 2010-03-20  Bruno Haible  <bruno@clisp.org>
36163
36164         Ensure no #include statements inside extern "C" { ... }.
36165         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36166         contain #include statements.
36167         * lib/time.in.h: Likewise.
36168
36169 2010-03-20  Bruno Haible  <bruno@clisp.org>
36170
36171         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36172         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36173         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36174         Reported by John W. Eaton <jwe@gnu.org>.
36175
36176 2010-03-20  Bruno Haible  <bruno@clisp.org>
36177
36178         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36179         Reported by Jim Meyering.
36180
36181 2010-03-20  Bruno Haible  <bruno@clisp.org>
36182
36183         pipe: Set errno upon failure.
36184         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36185         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36186         errno value in error message.
36187
36188 2010-03-20  Bruno Haible  <bruno@clisp.org>
36189             Jim Meyering  <meyering@redhat.com>
36190
36191         lchown: Avoid "unused variable" warning.
36192         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36193
36194 2010-03-20  Bruno Haible  <bruno@clisp.org>
36195
36196         Work around unlink() bug on MacOS X 10.5.6.
36197         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36198         attempting to unlink a parent directory.
36199         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36200         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36201         activate for the replacement function.
36202         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36203
36204 2010-03-20  Bruno Haible  <bruno@clisp.org>
36205
36206         Fix link errors on Solaris 8.
36207         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36208         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36209
36210 2010-03-19  Jim Meyering  <meyering@redhat.com>
36211
36212         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36213         The _LIBC implementation of build_range_exp correctly honors the
36214         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36215         However, the non-_LIBC implementation would ignore that syntax-bit
36216         flag and return REG_ERANGE unconditionally.
36217         This change makes it honor that flag.
36218         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36219         Make two pointer parameters "const".
36220         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36221         (parse_bracket_exp): Update caller.
36222
36223         regex.m4: correct the reversed range endpoint ([b-a]) test
36224         * m4/regex.m4: When requiring that [b-a] evoke failure,
36225         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36226         test pass once again for x86-based systems.
36227
36228 2010-03-19  Bruno Haible  <bruno@clisp.org>
36229
36230         scandir: Fix link error on Solaris 8.
36231         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36232         macros.
36233
36234 2010-03-19  Bruno Haible  <bruno@clisp.org>
36235
36236         getusershell: Fix documentation.
36237         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36238         module.
36239         * doc/glibc-functions/setusershell.texi: Likewise.
36240
36241         getusershell: Provide declaration, missing on Solaris 9.
36242         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36243         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36244         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36245         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36247         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36248         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36249         HAVE_GETUSERSHELL.
36250         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36251
36252 2010-03-19  Bruno Haible  <bruno@clisp.org>
36253
36254         wctype: Provide iswblank function.
36255         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36256         exists and is fine.
36257         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36258         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36259         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36260         * doc/posix-functions/iswblank.texi: Update.
36261
36262 2010-03-19  Bruno Haible  <bruno@clisp.org>
36263
36264         Tests of module 'pty' in C++ mode.
36265         * modules/pty-tests: New file.
36266         * tests/test-pty-c++.cc: New file.
36267         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36268
36269 2010-03-19  Eric Blake  <eblake@redhat.com>
36270
36271         logb: fix documentation
36272         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36273         1.5 declaration bug.
36274
36275         forkpty, openpty: prefer glibc's const-safe prototype
36276         * lib/forkpty.c (rpl_forkpty): New file.
36277         * lib/openpty.c (rpl_openpty): Likewise.
36278         * modules/forkpty (Files): Distribute it.
36279         * modules/openpty (Files): Likewise.
36280         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36281         check...
36282         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36283         replacement for for non-const BSD signature.
36284         * modules/pty (Makefile.am): Substitute witnesses.
36285         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36286         * tests/test-forkpty.c: Update signature check.
36287         * tests/test-openpty.c: Likewise.
36288         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36289         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36290
36291         forkpty, openpty: split functions into new modules
36292         * modules/pty (Makefile.am): Substitute new witnesses.
36293         (Libraries): Move library detection...
36294         * modules/forkpty: ...into new module.
36295         * modules/openpty: Another new module.
36296         * modules/pty-tests: Rename and split...
36297         * modules/forkpty-tests: ...to this...
36298         * modules/openpty-tests: ...and this.
36299         * tests/test-pty.c: Rename and split...
36300         * tests/test-forkpty.c: ...to this...
36301         * tests/test-openpty.c: ...and this.
36302         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36303         (gl_PTY): Split library searching...
36304         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36305         (gl_FORKPTY, gl_OPENPTY): New macros.
36306         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36307         * NEWS: Mention the split.
36308         * MODULES.html.sh (Misc): Document the modules.
36309         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36310         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36311
36312         pty: improve replacement header
36313         * lib/pty.in.h: New file.
36314         * modules/pty (Files): Ship it.
36315         (Makefile.am): Always build replacement.
36316         * m4/pty.m4: Rename...
36317         * m4/pty_h.m4: ...to this.
36318         (gl_PTY): Modernize setting of witness macros; update check of
36319         forkpty to take proper advantage of cache.
36320         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36321
36322         getopt: avoid compiler warning
36323         * lib/getopt.c (attribute_hidden): Remove unused macro.
36324
36325 2010-03-18  Bruno Haible  <bruno@clisp.org>
36326
36327         Fix link errors on Solaris 8.
36328         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36329         * modules/search-tests (test_search_c___LDADD): Likewise.
36330         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36331         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36332         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36333         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36334         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36335         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36336         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36337
36338 2010-03-18  Bruno Haible  <bruno@clisp.org>
36339
36340         Fix bug introduced on 2010-03-14.
36341         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36342         (gl_SPAWN_H): Require it.
36343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36344         Reported by Simon Josefsson.
36345
36346 2010-03-18  Bruno Haible  <bruno@clisp.org>
36347
36348         Fix typo introduced on 2009-12-31.
36349         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36350         posix_spawn_file_actions_adddup2.
36351
36352 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36353         and Eric Blake  <eblake@redhat.com>
36354
36355         test-vc-list-files-git: make more robust
36356         * tests/test-vc-list-files-git.sh: Unset problematic environment
36357         variables.  Chain commands together.
36358
36359 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36360
36361         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36362         `AC_CHECK_DECL' invocation.
36363
36364 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36365
36366         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36367         appears before executable statements. Suggested by Petr Sumbera
36368         <Petr.Sumbera@Sun.COM>.
36369
36370 2010-03-14  Bruno Haible  <bruno@clisp.org>
36371
36372         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36373         portability problems. Instead use a simpler test.
36374         (main): Check that invalid arguments are rejected only on Linux.
36375
36376 2010-03-14  Bruno Haible  <bruno@clisp.org>
36377
36378         Fix bug introduced on 2009-12-31.
36379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36380         gl_PREREQ_SYS_H_WINSOCK2 always.
36381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36382         SYS_SOCKET_H variable.
36383         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36384         Update comments.
36385         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36386         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36388         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36389         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36390
36391 2010-03-14  Bruno Haible  <bruno@clisp.org>
36392
36393         Fix values returned by sinl, cosl.
36394         * lib/trigl.h: Add specification comments.
36395         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36396         that combines the values from the precomputed table with the values of
36397         the Chebyshev polynomials.
36398
36399 2010-03-14  Bruno Haible  <bruno@clisp.org>
36400
36401         Fix compilation error when modules 'posix_spawn[p]' are not used.
36402         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36404
36405 2010-03-14  Bruno Haible  <bruno@clisp.org>
36406
36407         Fix compilation error on mingw when module 'time_r' is not used.
36408         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36409         is 1.
36410         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36411         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36412         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36413         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36414
36415 2010-03-14  Bruno Haible  <bruno@clisp.org>
36416
36417         Fix compilation error with Sun C.
36418         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36419         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36420         instead of GCC specific ULONG_LONG_MAX.
36421         * lib/xstrtoll.c: Likewise.
36422         * lib/xstrtoull.c: Likewise.
36423
36424 2010-03-13  Bruno Haible  <bruno@clisp.org>
36425
36426         Allow the user to disable C++ code and tests.
36427         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36428         (gl_PROG_ANSI_CXX): Require it.
36429
36430 2010-03-13  Bruno Haible  <bruno@clisp.org>
36431
36432         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36433         cases.
36434
36435 2010-03-13  Bruno Haible  <bruno@clisp.org>
36436
36437         Test that gnulib does not break the standard C++ headers.
36438         * tests/test-locale-c++2.cc: New file.
36439         * modules/locale-tests (Files): Add it.
36440         (Makefile.am): Compile it for test-locale-c++.
36441         * tests/test-math-c++2.cc: New file.
36442         * modules/math-tests (Files): Add it.
36443         (Makefile.am): Compile it for test-math-c++.
36444         * tests/test-signal-c++2.cc: New file.
36445         * modules/signal-tests (Files): Add it.
36446         (Makefile.am): Compile it for test-signal-c++.
36447         * tests/test-stdio-c++2.cc: New file.
36448         * modules/stdio-tests (Files): Add it.
36449         (Makefile.am): Compile it for test-stdio-c++.
36450         * tests/test-stdlib-c++2.cc: New file.
36451         * modules/stdlib-tests (Files): Add it.
36452         (Makefile.am): Compile it for test-stdlib-c++.
36453         * tests/test-string-c++2.cc: New file.
36454         * modules/string-tests (Files): Add it.
36455         (Makefile.am): Compile it for test-string-c++.
36456         * tests/test-time-c++2.cc: New file.
36457         * modules/time-tests (Files): Add it.
36458         (Makefile.am): Compile it for test-time-c++.
36459         Reported by John W. Eaton <jwe@gnu.org>.
36460
36461 2010-03-13  Bruno Haible  <bruno@clisp.org>
36462
36463         * gnulib-tool (func_usage): Clarify which options are available for
36464         --create-testdir and --create-megatestdir.
36465
36466 2010-03-13  Bruno Haible  <bruno@clisp.org>
36467
36468         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36469         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36470         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36471         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36472         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36473         when appropriate.
36474         Reported by Jim Meyering.
36475
36476 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36477
36478         * gnulib-tool (func_import): Explain origin of code.
36479
36480 2010-03-12  Bruno Haible  <bruno@clisp.org>
36481
36482         Fix problem with automake's definition of CXXLINK.
36483         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36484         Reported by Simon Josefsson and Ludovic Courtès.
36485
36486 2010-03-12  Bruno Haible  <bruno@clisp.org>
36487
36488         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36489         stable releases.
36490
36491 2010-03-11  Bruno Haible  <bruno@clisp.org>
36492
36493         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36494         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36495         whether the system provides one variant or multiple variants of the
36496         function.
36497         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36498         C++ compilers.
36499         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36500         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36501         Reported by Jim Meyering.
36502
36503 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36504
36505         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36506
36507 2010-03-08  Bruno Haible  <bruno@clisp.org>
36508
36509         gnulib-tool: Add support for --libtool in --create-testdir.
36510         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36511         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36512
36513 2010-03-08  Eric Blake  <eblake@redhat.com>
36514
36515         gnulib-tool.texi: mention possibility of git submodule
36516         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36517         submodules.
36518         * doc/.gitignore: Ignore another generated file.
36519
36520 2010-03-08  Karl Berry  <karl@gnu.org>
36521
36522         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36523         of committing gnulib files while skipping others.
36524
36525 2010-03-07  Bruno Haible  <bruno@clisp.org>
36526
36527         Tests of module 'wctype' in C++ mode.
36528         * tests/test-wctype-c++.cc: New file.
36529         * modules/wctype-tests (Files): Add it and tests/signature.h.
36530         (Depends-on): Add ansi-c++-opt.
36531         (Makefile.am): Arrange to compile and run test-wctype-c++.
36532
36533         Tests of module 'wchar' in C++ mode.
36534         * tests/test-wchar-c++.cc: New file.
36535         * modules/wchar-tests (Files): Add it and tests/signature.h.
36536         (Depends-on): Add ansi-c++-opt.
36537         (Makefile.am): Arrange to compile and run test-wchar-c++.
36538         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36539         gl_MODULE_INDICATOR.
36540
36541         Tests of module 'unistd' in C++ mode.
36542         * tests/test-unistd-c++.cc: New file.
36543         * modules/unistd-tests (Files): Add it and tests/signature.h.
36544         (Depends-on): Add ansi-c++-opt.
36545         (Makefile.am): Arrange to compile and run test-unistd-c++.
36546         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36547         gl_MODULE_INDICATOR.
36548
36549         Tests of module 'time' in C++ mode.
36550         * tests/test-time-c++.cc: New file.
36551         * modules/time-tests (Files): Add it and tests/signature.h.
36552         (Depends-on): Add ansi-c++-opt.
36553         (Makefile.am): Arrange to compile and run test-time-c++.
36554         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36555
36556         Tests of module 'sys_time' in C++ mode.
36557         * tests/test-sys_time-c++.cc: New file.
36558         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36559         (Depends-on): Add ansi-c++-opt.
36560         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36561         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36562         gl_MODULE_INDICATOR.
36563
36564         Tests of module 'sys_stat' in C++ mode.
36565         * tests/test-sys_stat-c++.cc: New file.
36566         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36567         (Depends-on): Add ansi-c++-opt.
36568         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36570         gl_MODULE_INDICATOR.
36571
36572         Tests of module 'sys_socket' in C++ mode.
36573         * tests/test-sys_socket-c++.cc: New file.
36574         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36575         (Depends-on): Add ansi-c++-opt.
36576         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36578         gl_MODULE_INDICATOR.
36579
36580         Tests of module 'sys_select' in C++ mode.
36581         * tests/test-sys_select-c++.cc: New file.
36582         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36583         (Depends-on): Add ansi-c++-opt.
36584         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36585         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36586         gl_MODULE_INDICATOR.
36587
36588         Tests of module 'sys_ioctl' in C++ mode.
36589         * tests/test-sys_ioctl-c++.cc: New file.
36590         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36591         (Depends-on): Add ansi-c++-opt.
36592         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36594         gl_MODULE_INDICATOR.
36595
36596         Tests of module 'string' in C++ mode.
36597         * tests/test-string-c++.cc: New file.
36598         * modules/string-tests (Files): Add it and tests/signature.h.
36599         (Depends-on): Add ansi-c++-opt.
36600         (Makefile.am): Arrange to compile and run test-string-c++.
36601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36602         gl_MODULE_INDICATOR.
36603
36604         Tests of module 'stdlib' in C++ mode.
36605         * tests/test-stdlib-c++.cc: New file.
36606         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36607         (Depends-on): Add ansi-c++-opt.
36608         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36609         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36610         gl_MODULE_INDICATOR.
36611
36612         Tests of module 'stdio' in C++ mode.
36613         * tests/test-stdio-c++.cc: New file.
36614         * modules/stdio-tests (Files): Add it and tests/signature.h.
36615         (Depends-on): Add ansi-c++-opt.
36616         (Makefile.am): Arrange to compile and run test-stdio-c++.
36617         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36618         gl_MODULE_INDICATOR.
36619
36620         Tests of module 'spawn' in C++ mode.
36621         * tests/test-spawn-c++.cc: New file.
36622         * modules/spawn-tests (Files): Add it and tests/signature.h.
36623         (Depends-on): Add ansi-c++-opt.
36624         (Makefile.am): Arrange to compile and run test-spawn-c++.
36625         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36626         gl_MODULE_INDICATOR.
36627
36628         Tests of module 'signal' in C++ mode.
36629         * tests/test-signal-c++.cc: New file.
36630         * modules/signal-tests (Files): Add it and tests/signature.h.
36631         (Depends-on): Add ansi-c++-opt.
36632         (Makefile.am): Arrange to compile and run test-signal-c++.
36633         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36634         gl_MODULE_INDICATOR.
36635
36636         Tests of module 'search' in C++ mode.
36637         * tests/test-search-c++.cc: New file.
36638         * modules/search-tests (Files): Add it and tests/signature.h.
36639         (Depends-on): Add ansi-c++-opt.
36640         (Makefile.am): Arrange to compile and run test-search-c++.
36641         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36642         gl_MODULE_INDICATOR.
36643
36644         Tests of module 'math' in C++ mode.
36645         * tests/test-math-c++.cc: New file.
36646         * modules/math-tests (Files): Add it and tests/signature.h.
36647         (Depends-on): Add ansi-c++-opt.
36648         (Makefile.am): Arrange to compile and run test-math-c++.
36649         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36650
36651         Tests of module 'locale' in C++ mode.
36652         * tests/test-locale-c++.cc: New file.
36653         * modules/locale-tests (Files): Add it and tests/signature.h.
36654         (Depends-on): Add ansi-c++-opt.
36655         (Makefile.am): Arrange to compile and run test-locale-c++.
36656         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36657         gl_MODULE_INDICATOR.
36658
36659         Tests of module 'langinfo' in C++ mode.
36660         * tests/test-langinfo-c++.cc: New file.
36661         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36662         (Depends-on): Add ansi-c++-opt.
36663         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36664         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36665         gl_MODULE_INDICATOR.
36666
36667         Tests of module 'iconv-h' in C++ mode.
36668         * tests/test-iconv-h-c++.cc: New file.
36669         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36670         (Depends-on): Add ansi-c++-opt.
36671         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36672
36673         Tests of module 'glob' in C++ mode.
36674         * tests/test-glob-c++.cc: New file.
36675         * modules/glob-tests (Files): Add it.
36676         (Depends-on): Add ansi-c++-opt.
36677         (Makefile.am): Arrange to compile and run test-glob-c++.
36678
36679         Tests of module 'fcntl-h' in C++ mode.
36680         * tests/test-fcntl-h-c++.cc: New file.
36681         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36682         (Depends-on): Add ansi-c++-opt.
36683         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36684         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36685         gl_MODULE_INDICATOR.
36686
36687         Tests of module 'dirent' in C++ mode.
36688         * tests/test-dirent-c++.cc: New file.
36689         * modules/dirent-tests (Files): Add it and tests/signature.h.
36690         (Depends-on): Add ansi-c++-opt.
36691         (Makefile.am): Arrange to compile and run test-dirent-c++.
36692         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36693         gl_MODULE_INDICATOR.
36694
36695         New module 'ansi-c++-opt'.
36696         * modules/ansi-c++-opt: New file.
36697         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36698
36699         Document C++ namespace mode.
36700         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36701
36702         wctype: Avoid #define replacements in C++ mode.
36703         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36704         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36705         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36706         In C++, define a namespaced alias symbol.
36707         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36708         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36709         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36710         rule.
36711
36712         wchar: Avoid #define replacements in C++ mode.
36713         * lib/wchar.in.h: Include c++defs.h.
36714         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36715         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36716         symbol.
36717         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36718         * modules/wchar (Depends-on): Add c++defs.
36719         (Makefile.am): Update wchar.h rule.
36720
36721         unistd: Avoid #define replacements in C++ mode.
36722         * lib/unistd.in.h: Include c++defs.h.
36723         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36724         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36725         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36726         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36727         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36728         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36729         symbol.
36730         (environ): Update.
36731         * modules/unistd (Depends-on): Add c++defs.
36732         (Makefile.am): Update unistd.h rule.
36733
36734         time: Avoid #define replacements in C++ mode.
36735         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36736         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36737         define a namespaced alias symbol.
36738         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36739         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36740         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36741         * modules/time (Depends-on): Add c++defs, warn-on-use.
36742         (Makefile.am): Update time.h rule.
36743         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36744         * modules/nanosleep (configure.ac): Likewise.
36745         * modules/strptime (configure.ac): Likewise.
36746         * modules/timegm (configure.ac): Likewise.
36747
36748         sys_time: Avoid #define replacements in C++ mode.
36749         * lib/sys_time.in.h: Include c++defs.h.
36750         (gettimeofday): In C++, define a namespaced alias symbol.
36751         * modules/sys_time (Depends-on): Add c++defs.
36752         (Makefile.am): Update sys/time.h rule.
36753
36754         sys_stat: Avoid #define replacements in C++ mode.
36755         * lib/sys_stat.in.h: Include c++defs.h.
36756         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36757         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36758         namespaced alias symbol.
36759         In C++, define a namespaced alias symbol.
36760         * modules/sys_stat (Depends-on): Add c++defs.
36761         (Makefile.am): Update sys/stat.h rule.
36762
36763         sys_socket: Avoid #define replacements in C++ mode.
36764         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36765         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36766         definitions also when the system has a <sys/socket.h>.
36767         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36768         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36769         In C++, define a namespaced alias symbol.
36770         * modules/sys_socket (Depends-on): Add c++defs.
36771         (Makefile.am): Update sys/socket.h rule.
36772
36773         sys_select: Avoid #define replacements in C++ mode.
36774         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36775         definitions also when the system has a <sys/select.h>.
36776         (select): In C++, define a namespaced alias symbol.
36777         * modules/sys_select (Depends-on): Add c++defs.
36778         (Makefile.am): Update sys/select.h rule.
36779
36780         sys_ioctl: Avoid #define replacements in C++ mode.
36781         * lib/sys_ioctl.in.h: Include c++defs.h.
36782         (ioctl): In C++, define a namespaced alias symbol.
36783         * modules/sys_ioctl (Depends-on): Add c++defs.
36784         (Makefile.am): Update sys/ioctl.h rule.
36785
36786         string: Avoid #define replacements in C++ mode.
36787         * lib/string.in.h: Include c++defs.h.
36788         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36789         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36790         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36791         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36792         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36793         * modules/string (Depends-on): Add c++defs.
36794         (Makefile.am): Update string.h rule.
36795
36796         stdlib: Avoid #define replacements in C++ mode.
36797         * lib/stdlib.in.h: Include c++defs.h.
36798         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36799         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36800         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36801         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36802         symbol.
36803         * modules/stdlib (Depends-on): Add c++defs.
36804         (Makefile.am): Update stdlib.h rule.
36805
36806         stdio: Avoid #define replacements in C++ mode.
36807         * lib/stdio.in.h: Include c++defs.h.
36808         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36809         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36810         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36811         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36812         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36813         namespaced alias symbol.
36814         * modules/stdio (Depends-on): Add c++defs.
36815         (Makefile.am): Update stdio.h rule.
36816
36817         spawn: Avoid #define replacements in C++ mode.
36818         * lib/spawn.in.h: Include c++defs.h.
36819         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36820         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36821         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36822         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36823         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36824         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36825         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36826         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36827         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36828         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36829         In C++, define a namespaced alias symbol.
36830         * modules/spawn (Depends-on): Add c++defs.
36831         (Makefile.am): Update spawn.h rule.
36832
36833         signal: Avoid #define replacements in C++ mode.
36834         * lib/signal.in.h: Include c++defs.h.
36835         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36836         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36837         namespaced alias symbol.
36838         * modules/signal (Depends-on): Add c++defs.
36839         (Makefile.am): Update signal.h rule.
36840
36841         search: Avoid #define replacements in C++ mode.
36842         * lib/search.in.h: Include c++defs.h.
36843         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36844         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36845         symbol.
36846         * modules/search (Depends-on): Add c++defs.
36847         (Makefile.am): Update search.h rule.
36848
36849         math: Avoid #define replacements in C++ mode.
36850         * lib/math.in.h: Include c++defs.h.
36851         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36852         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36853         trunc, truncl): In C++, define a namespaced alias symbol.
36854         * modules/math (Depends-on): Add c++defs.
36855         (Makefile.am): Update math.h rule.
36856
36857         locale: Avoid #define replacements in C++ mode.
36858         * lib/locale.in.h: Include c++defs.h.
36859         (duplocale): In C++, define a namespaced alias symbol.
36860         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36861         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36862         * modules/locale (Depends-on): Add c++defs.
36863         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36864
36865         langinfo: Avoid #define replacements in C++ mode.
36866         * lib/langinfo.in.h: Include c++defs.h.
36867         (nl_langinfo): In C++, define a namespaced alias symbol.
36868         * modules/langinfo (Depends-on): Add c++defs.
36869         (Makefile.am): Update langinfo.h rule.
36870
36871         iconv-h: Avoid #define replacements in C++ mode.
36872         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36873         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36874         symbol.
36875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36876         whenever iconv is present.
36877         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36878         (Makefile.am): Update iconv.h rule.
36879
36880         glob: Avoid #define replacements in C++ mode.
36881         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36882         (_gl_glob_errfunc_fn): New type.
36883         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36884         symbol.
36885         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36886         (Makefile.am): Update glob.h rule.
36887
36888         fcntl-h: Avoid #define replacements in C++ mode.
36889         * lib/fcntl.in.h: Include c++defs.h.
36890         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36891         * modules/fcntl-h (Depends-on): Add c++defs.
36892         (Makefile.am): Update fcntl.h rule.
36893
36894         dirent: Avoid #define replacements in C++ mode.
36895         * lib/dirent.in.h: Include c++defs.h.
36896         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36897         namespaced alias symbol.
36898         (dirfd): Update declaration.
36899         * modules/dirent (Depends-on): Add c++defs.
36900         (Makefile.am): Update dirent.h rule.
36901
36902         ctype: Make it usable in C++ code.
36903         * lib/ctype.in.h: Include c++defs.h.
36904         (isblank): Declare as extern "C".
36905         * modules/ctype (Depends-on): Add c++defs.
36906         (Makefile.am): Update ctype.h rule.
36907
36908         New module 'c++defs'.
36909         * modules/c++defs: New file.
36910         * build-aux/c++defs.h: New file.
36911         Reported by John W. Eaton <jwe@gnu.org>.
36912
36913 2010-03-07  Bruno Haible  <bruno@clisp.org>
36914
36915         logb: Provide missing declaration for Cygwin.
36916         * lib/math.in.h (logb): New declaration.
36917         * m4/logb.m4: New file.
36918         * modules/logb (Files): Add m4/logb.m4.
36919         (Depends-on): Add math.
36920         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36921         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36923         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36924         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36925
36926 2010-03-07  Bruno Haible  <bruno@clisp.org>
36927
36928         Fix test-cond link error.
36929         * tests/test-cond.c: Include <stdio.h>.
36930
36931 2010-03-07  Bruno Haible  <bruno@clisp.org>
36932
36933         Fix test-dirent-safer link error.
36934         * modules/dirent-safer-tests (Makefile.am): Define
36935         test_dirent_safer_LDADD.
36936
36937 2010-03-07  Bruno Haible  <bruno@clisp.org>
36938
36939         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36940         among default module list.
36941
36942 2010-03-07  Bruno Haible  <bruno@clisp.org>
36943
36944         Fix link error on platforms with GNU libiconv.
36945         * modules/unistr/u8-strcoll-tests (Makefile): Define
36946         test_u8_strcoll_LDADD.
36947         * modules/unistr/u16-strcoll-tests (Makefile): Define
36948         test_u16_strcoll_LDADD.
36949         * modules/unistr/u32-strcoll-tests (Makefile): Define
36950         test_u32_strcoll_LDADD.
36951
36952 2010-03-07  Bruno Haible  <bruno@clisp.org>
36953
36954         Use POSIX declarations for socket functions.
36955         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36956         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36957         rpl_sendto): Change declaration to match POSIX.
36958         * lib/connect.c (rpl_connect): Likewise.
36959         * lib/accept.c (rpl_accept): Likewise.
36960         * lib/bind.c (rpl_bind): Likewise.
36961         * lib/getpeername.c (rpl_getpeername): Likewise.
36962         * lib/getsockname.c (rpl_getsockname): Likewise.
36963         * lib/recv.c (rpl_recv): Likewise.
36964         * lib/send.c (rpl_send): Likewise.
36965         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36966         * lib/sendto.c (rpl_sendto): Likewise.
36967
36968 2010-03-06  Bruno Haible  <bruno@clisp.org>
36969
36970         Clarify access, euidaccess, faccessat.
36971         * doc/posix-functions/faccessat.texi: Mention security problem under
36972         "Other problems", not "Portability problems".
36973         * doc/posix-functions/access.texi: Likewise. Mention a related security
36974         problem.
36975         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36976         * lib/euidaccess.c: Add comments about platforms.
36977         * lib/unistd.in.h (access, euidaccess): Add warnings.
36978
36979 2010-03-07  Bruno Haible  <bruno@clisp.org>
36980
36981         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36982         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36983         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36984         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36985         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36986         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36987         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36988         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36989         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36991         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36992         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36993         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36994         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36995         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36996         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36997         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36998         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36999         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37000         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37001         Likewise.
37002         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37003         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37004         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37005         Likewise.
37006         * tests/test-spawn.c (main): Make it work when
37007         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37008
37009 2010-03-07  Bruno Haible  <bruno@clisp.org>
37010
37011         Fix incorrect Makefile.am generation in German locale.
37012         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37013         Execute sed command with character range in C locale.
37014
37015 2010-03-06  Bruno Haible  <bruno@clisp.org>
37016
37017         Tests for module 'iconv-h'.
37018         * modules/iconv-h-tests: New file.
37019         * tests/test-iconv-h.c: New file.
37020
37021         New module 'iconv-h'.
37022         * modules/iconv-h: New file.
37023         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37024         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37025         (configure.ac): Remove gl_ICONV_H.
37026         (Makefile.am): Remove rule for iconv.h.
37027
37028 2010-03-06  Bruno Haible  <bruno@clisp.org>
37029
37030         More consistent naming of *.m4 files.
37031         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37032         * modules/wctype (Files): Update.
37033
37034         More consistent naming of *.m4 files.
37035         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37036         * modules/wchar (Files): Update.
37037
37038 2010-03-06  Jim Meyering  <meyering@redhat.com>
37039
37040         euidaccess: relax license to LGPLv2+
37041         * modules/euidaccess (License): Relax to LGPLv2+.
37042
37043 2010-03-06  Bruno Haible  <bruno@clisp.org>
37044
37045         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37046         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37047         (Makefile.am): Augment lib_SOURCES instead.
37048
37049 2010-03-04  Jim Meyering  <meyering@redhat.com>
37050
37051         utime: remove obsolete module
37052         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37053         unnecessary for years, and has been marked as obsolete for 10 months.
37054         * modules/utime: Remove file.
37055         * lib/utime.c: Remove file.
37056         * m4/utime.m4: Remove file.
37057         * m4/utimes-null.m4: Remove file.
37058         * doc/posix-functions/utime.texi (utime): Remove reference to
37059         the module.  Move the sole "fixed by gnulib" item into the
37060         "problems not fixed by Gnulib" list.
37061         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37062
37063 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37064
37065         * modules/exit (License): Relax license to LGPLv2+.
37066         (Status): Mark as obsolete.
37067         * NEWS: Mention deprecated 'exit' module.
37068         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37069         of now obsolete 'exit'.
37070
37071 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37072
37073         fts-lgpl: remove unused module
37074         * modules/fts-lgpl: Remove.
37075         * MODULES.html.sh (func_all_modules): Adjust.
37076         * check-module (find_included_lib_files): Adjust.
37077         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37078
37079 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37080
37081         copy-acl: enhance Solaris ACL error handling
37082         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37083         * lib/set-mode-acl.c (qset_acl): Likewise.
37084
37085 2010-03-02  Bruno Haible  <bruno@clisp.org>
37086
37087         spawn: Don't override the system defined values on FreeBSD 8.
37088         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37089         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37090         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37091         if HAVE_POSIX_SPAWN is 1.
37092         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37093
37094 2010-03-01  Bruno Haible  <bruno@clisp.org>
37095
37096         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37097         regarding Automake.
37098
37099 2010-02-25  Bruno Haible  <bruno@clisp.org>
37100
37101         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37102         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37103         setting, not afterwards.
37104         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37105
37106 2010-02-24  Eric Blake  <eblake@redhat.com>
37107
37108         bootstrap, git-version-gen: use timestamp
37109         * build-aux/git-version-gen (scriptversion): Force UTC.
37110         * build-aux/bootstrap (scriptversion): New variable.
37111
37112         bootstrap: allow older git
37113         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37114         older than 1.6.4.  Requested by the libvirt project.
37115
37116 2010-02-23  Eric Blake  <eblake@redhat.com>
37117
37118         warn-on-use: work with old autoconf
37119         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37120         AS_VAR semantics of autoconf 2.60.
37121         Reported by Bruno Haible.
37122
37123         bootstrap: improve some comments
37124         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37125         clarification comments.
37126
37127         gettimeofday: provide correct function
37128         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37129         when replacement is declared, otherwise provide gettimeofday.
37130         Reported by Michael Goffioul.
37131
37132 2010-02-23  Jim Meyering  <meyering@redhat.com>
37133
37134         lib-ignore: relax license to "unlimited", not LGPLv2+
37135         * modules/lib-ignore (License): Relax to "unlimited".
37136
37137 2010-02-23  Jim Meyering  <meyering@redhat.com>
37138
37139         lib-ignore: relax license to LGPLv2+
37140         * modules/lib-ignore (License): Relax to LGPLv2+.
37141
37142 2010-02-22  Eric Blake  <eblake@redhat.com>
37143
37144         lseek: avoid bash 3.2 broken pipe bug
37145         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37146         warning from bash 3.2.
37147         Reported by Ben Pfaff, with analysis from Bruno Haible.
37148
37149         bootstrap: support non-FSF copyright holder
37150         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37151         bootstrap.conf override of COPYRIGHT_HOLDER.
37152         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37153
37154         bootstrap: interoperate with gettext 0.14.1
37155         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37156
37157         bootstrap: allow for alternate submodule location
37158         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37159         hardcoding submodule location.
37160         (gnulib_mk): Allow direct use of Makefile.am.
37161
37162         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37163         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37164         rather than reconfiguring where the submodule points.
37165
37166         gettimeofday: restore support for platforms that lack function
37167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37168         replacement if function is missing.
37169         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37170         * modules/sys_time (Makefile.am): Substitute it.
37171         * lib/sys_time.in.h (gettimeofday): Check it.
37172         Reported by Michael Goffioul.
37173
37174 2010-02-21  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/stdio.in.h (obstack_printf): Fix typo.
37177
37178 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37179
37180         vc-list-files: use bzr ls's -R option
37181         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37182         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37183
37184 2010-02-21  Jim Meyering  <meyering@redhat.com>
37185
37186         init.sh: fix EXEEXT shims to work also for names like test-prog
37187         * tests/init.sh: Re-exec a better shell, when needed.
37188         If the current shell lacks support for posix $(...), an init.sh-using
37189         test will now try to find a shell that supports that.  If EXEEXT is
37190         nonempty, we also require support for hyphen-in-alias-name and shell
37191         substitutions like ${var#glob}.  Failure to find such a shell results
37192         in a skipped test.
37193
37194 2010-02-21  Bruno Haible  <bruno@clisp.org>
37195
37196         Really work around around "broken pipe" error message from bash 3.2.
37197         * gnulib-tool (func_reset_sigpipe): Remove function.
37198         (echo): In bash 3.2, define to a function that uses printf.
37199         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37200
37201 2010-02-20  Bruno Haible  <bruno@clisp.org>
37202
37203         Restore support for automake 1.9.6 with autoconf 2.61.
37204         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37205         Reported by James Youngman <jay@gnu.org>.
37206
37207 2010-02-20  Bruno Haible  <bruno@clisp.org>
37208
37209         Improve *printf warning condition.
37210         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37211         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37212         and the function is overridden due to SIGPIPE emulation.
37213
37214 2010-02-20  Bruno Haible  <bruno@clisp.org>
37215
37216         * lib/stdio.in.h: Tweak comments.
37217
37218 2010-02-19  Bruno Haible  <bruno@clisp.org>
37219
37220         Make it easier to find modules. New gnulib-tool option '--find'.
37221         * gnulib-tool: New option --find.
37222         (func_usage): Document it.
37223         (func_sanitize_modulelist): New function, extracted from
37224         func_all_modules.
37225         (func_all_modules): Invoke it.
37226         * doc/gnulib-tool.texi (Which modules?): New node.
37227
37228 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37229
37230         * lib/sys_select.in.h: Provide select replacement even if
37231         sys/select.h exists on a system, for Interix.
37232
37233 2010-02-18  Jim Meyering  <meyering@redhat.com>
37234
37235         init.sh: don't use $(...) just yet
37236         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37237         to accommodate e.g., Solaris' /bin/sh.
37238
37239 2010-02-17  Bruno Haible  <bruno@clisp.org>
37240
37241         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37242         Reported by Ludovic Courtès <ludo@gnu.org>.
37243
37244 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37245
37246         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37247         linking with -lintl.
37248
37249 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37250
37251         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37252         if not provided by the system's netdb.h.  Reported by
37253         ludo@gnu.org (Ludovic Courtès).
37254
37255 2010-02-15  Jim Meyering  <meyering@redhat.com>
37256
37257         init.sh: improve portability and efficiency
37258         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37259         "dummy" in a for loop.
37260         Use '!', not '^' to select the complement of a character set used
37261         in a "case" statement.
37262         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37263         Suggestions from Eric Blake.
37264
37265         init.sh: automatically accommodate programs with the .exe suffix
37266         Automatically arrange for an invocation of "prog" to execute the
37267         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37268         may use the simpler "prog", yet still work when built on a system
37269         that requires specifying the added suffix.
37270         Do this by constructing a function named "prog" that invokes
37271         "prog.exe" for each .exe file in selected directories.
37272         * tests/init.sh (find_exe_basenames_): New function.
37273         (create_exe_shim_functions_): New function.
37274         (path_prepend_): Use it.
37275
37276         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37277         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37278         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37279
37280 2010-02-14  Jim Meyering  <meyering@redhat.com>
37281
37282         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37283         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37284         (sc_prohibit_hash_pjw_without_use): New rule.
37285
37286         maint.mk: allow the default upload destination dir to be overridden
37287         * top/maint.mk (upload_dest_dir_): Define with a default that
37288         preserves the status quo.
37289         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37290         Reported by Peter Simons.
37291
37292         maint.mk: prohibit inclusion of "hash.h" without_use
37293         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37294
37295 2010-02-10  Jim Meyering  <meyering@redhat.com>
37296
37297         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37298         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37299
37300 2010-02-09  Eric Blake  <ebb9@byu.net>
37301         and Bruno Haible  <bruno@clisp.org>
37302
37303         obstack-printf-posix: ensure declaration
37304         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37305         extracted from gl_FUNC_OBSTACK_PRINTF.
37306         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37307         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37308         Likewise.
37309         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37310         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37311         0.
37312
37313 2010-02-08  Bruno Haible  <bruno@clisp.org>
37314
37315         gnulib-tool: Fix typo in 2010-02-07 commit.
37316         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37317         Reported by Eric Blake.
37318
37319 2010-02-07  Bruno Haible  <bruno@clisp.org>
37320
37321         gnulib-tool: Fix up caching patches.
37322         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37323         option --no-cache. Use associative arrays when supported by the shell.
37324         (sed_comments): New variable.
37325         (modcache): Renamed from do_cache.
37326         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37327         abbreviate unnecessarily.
37328         (have_associative): New variable.
37329         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37330         way also for ksh and zsh.
37331         (func_init_sed_convert_to_cache_statements): New function, extracted
37332         from func_cache_lookup_module. Add support for associative arrays.
37333         Don't set the c_MODULE_cached variable here. Ignore all lines before
37334         the first field header. Remove only the final newline, not all trailing
37335         newlines. Support empty fields correctly. Limit the use of 'eval' to
37336         assignments.
37337         (func_get_description, func_get_status, func_get_notice,
37338         func_get_applicability, func_get_filelist, func_get_dependencies,
37339         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37340         func_get_automake_snippet, func_get_include_directive,
37341         func_get_link_directive, func_get_license, func_get_maintainer):
37342         Update documentation. List the unoptimized code first. Add support for
37343         associative arrays. Limit the use of 'eval' to assignments.
37344         (func_get_applicability): Undo stylistic pessimisations.
37345         (func_get_automake_snippet, func_get_include_directive): Reduce code
37346         duplication.
37347         (func_modules_transitive_closure, func_modules_add_dummy,
37348         func_modules_notice, func_modules_to_filelist, func_add_file,
37349         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37350         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37351         func_create_testdir, func_create_megatestdir): Update documentation.
37352
37353 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37354
37355         * gnulib-tool (func_cache_lookup_module): Store the module name
37356         belonging to the cache variable; error out if two different
37357         module names map to the same cache variable name.
37358
37359 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37360
37361         gnulib-tool: Make caching optional.
37362         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37363         Update matching short versions of --no-changelog.
37364         (func_usage): Update.
37365         (sed_extract_cache_prog): Renamed from ...
37366         (sed_extract_prog): ... this; revert to old extraction script.
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): If $do_cache is false,
37373         use old, non-caching extraction scripts.
37374         Suggestion by Bruno Haible.
37375
37376 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37377
37378         gnulib-tool: cache module metainformation.
37379         * gnulib-tool (sed_extract_prog): Match newline before each
37380         header, and rewrite header to a shell variable suffix.
37381         (func_cache_var, func_cache_lookup_module): New functions,
37382         to turn a module name into a cache variable prefix, and to
37383         look up and cache module metainformation.
37384         (func_get_description, func_get_status)
37385         (func_get_notice, func_get_applicability, func_get_filelist)
37386         (func_get_dependencies, func_get_autoconf_early_snippet)
37387         (func_get_autoconf_snippet, func_get_automake_snippet)
37388         (func_get_include_directive, func_get_link_directive)
37389         (func_get_license, func_get_maintainer): Use
37390         func_cache_lookup_module.
37391
37392 2010-02-07  Bruno Haible  <bruno@clisp.org>
37393
37394         fnctl: Fix missing dependency.
37395         * modules/fcntl (Depends-on): Add getdtablesize.
37396         Reported by John W. Eaton <jwe@gnu.org>.
37397
37398 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37399
37400         Argp: fix recognition of short alias options.
37401
37402         * lib/argp-parse.c (convert_options): Fix improper use of
37403         `|' between character values.
37404         * tests/test-argp.c (group1_option): New alias option
37405         --read (-r).
37406         (group1_parser): Special handling for 'r'.
37407         (test15): New test case.
37408         (test_fun): Add test15.
37409         * tests/test-argp-2.sh: Update expected --help and --usage
37410         outputs.
37411
37412 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37413
37414         * tests/test-argp.c: Fix indentation.
37415
37416 2010-02-04  Eric Blake  <ebb9@byu.net>
37417
37418         gettimeofday: expose type of second argument
37419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37420         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37421         * tests/test-gettimeofday.c: Use it to silence warning.
37422         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37423         the issue.
37424
37425 2010-02-03  Jim Meyering  <meyering@redhat.com>
37426
37427         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37428         * lib/regcomp.c (TYPE_SIGNED): Define.
37429         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37430
37431         regcomp.c: avoid a new -Wshadow warning
37432         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37433
37434 2010-02-01  Jim Meyering  <meyering@redhat.com>
37435
37436         removing useless parentheses in cpp #define directives
37437         For motivation, see commit c0221df4, "define STREQ(a,b)
37438         consistently, removing useless parentheses"
37439         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37440         * lib/mountlist.c (MNT_IGNORE): Likewise.
37441         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37442
37443 2010-02-01  Eric Blake  <ebb9@byu.net>
37444
37445         sys_time: use link-warning
37446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37447         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37448         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37449         * modules/sys_time (Depends-on): Add warn-on-use.
37450         (Makefile.am): Always build replacement.
37451         (configure.ac): Update substitutions.
37452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37453         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37454         bother with SYS_TIME_H.
37455         * modules/gettimeofday (configure.ac): Declare indicator.
37456         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37457         in use.
37458
37459         closein-tests: silence compiler warning
37460         * tests/test-closein.c (main): Ignore fread result.
37461         * modules/closein-tests (Depends-on): Add ignore-value.
37462
37463         tests: silence warning about system return
37464         * tests/test-areadlink-with-size.c (main): Ignore system result.
37465         * tests/test-areadlink.c (main): Likewise.
37466         * tests/test-areadlinkat-with-size.c (main): Likewise.
37467         * tests/test-areadlinkat.c (main): Likewise.
37468         * tests/test-canonicalize-lgpl.c (main): Likewise.
37469         * tests/test-canonicalize.c (main): Likewise.
37470         * tests/test-chown.c (main): Likewise.
37471         * tests/test-fchownat.c (main): Likewise.
37472         * tests/test-fdutimensat.c (main): Likewise.
37473         * tests/test-fstatat.c (main): Likewise.
37474         * tests/test-futimens.c (main): Likewise.
37475         * tests/test-lchown.c (main): Likewise.
37476         * tests/test-link.c (main): Likewise.
37477         * tests/test-linkat.c (main): Likewise.
37478         * tests/test-lstat.c (main): Likewise.
37479         * tests/test-mkdir.c (main): Likewise.
37480         * tests/test-mkdirat.c (main): Likewise.
37481         * tests/test-mkfifo.c (main): Likewise.
37482         * tests/test-mkfifoat.c (main): Likewise.
37483         * tests/test-mknod.c (main): Likewise.
37484         * tests/test-readlink.c (main): Likewise.
37485         * tests/test-remove.c (main): Likewise.
37486         * tests/test-rename.c (main): Likewise.
37487         * tests/test-renameat.c (main): Likewise.
37488         * tests/test-rmdir.c (main): Likewise.
37489         * tests/test-symlink.c (main): Likewise.
37490         * tests/test-symlinkat.c (main): Likewise.
37491         * tests/test-unlink.c (main): Likewise.
37492         * tests/test-unlinkat.c (main): Likewise.
37493         * tests/test-utimens.c (main): Likewise.
37494         * tests/test-utimensat.c (main): Likewise.
37495         * modules/areadlink-tests (Depends-on): Add ignore-value.
37496         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37497         * modules/areadlinkat-tests (Depends-on): Likewise.
37498         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37499         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37500         * modules/canonicalize-tests (Depends-on): Likewise.
37501         * modules/chown-tests (Depends-on): Likewise.
37502         * modules/fdutimensat-tests (Depends-on): Likewise.
37503         * modules/futimens-tests (Depends-on): Likewise.
37504         * modules/lchown-tests (Depends-on): Likewise.
37505         * modules/link-tests (Depends-on): Likewise.
37506         * modules/linkat-tests (Depends-on): Likewise.
37507         * modules/lstat-tests (Depends-on): Likewise.
37508         * modules/mkdir-tests (Depends-on): Likewise.
37509         * modules/mkfifo-tests (Depends-on): Likewise.
37510         * modules/mkfifoat-tests (Depends-on): Likewise.
37511         * modules/mknod-tests (Depends-on): Likewise.
37512         * modules/openat-tests (Depends-on): Likewise.
37513         * modules/readlink-tests (Depends-on): Likewise.
37514         * modules/remove-tests (Depends-on): Likewise.
37515         * modules/rename-tests (Depends-on): Likewise.
37516         * modules/renameat-tests (Depends-on): Likewise.
37517         * modules/rmdir-tests (Depends-on): Likewise.
37518         * modules/symlink-tests (Depends-on): Likewise.
37519         * modules/symlinkat-tests (Depends-on): Likewise.
37520         * modules/unlink-tests (Depends-on): Likewise.
37521         * modules/utimens-tests (Depends-on): Likewise.
37522         * modules/utimensat-tests (Depends-on): Likewise.
37523
37524 2010-01-31  Bruno Haible  <bruno@clisp.org>
37525
37526         Perform the same test for many <math.h> functions.
37527         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37528         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37529         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37530         of gl_MATHFUNC.
37531         * modules/acos (configure.ac): Likewise.
37532         * modules/asin (configure.ac): Likewise.
37533         * modules/atan (configure.ac): Likewise.
37534         * modules/atan2 (configure.ac): Likewise.
37535         * modules/cbrt (configure.ac): Likewise.
37536         * modules/copysign (configure.ac): Likewise.
37537         * modules/cos (configure.ac): Likewise.
37538         * modules/cosh (configure.ac): Likewise.
37539         * modules/erf (configure.ac): Likewise.
37540         * modules/erfc (configure.ac): Likewise.
37541         * modules/exp (configure.ac): Likewise.
37542         * modules/fmod (configure.ac): Likewise.
37543         * modules/hypot (configure.ac): Likewise.
37544         * modules/j0 (configure.ac): Likewise.
37545         * modules/j1 (configure.ac): Likewise.
37546         * modules/jn (configure.ac): Likewise.
37547         * modules/lgamma (configure.ac): Likewise.
37548         * modules/log (configure.ac): Likewise.
37549         * modules/log10 (configure.ac): Likewise.
37550         * modules/log1p (configure.ac): Likewise.
37551         * modules/pow (configure.ac): Likewise.
37552         * modules/remainder (configure.ac): Likewise.
37553         * modules/sin (configure.ac): Likewise.
37554         * modules/sinh (configure.ac): Likewise.
37555         * modules/tan (configure.ac): Likewise.
37556         * modules/tanh (configure.ac): Likewise.
37557         * modules/y0 (configure.ac): Likewise.
37558         * modules/y1 (configure.ac): Likewise.
37559         * modules/yn (configure.ac): Likewise.
37560         Suggested by Paolo Bonzini.
37561
37562 2010-01-31  Bruno Haible  <bruno@clisp.org>
37563
37564         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37565
37566 2010-01-31  Bruno Haible  <bruno@clisp.org>
37567
37568         Work around getdelim() bug on FreeBSD 8.0.
37569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37570         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37571         not work.
37572         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37573         is 1.
37574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37575         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37576         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37577         a non-zero size.
37578         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37579
37580 2010-01-31  Bruno Haible  <bruno@clisp.org>
37581
37582         Work around getline() bug on FreeBSD 8.0.
37583         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37584         and a non-zero size.
37585         * tests/test-getline.c (main): Likewise.
37586         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37587         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37588
37589 2010-01-28  Eric Blake  <ebb9@byu.net>
37590
37591         regex: fix build failure
37592         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37593         platforms.
37594
37595 2010-01-28  Jim Meyering  <meyering@redhat.com>
37596
37597         regex: do not ignore memory allocation failure
37598         * lib/regex_internal.c (create_cd_newstate): Detect
37599         re_node_set_init_copy failure.   Extracted from glibc commit
37600         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37601
37602         regex: sync more white-space changes from libc
37603         * lib/regex_internal.c: White-space only changes.
37604         * lib/regexec.c: Likewise.
37605
37606         regex: add many uses of __attribute_warn_unused_result__
37607         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37608         * lib/regexec.c: Likewise.
37609         Extracted from a messy glibc commit.
37610
37611         regcomp.c: spelling and merge-artifact from glibc
37612         * lib/regcomp.c: Merge remainder of glibc's
37613         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37614
37615         regcomp.c: sync white-space changes from glibc
37616         * lib/regcomp.c: Merge to accommodate white space
37617         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37618
37619         regcomp.c: do not ignore internal return values
37620         * lib/regcomp.c: Do not ignore internal return values.
37621         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37622         but without its white-space changes and spelling fixes.
37623
37624         regex_internal.h: define __attribute_warn_unused_result__
37625         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37626
37627         maint: add a syntax-check rule to check for vulnerable Makefile.in
37628         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37629
37630 2010-01-27  Jim Meyering  <meyering@redhat.com>
37631
37632         ncftpput-ftp: clean up spaces
37633         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37634         Remove trailing blanks.
37635
37636 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37637
37638         * build-aux/git-version-gen: Fix copyright statement.
37639         * build-aux/gnupload: Likewise.
37640         * tests/test-arcfour.c: Likewise.
37641         * tests/test-arctwo.c: Likewise.
37642         * tests/test-count-one-bits.c: Likewise.
37643         * tests/test-crc.c: Likewise.
37644         * tests/test-des.c: Likewise.
37645         * tests/test-gc-arcfour.c: Likewise.
37646         * tests/test-gc-arctwo.c: Likewise.
37647         * tests/test-gc-des.c: Likewise.
37648         * tests/test-gc-hmac-md5.c: Likewise.
37649         * tests/test-gc-hmac-sha1.c: Likewise.
37650         * tests/test-gc-md2.c: Likewise.
37651         * tests/test-gc-md4.c: Likewise.
37652         * tests/test-gc-md5.c: Likewise.
37653         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37654         * tests/test-gc-rijndael.c: Likewise.
37655         * tests/test-gc-sha1.c: Likewise.
37656         * tests/test-gc.c: Likewise.
37657         * tests/test-gethostname.c: Likewise.
37658         * tests/test-gettimeofday.c: Likewise.
37659         * tests/test-hash.c: Likewise.
37660         * tests/test-hmac-md5.c: Likewise.
37661         * tests/test-hmac-sha1.c: Likewise.
37662         * tests/test-md2.c: Likewise.
37663         * tests/test-md4.c: Likewise.
37664         * tests/test-md5.c: Likewise.
37665         * tests/test-memchr.c: Likewise.
37666         * tests/test-memchr2.c: Likewise.
37667         * tests/test-memcmp.c: Likewise.
37668         * tests/test-memmem.c: Likewise.
37669         * tests/test-memrchr.c: Likewise.
37670         * tests/test-rawmemchr.c: Likewise.
37671         * tests/test-read-file.c: Likewise.
37672         * tests/test-rijndael.c: Likewise.
37673         * tests/test-sockets.c: Likewise.
37674         * tests/test-strchrnul.c: Likewise.
37675         * tests/test-strstr.c: Likewise.
37676         * tests/test-strtod.c: Likewise.
37677         * build-aux/ncftpput-ftp: Likewise.
37678
37679 2010-01-26  Eric Blake  <ebb9@byu.net>
37680
37681         ignore-value: update recommended header name
37682         * modules/ignore-value (Include): Only use <> for headers that
37683         exist in glibc.
37684
37685 2010-01-26  Jim Meyering  <meyering@redhat.com>
37686
37687         test-userspec.c: avoid compiler warnings
37688         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37689         and "initialization discards qualifiers..." warnings.
37690         Put the first "uid" in its own scope, and make char* members "const".
37691
37692 2010-01-25  Bruno Haible  <bruno@clisp.org>
37693
37694         gnulib-tool: Make warning diagnostics consistent.
37695         * gnulib-tool (func_warning): New function.
37696         Use it everywhere where gnulib-tool produces output to stderr and it is
37697         not a fatal error.
37698
37699 2010-01-25  Bruno Haible  <bruno@clisp.org>
37700
37701         Fix test dependencies.
37702         * modules/xstrtol-tests (Depends-on): Add inttypes.
37703         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37704
37705 2010-01-25 Pádraig Brady <P@draigBrady.com>
37706
37707         syntax-check: detect incorrect boolean macro values in config.h
37708         * modules/maintainer-makefile (configure.ac): Parameterize the location
37709         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37710         The logic is from Eric Blake and the location indicated by Jim Meyering.
37711         Note the more natural CONFIG_HEADER name is prohibited by automake
37712         for backwards compatibility reasons.
37713         * top/maint.mk (sc_Wundef_boolean): New rule.
37714
37715 2010-01-25  Jim Meyering  <meyering@redhat.com>
37716
37717         bootstrap: detect MacOS 10.6's shasum, too
37718         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37719         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37720
37721 2010-01-23  Jim Meyering  <meyering@redhat.com>
37722
37723         xstrtoll: new module
37724         * modules/xstrtoll: New file.
37725         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37726         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37727         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37728         ./configure fails if you use this module and lack "long long".
37729         * modules/xstrtoll-tests: New module.
37730         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37731         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37732         new init.sh-based test framework.
37733
37734 2010-01-24  Bruno Haible  <bruno@clisp.org>
37735
37736         Tests for module 'yn'.
37737         * modules/yn-tests: New file.
37738         * tests/test-yn.c: New file.
37739
37740         Tests for module 'y1'.
37741         * modules/y1-tests: New file.
37742         * tests/test-y1.c: New file.
37743
37744         Tests for module 'y0'.
37745         * modules/y0-tests: New file.
37746         * tests/test-y0.c: New file.
37747
37748         Tests for module 'tanh'.
37749         * modules/tanh-tests: New file.
37750         * tests/test-tanh.c: New file.
37751
37752         Tests for module 'tan'.
37753         * modules/tan-tests: New file.
37754         * tests/test-tan.c: New file.
37755
37756         Tests for module 'sqrt'.
37757         * modules/sqrt-tests: New file.
37758         * tests/test-sqrt.c: New file.
37759
37760         Tests for module 'sinh'.
37761         * modules/sinh-tests: New file.
37762         * tests/test-sinh.c: New file.
37763
37764         Tests for module 'sin'.
37765         * modules/sin-tests: New file.
37766         * tests/test-sin.c: New file.
37767
37768         Tests for module 'rint'.
37769         * modules/rint-tests: New file.
37770         * tests/test-rint.c: New file.
37771
37772         Tests for module 'remainder'.
37773         * modules/remainder-tests: New file.
37774         * tests/test-remainder.c: New file.
37775
37776         Tests for module 'pow'.
37777         * modules/pow-tests: New file.
37778         * tests/test-pow.c: New file.
37779
37780         Tests for module 'nextafter'.
37781         * modules/nextafter-tests: New file.
37782         * tests/test-nextafter.c: New file.
37783
37784         Tests for module 'modf'.
37785         * modules/modf-tests: New file.
37786         * tests/test-modf.c: New file.
37787
37788         Tests for module 'logb'.
37789         * modules/logb-tests: New file.
37790         * tests/test-logb.c: New file.
37791
37792         Tests for module 'log1p'.
37793         * modules/log1p-tests: New file.
37794         * tests/test-log1p.c: New file.
37795
37796         Tests for module 'log10'.
37797         * modules/log10-tests: New file.
37798         * tests/test-log10.c: New file.
37799
37800         Tests for module 'log'.
37801         * modules/log-tests: New file.
37802         * tests/test-log.c: New file.
37803
37804         Tests for module 'lgamma'.
37805         * modules/lgamma-tests: New file.
37806         * tests/test-lgamma.c: New file.
37807
37808         Tests for module 'ldexp'.
37809         * modules/ldexp-tests: New file.
37810         * tests/test-ldexp.c: New file.
37811
37812         Tests for module 'jn'.
37813         * modules/jn-tests: New file.
37814         * tests/test-jn.c: New file.
37815
37816         Tests for module 'j1'.
37817         * modules/j1-tests: New file.
37818         * tests/test-j1.c: New file.
37819
37820         Tests for module 'j0'.
37821         * modules/j0-tests: New file.
37822         * tests/test-j0.c: New file.
37823
37824         Tests for module 'hypot'.
37825         * modules/hypot-tests: New file.
37826         * tests/test-hypot.c: New file.
37827
37828         Tests for module 'fmod'.
37829         * modules/fmod-tests: New file.
37830         * tests/test-fmod.c: New file.
37831
37832         Tests for module 'fabs'.
37833         * modules/fabs-tests: New file.
37834         * tests/test-fabs.c: New file.
37835
37836         Tests for module 'exp'.
37837         * modules/exp-tests: New file.
37838         * tests/test-exp.c: New file.
37839
37840         Tests for module 'erfc'.
37841         * modules/erfc-tests: New file.
37842         * tests/test-erfc.c: New file.
37843
37844         Tests for module 'erf'.
37845         * modules/erf-tests: New file.
37846         * tests/test-erf.c: New file.
37847
37848         Tests for module 'cosh'.
37849         * modules/cosh-tests: New file.
37850         * tests/test-cosh.c: New file.
37851
37852         Tests for module 'cos'.
37853         * modules/cos-tests: New file.
37854         * tests/test-cos.c: New file.
37855
37856         Tests for module 'copysign'.
37857         * modules/copysign-tests: New file.
37858         * tests/test-copysign.c: New file.
37859
37860         Tests for module 'cbrt'.
37861         * modules/cbrt-tests: New file.
37862         * tests/test-cbrt.c: New file.
37863
37864         Tests for module 'atan2'.
37865         * modules/atan2-tests: New file.
37866         * tests/test-atan2.c: New file.
37867
37868         Tests for module 'atan'.
37869         * modules/atan-tests: New file.
37870         * tests/test-atan.c: New file.
37871
37872         Tests for module 'asin'.
37873         * modules/asin-tests: New file.
37874         * tests/test-asin.c: New file.
37875
37876         Tests for module 'acos'.
37877         * modules/acos-tests: New file.
37878         * tests/test-acos.c: New file.
37879
37880 2010-01-24  Bruno Haible  <bruno@clisp.org>
37881
37882         Fix tests for common <math.h> functions.
37883         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37884         code snippet that references the function pointer, rather than merely
37885         calling the function. Substitute the FUNC_LIBM variable.
37886         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37887         * modules/acos (configure.ac): Likewise.
37888         * modules/asin (configure.ac): Likewise.
37889         * modules/atan (configure.ac): Likewise.
37890         * modules/atan2 (configure.ac): Likewise.
37891         * modules/cbrt (configure.ac): Likewise.
37892         * modules/copysign (configure.ac): Likewise.
37893         * modules/cos (configure.ac): Likewise.
37894         * modules/cosh (configure.ac): Likewise.
37895         * modules/erf (configure.ac): Likewise.
37896         * modules/erfc (configure.ac): Likewise.
37897         * modules/exp (configure.ac): Likewise.
37898         * modules/fabs (configure.ac): Likewise.
37899         * modules/fmod (configure.ac): Likewise.
37900         * modules/hypot (configure.ac): Likewise.
37901         * modules/j0 (configure.ac): Likewise.
37902         * modules/j1 (configure.ac): Likewise.
37903         * modules/jn (configure.ac): Likewise.
37904         * modules/ldexp (configure.ac): Likewise.
37905         * modules/lgamma (configure.ac): Likewise.
37906         * modules/log (configure.ac): Likewise.
37907         * modules/log10 (configure.ac): Likewise.
37908         * modules/log1p (configure.ac): Likewise.
37909         * modules/logb (configure.ac): Likewise.
37910         * modules/modf (configure.ac): Likewise.
37911         * modules/nextafter (configure.ac): Likewise.
37912         * modules/pow (configure.ac): Likewise.
37913         * modules/remainder (configure.ac): Likewise.
37914         * modules/rint (configure.ac): Likewise.
37915         * modules/sin (configure.ac): Likewise.
37916         * modules/sinh (configure.ac): Likewise.
37917         * modules/tan (configure.ac): Likewise.
37918         * modules/tanh (configure.ac): Likewise.
37919         * modules/y0 (configure.ac): Likewise.
37920         * modules/y1 (configure.ac): Likewise.
37921         * modules/yn (configure.ac): Likewise.
37922
37923 2010-01-24  Bruno Haible  <bruno@clisp.org>
37924
37925         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37926         * tests/test-acosl.c (x): New variable.
37927         (main): Store argument in x and fetch it from x.
37928         * tests/test-asinl.c (x): New variable.
37929         (main): Store argument in x and fetch it from x.
37930         * tests/test-atanl.c (x): New variable.
37931         (main): Store argument in x and fetch it from x.
37932         * tests/test-cosl.c (x): New variable.
37933         (main): Store argument in x and fetch it from x.
37934         * tests/test-expl.c (x): New variable.
37935         (main): Store argument in x and fetch it from x.
37936         * tests/test-logl.c (x): New variable.
37937         (main): Store argument in x and fetch it from x.
37938         * tests/test-sinl.c (x): New variable.
37939         (main): Store argument in x and fetch it from x.
37940         * tests/test-sqrtl.c (x): New variable.
37941         (main): Store argument in x and fetch it from x.
37942         * tests/test-tanl.c (x): New variable.
37943         (main): Store argument in x and fetch it from x.
37944
37945 2010-01-24  Bruno Haible  <bruno@clisp.org>
37946
37947         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37948         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37949         assignments to the initial TESTS_ENVIRONMENT.
37950         * doc/gnulib.texi (Unit test modules): Document it.
37951         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37952         TESTS_ENVIRONMENT.
37953         * modules/btowc-tests (Makefile.am): Likewise.
37954         * modules/c-stack-tests (Makefile.am): Likewise.
37955         * modules/c-strcase-tests (Makefile.am): Likewise.
37956         * modules/copy-file-tests (Makefile.am): Likewise.
37957         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37958         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37959         * modules/mbrtowc-tests (Makefile.am): Likewise.
37960         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37961         * modules/mbscasestr-tests (Makefile.am): Likewise.
37962         * modules/mbschr-tests (Makefile.am): Likewise.
37963         * modules/mbscspn-tests (Makefile.am): Likewise.
37964         * modules/mbsinit-tests (Makefile.am): Likewise.
37965         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37966         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37967         * modules/mbspbrk-tests (Makefile.am): Likewise.
37968         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37969         * modules/mbsrchr-tests (Makefile.am): Likewise.
37970         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37971         * modules/mbsspn-tests (Makefile.am): Likewise.
37972         * modules/mbsstr-tests (Makefile.am): Likewise.
37973         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37974         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37975         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37976         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37977         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37978         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37979         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37980         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37981         * modules/wcrtomb-tests (Makefile.am): Likewise.
37982         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37983         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37984         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37985         assignments from TESTS_ENVIRONMENT.
37986         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37987         augmentation.
37988         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37989         * modules/atexit-tests (Makefile.am): Likewise.
37990         * modules/binary-io-tests (Makefile.am): Likewise.
37991         * modules/closein-tests (Makefile.am): Likewise.
37992         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37993         * modules/exclude-tests (Makefile.am): Likewise.
37994         * modules/fflush-tests (Makefile.am): Likewise.
37995         * modules/fpending-tests (Makefile.am): Likewise.
37996         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37997         * modules/freadahead-tests (Makefile.am): Likewise.
37998         * modules/freadptr-tests (Makefile.am): Likewise.
37999         * modules/freadseek-tests (Makefile.am): Likewise.
38000         * modules/fseek-tests (Makefile.am): Likewise.
38001         * modules/fseeko-tests (Makefile.am): Likewise.
38002         * modules/ftell-tests (Makefile.am): Likewise.
38003         * modules/ftello-tests (Makefile.am): Likewise.
38004         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38005         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38006         * modules/lseek-tests (Makefile.am): Likewise.
38007         * modules/parse-duration-tests (Makefile.am): Likewise.
38008         * modules/perror-tests (Makefile.am): Likewise.
38009         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38010         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38011         * modules/pipe-tests (Makefile.am): Likewise.
38012         * modules/pread-tests (Makefile.am): Likewise.
38013         * modules/printf-posix-tests (Makefile.am): Likewise.
38014         * modules/select-tests (Makefile.am): Likewise.
38015         * modules/sigpipe-tests (Makefile.am): Likewise.
38016         * modules/tsearch-tests (Makefile.am): Likewise.
38017         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38018         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38019         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38020         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38021         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38022         * modules/version-etc-tests (Makefile.am): Likewise.
38023         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38024         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38025         * modules/xalloc-die-tests (Makefile.am): Likewise.
38026         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38027         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38028         * modules/xstrtol-tests (Makefile.am): Likewise.
38029         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38030         * modules/yesno-tests (Makefile.am): Likewise.
38031         Suggested by Jim Meyering.
38032
38033 2010-01-24  Bruno Haible  <bruno@clisp.org>
38034
38035         More documentation.
38036         * doc/gnulib.texi (Writing modules): New chapter.
38037         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38038         the new chapter.
38039
38040 2010-01-24  Jim Meyering  <meyering@redhat.com>
38041
38042         maint.mk: do not prepend "./" after filtering
38043         * top/maint.mk (_prepend_srcdir_prefix): New variable
38044         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38045         "./" when $(srcdir) is ".".
38046
38047         define STREQ(a,b) consistently, removing useless parentheses
38048         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38049         since the only risk is that "a" or "b" contains an unparenthesized
38050         comma, but if either did that, STREQ would have 3 or more arguments.
38051         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38052         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38053         * lib/hash-triple.c (STREQ): Likewise.
38054         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38055         * lib/getugroups.c (STREQ): Likewise.
38056
38057 2010-01-23  Jim Meyering  <meyering@redhat.com>
38058
38059         maint.mk: fix syntax-check in a non-srcdir build directory
38060         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38061         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38062
38063 2010-01-22  Jim Meyering  <meyering@redhat.com>
38064
38065         userspec: add unit tests
38066         * tests/test-userspec.c: New file.
38067         * modules/userspec-tests: Likewise.
38068
38069 2010-01-21  Jim Meyering  <meyering@redhat.com>
38070
38071         maint.mk: handle source file names containing "." robustly
38072         * top/maint.mk (_dot_escaped_srcdir): Define.
38073         (VC_LIST): Use it in LHS of sed substitution.
38074
38075 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38076
38077         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38078         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38079         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38080         from a non-srcdir build.
38081
38082 2010-01-20  Eric Blake  <ebb9@byu.net>
38083
38084         warn-on-use: use instead of link-warning
38085         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38086         * modules/unistd (Depends-on, Makefile.am): Likewise.
38087         * modules/arpa_inet (Depends-on): Replace link-warning with
38088         warn-on-use.
38089         (Makefile.am): Update rules accordingly.
38090         * modules/ctype (Depends-on, Makefile.am): Likewise.
38091         * modules/dirent (Depends-on, Makefile.am): Likewise.
38092         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38093         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38094         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38095         * modules/locale (Depends-on, Makefile.am): Likewise.
38096         * modules/math (Depends-on, Makefile.am): Likewise.
38097         * modules/search (Depends-on, Makefile.am): Likewise.
38098         * modules/signal (Depends-on, Makefile.am): Likewise.
38099         * modules/spawn (Depends-on, Makefile.am): Likewise.
38100         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38101         * modules/string (Depends-on, Makefile.am): Likewise.
38102         * modules/strings (Depends-on, Makefile.am): Likewise.
38103         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38104         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38105         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38106         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38107         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38108         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38109         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38110         * modules/wchar (Depends-on, Makefile.am): Likewise.
38111         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38112         should be poisoned.
38113         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38114         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38115         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38119         * m4/math_h.m4 (gl_MATH_H): Likewise.
38120         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38121         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38122         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38123         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38124         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38126         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38131         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38132         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38133         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38134         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38135         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38136         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38137         GL_LINK_WARNING.
38138         * lib/ctype.in.h: Likewise.
38139         * lib/dirent.in.h: Likewise.
38140         * lib/fcntl.in.h: Likewise.
38141         * lib/inttypes.in.h: Likewise.
38142         * lib/langinfo.in.h: Likewise.
38143         * lib/locale.in.h: Likewise.
38144         * lib/math.in.h: Likewise.
38145         * lib/search.in.h: Likewise.
38146         * lib/signal.in.h: Likewise.
38147         * lib/spawn.in.h: Likewise.
38148         * lib/stdio.in.h: Likewise.
38149         * lib/stdlib.in.h: Likewise.
38150         * lib/string.in.h: Likewise.
38151         * lib/strings.in.h: Likewise.
38152         * lib/sys_file.in.h: Likewise.
38153         * lib/sys_ioctl.in.h: Likewise.
38154         * lib/sys_select.in.h: Likewise.
38155         * lib/sys_socket.in.h: Likewise.
38156         * lib/sys_stat.in.h: Likewise.
38157         * lib/sys_times.in.h: Likewise.
38158         * lib/sys_utsname.in.h: Likewise.
38159         * lib/unistd.in.h: Likewise.
38160         * lib/wchar.in.h: Likewise.
38161
38162 2010-01-20  Bruno Haible  <bruno@clisp.org>
38163
38164         Avoid duplicate -lm.
38165         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38166         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38167         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38169         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38170         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38171         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38172         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38173         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38174         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38175         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38176         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38177         Reported by Paolo Bonzini.
38178
38179 2010-01-19  Bruno Haible  <bruno@clisp.org>
38180
38181         langinfo, nl_langinfo: Relicense under LGPLv2+.
38182         * modules/langinfo (License): Change to LGPLv2+.
38183         * modules/nl_langinfo (License): Likewise.
38184         Patch by David Lutterkort <lutter@redhat.com>.
38185
38186 2010-01-19  Bruno Haible  <bruno@clisp.org>
38187
38188         Avoid compilation error with cc on OSF/1 5.1.
38189         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38190         statement, not before.
38191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38192
38193 2010-01-18  Bruno Haible  <bruno@clisp.org>
38194
38195         Avoid a link error due to the __printf__ symbol.
38196         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38197         and 2.6.x.
38198         (__format__, __printf__): Remove definitions.
38199         * lib/argp-fmtstream.h: Likewise.
38200         * lib/argp.h: Likewise.
38201         * lib/error.h: Likewise.
38202         * lib/vasnprintf.h: Likewise.
38203         * lib/xprintf.h: Likewise.
38204         * lib/xvasprintf.h: Likewise.
38205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38206
38207 2010-01-18  Bruno Haible  <bruno@clisp.org>
38208
38209         Tests for module 'tanl'.
38210         * modules/tanl-tests: New file.
38211         * tests/test-tanl.c: New file.
38212
38213         Tests for module 'sqrtl'.
38214         * modules/sqrtl-tests: New file.
38215         * tests/test-sqrtl.c: New file.
38216
38217         Tests for module 'sinl'.
38218         * modules/sinl-tests: New file.
38219         * tests/test-sinl.c: New file.
38220
38221         Tests for module 'logl'.
38222         * modules/logl-tests: New file.
38223         * tests/test-logl.c: New file.
38224
38225         Tests for module 'expl'.
38226         * modules/expl-tests: New file.
38227         * tests/test-expl.c: New file.
38228
38229         Tests for module 'cosl'.
38230         * modules/cosl-tests: New file.
38231         * tests/test-cosl.c: New file.
38232
38233         Tests for module 'atanl'.
38234         * modules/atanl-tests: New file.
38235         * tests/test-atanl.c: New file.
38236
38237         Tests for module 'asinl'.
38238         * modules/asinl-tests: New file.
38239         * tests/test-asinl.c: New file.
38240
38241         Tests for module 'acosl'.
38242         * modules/acosl-tests: New file.
38243         * tests/test-acosl.c: New file.
38244
38245         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38246         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38247         tanl): Use the standard gnulib idiom.
38248         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38249         * lib/sinl.c: Likewise.
38250         * lib/tanl.c: Don't include trigl.c.
38251         (kernel_tanl): Make static.
38252         * lib/sincosl.c: Include trigl.h first.
38253         * lib/trigl.c: Likewise.
38254         * m4/acosl.m4: New file.
38255         * m4/asinl.m4: New file.
38256         * m4/atanl.m4: New file.
38257         * m4/cosl.m4: New file.
38258         * m4/expl.m4: New file.
38259         * m4/logl.m4: New file.
38260         * m4/sinl.m4: New file.
38261         * m4/sqrtl.m4: New file.
38262         * m4/tanl.m4: New file.
38263         * m4/mathl.m4: Remove file.
38264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38265         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38266         Don't initialize GNULIB_MATHL.
38267         * modules/acosl: New file.
38268         * modules/asinl: New file.
38269         * modules/atanl: New file.
38270         * modules/cosl: New file.
38271         * modules/expl: New file.
38272         * modules/logl: New file.
38273         * modules/sinl: New file.
38274         * modules/sqrtl: New file.
38275         * modules/tanl: New file.
38276         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38277         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38278         substitute GNULIB_MATHL.
38279         * modules/mathl: Rewritten.
38280         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38281         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38282         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38283         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38284         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38285         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38286         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38287         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38288         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38289
38290 2010-01-18  Bruno Haible  <bruno@clisp.org>
38291
38292         sqrt: Make gl_FUNC_SQRT requirable.
38293         * m4/sqrt.m4: New file.
38294         * modules/sqrt (Files): Add it.
38295         (configure.ac): Invoke gl_FUNC_SQRT.
38296
38297 2010-01-18  Bruno Haible  <bruno@clisp.org>
38298
38299         New modules for common <math.h> functions.
38300         * m4/mathfunc.m4: New file.
38301         * modules/acos: New file.
38302         * modules/asin: New file.
38303         * modules/atan: New file.
38304         * modules/atan2: New file.
38305         * modules/cbrt: New file.
38306         * modules/copysign: New file.
38307         * modules/cos: New file.
38308         * modules/cosh: New file.
38309         * modules/erf: New file.
38310         * modules/erfc: New file.
38311         * modules/exp: New file.
38312         * modules/fabs: New file.
38313         * modules/fmod: New file.
38314         * modules/hypot: New file.
38315         * modules/j0: New file.
38316         * modules/j1: New file.
38317         * modules/jn: New file.
38318         * modules/ldexp: New file.
38319         * modules/lgamma: New file.
38320         * modules/log: New file.
38321         * modules/log10: New file.
38322         * modules/log1p: New file.
38323         * modules/logb: New file.
38324         * modules/modf: New file.
38325         * modules/nextafter: New file.
38326         * modules/pow: New file.
38327         * modules/remainder: New file.
38328         * modules/rint: New file.
38329         * modules/sin: New file.
38330         * modules/sinh: New file.
38331         * modules/sqrt: New file.
38332         * modules/tan: New file.
38333         * modules/tanh: New file.
38334         * modules/y0: New file.
38335         * modules/y1: New file.
38336         * modules/yn: New file.
38337         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38338         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38339         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38340         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38341         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38342         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38343         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38344         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38345         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38346         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38347         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38348         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38349         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38350         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38351         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38352         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38353         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38354         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38355         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38356         * doc/posix-functions/log.texi: Mention the 'log' module.
38357         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38358         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38359         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38360         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38361         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38362         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38363         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38364         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38365         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38366         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38367         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38368         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38369         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38370         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38371         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38372         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38373
38374 2010-01-18  Jim Meyering  <meyering@redhat.com>
38375
38376         ignore-value: relax license to LGPLv2+
38377         * modules/ignore-value (License): Relax to LGPLv2+.
38378
38379         getdate: don't leak when TZ contains two or more '"'s
38380         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38381         double quote in TZ after the first one.
38382
38383         readtokens: do not leak internal token_lengths buffer
38384         * lib/readtokens.c (readtokens): Free the local, lengths,
38385         when the supplied "token_lengths" parameter is NULL.
38386
38387 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38388
38389         Fix a couple of missing LIBTHREAD link failures on AIX.
38390         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38391         $(LIBTHREAD).
38392         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38393
38394         Link test-poll against INET_PTON_LIB.
38395         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38396         for inet_pton on Solaris 10.
38397
38398 2010-01-17  Bruno Haible  <bruno@clisp.org>
38399
38400         unistdio/*-sprintf: Fix typo in module description.
38401         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38402         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38403         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38404         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38405         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38406         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38407         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38409
38410 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38411
38412         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38413         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38414         variables in shell case patterns, for AIX and HP-UX ksh.
38415
38416         Split large sed scripts, for HP-UX sed.
38417         * modules/stdio: Split sed scripts around 50 sed commands,
38418         to avoid HP-UX limit of 99 commands, in the near future.
38419         * modules/string: Likewise.
38420         * modules/unistd: Likewise.
38421
38422         gnulib-tool: avoid writing in the current directory.
38423         * gnulib-tool (func_emit_lib_Makefile_am)
38424         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38425         not in the current directory, so concurrent gnulib-tool
38426         instances do not interfere.
38427
38428 2010-01-16  Jim Meyering  <meyering@redhat.com>
38429
38430         doc: update users.txt
38431         * users.txt: Add grep.
38432         (diffutils, gzip): Update URLs.
38433
38434 2010-01-12  Bruno Haible  <bruno@clisp.org>
38435
38436         posix_spawn: Avoid test failure on Cygwin.
38437         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38438         characters.
38439         Reported by Simon Josefsson.
38440
38441 2010-01-12  Bruno Haible  <bruno@clisp.org>
38442
38443         * tests/test-cond.c (main): When skipping the test, show the reason.
38444
38445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38446
38447         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38448
38449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38450
38451         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38452         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38453
38454 2010-01-12  Eric Blake  <ebb9@byu.net>
38455
38456         build: guarantee AS_VAR_IF
38457         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38458         (gl_AS_VAR_IF): Move...
38459         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38460         Reported by Simon Josefsson.
38461
38462 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38463
38464         * lib/stdio.in.h: Fix typo.
38465
38466 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38467
38468         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38469         libgpg-error.
38470
38471 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38472
38473         * tests/test-xalloc-die.sh: Use $EXEEXT.
38474
38475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38476             Bruno Haible  <bruno@clisp.org>
38477
38478         getlogin, getlogin_r: Avoid test failure.
38479         * tests/test-getlogin.c: Include <stdio.h>.
38480         (main): Skip the test when the function fails because stdin is not a
38481         tty.
38482         * tests/test-getlogin_r.c: Include <stdio.h>.
38483         (main): Skip the test when the function fails because stdin is not a
38484         tty.
38485
38486 2010-01-11  Eric Blake  <ebb9@byu.net>
38487
38488         tests: avoid more large file warnings
38489         * tests/test-fflush.c: Avoid warning about ftell use.
38490         * tests/test-fseek.c: Avoid warning about fseek use.
38491
38492 2010-01-10  Bruno Haible  <bruno@clisp.org>
38493
38494         nproc: Work better on Linux when /proc and /sys are not mounted.
38495         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38496         as lower bound when, on glibc/Linux systems,
38497         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38498         Suggested by Pádraig Brady <P@draigbrady.com>.
38499         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38500
38501         nproc: Refactor.
38502         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38503         extracted from num_processors.
38504         (num_processors): Call it.
38505
38506 2010-01-11  Jim Meyering  <meyering@redhat.com>
38507
38508         utimecmp: avoid new warning from upcoming gcc-4.5.0
38509         * lib/utimecmp.c (BILLION): Define using #define rather than an
38510         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38511
38512 2010-01-11  Eric Blake  <ebb9@byu.net>
38513
38514         math: add portability warnings for classification macros
38515         * modules/math (Depends-on): Add warn-on-use.
38516         (Makefile.am): Provide new substitutions.
38517         * m4/math_h.m4 (gl_MATH_H): Require inline.
38518         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38519         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38520         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38521         implement warnings.
38522
38523         unistd: warn on use of environ without module
38524         * modules/unistd (Depends-on): Add warn-on-use.
38525         (Makefile.am): Provide new substitutions.
38526         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38527         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38528
38529         stdio: warn on suspicious uses
38530         * modules/stdio (Depends-on): Add warn-on-use.
38531         (Makefile.am): Provide new substitutions.
38532         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38533         fseeko.
38534         * lib/stdio.in.h (gets): Always warn on use.
38535         (fseek, ftell): Adjust when warnings are issued, and honor
38536         _GL_NO_LARGE_FILES as a way to silence the warning.
38537         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38538         any warning about large file offsets.
38539         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38540         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38541         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38542         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38543         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38544         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38545         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38546         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38547
38548         warn-on-use: new module
38549         * modules/warn-on-use: New file.
38550         * build-aux/warn-on-use.h: Likewise.
38551         * m4/warn-on-use.m4: Likewise.
38552         * MODULES.html.sh (Support for building): Mention it.
38553
38554 2010-01-10  Bruno Haible  <bruno@clisp.org>
38555
38556         Tests for module 'unistr/u32-strdup'.
38557         * modules/unistr/u32-strdup-tests: New file.
38558         * tests/unistr/test-u32-strdup.c: New file.
38559
38560         Tests for module 'unistr/u16-strdup'.
38561         * modules/unistr/u16-strdup-tests: New file.
38562         * tests/unistr/test-u16-strdup.c: New file.
38563
38564         Tests for module 'unistr/u8-strdup'.
38565         * modules/unistr/u8-strdup-tests: New file.
38566         * tests/unistr/test-u8-strdup.c: New file.
38567         * tests/unistr/test-strdup.h: New file.
38568
38569         Tests for module 'unistr/u32-strncmp'.
38570         * modules/unistr/u32-strncmp-tests: New file.
38571         * tests/unistr/test-u32-strncmp.c: New file.
38572
38573         Tests for module 'unistr/u16-strncmp'.
38574         * modules/unistr/u16-strncmp-tests: New file.
38575         * tests/unistr/test-u16-strncmp.c: New file.
38576
38577         Tests for module 'unistr/u8-strncmp'.
38578         * modules/unistr/u8-strncmp-tests: New file.
38579         * tests/unistr/test-u8-strncmp.c: New file.
38580         * tests/unistr/test-strncmp.h: New file.
38581
38582         Tests for module 'unistr/u32-strcoll'.
38583         * modules/unistr/u32-strcoll-tests: New file.
38584         * tests/unistr/test-u32-strcoll.c: New file.
38585
38586         Tests for module 'unistr/u16-strcoll'.
38587         * modules/unistr/u16-strcoll-tests: New file.
38588         * tests/unistr/test-u16-strcoll.c: New file.
38589
38590         Tests for module 'unistr/u8-strcoll'.
38591         * modules/unistr/u8-strcoll-tests: New file.
38592         * tests/unistr/test-u8-strcoll.c: New file.
38593
38594         Tests for module 'unistr/u32-strcmp'.
38595         * modules/unistr/u32-strcmp-tests: New file.
38596         * tests/unistr/test-u32-strcmp.c: New file.
38597         * tests/unistr/test-u32-strcmp.h: New file.
38598
38599         Tests for module 'unistr/u16-strcmp'.
38600         * modules/unistr/u16-strcmp-tests: New file.
38601         * tests/unistr/test-u16-strcmp.c: New file.
38602         * tests/unistr/test-u16-strcmp.h: New file.
38603
38604         Tests for module 'unistr/u8-strcmp'.
38605         * modules/unistr/u8-strcmp-tests: New file.
38606         * tests/unistr/test-u8-strcmp.c: New file.
38607         * tests/unistr/test-u8-strcmp.h: New file.
38608         * tests/unistr/test-strcmp.h: New file.
38609
38610         Tests for module 'unistr/u32-strncat'.
38611         * modules/unistr/u32-strncat-tests: New file.
38612         * tests/unistr/test-u32-strncat.c: New file.
38613
38614         Tests for module 'unistr/u16-strncat'.
38615         * modules/unistr/u16-strncat-tests: New file.
38616         * tests/unistr/test-u16-strncat.c: New file.
38617
38618         Tests for module 'unistr/u8-strncat'.
38619         * modules/unistr/u8-strncat-tests: New file.
38620         * tests/unistr/test-u8-strncat.c: New file.
38621         * tests/unistr/test-strncat.h: New file.
38622
38623         Tests for module 'unistr/u32-strcat'.
38624         * modules/unistr/u32-strcat-tests: New file.
38625         * tests/unistr/test-u32-strcat.c: New file.
38626
38627         Tests for module 'unistr/u16-strcat'.
38628         * modules/unistr/u16-strcat-tests: New file.
38629         * tests/unistr/test-u16-strcat.c: New file.
38630
38631         Tests for module 'unistr/u8-strcat'.
38632         * modules/unistr/u8-strcat-tests: New file.
38633         * tests/unistr/test-u8-strcat.c: New file.
38634         * tests/unistr/test-strcat.h: New file.
38635
38636         Tests for module 'unistr/u32-stpncpy'.
38637         * modules/unistr/u32-stpncpy-tests: New file.
38638         * tests/unistr/test-u32-stpncpy.c: New file.
38639
38640         Tests for module 'unistr/u16-stpncpy'.
38641         * modules/unistr/u16-stpncpy-tests: New file.
38642         * tests/unistr/test-u16-stpncpy.c: New file.
38643
38644         Tests for module 'unistr/u8-stpncpy'.
38645         * modules/unistr/u8-stpncpy-tests: New file.
38646         * tests/unistr/test-u8-stpncpy.c: New file.
38647         * tests/unistr/test-stpncpy.h: New file.
38648
38649         Tests for module 'unistr/u32-strncpy'.
38650         * modules/unistr/u32-strncpy-tests: New file.
38651         * tests/unistr/test-u32-strncpy.c: New file.
38652
38653         Tests for module 'unistr/u16-strncpy'.
38654         * modules/unistr/u16-strncpy-tests: New file.
38655         * tests/unistr/test-u16-strncpy.c: New file.
38656
38657         Tests for module 'unistr/u8-strncpy'.
38658         * modules/unistr/u8-strncpy-tests: New file.
38659         * tests/unistr/test-u8-strncpy.c: New file.
38660         * tests/unistr/test-strncpy.h: New file.
38661
38662         Tests for module 'unistr/u32-stpcpy'.
38663         * modules/unistr/u32-stpcpy-tests: New file.
38664         * tests/unistr/test-u32-stpcpy.c: New file.
38665
38666         Tests for module 'unistr/u16-stpcpy'.
38667         * modules/unistr/u16-stpcpy-tests: New file.
38668         * tests/unistr/test-u16-stpcpy.c: New file.
38669
38670         Tests for module 'unistr/u8-stpcpy'.
38671         * modules/unistr/u8-stpcpy-tests: New file.
38672         * tests/unistr/test-u8-stpcpy.c: New file.
38673         * tests/unistr/test-stpcpy.h: New file.
38674
38675         Tests for module 'unistr/u32-strcpy'.
38676         * modules/unistr/u32-strcpy-tests: New file.
38677         * tests/unistr/test-u32-strcpy.c: New file.
38678
38679         Tests for module 'unistr/u16-strcpy'.
38680         * modules/unistr/u16-strcpy-tests: New file.
38681         * tests/unistr/test-u16-strcpy.c: New file.
38682
38683         Tests for module 'unistr/u8-strcpy'.
38684         * modules/unistr/u8-strcpy-tests: New file.
38685         * tests/unistr/test-u8-strcpy.c: New file.
38686         * tests/unistr/test-strcpy.h: New file.
38687
38688         Tests for module 'unistr/u32-strnlen'.
38689         * modules/unistr/u32-strnlen-tests: New file.
38690         * tests/unistr/test-u32-strnlen.c: New file.
38691
38692         Tests for module 'unistr/u16-strnlen'.
38693         * modules/unistr/u16-strnlen-tests: New file.
38694         * tests/unistr/test-u16-strnlen.c: New file.
38695
38696         Tests for module 'unistr/u8-strnlen'.
38697         * modules/unistr/u8-strnlen-tests: New file.
38698         * tests/unistr/test-u8-strnlen.c: New file.
38699         * tests/unistr/test-strnlen.h: New file.
38700
38701         Tests for module 'unistr/u32-strlen'.
38702         * modules/unistr/u32-strlen-tests: New file.
38703         * tests/unistr/test-u32-strlen.c: New file.
38704
38705         Tests for module 'unistr/u16-strlen'.
38706         * modules/unistr/u16-strlen-tests: New file.
38707         * tests/unistr/test-u16-strlen.c: New file.
38708
38709         Tests for module 'unistr/u8-strlen'.
38710         * modules/unistr/u8-strlen-tests: New file.
38711         * tests/unistr/test-u8-strlen.c: New file.
38712
38713         Tests for module 'unistr/u32-prev'.
38714         * modules/unistr/u32-prev-tests: New file.
38715         * tests/unistr/test-u32-prev.c: New file.
38716
38717         Tests for module 'unistr/u16-prev'.
38718         * modules/unistr/u16-prev-tests: New file.
38719         * tests/unistr/test-u16-prev.c: New file.
38720
38721         Tests for module 'unistr/u8-prev'.
38722         * modules/unistr/u8-prev-tests: New file.
38723         * tests/unistr/test-u8-prev.c: New file.
38724
38725         Tests for module 'unistr/u32-next'.
38726         * modules/unistr/u32-next-tests: New file.
38727         * tests/unistr/test-u32-next.c: New file.
38728
38729         Tests for module 'unistr/u16-next'.
38730         * modules/unistr/u16-next-tests: New file.
38731         * tests/unistr/test-u16-next.c: New file.
38732
38733         Tests for module 'unistr/u8-next'.
38734         * modules/unistr/u8-next-tests: New file.
38735         * tests/unistr/test-u8-next.c: New file.
38736
38737         Tests for module 'unistr/u32-strmbtouc'.
38738         * modules/unistr/u32-strmbtouc-tests: New file.
38739         * tests/unistr/test-u32-strmbtouc.c: New file.
38740
38741         Tests for module 'unistr/u16-strmbtouc'.
38742         * modules/unistr/u16-strmbtouc-tests: New file.
38743         * tests/unistr/test-u16-strmbtouc.c: New file.
38744
38745         Tests for module 'unistr/u8-strmbtouc'.
38746         * modules/unistr/u8-strmbtouc-tests: New file.
38747         * tests/unistr/test-u8-strmbtouc.c: New file.
38748
38749         Tests for module 'unistr/u32-strmblen'.
38750         * modules/unistr/u32-strmblen-tests: New file.
38751         * tests/unistr/test-u32-strmblen.c: New file.
38752
38753         Tests for module 'unistr/u16-strmblen'.
38754         * modules/unistr/u16-strmblen-tests: New file.
38755         * tests/unistr/test-u16-strmblen.c: New file.
38756
38757         Tests for module 'unistr/u8-strmblen'.
38758         * modules/unistr/u8-strmblen-tests: New file.
38759         * tests/unistr/test-u8-strmblen.c: New file.
38760
38761         Tests for module 'unistr/u32-cpy-alloc'.
38762         * modules/unistr/u32-cpy-alloc-tests: New file.
38763         * tests/unistr/test-u32-cpy-alloc.c: New file.
38764
38765         Tests for module 'unistr/u16-cpy-alloc'.
38766         * modules/unistr/u16-cpy-alloc-tests: New file.
38767         * tests/unistr/test-u16-cpy-alloc.c: New file.
38768
38769         Tests for module 'unistr/u8-cpy-alloc'.
38770         * modules/unistr/u8-cpy-alloc-tests: New file.
38771         * tests/unistr/test-u8-cpy-alloc.c: New file.
38772         * tests/unistr/test-cpy-alloc.h: New file.
38773
38774         Tests for module 'unistr/u32-mbsnlen'.
38775         * modules/unistr/u32-mbsnlen-tests: New file.
38776         * tests/unistr/test-u32-mbsnlen.c: New file.
38777
38778         Tests for module 'unistr/u16-mbsnlen'.
38779         * modules/unistr/u16-mbsnlen-tests: New file.
38780         * tests/unistr/test-u16-mbsnlen.c: New file.
38781
38782         Tests for module 'unistr/u8-mbsnlen'.
38783         * modules/unistr/u8-mbsnlen-tests: New file.
38784         * tests/unistr/test-u8-mbsnlen.c: New file.
38785
38786         Tests for module 'unistr/u32-chr'.
38787         * modules/unistr/u32-chr-tests: New file.
38788         * tests/unistr/test-u32-chr.c: New file.
38789
38790         Tests for module 'unistr/u16-chr'.
38791         * modules/unistr/u16-chr-tests: New file.
38792         * tests/unistr/test-u16-chr.c: New file.
38793
38794         Tests for module 'unistr/u8-chr'.
38795         * modules/unistr/u8-chr-tests: New file.
38796         * tests/unistr/test-u8-chr.c: New file.
38797         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38798
38799         Tests for module 'unistr/u32-cmp2'.
38800         * modules/unistr/u32-cmp2-tests: New file.
38801         * tests/unistr/test-u32-cmp2.c: New file.
38802
38803         Tests for module 'unistr/u16-cmp2'.
38804         * modules/unistr/u16-cmp2-tests: New file.
38805         * tests/unistr/test-u16-cmp2.c: New file.
38806
38807         Tests for module 'unistr/u8-cmp2'.
38808         * modules/unistr/u8-cmp2-tests: New file.
38809         * tests/unistr/test-u8-cmp2.c: New file.
38810         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38811
38812         Tests for module 'unistr/u32-cmp'.
38813         * modules/unistr/u32-cmp-tests: New file.
38814         * tests/unistr/test-u32-cmp.c: New file.
38815
38816         Tests for module 'unistr/u16-cmp'.
38817         * modules/unistr/u16-cmp-tests: New file.
38818         * tests/unistr/test-u16-cmp.c: New file.
38819
38820         Tests for module 'unistr/u8-cmp'.
38821         * modules/unistr/u8-cmp-tests: New file.
38822         * tests/unistr/test-u8-cmp.c: New file.
38823         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38824
38825         Tests for module 'unistr/u32-set'.
38826         * modules/unistr/u32-set-tests: New file.
38827         * tests/unistr/test-u32-set.c: New file.
38828
38829         Tests for module 'unistr/u16-set'.
38830         * modules/unistr/u16-set-tests: New file.
38831         * tests/unistr/test-u16-set.c: New file.
38832
38833         Tests for module 'unistr/u8-set'.
38834         * modules/unistr/u8-set-tests: New file.
38835         * tests/unistr/test-u8-set.c: New file.
38836         * tests/unistr/test-set.h: New file.
38837
38838         Tests for module 'unistr/u32-move'.
38839         * modules/unistr/u32-move-tests: New file.
38840         * tests/unistr/test-u32-move.c: New file.
38841
38842         Tests for module 'unistr/u16-move'.
38843         * modules/unistr/u16-move-tests: New file.
38844         * tests/unistr/test-u16-move.c: New file.
38845
38846         Tests for module 'unistr/u8-move'.
38847         * modules/unistr/u8-move-tests: New file.
38848         * tests/unistr/test-u8-move.c: New file.
38849         * tests/unistr/test-move.h: New file.
38850
38851         Tests for module 'unistr/u32-cpy'.
38852         * modules/unistr/u32-cpy-tests: New file.
38853         * tests/unistr/test-u32-cpy.c: New file.
38854
38855         Tests for module 'unistr/u16-cpy'.
38856         * modules/unistr/u16-cpy-tests: New file.
38857         * tests/unistr/test-u16-cpy.c: New file.
38858
38859         Tests for module 'unistr/u8-cpy'.
38860         * modules/unistr/u8-cpy-tests: New file.
38861         * tests/unistr/test-u8-cpy.c: New file.
38862         * tests/unistr/test-cpy.h: New file.
38863
38864 2010-01-09  Bruno Haible  <bruno@clisp.org>
38865
38866         Tests for module 'unistr/u32-uctomb'.
38867         * modules/unistr/u32-uctomb-tests: New file.
38868         * tests/unistr/test-u32-uctomb.c: New file.
38869
38870         Tests for module 'unistr/u16-uctomb'.
38871         * modules/unistr/u16-uctomb-tests: New file.
38872         * tests/unistr/test-u16-uctomb.c: New file.
38873
38874         Tests for module 'unistr/u8-uctomb'.
38875         * modules/unistr/u8-uctomb-tests: New file.
38876         * tests/unistr/test-u8-uctomb.c: New file.
38877
38878         Tests for module 'unistr/u32-mbtoucr'.
38879         * modules/unistr/u32-mbtoucr-tests: New file.
38880         * tests/unistr/test-u32-mbtoucr.c: New file.
38881
38882         Tests for module 'unistr/u16-mbtoucr'.
38883         * modules/unistr/u16-mbtoucr-tests: New file.
38884         * tests/unistr/test-u16-mbtoucr.c: New file.
38885
38886         Tests for module 'unistr/u8-mbtoucr'.
38887         * modules/unistr/u8-mbtoucr-tests: New file.
38888         * tests/unistr/test-u8-mbtoucr.c: New file.
38889
38890         Tests for module 'unistr/u32-mbtouc'.
38891         * modules/unistr/u32-mbtouc-tests: New file.
38892         * tests/unistr/test-u32-mbtouc.c: New file.
38893
38894         Tests for module 'unistr/u16-mbtouc'.
38895         * modules/unistr/u16-mbtouc-tests: New file.
38896         * tests/unistr/test-u16-mbtouc.c: New file.
38897
38898         Tests for module 'unistr/u8-mbtouc'.
38899         * modules/unistr/u8-mbtouc-tests: New file.
38900         * tests/unistr/test-u8-mbtouc.c: New file.
38901
38902         Tests for module 'unistr/u32-mbtouc-unsafe'.
38903         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38904         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38905         * tests/unistr/test-u32-mbtouc.h: New file.
38906
38907         Tests for module 'unistr/u16-mbtouc-unsafe'.
38908         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38909         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38910         * tests/unistr/test-u16-mbtouc.h: New file.
38911
38912         Tests for module 'unistr/u8-mbtouc-unsafe'.
38913         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38914         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38915         * tests/unistr/test-u8-mbtouc.h: New file.
38916
38917         Tests for module 'unistr/u32-mblen'.
38918         * modules/unistr/u32-mblen-tests: New file.
38919         * tests/unistr/test-u32-mblen.c: New file.
38920
38921         Tests for module 'unistr/u16-mblen'.
38922         * modules/unistr/u16-mblen-tests: New file.
38923         * tests/unistr/test-u16-mblen.c: New file.
38924
38925         Tests for module 'unistr/u8-mblen'.
38926         * modules/unistr/u8-mblen-tests: New file.
38927         * tests/unistr/test-u8-mblen.c: New file.
38928
38929         Tests for module 'unistr/u32-to-u16'.
38930         * modules/unistr/u32-to-u16-tests: New file.
38931         * tests/unistr/test-u32-to-u16.c: New file.
38932
38933         Tests for module 'unistr/u32-to-u8'.
38934         * modules/unistr/u32-to-u8-tests: New file.
38935         * tests/unistr/test-u32-to-u8.c: New file.
38936
38937         Tests for module 'unistr/u16-to-u32'.
38938         * modules/unistr/u16-to-u32-tests: New file.
38939         * tests/unistr/test-u16-to-u32.c: New file.
38940
38941         Tests for module 'unistr/u16-to-u8'.
38942         * modules/unistr/u16-to-u8-tests: New file.
38943         * tests/unistr/test-u16-to-u8.c: New file.
38944
38945         Tests for module 'unistr/u8-to-u32'.
38946         * modules/unistr/u8-to-u32-tests: New file.
38947         * tests/unistr/test-u8-to-u32.c: New file.
38948
38949         Tests for module 'unistr/u8-to-u16'.
38950         * modules/unistr/u8-to-u16-tests: New file.
38951         * tests/unistr/test-u8-to-u16.c: New file.
38952
38953         Tests for module 'unistr/u32-check'.
38954         * modules/unistr/u32-check-tests: New file.
38955         * tests/unistr/test-u32-check.c: New file.
38956
38957         Tests for module 'unistr/u16-check'.
38958         * modules/unistr/u16-check-tests: New file.
38959         * tests/unistr/test-u16-check.c: New file.
38960
38961         Tests for module 'unistr/u8-check'.
38962         * modules/unistr/u8-check-tests: New file.
38963         * tests/unistr/test-u8-check.c: New file.
38964
38965         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38966         (category_equals): New function.
38967         (main): Add more tests.
38968         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38969
38970         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38971
38972 2010-01-10  Bruno Haible  <bruno@clisp.org>
38973
38974         unistr/u*-strcoll: Try harder to distinguish different strings.
38975         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38976         compare s1 and s2 to see if they are different.
38977
38978 2010-01-10  Bruno Haible  <bruno@clisp.org>
38979
38980         unistr/u*-stpncpy: Fix the return value.
38981         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38982         description of the return value consistent with stpncpy in glibc.
38983         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38984         written non-NUL unit.
38985
38986 2010-01-10  Bruno Haible  <bruno@clisp.org>
38987
38988         unistr/u*-next: Add missing dependencies.
38989         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38990         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38991         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38992
38993 2010-01-10  Bruno Haible  <bruno@clisp.org>
38994
38995         unistr/u8-mbsnlen: Fix return value for incomplete character.
38996         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38997         u8_mblen.
38998         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38999         Remove unistr/u8-mblen.
39000         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39001         u16_mblen.
39002         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39003         Remove unistr/u16-mblen.
39004
39005 2010-01-10  Bruno Haible  <bruno@clisp.org>
39006
39007         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39008         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39009         Reported by Brian Gough <bjg@gnu.org> and
39010         Chris Clayton <chris2553@googlemail.com> via
39011         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39012
39013 2010-01-09  Bruno Haible  <bruno@clisp.org>
39014
39015         unistr/u16-to-u32: Reject invalid input.
39016         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39017         u16_mbtouc.
39018         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39019         Remove unistr/u16-mbtouc.
39020
39021         unistr/u16-to-u8: Reject invalid input.
39022         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39023         u16_mbtouc.
39024         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39025         Remove unistr/u16-mbtouc.
39026
39027         unistr/u8-to-u32: Reject invalid input.
39028         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39029         u8_mbtouc.
39030         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39031         Remove unistr/u8-mbtouc.
39032
39033         unistr/u8-to-u16: Reject invalid input.
39034         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39035         u8_mbtouc.
39036         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39037         Remove unistr/u8-mbtouc.
39038
39039 2010-01-09  Bruno Haible  <bruno@clisp.org>
39040
39041         Tests for module 'getlogin'.
39042         * modules/getlogin-tests: New file.
39043         * tests/test-getlogin.c: New file.
39044
39045         New module 'getlogin'.
39046         * lib/unistd.in.h (getlogin): New declaration.
39047         * lib/getlogin.c: New file.
39048         * m4/getlogin.m4: New file.
39049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39050         HAVE_GETLOGIN.
39051         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39052         HAVE_GETLOGIN.
39053         * modules/getlogin: New file.
39054         * doc/posix-functions/getlogin.texi: Mention the new module.
39055         Reported by John W. Eaton <jwe@gnu.org>.
39056
39057 2010-01-09  Bruno Haible  <bruno@clisp.org>
39058
39059         getlogin_r: Support for native Windows.
39060         * lib/getlogin_r.c: Include <windows.h>
39061         (getlogin_r): Implement for native Windows.
39062         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39063         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39064         via John W. Eaton <jwe@gnu.org>.
39065
39066 2010-01-09  Bruno Haible  <bruno@clisp.org>
39067
39068         getlogin_r: Small fixes.
39069         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39070         succeeds.
39071         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39072         before testing whether getlogin_r is declared. No need to set
39073         HAVE_DECL_GETLOGIN_R to 1.
39074         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39075
39076 2010-01-09  Bruno Haible  <bruno@clisp.org>
39077
39078         * lib/unistd.in.h (getlogin_r): Add comment.
39079
39080 2010-01-09  Bruno Haible  <bruno@clisp.org>
39081
39082         Tests for module 'getlogin_r'.
39083         * modules/getlogin_r-tests: New file.
39084         * tests/test-getlogin_r.c: New file.
39085
39086 2010-01-09  Jim Meyering  <meyering@redhat.com>
39087
39088         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39089         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39090         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39091
39092 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39093
39094         * lib/dup2.c (rpl_dup2): Improve comment.
39095
39096 2010-01-08  Eric Blake  <ebb9@byu.net>
39097
39098         maint.mk: allow packages to add makefile @@ exceptions
39099         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39100         (sc_makefile_check): Rename...
39101         (sc_makefile_at_at_check): ...to this, and use hook.
39102
39103         dup2: work around mingw bug
39104         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39105         Reported by Simon Josefsson.
39106
39107 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39108
39109         glob: Fix C++ compilation.
39110         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39111         C++.
39112
39113 2010-01-07  Bruno Haible  <bruno@clisp.org>
39114
39115         Fix indentation of wctype.in.h, broken since 2007-01-06.
39116         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39117
39118 2010-01-07  Bruno Haible  <bruno@clisp.org>
39119
39120         mbslen: Avoid collision with system function.
39121         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39122         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39123         * m4/mbslen.m4: New file.
39124         * modules/mbslen (Files): Add it.
39125         (configure.ac): Invoke gl_MBSLEN.
39126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39127         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39128         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39129         via Ian Beckwith <ianb@erislabs.net>.
39130
39131 2010-01-07  Bruno Haible  <bruno@clisp.org>
39132
39133         dirent: Document the last fix.
39134         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39135
39136 2010-01-07  Bruno Haible  <bruno@clisp.org>
39137
39138         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39139         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39140         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39141         va_list are defined.
39142         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39143         Reported by Eric Blake.
39144
39145 2010-01-07  Bruno Haible  <bruno@clisp.org>
39146
39147         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39148         * modules/xlist (Depends-on): Add 'list',
39149         * modules/xoset (Depends-on): Add 'oset'.
39150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39151
39152 2010-01-07  Bruno Haible  <bruno@clisp.org>
39153
39154         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39155         * doc/posix-functions/strncasecmp.texi: Likewise.
39156
39157 2010-01-07  Bruno Haible  <bruno@clisp.org>
39158
39159         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39160
39161 2010-01-07  John W. Eaton  <jwe@octave.org>
39162
39163         wctype: allow C++ use
39164         * lib/wctype.in.h: Add extern "C" block for C++.
39165
39166 2010-01-06  Eric Blake  <ebb9@byu.net>
39167
39168         maint.mk: detect incorrect GFDL usage
39169         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39170
39171 2010-01-06  Jim Meyering  <meyering@redhat.com>
39172         and Eric Blake  <ebb9@byu.net>
39173
39174         maint.mk: ignore multi-line copyright in NEWS
39175         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39176
39177 2010-01-06  Eric Blake  <ebb9@byu.net>
39178
39179         select: add missing dependency
39180         * modules/select-tests (Depends-on): Move sockets dependency...
39181         * modules/select (Depends-on): ...here.
39182         Reported by Ian Beckwith.
39183
39184         doc: regenerate INSTALL
39185         * doc/INSTALL: Reflect recent autoconf update.
39186         * doc/INSTALL.ISO: Likewise.
39187         * doc/INSTALL.UTF-8: Likewise.
39188
39189         pread: fix compilation on glibc
39190         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39191         Reported by Ralf Wildenhues.
39192
39193         dirent: fix test failure
39194         * lib/dirent.in.h (includes): Guarantee ino_t.
39195         Reported by Ralf Wildenhues.
39196
39197 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39198
39199         linkat, renameat: avoid bad free
39200         * lib/at-func2.c (at_func2): Fix typo.
39201         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39202
39203 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39204
39205         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39206         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39207         to avoid failure of symlink test later.
39208
39209 2010-01-06  Eric Blake  <ebb9@byu.net>
39210
39211         stdio, unistd: guarantee ssize_t
39212         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39213         2008 are exposed when needed.
39214         * lib/stdio.in.h (includes): Likewise.
39215         Reported by Ralf Wildenhues.
39216
39217 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39218
39219         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39220         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39221         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39222
39223 2010-01-06  Jim Meyering  <meyering@redhat.com>
39224
39225         readtokens: this module *does* require xalloc.h
39226         It uses only functions that were omitted by the old syntax-check rule.
39227         * lib/readtokens.c: Include "xalloc.h" once again.
39228         * modules/readtokens (Depends-on): Add xalloc.
39229         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39230
39231 2010-01-05  Eric Blake  <ebb9@byu.net>
39232
39233         maint: support 'make announcement' from a VPATH build
39234         * top/maint.mk (announcement): Look for correct NEWS file.
39235
39236 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39237
39238         utimens (fdutimens): ignore a negative FD, per contract
39239         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39240         when we have a valid file descriptor.  Otherwise, using a brand
39241         new glibc (with just-patched futimens that now fails with EBADF)
39242         would cause this function to fail with ENOSYS.
39243         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39244         See also http://bugzilla.redhat.com/552320.
39245
39246 2010-01-05  Eric Blake  <ebb9@byu.net>
39247
39248         strcase: document what it provides
39249         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39250         gnulib module.
39251         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39252         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39253
39254 2010-01-05  Jim Meyering  <meyering@redhat.com>
39255
39256         maint: remove useless inclusions of "xalloc.h"
39257         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39258         * lib/readtokens.c: Likewise.
39259         * lib/same.c: Likewise.
39260         * modules/getloadavg (Depends-on): Remove xalloc.
39261         * modules/readtokens: Likewise.
39262         * modules/same: Likewise.
39263
39264         maint.mk: include 4 more function names in alloca.h-checking regexp
39265         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39266         regexp.  Before, we would give a false-positive (saying alloca.h
39267         is included unnecessarily) when the only uses involved omitted symbols.
39268
39269         xalloc.h: use consistent formatting
39270         * lib/xalloc.h: Move declarations to start in the first column.
39271
39272 2010-01-05  Eric Blake  <ebb9@byu.net>
39273
39274         mkdir: avoid xalloc
39275         * lib/mkdir.c (includes): Drop unused header.
39276         Reported by John W. Eaton.
39277
39278 2010-01-04  Jim Meyering  <meyering@redhat.com>
39279
39280         nl_langinfo: avoid configure-time syntax error
39281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39282         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39283         the empty string.  Don't let that provoke a shell syntax error.
39284
39285         regcomp, regexec, fnmatch: avoid array bounds read error
39286         * lib/regcomp.c (build_equiv_class): From glibc:
39287         Use only the low 24 bits of a findidx return value as an index
39288         into the weights array.  Patch by Ulrich Drepper:
39289         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39290         * lib/regexec.c (check_node_accept_bytes): Likewise.
39291         * lib/fnmatch_loop.c (FCT): Likewise.
39292
39293         regcomp: skip collseq lookup when there are no rules
39294         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39295         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39296
39297         regcomp: recognize ill-formed { } expressions
39298         * lib/regcomp.c (parse_dup_op): From glibc:
39299         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39300
39301         regcomp: fix typo in comment
39302         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39303         s/satisfy/satisfies/.
39304
39305         regcomp: sync from glibc: remove dead store
39306         * lib/regcomp.c (duplicate_node_closure): Remove useless
39307         search_duplicated_node call and dead store.
39308
39309         regcomp: sync from glibc; always use nl_langinfo
39310         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39311         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39312         * modules/regex (Depends-on): Add nl_langinfo.
39313
39314 2010-01-04  Eric Blake  <ebb9@byu.net>
39315
39316         fdopendir: fix configure test
39317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39318
39319 2010-01-01  Bruno Haible  <bruno@clisp.org>
39320
39321         wchar: Remove unused configure check.
39322         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39323
39324 2010-01-01  Eric Blake  <ebb9@byu.net>
39325
39326         headers: make check of system header explicit
39327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39328         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39329         ourselves.
39330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39333         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39334         internals.
39335         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39336         missing.
39337         Suggested by Bruno Haible.
39338
39339 2010-01-01  Jim Meyering  <meyering@redhat.com>
39340
39341         ChangeLog: tweak to eliminate unnecessary copyright line
39342         * ChangeLog: Remove a copyright line that was mistakenly updated
39343         by today's update-copyright run.  Reported by Eric Blake.
39344
39345         test-update-copyright: don't let envvar setting cause test failure
39346         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39347
39348 2010-01-01  Bruno Haible  <bruno@clisp.org>
39349
39350         localename: Avoid gcc warning.
39351         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39352         function if it is not used.
39353
39354 2010-01-01  Jim Meyering  <meyering@redhat.com>
39355
39356         update nearly all FSF copyright year lists to include 2010
39357         Use the same procedure as for 2009, outlined in
39358         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39359
39360         version-etc: set COPYRIGHT_YEAR to 2010
39361         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39362
39363 2009-12-31  Eric Blake  <ebb9@byu.net>
39364
39365         doc: correct availability of cygwin 1.5.x getopt
39366         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39367         variables.
39368         * doc/posix-functions/opterr.texi (opterr): Likewise.
39369         * doc/posix-functions/optind.texi (optind): Likewise.
39370         * doc/posix-functions/optopt.texi (optopt): Likewise.
39371         * doc/posix-functions/tzname.texi (tzname): Likewise.
39372
39373         openat: update maintainer
39374         * modules/openat (Maintainer): Add myself.
39375
39376         utimens: avoid shadowing warning
39377         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39378         buffers into one, to avoid shadowing, as well as avoiding a
39379         redundant stat.
39380         Reported by Jim Meyering.
39381
39382         test-dup2: avoid compiler warning
39383         * tests/test-dup2.c (is_inheritable): Only define if used.
39384
39385 2010-01-01  Bruno Haible  <bruno@clisp.org>
39386
39387         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39388         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39389         defined, use wctomb instead of wcrtomb.
39390
39391 2010-01-01  Bruno Haible  <bruno@clisp.org>
39392
39393         iconv: Reject native Solaris iconv.
39394         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39395         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39396
39397 2009-12-31  Bruno Haible  <bruno@clisp.org>
39398
39399         * tests/test-signal.c (main): Remove test of 'SIG'.
39400
39401 2009-12-31  Bruno Haible  <bruno@clisp.org>
39402
39403         spawn: Fix incomplete fix.
39404         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39405         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39406         warnings for GNULIB_POSIXCHECK again.
39407         Reported by Eric Blake.
39408
39409 2009-12-31  Bruno Haible  <bruno@clisp.org>
39410
39411         Avoid namespace pollution on glibc systems.
39412         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39413         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39414         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39415         glibc systems.
39416
39417 2009-12-31  Bruno Haible  <bruno@clisp.org>
39418
39419         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39420         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39421         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39422         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39423         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39424         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39425         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39426
39427 2009-12-31  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39430         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39431         afterwards.
39432
39433 2009-12-31  Bruno Haible  <bruno@clisp.org>
39434
39435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39436         SYS_UTSNAME_H.
39437
39438 2009-12-31  Bruno Haible  <bruno@clisp.org>
39439
39440         spawn: Fix misapplied patch.
39441         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39442         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39443         warnings for GNULIB_POSIXCHECK.
39444
39445 2009-12-31  Bruno Haible  <bruno@clisp.org>
39446
39447         times: Update after sys_times changed.
39448         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39449         * modules/times (Files): Add it.
39450         (configure.ac): Invoke gl_FUNC_TIMES.
39451
39452 2009-12-31  Bruno Haible  <bruno@clisp.org>
39453
39454         Use AC_C_INLINE where necessary.
39455         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39457         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39458         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39459         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39460         * m4/mbiter.m4 (gl_MBITER): Likewise.
39461         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39462         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39463         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39464         * modules/u64 (configure.ac): Likewise.
39465
39466 2009-12-31  Bruno Haible  <bruno@clisp.org>
39467
39468         Use AC_C_INLINE instead of module 'inline' where possible.
39469         * modules/inline (Description): Clarify purpose.
39470         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39471         * modules/count-one-bits (Depends-on): Remove inline.
39472         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39473         * modules/openat (Depends-on): Remove inline.
39474         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39475         instead of depending on module 'inline'.
39476         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39477         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39478         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39479         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39480         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39481         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39482         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39483         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39484         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39485         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39486         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39487         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39488         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39489         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39490         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39491         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39492         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39493         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39494         Likewise.
39495         * modules/unictype/property-ascii-hex-digit (Depends-on,
39496         configure.ac): Likewise.
39497         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39498         configure.ac): Likewise.
39499         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39500         configure.ac): Likewise.
39501         * modules/unictype/property-bidi-block-separator (Depends-on,
39502         configure.ac): Likewise.
39503         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39504         configure.ac): Likewise.
39505         * modules/unictype/property-bidi-common-separator (Depends-on,
39506         configure.ac): Likewise.
39507         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39508         Likewise.
39509         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39510         configure.ac): Likewise.
39511         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39512         configure.ac): Likewise.
39513         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39514         configure.ac): Likewise.
39515         * modules/unictype/property-bidi-european-digit (Depends-on,
39516         configure.ac): Likewise.
39517         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39518         configure.ac): Likewise.
39519         * modules/unictype/property-bidi-left-to-right (Depends-on,
39520         configure.ac): Likewise.
39521         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39522         configure.ac): Likewise.
39523         * modules/unictype/property-bidi-other-neutral (Depends-on,
39524         configure.ac): Likewise.
39525         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39526         Likewise.
39527         * modules/unictype/property-bidi-segment-separator (Depends-on,
39528         configure.ac): Likewise.
39529         * modules/unictype/property-bidi-whitespace (Depends-on,
39530         configure.ac): Likewise.
39531         * modules/unictype/property-combining (Depends-on, configure.ac):
39532         Likewise.
39533         * modules/unictype/property-composite (Depends-on, configure.ac):
39534         Likewise.
39535         * modules/unictype/property-currency-symbol (Depends-on,
39536         configure.ac): Likewise.
39537         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39538         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39539         Likewise.
39540         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39541         configure.ac): Likewise.
39542         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39543         Likewise.
39544         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39545         Likewise.
39546         * modules/unictype/property-extender (Depends-on, configure.ac):
39547         Likewise.
39548         * modules/unictype/property-format-control (Depends-on, configure.ac):
39549         Likewise.
39550         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39551         Likewise.
39552         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39553         Likewise.
39554         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39555         Likewise.
39556         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39557         Likewise.
39558         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39559         Likewise.
39560         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39561         Likewise.
39562         * modules/unictype/property-id-start (Depends-on, configure.ac):
39563         Likewise.
39564         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39565         Likewise.
39566         * modules/unictype/property-ids-binary-operator (Depends-on,
39567         configure.ac): Likewise.
39568         * modules/unictype/property-ids-trinary-operator (Depends-on,
39569         configure.ac): Likewise.
39570         * modules/unictype/property-ignorable-control (Depends-on,
39571         configure.ac): Likewise.
39572         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39573         Likewise.
39574         * modules/unictype/property-join-control (Depends-on, configure.ac):
39575         Likewise.
39576         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39577         Likewise.
39578         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39579         Likewise.
39580         * modules/unictype/property-logical-order-exception (Depends-on,
39581         configure.ac): Likewise.
39582         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39583         Likewise.
39584         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39585         * modules/unictype/property-non-break (Depends-on, configure.ac):
39586         Likewise.
39587         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39588         Likewise.
39589         * modules/unictype/property-numeric (Depends-on, configure.ac):
39590         Likewise.
39591         * modules/unictype/property-other-alphabetic (Depends-on,
39592         configure.ac): Likewise.
39593         * modules/unictype/property-other-default-ignorable-code-point
39594         (Depends-on, configure.ac): Likewise.
39595         * modules/unictype/property-other-grapheme-extend (Depends-on,
39596         configure.ac): Likewise.
39597         * modules/unictype/property-other-id-continue (Depends-on,
39598         configure.ac): Likewise.
39599         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39600         Likewise.
39601         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39602         Likewise.
39603         * modules/unictype/property-other-math (Depends-on, configure.ac):
39604         Likewise.
39605         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39606         Likewise.
39607         * modules/unictype/property-paired-punctuation (Depends-on,
39608         configure.ac): Likewise.
39609         * modules/unictype/property-paragraph-separator (Depends-on,
39610         configure.ac): Likewise.
39611         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39612         Likewise.
39613         * modules/unictype/property-pattern-white-space (Depends-on,
39614         configure.ac): Likewise.
39615         * modules/unictype/property-private-use (Depends-on, configure.ac):
39616         Likewise.
39617         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39618         Likewise.
39619         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39620         Likewise.
39621         * modules/unictype/property-radical (Depends-on, configure.ac):
39622         Likewise.
39623         * modules/unictype/property-sentence-terminal (Depends-on,
39624         configure.ac): Likewise.
39625         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39626         Likewise.
39627         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39628         * modules/unictype/property-terminal-punctuation (Depends-on,
39629         configure.ac): Likewise.
39630         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39631         Likewise.
39632         * modules/unictype/property-unassigned-code-value (Depends-on,
39633         configure.ac): Likewise.
39634         * modules/unictype/property-unified-ideograph (Depends-on,
39635         configure.ac): Likewise.
39636         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39637         Likewise.
39638         * modules/unictype/property-variation-selector (Depends-on,
39639         configure.ac): Likewise.
39640         * modules/unictype/property-white-space (Depends-on, configure.ac):
39641         Likewise.
39642         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39643         Likewise.
39644         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39645         Likewise.
39646         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39647         Likewise.
39648         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39649         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39650         Likewise.
39651
39652 2009-12-31  Bruno Haible  <bruno@clisp.org>
39653
39654         Remove unnecessary AC_C_INLINE invocation.
39655         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39656         since 2009-08-21.
39657
39658 2009-12-31  Jim Meyering  <meyering@redhat.com>
39659
39660         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39661         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39662         With this change, we can all remove the gpg_key_ID = ... definition
39663         from our respective cfg.mk files.
39664
39665         maint.mk: create announcement template in ~/, not in /tmp
39666         * top/maint.mk (emit_upload_commands): Adjust.
39667         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39668         Remove temporary file, .ci-msg.
39669
39670 2009-12-31  Eric Blake  <ebb9@byu.net>
39671
39672         link-warning: always build headers with link warnings
39673         * modules/arpa_inet (Makefile.am): Always build replacement
39674         header.
39675         * modules/ctype (Makefile.am): Likewise.
39676         * modules/dirent (Makefile.am): Likewise.
39677         * modules/inttypes (Makefile.am): Likewise.
39678         * modules/langinfo (Makefile.am): Likewise.
39679         * modules/locale (Makefile.am): Likewise.
39680         * modules/spawn (Makefile.am): Likewise.
39681         * modules/sys_file (Makefile.am): Likewise.
39682         * modules/sys_ioctl (Makefile.am): Likewise.
39683         * modules/sys_select (Makefile.am): Likewise.
39684         * modules/sys_socket (Makefile.am): Likewise.
39685         * modules/sys_times (Makefile.am): Likewise.
39686         * modules/sys_utsname (Makefile.am): Likewise.
39687         * modules/sys_wait (Makefile.am): Likewise.
39688         * modules/wchar (Makefile.am): Likewise.
39689         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39690         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39691         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39692         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39693         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39694         Likewise.
39695         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39696         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39698         Likewise.
39699         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39700         Likewise.
39701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39703         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39705         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39706         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39707         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39708         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39709         (gl_WCHAR_H_DEFAULTS): Likewise.
39710
39711 2009-12-31  Eric Blake  <ebb9@byu.net>
39712
39713         signal, spawn: use link warnings
39714         * lib/signal.in.h (sigset_t): Make unconditional.
39715         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39716         (sigpending, sigprocmask, sigaction): Add link warnings.
39717         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39718         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39719         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39720         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39721         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39722         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39723         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39724         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39725         (posix_spawn_file_actions_destroy)
39726         (posix_spawn_file_actions_addopen)
39727         (posix_spawn_file_actions_addclose)
39728         (posix_spawn_file_actions_adddup2): Likewise.
39729         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39730         * tests/test-signal.c (main): Enhance test.
39731
39732         spawn: improve wrapper support
39733         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39734         (gl_SPAWN_H_DEFAULTS): New defaults.
39735         * modules/spawn (Makefile.am): Substitute them.
39736         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39737         Only declare if missing or broken.
39738
39739         sys_times, sys_utsname: use include_next
39740         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39741         header.
39742         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39743         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39744         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39745         * modules/sys_times (Depends-on): Add include_next.
39746         (Makefile.am): Substitute additional values.
39747         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39748         * lib/sys_times.in.h (includes): Include native header, if
39749         available.
39750         * lib/sys_utsname.in.h (includes): Likewise.
39751         * tests/test-sys_times.c (main): Enhance test.
39752
39753         fdutimensat: revert prior patch
39754         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39755         utimens.h.
39756         Reported by Bruno Haible.
39757
39758 2009-12-30  Eric Blake  <ebb9@byu.net>
39759
39760         sys_wait: drop link-warning dependency
39761         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39762         link-warning efforts.
39763         * lib/sys_wait.in.h: Likewise.
39764
39765         fdutimensat: remove bogus dependency
39766         * modules/fdutimensat (Depends-on): Drop inline.
39767
39768         unistd: fix typo
39769         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39770
39771 2009-12-30  Bruno Haible  <bruno@clisp.org>
39772
39773         Fix compilation error with Solaris cc.
39774         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39775         * lib/unicase/u16-is-invariant.c: Likewise.
39776         * lib/unicase/u32-is-invariant.c: Likewise.
39777         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39778
39779 2009-12-30  Bruno Haible  <bruno@clisp.org>
39780
39781         Fix test crash.
39782         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39783         locales.
39784         Reported by Simon Josefsson <simon@josefsson.org>.
39785
39786 2009-12-30  Bruno Haible  <bruno@clisp.org>
39787
39788         Fix compilation error on most platforms.
39789         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39790         Reported by Simon Josefsson <simon@josefsson.org>
39791         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39792
39793 2009-12-30  Eric Blake  <ebb9@byu.net>
39794
39795         futimens, utimensat: work around ntfs-3g bug
39796         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39797         a ctime bug is present, and expand workaround to cover ntfs-3g.
39798         * lib/utimens.c (fdutimens, lutimens): Likewise.
39799         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39800         (validate_timespec): Adjust return value.
39801         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39802         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39803         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39804
39805 2009-12-29  Eric Blake  <ebb9@byu.net>
39806
39807         link-warning: make usage consistent
39808         * modules/ctype (Depends-on): Add link-warning.
39809         (Makefile.am): Update rules accordingly.
39810         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39811         * modules/locale (Depends-on, Makefile.am): Likewise.
39812         * modules/sys_file (Makefile.am): Likewise.
39813         * modules/getopt-posix (Makefile.am): Delete unused link warning
39814         efforts.
39815         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39816         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39817         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39818         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39819
39820         stdio: remove unused variables
39821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39823         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39824
39825         tests: test more substitute headers
39826         * modules/ctype-tests: New file.
39827         * modules/dirent-tests: Likewise.
39828         * modules/spawn-tests: Likewise.
39829         * modules/sys_file-tests: Likewise.
39830         * modules/sys_ioctl-tests: Likewise.
39831         * modules/sys_wait-tests: Likewise.
39832         * tests/test-ctype.c: Likewise.
39833         * tests/test-dirent.c: Likewise.
39834         * tests/test-spawn.c: Likewise.
39835         * tests/test-sys_file.c: Likewise.
39836         * tests/test-sys_ioctl.c: Likewise.
39837         * tests/test-sys_wait.c: Likewise.
39838         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39839         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39840         whether or not flock is in use.
39841
39842         tests: remove License section from module
39843         * modules/arpa_inet-tests: Remove unneeded section.
39844         * modules/byteswap-tests: Likewise.
39845         * modules/ceilf-tests: Likewise.
39846         * modules/ceill-tests: Likewise.
39847         * modules/crypto/des-tests: Likewise.
39848         * modules/crypto/gc-arcfour-tests: Likewise.
39849         * modules/crypto/gc-arctwo-tests: Likewise.
39850         * modules/crypto/gc-des-tests: Likewise.
39851         * modules/crypto/gc-hmac-md5-tests: Likewise.
39852         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39853         * modules/crypto/gc-md2-tests: Likewise.
39854         * modules/crypto/gc-md4-tests: Likewise.
39855         * modules/crypto/gc-md5-tests: Likewise.
39856         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39857         * modules/crypto/gc-rijndael-tests: Likewise.
39858         * modules/crypto/gc-sha1-tests: Likewise.
39859         * modules/crypto/gc-tests: Likewise.
39860         * modules/crypto/md2-tests: Likewise.
39861         * modules/crypto/md4-tests: Likewise.
39862         * modules/fcntl-h-tests: Likewise.
39863         * modules/floorf-tests: Likewise.
39864         * modules/floorl-tests: Likewise.
39865         * modules/frexp-nolibm-tests: Likewise.
39866         * modules/frexp-tests: Likewise.
39867         * modules/frexpl-nolibm-tests: Likewise.
39868         * modules/frexpl-tests: Likewise.
39869         * modules/getaddrinfo-tests: Likewise.
39870         * modules/inttypes-tests: Likewise.
39871         * modules/isfinite-tests: Likewise.
39872         * modules/isinf-tests: Likewise.
39873         * modules/ldexpl-tests: Likewise.
39874         * modules/locale-tests: Likewise.
39875         * modules/math-tests: Likewise.
39876         * modules/netdb-tests: Likewise.
39877         * modules/netinet_in-tests: Likewise.
39878         * modules/printf-frexp-tests: Likewise.
39879         * modules/printf-frexpl-tests: Likewise.
39880         * modules/priv-set-tests: Likewise.
39881         * modules/random_r-tests: Likewise.
39882         * modules/round-tests: Likewise.
39883         * modules/roundf-tests: Likewise.
39884         * modules/roundl-tests: Likewise.
39885         * modules/search-tests: Likewise.
39886         * modules/select-tests: Likewise.
39887         * modules/signal-tests: Likewise.
39888         * modules/stdbool-tests: Likewise.
39889         * modules/stddef-tests: Likewise.
39890         * modules/stdint-tests: Likewise.
39891         * modules/stdio-tests: Likewise.
39892         * modules/stdlib-tests: Likewise.
39893         * modules/string-tests: Likewise.
39894         * modules/strings-tests: Likewise.
39895         * modules/sys_select-tests: Likewise.
39896         * modules/sys_socket-tests: Likewise.
39897         * modules/sys_stat-tests: Likewise.
39898         * modules/sys_time-tests: Likewise.
39899         * modules/sys_utsname-tests: Likewise.
39900         * modules/sysexits-tests: Likewise.
39901         * modules/time-tests: Likewise.
39902         * modules/trunc-tests: Likewise.
39903         * modules/truncf-tests: Likewise.
39904         * modules/truncl-tests: Likewise.
39905         * modules/tsearch-tests: Likewise.
39906         * modules/unistd-tests: Likewise.
39907         * modules/wchar-tests: Likewise.
39908         * modules/wctype-tests: Likewise.
39909
39910         tests: fix license on several tests
39911         * tests/test-des.c: Update to GPLv3+.
39912         * tests/test-flock.c: Likewise.
39913         * tests/test-fsync.c: Likewise.
39914         * tests/test-futimens.h: Likewise.
39915         * tests/test-gc-arcfour.c: Likewise.
39916         * tests/test-gc-arctwo.c: Likewise.
39917         * tests/test-gc-des.c: Likewise.
39918         * tests/test-gc-hmac-md5.c: Likewise.
39919         * tests/test-gc-hmac-sha1.c: Likewise.
39920         * tests/test-gc-md2.c: Likewise.
39921         * tests/test-gc-md4.c: Likewise.
39922         * tests/test-gc-md5.c: Likewise.
39923         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39924         * tests/test-gc-rijndael.c: Likewise.
39925         * tests/test-gc-sha1.c: Likewise.
39926         * tests/test-gc.c: Likewise.
39927         * tests/test-getcwd.c: Likewise.
39928         * tests/test-link.c: Likewise.
39929         * tests/test-link.h: Likewise.
39930         * tests/test-lutimens.h: Likewise.
39931         * tests/test-md2.c: Likewise.
39932         * tests/test-md4.c: Likewise.
39933         * tests/test-mkdir.h: Likewise.
39934         * tests/test-rename.c: Likewise.
39935         * tests/test-rename.h: Likewise.
39936         * tests/test-safe-alloc.c: Likewise.
39937         * tests/test-utimens-common.h: Likewise.
39938         * tests/test-utimens.h: Likewise.
39939
39940         maint: sync license texts
39941         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39942         * doc/gpl-3.0.texi: Revert copyright year update.
39943         * doc/lgpl-3.0.texi: Likewise.
39944
39945 2009-12-29  Jim Meyering  <meyering@redhat.com>
39946
39947         update nearly all FSF copyright year lists to include 2009
39948         The files named by the following are exempted:
39949             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39950               test -f "$dst" && { echo "$dst"; continue; }
39951               test -d "$dst" || continue
39952               echo "$dst"/$(basename "$src")
39953             done > exempt
39954             git ls-files tests/unictype >> exempt
39955         In the remaining files, convert to all-interval notation if
39956         - there is already at least one year interval like 2000-2003
39957         - the file is maintained by me
39958         - the file is in lib/uni*/, where that style already prevails
39959         Otherwise, use update-copyright's default.
39960
39961 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39962         and Eric Blake  <ebb9@byu.net>
39963
39964         tests: don't require debug system() to pass
39965         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39966         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39967         * tests/test-unlink.h (test_unlink_func): Likewise.
39968         * tests/test-fstatat.c (main): ...into callers.
39969         * tests/test-lstat.c (main): Likewise.
39970         * tests/test-rmdir.c (main): Likewise.
39971         * tests/test-unlink.c (main): Likewise.
39972         * tests/test-unlinkat.c (main): Likewise.
39973         * tests/test-areadlink-with-size.c (main): Don't require a
39974         debug-only system call to pass, aiding cross-testing to mingw.
39975         * tests/test-areadlink.c (main): Likewise.
39976         * tests/test-areadlinkat-with-size.c (main): Likewise.
39977         * tests/test-areadlinkat.c (main): Likewise.
39978         * tests/test-canonicalize-lgpl.c (main): Likewise.
39979         * tests/test-canonicalize.c (main): Likewise.
39980         * tests/test-chown.c (main): Likewise.
39981         * tests/test-fchownat.c (main): Likewise.
39982         * tests/test-lchown.c (main): Likewise.
39983         * tests/test-fdutimensat.c (main): Likewise.
39984         * tests/test-futimens.c (main): Likewise.
39985         * tests/test-link.c (main): Likewise.
39986         * tests/test-linkat.c (main): Likewise.
39987         * tests/test-mkdir.c (main): Likewise.
39988         * tests/test-mkdirat.c (main): Likewise.
39989         * tests/test-mkfifo.c (main): Likewise.
39990         * tests/test-mkfifoat.c (main): Likewise.
39991         * tests/test-mknod.c (main): Likewise.
39992         * tests/test-readlink.c (main): Likewise.
39993         * tests/test-remove.c (main): Likewise.
39994         * tests/test-rename.c (main): Likewise.
39995         * tests/test-renameat.c (main): Likewise.
39996         * tests/test-symlink.c (main): Likewise.
39997         * tests/test-symlinkat.c (main): Likewise.
39998         * tests/test-utimens.c (main): Likewise.
39999         * tests/test-utimensat.c (main): Likewise.
40000
40001 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40002
40003         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40004         on $(UNUSED_PARAMETER_H) to avoid build failure.
40005
40006 2009-12-28  Jim Meyering  <meyering@redhat.com>
40007
40008         update-copyright: you may specify a max. line length other than 72
40009         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40010
40011         maint: use consistent FSF copyright line syntax
40012         * lib/posixtm.c: Add missing comma in FSF copyright line.
40013         * lib/posixtm.h: Likewise.
40014         * lib/getugroups.c: Add missing ", Inc.".
40015
40016         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40017         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40018         FSF copyright line.  Remove trailing blanks.
40019
40020 2009-12-28  Eric Blake  <ebb9@byu.net>
40021
40022         test-dup2: reduce dependencies
40023         * modules/cloexec (Configure.ac): Set witness.
40024         * modules/dup2-tests (Depends-on): Drop cloexec.
40025         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40026         not present.
40027         Suggested by Bruno Haible.
40028
40029 2009-12-26  Bruno Haible  <bruno@clisp.org>
40030
40031         Remove an unneeded dependency.
40032         * modules/fseterr (Depends-on): Remove dup2.
40033
40034 2009-12-26  Eric Blake  <ebb9@byu.net>
40035
40036         tests: use macros.h in more places
40037         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40038         (ASSERT_STREAM): Provide default of stderr.
40039         * tests/test-dirent-safer.c: Include macros.h, using alternate
40040         stream for assertions.
40041         * tests/test-dup-safer.c: Likewise.
40042         * tests/test-freopen-safer.c: Likewise.
40043         * tests/test-getopt.c: Likewise.
40044         * tests/test-openat-safer.c: Likewise.
40045         * tests/test-pipe.c: Likewise.
40046         * tests/test-popen-safer.c: Likewise.
40047         * modules/dirent-safer-tests (Files): Include macros.h.
40048         * modules/unistd-safer-tests (Files): Likewise.
40049         * modules/freopen-safer-tests (Files): Likewise.
40050         * modules/getopt-posix-tests (Files): Likewise.
40051         * modules/openat-safer-tests (Files): Likewise.
40052         * modules/pipe-tests (Files): Likewise.
40053
40054 2009-12-26  Bruno Haible  <bruno@clisp.org>
40055
40056         javacomp: Portability fix.
40057         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40058         that it also works on Solaris.
40059
40060 2009-12-26  Bruno Haible  <bruno@clisp.org>
40061
40062         localename: Fix storage allocation of gl_locale_name_thread's result.
40063         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40064         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40065         all platforms that have 'uselocale'.
40066         (gl_locale_name_thread_unsafe): New function, extracted from
40067         gl_locale_name_thread.
40068         (gl_locale_name_thread): Call struniq on all platforms that have
40069         'uselocale'.
40070         * tests/test-localename.c (test_locale_name_thread): Check that the
40071         resulting strings are permanently allocated.
40072         * modules/localename-tests (Depends-on): Add strdup.
40073
40074 2009-12-26  Bruno Haible  <bruno@clisp.org>
40075
40076         * tests/test-localename.c (categories): Fill in the strings.
40077
40078 2009-12-26  Jim Meyering  <meyering@redhat.com>
40079
40080         isdir: complete the removal of m4/isdir.m4
40081         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40082
40083         isdir: clean up, since at least grep still uses it
40084         * lib/isdir.c: Include "isdir.h".
40085         (S_ISDIR): Remove now-unneeded definition.
40086         * modules/isdir (Files): Add lib/isdir.h.
40087         * lib/isdir.h: New file, with declaration.
40088         * m4/isdir.m4: Remove file -- unneeded.
40089
40090 2009-12-25  Bruno Haible  <bruno@clisp.org>
40091
40092         selinux-h: Make generated .h files standalone.
40093         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40094         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40095         * lib/se-selinux.in.h: Likewise.
40096         * modules/selinux-h (Depends-on): Add unused-parameter.
40097         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40098         selinux/selinux.h and selinux/context.h.
40099         Suggested by Eric Blake.
40100
40101 2009-12-25  Bruno Haible  <bruno@clisp.org>
40102
40103         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40104         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40105         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40106         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40107         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40108
40109 2009-12-24  Bruno Haible  <bruno@clisp.org>
40110
40111         openat: Fix warning.
40112         * lib/openat-proc.c: Include <unistd.h>.
40113
40114 2009-12-24  Bruno Haible  <bruno@clisp.org>
40115
40116         New module 'unused-parameter'.
40117         * build-aux/unused-parameter.h: New file, extracted from earlier
40118         gnulib-common.m4.
40119         * modules/unused-parameter: New file.
40120         * lib/unistr.h: Include unused-parameter.h.
40121         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40122         _GL_UNUSED.
40123         * modules/unistr/base (Depends-on): Add unused-parameter.
40124
40125 2009-12-24  Bruno Haible  <bruno@clisp.org>
40126
40127         Add missing dependencies to 'extensions' module.
40128         * m4/extensions.m4: Add comment.
40129         * modules/accept4 (Depends-on): Add extensions.
40130         * modules/dup3 (Depends-on): Likewise.
40131         * modules/fcntl (Depends-on): Likewise.
40132         * modules/futimens (Depends-on): Likewise.
40133         * modules/mknod (Depends-on): Likewise.
40134         * modules/pipe2 (Depends-on): Likewise.
40135         * modules/stat-time (Depends-on): Likewise.
40136         * modules/strcasestr-simple (Depends-on): Likewise.
40137         * modules/strsignal (Depends-on): Likewise.
40138         * modules/utimensat (Depends-on): Likewise.
40139         * modules/localcharset (Depends-on): Likewise. Needed because of
40140         gl_FCNTL_O_FLAGS.
40141         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40142         AC_TYPE_MBSTATE_T.
40143         * modules/wcsnrtombs (Depends-on): Likewise.
40144         * modules/wcsrtombs (Depends-on): Likewise.
40145
40146 2009-12-24  Bruno Haible  <bruno@clisp.org>
40147
40148         binary-io: Avoid gcc warning due to SET_BINARY.
40149         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40150         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40151
40152 2009-12-24  Bruno Haible  <bruno@clisp.org>
40153
40154         Avoid future namespace pollution on glibc systems.
40155         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40156         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40157         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40158         glibc systems.
40159
40160 2009-12-24  Bruno Haible  <bruno@clisp.org>
40161
40162         Refactor common macros used in tests.
40163         * tests/macros.h: New file.
40164         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40165         and/or <stdlib.h>, if appropriate.
40166         (ASSERT, SIZEOF): Remove macros.
40167         * tests/test-areadlink-with-size.c: Likewise.
40168         * tests/test-areadlinkat.c: Likewise.
40169         * tests/test-areadlinkat-with-size.c: Likewise.
40170         * tests/test-argmatch.c: Likewise.
40171         * tests/test-argv-iter.c: Likewise.
40172         * tests/test-array-mergesort.c: Likewise.
40173         * tests/test-array_list.c: Likewise.
40174         * tests/test-array_oset.c: Likewise.
40175         * tests/test-avltree_list.c: Likewise.
40176         * tests/test-avltree_oset.c: Likewise.
40177         * tests/test-avltreehash_list.c: Likewise.
40178         * tests/test-base64.c: Likewise.
40179         * tests/test-binary-io.c: Likewise.
40180         * tests/test-bitrotate.c: Likewise.
40181         * tests/test-btowc.c: Likewise.
40182         * tests/test-byteswap.c: Likewise.
40183         * tests/test-c-ctype.c: Likewise.
40184         * tests/test-c-stack.c: Likewise.
40185         * tests/test-c-strcasecmp.c: Likewise.
40186         * tests/test-c-strcasestr.c: Likewise.
40187         * tests/test-c-strncasecmp.c: Likewise.
40188         * tests/test-c-strstr.c: Likewise.
40189         * tests/test-canonicalize-lgpl.c: Likewise.
40190         * tests/test-canonicalize.c: Likewise.
40191         * tests/test-carray_list.c: Likewise.
40192         * tests/test-ceilf1.c: Likewise.
40193         * tests/test-ceilf2.c: Likewise.
40194         * tests/test-ceill.c: Likewise.
40195         * tests/test-chown.c: Likewise.
40196         * tests/test-cloexec.c: Likewise.
40197         * tests/test-copy-acl.c: Likewise.
40198         * tests/test-copy-file.c: Likewise.
40199         * tests/test-count-one-bits.c: Likewise.
40200         * tests/test-dprintf-posix.c: Likewise.
40201         * tests/test-dup2.c: Likewise.
40202         * tests/test-dup3.c: Likewise.
40203         * tests/test-duplocale.c: Likewise.
40204         * tests/test-fbufmode.c: Likewise.
40205         * tests/test-fchdir.c: Likewise.
40206         * tests/test-fchownat.c: Likewise.
40207         * tests/test-fcntl-safer.c: Likewise.
40208         * tests/test-fcntl.c: Likewise.
40209         * tests/test-fdopendir.c: Likewise.
40210         * tests/test-fdutimensat.c: Likewise.
40211         * tests/test-fflush2.c: Likewise.
40212         * tests/test-file-has-acl.c: Likewise.
40213         * tests/test-filevercmp.c: Likewise.
40214         * tests/test-flock.c: Likewise.
40215         * tests/test-floorf1.c: Likewise.
40216         * tests/test-floorf2.c: Likewise.
40217         * tests/test-floorl.c: Likewise.
40218         * tests/test-fnmatch.c: Likewise.
40219         * tests/test-fopen.h: Likewise.
40220         * tests/test-fpending.c: Likewise.
40221         * tests/test-fprintf-posix.c: Likewise.
40222         * tests/test-fpurge.c: Likewise.
40223         * tests/test-freadable.c: Likewise.
40224         * tests/test-freadahead.c: Likewise.
40225         * tests/test-freading.c: Likewise.
40226         * tests/test-freadptr.c: Likewise.
40227         * tests/test-freadptr2.c: Likewise.
40228         * tests/test-freadseek.c: Likewise.
40229         * tests/test-freopen.c: Likewise.
40230         * tests/test-frexp.c: Likewise.
40231         * tests/test-frexpl.c: Likewise.
40232         * tests/test-fseek.c: Likewise.
40233         * tests/test-fseeko.c: Likewise.
40234         * tests/test-fstatat.c: Likewise.
40235         * tests/test-fstrcmp.c: Likewise.
40236         * tests/test-fsync.c: Likewise.
40237         * tests/test-ftell.c: Likewise.
40238         * tests/test-ftello.c: Likewise.
40239         * tests/test-func.c: Likewise.
40240         * tests/test-futimens.c: Likewise.
40241         * tests/test-fwritable.c: Likewise.
40242         * tests/test-fwriting.c: Likewise.
40243         * tests/test-getcwd.c: Likewise.
40244         * tests/test-getdate.c: Likewise.
40245         * tests/test-getdelim.c: Likewise.
40246         * tests/test-getdtablesize.c: Likewise.
40247         * tests/test-getgroups.c: Likewise.
40248         * tests/test-getline.c: Likewise.
40249         * tests/test-getndelim2.c: Likewise.
40250         * tests/test-glob.c: Likewise.
40251         * tests/test-hash.c: Likewise.
40252         * tests/test-i-ring.c: Likewise.
40253         * tests/test-iconv-utf.c: Likewise.
40254         * tests/test-iconv.c: Likewise.
40255         * tests/test-idpriv-drop.c: Likewise.
40256         * tests/test-idpriv-droptemp.c: Likewise.
40257         * tests/test-inet_ntop.c: Likewise.
40258         * tests/test-inet_pton.c: Likewise.
40259         * tests/test-isblank.c: Likewise.
40260         * tests/test-isfinite.c: Likewise.
40261         * tests/test-isinf.c: Likewise.
40262         * tests/test-isnan.c: Likewise.
40263         * tests/test-isnand.h: Likewise.
40264         * tests/test-isnanf.h: Likewise.
40265         * tests/test-isnanl.h: Likewise.
40266         * tests/test-lchown.c: Likewise.
40267         * tests/test-ldexpl.c: Likewise.
40268         * tests/test-link.c: Likewise.
40269         * tests/test-linkat.c: Likewise.
40270         * tests/test-linked_list.c: Likewise.
40271         * tests/test-linkedhash_list.c: Likewise.
40272         * tests/test-localename.c: Likewise.
40273         * tests/test-lseek.c: Likewise.
40274         * tests/test-lstat.c: Likewise.
40275         * tests/test-mbmemcasecmp.c: Likewise.
40276         * tests/test-mbmemcasecoll.c: Likewise.
40277         * tests/test-mbrtowc.c: Likewise.
40278         * tests/test-mbscasecmp.c: Likewise.
40279         * tests/test-mbscasestr1.c: Likewise.
40280         * tests/test-mbscasestr2.c: Likewise.
40281         * tests/test-mbscasestr3.c: Likewise.
40282         * tests/test-mbscasestr4.c: Likewise.
40283         * tests/test-mbschr.c: Likewise.
40284         * tests/test-mbscspn.c: Likewise.
40285         * tests/test-mbsinit.c: Likewise.
40286         * tests/test-mbsncasecmp.c: Likewise.
40287         * tests/test-mbsnrtowcs.c: Likewise.
40288         * tests/test-mbspbrk.c: Likewise.
40289         * tests/test-mbspcasecmp.c: Likewise.
40290         * tests/test-mbsrchr.c: Likewise.
40291         * tests/test-mbsrtowcs.c: Likewise.
40292         * tests/test-mbsspn.c: Likewise.
40293         * tests/test-mbsstr1.c: Likewise.
40294         * tests/test-mbsstr2.c: Likewise.
40295         * tests/test-mbsstr3.c: Likewise.
40296         * tests/test-memchr.c: Likewise.
40297         * tests/test-memchr2.c: Likewise.
40298         * tests/test-memcmp.c: Likewise.
40299         * tests/test-memmem.c: Likewise.
40300         * tests/test-memrchr.c: Likewise.
40301         * tests/test-mkdir.c: Likewise.
40302         * tests/test-mkdirat.c: Likewise.
40303         * tests/test-mkfifo.c: Likewise.
40304         * tests/test-mkfifoat.c: Likewise.
40305         * tests/test-mknod.c: Likewise.
40306         * tests/test-nanosleep.c: Likewise.
40307         * tests/test-nl_langinfo.c: Likewise.
40308         * tests/test-obstack-printf.c: Likewise.
40309         * tests/test-open.c: Likewise.
40310         * tests/test-openat.c: Likewise.
40311         * tests/test-pipe-filter-gi1.c: Likewise.
40312         * tests/test-pipe-filter-gi2-main.c: Likewise.
40313         * tests/test-pipe-filter-ii1.c: Likewise.
40314         * tests/test-pipe-filter-ii2-main.c: Likewise.
40315         * tests/test-pipe2.c: Likewise.
40316         * tests/test-popen.h: Likewise.
40317         * tests/test-posixtm.c: Likewise.
40318         * tests/test-pread.c: Likewise.
40319         * tests/test-printf-frexp.c: Likewise.
40320         * tests/test-printf-frexpl.c: Likewise.
40321         * tests/test-printf-posix.c: Likewise.
40322         * tests/test-priv-set.c: Likewise.
40323         * tests/test-quotearg.c: Likewise.
40324         * tests/test-random_r.c: Likewise.
40325         * tests/test-rawmemchr.c: Likewise.
40326         * tests/test-rbtree_list.c: Likewise.
40327         * tests/test-rbtree_oset.c: Likewise.
40328         * tests/test-rbtreehash_list.c: Likewise.
40329         * tests/test-readlink.c: Likewise.
40330         * tests/test-remove.c: Likewise.
40331         * tests/test-rename.c: Likewise.
40332         * tests/test-renameat.c: Likewise.
40333         * tests/test-rmdir.c: Likewise.
40334         * tests/test-round1.c: Likewise.
40335         * tests/test-roundf1.c: Likewise.
40336         * tests/test-roundl.c: Likewise.
40337         * tests/test-safe-alloc.c: Likewise.
40338         * tests/test-sameacls.c: Likewise.
40339         * tests/test-set-mode-acl.c: Likewise.
40340         * tests/test-setenv.c: Likewise.
40341         * tests/test-sigaction.c: Likewise.
40342         * tests/test-signbit.c: Likewise.
40343         * tests/test-sleep.c: Likewise.
40344         * tests/test-snprintf-posix.c: Likewise.
40345         * tests/test-snprintf.c: Likewise.
40346         * tests/test-sprintf-posix.c: Likewise.
40347         * tests/test-stat-time.c: Likewise.
40348         * tests/test-stat.c: Likewise.
40349         * tests/test-strcasestr.c: Likewise.
40350         * tests/test-strchrnul.c: Likewise.
40351         * tests/test-strerror.c: Likewise.
40352         * tests/test-striconv.c: Likewise.
40353         * tests/test-striconveh.c: Likewise.
40354         * tests/test-striconveha.c: Likewise.
40355         * tests/test-strsignal.c: Likewise.
40356         * tests/test-strstr.c: Likewise.
40357         * tests/test-strtod.c: Likewise.
40358         * tests/test-strverscmp.c: Likewise.
40359         * tests/test-symlink.c: Likewise.
40360         * tests/test-symlinkat.c: Likewise.
40361         * tests/test-trunc1.c: Likewise.
40362         * tests/test-trunc2.c: Likewise.
40363         * tests/test-truncf1.c: Likewise.
40364         * tests/test-truncf2.c: Likewise.
40365         * tests/test-truncl.c: Likewise.
40366         * tests/test-uname.c: Likewise.
40367         * tests/test-unlink.c: Likewise.
40368         * tests/test-unlinkat.c: Likewise.
40369         * tests/test-unsetenv.c: Likewise.
40370         * tests/test-usleep.c: Likewise.
40371         * tests/test-utimens.c: Likewise.
40372         * tests/test-utimensat.c: Likewise.
40373         * tests/test-vasnprintf-posix.c: Likewise.
40374         * tests/test-vasnprintf-posix2.c: Likewise.
40375         * tests/test-vasnprintf.c: Likewise.
40376         * tests/test-vasprintf-posix.c: Likewise.
40377         * tests/test-vasprintf.c: Likewise.
40378         * tests/test-vdprintf-posix.c: Likewise.
40379         * tests/test-vfprintf-posix.c: Likewise.
40380         * tests/test-vprintf-posix.c: Likewise.
40381         * tests/test-vsnprintf-posix.c: Likewise.
40382         * tests/test-vsnprintf.c: Likewise.
40383         * tests/test-vsprintf-posix.c: Likewise.
40384         * tests/test-wcrtomb.c: Likewise.
40385         * tests/test-wcsnrtombs.c: Likewise.
40386         * tests/test-wcsrtombs.c: Likewise.
40387         * tests/test-wctype.c: Likewise.
40388         * tests/test-wcwidth.c: Likewise.
40389         * tests/test-xfprintf-posix.c: Likewise.
40390         * tests/test-xmemdup0.c: Likewise.
40391         * tests/test-xprintf-posix.c: Likewise.
40392         * tests/test-xvasprintf.c: Likewise.
40393         * tests/unicase/test-locale-language.c: Likewise.
40394         * tests/unicase/test-mapping-part1.h: Likewise.
40395         * tests/unicase/test-predicate-part1.h: Likewise.
40396         * tests/unicase/test-u8-casecmp.c: Likewise.
40397         * tests/unicase/test-u8-casecoll.c: Likewise.
40398         * tests/unicase/test-u8-casefold.c: Likewise.
40399         * tests/unicase/test-u8-is-cased.c: Likewise.
40400         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40401         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40402         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40403         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40404         * tests/unicase/test-u8-tolower.c: Likewise.
40405         * tests/unicase/test-u8-totitle.c: Likewise.
40406         * tests/unicase/test-u8-toupper.c: Likewise.
40407         * tests/unicase/test-u16-casecmp.c: Likewise.
40408         * tests/unicase/test-u16-casecoll.c: Likewise.
40409         * tests/unicase/test-u16-casefold.c: Likewise.
40410         * tests/unicase/test-u16-is-cased.c: Likewise.
40411         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40412         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40413         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40414         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40415         * tests/unicase/test-u16-tolower.c: Likewise.
40416         * tests/unicase/test-u16-totitle.c: Likewise.
40417         * tests/unicase/test-u16-toupper.c: Likewise.
40418         * tests/unicase/test-u32-casecmp.c: Likewise.
40419         * tests/unicase/test-u32-casecoll.c: Likewise.
40420         * tests/unicase/test-u32-casefold.c: Likewise.
40421         * tests/unicase/test-u32-is-cased.c: Likewise.
40422         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40423         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40424         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40425         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40426         * tests/unicase/test-u32-tolower.c: Likewise.
40427         * tests/unicase/test-u32-totitle.c: Likewise.
40428         * tests/unicase/test-u32-toupper.c: Likewise.
40429         * tests/unicase/test-ulc-casecmp.c: Likewise.
40430         * tests/unicase/test-ulc-casecoll.c: Likewise.
40431         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40432         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40433         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40434         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40435         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40436         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40437         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40438         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40439         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40440         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40441         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40442         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40443         * tests/unictype/test-bidi_byname.c: Likewise.
40444         * tests/unictype/test-bidi_name.c: Likewise.
40445         * tests/unictype/test-bidi_of.c: Likewise.
40446         * tests/unictype/test-bidi_test.c: Likewise.
40447         * tests/unictype/test-block_list.c: Likewise.
40448         * tests/unictype/test-block_of.c: Likewise.
40449         * tests/unictype/test-block_test.c: Likewise.
40450         * tests/unictype/test-categ_and.c: Likewise.
40451         * tests/unictype/test-categ_and_not.c: Likewise.
40452         * tests/unictype/test-categ_byname.c: Likewise.
40453         * tests/unictype/test-categ_name.c: Likewise.
40454         * tests/unictype/test-categ_none.c: Likewise.
40455         * tests/unictype/test-categ_of.c: Likewise.
40456         * tests/unictype/test-categ_or.c: Likewise.
40457         * tests/unictype/test-categ_test_withtable.c: Likewise.
40458         * tests/unictype/test-combining.c: Likewise.
40459         * tests/unictype/test-decdigit.c: Likewise.
40460         * tests/unictype/test-digit.c: Likewise.
40461         * tests/unictype/test-mirror.c: Likewise.
40462         * tests/unictype/test-numeric.c: Likewise.
40463         * tests/unictype/test-pr_byname.c: Likewise.
40464         * tests/unictype/test-pr_test.c: Likewise.
40465         * tests/unictype/test-predicate-part1.h: Likewise.
40466         * tests/unictype/test-scripts.c: Likewise.
40467         * tests/unictype/test-sy_c_ident.c: Likewise.
40468         * tests/unictype/test-sy_java_ident.c: Likewise.
40469         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40470         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40471         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40472         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40473         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40474         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40475         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40476         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40477         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40478         * tests/uninorm/test-compat-decomposition.c: Likewise.
40479         * tests/uninorm/test-composition.c: Likewise.
40480         * tests/uninorm/test-decomposing-form.c: Likewise.
40481         * tests/uninorm/test-decomposition.c: Likewise.
40482         * tests/uninorm/test-u8-nfc.c: Likewise.
40483         * tests/uninorm/test-u8-nfd.c: Likewise.
40484         * tests/uninorm/test-u8-nfkc.c: Likewise.
40485         * tests/uninorm/test-u8-nfkd.c: Likewise.
40486         * tests/uninorm/test-u8-normcmp.c: Likewise.
40487         * tests/uninorm/test-u8-normcoll.c: Likewise.
40488         * tests/uninorm/test-u16-nfc.c: Likewise.
40489         * tests/uninorm/test-u16-nfd.c: Likewise.
40490         * tests/uninorm/test-u16-nfkc.c: Likewise.
40491         * tests/uninorm/test-u16-nfkd.c: Likewise.
40492         * tests/uninorm/test-u16-normcmp.c: Likewise.
40493         * tests/uninorm/test-u16-normcoll.c: Likewise.
40494         * tests/uninorm/test-u32-nfc.c: Likewise.
40495         * tests/uninorm/test-u32-nfd.c: Likewise.
40496         * tests/uninorm/test-u32-nfkc.c: Likewise.
40497         * tests/uninorm/test-u32-nfkd.c: Likewise.
40498         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40499         * tests/uninorm/test-u32-normcmp.c: Likewise.
40500         * tests/uninorm/test-u32-normcoll.c: Likewise.
40501         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40502         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40503         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40504         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40505         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40506         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40507         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40508         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40509         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40510         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40511         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40512         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40513         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40514         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40515         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40516         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40517         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40518         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40519         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40520         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40521         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40522         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40523         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40524         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40525         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40526         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40527         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40528         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40529         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40530         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40531         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40532         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40533         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40534         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40535         * tests/uniwidth/test-u8-width.c: Likewise.
40536         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40537         * tests/uniwidth/test-u16-width.c: Likewise.
40538         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40539         * tests/uniwidth/test-u32-width.c: Likewise.
40540         * tests/uniwidth/test-uc_width.c: Likewise.
40541         * tests/uniwidth/test-uc_width2.c: Likewise.
40542         * modules/acl-tests (Files): Add tests/macros.h.
40543         * modules/areadlink-tests (Files): Likewise.
40544         * modules/areadlink-with-size-tests (Files): Likewise.
40545         * modules/areadlinkat-tests (Files): Likewise.
40546         * modules/areadlinkat-with-size-tests (Files): Likewise.
40547         * modules/argmatch-tests (Files): Likewise.
40548         * modules/argv-iter-tests (Files): Likewise.
40549         * modules/array-list-tests (Files): Likewise.
40550         * modules/array-mergesort-tests (Files): Likewise.
40551         * modules/array-oset-tests (Files): Likewise.
40552         * modules/avltree-list-tests (Files): Likewise.
40553         * modules/avltree-oset-tests (Files): Likewise.
40554         * modules/avltreehash-list-tests (Files): Likewise.
40555         * modules/base64-tests (Files): Likewise.
40556         * modules/binary-io-tests (Files): Likewise.
40557         * modules/bitrotate-tests (Files): Likewise.
40558         * modules/btowc-tests (Files): Likewise.
40559         * modules/byteswap-tests (Files): Likewise.
40560         * modules/c-ctype-tests (Files): Likewise.
40561         * modules/c-stack-tests (Files): Likewise.
40562         * modules/c-strcase-tests (Files): Likewise.
40563         * modules/c-strcasestr-tests (Files): Likewise.
40564         * modules/c-strstr-tests (Files): Likewise.
40565         * modules/canonicalize-lgpl-tests (Files): Likewise.
40566         * modules/canonicalize-tests (Files): Likewise.
40567         * modules/carray-list-tests (Files): Likewise.
40568         * modules/ceilf-tests (Files): Likewise.
40569         * modules/ceill-tests (Files): Likewise.
40570         * modules/chown-tests (Files): Likewise.
40571         * modules/cloexec-tests (Files): Likewise.
40572         * modules/copy-file-tests (Files): Likewise.
40573         * modules/count-one-bits-tests (Files): Likewise.
40574         * modules/dprintf-posix-tests (Files): Likewise.
40575         * modules/dup2-tests (Files): Likewise.
40576         * modules/dup3-tests (Files): Likewise.
40577         * modules/duplocale-tests (Files): Likewise.
40578         * modules/fbufmode-tests (Files): Likewise.
40579         * modules/fchdir-tests (Files): Likewise.
40580         * modules/fcntl-safer-tests (Files): Likewise.
40581         * modules/fcntl-tests (Files): Likewise.
40582         * modules/fdopendir-tests (Files): Likewise.
40583         * modules/fdutimensat-tests (Files): Likewise.
40584         * modules/fflush-tests (Files): Likewise.
40585         * modules/filevercmp-tests (Files): Likewise.
40586         * modules/flock-tests (Files): Likewise.
40587         * modules/floorf-tests (Files): Likewise.
40588         * modules/floorl-tests (Files): Likewise.
40589         * modules/fnmatch-tests (Files): Likewise.
40590         * modules/fopen-safer-tests (Files): Likewise.
40591         * modules/fopen-tests (Files): Likewise.
40592         * modules/fpending-tests (Files): Likewise.
40593         * modules/fprintf-posix-tests (Files): Likewise.
40594         * modules/fpurge-tests (Files): Likewise.
40595         * modules/freadable-tests (Files): Likewise.
40596         * modules/freadahead-tests (Files): Likewise.
40597         * modules/freading-tests (Files): Likewise.
40598         * modules/freadptr-tests (Files): Likewise.
40599         * modules/freadseek-tests (Files): Likewise.
40600         * modules/freopen-tests (Files): Likewise.
40601         * modules/frexp-nolibm-tests (Files): Likewise.
40602         * modules/frexp-tests (Files): Likewise.
40603         * modules/frexpl-nolibm-tests (Files): Likewise.
40604         * modules/frexpl-tests (Files): Likewise.
40605         * modules/fseek-tests (Files): Likewise.
40606         * modules/fseeko-tests (Files): Likewise.
40607         * modules/fstrcmp-tests (Files): Likewise.
40608         * modules/fsync-tests (Files): Likewise.
40609         * modules/ftell-tests (Files): Likewise.
40610         * modules/ftello-tests (Files): Likewise.
40611         * modules/func-tests (Files): Likewise.
40612         * modules/futimens-tests (Files): Likewise.
40613         * modules/fwritable-tests (Files): Likewise.
40614         * modules/fwriting-tests (Files): Likewise.
40615         * modules/getcwd-tests (Files): Likewise.
40616         * modules/getdate-tests (Files): Likewise.
40617         * modules/getdelim-tests (Files): Likewise.
40618         * modules/getdtablesize-tests (Files): Likewise.
40619         * modules/getgroups-tests (Files): Likewise.
40620         * modules/getline-tests (Files): Likewise.
40621         * modules/getndelim2-tests (Files): Likewise.
40622         * modules/glob-tests (Files): Likewise.
40623         * modules/hash-tests (Files): Likewise.
40624         * modules/i-ring-tests (Files): Likewise.
40625         * modules/iconv-tests (Files): Likewise.
40626         * modules/iconv_open-utf-tests (Files): Likewise.
40627         * modules/idpriv-drop-tests (Files): Likewise.
40628         * modules/idpriv-droptemp-tests (Files): Likewise.
40629         * modules/inet_ntop-tests (Files): Likewise.
40630         * modules/inet_pton-tests (Files): Likewise.
40631         * modules/isblank-tests (Files): Likewise.
40632         * modules/isfinite-tests (Files): Likewise.
40633         * modules/isinf-tests (Files): Likewise.
40634         * modules/isnan-tests (Files): Likewise.
40635         * modules/isnand-nolibm-tests (Files): Likewise.
40636         * modules/isnand-tests (Files): Likewise.
40637         * modules/isnanf-nolibm-tests (Files): Likewise.
40638         * modules/isnanf-tests (Files): Likewise.
40639         * modules/isnanl-nolibm-tests (Files): Likewise.
40640         * modules/isnanl-tests (Files): Likewise.
40641         * modules/lchown-tests (Files): Likewise.
40642         * modules/ldexpl-tests (Files): Likewise.
40643         * modules/link-tests (Files): Likewise.
40644         * modules/linkat-tests (Files): Likewise.
40645         * modules/linked-list-tests (Files): Likewise.
40646         * modules/linkedhash-list-tests (Files): Likewise.
40647         * modules/localename-tests (Files): Likewise.
40648         * modules/lseek-tests (Files): Likewise.
40649         * modules/lstat-tests (Files): Likewise.
40650         * modules/mbmemcasecmp-tests (Files): Likewise.
40651         * modules/mbmemcasecoll-tests (Files): Likewise.
40652         * modules/mbrtowc-tests (Files): Likewise.
40653         * modules/mbscasecmp-tests (Files): Likewise.
40654         * modules/mbscasestr-tests (Files): Likewise.
40655         * modules/mbschr-tests (Files): Likewise.
40656         * modules/mbscspn-tests (Files): Likewise.
40657         * modules/mbsinit-tests (Files): Likewise.
40658         * modules/mbsncasecmp-tests (Files): Likewise.
40659         * modules/mbsnrtowcs-tests (Files): Likewise.
40660         * modules/mbspbrk-tests (Files): Likewise.
40661         * modules/mbspcasecmp-tests (Files): Likewise.
40662         * modules/mbsrchr-tests (Files): Likewise.
40663         * modules/mbsrtowcs-tests (Files): Likewise.
40664         * modules/mbsspn-tests (Files): Likewise.
40665         * modules/mbsstr-tests (Files): Likewise.
40666         * modules/memchr-tests (Files): Likewise.
40667         * modules/memchr2-tests (Files): Likewise.
40668         * modules/memcmp-tests (Files): Likewise.
40669         * modules/memmem-tests (Files): Likewise.
40670         * modules/memrchr-tests (Files): Likewise.
40671         * modules/mkdir-tests (Files): Likewise.
40672         * modules/mkfifo-tests (Files): Likewise.
40673         * modules/mkfifoat-tests (Files): Likewise.
40674         * modules/mknod-tests (Files): Likewise.
40675         * modules/nanosleep-tests (Files): Likewise.
40676         * modules/nl_langinfo-tests (Files): Likewise.
40677         * modules/obstack-printf-tests (Files): Likewise.
40678         * modules/open-tests (Files): Likewise.
40679         * modules/openat-tests (Files): Likewise.
40680         * modules/pipe-filter-gi-tests (Files): Likewise.
40681         * modules/pipe-filter-ii-tests (Files): Likewise.
40682         * modules/pipe2-tests (Files): Likewise.
40683         * modules/popen-safer-tests (Files): Likewise.
40684         * modules/popen-tests (Files): Likewise.
40685         * modules/posixtm-tests (Files): Likewise.
40686         * modules/pread-tests (Files): Likewise.
40687         * modules/printf-frexp-tests (Files): Likewise.
40688         * modules/printf-frexpl-tests (Files): Likewise.
40689         * modules/printf-posix-tests (Files): Likewise.
40690         * modules/priv-set-tests (Files): Likewise.
40691         * modules/quotearg-tests (Files): Likewise.
40692         * modules/random_r-tests (Files): Likewise.
40693         * modules/rawmemchr-tests (Files): Likewise.
40694         * modules/rbtree-list-tests (Files): Likewise.
40695         * modules/rbtree-oset-tests (Files): Likewise.
40696         * modules/rbtreehash-list-tests (Files): Likewise.
40697         * modules/readlink-tests (Files): Likewise.
40698         * modules/remove-tests (Files): Likewise.
40699         * modules/rename-tests (Files): Likewise.
40700         * modules/renameat-tests (Files): Likewise.
40701         * modules/rmdir-tests (Files): Likewise.
40702         * modules/round-tests (Files): Likewise.
40703         * modules/roundf-tests (Files): Likewise.
40704         * modules/roundl-tests (Files): Likewise.
40705         * modules/safe-alloc-tests (Files): Likewise.
40706         * modules/setenv-tests (Files): Likewise.
40707         * modules/sigaction-tests (Files): Likewise.
40708         * modules/signbit-tests (Files): Likewise.
40709         * modules/sleep-tests (Files): Likewise.
40710         * modules/snprintf-posix-tests (Files): Likewise.
40711         * modules/snprintf-tests (Files): Likewise.
40712         * modules/sprintf-posix-tests (Files): Likewise.
40713         * modules/stat-tests (Files): Likewise.
40714         * modules/stat-time-tests (Files): Likewise.
40715         * modules/strcasestr-tests (Files): Likewise.
40716         * modules/strchrnul-tests (Files): Likewise.
40717         * modules/strerror-tests (Files): Likewise.
40718         * modules/striconv-tests (Files): Likewise.
40719         * modules/striconveh-tests (Files): Likewise.
40720         * modules/striconveha-tests (Files): Likewise.
40721         * modules/strsignal-tests (Files): Likewise.
40722         * modules/strstr-tests (Files): Likewise.
40723         * modules/strtod-tests (Files): Likewise.
40724         * modules/strverscmp-tests (Files): Likewise.
40725         * modules/symlink-tests (Files): Likewise.
40726         * modules/symlinkat-tests (Files): Likewise.
40727         * modules/trunc-tests (Files): Likewise.
40728         * modules/truncf-tests (Files): Likewise.
40729         * modules/truncl-tests (Files): Likewise.
40730         * modules/uname-tests (Files): Likewise.
40731         * modules/unicase/cased-tests (Files): Likewise.
40732         * modules/unicase/ignorable-tests (Files): Likewise.
40733         * modules/unicase/locale-language-tests (Files): Likewise.
40734         * modules/unicase/tolower-tests (Files): Likewise.
40735         * modules/unicase/totitle-tests (Files): Likewise.
40736         * modules/unicase/toupper-tests (Files): Likewise.
40737         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40738         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40739         * modules/unicase/u8-casefold-tests (Files): Likewise.
40740         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40741         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40742         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40743         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40744         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40745         * modules/unicase/u8-tolower-tests (Files): Likewise.
40746         * modules/unicase/u8-totitle-tests (Files): Likewise.
40747         * modules/unicase/u8-toupper-tests (Files): Likewise.
40748         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40749         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40750         * modules/unicase/u16-casefold-tests (Files): Likewise.
40751         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40752         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40753         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40754         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40755         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40756         * modules/unicase/u16-tolower-tests (Files): Likewise.
40757         * modules/unicase/u16-totitle-tests (Files): Likewise.
40758         * modules/unicase/u16-toupper-tests (Files): Likewise.
40759         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40760         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40761         * modules/unicase/u32-casefold-tests (Files): Likewise.
40762         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40763         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40764         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40765         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40766         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40767         * modules/unicase/u32-tolower-tests (Files): Likewise.
40768         * modules/unicase/u32-totitle-tests (Files): Likewise.
40769         * modules/unicase/u32-toupper-tests (Files): Likewise.
40770         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40771         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40772         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40773         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40774         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40775         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40776         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40777         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40778         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40779         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40780         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40781         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40782         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40783         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40784         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40785         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40786         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40787         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40788         * modules/unictype/block-list-tests (Files): Likewise.
40789         * modules/unictype/block-of-tests (Files): Likewise.
40790         * modules/unictype/block-test-tests (Files): Likewise.
40791         * modules/unictype/category-C-tests (Files): Likewise.
40792         * modules/unictype/category-Cc-tests (Files): Likewise.
40793         * modules/unictype/category-Cf-tests (Files): Likewise.
40794         * modules/unictype/category-Cn-tests (Files): Likewise.
40795         * modules/unictype/category-Co-tests (Files): Likewise.
40796         * modules/unictype/category-Cs-tests (Files): Likewise.
40797         * modules/unictype/category-L-tests (Files): Likewise.
40798         * modules/unictype/category-Ll-tests (Files): Likewise.
40799         * modules/unictype/category-Lm-tests (Files): Likewise.
40800         * modules/unictype/category-Lo-tests (Files): Likewise.
40801         * modules/unictype/category-Lt-tests (Files): Likewise.
40802         * modules/unictype/category-Lu-tests (Files): Likewise.
40803         * modules/unictype/category-M-tests (Files): Likewise.
40804         * modules/unictype/category-Mc-tests (Files): Likewise.
40805         * modules/unictype/category-Me-tests (Files): Likewise.
40806         * modules/unictype/category-Mn-tests (Files): Likewise.
40807         * modules/unictype/category-N-tests (Files): Likewise.
40808         * modules/unictype/category-Nd-tests (Files): Likewise.
40809         * modules/unictype/category-Nl-tests (Files): Likewise.
40810         * modules/unictype/category-No-tests (Files): Likewise.
40811         * modules/unictype/category-P-tests (Files): Likewise.
40812         * modules/unictype/category-Pc-tests (Files): Likewise.
40813         * modules/unictype/category-Pd-tests (Files): Likewise.
40814         * modules/unictype/category-Pe-tests (Files): Likewise.
40815         * modules/unictype/category-Pf-tests (Files): Likewise.
40816         * modules/unictype/category-Pi-tests (Files): Likewise.
40817         * modules/unictype/category-Po-tests (Files): Likewise.
40818         * modules/unictype/category-Ps-tests (Files): Likewise.
40819         * modules/unictype/category-S-tests (Files): Likewise.
40820         * modules/unictype/category-Sc-tests (Files): Likewise.
40821         * modules/unictype/category-Sk-tests (Files): Likewise.
40822         * modules/unictype/category-Sm-tests (Files): Likewise.
40823         * modules/unictype/category-So-tests (Files): Likewise.
40824         * modules/unictype/category-Z-tests (Files): Likewise.
40825         * modules/unictype/category-Zl-tests (Files): Likewise.
40826         * modules/unictype/category-Zp-tests (Files): Likewise.
40827         * modules/unictype/category-Zs-tests (Files): Likewise.
40828         * modules/unictype/category-and-not-tests (Files): Likewise.
40829         * modules/unictype/category-and-tests (Files): Likewise.
40830         * modules/unictype/category-byname-tests (Files): Likewise.
40831         * modules/unictype/category-name-tests (Files): Likewise.
40832         * modules/unictype/category-none-tests (Files): Likewise.
40833         * modules/unictype/category-of-tests (Files): Likewise.
40834         * modules/unictype/category-or-tests (Files): Likewise.
40835         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40836         * modules/unictype/combining-class-tests (Files): Likewise.
40837         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40838         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40839         * modules/unictype/ctype-blank-tests (Files): Likewise.
40840         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40841         * modules/unictype/ctype-digit-tests (Files): Likewise.
40842         * modules/unictype/ctype-graph-tests (Files): Likewise.
40843         * modules/unictype/ctype-lower-tests (Files): Likewise.
40844         * modules/unictype/ctype-print-tests (Files): Likewise.
40845         * modules/unictype/ctype-punct-tests (Files): Likewise.
40846         * modules/unictype/ctype-space-tests (Files): Likewise.
40847         * modules/unictype/ctype-upper-tests (Files): Likewise.
40848         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40849         * modules/unictype/decimal-digit-tests (Files): Likewise.
40850         * modules/unictype/digit-tests (Files): Likewise.
40851         * modules/unictype/mirror-tests (Files): Likewise.
40852         * modules/unictype/numeric-tests (Files): Likewise.
40853         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40854         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40855         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40856         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40857         Likewise.
40858         * modules/unictype/property-bidi-block-separator-tests (Files):
40859         Likewise.
40860         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40861         Likewise.
40862         * modules/unictype/property-bidi-common-separator-tests (Files):
40863         Likewise.
40864         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40865         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40866         Likewise.
40867         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40868         Likewise.
40869         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40870         Likewise.
40871         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40872         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40873         Likewise.
40874         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40875         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40876         Likewise.
40877         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40878         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40879         * modules/unictype/property-bidi-segment-separator-tests (Files):
40880         Likewise.
40881         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40882         * modules/unictype/property-byname-tests (Files): Likewise.
40883         * modules/unictype/property-combining-tests (Files): Likewise.
40884         * modules/unictype/property-composite-tests (Files): Likewise.
40885         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40886         * modules/unictype/property-dash-tests (Files): Likewise.
40887         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40888         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40889         Likewise.
40890         * modules/unictype/property-deprecated-tests (Files): Likewise.
40891         * modules/unictype/property-diacritic-tests (Files): Likewise.
40892         * modules/unictype/property-extender-tests (Files): Likewise.
40893         * modules/unictype/property-format-control-tests (Files): Likewise.
40894         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40895         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40896         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40897         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40898         * modules/unictype/property-hyphen-tests (Files): Likewise.
40899         * modules/unictype/property-id-continue-tests (Files): Likewise.
40900         * modules/unictype/property-id-start-tests (Files): Likewise.
40901         * modules/unictype/property-ideographic-tests (Files): Likewise.
40902         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40903         * modules/unictype/property-ids-trinary-operator-tests (Files):
40904         Likewise.
40905         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40906         * modules/unictype/property-iso-control-tests (Files): Likewise.
40907         * modules/unictype/property-join-control-tests (Files): Likewise.
40908         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40909         * modules/unictype/property-line-separator-tests (Files): Likewise.
40910         * modules/unictype/property-logical-order-exception-tests (Files):
40911         Likewise.
40912         * modules/unictype/property-lowercase-tests (Files): Likewise.
40913         * modules/unictype/property-math-tests (Files): Likewise.
40914         * modules/unictype/property-non-break-tests (Files): Likewise.
40915         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40916         * modules/unictype/property-numeric-tests (Files): Likewise.
40917         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40918         * modules/unictype/property-other-default-ignorable-code-point-tests
40919         (Files): Likewise.
40920         * modules/unictype/property-other-grapheme-extend-tests (Files):
40921         Likewise.
40922         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40923         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40924         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40925         * modules/unictype/property-other-math-tests (Files): Likewise.
40926         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40927         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40928         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40929         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40930         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40931         * modules/unictype/property-private-use-tests (Files): Likewise.
40932         * modules/unictype/property-punctuation-tests (Files): Likewise.
40933         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40934         * modules/unictype/property-radical-tests (Files): Likewise.
40935         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40936         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40937         * modules/unictype/property-space-tests (Files): Likewise.
40938         * modules/unictype/property-terminal-punctuation-tests (Files):
40939         Likewise.
40940         * modules/unictype/property-test-tests (Files): Likewise.
40941         * modules/unictype/property-titlecase-tests (Files): Likewise.
40942         * modules/unictype/property-unassigned-code-value-tests (Files):
40943         Likewise.
40944         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40945         * modules/unictype/property-uppercase-tests (Files): Likewise.
40946         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40947         * modules/unictype/property-white-space-tests (Files): Likewise.
40948         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40949         * modules/unictype/property-xid-start-tests (Files): Likewise.
40950         * modules/unictype/property-zero-width-tests (Files): Likewise.
40951         * modules/unictype/scripts-tests (Files): Likewise.
40952         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40953         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40954         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40955         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40956         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40957         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40958         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40959         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40960         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40961         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40962         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40963         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40964         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40965         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40966         * modules/uninorm/composition-tests (Files): Likewise.
40967         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40968         * modules/uninorm/decomposition-tests (Files): Likewise.
40969         * modules/uninorm/filter-tests (Files): Likewise.
40970         * modules/uninorm/nfc-tests (Files): Likewise.
40971         * modules/uninorm/nfd-tests (Files): Likewise.
40972         * modules/uninorm/nfkc-tests (Files): Likewise.
40973         * modules/uninorm/nfkd-tests (Files): Likewise.
40974         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40975         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40976         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40977         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40978         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40979         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40980         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40981         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40982         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40983         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40984         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40985         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40986         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40987         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40988         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40989         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40990         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40991         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40992         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40993         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40994         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40995         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40996         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40997         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40998         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40999         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41000         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41001         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41002         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41003         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41004         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41005         * modules/uniwidth/u8-width-tests (Files): Likewise.
41006         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41007         * modules/uniwidth/u16-width-tests (Files): Likewise.
41008         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41009         * modules/uniwidth/u32-width-tests (Files): Likewise.
41010         * modules/uniwidth/width-tests (Files): Likewise.
41011         * modules/unlink-tests (Files): Likewise.
41012         * modules/unsetenv-tests (Files): Likewise.
41013         * modules/usleep-tests (Files): Likewise.
41014         * modules/utimens-tests (Files): Likewise.
41015         * modules/utimensat-tests (Files): Likewise.
41016         * modules/vasnprintf-posix-tests (Files): Likewise.
41017         * modules/vasnprintf-tests (Files): Likewise.
41018         * modules/vasprintf-posix-tests (Files): Likewise.
41019         * modules/vasprintf-tests (Files): Likewise.
41020         * modules/vdprintf-posix-tests (Files): Likewise.
41021         * modules/vfprintf-posix-tests (Files): Likewise.
41022         * modules/vprintf-posix-tests (Files): Likewise.
41023         * modules/vsnprintf-posix-tests (Files): Likewise.
41024         * modules/vsnprintf-tests (Files): Likewise.
41025         * modules/vsprintf-posix-tests (Files): Likewise.
41026         * modules/wcrtomb-tests (Files): Likewise.
41027         * modules/wcsnrtombs-tests (Files): Likewise.
41028         * modules/wcsrtombs-tests (Files): Likewise.
41029         * modules/wctype-tests (Files): Likewise.
41030         * modules/wcwidth-tests (Files): Likewise.
41031         * modules/xmemdup0-tests (Files): Likewise.
41032         * modules/xprintf-posix-tests (Files): Likewise.
41033         * modules/xvasprintf-tests (Files): Likewise.
41034
41035 2009-12-24  Eric Blake  <ebb9@byu.net>
41036
41037         test-nanosleep: fix typo
41038         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41039         patch.
41040         Reported by Bruno Haible.
41041
41042 2009-12-24  Bruno Haible  <bruno@clisp.org>
41043
41044         Reduce namespace pollution on glibc systems.
41045         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41046         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41047         systems.
41048         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41049         <getopt.h> on glibc systems.
41050         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41051         systems.
41052         * lib/fcntl.c: Include <unistd.h> here instead.
41053
41054 2009-12-24  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41057
41058 2009-12-24  Eric Blake  <ebb9@byu.net>
41059
41060         tests: add signature checks
41061         * tests/signature.h (SIGNATURE_CHECK): New file.
41062         * modules/atexit-tests (Files): Use it.
41063         * modules/btowc-tests (Files): Likewise.
41064         * modules/canonicalize-lgpl-tests (Files): Likewise.
41065         * modules/ceilf-tests (Files): Likewise.
41066         * modules/ceill-tests (Files): Likewise.
41067         * modules/chown-tests (Files): Likewise.
41068         * modules/dprintf-posix-tests (Files): Likewise.
41069         * modules/dup2-tests (Files): Likewise.
41070         * modules/dup3-tests (Files): Likewise.
41071         * modules/duplocale-tests (Files): Likewise.
41072         * modules/fchdir-tests (Files): Likewise.
41073         * modules/fcntl-tests (Files): Likewise.
41074         * modules/fdopendir-tests (Files): Likewise.
41075         * modules/fflush-tests (Files): Likewise.
41076         * modules/flock-tests (Files): Likewise.
41077         * modules/floorf-tests (Files): Likewise.
41078         * modules/floorl-tests (Files): Likewise.
41079         * modules/fnmatch-tests (Files): Likewise.
41080         * modules/fopen-tests (Files): Likewise.
41081         * modules/fprintf-posix-tests (Files): Likewise.
41082         * modules/freopen-tests (Files): Likewise.
41083         * modules/frexp-nolibm-tests (Files): Likewise.
41084         * modules/frexp-tests (Files): Likewise.
41085         * modules/frexpl-nolibm-tests (Files): Likewise.
41086         * modules/frexpl-tests (Files): Likewise.
41087         * modules/fseek-tests (Files): Likewise.
41088         * modules/fseeko-tests (Files): Likewise.
41089         * modules/fsync-tests (Files): Likewise.
41090         * modules/ftell-tests (Files): Likewise.
41091         * modules/ftello-tests (Files): Likewise.
41092         * modules/futimens-tests (Files): Likewise.
41093         * modules/getaddrinfo-tests (Files): Likewise.
41094         * modules/getcwd-tests (Files): Likewise.
41095         * modules/getdelim-tests (Files): Likewise.
41096         * modules/getdtablesize-tests (Files): Likewise.
41097         * modules/getgroups-tests (Files): Likewise.
41098         * modules/gethostname-tests (Files): Likewise.
41099         * modules/getline-tests (Files): Likewise.
41100         * modules/getopt-posix-tests (Files): Likewise.
41101         * modules/gettimeofday-tests (Files): Likewise.
41102         * modules/glob-tests (Files): Likewise.
41103         * modules/iconv-tests (Files): Likewise.
41104         * modules/inet_ntop-tests (Files): Likewise.
41105         * modules/inet_pton-tests (Files): Likewise.
41106         * modules/isblank-tests (Files): Likewise.
41107         * modules/lchown-tests (Files): Likewise.
41108         * modules/ldexpl-tests (Files): Likewise.
41109         * modules/link-tests (Files): Likewise.
41110         * modules/linkat-tests (Files): Likewise.
41111         * modules/lseek-tests (Files): Likewise.
41112         * modules/lstat-tests (Files): Likewise.
41113         * modules/mbrtowc-tests (Files): Likewise.
41114         * modules/mbsinit-tests (Files): Likewise.
41115         * modules/mbsnrtowcs-tests (Files): Likewise.
41116         * modules/mbsrtowcs-tests (Files): Likewise.
41117         * modules/memchr-tests (Files): Likewise.
41118         * modules/memcmp-tests (Files): Likewise.
41119         * modules/memmem-tests (Files): Likewise.
41120         * modules/memrchr-tests (Files): Likewise.
41121         * modules/mkdir-tests (Files): Likewise.
41122         * modules/mkfifo-tests (Files): Likewise.
41123         * modules/mkfifoat-tests (Files): Likewise.
41124         * modules/mknod-tests (Files): Likewise.
41125         * modules/nanosleep-tests (Files): Likewise.
41126         * modules/nl_langinfo-tests (Files): Likewise.
41127         * modules/obstack-printf-tests (Files): Likewise.
41128         * modules/open-tests (Files): Likewise.
41129         * modules/openat-tests (Files): Likewise.
41130         * modules/perror-tests (Files): Likewise.
41131         * modules/pipe2-tests (Files): Likewise.
41132         * modules/poll-tests (Files): Likewise.
41133         * modules/popen-tests (Files): Likewise.
41134         * modules/posix_spawn-tests (Files): Likewise.
41135         * modules/posix_spawnp-tests (Files): Likewise.
41136         * modules/pread-tests (Files): Likewise.
41137         * modules/printf-posix-tests (Files): Likewise.
41138         * modules/pty-tests (Files): Likewise.
41139         * modules/random_r-tests (Files): Likewise.
41140         * modules/rawmemchr-tests (Files): Likewise.
41141         * modules/readlink-tests (Files): Likewise.
41142         * modules/remove-tests (Files): Likewise.
41143         * modules/rename-tests (Files): Likewise.
41144         * modules/renameat-tests (Files): Likewise.
41145         * modules/rmdir-tests (Files): Likewise.
41146         * modules/round-tests (Files): Likewise.
41147         * modules/roundf-tests (Files): Likewise.
41148         * modules/roundl-tests (Files): Likewise.
41149         * modules/select-tests (Files): Likewise.
41150         * modules/setenv-tests (Files): Likewise.
41151         * modules/sigaction-tests (Files): Likewise.
41152         * modules/sleep-tests (Files): Likewise.
41153         * modules/snprintf-posix-tests (Files): Likewise.
41154         * modules/snprintf-tests (Files): Likewise.
41155         * modules/sprintf-posix-tests (Files): Likewise.
41156         * modules/stat-tests (Files): Likewise.
41157         * modules/strcasestr-tests (Files): Likewise.
41158         * modules/strchrnul-tests (Files): Likewise.
41159         * modules/strerror-tests (Files): Likewise.
41160         * modules/strsignal-tests (Files): Likewise.
41161         * modules/strstr-tests (Files): Likewise.
41162         * modules/strtod-tests (Files): Likewise.
41163         * modules/strverscmp-tests (Files): Likewise.
41164         * modules/symlink-tests (Files): Likewise.
41165         * modules/symlinkat-tests (Files): Likewise.
41166         * modules/times-tests (Files): Likewise.
41167         * modules/trunc-tests (Files): Likewise.
41168         * modules/truncf-tests (Files): Likewise.
41169         * modules/truncl-tests (Files): Likewise.
41170         * modules/tsearch-tests (Files): Likewise.
41171         * modules/uname-tests (Files): Likewise.
41172         * modules/unlink-tests (Files): Likewise.
41173         * modules/unsetenv-tests (Files): Likewise.
41174         * modules/usleep-tests (Files): Likewise.
41175         * modules/utimensat-tests (Files): Likewise.
41176         * modules/vasprintf-tests (Files): Likewise.
41177         * modules/vdprintf-posix-tests (Files): Likewise.
41178         * modules/vfprintf-posix-tests (Files): Likewise.
41179         * modules/vprintf-posix-tests (Files): Likewise.
41180         * modules/vsnprintf-posix-tests (Files): Likewise.
41181         * modules/vsnprintf-tests (Files): Likewise.
41182         * modules/vsprintf-posix-tests (Files): Likewise.
41183         * modules/wcrtomb-tests (Files): Likewise.
41184         * modules/wcsnrtombs-tests (Files): Likewise.
41185         * modules/wcsrtombs-tests (Files): Likewise.
41186         * modules/wcwidth-tests (Files): Likewise.
41187         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41188         * tests/test-isinf.c (isinf): Likewise.
41189         * tests/test-isnan.c (isnan): Likewise.
41190         * tests/test-signbit.c (signbit): Likewise.
41191         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41192         declaration, either as macro or with correct signature.
41193         (select): Ensure function under test is declared with correct
41194         signature in correct header.
41195         * tests/test-atexit.c (atexit): Likewise.
41196         * tests/test-btowc.c (btowc): Likewise.
41197         * tests/test-canonicalize-lgpl.c (realpath)
41198         (canonicalize_file_name): Likewise.
41199         * tests/test-ceilf1.c (ceilf): Likewise.
41200         * tests/test-ceill.c (ceill): Likewise.
41201         * tests/test-chown.c (chown): Likewise.
41202         * tests/test-dprintf-posix.c (dprintf): Likewise.
41203         * tests/test-dup2.c (dup2): Likewise.
41204         * tests/test-dup3.c (dup3): Likewise.
41205         * tests/test-duplocale.c (duplocale): Likewise.
41206         * tests/test-fchdir.c (fchdir): Likewise.
41207         * tests/test-fchownat.c (fchownat): Likewise.
41208         * tests/test-fcntl.c (fcntl): Likewise.
41209         * tests/test-fdopendir.c (fdopendir): Likewise.
41210         * tests/test-fflush.c (fflush): Likewise.
41211         * tests/test-flock.c (flock): Likewise.
41212         * tests/test-floorf1.c (floorf): Likewise.
41213         * tests/test-floorl.c (floorl): Likewise.
41214         * tests/test-fnmatch.c (fnmatch): Likewise.
41215         * tests/test-fopen.c (fopen): Likewise.
41216         * tests/test-fprintf-posix.c (fprintf): Likewise.
41217         * tests/test-freopen.c (freopen): Likewise.
41218         * tests/test-frexp.c (frexp): Likewise.
41219         * tests/test-frexpl.c (frexpl): Likewise.
41220         * tests/test-fseek.c (fseek): Likewise.
41221         * tests/test-fseeko.c (fseeko): Likewise.
41222         * tests/test-fstatat.c (fstatat): Likewise.
41223         * tests/test-fsync.c (fsync): Likewise.
41224         * tests/test-ftell.c (ftell): Likewise.
41225         * tests/test-ftello.c (ftello): Likewise.
41226         * tests/test-futimens.c (futimens): Likewise.
41227         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41228         (gai_strerror): Likewise.
41229         * tests/test-getcwd.c (getcwd): Likewise.
41230         * tests/test-getdelim.c (getdelim): Likewise.
41231         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41232         * tests/test-getgroups.c (getgroups): Likewise.
41233         * tests/test-gethostname.c (gethostname): Likewise.
41234         * tests/test-getline.c (getline): Likewise.
41235         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41236         Likewise.
41237         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41238         * tests/test-glob.c (glob, globfree): Likewise.
41239         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41240         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41241         * tests/test-inet_pton.c (inet_pton): Likewise.
41242         * tests/test-isblank.c (isblank): Likewise.
41243         * tests/test-lchown.c (lchown): Likewise.
41244         * tests/test-ldexpl.c (ldexpl): Likewise.
41245         * tests/test-link.c (link): Likewise.
41246         * tests/test-linkat.c (linkat): Likewise.
41247         * tests/test-lseek.c (lseek): Likewise.
41248         * tests/test-lstat.c (lstat): Likewise.
41249         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41250         * tests/test-mbsinit.c (mbsinit): Likewise.
41251         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41252         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41253         * tests/test-memchr.c (memchr): Likewise.
41254         * tests/test-memcmp.c (memcmp): Likewise.
41255         * tests/test-memmem.c (memmem): Likewise.
41256         * tests/test-memrchr.c (memrchr): Likewise.
41257         * tests/test-mkdir.c (mkdir): Likewise.
41258         * tests/test-mkdirat.c (mkdirat): Likewise.
41259         * tests/test-mkfifo.c (mkfifo): Likewise.
41260         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41261         * tests/test-mknod.c (mknod): Likewise.
41262         * tests/test-nanosleep.c (nanosleep): Likewise.
41263         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41264         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41265         Likewise.
41266         * tests/test-open.c (open): Likewise.
41267         * tests/test-openat.c (openat): Likewise.
41268         * tests/test-perror.c (perror): Likewise.
41269         * tests/test-pipe2.c (pipe2): Likewise.
41270         * tests/test-poll.c (poll): Likewise.
41271         * tests/test-popen.c (popen, pclose): Likewise.
41272         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41273         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41274         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41275         (posix_spawn_file_actions_destroy)
41276         (posix_spawn_file_actions_addclose)
41277         (posix_spawn_file_actions_addopen)
41278         (posix_spawn_file_actions_adddup2): Likewise.
41279         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41280         * tests/test-pread.c (pread): Likewise.
41281         * tests/test-printf-posix.c (printf): Likewise.
41282         * tests/test-pty.c (openpty, forkpty): Likewise.
41283         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41284         (random_r): Likewise.
41285         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41286         * tests/test-readlink.c (readlink): Likewise.
41287         * tests/test-remove.c (remove): Likewise.
41288         * tests/test-rename.c (rename): Likewise.
41289         * tests/test-renameat.c (renameat): Likewise.
41290         * tests/test-rmdir.c (rmdir): Likewise.
41291         * tests/test-round1.c (round): Likewise.
41292         * tests/test-roundf1.c (roundf): Likewise.
41293         * tests/test-roundl.c (roundl): Likewise.
41294         * tests/test-setenv.c (setenv): Likewise.
41295         * tests/test-sigaction.c (sigaction): Likewise.
41296         * tests/test-sleep.c (sleep): Likewise.
41297         * tests/test-snprintf.c (snprintf): Likewise.
41298         * tests/test-sprintf-posix.c (sprintf): Likewise.
41299         * tests/test-stat.c (stat): Likewise.
41300         * tests/test-stpncpy.c (stpncpy): Likewise.
41301         * tests/test-strcasestr.c (strcasestr): Likewise.
41302         * tests/test-strchrnul.c (strchrnul): Likewise.
41303         * tests/test-strerror.c (strerror): Likewise.
41304         * tests/test-strsignal.c (strsignal): Likewise.
41305         * tests/test-strstr.c (strstr): Likewise.
41306         * tests/test-strtod.c (strtod): Likewise.
41307         * tests/test-strverscmp.c (strverscmp): Likewise.
41308         * tests/test-symlink.c (symlink): Likewise.
41309         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41310         * tests/test-times.c (times): Likewise.
41311         * tests/test-trunc1.c (trunc): Likewise.
41312         * tests/test-truncf1.c (truncf): Likewise.
41313         * tests/test-truncl.c (truncl): Likewise.
41314         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41315         Likewise.
41316         * tests/test-uname.c (uname): Likewise.
41317         * tests/test-unlink.c (unlink): Likewise.
41318         * tests/test-unlinkat.c (unlinkat): Likewise.
41319         * tests/test-unsetenv.c (unsetenv): Likewise.
41320         * tests/test-usleep.c (usleep): Likewise.
41321         * tests/test-utimensat.c (utimensat): Likewise.
41322         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41323         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41324         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41325         * tests/test-vprintf-posix.c (vprintf): Likewise.
41326         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41327         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41328         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41329         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41330         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41331         * tests/test-wcwidth.c (wcwidth): Likewise.
41332
41333         build: pull in conditional headers during GNULIB_POSIXCHECK
41334         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41335         definitions from any conditionally-included headers.
41336         * lib/stdlib.in.h (includes): Likewise.
41337         * lib/unistd.in.h (includes): Likewise.
41338
41339 2009-12-24  Bruno Haible  <bruno@clisp.org>
41340
41341         * tests/test-argv-iter.c: Include header file being tested immediately
41342         after config.h.
41343         * tests/test-base64.c: Likewise.
41344         * tests/test-flock.c: Likewise.
41345         * tests/test-fsync.c: Likewise.
41346         * tests/test-getdate.c: Likewise.
41347         * tests/test-getndelim2.c: Likewise.
41348         * tests/test-isfinite.c: Likewise.
41349         * tests/test-isinf.c: Likewise.
41350         * tests/test-strerror.c: Likewise.
41351         * tests/test-strsignal.c: Likewise.
41352
41353 2009-12-23  Eric Blake  <ebb9@byu.net>
41354
41355         unistd: work around cygwin bug
41356         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41357         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41358         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41359
41360 2009-12-23  Bruno Haible  <bruno@clisp.org>
41361
41362         localename: More tests.
41363         * tests/test-localename.c (SIZEOF): New macro.
41364         (categories): New variable.
41365         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41366         test_locale_name_default): Add test w.r.t. thread locale.
41367         (test_locale_name_thread): New function.
41368         (main): Invoke it.
41369
41370         localename: Make aware of thread locale.
41371         * lib/localename.h (gl_locale_name_thread): New declaration.
41372         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41373         behaviour with respect to thread locale.
41374         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41375         <langinfo.h>, glthread/lock.h.
41376         (SIZE_BITS): New macro.
41377         (string_hash): New function.
41378         (struct hash_node): New type.
41379         (HASH_TABLE_SIZE): New macro.
41380         (struniq_hash_table, struniq_lock): New variables.
41381         (struniq): New function.
41382         (gl_locale_name_thread): New function.
41383         (gl_locale_name): Invoke it.
41384         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41385         * modules/localename (Depends-on): Add lock.
41386         Reported by Mike Gran <spk121@yahoo.com>.
41387
41388 2009-12-23  Eric Blake  <ebb9@byu.net>
41389
41390         va-args: new module
41391         * modules/va-args: New file.
41392         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41393         * MODULES.html.sh (Core language properties): Mention it.
41394
41395         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41396         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41397         named alias for __attribute__((__unused__)).
41398         * lib/chown.c: Update client.
41399         * lib/fchmodat.c: Likewise.
41400         * lib/fts.c: Likewise.
41401         * lib/getdate.y: Likewise.
41402         * lib/getgroups.c: Likewise.
41403         * lib/getopt.c: Likewise.
41404         * lib/getugroups.c: Likewise.
41405         * lib/mkdir.c: Likewise.
41406         * lib/mkfifo.c: Likewise.
41407         * lib/mkfifoat.c: Likewise.
41408         * lib/mknod.c: Likewise.
41409         * lib/mknodat.c: Likewise.
41410         * lib/readlink.c: Likewise.
41411         * lib/se-context.in.h: Likewise.
41412         * lib/se-selinux.in.h: Likewise.
41413         * lib/sockets.c: Likewise.
41414         * lib/symlink.c: Likewise.
41415         * lib/symlinkat.c: Likewise.
41416         * lib/unicodeio.c: Likewise.
41417         * lib/unistr.h: Likewise.
41418         * tests/test-areadlink.c: Likewise.
41419         * tests/test-areadlinkat.c: Likewise.
41420         * tests/test-filenamecat.c: Likewise.
41421         * tests/test-fseeko.c: Likewise.
41422         * tests/test-ftello.c: Likewise.
41423         * tests/test-getdate.c: Likewise.
41424         * tests/test-getgroups.c: Likewise.
41425         * tests/test-gethostname.c: Likewise.
41426         * tests/test-quotearg.c: Likewise.
41427         * tests/test-version-etc.c: Likewise.
41428         * tests/test-xalloc-die.c: Likewise.
41429         * tests/test-xfprintf-posix.c: Likewise.
41430         * tests/test-xprintf-posix.c: Likewise.
41431         * tests/test-xvasprintf.c: Likewise.
41432
41433         tests: avoid compiler warnings
41434         * tests/test-fcntl.c (main): Delete unused parameters.
41435         * tests/test-freopen-safer.c (main): Likewise.
41436         * tests/test-xalloc-die.c (main): Mark unused parameters.
41437         * tests/test-fseeko.c (main): Likewise.
41438         * tests/test-ftello.c (main): Likewise.
41439         * tests/test-nanosleep.c (main): Avoid declaration warning.
41440         * tests/test-sleep.c (main): Likewise.
41441         * tests/test-unsetenv.c (main): Silence warning about string
41442         literal.
41443         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41444
41445 2009-12-23  Bruno Haible  <bruno@clisp.org>
41446
41447         * tests/test-localename.c (test_locale_name): New function, extracted
41448         from main. Also test mixed situations.
41449         (test_locale_name_posix, test_locale_name_environ,
41450         test_locale_name_default): New functions.
41451         (main): Invoke them all.
41452         * modules/localename-tests (configure.ac): Test for newlocale.
41453
41454 2009-12-23  Bruno Haible  <bruno@clisp.org>
41455
41456         unistd: Ensure getcwd gets declared before being overridden.
41457         * lib/unistd.in.h: Conditionally include <io.h>.
41458
41459 2009-12-22  Bruno Haible  <bruno@clisp.org>
41460
41461         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41462         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41463         (gl_WCHAR_H): Invoke it.
41464         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41465         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41466         Reported by Karl Berry <karl@freefriends.org>.
41467
41468 2009-12-22  Eric Blake  <ebb9@byu.net>
41469
41470         math, unistd: avoid redundant includes
41471         * lib/math.in.h (isnan): No need to re-include <math.h>.
41472         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41473
41474         getsubopt: work around cygwin bug
41475         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41476         avoid conflicting with system getsubopt.
41477         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41478         bug.
41479
41480         getopt: synchronize from glibc
41481         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41482         parameter order.  Adjust all callers.
41483         (_getopt_internal_r, main): Adjust quoting in error messages.
41484         Drop considerations for outdated POSIX 1003.2 error message.
41485         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41486         callers.
41487         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41488
41489         test-getopt: test stderr behavior
41490         * modules/getopt-posix-tests (Depends-on): Add dup2.
41491         * tests/test-getopt.c (ASSERT): Avoid stderr.
41492         (main): Move stderr to a temporary file.
41493         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41494         Instead, add parameter to inform caller if output occurred.
41495         (test_getopt): Adjust all existing tests to expect silence, and
41496         add new tests of leading ":".
41497         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41498         glibc shortcomings with leading "-:" or "+:" in optstring.
41499         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41500         Likewise.
41501         * doc/posix-functions/getopt.texi (getopt): Likewise.
41502
41503         test-getopt: enhance test
41504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41505         supports optind=0.
41506         * tests/test-getopt.c (OPTIND_MIN): Move...
41507         * tests/test-getopt.h (OPTIND_MIN): ...here.
41508         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41509         Require that optind=0 works, since modern BSD supports it in
41510         addition to optreset, and since coreutils expects it.
41511         (test_getopt_long_only): New test.
41512         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41513         glibc shortcomings with 'W;', and enforcement of optind=0.
41514         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41515         Likewise.
41516
41517 2009-12-21  Bruno Haible  <bruno@clisp.org>
41518
41519         localename: Improvements for MacOS X and Cygwin.
41520         * lib/localename.h (gl_locale_name_environ): New declaration.
41521         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41522         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41523         (gl_locale_name_posix): Invoke it.
41524         (gl_locale_name_default): Add comments. Use Windows native API also on
41525         Cygwin.
41526
41527 2009-12-21  Bruno Haible  <bruno@clisp.org>
41528
41529         Update list of Win32 locale ids.
41530         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41531         (LANG_SAMI): Renamed from LANG_SAAMI.
41532         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41533         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41534         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41535         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41536         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41537         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41538         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41539         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41540         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41541         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41542         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41543         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41544         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41545         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41546         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41547         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41548         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41549         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41550         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41551         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41552         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41553         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41554         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41555         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41556         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41557         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41558         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41559         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41560         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41561         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41562         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41563         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41564         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41565         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41566         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41567         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41568         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41569         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41570         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41571         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41572         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41573         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41574         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41575         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41576         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41577         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41578         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41579         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41580         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41581         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41582         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41583         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41584         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41585         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41586         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41587         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41588         Add more languages and countries for Sami, Sorbian. Add more countries
41589         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41590         for Pashto. Change country for Syriac, Tswana.
41591
41592 2009-12-21  Eric Blake  <ebb9@byu.net>
41593
41594         test-utimens: avoid spurious failure
41595         * tests/test-chown.h (nap): Factor...
41596         * tests/nap.h: ...into new file.
41597         * tests/test-lchown.h (nap): Avoid duplication.
41598         * tests/test-utimens-common.h (nap): Use shared implementation,
41599         necessary on file systems with 1-second resolution.
41600         * modules/chown-tests (Files): Include new file.
41601         * modules/fdutimensat-tests (Files): Likewise.
41602         * modules/futimens-tests (Files): Likewise.
41603         * modules/lchown-tests (Files): Likewise.
41604         * modules/openat-tests (Files): Likewise.
41605         * modules/utimens-tests (Files): Likewise.
41606         * modules/utimensat-tests (Files): Likewise.
41607
41608 2009-12-19  Eric Blake  <ebb9@byu.net>
41609
41610         futimens, utimensat: work around Linux bug
41611         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41613         * lib/utimensat.c (rpl_utimensat): Work around it.
41614         * lib/futimens.c (rpl_futimens): Adjust comment.
41615
41616         utimens: work around Linux ctime bug
41617         * lib/utimens.c (detect_ctime_bug): New helper function.
41618         (update_timespec): Differentiate between workaround needed for
41619         this bug vs. what is needed for systems that lack utimensat.
41620         (fdutimens, lutimens): Work around bug.
41621
41622         utimens: check for ctime update
41623         * tests/test-utimens-common.h (check_ctime): Define.
41624         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41625         * tests/test-futimens.h (test_futimens): Likewise.
41626         * tests/test-lutimens.h (test_lutimens): Likewise.
41627         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41628         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41629
41630 2009-12-19  Bruno Haible  <bruno@clisp.org>
41631
41632         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41633         * tests/test-dprintf-posix2.sh: New file.
41634         * tests/test-dprintf-posix2.c: New file.
41635         * modules/dprintf-posix-tests (Files): Add them.
41636         (configure.ac): Check for getrlimit and setrlimit.
41637         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41638
41639 2009-12-19  Bruno Haible  <bruno@clisp.org>
41640
41641         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41642         * tests/test-fprintf-posix3.sh: New file.
41643         * tests/test-fprintf-posix3.c: New file.
41644         * modules/fprintf-posix-tests (Files): Add them.
41645         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41646
41647 2009-12-19  Eric Blake  <ebb9@byu.net>
41648
41649         dirfd: fix prototype
41650         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41651         * lib/dirfd.c (dirfd): Likewise.
41652
41653         canonicalize: reduce memory usage
41654         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41655         allocation to size.
41656         Reported by Solar Designer <solar@openwall.com>.
41657
41658 2009-12-19  Bruno Haible  <bruno@clisp.org>
41659
41660         New module attribute 'Applicability'.
41661         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41662         * gnulib-tool: New option --extract-applicability.
41663         (func_usage): Document it.
41664         (sed_extract_prog): Recognize it.
41665         (func_get_applicability): New function.
41666         (func_import): Generalize handling of 'link-warning' module.
41667         * modules/link-warning (Applicability): New section.
41668         * modules/arg-nonnull (Applicability): New section.
41669         Repoted by Simon Josefsson <simon@josefsson.org>.
41670
41671 2009-12-19  Bruno Haible  <bruno@clisp.org>
41672
41673         fflush: tweak
41674         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41675         * lib/fseeko.c (rpl_fseeko): Likewise.
41676
41677 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41678
41679         * lib/gl_list.h: Fix typo in comment.
41680
41681 2009-12-16  Eric Blake  <ebb9@byu.net>
41682
41683         fcntl: use to simplify other modules
41684         * modules/cloexec (Depends-on): Add fcntl.
41685         * modules/fchdir (Depends-on): Likewise.
41686         * modules/fd-safer-flag (Depends-on): Likewise.
41687         * modules/unistd-safer (Depends-on): Likewise.
41688         * modules/dup3 (configure.ac): Set module indicator.
41689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41690         missing.
41691         * lib/fchdir.c (_gl_register_dup): Fix comment.
41692         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41693         * lib/dup-safer.c (dup_safer): Likewise.
41694         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41695         * lib/dup3.c (dup3): Likewise.
41696         * tests/test-fchdir.c (main): Enhance test.
41697         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41698
41699         fcntl: port portions of fcntl to mingw
41700         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41701         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41702         replacement for mingw.
41703         * modules/fcntl (Description): Update.
41704         (Depends-on): Add dup2.
41705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41706         * modules/fcntl-h (Makefile.am): Substitute it.
41707         * lib/fcntl.in.h (fcntl): Update declaration.
41708         (F_DUPFD, F_GETFD): New macros, when needed.
41709         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41710         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41711         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41712         we now guarantee.
41713
41714         fcntl: work around cygwin bug in F_DUPFD
41715         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41716         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41717         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41718         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41719         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41720
41721         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41722         * modules/fcntl (Files): List new files.
41723         (configure.ac): Run a test.
41724         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41725         * lib/fcntl.c (rpl_fcntl): Likewise.
41726         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41727         (gl_FCNTL_H): Always replace fcntl.h.
41728         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41729         * lib/fcntl.in.h (fcntl): Declare replacement.
41730         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41731         needed, plus a witness.
41732         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41733         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41734         * tests/test-fcntl.c: New file.
41735         * modules/fcntl-tests: Likewise.
41736
41737         binary-io: avoid potential compilation warning
41738         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41739         directives.
41740
41741         fflush: avoid compilation error on NetBSD
41742         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41743         between off_t and fpos_t, since the latter is sometimes a struct.
41744         * lib/fseeko.c (rpl_fseeko): Likewise.
41745         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41746
41747 2009-12-15  Eric Blake  <ebb9@byu.net>
41748
41749         fcntl-h, stdio, sys_ioctl: fix declarations
41750         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41751         function must not take arguments.
41752         * lib/sys_ioctl.in.h (ioctl): Likewise.
41753         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41754         (open): Add a link warning.
41755
41756 2009-12-15  Jim Meyering  <meyering@redhat.com>
41757
41758         areadlink, areadlink-with-size: relax license to LGPLv2+
41759         * modules/areadlink (License): Relax to LGPLv2+.
41760         * modules/areadlink-with-size (License): Likewise.
41761
41762 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41763             Bruno Haible  <bruno@clisp.org>
41764
41765         *printf: Fix memory leak.
41766         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41767         * lib/vfprintf.c (vfprintf): Likewise.
41768         * lib/dprintf.c (dprintf): Likewise.
41769         * lib/vdprintf.c (vdprintf): Likewise.
41770
41771 2009-12-14  Eric Blake  <ebb9@byu.net>
41772
41773         accept4: adjust module dependencies
41774         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41775
41776         utimens: one more try at avoiding compiler warning
41777         * lib/utimens.c (lutimens): Lower scope of result.
41778
41779 2009-12-13  Bruno Haible  <bruno@clisp.org>
41780
41781         Move the malloc checking from module 'list' to new module 'xlist'.
41782         * modules/xlist: New file.
41783         * lib/gl_xlist.h: New file.
41784         * lib/gl_xlist.c: New file.
41785         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41786         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41787         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41788         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41789         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41790         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41791         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41792         gl_sortedlist_nx_add): New declarations.
41793         (struct gl_list_implementation): Rename and change methods accordingly.
41794         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41795         (gl_list_nx_create): Renamed from gl_list_create.
41796         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41797         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41798         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41799         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41800         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41801         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41802         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41803         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41804         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41805         gl_list_create_empty.
41806         (gl_list_nx_create): Renamed from gl_list_create.
41807         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41808         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41809         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41810         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41811         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41812         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41813         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41814         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41815         * lib/gl_array_list.c: Don't include xalloc.h.
41816         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41817         NULL upon out-of-memory.
41818         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41819         out-of-memory.
41820         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41821         Change return type to 'int'.
41822         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41823         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41824         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41825         upon out-of-memory.
41826         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41827         upon out-of-memory.
41828         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41829         upon out-of-memory.
41830         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41831         upon out-of-memory.
41832         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41833         out-of-memory.
41834         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41835         Update.
41836         (gl_array_list_implementation): Update.
41837         * lib/gl_carray_list.c: Don't include xalloc.h.
41838         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41839         Return NULL upon out-of-memory.
41840         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41841         out-of-memory.
41842         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41843         Change return type to 'int'.
41844         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41845         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41846         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41847         upon out-of-memory.
41848         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41849         upon out-of-memory.
41850         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41851         out-of-memory.
41852         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41853         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41854         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41855         Update.
41856         (gl_carray_list_implementation): Update.
41857         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41858         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41859         gl_linked_create_empty. Return NULL upon out-of-memory.
41860         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41861         out-of-memory.
41862         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41863         Change return type to 'int'. Return -1 upon out-of-memory.
41864         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41865         out-of-memory.
41866         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41867         upon out-of-memory.
41868         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41869         upon out-of-memory.
41870         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41871         NULL upon out-of-memory.
41872         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41873         upon out-of-memory.
41874         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41875         out-of-memory.
41876         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41877         Update.
41878         * lib/gl_linked_list.c: Don't include xalloc.h.
41879         (gl_linked_list_implementation): Update.
41880         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41881         (add_to_bucket): Change return type to 'int'.
41882         (gl_linkedhash_list_implementation): Update.
41883         * lib/gl_anytree_list1.h (free_subtree): New function.
41884         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41885         gl_tree_create_empty. Return NULL upon out-of-memory.
41886         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41887         Change return type to 'int'. Return -1 upon out-of-memory.
41888         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41889         out-of-memory.
41890         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41891         (gl_tree_remove_node): New function, moved here from
41892         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41893         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41894         Update.
41895         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41896         malloc, not xmalloc. Return NULL upon out-of-memory.
41897         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41898         out-of-memory.
41899         (gl_tree_remove_node_from_tree): New function, extracted from
41900         gl_tree_remove_node.
41901         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41902         upon out-of-memory.
41903         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41904         out-of-memory.
41905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41906         upon out-of-memory.
41907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41908         upon out-of-memory.
41909         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41910         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41911         not xmalloc. Return NULL upon out-of-memory.
41912         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41913         out-of-memory.
41914         (gl_tree_remove_node_from_tree): New function, extracted from
41915         gl_tree_remove_node.
41916         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41917         upon out-of-memory.
41918         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41919         out-of-memory.
41920         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41921         upon out-of-memory.
41922         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41923         upon out-of-memory.
41924         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41925         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41926         gl_anytree_list1.h before gl_anyavltree_list2.h.
41927         (gl_avltree_list_implementation): Update.
41928         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41929         gl_anytree_list1.h before gl_anyavltree_list2.h.
41930         (gl_rbtree_list_implementation): Update.
41931         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41932         Change return type to 'int'. Return -1 upon out-of-memory. Use
41933         __builtin_expect.
41934         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41935         (gl_avltreehash_list_implementation): Update.
41936         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41937         (gl_rbtreehash_list_implementation): Update.
41938         * modules/array-list (Depends-on): Remove xalloc.
41939         * modules/carray-list (Depends-on): Likewise.
41940         * modules/linked-list (Depends-on): Likewise.
41941         * modules/linkedhash-list (Depends-on): Likewise.
41942         * modules/avltree-list (Depends-on): Likewise.
41943         * modules/rbtree-list (Depends-on): Likewise.
41944         * modules/avltreehash-list (Depends-on): Likewise.
41945         * modules/rbtreehash-list (Depends-on): Likewise.
41946
41947         * modules/xsublist: New file.
41948         * lib/gl_xsublist.h: New file.
41949         * lib/gl_xsublist.c: New file.
41950         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41951         (gl_sublist_nx_create): New declaration.
41952         * lib/gl_sublist.c: Don't include xalloc.h.
41953         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41954         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41955         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41956         Change return type to 'int'. Return -1 upon out-of-memory.
41957         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41958         upon out-of-memory.
41959         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41960         NULL upon out-of-memory.
41961         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41962         upon out-of-memory.
41963         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41964         NULL upon out-of-memory.
41965         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41966         NULL upon out-of-memory.
41967         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41968         upon out-of-memory.
41969         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41970         (gl_sublist_list_implementation): Update.
41971         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41972         upon out-of-memory.
41973         * modules/sublist (Depends-on): Remove xalloc.
41974
41975         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41976         * tests/test-carray_list.c: Likewise.
41977         * tests/test-linked_list.c: Likewise.
41978         * tests/test-linkedhash_list.c: Likewise.
41979         * tests/test-avltree_list.c: Likewise.
41980         * tests/test-rbtree_list.c: Likewise.
41981         * tests/test-avltreehash_list.c: Likewise.
41982         * tests/test-rbtreehash_list.c: Likewise.
41983         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41984         * modules/carray-list-tests (Makefile.am): Likewise.
41985         * modules/linked-list-tests (Makefile.am): Likewise.
41986         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41987         * modules/avltree-list-tests (Makefile.am): Likewise.
41988         * modules/rbtree-list-tests (Makefile.am): Likewise.
41989         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41990         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41991
41992         * NEWS: Mention the changes.
41993
41994         * lib/clean-temp.c: Include gl_xlist.h.
41995         * modules/clean-temp (Depends-on): Add xlist.
41996
41997         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41998         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41999
42000         * tests/test-array_oset.c: Include gl_xlist.h.
42001         * modules/array-oset-tests (Depends-on): Add xlist.
42002
42003         Reported by José E. Marchesi <jemarch@gnu.org>.
42004
42005 2009-12-13  Bruno Haible  <bruno@clisp.org>
42006
42007         Move the malloc checking from module 'oset' to new module 'xoset'.
42008         * modules/xoset: New file.
42009         * lib/gl_xoset.h: New file.
42010         * lib/gl_xoset.c: New file.
42011         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42012         declarations.
42013         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42014         (struct gl_oset_implementation): Rename and change methods accordingly.
42015         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42016         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42017         'int'. Mark as __warn_unused_result__.
42018         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42019         gl_oset_create_empty.
42020         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42021         'int'.
42022         * lib/gl_array_oset.c: Don't include xalloc.h.
42023         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42024         malloc, not xmalloc.
42025         (grow): Change return type to 'int'. Don't call xalloc_die.
42026         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42027         to 'int'.
42028         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42029         'int'.
42030         (gl_array_oset_implementation): Update.
42031         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42032         gl_tree_create_empty.
42033         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42034         'int'.
42035         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42036         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42037         xmalloc.
42038         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42039         not xmalloc.
42040         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42041         xmalloc.
42042         (gl_avltree_oset_implementation): Update.
42043         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42044         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42045         xmalloc.
42046         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42047         not xmalloc.
42048         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42049         xmalloc.
42050         (gl_rbtree_oset_implementation): Update.
42051         * modules/array-oset (Depends-on): Remove xalloc.
42052         * modules/avltree-oset (Depends-on): Likewise.
42053         * modules/rbtree-oset (Depends-on): Likewise.
42054         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42055         * tests/test-avltree_oset.c: Likewise.
42056         * tests/test-rbtree_oset.c: Likewise.
42057         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42058         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42059         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42060         * NEWS: Mention the change.
42061
42062 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42063
42064         maint.mk: allow a project to override release-prep commands
42065         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42066         commands into a new rule.
42067         (release-prep): New rule.
42068         (release-prep-hook): New overridable variable.
42069
42070 2009-12-13  Bruno Haible  <bruno@clisp.org>
42071
42072         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42073
42074 2009-12-13  Jim Meyering  <meyering@redhat.com>
42075
42076         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42077         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42078
42079 2009-12-12  Bruno Haible  <bruno@clisp.org>
42080
42081         duplocale: Tweak.
42082         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42083
42084 2009-12-12  Karl Berry  <karl@gnu.org>
42085
42086         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42087
42088 2009-12-12  Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/po.m4: Undo incorrect untabification.
42091
42092 2009-12-12  Bruno Haible  <bruno@clisp.org>
42093
42094         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42095         * modules/c-strtod (Depends-on): Add locale.
42096         * modules/c-strtold (Depends-on): Likewise.
42097
42098 2009-12-12  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42101
42102 2009-12-11  Eric Blake  <ebb9@byu.net>
42103
42104         setenv: relax requirement in light of POSIX ruling
42105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42106         not NULL.
42107         * tests/test-setenv.c (main): Relax test.
42108         * tests/test-unsetenv.c (main): Likewise.
42109         * doc/posix-functions/setenv.texi (setenv): Document this.
42110         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42111
42112 2009-12-11  Bruno Haible  <bruno@clisp.org>
42113
42114         New module 'fd-safer-flag'.
42115         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42116         * lib/dup-safer.c (dup_safer_flag): Remove function.
42117         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42118         * lib/fd-safer.c (fd_safer_flag): Remove function.
42119         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42120         * modules/cloexec (configure.ac): Drop indicator macro.
42121         * modules/fd-safer-flag: New file.
42122         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42123         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42124         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42125
42126 2009-12-11  Bruno Haible  <bruno@clisp.org>
42127
42128         Tests for module 'nl_langinfo'.
42129         * modules/nl_langinfo-tests: New file.
42130         * tests/test-nl_langinfo.sh: New file.
42131         * tests/test-nl_langinfo.c: New file.
42132
42133         New module 'nl_langinfo'.
42134         * lib/nl_langinfo.c: New file.
42135         * m4/nl_langinfo.m4: New file.
42136         * modules/nl_langinfo: New file.
42137         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42138
42139 2009-12-11  Bruno Haible  <bruno@clisp.org>
42140
42141         Tests for module 'langinfo'.
42142         * modules/langinfo-tests: New file.
42143         * tests/test-langinfo.c: New file.
42144
42145         New module 'langinfo'.
42146         * lib/langinfo.in.h: New file.
42147         * m4/langinfo_h.m4: New file.
42148         * modules/langinfo: New file.
42149         * doc/posix-headers/langinfo.texi: Mention the new module.
42150
42151 2009-12-11  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/config.charset: Untabify.
42154
42155 2009-12-11  Bruno Haible  <bruno@clisp.org>
42156
42157         * modules/unistd-safer (configure.ac): Drop indicator macro.
42158
42159 2009-12-11  Bruno Haible  <bruno@clisp.org>
42160
42161         Move pipe2-safer code to its own file.
42162         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42163         * lib/pipe-safer.c (pipe2_safer): Remove function.
42164         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42165         (Makefile.am): Add it to lib_SOURCES.
42166
42167 2009-12-10  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42170
42171 2009-12-10  Bruno Haible  <bruno@clisp.org>
42172
42173         Declare which arguments expect non-NULL values, for GCC and clang.
42174         * build-aux/arg-nonnull.h: New file.
42175         * modules/arg-nonnull: New file.
42176         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42177         (inet_ntop, inet_pton): Use it.
42178         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42179         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42180         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42181         (open, openat): Use it.
42182         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42183         (fnmatch): Use it.
42184         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42185         (getopt, getopt_long, getopt_long_only): Use it.
42186         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42187         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42188         Use it.
42189         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42190         (iconv_open): Use it.
42191         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42192         (strtoimax, strtoumax): Use it.
42193         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42194         (duplocale): Use it.
42195         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42196         (frexp, frexpl): Use it.
42197         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42198         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42199         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42200         (tsearch, tfind, tdelete, twalk): Use it.
42201         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42202         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42203         sigpending): Use it.
42204         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42205         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42206         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42207         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42208         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42209         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42210         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42211         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42212         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42213         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42214         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42215         Use it.
42216         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42217         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42218         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42219         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42220         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42221         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42222         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42223         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42224         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42225         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42226         strtoull, unsetenv): Use it.
42227         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42228         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42229         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42230         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42231         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42232         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42233         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42234         (strcasecmp, strncasecmp): Use it.
42235         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42236         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42237         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42238         rpl_setsockopt): Use it.
42239         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42240         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42241         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42242         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42243         (gettimeofday): Use it.
42244         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42245         (times): Use it.
42246         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42247         (uname): Use it.
42248         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42249         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42250         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42251         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42252         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42253         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42254         unlinkat, write): Use it.
42255         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42256         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42257         * lib/argv-iter.h: Include arg-nonnull.h.
42258         (_ATTRIBUTE_NONNULL_): Remove macro.
42259         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42260         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42261         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42262         optimization.
42263         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42264         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42265         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42266         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42267         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42268         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42269         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42270         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42271         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42272         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42273         * modules/dirent (Depends-on): Add arg-nonnull.
42274         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42275         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42276         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42277         * modules/fnmatch (Depends-on): Add arg-nonnull.
42278         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42279         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42280         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42281         * modules/glob (Depends-on): Add arg-nonnull.
42282         (Makefile.am): Insert arg-nonnull.h into glob.h.
42283         * modules/iconv_open (Depends-on): Add arg-nonnull.
42284         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42285         * modules/inttypes (Depends-on): Add arg-nonnull.
42286         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42287         * modules/locale (Depends-on): Add arg-nonnull.
42288         (Makefile.am): Insert arg-nonnull.h into locale.h.
42289         * modules/math (Depends-on): Add arg-nonnull.
42290         (Makefile.am): Insert arg-nonnull.h into math.h.
42291         * modules/netdb (Depends-on): Add arg-nonnull.
42292         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42293         * modules/search (Depends-on): Add arg-nonnull.
42294         (Makefile.am): Insert arg-nonnull.h into search.h.
42295         * modules/signal (Depends-on): Add arg-nonnull.
42296         (Makefile.am): Insert arg-nonnull.h into signal.h.
42297         * modules/spawn (Depends-on): Add arg-nonnull.
42298         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42299         * modules/stdio (Depends-on): Add arg-nonnull.
42300         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42301         * modules/stdlib (Depends-on): Add arg-nonnull.
42302         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42303         * modules/string (Depends-on): Add arg-nonnull.
42304         (Makefile.am): Insert arg-nonnull.h into string.h.
42305         * modules/strings (Depends-on): Add arg-nonnull.
42306         (Makefile.am): Insert arg-nonnull.h into strings.h.
42307         * modules/sys_socket (Depends-on): Add arg-nonnull.
42308         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42309         * modules/sys_stat (Depends-on): Add arg-nonnull.
42310         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42311         * modules/sys_time (Depends-on): Add arg-nonnull.
42312         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42313         * modules/sys_times (Depends-on): Add arg-nonnull.
42314         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42315         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42316         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42317         * modules/time (Depends-on): Add arg-nonnull.
42318         (Makefile.am): Insert arg-nonnull.h into time.h.
42319         * modules/unistd (Depends-on): Add arg-nonnull.
42320         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42321         * modules/wchar (Depends-on): Add arg-nonnull.
42322         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42323         * modules/argv-iter (Depends-on): Add arg-nonnull.
42324         * tests/test-canonicalize.c (null_ptr): New function.
42325         (main): Use it.
42326         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42327         (main): Use it.
42328         * tests/test-memmem.c (null_ptr): New function.
42329         (main): Use it.
42330         Reported by Jim Meyering.
42331
42332 2009-12-10  Bruno Haible  <bruno@clisp.org>
42333
42334         Use spaces for indentation, not tabs.
42335         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42336         * m4/*.m4: Untabify.
42337         * build-aux/*.h: Untabify.
42338         * tests/**/*.[hc]: Untabify.
42339         * README: New section "Indent with spaces, not TABs", based on
42340         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42341         * NEWS: Mention the change.
42342
42343 2009-12-10  Bruno Haible  <bruno@clisp.org>
42344
42345         pty test: Fix link error.
42346         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42347         test_pty_LDADD.
42348
42349 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42350
42351         * modules/pty: New file.
42352         * modules/pty-tests: New file.
42353         * m4/pty.m4: New file.
42354         * tests/test-pty.c: New file.
42355         * doc/glibc-headers/pty.texi: Modified.
42356         * doc/glibc-functions/forkpty.texi: Modified.
42357         * doc/glibc-functions/openpty.texi: Modified.
42358
42359 2009-12-10  Bruno Haible  <bruno@clisp.org>
42360
42361         Avoid syntax error in C++ mode.
42362         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42363
42364 2009-12-10  Bruno Haible  <bruno@clisp.org>
42365
42366         Use sed with option -e.
42367         * gnulib-tool (func_version, func_emit_copyright_notice,
42368         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42369         option -e to sed.
42370         * modules/link-warning (Makefile.am): Likewise.
42371
42372 2009-12-10  Jim Meyering  <meyering@redhat.com>
42373
42374         mgetgroups: do not write bytes beyond end of malloc'd buffer
42375         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42376         username, we call getgroups with a one-element-shorter buffer,
42377         but still told it the length was original, max_n_groups.
42378
42379 2009-12-09  Eric Blake  <ebb9@byu.net>
42380
42381         cloexec: relax license
42382         * modules/cloexec (Maintainer): Add myself.
42383         (License): Use LGPL, not GPL.
42384
42385         link-warning: optimize generation
42386         * modules/link-warning (Makefile.am): Reduce process usage.
42387
42388 2009-12-09  Bruno Haible  <bruno@clisp.org>
42389
42390         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42391         workaround was added on 2009-11-17.
42392
42393 2009-12-09  Jim Meyering  <meyering@redhat.com>
42394             Bruno Haible  <bruno@clisp.org>
42395
42396         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42397         * modules/link-warning (Makefile.am): Make the comment-removing sed
42398         command more robust in the face of bootstrap-prepended comment lines.
42399
42400 2009-12-09  Bruno Haible  <bruno@clisp.org>
42401
42402         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42403         most one group.
42404
42405 2009-12-09  Simon Josefsson <simon@josefsson.org>
42406             Bruno Haible  <bruno@clisp.org>
42407
42408         * build-aux/link-warning.h: Add copyright notice.
42409         * modules/link-warning (Makefile.am): Generate link-warning.h from
42410         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42411         * NEWS: Mention change in link-warning module.
42412         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42413         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42414         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42415         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42416         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42417         * modules/math (Makefile.am): Add dependency to math.h.
42418         * modules/search (Makefile.am): Add dependency to search.h.
42419         * modules/signal (Makefile.am): Add dependency to signal.h.
42420         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42421         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42422         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42423         * modules/string (Makefile.am): Add dependency to string.h.
42424         * modules/strings (Makefile.am): Add dependency to strings.h.
42425         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42426         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42427         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42428         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42429         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42430         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42431         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42432         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42433         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42434
42435 2009-12-09  Bruno Haible  <bruno@clisp.org>
42436
42437         fchdir: Optimize away rpl_fstat when possible.
42438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42439         REPLACE_OPEN_DIRECTORY.
42440         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42441
42442 2009-12-09  Bruno Haible  <bruno@clisp.org>
42443
42444         * lib/fchdir.c: Update comment.
42445
42446 2009-12-09  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42449
42450 2009-12-08  Eric Blake  <ebb9@byu.net>
42451
42452         fchdir: avoid memory leak on re-registration.
42453         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42454
42455 2009-12-08  Jim Meyering  <meyering@redhat.com>
42456
42457         init.sh: avoid Solaris 10 /bin/sh portability problem
42458         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42459         sourced script:
42460           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42461           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42462           bar
42463         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42464         and two tests used that idiom.
42465         * tests/init.sh: Update suggested usage comments.
42466         (path_prepend_): New function, to be used in place
42467         of the --src-path=DIR option.
42468         (setup_): Move PATH-prepending code into path_prepend_.
42469         * tests/test-pread.sh: Adapt to new usage.
42470         * tests/test-xalloc-die.sh: Likewise.
42471
42472 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42473
42474         * doc/gnulib.texi (Glibc pty.h): Add.
42475         * doc/glibc-functions/forkpty.texi: Add.
42476         * doc/glibc-functions/openpty.texi: Add.
42477         Suggested by Bruno Haible.
42478
42479 2009-12-08  Eric Blake  <ebb9@byu.net>
42480
42481         fchdir: fix logic bugs
42482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42483         * tests/test-fchdir.c (main): Enhance test.
42484         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42485         is in use.
42486
42487         dup2: fix logic bugs
42488         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42489         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42490         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42491         exists.
42492         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42493
42494 2009-12-07  Eric Blake  <ebb9@byu.net>
42495
42496         unlink: fix m4 detection
42497         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42498
42499         unistd-safer: add unit test
42500         * modules/unistd-safer-tests: New file.
42501         * tests/test-dup-safer.c: Likewise.
42502         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42503         * tests/test-dup2.c (setmode): Likewise.
42504         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42505
42506         cloexec: preserve text vs. binary across dup_cloexec
42507         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42508         mode.
42509         * modules/dup2-tests (Depends-on): Add binary-io.
42510         * modules/cloexec-tests (Depends-on): Likewise.
42511         * tests/test-dup2.c (setmode, is_mode): New helpers.
42512         (main): Add tests that translation mode is preserved.
42513         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42514         Reported by Bruno Haible.
42515
42516         mgetgroups: reduce duplicate listings
42517         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42518         resulting array.
42519         * tests/test-chown.h (test_chown): Simplify client.
42520         * tests/test-lchown.h (test_lchown): Likewise.
42521
42522 2009-12-06  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42525         value.
42526
42527 2009-12-06  Bruno Haible  <bruno@clisp.org>
42528
42529         * lib/progname.c: Include stdio.h, stdlib.h.
42530         (set_program_name): Reject a NULL argument.
42531
42532 2009-12-05  Eric Blake  <ebb9@byu.net>
42533
42534         pipe2-safer: new module
42535         * modules/pipe2-safer: New file.
42536         * lib/unistd-safer.h (pipe2_safer): New prototype.
42537         * lib/unistd--.h (pipe2): New wrapper.
42538         * lib/pipe-safer.c (pipe2_safer): New function.
42539         * modules/pipe (Depends-on): Add pipe2-safer.
42540         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42541
42542         stdlib-safer: preserve cloexec flag for mkostemp[s]
42543         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42544         fd_safer_flag.
42545
42546         unistd-safer: allow preservation of cloexec status via flag
42547         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42548         prototypes.
42549         * lib/dup-safer.c (dup_safer_flag): New function.
42550         * lib/fd-safer.c (fd_safer_flag): Likewise.
42551         * modules/cloexec (configure.ac): Set witness.
42552
42553         test-dup2: enhance test
42554         * modules/dup2-tests (Depends-on): Add cloexec.
42555         * tests/test-dup2.c (main): Enhance test.
42556
42557         cloexec: add dup_cloexec
42558         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42559         header and comments.
42560         * lib/cloexec.c (set_cloexec_flag): Add comments.
42561         (dup_cloexec): New function, with mingw implementation borrowed
42562         from...
42563         * lib/w32spawn.h (dup_noinherit): ...here.
42564         * modules/execute (Depends-on): Add cloexec.
42565         * modules/pipe (Depends-on): Likewise.
42566         * modules/cloexec (Depends-on): Add dup2.
42567         * modules/cloexec-tests (Files): New file.
42568         * tests/test-cloexec.c: Likewise.
42569
42570         test-xalloc-die: fix test for mingw
42571         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42572         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42573         directory and .exe suffix off argv[0] output.
42574
42575         test-fseeko: fix test for mingw
42576         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42577         than undefining fseek, so test will pass on mingw.
42578
42579 2009-12-05  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/progname.h (set_program_name): Clarify specification.
42582         * lib/progname.c (set_program_name): Likewise.
42583         Reported by Jim Meyering.
42584
42585 2009-12-05  Jim Meyering  <meyering@redhat.com>
42586
42587         maint.mk: backslash-escape parens in default regexp
42588         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42589         backslash-escape the literal parentheses.
42590
42591         maint.mk: news-date-check: use grep -E
42592         * top/maint.mk (today): Define a Make variable, not a...
42593         (news-date-check): ...shell variable.
42594         (news-date-regexp): Use the Make variable.
42595         Use grep's -E option.  Change the failing diagnostic to mention
42596         the variable, $(news-date-regexp).
42597
42598 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42599
42600         maintainer-makefile: allow customization of NEWS entry format
42601         * top/maint.mk (news-date-regexp): New overridable variable.
42602         (news-date-check): Use it.
42603
42604 2009-12-04  Eric Blake  <ebb9@byu.net>
42605
42606         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42607         * lib/mgetgroups.h (xgetgroups): New prototype.
42608         * lib/mgetgroups.c (xgetgroups): New wrapper.
42609         (mgetgroups): Handle ENOSYS.
42610         * modules/mgetgroups (Depends-on): Add realloc.
42611         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42612
42613         mgetgroups: avoid argument promotion issues with -1
42614         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42615         for invalid gid_t.
42616         * tests/test-chown.h (getegid, test_chown): Likewise.
42617         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42618
42619 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42620
42621         exclude: Fix header file problems.
42622         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42623
42624 2009-12-01  Jim Meyering  <meyering@redhat.com>
42625
42626         fts: fts_open: do not let an empty string cause immediate failure
42627         This is required in support of GNU rm, for which the command
42628         "rm A '' B" must process and remove both A and B, in spite of
42629         the empty string argument.
42630         * lib/fts.c (fts_open): Do not let the presence of an empty string
42631         cause fts_open to fail immediately.  Most fts-using tools must be
42632         able to process all arguments, in order, and can be expected to
42633         diagnose such arguments themselves.
42634
42635 2009-11-30  Eric Blake  <ebb9@byu.net>
42636
42637         utimens: fix compilation error
42638         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42639         Declare variable at right scope.
42640
42641 2009-11-29  Jim Meyering  <meyering@redhat.com>
42642
42643         bootstrap: handle perl-5.11's changed --version output
42644         * build-aux/bootstrap (get_version): Handle perl separately,
42645         since perl-5.11's --version output is different.
42646
42647 2009-11-28  Jim Meyering  <meyering@redhat.com>
42648
42649         userspec: depend on the inttostr module, too
42650         * modules/userspec (Depends-on): Add inttostr.
42651
42652         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42653         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42654         number of MAXUID when it evaluates to (uid_t) -1.
42655         Likewise for group ID.  Reported by Matt McCutchen in
42656         <http://savannah.gnu.org/bugs/?28113>
42657
42658         userspec: reformat to use spaces, not TABs
42659         * lib/userspec.c: Expand TABs to spaces.
42660         Add Emacs' "indent-tabs-mode: nil" hint.
42661
42662 2009-11-27  Eric Blake  <ebb9@byu.net>
42663
42664         getopt-gnu: flush out another BSD bug
42665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42666         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42667         flush out BSD bug.
42668         * tests/test-getopt.h (test_getopt): End lists with NULL.
42669         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42670         (test_getopt_long_posix): Enhance test.
42671         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42672         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42673         getopt-gnu.
42674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42675         Likewise.
42676
42677 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42678
42679         * modules/idpriv-droptemp-tests (Notice): Fix text.
42680
42681 2009-11-27  Jim Meyering  <meyering@redhat.com>
42682
42683         test-xalloc-die: avoid spurious failure due to libtool argv difference
42684         In a libtool-enabled project, this test would fail due to a difference
42685         in the emitted program name, e.g.,
42686         -test-xalloc-die: memory exhausted
42687         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42688         Use program to avoid that.
42689         * modules/xalloc-die-tests (Depends-on): Add progname.
42690         * tests/test-xalloc-die.c: Include progname.h".
42691         (program_name): Remove decl.
42692         (main): Call set_program_name.
42693         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42694
42695 2009-11-26  Richard Jones  <rjones@redhat.com>
42696
42697         w32sock: leave win32 error in place.
42698         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42699
42700 2009-11-26  Eric Blake  <ebb9@byu.net>
42701
42702         init.sh: suggest to use skip_ and fail_ functions in comments
42703         * tests/init.sh: Add a sentence.
42704
42705 2009-11-25  Bruno Haible  <bruno@clisp.org>
42706
42707         init.sh: add documentation in comments
42708         * tests/init.sh: Add some developer and user documentation.
42709
42710 2009-11-26  Jim Meyering  <meyering@redhat.com>
42711
42712         init.sh: accommodate even those who specify bogus srcdir manually
42713         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42714         configure-time tests to be sanitized, so that there is no need to
42715         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42716         (with no double quotes) suffices.  However, since tests may be
42717         invoked manually, and since you may explicitly set srcdir to the
42718         name of a directory containing spaces, do quote its uses here.
42719         * tests/test-pread.sh: Likewise.
42720         Suggested by Bruno Haible.
42721
42722         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42723         * tests/test-pread.sh: Write no data into the pipe, because
42724         test-pread actually reads none.  This avoids a diagnostic,
42725         "bash: echo: write error: Broken pipe", that arises in the unusual
42726         event something is ignoring SIGPIPE, and might be interpreted
42727         as some sort of failure.  Reported by Bruno Haible.
42728
42729 2009-11-25  Jim Meyering  <meyering@redhat.com>
42730
42731         test-pread: cover failure with ESPIPE and EINVAL
42732         * tests/test-pread.c (main): Test for failure, too.
42733         * tests/test-pread.sh: Invoke with stdin on a pipe.
42734         Suggested by Eric Blake.
42735
42736         pread: improvement and fix
42737         * modules/pread (Depends-on): Depend on lseek, for portability to
42738         e.g., mingw.  Suggested by Eric Blake.
42739         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42740
42741         unistd.in.h: correct declaration of pread
42742         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42743         Reported by Richard W.M. Jones.
42744
42745         test-pread.sh: distribute the test script
42746         * modules/pread-tests (Files): Include test-pread.sh.
42747
42748         test-pread.sh: clean up
42749         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42750         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42751         That is unnecessary, since it's always ".".
42752         Suggestion from Eric Blake.
42753
42754         test-pread.sh: make executable
42755         * tests/test-pread.sh: Set executable bit.
42756         Reported by Eric Blake.
42757
42758         correct typo in test-pread.sh
42759         * tests/test-pread.sh: Add #! line.
42760
42761         test pread
42762         * tests/test-pread.c: New file.
42763         * tests/test-pread.sh: Likewise.
42764         * modules/pread-tests: Likewise.
42765
42766         pread: new module
42767         * modules/pread: New file.
42768         * lib/unistd.in.h (pread): Define/declare.
42769         * lib/pread.c (pread): New file.
42770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42771         * modules/unistd (Makefile.am): Substitute witnesses.
42772         * doc/posix-functions/pread.texi (pread): Update.
42773         * MODULES.html.sh: Add pread.
42774
42775 2009-11-25  Jim Meyering  <meyering@redhat.com>
42776
42777         tests/init.sh: new file to be used via most *.sh tests
42778         * tests/init.sh: New file.
42779
42780 2009-11-25  Eric Blake  <ebb9@byu.net>
42781
42782         utimens: work around older Linux failure with symlinks
42783         * lib/utimens.c (lutimensat_works_really): New variable.
42784         (fdutimens, lutimens): Use it to manage kernels that support
42785         nanosecond times on files, but not on symlinks.
42786         Reported by Ondřej Vašík.
42787
42788         utimes: fix configure grammar
42789         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42790
42791 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42792
42793         regex: Fix fastmap for multibyte character ranges.
42794         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42795         characters when a multibyte character range is included.
42796
42797 2009-11-22  Andy Wingo  <wingo@pobox.com>
42798
42799         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42800         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42801
42802 2009-11-24  Bruno Haible  <bruno@clisp.org>
42803
42804         doc: Most *_l functions exist in MacOS X 10.5.
42805         * doc/posix-functions/duplocale.texi: Update platforms list.
42806         * doc/posix-functions/freelocale.texi: Likewise.
42807         * doc/posix-functions/newlocale.texi: Likewise.
42808         * doc/posix-functions/uselocale.texi: Likewise.
42809         * doc/posix-functions/isalnum_l.texi: Likewise.
42810         * doc/posix-functions/isalpha_l.texi: Likewise.
42811         * doc/posix-functions/isblank_l.texi: Likewise.
42812         * doc/posix-functions/iscntrl_l.texi: Likewise.
42813         * doc/posix-functions/isdigit_l.texi: Likewise.
42814         * doc/posix-functions/isgraph_l.texi: Likewise.
42815         * doc/posix-functions/islower_l.texi: Likewise.
42816         * doc/posix-functions/isprint_l.texi: Likewise.
42817         * doc/posix-functions/ispunct_l.texi: Likewise.
42818         * doc/posix-functions/isspace_l.texi: Likewise.
42819         * doc/posix-functions/isupper_l.texi: Likewise.
42820         * doc/posix-functions/iswalnum_l.texi: Likewise.
42821         * doc/posix-functions/iswalpha_l.texi: Likewise.
42822         * doc/posix-functions/iswblank_l.texi: Likewise.
42823         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42824         * doc/posix-functions/iswctype_l.texi: Likewise.
42825         * doc/posix-functions/iswdigit_l.texi: Likewise.
42826         * doc/posix-functions/iswgraph_l.texi: Likewise.
42827         * doc/posix-functions/iswlower_l.texi: Likewise.
42828         * doc/posix-functions/iswprint_l.texi: Likewise.
42829         * doc/posix-functions/iswpunct_l.texi: Likewise.
42830         * doc/posix-functions/iswspace_l.texi: Likewise.
42831         * doc/posix-functions/iswupper_l.texi: Likewise.
42832         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42833         * doc/posix-functions/isxdigit_l.texi: Likewise.
42834         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42835         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42836         * doc/posix-functions/strcoll_l.texi: Likewise.
42837         * doc/posix-functions/strfmon_l.texi: Likewise.
42838         * doc/posix-functions/strftime_l.texi: Likewise.
42839         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42840         * doc/posix-functions/strxfrm_l.texi: Likewise.
42841         * doc/posix-functions/tolower_l.texi: Likewise.
42842         * doc/posix-functions/toupper_l.texi: Likewise.
42843         * doc/posix-functions/towctrans_l.texi: Likewise.
42844         * doc/posix-functions/towlower_l.texi: Likewise.
42845         * doc/posix-functions/towupper_l.texi: Likewise.
42846         * doc/posix-functions/wcscoll_l.texi: Likewise.
42847         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42848         * doc/posix-functions/wctrans_l.texi: Likewise.
42849         * doc/posix-functions/wctype_l.texi: Likewise.
42850         * doc/glibc-functions/strptime_l.texi: Likewise.
42851         * doc/glibc-functions/strtod_l.texi: Likewise.
42852         * doc/glibc-functions/strtof_l.texi: Likewise.
42853         * doc/glibc-functions/strtol_l.texi: Likewise.
42854         * doc/glibc-functions/strtold_l.texi: Likewise.
42855         * doc/glibc-functions/strtoll_l.texi: Likewise.
42856         * doc/glibc-functions/strtoul_l.texi: Likewise.
42857         * doc/glibc-functions/strtoull_l.texi: Likewise.
42858         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42859         * doc/glibc-functions/wcstod_l.texi: Likewise.
42860         * doc/glibc-functions/wcstof_l.texi: Likewise.
42861         * doc/glibc-functions/wcstol_l.texi: Likewise.
42862         * doc/glibc-functions/wcstold_l.texi: Likewise.
42863         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42864         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42865         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42866
42867 2009-11-24  Bruno Haible  <bruno@clisp.org>
42868
42869         duplocale: Fix logic bug.
42870         * lib/duplocale.c: Don't include <langinfo.h>.
42871         (_NL_LOCALE_NAME): Remove macro.
42872         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42873         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42874
42875 2009-11-23  Jim Meyering  <meyering@redhat.com>
42876
42877         test-update-copyright: don't hard-code /usr/bin/perl
42878         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42879         perl to print the current year.  Gilles Espinasse reported that
42880         the replaced use of perl was hard-coded as /usr/bin/perl.
42881
42882 2009-11-23  Bruno Haible  <bruno@clisp.org>
42883
42884         duplocale: Add support for glibc 2.3.x.
42885         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42886
42887 2009-11-22  Bruno Haible  <bruno@clisp.org>
42888
42889         vasnprintf: Tiny optimization.
42890         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42891         MacOS X.
42892
42893 2009-11-22  Bruno Haible  <bruno@clisp.org>
42894
42895         Tests for module 'duplocale'.
42896         * modules/duplocale-tests: New file.
42897         * tests/test-duplocale.c: New file.
42898
42899         New module 'duplocale'.
42900         * m4/duplocale.m4: New file.
42901         * lib/locale.in.h (duplocale): New declaration.
42902         * lib/duplocale.c: New file.
42903         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42904         gl_LOCALE_H_DEFAULTS): New macros.
42905         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42906         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42907         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42908         REPLACE_DUPLOCALE.
42909         * modules/duplocale: New file.
42910         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42911
42912 2009-11-22  Bruno Haible  <bruno@clisp.org>
42913
42914         * modules/locale-tests (configure.ac): Test for newlocale function.
42915         * tests/test-locale.c: When the system has extended locale functions,
42916         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42917
42918         locale: Make locale_t available when possible.
42919         * lib/locale.in.h: Include <xlocale.h> when it exists.
42920         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42921         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42922         * modules/locale (Depends-on): Add extensions.
42923         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42924         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42925
42926 2009-11-22  Bruno Haible  <bruno@clisp.org>
42927
42928         Add comments.
42929         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42930         invocation.
42931         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42932         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42933         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42934
42935 2009-11-22  Bruno Haible  <bruno@clisp.org>
42936
42937         error: account for the possibility of freopen (stdout).
42938         * lib/error.c: Include <unistd.h>.
42939         (flush_stdout): New function, extracted from error and error_at_line.
42940         Determine stdout's fd dynamically.
42941         (error, error_at_line): Invoke flush_stdout.
42942         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42943         * modules/error (Depends-on): Add unistd.
42944
42945 2009-11-22  Bruno Haible  <bruno@clisp.org>
42946
42947         diffseq: Add comment.
42948         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42949
42950 2009-11-22  Jim Meyering  <meyering@redhat.com>
42951
42952         c-stack: avoid defining an unused static function
42953         * lib/c-stack.c (find_stack_direction): Do not define this function
42954         when it will not be used.
42955
42956         diffseq: avoid spurious gcc warnings
42957         * lib/diffseq.h (IF_LINT2): Define.
42958         (compareseq): Use it to initialize two members of "part".
42959         This avoids two used-uninitialized warnings.
42960
42961 2009-11-21  Jim Meyering  <meyering@redhat.com>
42962
42963         c-stack: avoid "ignoring return value of `write'" warning
42964         * lib/c-stack.c: Include "ignore-value.h".
42965         (die): Explicitly ignore each write return value.
42966         * modules/c-stack (Depends-on): Add ignore-value.
42967
42968 2009-11-21  Bruno Haible  <bruno@clisp.org>
42969
42970         diffseq: reduce scope of variable 'best'.
42971         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42972         variable, earlier used for two different purposes.
42973
42974 2009-11-21  Jim Meyering  <meyering@redhat.com>
42975
42976         diffseq: remove useless assignment to "best"
42977         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42978         assignment.  At that point "best" is already guaranteed to be zero.
42979
42980 2009-11-20  Eric Blake  <ebb9@byu.net>
42981
42982         build: mention ftp redirector in release announcements
42983         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42984         values that used to come from cfg.mk; mention FTP redirect URL.
42985         * build-aux/announce-gen: Mention the mirror list.
42986         Suggested by Karl Berry.
42987
42988         nanosleep: improve port to mingw
42989         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42991         LIB_NANOSLEEP, but only when needed.
42992         * modules/select (Link): Document LIBSOCKET.
42993         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42994         enough.
42995
42996         nanosleep: work around cygwin bug
42997         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42998         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42999         bug.
43000         (getnow): Delete, not needed.
43001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43002         LIB_CLOCK_GETTIME.
43003         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43004         clock-time, gettime.
43005         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43006         bug.
43007         * modules/nanosleep-tests: New test.
43008         * tests/test-nanosleep.c: New file.
43009
43010         sleep: work around cygwin bug
43011         * lib/sleep.c (rpl_sleep): Work around the bug.
43012         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43013         (gl_PREREQ_SLEEP): Delete unused macro.
43014         * modules/sleep (Depends-on): Add verify.
43015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43016         * modules/unistd (Makefile.am): Substitute witness.
43017         * lib/unistd.in.h (sleep): Update prototype.
43018         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43019         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43020         * modules/sleep-tests (Depends-on): Check for alarm.
43021
43022 2009-11-20  Jim Meyering  <meyering@redhat.com>
43023
43024         maint.mk: improve sc_prohibit_magic_number_exit
43025         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43026         so it does not match uses like System.exit(1).
43027         Add comments showing how to correct all offenders.
43028
43029 2009-11-19  Eric Blake  <ebb9@byu.net>
43030
43031         xalloc-die-tests: add missing library
43032         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43033
43034         test-xvasprintf: silence compiler warnings
43035         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43036         empty string from gcc.
43037
43038 2009-11-19  Jim Meyering  <meyering@redhat.com>
43039
43040         xfreopen: new module, from coreutils
43041         * modules/xfreopen: New module.
43042         * lib/xfreopen.c: New file.
43043         * lib/xfreopen.h: New file.
43044         * MODULES.html.sh (File stream based Input/Output"): Add it.
43045
43046 2009-11-19  Eric Blake  <ebb9@byu.net>
43047
43048         manywarnings: depend on warnings
43049         * modules/manywarnings (Depends-on): Add warnings.
43050
43051         build: avoid compiler warnings
43052         * lib/select.c (rpl_select): Delete unused variable.
43053         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43054
43055 2009-11-18  Eric Blake  <ebb9@byu.net>
43056
43057         tests: avoid false negative with --with-packager
43058         * tests/test-version-etc.sh: Discard packager information.
43059         * tests/test-argp-version-etc-1.sh: Likewise.
43060         Reported by Mike Frysinger.
43061
43062         utimens: fix regression on Solaris
43063         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43064         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43065         can only change fd timestamps via futimesat.  Instead, use an
43066         additional witness macro to avoid BSD bug.
43067         Reported by Jim Meyering.
43068
43069 2009-11-17  Eric Blake  <ebb9@byu.net>
43070
43071         usleep: use it to simplify tests
43072         * modules/stat-time-tests (Depends-on): Add usleep.
43073         (configure.ac): Drop usleep check.
43074         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43075         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43076         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43077         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43078         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43079         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43080         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43081         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43082         Likewise.
43083         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43084         * tests/test-lchown.h (nap): Likewise.
43085         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43086         * tests/test-stat-time.c (nap): Likewise.
43087         * tests/test-utimens-common.h (nap): Update comments.
43088
43089         usleep: new module
43090         * modules/usleep: New file.
43091         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43092         * lib/usleep.c (usleep): Likewise.
43093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43094         * modules/unistd (Makefile.am): Substitute witnesses.
43095         * lib/unistd.in.h (usleep): Add declaration.
43096         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43097         * MODULES.html.sh (Date and time): Likewise.
43098         * modules/usleep-tests (Depends-on): New test.
43099         * tests/test-usleep.c: New file.
43100
43101         chown: work around OpenBSD bug
43102         * lib/chown.c (rpl_chown): Work around the bug.
43103         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43104         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43105         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43106         * modules/chown (Depends-on): Add stdbool.
43107         * modules/lchown (Depends-on): Likewise.
43108         * doc/posix-functions/chown.texi (chown): Document the bug.
43109         * doc/posix-functions/lchown.texi (lchown): Likewise.
43110         * tests/test-lchown.h (test_chown): Relax test.
43111
43112         mkstemp: avoid conflict with C++ keyword template
43113         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43114         * lib/mkostemp.c (mkostemp): Likewise.
43115         * lib/mkostemps.c (mkostemps): Likewise.
43116         * lib/mkstemp.c (mkstemp): Likewise.
43117         * lib/mkstemps.c (mkstemps): Likewise.
43118
43119         xalloc-die-tests: optimize
43120         * tests/test-xalloc-die.sh: Reduce number of processes.
43121
43122 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43123
43124         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43125         patch from ludo@gnu.org (Ludovic Courtès).
43126
43127 2009-11-17  Jim Meyering  <meyering@redhat.com>
43128
43129         version-etc: use proper license string
43130         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43131         * modules/version-etc-fsf: Likewise.
43132
43133 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43134
43135         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43136         printed to stdout.  Deal with EOL differences.
43137
43138 2009-11-17  Eric Blake  <ebb9@byu.net>
43139
43140         unsetenv: work around Solaris bug
43141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43142         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43143         Reported by Jim Meyering.
43144
43145         vasnprintf: avoid compiler warnings
43146         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43147         variables.
43148         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43149
43150 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43151
43152         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43153         settings since xalloc-die is no longer the self test,
43154         xalloc-die.sh is.
43155
43156 2009-11-17  Jim Meyering  <meyering@redhat.com>
43157
43158         test-xalloc-die.sh: make the code agree with the commit log
43159         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43160         at the end, just in case you happen to have a test-xalloc-die
43161         program in some other PATH directory.
43162
43163         test-xalloc-die.sh: fix a portability bug
43164         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43165         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43166         Otherwise, argv[0] (as often seen in diagnostics) would be too
43167         system-dependent, sometimes with, and sometimes without the leading "./".
43168
43169         version-etc-fsf: relax license to LGPLv3+
43170         * modules/version-etc-fsf (License): Relax license.
43171
43172 2009-11-16  Eric Blake  <ebb9@byu.net>
43173
43174         xalloc-die-tests: avoid printing null pointer
43175         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43176         shell script.
43177         * tests/test-xalloc-die.c (program_name): Declare.
43178         * tests/test-xalloc-die.sh (tmpfiles): New file.
43179
43180         setenv, unsetenv: work around various bugs
43181         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43182         (setenv) [HAVE_SETENV]: Work around bugs.
43183         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43185         for bugs.
43186         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43187         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43189         * modules/stdlib (Makefile.am): Update substitutions.
43190         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43191         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43192         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43193         * modules/setenv-tests: New test.
43194         * modules/unsetenv-tests: Likewise.
43195         * tests/test-setenv.c: New file.
43196         * tests/test-unsetenv.c: Likewise.
43197
43198 2009-11-16  Jim Meyering  <meyering@redhat.com>
43199
43200         version-etc: relax license to LGPLv3+
43201         * modules/version-etc (License): Relax license.
43202
43203         better AC_REQUIRE expanded-before-required-warning avoidance
43204         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43205         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43206         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43207         which is no longer needed.
43208
43209 2009-11-16  Eric Blake  <ebb9@byu.net>
43210
43211         test-freading: clean up temporary file
43212         * tests/test-freading.c (main): Remove file on success, and use
43213         ASSERT more liberally.
43214         Reported by Jim Meyering.
43215
43216 2009-11-16  Jim Meyering  <meyering@redhat.com>
43217
43218         avoid new AC_REQUIRE expanded-before-required warnings
43219         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43220         merely using it.
43221         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43222         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43223
43224 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43225
43226         * tests/test-xalloc-die.c: New file.
43227         * modules/xalloc-die-tests: New file.
43228         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43229         XFAIL_TESTS so it can be appended by modules.
43230
43231 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43232
43233         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43234         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43235
43236 2009-11-14  Eric Blake  <ebb9@byu.net>
43237
43238         fnmatch: avoid compiler warning
43239         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43240         to silence compiler warning about mismatch signedness in ?:.
43241         Reported by Robert Millan.
43242
43243         intprops: add double-inclusion guard
43244         * lib/intprops.h: Allow idempotent includes.
43245         Suggested by Bruce Korb.
43246
43247         openat: detect Solaris fchownat bug
43248         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43249         penalizing glibc chownat when only lchownat is broken.
43250         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43251         trailing slash bugs.
43252         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43253         * modules/openat-tests (Files): Include more files.
43254         (Depends-on): Add mgetgroups, sleep, stat-time.
43255         (configure.ac): Add additional checks.
43256         (Makefile.am): Build new test.
43257         * tests/test-fchownat.c: New file.
43258
43259         lchown: detect Solaris and FreeBSD bug
43260         * lib/lchown.c (rpl_lchown): Work around bug.
43261         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43263         * modules/unistd (Makefile.am): Populate it.
43264         * lib/unistd.in.h (lchown): Update declaration.
43265         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43266         * modules/lchown-tests: New file.
43267         * tests/test-lchown.h (test_lchown): Likewise.
43268         * tests/test-lchown.c (main): Likewise.
43269
43270         chown: detect Solaris and FreeBSD bug
43271         * lib/chown.c (rpl_chown): Work around bug.
43272         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43273         (gl_PREREQ_CHOWN): Delete.
43274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43275         * modules/unistd (Makefile.am): Populate it.
43276         * lib/unistd.in.h (chown): Update declaration.
43277         * lib/lchown.c (chown): Update client.
43278         * modules/lchown (Depends-on): Add lstat.
43279         * doc/posix-functions/chown.texi (chown): Document the bug.
43280         * doc/posix-functions/getgroups.texi (getgroups): Document
43281         getgroups pitfall.
43282         * modules/chown-tests: New file.
43283         * tests/test-chown.h (test_chown): Likewise.
43284         * tests/test-chown.c (main): Likewise.
43285
43286 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43287
43288         gnulib-tool: correctly detect absence of m4 directories
43289         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43290
43291 2009-11-14  Jim Meyering  <meyering@redhat.com>
43292
43293         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43294         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43295
43296 2009-11-14  John W. Eaton  <jwe@gnu.org>
43297
43298         strftime.h: wrap function declaration in extern "C" block
43299         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43300
43301 2009-11-13  Eric Blake  <ebb9@byu.net>
43302
43303         getgroups: avoid compiler warning
43304         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43305
43306         getgroups: work around FreeBSD bug
43307         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43308         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43309         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43310         * tests/test-getgroups.c (main): Fix buffer overrun.
43311
43312         getgroups: avoid compilation failure
43313         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43314         * modules/getgroups (Depends-on): Add stdint.
43315
43316 2009-11-13  Jim Meyering  <meyering@redhat.com>
43317
43318         test-getgroups: avoid compilation failure
43319         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43320
43321 2009-11-13  Eric Blake  <ebb9@byu.net>
43322
43323         mgetgroups: new module, taken from coreutils
43324         * modules/mgetgroups: New file.
43325         * lib/mgetgroups.h: Likewise.
43326         * lib/mgetgroups.c (mgetgroups): Likewise.
43327         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43328         * MODULES.html.sh (Users and groups): Mention it.
43329
43330         getgroups: don't expose GETGROUPS_T to user
43331         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43332         an element at a time if GETGROUPS_T is wrong size.
43333         * lib/getugroups.h (getugroups): Change signature.
43334         * lib/unistd.in.h (getgroups): Likewise.
43335         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43336         signature needs fixing.
43337         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43338         AC_TYPE_GETGROUPS.
43339         * modules/group-member (Depends-on): Add getgroups.
43340         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43341         (group_member): Rely on getgroups replacement.
43342         * lib/getugroups.c (getugroups): Use gid_t.
43343         * tests/test-getgroups.c (main): Likewise.
43344         * NEWS: Mention the signature change.
43345         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43346         problem with signature.
43347         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43348         GETGROUPS_T is still useful for setgroups.
43349
43350         getgroups, getugroups: provide stubs for mingw
43351         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43352         * lib/getugroups.c (getugroups): Likewise.
43353         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43354         function.  Modernize replacement scheme.
43355         (gl_PREREQ_GETGROUPS): Delete.
43356         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43357         * modules/getgroups (configure.ac): Declare witness.
43358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43359         * modules/unistd (Depends-on): Substitute witness.
43360         * lib/unistd.in.h (getgroups): Declare replacement.
43361
43362         getgroups: avoid calling exit
43363         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43364         drop xalloc.
43365         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43366         dependencies.
43367         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43368         exiting, in the rare case of malloc failure.
43369
43370         getgroups: fix logic error
43371         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43372         has more than 20 groups.
43373         * modules/getgroups-tests: New test.
43374         * tests/test-getgroups.c: New file.
43375
43376 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43377
43378         * tests/test-base64.c: Improve.
43379
43380 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43381
43382         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43383         Blake <ebb9@byu.net>.
43384
43385 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43386
43387         * tests/test-xvasprintf.c: Add %s%s related checks.
43388
43389 2009-11-12  Eric Blake  <ebb9@byu.net>
43390
43391         version-etc: match standards.texi style
43392         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43393         and use <> only for URLs.
43394
43395 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43396
43397         fts: do not fail on a submount during traversal
43398         * lib/fts.c (fts_build): Read the stat info again after opening
43399         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43400         Original report at http://bugzilla.redhat.com/501848.
43401
43402 2009-11-12  Jim Meyering  <meyering@redhat.com>
43403
43404         bootstrap: sync from coreutils
43405         * build-aux/bootstrap (bootstrap_epilogue): New function.
43406         Use git_modules_config in one more place.  This make bootstrap's
43407         --gnulib-srcdir option more useful for testing.
43408
43409         bootstrap: generalize autoheader check
43410         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43411         AC_CONFIG_HEADERS.
43412
43413 2009-11-11  Eric Blake  <ebb9@byu.net>
43414
43415         mkfifoat: use new modules for Solaris and BSD bugs
43416         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43417         * lib/mkfifoat.c (mknodat): Split...
43418         * lib/mknodat.c (mknodat): ...into new file.
43419         * modules/mkfifoat (Files): Ship new file.
43420         (Depends-on): Add mkfifo, mknod.
43421         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43422         (Depends-on): Add symlink.
43423         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43424         redundant with test_mkfifo.h.
43425         (do_mkfifoat, do_mknodat): New helpers.
43426
43427         mknod: new module
43428         * modules/mknod: New file.
43429         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43430         * lib/mknod.c (mknod): Likewise.
43431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43432         defaults.
43433         * modules/sys_stat (Makefile.am): Substitute them.
43434         * lib/sys_stat.in.h (mknod): Declare replacement.
43435         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43436         Document it.
43437         * doc/posix-functions/mknod.texi (mknod): Likewise.
43438         * modules/mknod-tests: New test.
43439         * tests/test-mknod.c: Likewise.
43440
43441         mkfifo: new module
43442         * modules/mkfifo: New file.
43443         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43444         * lib/mkfifo.c (mkfifo): Likewise.
43445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43446         defaults.
43447         * modules/sys_stat (Makefile.am): Substitute them.
43448         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43449         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43450         Document it.
43451         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43452         * modules/mkfifo-tests: New test.
43453         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43454         from test-mkfifoat.c.
43455         * tests/test-mkfifo.c: New file.
43456
43457         readlink: detect FreeBSD bug
43458         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43459         slash on symlink.
43460         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43461         * tests/test-readlink.h (test_readlink): Enhance test.
43462
43463         symlink: detect FreeBSD bug
43464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43465         slash on symlink.
43466         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43467         * tests/test-symlink.h (test_symlink): Enhance test.
43468
43469 2009-11-10  Eric Blake  <ebb9@byu.net>
43470
43471         link: detect FreeBSD bug
43472         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43473         symlink.
43474         * doc/posix-functions/link.texi (link): Document the bug.
43475         * tests/test-link.h (test_link): Enhance test.
43476         * tests/test-linkat.c (main): Update caller.
43477
43478         unlink, remove: detect FreeBSD bug
43479         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43480         slash on symlink.
43481         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43482         * doc/posix-functions/remove.texi (remove): Likewise.
43483         * tests/test-unlink.h (test_unlink): Enhance test.
43484         * tests/test-remove.c (main): Likewise.
43485
43486 2009-11-09  Eric Blake  <ebb9@byu.net>
43487
43488         rename: detect FreeBSD bug
43489         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43490         slash on symlink.
43491         * modules/renameat-tests (Depends-on): Add filenamecat.
43492         * tests/test-rename.h (test_rename): Allow one more errno.
43493         * tests/test-renameat.c (main): Likewise.
43494         * doc/posix-functions/rename.texi (rename): Document the bug.
43495
43496         open: detect FreeBSD bug
43497         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43498         symlink.
43499         * doc/posix-functions/open.texi (open): Document the bug.
43500         * doc/posix-functions/utimes.texi (utimes): Likewise.
43501         * tests/test-open.h (test_open): Add parameters, and test symlink
43502         handling.
43503         * tests/test-open.c (main): Adjust caller.
43504         * tests/test-fcntl-safer.c (main): Likewise.
43505         * modules/open-tests (Depends-on): Add stdbool, symlink.
43506         * modules/fcntl-safer-tests (Depends-on): Likewise.
43507         * tests/test-openat.c (main): Add test-open tests.
43508
43509         stat: detect FreeBSD bug
43510         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43511         symlink.
43512         * doc/posix-functions/stat.texi (stat): Document the bug.
43513         * tests/test-stat.h (test_stat_func): Add argument.
43514         * tests/test-stat.c (main): Adjust caller.
43515         * tests/test-fstatat.c (main): Likewise.
43516         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43517         Reported by Jim Meyering.
43518
43519 2009-11-09  James Youngman  <jay@gnu.org>
43520
43521         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43522         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43523
43524 2009-11-08  Jim Meyering  <meyering@redhat.com>
43525
43526         utimens: remove invalid futimesat call
43527         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43528         It used the file descriptor of the target file as the DIR_FD
43529         parameter and NULL as the file name.  That caused failure with
43530         errno == EFAULT on FreeBSD-8.0-rc2
43531
43532 2009-11-07  Eric Blake  <ebb9@byu.net>
43533
43534         fflush, freadseek: use fseeko, not fseek
43535         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43536         (clear_ungetc_buffer): Avoid potential problems on large files.
43537         * lib/freadseek.c (freadseek): Likewise.
43538         * modules/freadseek (Depends-on): Add fseeko.
43539         * modules/fseek (configure.ac): Set a witness.
43540         * tests/test-fflush.c (main): Use fseeko.
43541         * tests/test-fpurge.c (fseek): Disable link warning.
43542         * tests/test-freadable.c (fseek): Likewise.
43543         * tests/test-freading.c (fseek): Likewise.
43544         * tests/test-fseeko.c (fseek): Likewise.
43545         * tests/test-ftell.c (fseek): Likewise.
43546         * tests/test-ftello.c (fseek): Likewise.
43547         * tests/test-fwritable.c (fseek): Likewise.
43548         * tests/test-fwriting.c (fseek): Likewise.
43549
43550 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43551
43552         * modules/memchr (Depends-on): Drop getpagesize dependency.
43553
43554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43555
43556         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43557         Reported by Ludovic Courtès.
43558         * build-aux/pmccabe2html: Improve example usage.
43559         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43560
43561 2009-11-06  Jim Meyering  <meyering@redhat.com>
43562
43563         do-release-commit-and-tag: New module.
43564         Automate the release-commit and tag process.
43565         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43566         * modules/do-release-commit-and-tag: New file.
43567         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43568
43569 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43570
43571         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43572         because test-select.c uses inet_pton.
43573
43574 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43575
43576         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43577         GETADDRINFO_LIB.  Bump serial number.
43578         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43579         Suggested by Eric Blake <ebb9@byu.net>.
43580
43581 2009-11-05  Eric Blake  <ebb9@byu.net>
43582
43583         strtod: detect darwin bug
43584         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43585         Reported by Leo Davis.
43586
43587         freopen-safer: new module
43588         * modules/freopen-safer: New module.
43589         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43590         * lib/freopen-safer.c (freopen_safer): New file.
43591         * lib/stdio-safer.h (freopen_safer): New declaration.
43592         * lib/stdio--.h (freopen): New override.
43593         * MODULES.html.sh (File stream based Input/Output): Mention it.
43594         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43595         freopen-safer module.
43596         * doc/posix-functions/stderr.texi (stderr): Likewise.
43597         * doc/posix-functions/stdin.texi (stdin): Likewise.
43598         * doc/posix-functions/stdout.texi (stdout): Likewise.
43599         * modules/freopen-safer-tests: New test.
43600         * tests/test-reopen-safer.c: New file.
43601
43602 2009-11-05  Jim Meyering  <meyering@redhat.com>
43603
43604         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43605         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43606
43607 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43608
43609         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43610
43611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43612
43613         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43614
43615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43616
43617         Fix link error.
43618         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43620
43621 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43622
43623         * tests/test-func.c: Also test value of __func__.
43624
43625 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43626
43627         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43628         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43629
43630 2009-11-05  Bruno Haible  <bruno@clisp.org>
43631
43632         Fix link error.
43633         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43634         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43635         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43636
43637 2009-11-05  Bruno Haible  <bruno@clisp.org>
43638
43639         Tests for module 'inet_pton'.
43640         * modules/inet_pton-tests: New file.
43641         * tests/test-inet_pton.c: New file.
43642
43643 2009-11-05  Bruno Haible  <bruno@clisp.org>
43644
43645         Tests for module 'inet_ntop'.
43646         * modules/inet_ntop-tests: New file.
43647         * tests/test-inet_ntop.c: New file.
43648
43649 2009-11-04  Eric Blake  <ebb9@byu.net>
43650
43651         stdlib-safer: wrap all mkstemp variants
43652         * modules/mkostemp (configure.ac): Set witness.
43653         * modules/mkostemps (configure.ac): Likewise.
43654         * modules/mkstemps (configure.ac): Likewise.
43655         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43656         (mkstemps_safer): Wrap more functions.
43657         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43658         wrapping.
43659         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43660         (mkstemps_safer): Implement the wrappers.
43661
43662         mkstemps, mkostemps: new modules
43663         * modules/mkostemps: New module.
43664         * modules/mkstemps: Likewise.
43665         * lib/mkostemps.c (mkostemps): New file.
43666         * lib/mkstemps.c (mkstemps): Likewise.
43667         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43668         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43670         * modules/stdlib (Makefile.am): Substitute them.
43671         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43672         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43673         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43674         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43675         * MODULES.html.sh (File system functions): Mention them.
43676
43677         tempname: resync from glibc
43678         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43679         same values for __GT_FILE as glibc.  Abort even when assertions
43680         are disabled.
43681         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43682         match its value otherwise.  Allow idempotent inclusion.
43683         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43684         * lib/mkostemp.c (mkostemp): Likewise.
43685         * lib/mkstemp.c (mkstemp): Likewise.
43686         * lib/tmpfile.c (tmpfile): Likewise.
43687         * NEWS: Document this.
43688
43689         utimens: fix use of futimens on older Linux
43690         * lib/utimens.c (fdutimens): Use updated, rather than original,
43691         timespec to avoid bug in older Linux kernel.
43692         Reported by Simon Josefsson.
43693
43694 2009-11-04  Bruno Haible  <bruno@clisp.org>
43695
43696         Make num_processors more flexible and consistent.
43697         * lib/nproc.h (enum nproc_query): New type.
43698         (num_processors): Add a 'query' argument.
43699         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43700         (num_processors): Add a 'query' argument. Test the value of the
43701         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43702         mingw, count the number of CPUs available for the current process.
43703         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43704         Check for sched_getaffinity and sched_getaffinity_np.
43705         * modules/nproc (Depends-on): Add c-ctype, extensions.
43706         * NEWS: Mention the change.
43707
43708 2009-11-03  Bruno Haible  <bruno@clisp.org>
43709
43710         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43711
43712 2009-11-03  Jim Meyering  <meyering@redhat.com>
43713
43714         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43715         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43716         if it is defined.
43717
43718 2009-11-02  Eric Blake  <ebb9@byu.net>
43719
43720         mktime, timegm: share common declaration
43721         * lib/mktime-internal.h: New file.
43722         * lib/mktime.c: Use it rather than open-coding a declaration.
43723         * lib/timegm.c: Likewise.
43724         * modules/mktime (Files): Ship it.
43725         * modules/timegm (Files): Likewise.
43726         Suggested by Bruno Haible.
43727
43728         test-update-copyright: update test to match script changes
43729         * tests/test-update-copyright.sh: Avoid hard-coding perl
43730         location.  Don't update *.bak created by earlier runs.
43731
43732 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43733             Simon Josefsson  <simon@josefsson.org>
43734             Bruno Haible  <bruno@clisp.org>
43735
43736         Fix link error on Solaris 8.
43737         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43738         also in libnsl. Define also INET_PTON_LIB.
43739         * modules/inet_pton (Link): New section.
43740
43741 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43742             Bruno Haible  <bruno@clisp.org>
43743
43744         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43745         * modules/inet_ntop (Link): New section.
43746         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43747
43748 2009-11-02  Eric Blake  <ebb9@byu.net>
43749
43750         maint: avoid compiler warnings in m4 macros
43751         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43752         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43753
43754 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43755
43756         * m4/pmccabe2html.m4: Remove file.
43757         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43758         function.  Change maintainer.
43759         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43760         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43761         Courtès).
43762
43763 2009-10-31  Eric Blake  <ebb9@byu.net>
43764
43765         fseeko: fix m4 regression
43766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43767         regression from 2009-10-27.
43768         Reported by Ralf Wildenhues.
43769
43770 2009-10-31  Jim Meyering  <meyering@redhat.com>
43771
43772         inttostr: aesthetics and improved (compile-time) safety
43773         Define inttype_is_signed rather than inttype_is_unsigned,
43774         since the sole use is via "#if inttype_is_signed".
43775         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43776         inttype_is_unsigned.
43777         * lib/offtostr.c (inttype_is_signed): Likewise.
43778         * lib/uinttostr.c (inttype_is_signed): Likewise.
43779         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43780         * lib/inttostr.c (inttostr): Use verify to cross-check the
43781         inttype_is_signed value and the signedness of the actual type.
43782         * modules/inttostr (Depends-on): Add verify.
43783
43784 2009-10-30  Eric Blake  <ebb9@byu.net>
43785
43786         build: avoid compiler warnings
43787         * lib/fchmodat.c (lchmod): Mark unused variables.
43788         * lib/getopt.c (_getopt_initialize): Likewise.
43789         * lib/mktime.c (__mktime_internal): Provide prototype.
43790         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43791         older gcc that do not understand #pragma GCC diagnostic.
43792         * lib/uinttostr.c (inttype_is_unsigned): Define.
43793         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43794
43795 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43796
43797         stat: fix compilation on AIX
43798         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43799         only see struct stat64.
43800
43801 2009-10-30  Eric Blake  <ebb9@byu.net>
43802
43803         exclude: make more robust
43804         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43805         rather than masking a coding bug.
43806         Suggested by Bruno Haible.
43807
43808 2009-10-30  Jim Meyering  <meyering@redhat.com>
43809
43810         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43811         Rather than putting #!/usr/bin/perl on the first line,
43812         start with a variant of what's recommended by "man perlrun" that
43813         invokes the first "perl" program from your shell's search path.
43814         * build-aux/gitlog-to-changelog: Replace #!... as above.
43815         Add a "Local Variables" perl mode setting.
43816         Prompted by a patch from Ludovic Courtès.
43817         Improved by Eric Blake.
43818         * build-aux/useless-if-before-free: Likewise.
43819         * build-aux/announce-gen: Likewise.
43820         * build-aux/update-copyright: Likewise.
43821
43822 2009-10-29  Eric Blake  <ebb9@byu.net>
43823
43824         filenamecat-lgpl: adjust clients
43825         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43826         filenamecat.
43827         * modules/renameat (Depends-on): Likewise.
43828
43829         filenamecat: split into filenamecat-lgpl
43830         * modules/filenamecat-lgpl: New module.
43831         * modules/filenamecat (Files): Move library-safe files into
43832         filenamecat-lgpl.
43833         (Depends-on): Add filenamecat-lgpl.
43834         (configure.ac): Declare witness.
43835         * lib/filenamecat.h (file_name_concat): Only declare when using
43836         GPL module.
43837         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43838         Move...
43839         * lib/filenamecat-lgpl.c: ...into new file.
43840         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43841         (gl_FILE_NAME_CONCAT): Use it.
43842         * MODULES.html.sh (File system functions): Mention new module.
43843
43844         argp: avoid memory leak
43845         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43846         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43847         base_name, since the latter malloc()s and can call exit().
43848         Leak introduced 2006-07-03.
43849
43850         dirname-lgpl: adjust clients that don't need full dirname
43851         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43852         * modules/filenamecat (Depends-on): Likewise.
43853         * modules/linkat (Depends-on): Likewise.
43854         * modules/mkancesdirs (Depends-on): Likewise.
43855         * modules/mkdir (Depends-on): Likewise.
43856         * modules/openat (Depends-on): Likewise.
43857         * modules/savewd (Depends-on): Likewise.
43858         * modules/rename (Depends-on): Likewise.
43859         (License): Relax license.
43860         * modules/mkdir-tests (Depends-on): Drop progname.
43861         (Makefile.am): Delete unneeded LDADD.
43862         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43863
43864         dirname: split into dirname-lgpl
43865         * modules/dirname-lgpl: New module.
43866         * modules/dirname (Files): Move library-safe files into
43867         dirname-lgpl.
43868         (Depends-on): Add dirname-lgpl.
43869         (configure.ac): Declare witness.
43870         * modules/double-slash-root (License): Relax license.
43871         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43872         module.
43873         * lib/dirname.c (dir_len, mdir_name): Move...
43874         * lib/dirname-lgpl.c: ...into new file.
43875         * lib/basename.c (last_component, base_len): Move...
43876         * lib/basename-lgpl.c: ...into new file.
43877         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43878         (gl_DIRNAME): Use it.
43879         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43880         Mention new module.
43881         * modules/dirname-tests (Depends-on): Add progname.
43882         * tests/test-dirname.c (program_name): Delete.
43883
43884         mkdir: make safe for libraries
43885         * modules/mkdir (Depends-on): Drop xalloc.
43886         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43887         exit.
43888
43889         tests: avoid some compiler warnings
43890         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43891         literals.
43892         * tests/test-memchr.c (main): Avoid type mismatch.
43893         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43894         * tests/test-base64.c (main): Likewise.
43895         * tests/test-getdelim.c (main): Likewise.
43896         * tests/test-gethostname.c (main): Likewise.
43897         * tests/test-getline.c (main): Likewise.
43898         * tests/test-netinet_in.c (main): Likewise.
43899         * tests/test-select.c (open_server_socket, main): Likewise.
43900         * tests/test-select-stdin.c (main): Likewise.
43901         * tests/test-sockets.c (main): Likewise.
43902         * tests/test-strsignal.c (main): Likewise.
43903         * tests/test-sys_select.c (main): Likewise.
43904         * tests/test-sys_socket.c (main): Likewise.
43905         * tests/test-u64.c (main): Likewise.
43906         * tests/test-xfprintf-posix.c (main): Likewise.
43907         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43908
43909         sockets: avoid compiler warning
43910         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43911
43912         maint: detect usage(1) and other suspicious exits
43913         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43914
43915 2009-10-29  Jim Meyering  <meyering@redhat.com>
43916
43917         timespec: long-to-int truncation could make timespec_cmp malfunction
43918         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43919         a multiple of 2^32 nanoseconds as no difference.
43920
43921 2009-10-28  Jim Meyering  <meyering@redhat.com>
43922
43923         fprintftime: wrap macro code argument in "do {...} while(0)"
43924         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43925         cpy macro must be a statement that can be followed by a semicolon.
43926         Now that the else clause contains a comment and is hence longer
43927         than one line, I require curly braces.  That in turn requires
43928         that we wrap this code block in the standard do...while(0).
43929
43930         fprintftime: remove stray semicolon from previous change
43931         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43932
43933         fprintftime: avoid a warning about ignored fwrite return value
43934         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43935         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43936         that is unsafe.
43937         * modules/fprintftime (Depends-on): Add ignore-value.
43938
43939         exclude: avoid an unwarranted warning
43940         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43941
43942 2009-10-27  Eric Blake  <ebb9@byu.net>
43943
43944         fseek: avoid compilation failure when fflush is replaced
43945         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43946         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43947         module is in use.
43948         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43949         module is not in use; since REPLACE_FSEEK worked otherwise.
43950         (GNULIB_FTELLO): Likewise for ftell.
43951         Reported by Ian Beckwith and others.
43952
43953 2009-10-27  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43956         Reported by Jim Meyering.
43957
43958 2009-10-27  Jim Meyering  <jim@meyering.net>
43959             Bruno Haible  <bruno@clisp.org>
43960
43961         Avoid warning despite dropping the return value of fwrite.
43962         * lib/unicodeio.c: Include ignore-value.h.
43963         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43964         * modules/unicodeio (Depends-on): Add ignore-value.
43965
43966 2009-10-26  Eric Blake  <ebb9@byu.net>
43967
43968         areadlinkat: fix fallback path
43969         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43970         pointer and zero.
43971
43972 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43973
43974         Use a better IO block size for modern systems
43975         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43976         * lib/md2.c: Likewise.
43977         * lib/md4.c: Likewise.
43978         * lib/md5.c: Likewise.
43979         * lib/sha1.c: Likewise.
43980         * lib/sha256.c: Likewise.
43981         * lib/sha512.c: Likewise.
43982
43983 2009-10-22  Eric Blake  <ebb9@byu.net>
43984
43985         tests: avoid several compiler warnings
43986         * tests/test-getcwd.c (main): Avoid buffer underflow.
43987         * tests/test-getdate.c (main): String literals are not safe with
43988         putenv, so use setenv.  Declare unused argument.
43989         * modules/getdate-tests (Depends-on): Add setenv.
43990         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43991         problems with string literals in char *.
43992         * tests/test-hash.c (main): Avoid shadowing declaration.
43993         (insert_new): Treat string literals as char const *.
43994         * tests/test-getopt.h (test_getopt): Likewise.
43995         (getopt_loop): Alter types to minimize casting elsewhere.
43996         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43997         (test_getopt_long_posix): Likewise.
43998         (do_getopt_long): Add wrapper to minimize casting.
43999         * tests/test-atexit.c (clear_temp_file): Use void.
44000         * tests/test-areadlink-with-size.c (main): Declare unused
44001         arguments.
44002         * tests/test-areadlink.c (main): Likewise.
44003         * tests/test-areadlinkat-with-size.c (main): Likewise.
44004         * tests/test-areadlinkat.c (main): Likewise.
44005         * tests/test-canonicalize-lgpl.c (main): Likewise.
44006         * tests/test-canonicalize.c (main): Likewise.
44007         * tests/test-dirent-safer.c (main): Likewise.
44008         * tests/test-dirname.c (main): Likewise.
44009         * tests/test-dup2.c (main): Likewise.
44010         * tests/test-fchdir.c (main): Likewise.
44011         * tests/test-fcntl-h.c (main): Likewise.
44012         * tests/test-fcntl-safer.c (main): Likewise.
44013         * tests/test-fdopendir.c (main): Likewise.
44014         * tests/test-fdutimensat.c (main): Likewise.
44015         * tests/test-fflush.c (main): Likewise.
44016         * tests/test-filenamecat.c (main): Likewise.
44017         * tests/test-filevercmp.c (main): Likewise.
44018         * tests/test-fopen-safer.c (main): Likewise.
44019         * tests/test-fopen.c (main): Likewise.
44020         * tests/test-fpending.c (main): Likewise.
44021         * tests/test-fpurge.c (main): Likewise.
44022         * tests/test-freading.c (main): Likewise.
44023         * tests/test-fstatat.c (main): Likewise.
44024         * tests/test-fsync.c (main): Likewise.
44025         * tests/test-futimens.c (main): Likewise.
44026         * tests/test-getndelim2.c (main): Likewise.
44027         * tests/test-gettimeofday.c (main): Likewise.
44028         * tests/test-getopt.c (main): Likewise.
44029         * tests/test-i-ring.c (main): Likewise.
44030         * tests/test-inttypes.c (main): Likewise.
44031         * tests/test-link.c (main): Likewise.
44032         * tests/test-lstat.c (main): Likewise.
44033         * tests/test-math.c (main): Likewise.
44034         * tests/test-md5.c (main): Likewise.
44035         * tests/test-memchr2.c (main): Likewise.
44036         * tests/test-memrchr.c (main): Likewise.
44037         * tests/test-mkdir.c (main): Likewise.
44038         * tests/test-mkdirat.c (main): Likewise.
44039         * tests/test-mkfifoat.c (main): Likewise.
44040         * tests/test-open.c (main): Likewise.
44041         * tests/test-openat-safer.c (main): Likewise.
44042         * tests/test-openat.c (main): Likewise.
44043         * tests/test-quotearg.c (main): Likewise.
44044         * tests/test-rawmemchr.c (main): Likewise.
44045         * tests/test-readlink.c (main): Likewise.
44046         * tests/test-remove.c (main): Likewise.
44047         * tests/test-rename.c (main): Likewise.
44048         * tests/test-renameat.c (main): Likewise.
44049         * tests/test-rmdir.c (main): Likewise.
44050         * tests/test-sha1.c (main): Likewise.
44051         * tests/test-signal.c (main): Likewise.
44052         * tests/test-sigaction.c (main): Likewise.
44053         * tests/test-stat.c (main): Likewise.
44054         * tests/test-stat-time.c (main): Likewise.
44055         * tests/test-stddef.c (main): Likewise.
44056         * tests/test-stdint.c (main): Likewise.
44057         * tests/test-stdio.c (main): Likewise.
44058         * tests/test-stdlib.c (main): Likewise.
44059         * tests/test-strchrnul.c (main): Likewise.
44060         * tests/test-strerror.c (main): Likewise.
44061         * tests/test-string.c (main): Likewise.
44062         * tests/test-strtod.c (main): Likewise.
44063         * tests/test-strverscmp.c (main): Likewise.
44064         * tests/test-symlink.c (main): Likewise.
44065         * tests/test-symlinkat.c (main): Likewise.
44066         * tests/test-sys_stat.c (main): Likewise.
44067         * tests/test-sys_time.c (main): Likewise.
44068         * tests/test-time.c (main): Likewise.
44069         * tests/test-unistd.c (main): Likewise.
44070         * tests/test-unlink.c (main): Likewise.
44071         * tests/test-unlinkat.c (main): Likewise.
44072         * tests/test-utimens.c (main): Likewise.
44073         * tests/test-utimensat.c (main): Likewise.
44074         * tests/test-version-etc.c (main): Likewise.
44075         * tests/test-wchar.c (main): Likewise.
44076         * tests/test-wctype.c (main): Likewise.
44077         * tests/test-xprintf-posix.c (main): Likewise.
44078         * tests/test-posixtm.c (main): Likewise.
44079         (STREQ): Delete unused macro.
44080         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44081         shadowed variables.
44082         * tests/test-memchr.c (main): Likewise.
44083
44084 2009-10-21  Eric Blake  <ebb9@byu.net>
44085
44086         areadlinkat: avoid failure on older glibc
44087         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44088         rather than mis-comparing 0 against FUNC_RESULT of char*.
44089
44090 2009-10-21  Bruno Haible  <bruno@clisp.org>
44091
44092         * modules/stpncpy (License): Relicense under LGPLv2+.
44093         Reported by David Lutterkort <lutter@redhat.com>.
44094
44095 2009-10-20  Eric Blake  <ebb9@byu.net>
44096
44097         utimensat: work around Solaris 9 bug
44098         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44099         has trailing slash bugs.
44100         * tests/test-lutimens.h (test_lutimens): Enhance test.
44101         * tests/test-utimens.h (test_utimens): Likewise.
44102         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44103         * doc/posix-functions/utimes.texi (utimes): Likewise.
44104         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44105         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44106         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44107         * doc/posix-functions/futimens.texi (futimens): Likewise.
44108
44109         fdutimensat: new module
44110         * modules/fdutimensat: New file.
44111         * lib/fdutimensat.c (fdutimensat): Likewise.
44112         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44113         * MODULES.html.sh (File system functions): Mention module.
44114         * modules/fdutimensat-tests: New test.
44115         * tests/test-fdutimensat.c: Likewise.
44116
44117         doc: regenerate INSTALL
44118         * doc/INSTALL: Reflect recent autoconf update.
44119         * doc/INSTALL.ISO: Likewise.
44120         * doc/INSTALL.UTF-8: Likewise.
44121
44122 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44123
44124         acl: warn if ACL support is not detected
44125         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44126
44127 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44128
44129         * lib/nproc.h: Add extern "C" block for C++.
44130
44131 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44132             Bruno Haible  <bruno@clisp.org>
44133
44134         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44135         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44136         * doc/posix-functions/isalpha.texi: Likewise.
44137         * doc/posix-functions/isblank.texi: Likewise.
44138         * doc/posix-functions/iscntrl.texi: Likewise.
44139         * doc/posix-functions/isdigit.texi: Likewise.
44140         * doc/posix-functions/isgraph.texi: Likewise.
44141         * doc/posix-functions/islower.texi: Likewise.
44142         * doc/posix-functions/isprint.texi: Likewise.
44143         * doc/posix-functions/ispunct.texi: Likewise.
44144         * doc/posix-functions/isspace.texi: Likewise.
44145         * doc/posix-functions/isupper.texi: Likewise.
44146         * doc/posix-functions/isxdigit.texi: Likewise.
44147
44148 2009-10-18  Bruno Haible  <bruno@clisp.org>
44149
44150         Tests for module 'isblank'.
44151         * modules/isblank-tests: New file.
44152         * tests/test-isblank.c: New file.
44153
44154         New module 'isblank'.
44155         * lib/isblank.c: New file.
44156         * m4/isblank.m4: New file.
44157         * modules/isblank: New file.
44158         * doc/posix-functions/isblank.texi: Mention the new module.
44159
44160 2009-10-18  Bruno Haible  <bruno@clisp.org>
44161
44162         New module 'ctype'.
44163         * lib/ctype.in.h: New file.
44164         * m4/ctype.m4: New file.
44165         * modules/ctype: New file.
44166         * doc/posix-headers/ctype.texi: Mention the new module.
44167
44168 2009-10-18  Jim Meyering  <meyering@redhat.com>
44169
44170         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44171         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44172         right after its initialization, rather than farther down.
44173         Keeping these in close proximity makes it easier to ensure
44174         that each such variable is initialized.  E.g.,
44175
44176             LIB_CLOCK_GETTIME=
44177             AC_SUBST([LIB_CLOCK_GETTIME])
44178
44179         This change also increments these serial numbers.
44180         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44181         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44183
44184 2009-10-18  Bruno Haible  <bruno@clisp.org>
44185
44186         Don't let environment variables perturb build.
44187         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44188         (gl_PREREQ_GETHRXTIME): ... not here.
44189
44190 2009-10-18  Bruno Haible  <bruno@clisp.org>
44191
44192         Avoid symlink attack in localcharset module.
44193         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44194         (O_NOFOLLOW): Define fallback.
44195         (get_charset_aliases): Don't open the file if it is a symbolic link.
44196         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44197         gl_FCNTL_H.
44198         (gl_FCNTL_H): Require it.
44199         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44200         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44201         Reported by Fergal Glynn <fglynn@veracode.com>.
44202
44203 2009-10-18  Bruno Haible  <bruno@clisp.org>
44204
44205         Implement nproc for mingw.
44206         * lib/nproc.c: Include <windows.h>
44207         (num_processors): On native Windows platforms, try GetSystemInfo.
44208
44209 2009-10-18  Bruno Haible  <bruno@clisp.org>
44210
44211         Implement nproc for IRIX.
44212         * lib/nproc.c: Include <sys/sysmp.h>.
44213         (num_processors): On IRIX systems, try sysmp.
44214         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44215
44216 2009-10-18  Bruno Haible  <bruno@clisp.org>
44217
44218         Implement nproc for HP-UX.
44219         * lib/nproc.c: Include <sys/pstat.h>
44220         (num_processors): On HP-UX systems, try pstat_getdynamic.
44221         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44222         pstat_getdynamic.
44223
44224 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44225             Bruno Haible  <bruno@clisp.org>
44226
44227         Implement nproc for NetBSD, OpenBSD.
44228         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44229         (ARRAY_SIZE): New macro.
44230         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44231         * m4/nproc.m4: New file.
44232         * modules/nproc (Files): Add m4/nproc.m4.
44233         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44234         (Makefile.am): Instead, augment lib_SOURCES.
44235
44236 2009-10-18  Bruno Haible  <bruno@clisp.org>
44237
44238         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44239         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44240         sys/param.h.
44241
44242 2009-10-16  Eric Blake  <ebb9@byu.net>
44243
44244         utimensat: new module
44245         * modules/utimensat: New file.
44246         * lib/utimensat.c (utimensat): Likewise.
44247         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44248         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44249         so we can work around Linux bugs.
44250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44251         * modules/sys_stat (Makefile.am): Substitute them.
44252         * lib/sys_stat.in.h (utimensat): Declare it.
44253         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44254         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44255         * modules/utimensat-tests: New test.
44256         * tests/test-utimensat.c: Likewise.
44257
44258         utimens: let lutimens work on non-symlinks
44259         * lib/utimens.c (lutimens): Fall back to utimens rather than
44260         failing with ENOSYS, when file is not a symlink.
44261         (utimens): Reduce redirection.
44262         * tests/test-lutimens.h (test_lutimens): Update test to cover
44263         non-symlinks.
44264         * tests/test-utimens.h (test_utimens): Update test to cover
44265         symlinks.
44266         * tests/test-utimens.c (main): Update caller.
44267
44268         utimens: cache whether utimensat syscall works
44269         * lib/utimens.c (utimensat_works_really): New cache variable.
44270         (fdutimens, lutimens): Use it to avoid failing syscall.
44271
44272         test-stat-time, test-utimens: improve portability
44273         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44274         ext4 on alpha, and for cygwin.
44275         * tests/test-utimens-common.h: New file.
44276         (nap): Factor delays into single function.
44277         * tests/test-lutimens.h (test_lutimens): Use new header.
44278         * tests/test-futimens.h (test_futimens): Likewise.
44279         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44280         timestamps to occur from same machine, as was done previously for
44281         test_utimens.
44282         * modules/utimens-tests (Files): Ship new file.
44283         * modules/futimens-tests (Files): Likewise.
44284         Reported in part by Jim Meyering.
44285
44286         sys_stat: sort replacement declarations
44287         * lib/sys_stat.in.h: Sort declarations.
44288         * lib/futimens.c (futimens): Fix typo.
44289
44290 2009-10-15  Jim Meyering  <meyering@redhat.com>
44291
44292         don't let environment settings perturb build
44293         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44294         could cause a configure-time and/or build-time malfunction.
44295         Typically, a configure-time function-in-library test is performed
44296         via code like this:
44297
44298           LIB_VAR=
44299           AC_SUBST([LIB_VAR])
44300           prefix_saved_LIBS=$LIBS
44301             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44302                        [test "$ac_cv_search_FUNC" = "none required" ||
44303                         LIB_VAR=$ac_cv_search_FUNC])
44304           LIBS=$prefix_saved_LIBS
44305
44306         However, in each of the files affected by this change, the LIB_VAR=
44307         initialization was omitted.  Thus, when set in the environment, its
44308         value would propagate into generated Makefiles when FUNC is not found
44309         in LIB_NAME.
44310         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44311         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44313
44314 2009-10-14  Eric Blake  <ebb9@byu.net>
44315
44316         fchdir: avoid infinite recursion in mingw
44317         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44318         recursing.
44319
44320         test-stat-time: port to mingw
44321         * tests/test-stat-time.c (force_unlink): Return a value.
44322         (test_ctime) [W32]: Fix compilation error.
44323         (nap): Don't call usleep with too large an argument.  Use
44324         force_unlink.
44325         * doc/pastposix-functions/usleep.texi (usleep): Document the
44326         portability issue.
44327
44328 2009-10-13  Jim Meyering  <meyering@redhat.com>
44329
44330         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44331         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44332         * modules/pipe-filter-ii: Likewise.
44333         * modules/sys_socket-tests: Likewise.
44334         * modules/tsearch-tests: Likewise.
44335         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44336         (check): Depend on it.
44337
44338 2009-10-12  Eric Blake  <ebb9@byu.net>
44339
44340         utimens-tests: port to NFS file systems
44341         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44342         comparisons to avoid spurious failures from timestamp drift
44343         between NFS machines.
44344
44345 2009-10-12  Eric Blake  <ebb9@byu.net>
44346
44347         stat-time-tests: minor cleanups
44348         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44349         * tests/test-stat-time.c (nap): Separate assignment from call.
44350         Suggested by Paolo Bonzini and Bruno Haible.
44351
44352         sys_stat: guarantee struct timespec
44353         * lib/sys_stat.in.h (includes): Always include <time.h>
44354         * modules/sys_stat (Depends-on): Add time.
44355         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44356         mode_t permission values.
44357         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44358         get at subsecond timestamps.
44359
44360 2009-10-10  Eric Blake  <ebb9@byu.net>
44361
44362         futimens: new module
44363         * modules/futimens: New file.
44364         * lib/futimens.c (futimens): Likewise.
44365         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44366         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44367         we can work around Linux bugs.
44368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44369         * modules/sys_stat (Makefile.am): Substitute them.
44370         * lib/sys_stat.in.h (futimens): Declare it.
44371         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44372         * doc/posix-functions/futimens.texi (futimens): Likewise.
44373         * modules/futimens-tests: New test.
44374         * tests/test-futimens.c: Likewise.
44375
44376         utimens: introduce fdutimens
44377         * lib/utimens.h (fdutimens): New prototype.
44378         * lib/utimens.c (gl_futimens): Move guts...
44379         (fdutimens): ...to new interface.
44380         * tests/test-utimens.c (do_fdutimens): Use it.
44381
44382         utimens: add UTIME_NOW and UTIME_OMIT support
44383         * lib/utimens.c (validate_timespec, update_timespec): New helper
44384         functions.
44385         (gl_futimens, lutimens): Use them.
44386         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44387         stdbool, sys_stat.
44388         (Link): Mention resulting library dependency.
44389         * modules/utimecmp (Link): Likewise.
44390         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44391         (Makefile.am): Pick up library dependency.
44392         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44393         definition.
44394         * tests/test-sys_stat.c: Test the definitions.
44395         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44396         * NEWS: Document library dependency.
44397
44398         utimecmp: support symlink timestamps
44399         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44400         hashing when possible.  Use pathconf when available.
44401         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44402         * modules/utimecmp (Depends-on): Add lstat.
44403
44404         utimens: add lutimens interface
44405         * lib/utimens.c (lutimens): New function.
44406         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44407         * lib/utimens.h (lutimens): Declare new interface.
44408         * tests/test-utimens.c (main): Enhance test.
44409         * tests/test-lutimens.h (test_lutimens): New file.
44410         * modules/utimens-tests (Files): Distribute it.
44411         (Depends-on): Add symlink.
44412         (configure.ac): Check for usleep.
44413
44414         utimens: validate futimens usage
44415         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44416         fewer syscalls on failure later on.  Avoid compiler warning on
44417         mingw.
44418         * modules/utimens (Depends-on): Add dup2.
44419
44420         utimens: add test
44421         * modules/utimens-tests: New test.
44422         * tests/test-utimens.h: New file.
44423         * tests/test-futimens.h: Likewise.
44424         * tests/test-utimens.c: Likewise.
44425
44426         doc: mention timestamp portability issues
44427         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44428         instead.
44429         * doc/posix-functions/utime.texi (utime): Likewise.
44430         * doc/posix-functions/utimes.texi (utimes): Likewise.
44431         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44432         instead.
44433         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44434         module.
44435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44436         Mention weakness with symlink timestamps.
44437         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44438         to utimensat/futimens instead.
44439         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44440
44441         test-dup2: enhance test
44442         * tests/test-dup2.c (main): Also check AT_FDCWD.
44443
44444         test-stat-time: avoid more spurious failures
44445         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44446         xfs; and avoid race if the two timestamps cross quantization edge.
44447
44448         relocatable: prefer 'file system' over 'filesystem'
44449         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44450         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44451         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44452         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44453         * lib/relocatable.c (compute_curr_prefix): Likewise.
44454
44455 2009-10-10  Jim Meyering  <meyering@redhat.com>
44456
44457         stat-time-tests: check for the usleep function
44458         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44459
44460 2009-10-10  Bruno Haible  <bruno@clisp.org>
44461
44462         * modules/xnanosleep: Put the Link section after the Include section.
44463
44464 2009-10-09  Eric Blake  <ebb9@byu.net>
44465
44466         dup2: work around FreeBSD 6.1 bug
44467         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44468         * doc/posix-functions/dup2.texi (dup2): Document it.
44469         Reported by Nelson H. F. Beebe and Jim Meyering.
44470
44471         test-stat-time: port to buggy NFS clients
44472         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44473         (test_ctime): Also skip test if mtime and ctime are skewed.
44474
44475         maint: prefer 'file system' over 'filesystem'
44476         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44477         * doc/posix-functions/lstat.texi (lstat): Likewise.
44478         * lib/file-has-acl.c (file_has_acl): Likewise.
44479         * lib/fwriteerror.c [TEST]: Likewise.
44480         * tests/test-areadlink.h (test_areadlink): Likewise.
44481         * tests/test-areadlinkat-with-size.c (main): Likewise.
44482         * tests/test-areadlinkat.c (main): Likewise.
44483         * tests/test-canonicalize-lgpl.c (main): Likewise.
44484         * tests/test-canonicalize.c (main): Likewise.
44485         * tests/test-fstatat.c (main): Likewise.
44486         * tests/test-linkat.c (main): Likewise.
44487         * tests/test-lstat.h (test_lstat_func): Likewise.
44488         * tests/test-mkdir.h (test_mkdir): Likewise.
44489         * tests/test-readlink.h (test_readlink): Likewise.
44490         * tests/test-remove.c (main): Likewise.
44491         * tests/test-rename.h (test_rename): Likewise.
44492         * tests/test-renameat.c (main): Likewise.
44493         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44494         * tests/test-symlink.h (test_symlink): Likewise.
44495         * tests/test-symlinkat.c (main): Likewise.
44496         * tests/test-unlink.h (test_unlink_func): Likewise.
44497         * tests/test-unlinkat.c (main): Likewise.
44498
44499         maint: make realtime library usage explicit
44500         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44501         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44502         * modules/settime (Link): Likewise.
44503         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44504
44505         test-stat-time: speed up execution
44506         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44507         warning on mingw.
44508         (nap): New helper function.
44509         (prepare_test): Use it to reduce sleep time.
44510         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44511         execution.
44512         * modules/stat-time-tests (configure.ac): Check for usleep.
44513
44514 2009-10-09  Jim Meyering  <meyering@redhat.com>
44515
44516         selinux-h: always use getfilecon wrappers
44517         * lib/getfilecon.c: New file.
44518         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44519         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44520         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44521         (fgetfilecon): Provide a stub.
44522         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44523         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44524         file unconditionally.
44525         When <selinux/selinux.h> is found, arrange to use wrappers.
44526         * modules/selinux-h (Files): Add getfilecon.c.
44527         (Makefile.am): Substitute include-next-related bits
44528         into the now-always-generated selinux/selinux.h file.
44529         * doc/glibc-functions/lgetfilecon.texi: New file.
44530         * doc/glibc-functions/fgetfilecon.texi: New file.
44531         * doc/glibc-functions/getfilecon.texi: New file.
44532         * doc/glibc-functions/getfilecon-desc.texi: New file.
44533         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44534         which to pull in the new files.
44535         * MODULES.html.sh (Misc): Add selinux-h.
44536
44537 2009-10-08  Jim Meyering  <meyering@redhat.com>
44538
44539         unistd: fix comment typo
44540         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44541
44542 2009-10-08  Eric Blake  <ebb9@byu.net>
44543
44544         areadlink: use SIZE_MAX consistently
44545         * modules/areadlink (Depends-on): Add stdint.
44546         * modules/areadlink-with-size (Depends-on): Likewise.
44547         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44548         gives NULL; drop sys/types, since unistd gives size_t; and add
44549         stdint for SIZE_MAX.
44550         (SIZE_MAX): Rely on headers.
44551         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44552         and add stdint.
44553         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44554         (SIZE_MAX): Likewise.
44555         (INITIAL_BUF_SIZE): Turn into enum.
44556         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44557
44558 2009-10-08  Jim Meyering  <meyering@redhat.com>
44559
44560         areadlinkat: avoid compilation failure
44561         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44562         Fix typo in comment.
44563
44564 2009-10-07  Eric Blake  <ebb9@byu.net>
44565
44566         areadlinkat-with-size: new module
44567         * modules/areadlinkat-with-size: New module.
44568         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44569         * lib/areadlink.h (areadlinkat): Declare it.
44570         * MODULES.html.sh (File system functions): Mention it.
44571         * modules/areadlinkat-with-size-tests: New test.
44572         * tests/test-areadlinkat-with-size.c: New file.
44573
44574         xreadlinkat: new module
44575         * modules/xreadlinkat: New module.
44576         * lib/xreadlinkat.c (xreadlinkat): New file.
44577         * lib/xreadlink.h (xreadlinkat): Declare it.
44578         * MODULES.html.sh (File system functions): Mention it.
44579
44580         areadlinkat: new module
44581         * lib/at-func.c (FUNC_FAIL): New define.
44582         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44583         * modules/areadlinkat: New module.
44584         * lib/linkat.c (areadlinkat): Move...
44585         * lib/areadlinkat.c (areadlinkat): ...to new file.
44586         * lib/areadlink.h (areadlinkat): Declare it.
44587         * modules/linkat (Depends-on): Add areadlinkat.
44588         * MODULES.html.sh (File system functions): Mention it.
44589         * modules/areadlinkat-tests: New test.
44590         * tests/test-areadlinkat.c: New file.
44591
44592         areadlink, areadlink-with-size: add tests
44593         * modules/areadlink-tests: New test.
44594         * modules/areadlink-with-size-tests: Likewise.
44595         * tests/test-areadlink.h: New file.
44596         * tests/test-areadlink.c: Likewise.
44597         * tests/test-areadlink-with-size.c: Likewise.
44598
44599         maint: minor cleanups
44600         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44601         _UNUSED_PARAMETER_ instead.
44602         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44603         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44604         * modules/linkat-tests (Files): Distribute test-link.h.
44605
44606         openat, utimens: whitespace cleanup
44607         * lib/openat.c: Prefer space throughout, rather than mix of 8
44608         spaces vs. tabs.
44609         * lib/at-func.c: Likewise.
44610         * lib/utimens.c: Likewise.
44611
44612         openat: avoid using wrong fd
44613         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44614         working directory chooses same fd.
44615         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44616
44617         mkdir, mkdirat: fix cygwin 1.5.x bug
44618         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44619         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44620         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44621         bug.
44622         (gl_PREREQ_MKDIR): Delete unused macro.
44623         * modules/mkdir (Files): Track file rename.
44624         (configure.ac): Update macro name.
44625         * modules/openat (Depends-on): Add mkdir.
44626         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44627
44628         mkdir, mkdirat: add tests
44629         * modules/mkdir-tests: New test.
44630         * tests/test-mkdir.h: New file.
44631         * tests/test-mkdir.c: Likewise.
44632         * tests/test-mkdirat.c: Likewise.
44633         * modules/openat-tests (Files): Add new files.
44634         (Makefile.am): Run new test.
44635
44636 2009-10-06  Eric Blake  <ebb9@byu.net>
44637
44638         doc: tweak *at function documentation
44639         * doc/posix-functions/faccessat.texi (faccessat): Mention
44640         known issue with replacement.
44641         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44642         * doc/posix-functions/linkat.texi (linkat): Likewise.
44643         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44644         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44645         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44646         * doc/posix-functions/renameat.texi (renameat): Likewise.
44647         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44648
44649         openat: fix GNU/Hurd bug in unlinkat
44650         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44651         broken.
44652         * doc/posix-functions/unlink.texi (unlink): Document this.
44653         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44654
44655         fdopendir: fix GNU/Hurd bug
44656         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44657         allowing non-directory fds.
44658         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44660         * modules/dirent (Makefile.am): Substitute it.
44661         * lib/dirent.in.h (fdopendir): Declare replacement.
44662         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44663         * tests/test-fdopendir.c (main): Test something other than
44664         /dev/null, since on Hurd that behaves like a directory.
44665
44666         test-symlink: port to GNU/Hurd
44667         * tests/test-symlink.h (test_symlink): Relax expected errno.
44668
44669         doc: tweak more cygwin information
44670         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44671         now compatible with glibc.
44672         * doc/posix-functions/getopt.texi (getopt): Likewise.
44673
44674         getopt-gnu: add another test
44675         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44676         guarantee behavior relied on by m4.
44677         * tests/test-getopt.c (main): Use it.
44678         * modules/getopt-posix-tests (Depends-on): Add setenv.
44679         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44680
44681         getopt: fix compilation on darwin
44682         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44683         include.
44684         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44685         Reported by Ludovic Courtès.
44686
44687 2009-10-06  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/size_max (Description): Discourage its use.
44690         Reported by Simon Josefsson.
44691
44692 2009-10-06  Jim Meyering  <meyering@redhat.com>
44693
44694         linkat: avoid compilation failure
44695         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44696
44697 2009-10-05  Eric Blake  <ebb9@byu.net>
44698
44699         linkat: support Linux 2.6.17
44700         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44701         linkat on Linux, but allow cache variable override.
44702         * lib/linkat.c (rpl_linkat): Define override.
44703         * modules/linkat (Depends-on): Add symlinkat.
44704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44705         * modules/unistd (Makefile.am): Substitute it.
44706         * lib/unistd.in.h (linkat): Declare replacement.
44707         Reported by Pádraig Brady.
44708
44709         quotearg: port test to systems with C.UTF-8 locale
44710         * tests/test-quotearg.c (struct result_strings): Add another
44711         member, differentiating between C.ASCII and C.UTF-8 handling.
44712         (compare_strings): Add parameter.
44713         (main): Adjust all callers.
44714
44715         getopt: avoid clash with FreeBSD _getopt_internal
44716         * lib/getopt.in.h (_getopt_internal): Override the name.
44717         * lib/getopt_int.h (includes): Pick up any overrides.
44718         Reported by Reuben Thomas.
44719
44720         hash: allow C89 compilation
44721         * lib/hash.c (check_tuning): Move declaration before statement.
44722         Reported by Reuben Thomas.
44723
44724 2009-10-05  Karl Berry  <karl@gnu.org>
44725
44726         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44727
44728 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44729             Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/uname.c (uname): Use a table-driven algorithm to compute
44732         Windows NT versions.
44733
44734 2009-10-04  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44737         program_invocation_short_name.
44738         * modules/progname (configure.ac): Test for presence of
44739         program_invocation_short_name.
44740         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44741
44742 2009-10-04  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/progname.c (set_program_name): Fix comment.
44745         Reported by Jim Meyering.
44746
44747 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44748             Bruno Haible  <bruno@clisp.org>
44749
44750         * lib/uname.c: Include <string.h>.
44751         (uname): Do only one call to GetVersionEx in the common case.
44752
44753 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44754             Bruno Haible  <bruno@clisp.org>
44755
44756         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44757         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44758         (uname): Add support for Windows CE and various non-x86 CPU types.
44759
44760 2009-10-03  Bruno Haible  <bruno@clisp.org>
44761
44762         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44763         invocation to tests/configure.ac.
44764         Reported by Ian Beckwith <ianb@erislabs.net>.
44765
44766 2009-10-02  Eric Blake  <ebb9@byu.net>
44767
44768         fchdir: avoid compiler warning
44769         * lib/fchdir.c (canonicalize_file_name)
44770         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44771
44772         test-open: support mingw errno values
44773         * tests/test-open.h (test_open): Relax test.
44774         * tests/test-fopen.h (test_fopen): Likewise.
44775         * tests/test-openat-safer.c (main): Likewise.
44776
44777         open: fix opening directory on mingw
44778         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44779
44780         test-open: on GNU/Hurd, /dev/null is a directory
44781         * tests/test-fopen.h (main): Rename...
44782         (test_fopen): ...to this.  Use a guaranteed non-directory when
44783         confirming open behavior on trailing slash.
44784         * tests/test-openat-safer.c (main): Likewise.
44785         * tests/test-open.h (main): Likewise....
44786         (test_open): ...to this.
44787         * tests/test-fopen.c (main): Adjust caller.
44788         * tests/test-fopen-safer.c (main): Likewise.
44789         * tests/test-open.c (main): Likewise.
44790         * tests/test-fcntl-safer.c (main): Likewise.
44791         Reported by Samuel Thibault.
44792
44793         rename, fchdir: don't ignore chdir failure
44794         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44795         * lib/rename.c (rpl_rename) [W32]: Likewise.
44796         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44797         an empty destination directory if source cannot be renamed,
44798         although there is still possibility for failure.
44799         * doc/posix-functions/rename.texi (rename): Document the race.
44800         Reported by Jim Meyering.
44801
44802         maint: cleanup whitespace in recent commits
44803         * lib/rename.c (rpl_rename): Remove tabs.
44804         * tests/test-link.h (test_link): Likewise.
44805         * lib/fchdir.c (get_name): Likewise.
44806         Reported by Jim Meyering.
44807
44808 2009-10-02  Ben Pfaff  <blp@gnu.org>
44809
44810         relocatable-prog-wrapper: Add missing dependency on
44811         double-slash-root.
44812         * modules/relocatable-prog-wrapper: Add dependency.
44813         Reported by Ian Beckwith <ianb@erislabs.net>.
44814
44815 2009-10-02  Eric Blake  <ebb9@byu.net>
44816
44817         renameat: fix Solaris bugs
44818         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44819         needed fixing.
44820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44821         * modules/stdio (Makefile.am): Substitute it.
44822         * lib/stdio.in.h (renameat): Declare replacement.
44823         * lib/renameat.c (rpl_renameat): Implement fix.
44824
44825         renameat: new module
44826         * modules/renameat: New file.
44827         * lib/renameat.c (renameat): Likewise.
44828         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44830         * modules/stdio (Makefile.am): Substitute them.
44831         * lib/stdio.in.h (renameat): Declare it.
44832         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44833         * doc/posix-functions/renameat.texi (renameat): Likewise.
44834         * modules/renameat-tests: New test.
44835         * tests/test-renameat.c: Likewise.
44836
44837         rename: fix mingw bugs
44838         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44839         directory overwrite bugs.
44840
44841         rename: fix another cygwin 1.5 bug
44842         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44843         checks.
44844         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44845         unnecessary cygwin workarounds.  Also work around bug with moving
44846         full directory onto an empty one.
44847         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44848
44849         rename-dest-slash: merge into rename module
44850         * modules/rename-dest-slash (Status): Mark obsolete.
44851         (Depends-on): Add rename.
44852         (Files): Let rename do it all.
44853         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44854         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44855         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44856         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44857         * lib/rename.c (rpl_rename): Update comments.
44858
44859         rename: fix cygwin 1.5.x bugs
44860         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44861         * lib/rename.c (rpl_rename): Work around them.
44862         * modules/rename (Depends-on): Add same-inode.
44863
44864         rename: fix Solaris 10 bug
44865         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44866         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44867         was the only bug.
44868
44869         rename: fix Solaris 9 bug
44870         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44871         on non-directory.  Avoid calling exit.
44872         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44873         strdup.
44874         * modules/rename-tests (Depends-on): Drop lstat.
44875         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44876         (gl_PREREQ_RENAME): Delete unused macro.
44877
44878         rename-dest-slash: fix NetBSD bug
44879         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44880         links.
44881         * modules/rename-dest-slash (Depends-on): Add same-inode.
44882
44883         rename-tests: new test, exposes several platform bugs
44884         * modules/rename-tests: New file.
44885         * tests/test-rename.h: Likewise.
44886         * tests/test-rename.c: Likewise.
44887         * doc/posix-functions/rename.texi (rename): Improve documentation,
44888         including bugs that will eventually be fixed in gnulib.
44889
44890 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44891
44892         * lib/uname.c: Include <stdlib.h>
44893         (uname): Assume version info is available.
44894
44895 2009-10-02  Jim Meyering  <meyering@redhat.com>
44896
44897         gnu-web-doc-update: correct --help output
44898         * build-aux/gnu-web-doc-update: Make --help output relevant.
44899
44900         gnu-web-doc-update: add standard options
44901         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44902
44903         gnu-web-doc-update: New module.
44904         Use this script to automatically update the on-line web documentation
44905         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44906         * modules/gnu-web-doc-update: New file, from coreutils.
44907         * build-aux/gnu-web-doc-update: New script.
44908
44909 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44910
44911         link: LoadLibrary is not needed.
44912         * lib/link.c: Use GetModuleHandle.
44913
44914 2009-10-01  Eric Blake  <ebb9@byu.net>
44915
44916         getopt: bump serial number
44917         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44918         change.
44919
44920         tests: tighten link, rmdir, and remove tests
44921         * tests/test-link.h (includes): No need to use <config.h> here.
44922         Clean up if directory hard link was created, otherwise test for
44923         trailing '.'.
44924         * tests/test-linkat.c (main): Simplify.
44925         * tests/test-remove.c (main): Enhance test for trailing '.'.
44926         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44927
44928 2009-10-01  Jim Meyering  <meyering@redhat.com>
44929
44930         maint.mk: requiring "make major" was annoying, for a "minor" release.
44931         What is intended is "stable", to contrast with alpha and beta,
44932         so require "make stable", not "make major".
44933         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44934         (get_tool_versions): Likewise.
44935         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44936
44937 2009-09-30  Ben Pfaff  <blp@gnu.org>
44938
44939         Fix broken build of replacement for Windows tmpfile().
44940         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44941         flags argument added along with the 'mkostemp' module.
44942
44943 2009-09-28  Bruno Haible  <bruno@clisp.org>
44944
44945         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44946         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44947         to 'remove_elt'.
44948         (gl_list_remove): Update.
44949         * lib/gl_list.c (gl_list_remove): Update.
44950         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44951         to 'remove_elt'.
44952         (gl_oset_remove): Update.
44953         * lib/gl_list.c (gl_oset_remove): Update.
44954         Reported by Eric Blake.
44955
44956 2009-09-28  Eric Blake  <ebb9@byu.net>
44957
44958         doc: mention yet more cygwin 1.7 status
44959         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44960         cygwin.
44961         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44962         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44963
44964         argp: fix test failure
44965         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44966         that are not upper-case.  Pass correct range to tolower.
44967
44968 2009-09-27  Jim Meyering  <meyering@redhat.com>
44969
44970         test-yesno: work around sparc-dash here-document infelicity
44971         Without this change, the literal \177 byte in a here document
44972         would make dash 0.5.5.1-3 access uninitialized memory.
44973         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44974         Instead, use a marker, "@", and filter through tr to create the desired
44975         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44976
44977 2009-09-27  Bruno Haible  <bruno@clisp.org>
44978
44979         Disable untested support for new flavours of ACLs on AIX.
44980         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44981         progress.
44982         * lib/set-mode-acl.c (qset_acl): Likewise.
44983
44984 2008-12-07  Bruno Haible  <bruno@clisp.org>
44985
44986         Add support for new flavours of ACLs on AIX. (Untested.)
44987         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44988         (file_has_acl): Add support for newer AIX.
44989         * lib/set-mode-acl.c (qset_acl): Likewise.
44990         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44991         Rainer Tammer <tammer@tammer.net>.
44992
44993 2009-09-26  Eric Blake  <ebb9@byu.net>
44994
44995         argp: fix compilation of getopt
44996         * lib/getopt.in.h (includes): Use different guard than glibc.
44997         Reported by Sergey Poznyakoff.
44998
44999         doc: mention more cygwin 1.7 status
45000         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45001         bug.
45002         * doc/posix-functions/execl.texi (execl): Likewise.
45003         * doc/posix-functions/execle.texi (execle): Likewise.
45004         * doc/posix-functions/execlp.texi (execlp): Likewise.
45005         * doc/posix-functions/execv.texi (execv): Likewise.
45006         * doc/posix-functions/execve.texi (execve): Likewise.
45007         * doc/posix-functions/execvp.texi (execvp): Likewise.
45008         * doc/glibc-functions/canonicalize_file_name.texi
45009         (canonicalize_file_name): Cygwin 1.7 now provides this.
45010         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45011         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45012         on AT_SYMLINK_NOFOLLOW.
45013
45014 2009-09-24  Eric Blake  <ebb9@byu.net>
45015
45016         test-linkat: make test more robust
45017         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45018
45019         getopt: fix inclusion guards for cygwin
45020         * modules/getopt-posix (Depends-on): Add include-next.
45021         (Makefile.am): Substitute more items in replacement header.
45022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45023         <getopt.h>.
45024         * lib/getopt.in.h (includes): Use split inclusion guard, and
45025         prefer <getopt.h> over include <unistd.h> when one is present.
45026         (option): Also override name of 'struct option'.
45027
45028         same-inode: revert prior change; it is not yet ready
45029         * NEWS: Undo mention of this change.
45030         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45031         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45032         * lib/cycle-check.c (cycle_check): Likewise.
45033         * lib/same.c (same_name): Likewise.
45034         * lib/at-func2.c (at_func2): Likewise.
45035
45036 2009-09-23  Eric Blake  <ebb9@byu.net>
45037
45038         linkat: new module
45039         * modules/linkat: New file.
45040         * lib/at-func2.c (at_func2): Likewise.
45041         * lib/linkat.c (linkat): Likewise.
45042         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45043         * lib/openat-priv.h (at_func2): Add declaration.
45044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45045         * modules/unistd (Makefile.am): Substitute them.
45046         * lib/unistd.in.h (linkat): Declare it.
45047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45048         * doc/posix-functions/linkat.texi (linkat): Likewise.
45049         * doc/posix-functions/link.texi (link): Tweak wording.
45050         * tests/test-link.c (main): Move guts...
45051         * tests/test-link.h (test_link): ...into new file.
45052         * modules/linkat-tests: New test.
45053         * tests/test-linkat.c: Likewise.
45054         * modules/link-tests (Files): Ship new file.
45055         (Depends-on): Add stdbool.
45056
45057         dirname: add library-safe mdir_name
45058         * lib/dirname.h (mdir_name): New prototype.
45059         * lib/dirname.c (dir_name): Move guts...
45060         (mdir_name): ...to new function that avoids xalloc_die.
45061
45062         fchdir: another mingw fix
45063         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45064         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45065         on mingw (where it has not yet been ported), and make it optional
45066         elsewhere.
45067         (_gl_register_fd): Use it.
45068
45069         same-inode: make SAME_INODE tri-state, to port to mingw
45070         * NEWS: Mention this change.
45071         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45072         st_ino always being 0.
45073         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45074         * lib/cycle-check.c (cycle_check): Likewise.
45075         * lib/same.c (same_name): Likewise.
45076
45077         lstat: avoid mingw compilation error
45078         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45079         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45080         lstat ourselves.
45081         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45082         was adequate.
45083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45084         the checks for lstat.
45085         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45086
45087         link: fix test failure on Solaris 9
45088         * lib/link.c (rpl_link): Don't assume link will catch bogus
45089         trailing slash on source.
45090
45091         test-symlinkat: enhance test
45092         * tests/test-readlink.c (main): Move guts...
45093         * tests/test-readlink.h (test_readlink): ...into new file.
45094         * tests/test-symlink.c (main): Move guts...
45095         * tests/test-symlink.h (test_symlink): ...into new file.
45096         * tests/test-symlinkat.c (main): Use new files for further
45097         coverage.
45098         (do_symlink, do_readlink): New helper functions.
45099         * modules/symlink-tests (Files): Ship new file.
45100         (Depends-on): Add stdbool.
45101         * modules/readlink-tests (Files): Ship new file.
45102         (Depends-on): Add stdbool.
45103         * modules/symlinkat-tests (Files): Use new files.
45104
45105 2009-09-23  Eric Blake  <ebb9@byu.net>
45106
45107         readlink: document portability issue with symlink length
45108         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45109         systems have bogus st_size on symlinks, and mention the
45110         areadlink-with-size module.
45111         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45112         * doc/posix-functions/readlink.texi (readlink): Mention the
45113         areadlink module, and ERANGE failure.
45114         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45115         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45116
45117         readlink: fix Solaris 9 bug with trailing slash
45118         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45119         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45120         * doc/posix-functions/readlink.texi (readlink): Document this.
45121         * modules/readlink-tests: New test.
45122         * tests/test-readlink.c: Likewise.
45123
45124         readlink: fix cygwin 1.5.x bug with return type
45125         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45126         * lib/unistd.in.h (readlink): Use ssize_t.
45127         * lib/readlink.c (readlink): Likewise.
45128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45129         * modules/unistd (Makefile.am): Substitute it.
45130         * lib/unistd.in.h (readlink): Declare replacement.
45131         * doc/posix-functions/readlink.texi (readlink): Document this.
45132
45133         symlink: use throughout gnulib
45134         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45135         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45136         symlink is not used.
45137         * modules/symlinkat (Depends-on): Add symlink.
45138         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45139         * modules/canonicalize-tests (Depends-on): Likewise.
45140         * modules/lstat-tests (Depends-on): Likewise.
45141         * modules/openat-tests (Depends-on): Likewise.
45142         * modules/remove-tests (Depends-on): Likewise.
45143         * modules/rmdir-tests (Depends-on): Likewise.
45144         * modules/unlink-tests (Depends-on): Likewise.
45145         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45146         * tests/test-canonicalize.c (symlink): Likewise.
45147         * tests/test-fstatat.c (symlink): Likewise.
45148         * tests/test-lstat.c (symlink): Likewise.
45149         * tests/test-remove.c (symlink): Likewise.
45150         * tests/test-rmdir.c (symlink): Likewise.
45151         * tests/test-unlink.c (symlink): Likewise.
45152         * tests/test-unlinkat.c (symlink): Likewise.
45153
45154         symlink: new module, for Solaris 9 bug
45155         * modules/symlink: New file.
45156         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45157         * lib/symlink.c: Likewise.
45158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45159         * modules/unistd (Makefile.am): Substitute them.
45160         * lib/unistd.in.h (symlink): Declare replacement.
45161         * MODULES.html.sh (File system functions): Mention it.
45162         * doc/posix-functions/symlink.texi (symlink): Likewise.
45163         * modules/symlink-tests: New test.
45164         * tests/test-symlink.c: Likewise.
45165
45166 2009-09-23  Bruno Haible  <bruno@clisp.org>
45167
45168         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45169         when needed.
45170         Test case: gnulib-tool --import --with-tests atexit inttypes.
45171         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45172
45173 2009-09-23  Bruno Haible  <bruno@clisp.org>
45174
45175         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45176         subcommand, not in a subshell.
45177
45178 2009-09-22  Eric Blake  <ebb9@byu.net>
45179
45180         unistd: sort replacement declarations
45181         * lib/unistd.in.h: Sort declarations.
45182
45183         open, openat: minor optimization
45184         * lib/open.c (open): If open succeeded, len is non-zero.
45185         * lib/openat.c (rpl_openat): Likewise.
45186
45187         link-follow: ensure correct result
45188         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45189         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45190         distinguish between possible failures.
45191
45192 2009-09-21  Eric Blake  <ebb9@byu.net>
45193
45194         fts: avoid compiler warning
45195         * lib/fts.c (dirent_inode_sort_may_be_useful)
45196         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45197
45198 2009-09-19  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/progreloc.c (canonicalize_file_name): New declaration.
45201
45202 2009-09-19  Eric Blake  <ebb9@byu.net>
45203
45204         link: fix quoting
45205         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45206
45207         openat: fix openat bugs on Solaris 9
45208         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45209         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45210         * modules/openat (Depends-on): Add open.
45211         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45212         * modules/fcntl-h (Makefile.am): Substitute it.
45213         * lib/fcntl.in.h (openat): Declare replacement.
45214         * doc/posix-functions/openat.texi (openat): Document this.
45215
45216         openat: move fstatat and unlinkat into correct files
45217         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45218         compiled.
45219         * lib/openat.c (fstatat, unlinkat): Move...
45220         * lib/fstatat.c (fstatat): ...into correct files.
45221         * lib/unlinkat.c (unlinkat): Likewise.
45222
45223         openat: fix unlinkat bugs on Solaris 9
45224         * lib/unlinkat.c (unlinkat): New file.
45225         * modules/openat (Depends-on): Add unlink.
45226         (Files): Distribute it.
45227         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45228         trailing slash behavior is broken.
45229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45230         * modules/unistd (Makefile.am): Substitute it.
45231         * lib/unistd.in.h (unlinkat): Declare replacement.
45232         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45233
45234         openat: fix fstatat bugs on Solaris 9
45235         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45236         stat.
45237         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45238
45239         test-unlinkat: enhance test, to expose Solaris 9 bug
45240         * tests/test-unlink.c (main): Factor guts...
45241         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45242         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45243         * tests/test-rmdir.c (main): Adjust caller.
45244         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45245         (unlinker): New helper function.
45246         (rmdirat): Enhance check.
45247         * modules/rmdir-tests (Depends-on): Add stdbool.
45248         * modules/unlink-tests (Depends-on): Likewise.
45249         (Files): Add test-unlink.h.
45250         * modules/openat-tests (Files): Likewise.
45251         (Depends-on): Add unlinkdir.
45252
45253         test-fstatat: new test, to expose Solaris 9 bugs
45254         * tests/test-stat.c (main): Factor guts...
45255         * tests/test-stat.h (test_stat_func): ...into new file.
45256         * tests/test-lstat.c (main): Factor guts...
45257         * tests/test-lstat.h (test_lstat_func): ...into new file.
45258         * tests/test-fstatat.c: New file.
45259         * modules/stat-tests (Files): Add test-stat.h.
45260         * modules/lstat-tests (Files): Add test-lstat.h.
45261         (Depends-on): Add stdbool.
45262         * modules/openat-tests (Depends-on): Add pathmax.
45263         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45264         (Makefile.am): Run new test.
45265
45266         remove: new module, for mingw and Solaris 9 bugs
45267         * modules/remove: New file.
45268         * lib/remove.c: Likewise.
45269         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45271         * modules/stdio (Makefile.am): Use them.
45272         * lib/stdio.in.h (remove): Declare replacement.
45273         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45274         * doc/posix-functions/remove.texi (remove): Likewise.
45275         * modules/remove-tests: New test.
45276         * tests/test-remove.c: Likewise.
45277
45278         unlink: new module, for Solaris 9 bug
45279         * modules/unlink: New file.
45280         * lib/unlink.c: Likewise.
45281         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45283         * modules/unistd (Makefile.am): Use them.
45284         * lib/unistd.in.h (stat): Declare replacement.
45285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45286         * doc/posix-functions/unlink.texi (unlink): Likewise.
45287         * modules/unlink-tests: New test.
45288         * tests/test-unlink.c: Likewise.
45289
45290         lstat: fix Solaris 9 bug
45291         * lib/lstat.c (lstat): Also check for trailing slash on
45292         non-symlink, non-directories.  Use stat module to simplify logic.
45293         * doc/posix-functions/lstat.texi (lstat): Document it.
45294         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45295         (configure.ac): Check for symlink.
45296         * tests/test-lstat.c (main): Add more tests.
45297
45298         stat: add as dependency to other modules
45299         * modules/chown (Depends-on): Add stat.
45300         * modules/euidaccess (Depends-on): Likewise.
45301         * modules/fchdir (Depends-on): Likewise.
45302         * modules/isdir (Depends-on): Likewise.
45303         * modules/link (Depends-on): Likewise.
45304         * modules/lstat (Depends-on): Likewise.
45305         * modules/mkdir-p (Depends-on): Likewise.
45306         * modules/modechange (Depends-on): Likewise.
45307         * modules/open (Depends-on): Likewise.
45308         * modules/readlink (Depends-on): Likewise.
45309         * modules/same (Depends-on): Likewise.
45310
45311         stat: fix Solaris 9 bug
45312         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45313         slash.
45314         * lib/stat.c (rpl_stat): Work around it.
45315         * doc/posix-functions/stat.texi (stat): Update documentation.
45316
45317         stat: new module, for mingw bug
45318         * modules/stat: New file.
45319         * lib/stat.c: Likewise.
45320         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45322         * modules/sys_stat (Makefile.am): Use them.
45323         * lib/sys_stat.in.h (stat): Declare replacement.
45324         * lib/openat.c (fstatat): Deal with lstat and stat being function
45325         macros.
45326         * modules/openat (Depends-on): Add inline.
45327         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45328         * doc/posix-functions/stat.texi (stat): Likewise.
45329         * modules/stat-tests: New test.
45330         * tests/test-stat.c: Likewise.
45331
45332 2009-09-19  Jim Meyering  <meyering@redhat.com>
45333
45334         syntax-check: detect unnecessary inclusion of canonicalize.h
45335         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45336
45337 2009-09-19  Eric Blake  <ebb9@byu.net>
45338
45339         canonicalize-lgpl: adjust clients to use correct header
45340         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45341         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45342         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45343         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45344         * lib/progreloc.c (includes): Likewise.
45345
45346 2009-09-19  Jim Meyering  <meyering@redhat.com>
45347
45348         test-posixtm.c: correct a comment
45349         * tests/test-posixtm.c: Correct first-line comment.
45350         Spotted by Eric Blake.
45351
45352 2009-09-16  Jim Meyering  <meyering@redhat.com>
45353
45354         posixtm-tests: make T const-correct; add a test case
45355         * tests/test-posixtm.c (T): Declare const.
45356         Add a test for -(2^31+1).
45357         Remove useless can-succeed-only-in-2002 test.
45358
45359         posixtm-tests: adjust the sole failing test
45360         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45361         expected output matches what mktime now produces.  Cross-checked via
45362         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45363
45364         posixtm: move #ifdef'd tests into a new module
45365         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45366         * tests/test-posixtm.c: ... this new file.
45367         * modules/posixtm-tests: New module.
45368
45369 2009-09-19  Eric Blake  <ebb9@byu.net>
45370
45371         openat: simplify use of at-func.c
45372         * lib/at-func.c (includes): Include prerequisites here, to
45373         simplify requirements on client files.
45374         * lib/openat-priv.h: Add double-inclusion guard.
45375         * lib/faccessat.c (includes): Simplify.
45376         * lib/fchmodat.c (includes): Likewise.
45377         * lib/fchownat.c (includes): Likewise.
45378         * lib/mkdirat.c (includes): Likewise.
45379         * lib/mkfifoat.c (includes): Likewise.
45380         * lib/symlinkat.c (includes): Likewise.
45381
45382         openat: allow return of fd 0
45383         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45384         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45385         unistd-safer.
45386         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45387         <fcntl.h>; this module does not leak fds.
45388         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45389         must be allowed to return 0, leaving openat_safer to add the
45390         safety.
45391         (openat_permissive): Avoid writing to just-opened fd 2 if
45392         restoring the current directory fails.
45393         * lib/openat-die.c (openat_restore_fail): Add comment.
45394         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45395         (save_cwd): Guarantee safe fd, but without use of open_safer.
45396         * tests/test-openat.c: New test.
45397         * modules/openat-tests (Files, Makefile.am): Distribute and build
45398         new file.
45399
45400         relocatable-prog-wrapper: fix build
45401         * modules/relocatable-prog-wrapper (Files): Update name of
45402         canonicalize m4 file, broken on 2009-09-17.
45403         Reported by emad hajjar <aleppos@hotmail.com>.
45404
45405 2009-09-19  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45408         * lib/safe-alloc.c: Likewise.
45409         Reported by Ian Beckwith <ianb@erislabs.net>.
45410
45411 2009-09-18  Bruno Haible  <bruno@clisp.org>
45412
45413         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45414         Reported by <erobles@sensacd.com.mx>.
45415
45416 2009-09-17  Eric Blake  <ebb9@byu.net>
45417
45418         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45419         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45420         slashes when checking if last component is missing.
45421         * tests/test-canonicalize.c (main): Test this.
45422
45423         canonicalize, canonicalize-lgpl: honor // if distinct from /
45424         * modules/canonicalize (Files): Add double-slash-root.m4.
45425         * modules/canonicalize-lgpl (Files): Likewise.
45426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45427         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45428         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45429         fallback definition.
45430         (canonicalize_filename_mode): Use it to protect //.
45431         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45432         (__realpath): Likewise.
45433         * tests/test-canonicalize.c (main): Test this.
45434         * tests/test-canonicalize-lgpl.c (main): Likewise.
45435         * modules/canonicalize-tests (Depends-on): Add same-inode.
45436         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45437
45438         canonicalize-lgpl: fix glibc bug with trailing slash
45439         * m4/canonicalize-lgpl.m4: Move contents...
45440         * m4/canonicalize.m4: ...here.
45441         (gl_CANONICALIZE_LGPL): Factor realpath check...
45442         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45443         glibc 2.3.5 bug, fixed 2005-04-27.
45444         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45445         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45446         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45447         * modules/canonicalize-lgpl (Files): Manage file rename.
45448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45449         * modules/stdlib (Makefile.am): Substitute witness.
45450         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45451         is needed.
45452         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45453         replacement is required.
45454         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45455         * doc/glibc-functions/canonicalize_file_name.texi
45456         (canonicalize_file_name): Document this.
45457         * doc/posix-functions/realpath.texi (realpath): Likewise.
45458
45459         canonicalize-lgpl: reject non-directory with trailing slash
45460         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45461         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45462         catches failures in glibc 2.3.5.
45463         * tests/test-canonicalize.c (main): Likewise.
45464
45465         canonicalize-lgpl: use native realpath if it works
45466         * lib/canonicalize-lgpl.c (realpath): Guard with
45467         FUNC_REALPATH_WORKS.
45468         * lib/stdlib.in.h (realpath): Make declaration optional based on
45469         HAVE_REALPATH.
45470         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45471         native realpath works.
45472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45473         * modules/stdlib (Makefile.am): Substitute witness.
45474
45475         canonicalize, canonicalize-lgpl: use <stdlib.h>
45476         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45477         (Include): Mention <stdlib.h>.
45478         (configure.ac): Mention functions we provide.
45479         * modules/canonicalize (configure.ac): Likewise.
45480         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45481         realpath if canonicalize_file_name is missing.
45482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45483         * modules/stdlib (Makefile.am): Substitute witnesses.
45484         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45485         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45486         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45487         * NEWS: Document this.
45488         * doc/glibc-functions/canonicalize_file_name.texi
45489         (canonicalize_file_name): Likewise.
45490         * doc/posix-functions/realpath.texi (realpath): Likewise.
45491         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45492
45493         test-canonicalize: consolidate into single C program
45494         * tests/test-canonicalize.sh: Delete; move setup into...
45495         * tests/test-canonicalize.c (main): ...the program, making it
45496         easier to run in debugger.  Add some tests.
45497         * modules/canonicalize-tests (Files): Remove unused file.
45498         (Depends-on): Add progname.
45499         (configure.ac, Makefile.am): Simplify.
45500
45501         test-canonicalize-lgpl: consolidate into single C program
45502         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45503         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45504         easier to run in debugger.  Add some tests.
45505         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45506         (configure.ac, Makefile.am): Simplify.
45507
45508         canonicalize: avoid resolvepath
45509         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45510         unnecessary checks.
45511         * lib/canonicalize.c (includes): Simplify.
45512         (canonicalize_file_name): Drop resolvepath implementation.
45513         * modules/canonicalize (Depends-on): Drop filenamecat.
45514
45515         canonicalize: don't lose errno
45516         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45517         over calls to free.
45518
45519         canonicalize: simplify errno handling
45520         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45521         assignment.
45522
45523         canonicalize, canonicalize-lgpl: update module dependencies
45524         * modules/canonicalize (Depends-on): Add extensions, lstat,
45525         pathmax, stdlib.
45526         (Files): Drop pathmax.h.
45527         (configure.ac): Adjust macro name.
45528         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45529         lstat, stdlib, sys_stat.
45530         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45531         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45532         extensions.
45533         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45534         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45535         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45536         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45537         declaration, if available.
45538         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45539         we can rely on the readlink module.
45540         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45541         (includes): Use <unistd.h> unconditionally.
45542
45543 2009-09-17  Eric Blake  <ebb9@byu.net>
45544
45545         maint: make Include sections of modules consistent
45546         * modules/alloca: Use only header name; no need to list #include.
45547         * modules/alloca-opt: Likewise.
45548         * modules/arpa_inet: Likewise.
45549         * modules/canon-host: Likewise.
45550         * modules/configmake: Likewise.
45551         * modules/dirent: Likewise.
45552         * modules/eealloc: Likewise.
45553         * modules/environ: Likewise.
45554         * modules/fchdir: Likewise.
45555         * modules/fcntl: Likewise.
45556         * modules/fcntl-h: Likewise.
45557         * modules/gethrxtime: Likewise.
45558         * modules/gettime: Likewise.
45559         * modules/ignore-value: Likewise.
45560         * modules/inet_ntop: Likewise.
45561         * modules/inet_pton: Likewise.
45562         * modules/inttypes: Likewise.
45563         * modules/isnand-nolibm: Likewise.
45564         * modules/isnanf-nolibm: Likewise.
45565         * modules/mbchar: Likewise.
45566         * modules/mbfile: Likewise.
45567         * modules/mbiter: Likewise.
45568         * modules/mbuiter: Likewise.
45569         * modules/netdb: Likewise.
45570         * modules/netinet_in: Likewise.
45571         * modules/nproc: Likewise.
45572         * modules/pagealign_alloc: Likewise.
45573         * modules/poll: Likewise.
45574         * modules/printf-frexp: Likewise.
45575         * modules/pthread: Likewise.
45576         * modules/putenv: Likewise.
45577         * modules/random_r: Likewise.
45578         * modules/relocatable-prog: Likewise.
45579         * modules/search: Likewise.
45580         * modules/select: Likewise.
45581         * modules/selinux-h: Likewise.
45582         * modules/settime: Likewise.
45583         * modules/signal: Likewise.
45584         * modules/size_max: Likewise.
45585         * modules/socklen: Likewise.
45586         * modules/ssize_t: Likewise.
45587         * modules/stdarg: Likewise.
45588         * modules/stdbool: Likewise.
45589         * modules/stddef: Likewise.
45590         * modules/stdint: Likewise.
45591         * modules/stdio: Likewise.
45592         * modules/stdlib: Likewise.
45593         * modules/string: Likewise.
45594         * modules/strings: Likewise.
45595         * modules/sys_file: Likewise.
45596         * modules/sys_ioctl: Likewise.
45597         * modules/sys_select: Likewise.
45598         * modules/sys_socket: Likewise.
45599         * modules/sys_stat: Likewise.
45600         * modules/sys_time: Likewise.
45601         * modules/sys_times: Likewise.
45602         * modules/sys_utsname: Likewise.
45603         * modules/sys_wait: Likewise.
45604         * modules/sysexits: Likewise.
45605         * modules/time: Likewise.
45606         * modules/times: Likewise.
45607         * modules/tmpfile: Likewise.
45608         * modules/trim: Likewise.
45609         * modules/unistd: Likewise.
45610         * modules/wchar: Likewise.
45611         * modules/wctype: Likewise.
45612
45613 2009-09-17  Bruno Haible  <bruno@clisp.org>
45614
45615         Make getdate.y compile on QNX and NetBSD 5 / i386.
45616         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45617         TIME_T_FITS_IN_LONG_INT.
45618         * lib/getdate.y (long_time_t): New type.
45619         (relative_time): Change type of 'seconds' field to long_time_t.
45620         (get_date): Update types of local variables. Check against overflow
45621         during conversion from long_time_t to time_t.
45622         Reported by Matt Kraai <kraai@ftbfs.org>
45623         and Hasso Tepper <hasso@netbsd.org>.
45624
45625 2009-09-17  Bruno Haible  <bruno@clisp.org>
45626
45627         * modules/COPYING: Update copyright years.
45628         * modules/README: Likeiwse.
45629         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45630         Reported by Ian Beckwith <ianb@erislabs.net>.
45631
45632 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45633
45634         * users.txt: Update references for gnuit package.
45635
45636 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45637
45638         * m4/getdelim.m4: Fix typo in copyright line.
45639
45640 2009-09-17  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/atoll.c: Use the standard header with GPL copyright.
45643         * lib/argz.in.h: Likewise.
45644         * lib/glob.c: Likewise.
45645         * lib/glob-libc.h: Likewise.
45646         * lib/random_r.c: Likewise.
45647         * lib/siglist.h: Likewise.
45648         * lib/strsignal.c: Likewise.
45649         Reported by Ian Beckwith <ianb@erislabs.net>.
45650
45651 2009-09-17  Eric Blake  <ebb9@byu.net>
45652
45653         rmdir: ensure correct dependency order
45654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45655
45656 2009-09-17  Bruno Haible  <bruno@clisp.org>
45657
45658         Disable assertion that fails on NetBSD 5 / i386.
45659         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45660         Reported by Sam Steingold <sds@gnu.org>
45661         and Hasso Tepper <hasso@netbsd.org>.
45662
45663 2009-09-16  Eric Blake  <ebb9@byu.net>
45664
45665         unlinkdir: port to mingw
45666         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45667         on which no one can unlink a directory.
45668
45669         stdlib: sort witness names
45670         * modules/stdlib (Makefile.am): Sort replacements.
45671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45672         * lib/stdlib.in.h: Likewise.
45673
45674         parse-duration-tests: avoid link failure
45675         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45676         LIBINTL.
45677         Reported by Tom G. Christensen.
45678
45679         openat-tests: ensure unlinkat behaves like rmdir
45680         * tests/test-rmdir.c (main): Factor guts...
45681         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45682         * modules/rmdir-tests (Files): Ship new file.
45683         * modules/openat-tests: New test.
45684         * tests/test-unlinkat.c: Likewise.
45685
45686         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45687         * modules/rmdir-errno (Status, Notice): Now obsolete.
45688
45689         rmdir: work around cygwin 1.5.x and mingw bugs
45690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45691         * lib/rmdir.c (rmdir): Work around it.
45692         * modules/rmdir (Status, Notice): No longer obsolete.
45693         (Files): Add dos.m4.
45694         (Depends-on): Add unistd.
45695         (configure.ac): Set witnesses.
45696         (License): Relax to LGPLv2+.
45697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45698         * modules/unistd (Makefile.am): Substitute witnesses.
45699         * lib/unistd.in.h (rmdir): Declare replacement.
45700         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45701         * modules/rmdir-tests: New tests.
45702         * tests/test-rmdir.c: Likewise.
45703
45704 2009-09-15  Eric Blake  <ebb9@byu.net>
45705
45706         fchdir: improve use of replacement functions
45707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45710         REPLACE_CLOSEDIR.
45711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45712         * modules/sys_stat (Makefile.am): Substitute correct witness.
45713         * modules/dirent (Makefile.am): Likewise.
45714         * modules/unistd (Makefile.am): Likewise.
45715         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45716         * lib/unistd.in.h (dup): Likewise.
45717         * lib/sys_stat.in.h (fstat): Likewise.
45718
45719         maint: ignore gnulib-tool temp files
45720         * .gitignore: Ignore files created during gnulib-tool --test.
45721
45722 2009-09-13  Jim Meyering  <meyering@redhat.com>
45723
45724         posixtm: don't reject a time that specify "60" as the number of seconds
45725         * lib/posixtm.c (posixtime): The code to reject invalid dates
45726         would also reject a time specified with the .60 suffix.
45727         But POSIX allows that, in order to accommodate leap seconds.
45728         So don't reject it.
45729         (main): Adjust tests accordingly.
45730         * modules/posixtm (Depends-on): Add stpcpy.
45731
45732 2009-09-11  Jim Meyering  <meyering@redhat.com>
45733
45734         announce-gen: include [$release_type] in emitted Subject:
45735         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45736         e.g., [stable] in the emitted Subject: line.
45737
45738 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45739
45740         Remove obsolete macros from several modules.
45741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45742         obsolete Autoconf macros with their modern counterparts.
45743         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45744         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45746         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45747         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45748         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45751         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45752         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45753         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45754         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45755         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45756         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45757         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45759         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45760         * m4/time_r.m4 (gl_TIME_R): Likewise.
45761         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45762         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45763         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45764
45765         Fix copyright header in build-aux scripts.
45766         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45767         recommendation.
45768         * build-aux/ncftpput-ftp: Likewise.
45769         * build-aux/update-copyright: Likewise.
45770
45771 2009-09-09  Eric Blake  <ebb9@byu.net>
45772
45773         test-link: allow Linux choice of errno
45774         * tests/test-link.c (main): Relax test for alternate error.
45775
45776         strndup: fix improper m4 caching
45777         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45778         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45779         (gl_PREREQ_STRNDUP): Delete.
45780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45781         * modules/string (Makefile.am): Substitute it.
45782         * lib/string.in.h (strndup): Modernize prototype.
45783
45784         getcwd: port to mingw
45785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45786         different from the POSIX assumptions made throughout the getcwd
45787         module; fortunately, the mingw getcwd does not need replacement.
45788         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45789         * modules/getcwd-tests: New test.
45790         * tests/test-getcwd.c: Likewise.
45791
45792         link: fix platform bugs
45793         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45794         * lib/link.c (link): Work around them.  Fix related mingw bug.
45795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45796         * modules/unistd (Makefile.am): Substitute it.
45797         * lib/unistd.in.h (link): Declare replacement.
45798         * doc/posix-functions/link.texi (link): Document this.
45799         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45800
45801         test-link: consolidate into single C program, test more cases
45802         * tests/test-link.sh: Delete.
45803         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45804         at least Cygwin and Solaris.
45805         * modules/link-tests (Files): Remove unused file.
45806         (Depends-on): Add errno, sys_stat.
45807         (Makefile.am): Simplify.
45808
45809 2009-09-08  Bruno Haible  <bruno@clisp.org>
45810
45811         Work around towlower, towupper bug on mingw.
45812         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45813         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45814         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45815         * doc/posix-functions/towupper.texi: Likewise.
45816         Reported by Eric Blake.
45817
45818 2009-09-08  Jim Meyering  <meyering@redhat.com>
45819
45820         build: don't try to run autoheader if we don't use it
45821         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45822         is not used in configure.ac.
45823
45824 2009-09-08  Eric Blake  <ebb9@byu.net>
45825
45826         euidaccess: fix compilation error
45827         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45828
45829         rawmemchr: relax license
45830         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45831         okay.
45832         Reported by Jim Meyering.
45833
45834         mkfifoat: new module
45835         * modules/mkfifoat: New file.
45836         * lib/mkfifoat.c: Likewise.
45837         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45838         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45839         * modules/sys_stat (Makefile.am): Use them.
45840         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45841         * MODULES.html.sh (File system functions): Mention module.
45842         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45843         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45844         * modules/mkfifoat-tests: New test.
45845         * tests/test-mkfifoat.c: Likewise.
45846
45847         strchrnul: relax license
45848         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45849         okay.
45850         Reported by Jim Meyering.
45851
45852 2009-09-08  Eric Blake  <ebb9@byu.net>
45853
45854         fstatat: fix compilation on Solaris
45855         * lib/fstatat.c (includes): Add fcntl.h.
45856         Reported by Pádraig Brady.
45857
45858 2009-09-07  Eric Blake  <ebb9@byu.net>
45859
45860         rename: modernize replacement
45861         * modules/rename (Depends-on): Add stdio.
45862         (configure.ac): Declare witness.
45863         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45864         stdio take care of replacement.
45865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45866         * modules/stdio (Makefile.am): Substitute them.
45867         * lib/stdio.in.h (rename): Declare replacement.
45868         * lib/rename.c (includes): Allow cross-compilation to non-windows
45869         machines.
45870         * doc/posix-functions/rename.texi (rename): Improve
45871         documentation.
45872
45873         stdio: sort witness names
45874         * modules/stdio (Makefile.am): Sort replacements.
45875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45876         * lib/stdio.in.h: Likewise.
45877
45878         getcwd: minor cleanups
45879         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45880         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45881
45882         openat: provide more convenience names
45883         * modules/faccessat (configure.ac): Add C witness.
45884         * lib/unistd.in.h (readlinkat): Fix typo.
45885         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45886         convenience wrappers.
45887         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45888         wrappers in syntax checks.
45889
45890 2009-09-06  Eric Blake  <ebb9@byu.net>
45891
45892         doc: fix comments in recent patches
45893         * lib/faccessat.c: Mention correct function.
45894         * lib/fchmodat.c: Likewise.
45895         * lib/fchownat.c: Likewise.
45896         * lib/symlinkat.c: Likewise.
45897         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45898         constants.
45899
45900         faccessat, symlinkat: continue cleanup of previous patch
45901         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45903         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45905         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45906         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45907         set.
45908
45909 2009-09-06  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45912         (fstatat): Declare if GNULIB_FSTATAT is set.
45913         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45914         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45915         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45916         * modules/fcntl-h (Files): Remove m4/openat.m4.
45917         * modules/sys_stat (Files): Remove m4/openat.m4.
45918         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45919         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45920         * modules/unistd (Files): Remove m4/openat.m4.
45921         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45922         GNULIB_OPENAT.
45923         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45924         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45926         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45927         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45928         gl_OPENAT_DEFAULTS.
45929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45930         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45931         Don't require gl_OPENAT_DEFAULTS.
45932         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45933         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45934         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45935         (gl_OPENAT_DEFAULTS): Remove macro.
45936
45937 2009-09-06  Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/openat (configure.ac): Remove unneeded witness.
45940
45941 2009-09-06  Bruno Haible  <bruno@clisp.org>
45942
45943         Set errno to ENOSYS when a function is entirely unsupported.
45944         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45945         EOPNOTSUPP.
45946         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45947         * modules/chown (Depends-on): Remove errno.
45948
45949 2009-09-06  Bruno Haible  <bruno@clisp.org>
45950
45951         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45952
45953 2009-09-06  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45956
45957 2009-09-06  Ben Pfaff  <blp@gnu.org>
45958             Bruno Haible  <bruno@clisp.org>
45959
45960         Work around a glibc bug in strtok_r.
45961         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45962         Undefine if UNDEFINE_STRTOK_R is set.
45963         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45965         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45967         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45968         UNDEFINE_STRTOK_R.
45969         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45970
45971 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45972
45973         exclude: minor fix
45974         * lib/exclude.c: Include wctype.h
45975
45976 2009-09-06  Akim Demaille  <demaille@gostai.com>
45977
45978         bootstrap: improve error message
45979         * build-aux/bootstrap (find_tool): Upon failure, report the list
45980         of candidates.
45981         Honor the initial value of the envvar.
45982
45983 2009-09-05  Eric Blake  <ebb9@byu.net>
45984
45985         symlinkat: new module
45986         * modules/symlinkat: New file.
45987         * lib/symlinkat.c: Likewise.
45988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45990         * modules/unistd (Makefile.am): Use them.
45991         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45992         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45993         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45994         * MODULES.html.sh (File system functions): Mention module.
45995         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45996         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45997         * modules/symlinkat-tests: New test.
45998         * tests/test-symlinkat.c: Likewise.
45999
46000         test-openat-safer: add more checks
46001         * tests/test-openat-safer.c (main): Check more code paths.
46002
46003 2009-09-05  Jim Meyering  <meyering@redhat.com>
46004
46005         syntax-check: detect unnecessary inclusion of openat.h
46006         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46007
46008 2009-09-05  Bruno Haible  <bruno@clisp.org>
46009
46010         Support towlower, towupper.
46011         * doc/posix-functions/towlower.texi: Mention module wctype.
46012         * doc/posix-functions/towupper.texi: Likewise.
46013         * lib/wctype.in.h (towlower, towupper): New functions.
46014         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46015         (ASSERT): New macro.
46016         (e): New variable.
46017         (main): Test also towlower, towupper. Test WEOF argument.
46018         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46019
46020 2009-09-05  Bruno Haible  <bruno@clisp.org>
46021
46022         Fix conversion behaviour when the input is invalid.
46023         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46024         mark occurring in first pass of indirect conversion.
46025         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46026         input.
46027         Found by clang's static analyzer.
46028
46029 2009-09-05  Bruno Haible  <bruno@clisp.org>
46030
46031         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46032         where direct conversion is possible.
46033
46034 2009-09-04  Eric Blake  <ebb9@byu.net>
46035
46036         openat: fail with ENOENT on empty name
46037         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46038         buffer.
46039
46040         link-follow: fix logic bug in prior patch
46041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46042         reversed sense of yes and no in prior patch.  Avoid confusing
46043         compilation failure with desired semantics.
46044
46045         link-follow: accommodate mingw and cross-compilation
46046         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46047         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46048         cross-compilation results to -1, to make linkat easier to
46049         implement when cross-compiling.  Trivially support mingw.
46050         * modules/link-follow (configure.ac): Call new name.
46051         * NEWS: Mention this.
46052
46053 2009-09-03  Eric Blake  <ebb9@byu.net>
46054
46055         faccessat: compile replacement
46056         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46057         needed.
46058
46059         fts: fix compilation error
46060         * lib/fts.c (includes): Re-add "openat.h", for
46061         openat_needs_fchdir.
46062
46063         faccessat: new module
46064         * modules/faccessat: New file.
46065         * lib/faccessat.c: Likewise.
46066         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46068         * modules/unistd (Makefile.am): Use it.
46069         * lib/unistd.in.h (faccessat): Declare it.
46070         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46071         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46072         * MODULES.html.sh (File system functions): Mention it.
46073         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46074         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46075
46076         euidaccess: prefer POSIX over non-standard implementation
46077         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46078         * lib/euidaccess.c (euidaccess): Use it if available.
46079
46080         openat: make template easier to use
46081         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46082         AT_FUNC_F2 to be undefined.
46083         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46084         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46085         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46086         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46087         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46088         Likewise.
46089         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46090         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46091         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46092         Likewise.
46093
46094         openat: declare in POSIX headers
46095         * NEWS: Mention this.
46096         * modules/openat (configure.ac): Declare witnesses.
46097         (Depends-on): Add fcntl-h, sys_stat, unistd.
46098         (Include): Mention correct headers.
46099         * modules/fcntl-h (Depends-on): Add link-warning.
46100         (Files): Add openat.m4.
46101         (Makefile.am): Substitute witnesses.
46102         * modules/sys_stat (Files, Makefile.am): Likewise.
46103         * modules/unistd (Files, Makefile.am): Likewise.
46104         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46105         (gl_OPENAT_DEFAULTS): New macro.
46106         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46109         (SYS_STAT_H): Remove unused variable.
46110         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46111         * lib/fcntl--.h (includes): Remove unneeded header.
46112         * lib/openat-safer.c (includes): Likewise.
46113         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46114         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46115         appropriate headers.
46116         (__OPENAT_PREFIX): Delete.
46117         * lib/fcntl.in.h (openat): Provide declaration.
46118         (AT_FDCWD): Fix Solaris bug.
46119         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46120         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46121         * lib/fchmodat.c (includes):  Adjust to find declaration.
46122         * lib/fchownat.c (includes): Likewise.
46123         * lib/mkdirat.c (includes): Likewise.
46124         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46125         still visible.
46126
46127 2009-09-02  Eric Blake  <ebb9@byu.net>
46128
46129         errno: use consistently
46130         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46131         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46132         * lib/canonicalize.c (ELOOP): Likewise.
46133         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46134         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46135         * lib/lchown.c (EOPNOTSUPP): Likewise.
46136         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46137         * lib/savewd.c (ESTALE): Likewise.
46138         * lib/settime.c (ENOSYS): Likewise.
46139         * lib/utimens.c (ENOSYS): Likewise.
46140         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46141         * lib/chdir-safer.c (ELOOP): Likewise.
46142         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46143         * modules/c-stack (Depends-on): Add errno.
46144         * modules/canonicalize (Depends-on): Likewise.
46145         * modules/chdir-safer (Depends-on): Likewise.
46146         * modules/fdopendir (Depends-on): Likewise.
46147         * modules/inet_ntop (Depends-on): Likewise.
46148         * modules/inet_pton (Depends-on): Likewise.
46149         * modules/lchown (Depends-on): Likewise.
46150         * modules/openat (Depends-on): Likewise.
46151         * modules/savewd (Depends-on): Likewise.
46152         * modules/settime (Depends-on): Likewise.
46153         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46154
46155         fts: avoid leaking fds
46156         * modules/fts (Depends-on): Add cloexec.
46157         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46158         flag.
46159
46160         fts: make directory fds more robust
46161         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46162         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46163
46164         backupfile, chdir-long, fts, savedir: make safer
46165         * lib/backupfile.c (includes): Use "dirent--.h", since
46166         numbered_backup can write to stderr during readdir.
46167         * lib/savedir.c (includes): Likewise.
46168         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46169         emulation can write to stderr on failure.
46170         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46171         * lib/getcwd.c: Document why opendir_safer is unused.
46172         * lib/glob.c: Likewise.
46173         * lib/scandir.c: Likewise.
46174         * lib/openat-proc.c: Likewise, for open_safer.
46175         * modules/backupfile (Depends-on): Add dirent-safer.
46176         * modules/savedir (Depends-on): Likewise.
46177         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46178         * modules/chdir-long (Depends-on): Add openat-safer.
46179
46180         openat-safer: new module
46181         * modules/openat-safer: New file.
46182         * lib/openat-safer.c: Likewise.
46183         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46184         * lib/fcntl-safer.h (openat_safer): Declare.
46185         * lib/fcntl--.h (openat): Override.
46186         * MODULES.html.sh (File descriptor based I/O): Mention it.
46187         * lib/openat.h: Add double-inclusion guards.
46188         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46189         "fcntl--.h", so we can implement openat.
46190         * modules/openat-safer-tests: New test.
46191         * tests/test-openat-safer.c: New file.
46192
46193         dirent-safer: new module
46194         * modules/dirent-safer: New file.
46195         * lib/dirent--.h: Likewise.
46196         * lib/dirent-safer.h: Likewise.
46197         * lib/opendir-safer.c: Likewise.
46198         * m4/dirent-safer.m4: Likewise.
46199         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46200         * modules/dirent-safer-tests: New test.
46201         * tests/test-dirent-safer.c: New file.
46202         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46203
46204         fdopendir: optimize on mingw
46205         * lib/unistd.in.h (_gl_directory_name): New prototype.
46206         * lib/fchdir.c (_gl_directory_name): Implement it.
46207         (fchdir): Use it to simplify implementation.
46208         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46209         fchdir, when available, to avoid calling [f]chdir().
46210
46211         fdopendir: split into its own module
46212         * lib/openat.c (fdopendir): Move...
46213         * lib/fdopendir.c: ...into new file.
46214         * modules/fdopendir: New module.
46215         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46216         * modules/openat (Depends-on): Add fdopendir.
46217         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46218         fdopendir here.
46219         * modules/savedir (Depends-on): Only need fdopendir, not full
46220         openat.
46221         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46222         * lib/openat.h (fdopendir): Drop prototype.
46223         * lib/dirent.in.h (fdopendir): Provide prototype.
46224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46225         * modules/dirent (Makefile.am): Substitute them.
46226         * MODULES.html.sh (File system functions): Mention it.
46227         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46228         * modules/fdopendir-tests: New file.
46229         * tests/test-fdopendir.c: Likewise.
46230
46231         fchdir: use more consistent macro convention
46232         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46233         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46234         REPLACE_FCHDIR, rather than relying on config.h macros.
46235         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46236         inside a single make-time REPLACE_FCHDIR block, rather than using
46237         the config.h FCHDIR_REPLACEMENT.
46238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46239         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46240         Manage fstat replacement.
46241         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46242         REPLACE_FCHDIR.
46243         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46244         (Makefile.am): Substitute REPLACE_FCHDIR.
46245         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46246         FCHDIR_REPLACEMENT.
46247         * lib/dup-safer.c (dup_safer): Likewise.
46248         * lib/dup2.c (rpl_dup2): Likewise.
46249         * lib/dup3.c (rpl_dup3): Likewise.
46250         * lib/open.c (rpl_open): Likewise.
46251
46252         fchdir: simplify error handling, and support dup3
46253         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46254         stdbool, malloc-posix, realloc-posix.
46255         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46256         (ensure_dirs_slot): Return false on allocation failure.
46257         (rpl_dup2): Delete.
46258         (_gl_register_dup): New function.
46259         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46260         (_gl_register_fd): Close fd on allocation failure.
46261         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46262         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46263         prototype.
46264         (rpl_dup2_fchdir): Delete prototype.
46265         * lib/open.c (open): Update caller.
46266         * lib/dup2.c (dup2): Track fchdir metadata.
46267         * lib/dup3.c (dup3): Likewise.
46268         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46270
46271 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46272
46273         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46274         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46275         don't pass arguments to AC_OUTPUT.
46276
46277 2009-09-02  Bruno Haible  <bruno@clisp.org>
46278
46279         * modules/mkdtemp (License): Relicense under LGPLv2+.
46280         Reported by Paolo Bonzini.
46281
46282 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46283
46284         Replace uses of obsolete autoconf macros in Jim's modules.
46285         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46286         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46287         can evoke a warning from autoconf when run with -Wobsolete
46288         enabled.  They were declared obsolete for good reasons (see
46289         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46290         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46291         should not continue using the deprecated macros.
46292         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46293         obsolete Autoconf macros with modern counterparts.
46294         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46295         * m4/dos.m4 (gl_AC_DOS): Likewise.
46296         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46298         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46299         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46300         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46302         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46303         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46304         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46305         Likewise.
46306         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46307         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46308         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46309         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46310         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46311         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46312
46313 2009-09-01  Eric Blake  <ebb9@byu.net>
46314
46315         fchdir: fix off-by-one bug in previous patch
46316         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46317         (_gl_unregister_fd): Delete useless if.
46318
46319 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46320
46321         maint.mk: sort the list of syntax-check rules
46322         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46323         easier to get a sense of progress when the rules are run sequentially
46324         and take a long time.
46325
46326 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46327
46328         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46329         * modules/netinet_in: Likewise.
46330         * modules/sys_file: Likewise.
46331         * modules/sys_ioctl: Likewise.
46332         * modules/sys_select: Likewise.
46333         * modules/sys_socket: Likewise.
46334         * modules/sys_stat: Likewise.
46335         * modules/sys_time: Likewise.
46336         * modules/sys_times: Likewise.
46337         * modules/sys_utsname: Likewise.
46338         * modules/sys_wait: Likewise.
46339
46340 2009-09-01  Jim Meyering  <meyering@redhat.com>
46341
46342         fts: help ensure that return values are not ignored
46343         * lib/fts_.h (__GNUC_PREREQ): Define.
46344         (__attribute_warn_unused_result__): Define.
46345         (fts_children, fts_close, fts_open, fts_read): Declare with
46346         __attribute_warn_unused_result__.
46347
46348         fts: fts_close now fails also when closing a dir file descriptor fails
46349         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46350         and propagate to caller, along with errno.
46351
46352         announce-gen: correct formatting in --help output
46353         * build-aux/announce-gen (usage): Move the one-line description in
46354         --help output "up", to where it belongs, just after Usage:.
46355
46356 2009-08-31  Eric Blake  <ebb9@byu.net>
46357
46358         fchdir: port to mingw
46359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46360         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46361         opened, then use a substitute.
46362         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46363         replacement.
46364         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46365         (_gl_register_fd): No need to check stat if open already filters
46366         all directories.
46367         (fchdir): Fix error condition to match POSIX.
46368         * modules/fchdir (Depends-on): Add sys_stat.
46369         * doc/posix-functions/open.texi (open): Document the limitation.
46370         * modules/fchdir-tests: New file.
46371         * tests/test-fchdir.c: Likewise.
46372
46373         canonicalize: allow cross-testing from cygwin to mingw
46374         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46375         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46376         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46377         Likewise.
46378         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46379         target does not support symlinks.
46380         * tests/test-canonicalize-lgpl.sh: Likewise.
46381
46382         chown: avoid compilation warning on mingw
46383         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46384         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46385         mingw.
46386         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46387         * modules/chown (Depends-on): Add errno.
46388
46389 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46390
46391         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46392         command.
46393
46394 2009-08-31  Jim Meyering  <meyering@redhat.com>
46395
46396         canonicalize: remove useless initialization
46397         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46398         initialization of local, "end".
46399
46400 2009-08-30  Bruno Haible  <bruno@clisp.org>
46401
46402         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46403         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46404         ENOSYS.
46405
46406 2009-08-30  Bruno Haible  <bruno@clisp.org>
46407
46408         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46409         /usr/xpg4/bin/tr when it exists.
46410         * tests/test-pipe-filter-gi1.sh: Likewise.
46411
46412 2009-08-30  Bruno Haible  <bruno@clisp.org>
46413
46414         Work around deficient /usr/bin/id program on Solaris.
46415         * tests/test-file-has-acl.sh (ID): New variable.
46416         * tests/test-set-mode-acl.sh (ID): Likewise.
46417         * tests/test-copy-acl.sh (ID): Likewise.
46418         * tests/test-copy-file.sh (ID): Likewise.
46419
46420 2009-08-30  Bruno Haible  <bruno@clisp.org>
46421
46422         New module 'xstriconveh'.
46423         * lib/xstriconveh.h: New file.
46424         * lib/xstriconveh.c: New file.
46425         * modules/xstriconveh: New file.
46426
46427 2009-08-30  Bruno Haible  <bruno@clisp.org>
46428
46429         Make it easier to use mem_cd_iconveh.
46430         * lib/striconveh.h (iconveh_t): New type.
46431         (iconveh_open, iconveh_close): New declarations.
46432         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46433         with a single 'const iconveh_t *' argument.
46434         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46435         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46436         with a single 'const iconveh_t *' argument.
46437         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46438         * tests/test-striconveh.c (main): Update.
46439         * NEWS: Mention the change.
46440
46441 2009-08-30  Bruno Haible  <bruno@clisp.org>
46442
46443         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46444         problem.
46445
46446 2009-08-30  Bruno Haible  <bruno@clisp.org>
46447
46448         Work around iconv_open problem on Solaris.
46449         * lib/iconv_open-solaris.gperf: New file.
46450         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46451         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46452         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46453         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46454         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46455         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46456
46457 2009-08-29  Jim Meyering  <meyering@redhat.com>
46458
46459         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46460         * top/maint.mk (cvs-check): Remove target; it was just an alias
46461         to the better-named vc-diff-check.
46462         (maintainer-distcheck): Remove rule.  It was used only from
46463         the (alpha/beta/major) target, and all of its commands but one
46464         were coreutils-specific.
46465         (vc-dist): Remove rule.
46466         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46467         Run vc-diff-check, not vc-dist.
46468         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46469
46470 2009-08-27  Bruno Haible  <bruno@clisp.org>
46471
46472         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46473         of 0.
46474
46475 2009-08-27  Bruno Haible  <bruno@clisp.org>
46476
46477         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46478         compilers.
46479         * doc/func.texi: Document the SunPRO C bug.
46480
46481 2009-08-27  Bruno Haible  <bruno@clisp.org>
46482
46483         Fix link error on Solaris.
46484         * tests/test-parse-duration.c (xstrdup): Remove function.
46485
46486 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46487
46488         ignore-value: handle pointer types, too
46489         * lib/ignore-value.h (__attribute__): Remove definition.
46490         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46491         of a more concise and more-often effective "(void) i" statement.
46492         (ignore_ptr): New function to suppress warnings from functions that
46493         return pointers, and to make it explicit that one function doesn't
46494         handle all cases.
46495
46496 2009-08-25  Bruno Haible  <bruno@clisp.org>
46497
46498         dup2: work around a Linux bug.
46499         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46500         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46501         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46502         Reported by Simon Josefsson.
46503
46504 2009-08-25  Jim Meyering  <meyering@redhat.com>
46505
46506         libguestfs uses gnulib
46507         * users.txt: Add libguestfs.
46508
46509 2009-08-24  Eric Blake  <ebb9@byu.net>
46510
46511         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46512         * lib/pipe2.c (includes): Add binary-io.h.
46513         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46514
46515 2009-08-24  Bruno Haible  <bruno@clisp.org>
46516
46517         Tolerate declared but missing accept4 syscall.
46518         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46519         available.
46520         * lib/sys_socket.in.h (accept4): If the function is already present,
46521         override it.
46522         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46523         * modules/accept4 (Makefile.am): Compile accept4.c always.
46524         Reported by Paolo Bonzini and Eric Blake.
46525
46526 2009-08-23  Bruno Haible  <bruno@clisp.org>
46527
46528         New module 'accept4'.
46529         * lib/sys_socket.in.h (accept4): New declaration.
46530         * lib/accept4.c: New file.
46531         * m4/accept4.m4: New file.
46532         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46533         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46534         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46535         HAVE_ACCEPT4.
46536         * modules/accept4: New file.
46537         * doc/glibc-functions/accept4.texi: Mention the new module.
46538
46539 2009-08-24  Jim Meyering  <meyering@redhat.com>
46540
46541         progname: also set global program_invocation_name, when possible
46542         Before this change, a libtool-enabled program that calls glibc's
46543         error function would report the program name as
46544         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46545         * modules/progname (configure.ac): Check for a declaration of
46546         program_invocation_name.
46547         * lib/progname.c:  Include <errno.h>.
46548         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46549         Set program_invocation_name.
46550
46551 2009-08-23  Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/dup3.c: Include <string.h>.
46554
46555 2009-08-23  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46558         * lib/pipe2.c (pipe2): Likewise.
46559         Suggested by Eric Blake.
46560
46561 2009-08-23  Bruno Haible  <bruno@clisp.org>
46562
46563         Tolerate declared but missing dup3 syscall.
46564         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46565         * lib/unistd.in.h (dup3): If the function is already present,
46566         override it.
46567         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46568         * modules/dup3 (Makefile.am): Compile dup3.c always.
46569         Reported by Paolo Bonzini.
46570
46571 2009-08-23  Bruno Haible  <bruno@clisp.org>
46572
46573         Tolerate declared but missing pipe2 syscall.
46574         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46575         available.
46576         * lib/unistd.in.h (pipe2): If the function is already present,
46577         override it.
46578         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46579         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46580         Reported by Paolo Bonzini.
46581
46582 2009-08-23  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/pipe2.c (pipe2): Move #ifs inside function.
46585
46586 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46587
46588         quotearg: document limitations of quote_these_too
46589         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46590         those limitations are created.
46591         * lib/quotearg.h (set_char_quoting): Document that digits and
46592         letters that are special after backslash are not permitted.
46593         (quotearg_char): Cross-reference set_char_quoting documentation.
46594
46595 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46596
46597         quotearg: implement custom_quoting_style
46598         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46599         right_quote fields.
46600         (set_custom_quoting): New public function.
46601         (quotearg_buffer_restyled): Add left_quote and right_quote
46602         arguments, handle them very much like locale quoting, and update
46603         all uses.
46604         (quotearg_n_custom): New public function.
46605         (quotearg_n_custom_mem): New public function.
46606         (quotearg_custom): New public function.
46607         (quotearg_custom_mem): New public function.
46608         * lib/quotearg.h: Prototype and document new public functions.
46609         (enum quoting_style): For escape_quoting_style and
46610         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46611         ignored even though they're otherwise like c_quoting_style.
46612         Add custom_quoting_style member and document with comparison to
46613         clocale_quoting_style.
46614         * tests/test-quotearg.c (custom_quotes): New array.
46615         (custom_results): New array.
46616         (main): Extend to test custom quoting.
46617
46618 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46619
46620         quotearg: fix right quote escaping when it's in quote_these_too
46621         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46622         quote, be sure to prepend only one backslash.
46623         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46624         (main): Test it.
46625
46626 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46627
46628         quotearg-tests: test escaping of embedded locale quotes
46629         * tests/test-quotearg.c (struct result_strings): Add member for
46630         new input.
46631         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46632         (inputs): Add new input.
46633         (results_g): Add expected results.
46634         (flag_results): Likewise.
46635         (locale_results): Likewise.
46636         (compare_strings): Check those.
46637
46638 2009-08-23  Bruno Haible  <bruno@clisp.org>
46639
46640         Tests for module 'dup3'.
46641         * modules/dup3-tests: New file.
46642         * tests/test-dup3.c: New file.
46643
46644         New module 'dup3'.
46645         * lib/unistd.in.h (dup3): New declaration.
46646         * lib/dup3.c: New file.
46647         * m4/dup3.m4: New file.
46648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46649         HAVE_DUP3.
46650         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46651         * modules/dup3: New file.
46652         * doc/glibc-functions/dup3.texi: Mention the new module.
46653
46654 2009-08-23  Bruno Haible  <bruno@clisp.org>
46655
46656         Tweak the dup2 test.
46657         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46658         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46659         the test file is still empty. Fix argument order of lseek.
46660
46661 2009-08-23  Bruno Haible  <bruno@clisp.org>
46662
46663         Avoid test link errors when the modules getopt-gnu, gettext are used.
46664         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46666
46667 2009-08-23  Bruno Haible  <bruno@clisp.org>
46668
46669         Fix getdtablesize() on mingw.
46670         * lib/getdtablesize.c (getdtablesize): Implement differently.
46671         * lib/unistd.in.h (getdtablesize): Improve comment.
46672
46673 2009-08-23  Bruno Haible  <bruno@clisp.org>
46674
46675         New module 'mkostemp'.
46676         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46677         * lib/stdlib.in.h (mksotemp): New declaration.
46678         * lib/mkostemp.c: New file, from glibc with modifications.
46679         * lib/tempname.h (GT_FILE): Remove outdated comment.
46680         (gen_tempname): Add flags argument.
46681         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46682         (__GT_FILE): Map to 1.
46683         (small_open, large_open): Remove macros.
46684         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46685         * lib/mkstemp.c (mkstemp): Update.
46686         * lib/mkdtemp.c (mkdtemp): Likewise.
46687         * m4/mkostemp.m4: New file.
46688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46689         HAVE_MKOSTEMP.
46690         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46691         HAVE_MKOSTEMP.
46692         * modules/mkostemp: New file, based on modules/mkstemp.
46693         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46694         * NEWS: Mention the change.
46695
46696 2009-08-23  Bruno Haible  <bruno@clisp.org>
46697
46698         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46699         Reported by Eric Blake.
46700
46701 2009-08-23  Bruno Haible  <bruno@clisp.org>
46702
46703         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46704         Reported by Eric Blake.
46705
46706 2009-08-23  Bruno Haible  <bruno@clisp.org>
46707
46708         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46709         * modules/pipe2 (Depends-on): Likewise.
46710
46711 2009-08-23  Eric Blake  <ebb9@byu.net>
46712
46713         fcntl-h: add O_TTY_INIT support
46714         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46715         * tests/test-fcntl-h.c (o): Test it.
46716         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46717
46718         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46719         * modules/fcntl: Move <fcntl.h> header replacement...
46720         * modules/fcntl-h: ...to new name, so as not to collide with
46721         like-named function.
46722         * tests/test-fcntl.c: Rename...
46723         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46724         * modules/fcntl-tests: Rename...
46725         * modules/fcntl-h-tests: ...to this.  Update test file name.
46726         * modules/chdir-long (Depends-on): Update clients.
46727         * modules/chdir-safer (Depends-on): Likewise.
46728         * modules/fcntl-safer (Depends-on): Likewise.
46729         * modules/fts (Depends-on): Likewise.
46730         * modules/mkancesdirs (Depends-on): Likewise.
46731         * modules/mkdir-p (Depends-on): Likewise.
46732         * modules/open (Depends-on): Likewise.
46733         * modules/savewd (Depends-on): Likewise.
46734         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46735         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46736
46737 2009-08-22  Bruno Haible  <bruno@clisp.org>
46738
46739         * modules/binary-io (License): Relicense under LGPL.
46740         * modules/pipe2 (License): Likewise.
46741
46742 2009-08-22  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46745         return value.
46746         * lib/pipe-filter-gi.c (filter_init): Likewise.
46747         Reported by Eric Blake.
46748
46749 2009-08-22  Bruno Haible  <bruno@clisp.org>
46750
46751         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46752         * modules/pipe (Depends-on): Add pipe2.
46753
46754 2009-08-22  Bruno Haible  <bruno@clisp.org>
46755
46756         Tests for module 'pipe2'.
46757         * modules/pipe2-tests: New file.
46758         * tests/test-pipe2.c: New file.
46759
46760         New module 'pipe2'.
46761         * lib/unistd.in.h (pipe2): New declaration.
46762         * lib/pipe2.c: New file.
46763         * m4/pipe2.m4: New file.
46764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46765         HAVE_PIPE2.
46766         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46767         * modules/pipe2: New file.
46768         * doc/glibc-functions/pipe2.texi: Mention the new module.
46769
46770 2009-08-22  Bruno Haible  <bruno@clisp.org>
46771
46772         Reference some new glibc functions.
46773         * doc/glibc-functions/accept4.texi: New file.
46774         * doc/glibc-functions/dup3.texi: New file.
46775         * doc/glibc-functions/mkostemp.texi: New file.
46776         * doc/glibc-functions/pipe2.texi: New file.
46777         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46778         (Glibc sys/socket.h): Refer to accept4.
46779         (Glibc unistd.h): Refer to dup3, pipe2.
46780         Reported by Eric Blake.
46781
46782 2009-08-22  Jim Meyering  <meyering@redhat.com>
46783             Bruno Haible  <bruno@clisp.org>
46784
46785         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46786         This makes it so packages using automake-1.11's silent-rules option
46787         can print e.g., a single "GEN    configmake.h" line, rather than
46788         the 30+ statements that perform the job.  If you want to see the
46789         actual commands, you can still run "make V=1".
46790         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46791         so that make output is abbreviated when those variables are defined
46792         appropriately.
46793         * modules/argz: Likewise.
46794         * modules/arpa_inet: Likewise.
46795         * modules/byteswap: Likewise.
46796         * modules/configmake: Likewise.
46797         * modules/dirent: Likewise.
46798         * modules/errno: Likewise.
46799         * modules/fcntl: Likewise.
46800         * modules/float: Likewise.
46801         * modules/fnmatch: Likewise.
46802         * modules/getopt-posix: Likewise.
46803         * modules/glob: Likewise.
46804         * modules/iconv_open: Likewise.
46805         * modules/inttypes: Likewise.
46806         * modules/localcharset: Likewise.
46807         * modules/locale: Likewise.
46808         * modules/math: Likewise.
46809         * modules/netdb: Likewise.
46810         * modules/netinet_in: Likewise.
46811         * modules/poll: Likewise.
46812         * modules/posix_spawnp-tests: Likewise.
46813         * modules/sched: Likewise.
46814         * modules/search: Likewise.
46815         * modules/selinux-h: Likewise.
46816         * modules/signal: Likewise.
46817         * modules/spawn: Likewise.
46818         * modules/stdarg: Likewise.
46819         * modules/stdbool: Likewise.
46820         * modules/stddef: Likewise.
46821         * modules/stdint: Likewise.
46822         * modules/stdio: Likewise.
46823         * modules/stdlib: Likewise.
46824         * modules/string: Likewise.
46825         * modules/strings: Likewise.
46826         * modules/sys_file: Likewise.
46827         * modules/sys_ioctl: Likewise.
46828         * modules/sys_select: Likewise.
46829         * modules/sys_socket: Likewise.
46830         * modules/sys_stat: Likewise.
46831         * modules/sys_time: Likewise.
46832         * modules/sys_times: Likewise.
46833         * modules/sys_utsname: Likewise.
46834         * modules/sys_wait: Likewise.
46835         * modules/sysexits: Likewise.
46836         * modules/time: Likewise.
46837         * modules/unistd: Likewise.
46838         * modules/wchar: Likewise.
46839         * modules/wctype: Likewise.
46840
46841 2009-08-22  Jim Meyering  <meyering@redhat.com>
46842
46843         announce-gen: detect write failure
46844         * build-aux/announce-gen: Add Coda at end.
46845         Remove equivalent-but-more-verbose block at top.
46846
46847 2009-08-19  Akim Demaille  <demaille@gostai.com>
46848
46849         bootstrap: --help to stdout.
46850         * bootstrap (usage): Don't send --help to stderr.
46851         Use a here doc instead of a long string.
46852
46853 2009-08-21  Eric Blake  <ebb9@byu.net>
46854
46855         test-popen-safer: split from test-popen
46856         * tests/test-popen.c (main): Move...
46857         * tests/test-popen.h: ...into new file.
46858         * tests/test-popen-safer2.c: New file.
46859         * modules/popen-tests (Files): Add test-popen.h.
46860         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46861         Suggested by Bruno Haible.
46862
46863         test-fcntl-safer: split from test-open
46864         * tests/test-open.c (main): Move...
46865         * tests/test-open.h: ...into new file.
46866         * tests/test-fcntl-safer.c: New file.
46867         * modules/open-tests (Files): Add test-open.h.
46868         * modules/fcntl-safer-tests: New file.
46869         Suggested by Bruno Haible.
46870
46871         test-fopen-safer: split from test-fopen
46872         * tests/test-fopen.c (main): Move...
46873         * tests/test-fopen.h: ...into new file.
46874         * tests/test-fopen-safer.c: New file.
46875         * modules/fopen-tests (Files): Add test-fopen.h.
46876         * modules/fopen-safer-tests: New file.
46877         Suggested by Bruno Haible.
46878
46879 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46880
46881         popen-safer: test O_CLOEXEC at run-time.
46882         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46883
46884 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46885
46886         fcntl: move more flags to the header
46887         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46888         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46889         * lib/fcntl.in.h: Do both things here.
46890
46891 2009-08-21  Jim Meyering  <meyering@redhat.com>
46892
46893         consistently remove $@-t before redirecting to it
46894         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46895         * modules/alloca-opt: Likewise.
46896         * modules/byteswap: Likewise.
46897         * modules/fnmatch: Likewise.
46898         * modules/getopt-posix: Likewise.
46899         * modules/glob: Likewise.
46900         * modules/poll: Likewise.
46901         * modules/posix_spawnp-tests: Likewise.
46902         * modules/sys_socket: Likewise.
46903         * modules/sysexits: Likewise.
46904
46905 2009-08-21  Eric Blake  <ebb9@byu.net>
46906
46907         popen: simplify access to original popen
46908         * lib/popen.c (rpl_popen): No need to worry about popen being a
46909         macro.
46910         Reported by Bruno Haible.
46911
46912 2009-08-20  Eric Blake  <ebb9@byu.net>
46913
46914         build: avoid some compiler warnings
46915         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46916         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46917         type.
46918         (new_exclude_segment, excluded_file_pattern_p)
46919         (excluded_file_name_p): Reduce scope.
46920         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46921         old-style declaration.
46922
46923 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46924
46925         * tests/test-exclude1.sh: Handle Windows EOL.
46926         * tests/test-exclude2.sh: Likewise.
46927         * tests/test-exclude3.sh: Likewise.
46928         * tests/test-exclude4.sh: Likewise.
46929         * tests/test-exclude5.sh: Likewise.
46930         * tests/test-exclude6.sh: Likewise.
46931         * tests/test-exclude7.sh: Likewise.
46932
46933 2009-08-19  Akim Demaille  <demaille@gostai.com>
46934
46935         bootstrap: find sha1sum when named gsha1sum.
46936         * bootstrap (find_tool): New.
46937         ($SHA1SUM): New.
46938         Use it.
46939
46940 2009-08-20  Jim Meyering  <meyering@redhat.com>
46941
46942         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46943         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46944         expression that converts "." in a file name to "\." in the resulting
46945         regexp.  Start with a dummy statement, so that prior shell variable
46946         definitions are expanded portably.  Reported by Simon Josefsson.
46947
46948 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46949
46950         Fix polling for writeability of a screen buffer.
46951         * lib/poll.c: Distinguish input and screen buffers for the
46952         Win32 implementation.
46953         * lib/select.c: Likewise.
46954
46955 2009-08-19  Eric Blake  <ebb9@byu.net>
46956
46957         popen-safer: prevent popen from clobbering std descriptors
46958         * modules/popen-safer: New file.
46959         * lib/popen-safer.c: Likewise.
46960         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46961         * lib/stdio--.h (popen): Provide override.
46962         * lib/stdio-safer.h (popen_safer): Provide declaration.
46963         * tests/test-popen.c (includes): Partially test this.
46964         * modules/popen-safer-tests: New file, for more tests.
46965         * tests/test-popen-safer.c: Likewise.
46966         * MODULES.html.sh (file stream based Input/Output): Mention it.
46967
46968         tests: test some of the *-safer modules
46969         * modules/fopen-safer (Depends-on): Add fopen.
46970         * modules/fcntl-safer (Depends-on): Add fcntl.
46971         * modules/stdlib-safer (Depends-on): Add stdlib.
46972         (configure.ac): Set indicator.
46973         * modules/unistd-safer (configure.ac): Likewise.
46974         * modules/tmpfile-safer (configure.ac): Likewise.
46975         (Depends-on): Add tmpfile.
46976         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46977         active.
46978         * tests/test-fopen.c (includes): Test safer versions when they are
46979         in use.
46980         * tests/test-open.c (includes): Likewise.
46981
46982         popen: fix cygwin 1.5 bug when stdin closed
46983         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46984         * modules/popen: New file.
46985         * modules/popen-tests: Likewise.
46986         * tests/test-popen.c: Likewise.
46987         * m4/popen.m4: Likewise.
46988         * lib/popen.c: Likewise.
46989         * lib/stdio.in.h (popen): New declaration.
46990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46991         * modules/stdio (Makefile.am): Likewise.
46992         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46993
46994 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46995
46996         maint.mk: give full control over update-copyright exclusions
46997         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46998         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46999         (update-copyright): Don't force inclusion of top-level
47000         ChangeLog.  Don't force exclusion of all COPYING files, but make
47001         them the default exclusion instead.
47002
47003 2009-08-16  Bruno Haible  <bruno@clisp.org>
47004
47005         Fix test failures on Solaris 10.
47006         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47007         tests when Solaris iconv() is used.
47008         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47009         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47010         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47011         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47012         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47013
47014 2009-08-16  Bruno Haible  <bruno@clisp.org>
47015
47016         Fix test failures on Solaris 10.
47017         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47018         'tr' program and pass it as first argument.
47019         * tests/test-pipe-filter-gi1.sh: Likewise.
47020         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47021         program as first argument.
47022         * tests/test-pipe-filter-gi1.c (main): Likewise.
47023
47024 2009-08-16  Eric Blake  <ebb9@byu.net>
47025
47026         fpurge: fix previous commits
47027         * modules/fpurge (Makefile.am): Make replacement conditional,
47028         partially reverting 2007-04-29 change; missed in previous
47029         attempt.
47030         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47031         is missing.
47032
47033 2009-08-16  Bruno Haible  <bruno@clisp.org>
47034
47035         Clarify fpurge's effect on the file position.
47036         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47037         * tests/test-fpurge.c (main): Make a second pass for checking the file
47038         position.
47039
47040 2009-08-16  Bruno Haible  <bruno@clisp.org>
47041
47042         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47043         declaration of fpurge is missing.
47044         * tests/test-fpurge.c (main): Check that the file has not more contents
47045         than expected. Close the file before removing it.
47046
47047 2009-08-15  Eric Blake  <ebb9@byu.net>
47048
47049         fpurge: don't wrap working cygwin implementation
47050         * lib/fpurge.c (fpurge): Fix comment typo.
47051         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47052         1.7 to avoid replacement.
47053         * tests/test-fpurge.c (main): Enhance test.
47054
47055 2009-08-15  Eric Blake  <ebb9@byu.net>
47056         and Jim Meyering  <meyering@redhat.com>
47057
47058         test-update-copyright: skip if perl is insufficient
47059         * tests/test-update-copyright.sh: Failure to run maintainer tool
47060         should not cause testsuite failure on cygwin 1.5.
47061
47062 2009-08-14  Eric Blake  <ebb9@byu.net>
47063
47064         doc: mention more functions added in cygwin 1.7.0
47065         * doc/posix-headers/limits.texi (limits.h): Update for recent
47066         cygwin additions.
47067         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47068         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47069         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47070         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47071         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47072
47073 2009-08-14  Eric Blake  <ebb9@byu.net>
47074
47075         maint.mk: simplify update-copyright rule
47076         * top/maint.mk (update-copyright-local): Delete, and document how
47077         to do it in cfg.mk instead.
47078         (update-copyright-exclude-regexp): Delete, and document how to do
47079         it in .x-update-copyright instead.
47080         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47081         exclude ChangeLog.
47082
47083 2009-08-14  Bruno Haible  <bruno@clisp.org>
47084
47085         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47086
47087 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47088
47089         maint.mk: support update-copyright-env
47090         * top/maint.mk (update-copyright-env): Define place-holder.
47091         (update-copyright): Expand $(update-copyright-env) before
47092         invoking update-copyright.
47093
47094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47095
47096         update-copyright: implement forced reformatting
47097         * build-aux/update-copyright: Implement and document
47098         UPDATE_COPYRIGHT_FORCE.
47099         * tests/test-update-copyright.sh: Test it.
47100
47101 2009-08-14  Eric Blake  <ebb9@byu.net>
47102         and Bruno Haible  <bruno@clisp.org>
47103
47104         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47105         * tests/test-locale.c: Revert previous patch related to NULL.
47106         * tests/test-stdio.c: Likewise.
47107         * tests/test-stdlib.c: Likewise.
47108         * tests/test-string.c: Likewise.
47109         * tests/test-unistd.c: Likewise.
47110         * modules/time-tests (Depends-on): Add verify.
47111         * modules/wchar-tests (Depends-on): Likewise.
47112         * tests/test-time.c: Test for NULL compliance.
47113         * tests/test-wchar.c: Likewise.
47114         * modules/locale (Depends-on): Add stddef.
47115         * modules/stdio (Depends-on): Likewise.
47116         * modules/stdlib (Depends-on): Likewise.
47117         * modules/string (Depends-on): Likewise.
47118         * modules/time (Depends-on): Likewise.
47119         * modules/unistd (Depends-on): Likewise.
47120         * modules/wchar (Depends-on): Likewise.
47121         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47122         * lib/stdlib.in.h (includes): Likewise.
47123         * lib/string.in.h (includes): Likewise.
47124         * lib/time.in.h (includes): Likewise.
47125         * lib/unistd.in.h (includes): Likewise.
47126         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47127         replaced.
47128         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47129         * m4/stddef_h.m4: New file.
47130         * modules/stddef: Likewise.
47131         * lib/stddef.in.h: Likewise.
47132         * modules/stddef-tests: Likewise.
47133         * tests/test-stddef.c: Likewise.
47134         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47135         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47136         * doc/posix-headers/locale.texi (locale.h): Likewise.
47137         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47138         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47139         * doc/posix-headers/string.texi (string.h): Likewise.
47140         * doc/posix-headers/time.texi (time.h): Likewise.
47141         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47142         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47143
47144 2009-08-14  Eric Blake  <ebb9@byu.net>
47145
47146         doc: improve git diff of texinfo files
47147         * .gitattributes: Add rule for *.texi files, with hint on how to
47148         use it.
47149         Copied from m4, and based on a report by Bruno Haible.
47150
47151 2009-08-14  Bruno Haible  <bruno@clisp.org>
47152
47153         Disable multithread support by default on Cygwin 1.5.x for real.
47154         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47155
47156 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47157
47158         update-copyright: much ado about intervals
47159         * build-aux/update-copyright: Implement and document
47160         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47161         of copyright year intervals.
47162         Also, document UPDATE_COPYRIGHT_YEAR.
47163         * tests/test-update-copyright.sh: Test it.
47164
47165         update-copyright: convert 2-digit to 4-digit years
47166         * build-aux/update-copyright: Implement and document.
47167         * tests/test-update-copyright.sh: Update.
47168
47169 2009-08-14  Jim Meyering  <meyering@redhat.com>
47170
47171         test-exclude: avoid coreutils "make check" failure
47172         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47173         just as in test-argmatch.c.
47174
47175 2009-08-13  Eric Blake  <ebb9@byu.net>
47176
47177         test-dup2: fix bad assumption
47178         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47179         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47180
47181         test-version-etc: fix CRLF portability issue
47182         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47183         recognize \r.
47184         * tests/test-argp-version-etc-1.sh: Likewise.
47185
47186         getopt: update client modules
47187         * modules/argp (Depends-on): Use getopt-gnu.
47188         * modules/git-merge-changelog (Depends-on): Likewise.
47189         * modules/long-options (Depends-on): Likewise.
47190         * modules/xstrtol (Depends-on): Likewise.
47191
47192 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47193
47194         * tests/test-version-etc.sh: Don't fail on different
47195         project/version.  Don't fail on CRLF differences.  Rewrite to use
47196         multiple -e instead of multiple sed forks, suggested by Eric Blake
47197         <ebb9@byu.net>.
47198         * tests/test-argp-version-etc-1.sh: Likewise.
47199
47200 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47201
47202         * tests/test-version-etc.sh: Don't fail on different
47203         project/version.
47204
47205 2009-08-12  Bruno Haible  <bruno@clisp.org>
47206
47207         Tests for modules 'getopt-posix', 'getopt-gnu'.
47208         * modules/getopt-posix-tests: New file.
47209         * tests/test-getopt.c: New file.
47210         * tests/test-getopt.h: New file.
47211         * tests/test-getopt_long.h: New file.
47212
47213         New modules 'getopt-posix', 'getopt-gnu'.
47214         * modules/getopt-gnu: New file, renamed from modules/getopt.
47215         * modules/getopt-posix: New file.
47216         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47217         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47218         (gl_GETOPT): Remove macro.
47219         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47220         Disable the test against BSD systems that declare optreset. Test
47221         against mingw bug. Test against lack of support of optional arguments
47222         on many platforms.
47223         * doc/glibc-headers/getopt.texi: Update module name and list of
47224         relevant platforms.
47225         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47226         'getopt-gnu' and more portability problems.
47227         * NEWS: Mention the changes.
47228
47229 2009-08-12  Bruno Haible  <bruno@clisp.org>
47230
47231         Ensure that optarg etc. get declared by <unistd.h>.
47232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47233         AC_USE_SYSTEM_EXTENSIONS.
47234         * modules/getopt (Depends-on): Add 'extensions'.
47235
47236 2009-08-12  Bruno Haible  <bruno@clisp.org>
47237
47238         Avoid test link errors.
47239         * modules/pipe-filter-ii-tests (Makefile.am): Define
47240         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47241         * modules/pipe-filter-gi-tests (Makefile.am): Define
47242         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47244
47245 2009-08-12  Bruno Haible  <bruno@clisp.org>
47246
47247         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47248         gl_GETOPT_SUBSTITUTE before.
47249         (gl_GETOPT): Use it.
47250         * m4/argp.m4 (gl_ARGP): Update.
47251         Reported by Sergey Poznyakoff.
47252
47253         * m4/getopt.m4: Reorder macros.
47254         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47255         (gl_GETOPT_SUBSTITUTE): Remove macro.
47256
47257 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47258
47259         Minor improvement in gitlog-to-changelog
47260
47261         * build-aux/gitlog-to-changelog: New option `--format' makes
47262         output format string configurable.
47263
47264 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47265
47266         Optimize exclude: use hash tables for non-wildcard patterns.
47267
47268         * lib/exclude.c: Include hash.h and mbuiter.h
47269         (struct exclude_pattern, exclude_segment): New data types.
47270         (struct exclude): Rewrite.
47271         (fnmatch_pattern_has_wildcards): New function.
47272         (new_exclude_segment, free_exclude_segment): New functions.
47273         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47274         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47275         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47276         * modules/exclude: Depend on hash and mbuiter.
47277
47278         * modules/exclude-tests: New file.
47279         * tests/test-exclude.c: New file.
47280         * tests/test-exclude1.sh: New file.
47281         * tests/test-exclude2.sh: New file.
47282         * tests/test-exclude3.sh: New file.
47283         * tests/test-exclude4.sh: New file.
47284         * tests/test-exclude5.sh: New file.
47285         * tests/test-exclude6.sh: New file.
47286         * tests/test-exclude7.sh: New file.
47287
47288 2009-08-12  Bruno Haible  <bruno@clisp.org>
47289
47290         Ensure that getopt() gets declared by <unistd.h>.
47291         * lib/unistd.in.h: Conditionally include getopt.h.
47292         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47293         Set GNULIB_UNISTD_H_GETOPT.
47294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47295         GNULIB_UNISTD_H_GETOPT.
47296         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47297
47298 2009-08-12  Bruno Haible  <bruno@clisp.org>
47299
47300         Clarify logic.
47301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47302         gl_replace_getopt instead of GETOPT_H.
47303
47304 2009-08-12  Bruno Haible  <bruno@clisp.org>
47305
47306         * m4/getopt.m4: Add comments.
47307
47308 2009-08-12  Bruno Haible  <bruno@clisp.org>
47309
47310         Disable multithread support by default on Cygwin 1.5.x.
47311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47312         set gl_use_threads=no if not specified otherwise.
47313
47314 2009-08-11  Bruno Haible  <bruno@clisp.org>
47315
47316         Avoid compilation error on NetBSD 5.0.
47317         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47318         * tests/test-stdio.c: Likewise.
47319         * tests/test-stdlib.c: Likewise.
47320         * tests/test-string.c: Likewise.
47321         * tests/test-unistd.c: Likewise.
47322         Reported by Greg Troxel <gdt@ir.bbn.com>
47323         at <https://savannah.gnu.org/support/?106973>.
47324
47325 2009-08-11  Bruno Haible  <bruno@clisp.org>
47326
47327         * modules/dup2-tests (Depends-on): Remove close.
47328
47329         Undo 2009-07-19 commit.
47330         * modules/acl-tests (Depends-on): Remove close.
47331         * modules/binary-io-tests (Depends-on): Likewise.
47332         * modules/closein-tests (Depends-on): Likewise.
47333         * modules/flock-tests (Depends-on): Likewise.
47334         * modules/fsync-tests (Depends-on): Likewise.
47335         * modules/lseek-tests (Depends-on): Likewise.
47336         * modules/pipe-tests (Depends-on): Likewise.
47337         * modules/posix_spawn-tests (Depends-on): Likewise.
47338         * modules/posix_spawnp-tests (Depends-on): Likewise.
47339         * modules/stat-time-tests (Depends-on): Likewise.
47340         * modules/yesno-tests (Depends-on): Likewise.
47341
47342 2009-08-10  Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47345
47346 2009-08-10  Bruno Haible  <bruno@clisp.org>
47347
47348         Fix a gcc warning.
47349         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47350
47351 2009-08-10  Bruno Haible  <bruno@clisp.org>
47352
47353         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47354         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47355         not only the first time.
47356         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47357         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47358         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47359         is 1, not only the the first time.
47360
47361 2009-08-10  Bruno Haible  <bruno@clisp.org>
47362
47363         Make it possible to use module 'gethostname' without module 'close'.
47364         * lib/unistd.in.h (close): Evoke a link error only if
47365         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47368         * modules/unistd (Makefile.am): Substitute
47369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47370         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47371         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47373         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47374         * modules/sys_ioctl (Makefile.am): Substitute
47375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47376         * modules/socket (configure.ac): On native Windows, set
47377         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47378         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47379         Reported by Sam Steingold <sds@gnu.org>.
47380
47381 2009-08-10  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47384         * modules/ioctl (configure.ac): Likewise.
47385
47386 2009-08-10  Bruno Haible  <bruno@clisp.org>
47387
47388         Avoid collision between gnulib wrapper and libintl wrapper.
47389         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47390         already defined in intl/printf.c.
47391         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47392         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47393
47394 2009-08-09  Bruno Haible  <bruno@clisp.org>
47395
47396         Make <sys/select.h> really self-contained, also on Solaris 10.
47397         * lib/sys_select.in.h: Include <string.h>.
47398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47399         Solaris 10 problem.
47400         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47401         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47402         Reported by Jim Meyering.
47403
47404 2009-08-09  Bruno Haible  <bruno@clisp.org>
47405
47406         Avoid warnings from 'aclocal' that are due to a use of macro name
47407         AM_XGETTEXT_OPTION that is not defined in automake.
47408         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47409         automake.
47410         * modules/error (configure.ac): Likewise.
47411         * modules/propername (configure.ac): Likewise.
47412         * modules/vasprintf (configure.ac): Likewise.
47413         * modules/verror (configure.ac): Likewise.
47414         * modules/xprintf (configure.ac): Likewise.
47415         * modules/xvasprintf (configure.ac): Likewise.
47416
47417 2009-08-08  Bruno Haible  <bruno@clisp.org>
47418
47419         Avoid compilation error in C++ mode.
47420         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47421         Reported by Sam Steingold <sds@gnu.org>.
47422
47423 2009-08-08  Bruno Haible  <bruno@clisp.org>
47424
47425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47426         for the various Unix platforms.
47427         * doc/posix-headers/limits.texi: Update platforms list regarding
47428         HOST_NAME_MAX.
47429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47430
47431 2009-08-07  Jim Meyering  <meyering@redhat.com>
47432
47433         selinux-at: fix typo in a comment
47434         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47435         Spotted by Paolo Bonzini.
47436
47437         selinux-at: remove redundant m4 code, add documentation
47438         * modules/selinux-at (configure.ac): Remove redundant code.
47439         LIB_SELINUX is already set via the dependent module, selinux-h.
47440         (Include): Add quotes around selinux-at.h.
47441         * lib/selinux-at.h: Add documentation.
47442         Reported by Bruno Haible in
47443         http://marc.info/?l=gnulib-bug&m=124958988300749
47444
47445 2009-08-07  Bruno Haible  <bruno@clisp.org>
47446
47447         Avoid link error on MacOS X 10.3 and 10.4.
47448         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47449         on non-ELF systems.
47450         * lib/argp-pv.c (argp_program_version): Likewise.
47451         Reported by Simon Josefsson.
47452
47453 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47454
47455         * tests/test-version-etc.sh: Use $EXEEXT.
47456
47457 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47458
47459         update-copyright: update documentation to point to maint.mk
47460         * build-aux/update-copyright: Here.
47461
47462 2009-08-06  Jim Meyering  <meyering@redhat.com>
47463
47464         maint.mk: support update-copyright-local
47465         * top/maint.mk (update-copyright-local): Define place-holder.
47466         (update-copyright): Depend on $(update-copyright-local).
47467
47468 2009-08-06  Jim Meyering  <meyering@redhat.com>
47469
47470         selinux-at: new module
47471         Initially written for coreutils, this module will soon be
47472         used by findutils, too.
47473         * MODULES.html.sh [Misc]: Add selinux-at.
47474         * lib/selinux-at.h: New file, from coreutils.
47475         * lib/selinux-at.c: Likewise.
47476         * modules/selinux-at: Likewise.
47477         (License): Change from LGPL to GPL, since it depends
47478         on the GPL'd openat module.
47479
47480         doc: update README
47481         * README: Remove references to cogito.
47482         Remove cvs-repo-updating instructions from 2007.
47483         Don't imply that CVS is better if you have limited disk space.
47484
47485 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47486
47487         update-copyright: support C-style comments
47488         * build-aux/update-copyright: Implement and document.
47489         * tests/test-update-copyright.sh: Test.
47490
47491 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47492
47493         update-copyright: support omitted "(C)"
47494         * build-aux/update-copyright: Implement and document.  Also,
47495         allow variable whitespace before "(C)".
47496         * tests/test-update-copyright.sh: Test.
47497
47498 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47499
47500         update-copyright: don't trip on non-FSF copyright statements
47501         * build-aux/update-copyright: Fix so that the first correctly
47502         formatted FSF copyright statement is recognized no matter what
47503         appears before it.  Update documentation.
47504         * tests/test-update-copyright.sh: Test that.
47505
47506 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47507
47508         update-copyright: clean up code a little
47509         * build-aux/update-copyright: Append "_re" to the name of any
47510         variable holding a regular expression.
47511         Replace "old" and "new" with "stmt" in variable names.
47512         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47513         handled correctly.
47514         Format code more consistently.
47515
47516 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47517
47518         update-copyright-tests: improve portability
47519         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47520         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47521
47522 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47523
47524         update-copyright: support @copyright{} and &copy;
47525         * build-aux/update-copyright: Implement and document.
47526         * tests/test-update-copyright.sh: Test.
47527
47528 2009-08-04  Jim Meyering  <meyering@redhat.com>
47529
47530         update-copyright-tests: correctly test EOL=\r\n handling
47531         * tests/test-update-copyright.sh: Put \r at the end of some lines
47532         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47533
47534         maint.mk: make update-copyright exclusion list more configurable
47535         * top/maint.mk (update-copyright): Default to excluding COPYING,
47536         but allow an override, in case someone does want to update that file.
47537
47538         maint.mk: don't update copyright date in COPYING
47539         * top/maint.mk (update-copyright): Exclude COPYING.
47540
47541         maint.mk: add a copyright-updating rule
47542         * top/maint.mk (update-copyright): New rule.
47543         Derived from coreutils/Makefile.am.
47544
47545         update-copyright: rename some variables
47546         * build-aux/update-copyright: Rename a few variables for clarity.
47547         Tweak syntax.  List Joel E. Denny as coauthor.
47548
47549 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47550
47551         update-copyright: fix bug for 2-digit last year and add tests
47552         * build-aux/update-copyright: Fix bug.
47553         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47554         specified.
47555         * modules/update-copyright-tests: New
47556         * tests/test-update-copyright.sh: New.
47557
47558 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47559
47560         update-copyright: handle leading tabs in line prefix
47561         * build-aux/update-copyright: Count leading tabs as 8 spaces
47562         when computing margin.  This helps with the formatting of
47563         ChangeLogs, for example.
47564         Fix documentation a little.
47565
47566 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47567
47568         update-copyright: support EOL=\r\n
47569         * build-aux/update-copyright: Implement that.
47570
47571 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47572
47573         update-copyright: automatically format copyright statements
47574         * build-aux/update-copyright: Implement that.
47575         Also, be a little more predictable and safer by always failing
47576         when the full copyright format is not perfectly recognized as an
47577         unbroken whole.  Discussed at
47578         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47579         Rewrite documentation.
47580
47581 2009-08-03  Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47584
47585 2009-08-02  Bruno Haible  <bruno@clisp.org>
47586
47587         Tests for module 'uname'.
47588         * modules/uname-tests: New file.
47589         * tests/test-uname.c: New file.
47590
47591         New module 'uname'.
47592         * lib/uname.c: New file.
47593         * m4/uname.m4: New file.
47594         * modules/uname: New file.
47595         * doc/posix-functions/uname.texi: Mention the new module.
47596
47597 2009-08-02  Bruno Haible  <bruno@clisp.org>
47598
47599         Tests for module 'sys_utsname'.
47600         * modules/sys_utsname-tests: New file.
47601         * tests/test-sys_utsname.c: New file.
47602
47603         New module 'sys_utsname'.
47604         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47605         * m4/sys_utsname_h.m4: New file.
47606         * modules/sys_utsname: New file.
47607         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47608
47609 2009-08-02  Bruno Haible  <bruno@clisp.org>
47610
47611         Implicitly initialize the sockets library.
47612         * lib/gethostname.c: Include sockets.h.
47613         (rpl_gethostname): Invoke gl_sockets_startup.
47614         * lib/socket.c: Include sockets.h.
47615         (rpl_socket): Invoke gl_sockets_startup.
47616         * modules/gethostname (Depends-on): Add sockets.
47617         * modules/socket (Depends-on): Likewise.
47618         * tests/test-poll.c: Don't include sockets.h.
47619         (main): Don't invoke gl_sockets_startup.
47620         * tests/test-select.c: Don't include sockets.h.
47621         (main): Don't invoke gl_sockets_startup.
47622
47623 2009-08-02  Bruno Haible  <bruno@clisp.org>
47624
47625         Allow multiple calls to gl_sockets_startup.
47626         * lib/sockets.c (initialized_sockets_version): New variable.
47627         (gl_sockets_startup): Do nothing if already called for this or a higher
47628         version.
47629         (gl_sockets_cleanup): Reset initialized_sockets_version.
47630
47631 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47632
47633         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47634         different project/version.
47635
47636 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47637             Bruno Haible  <bruno@clisp.org>
47638
47639         Tests for module 'pipe-filter-gi'.
47640         * modules/pipe-filter-gi-tests: New file.
47641         * tests/test-pipe-filter-gi1.sh: New file.
47642         * tests/test-pipe-filter-gi1.c: New file.
47643         * tests/test-pipe-filter-gi2.sh: New file.
47644         * tests/test-pipe-filter-gi2-main.c: New file.
47645         * tests/test-pipe-filter-gi2-child.c: New file.
47646
47647         New module 'pipe-filter-gi'.
47648         * lib/pipe-filter-gi.c: New file.
47649         * modules/pipe-filter-gi: New file.
47650
47651 2009-08-02  Bruno Haible  <bruno@clisp.org>
47652             Paolo Bonzini  <bonzini@gnu.org>
47653
47654         Tests for module 'pipe-filter-ii'.
47655         * modules/pipe-filter-ii-tests: New file.
47656         * tests/test-pipe-filter-ii1.sh: New file.
47657         * tests/test-pipe-filter-ii1.c: New file.
47658         * tests/test-pipe-filter-ii2.sh: New file.
47659         * tests/test-pipe-filter-ii2-main.c: New file.
47660         * tests/test-pipe-filter-ii2-child.c: New file.
47661
47662         New module 'pipe-filter-ii'.
47663         * lib/pipe-filter.h: New file.
47664         * lib/pipe-filter-ii.c: New file.
47665         * lib/pipe-filter-aux.h: New file.
47666         * modules/pipe-filter-ii: New file.
47667
47668 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47669
47670         * lib/gc-libgcrypt.c: Change copyright to FSF.
47671         * lib/gc-gnulib.c: Likewise.
47672
47673 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47674
47675         * lib/gethostname.c: Include limits.h.
47676
47677 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47678             Bruno Haible  <bruno@clisp.org>
47679
47680         Ensure HOST_NAME_MAX as part of the gethostname module.
47681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47682         define also HOST_NAME_MAX.
47683         * tests/test-gethostname.c: Include <limits.h>.
47684         (main): Check also HOST_NAME_MAX.
47685         * doc/posix-headers/limits.texi: Document the mingw problem.
47686
47687 2009-08-02  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47690         Add comments.
47691
47692 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47693
47694         * lib/gethostname.c: Add Windows wrapper.
47695         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47696         * modules/gethostname: Depend on sys_socket & errno, for also
47697         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47698         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47699
47700 2009-07-31  Jim Meyering  <meyering@redhat.com>
47701
47702         getloadavg: fix symbol name in comment
47703         * lib/getloadavg.c: Correct a typo I introduced when adding
47704         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47705         Matt Kraai spotted the problem.
47706
47707 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47708
47709         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47710         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47711         code also if ! defined N_NAME_POINTER.
47712         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47713         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47714         but the n_name member is a 12-byte array.
47715
47716 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47717
47718         update-copyright: generalize comment handling
47719         * build-aux/update-copyright: Handle copyright statements
47720         within more comment styles.
47721         Document usage.
47722         Report any file with an external copyright holder or parse failure.
47723
47724 2009-07-29  Jim Meyering  <meyering@redhat.com>
47725
47726         mktime: correct setting of REPLACE_MKTIME
47727         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47728
47729         update-copyright: new module
47730         * modules/update-copyright: New file.
47731         * build-aux/update-copyright: New file.
47732         * MODULES.html.sh (maint+release support): Add update-copyright.
47733
47734 2009-07-27  Bruno Haible  <bruno@clisp.org>
47735
47736         Fix compilation error when <ctime> is used and mktime is replaced.
47737         * lib/time.in.h (mktime): New declaration.
47738         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47739         REPLACE_MKTIME instead of defining mktime in config.h.
47740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47741         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47742         Reported by Ross McFarland <rwmcfa1@neces.com>.
47743
47744 2009-07-27  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47747         Reported by Matt Kraai <mkraai@beckman.com>.
47748
47749 2009-07-25  Jim Meyering  <meyering@redhat.com>
47750
47751         maint.mk: avoid warnings about missing files
47752         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47753         diagnostic when .prev-version does not exist.
47754         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47755         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47756         nonexistent cfg.mk.
47757         Suggestions from Simon Josefsson.
47758
47759 2009-07-25  Bruno Haible  <bruno@clisp.org>
47760
47761         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47762         defined as macros. Needed on QNX 6.4.1.
47763         Reported by Matt Kraai <mkraai@beckman.com>.
47764
47765 2009-07-23  Jim Meyering  <meyering@redhat.com>
47766
47767         maint.mk: invoke "make dist" with a working value of XZ_OPT
47768         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47769
47770 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47771
47772         Make fseeko.c compile on QNX.
47773         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47774
47775 2009-07-22  Peter Simons  <simons@cryp.to>
47776
47777         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47778         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47779         * lib/md4.h: Likewise.
47780         * lib/md5.h: Likewise.
47781         * lib/sha1.h: Likewise.
47782         * lib/sha256.h: Likewise.
47783         * lib/sha512.h: Likewise.
47784
47785         tests-sha1: don't assign literal string to 'char *' variable
47786         * tests/test-sha1.c (main): Declare locals with "const" to match
47787         attributes of the right hand side.
47788
47789 2009-07-21  Eric Blake  <ebb9@byu.net>
47790
47791         dup2: fix more mingw problems
47792         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47793         fd to itself.
47794         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47795         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47796         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47797         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47798         care of mingw bugs.
47799
47800 2009-07-21  Jim Meyering  <meyering@redhat.com>
47801
47802         vc-list-files: avoid failure when /bin/sh is dash
47803         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47804         On some Debian based systems, /bin/sh is a symlink to dash, and running
47805         this command would omit the "/" following each 'tests' prefix:
47806           dash -x build-aux/vc-list-files -C . tests
47807         That is because bash and dash work differently:
47808           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47809           bash ok
47810           dash odd
47811
47812 2009-07-21  Eric Blake  <ebb9@byu.net>
47813
47814         dup2-tests: test previous patch
47815         * modules/dup2-tests: New file.
47816         * tests/test-dup2.c: Likewise.
47817         * tests/test-open.c (main): Avoid unspecified behavior.
47818         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47819         test.
47820
47821         dup2: work around mingw and cygwin 1.5 bug
47822         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47824         * modules/unistd (Makefile.am): Substitute it.
47825         * lib/unistd.in.h (dup2): Declare the replacement.
47826         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47827         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47828         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47829         * modules/execute (Depends-on): Add dup2.
47830         * modules/fseterr (Depends-on): Likewise.
47831         * modules/pipe (Depends-on): Likewise.
47832         * modules/posix_spawn-internal (Depends-on): Likewise.
47833
47834 2009-07-21  Bruno Haible  <bruno@clisp.org>
47835
47836         * modules/.gitattributes: New file.
47837
47838 2009-07-20  Bruno Haible  <bruno@clisp.org>
47839
47840         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47841         (main): Use it.
47842
47843 2009-07-20  Eric Blake  <ebb9@byu.net>
47844
47845         test-pipe: make a bit more robust.
47846         * tests/test-pipe.c (myerr): Allow error messages regardless of
47847         what we do to stderr.
47848         (test_pipe): Rearrange to avoid deadlock.
47849         (child_main): Try a larger read, to ensure we avoided deadlock.
47850         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47851         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47852         if misused.
47853
47854 2009-07-19  Jim Meyering  <meyering@redhat.com>
47855
47856         fts: avoid false-positive cycle-detection
47857         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47858         for each new command line argument.
47859
47860 2009-07-19  Bruno Haible  <bruno@clisp.org>
47861
47862         Fix build error on mingw with the modules sys_select and unistd.
47863         * modules/acl-tests (Depends-on): Add close.
47864         * modules/binary-io-tests (Depends-on): Likewise.
47865         * modules/closein-tests (Depends-on): Likewise.
47866         * modules/flock-tests (Depends-on): Likewise.
47867         * modules/fsync-tests (Depends-on): Likewise.
47868         * modules/lseek-tests (Depends-on): Likewise.
47869         * modules/pipe-tests (Depends-on): Likewise.
47870         * modules/posix_spawn-tests (Depends-on): Likewise.
47871         * modules/posix_spawnp-tests (Depends-on): Likewise.
47872         * modules/stat-time-tests (Depends-on): Likewise.
47873         * modules/yesno-tests (Depends-on): Likewise.
47874
47875 2009-07-19  Bruno Haible  <bruno@clisp.org>
47876
47877         Unify conditionals.
47878         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47879         macros, not at the compiler macros.
47880         * lib/pipe.c: Likewise.
47881         * lib/execute.c: Likewise.
47882         * lib/spawni.c: Likewise.
47883
47884 2009-07-19  Bruno Haible  <bruno@clisp.org>
47885
47886         Fix handling of closed stdin/stdout/stderr on mingw.
47887         * lib/w32spawn.h: Include unistd.h.
47888         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47889         file descriptor with O_NOINHERIT flag.
47890         (fd_safer_noinherit): New function, based on fd-safer.c.
47891         (dup_safer_noinherit): New function, based on dup-safer.c.
47892         (undup_safer_noinherit): New function.
47893         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47894         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47895         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47896         instead of fd_safer.
47897         * tests/test-pipe.c: Include <windows.h>.
47898         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47899         result.
47900
47901         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47902         from main.
47903         (test_pipe): Pass an extra argument for disambiguation.
47904         (main): Invoke parent_main or child_main.
47905
47906         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47907         consistently.
47908
47909 2009-07-18  Eric Blake  <ebb9@byu.net>
47910
47911         test-pipe: fix mingw build
47912         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47913
47914 2009-07-18  Bruno Haible  <bruno@clisp.org>
47915
47916         * modules/pipe-tests (Makefile.am): Fix typo.
47917
47918 2009-07-18  Eric Blake  <ebb9@byu.net>
47919
47920         error: fix mingw build
47921         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47922         Reported by Bruno Haible.
47923
47924         error: avoid undefined use of stdout
47925         * lib/error.c (error, error_at_line): Check that fd 1 is open
47926         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47927         is handling faults and the close_stdout module wants to report the
47928         detection of closed stdout as an error.
47929
47930 2009-07-17  Eric Blake  <ebb9@byu.net>
47931
47932         pipe: be robust in face of closed fds
47933         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47934         should cause child to misbehave.
47935         * modules/pipe-tests: New module.
47936         * tests/test-pipe.c: New file.
47937         * tests/test-pipe.sh: New file.
47938         Reported by Akim Demaille.
47939
47940 2009-07-14  Bruno Haible  <bruno@clisp.org>
47941
47942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47943         Reported by anonymous kc.
47944
47945 2009-07-07  Jim Meyering  <meyering@redhat.com>
47946
47947         maint.mk: don't look for translatable strings in *.m4 or *.mk
47948         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47949         when searching for translatable strings.
47950
47951 2009-07-05  Jim Meyering  <meyering@redhat.com>
47952
47953         remove superfluous parentheses in STREQ definition
47954         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47955         * lib/getugroups.c (STREQ): Likewise.
47956         * lib/fnmatch.c (STREQ): Likewise.
47957         Spotted by Bruno Haible.
47958
47959 2009-07-04  Jim Meyering  <meyering@redhat.com>
47960
47961         argv-iter: new module
47962         * MODULES.html.sh: Add argv-iter.
47963         * lib/argv-iter.c, lib/argv-iter.h: New files.
47964         * modules/argv-iter: New file.
47965         * modules/argv-iter-tests: New file.
47966         * tests/test-argv-iter.c: Test it.
47967
47968 2009-07-04  Bruno Haible  <bruno@clisp.org>
47969
47970         Fix assertion.
47971         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47972         contains more exact copies of a given entry than file2, leave the extra
47973         copies unpaired rather than aborting.
47974         Reported by Eric Blake.
47975
47976 2009-07-02  Bruno Haible  <bruno@clisp.org>
47977
47978         Speedup git-merge-changelog for git cherry-pick.
47979         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47980         (entries_mapping_get): New function, extracted from compute_mapping.
47981         (entries_mapping_reverse_get): New function.
47982         (compute_mapping): Add a 'full' argument. Return the result in a
47983         'struct entries_mapping'.
47984         (main): Update. Access the mappings through entries_mapping_get.
47985         Reported by Eric Blake.
47986
47987 2009-07-02  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47990         best_i.
47991
47992 2009-07-02  Bruno Haible  <bruno@clisp.org>
47993
47994         Speed up approximate search for matching ChangeLog entries.
47995         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47996         argument. Call fstrcmp_bounded instead of fstrcmp.
47997         (compute_mapping, try_split_merged_entry, main): Update callers.
47998
47999 2009-07-02  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48002
48003 2009-06-30  Bruno Haible  <bruno@clisp.org>
48004
48005         Reduce the number of uc_is_cased calls.
48006         * lib/unicase.h (casing_suffix_context_t): Add
48007         'first_char_except_ignorable' field.
48008         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48009         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48010         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48011         Update initializer.
48012         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48013         case-ignorable characters.
48014         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48015         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48016         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48017         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48018         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48019
48020 2009-06-30  Bruno Haible  <bruno@clisp.org>
48021
48022         Tests for module 'unicase/ignorable'.
48023         * modules/unicase/ignorable-tests: New file.
48024         * tests/unicase/test-ignorable.c: New file, generated by
48025         gen-uni-tables.
48026
48027         Tests for module 'unicase/cased'.
48028         * modules/unicase/cased-tests: New file.
48029         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48030         * tests/unicase/test-predicate-part1.h: New file, derived from
48031         tests/unictype/test-predicate-part1.h.
48032         * tests/unicase/test-predicate-part2.h: New file, same as
48033         tests/unictype/test-predicate-part2.h.
48034
48035         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48036         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48037         (output_casing_properties): New function.
48038         (main): Call it.
48039         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48040         * lib/unicase/cased.c: Include unictype/bitmap.h.
48041         (uc_is_cased): Define through a bitmap lookup.
48042         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48043         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48044         (uc_is_case_ignorable): Define through a bitmap lookup.
48045         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48046         lib/unictype/bitmap.h.
48047         (Depends-on): Add inline. Clean up.
48048         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48049         lib/unictype/bitmap.h.
48050         (Depends-on): Add inline. Clean up.
48051         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48052         recognition.
48053         * tests/unicase/test-u16-tolower.c (main): Likewise.
48054         * tests/unicase/test-u32-tolower.c (main): Likewise.
48055
48056 2009-06-30  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48059         * lib/unicase/u16-casemap.c: Likewise.
48060         * lib/unicase/u32-casemap.c: Likewise.
48061
48062 2009-06-29  Bruno Haible  <bruno@clisp.org>
48063
48064         Define u32_casefold as a wrapper around u32_ct_casefold.
48065         * lib/unicase/u32-casefold.c: Update.
48066         * modules/unicase/u32-casefold (Depends-on): Add
48067         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48068         unicase/empty-suffix-context. Clean up.
48069
48070         Define u16_casefold as a wrapper around u16_ct_casefold.
48071         * lib/unicase/u16-casefold.c: Update.
48072         * modules/unicase/u16-casefold (Depends-on): Add
48073         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48074         unicase/empty-suffix-context. Clean up.
48075
48076         Define u8_casefold as a wrapper around u8_ct_casefold.
48077         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48078         * lib/unicase/u8-casefold.c: Update.
48079         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48080         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48081
48082         Define u32_totitle as a wrapper around u32_ct_totitle.
48083         * lib/unicase/u32-totitle.c: Update.
48084         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48085         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48086
48087         Define u16_totitle as a wrapper around u16_ct_totitle.
48088         * lib/unicase/u16-totitle.c: Update.
48089         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48090         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48091
48092         Define u8_totitle as a wrapper around u8_ct_totitle.
48093         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48094         functions.
48095         (FUNC): Delegate to U_CT_TOTITLE.
48096         * lib/unicase/u8-totitle.c: Update.
48097         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48098         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48099
48100         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48101         invocation.
48102         * modules/unicase/u32-tolower (Depends-on): Add
48103         unicase/empty-prefix-context, unicase/empty-suffix-context.
48104
48105         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48106         invocation.
48107         * modules/unicase/u16-tolower (Depends-on): Add
48108         unicase/empty-prefix-context, unicase/empty-suffix-context.
48109
48110         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48111         * modules/unicase/u8-tolower (Depends-on): Add
48112         unicase/empty-prefix-context, unicase/empty-suffix-context.
48113
48114         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48115         invocation.
48116         * modules/unicase/u32-toupper (Depends-on): Add
48117         unicase/empty-prefix-context, unicase/empty-suffix-context.
48118
48119         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48120         invocation.
48121         * modules/unicase/u16-toupper (Depends-on): Add
48122         unicase/empty-prefix-context, unicase/empty-suffix-context.
48123
48124         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48125         * modules/unicase/u8-toupper (Depends-on): Add
48126         unicase/empty-prefix-context, unicase/empty-suffix-context.
48127
48128         New module 'unicase/u32-ct-casefold'.
48129         * lib/unicase/u32-ct-casefold.c: New file.
48130         * modules/unicase/u32-ct-casefold: New file.
48131
48132         New module 'unicase/u16-ct-casefold'.
48133         * lib/unicase/u16-ct-casefold.c: New file.
48134         * modules/unicase/u16-ct-casefold: New file.
48135
48136         New module 'unicase/u8-ct-casefold'.
48137         * lib/unicase/u8-ct-casefold.c: New file.
48138         * lib/unicase/u-ct-casefold.h: New file, derived from
48139         lib/unicase/u-casefold.h.
48140         * modules/unicase/u8-ct-casefold: New file.
48141
48142         New module 'unicase/u32-ct-totitle'.
48143         * lib/unicase/u32-ct-totitle.c: New file.
48144         * modules/unicase/u32-ct-totitle: New file.
48145
48146         New module 'unicase/u16-ct-totitle'.
48147         * lib/unicase/u16-ct-totitle.c: New file.
48148         * modules/unicase/u16-ct-totitle: New file.
48149
48150         New module 'unicase/u8-ct-totitle'.
48151         * lib/unicase/u8-ct-totitle.c: New file.
48152         * lib/unicase/u-ct-totitle.h: New file, derived from
48153         lib/unicase/u-totitle.h.
48154         * modules/unicase/u8-ct-totitle: New file.
48155
48156         New module 'unicase/u32-ct-tolower'.
48157         * lib/unicase/u32-ct-tolower.c: New file.
48158         * modules/unicase/u32-ct-tolower: New file.
48159
48160         New module 'unicase/u16-ct-tolower'.
48161         * lib/unicase/u16-ct-tolower.c: New file.
48162         * modules/unicase/u16-ct-tolower: New file.
48163
48164         New module 'unicase/u8-ct-tolower'.
48165         * lib/unicase/u8-ct-tolower.c: New file.
48166         * modules/unicase/u8-ct-tolower: New file.
48167
48168         New module 'unicase/u32-ct-toupper'.
48169         * lib/unicase/u32-ct-toupper.c: New file.
48170         * modules/unicase/u32-ct-toupper: New file.
48171
48172         New module 'unicase/u16-ct-toupper'.
48173         * lib/unicase/u16-ct-toupper.c: New file.
48174         * modules/unicase/u16-ct-toupper: New file.
48175
48176         New module 'unicase/u8-ct-toupper'.
48177         * lib/unicase/u8-ct-toupper.c: New file.
48178         * modules/unicase/u8-ct-toupper: New file.
48179
48180         Add context arguments to u*_casemap functions.
48181         * lib/unicase/unicasemap.h: Include unicase.h.
48182         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48183         suffix_context arguments.
48184         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48185         functions.
48186         (FUNC): Add prefix_context and suffix_context arguments. Use
48187         uc_is_cased and uc_is_case_ignorable.
48188         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48189         * lib/unicase/u16-casemap.c: Likewise.
48190         * lib/unicase/u32-casemap.c: Likewise.
48191         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48192         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48193         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48194         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48195         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48196         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48197
48198         New module 'unicase/u32-suffix-context'.
48199         * lib/unicase/u32-suffix-context.c: New file.
48200         * modules/unicase/u32-suffix-context: New file.
48201
48202         New module 'unicase/u16-suffix-context'.
48203         * lib/unicase/u16-suffix-context.c: New file.
48204         * modules/unicase/u16-suffix-context: New file.
48205
48206         New module 'unicase/u8-suffix-context'.
48207         * lib/unicase/u8-suffix-context.c: New file.
48208         * lib/unicase/u-suffix-context.h: New file.
48209         * modules/unicase/u8-suffix-context: New file.
48210
48211         New module 'unicase/empty-suffix-context'.
48212         * lib/unicase/empty-suffix-context.c: New file.
48213         * modules/unicase/empty-suffix-context: New file.
48214
48215         New module 'unicase/u32-prefix-context'.
48216         * lib/unicase/u32-prefix-context.c: New file.
48217         * modules/unicase/u32-prefix-context: New file.
48218
48219         New module 'unicase/u16-prefix-context'.
48220         * lib/unicase/u16-prefix-context.c: New file.
48221         * modules/unicase/u16-prefix-context: New file.
48222
48223         New module 'unicase/u8-prefix-context'.
48224         * lib/unicase/u8-prefix-context.c: New file.
48225         * lib/unicase/u-prefix-context.h: New file.
48226         * lib/unicase/context.h: New file.
48227         * modules/unicase/u8-prefix-context: New file.
48228
48229         New module 'unicase/empty-prefix-context'.
48230         * lib/unicase/empty-prefix-context.c: New file.
48231         * modules/unicase/empty-prefix-context: New file.
48232
48233         New module 'unicase/ignorable'.
48234         * lib/unicase/ignorable.c: New file.
48235         * modules/unicase/ignorable: New file.
48236
48237         New module 'unicase/cased'.
48238         * lib/unicase/caseprop.h: New file.
48239         * lib/unicase/cased.c: New file.
48240         * modules/unicase/cased: New file.
48241
48242         New functions for case mapping of substrings.
48243         * lib/unicase.h (casing_prefix_context_t): New type.
48244         (unicase_empty_prefix_context): New variable.
48245         (u8_casing_prefix_context, u16_casing_prefix_context,
48246         u32_casing_prefix_context, u8_casing_prefixes_context,
48247         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48248         declarations.
48249         (casing_suffix_context_t): New type.
48250         (unicase_empty_suffix_context): New variable.
48251         (u8_casing_suffix_context, u16_casing_suffix_context,
48252         u32_casing_suffix_context, u8_casing_suffixes_context,
48253         u16_casing_suffixes_context, u32_casing_suffixes_context,
48254         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48255         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48256         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48257         declarations.
48258
48259 2009-06-28  Jim Meyering  <meyering@redhat.com>
48260
48261         boostrap: indent only with spaces
48262         * build-aux/bootstrap: Indent only with spaces, never TABs.
48263
48264         bootstrap: split long lines
48265         * build-aux/bootstrap: Keep line length < 80.
48266
48267         bootstrap: sync from coreutils
48268         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48269         just as autoreconf does.  Verify a list of prerequisite
48270         package-name,version-number pairs if defined in bootstrap.conf.
48271         Refer to README-prereq, if prerequisites are not satisfied.
48272
48273 2009-06-27  Eric Blake  <ebb9@byu.net>
48274
48275         tests: add test for bogus NULL definition
48276         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48277         * tests/test-stdlib.c: Likewise.
48278         * tests/test-string.c: Likewise.
48279         * tests/test-locale.c: Likewise.
48280         * tests/test-unistd.c: Likewise.
48281         * modules/stdio-tests (Depends-on): Add verify.
48282         * modules/stdlib-tests (Depends-on): Likewise.
48283         * modules/string-tests (Depends-on): Likewise.
48284         * modules/locale-tests (Depends-on): Likewise.
48285         * modules/unistd-tests (Depends-on): Likewise.
48286
48287 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48288
48289         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48290         self-explaining comment.
48291         * m4/selinux-selinux-h: Update serial.
48292         (gl_LIBSELINUX): New macro, adding a warning for missing development
48293         packages to code extracted from...
48294         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48295         Add warning for missing development packages here, too.
48296
48297 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48298
48299         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48300
48301 2009-06-25  Eric Blake  <ebb9@byu.net>
48302
48303         version-etc: fix regression
48304         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48305         gcc.
48306         (version_etc): Use it, to catch bugs with trailing NULL.
48307         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48308         (version_etc_va): Fix logic bug.
48309         * modules/version-etc-tests: Add test.
48310         * tests/test-version-etc.c: New file.
48311         * tests/test-version-etc.sh: Likewise.
48312
48313 2009-06-25  Sam Steingold  <sds@gnu.org>
48314
48315         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48316         mbtowc declaration.
48317
48318 2009-06-25  Eric Blake  <ebb9@byu.net>
48319
48320         fpurge: migrate into <stdio.h>
48321         * lib/fpurge.h: Delete...
48322         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48323         * lib/fpurge.c (fpurge): Change declaring header.
48324         * modules/fpurge (Files): Drop deleted file.
48325         (Depends-on): Add stdio.
48326         (configure.ac): Set witness.
48327         * modules/stdio (Makefile.am): Support fpurge macros.
48328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48329         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48330         * lib/fflush.c: Update client.
48331         * tests/test-fpurge.c: Likewise.
48332         * NEWS: Mention the change.
48333
48334 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48335
48336         * lib/argp-version-etc.c (program_authors): Add const
48337         qualifier.
48338         * lib/version-etc.c: Fix typos in the comments.
48339         * modules/argp-version-etc: Depends on version-etc.
48340
48341 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48342
48343         argp-version-etc: new module.
48344
48345         * lib/argp-version-etc.c: New file.
48346         * lib/argp-version-etc.h: New file.
48347         * modules/argp-version-etc: New file.
48348         * modules/argp-version-etc-tests: New file.
48349         * tests/test-argp-version-etc.c: New test.
48350         * tests/test-argp-version-etc-1.sh: New test.
48351
48352 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48353
48354         Provide additional interfaces and documentation for version-etc
48355         module.
48356
48357         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48358         interfaces.
48359         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48360         prototypes.
48361
48362 2009-06-24  Bruno Haible  <bruno@clisp.org>
48363
48364         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48365         HAVE_LIB${NAME} macro.
48366         Reported by Sam Steingold <sds@gnu.org>.
48367
48368 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48369
48370         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48371         needed.
48372
48373 2009-06-21  Bruno Haible  <bruno@clisp.org>
48374
48375         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48376         work.
48377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48378         together with LIB${NAME}, LTLIB${NAME}.
48379         Reported by Sam Steingold <sds@gnu.org>.
48380
48381 2009-06-20  Jim Meyering  <meyering@redhat.com>
48382
48383         tests: make sc_require_test_exit_idiom more generic
48384         * top/maint.mk (Exit_witness_file): New overridable variable.
48385         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48386         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48387
48388 2009-06-19  Jim Meyering  <meyering@redhat.com>
48389
48390         hash: reverse order of src/dst parameters in an internal interface
48391         * lib/hash.c (transfer_entries): Reverse order of parameters to
48392         put DST before SRC.  Adjust callers.
48393
48394         tests: test-hash: avoid wholesale duplication
48395         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48396         Instead, use a loop and add a single conditional.
48397
48398         tests: test-hash: allow seed selection via a command line argument
48399         * tests/test-hash.c (get_seed): New function.
48400         (main): Use it.
48401
48402 2009-06-19  Eric Blake  <ebb9@byu.net>
48403
48404         hash: avoid memory leak on allocation failure
48405         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48406         failure.  Factor repeated algorithm...
48407         (transfer_entries): ...into new helper routine.
48408         (hash_delete): React to hash_rehash return value.
48409
48410         hash: reduce memory pressure in hash_rehash no-op case
48411         * lib/hash.c (next_prime): Avoid overflow.
48412         (hash_initialize): Factor bucket size computation...
48413         (compute_bucket_size): ...into new helper function.
48414         (hash_rehash): Use new function and open coding to reduce memory
48415         pressure, and avoid a memory leak in USE_OBSTACK code.
48416         Reported by Jim Meyering.
48417
48418 2009-06-18  Eric Blake  <ebb9@byu.net>
48419
48420         hash: make rotation more obvious
48421         * modules/hash (Depends-on): Add bitrotate and stdint.
48422         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48423         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48424         (SIZE_MAX): Rely on headers for definition.
48425         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48426         (raw_hasher): Use rotr_sz.
48427         Suggested by Jim Meyering.
48428
48429         hash: fix memory leak in last patch
48430         * lib/hash.c (hash_rehash): Avoid memory leak.
48431
48432         hash: avoid no-op rehashing
48433         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48434
48435         hash: provide default callback functions
48436         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48437         (hash_initialize): Use them as defaults.
48438         * tests/test-hash.c (main): Test this.
48439
48440         hash: minor optimization
48441         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48442         when possible.
48443         (hash_initialize): Document this promise.
48444         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48445         * tests/test-hash.c (hash_compare_strings): Test this.
48446
48447 2009-06-18  Bruno Haible  <bruno@clisp.org>
48448
48449         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48450         going to be replaced anyway.
48451
48452 2009-06-18  Bruno Haible  <bruno@clisp.org>
48453
48454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48455         in one place.
48456         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48457         be replaced anyway.
48458
48459 2009-06-18  Eric Blake  <ebb9@byu.net>
48460
48461         hash: check for resize before insertion
48462         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48463         threshold before insertion, so that a pathological hash_rehash
48464         that fills every bucket can still trigger another rehash.
48465
48466 2009-06-18  Jim Meyering  <meyering@redhat.com>
48467
48468         hash-tests: add a loop around the small tests
48469         * tests/test-hash.c (main): Repeat small tests with selected
48470         small initial table sizes.
48471
48472 2009-06-17  Eric Blake  <ebb9@byu.net>
48473
48474         hash: minor cleanups
48475         * lib/hash.h (hash_entry): Make opaque, by moving...
48476         * lib/hash.c (hash_entry): ...here.
48477         (hash_insert): Clarify restrictions on what can be inserted.
48478         (hash_get_next): Clarify when it is safe to remove an element
48479         during traversal.
48480         (check_tuning): Skip verification when tuning is known safe.
48481         (hash_initialize): Clarify restrictions on tuning.
48482
48483 2009-06-17  Jim Meyering  <jim@meyering.net>
48484         and Eric Blake  <ebb9@byu.net>
48485
48486         hash-tests: new module
48487         * modules/hash-tests: New file.
48488         * tests/test-hash.c: New file.
48489
48490 2009-06-17  Eric Blake  <ebb9@byu.net>
48491
48492         strstr-simple: document new module
48493         * MODULES.html.sh: Document new module.
48494
48495         strstr, strcasestr: replace on platforms with broken memchr
48496         * modules/strstr: Split into...
48497         * modules/strstr-simple: ...new module that does not care about
48498         performance, but does care about glibc bug.
48499         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48500         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48501         if platform memchr is broken, per Debian bug 521737.
48502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48503         memchr.
48504         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48505         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48506         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48507         * modules/mountlist (Depends-on): Add strstr-simple.
48508         * modules/gen-uni-tables (Depends-on): Likewise.
48509         * modules/argz (Depends-on): Add strstr.
48510
48511 2009-06-17  Bruno Haible  <bruno@clisp.org>
48512
48513         * modules/posix_spawn-internal (Depends-on): Add errno.
48514
48515 2009-06-17  Bruno Haible  <bruno@clisp.org>
48516
48517         Define missing ESTALE on Interix 3.5.
48518         * lib/errno.in.h (ESTALE): Assign a value if missing.
48519         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48521         missing.
48522         * doc/posix-headers/errno.texi: Mention the Interix bug.
48523         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48524
48525 2009-06-15  Eric Blake  <ebb9@byu.net>
48526
48527         memchr, memchr2: add valgrind exception
48528         * lib/memchr.valgrind: New file.
48529         * lib/memchr2.valgrind: New file.
48530         * modules/memchr (Files): Distribute valgrind file.
48531         * modules/memchr2 (Files): Likewise.
48532
48533         docs: memchr is no longer obsolete
48534         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48535         * lib/string.in.h (memchr): Simplify logic.
48536
48537 2009-06-14  Jim Meyering  <meyering@redhat.com>
48538
48539         link-follow: fix the "checking..." message to not mention trailing slash
48540         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48541         never considered trailing slashes.
48542
48543 2009-06-14  Bruno Haible  <bruno@clisp.org>
48544
48545         * m4/memchr.m4: Mention also the bug on IA-64.
48546         * doc/posix-functions/memchr.texi: Likewise.
48547
48548 2009-06-12  Eric Blake  <ebb9@byu.net>
48549
48550         memchr: detect broken x86_64 and alpha implementations
48551         * modules/memchr-tests (Depends-on): Move mmap detection...
48552         * modules/memchr (Depends-on): ...here.
48553         (configure.ac): Set indicator.
48554         * lib/string.in.h (memchr): Declare replacement.
48555         * modules/string (Makefile.am): Trigger replacement.
48556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48557         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48558         bugs.
48559         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48560         * modules/getpagesize (License): Relax license.
48561
48562 2009-06-11  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/idpriv.h: Add more references.
48565
48566 2009-06-08  Bruno Haible  <bruno@clisp.org>
48567
48568         Tests for module 'idpriv-droptemp'.
48569         * modules/idpriv-droptemp-tests: New file.
48570         * tests/test-idpriv-droptemp.sh: New file.
48571         * tests/test-idpriv-droptemp.su.sh: New file.
48572         * tests/test-idpriv-droptemp.c: New file.
48573
48574         New module 'idpriv-droptemp'.
48575         * lib/idpriv-droptemp.c: New file.
48576         * modules/idpriv-droptemp: New file.
48577
48578 2009-06-08  Bruno Haible  <bruno@clisp.org>
48579
48580         Tests for module 'idpriv-drop'.
48581         * modules/idpriv-drop-tests: New file.
48582         * tests/test-idpriv-drop.sh: New file.
48583         * tests/test-idpriv-drop.su.sh: New file.
48584         * tests/test-idpriv-drop.c: New file.
48585
48586         New module 'idpriv-drop'.
48587         * lib/idpriv.h: New file.
48588         * lib-idpriv-drop.c: New file.
48589         * m4/idpriv.m4: New file.
48590         * modules/idpriv-drop: New file.
48591
48592 2009-06-08  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48595         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48596         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48597         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48598         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48599         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48600         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48601
48602 2009-06-08  Eric Blake  <ebb9@byu.net>
48603
48604         test-strstr: use memory fence, when possible
48605         * tests/test-strstr.c (main): Use memory fence, in order to be
48606         more likely to trigger Debian bug 521737.
48607         * modules/strstr-tests (Files): Pull in additional files.
48608
48609         memchr: no longer obsolete, for wider field testing
48610         * modules/memchr (Status, Notice): Delete, this module is no
48611         longer obsolete.
48612         * modules/vasnprintf (Depends-on): Add memchr.
48613
48614 2009-06-07  Jim Meyering  <meyering@redhat.com>
48615
48616         hash: declare some functions with the warn_unused_result attribute
48617         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48618
48619 2009-06-07  Bruno Haible  <bruno@clisp.org>
48620
48621         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48622         Reported by Eric Blake.
48623
48624 2009-06-06  Eric Blake  <ebb9@byu.net>
48625
48626         test-alignof: fix typo with long double
48627         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48628         compiler error.
48629
48630 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48631
48632         Escape non-texinfo { and }s.
48633         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48634         markup error.
48635
48636 2009-06-04  Jim Meyering  <meyering@redhat.com>
48637
48638         gitlog-to-changelog: don't infloop on an empty commit log
48639         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48640         Reported by Boris Petersen <transacid@centerim.org>.
48641
48642 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48643
48644         version-etc: extend for packagers
48645         Add three new configure options, intended for packagers:
48646           --with-packager="packager name"
48647           --with-packager-version="packager-specific version"
48648           --with-packager-bug-reports="packager bug reporting"
48649         An example with coreutils:
48650           $ ./configure \
48651             --with-packager=Gentoo \
48652             --with-packager-bug-report=http://bugs.gentoo.org/ \
48653             --with-packager-version="patchset 1.6"
48654           $ ./src/ls --version | head -n2
48655           ls (GNU coreutils) 7.1-dirty
48656           Packaged by Gentoo (patchset 1.6)
48657         Note that the bug reporting info via --help doesn't show up because
48658         coreutils uses its own custom emit_bug_reporting_address() implementation
48659         in src/system.h.  If it didn't, it'd look like:
48660           $ ./src/ls --help | tail -n4
48661           Report bugs to <bug-coreutils@gnu.org>.
48662           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48663           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48664           General help using GNU software: <http://www.gnu.org/gethelp/>.
48665         * lib/version-etc.c: Print new information, if provided.
48666         * m4/version-etc.m4: New file.
48667         * modules/version-etc (Files): Add m4/version-etc.m4.
48668         (configure.ac): Add gl_VERSION_ETC.
48669
48670 2009-05-31  Bruno Haible  <bruno@clisp.org>
48671
48672         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48673         and 'int64_t'.
48674         * modules/alignof-tests (Dependencies): Add stdint.
48675         Reported by Eric Blake.
48676
48677 2009-05-31  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48680         restriction due to compiler bugs.
48681         Reported by Eric Blake.
48682
48683 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48684             Bruno Haible  <bruno@clisp.org>
48685
48686         Fix test-alignof failure.
48687         * lib/alignof.h (alignof_slot): New macro.
48688         (alignof_type): New macro, with the same semantics as the previous
48689         'alignof'.
48690         (alignof): Alias to alignof_slot.
48691         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48692         check that the results are usable as constant expressions.
48693
48694 2009-05-31  Bruno Haible  <bruno@clisp.org>
48695
48696         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48697         * tests/test-memchr.c (main): Check that memchr does not read past the
48698         first occurrence of the byte.
48699         * tests/test-strstr.c (main): Update comment.
48700         Suggested by Eric Blake.
48701
48702 2009-05-30  Bruno Haible  <bruno@clisp.org>
48703
48704         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48705         detail how to use dumpbin.
48706         Reported by David Byron <dbyron@dbyron.com>.
48707
48708 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48709
48710         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48711
48712 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48713
48714         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48715
48716 2009-05-28  Bruno Haible  <bruno@clisp.org>
48717
48718         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48719         build-aux/ files.
48720
48721 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48722
48723         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48724
48725 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48726
48727         * gnulib-tool (sed_transform_main_lib_file)
48728         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48729         regexps.
48730
48731 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48732
48733         * tests/test-strstr.c: Add another self-test.
48734         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48735         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48736
48737 2009-05-23  Bruno Haible  <bruno@clisp.org>
48738
48739         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48740         change.
48741
48742 2009-05-21  Bruno Haible  <bruno@clisp.org>
48743
48744         Simplify use of mode_t varargs.
48745         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48746         uses 'mode_t' or 'int'.
48747         * lib/openat.c (openat): Likewise.
48748         * lib/open-safer.c (open_safer): Likewise.
48749         * m4/mode_t.m4: New file.
48750         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48751         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48752         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48753         * modules/open (Files): Add m4/mode_t.m4.
48754         * modules/openat (Files): Likewise.
48755         * modules/fcntl-safer (Files): Likewise.
48756         Suggested by Eric Blake.
48757
48758 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48759
48760         * doc/glibc-functions/fallocate.texi: New file.
48761         * doc/gnulib.texi: Include it.
48762
48763 2009-05-21  Eric Blake  <ebb9@byu.net>
48764             Bruno Haible  <bruno@clisp.org>
48765
48766         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48767         invocations.
48768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48769
48770 2009-05-21  Eric Blake  <ebb9@byu.net>
48771             Bruno Haible  <bruno@clisp.org>
48772
48773         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48774         include_next. Fix of 2008-11-20 commit.
48775         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48776         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48777         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48778         NEXT_MATH_H.
48779         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48780         instead of NEXT_MATH_H.
48781
48782 2009-05-21  Bruno Haible  <bruno@clisp.org>
48783
48784         Avoid redefinition warnings for SIZE_MAX.
48785         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48786         Reported by Simon Josefsson.
48787
48788 2009-05-21  Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48791         AC_CACHE_VAL.
48792
48793 2009-05-20  Bruno Haible  <bruno@clisp.org>
48794
48795         Make zeroptr.h work on mingw.
48796         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48797         mprotect.
48798         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48799         * modules/memchr2-tests (configure.ac): Likewise.
48800         * modules/memcmp-tests (configure.ac): Likewise.
48801         * modules/memmem-tests (configure.ac): Likewise.
48802         * modules/memrchr-tests (configure.ac): Likewise.
48803         Reported by Simon Josefsson.
48804
48805 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48806
48807         * tests/test-glob.c: Include string.h for strcmp prototype.
48808
48809 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48810
48811         * modules/getdelim (Depends-on): Add explicit stdint, although it
48812         was implicitly already pulled in via realloc-posix.
48813         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48814
48815 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48816
48817         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48818         G. Christensen" <tgc@jupiterrise.com>.
48819         * m4/sys_socket_h.m4: Check for sa_family_t.
48820         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48821         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48822         * tests/test-sys_socket.c: Check that sa_family_t works.
48823
48824 2009-05-18  Eric Blake  <ebb9@byu.net>
48825
48826         maint.mk: allow gnulib_dir in VPATH build
48827         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48828
48829 2009-05-15  Jim Meyering  <meyering@redhat.com>
48830
48831         maint.mk: Give gnulib_dir a default definition.
48832         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48833         Thus, most packages no longer need to specify this variable in cfg.mk
48834
48835 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48836
48837         rename.m4: fix typos that would make non-mingw cross-configure fail
48838         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48839
48840 2009-05-13  Eric Blake  <ebb9@byu.net>
48841
48842         mmap-anon: avoid out-of-order autoconf expansion
48843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48844         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48845         * modules/memchr-tests (Depends-on): Add extensions.
48846         * modules/memchr2-tests (Depends-on): Add extensions.
48847         * modules/memcmp-tests (Depends-on): Add extensions.
48848         * modules/memmem-tests (Depends-on): Add extensions.
48849         * modules/memrchr-tests (Depends-on): Add extensions.
48850
48851 2009-05-13  Bruno Haible  <bruno@clisp.org>
48852
48853         Make some tests ISO C 99 compliant.
48854         * tests/zerosize-ptr.h: New file.
48855         * tests/test-memchr.c: Include zerosize-ptr.h.
48856         (main): Use a zero-size object pointer instead of NULL.
48857         * tests/test-memchr2.c: Include zerosize-ptr.h.
48858         (main): Use a zero-size object pointer instead of NULL.
48859         * tests/test-memcmp.c: Include zerosize-ptr.h.
48860         (main): Use a zero-size object pointer instead of NULL.
48861         * tests/test-memmem.c: Include zerosize-ptr.h.
48862         (main): Use a zero-size object pointer instead of NULL.
48863         * tests/test-memrchr.c: Include zerosize-ptr.h.
48864         (main): Use a zero-size object pointer instead of NULL.
48865         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48866         m4/mmap-anon.m4.
48867         (Depends-on): Add getpagesize.
48868         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48869         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48870         m4/mmap-anon.m4.
48871         (Depends-on): Add getpagesize.
48872         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48873         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48874         m4/mmap-anon.m4.
48875         (Depends-on): Add getpagesize.
48876         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48877         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48878         m4/mmap-anon.m4.
48879         (Depends-on): Add getpagesize.
48880         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48881         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48882         m4/mmap-anon.m4.
48883         (Depends-on): Add getpagesize.
48884         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48885
48886 2009-05-12  Bruno Haible  <bruno@clisp.org>
48887
48888         Tests for module 'alignof'.
48889         * modules/alignof-tests: New file.
48890         * tests/test-alignof.c: New file.
48891
48892 2009-05-12  Bruno Haible  <bruno@clisp.org>
48893
48894         Fix alignof macro.
48895         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48896         vendor compilers that are always correct.
48897
48898 2009-05-12  Bruno Haible  <bruno@clisp.org>
48899
48900         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48902         not whether its fully works.
48903
48904 2009-05-12  Bruno Haible  <bruno@clisp.org>
48905
48906         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48907
48908 2009-05-12  Jim Meyering  <meyering@redhat.com>
48909
48910         * top/maint.mk: Adjust backslash alignment.
48911
48912 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48913
48914         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48915
48916 2009-05-11  Eric Blake  <ebb9@byu.net>
48917
48918         argp: avoid undefined behavior
48919         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48920         macros.
48921
48922 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48923
48924         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48925         user.name to prevent git commit from complaining.
48926
48927 2009-05-10  Bruno Haible  <bruno@clisp.org>
48928
48929         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48930         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48931         it rewrites every file name only once.
48932         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48933
48934 2009-05-08  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48937         instead of 'max'.
48938
48939 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48940
48941         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48942         sockaddr_storage test.
48943
48944 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48945
48946         * modules/sys_socket (Makefile.am): Substitute
48947         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48948         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48949         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48950         * tests/test-sys_socket.c: Check sockaddr_storage.
48951
48952 2009-05-08  Bruno Haible  <bruno@clisp.org>
48953
48954         New module 'alignof'.
48955         * lib/alignof.h: New file.
48956         * modules/alignof: New file.
48957
48958 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48959             Bruno Haible  <bruno@clisp.org>
48960
48961         Fix test-file-has-acl on FreeBSD.
48962         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48963         mask is implicitly added.
48964         * tests/test-file-has-acl.c: Include <signal.h>.
48965         (main): Terminate the test after 5 seconds.
48966         * modules/acl-tests (configure.ac): Check for alarm function.
48967
48968 2009-05-04  Bruno Haible  <bruno@clisp.org>
48969
48970         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48971         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48972         * modules/errno (configure.ac): Drop AC_REQUIRE.
48973         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48974         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48975
48976 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48977
48978         * modules/glob-tests: New module.
48979         * tests/test-glob.c: Add.
48980
48981 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48982
48983         * modules/fnmatch-tests: New module.
48984         * tests/test-fnmatch.c: Add.
48985
48986 2009-05-04  Eric Blake  <ebb9@byu.net>
48987
48988         maint: make the new no-submodule-changes rule VPATH-safe
48989         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48990
48991 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48992             Bruno Haible  <bruno@clisp.org>
48993
48994         acl: Fix infinite loop on FreeBSD.
48995         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48996         of return value from acl_get_entry.
48997         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48998         Likewise.
48999
49000 2009-05-03  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/acl-internal.h (acl_entries): Clarify return value.
49003         * lib/acl_entries.c (acl_entries): Likewise.
49004
49005 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49006
49007         Bug fix in acl module.
49008         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49009
49010 2009-05-03  Bruno Haible  <bruno@clisp.org>
49011
49012         Create gperf-generated file in the source dir, not in the build dir.
49013         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49014         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49015         * modules/unicase/locale-language (unicase/locale-languages.h):
49016         Likewise.
49017         * modules/unicase/special-casing (unicase/special-casing-table.h):
49018         Likewise.
49019         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49020         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49021         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49022         Reported by Ralf Wildenhues.
49023
49024 2009-05-03  Bruno Haible  <bruno@clisp.org>
49025
49026         * modules/fnmatch (Description, configure.ac): Taken from
49027         fnmatch-posix.
49028         * modules/fnmatch-posix: Turn into a symbolic reference to the
49029         'fnmatch' module, and deprecate.
49030         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49031
49032 2009-05-03  Bruno Haible  <bruno@clisp.org>
49033
49034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49035         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49036         Reported by Ralf Wildenhues.
49037
49038 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49039
49040         * m4/fnmatch.m4: Fix fnmatch re-define.
49041
49042 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49043
49044         priv-set: new module and tests; adapt write-any-file
49045         * lib/priv-set.c: New file.
49046         * lib/priv-set.h: New file.
49047         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49048         * lib/write-any-file.c: Simplify by using priv-set module.
49049         * m4/priv-set.m4: New file.
49050         * modules/priv-set: New file.
49051         * modules/unlinkdir: Add dependency on priv-set module.
49052         * modules/write-any-file: Likewise.
49053
49054         Tests for module 'priv-set'.
49055         * modules/priv-set-tests: New file.
49056         * tests/test-priv-set.c: New file.
49057
49058 2009-05-03  Jim Meyering  <meyering@redhat.com>
49059             Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49062         use the converted UTF-8 variant of the name instead.
49063
49064 2009-05-03  Jim Meyering  <meyering@redhat.com>
49065
49066         tests: tighten some getdate tests
49067         * tests/test-getdate.c (main): Tighten tests: require equality,
49068         not just greater than.  Set TZ envvar to UTC0.
49069
49070 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49071
49072         getdate: correctly interpret "next monday" when run on a Monday
49073         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49074         that e.g., "next tues" (when run on a tuesday) results in a date
49075         that is one week in the future, and not today's date.
49076         I.e., add a week when the wday is the same as the current one.
49077         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49078         and earlier by Martin Bernreuther and Jan Minář.
49079         * tests/test-getdate.c (main): Check that "next DAY" is always in
49080         the future and that "last DAY" is always in the past.
49081
49082 2009-05-02  Jim Meyering  <meyering@redhat.com>
49083
49084         build: ensure that a release build fails when a submodule is unclean
49085         * top/maint.mk (no-submodule-changes): New rule.
49086         (alpha beta major): Depend on it.
49087
49088 2009-05-02  Bruno Haible  <bruno@clisp.org>
49089
49090         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49091         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49092         shell variable gl_fnmatch_required to detect which variant is
49093         requested.
49094         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49095         gl_FUNC_FNMATCH_POSIX.
49096         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49097         exclude fnmatch-posix.
49098
49099 2009-05-02  Bruno Haible  <bruno@clisp.org>
49100
49101         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49102         * modules/mbsrtowcs (License): Change to LGPLv2+.
49103         * modules/strnlen1 (License): Likewise.
49104         Reported by Simon Josefsson.
49105
49106 2009-05-02  Bruno Haible  <bruno@clisp.org>
49107
49108         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49109         "cross".
49110         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49111         gnulib-tool was called with option --source-base=lib.
49112
49113 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49114
49115         Use automake *-local hooks without commands, for extensibility.
49116         * modules/localcharset (Makefile.am): Rename install-exec-local
49117         rule to install-exec-localcharset, and make it a prerequisite of
49118         install-exec-local.  Likewise, rename the uninstall-local rule to
49119         uninstall-localcharset, and make it a prerequisite of the former.
49120
49121 2009-05-01  Bruno Haible  <bruno@clisp.org>
49122
49123         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49124         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49125         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49127         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49128         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49129         m4/locale-zh.m4, m4/codeset.m4.
49130
49131         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49132         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49133         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49134         m4/locale-zh.m4.
49135
49136         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49137         REPLACE_WCRTOMB if mbstate_t must be replaced.
49138         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49139         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49140
49141 2009-05-01  Bruno Haible  <bruno@clisp.org>
49142
49143         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49144         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49145         dngettext, dcngettext, textdomain, bindtextdomain,
49146         bind_textdomain_codeset): Undefine before redefining.
49147
49148 2009-04-30  Bruno Haible  <bruno@clisp.org>
49149
49150         Fix bug introduced on 2009-04-25.
49151         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49152         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49153         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49154         is defined.
49155         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49156         is defined.
49157         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49158         is defined.
49159         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49160
49161 2009-04-28  Bruno Haible  <bruno@clisp.org>
49162
49163         Comment tweaks.
49164         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49165         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49166         * lib/unicase.h (u*_casexfrm): Likewise.
49167         Reported by Paolo Bonzini.
49168
49169 2009-04-28  Bruno Haible  <bruno@clisp.org>
49170
49171         Fix a compilation error.
49172         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49173         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49174         Reported by Jim Meyering.
49175
49176 2009-04-27  Bruno Haible  <bruno@clisp.org>
49177
49178         New module 'libunistring'.
49179         * modules/libunistring: New file.
49180         * m4/libunistring.m4: New file.
49181         * MODULES.html.sh (Unicode string functions): Add it.
49182
49183 2009-04-27  Eric Blake  <ebb9@byu.net>
49184
49185         maint.mk: allow package-specific header to provide <config.h>
49186         * top/maint.mk (sc_require_config_h): New variable.
49187         (sc_require_config_h, sc_require_config_h_first): Use it.
49188
49189 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49190
49191         * top/maint.mk (sc_avoid_if_before_free): Except
49192         useless-if-before-free script.
49193
49194 2009-04-27  Eric Blake  <ebb9@byu.net>
49195
49196         maintainer-makefile: depend on all required helper scripts
49197         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49198         useless-if-before-free.
49199         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49200         version, rather than assuming gnulib checkout is available.
49201         Reported by Simen Josefsson.
49202
49203 2009-04-26  Bruno Haible  <bruno@clisp.org>
49204
49205         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49206         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49207         "../" or "..".
49208
49209 2009-04-26  Bruno Haible  <bruno@clisp.org>
49210
49211         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49212         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49213         AC_LIB_HAVE_LINKFLAGS.
49214
49215 2009-04-26  Bruno Haible  <bruno@clisp.org>
49216
49217         Simplify calling convention of u*_conv_from_encoding.
49218         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49219         u32_conv_from_encoding): Expect a resultbuf argument and return the
49220         result directly as a pointer.
49221         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49222         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49223         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49224         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49225         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49226         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49227         Update.
49228         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49229         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49230         * lib/vasnprintf.c (VASNPRINTF): Update.
49231         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49232         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49233         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49234         * NEWS: Mention the change.
49235
49236 2009-04-26  Bruno Haible  <bruno@clisp.org>
49237
49238         Simplify calling convention of u*_conv_to_encoding.
49239         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49240         u32_conv_to_encoding): Expect a resultbuf argument and return the
49241         result directly as a pointer.
49242         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49243         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49244         freeing scaled_offsets if mem_iconveha failed.
49245         * lib/unicase/u-casexfrm.h (FUNC): Update.
49246         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49247         * lib/vasnprintf.c (VASNPRINTF): Update.
49248         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49249         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49250         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49251         * NEWS: Mention the change.
49252
49253 2009-04-26  Bruno Haible  <bruno@clisp.org>
49254
49255         Avoid test failures on AIX and OSF/1.
49256         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49257         malloc(0).
49258         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49259         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49260         Likewise.
49261         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49262         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49263         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49264         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49265         * doc/posix-functions/malloc.texi: Document the portability problem
49266         related to malloc(0).
49267
49268 2009-04-26  Bruno Haible  <bruno@clisp.org>
49269
49270         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49271         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49272         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49273
49274 2009-04-25  Bruno Haible  <bruno@clisp.org>
49275
49276         Avoid link error when creating a namespace clean library.
49277         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49278         as macro with arguments if already defined as an alias.
49279         * lib/signbitf.c (gl_signbitf): Don't undefine.
49280         * lib/signbitd.c (gl_signbitd): Don't undefine.
49281         * lib/signbitl.c (gl_signbitl): Don't undefine.
49282
49283 2009-04-25  Jim Meyering  <meyering@redhat.com>
49284
49285         vc-list-files: fix another quoting bug
49286         * build-aux/vc-list-files: Avoid sed backslash expansion
49287         of pathological directory names.
49288
49289 2009-04-25  Eric Blake  <ebb9@byu.net>
49290
49291         vc-list-files: fix shell quoting error
49292         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49293         timestamp.
49294
49295 2009-04-25  Jim Meyering  <meyering@redhat.com>
49296
49297         vc-list-files: restore lost functionality with subdir argument
49298         * build-aux/vc-list-files: When given a non-"." sub-directory
49299         argument, substitute the $dir/ prefix back onto each resulting name.
49300         Otherwise, coreutils' root_tests check would fail.
49301
49302 2009-04-24  Eric Blake  <ebb9@byu.net>
49303
49304         vc-list-files: ignore git symlinks
49305         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49306         than ls-files, to ignore git symlinks.
49307
49308         maint.mk: import improvements from m4
49309         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49310         (move_if_change): Delete unused macro.
49311         (news-date-check, vc-diff-check): Support VPATH builds.
49312         (announcement): Likewise.  Split --bootstrap-tools list...
49313         (boostrap-tools): ...into separate list, which can be overridden
49314         in cfg.mk.
49315         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49316         requiring dependency on useless-if-before-free module.
49317         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49318         Support VPATH builds.
49319
49320 2009-04-24  Jim Meyering  <meyering@redhat.com>
49321
49322         maint.mk: remove coreutils-specific rules and variables
49323         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49324         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49325         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49326
49327         maint.mk: remove obsolete rule
49328         * top/maint.mk (rel-check): Remove rule.
49329         (WGET, WGETFLAGS): Remove now-unused variables.
49330
49331 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49332
49333         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49334         consistency.
49335
49336         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49337         '$(PATH_SEPARATOR)' instead of ':'.
49338
49339 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49340
49341         * lib/getopt1.c (main): Use 'const' for static array.
49342
49343 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49344
49345         * top/maint.mk: Sync with coreutils.
49346         * NEWS: Explain incompatibilities.
49347
49348 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49349             Bruno Haible  <bruno@clisp.org>
49350
49351         Fix cross-compilation results.
49352         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49353         statement, as third argument of AC_TRY_RUN.
49354         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49355         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49356         Likewise.
49357         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49358         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49359         Likewise.
49360         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49361         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49362         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49363
49364 2009-04-20  Bruno Haible  <bruno@clisp.org>
49365
49366         Avoid test failure on mingw.
49367         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49368
49369 2009-04-20  Bruno Haible  <bruno@clisp.org>
49370
49371         Avoid compilation error on mingw.
49372         * modules/localename-tests (Depends-on): Add locale.
49373
49374 2009-04-19  Bruno Haible  <bruno@clisp.org>
49375
49376         Support for building a shared library on Windows platforms.
49377         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49378         (main): Test the presence of UNINORM_NFC here.
49379         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49380         (main): Test the presence of UNINORM_NFD here.
49381         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49382         (main): Test the presence of UNINORM_NFKC here.
49383         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49384         (main): Test the presence of UNINORM_NFKD here.
49385
49386 2009-04-19  Bruno Haible  <bruno@clisp.org>
49387
49388         Avoid a compiler warning.
49389         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49390         Change type of variable 'sequence'.
49391
49392 2009-04-19  Bruno Haible  <bruno@clisp.org>
49393
49394         * modules/configmake (Makefile.am): When the contents of configmake.h
49395         does not change, arrange to preserve its modification time.
49396
49397 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49398
49399         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49400         gettext domain.
49401
49402 2009-04-16  Jim Meyering  <meyering@redhat.com>
49403
49404         useless-if-before-free: improve conversion code
49405         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49406         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49407
49408 2009-04-14  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/fcntl (Depends-on): Add extensions.
49411         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49412
49413 2009-04-12  Ben Pfaff  <blp@gnu.org>
49414
49415         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49416         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49417
49418 2009-03-20  Ben Pfaff  <blp@gnu.org>
49419
49420         Make rename replace existing destinations on Windows.
49421         * m4/rename.m4: Add test for Mingw.
49422         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49423         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49424         * doc/posix-functions/rename.texi: Document.
49425
49426 2009-04-10  Bruno Haible  <bruno@clisp.org>
49427
49428         New include file "iconveh.h".
49429         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49430         * lib/striconveh.h: Include it.
49431         (enum iconv_ilseq_handler): Remove definition.
49432         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49433         striconveh.h.
49434         * lib/striconveha.c: Include striconveh.h.
49435         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49436         * modules/striconveh (Files): Add lib/iconveh.h.
49437         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49438         lib/striconveh.h.
49439
49440 2009-04-10  Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/uniconv.h: Update comment.
49443
49444 2009-04-10  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49447         always.
49448         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49449         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49450         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49451         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49452         "unistring-notinline.h", so that the function gets defined always.
49453         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49454         * lib/unistr/u8-uctomb.c: Likewise.
49455         * lib/unistr/u16-mbtouc.c: Likewise.
49456         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49457         * lib/unistr/u16-uctomb.c: Likewise.
49458         * lib/unistr/u32-mbtouc.c: Likewise.
49459         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49460         * lib/unistr/u32-uctomb.c: Likewise.
49461
49462 2009-04-10  Bruno Haible  <bruno@clisp.org>
49463
49464         Mark 'utime' obsolete.
49465         * modules/utime (Status, Notice): New sections.
49466         Suggested by Jim Meyering.
49467
49468         Fix cross-compile guess for utime test.
49469         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49470         autoconf.
49471         * doc/posix-functions/utime.texi: Give more precisions.
49472         Reported by Jan <ipif@ymail.com>.
49473
49474 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49475
49476         filevercmp: correct today's change
49477         * lib/filevercmp.c: Also handle coreutils' test inputs.
49478         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49479
49480         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49481         for reporting it.
49482         * lib/filevercmp.c: Special handle for "", "." and "..".
49483         * tests/test-filevercmp.c: Enlarge the set suite.
49484
49485 2009-04-07  Jim Meyering  <meyering@redhat.com>
49486
49487         useless-if-before-free: show how to remove braced useless free, too
49488         * build-aux/useless-if-before-free: still only in a comment, though.
49489
49490 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49491
49492         maint.mk: import changes to syntax-check macros from coreutils
49493         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49494         Use them in the relevant macros.
49495
49496 2009-04-06  Bruno Haible  <bruno@clisp.org>
49497
49498         Fix unportable use of bit-fields.
49499         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49500         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49501         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49502
49503 2009-04-06  Bruno Haible  <bruno@clisp.org>
49504
49505         Avoid test failures on AIX and OSF/1.
49506         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49507         that malloc(0) = NULL.
49508         * tests/unicase/test-u8-tolower.c (check): Likewise.
49509         * tests/unicase/test-u8-totitle.c (check): Likewise.
49510         * tests/unicase/test-u8-toupper.c (check): Likewise.
49511         * tests/unicase/test-u16-casefold.c (check): Likewise.
49512         * tests/unicase/test-u16-tolower.c (check): Likewise.
49513         * tests/unicase/test-u16-totitle.c (check): Likewise.
49514         * tests/unicase/test-u16-toupper.c (check): Likewise.
49515         * tests/unicase/test-u32-casefold.c (check): Likewise.
49516         * tests/unicase/test-u32-tolower.c (check): Likewise.
49517         * tests/unicase/test-u32-totitle.c (check): Likewise.
49518         * tests/unicase/test-u32-toupper.c (check): Likewise.
49519         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49520         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49521         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49522         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49523         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49524         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49525         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49526         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49527         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49528         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49529         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49530         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49531
49532 2009-04-05  Bruno Haible  <bruno@clisp.org>
49533
49534         Work around an autoconf limitation.
49535         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49536         comment line if it would be longer than 3 KB.
49537
49538 2009-04-05  Bruno Haible  <bruno@clisp.org>
49539
49540         Avoid test failure with libiconv-1.13.
49541         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49542         of the expected test results.
49543
49544 2009-04-05  Bruno Haible  <bruno@clisp.org>
49545
49546         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49547         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49548         that it should be installed.
49549
49550 2009-04-05  Bruno Haible  <bruno@clisp.org>
49551
49552         * gnulib-tool: New option --copy-file.
49553         (func_usage): Document it.
49554         (func_dest_tmpfilename): Moved out of func_import.
49555         (func_add_file, func_update_file): New functions, extracted from
49556         func_import.
49557         (func_import): Update.
49558
49559 2009-04-05  Karl Berry  <karl@gnu.org>
49560
49561         * README: prominently mention gnulib-tool.
49562         Rearrange sections so getting the code is near the top.
49563
49564 2009-04-05  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/unicase.h: Mention u*_cmp2.
49567         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49568         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49569         * lib/unicase/ulc-casecmp.c: Likewise.
49570         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49571         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49572         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49573         unistr/u8-cmp.
49574         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49575         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49576         unistr/u16-cmp.
49577         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49578         unistr/u32-cmp.
49579
49580         * lib/uninorm.h: Mention u*_cmp2.
49581         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49582         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49583         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49584         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49585         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49586         unistr/u8-cmp.
49587         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49588         unistr/u16-cmp.
49589         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49590         unistr/u32-cmp.
49591
49592         New module 'unistr/u32-cmp2'.
49593         * lib/unistr/u32-cmp2.c: New file.
49594         * modules/unistr/u32-cmp2: New file.
49595
49596         New module 'unistr/u16-cmp2'.
49597         * lib/unistr/u16-cmp2.c: New file.
49598         * modules/unistr/u16-cmp2: New file.
49599
49600         New module 'unistr/u8-cmp2'.
49601         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49602         * lib/unistr/u8-cmp2.c: New file.
49603         * lib/unistr/u-cmp2.h: New file.
49604         * modules/unistr/u8-cmp2: New file.
49605
49606 2009-04-05  Bruno Haible  <bruno@clisp.org>
49607
49608         * lib/unictype.h (uc_property_is_valid): New macro.
49609         * tests/unictype/test-pr_byname.c (main): Use it.
49610
49611         * lib/unistr.h: Doc fixes.
49612         * lib/uniconv.h: Doc fixes.
49613         * lib/unictype.h: Doc fixes.
49614
49615 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         Port coreutils 7.2 to Solaris 8.
49618
49619         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49620         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49621         for Solaris 8.  This is a bit of a hack, as it means it's the
49622         caller's responsibility to add -lnsl if needed, but most likely it
49623         won't be needed since only getaddrinfo uses this and getaddrinfo
49624         isn't needed on Solaris 8.
49625
49626         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49627         problem to Solaris 8 encountered with coreutils 7.2, which
49628         resulted in a message "fnmatch.c:292: warning: passing argument 4
49629         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49630         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49631
49632 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49633
49634         * m4/ld-version-script.m4: Add FIXME comment.
49635
49636 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49637
49638         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49639         SOVERSION variable.
49640
49641 2009-04-02  Bruno Haible  <bruno@clisp.org>
49642
49643         * Makefile (info, html, dvi, pdf): Combine the rules.
49644         Suggested by Jim Meyering.
49645
49646 2009-04-01  Bruno Haible  <bruno@clisp.org>
49647
49648         * Makefile (info, html, dvi, pdf): New targets.
49649         Reported by Reuben Thomas <rrt@sc3d.org>.
49650
49651 2009-04-01  Bruno Haible  <bruno@clisp.org>
49652
49653         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49654         can be put into PATH.
49655         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49656
49657 2009-04-01  Bruno Haible  <bruno@clisp.org>
49658
49659         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49660
49661 2009-04-01  Bruno Haible  <bruno@clisp.org>
49662
49663         Rename module 'visibility'.
49664         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49665         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49666         * doc/gnulib.texi: Update.
49667         * MODULES.html.sh (Misc): Update.
49668         * NEWS: Mention the change.
49669
49670 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49671
49672         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49673         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49674         Eric Blake <ebb9@byu.net> for review.
49675         * MODULES.html.sh: Add lib-msvc-compat.
49676         * doc/gnulib.texi: Link to new section.
49677         * m4/ld-output-def.m4: New file.
49678         * doc/ld-output-def.texi: New file.
49679
49680 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49681
49682         Rename ld-version-script to lib-symbol-versions.  Suggested by
49683         Bruno Haible <bruno@clisp.org>.
49684         * modules/ld-version-script: Renamed to lib-symbol-versions.
49685         * doc/ld-version-script.texi: Fix module name.
49686         * MODULES.html.sh: Add lib-symbol-versions.
49687
49688 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49689
49690         * modules/u64-tests: New file.
49691         * tests/test-u64.c: New file.
49692
49693 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49694
49695         * MODULES.html.sh: Mention u64.
49696         * modules/u64: New module.
49697         * modules/crypto/sha512: Depend on u64 module instead of providing
49698         u64.h.
49699
49700 2009-03-27  Eric Blake  <ebb9@byu.net>
49701
49702         test-strerror: make debugging EAI_SYSTEM easier
49703         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49704         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49705         failure was EAI_SYSTEM.
49706
49707 2009-03-25  Bruno Haible  <bruno@clisp.org>
49708
49709         Fix a problem with --enable-relocatable on Solaris 7.
49710         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49711         since 2008-02-24.
49712
49713 2009-03-25  Eric Blake  <ebb9@byu.net>
49714
49715         test-sockets: avoid gcc warning
49716         * tests/test-sockets.c (main): Silence compiler warning.
49717
49718 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49719
49720         New modules nproc, pthread, contributed by Glen Lenker.
49721
49722         * MODULES.html.sh: Add pthread, nproc.
49723         * lib/nproc.c: New file.
49724         * lib/nproc.h: New file.
49725         * lib/pthread.in.h: New file.
49726         * m4/pthread.m4: New file.
49727         * modules/nproc: New file.
49728         * modules/pthread: New file.
49729
49730 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49731
49732         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49733         New variable.
49734
49735 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49736
49737         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49738         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49739         * tests/test-filevercmp.c: Add tests for backup suffixes.
49740
49741 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49742
49743         * modules/stdlib (Depends-on): Add stdint, needed when defining
49744         struct random_data on, for example, HP-UX 10.20.  Reported by
49745         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49746
49747 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49748
49749         * lib/readline.c (readline): Call fflush on stdout after printing
49750         prompt.
49751
49752 2009-03-20  Bruno Haible  <bruno@clisp.org>
49753
49754         Remove dependency from 'close' module to -lws2_32 on native Windows.
49755         * lib/close-hook.h: New file.
49756         * lib/close-hook.c: New file.
49757         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49758         w32sock.h.
49759         (_gl_close_fd_maybe_socket): Remove function.
49760         (rpl_close): Invoke execute_all_close_hooks instead of
49761         _gl_close_fd_maybe_socket.
49762         * lib/sockets.c: Include close-hook.h, w32sock.h.
49763         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49764         (close_sockets_hook): New variable.
49765         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49766         (gl_sockets_cleanup): Unregister it.
49767         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49768         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49769         * modules/close-hook: New file.
49770         * modules/close (Files): Remove lib/w32sock.h.
49771         (Depends-on): Add close-hook.
49772         (Link): Remove section.
49773         * modules/sockets (Files): Add lib/w32sock.h.
49774         (Depends-on): Add close-hook.
49775         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49776         invocation.
49777         * NEWS: Mention that LIB_CLOSE is gone.
49778
49779 2009-03-23  Eric Blake  <ebb9@byu.net>
49780
49781         signal-tests: test previous patch
49782         * tests/test-signal.c: New file.
49783         * modules/signal-tests: Likewise.
49784
49785         signal.h: always support 'volatile sig_atomic_t'
49786         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49787         (gl_SIGNAL_H_DEFAULTS): Add a default.
49788         * modules/signal (Makefile.am): Substitute if needed.
49789         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49790         users can blindly add volatile.
49791         * doc/posix-headers/signal.texi (signal.h): Document it.
49792         Reported by Matthew Woehlke.
49793
49794 2009-03-23  Jim Meyering  <meyering@redhat.com>
49795
49796         pathmax: PATH_MAX: use pathconf only when available
49797         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49798         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49799         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49800         This avoids a link failure in a PSP cross-compilation environment
49801         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49802
49803         * lib/vasnprintf.c (divide): Fix typo in comment.
49804
49805 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49806
49807         * gnulib-tool (func_filter_filelist): Fix comment.
49808
49809 2009-03-20  Bruno Haible  <bruno@clisp.org>
49810
49811         Make sockets.h self-contained.
49812         * lib/sockets.c: Include sockets.h first.
49813         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49814
49815 2009-03-19  Eric Blake  <ebb9@byu.net>
49816
49817         doc: mention more functions added in cygwin 1.7.0
49818         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49819         addition.
49820         * doc/posix-functions/log2f.texi: Likewise.
49821
49822 2009-03-19  Jim Meyering  <meyering@redhat.com>
49823
49824         fsusage: avoid syntax error due to statement-before-declaration
49825         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49826         after all declarations.  Reported by Matthew Woehlke in
49827         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49828
49829 2009-03-18  Eric Blake  <ebb9@byu.net>
49830
49831         build-aux/compile: sync from automake
49832         * build-aux/compile: New file, from automake.
49833         * config/srclist.txt: Mention build-aux/compile.
49834
49835 2009-03-17  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/git-merge-changelog.c: Fix typo in comment.
49838         Reported by Reuben Thomas <rrt@sc3d.org>.
49839
49840 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49841
49842         * m4/regex.m4: update and improve help for
49843         --without-included-regex.
49844
49845 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49846
49847         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49848         failure on missing include files.
49849
49850 2009-03-17  Eric Blake  <ebb9@byu.net>
49851
49852         doc: mention more functions added in cygwin 1.7.0
49853         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49854         addition.
49855         * doc/posix-functions/fwscanf.texi: Likewise.
49856         * doc/posix-functions/swprintf.texi: Likewise.
49857         * doc/posix-functions/swscanf.texi: Likewise.
49858         * doc/posix-functions/vfwprintf.texi: Likewise.
49859         * doc/posix-functions/vfwscanf.texi: Likewise.
49860         * doc/posix-functions/vswprintf.texi: Likewise.
49861         * doc/posix-functions/vswscanf.texi: Likewise.
49862         * doc/posix-functions/vwprintf.texi: Likewise.
49863         * doc/posix-functions/vwscanf.texi: Likewise.
49864         * doc/posix-functions/wcscasecmp.texi: Likewise.
49865         * doc/posix-functions/wcsdup.texi: Likewise.
49866         * doc/posix-functions/wcsftime.texi: Likewise.
49867         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49868         * doc/posix-functions/wprintf.texi: Likewise.
49869         * doc/posix-functions/wscanf.texi: Likewise.
49870         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49871
49872 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49873
49874         maint.mk: really add $(AM_MAKEFLAGS)
49875         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49876         was inadvertently omitted in the last commit.
49877         Spotted by Bruno Haible.
49878
49879         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49880         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49881         $(AM_MAKEFLAGS)' rather than plain `make'.
49882
49883         gnulib-tool: execute $MAKE not make
49884         * gnulib-tool: Default $MAKE to 'make'.
49885         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49886         than make.  Initialize $MAKE in the do-autobuild script.
49887
49888         gnulib-tool: use $MAKE not make in generated files
49889         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49890         make, in generated files.  Initialize $MAKE in the do-autobuild
49891         script.
49892
49893         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49894
49895         GNUmakefile: disable parallelism only for multiple, recursive targets
49896         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49897         additions in the Makefile.
49898         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49899         by Automake.
49900         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49901         are listed on the command line and at least one of them is
49902         listed in $(ALL_RECURSIVE_TARGETS).
49903
49904 2009-03-14  Bruno Haible  <bruno@clisp.org>
49905
49906         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49907         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49908         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49909         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49910         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49911         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49912         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49913         unistr/u8-uctomb.
49914         * modules/unistr/u8-strchr (Depends-on): Likewise.
49915         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49916         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49917         unistr/u16-uctomb.
49918         * modules/unistr/u16-strchr (Depends-on): Likewise.
49919         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49920
49921 2009-03-12  Bruno Haible  <bruno@clisp.org>
49922
49923         Work around select() bug on Interix 3.5.
49924         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49925         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49926         * m4/select.m4: New file.
49927         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49928         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49929         * modules/select (Files): Add m4/select.m4.
49930         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49931         * modules/nanosleep (Depends-on): Add select.
49932         * modules/poll (Depends-on): Likewise.
49933         * doc/posix-functions/select.texi: Mention the Interix bug.
49934         Reported by Markus Duft <mduft@gentoo.org>.
49935
49936         * lib/select.c: Renamed from lib/winsock-select.c.
49937         * modules/select (Files): Add lib/select.c, remove
49938         lib/winsock-select.c.
49939         (configure.ac): Update.
49940
49941 2009-03-12  Jim Meyering  <meyering@redhat.com>
49942
49943         avoid gcc warnings about unused macro definitions
49944         * lib/readtokens.c (STREQ): Remove unused definition.
49945         * lib/xmalloc.c (SIZE_MAX): Likewise.
49946         * lib/openat-die.c (N_): Likewise.
49947         * lib/mountlist.c (SIZE_MAX): Remove definition.
49948         Instead, include <stdint.h>.
49949         * lib/readutmp.c: Likewise.
49950         * modules/readutmp (Depends-on): Add stdint.
49951         * modules/mountlist (Depends-on): Add stdint.
49952         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49953
49954 2009-03-10  Bruno Haible  <bruno@clisp.org>
49955
49956         Tests for module 'mbmemcasecoll'.
49957         * modules/mbmemcasecoll-tests: New file.
49958         * tests/test-mbmemcasecoll1.sh: New file.
49959         * tests/test-mbmemcasecoll2.sh: New file.
49960         * tests/test-mbmemcasecoll3.sh: New file.
49961         * tests/test-mbmemcasecoll.c: New file.
49962
49963         New module 'mbmemcasecoll'.
49964         * lib/mbmemcasecoll.h: New file.
49965         * lib/mbmemcasecoll.c: New file.
49966         * modules/mbmemcasecoll: New file.
49967
49968         * tests/test-mbmemcasecmp.h: New file, extracted from
49969         tests/test-mbmemcasecmp.c.
49970         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49971         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49972         (main): Update.
49973         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49974
49975 2009-03-09  Bruno Haible  <bruno@clisp.org>
49976
49977         Tests for module 'mbmemcasecmp'.
49978         * modules/mbmemcasecmp-tests: New file.
49979         * tests/test-mbmemcasecmp1.sh: New file.
49980         * tests/test-mbmemcasecmp2.sh: New file.
49981         * tests/test-mbmemcasecmp3.sh: New file.
49982         * tests/test-mbmemcasecmp.c: New file.
49983
49984         New module 'mbmemcasecmp'.
49985         * lib/mbmemcasecmp.h: New file.
49986         * lib/mbmemcasecmp.c: New file.
49987         * modules/mbmemcasecmp: New file.
49988
49989 2009-03-09  Bruno Haible  <bruno@clisp.org>
49990
49991         Tests for module 'unicase/ulc-casecoll'.
49992         * modules/unicase/ulc-casecoll-tests: New file.
49993         * tests/unicase/test-ulc-casecoll1.sh: New file.
49994         * tests/unicase/test-ulc-casecoll2.sh: New file.
49995         * tests/unicase/test-ulc-casecoll.c: New file.
49996
49997         New module 'unicase/ulc-casecoll'.
49998         * lib/unicase.h (ulc_casecoll): New declaration.
49999         * lib/unicase/ulc-casecoll.c: New file.
50000         * modules/unicase/ulc-casecoll: New file.
50001
50002         New module 'unicase/ulc-casexfrm'.
50003         * lib/unicase.h (ulc_casexfrm): New declaration.
50004         * lib/unicase/ulc-casexfrm.c: New file.
50005         * modules/unicase/ulc-casexfrm: New file.
50006
50007 2009-03-09  Bruno Haible  <bruno@clisp.org>
50008
50009         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50010         invocations.
50011
50012         * m4/mbscasecmp.m4: Remove file.
50013         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50014         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50015
50016         * m4/mbscasestr.m4: Remove file.
50017         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50018         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50019
50020         * m4/mbschr.m4: Remove file.
50021         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50022         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50023
50024         * m4/mbscspn.m4: Remove file.
50025         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50026         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50027
50028         * m4/mbslen.m4: Remove file.
50029         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50030         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50031
50032         * m4/mbsncasecmp.m4: Remove file.
50033         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50034         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50035
50036         * m4/mbsnlen.m4: Remove file.
50037         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50038         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50039
50040         * m4/mbspbrk.m4: Remove file.
50041         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50042         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50043
50044         * m4/mbspcasecmp.m4: Remove file.
50045         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50046         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50047
50048         * m4/mbsrchr.m4: Remove file.
50049         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50050         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50051
50052         * m4/mbssep.m4: Remove file.
50053         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50054         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50055
50056         * m4/mbsspn.m4: Remove file.
50057         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50058         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50059
50060         * m4/mbsstr.m4: Remove file.
50061         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50062         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50063
50064         * m4/mbstok_r.m4: Remove file.
50065         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50066         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50067
50068         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50069
50070         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50071         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50072
50073         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50074
50075 2009-03-08  Bruno Haible  <bruno@clisp.org>
50076
50077         Tests for module 'unicase/ulc-casecmp'.
50078         * modules/unicase/ulc-casecmp-tests: New file.
50079         * tests/unicase/test-ulc-casecmp1.sh: New file.
50080         * tests/unicase/test-ulc-casecmp2.sh: New file.
50081         * tests/unicase/test-ulc-casecmp.c: New file.
50082
50083         New module 'unicase/ulc-casecmp'.
50084         * lib/unicase.h (ulc_casecmp): New declaration.
50085         * lib/unicase/ulc-casecmp.c: New file.
50086         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50087         'const SRC_UNIT *'.
50088         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50089         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50090         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50091         * modules/unicase/ulc-casecmp: New file.
50092
50093         Tests for module 'unicase/u32-is-cased'.
50094         * modules/unicase/u32-is-cased-tests: New file.
50095         * tests/unicase/test-u32-is-cased.c: New file.
50096
50097         Tests for module 'unicase/u16-is-cased'.
50098         * modules/unicase/u16-is-cased-tests: New file.
50099         * tests/unicase/test-u16-is-cased.c: New file.
50100
50101         Tests for module 'unicase/u8-is-cased'.
50102         * modules/unicase/u8-is-cased-tests: New file.
50103         * tests/unicase/test-u8-is-cased.c: New file.
50104         * tests/unicase/test-is-cased.h: New file.
50105
50106         New module 'unicase/u32-is-cased'.
50107         * lib/unicase/u32-is-cased.c: New file.
50108         * modules/unicase/u32-is-cased: New file.
50109
50110         New module 'unicase/u16-is-cased'.
50111         * lib/unicase/u16-is-cased.c: New file.
50112         * modules/unicase/u16-is-cased: New file.
50113
50114         New module 'unicase/u8-is-cased'.
50115         * lib/unicase/u8-is-cased.c: New file.
50116         * lib/unicase/u-is-cased.h: New file.
50117         * modules/unicase/u8-is-cased: New file.
50118
50119         Tests for module 'unicase/u32-is-casefolded'.
50120         * modules/unicase/u32-is-casefolded-tests: New file.
50121         * tests/unicase/test-u32-is-casefolded.c: New file.
50122
50123         Tests for module 'unicase/u16-is-casefolded'.
50124         * modules/unicase/u16-is-casefolded-tests: New file.
50125         * tests/unicase/test-u16-is-casefolded.c: New file.
50126
50127         Tests for module 'unicase/u8-is-casefolded'.
50128         * modules/unicase/u8-is-casefolded-tests: New file.
50129         * tests/unicase/test-u8-is-casefolded.c: New file.
50130         * tests/unicase/test-is-casefolded.h: New file.
50131
50132         New module 'unicase/u32-is-casefolded'.
50133         * lib/unicase/u32-is-casefolded.c: New file.
50134         * modules/unicase/u32-is-casefolded: New file.
50135
50136         New module 'unicase/u16-is-casefolded'.
50137         * lib/unicase/u16-is-casefolded.c: New file.
50138         * modules/unicase/u16-is-casefolded: New file.
50139
50140         New module 'unicase/u8-is-casefolded'.
50141         * lib/unicase/u8-is-casefolded.c: New file.
50142         * modules/unicase/u8-is-casefolded: New file.
50143
50144         Tests for module 'unicase/u32-is-titlecase'.
50145         * modules/unicase/u32-is-titlecase-tests: New file.
50146         * tests/unicase/test-u32-is-titlecase.c: New file.
50147
50148         Tests for module 'unicase/u16-is-titlecase'.
50149         * modules/unicase/u16-is-titlecase-tests: New file.
50150         * tests/unicase/test-u16-is-titlecase.c: New file.
50151
50152         Tests for module 'unicase/u8-is-titlecase'.
50153         * modules/unicase/u8-is-titlecase-tests: New file.
50154         * tests/unicase/test-u8-is-titlecase.c: New file.
50155         * tests/unicase/test-is-titlecase.h: New file.
50156
50157         New module 'unicase/u32-is-titlecase'.
50158         * lib/unicase/u32-is-titlecase.c: New file.
50159         * modules/unicase/u32-is-titlecase: New file.
50160
50161         New module 'unicase/u16-is-titlecase'.
50162         * lib/unicase/u16-is-titlecase.c: New file.
50163         * modules/unicase/u16-is-titlecase: New file.
50164
50165         New module 'unicase/u8-is-titlecase'.
50166         * lib/unicase/u8-is-titlecase.c: New file.
50167         * modules/unicase/u8-is-titlecase: New file.
50168
50169         Tests for module 'unicase/u32-is-lowercase'.
50170         * modules/unicase/u32-is-lowercase-tests: New file.
50171         * tests/unicase/test-u32-is-lowercase.c: New file.
50172
50173         Tests for module 'unicase/u16-is-lowercase'.
50174         * modules/unicase/u16-is-lowercase-tests: New file.
50175         * tests/unicase/test-u16-is-lowercase.c: New file.
50176
50177         Tests for module 'unicase/u8-is-lowercase'.
50178         * modules/unicase/u8-is-lowercase-tests: New file.
50179         * tests/unicase/test-u8-is-lowercase.c: New file.
50180         * tests/unicase/test-is-lowercase.h: New file.
50181
50182         New module 'unicase/u32-is-lowercase'.
50183         * lib/unicase/u32-is-lowercase.c: New file.
50184         * modules/unicase/u32-is-lowercase: New file.
50185
50186         New module 'unicase/u16-is-lowercase'.
50187         * lib/unicase/u16-is-lowercase.c: New file.
50188         * modules/unicase/u16-is-lowercase: New file.
50189
50190         New module 'unicase/u8-is-lowercase'.
50191         * lib/unicase/u8-is-lowercase.c: New file.
50192         * modules/unicase/u8-is-lowercase: New file.
50193
50194         Tests for module 'unicase/u32-is-uppercase'.
50195         * modules/unicase/u32-is-uppercase-tests: New file.
50196         * tests/unicase/test-u32-is-uppercase.c: New file.
50197
50198         Tests for module 'unicase/u16-is-uppercase'.
50199         * modules/unicase/u16-is-uppercase-tests: New file.
50200         * tests/unicase/test-u16-is-uppercase.c: New file.
50201
50202         Tests for module 'unicase/u8-is-uppercase'.
50203         * modules/unicase/u8-is-uppercase-tests: New file.
50204         * tests/unicase/test-u8-is-uppercase.c: New file.
50205         * tests/unicase/test-is-uppercase.h: New file.
50206
50207         New module 'unicase/u32-is-uppercase'.
50208         * lib/unicase/u32-is-uppercase.c: New file.
50209         * modules/unicase/u32-is-uppercase: New file.
50210
50211         New module 'unicase/u16-is-uppercase'.
50212         * lib/unicase/u16-is-uppercase.c: New file.
50213         * modules/unicase/u16-is-uppercase: New file.
50214
50215         New module 'unicase/u8-is-uppercase'.
50216         * lib/unicase/u8-is-uppercase.c: New file.
50217         * modules/unicase/u8-is-uppercase: New file.
50218
50219         New module 'unicase/u32-is-invariant'.
50220         * lib/unicase/u32-is-invariant.c: New file.
50221         * modules/unicase/u32-is-invariant: New file.
50222
50223         New module 'unicase/u16-is-invariant'.
50224         * lib/unicase/u16-is-invariant.c: New file.
50225         * modules/unicase/u16-is-invariant: New file.
50226
50227         New module 'unicase/u8-is-invariant'.
50228         * lib/unicase/u8-is-invariant.c: New file.
50229         * lib/unicase/invariant.h: New file.
50230         * lib/unicase/u-is-invariant.h: New file.
50231         * modules/unicase/u8-is-invariant: New file.
50232
50233         Tests for module 'unicase/u32-casecoll'.
50234         * modules/unicase/u32-casecoll-tests: New file.
50235         * tests/unicase/test-u32-casecoll.c: New file.
50236
50237         Tests for module 'unicase/u16-casecoll'.
50238         * modules/unicase/u16-casecoll-tests: New file.
50239         * tests/unicase/test-u16-casecoll.c: New file.
50240
50241         Tests for module 'unicase/u8-casecoll'.
50242         * modules/unicase/u8-casecoll-tests: New file.
50243         * tests/unicase/test-u8-casecoll.c: New file.
50244
50245         New module 'unicase/u32-casecoll'.
50246         * lib/unicase/u32-casecoll.c: New file.
50247         * modules/unicase/u32-casecoll: New file.
50248
50249         New module 'unicase/u16-casecoll'.
50250         * lib/unicase/u16-casecoll.c: New file.
50251         * modules/unicase/u16-casecoll: New file.
50252
50253         New module 'unicase/u8-casecoll'.
50254         * lib/unicase/u8-casecoll.c: New file.
50255         * lib/unicase/u-casecoll.h: New file.
50256         * modules/unicase/u8-casecoll: New file.
50257
50258         New module 'unicase/u32-casexfrm'.
50259         * lib/unicase/u32-casexfrm.c: New file.
50260         * modules/unicase/u32-casexfrm: New file.
50261
50262         New module 'unicase/u16-casexfrm'.
50263         * lib/unicase/u16-casexfrm.c: New file.
50264         * modules/unicase/u16-casexfrm: New file.
50265
50266         New module 'unicase/u8-casexfrm'.
50267         * lib/unicase/u8-casexfrm.c: New file.
50268         * lib/unicase/u-casexfrm.h: New file.
50269         * modules/unicase/u8-casexfrm: New file.
50270
50271         Tests for module 'unicase/u32-casecmp'.
50272         * modules/unicase/u32-casecmp-tests: New file.
50273         * tests/unicase/test-u32-casecmp.c: New file.
50274
50275         Tests for module 'unicase/u16-casecmp'.
50276         * modules/unicase/u16-casecmp-tests: New file.
50277         * tests/unicase/test-u16-casecmp.c: New file.
50278
50279         Tests for module 'unicase/u8-casecmp'.
50280         * modules/unicase/u8-casecmp-tests: New file.
50281         * tests/unicase/test-u8-casecmp.c: New file.
50282         * tests/unicase/test-casecmp.h: New file.
50283
50284         New module 'unicase/u32-casecmp'.
50285         * lib/unicase/u32-casecmp.c: New file.
50286         * modules/unicase/u32-casecmp: New file.
50287
50288         New module 'unicase/u16-casecmp'.
50289         * lib/unicase/u16-casecmp.c: New file.
50290         * modules/unicase/u16-casecmp: New file.
50291
50292         New module 'unicase/u8-casecmp'.
50293         * lib/unicase/u8-casecmp.c: New file.
50294         * lib/unicase/u-casecmp.h: New file.
50295         * modules/unicase/u8-casecmp: New file.
50296
50297         Tests for module 'unicase/u32-casefold'.
50298         * modules/unicase/u32-casefold-tests: New file.
50299         * tests/unicase/test-u32-casefold.c: New file.
50300
50301         Tests for module 'unicase/u16-casefold'.
50302         * modules/unicase/u16-casefold-tests: New file.
50303         * tests/unicase/test-u16-casefold.c: New file.
50304
50305         Tests for module 'unicase/u8-casefold'.
50306         * modules/unicase/u8-casefold-tests: New file.
50307         * tests/unicase/test-u8-casefold.c: New file.
50308
50309         New module 'unicase/u32-casefold'.
50310         * lib/unicase/u32-casefold.c: New file.
50311         * modules/unicase/u32-casefold: New file.
50312
50313         New module 'unicase/u16-casefold'.
50314         * lib/unicase/u16-casefold.c: New file.
50315         * modules/unicase/u16-casefold: New file.
50316
50317         New module 'unicase/u8-casefold'.
50318         * lib/unicase/u8-casefold.c: New file.
50319         * lib/unicase/u-casefold.h: New file.
50320         * modules/unicase/u8-casefold: New file.
50321
50322         New module 'unicase/tocasefold'.
50323         * lib/unicase/casefold.h: New file.
50324         * lib/unicase/tocasefold.c: New file.
50325         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50326         * modules/unicase/tocasefold: New file.
50327
50328         Tests for module 'unicase/u32-totitle'.
50329         * modules/unicase/u32-totitle-tests: New file.
50330         * tests/unicase/test-u32-totitle.c: New file.
50331
50332         Tests for module 'unicase/u16-totitle'.
50333         * modules/unicase/u16-totitle-tests: New file.
50334         * tests/unicase/test-u16-totitle.c: New file.
50335
50336         Tests for module 'unicase/u8-totitle'.
50337         * modules/unicase/u8-totitle-tests: New file.
50338         * tests/unicase/test-u8-totitle.c: New file.
50339
50340         New module 'unicase/u32-totitle'.
50341         * lib/unicase/u32-totitle.c: New file.
50342         * modules/unicase/u32-totitle: New file.
50343
50344         New module 'unicase/u16-totitle'.
50345         * lib/unicase/u16-totitle.c: New file.
50346         * modules/unicase/u16-totitle: New file.
50347
50348         New module 'unicase/u8-totitle'.
50349         * lib/unicase/u8-totitle.c: New file.
50350         * lib/unicase/u-totitle.h: New file.
50351         * modules/unicase/u8-totitle: New file.
50352
50353         Tests for module 'unicase/u32-tolower'.
50354         * modules/unicase/u32-tolower-tests: New file.
50355         * tests/unicase/test-u32-tolower.c: New file.
50356
50357         Tests for module 'unicase/u16-tolower'.
50358         * modules/unicase/u16-tolower-tests: New file.
50359         * tests/unicase/test-u16-tolower.c: New file.
50360
50361         Tests for module 'unicase/u8-tolower'.
50362         * modules/unicase/u8-tolower-tests: New file.
50363         * tests/unicase/test-u8-tolower.c: New file.
50364
50365         New module 'unicase/u32-tolower'.
50366         * lib/unicase/u32-tolower.c: New file.
50367         * modules/unicase/u32-tolower: New file.
50368
50369         New module 'unicase/u16-tolower'.
50370         * lib/unicase/u16-tolower.c: New file.
50371         * modules/unicase/u16-tolower: New file.
50372
50373         New module 'unicase/u8-tolower'.
50374         * lib/unicase/u8-tolower.c: New file.
50375         * modules/unicase/u8-tolower: New file.
50376
50377         Tests for module 'unicase/u32-toupper'.
50378         * modules/unicase/u32-toupper-tests: New file.
50379         * tests/unicase/test-u32-toupper.c: New file.
50380
50381         Tests for module 'unicase/u16-toupper'.
50382         * modules/unicase/u16-toupper-tests: New file.
50383         * tests/unicase/test-u16-toupper.c: New file.
50384
50385         Tests for module 'unicase/u8-toupper'.
50386         * modules/unicase/u8-toupper-tests: New file.
50387         * tests/unicase/test-u8-toupper.c: New file.
50388
50389         New module 'unicase/u32-toupper'.
50390         * lib/unicase/u32-toupper.c: New file.
50391         * modules/unicase/u32-toupper: New file.
50392
50393         New module 'unicase/u16-toupper'.
50394         * lib/unicase/u16-toupper.c: New file.
50395         * modules/unicase/u16-toupper: New file.
50396
50397         New module 'unicase/u8-toupper'.
50398         * lib/unicase/u8-toupper.c: New file.
50399         * modules/unicase/u8-toupper: New file.
50400
50401         New module 'unicase/u32-casemap'.
50402         * lib/unicase/u32-casemap.c: New file.
50403         * modules/unicase/u32-casemap: New file.
50404
50405         New module 'unicase/u16-casemap'.
50406         * lib/unicase/u16-casemap.c: New file.
50407         * modules/unicase/u16-casemap: New file.
50408
50409         New module 'unicase/u8-casemap'.
50410         * lib/unicase/unicasemap.h: New file.
50411         * lib/unicase/u8-casemap.c: New file.
50412         * lib/unicase/u-casemap.h: New file.
50413         * modules/unicase/u8-casemap: New file.
50414
50415         New module 'unicase/special-casing'.
50416         * lib/unicase/special-casing.h: New file.
50417         * lib/unicase/special-casing.c: New file.
50418         * lib/unicase/special-casing-table.gperf: New file, generated by
50419         gen-uni-tables.c.
50420         * modules/unicase/special-casing: New file.
50421
50422         Tests for module 'unicase/locale-language'.
50423         * modules/unicase/locale-language-tests: New file.
50424         * tests/unicase/test-locale-language.sh: New file.
50425         * tests/unicase/test-locale-language.c: New file.
50426
50427         New module 'unicase/locale-language'.
50428         * lib/unicase/locale-language.c: New file.
50429         * lib/unicase/locale-languages.gperf: New file.
50430         * modules/unicase/locale-language: New file.
50431
50432         Generate more tables for case conversion and case folding.
50433         * lib/gen-uni-tables.c (SCC_*): New enum items.
50434         (struct special_casing_rule): New type.
50435         (casing_rules, num_casing_rules, allocated_casing_rules): New
50436         variables.
50437         (add_casing_rule, fill_casing_rules): New functions.
50438         (struct casefold_rule): New type.
50439         (casefolding_rules, num_casefolding_rules,
50440         allocated_casefolding_rules): New variables.
50441         (fill_casefolding_rules): New function.
50442         (unicode_casefold): New variable.
50443         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50444         sort_casing_rules, output_casing_rules): New functions.
50445         (main): Accept to more arguments: SpecialCasing.txt and
50446         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50447         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50448         Output mapping for casefolding.
50449
50450         * lib/unicase.h: Include stdbool.h, uninorm.h.
50451         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50452         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50453         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50454         arguments.
50455         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50456         resultp arguments.
50457         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50458         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50459         resultp arguments.
50460         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50461         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50462         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50463         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50464         declarations.
50465         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50466
50467 2009-03-08  Bruno Haible  <bruno@clisp.org>
50468
50469         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50470         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50471         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50472         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50473
50474 2009-03-07  Bruno Haible  <bruno@clisp.org>
50475
50476         Adjust u*_normcmp, u*_normcoll API.
50477         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50478         u16_normcoll, u32_normcoll): Change failure conventions.
50479         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50480         errno and return -1.
50481         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50482
50483 2009-03-07  Bruno Haible  <bruno@clisp.org>
50484
50485         Tests for module 'uninorm/u32-normcoll'.
50486         * modules/uninorm/u32-normcoll-tests: New file.
50487         * tests/uninorm/test-u32-normcoll.c: New file.
50488
50489         Tests for module 'uninorm/u16-normcoll'.
50490         * modules/uninorm/u16-normcoll-tests: New file.
50491         * tests/uninorm/test-u16-normcoll.c: New file.
50492
50493         Tests for module 'uninorm/u8-normcoll'.
50494         * modules/uninorm/u8-normcoll-tests: New file.
50495         * tests/uninorm/test-u8-normcoll.c: New file.
50496
50497 2009-03-07  Bruno Haible  <bruno@clisp.org>
50498
50499         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50500         tests/uninorm/test-u32-normcmp.c.
50501         * tests/uninorm/test-u32-normcmp.c: Include it.
50502         (test_nonascii): New function, extracted from main. Add some more
50503         tests.
50504         (main): Invoke test_ascii and test_nonascii.
50505         * modules/uninorm/u32-normcmp-tests (Files): Add
50506         tests/uninorm/test-u32-normcmp.h.
50507         (Depends-on): Remove uninorm/u32-normcmp.
50508
50509         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50510         tests/uninorm/test-u16-normcmp.c.
50511         * tests/uninorm/test-u16-normcmp.c: Include it.
50512         (test_nonascii): New function, extracted from main. Add some more
50513         tests.
50514         (main): Invoke test_ascii and test_nonascii.
50515         * modules/uninorm/u16-normcmp-tests (Files): Add
50516         tests/uninorm/test-u16-normcmp.h.
50517         (Depends-on): Remove uninorm/u16-normcmp.
50518
50519         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50520         tests/uninorm/test-u8-normcmp.c.
50521         * tests/uninorm/test-u8-normcmp.c: Include it.
50522         (test_nonascii): New function, extracted from main. Add some more
50523         tests.
50524         (main): Invoke test_ascii and test_nonascii.
50525         * modules/uninorm/u8-normcmp-tests (Files): Add
50526         tests/uninorm/test-u8-normcmp.h.
50527         (Depends-on): Remove uninorm/u8-normcmp.
50528
50529 2009-03-07  Bruno Haible  <bruno@clisp.org>
50530
50531         New module 'uninorm/u32-normcoll'.
50532         * lib/uninorm/u32-normcoll.c: New file.
50533         * modules/uninorm/u32-normcoll: New file.
50534
50535         New module 'uninorm/u16-normcoll'.
50536         * lib/uninorm/u16-normcoll.c: New file.
50537         * modules/uninorm/u16-normcoll: New file.
50538
50539         New module 'uninorm/u8-normcoll'.
50540         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50541         declarations.
50542         * lib/uninorm/u8-normcoll.c: New file.
50543         * lib/uninorm/u-normcoll.h: New file.
50544         * modules/uninorm/u8-normcoll: New file.
50545
50546         New module 'uninorm/u32-normxfrm'.
50547         * lib/uninorm/u32-normxfrm.c: New file.
50548         * modules/uninorm/u32-normxfrm: New file.
50549
50550         New module 'uninorm/u16-normxfrm'.
50551         * lib/uninorm/u16-normxfrm.c: New file.
50552         * modules/uninorm/u16-normxfrm: New file.
50553
50554         New module 'uninorm/u8-normxfrm'.
50555         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50556         declarations.
50557         * lib/uninorm/u8-normxfrm.c: New file.
50558         * lib/uninorm/u-normxfrm.h: New file.
50559         * modules/uninorm/u8-normxfrm: New file.
50560
50561 2009-03-07  Bruno Haible  <bruno@clisp.org>
50562
50563         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50564         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50565         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50566
50567 2009-03-07  Bruno Haible  <bruno@clisp.org>
50568
50569         New module 'memxfrm'.
50570         * lib/memxfrm.h: New file.
50571         * lib/memxfrm.c: New file.
50572         * modules/memxfrm: New file.
50573
50574 2009-03-07  Bruno Haible  <bruno@clisp.org>
50575
50576         New module 'memcmp2'.
50577         * lib/memcmp2.h: New file.
50578         * lib/memcmp2.c: New file.
50579         * modules/memcmp2: New file.
50580
50581 2009-03-07  Bruno Haible  <bruno@clisp.org>
50582
50583         Tests for module 'uninorm/decomposing-form'.
50584         * modules/uninorm/decomposing-form-tests: New file.
50585         * tests/uninorm/test-decomposing-form.c: New file.
50586
50587         New module 'uninorm/decomposing-form'.
50588         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50589         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50590         Add 'decomposing_variant' field.
50591         * lib/uninorm/decomposing-form.c: New file.
50592         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50593         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50594         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50595         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50596         * modules/uninorm/decomposing-form: New file.
50597         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50598         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50599
50600 2009-03-07  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50603         strings.
50604
50605 2009-03-06  Bruno Haible  <bruno@clisp.org>
50606
50607         Tests for module 'uninorm/u32-normcmp'.
50608         * tests/uninorm/test-u32-normcmp.c: New file.
50609         * modules/uninorm/u32-normcmp-tests: New file.
50610
50611         Tests for module 'uninorm/u16-normcmp'.
50612         * tests/uninorm/test-u16-normcmp.c: New file.
50613         * modules/uninorm/u16-normcmp-tests: New file.
50614
50615         Tests for module 'uninorm/u8-normcmp'.
50616         * tests/uninorm/test-u8-normcmp.c: New file.
50617         * modules/uninorm/u8-normcmp-tests: New file.
50618
50619         New module 'uninorm/u32-normcmp'.
50620         * lib/uninorm/u32-normcmp.c: New file.
50621         * modules/uninorm/u32-normcmp: New file.
50622
50623         New module 'uninorm/u16-normcmp'.
50624         * lib/uninorm/u16-normcmp.c: New file.
50625         * modules/uninorm/u16-normcmp: New file.
50626
50627         New module 'uninorm/u8-normcmp'.
50628         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50629         declarations.
50630         * lib/uninorm/u8-normcmp.c: New file.
50631         * lib/uninorm/u-normcmp.h: New file.
50632         * modules/uninorm/u8-normcmp: New file.
50633
50634 2009-03-06  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50637         Reported by Eric Blake.
50638
50639 2009-03-06  Eric Blake  <ebb9@byu.net>
50640             Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50643         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50644         condition.
50645         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50646         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50647         condition.
50648         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50649
50650 2009-03-06  Eric Blake  <ebb9@byu.net>
50651
50652         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50653         to avoid compiler warnings.
50654         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50655
50656 2009-03-05  Bruno Haible  <bruno@clisp.org>
50657
50658         * tests/test-ftell.c (main): Disable test beyond end of file on
50659         FreeMiNT.
50660         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50661
50662 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50663
50664         * lib/filevercmp.c: Move hidden files up in ordering.
50665         * tests/test-filevercmp.c: Add tests for hidden files.
50666
50667 2009-03-04  Bruno Haible  <bruno@clisp.org>
50668
50669         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50670         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50671         AM_CFLAGS.
50672         Reported by Simon Josefsson.
50673
50674 2009-03-03  Bruno Haible  <bruno@clisp.org>
50675
50676         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50677         Reported by Simon Josefsson.
50678
50679         * doc/ld-version-script.texi: Update node reference.
50680
50681 2009-03-03  Bruno Haible  <bruno@clisp.org>
50682
50683         * modules/visibility (License): Change to 'unlimited'.
50684         Suggested by Simon Josefsson.
50685
50686 2009-03-03  Jim Meyering  <meyering@redhat.com>
50687
50688         unlinkdir: cannot_unlink_dir may modify process state
50689         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50690         it's neither thread-safe nor appropriate for use in a library.
50691
50692 2009-03-03  Eric Blake  <ebb9@byu.net>
50693
50694         test-closein: silence test under Darwin
50695         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50696         care if it dies from EPIPE or EBADF.
50697
50698 2009-03-03  Bruno Haible  <bruno@clisp.org>
50699
50700         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50701         earlier.
50702         * doc/visibility.texi: Fix @node and @section.
50703
50704 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50705
50706         * doc/gnulib.texi: Link to sections for ld version script and
50707         visibility.
50708         * doc/visibility.texi: Add @node and @section.
50709         * modules/ld-version-script: New module.
50710         * m4/ld-version-script.m4: New file.
50711         * doc/ld-version-script.texi: New file.
50712
50713 2009-03-02  David Lutterkort  <lutter@redhat.com>
50714
50715         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50717
50718 2009-03-02  Bruno Haible  <bruno@clisp.org>
50719
50720         * doc/visibility.texi: Mention libtool's -export-symbols option.
50721
50722 2009-03-02  Jim Meyering  <meyering@redhat.com>
50723
50724         announce-gen: new option: --no-print-checksums
50725         * build-aux/announce-gen (usage): Describe it.
50726         (print_checksums): Print a newline here, not in the [*] footnote.
50727         (main): Honor it.
50728
50729 2009-03-01  Bruno Haible  <bruno@clisp.org>
50730
50731         Use socklen_t in the native Windows replacements prototypes.
50732         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50733         instead of 'int'.
50734         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50735         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50736         * modules/getsockopt (Depends-on): Add socklen.
50737         * modules/setsockopt (Depends-on): Add socklen.
50738
50739 2009-03-01  Bruno Haible  <bruno@clisp.org>
50740
50741         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50742         least 4.2.
50743
50744 2009-03-01  Eric Blake  <ebb9@byu.net>
50745             Bruno Haible  <bruno@clisp.org>
50746
50747         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50748         error messages.
50749         * lib/wait-process.c (wait_subprocess): Omit error message about
50750         deadly signal sent to the child of termsigp != NULL.
50751
50752 2009-03-01  Eric Blake  <ebb9@byu.net>
50753
50754         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50755
50756 2009-03-01  Bruno Haible  <bruno@clisp.org>
50757
50758         Avoid a gcc warning.
50759         * tests/test-sched.c (b): Make global.
50760         Reported by Eric Blake.
50761
50762 2009-01-19  Martin Lambers  <marlam@marlam.de>
50763
50764         Provide POSIX semantics for socket timeout options on W32.
50765         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50766         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50767         * modules/setsockopt: Depend on sys_time module for struct timeval.
50768         * modules/getsockopt: Depend on sys_time module for struct timeval.
50769
50770 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50771
50772         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50773         __USE_GNU, for consistency with netdb.in.h.
50774         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50775
50776 2009-03-01  Bruno Haible  <bruno@clisp.org>
50777
50778         More support for FreeMiNT.
50779         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50780         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50781
50782 2009-03-01  Bruno Haible  <bruno@clisp.org>
50783
50784         More support for FreeMiNT.
50785         * lib/fpurge.c (fpurge): Correct last commit.
50786         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50787
50788 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50789
50790         Fix unportable awk script in vc-list-files.
50791         * build-aux/vc-list-files: In the replacement awk script, use
50792         substr with a second argument of 1, not zero.
50793         Report by Simon Josefsson.
50794
50795 2009-02-28  Bruno Haible  <bruno@clisp.org>
50796
50797         More support for FreeMiNT.
50798         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50799         to FreeMiNT today.
50800         * lib/fwriting.c (fwriting): Likewise.
50801         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50802
50803 2009-02-28  Bruno Haible  <bruno@clisp.org>
50804
50805         * tests/test-freadseek.c (main): Disable test beyond end of file on
50806         FreeMiNT.
50807         * tests/test-ftello.c (main): Likewise.
50808         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50809
50810 2009-02-28  Bruno Haible  <bruno@clisp.org>
50811
50812         Add tentative support for FreeMiNT.
50813         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50814         * lib/fpurge.c (fpurge): Likewise.
50815         * lib/freadable.c (freadable): Likewise.
50816         * lib/freading.c (freading): Likewise.
50817         * lib/freadptr.c (freadptr): Likewise.
50818         * lib/freadseek.c (freadptrinc): Likewise.
50819         * lib/fseeko.c (rpl_fseeko): Likewise.
50820         * lib/fseterr.c (fseterr): Likewise.
50821         * lib/fwritable.c (fwritable): Likewise.
50822         * lib/fwriting.c (fwriting): Likewise.
50823         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50824         Hourihane.
50825         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50826
50827 2009-02-28  Bruno Haible  <bruno@clisp.org>
50828
50829         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50830         SIGCHLD.
50831         Reported by Jim Meyering.
50832
50833 2009-02-28  Bruno Haible  <bruno@clisp.org>
50834
50835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50836         Mention the results of these tests on various platforms.
50837         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50838         order.
50839         * doc/posix-functions/printf.texi: Likewise.
50840         * doc/posix-functions/snprintf.texi: Likewise.
50841         * doc/posix-functions/sprintf.texi: Likewise.
50842         * doc/posix-functions/vfprintf.texi: Likewise.
50843         * doc/posix-functions/vprintf.texi: Likewise.
50844         * doc/posix-functions/vsnprintf.texi: Likewise.
50845         * doc/posix-functions/vsprintf.texi: Likewise.
50846         * doc/glibc-functions/obstack_printf.texi: Likewise.
50847         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50848
50849 2009-02-28  Bruno Haible  <bruno@clisp.org>
50850
50851         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50852         Reported by Loïc Minier <lool@dooz.org>.
50853
50854 2009-02-27  Bruno Haible  <bruno@clisp.org>
50855
50856         * gnulib-tool (func_import): Make the sed expression used to create the
50857         sed script for updating the .gitignore file POSIX compliant.
50858         Reported by Eric Blake.
50859
50860 2009-02-27  Bruno Haible  <bruno@clisp.org>
50861
50862         * gnulib-tool (sed): Don't alias as "sed --posix".
50863         Reported by Eric Blake.
50864
50865 2009-02-27  Bruno Haible  <bruno@clisp.org>
50866
50867         Avoid test link errors.
50868         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50869         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50870         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50871         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50873
50874 2009-02-27  Bruno Haible  <bruno@clisp.org>
50875
50876         Avoid spurious "(cached)" in configure output.
50877         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50878         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50879         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50880         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50881         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50882         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50883         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50884         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50885         Reported by Eric Blake.
50886
50887 2009-02-27  Eric Blake  <ebb9@byu.net>
50888
50889         printf: fix regression in previous patch
50890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50891
50892 2009-02-27  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50895         value.
50896         * lib/stdint.in.h: Likewise.
50897         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50898
50899 2009-02-27  Eric Blake  <ebb9@byu.net>
50900
50901         doc: mention more functions added in cygwin 1.7.0
50902         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50903         addition.
50904         * doc/posix-functions/open_wmemstream.texi: Likewise.
50905         * doc/posix-functions/wcsnlen.texi: Likewise.
50906         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50907         * doc/posix-functions/wcstod.texi: Likewise.
50908         * doc/posix-functions/wcstof.texi: Likewise.
50909         * doc/posix-functions/wcstoimax.texi: Likewise.
50910         * doc/posix-functions/wcstok.texi: Likewise.
50911         * doc/posix-functions/wcstoumax.texi: Likewise.
50912
50913         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50915         * doc/posix-functions/fprintf.texi: Update.
50916         * doc/posix-functions/printf.texi: Update.
50917         * doc/posix-functions/snprintf.texi: Update.
50918         * doc/posix-functions/sprintf.texi: Update.
50919         * doc/posix-functions/vfprintf.texi: Update.
50920         * doc/posix-functions/vprintf.texi: Update.
50921         * doc/posix-functions/vsnprintf.texi: Update.
50922         * doc/posix-functions/vsprintf.texi: Update.
50923         * doc/glibc-functions/obstack_printf.texi: Update.
50924         * doc/glibc-functions/obstack_vprintf.texi: Update.
50925
50926 2009-02-26  Eric Blake  <ebb9@byu.net>
50927
50928         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50929         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50930         compilation bug by using runtime conversion.
50931         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50932         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50933         * modules/ceill-tests (Files): Use nan.h.
50934         * modules/floorl-tests (Files): Likewise.
50935         * modules/frexpl-tests (Files): Likewise.
50936         * modules/isnanl-tests (Files): Likewise.
50937         * modules/ldexpl-tests (Files): Likewise.
50938         * modules/roundl-tests (Files): Likewise.
50939         * modules/truncl-tests (Files): Likewise.
50940         * tests/test-ceill.c (main): Use a working NaN.
50941         * tests/test-floorl.c (main): Likewise.
50942         * tests/test-frexpl.c (main): Likewise.
50943         * tests/test-isnan.c (test_long_double): Likewise.
50944         * tests/test-isnanl.h (main): Likewise.
50945         * tests/test-ldexpl.h (main): Likewise.
50946         * tests/test-roundl.h (main): Likewise.
50947         * tests/test-truncl.h (main): Likewise.
50948         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50949
50950 2009-02-26  Eric Blake  <ebb9@byu.net>
50951             Bruno Haible  <bruno@clisp.org>
50952
50953         Work around a *printf bug with %ls on Solaris.
50954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50955         precision is specified, sprintf stops converting the wide string
50956         argument when the number of bytes that have been produced by this
50957         conversion equals or exceeds the precision.
50958         * doc/posix-functions/fprintf.texi: Update.
50959         * doc/posix-functions/printf.texi: Update.
50960         * doc/posix-functions/snprintf.texi: Update.
50961         * doc/posix-functions/sprintf.texi: Update.
50962         * doc/posix-functions/vfprintf.texi: Update.
50963         * doc/posix-functions/vprintf.texi: Update.
50964         * doc/posix-functions/vsnprintf.texi: Update.
50965         * doc/posix-functions/vsprintf.texi: Update.
50966         * doc/glibc-functions/obstack_printf.texi: Update.
50967         * doc/glibc-functions/obstack_vprintf.texi: Update.
50968
50969 2009-02-26  Eric Blake  <ebb9@byu.net>
50970
50971         stdlib: favor compiler check of random.h
50972         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50973         to avoid an ObjC random.h installed by Swarm.
50974
50975 2009-02-26  Bruno Haible  <bruno@clisp.org>
50976
50977         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50978         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50979         Reported by Gary V. Vaughan <gary@gnu.org>.
50980
50981 2009-02-26  Bruno Haible  <bruno@clisp.org>
50982
50983         Fix *printf behaviour regarding the %ls directive.
50984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50985         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50986         NEED_PRINTF_DIRECTIVE_LS.
50987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50988         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50989         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50990         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50991         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50992         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50993         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50998         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50999         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51000         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51001         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51002         * doc/posix-functions/fprintf.texi: Update.
51003         * doc/posix-functions/printf.texi: Update.
51004         * doc/posix-functions/snprintf.texi: Update.
51005         * doc/posix-functions/sprintf.texi: Update.
51006         * doc/posix-functions/vfprintf.texi: Update.
51007         * doc/posix-functions/vprintf.texi: Update.
51008         * doc/posix-functions/vsnprintf.texi: Update.
51009         * doc/posix-functions/vsprintf.texi: Update.
51010         * doc/glibc-functions/obstack_printf.texi: Update.
51011         * doc/glibc-functions/obstack_vprintf.texi: Update.
51012         Reported by Eric Blake.
51013
51014 2009-02-25  Bruno Haible  <bruno@clisp.org>
51015
51016         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51017         with known value.
51018         Reported by Gary V. Vaughan <gary@gnu.org>.
51019
51020 2009-02-25  Bruno Haible  <bruno@clisp.org>
51021
51022         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51023         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51024         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51025         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51026         Reported by Gary V. Vaughan <gary@gnu.org>.
51027
51028 2009-02-25  Bruno Haible  <bruno@clisp.org>
51029
51030         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51031         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51032         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51033         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51034         Reported by Gary V. Vaughan <gary@gnu.org>.
51035
51036 2009-02-25  Eric Blake  <ebb9@byu.net>
51037
51038         tests: skip fseek/ftell tests if ungetc is broken
51039         * m4/ungetc.m4: New file.
51040         * modules/fseek-tests: Split test, so ungetc dependency is
51041         separate from rest of test.
51042         * modules/fseeko-tests: Likewise.
51043         * modules/ftell-tests: Likewise.
51044         * modules/ftello-tests: Likewise.
51045         * tests/test-fseek.c (main): Isolate ungetc dependency.
51046         * tests/test-fseeko.c (main): Likewise.
51047         * tests/test-ftell.c (main): Likewise.
51048         * tests/test-ftello.c (main): Likewise.
51049         * tests/test-fseek2.sh: New file.
51050         * tests/test-fseeko2.sh: Likewise.
51051         * tests/test-ftell2.sh: Likewise.
51052         * tests/test-ftello2.sh: Likewise.
51053
51054 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51055
51056         test-getaddrinfo: fix usage of skip return code 77
51057         * tests/test-gettaddrinfo.c: Return skip code 77 only
51058         for first occurrence of skip (4x77 is not 77)
51059
51060 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51061
51062         strtod: avoid C99 decl-after-statement
51063         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51064
51065 2009-02-24  Eric Blake  <ebb9@byu.net>
51066
51067         strtod: detect HP-UX 11.31 bug
51068         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51069         Reported by Gary V. Vaughan.
51070
51071 2009-02-23  Bruno Haible  <bruno@clisp.org>
51072
51073         Fix invalid read past end of memory block.
51074         * lib/vasnprintf.c (DCHAR_SET): Define.
51075         (local_wcslen): Define only when needed.
51076         (local_strnlen, local_wcsnlen): New functions.
51077         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51078         directives that involve a conversion ourselves.
51079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51080         wcsnlen, mbrtowc, wcrtomb.
51081         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51082         * tests/test-vasprintf-posix.c (test_function): Likewise.
51083         * tests/test-snprintf-posix.h (test_function): Likewise.
51084         * tests/test-sprintf-posix.h (test_function): Likewise.
51085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51086
51087 2009-02-22  Bruno Haible  <bruno@clisp.org>
51088
51089         Implement new clarified decomposition of Hangul syllables.
51090         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51091         of type LTV, return only a pairwise decomposition.
51092         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51093         Likewise.
51094         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51095         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51096         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51097
51098 2009-02-22  Bruno Haible  <bruno@clisp.org>
51099
51100         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51101         zero-length results and shrink excess allocated memory.
51102         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51103         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51104         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51105         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51106         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51107         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51108         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51109         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51110         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51111         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51112         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51113         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51114
51115 2009-02-21  Bruno Haible  <bruno@clisp.org>
51116
51117         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51118         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51119         spaces after a period. Put a space between a macro name and its
51120         argument list. Trivial rewordings.
51121         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51122         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51123         (main): Return 0 explicitly.
51124
51125 2009-02-21  Bruno Haible  <bruno@clisp.org>
51126
51127         Tests for module 'uninorm/filter'.
51128         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51129         * modules/uninorm/filter-tests: New file.
51130
51131         New module 'uninorm/filter'.
51132         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51133         uninorm_filter_flush, uninorm_filter_free): New declarations.
51134         * lib/uninorm/uninorm-filter.c: New file.
51135         * modules/uninorm/filter: New file.
51136
51137 2009-02-21  Bruno Haible  <bruno@clisp.org>
51138
51139         Tests for module 'uninorm/nfkc'.
51140         * tests/uninorm/test-nfkc.c: New file.
51141         * tests/uninorm/test-u8-nfkc.c: New file.
51142         * tests/uninorm/test-u16-nfkc.c: New file.
51143         * tests/uninorm/test-u32-nfkc.c: New file.
51144         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51145         * tests/uninorm/test-u32-nfkc-big.c: New file.
51146         * modules/uninorm/nfkc-tests: New file.
51147
51148         New module 'uninorm/nfkc'.
51149         * lib/uninorm/nfkc.c: New file.
51150         * modules/uninorm/nfkc: New file.
51151
51152         Tests for module 'uninorm/nfkd'.
51153         * tests/uninorm/test-nfkd.c: New file.
51154         * tests/uninorm/test-u8-nfkd.c: New file.
51155         * tests/uninorm/test-u16-nfkd.c: New file.
51156         * tests/uninorm/test-u32-nfkd.c: New file.
51157         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51158         * tests/uninorm/test-u32-nfkd-big.c: New file.
51159         * modules/uninorm/nfkd-tests: New file.
51160
51161         New module 'uninorm/nfkd'.
51162         * lib/uninorm/nfkd.c: New file.
51163         * modules/uninorm/nfkd: New file.
51164
51165         Tests for module 'uninorm/nfc'.
51166         * tests/uninorm/test-nfc.c: New file.
51167         * tests/uninorm/test-u8-nfc.c: New file.
51168         * tests/uninorm/test-u16-nfc.c: New file.
51169         * tests/uninorm/test-u32-nfc.c: New file.
51170         * tests/uninorm/test-u32-nfc-big.sh: New file.
51171         * tests/uninorm/test-u32-nfc-big.c: New file.
51172         * modules/uninorm/nfc-tests: New file.
51173
51174         New module 'uninorm/nfc'.
51175         * lib/uninorm/nfc.c: New file.
51176         * modules/uninorm/nfc: New file.
51177
51178         Tests for module 'uninorm/nfd'.
51179         * tests/uninorm/test-nfd.c: New file.
51180         * tests/uninorm/test-u8-nfd.c: New file.
51181         * tests/uninorm/test-u16-nfd.c: New file.
51182         * tests/uninorm/test-u32-nfd.c: New file.
51183         * tests/uninorm/test-u32-nfd-big.sh: New file.
51184         * tests/uninorm/test-u32-nfd-big.c: New file.
51185         * tests/uninorm/test-u32-normalize-big.h: New file.
51186         * tests/uninorm/test-u32-normalize-big.c: New file.
51187         * tests/uninorm/NormalizationTest.txt: New file, created from
51188         Unicode 5.1.0 NormalizationTest.txt.
51189         * modules/uninorm/nfd-tests: New file.
51190
51191         New module 'uninorm/nfd'.
51192         * lib/uninorm/nfd.c: New file.
51193         * modules/uninorm/nfd: New file.
51194
51195         New module 'uninorm/u32-normalize'.
51196         * lib/uninorm/u32-normalize.c: New file.
51197         * modules/uninorm/u32-normalize: New file.
51198
51199         New module 'uninorm/u16-normalize'.
51200         * lib/uninorm/u16-normalize.c: New file.
51201         * modules/uninorm/u16-normalize: New file.
51202
51203         New module 'uninorm/u8-normalize'.
51204         * lib/uninorm/u8-normalize.c: New file.
51205         * lib/uninorm/normalize-internal.h: New file.
51206         * lib/uninorm/u-normalize-internal.h: New file.
51207         * modules/uninorm/u8-normalize: New file.
51208
51209         New module 'uninorm/decompose-internal'.
51210         * lib/uninorm/decompose-internal.c: New file.
51211         * modules/uninorm/decompose-internal: New file.
51212
51213         Tests for module 'uninorm/composition'.
51214         * tests/uninorm/test-composition.c: New file.
51215         * modules/uninorm/composition-tests: New file.
51216
51217         New module 'uninorm/composition'.
51218         * lib/uninorm/composition.c: New file.
51219         * lib/uninorm/composition-table.gperf: New file, generated by
51220         gen-uni-tables.
51221         * modules/uninorm/composition: New file.
51222
51223         Tests for module 'uninorm/compat-decomposition'.
51224         * tests/uninorm/test-compat-decomposition.c: New file.
51225         * modules/uninorm/compat-decomposition-tests: New file.
51226
51227         New module 'uninorm/compat-decomposition'.
51228         * lib/uninorm/decompose-internal.h: New file.
51229         * lib/uninorm/compat-decomposition.c: New file.
51230         * modules/uninorm/compat-decomposition: New file.
51231
51232         Tests for module 'uninorm/canonical-decomposition'.
51233         * tests/uninorm/test-canonical-decomposition.c: New file.
51234         * modules/uninorm/canonical-decomposition-tests: New file.
51235
51236         New module 'uninorm/canonical-decomposition'.
51237         * lib/uninorm/canonical-decomposition.c: New file.
51238         * modules/uninorm/canonical-decomposition: New file.
51239
51240         Tests for module 'uninorm/decomposition'.
51241         * tests/uninorm/test-decomposition.c: New file.
51242         * modules/uninorm/decomposition-tests: New file.
51243
51244         New module 'uninorm/decomposition'.
51245         * lib/uninorm/decomposition.c: New file.
51246         * modules/uninorm/decomposition: New file.
51247
51248         New module 'uninorm/decomposition-table'.
51249         * lib/uninorm/decomposition-table.h: New file.
51250         * lib/uninorm/decomposition-table.c: New file.
51251         * lib/uninorm/decomposition-table1.h: New file, generated by
51252         gen-uni-tables.
51253         * lib/uninorm/decomposition-table2.h: New file, generated by
51254         gen-uni-tables.
51255         * modules/uninorm/decomposition-table: New file.
51256
51257         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51258         (UC_DECOMP_*): New enumeration items.
51259         (get_decomposition): New function.
51260         (struct decomp_table): New type.
51261         (output_decomposition, output_decomposition_tables): New functions.
51262         (unicode_composition_exclusions): New variable.
51263         (fill_composition_exclusions, debug_output_composition_tables): New
51264         functions.
51265         (main): Accept one more argument. Invoke fill_composition_exclusions.
51266         Output decomposition and composition tables.
51267
51268         New module 'uninorm/base'.
51269         * lib/uninorm.h: New file.
51270         * lib/unictype.h: Update comment.
51271         * modules/uninorm/base: New file.
51272
51273 2009-02-21  David Lutterkort  <lutter@redhat.com>
51274
51275         Tests for module 'safe-alloc'.
51276         * tests/test-safe-alloc.c: New file.
51277         * modules/safe-alloc-tests: New file.
51278
51279         New module 'safe-alloc'.
51280         * lib/safe-alloc.h: New file.
51281         * lib/safe-alloc.c: New file.
51282         * m4/safe-alloc.m4: New file.
51283         * modules/safe-alloc: New file.
51284         * doc/safe-alloc.texi: New file.
51285         * doc/gnulib.texi: Include it.
51286         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51287         safe-alloc.
51288
51289 2009-02-18  Bruno Haible  <bruno@clisp.org>
51290
51291         Fix link error on non-glibc systems.
51292         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51293         variable.
51294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51295
51296 2009-02-18  Jim Meyering  <meyering@redhat.com>
51297
51298         fts: avoid used-uninitialized error due to recent change
51299         * lib/fts.c (fts_read): Guard uses of the new member,
51300         parent->fts_n_dirs_remaining, since it's not relevant for
51301         the parent of a directory specified on the command-line.
51302
51303 2009-02-17  James Youngman  <jay@gnu.org>
51304             Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/include_next.m4: Reformulate comment.
51307
51308 2009-02-16  Jim Meyering  <meyering@redhat.com>
51309
51310         fts: add #if guards so that the fts_lgpl module still builds
51311         * lib/fts.c: Guard just-added hash-table-using parts with
51312         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51313         Reported by Simon Josefsson.
51314
51315 2009-02-15  Bruno Haible  <bruno@clisp.org>
51316
51317         * modules/array-mergesort-tests: New file.
51318         * tests/test-array-mergesort.c: New file.
51319
51320         New module 'array-mergesort'.
51321         * modules/array-mergesort: New file.
51322         * lib/array-mergesort.h: New file.
51323
51324 2009-02-15  Bruno Haible  <bruno@clisp.org>
51325
51326         Fix 2009-02-07 commit.
51327         * lib/gen-uni-tables.c (output_predicate, output_category,
51328         output_combclass, output_bidi_category, output_decimal_digit,
51329         output_digit, output_numeric, output_mirror, output_scripts,
51330         output_ident_category, output_simple_mapping): Fix format directives.
51331         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51332
51333 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51334
51335         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51336         fixes are available from IBM.
51337
51338 2009-02-13  Jim Meyering  <meyering@redhat.com>
51339
51340         fts: arrange not to stat non-directories in more cases
51341         This makes GNU find (when it doesn't need to stat each file)
51342         *much* more efficient at traversing reiserfs file systems.
51343         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51344         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51345         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51346         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51347         (leaf_optimization_applies): New function.
51348         (LCO_hash, LCO_compare): New helper functions.
51349         (link_count_optimize_ok): New function.
51350         (fts_stat): Initialize new member (if dir).
51351         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51352         we've just stat'ed a directory.  Skip the stat call when possible.
51353         ---
51354         Note this AFS-related exchange:
51355         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51356         and note find's pioctl call in find/fstype.c.
51357         But that is necessary only if you want to enable the
51358         optimization for AFS, and for now, I don't.
51359
51360         fts: move a function definition "up" (no semantic change)
51361         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51362         "up" to precede upcoming use of a related function.
51363
51364 2009-02-11  Jim Meyering  <meyering@redhat.com>
51365
51366         fts: correct internal computation of nlinks (optimization-related)
51367         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51368         whether the current entry is a directory, so don't test it.
51369
51370 2009-02-10  Bruno Haible  <bruno@clisp.org>
51371
51372         Tests for module 'uniwbrk/ulc-wordbreaks'.
51373         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51374         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51375         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51376
51377         Tests for module 'uniwbrk/u32-wordbreaks'.
51378         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51379         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51380
51381         Tests for module 'uniwbrk/u16-wordbreaks'.
51382         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51383         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51384
51385         Tests for module 'uniwbrk/u8-wordbreaks'.
51386         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51387         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51388
51389 2009-02-10  Bruno Haible  <bruno@clisp.org>
51390
51391         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51392         property.
51393         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51394         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51395         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51396
51397 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51398
51399         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51400         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51401
51402 2009-02-10  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51405         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51406         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51407         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51408         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51409         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51410
51411 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51412
51413         * lib/sockets.h (gl_fd_to_handle): New function.
51414
51415         * tests/test-sockets.c: Call gl_fd_to_handle.
51416
51417 2009-02-09  Bruno Haible  <bruno@clisp.org>
51418
51419         * doc/havelib.texi: Document the conventions on bi-arch systems.
51420
51421 2009-02-08  Bruno Haible  <bruno@clisp.org>
51422
51423         Document the AC_LIB_LINKFLAGS macro.
51424         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51425         * doc/gnulib.texi: Include it.
51426
51427 2009-02-08  Bruno Haible  <bruno@clisp.org>
51428
51429         Fix wrong order of sections, compared to TOC.
51430         * doc/gnulib.texi: Include relocatable-maint.texi after the
51431         "Regular expressions" node, not before.
51432
51433 2009-02-08  Bruno Haible  <bruno@clisp.org>
51434
51435         Tests for module 'unicase/totitle'.
51436         * modules/unicase/totitle-tests: New file.
51437
51438         Tests for module 'unicase/tolower'.
51439         * modules/unicase/tolower-tests: New file.
51440
51441         Tests for module 'unicase/toupper'.
51442         * modules/unicase/toupper-tests: New file.
51443         * tests/unicase/test-mapping-part1.h: New file.
51444         * tests/unicase/test-mapping-part2.h: New file.
51445
51446         New module 'unicase/totitle'.
51447         * modules/unicase/totitle: New file.
51448         * lib/unicase/totitle.c: New file.
51449
51450         New module 'unicase/tolower'.
51451         * modules/unicase/tolower: New file.
51452         * lib/unicase/tolower.c: New file.
51453
51454         New module 'unicase/toupper'.
51455         * modules/unicase/toupper: New file.
51456         * lib/unicase/toupper.c: New file.
51457         * lib/unicase/simple-mapping.h: New file.
51458
51459         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51460         (mapping_table): New structure.
51461         (output_simple_mapping): New function.
51462         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51463         * modules/gen-uni-tables (Description): Update.
51464         * lib/unicase/toupper.h: New file, automatically generated by
51465         gen-uni-tables.
51466         * lib/unicase/tolower.h: New file, automatically generated by
51467         gen-uni-tables.
51468         * lib/unicase/totitle.h: New file, automatically generated by
51469         gen-uni-tables.
51470         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51471         gen-uni-tables.
51472         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51473         gen-uni-tables.
51474         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51475         gen-uni-tables.
51476
51477         New module 'unicase/base'.
51478         * modules/unicase/base: New file.
51479         * lib/unicase.h: New file.
51480
51481 2009-02-08  Bruno Haible  <bruno@clisp.org>
51482
51483         New module 'uniwbrk/ulc-wordbreaks'.
51484         * modules/uniwbrk/ulc-wordbreaks: New file.
51485         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51486
51487         New module 'uniwbrk/u32-wordbreaks'.
51488         * modules/uniwbrk/u32-wordbreaks: New file.
51489         * lib/uniwbrk/u32-wordbreaks.c: New file.
51490
51491         New module 'uniwbrk/u16-wordbreaks'.
51492         * modules/uniwbrk/u16-wordbreaks: New file.
51493         * lib/uniwbrk/u16-wordbreaks.c: New file.
51494
51495         New module 'uniwbrk/u8-wordbreaks'.
51496         * modules/uniwbrk/u8-wordbreaks: New file.
51497         * lib/uniwbrk/u8-wordbreaks.c: New file.
51498         * lib/uniwbrk/u-wordbreaks.h: New file.
51499
51500         New module 'uniwbrk/table'.
51501         * modules/uniwbrk/table: New file.
51502         * lib/uniwbrk/wbrktable.h: New file.
51503         * lib/uniwbrk/wbrktable.c: New file.
51504
51505         New module 'uniwbrk/wordbreak-property'.
51506         * modules/uniwbrk/wordbreak-property: New file.
51507         * lib/uniwbrk/wordbreak-property.c: New file.
51508
51509         * lib/gen-uni-tables.c (WBP_*): New enum items.
51510         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51511         (unicode_org_wbp): New variable.
51512         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51513         New functions.
51514         (wbp_table): New structure.
51515         (output_wbp, output_wbrk_tables): New functions.
51516         (main): Accept additional argument. Invoke fill_org_wbp,
51517         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51518         output_wbrk_tables.
51519         * modules/gen-uni-tables (Description): Update.
51520         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51521         gen-uni-tables.
51522
51523         New module 'uniwbrk/base'.
51524         * modules/uniwbrk/base: New file.
51525         * lib/uniwbrk.h: New file.
51526
51527 2009-02-08  Bruno Haible  <bruno@clisp.org>
51528
51529         Update to Unicode 5.1.0.
51530         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51531         U+2185..U+2188.
51532         (is_property_default_ignorable_code_point): Don't include characters
51533         of category Cc or Cs and not-a-characters.
51534         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51535         U+0D79, U+109E, U+109F, U+A60C.
51536         * lib/unictype/bidi_of.h: Regenerated.
51537         * lib/unictype/blocks.h: Regenerated.
51538         * lib/unictype/categ_C.h: Regenerated.
51539         * lib/unictype/categ_Cf.h: Regenerated.
51540         * lib/unictype/categ_Cn.h: Regenerated.
51541         * lib/unictype/categ_L.h: Regenerated.
51542         * lib/unictype/categ_Ll.h: Regenerated.
51543         * lib/unictype/categ_Lm.h: Regenerated.
51544         * lib/unictype/categ_Lo.h: Regenerated.
51545         * lib/unictype/categ_Lu.h: Regenerated.
51546         * lib/unictype/categ_M.h: Regenerated.
51547         * lib/unictype/categ_Mc.h: Regenerated.
51548         * lib/unictype/categ_Me.h: Regenerated.
51549         * lib/unictype/categ_Mn.h: Regenerated.
51550         * lib/unictype/categ_N.h: Regenerated.
51551         * lib/unictype/categ_Nd.h: Regenerated.
51552         * lib/unictype/categ_Nl.h: Regenerated.
51553         * lib/unictype/categ_No.h: Regenerated.
51554         * lib/unictype/categ_P.h: Regenerated.
51555         * lib/unictype/categ_Pd.h: Regenerated.
51556         * lib/unictype/categ_Pe.h: Regenerated.
51557         * lib/unictype/categ_Pf.h: Regenerated.
51558         * lib/unictype/categ_Pi.h: Regenerated.
51559         * lib/unictype/categ_Po.h: Regenerated.
51560         * lib/unictype/categ_Ps.h: Regenerated.
51561         * lib/unictype/categ_S.h: Regenerated.
51562         * lib/unictype/categ_Sk.h: Regenerated.
51563         * lib/unictype/categ_Sm.h: Regenerated.
51564         * lib/unictype/categ_So.h: Regenerated.
51565         * lib/unictype/categ_of.h: Regenerated.
51566         * lib/unictype/combining.h: Regenerated.
51567         * lib/unictype/ctype_alnum.h: Regenerated.
51568         * lib/unictype/ctype_alpha.h: Regenerated.
51569         * lib/unictype/ctype_graph.h: Regenerated.
51570         * lib/unictype/ctype_lower.h: Regenerated.
51571         * lib/unictype/ctype_print.h: Regenerated.
51572         * lib/unictype/ctype_punct.h: Regenerated.
51573         * lib/unictype/ctype_upper.h: Regenerated.
51574         * lib/unictype/decdigit.h: Regenerated.
51575         * lib/unictype/digit.h: Regenerated.
51576         * lib/unictype/mirror.h: Regenerated.
51577         * lib/unictype/numeric.h: Regenerated.
51578         * lib/unictype/pr_alphabetic.h: Regenerated.
51579         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51580         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51581         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51582         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51583         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51584         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51585         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51586         * lib/unictype/pr_combining.h: Regenerated.
51587         * lib/unictype/pr_dash.h: Regenerated.
51588         * lib/unictype/pr_decimal_digit.h: Regenerated.
51589         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51590         * lib/unictype/pr_deprecated.h: Regenerated.
51591         * lib/unictype/pr_diacritic.h: Regenerated.
51592         * lib/unictype/pr_extender.h: Regenerated.
51593         * lib/unictype/pr_format_control.h: Regenerated.
51594         * lib/unictype/pr_grapheme_base.h: Regenerated.
51595         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51596         * lib/unictype/pr_grapheme_link.h: Regenerated.
51597         * lib/unictype/pr_id_continue.h: Regenerated.
51598         * lib/unictype/pr_id_start.h: Regenerated.
51599         * lib/unictype/pr_ideographic.h: Regenerated.
51600         * lib/unictype/pr_ignorable_control.h: Regenerated.
51601         * lib/unictype/pr_lowercase.h: Regenerated.
51602         * lib/unictype/pr_math.h: Regenerated.
51603         * lib/unictype/pr_numeric.h: Regenerated.
51604         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51605         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51606         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51607         * lib/unictype/pr_other_id_continue.h: Regenerated.
51608         * lib/unictype/pr_other_lowercase.h: Regenerated.
51609         * lib/unictype/pr_other_math.h: Regenerated.
51610         * lib/unictype/pr_punctuation.h: Regenerated.
51611         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51612         * lib/unictype/pr_soft_dotted.h: Regenerated.
51613         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51614         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51615         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51616         * lib/unictype/pr_uppercase.h: Regenerated.
51617         * lib/unictype/pr_xid_continue.h: Regenerated.
51618         * lib/unictype/pr_xid_start.h: Regenerated.
51619         * lib/unictype/pr_zero_width.h: Regenerated.
51620         * lib/unictype/scripts.h: Regenerated.
51621         * lib/unictype/scripts_byname.gperf: Regenerated.
51622         * lib/unictype/sy_java_ident.h: Regenerated.
51623         * lib/unilbrk/lbrkprop1.h: Regenerated.
51624         * lib/unilbrk/lbrkprop2.h: Regenerated.
51625         * tests/unictype/test-categ_C.c: Regenerated.
51626         * tests/unictype/test-categ_Cf.c: Regenerated.
51627         * tests/unictype/test-categ_Cn.c: Regenerated.
51628         * tests/unictype/test-categ_L.c: Regenerated.
51629         * tests/unictype/test-categ_Ll.c: Regenerated.
51630         * tests/unictype/test-categ_Lm.c: Regenerated.
51631         * tests/unictype/test-categ_Lo.c: Regenerated.
51632         * tests/unictype/test-categ_Lu.c: Regenerated.
51633         * tests/unictype/test-categ_M.c: Regenerated.
51634         * tests/unictype/test-categ_Mc.c: Regenerated.
51635         * tests/unictype/test-categ_Me.c: Regenerated.
51636         * tests/unictype/test-categ_Mn.c: Regenerated.
51637         * tests/unictype/test-categ_N.c: Regenerated.
51638         * tests/unictype/test-categ_Nd.c: Regenerated.
51639         * tests/unictype/test-categ_Nl.c: Regenerated.
51640         * tests/unictype/test-categ_No.c: Regenerated.
51641         * tests/unictype/test-categ_P.c: Regenerated.
51642         * tests/unictype/test-categ_Pd.c: Regenerated.
51643         * tests/unictype/test-categ_Pe.c: Regenerated.
51644         * tests/unictype/test-categ_Pf.c: Regenerated.
51645         * tests/unictype/test-categ_Pi.c: Regenerated.
51646         * tests/unictype/test-categ_Po.c: Regenerated.
51647         * tests/unictype/test-categ_Ps.c: Regenerated.
51648         * tests/unictype/test-categ_S.c: Regenerated.
51649         * tests/unictype/test-categ_Sk.c: Regenerated.
51650         * tests/unictype/test-categ_Sm.c: Regenerated.
51651         * tests/unictype/test-categ_So.c: Regenerated.
51652         * tests/unictype/test-ctype_alnum.c: Regenerated.
51653         * tests/unictype/test-ctype_alpha.c: Regenerated.
51654         * tests/unictype/test-ctype_graph.c: Regenerated.
51655         * tests/unictype/test-ctype_lower.c: Regenerated.
51656         * tests/unictype/test-ctype_print.c: Regenerated.
51657         * tests/unictype/test-ctype_punct.c: Regenerated.
51658         * tests/unictype/test-ctype_upper.c: Regenerated.
51659         * tests/unictype/test-decdigit.h: Regenerated.
51660         * tests/unictype/test-digit.h: Regenerated.
51661         * tests/unictype/test-numeric.h: Regenerated.
51662         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51663         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51664         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51665         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51666         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51667         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51668         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51669         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51670         * tests/unictype/test-pr_combining.c: Regenerated.
51671         * tests/unictype/test-pr_dash.c: Regenerated.
51672         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51673         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51674         * tests/unictype/test-pr_deprecated.c: Regenerated.
51675         * tests/unictype/test-pr_diacritic.c: Regenerated.
51676         * tests/unictype/test-pr_extender.c: Regenerated.
51677         * tests/unictype/test-pr_format_control.c: Regenerated.
51678         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51679         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51680         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51681         * tests/unictype/test-pr_id_continue.c: Regenerated.
51682         * tests/unictype/test-pr_id_start.c: Regenerated.
51683         * tests/unictype/test-pr_ideographic.c: Regenerated.
51684         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51685         * tests/unictype/test-pr_lowercase.c: Regenerated.
51686         * tests/unictype/test-pr_math.c: Regenerated.
51687         * tests/unictype/test-pr_numeric.c: Regenerated.
51688         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51689         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51690         Regenerated.
51691         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51692         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51693         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51694         * tests/unictype/test-pr_other_math.c: Regenerated.
51695         * tests/unictype/test-pr_punctuation.c: Regenerated.
51696         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51697         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51698         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51699         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51700         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51701         * tests/unictype/test-pr_uppercase.c: Regenerated.
51702         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51703         * tests/unictype/test-pr_xid_start.c: Regenerated.
51704         * tests/unictype/test-pr_zero_width.c: Regenerated.
51705
51706         Update to Unicode 5.1.0.
51707         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51708         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51709         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51710         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51711         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51712         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51713         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51714         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51715         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51716         (nonspacing_table_ind): Update.
51717         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51718
51719         Update to Unicode 5.1.0.
51720         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51721         code transform.
51722         * lib/uniname/uniname.c (unicode_character_name,
51723         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51724         * lib/uniname/uninames.h: Regenerated.
51725         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51726
51727 2009-02-07  Bruno Haible  <bruno@clisp.org>
51728
51729         Merge gen-ctype and gen-lbrk into a single program.
51730         * lib/gen-uni-tables.c: New file, incorporating
51731         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51732         Add directory prefixes to the names of the generated files.
51733         * lib/unictype/gen-ctype.c: Remove file.
51734         * lib/unilbrk/gen-lbrk.c: Remove file.
51735         * modules/gen-uni-tables: New file.
51736         * modules/unictype/gen-ctype: Remove file.
51737         * modules/unilbrk/gen-lbrk: Remove file.
51738
51739 2009-02-07  Bruno Haible  <bruno@clisp.org>
51740
51741         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51742
51743         New module 'unistr/u32-strcoll'.
51744         * modules/unistr/u32-strcoll: New file.
51745         * lib/unistr/u32-strcoll.c: New file.
51746
51747         New module 'unistr/u16-strcoll'.
51748         * modules/unistr/u16-strcoll: New file.
51749         * lib/unistr/u16-strcoll.c: New file.
51750
51751         New module 'unistr/u8-strcoll'.
51752         * modules/unistr/u8-strcoll: New file.
51753         * lib/unistr/u8-strcoll.c: New file.
51754         * lib/unistr/u-strcoll.h: New file.
51755
51756 2009-02-07  Bruno Haible  <bruno@clisp.org>
51757
51758         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51759         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51760         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51761         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51762         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51763         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51764
51765 2009-02-07  Bruno Haible  <bruno@clisp.org>
51766
51767         Make 64-bit clean.
51768         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51769         output_combclass, output_bidi_category, output_decimal_digit,
51770         output_digit, output_numeric, output_mirror, output_scripts,
51771         output_ident_category): Use proper width specifier in format strings.
51772
51773 2009-02-07  Bruno Haible  <bruno@clisp.org>
51774
51775         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51776         failure behaviour.
51777
51778 2009-02-07  Jim Meyering  <meyering@redhat.com>
51779
51780         regex: avoid compilation failure with upcoming gcc-4.4
51781         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51782         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51783         "... error: integer overflow in preprocessor expression".
51784
51785 2009-02-05  Ben Pfaff  <blp@gnu.org>
51786
51787         Fix link errors on Windows when close module is used.
51788         * modules/close: Add $(LIB_CLOSE) to Link section.
51789         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51790         $(LIB_CLOSE) on Windows.
51791
51792 2009-02-05  Jim Meyering  <meyering@redhat.com>
51793
51794         still avoid unused-parameter warnings, but do it cleanly
51795         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51796         (get_fs_usage): Cast to void instead.
51797         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51798         (dev_from_mount_options, read_file_system_list): Cast to void.
51799         Prompted by Bruno Haible.
51800
51801 2009-02-04  Jim Meyering  <meyering@redhat.com>
51802
51803         fsusage.c: correct copyright year
51804         * lib/fsusage.c: Reflect year in which the change is pushed into
51805
51806         avoid misc. warnings
51807         * lib/fsusage.c (UNUSED_PARAM): Define.
51808         (get_fs_usage): Mark parameter "disk" as unused.
51809         * lib/getugroups.c (getgrent): Use "void" in prototype.
51810         * lib/mountlist.c: Mark unused parameters.
51811         (read_file_system_list): Declare a local with "const".
51812         * lib/nanosleep.c (getnow): Declare static.
51813         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51814
51815         dirfd: set errno upon failure
51816         * lib/dirfd.c: Include <errno.h>.
51817         Set errno to ENOTSUP when returning -1.
51818         * modules/dirfd (Depends-on): Add errno.
51819         Suggested by John Kodis <kodis@comcast.net>.
51820
51821 2009-02-01  Bruno Haible  <bruno@clisp.org>
51822
51823         Don't assume sizeof (long) >= sizeof (void *).
51824         * lib/memcmp.c: Include stdint.h.
51825         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51826         srcp2 to 'const byte *'.
51827         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51828         types to uintptr_t.
51829         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51830         * modules/memcmp (Depends-on): Add stdint.
51831         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51832
51833 2009-01-30  Eric Blake  <ebb9@byu.net>
51834
51835         fix more require-before-expand issues
51836         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51837         expand, AC_PROG_AWK.
51838         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51839
51840 2009-01-28  Eric Blake  <ebb9@byu.net>
51841
51842         version-etc: use consistent URL formatting
51843         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51844         Improve formatting.  Use fputs for string without %.
51845
51846 2009-01-28  Jim Meyering  <meyering@redhat.com>
51847
51848         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51849         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51850         "underquoted definition of NAME" from autoconf-2.59.
51851
51852 2009-01-28  Bruno Haible  <bruno@clisp.org>
51853
51854         * doc/gnulib.texi: Add "Obsolete modules" to index.
51855
51856 2009-01-28  Jim Meyering  <meyering@redhat.com>
51857
51858         useless-if-before-free: recognize more variants
51859         * build-aux/useless-if-before-free: Also recognize e.g.,
51860         if (NULL != p) free (p);
51861
51862 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51863
51864         test-getaddrinfo: skip (don't fail) this test when there's no network
51865         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51866         on the presumption that it means you lack network access.
51867
51868 2009-01-26  Jim Meyering  <meyering@redhat.com>
51869
51870         fflush: avoid warnings on modern systems
51871         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51872         pos and result, into scopes where they're used.
51873
51874 2009-01-26  Eric Blake  <ebb9@byu.net>
51875
51876         Silence warning reintroduced by recent extensions patch.
51877         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51878         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51879         autoconf.
51880
51881         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51882         * m4/00gnulib.m4: New file.
51883         * gnulib-tool (func_get_filelist): Always use it.
51884         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51885         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51886
51887 2009-01-25  Bruno Haible  <bruno@clisp.org>
51888
51889         Make test-quotearg work on MacOS X and AIX.
51890         * tests/test-quotearg.sh: New file.
51891         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51892         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51893         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51894         include <libintl.h>.
51895         (fake_locale): Remove variable.
51896         (gettext, dgettext, dcgettext): Remove functions.
51897         (main): Instead of setting a fake locale, set a real locale. Call
51898         textdomain and bindtextdomain.
51899         * modules/quotearg-tests (Files): Add the new files.
51900         (Depends-on): Add gettext, setenv, unsetenv.
51901         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51902         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51903         Augment TESTS_ENVIRONMENT.
51904
51905 2009-01-25  Bruno Haible  <bruno@clisp.org>
51906
51907         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51908         fr_FR.ISO8859-1 locale on MacOS X.
51909         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51910         ja_JP.eucJP locale on MacOS X.
51911         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51912         zh_CN.GB18030 locale on MacOS X.
51913
51914 2009-01-25  Bruno Haible  <bruno@clisp.org>
51915
51916         Avoid link errors on MacOS X 10.3.
51917         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51918         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51919
51920 2009-01-25  Bruno Haible  <bruno@clisp.org>
51921
51922         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51923         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51924         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51925         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51926         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51927         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51928         posix_spawnattr_init, posix_spawnattr_setsigmask,
51929         posix_spawnattr_setflags, posix_spawnattr_destroy.
51930
51931         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51932         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51933         * modules/execute (Files): Remove m4/posix_spawn.m4.
51934         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51935         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51936         posix_spawnattr_init, posix_spawnattr_setsigmask,
51937         posix_spawnattr_setflags, posix_spawnattr_destroy.
51938
51939 2009-01-25  Bruno Haible  <bruno@clisp.org>
51940
51941         * lib/glthread/threadlib.c: Include <stdlib.h>.
51942
51943 2009-01-25  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/glthread/threadlib.c (dummy): New declaration.
51946
51947 2009-01-25  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51950         multibyte characters also for the GB18030 encoding. Don't crash when
51951         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51952
51953 2009-01-25  Bruno Haible  <bruno@clisp.org>
51954
51955         Avoid redefining 'struct random_data' on OSF/1 5.1.
51956         * lib/stdlib.in.h: Include <random.h> if it exists.
51957         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51958         HAVE_RANDOM_H. Include <random.h> when testing whether
51959         'struct random_data' exists.
51960         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51961
51962 2009-01-25  Bruno Haible  <bruno@clisp.org>
51963
51964         Don't install charset.alias on MacOS X >= 10.3.
51965         * lib/localcharset.c (DARWIN7): New macro.
51966         (get_charset_aliases): Hardcode the result for Darwin7.
51967         * modules/localcharset (install-exec-local): Don't install
51968         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51969
51970 2009-01-25  Bruno Haible  <bruno@clisp.org>
51971
51972         Don't install charset.alias on mingw and Cygwin.
51973         * modules/localcharset (install-exec-local): Don't install
51974         charset.alias on mingw and Cygwin, if the file does not yet exist.
51975         The result for these platforms is hardcoded in localcharset.c.
51976
51977 2009-01-25  Bruno Haible  <bruno@clisp.org>
51978
51979         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51980         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51981         before requiring AC_USE_SYSTEM_EXTENSIONS.
51982
51983 2009-01-25  Jim Meyering  <meyering@redhat.com>
51984
51985         c-strtod: avoid warnings
51986         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51987         "assignment discards qualifiers from pointer target type" warnings.
51988
51989 2009-01-24  Bruno Haible  <bruno@clisp.org>
51990
51991         Add support for non-UTF-8 locales on MacOS X.
51992         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51993         canonical encodings. For Darwin 7 and newer, don't map traditional
51994         encodings to UTF-8.
51995         Reported by Vincent Lefevre <vincent@vinc17.org>
51996         at <http://savannah.gnu.org/bugs/?25235>.
51997
51998 2009-01-24  Bruno Haible  <bruno@clisp.org>
51999
52000         * doc/gnulib.texi (Obsolete modules): New section.
52001         Reported by Mike Frysinger <vapier@gentoo.org>.
52002
52003 2009-01-24  Bruno Haible  <bruno@clisp.org>
52004
52005         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52006         (%.dvi): New rule.
52007
52008 2009-01-24  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52011         Reported by Eric Blake.
52012
52013 2009-01-24  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52016         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52017         Reported by Gary V. Vaughan <gary@gnu.org>.
52018
52019 2009-01-24  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52022
52023 2009-01-23  Bruno Haible  <bruno@clisp.org>
52024
52025         Make c-strtod, c-strtold usable in libraries.
52026         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52027         (C_STRTOD): Call strdup instead of xstrdup.
52028         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52029         * modules/c-strtold (Depends-on): Likewise.
52030         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52031         * NEWS: Mention the change.
52032         Reported by Michael Gold <mgold@ncf.ca>.
52033
52034 2009-01-23  Jim Meyering  <meyering@redhat.com>
52035
52036         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52037         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52038         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52039
52040 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52041
52042         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52043         GNU CoreUtils.
52044         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52045         * modules/version-etc (Description): Update.
52046
52047 2009-01-22  Bruno Haible  <bruno@clisp.org>
52048
52049         Cache the C locale object.
52050         * lib/c-strtod.c (c_locale_cache): New variable.
52051         (c_locale): New function.
52052         (C_STRTOD): Use it, and don't call freelocale.
52053         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52054         Suggested by Paolo Bonzini.
52055
52056 2009-01-21  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52059         conditions other than overflow.
52060
52061 2009-01-21  Bruno Haible  <bruno@clisp.org>
52062
52063         * lib/c-strtod.c: Include errno.h.
52064         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52065         value from STRTOD_L and STRTOD.
52066
52067 2009-01-21  Bruno Haible  <bruno@clisp.org>
52068         and Jim Meyering  <meyering@redhat.com>
52069
52070         nanosleep: skip configure test (fail it) for apple universal builds
52071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52072         universal builds, assume that nanosleep does not work.
52073         * modules/nanosleep (Depends-on): Add multiarch.
52074
52075         mktime: skip configure test (fail it) for apple universal builds
52076         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52077         universal builds, assume that mktime does not work.
52078         * modules/mktime (Depends-on): Add multiarch.
52079
52080 2009-01-21  Eric Blake  <ebb9@byu.net>
52081
52082         multiarch: avoid expand-before-require warning
52083         * modules/multiarch (configure.ac): Require, rather than expand,
52084         gl_MULTIARCH.
52085         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52086         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52087         enforce that all clients require it.  Partial reversion of
52088         2008-12-29 patch.
52089
52090         error: avoid expand-before-require warning
52091         * modules/errno (configure.ac): Require, rather than expand,
52092         gl_HEADER_ERRNO_H.
52093         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52094         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52095         enforce that all clients require it.
52096
52097         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52098         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52099         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52100         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52101
52102 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52103
52104         Revert:
52105         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52106
52107         regex: do not depend on obsolete modules.
52108         * modules/regex: Remove memcmp and memmove.
52109
52110 2009-01-20  Bruno Haible  <bruno@clisp.org>
52111
52112         Make the 'link' module link on Windows NT 4.
52113         * lib/link.c (_WIN32_WINNT): Don't define.
52114         (CreateHardLinkFuncType): New type.
52115         (CreateHardLinkFunc, initialized): New variables.
52116         (initialize): New function.
52117         (link): Invoke CreateHardLink indirectly through the function pointer.
52118
52119 2009-01-20  Bruno Haible  <bruno@clisp.org>
52120
52121         Fix compilation failure on mingw.
52122         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52123
52124 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52125
52126         * doc/c-strtod.texi: Mention a couple of restrictions.
52127
52128 2009-01-20  Jim Meyering  <meyering@redhat.com>
52129
52130         gettimeofday: move more declarations out of functions
52131         * lib/gettimeofday.c: Move extern declarations of tzset and
52132         gmtime out of containing functions.  Prompted by Bruno Haible.
52133
52134 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52135
52136         regex: do not depend on obsolete modules.
52137         * modules/regex: Remove memcmp and memmove.
52138
52139 2009-01-19  Bruno Haible  <bruno@clisp.org>
52140
52141         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52142         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52143         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52144         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52145         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52146
52147 2009-01-19  Bruno Haible  <bruno@clisp.org>
52148
52149         * tests/test-link.c: Include <errno.h>.
52150         (main): Exit with code 77 when a hard link cannot be created due to
52151         the file system.
52152         * tests/test-link.sh: Skip test when a hard link cannot be created due
52153         to the file system.
52154         Suggested by Eric Blake.
52155
52156 2009-01-19  Martin Lambers  <marlam@marlam.de>
52157
52158         * modules/link-tests: New file.
52159         * tests/test-link.sh: New file.
52160         * tests/test-link.c: New file.
52161
52162 2009-01-19  Eric Blake  <ebb9@byu.net>
52163
52164         doc: mention another function added in cygwin 1.7.0
52165         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52166         Another new function in cygwin 1.7.
52167
52168 2009-01-19  Bruno Haible  <bruno@clisp.org>
52169
52170         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52171         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52172         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52173         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52174         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52175         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52177         * m4/md4.m4 (gl_MD4): Likewise.
52178         * m4/md5.m4 (gl_MD5): Likewise.
52179         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52180         * m4/sha1.m4 (gl_SHA1): Likewise.
52181         * m4/sha256.m4 (gl_SHA256): Likewise.
52182         * m4/sha512.m4 (gl_SHA512): Likewise.
52183
52184 2009-01-19  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/uniname/uniname-tests (Depends-on): Add progname.
52187         * tests/uniname/test-uninames.c: Include progname.h.
52188         (main): Call set_program_name.
52189
52190         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52191         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52192         (main): Call set_program_name.
52193
52194         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52195         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52196         (main): Call set_program_name.
52197
52198         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52199         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52200         (main): Call set_program_name.
52201
52202         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52203         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52204         (main): Call set_program_name.
52205
52206         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52207         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52208         (main): Call set_program_name.
52209
52210         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52211         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52212         (main): Call set_program_name.
52213
52214         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52215         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52216         (main): Call set_program_name.
52217
52218         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52219         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52220         (main): Call set_program_name.
52221
52222 2009-01-19  Eric Blake  <ebb9@byu.net>
52223
52224         test-unistd: test previous patch
52225         * tests/test-unistd.c: Test *_FILENO macros.
52226
52227         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52228         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52229         Guarantee a definition.
52230         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52231         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52232         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52233         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52234         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52235         Likewise.
52236         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52237         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52238         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52239         Likewise.
52240         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52241         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52242         (STDERR_FILENO): Likewise.
52243         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52244         (STDERR_FILENO): Likewise.
52245         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52246         (STDERR_FILENO): Likewise.
52247         Reported by Elbert Pol.
52248
52249 2009-01-19  Eric Blake  <ebb9@byu.net>
52250
52251         doc: mention more functions added in cygwin 1.7.0
52252         * doc/posix-functions/abort.texi (abort): Update wording related
52253         to cygwin.
52254         * doc/posix-functions/daylight.texi (daylight): Likewise.
52255         * doc/posix-functions/optarg.texi (optarg): Likewise.
52256         * doc/posix-functions/optarg.texi (opterr): Likewise.
52257         * doc/posix-functions/optarg.texi (optind): Likewise.
52258         * doc/posix-functions/optarg.texi (optopt): Likewise.
52259         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52260         worked in 1.5.x, and was withdrawn in 1.7.
52261         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52262         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52263         cygwin versions.
52264         * doc/posix-functions/perror.texi (perror): Likewise.
52265         * doc/posix-functions/printf.texi (printf): Likewise.
52266         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52267         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52268         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52269         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52270         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52271         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52272         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52273         Likewise.
52274         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52275         Likewise.
52276         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52277         this function.
52278         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52279         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52280         Likewise.
52281         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52282         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52283         * doc/posix-functions/confstr.texi (confstr): Likewise.
52284         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52285         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52286         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52287         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52288         * doc/posix-functions/fputws.texi (fputws): Likewise.
52289         * doc/posix-functions/fwide.texi (fwide): Likewise.
52290         * doc/posix-functions/getwc.texi (getwc): Likewise.
52291         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52292         * doc/posix-functions/putwc.texi (putwc): Likewise.
52293         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52294         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52295         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52296         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52297         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52298         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52299         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52300         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52301         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52302         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52303         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52304
52305 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52306
52307         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52308         * lib/ioctl.c: Include <sys/ioctl.h>.
52309
52310 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52311
52312         * modules/getdate-tests (Depends-on): Add progname.
52313         * tests/test-getdate.c: Use progname module, to avoid link errors
52314         on non-glibc systems.
52315
52316 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52317
52318         * modules/filenamecat-tests (Depends-on): Add progname.
52319         * modules/fstrcmp-tests (Depends-on): Likewise.
52320
52321         * tests/test-filenamecat.c: Use progname module, to avoid link
52322         errors on non-glibc systems.
52323         * tests/test-fstrcmp.c: Likewise.
52324
52325 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52326
52327         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52328         * lib/gettimeofday.c: Move extern declaration out of function.
52329
52330 2009-01-18  Bruno Haible  <bruno@clisp.org>
52331
52332         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52333         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52334         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52335
52336 2009-01-18  Bruno Haible  <bruno@clisp.org>
52337
52338         * lib/strftime.c (MEMPCPY): Remove unused macro.
52339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52340
52341 2009-01-18  Martin Lambers  <marlam@marlam.de>
52342
52343         New module 'link'.
52344         * lib/unistd.in.h (link): New declaration.
52345         * lib/link.c: New file.
52346         * m4/link.m4: New file.
52347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52348         HAVE_LINK.
52349         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52350         * modules/link: New file.
52351         * doc/posix-functions/link.texi: Mention the new module.
52352
52353 2009-01-18  Bruno Haible  <bruno@clisp.org>
52354
52355         * tests/test-avltree_list.c (main): Call set_program_name.
52356         * tests/test-avltree_oset.c (main): Likewise.
52357         * tests/test-obstack-printf.c: Include progname.h.
52358         (main): Call set_program_name.
52359         * tests/test-quotearg.c: Include progname.h.
52360         (main): Call set_program_name.
52361         * tests/test-xmemdup0.c: Include progname.h.
52362         (main): Call set_program_name.
52363
52364 2009-01-18  Bruno Haible  <bruno@clisp.org>
52365
52366         New module 'alphasort'.
52367         * lib/dirent.in.h (alphasort): New declaration.
52368         * lib/alphasort.c: New file, from glibc with modifications.
52369         * m4/alphasort.m4: New file.
52370         * modules/alphasort: New file.
52371         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52372         HAVE_ALPHASORT.
52373         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52374         HAVE_ALPHASORT.
52375         * doc/posix-functions/alphasort.texi: Mention the new module and the
52376         portability problems.
52377
52378 2009-01-18  Bruno Haible  <bruno@clisp.org>
52379
52380         New module 'scandir'.
52381         * lib/dirent.in.h (scandir): New declaration.
52382         * lib/scandir.c: New file, from glibc with modifications.
52383         * m4/scandir.m4: New file.
52384         * modules/scandir: New file.
52385         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52386         HAVE_SCANDIR.
52387         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52388         HAVE_SCANDIR.
52389         * doc/posix-functions/scandir.texi: Mention the new module and the
52390         portability problems.
52391
52392 2009-01-17  Bruno Haible  <bruno@clisp.org>
52393
52394         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52395         Update documentation.
52396         (func_remove_suffix): Escape all dots in the suffix. Update
52397         documentation.
52398         (func_filter_filelist): Update documentation.
52399         Reported by Ralf Wildenhues.
52400
52401 2009-01-17  Bruno Haible  <bruno@clisp.org>
52402
52403         * modules/dprintf-posix-tests: New file.
52404         * tests/test-dprintf-posix.sh: New file.
52405         * tests/test-dprintf-posix.c: New file.
52406
52407         New modules 'dprintf', 'dprintf-posix'.
52408         * lib/stdio.in.h (dprintf): New declaration.
52409         * lib/dprintf.c: New file.
52410         * m4/dprintf.m4: New file.
52411         * m4/dprintf-posix.m4: New file.
52412         * modules/dprintf: New file.
52413         * modules/dprintf-posix: New file.
52414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52415         HAVE_DPRINTF, REPLACE_DPRINTF.
52416         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52417         HAVE_DPRINTF, REPLACE_DPRINTF.
52418         * doc/posix-functions/dprintf.texi: Mention the new modules.
52419
52420 2009-01-17  Bruno Haible  <bruno@clisp.org>
52421
52422         * modules/vdprintf-posix-tests: New file.
52423         * tests/test-vdprintf-posix.sh: New file.
52424         * tests/test-vdprintf-posix.c: New file.
52425
52426         New modules 'vdprintf', 'vdprintf-posix'.
52427         * lib/stdio.in.h (vdprintf): New declaration.
52428         * lib/vdprintf.c: New file.
52429         * m4/vdprintf.m4: New file.
52430         * m4/vdprintf-posix.m4: New file.
52431         * modules/vdprintf: New file.
52432         * modules/vdprintf-posix: New file.
52433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52434         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52435         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52436         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52437         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52438
52439 2009-01-17  Bruno Haible  <bruno@clisp.org>
52440
52441         Fix replacement of fopen on mingw.
52442         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52443         mingw.
52444
52445 2009-01-17  Bruno Haible  <bruno@clisp.org>
52446
52447         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52448         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52449
52450 2009-01-17  Bruno Haible  <bruno@clisp.org>
52451
52452         Avoid test-fflush2.sh failure on mingw.
52453         * tests/test-fflush2.c: Include binary-io.h.
52454         (main): Put standard input into binary mode.
52455         * modules/fflush-tests (Depends-on): Add binary-io.
52456
52457 2009-01-17  Bruno Haible  <bruno@clisp.org>
52458
52459         * lib/wchar.in.h: In another particular situation, include only the
52460         system's <wchar.h> file.
52461         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52462         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52463         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52464
52465 2009-01-17  Bruno Haible  <bruno@clisp.org>
52466
52467         Support for stripping executables in --enable-relocatable.
52468         * build-aux/install-reloc: Expect one more argument, or an environment
52469         variable RELOC_STRIP_PROG. If set, strip the destination program and
52470         its wrapper.
52471         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52472         RELOC_STRIP_PROG.
52473         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52474         to set RELOCATABLE_STRIP.
52475         * NEWS: Mention the new Makefile requirement.
52476
52477 2009-01-17  Bruno Haible  <bruno@clisp.org>
52478
52479         * build-aux/install-reloc: Remove debugging information left over by
52480         C compiler on MacOS X.
52481
52482 2009-01-17  Bruno Haible  <bruno@clisp.org>
52483
52484         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52485         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52486         _NSGetExecutablePath.
52487
52488 2009-01-16  Jim Meyering  <meyering@redhat.com>
52489
52490         strerror: avoid warnings about discarding "const"
52491         * lib/strerror.c (rpl_strerror): Instead of returning a const
52492         string from each and every "case", use a variable, and add a single
52493         cast after the switch.
52494
52495 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52496
52497         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52498
52499 2009-01-16  Bruno Haible  <bruno@clisp.org>
52500
52501         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52502         array initializer syntax that also works in C++ mode.
52503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52504
52505 2009-01-16  Jim Meyering  <meyering@redhat.com>
52506
52507         poll: suppress a warning
52508         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52509         to ignore "...unsigned expression < 0 is always false" warnings.
52510
52511 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52512
52513         poll: remove declarations of unused variables
52514         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52515         sockbuf and optlen.
52516
52517 2009-01-15  Bruno Haible  <bruno@clisp.org>
52518
52519         Make fflush-after-ungetc POSIX compliant on BSD systems.
52520         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52521         (clear_ungetc_buffer): Implement also for other systems.
52522         (rpl_fflush): On glibc systems, invoke
52523         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52524         clear_ungetc_buffer after fetching the stream's position, not before.
52525
52526 2009-01-15  Bruno Haible  <bruno@clisp.org>
52527
52528         Make fflush-after-ungetc POSIX compliant on glibc systems.
52529         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52530         after ungetc.
52531         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52532         (rpl_fflush): On glibc systems, simply call the system's fflush
52533         function after clearing the ungetc buffer.
52534         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52535         Instead, lseek only to the end of file, then use the system's fseeko
52536         for the rest. On glibc systems, reset the EOF indicator bit.
52537
52538 2009-01-15  Jim Meyering  <meyering@redhat.com>
52539
52540         openmp.m4: revert quote-adding change, for portability to older autoconf
52541         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52542         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52543         Simon Josefsson noticed the problem when using autoconf-2.61.
52544
52545 2009-01-15  Bruno Haible  <bruno@clisp.org>
52546
52547         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52548         * tests/test-fflush2.c (ASSERT): Always fail.
52549         (main): Add two tests for fflush() after ungetc(), taking into account
52550         the Austin Group's clarification.
52551         Suggested by Eric Blake.
52552
52553 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52554
52555         mktime.m4: remove K&R-style function prototypes
52556         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52557         for the Sun C++ compiler.
52558
52559 2009-01-14  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52562         while including <wchar.h>.
52563         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52564         the system's <wchar.h> file.
52565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52566
52567 2009-01-14  Bruno Haible  <bruno@clisp.org>
52568
52569         * m4/csharp.m4: Don't mention gettext on the serial number line.
52570         * m4/csharpexec.m4: Likewise.
52571         * m4/eaccess.m4: Likewise.
52572         * m4/javaexec.m4: Likewise.
52573         * m4/sig_atomic_t.m4: Likewise.
52574         * m4/tmpdir.m4: Likewise.
52575         * m4/intldir.m4: Bump gettext version.
52576         * m4/lib-ld.m4: Likewise.
52577
52578 2009-01-14  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/progname.c (set_program_name): Add more comments.
52581         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52582
52583 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52584
52585         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52586         were sys/stat.h does not define it.
52587
52588 2009-01-14  Jim Meyering  <meyering@redhat.com>
52589
52590         many *.m4 files: improve m4 quoting
52591         99% of this change was performed by running the following commands:
52592         git ls-files | grep '\.m4$' | xargs perl -pi \
52593           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52594           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52595           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52596           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52597         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52598         The remainder were to add Copyright dates, increment serial numbers,
52599         undo some changes in comments, exclude m4/intl.m4, and add quotes
52600         around the "1" in ",1" where the unusual spacing prohibited the
52601         above regexps from doing the job.  For more details, see
52602         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52603         * m4/acl.m4: Modified.
52604         * m4/afs.m4: Likewise.
52605         * m4/alloca.m4: Likewise.
52606         * m4/argp.m4: Likewise.
52607         * m4/argz.m4: Likewise.
52608         * m4/atexit.m4: Likewise.
52609         * m4/bison-i18n.m4: Likewise.
52610         * m4/bison.m4: Likewise.
52611         * m4/byteswap.m4: Likewise.
52612         * m4/c-stack.m4: Likewise.
52613         * m4/c-strtod.m4: Likewise.
52614         * m4/calloc.m4: Likewise.
52615         * m4/canonicalize-lgpl.m4: Likewise.
52616         * m4/chown.m4: Likewise.
52617         * m4/clock_time.m4: Likewise.
52618         * m4/codeset.m4: Likewise.
52619         * m4/copy-file.m4: Likewise.
52620         * m4/csharp.m4: Likewise.
52621         * m4/csharpcomp.m4: Likewise.
52622         * m4/csharpexec.m4: Likewise.
52623         * m4/d-ino.m4: Likewise.
52624         * m4/d-type.m4: Likewise.
52625         * m4/dirfd.m4: Likewise.
52626         * m4/double-slash-root.m4: Likewise.
52627         * m4/eaccess.m4: Likewise.
52628         * m4/eealloc.m4: Likewise.
52629         * m4/environ.m4: Likewise.
52630         * m4/errno_h.m4: Likewise.
52631         * m4/euidaccess.m4: Likewise.
52632         * m4/execute.m4: Likewise.
52633         * m4/fatal-signal.m4: Likewise.
52634         * m4/fchdir.m4: Likewise.
52635         * m4/fcntl_h.m4: Likewise.
52636         * m4/fileblocks.m4: Likewise.
52637         * m4/filenamecat.m4: Likewise.
52638         * m4/findprog.m4: Likewise.
52639         * m4/flexmember.m4: Likewise.
52640         * m4/fnmatch.m4: Likewise.
52641         * m4/fopen.m4: Likewise.
52642         * m4/fpending.m4: Likewise.
52643         * m4/fprintf-posix.m4: Likewise.
52644         * m4/free.m4: Likewise.
52645         * m4/frexp.m4: Likewise.
52646         * m4/frexpl.m4: Likewise.
52647         * m4/fsusage.m4: Likewise.
52648         * m4/ftruncate.m4: Likewise.
52649         * m4/gc-camellia.m4: Likewise.
52650         * m4/gc-random.m4: Likewise.
52651         * m4/gc.m4: Likewise.
52652         * m4/getaddrinfo.m4: Likewise.
52653         * m4/getcwd-abort-bug.m4: Likewise.
52654         * m4/getcwd-path-max.m4: Likewise.
52655         * m4/getdate.m4: Likewise.
52656         * m4/getdomainname.m4: Likewise.
52657         * m4/getgroups.m4: Likewise.
52658         * m4/gethostname.m4: Likewise.
52659         * m4/gethrxtime.m4: Likewise.
52660         * m4/getline.m4: Likewise.
52661         * m4/getloadavg.m4: Likewise.
52662         * m4/getndelim2.m4: Likewise.
52663         * m4/getpass.m4: Likewise.
52664         * m4/gettext.m4: Likewise.
52665         * m4/gettime.m4: Likewise.
52666         * m4/gettimeofday.m4: Likewise.
52667         * m4/gnulib-common.m4: Likewise.
52668         * m4/group-member.m4: Likewise.
52669         * m4/host-os.m4: Likewise.
52670         * m4/iconv.m4: Likewise.
52671         * m4/iconv_open.m4: Likewise.
52672         * m4/inet_ntop.m4: Likewise.
52673         * m4/inet_pton.m4: Likewise.
52674         * m4/inline.m4: Likewise.
52675         * m4/intldir.m4: Likewise.
52676         * m4/intlmacosx.m4: Likewise.
52677         * m4/intmax.m4: Likewise.
52678         * m4/intmax_t.m4: Likewise.
52679         * m4/inttypes.m4: Likewise.
52680         * m4/inttypes_h.m4: Likewise.
52681         * m4/inttypes-pri.m4: Likewise.
52682         * m4/isapipe.m4: Likewise.
52683         * m4/isnand.m4: Likewise.
52684         * m4/isnanf.m4: Likewise.
52685         * m4/isnanl.m4: Likewise.
52686         * m4/javacomp.m4: Likewise.
52687         * m4/javaexec.m4: Likewise.
52688         * m4/jm-winsz1.m4: Likewise.
52689         * m4/jm-winsz2.m4: Likewise.
52690         * m4/lchown.m4: Likewise.
52691         * m4/lcmessage.m4: Likewise.
52692         * m4/ldexpl.m4: Likewise.
52693         * m4/lib-ld.m4: Likewise.
52694         * m4/lib-link.m4: Likewise.
52695         * m4/libsigsegv.m4: Likewise.
52696         * m4/link-follow.m4: Likewise.
52697         * m4/localcharset.m4: Likewise.
52698         * m4/locale-fr.m4: Likewise.
52699         * m4/locale-ja.m4: Likewise.
52700         * m4/locale-tr.m4: Likewise.
52701         * m4/locale-zh.m4: Likewise.
52702         * m4/lock.m4: Likewise.
52703         * m4/longlong.m4: Likewise.
52704         * m4/ls-mntd-fs.m4: Likewise.
52705         * m4/lstat.m4: Likewise.
52706         * m4/malloc.m4: Likewise.
52707         * m4/mathl.m4: Likewise.
52708         * m4/mbrtowc.m4: Likewise.
52709         * m4/mbstate_t.m4: Likewise.
52710         * m4/mbswidth.m4: Likewise.
52711         * m4/memchr.m4: Likewise.
52712         * m4/memcmp.m4: Likewise.
52713         * m4/memcpy.m4: Likewise.
52714         * m4/memmem.m4: Likewise.
52715         * m4/memmove.m4: Likewise.
52716         * m4/mempcpy.m4: Likewise.
52717         * m4/memrchr.m4: Likewise.
52718         * m4/memset.m4: Likewise.
52719         * m4/minmax.m4: Likewise.
52720         * m4/mkdir-slash.m4: Likewise.
52721         * m4/mkdtemp.m4: Likewise.
52722         * m4/mktime.m4: Likewise.
52723         * m4/mmap-anon.m4: Likewise.
52724         * m4/mountlist.m4: Likewise.
52725         * m4/nanosleep.m4: Likewise.
52726         * m4/nls.m4: Likewise.
52727         * m4/nocrash.m4: Likewise.
52728         * m4/open.m4: Likewise.
52729         * m4/openat.m4: Likewise.
52730         * m4/openmp.m4: Likewise.
52731         * m4/pathmax.m4: Likewise.
52732         * m4/perl.m4: Likewise.
52733         * m4/physmem.m4: Likewise.
52734         * m4/pipe.m4: Likewise.
52735         * m4/po.m4: Likewise.
52736         * m4/poll.m4: Likewise.
52737         * m4/posixtm.m4: Likewise.
52738         * m4/posixver.m4: Likewise.
52739         * m4/printf-frexp.m4: Likewise.
52740         * m4/printf-frexpl.m4: Likewise.
52741         * m4/printf-posix.m4: Likewise.
52742         * m4/printf-posix-rpl.m4: Likewise.
52743         * m4/printf.m4: Likewise.
52744         * m4/progtest.m4: Likewise.
52745         * m4/putenv.m4: Likewise.
52746         * m4/readline.m4: Likewise.
52747         * m4/readlink.m4: Likewise.
52748         * m4/readutmp.m4: Likewise.
52749         * m4/realloc.m4: Likewise.
52750         * m4/regex.m4: Likewise.
52751         * m4/relocatable.m4: Likewise.
52752         * m4/relocatable-lib.m4: Likewise.
52753         * m4/rename-dest-slash.m4: Likewise.
52754         * m4/rename.m4: Likewise.
52755         * m4/rmdir-errno.m4: Likewise.
52756         * m4/rmdir.m4: Likewise.
52757         * m4/roundf.m4: Likewise.
52758         * m4/roundl.m4: Likewise.
52759         * m4/rpmatch.m4: Likewise.
52760         * m4/save-cwd.m4: Likewise.
52761         * m4/selinux-selinux-h.m4: Likewise.
52762         * m4/setenv.m4: Likewise.
52763         * m4/settime.m4: Likewise.
52764         * m4/sig2str.m4: Likewise.
52765         * m4/sig_atomic_t.m4: Likewise.
52766         * m4/signalblocking.m4: Likewise.
52767         * m4/signbit.m4: Likewise.
52768         * m4/sigpipe.m4: Likewise.
52769         * m4/sockets.m4: Likewise.
52770         * m4/sockpfaf.m4: Likewise.
52771         * m4/st_dm_mode.m4: Likewise.
52772         * m4/stat-time.m4: Likewise.
52773         * m4/stdbool.m4: Likewise.
52774         * m4/stdint.m4: Likewise.
52775         * m4/stdint_h.m4: Likewise.
52776         * m4/stpcpy.m4: Likewise.
52777         * m4/stpncpy.m4: Likewise.
52778         * m4/strcase.m4: Likewise.
52779         * m4/strchrnul.m4: Likewise.
52780         * m4/strcspn.m4: Likewise.
52781         * m4/strdup.m4: Likewise.
52782         * m4/strftime.m4: Likewise.
52783         * m4/strndup.m4: Likewise.
52784         * m4/strnlen.m4: Likewise.
52785         * m4/strpbrk.m4: Likewise.
52786         * m4/strptime.m4: Likewise.
52787         * m4/strsep.m4: Likewise.
52788         * m4/strtod.m4: Likewise.
52789         * m4/strtoimax.m4: Likewise.
52790         * m4/strtok_r.m4: Likewise.
52791         * m4/strtol.m4: Likewise.
52792         * m4/strtoll.m4: Likewise.
52793         * m4/strtoul.m4: Likewise.
52794         * m4/strtoull.m4: Likewise.
52795         * m4/strtoumax.m4: Likewise.
52796         * m4/strverscmp.m4: Likewise.
52797         * m4/threadlib.m4: Likewise.
52798         * m4/timegm.m4: Likewise.
52799         * m4/tm_gmtoff.m4: Likewise.
52800         * m4/tmpdir.m4: Likewise.
52801         * m4/tmpfile.m4: Likewise.
52802         * m4/tzset.m4: Likewise.
52803         * m4/uintmax_t.m4: Likewise.
52804         * m4/unlinkdir.m4: Likewise.
52805         * m4/unlocked-io.m4: Likewise.
52806         * m4/uptime.m4: Likewise.
52807         * m4/userspec.m4: Likewise.
52808         * m4/utimbuf.m4: Likewise.
52809         * m4/utime.m4: Likewise.
52810         * m4/utimes-null.m4: Likewise.
52811         * m4/utimes.m4: Likewise.
52812         * m4/vararrays.m4: Likewise.
52813         * m4/vasnprintf.m4: Likewise.
52814         * m4/vfprintf-posix.m4: Likewise.
52815         * m4/vprintf-posix.m4: Likewise.
52816         * m4/wait-process.m4: Likewise.
52817         * m4/wchar_t.m4: Likewise.
52818         * m4/wint_t.m4: Likewise.
52819         * m4/write-any-file.m4: Likewise.
52820         * m4/yield.m4: Likewise.
52821
52822 2009-01-13  Bruno Haible  <bruno@clisp.org>
52823
52824         Avoid test-copy-file.sh failures when ACL support insufficient.
52825         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52826         TESTS_ENVIRONMENT.
52827         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52828         Reported by Jim Meyering.
52829
52830 2009-01-13  Bruno Haible  <bruno@clisp.org>
52831
52832         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52833         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52834         * modules/unistdio/u8-printf-parse (Files): Likewise.
52835         * modules/unistdio/u32-printf-parse (Files): Likewise.
52836         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52837
52838 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52839
52840         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52841         and m4/inttypes_h.m4 too.
52842
52843 2009-01-12  Eric Blake  <ebb9@byu.net>
52844
52845         tests: IRIX 6.2 cc can't compile -0.0 into .data
52846         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52847         rather than at compile-time.
52848         * tests/test-floorl.c (minus_zero): Likewise.
52849         * tests/test-frexpl.c (minus_zero): Likewise.
52850         * tests/test-isnan.c (minus_zerol): Likewise.
52851         * tests/test-isnanl.h (minus_zero): Likewise.
52852         * tests/test-ldexpl.c (minus_zero): Likewise.
52853         * tests/test-roundl.c (minus_zero): Likewise.
52854         * tests/test-signbit.c (minus_zerol): Likewise.
52855         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52856         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52857         * tests/test-truncl.c (minus_zero): Likewise.
52858         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52859         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52860         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52861
52862 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52863
52864         regex: fix glibc bug 9697
52865         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52866         handling.
52867
52868 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52869
52870         regex: fix glibc bug 697
52871         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52872         being NULL also if there are no backreferences.
52873
52874 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52875
52876         regex: merge glibc changes
52877         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52878         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52879         re_string_skip_chars, re_string_reconstruct): Likewise.
52880         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52881
52882 2009-01-07  Jim Meyering  <meyering@redhat.com>
52883
52884         poll: filter through cppi
52885         * lib/poll.c: Indent cpp directives to reflect nesting.
52886
52887 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52888
52889         poll: don't return uninitialized
52890         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52891
52892 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52893
52894         avoid compile failure on AIX 6.1
52895         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52896         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52897
52898 2009-01-04  Jim Meyering  <meyering@redhat.com>
52899
52900         remove duplicate inclusion of <stdio.h>
52901         * tests/test-fprintf-posix.c: Likewise.
52902         * tests/test-printf-posix.c: Likewise.
52903         * tests/test-snprintf-posix.c: Likewise.
52904         * tests/test-sprintf-posix.c: Likewise.
52905         * tests/test-vasprintf-posix.c: Likewise.
52906         * tests/test-vfprintf-posix.c: Likewise.
52907         * tests/test-vprintf-posix.c: Likewise.
52908         * tests/test-vsnprintf-posix.c: Likewise.
52909         * tests/test-vsprintf-posix.c: Likewise.
52910
52911 2009-01-03  Jim Meyering  <meyering@redhat.com>
52912
52913         gnulib-tool: fix sed-based filtering
52914         * gnulib-tool (func_filter_filelist): Remove extra backslash
52915         in sed_fff_filter definition.
52916
52917 2009-01-02  Jim Meyering  <meyering@redhat.com>
52918
52919         strftime: avoid compilation failure on Solaris 2.6
52920         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52921         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52922         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52923         be available.  Reported by Tom G. Christensen.  Details in
52924         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52925
52926 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52927             Bruno Haible  <bruno@clisp.org>
52928
52929         Speed up gnulib-tool by doing more string processing through shell
52930         built-ins.
52931         * gnulib-tool (fast_func_append): New variable.
52932         (func_remove_prefix, func_remove_suffix): New functions.
52933         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52934         (func_filter_filelist): New function.
52935         (func_get_dependencies): Use func_remove_suffix instead of sed.
52936         (func_get_automake_snippet): Use func_filter_filelist instead of a
52937         subshell and sed invocation.
52938
52939 2009-01-01  Bruno Haible  <bruno@clisp.org>
52940
52941         Fix a security bug.
52942         * gnulib-tool (func_import, import, update): Don't allow the characters
52943         '"', '$', '`', '\' in macro arguments that become part of commands that
52944         are evaluated.
52945
52946 2009-01-01  Bruno Haible  <bruno@clisp.org>
52947
52948         * gnulib-tool (func_reset_sigpipe): Add more comments.
52949
52950 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52951
52952         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52953         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52954         already know the answer.
52955
52956 2009-01-01  Jim Meyering  <meyering@redhat.com>
52957
52958         * lib/version-etc.c (version_etc_va): Update copyright year.
52959
52960 2008-12-30  Bruno Haible  <bruno@clisp.org>
52961
52962         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52963         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52964         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52965
52966 2008-12-29  Eric Blake  <ebb9@byu.net>
52967
52968         multiarch: avoid autoconf AC_REQUIRE bug
52969         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52970         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52971         2.63 and older.
52972         Reported by Bruno Haible, and analyzed in
52973         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52974
52975 2008-12-29  Bruno Haible  <bruno@clisp.org>
52976
52977         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52978         files in subdirectories correctly.
52979         Reported by Ralf Wildenhues.
52980
52981 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52982
52983         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52984         rather than 'join FILE -', for Solaris join.
52985
52986 2008-12-29  Bruno Haible  <bruno@clisp.org>
52987
52988         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52989         quoting.
52990         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52991         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52992         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52993         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52994         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52995         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52996         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52997         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52998         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52999         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53000         * m4/nls.m4 (AM_NLS): Likewise.
53001         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53002         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53003         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53004         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53005         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53006         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53007         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53008         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53009         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53010         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53011         * m4/xsize.m4 (gl_XSIZE): Likewise.
53012         Suggested by Jim Meyering.
53013
53014 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53015
53016         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53017         * lib/parse-duration.c: use a switch instead of cascading if's.
53018
53019 2008-12-29  Eric Blake  <ebb9@byu.net>
53020
53021         wchar.h: supply WEOF on Irix 5.3
53022         * lib/wchar.in.h (wint_t): Also supply WEOF.
53023         * lib/wctype.in.h (wint_t): Likewise.
53024         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53025         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53026         Reported by Tom G. Christensen.
53027
53028 2008-12-26  Bruno Haible  <bruno@clisp.org>
53029
53030         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53031         i486, i586, i686.
53032
53033 2008-12-26  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53036
53037 2008-12-26  Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53040         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53041         not __STDC_CONSTANT_MACROS.
53042         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53043
53044 2008-12-25  Bruno Haible  <bruno@clisp.org>
53045
53046         Add support for universal builds to vasnprintf.
53047         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53048         universal builds, guess no.
53049         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53050         * modules/vasprintf-posix (Depends-on): Likewise.
53051         * modules/fprintf-posix (Depends-on): Likewise.
53052         * modules/vfprintf-posix (Depends-on): Likewise.
53053         * modules/snprintf-posix (Depends-on): Likewise.
53054         * modules/vsnprintf-posix (Depends-on): Likewise.
53055         * modules/sprintf-posix (Depends-on): Likewise.
53056         * modules/vsprintf-posix (Depends-on): Likewise.
53057         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53058         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53059         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53060         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53062         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53063         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53064
53065         Add support for universal builds to <inttypes.h>.
53066         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53067         _SCNu64_PREFIX): In Apple
53068         universal builds, define directly, using _LP64.
53069         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53070         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53071         * modules/inttypes (Depends-on): Add multiarch.
53072         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53073
53074         Add support for universal builds to <stdint.h>.
53075         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53076         universal builds, define directly, using _LP64.
53077         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53078         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53079         and size_t.
53080         * modules/stdint (Depends-on): Add multiarch.
53081         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53082
53083         New module 'multiarch'.
53084         * modules/multiarch: New file.
53085         * m4/multiarch.m4: New file.
53086
53087 2008-12-25  Bruno Haible  <bruno@clisp.org>
53088
53089         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53090
53091 2008-12-25  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/btowc (License): Relicense under LGPLv2+.
53094         * modules/mbsinit (License): Likewise.
53095         * modules/mbrtowc (License): Likewise.
53096         * modules/wcrtomb (License): Likewise.
53097         * modules/streq (License): Likewise.
53098         Reported by David Lutterkort <lutter@redhat.com>.
53099
53100 2008-12-23  Bruno Haible  <bruno@clisp.org>
53101
53102         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53103
53104 2008-12-23  Bruno Haible  <bruno@clisp.org>
53105
53106         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53108         GETADDRINFO_LIB, not in LIBS.
53109         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53110         * modules/canon-host (Link): Likewise.
53111         * NEWS: Mention the change.
53112         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53113         GETADDRINFO_LIB.
53114
53115 2008-12-22  Bruno Haible  <bruno@clisp.org>
53116
53117         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53118         * doc/posix-functions/iswalpha_l.texi: Likewise.
53119         * doc/posix-functions/iswblank_l.texi: Likewise.
53120         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53121         * doc/posix-functions/iswctype_l.texi: Likewise.
53122         * doc/posix-functions/iswdigit_l.texi: Likewise.
53123         * doc/posix-functions/iswgraph_l.texi: Likewise.
53124         * doc/posix-functions/iswlower_l.texi: Likewise.
53125         * doc/posix-functions/iswprint_l.texi: Likewise.
53126         * doc/posix-functions/iswpunct_l.texi: Likewise.
53127         * doc/posix-functions/iswspace_l.texi: Likewise.
53128         * doc/posix-functions/iswupper_l.texi: Likewise.
53129         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53130         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53131         * doc/posix-functions/open_wmemstream.texi: Likewise.
53132         * doc/posix-functions/swscanf.texi: Likewise.
53133         * doc/posix-functions/towctrans_l.texi: Likewise.
53134         * doc/posix-functions/towlower.texi: Likewise.
53135         * doc/posix-functions/towlower_l.texi: Likewise.
53136         * doc/posix-functions/towupper.texi: Likewise.
53137         * doc/posix-functions/towupper_l.texi: Likewise.
53138         * doc/posix-functions/vfwprintf.texi: Likewise.
53139         * doc/posix-functions/vfwscanf.texi: Likewise.
53140         * doc/posix-functions/vswscanf.texi: Likewise.
53141         * doc/posix-functions/vwprintf.texi: Likewise.
53142         * doc/posix-functions/vwscanf.texi: Likewise.
53143         * doc/posix-functions/wcpcpy.texi: Likewise.
53144         * doc/posix-functions/wcpncpy.texi: Likewise.
53145         * doc/posix-functions/wcscasecmp.texi: Likewise.
53146         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53147         * doc/posix-functions/wcscoll_l.texi: Likewise.
53148         * doc/posix-functions/wcsdup.texi: Likewise.
53149         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53150         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53151         * doc/posix-functions/wcsnlen.texi: Likewise.
53152         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53153         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53154         * doc/posix-functions/wctrans_l.texi: Likewise.
53155         * doc/posix-functions/wctype_l.texi: Likewise.
53156         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53157         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53158         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53159         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53160         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53161         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53162         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53163         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53164         * doc/glibc-functions/wcschrnul.texi: Likewise.
53165         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53166         * doc/glibc-functions/wcstod_l.texi: Likewise.
53167         * doc/glibc-functions/wcstof_l.texi: Likewise.
53168         * doc/glibc-functions/wcstol_l.texi: Likewise.
53169         * doc/glibc-functions/wcstold_l.texi: Likewise.
53170         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53171         * doc/glibc-functions/wcstoq.texi: Likewise.
53172         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53173         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53174         * doc/glibc-functions/wcstouq.texi: Likewise.
53175         * doc/glibc-functions/wmempcpy.texi: Likewise.
53176
53177 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53178             Eric Blake  <ebb9@byu.net>
53179             Paolo Bonzini  <bonzini@gnu.org>
53180             Bruno Haible  <bruno@clisp.org>
53181
53182         Make c-stack work on Haiku.
53183         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53184         (c_stack_action): Use SA_ONSTACK flag.
53185
53186 2008-12-22  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53189
53190 2008-12-22  Bruno Haible  <bruno@clisp.org>
53191
53192         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53193         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53194         being overridden.
53195         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53196         New macros.
53197         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53198         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53199         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53200         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53201
53202 2008-12-22  Bruno Haible  <bruno@clisp.org>
53203
53204         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53205         from test code.
53206
53207 2008-12-22  Eric Blake  <ebb9@byu.net>
53208
53209         Avoid gcc warnings on cygwin.
53210         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53211         Avoid unused variable.
53212         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53213         Likewise.
53214
53215 2008-12-22  Bruno Haible  <bruno@clisp.org>
53216
53217         Remove HAVE_MBRTOWC conditionals.
53218         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53219         (mbscasecmp): Assume mbrtowc function.
53220         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53221         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53222         * lib/mbschr.c: Include mbuiter.h unconditionally.
53223         (mbschr): Assume mbrtowc function.
53224         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53225         (mbscspn): Assume mbrtowc function.
53226         * lib/mbslen.c: Include mbuiter.h unconditionally.
53227         (mbslen): Assume mbrtowc function.
53228         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53229         (mbsncasecmp): Assume mbrtowc function.
53230         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53231         (mbsnlen): Assume mbrtowc function.
53232         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53233         (mbspbrk): Assume mbrtowc function.
53234         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53235         (mbspcasecmp): Assume mbrtowc function.
53236         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53237         (mbsrchr): Assume mbrtowc function.
53238         * lib/mbssep.c: Include mbuiter.h unconditionally.
53239         (mbssep): Assume mbrtowc function.
53240         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53241         (mbsspn): Assume mbrtowc function.
53242         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53243         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53244         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53245         (mbstok_r): Assume mbrtowc function.
53246         * lib/propername.c: Include mbuiter.h unconditionally.
53247         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53248         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53249         (trim2): Assume mbrtowc function.
53250         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53251         (mbsnwidth): Assume mbrtowc function.
53252         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53253         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53254         fallback definitions.
53255         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53256
53257 2008-12-22  Bruno Haible  <bruno@clisp.org>
53258
53259         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53260
53261 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53262
53263         * modules/regex: Request emulations for the mb*/wc* functions we need.
53264         * m4/regex.m4: Don't look for those functions here.
53265         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53266
53267 2008-12-22  Bruno Haible  <bruno@clisp.org>
53268
53269         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53270
53271 2008-12-21  Bruno Haible  <bruno@clisp.org>
53272
53273         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53274         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53275         (Include): Remove conditionalization.
53276         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53277         (Include): Remove conditionalization.
53278         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53279         (Include): Remove conditionalization.
53280         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53281         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53282         * NEWS: Mention the change.
53283         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53284         via Sergey Poznyakoff <gray@gnu.org.ua>.
53285
53286 2008-12-21  Bruno Haible  <bruno@clisp.org>
53287
53288         * MODULES.html.sh (Extended multibyte and wide character utilities
53289         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53290         wcrtomb, wcsrtombs.
53291         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53292         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53293         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53294         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53295
53296 2008-12-21  Bruno Haible  <bruno@clisp.org>
53297
53298         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53299
53300 2008-12-21  Bruno Haible  <bruno@clisp.org>
53301
53302         * modules/wcsnrtombs-tests: New file.
53303         * tests/test-wcsnrtombs1.sh: New file.
53304         * tests/test-wcsnrtombs2.sh: New file.
53305         * tests/test-wcsnrtombs3.sh: New file.
53306         * tests/test-wcsnrtombs4.sh: New file.
53307         * tests/test-wcsnrtombs.c: New file.
53308
53309         New module 'wcsnrtombs'.
53310         * lib/wchar.in.h (wcsnrtombs): New declaration.
53311         * lib/wcsnrtombs.c: New file.
53312         * lib/wcsrtombs-state.c: New file.
53313         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53314         (internal_state): Remove variable.
53315         * m4/wcsnrtombs.m4: New file.
53316         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53317         compilation units.
53318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53319         HAVE_WCSNRTOMBS.
53320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53321         HAVE_WCSNRTOMBS.
53322         * modules/wcsnrtombs: New file.
53323         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53324         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53325
53326 2008-12-21  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/wcsrtombs-tests: New file.
53329         * tests/test-wcsrtombs1.sh: New file.
53330         * tests/test-wcsrtombs2.sh: New file.
53331         * tests/test-wcsrtombs3.sh: New file.
53332         * tests/test-wcsrtombs4.sh: New file.
53333         * tests/test-wcsrtombs.c: New file.
53334
53335         New module 'wcsrtombs'.
53336         * lib/wchar.in.h (wcsrtombs): New declaration.
53337         * lib/wcsrtombs.c: New file.
53338         * m4/wcsrtombs.m4: New file.
53339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53340         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53342         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53343         * modules/wcsrtombs: New file.
53344         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53345         bugs.
53346
53347 2008-12-21  Bruno Haible  <bruno@clisp.org>
53348
53349         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53350         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53352         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53353         if not correct.
53354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53355         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53356         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53357         m4/locale-zh.m4, m4/codeset.m4.
53358         * doc/posix-functions/wcrtomb.texi: Document the bug.
53359
53360 2008-12-21  Bruno Haible  <bruno@clisp.org>
53361
53362         Work around a btowc() bug on IRIX 6.5.
53363         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53364         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53365         REPLACE_WTOBC if not.
53366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53367         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53368         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53369
53370 2008-12-21  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/wcrtomb-tests: New file.
53373         * tests/test-wcrtomb.sh: New file.
53374         * tests/test-wcrtomb.c: New file.
53375
53376         New module 'wcrtomb'.
53377         * lib/wchar.in.h (wcrtomb): New declaration.
53378         * lib/wcrtomb.c: New file.
53379         * m4/wcrtomb.m4: New file.
53380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53381         HAVE_WCRTOMB.
53382         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53383         HAVE_WCRTOMB.
53384         * modules/wcrtomb: New file.
53385         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53386
53387 2008-12-21  Bruno Haible  <bruno@clisp.org>
53388
53389         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53390         * modules/mbsrtowcs (Files): Likewise.
53391         * modules/wctob (Files): Likewise.
53392         * modules/c-strcase-tests (Files): Likewise.
53393         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53394         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53395         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53396         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53397         * modules/vasnprintf-posix-tests (Files): Likewise.
53398
53399 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53400
53401         gitlog-to-changelog: pass all command-line arguments to git-log
53402         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53403         it is sometimes convenient to filter the commits in various ways.
53404         gitlog-to-changelog only allows --since to specify a start date,
53405         but git-log itself supports many other filtering mechanisms.
53406         At the moment, I want to filter by branch name.  Rather than
53407         adding a --branch option to gitlog-to-changelog, it seems more
53408         flexible to simply pass all options directly to git-log and let
53409         git do the work.  Notice that this effectively makes --since a
53410         redundant option for gitlog-to-changelog, but removing it would
53411         require current usage to change since calls would then require
53412         an additional '--'.
53413
53414 2008-12-21  Bruno Haible  <bruno@clisp.org>
53415
53416         * modules/mbsnrtowcs-tests: New file.
53417         * tests/test-mbsnrtowcs1.sh: New file.
53418         * tests/test-mbsnrtowcs2.sh: New file.
53419         * tests/test-mbsnrtowcs3.sh: New file.
53420         * tests/test-mbsnrtowcs4.sh: New file.
53421         * tests/test-mbsnrtowcs.c: New file.
53422
53423         New module 'mbsnrtowcs'.
53424         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53425         * lib/mbsnrtowcs.c: New file.
53426         * lib/mbsrtowcs-state.c: New file.
53427         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53428         (internal_state): Remove variable.
53429         * m4/mbsnrtowcs.m4: New file.
53430         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53431         compilation units.
53432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53433         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53434         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53435         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53436         * modules/mbsnrtowcs: New file.
53437         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53438         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53439         portability problem.
53440
53441 2008-12-21  Bruno Haible  <bruno@clisp.org>
53442
53443         Work around mbsrtowcs bug.
53444         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53445         (gl_FUNC_MBSRTOWCS): Invoke it.
53446         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53447         m4/locale-zh.m4.
53448         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53449
53450 2008-12-21  Bruno Haible  <bruno@clisp.org>
53451
53452         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53453
53454 2008-12-21  Bruno Haible  <bruno@clisp.org>
53455
53456         Update doc for AIX.
53457         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53458         16-bit wchar_t type.
53459         * doc/posix-functions/btowc.texi: Likewise.
53460         * doc/posix-functions/fgetwc.texi: Likewise.
53461         * doc/posix-functions/fgetws.texi: Likewise.
53462         * doc/posix-functions/fputwc.texi: Likewise.
53463         * doc/posix-functions/fputws.texi: Likewise.
53464         * doc/posix-functions/fwide.texi: Likewise.
53465         * doc/posix-functions/fwprintf.texi: Likewise.
53466         * doc/posix-functions/fwscanf.texi: Likewise.
53467         * doc/posix-functions/getwchar.texi: Likewise.
53468         * doc/posix-functions/getwc.texi: Likewise.
53469         * doc/posix-functions/iswalnum.texi: Likewise.
53470         * doc/posix-functions/iswalpha.texi: Likewise.
53471         * doc/posix-functions/iswblank.texi: Likewise.
53472         * doc/posix-functions/iswcntrl.texi: Likewise.
53473         * doc/posix-functions/iswctype.texi: Likewise.
53474         * doc/posix-functions/iswdigit.texi: Likewise.
53475         * doc/posix-functions/iswgraph.texi: Likewise.
53476         * doc/posix-functions/iswlower.texi: Likewise.
53477         * doc/posix-functions/iswprint.texi: Likewise.
53478         * doc/posix-functions/iswpunct.texi: Likewise.
53479         * doc/posix-functions/iswspace.texi: Likewise.
53480         * doc/posix-functions/iswupper.texi: Likewise.
53481         * doc/posix-functions/iswxdigit.texi: Likewise.
53482         * doc/posix-functions/mbrtowc.texi: Likewise.
53483         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53484         * doc/posix-functions/mbstowcs.texi: Likewise.
53485         * doc/posix-functions/mbtowc.texi: Likewise.
53486         * doc/posix-functions/putwchar.texi: Likewise.
53487         * doc/posix-functions/putwc.texi: Likewise.
53488         * doc/posix-functions/swprintf.texi: Likewise.
53489         * doc/posix-functions/tolower.texi: Likewise.
53490         * doc/posix-functions/toupper.texi: Likewise.
53491         * doc/posix-functions/towctrans.texi: Likewise.
53492         * doc/posix-functions/ungetwc.texi: Likewise.
53493         * doc/posix-functions/vswprintf.texi: Likewise.
53494         * doc/posix-functions/wcrtomb.texi: Likewise.
53495         * doc/posix-functions/wcscat.texi: Likewise.
53496         * doc/posix-functions/wcschr.texi: Likewise.
53497         * doc/posix-functions/wcscmp.texi: Likewise.
53498         * doc/posix-functions/wcscoll.texi: Likewise.
53499         * doc/posix-functions/wcscpy.texi: Likewise.
53500         * doc/posix-functions/wcscspn.texi: Likewise.
53501         * doc/posix-functions/wcsftime.texi: Likewise.
53502         * doc/posix-functions/wcslen.texi: Likewise.
53503         * doc/posix-functions/wcsncat.texi: Likewise.
53504         * doc/posix-functions/wcsncmp.texi: Likewise.
53505         * doc/posix-functions/wcsncpy.texi: Likewise.
53506         * doc/posix-functions/wcspbrk.texi: Likewise.
53507         * doc/posix-functions/wcsrchr.texi: Likewise.
53508         * doc/posix-functions/wcsrtombs.texi: Likewise.
53509         * doc/posix-functions/wcsspn.texi: Likewise.
53510         * doc/posix-functions/wcsstr.texi: Likewise.
53511         * doc/posix-functions/wcstod.texi: Likewise.
53512         * doc/posix-functions/wcstof.texi: Likewise.
53513         * doc/posix-functions/wcstoimax.texi: Likewise.
53514         * doc/posix-functions/wcstok.texi: Likewise.
53515         * doc/posix-functions/wcstold.texi: Likewise.
53516         * doc/posix-functions/wcstoll.texi: Likewise.
53517         * doc/posix-functions/wcstol.texi: Likewise.
53518         * doc/posix-functions/wcstombs.texi: Likewise.
53519         * doc/posix-functions/wcstoull.texi: Likewise.
53520         * doc/posix-functions/wcstoul.texi: Likewise.
53521         * doc/posix-functions/wcstoumax.texi: Likewise.
53522         * doc/posix-functions/wcswidth.texi: Likewise.
53523         * doc/posix-functions/wcsxfrm.texi: Likewise.
53524         * doc/posix-functions/wctob.texi: Likewise.
53525         * doc/posix-functions/wctomb.texi: Likewise.
53526         * doc/posix-functions/wctrans.texi: Likewise.
53527         * doc/posix-functions/wctype.texi: Likewise.
53528         * doc/posix-functions/wcwidth.texi: Likewise.
53529         * doc/posix-functions/wmemchr.texi: Likewise.
53530         * doc/posix-functions/wmemcmp.texi: Likewise.
53531         * doc/posix-functions/wmemcpy.texi: Likewise.
53532         * doc/posix-functions/wmemmove.texi: Likewise.
53533         * doc/posix-functions/wmemset.texi: Likewise.
53534         * doc/posix-functions/wprintf.texi: Likewise.
53535         * doc/posix-functions/wscanf.texi: Likewise.
53536
53537 2008-12-21  Bruno Haible  <bruno@clisp.org>
53538
53539         Update doc for HP-UX 11.11.
53540         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53541         in HP-UX version 11.00, not in all versions of HP-UX 11.
53542         * doc/posix-functions/fwide.texi: Likewise.
53543         * doc/posix-functions/fwprintf.texi: Likewise.
53544         * doc/posix-functions/fwscanf.texi: Likewise.
53545         * doc/posix-functions/inet_ntop.texi: Likewise.
53546         * doc/posix-functions/inet_pton.texi: Likewise.
53547         * doc/posix-functions/mbrlen.texi: Likewise.
53548         * doc/posix-functions/mbrtowc.texi: Likewise.
53549         * doc/posix-functions/mbsinit.texi: Likewise.
53550         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53551         * doc/posix-functions/swprintf.texi: Likewise.
53552         * doc/posix-functions/swscanf.texi: Likewise.
53553         * doc/posix-functions/towctrans.texi: Likewise.
53554         * doc/posix-functions/vfwprintf.texi: Likewise.
53555         * doc/posix-functions/vswprintf.texi: Likewise.
53556         * doc/posix-functions/vwprintf.texi: Likewise.
53557         * doc/posix-functions/wcrtomb.texi: Likewise.
53558         * doc/posix-functions/wcsrtombs.texi: Likewise.
53559         * doc/posix-functions/wcsstr.texi: Likewise.
53560         * doc/posix-functions/wctob.texi: Likewise.
53561         * doc/posix-functions/wctrans.texi: Likewise.
53562         * doc/posix-functions/wmemchr.texi: Likewise.
53563         * doc/posix-functions/wmemcmp.texi: Likewise.
53564         * doc/posix-functions/wmemcpy.texi: Likewise.
53565         * doc/posix-functions/wmemmove.texi: Likewise.
53566         * doc/posix-functions/wmemset.texi: Likewise.
53567         * doc/posix-functions/wprintf.texi: Likewise.
53568         * doc/posix-functions/wscanf.texi: Likewise.
53569
53570 2008-12-21  Bruno Haible  <bruno@clisp.org>
53571
53572         Work around a portability problem.
53573         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53574         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53575
53576 2008-12-20  Bruno Haible  <bruno@clisp.org>
53577
53578         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53579         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53580         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53582         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53583
53584         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53585         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53586         set.
53587         (GNULIB_defined_mbstate_t): New macro.
53588         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53589         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53590         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53591         reuses the system's mbrtowc function but works around the bugs.
53592         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53593         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53594         macros.
53595         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53596         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53597         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53598         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53599         REPLACE_MBSINIT if mbsinit needs to be overridden.
53600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53601         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53602         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53603         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53604         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53605         m4/locale-zh.m4.
53606         (Depends): Add mbsinit.
53607         * modules/mbsinit (Depends): Add mbrtowc.
53608         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53609
53610 2008-12-20  Bruno Haible  <bruno@clisp.org>
53611
53612         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53613         so that there are no conversion errors on AIX.
53614         * tests/test-mbsrtowcs.c (main): LIkewise.
53615
53616 2008-12-20  Bruno Haible  <bruno@clisp.org>
53617
53618         Work around wctob bug on Solaris <= 9.
53619         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53620         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53622         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53623         * modules/wctob (Files): Add m4/locale-fr.m4.
53624         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53625
53626 2008-12-20  Bruno Haible  <bruno@clisp.org>
53627
53628         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53629         /dev/null.
53630         * tests/test-select-in.sh: Likewise.
53631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53632
53633 2008-12-20  Bruno Haible  <bruno@clisp.org>
53634
53635         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53636         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53637         Cygwin 1.5.x.
53638
53639 2008-12-20  Bruno Haible  <bruno@clisp.org>
53640
53641         Ensure mbstate_t is defined on HP-UX 11.11.
53642         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53643         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53644         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53645         AC_USE_SYSTEM_EXTENSIONS.
53646         * modules/fnmatch (Depends-on): Add extensions.
53647         * modules/mbrlen (Depends-on): Likewise.
53648         * modules/mbrtowc (Depends-on): Likewise.
53649         * modules/mbsinit (Depends-on): Likewise.
53650         * modules/mbsrtowcs (Depends-on): Likewise.
53651         * modules/mbswidth (Depends-on): Likewise.
53652         * modules/quotearg (Depends-on): Likewise.
53653         * modules/strftime (Depends-on): Likewise.
53654
53655 2008-12-20  Bruno Haible  <bruno@clisp.org>
53656
53657         Ensure wctob is declared on IRIX 6.5.
53658         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53659         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53660         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53662         of HAVE_WCTOB.
53663         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53664         HAVE_WCTOB.
53665         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53666
53667 2008-12-19  Bruno Haible  <bruno@clisp.org>
53668
53669         * modules/mbsrtowcs-tests: New file.
53670         * tests/test-mbsrtowcs1.sh: New file.
53671         * tests/test-mbsrtowcs2.sh: New file.
53672         * tests/test-mbsrtowcs3.sh: New file.
53673         * tests/test-mbsrtowcs4.sh: New file.
53674         * tests/test-mbsrtowcs.c: New file.
53675
53676         New module 'mbsrtowcs'.
53677         * lib/wchar.in.h (mbsrtowcs): New declaration.
53678         * lib/mbsrtowcs.c: New file.
53679         * m4/mbsrtowcs.m4: New file.
53680         * modules/mbsrtowcs: New file.
53681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53682         HAVE_MBSRTOWCS.
53683         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53684         HAVE_MBSRTOWCS.
53685         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53686
53687 2008-12-19  Bruno Haible  <bruno@clisp.org>
53688
53689         New module 'mbrlen'.
53690         * lib/wchar.in.h (mbrlen): New declaration.
53691         * lib/mbrlen.c: New file.
53692         * m4/mbrlen.m4: New file.
53693         * modules/mbrlen: New file.
53694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53695         HAVE_MBRLEN.
53696         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53697         HAVE_MBRLEN.
53698         * doc/posix-functions/mbrlen.texi: Document the new module.
53699
53700 2008-12-19  Bruno Haible  <bruno@clisp.org>
53701
53702         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53703         * modules/mbrtowc (Depends-on): Add verify.
53704         Suggested by Paul Eggert.
53705
53706 2008-12-18  Bruno Haible  <bruno@clisp.org>
53707
53708         * modules/mbsinit-tests: New file.
53709         * tests/test-mbsinit.sh: New file.
53710         * tests/test-mbsinit.c: New file.
53711
53712 2008-12-18  Bruno Haible  <bruno@clisp.org>
53713
53714         * modules/mbrtowc-tests: New file.
53715         * tests/test-mbrtowc1.sh: New file.
53716         * tests/test-mbrtowc2.sh: New file.
53717         * tests/test-mbrtowc3.sh: New file.
53718         * tests/test-mbrtowc4.sh: New file.
53719         * tests/test-mbrtowc.c: New file.
53720
53721         New module 'mbrtowc'.
53722         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53723         mbsinit and mbrtowc.
53724         (mbrtowc): New declaration.
53725         * lib/mbrtowc.c: New file.
53726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53727         * modules/mbrtowc: New file.
53728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53729         HAVE_MBRTOWC.
53730         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53731         HAVE_MBRTOWC.
53732         * doc/posix-functions/mbrtowc.texi: Document the new module.
53733
53734 2008-12-18  Bruno Haible  <bruno@clisp.org>
53735
53736         New module 'wctob'.
53737         * lib/wchar.in.h (wctob): New declaration.
53738         * lib/wctob.c: New file.
53739         * m4/wctob.m4: New file.
53740         * modules/wctob: New file.
53741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53742         HAVE_WCTOB.
53743         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53744         * doc/posix-functions/wctob.texi: Document the new module.
53745
53746 2008-12-18  Bruno Haible  <bruno@clisp.org>
53747
53748         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53749         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53750
53751 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53752
53753         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53754         G. Christensen" <tgc@jupiterrise.com>.
53755
53756         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53757         G. Christensen" <tgc@jupiterrise.com>.
53758
53759         * lib/flock.c: Need to include string.h.  Reported by "Tom
53760         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53761         <ebb9@byu.net>.
53762
53763 2008-12-18  Bruno Haible  <bruno@clisp.org>
53764
53765         * m4/locale-ja.m4: New file, from GNU gettext.
53766
53767 2008-12-17  Bruno Haible  <bruno@clisp.org>
53768
53769         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53770         Suggested by Eric Blake.
53771
53772 2008-12-17  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53775
53776 2008-12-17  Bruno Haible  <bruno@clisp.org>
53777
53778         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53779         * modules/mbsinit (Depends-on): Add verify.
53780         Suggested by Paul Eggert.
53781
53782 2008-12-17  Bruno Haible  <bruno@clisp.org>
53783
53784         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53785         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53786         gl_FUNC_MBRTOWC.
53787         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53788         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53789         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53790         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53791         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53792         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53793         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53794         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53795         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53796         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53797         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53798         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53799         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53800         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53801         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53802         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53803         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53804         * modules/trim (configure.ac): Likewise.
53805
53806 2008-12-17  Bruno Haible  <bruno@clisp.org>
53807
53808         * modules/btowc-tests: New file.
53809         * tests/test-btowc1.sh: New file.
53810         * tests/test-btowc2.sh: New file.
53811         * tests/test-btowc.c: New file.
53812
53813         New module 'btowc'.
53814         * lib/wchar.in.h (btowc): New declaration.
53815         * lib/btowc.c: New file.
53816         * m4/btowc.m4: New file.
53817         * modules/btowc: New file.
53818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53819         HAVE_BTOWC.
53820         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53821         * doc/posix-functions/btowc.texi: Document the new module.
53822
53823 2008-12-17  Bruno Haible  <bruno@clisp.org>
53824
53825         New module 'mbsinit'.
53826         * lib/wchar.in.h (mbsinit): New declaration.
53827         * lib/mbsinit.c: New file.
53828         * m4/mbsinit.m4: New file.
53829         * modules/mbsinit: New file.
53830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53831         HAVE_MBSINIT.
53832         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53833         HAVE_MBSINIT.
53834         * doc/posix-functions/mbsinit.texi: Document the new module.
53835
53836 2008-12-16  Bruno Haible  <bruno@clisp.org>
53837
53838         * lib/unistd.in.h: Add comment.
53839         * tests/test-environ.c: Don't include <stdlib.h>.
53840
53841 2008-12-16  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/parse-duration.h (parse_duration): Document return value
53844         convention.
53845         * lib/parse-duration.c: Include specification header first. Add
53846         comments.
53847         (_): Remove macro.
53848         (parse_year_month_day, parse_hour_minute_second): Move side effects
53849         outside of strchr call.
53850         (parse_non_iso8601): Move side effects outside of isspace call.
53851         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53852         call.
53853
53854 2008-12-16  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-parse-duration.sh: Produce no output when the test
53857         succeeds.
53858
53859 2008-12-16  Bruno Haible  <bruno@clisp.org>
53860
53861         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53862         expressions.
53863
53864 2008-12-15  Bruno Haible  <bruno@clisp.org>
53865
53866         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53867         * doc/glibc-functions/flistxattr.texi: Likewise.
53868         * doc/glibc-functions/fopencookie.texi: Likewise.
53869         * doc/glibc-functions/fremovexattr.texi: Likewise.
53870         * doc/glibc-functions/fsetxattr.texi: Likewise.
53871         * doc/glibc-functions/getxattr.texi: Likewise.
53872         * doc/glibc-functions/lgetxattr.texi: Likewise.
53873         * doc/glibc-functions/listxattr.texi: Likewise.
53874         * doc/glibc-functions/llistxattr.texi: Likewise.
53875         * doc/glibc-functions/lremovexattr.texi: Likewise.
53876         * doc/glibc-functions/lsetxattr.texi: Likewise.
53877         * doc/glibc-functions/removexattr.texi: Likewise.
53878         * doc/glibc-functions/setxattr.texi: Likewise.
53879         * doc/posix-functions/open_memstream.texi: Likewise.
53880
53881 2008-12-15  Eric Blake  <ebb9@byu.net>
53882
53883         Update doc for cygwin 1.7.
53884         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53885         functions.
53886         * doc/posix-functions/fchmodat.texi: Likewise.
53887         * doc/posix-functions/fchownat.texi: Likewise.
53888         * doc/posix-functions/fdopendir.texi: Likewise.
53889         * doc/posix-functions/fmemopen.texi: Likewise.
53890         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53891         * doc/posix-functions/fstatat.texi: Likewise.
53892         * doc/posix-functions/futimens.texi: Likewise.
53893         * doc/posix-functions/gai_strerror.texi: Likewise.
53894         * doc/posix-functions/getaddrinfo.texi: Likewise.
53895         * doc/posix-functions/getnameinfo.texi: Likewise.
53896         * doc/posix-functions/if_freenameindex.texi: Likewise.
53897         * doc/posix-functions/if_indextoname.texi: Likewise.
53898         * doc/posix-functions/if_nameindex.texi: Likewise.
53899         * doc/posix-functions/if_nametoindex.texi: Likewise.
53900         * doc/posix-functions/insque.texi: Likewise.
53901         * doc/posix-functions/linkat.texi: Likewise.
53902         * doc/posix-functions/llrint.texi: Likewise.
53903         * doc/posix-functions/llrintf.texi: Likewise.
53904         * doc/posix-functions/llrintl.texi: Likewise.
53905         * doc/posix-functions/lockf.texi: Likewise.
53906         * doc/posix-functions/lrintl.texi: Likewise.
53907         * doc/posix-functions/mkdirat.texi: Likewise.
53908         * doc/posix-functions/mkfifoat.texi: Likewise.
53909         * doc/posix-functions/mknodat.texi: Likewise.
53910         * doc/posix-functions/mq_close.texi: Likewise.
53911         * doc/posix-functions/mq_getattr.texi: Likewise.
53912         * doc/posix-functions/mq_notify.texi: Likewise.
53913         * doc/posix-functions/mq_open.texi: Likewise.
53914         * doc/posix-functions/mq_receive.texi: Likewise.
53915         * doc/posix-functions/mq_send.texi: Likewise.
53916         * doc/posix-functions/mq_setattr.texi: Likewise.
53917         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53918         * doc/posix-functions/mq_timedsend.texi: Likewise.
53919         * doc/posix-functions/mq_unlink.texi: Likewise.
53920         * doc/posix-functions/open_memstream.texi: Likewise.
53921         * doc/posix-functions/openat.texi: Likewise.
53922         * doc/posix-functions/posix_fadvise.texi: Likewise.
53923         * doc/posix-functions/posix_fallocate.texi: Likewise.
53924         * doc/posix-functions/posix_madvise.texi: Likewise.
53925         * doc/posix-functions/posix_memalign.texi: Likewise.
53926         * doc/posix-functions/posix_openpt.texi: Likewise.
53927         * doc/posix-functions/readlinkat.texi: Likewise.
53928         * doc/posix-functions/remque.texi: Likewise.
53929         * doc/posix-functions/renameat.texi: Likewise.
53930         * doc/posix-functions/rintl.texi: Likewise.
53931         * doc/posix-functions/sem_unlink.texi: Likewise.
53932         * doc/posix-functions/shm_open.texi: Likewise.
53933         * doc/posix-functions/shm_unlink.texi: Likewise.
53934         * doc/posix-functions/signgam.texi: Likewise.
53935         * doc/posix-functions/sigset.texi: Likewise.
53936         * doc/posix-functions/stpcpy.texi: Likewise.
53937         * doc/posix-functions/stpncpy.texi: Likewise.
53938         * doc/posix-functions/strerror.texi: Likewise.
53939         * doc/posix-functions/strtod.texi: Likewise.
53940         * doc/posix-functions/symlinkat.texi: Likewise.
53941         * doc/posix-functions/unlinkat.texi: Likewise.
53942         * doc/posix-functions/utimensat.texi: Likewise.
53943         * doc/glibc-functions/bindresvport.texi: Likewise.
53944         * doc/glibc-functions/dn_expand.texi: Likewise.
53945         * doc/glibc-functions/exp10.texi: Likewise.
53946         * doc/glibc-functions/exp10f.texi: Likewise.
53947         * doc/glibc-functions/fgetxattr.texi: Likewise.
53948         * doc/glibc-functions/flistxattr.texi: Likewise.
53949         * doc/glibc-functions/fopencookie.texi: Likewise.
53950         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53951         * doc/glibc-functions/fremovexattr.texi: Likewise.
53952         * doc/glibc-functions/fsetxattr.texi: Likewise.
53953         * doc/glibc-functions/getifaddrs.texi: Likewise.
53954         * doc/glibc-functions/getxattr.texi: Likewise.
53955         * doc/glibc-functions/lgetxattr.texi: Likewise.
53956         * doc/glibc-functions/listxattr.texi: Likewise.
53957         * doc/glibc-functions/llistxattr.texi: Likewise.
53958         * doc/glibc-functions/lremovexattr.texi: Likewise.
53959         * doc/glibc-functions/lsetxattr.texi: Likewise.
53960         * doc/glibc-functions/pow10.texi: Likewise.
53961         * doc/glibc-functions/pow10f.texi: Likewise.
53962         * doc/glibc-functions/rcmd_af.texi: Likewise.
53963         * doc/glibc-functions/removexattr.texi: Likewise.
53964         * doc/glibc-functions/res_init.texi: Likewise.
53965         * doc/glibc-functions/res_mkquery.texi: Likewise.
53966         * doc/glibc-functions/res_query.texi: Likewise.
53967         * doc/glibc-functions/res_querydomain.texi: Likewise.
53968         * doc/glibc-functions/res_send.texi: Likewise.
53969         * doc/glibc-functions/rresvport_af.texi: Likewise.
53970         * doc/glibc-functions/setxattr.texi: Likewise.
53971         * doc/glibc-functions/strcasestr.texi: Likewise.
53972
53973 2008-12-15  Bruno Haible  <bruno@clisp.org>
53974
53975         Fix compilation error on OSF/1 4.0.
53976         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53977         <sys/time.h>, simply delegate to the system header.
53978         Reported by Daniel Richard G. <oss@teragram.com>.
53979
53980 2008-12-15  Bruno Haible  <bruno@clisp.org>
53981
53982         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53983         * doc/posix-functions/fchmodat.texi: Likewise.
53984         * doc/posix-functions/fchownat.texi: Likewise.
53985         * doc/posix-functions/fdopendir.texi: Likewise.
53986         * doc/posix-functions/fstatat.texi: Likewise.
53987         * doc/posix-functions/mkdirat.texi: Likewise.
53988         * doc/posix-functions/unlinkat.texi: Likewise.
53989
53990 2008-12-14  Bruno Haible  <bruno@clisp.org>
53991
53992         Update doc for POSIX:2008.
53993         * doc/posix-functions/faccessat.texi: New file.
53994         * doc/posix-functions/fchmodat.texi: New file.
53995         * doc/posix-functions/fchownat.texi: New file.
53996         * doc/posix-functions/fdopendir.texi: New file.
53997         * doc/posix-functions/fstatat.texi: New file.
53998         * doc/posix-functions/futimens.texi: New file.
53999         * doc/posix-functions/linkat.texi: New file.
54000         * doc/posix-functions/mkdirat.texi: New file.
54001         * doc/posix-functions/mkfifoat.texi: New file.
54002         * doc/posix-functions/mknodat.texi: New file.
54003         * doc/posix-functions/open_wmemstream.texi: New file.
54004         * doc/posix-functions/openat.texi: New file.
54005         * doc/posix-functions/psiginfo.texi: New file.
54006         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54007         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54008         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54009         * doc/posix-functions/readlinkat.texi: New file.
54010         * doc/posix-functions/renameat.texi: New file.
54011         * doc/posix-functions/strerror_l.texi: New file.
54012         * doc/posix-functions/symlinkat.texi: New file.
54013         * doc/posix-functions/unlinkat.texi: New file.
54014         * doc/posix-functions/utimensat.texi: New file.
54015         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54016
54017 2008-12-14  Bruno Haible  <bruno@clisp.org>
54018
54019         Update doc for POSIX:2008.
54020         * doc/posix-functions/alphasort.texi: Renamed from
54021         doc/glibc-functions/alphasort.texi.
54022         * doc/posix-functions/dirfd.texi: Renamed from
54023         doc/glibc-functions/dirfd.texi.
54024         * doc/posix-functions/dprintf.texi: Renamed from
54025         doc/glibc-functions/dprintf.texi.
54026         * doc/posix-functions/duplocale.texi: Renamed from
54027         doc/glibc-functions/duplocale.texi.
54028         * doc/posix-functions/fexecve.texi: Renamed from
54029         doc/glibc-functions/fexecve.texi.
54030         * doc/posix-functions/fmemopen.texi: Renamed from
54031         doc/glibc-functions/fmemopen.texi.
54032         * doc/posix-functions/freelocale.texi: Renamed from
54033         doc/glibc-functions/freelocale.texi.
54034         * doc/posix-functions/getdate_err.texi: Renamed from
54035         doc/glibc-functions/getdate_err.texi.
54036         * doc/posix-functions/isalnum_l.texi: Renamed from
54037         doc/glibc-functions/isalnum_l.texi.
54038         * doc/posix-functions/isalpha_l.texi: Renamed from
54039         doc/glibc-functions/isalpha_l.texi.
54040         * doc/posix-functions/isblank_l.texi: Renamed from
54041         doc/glibc-functions/isblank_l.texi.
54042         * doc/posix-functions/iscntrl_l.texi: Renamed from
54043         doc/glibc-functions/iscntrl_l.texi.
54044         * doc/posix-functions/isdigit_l.texi: Renamed from
54045         doc/glibc-functions/isdigit_l.texi.
54046         * doc/posix-functions/isgraph_l.texi: Renamed from
54047         doc/glibc-functions/isgraph_l.texi.
54048         * doc/posix-functions/islower_l.texi: Renamed from
54049         doc/glibc-functions/islower_l.texi.
54050         * doc/posix-functions/isprint_l.texi: Renamed from
54051         doc/glibc-functions/isprint_l.texi.
54052         * doc/posix-functions/ispunct_l.texi: Renamed from
54053         doc/glibc-functions/ispunct_l.texi.
54054         * doc/posix-functions/isspace_l.texi: Renamed from
54055         doc/glibc-functions/isspace_l.texi.
54056         * doc/posix-functions/isupper_l.texi: Renamed from
54057         doc/glibc-functions/isupper_l.texi.
54058         * doc/posix-functions/iswalnum_l.texi: Renamed from
54059         doc/glibc-functions/iswalnum_l.texi.
54060         * doc/posix-functions/iswalpha_l.texi: Renamed from
54061         doc/glibc-functions/iswalpha_l.texi.
54062         * doc/posix-functions/iswblank_l.texi: Renamed from
54063         doc/glibc-functions/iswblank_l.texi.
54064         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54065         doc/glibc-functions/iswcntrl_l.texi.
54066         * doc/posix-functions/iswctype_l.texi: Renamed from
54067         doc/glibc-functions/iswctype_l.texi.
54068         * doc/posix-functions/iswdigit_l.texi: Renamed from
54069         doc/glibc-functions/iswdigit_l.texi.
54070         * doc/posix-functions/iswgraph_l.texi: Renamed from
54071         doc/glibc-functions/iswgraph_l.texi.
54072         * doc/posix-functions/iswlower_l.texi: Renamed from
54073         doc/glibc-functions/iswlower_l.texi.
54074         * doc/posix-functions/iswprint_l.texi: Renamed from
54075         doc/glibc-functions/iswprint_l.texi.
54076         * doc/posix-functions/iswpunct_l.texi: Renamed from
54077         doc/glibc-functions/iswpunct_l.texi.
54078         * doc/posix-functions/iswspace_l.texi: Renamed from
54079         doc/glibc-functions/iswspace_l.texi.
54080         * doc/posix-functions/iswupper_l.texi: Renamed from
54081         doc/glibc-functions/iswupper_l.texi.
54082         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54083         doc/glibc-functions/iswxdigit_l.texi.
54084         * doc/posix-functions/isxdigit_l.texi: Renamed from
54085         doc/glibc-functions/isxdigit_l.texi.
54086         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54087         doc/glibc-functions/mbsnrtowcs.texi.
54088         * doc/posix-functions/mkdtemp.texi: Renamed from
54089         doc/glibc-functions/mkdtemp.texi.
54090         * doc/posix-functions/newlocale.texi: Renamed from
54091         doc/glibc-functions/newlocale.texi.
54092         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54093         doc/glibc-functions/nl_langinfo_l.texi.
54094         * doc/posix-functions/open_memstream.texi: Renamed from
54095         doc/glibc-functions/open_memstream.texi.
54096         * doc/posix-functions/opterr.texi: Renamed from
54097         doc/glibc-functions/opterr.texi.
54098         * doc/posix-functions/optind.texi: Renamed from
54099         doc/glibc-functions/optind.texi.
54100         * doc/posix-functions/optopt.texi: Renamed from
54101         doc/glibc-functions/optopt.texi.
54102         * doc/posix-functions/psignal.texi: Renamed from
54103         doc/glibc-functions/psignal.texi.
54104         * doc/posix-functions/scandir.texi: Renamed from
54105         doc/glibc-functions/scandir.texi.
54106         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54107         doc/glibc-functions/sched_get_priority_min.texi.
54108         * doc/posix-functions/signgam.texi: Renamed from
54109         doc/glibc-functions/signgam.texi.
54110         * doc/posix-functions/stpcpy.texi: Renamed from
54111         doc/glibc-functions/stpcpy.texi.
54112         * doc/posix-functions/stpncpy.texi: Renamed from
54113         doc/glibc-functions/stpncpy.texi.
54114         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54115         doc/glibc-functions/strcasecmp_l.texi.
54116         * doc/posix-functions/strcoll_l.texi: Renamed from
54117         doc/glibc-functions/strcoll_l.texi.
54118         * doc/posix-functions/strfmon_l.texi: Renamed from
54119         doc/glibc-functions/strfmon_l.texi.
54120         * doc/posix-functions/strftime_l.texi: Renamed from
54121         doc/glibc-functions/strftime_l.texi.
54122         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54123         doc/glibc-functions/strncasecmp_l.texi.
54124         * doc/posix-functions/strndup.texi: Renamed from
54125         doc/glibc-functions/strndup.texi.
54126         * doc/posix-functions/strnlen.texi: Renamed from
54127         doc/glibc-functions/strnlen.texi.
54128         * doc/posix-functions/strsignal.texi: Renamed from
54129         doc/glibc-functions/strsignal.texi.
54130         * doc/posix-functions/strxfrm_l.texi: Renamed from
54131         doc/glibc-functions/strxfrm_l.texi.
54132         * doc/posix-functions/timer_gettime.texi: Renamed from
54133         doc/glibc-functions/timer_gettime.texi.
54134         * doc/posix-functions/tolower_l.texi: Renamed from
54135         doc/glibc-functions/tolower_l.texi.
54136         * doc/posix-functions/toupper_l.texi: Renamed from
54137         doc/glibc-functions/toupper_l.texi.
54138         * doc/posix-functions/towctrans_l.texi: Renamed from
54139         doc/glibc-functions/towctrans_l.texi.
54140         * doc/posix-functions/towlower_l.texi: Renamed from
54141         doc/glibc-functions/towlower_l.texi.
54142         * doc/posix-functions/towupper_l.texi: Renamed from
54143         doc/glibc-functions/towupper_l.texi.
54144         * doc/posix-functions/uselocale.texi: Renamed from
54145         doc/glibc-functions/uselocale.texi.
54146         * doc/posix-functions/vdprintf.texi: Renamed from
54147         doc/glibc-functions/vdprintf.texi.
54148         * doc/posix-functions/wcpcpy.texi:
54149         Renamed from doc/glibc-functions/wcpcpy.texi.
54150         * doc/posix-functions/wcpncpy.texi: Renamed from
54151         doc/glibc-functions/wcpncpy.texi.
54152         * doc/posix-functions/wcscasecmp.texi: Renamed from
54153         doc/glibc-functions/wcscasecmp.texi.
54154         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54155         doc/glibc-functions/wcscasecmp_l.texi.
54156         * doc/posix-functions/wcscoll_l.texi: Renamed from
54157         doc/glibc-functions/wcscoll_l.texi.
54158         * doc/posix-functions/wcsdup.texi: Renamed from
54159         doc/glibc-functions/wcsdup.texi.
54160         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54161         doc/glibc-functions/wcsncasecmp.texi.
54162         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54163         doc/glibc-functions/wcsncasecmp_l.texi.
54164         * doc/posix-functions/wcsnlen.texi: Renamed from
54165         doc/glibc-functions/wcsnlen.texi.
54166         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54167         doc/glibc-functions/wcsnrtombs.texi.
54168         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54169         doc/glibc-functions/wcsxfrm_l.texi.
54170         * doc/posix-functions/wctrans_l.texi: Renamed from
54171         doc/glibc-functions/wctrans_l.texi.
54172         * doc/posix-functions/wctype_l.texi: Renamed from
54173         doc/glibc-functions/wctype_l.texi.
54174         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54175         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54176         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54177         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54178         these subsections.
54179         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54180         Remove sections.
54181
54182 2008-12-14  Bruno Haible  <bruno@clisp.org>
54183
54184         Update doc for POSIX:2008.
54185         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54186
54187 2008-12-14  Bruno Haible  <bruno@clisp.org>
54188
54189         Update doc for POSIX:2008.
54190         * doc/pastposix-functions/bcmp.texi: Renamed from
54191         doc/posix-functions/bcmp.texi.
54192         * doc/pastposix-functions/bcopy.texi: Renamed from
54193         doc/posix-functions/bcopy.texi.
54194         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54195         doc/posix-functions/bsd_signal.texi.
54196         * doc/pastposix-functions/bzero.texi: Renamed from
54197         doc/posix-functions/bzero.texi.
54198         * doc/pastposix-functions/ecvt.texi: Renamed from
54199         doc/posix-functions/ecvt.texi.
54200         * doc/pastposix-functions/fcvt.texi: Renamed from
54201         doc/posix-functions/fcvt.texi.
54202         * doc/pastposix-functions/ftime.texi: Renamed from
54203         doc/posix-functions/ftime.texi.
54204         * doc/pastposix-functions/gcvt.texi: Renamed from
54205         doc/posix-functions/gcvt.texi.
54206         * doc/pastposix-functions/getcontext.texi: Renamed from
54207         doc/posix-functions/getcontext.texi.
54208         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54209         doc/posix-functions/gethostbyaddr.texi.
54210         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54211         doc/posix-functions/gethostbyname.texi.
54212         * doc/pastposix-functions/getwd.texi: Renamed from
54213         doc/posix-functions/getwd.texi.
54214         * doc/pastposix-functions/h_errno.texi: Renamed from
54215         doc/posix-functions/h_errno.texi.
54216         * doc/pastposix-functions/index.texi: Renamed from
54217         doc/posix-functions/index.texi.
54218         * doc/pastposix-functions/makecontext.texi: Renamed from
54219         doc/posix-functions/makecontext.texi.
54220         * doc/pastposix-functions/mktemp.texi: Renamed from
54221         doc/posix-functions/mktemp.texi.
54222         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54223         doc/posix-functions/pthread_attr_getstackaddr.texi.
54224         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54225         doc/posix-functions/pthread_attr_setstackaddr.texi.
54226         * doc/pastposix-functions/rindex.texi: Renamed from
54227         doc/posix-functions/rindex.texi.
54228         * doc/pastposix-functions/scalb.texi: Renamed from
54229         doc/posix-functions/scalb.texi.
54230         * doc/pastposix-functions/setcontext.texi: Renamed from
54231         doc/posix-functions/setcontext.texi.
54232         * doc/pastposix-functions/swapcontext.texi: Renamed from
54233         doc/posix-functions/swapcontext.texi.
54234         * doc/pastposix-functions/ualarm.texi: Renamed from
54235         doc/posix-functions/ualarm.texi.
54236         * doc/pastposix-functions/usleep.texi: Renamed from
54237         doc/posix-functions/usleep.texi.
54238         * doc/pastposix-functions/vfork.texi: Renamed from
54239         doc/posix-functions/vfork.texi.
54240         * doc/pastposix-functions/wcswcs.texi: Renamed from
54241         doc/posix-functions/wcswcs.texi.
54242         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54243         (Function Substitutes): Update.
54244
54245 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54246
54247         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54248         m4/strerror.m4.
54249
54250 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54251             Bruno Haible  <bruno@clisp.org>
54252
54253         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54254
54255 2008-12-13  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/strtoull (Depends-on): Remove unistd.
54258
54259 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54260
54261         * modules/strtoull (Depends-on): Add stdlib.
54262
54263 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54264
54265         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54266
54267 2008-12-10  Jim Meyering  <meyering@redhat.com>
54268
54269         gl_ASSERT: don't say assertions are disabled when they're not
54270         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54271         "checking whether to enable assertions... no", when they are in
54272         fact enabled.  This is solely a bug in the output of configure.
54273         In spite of saying "no", NDEBUG was not defined in that case.
54274         Also, as noted by Eric Blake, leave assertions enabled upon
54275         --enable-assert=INVALID.
54276
54277 2008-12-10  Bruno Haible  <bruno@clisp.org>
54278
54279         Change MODULES.html to refer to POSIX:2008 where possible.
54280         * MODULES.html.sh (POSIX2008_URL): New variable.
54281         (posix_headers): Remove sys/timeb, ucontext.
54282         (posix2001_headers): New variable.
54283         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54284         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54285         index, makecontext, mktemp, pthread_attr_getstackaddr,
54286         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54287         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54288         (posix2001_functions): New variable.
54289         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54290         otherwise.
54291
54292 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54293
54294         add missing include to parse-duration.c
54295         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54296         * modules/parse-duration (Depends-on): Add xalloc.
54297
54298         fix sed script reading maint.mk
54299         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54300         (syntax-check-rules): Use it.
54301
54302 2008-12-09  Bruno Haible  <bruno@clisp.org>
54303
54304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54305         MacOS X 10.4/PowerPC.
54306         Reported by Simon Josefsson.
54307
54308 2008-12-08  Jim Meyering  <meyering@redhat.com>
54309
54310         work around mingw's lack of some S_IF definitions
54311         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54312         Reported by Simon Josefsson.
54313
54314 2008-12-08  Bruno Haible  <bruno@clisp.org>
54315
54316         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54317         applied to variables. Needed on MacOS X 10.4/PowerPC.
54318         Reported by Simon Josefsson.
54319
54320 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54321         and Eric Blake  <ebb9@byu.net>
54322
54323         assert: honor --enable-assert
54324         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54325         order to honor --enable-assert, rather than treating it as a
54326         synonym for --disable-assert.
54327
54328 2008-12-08  Jim Meyering  <meyering@redhat.com>
54329
54330         * lib/posixtm.c: Remove now-useless declaration of mktime.
54331
54332         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54333
54334 2008-12-07  Bruno Haible  <bruno@clisp.org>
54335
54336         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54337         test_once): Mark functions as static.
54338         * tests/test-tls.c (test_tls): Likewise.
54339
54340 2008-12-07  Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54343         iconv_register_autodetect.
54344
54345 2008-12-07  Jim Meyering  <meyering@redhat.com>
54346
54347         posixtm.c: avoid a warning
54348         * lib/posixtm.c (posixtime): Don't initialize tm0.
54349         It's no longer needed to placate gcc4's -Wuninitialized,
54350         and the attempt to placate would elicit a new warning.
54351
54352         unicodeio.c: mark unused parameters
54353         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54354         (fallback_failure_callback): Likewise.
54355
54356 2008-12-07  Bruno Haible  <bruno@clisp.org>
54357
54358         * gnulib-tool (func_create_testdir): When building the tests
54359         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54360         Reported by Simon Josefsson.
54361
54362 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54363
54364         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54365
54366 2008-12-06  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54369         Suggested by Eric Blake.
54370
54371 2008-12-06  Bruno Haible  <bruno@clisp.org>
54372
54373         Fix a c-stack test failure on MacOS X.
54374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54375         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54376         handler for SIGBUS as well.
54377         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54378         install a signal handler for SIGBUS as well.
54379         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54380
54381 2008-12-06  Bruno Haible  <bruno@clisp.org>
54382
54383         Advocacy documentation.
54384         * doc/gnulib-intro.texi (Benefits): New section.
54385         * doc/gnulib.texi: Update.
54386
54387 2008-12-06  Bruno Haible  <bruno@clisp.org>
54388
54389         Document the 'manywarnings' module.
54390         * doc/manywarnings.texi: New file.
54391         * doc/gnulib.texi: Include it.
54392
54393 2008-12-05  Eric Blake  <ebb9@byu.net>
54394
54395         tests: silence some gcc warnings
54396         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54397         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54398         type mismatches.
54399
54400 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54401             Bruno Haible  <bruno@clisp.org>
54402
54403         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54404
54405 2008-11-29  Jim Meyering  <meyering@redhat.com>
54406
54407         unicodeio.c: mark unused parameters
54408         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54409         (fallback_failure_callback): Likewise.
54410
54411         fts: fix a thinko
54412         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54413         (set_stat_type): Return S_IF*-valued "type" directly.
54414         Prompted by James Youngman's spotting a related bug.
54415         Confirmed by further testing through find.
54416
54417         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54418         * lib/fts.c (D_TYPE): Define.
54419         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54420         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54421         (s_ifmt_shift_bits): New function.
54422         (set_stat_type): New function.
54423         (fts_build): When not calling fts_stat, call set_stat_type
54424         to propagate dirent.d_type info to fts_read caller.
54425         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54426         fts_statp->st_mode type information may be valid.
54427
54428 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54429
54430         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54431         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54432         <sds@gnu.org>.
54433
54434 2008-11-20  Bruno Haible  <bruno@clisp.org>
54435
54436         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54437         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54438         INCLUDE_NEXT.
54439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54440         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54441         * modules/math (Makefile.am): Substitute
54442         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54444
54445 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54446             Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/stdint.in.h: Define all type macros so that their expansion is
54449         a single typedef'ed token. Fixes a compilation failure in Boost which
54450         does "using ::int8_t;".
54451
54452 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54453
54454         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54455         gl_MANYWARN_ALL_GCC.
54456         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54457         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54458         * modules/manywarnings: New file.
54459         * MODULES.html.sh: Mention manywarnings module.
54460
54461 2008-11-18  Bruno Haible  <bruno@clisp.org>
54462
54463         * doc/gnulib-tool.texi (Unit tests): New section.
54464
54465 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54466
54467         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54468         paths like 'lib/po/foo.po'.
54469
54470 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54471
54472         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54473         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54474
54475 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54476
54477         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54478         parameter works.
54479
54480 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54481
54482         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54483
54484 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54485
54486         * modules/parse-duration-tests: New file.
54487         * tests/test-parse-duration.sh: New file.
54488         * tests/test-parse-duration.c: New file.
54489
54490         New module 'parse-duration'.
54491         * lib/parse-duration.h: New file.
54492         * lib/parse-duration.c: New file.
54493         * modules/parse-duration: New file.
54494
54495 2008-11-17  Bruno Haible  <bruno@clisp.org>
54496
54497         * tests/test-select-out.sh: Comment out the first pipe test.
54498         Reported by Simon Josefsson.
54499
54500 2008-11-17  Bruno Haible  <bruno@clisp.org>
54501
54502         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54504         gl_HOSTENT.
54505
54506 2008-11-17  Bruno Haible  <bruno@clisp.org>
54507
54508         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54509         -lnetwork and -lnet. Needed for Haiku and BeOS.
54510
54511 2008-11-16  Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54514
54515 2008-11-16  Bruno Haible  <bruno@clisp.org>
54516
54517         Avoid test failure on Haiku.
54518         * tests/test-fsync.c: Include <errno.h>.
54519         (main): Don't require that fsync (0) fails.
54520
54521 2008-11-15  Bruno Haible  <bruno@clisp.org>
54522
54523         New module 'hostent'.
54524         * modules/hostent: New file.
54525         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54526
54527 2008-11-15  Bruno Haible  <bruno@clisp.org>
54528
54529         New module 'servent'.
54530         * modules/servent: New file.
54531         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54532
54533 2008-11-15  Bruno Haible  <bruno@clisp.org>
54534
54535         Avoid generating same test program with two different rules.
54536         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54537         test-frexp to test-frexp-nolibm.
54538         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54539         test-frexpl to test-frexpl-nolibm.
54540
54541 2008-11-15  Bruno Haible  <bruno@clisp.org>
54542
54543         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54544         $(FREXPL_LIBM).
54545
54546 2008-11-15  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/netdb.in.h: Activate the definitions also when the system's
54549         <netdb.h> has 'struct addrinfo'.
54550         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54551         EAI_OVERFLOW or AI_NUMERICSERV.
54552         * doc/posix-headers/netdb.texi: Document the problem.
54553
54554 2008-11-15  Bruno Haible  <bruno@clisp.org>
54555
54556         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54557
54558         Make the 'sched' module work on platforms where <sched.h> exists but
54559         is incomplete (such as Haiku).
54560         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54561         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54562         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54563         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54564         HAVE_STRUCT_SCHED_PARAM.
54565         * modules/sched (Depends-on): Add include_next.
54566         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54567         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54568         * doc/posix-headers/sched.texi: Document the issue.
54569
54570 2008-11-13  Jim Meyering  <meyering@redhat.com>
54571
54572         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54573         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54574         test would fail due to the difference in the Report bugs to ...
54575         line.  The expected address is empty, "<>", while the actual
54576         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54577
54578 2008-11-12  Bruno Haible  <bruno@clisp.org>
54579
54580         lstat: don't compile lstat.c on systems lacking lstat
54581         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54582         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54583         Reported by Daniel P. Berrange via Jim Meyering.
54584
54585 2008-11-12  Jim Meyering  <meyering@redhat.com>
54586
54587         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54588
54589 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54590
54591         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54592         instead.
54593
54594 2008-11-12  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/unicodeio.c: Include unistr.h.
54597         (utf8_wctomb): Remove function.
54598         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54599
54600 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54601
54602         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54603         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54604         <bruno@clisp.org>.
54605         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54606
54607 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54608
54609         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54610         * doc/gnulib.texi: Add section for warnings.
54611
54612 2008-11-11  Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/sockets.h: Add a comment.
54615
54616 2008-11-11  Karl Berry  <karl@gnu.org>
54617
54618         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54619
54620 2008-11-11  Eric Blake  <ebb9@byu.net>
54621
54622         fdl.texi: avoid git symlinks
54623         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54624
54625 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54626
54627         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54628
54629 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54630
54631         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54632         (gl_WARN_ADD): Substitute $2 if literal.
54633
54634 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54635
54636         * m4/warning.m4: Remove.
54637
54638 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54639
54640         * m4/warnings.m4: Almost complete rewrite. :-)
54641
54642 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54643
54644         * modules/warnings: New module.
54645         * m4/warnings.m4: New file.
54646         * MODULES.html.sh: Mention warnings module.
54647         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54648         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54649
54650 2008-11-10  Eric Blake  <ebb9@byu.net>
54651
54652         fdl.texi: make a symlink to the latest version
54653         * doc/standards.texi: Revert today's earlier change.
54654         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54655         * doc/fdl.texi: ...and replace this with a symlink to the newer
54656         fdl-1.3.texi.
54657
54658 2008-11-10  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-select-fd.c (main): Accept the result file name as fourth
54661         argument.
54662         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54663         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54664
54665 2008-11-10  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54668         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54669         as autoconf-substituted macros.
54670         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54671         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54672         gl_NETDB_H_DEFAULTS. Set these variables.
54673         * modules/netdb (Makefile.am): Substitute these variables.
54674
54675 2008-11-10  Eric Blake  <ebb9@byu.net>
54676
54677         standards.texi: include correct file for FDL 1.3
54678         * doc/standards.texi (GNU Free Documentation License): Change
54679         include file to pull in FDL 1.3, not 1.2.
54680
54681         fdl.texi: revert accidental change to license
54682         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54683
54684 2008-11-10  Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54687         cross-compiling guesses also when the native compile gives no result.
54688
54689 2008-11-10  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/spawni.c (__spawni): Force variable into the stack.
54692
54693 2008-11-10  Bruno Haible  <bruno@clisp.org>
54694
54695         Add support for Haiku.
54696         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54697         glibc and BeOS, but also on Haiku.
54698         * lib/fpurge.c (fpurge): Likewise.
54699         * lib/freadable.c (freadable): Likewise.
54700         * lib/freadahead.c (freadahead): Likewise.
54701         * lib/freading.c (freading): Likewise.
54702         * lib/freadptr.c (freadptr): Likewise.
54703         * lib/freadseek.c (freadptrinc): Likewise.
54704         * lib/fseeko.c (rpl_fseeko): Likewise.
54705         * lib/fseterr.c (fseterr): Likewise.
54706         * lib/fwritable.c (fwritable): Likewise.
54707         * lib/fwriting.c (fwriting): Likewise.
54708         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54709
54710 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54711
54712         * lib/config.charset: Treat Haiku like BeOS.
54713
54714 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54715
54716         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54717         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54718
54719 2008-11-08  Bruno Haible  <bruno@clisp.org>
54720
54721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54722         AC_CACHE_CHECK.
54723
54724 2008-11-08  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54727
54728 2008-11-08  Bruno Haible  <bruno@clisp.org>
54729
54730         * tests/test-select-fd.c: New file.
54731         * tests/test-select-in.sh: New file.
54732         * tests/test-select-out.sh: New file.
54733         * tests/test-select-stdin.c: New file.
54734         * modules/select-tests (Files): Add the new files.
54735         (Depends-on): Add gettimeofday.
54736         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54737         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54738         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54739
54740 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54741             Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54744
54745 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54746
54747         * build-aux/pmccabe2html: Added support for C++ source files.
54748
54749 2008-11-05  Ben Pfaff  <blp@gnu.org>
54750
54751         Fix lib/close.c build on Windows.
54752         * modules/close (Files): Add lib/w32sock.h.
54753
54754 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54755
54756         Accept Bison's NEWS format.
54757         * build-aux/announce-gen (print_news_deltas): Tweak
54758         $re_prefix.
54759
54760 2008-11-04  Bruno Haible  <bruno@clisp.org>
54761
54762         * modules/random_r (Maintainer): Add glibc.
54763
54764 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54765
54766         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54767         by karl@freefriends.org (Karl Berry).
54768         * doc/alloca.texi: Likewise.
54769         * doc/c-ctype.texi: Likewise.
54770         * doc/c-strcase.texi: Likewise.
54771         * doc/c-strcaseeq.texi: Likewise.
54772         * doc/c-strcasestr.texi: Likewise.
54773         * doc/c-strstr.texi: Likewise.
54774         * doc/c-strtod.texi: Likewise.
54775         * doc/c-strtold.texi: Likewise.
54776         * doc/ctime.texi: Likewise.
54777         * doc/error.texi: Likewise.
54778         * doc/fdl.texi: Likewise.
54779         * doc/gcd.texi: Likewise.
54780         * doc/getdate.texi: Likewise.
54781         * doc/gnulib-intro.texi: Likewise.
54782         * doc/gnulib-tool.texi: Likewise.
54783         * doc/gnulib.texi: Likewise.
54784         * doc/inet_ntoa.texi: Likewise.
54785         * doc/maintain.texi: Likewise.
54786         * doc/make-stds.texi: Likewise.
54787         * doc/quote.texi: Likewise.
54788         * doc/regexprops-generic.texi: Likewise.
54789         * doc/standards.texi: Likewise.
54790         * doc/verify.texi: Likewise.
54791         * doc/visibility.texi: Likewise.
54792         * doc/gnulib.texi (GNU Free Documentation License): Include
54793         fdl-1.3.texi instead of fdl.texi.
54794
54795 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54796
54797         * doc/fdl-1.3.texi: New file, from
54798         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54799         * modules/fdl-1.3: Add.
54800         * MODULES.html.sh: Add fdl-1.3.
54801
54802 2008-11-03  Bruno Haible  <bruno@clisp.org>
54803
54804         Make determination of absolute name of header file work with AIX xlc.
54805         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54806         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54807         preprocessing.
54808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54809         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54810
54811 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54812
54813         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54814         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54815         <ludo@gnu.org>.
54816
54817 2008-11-02  Bruno Haible  <bruno@clisp.org>
54818
54819         Mark 'strpbrk' obsolete.
54820         * modules/strpbrk (Status, Notice): New sections.
54821         * modules/strtok_r (Depends-on): Add strpbrk.
54822
54823 2008-11-02  Bruno Haible  <bruno@clisp.org>
54824
54825         Mark 'strdup' obsolete.
54826         * modules/strdup (Status, Notice): New sections.
54827         * modules/findprog (Depends-on): Add strdup.
54828         * modules/getaddrinfo (Depends-on): Likewise.
54829         * modules/localename (Depends-on): Likewise.
54830         * modules/relocatable-lib (Depends-on): Likewise.
54831         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54832         * modules/relocatable-prog (Depends-on): Likewise.
54833         * modules/trim (Depends-on): Likewise.
54834         * modules/unictype/gen-ctype (Depends-on): Likewise.
54835         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54836
54837 2008-11-02  Bruno Haible  <bruno@clisp.org>
54838
54839         Mark 'strcspn' obsolete.
54840         * modules/strcspn (Status, Notice): New sections.
54841
54842 2008-11-02  Bruno Haible  <bruno@clisp.org>
54843
54844         Mark 'rmdir' obsolete.
54845         * modules/rmdir (Status, Notice): New sections.
54846         * modules/clean-temp (Depends-on): Add rmdir.
54847         * modules/openat (Depends-on): Likewise.
54848
54849 2008-11-02  Bruno Haible  <bruno@clisp.org>
54850
54851         Mark 'raise' obsolete.
54852         * modules/raise (Status, Notice): New sections.
54853         (Include): Specify <signal.h>.
54854         * modules/stdio (Depends-on): Add raise.
54855         * modules/write (Depends-on): Likewise.
54856
54857 2008-11-02  Bruno Haible  <bruno@clisp.org>
54858
54859         Mark 'memset' obsolete.
54860         * modules/memset (Status, Notice): New sections.
54861
54862 2008-11-02  Bruno Haible  <bruno@clisp.org>
54863
54864         Mark 'memmove' obsolete.
54865         * modules/memmove (Status, Notice): New sections.
54866         * modules/argp (Depends-on): Add memmove.
54867         * modules/argz (Depends-on): Likewise.
54868         * modules/canonicalize (Depends-on): Likewise.
54869         * modules/canonicalize-lgpl (Depends-on): Likewise.
54870         * modules/fts (Depends-on): Likewise.
54871         * modules/getcwd (Depends-on): Likewise.
54872         * modules/human (Depends-on): Likewise.
54873         * modules/regex (Depends-on): Likewise.
54874         * modules/striconveh (Depends-on): Likewise.
54875         * modules/trim (Depends-on): Likewise.
54876         * modules/unistr/u8-move (Depends-on): Likewise.
54877         * modules/unistr/u16-move (Depends-on): Likewise.
54878         * modules/unistr/u32-move (Depends-on): Likewise.
54879
54880 2008-11-02  Bruno Haible  <bruno@clisp.org>
54881
54882         Mark 'memcpy' obsolete.
54883         * modules/memcpy (Status, Notice): New sections.
54884
54885 2008-11-02  Bruno Haible  <bruno@clisp.org>
54886
54887         Mark 'memcmp' obsolete.
54888         * modules/memcmp (Status, Notice): New sections.
54889         * modules/argmatch (Depends-on): Add memchr.
54890         * modules/backupfile (Depends-on): Likewise.
54891         * modules/c-strcasestr (Depends-on): Likewise.
54892         * modules/crypto/des (Depends-on): Likewise.
54893         * modules/csharpcomp (Depends-on): Likewise.
54894         * modules/fnmatch (Depends-on): Likewise.
54895         * modules/git-merge-changelog (Depends-on): Likewise.
54896         * modules/isnand (Depends-on): Likewise.
54897         * modules/isnand-nolibm (Depends-on): Likewise.
54898         * modules/isnanf (Depends-on): Likewise.
54899         * modules/isnanf-nolibm (Depends-on): Likewise.
54900         * modules/isnanl (Depends-on): Likewise.
54901         * modules/isnanl-nolibm (Depends-on): Likewise.
54902         * modules/mbchar (Depends-on): Likewise.
54903         * modules/memcoll (Depends-on): Likewise.
54904         * modules/quotearg (Depends-on): Likewise.
54905         * modules/regex (Depends-on): Likewise.
54906         * modules/relocatable-prog (Depends-on): Likewise.
54907         * modules/same (Depends-on): Likewise.
54908         * modules/signbit (Depends-on): Likewise.
54909         * modules/strcasestr-simple (Depends-on): Likewise.
54910         * modules/unictype/gen-ctype (Depends-on): Likewise.
54911         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54912         * modules/uniname/uniname (Depends-on): Likewise.
54913         * modules/unistr/u8-cmp (Depends-on): Likewise.
54914
54915 2008-11-02  Bruno Haible  <bruno@clisp.org>
54916
54917         Mark 'memchr' obsolete.
54918         * modules/memchr (Status, Notice): New sections.
54919         * modules/argp (Depends-on): Add memchr.
54920         * modules/base64 (Depends-on): Likewise.
54921         * modules/c-strcasestr (Depends-on): Likewise.
54922         * modules/chdir-long (Depends-on): Likewise.
54923         * modules/fnmatch (Depends-on): Likewise.
54924         * modules/getsubopt (Depends-on): Likewise.
54925         * modules/git-merge-changelog (Depends-on): Likewise.
54926         * modules/glob (Depends-on): Likewise.
54927         * modules/strcasestr-simple (Depends-on): Likewise.
54928         * modules/strnlen (Depends-on): Likewise.
54929
54930 2008-11-02  Bruno Haible  <bruno@clisp.org>
54931
54932         Mark 'atexit' obsolete.
54933         * modules/atexit (Status, Notice): New sections.
54934         * modules/chdir-long (Depends-on): Add atexit.
54935         * modules/wait-process (Depends-on): Likewise.
54936
54937 2008-11-02  Bruno Haible  <bruno@clisp.org>
54938
54939         * gnulib-tool: New option --with-obsolete.
54940         (func_usage): Document it.
54941         (func_modules_transitive_closure): Drop obsolete dependencies if
54942         incobsolete is not true.
54943         (func_import): Read and save the incobsolete variable to the cache.
54944
54945 2008-11-02  Bruno Haible  <bruno@clisp.org>
54946
54947         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54948         * gnulib-tool: New option --extract-status.
54949         (func_usage): Document it.
54950         (sed_extract_prog): Recognize it.
54951         (func_get_status): New function.
54952
54953 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54954
54955         * modules/sockets (License): Change from LGPL to LGPLv2+.
54956
54957 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54958
54959         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54960
54961 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54962
54963         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54964         Mention times and sys_times.
54965         * modules/sys_times, modules/sys_times-tests: New modules.
54966         * modules/times, modules/times-tests: Likewise
54967         * m4/sys_times_h.m4: New file.
54968         * lib/sys_times.in.h: Likewise
54969         * lib/times.c: Likewise.
54970         * tests/test-sys_times.c: Likewise.
54971         * tests/test-times.c: Likewise.
54972         * doc/posix-headers/sys_times.texi: Update.
54973         * doc/posix-functions/times.texi: Update.
54974
54975 2008-10-28  Jim Meyering  <meyering@redhat.com>
54976
54977         * modules/tempname (Depends-on): Add lstat.
54978
54979         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54980
54981 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54982
54983         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54984         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54985         using idiom used elsewhere in gnulib.
54986
54987 2008-10-27  Jim Meyering  <meyering@redhat.com>
54988
54989         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54990
54991 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54992
54993         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54994         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54995         programs.
54996         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54997
54998 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54999
55000         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55001
55002 2008-10-27  Bruno Haible  <bruno@clisp.org>
55003
55004         * tests/test-lstat.c: Include <stdio.h>.
55005
55006 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55007
55008         * modules/lstat-tests: New module.
55009         * tests/test-lstat.c: New file.
55010
55011 2008-10-26  Jim Meyering  <meyering@redhat.com>
55012
55013         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55014
55015 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55016             Bruno Haible  <bruno@clisp.org>
55017
55018         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55019         * modules/configmake (Include): Add a note that the include must come
55020         after all system headers.
55021         * lib/javaversion.c: Include configmake.h after all other includes.
55022
55023 2008-10-26  Bruno Haible  <bruno@clisp.org>
55024
55025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55026         HAVE_STRUCT_RANDOM_DATA to 1.
55027         (gl_STDLIB_H): Simplify.
55028
55029 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55030
55031         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55032         substitute HAVE_STRUCT_RANDOM_DATA.
55033         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55034         random_data.
55035         * modules/stdlib (Makefile.am): Substitute
55036         HAVE_STRUCT_RANDOM_DATA.
55037
55038 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55039
55040         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55041         * doc/gnulib-intro.texi (Copyright): Likewise.
55042
55043 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55044
55045         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55046         findings.
55047
55048 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55049             Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/unistd.in.h: Include <winsock2.h>.
55052         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55053         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55054         Provide dummy declarations.
55055         (gethostname): Override.
55056         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55057         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55058         gl_PREREQ_SYS_H_WINSOCK2.
55059         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55060         * doc/posix-functions/gethostname.texi: More details.
55061
55062 2008-10-25  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55065         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55066         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55067
55068         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55069         here ...
55070         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55072         gl_UNISTD_H_DEFAULTS.
55073
55074 2008-10-25  Eric Blake  <ebb9@byu.net>
55075
55076         signbit: avoid spurious compiler failure
55077         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55078         declarations inside function.
55079
55080 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55081             Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55084         * modules/random_r (Depends-on): Add stdint.
55085
55086 2008-10-24  Bruno Haible  <bruno@clisp.org>
55087
55088         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55089         Eggert.
55090         * modules/strerror (License): Likewise.
55091
55092 2008-10-24  Jim Meyering  <meyering@redhat.com>
55093
55094         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55095         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55096
55097 2008-10-24  Eric Blake  <ebb9@byu.net>
55098
55099         getgroups: fix compilation when getgroups is available
55100         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55101         but with <config.h> override of getgroups disabled.
55102
55103 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55104
55105         * doc/gnulib.texi (Header files): Add note about C++ problems.
55106         Explained by Bruno Haible <bruno@clisp.org>.
55107
55108 2008-10-23  Bruno Haible  <bruno@clisp.org>
55109
55110         Define a dummy SA_NODEFER macro on Interix.
55111         * lib/signal.in.h (SA_NODEFER): Define fallback.
55112         Reported by Aleksey Cheusov <cheusov@tut.by> via
55113         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55114
55115 2008-10-23  Bruno Haible  <bruno@clisp.org>
55116
55117         * modules/freadahead (License): Change to LGPLv2+.
55118         Suggested by Simon Josefsson.
55119
55120 2008-10-23  Jim Meyering  <meyering@redhat.com>
55121
55122         random_r: new module
55123         * modules/random_r: New file.
55124         * m4/random_r.m4: New file.
55125         * lib/random_r.c: New file, from glibc.
55126         * modules/random_r-tests: New file.
55127         * tests/test-random_r.c: New file.
55128         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55129          Declare.
55130         (RAND_MAX): Define.
55131         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55132         * modules/stdlib: Substitute them, too.
55133         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55134         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55135         * doc/glibc-functions/random_r.texi: Likewise.
55136         * doc/glibc-functions/setstate_r.texi: Likewise.
55137         * doc/glibc-functions/srandom_r.texi: Likewise.
55138         * config/srclist.txt: Mention it.
55139
55140 2008-10-23  David Lutterkort  <lutter@redhat.com>
55141
55142         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55143         link requirement
55144
55145 2008-10-23  Jim Meyering  <meyering@redhat.com>
55146
55147         selinux-h: mark parameters of stub functions as intentionally unused
55148         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55149         * lib/se-context.in.h: Likewise.
55150
55151 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55152
55153         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55154
55155 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55156
55157         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55158
55159 2008-10-22  Eric Blake  <ebb9@byu.net>
55160
55161         glthread/thread: avoid compiler warning
55162         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55163         Add unreachable abort to silence compiler.
55164
55165 2008-10-22  Eric Blake  <ebb9@byu.net>
55166
55167         netdb: also supply struct addrinfo for cygwin 1.5.x
55168         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55169         older cygwin.
55170         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55171         cygwin.
55172         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55173
55174 2008-10-22  Bruno Haible  <bruno@clisp.org>
55175
55176         * users.txt: Update entry about pspp.
55177
55178 2008-10-21  Bruno Haible  <bruno@clisp.org>
55179
55180         Simplification.
55181         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55182         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55183
55184         Simplification.
55185         * lib/ioctl.c (ioctl): Don't undefine.
55186         * lib/socket.c (socket): Don't undefine.
55187
55188         Remove unused module indicator macros.
55189         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55190         GNULIB_$1 as a C macro.
55191
55192         * doc/posix-functions/close.texi: Undo last change.
55193         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55194         Windows platforms.
55195
55196 2008-10-21  Bruno Haible  <bruno@clisp.org>
55197
55198         Add gethostname() declaration to <unistd.h>.
55199         * lib/unistd.in.h (gethostname): New declaration.
55200         * lib/gethostname.c: Include <unistd.h>.
55201         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55202         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55204         and HAVE_GETHOSTNAME.
55205         * modules/gethostname (Depends-on): Add unistd.
55206         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55207         (Include): Specify <unistd.h>.
55208         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55209         HAVE_GETHOSTNAME.
55210         * tests/test-gethostname.c: Include <unistd.h> first.
55211
55212 2008-10-21  Bruno Haible  <bruno@clisp.org>
55213
55214         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55215         * modules/select-tests (Depends-on): Likewise.
55216         Reported by Simon Josefsson.
55217
55218 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55219
55220         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55221         * lib/accept.c: New file, based on winsock.c.
55222         * lib/bind.c: New file, based on winsock.c.
55223         * lib/connect.c: New file, based on winsock.c.
55224         * lib/getpeername.c: New file, based on winsock.c.
55225         * lib/getsockname.c: New file, based on winsock.c.
55226         * lib/getsockopt.c: New file, based on winsock.c.
55227         * lib/ioctl.c: New file, based on winsock.c.
55228         * lib/listen.c: New file, based on winsock.c.
55229         * lib/recv.c: New file, based on winsock.c.
55230         * lib/recvfrom.c: New file, based on winsock.c.
55231         * lib/send.c: New file, based on winsock.c.
55232         * lib/sendto.c: New file, based on winsock.c.
55233         * lib/setsockopt.c: New file, based on winsock.c.
55234         * lib/shutdown.c: New file, based on winsock.c.
55235         * lib/socket.c: New file, based on winsock.c.
55236         * lib/w32sock.h: New file, based on winsock.c.
55237         * lib/winsock.c: Remove file.
55238         * modules/accept: Likewise.
55239         * modules/bind: Likewise.
55240         * modules/connect: Likewise.
55241         * modules/getpeername: Likewise.
55242         * modules/getsockname: Likewise.
55243         * modules/getsockopt: Likewise.
55244         * modules/ioctl: Likewise.
55245         * modules/listen: Likewise.
55246         * modules/recv: Likewise.
55247         * modules/recvfrom: Likewise.
55248         * modules/send: Likewise.
55249         * modules/sendto: Likewise.
55250         * modules/setsockopt: Likewise.
55251         * modules/shutdown: Likewise.
55252         * modules/socket: Use socket.c instead of winsock.c.
55253         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55254         * doc/posix-functions/accept.texi: Doc fix.
55255         * doc/posix-functions/bind.texi: Doc fix.
55256         * doc/posix-functions/close.texi: Doc fix.
55257         * doc/posix-functions/connect.texi: Doc fix.
55258         * doc/posix-functions/getpeername.texi: Doc fix.
55259         * doc/posix-functions/getsockname.texi: Doc fix.
55260         * doc/posix-functions/getsockopt.texi: Doc fix.
55261         * doc/posix-functions/ioctl.texi: Doc fix.
55262         * doc/posix-functions/listen.texi: Doc fix.
55263         * doc/posix-functions/recv.texi: Doc fix.
55264         * doc/posix-functions/recvfrom.texi: Doc fix.
55265         * doc/posix-functions/send.texi: Doc fix.
55266         * doc/posix-functions/sendto.texi: Doc fix.
55267         * doc/posix-functions/setsockopt.texi: Doc fix.
55268         * doc/posix-functions/shutdown.texi: Doc fix.
55269         * doc/posix-functions/socket.texi: Doc fix.
55270
55271 2008-10-20  Bruno Haible  <bruno@clisp.org>
55272
55273         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55274         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55275         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55276         as an alias for SIGABRT.
55277         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55278         (sigaction): Map it to SIGABRT.
55279         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55280
55281 2008-10-20  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/fts.c: Don't include lstat.h.
55284         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55285
55286         Move the lstat() declaration to <sys/stat.h>.
55287         * lib/lstat.h: Remove file.
55288         * lib/sys_stat.in.h: Add special invocation convention.
55289         (lstat): New declaration.
55290         * lib/lstat.c (orig_lstat): New function.
55291         (rpl_lstat): Use orig_lstat instead of lstat.
55292         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55293         AC_C_INLINE. Set REPLACE_LSTAT.
55294         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55295         and REPLACE_LSTAT.
55296         * modules/lstat (Files): Remove lib/lstat.h.
55297         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55298         (Include): Specify <sys/stat.h> instead of lstat.h.
55299         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55300         REPLACE_LSTAT.
55301         * NEWS: Mention the change.
55302
55303 2008-10-20  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/posix_spawn-tests: New file.
55306         * tests/test-posix_spawn3.c: New file.
55307
55308 2008-10-20  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55311         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55312         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55313         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55314         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55315
55316 2008-10-20  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55319         of posix_spawn on AIX 5.3.
55320
55321 2008-10-20  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55324
55325 2008-10-20  Bruno Haible  <bruno@clisp.org>
55326
55327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55328         of AC_LANG_PROGRAM.
55329
55330 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55331
55332         * lib/netdb.in.h: Don't define GNU specific constants until they
55333         are supported or needed.  Reported by Bruno Haible
55334         <bruno@clisp.org>.
55335
55336 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55337
55338         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55339
55340 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55341
55342         * lib/getaddrinfo.h: Remove file.
55343         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55344         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55345         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55346         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55347         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55348         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55349         * tests/test-getaddrinfo.c: Likewise.
55350         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55351         * NEWS: Mention change.
55352
55353 2008-10-19  Bruno Haible  <bruno@clisp.org>
55354
55355         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55356
55357 2008-10-19  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/wait-process.c: Include simply <sys/wait.h>.
55360         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55361         WIFSTOPPED): Remove fallback definitions.
55362         * modules/wait-process (Depends-on): Add sys_wait.
55363
55364         New module 'sys_wait'.
55365         * modules/sys_wait: New file.
55366         * lib/sys_wait.in.h: New file, partially copied from
55367         lib/wait-process.c.
55368         * m4/sys_wait_h.m4: New file.
55369         * doc/posix-headers/sys_wait.texi: Mention the new module.
55370
55371 2008-10-19  Bruno Haible  <bruno@clisp.org>
55372
55373         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55374
55375 2008-10-19  Bruno Haible  <bruno@clisp.org>
55376
55377         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55378         * lib/wait-process.c (WAIT_T): Remove type.
55379         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55380         (wait_subprocess): Update.
55381
55382 2008-10-19  Bruno Haible  <bruno@clisp.org>
55383
55384         New module 'atoll'.
55385         * modules/atoll: New file.
55386         * lib/stdlib.in.h (atoll): New declaration.
55387         * lib/atoll.c: New file, from glibc with modifications.
55388         * m4/atoll.m4: New file.
55389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55390         HAVE_ATOLL.
55391         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55392         * doc/posix-functions/atoll.texi: Mention the new module.
55393
55394 2008-10-19  Bruno Haible  <bruno@clisp.org>
55395
55396         Add strtoull() declaration to <stdlib.h>.
55397         * lib/stdlib.in.h (strtoull): New declaration.
55398         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55399         Set HAVE_STRTOULL.
55400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55401         HAVE_STRTOULL.
55402         * modules/strtoull (Depends-on): Add stdlib.
55403         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55404         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55405         HAVE_STRTOULL.
55406
55407 2008-10-19  Bruno Haible  <bruno@clisp.org>
55408
55409         Add strtoll() declaration to <stdlib.h>.
55410         * lib/stdlib.in.h (strtoll): New declaration.
55411         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55412         Set HAVE_STRTOLL.
55413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55414         HAVE_STRTOLL.
55415         * modules/strtoll (Depends-on): Add stdlib.
55416         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55417         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55418
55419 2008-10-19  Bruno Haible  <bruno@clisp.org>
55420
55421         * modules/bcopy (Depends-on): Add strings.
55422         (Include): Specify <strings.h>.
55423
55424 2008-10-19  Bruno Haible  <bruno@clisp.org>
55425
55426         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55427
55428 2008-10-19  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55431         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55432         mingw.
55433
55434 2008-10-19  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/atanl.c: Don't include isnanl.h.
55437         * lib/cosl.c: Likewise.
55438         * lib/ldexpl.c: Likewise.
55439         * lib/logl.c: Likewise.
55440         * lib/sinl.c: Likewise.
55441         * lib/sqrtl.c: Likewise.
55442         * lib/tanl.c: Likewise.
55443
55444         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55445         * lib/isnanf.h: Remove file.
55446         * lib/isnand.h: Remove file.
55447         * lib/isnanl.h: Remove file.
55448         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55449         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55450         macros.
55451         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55452         HAVE_ISNANF, don't define it as a C macro.
55453         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55454         HAVE_ISNAND, don't define it as a C macro.
55455         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55456         HAVE_ISNANL, don't define it as a C macro.
55457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55458         HAVE_ISNAN[FDL].
55459         * modules/isnanf (Files): Remove lib/isnanf.h.
55460         (Depends-on): Add math.
55461         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55462         (Include): Specify <math.h> instead of isnanf.h.
55463         * modules/isnand (Files): Remove lib/isnand.h.
55464         (Depends-on): Add math.
55465         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55466         (Include): Specify <math.h> instead of isnand.h.
55467         * modules/isnanl (Files): Remove lib/isnanl.h.
55468         (Depends-on): Add math.
55469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55470         (Include): Specify <math.h> instead of isnanl.h.
55471         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55472         HAVE_ISNAN[FDL].
55473         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55474         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55475         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55476         * NEWS: Mention the change.
55477
55478 2008-10-18  Bruno Haible  <bruno@clisp.org>
55479
55480         Add getusershell(), setusershell(), endusershell() declarations to
55481         <unistd.h>.
55482         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55483         declarations.
55484         * lib/getusershell.c: Include unistd.h.
55485         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55486         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55487         HAVE_GETUSERSHELL.
55488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55489         and HAVE_GETUSERSHELL.
55490         * modules/getusershell (Depends-on): Add unistd, extensions.
55491         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55492         (Include): Specify <unistd.h>.
55493         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55494         HAVE_GETUSERSHELL.
55495
55496 2008-10-18  Bruno Haible  <bruno@clisp.org>
55497
55498         Add a getloadavg() declaration to <stdlib.h>.
55499         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55500         getloadavg declaration.
55501         (getloadavg): New declaration.
55502         * lib/getloadavg.c: Include <stdlib.h> first.
55503         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55504         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55505         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55507         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55508         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55510         (Include): Specify <stdlib.h>.
55511         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55512         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55513
55514 2008-10-18  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/dirchownmod.c: Don't include lchmod.h.
55517
55518         Move the lchmod() declaration to <sys/stat.h>.
55519         * lib/lchmod.h: Remove file.
55520         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55521         (lchmod): New declaration, moved here from lib/lchown.h.
55522         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55523         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55525         and HAVE_LCHMOD.
55526         * modules/lchmod (Files): Remove lib/lchmod.h.
55527         (Depends-on): Add sys_stat, extensions.
55528         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55529         (Include): Specify <sys/stat.h> instead of lchmod.h.
55530         * modules/sys_stat (Depends-on): Add link-warning.
55531         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55532         definition of GL_LINK_WARNING.
55533         * NEWS: Mention the change.
55534
55535 2008-10-18  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/fchdir.c: Don't include dirfd.h.
55538         * lib/fts.c: Likewise.
55539         * lib/getcwd.c: Likewise.
55540         * lib/glob.c: Likewise.
55541
55542         Move the dirfd() declaration to <dirent.h>.
55543         * lib/dirfd.h: Remove file.
55544         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55545         (dirfd): New declaration.
55546         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55548         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55549         HAVE_DECL_DIRFD.
55550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55551         HAVE_DECL_DIRFD.
55552         * modules/dirfd (Files): Remove lib/dirfd.h.
55553         (Depends-on): Add dirent, extensions.
55554         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55555         (Include): Specify <dirent.h> instead of dirfd.h.
55556         * modules/dirent (Depends-on): Add link-warning.
55557         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55558         definition of GL_LINK_WARNING.
55559         * NEWS: Mention the change.
55560
55561 2008-10-18  Bruno Haible  <bruno@clisp.org>
55562
55563         Move the euidaccess() declaration to <unistd.h>.
55564         * lib/euidaccess.h: Remove file.
55565         * lib/unistd.in.h (euidaccess): New declaration.
55566         * lib/euidaccess.c: Don't include euidaccess.h.
55567         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55568         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55570         and HAVE_EUIDACCESS.
55571         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55572         (Depends-on): Add unistd.
55573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55574         (Include): Specify <unistd.h> instead of euidaccess.h.
55575         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55576         HAVE_EUIDACCESS.
55577         * NEWS: Mention the change.
55578
55579 2008-10-18  Bruno Haible  <bruno@clisp.org>
55580
55581         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55582
55583         Move the getdomainname() declaration to <unistd.h>.
55584         * lib/getdomainname.h: Remove file.
55585         * lib/unistd.in.h (getdomainname): New declaration.
55586         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55587         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55588         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55589         HAVE_GETDOMAINNAME.
55590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55591         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55592         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55593         (Depends-on): Add unistd, extensions.
55594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55595         (Includes): Specify <unistd.h> instead of getdomainname.h.
55596         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55597         HAVE_GETDOMAINNAME.
55598         * NEWS: Mention the change.
55599
55600 2008-10-18  Bruno Haible  <bruno@clisp.org>
55601
55602         * modules/dirent: New file.
55603         * m4/dirent_h.m4: New file.
55604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55605         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55606         * modules/fchdir (Files): Remove lib/dirent.in.h.
55607         (Depends-on): Add dirent.
55608         (Makefile.am): Move rules to modules/dirent.
55609         * doc/posix-headers/dirent.texi: Mention the new module.
55610
55611 2008-10-18  Bruno Haible  <bruno@clisp.org>
55612
55613         Avoid -Wunused-parameter warnings in public gnulib header files.
55614         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55615         macro.
55616         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55617
55618 2008-10-18  Bruno Haible  <bruno@clisp.org>
55619
55620         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55621         * doc/glibc-functions/error.texi: Mention the module 'error'.
55622         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55623         * doc/glibc-functions/getdomainname.texi: Mention the module
55624         'getdomainname'.
55625         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55626         * doc/glibc-functions/getpagesize.texi: Mention the module
55627         'getpagesize'.
55628         * doc/glibc-functions/getusershell.texi: Mention the module
55629         'getusershell'.
55630         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55631         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55632         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55633         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55634         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55635         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55636         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55637         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55638         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55639         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55640         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55641         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55642         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55643         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55644
55645 2008-10-17  Bruno Haible  <bruno@clisp.org>
55646
55647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55648         HP-UX and IRIX, use -0.0L.
55649         * tests/test-ceill.c (minus_zero): Likewise.
55650         * tests/test-floorl.c (minus_zero): Likewise.
55651         * tests/test-frexpl.c (minus_zero): Likewise.
55652         * tests/test-isnan.c (minus_zerol): Likewise.
55653         * tests/test-isnanl.h (minus_zero): Likewise.
55654         * tests/test-ldexpl.c (minus_zero): Likewise.
55655         * tests/test-roundl.c (minus_zero): Likewise.
55656         * tests/test-signbit.c (minus_zerol): Likewise.
55657         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55658         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55659         * tests/test-truncl.c (minus_zero): Likewise.
55660         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55661         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55662         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55663         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55664
55665 2008-10-17  Bruno Haible  <bruno@clisp.org>
55666
55667         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55668         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55669         that it gets activated only for gcc >= 3.0.
55670         * lib/dirent.in.h: Likewise.
55671         * lib/errno.in.h: Likewise.
55672         * lib/fcntl.in.h: Likewise.
55673         * lib/float.in.h: Likewise.
55674         * lib/iconv.in.h: Likewise.
55675         * lib/inttypes.in.h: Likewise.
55676         * lib/locale.in.h: Likewise.
55677         * lib/math.in.h: Likewise.
55678         * lib/netdb.in.h: Likewise.
55679         * lib/netinet_in.in.h: Likewise.
55680         * lib/search.in.h: Likewise.
55681         * lib/signal.in.h: Likewise.
55682         * lib/spawn.in.h: Likewise.
55683         * lib/stdarg.in.h: Likewise.
55684         * lib/stdint.in.h: Likewise.
55685         * lib/stdio.in.h: Likewise.
55686         * lib/stdlib.in.h: Likewise.
55687         * lib/string.in.h: Likewise.
55688         * lib/strings.in.h: Likewise.
55689         * lib/sys_file.in.h: Likewise.
55690         * lib/sys_ioctl.in.h: Likewise.
55691         * lib/sys_select.in.h: Likewise.
55692         * lib/sys_socket.in.h: Likewise.
55693         * lib/sys_stat.in.h: Likewise.
55694         * lib/sys_time.in.h: Likewise.
55695         * lib/sysexits.in.h: Likewise.
55696         * lib/time.in.h: Likewise.
55697         * lib/unistd.in.h: Likewise.
55698         * lib/wchar.in.h: Likewise.
55699         * lib/wctype.in.h: Likewise.
55700         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55701
55702 2008-10-17  Jim Meyering  <meyering@redhat.com>
55703
55704         ignore-value: don't depend on inline module
55705         * modules/ignore-value (Depends-on): Remove 'inline'.
55706         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55707         Suggestion from Bruno Haible.
55708
55709 2008-10-17  Bruno Haible  <bruno@clisp.org>
55710
55711         New implementation of condition variables for Win32.
55712         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55713         (gl_linked_waitqueue_t): New type.
55714         (gl_cond_t): Use it.
55715         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55716         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55717         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55718         (glthread_cond_init_func, glthread_cond_wait_func,
55719         glthread_cond_timedwait_func, glthread_cond_signal_func,
55720         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55721         Reimplemented on the basis of gl_linked_waitqueue_t.
55722         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55723         gl_waitqueue_t.
55724         (gl_rwlock_t): Update.
55725         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55726
55727 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55728
55729         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55730         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55731
55732 2008-10-17  Jim Meyering  <meyering@redhat.com>
55733
55734         ignore-value: new module
55735         * modules/ignore-value: New file.
55736         * lib/ignore-value.h: New file.
55737         * MODULES.html.sh (Compiler warning management): New section,
55738         just for this module.  More to come.
55739
55740 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55743         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55744         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55745
55746 2008-10-16  Jim Meyering  <meyering@redhat.com>
55747
55748         openat-die.c: avoid 'no previous prototype' warning
55749         * lib/openat-die.c: Include "openat.h".
55750         Reported by Reuben Thomas <rrt@sc3d.org>.
55751
55752 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55753
55754         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55755         * lib/netdb.in.h: Fix typo.
55756         Reported by Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/netdb.in.h: Include sys/socket.h for platforms without
55759         netdb.h, to get structures like hostent on MinGW.
55760         * modules/netdb (Depends-on): Add sys_socket.
55761
55762 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55763
55764         * modules/netdb, modules/netdb-tests: New file.
55765         * m4/netdb_h.m4: New file.
55766         * lib/netdb.in.h: Add, currently just an empty file pending
55767         definitions.
55768         * tests/test-netdb.c: New file.
55769         * doc/posix-headers/netdb.texi: Mention that we replace it if
55770         needed.
55771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55772         netdb.
55773
55774 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55775
55776         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55777         with code.
55778
55779 2008-10-13  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/glthread/cond.c (glthread_cond_wait_func,
55782         glthread_cond_timedwait_func): Add a comment.
55783
55784 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55785
55786         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55787         * tests/test-select.c: Likewise,
55788
55789 2008-10-13  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/glthread/cond.c (glthread_cond_wait_func,
55792         glthread_cond_timedwait_func): Fix variable name.
55793         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55794
55795 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55796
55797         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55799         struct sockaddr.sa_len.
55800         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55801
55802 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55803
55804         * build-aux/pmccabe2html: Add css and css_url parameters.
55805
55806 2008-10-12  Bruno Haible  <bruno@clisp.org>
55807
55808         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55809         calling aclx_get.
55810         Reported by Rainer Tammer <tammer@tammer.net>.
55811
55812 2008-10-12  Bruno Haible  <bruno@clisp.org>
55813
55814         Use msvcrt aware primitives for creation/termination of Win32 threads.
55815         * lib/glthread/thread.c: Include <process.h>.
55816         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55817         (wrapper_func): Update signature.
55818         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55819
55820 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55821             Bruno Haible  <bruno@clisp.org>
55822
55823         Provide a Win32 implementation of the 'cond' module.
55824         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55825         * lib/glthread/cond.c (glthread_cond_init_func,
55826         glthread_cond_wait_func, glthread_cond_timedwait_func,
55827         glthread_cond_signal_func, glthread_cond_broadcast_func,
55828         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55829         * modules/cond (Dependencies): Add gettimeofday.
55830
55831 2008-10-11  Bruno Haible  <bruno@clisp.org>
55832
55833         Make sleep work on older versions of mingw.
55834         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55835         only whether it exists.
55836         * doc/posix-functions/sleep.texi: Mention the problem with older
55837         versions of mingw.
55838
55839 2008-10-11  Bruno Haible  <bruno@clisp.org>
55840
55841         New module 'shutdown'.
55842         * modules/shutdown: New file.
55843         * lib/sys_socket.in.h (shutdown): New declaration.
55844         * lib/winsock.c (shutdown): New function.
55845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55846         GNULIB_SHUTDOWN.
55847         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55848         * doc/posix-functions/shutdown.texi: Document the new module.
55849
55850 2008-10-11  Jim Meyering  <meyering@redhat.com>
55851
55852         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55853
55854 2008-10-11  Bruno Haible  <bruno@clisp.org>
55855
55856         New module 'fclose'.
55857         * modules/fclose: New file.
55858         * lib/stdio.in.h (fclose): New declaration.
55859         * lib/fclose.c: New file.
55860         * m4/fclose.m4: New file.
55861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55862         REPLACE_FCLOSE.
55863         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55864         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55865         REPLACE_FCLOSE.
55866         * modules/close (Depends-on): fclose.
55867         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55868
55869 2008-10-11  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55872         set errno and don't call _close.
55873
55874 2008-10-10  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55877         ACL, not afterwards. Fixes test failure on Cygwin.
55878
55879 2008-10-09  Ben Pfaff  <blp@gnu.org>
55880
55881         * build-aux/announce-gen: Fix gnulib version related part of usage
55882         message.  Die with a useful error message if no tarballs are
55883         found.
55884
55885 2008-10-10  Jim Meyering  <meyering@redhat.com>
55886
55887         bootstrap: use git's --depth=N option only if it's supported
55888         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55889         recognize the --depth option.  Reported by Pádraig Brady.
55890
55891 2008-10-09  Bruno Haible  <bruno@clisp.org>
55892
55893         New module 'ioctl'.
55894         * modules/ioctl: New file.
55895         * lib/sys_socket.in.h (ioctl): Remove declaration.
55896         * lib/winsock.c: Include <sys/ioctl.h>.
55897         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55898         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55899         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55900         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55901         * doc/posix-functions/ioctl.texi: Mention the new module.
55902
55903 2008-10-09  Bruno Haible  <bruno@clisp.org>
55904
55905         New module 'sys_ioctl'.
55906         * lib/sys_ioctl.in.h: New file.
55907         * m4/sys_ioctl_h.m4: New file.
55908         * modules/sys_ioctl: New file.
55909         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55910
55911 2008-10-09  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55914         * lib/winsock.c: Include <stdarg.h>.
55915         (rpl_ioctl): Change to second argument 'int' and then varargs.
55916
55917 2008-10-09  Bruno Haible  <bruno@clisp.org>
55918
55919         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55920         when the sys_socket module is present and the system has <winsock2.h>.
55921
55922 2008-10-09  Bruno Haible  <bruno@clisp.org>
55923
55924         * doc/posix-functions/close.texi: Mention module 'close' instead of
55925         module 'sys_socket'.
55926
55927 2008-10-09  Bruno Haible  <bruno@clisp.org>
55928
55929         * doc/glibc-headers/sys_ioctl.texi: New file.
55930         * doc/gnulib.texi: Include it.
55931
55932 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55933             Bruno Haible  <bruno@clisp.org>
55934
55935         Combine the two replacements of 'close'.
55936         * lib/sys_socket.in.h (close): Define to a reminder to include
55937         <unistd.h>.
55938         (_gl_close_fd_maybe_socket): New declaration.
55939         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55940         * lib/winsock.c (close): Remove undefinition.
55941         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55942         needed for the gnulib module 'close'.
55943         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55944         define to an error symbol or to a warning, if suitable.
55945         * lib/close.c: Include <sys/socket.h>.
55946         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55947         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55948         UNISTD_H_HAVE_WINSOCK2_H.
55949         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55951         UNISTD_H_HAVE_WINSOCK2_H.
55952         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55953         (configure.ac): Set a module indicator.
55954         (Makefile.am): Substitute GNULIB_CLOSE.
55955         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55956         * modules/poll-tests (Depends-on): Add close.
55957         * modules/select-tests (Depends-on): Likewise.
55958
55959 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55960             Bruno Haible  <bruno@clisp.org>
55961
55962         New module 'close'.
55963         * modules/close: New file.
55964         * lib/unistd.in.h (close): Move declaration out of the
55965         FCHDIR_REPLACEMENT scope.
55966         (_gl_unregister_fd): New declaration.
55967         * lib/close.c: New file.
55968         * lib/fchdir.c (rpl_close): Remove function.
55969         * m4/close.m4: New file.
55970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55971         close.
55972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55973         REPLACE_CLOSE.
55974         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55975         REPLACE_CLOSE.
55976         * modules/fchdir (Depends-on): Add close.
55977
55978 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55979             Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/fcntl.in.h (open): Simplify conditionals.
55982         (_gl_register_fd): New declaration.
55983         * lib/fchdir.c (rpl_open): Remove function.
55984         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55985         also.
55986         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55988         open.
55989
55990 2008-10-09  Jim Meyering  <meyering@redhat.com>
55991
55992         GNUmakefile: use the more name-space-friendly "_version"
55993         * top/GNUmakefile (_dummy): Update.
55994         (_version): Rename from "version".
55995
55996 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55997             Bruno Haible  <bruno@clisp.org>
55998
55999         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56000         rpl_close.
56001         (_gl_register_fd): New function, extracted from rpl_open.
56002         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56003         (rpl_open, rpl_opendir): Use _gl_register_fd.
56004
56005 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56006
56007         Fix organization of 'open' replacement.
56008         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56009         (gl_FUNC_OPEN): Use it.
56010         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56011
56012 2008-10-08  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56015
56016 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56017
56018         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56019         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56020         listen).
56021
56022 2008-10-08  Eric Blake  <ebb9@byu.net>
56023
56024         GNUmakefile: add 'make version' target
56025         * top/GNUmakefile (_curr-ver): Split version update rules...
56026         (version): ...into a target.
56027
56028 2008-10-07  Bruno Haible  <bruno@clisp.org>
56029
56030         Use a more portable replacement expression for -0.0L.
56031         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56032         instead of -0.0L. Fix m4 quotation.
56033
56034         * tests/test-signbit.c: Include <float.h>.
56035         (minus_zero): New variable.
56036         (test_signbitl): Use minus_zero instead of -zero.
56037         * modules/signbit-tests (Depends-on): Add float.
56038
56039         * tests/test-ceill.c: Include <float.h>.
56040         (zero): Remove variable.
56041         (minus_zero): New variable.
56042         (main): Use minus_zero instead of -zero.
56043         * modules/ceill-tests (Depends-on): Add float.
56044
56045         * tests/test-floorl.c: Include <float.h>.
56046         (zero): Remove variable.
56047         (minus_zero): New variable.
56048         (main): Use minus_zero instead of -zero.
56049         * modules/floorl-tests (Depends-on): Add float.
56050
56051         * tests/test-roundl.c: Include <float.h>.
56052         (zero): Remove variable.
56053         (minus_zero): New variable.
56054         (main): Use minus_zero instead of -zero.
56055         * modules/roundl-tests (Depends-on): Add float.
56056
56057         * tests/test-truncl.c: Include <float.h>.
56058         (zero): Remove variable.
56059         (minus_zero): New variable.
56060         (main): Use minus_zero instead of -zero.
56061         * modules/truncl-tests (Depends-on): Add float.
56062
56063         * tests/test-frexpl.c (zero): Remove variable.
56064         (minus_zero): New variable.
56065         (main): Use minus_zero instead of -zero.
56066         * modules/frexpl-tests (Depends-on): Add float.
56067
56068         * tests/test-isnan.c (zerol): Remove variable.
56069         (minus_zerol): New variable.
56070         (test_long_double): Use minus_zerol instead of -zerol.
56071         * modules/isnan-tests (Depends-on): Add float.
56072
56073         * tests/test-isnanl.h (zero): Remove variable.
56074         (minus_zero): New variable.
56075         (main): Use minus_zero instead of -zero.
56076         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56077         * modules/isnanl-tests (Depends-on): Add float.
56078
56079         * tests/test-ldexpl.c (zero): Remove variable.
56080         (minus_zero): New variable.
56081         (main): Use minus_zero instead of -zero.
56082         * modules/ldexpl-tests (Depends-on): Add float.
56083
56084         * tests/test-snprintf-posix.h (zerol): Remove variable.
56085         (minus_zerol): New variable.
56086         (test_function): Use minus_zerol instead of -zerol.
56087         * modules/snprintf-posix-tests (Depends-on): Add float.
56088         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56089
56090         * tests/test-sprintf-posix.h (zerol): Remove variable.
56091         (minus_zerol): New variable.
56092         (test_function): Use minus_zerol instead of -zerol.
56093         * modules/sprintf-posix-tests (Depends-on): Add float.
56094         * modules/vsprintf-posix-tests (Depends-on): Add float.
56095
56096         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56097         (minus_zerol): New variable.
56098         (test_function): Use minus_zerol instead of -zerol.
56099         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56100
56101         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56102         (minus_zerol): New variable.
56103         (test_function): Use minus_zerol instead of -zerol.
56104         * modules/vasprintf-posix-tests (Depends-on): Add float.
56105
56106 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56107
56108         * MODULES.html.sh (Support for building documentation): Mention
56109         pmccabe2html.  Sort entries.
56110
56111         Add pmccabe2html module, from gnupdf.
56112         * build-aux/pmccabe.css: New file.
56113         * build-aux/pmccabe2html: New file.
56114         * m4/pmccabe2html.m4: New file.
56115         * modules/pmccabe2html: New file.
56116
56117 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56118
56119         flock: new module
56120         * MODULES.html.sh: Add to list of modules.
56121         * lib/flock.c: flock implementation for Windows and Unix systems
56122         which have fcntl.
56123         * doc/glibc-functions/flock.texi: Update documentation.
56124         * lib/sys_file.in.h: <sys/file.h> header file.
56125         * m4/flock.m4: M4 macros.
56126         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56127         * modules/flock: flock module.
56128         * modules/flock-tests: flock tests module.
56129         * modules/sys_file: sys/file.h module.
56130         * tests/test-flock.c: test suite for flock.
56131
56132 2008-10-06  Jim Meyering  <meyering@redhat.com>
56133
56134         bootstrap: check for LT_INIT more portably still ;-)
56135         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56136         Spotted by Bruno Haible.
56137
56138 2008-10-06  Eric Blake  <ebb9@byu.net>
56139
56140         test-signbit: avoid tripping Irix cc bug on -0.0L
56141         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56142         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56143         entire testsuite consistent and avoids an Irix 6.2 bug.
56144
56145 2008-10-05  Bruno Haible  <bruno@clisp.org>
56146             Jim Meyering  <jim@meyering.net>
56147
56148         Add an option for ignoring EPIPE during close_stdout.
56149         * lib/closeout.h: Include <stdbool.h>.
56150         (close_stdout_set_ignore_EPIPE): New declaration.
56151         * lib/closeout.c: Include <stdbool.h>.
56152         (ignore_EPIPE): New variable.
56153         (close_stdout_set_ignore_EPIPE): New function.
56154         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56155         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56156         failure.
56157         * modules/closeout (Depends-on): Add stdbool.
56158
56159 2008-10-05  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/accept: New file.
56162         * modules/bind: New file.
56163         * modules/connect: New file.
56164         * modules/getpeername: New file.
56165         * modules/getsockname: New file.
56166         * modules/getsockopt: New file.
56167         * modules/listen: New file.
56168         * modules/recv: New file.
56169         * modules/recvfrom: New file.
56170         * modules/send: New file.
56171         * modules/sendto: New file.
56172         * modules/setsockopt: New file.
56173         * modules/socket: New file.
56174         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56175         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56176         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56177         the particular module is requested. Add a link warning when the
56178         particular module is not requested.
56179         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56180         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56181         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56182         the particular module is requested.
56183         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56184         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56185         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56186         * modules/sys_socket (Depends-on): Add link-warning.
56187         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56188         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56189         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56190         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56191         GL_LINK_WARNING.
56192         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56193         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56194         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56195         * doc/posix-functions/getpeername.texi: Mention the new module
56196         'getpeername'.
56197         * doc/posix-functions/getsockname.texi: Mention the new module
56198         'getsockname'.
56199         * doc/posix-functions/getsockopt.texi: Mention the new module
56200         'getsockopt'.
56201         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56202         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56203         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56204         * doc/posix-functions/send.texi: Mention the new module 'send'.
56205         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56206         * doc/posix-functions/setsockopt.texi: Mention the new module
56207         'setsockopt'.
56208         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56209         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56210         listen, connect, accept.
56211         * modules/select-tests (Depends-on): Likewise.
56212
56213 2008-10-05  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/winsock.c (strerror): Remove unused #undef.
56216         (rpl_close): Remove unused local variable.
56217
56218         * modules/sys_socket (Depends-on); Add errno.
56219
56220 2008-10-05  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56223         (select): Add a link warning when the 'select' module is not used.
56224         * modules/sys_select (Depends-on): Add link-warning.
56225         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56226         Suggested by Paolo Bonzini.
56227
56228 2008-10-05  Jim Meyering  <meyering@redhat.com>
56229
56230         bootstrap: check for LT_INIT more portably
56231         * build-aux/bootstrap: Avoid using grep -E, since it's not
56232         portable enough.  Suggestion from Bruno Haible.
56233
56234 2008-10-05  Bruno Haible  <bruno@clisp.org>
56235
56236         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56237         as being fixed by gnulib.
56238
56239 2008-10-05  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/select-tests: New file, mostly copied from
56242         modules/sys_select-tests.
56243         * tests/test-select.c: New file, mostly copied from
56244         tests/test-sys_select.c.
56245         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56246         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56247         (Makefile.am): Remove test_sys_select_LDADD.
56248
56249         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56250         to an undefined symbol, for an error message.
56251         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56252         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56253         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56254         winsock-select.c here.
56255         * modules/sys_select (Files): Remove lib/winsock-select.c.
56256         (Depends-on): Remove alloca.
56257         (Makefile.am): Substitute GNULIB_SELECT.
56258         * modules/select: New file.
56259         * doc/posix-functions/select.texi: Update.
56260
56261 2008-10-05  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56264         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56265         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56266         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56267         getdtablesize.
56268         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56269         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56270
56271 2008-10-05  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/getdtablesize-tests: New file.
56274         * tests/test-getdtablesize.c: New file.
56275
56276         New module 'getdtablesize'.
56277         * lib/unistd.in.h (getdtablesize): New declaration.
56278         * lib/getdtablesize.c: New file.
56279         * m4/getdtablesize.m4: New file.
56280         * modules/getdtablesize: New file.
56281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56282         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56283         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56284         HAVE_GETDTABLESIZE.
56285         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56286
56287 2008-10-05  Bruno Haible  <bruno@clisp.org>
56288
56289         * modules/sched (Makefile.am): Fix typo.
56290         Reported by Simon Josefsson.
56291
56292 2008-10-05  Jim Meyering  <meyering@redhat.com>
56293
56294         bootstrap: check for LT_INIT, too
56295         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56296         are deprecated.  Suggestion from Ralf Wildenhues.
56297
56298 2008-10-05  Bruno Haible  <bruno@clisp.org>
56299
56300         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56301         overriding them by ours.
56302         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56303
56304 2008-10-05  Jim Meyering  <meyering@redhat.com>
56305
56306         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56307         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56308         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56309
56310 2008-10-04  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/dup2 (License): Change to LGPLv2+.
56313         * modules/sleep (License): Likewise.
56314         * modules/perror (License): Likewise.
56315         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56316         Blake.
56317         * modules/signal (License): Likewise.
56318         * modules/sigprocmask (License): Likewise.
56319         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56320         Meyering.
56321
56322 2008-10-04  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56325         Reported by Rainer Tammer <tammer@tammer.net>.
56326
56327 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56328             Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56331         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56332         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56333
56334 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56335
56336         filevercmp: new module
56337         * lib/filevercmp.h: New function filevercmp comparing version strings.
56338         * lib/filevercmp.c: Implementation of filevercmp function.
56339         * modules/filevercmp: Module metadata.
56340         * tests/test-filevercmp.c: Unit test for new module.
56341         * modules/filevercmp-tests: Unit test metadata.
56342         * MODULES.html.sh: Add filevercmp module.
56343
56344 2008-10-03  Bruno Haible  <bruno@clisp.org>
56345
56346         * lib/c-ctype.h: Add comment.
56347         Reported by Jim Meyering.
56348
56349 2008-10-02  Bruno Haible  <bruno@clisp.org>
56350
56351         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56352
56353 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56354
56355         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56356         name of bootstrap.conf accordingly.
56357
56358 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56359
56360         * build-aux/bootstrap: Install git-merge-changelog configuration
56361         items into .gitconfig if needed.
56362
56363 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56364
56365         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56366         git repository, and initialize/update it accordingly.
56367
56368 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56369
56370         * modules/fsync-tests: New file.
56371         * tests/test-fsync.c: New file.
56372
56373         New module 'fsync'.
56374         * lib/fsync.c: New file.
56375         * m4/fsync.m4: New file.
56376         * modules/fsync: New file.
56377         * lib/unistd.in.h (fsync): New declaration.
56378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56379         GNULIB_FSYNC and HAVE_FSYNC.
56380         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56381         * MODULES.html.sh (posix_functions): Add fsync.
56382         * doc/posix-functions/fsync.texi: Mention the new module.
56383
56384 2008-10-02  Jim Meyering  <meyering@redhat.com>
56385
56386         fts.c: sync with similar code from coreutils' remove.c
56387         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56388         Guard also with "#if defined __linux__", since for now at least,
56389         this code is Linux-kernel-specific.
56390
56391 2008-10-02  Jim Meyering  <meyering@redhat.com>
56392
56393         fts: bug fixes
56394         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56395         Include <sys/vfs.h>, not <sys/statfs.h>.
56396
56397         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56398         Include <sys/vfs.h>, not <sys/statfs.h>.
56399
56400 2008-10-01  Bruno Haible  <bruno@clisp.org>
56401
56402         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56404         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56405         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56406         * doc/posix-functions/posix_spawnp.texi: Likewise.
56407         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56408         whether posix_spawn actually works.
56409         * m4/pipe.m4 (gl_PIPE): Likewise.
56410         * modules/execute (Files): Add m4/posix_spawn.m4.
56411         * modules/pipe (Files): Add m4/posix_spawn.m4.
56412         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56413
56414 2008-10-01  Jim Meyering  <meyering@redhat.com>
56415
56416         remove trailing spaces
56417         * NEWS: Likewise.
56418         * lib/poll.c (poll): Likewise.
56419         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56420         * lib/winsock.c (rpl_close): Likewise.
56421         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56422         * modules/yield: Likewise.
56423         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56424         * tests/test-sys_select.c (connect_to_socket): Likewise.
56425
56426         fts.c: adjust a new interface to be more generally useful
56427         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56428         (fts_build): Adjust caller.
56429
56430 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56431
56432         * modules/cond-tests: New file.
56433         * tests/test-cond.c: New file.
56434
56435 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56436             Bruno Haible  <bruno@clisp.org>
56437
56438         * modules/cond (Dependencies): Add errno, time.
56439         * lib/glthread/cond.h: Include <time.h>.
56440         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56441         across platforms.
56442
56443 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56444             Bruno Haible  <bruno@clisp.org>
56445
56446         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56447
56448 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56449             Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/tls-tests (Depends-on): Add thread, yield.
56452         (configure.ac): Remove all checks.
56453         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56454         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56455         gl_thread_self): Remove definitions. Include glthread/thread.h and
56456         glthread/yield.h instead.
56457         (test_tls): Pass an additional NULL argument to gl_thread_join.
56458
56459 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56460             Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/lock-tests (Depends-on): Add thread, yield.
56463         (configure.ac): Remove all checks.
56464         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56465         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56466         gl_thread_self): Remove definitions. Include glthread/thread.h and
56467         glthread/yield.h instead.
56468         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56469         additional NULL argument to gl_thread_join.
56470
56471 2008-09-30  Bruno Haible  <bruno@clisp.org>
56472
56473         Fix the Win32 implementation of the 'thread' module.
56474         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56475         pointer type.
56476         (gl_thread_self): Invoke gl_thread_self_func.
56477         (gl_thread_self_func): New declaration.
56478         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56479         (do_init_self_key, init_self_key): New functions.
56480         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56481         Remove some fields.
56482         (running_threads, running_lock): Remove variables.
56483         (get_current_thread_handle): New function.
56484         (gl_thread_self_func, wrapper_func, glthread_create_func,
56485         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56486         simplified.
56487
56488 2008-09-30  Bruno Haible  <bruno@clisp.org>
56489
56490         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56491         files.
56492
56493 2008-09-30  Jim Meyering  <meyering@redhat.com>
56494
56495         fts.m4: correct the test for statfs.f_type
56496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56497         when checking for statfs.f_type.
56498
56499 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56500
56501         tests: avoid some compiler warnings
56502         * tests/test-memchr.c (main): Pass NULL indirectly.
56503         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56504
56505 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56506
56507         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56508         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56509         exactly specified dayshifts.
56510         (dayshift): New rule.
56511         (rel): Add dayshift.
56512         (relative_time_table) [tomorrow, yesterday, today, now]:
56513         Use tDAY_SHIFT in place of tDAY_UNIT.
56514         * tests/test-getdate.c: Add tests for now-disallowed countable
56515         dayshifts, e.g., "4 yesterday ago".
56516
56517 2008-09-29  Bruno Haible  <bruno@clisp.org>
56518
56519         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56520         * tests/test-posix_spawn1.in.sh: Renamed from
56521         tests/test-posix_spawn.in.sh.
56522         * tests/test-posix_spawn2.c: New file.
56523         * tests/test-posix_spawn2.in.sh: New file.
56524         * modules/posix_spawnp-tests (Files): Update.
56525         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56526
56527 2008-09-29  Bruno Haible  <bruno@clisp.org>
56528
56529         Propagate effects of putenv/setenv/unsetenv to child processes.
56530         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56531         * lib/pipe.c (create_pipe): Likewise.
56532
56533 2008-09-29  Bruno Haible  <bruno@clisp.org>
56534
56535         Enable use of shell scripts as executables in mingw.
56536         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56537         run the program as a shell script.
56538         * lib/pipe.c (create_pipe): Likewise.
56539         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56540         resulting array.
56541
56542 2008-09-29  Eric Blake  <ebb9@byu.net>
56543
56544         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56545
56546 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56547
56548         * doc/posix-functions/accept.texi: Update mingw problems.
56549         * doc/posix-functions/bind.texi: Update mingw problems.
56550         * doc/posix-functions/close.texi: Update mingw problems.
56551         * doc/posix-functions/connect.texi: Update mingw problems.
56552         * doc/posix-functions/getpeername.texi: Update mingw problems.
56553         * doc/posix-functions/getsockname.texi: Update mingw problems.
56554         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56555         * doc/posix-functions/ioctl.texi: Update mingw problems.
56556         * doc/posix-functions/listen.texi: Update mingw problems.
56557         * doc/posix-functions/recv.texi: Update mingw problems.
56558         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56559         * doc/posix-functions/select.texi: Update mingw problems.
56560         * doc/posix-functions/send.texi: Update mingw problems.
56561         * doc/posix-functions/sendto.texi: Update mingw problems.
56562         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56563         * doc/posix-functions/socket.texi: Update mingw problems.
56564
56565 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56566             Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/sys_select.in.h: Include sys/time.h.
56569         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56570         * modules/sys_select: Depend on sys_time.
56571         * tests/test-sys_select.c: Test that sys/select.h defines struct
56572         timeval fully.
56573
56574 2008-09-29  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56577         * lib/sys_select.in.h: Likewise.
56578
56579 2008-09-29  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56582
56583 2008-09-29  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56586         Set LIBSOCKET instead of augmenting LIBS.
56587         * modules/sockets (Link): New section.
56588         * modules/sockets-tests (test_sockets_LDADD): New variable.
56589         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56590         * modules/poll-tests (test_poll_LDADD): New variable.
56591         * NEWS: Document the change.
56592
56593 2008-09-29  Bruno Haible  <bruno@clisp.org>
56594
56595         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56596         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56597         ARPA_INET_H directly.
56598         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56599
56600 2008-09-28  Bruno Haible  <bruno@clisp.org>
56601
56602         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56603         from gl_HEADER_SYS_SOCKET.
56604         (gl_HEADER_SYS_SOCKET): Invoke it.
56605         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56606
56607 2008-09-28  Bruno Haible  <bruno@clisp.org>
56608
56609         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56610         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56611         Needed on OSF/1 4.0.
56612
56613 2008-09-28  Bruno Haible  <bruno@clisp.org>
56614
56615         Override open more carefully.
56616         * lib/open.c (orig_open): New function.
56617         (rpl_open): Use orig_open instead of open.
56618         * lib/fcntl.in.h: Add special invocation convention.
56619         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56620         (gl_FUNC_OPEN): Invoke it.
56621
56622         Override freopen more carefully.
56623         * lib/freopen.c (orig_freopen): New function.
56624         (rpl_freopen): Use orig_freopen instead of freopen.
56625         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56626         (gl_FUNC_FREOPEN): Invoke it.
56627
56628         Override fopen more carefully.
56629         * lib/fopen.c (orig_fopen): New function.
56630         (rpl_fopen): Use orig_fopen instead of fopen.
56631         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56632         (gl_FUNC_FOPEN): Invoke it.
56633         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56634
56635 2008-09-28  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56638         SIGPIPE.
56639
56640 2008-09-28  Bruno Haible  <bruno@clisp.org>
56641
56642         * tests/test-sigaction.c (handler, main): Disable the check whether
56643         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56644         glibc systems with LinuxThreads.
56645
56646 2008-09-28  Bruno Haible  <bruno@clisp.org>
56647
56648         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56649
56650         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56651         with AIX xlc.
56652         * lib/fcntl.in.h (open): Likewise.
56653         Reported by Rainer Tammer <tammer@tammer.net>.
56654
56655 2008-09-28  Bruno Haible  <bruno@clisp.org>
56656
56657         * modules/posix_spawnp-tests: New file.
56658         * tests/test-posix_spawn.c: New file.
56659         * tests/test-posix_spawn.in.sh: New file.
56660
56661         New module 'posix_spawnp'.
56662         * modules/posix_spawnp: New file.
56663         * lib/spawnp.c: New file, from GNU libc with modifications.
56664         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56665
56666         New module 'posix_spawn'.
56667         * modules/posix_spawn: New file.
56668         * lib/spawn.c: New file, from GNU libc with modifications.
56669         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56670
56671         New module 'posix_spawnattr_destroy'.
56672         * modules/posix_spawnattr_destroy: New file.
56673         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56674         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56675         module.
56676
56677         New module 'posix_spawnattr_setsigmask'.
56678         * modules/posix_spawnattr_setsigmask: New file.
56679         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56680         modifications.
56681         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56682         new module.
56683
56684         New module 'posix_spawnattr_getsigmask'.
56685         * modules/posix_spawnattr_getsigmask: New file.
56686         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56687         modifications.
56688         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56689         new module.
56690
56691         New module 'posix_spawnattr_setsigdefault'.
56692         * modules/posix_spawnattr_setsigdefault: New file.
56693         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56694         modifications.
56695         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56696         new module.
56697
56698         New module 'posix_spawnattr_getsigdefault'.
56699         * modules/posix_spawnattr_getsigdefault: New file.
56700         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56701         modifications.
56702         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56703         new module.
56704
56705         New module 'posix_spawnattr_setschedpolicy'.
56706         * modules/posix_spawnattr_setschedpolicy: New file.
56707         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56708         modifications.
56709         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56710         new module.
56711
56712         New module 'posix_spawnattr_getschedpolicy'.
56713         * modules/posix_spawnattr_getschedpolicy: New file.
56714         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56715         modifications.
56716         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56717         new module.
56718
56719         New module 'posix_spawnattr_setschedparam'.
56720         * modules/posix_spawnattr_setschedparam: New file.
56721         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56722         modifications.
56723         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56724         new module.
56725
56726         New module 'posix_spawnattr_getschedparam'.
56727         * modules/posix_spawnattr_getschedparam: New file.
56728         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56729         modifications.
56730         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56731         new module.
56732
56733         New module 'posix_spawnattr_setpgroup'.
56734         * modules/posix_spawnattr_setpgroup: New file.
56735         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56736         modifications.
56737         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56738         module.
56739
56740         New module 'posix_spawnattr_getpgroup'.
56741         * modules/posix_spawnattr_getpgroup: New file.
56742         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56743         modifications.
56744         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56745         module.
56746
56747         New module 'posix_spawnattr_setflags'.
56748         * modules/posix_spawnattr_setflags: New file.
56749         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56750         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56751         module.
56752
56753         New module 'posix_spawnattr_getflags'.
56754         * modules/posix_spawnattr_getflags: New file.
56755         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56756         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56757         module.
56758
56759         New module 'posix_spawnattr_init'.
56760         * modules/posix_spawnattr_init: New file.
56761         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56762         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56763         module.
56764
56765         New module 'posix_spawn_file_actions_destroy'.
56766         * modules/posix_spawn_file_actions_destroy: New file.
56767         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56768         modifications.
56769         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56770         the new module.
56771
56772         New module 'posix_spawn_file_actions_addopen'.
56773         * modules/posix_spawn_file_actions_addopen: New file.
56774         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56775         modifications.
56776         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56777         the new module.
56778
56779         New module 'posix_spawn_file_actions_adddup2'.
56780         * modules/posix_spawn_file_actions_adddup2: New file.
56781         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56782         modifications.
56783         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56784         the new module.
56785
56786         New module 'posix_spawn_file_actions_addclose'.
56787         * modules/posix_spawn_file_actions_addclose: New file.
56788         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56789         modifications.
56790         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56791         the new module.
56792
56793         New module 'posix_spawn_file_actions_init'.
56794         * modules/posix_spawn_file_actions_init: New file.
56795         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56796         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56797         new module.
56798
56799         New module 'posix_spawn-internal'.
56800         * modules/posix_spawn-internal: New file.
56801         * lib/spawn_int.h: New file, from GNU libc with modifications.
56802         * lib/spawni.c: New file, from GNU libc with modifications.
56803         * m4/posix_spawn.m4: New file.
56804
56805         New module 'spawn'.
56806         * modules/spawn: New file.
56807         * lib/spawn.in.h: New file, from GNU libc with modifications.
56808         * m4/spawn_h.m4: New file.
56809         * doc/posix-headers/spawn.texi: Mention the new module.
56810
56811 2008-09-28  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/sched-tests: New file.
56814         * tests/test-sched.c: New file.
56815
56816         New module 'sched'.
56817         * modules/sched: New file.
56818         * lib/sched.in.h: New file.
56819         * m4/sched_h.m4: New file.
56820         * doc/posix-headers/sched.texi: Mention the new module.
56821
56822 2008-09-27  Eric Blake  <ebb9@byu.net>
56823
56824         Fix previous patch, and tweak references to $0.
56825         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56826         (func_version, func_gnulib_dir): Don't call this program
56827         gnulib-tool.
56828         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56829         with using $0 in function.
56830         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56831         (func_fatal_error): Reuse the name the user invoked us with.
56832
56833 2008-09-27  Bruno Haible  <bruno@clisp.org>
56834
56835         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56836         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56837         (gl_ICONV_H): Not here.
56838         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56839         instead of assigning ICONV_H directly.
56840
56841         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56843         WCHAR_H directly.
56844
56845 2008-09-27  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56848         * modules/arpa_inet (Depends-on): Add link-warning.
56849         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56850         * modules/unistd (Makefile.am): Likewise.
56851
56852 2008-09-26  Bruno Haible  <bruno@clisp.org>
56853
56854         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56855         variables.
56856         (func_version): Essentially copied from gnulib-tool.
56857         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56858         func_readlink): Copied from gnulib-tool.
56859
56860 2008-09-26  Bruno Haible  <bruno@clisp.org>
56861
56862         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56863         invoking git-version-gen.
56864
56865 2008-09-26  Bruno Haible  <bruno@clisp.org>
56866
56867         * posix-modules: Update to directory names changed on 2008-01-19.
56868         Remove commas in output before splitting into words. No more need to
56869         avoid 'ftruncate' since 2007-02-19.
56870
56871 2008-09-26  Bruno Haible  <bruno@clisp.org>
56872
56873         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56874
56875 2008-09-26  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56878         * modules/fwriteerror (Depends-on): Add errno.
56879
56880 2008-09-26  Bruno Haible  <bruno@clisp.org>
56881
56882         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56883         * tests/test-vc-list-files-cvs.sh: Likewise.
56884
56885 2008-09-26  Bruno Haible  <bruno@clisp.org>
56886
56887         * doc/posix-headers/sys_resource.texi: Reorder items.
56888
56889 2008-09-26  Jim Meyering  <meyering@redhat.com>
56890
56891         fts: tweak inode comparison function
56892         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56893         inode numbers, as documented.
56894
56895         fts: sort dirent entries on inode number before traversing
56896         This avoids a quadratic, seek-related performance penalty when
56897         operating on a directory containing many entries (measurable at 10k;
56898         3.5 hours at 2 million entries with a cold cache) on certain types
56899         of file systems, including ext3 and ext4, but not tmpfs.
56900         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56901         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56902         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56903         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56904         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56905         (fts_build): Set the stat.st_ino member from D_INO.
56906         If it is likely to be useful, sort dirent entries on inode number.
56907
56908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56909         and the struct statfs.f_type member.
56910         * modules/fts (Depends-on): Add d-ino.
56911
56912 2008-09-26  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/sigpipe-die (Depends-on): Add sigpipe.
56915
56916         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56917         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56918         and GNULIB_STDIO_H_SIGPIPE are set.
56919         * lib/stdio-write.c: New file.
56920         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56921         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56922         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56923         REPLACE_STDIO_WRITE_FUNCS.
56924         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56925         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56926         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56927         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56928         * modules/stdio (Files): Add lib/stdio-write.c.
56929         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56930         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56931         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56932         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56933         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56934         REPLACE_FPRINTF_POSIX.
56935         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56936         REPLACE_PRINTF_POSIX.
56937         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56938         REPLACE_VFPRINTF_POSIX.
56939         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56940         REPLACE_VPRINTF_POSIX.
56941         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56942         SIGPIPE issue.
56943         * doc/posix-functions/fputc.texi: Likewise.
56944         * doc/posix-functions/fputs.texi: Likewise.
56945         * doc/posix-functions/fwrite.texi: Likewise.
56946         * doc/posix-functions/printf.texi: Likewise.
56947         * doc/posix-functions/putc.texi: Likewise.
56948         * doc/posix-functions/putchar.texi: Likewise.
56949         * doc/posix-functions/puts.texi: Likewise.
56950         * doc/posix-functions/vfprintf.texi: Likewise.
56951         * doc/posix-functions/vprintf.texi: Likewise.
56952
56953         * modules/safe-write (Depends-on): Add write.
56954
56955         * modules/sigpipe-tests: New file.
56956         * tests/test-sigpipe.c: New file.
56957         * tests/test-sigpipe.sh: New file.
56958
56959         * modules/write: New file.
56960         * lib/unistd.in.h: Include <sys/types.h>.
56961         (write): New declaration.
56962         * lib/write.c: New file.
56963         * m4/write.m4: New file.
56964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56965         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56966         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56967         GNULIB_WRITE, REPLACE_WRITE.
56968         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56969         and the SIGPIPE issue.
56970
56971         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56972         (raise): New declaration.
56973         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56974         (ext_signal): New function.
56975         (rpl_raise): New function.
56976         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56977         GNULIB_SIGNAL_H_SIGPIPE.
56978         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56979         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56980
56981         * modules/sigpipe: New file.
56982         * m4/sigpipe.m4: New file.
56983
56984 2008-09-25  Derek Price  <derek@ximbiot.com>
56985             Bruno Haible  <bruno@clisp.org>
56986
56987         * gnulib-tool (func_import): Report all license incompatibilities, not
56988         just the first one.
56989
56990 2008-09-25  Bruno Haible  <bruno@clisp.org>
56991
56992         * gnulib-tool (func_import): When computing the edits, consider not
56993         only the Makefile.ams that exist but also those that will be generated.
56994
56995 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56996
56997         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56998         fixes gnulib-tool --test warning about duplicate dependency.
56999
57000 2008-09-25  Bruno Haible  <bruno@clisp.org>
57001
57002         * gnulib-tool: Don't ask the user to perform edits in the generated
57003         Makefile.ams.
57004         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57005         apply to the Makefile.am being generated.
57006         (func_emit_tests_Makefile_am): Execute edits that apply to the
57007         Makefile.am being generated.
57008         (func_import): Setup list of Makefile.am edits before emitting the
57009         Makefile.ams, not at the end.
57010         (func_create_testdir): Update.
57011         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57012
57013 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57014
57015         * gnulib-tool (func_import): Store the --tests-base option in the
57016         comment in gnulib-cache.m4.
57017
57018 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57019
57020         * NEWS: Document increased portability that sys_select now provides.
57021
57022         * lib/sys_select.in.h: Install select wrapper.
57023         * lib/sys_socket.in.h: Use more descriptive name when there is no
57024         select wrapper.
57025         * lib/winsock-select.c: New.
57026         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57027         Require gl_HEADER_SYS_SOCKET.
57028         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57029         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57030         * tests/test-sys_select.c: Add functional tests.
57031
57032 2008-09-24  Eric Blake  <ebb9@byu.net>
57033
57034         open, fopen: close fd leak in last patch
57035         * lib/open.c (rpl_open): Close fd before returning error.
57036         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57037         * doc/posix-functions/open.texi (open): Document that Irix also
57038         has the bug.
57039         * doc/posix-functions/fopen.texi (fopen): Likewise.
57040         Reported by Paolo Bonzini.
57041
57042 2008-09-24  Bruno Haible  <bruno@clisp.org>
57043
57044         Ensure that a filename ending in a slash cannot be used to access a
57045         non-directory.
57046         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57047         to check whether it's really a directory.
57048         * lib/fopen.c: Include fcntl.h, unistd.h.
57049         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57050         and fdopen().
57051         * modules/fopen (Depends-on): Add unistd.
57052         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57053         * tests/test-fopen.c (main): Likewise.
57054         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57055         * doc/posix-functions/fopen.texi: Likewise.
57056         Reported by Eric Blake.
57057
57058 2008-09-23  Eric Blake  <ebb9@byu.net>
57059
57060         c-stack: avoid compiler optimizations when provoking overflow
57061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57062         recursion harder to optimize, to ensure a stack overflow occurs.
57063         * tests/test-c-stack.c (recurse): Likewise.
57064         Borrowed from libsigsegv.
57065
57066         c-stack: work around Irix sigaltstack bug
57067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57068         whether sigaltstack uses wrong end of stack_t (copied in part from
57069         libsigsegv).
57070         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57071         Irix bug, without requiring an over-allocation.
57072         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57073         bug.
57074
57075         fopen: document mingw bug on directories
57076         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57077         not allowing a stream visiting a directory, even though reading
57078         from such a stream is not portable.
57079
57080 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57081
57082         * lib/poll.c: Rewrite.
57083         * modules/poll: Depend on alloca.
57084
57085 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57086
57087         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57088         instead define prototypes for a full set of wrappers.  Ensure
57089         that Cygwin does not use the compatibility code, which is only
57090         for MinGW.
57091         * lib/winsock.c: New.
57092         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57093         * modules/sys_socket: Add lib/winsock.c.
57094
57095         * modules/poll-tests: Add errno and perror.
57096         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57097
57098 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57099
57100         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57101
57102 2008-09-23  Bruno Haible  <bruno@clisp.org>
57103
57104         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57105         * doc/glibc-functions/*: Likewise.
57106
57107 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57108
57109         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57110         success.
57111
57112 2008-09-22  Eric Blake  <ebb9@byu.net>
57113             Bruno Haible  <bruno@clisp.org>
57114
57115         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57116         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57117         supply %A but mishandle pseudo-NaN.
57118         Reported by Simon Josefsson.
57119
57120 2008-09-21  Bruno Haible  <bruno@clisp.org>
57121
57122         * tests/test-lock.c (main): Tweak skip message.
57123         * tests/test-tls.c (main): Likewise.
57124
57125 2008-09-21  Bruno Haible  <bruno@clisp.org>
57126
57127         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57128         whether 'struct sigaction' has sa_sigaction here...
57129         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57130         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57131
57132 2008-09-21  Bruno Haible  <bruno@clisp.org>
57133
57134         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57135         section.
57136         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57137         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57138         the new section.
57139         (Support for obsolete systems lacking POSIX:2001): New section.
57140         (String handling <string.h>): Move strdup to the new section.
57141         Suggested by Simon Josefsson and Paolo Bonzini.
57142
57143 2008-09-21  Bruno Haible  <bruno@clisp.org>
57144
57145         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57146         exponents in %e and %g results on 'long double'. Needed for mingw's
57147         improved *printf functions.
57148         * tests/test-vasprintf-posix.c (test_function): Likewise.
57149         * tests/test-snprintf-posix.h (test_function): Likewise.
57150         * tests/test-sprintf-posix.h (test_function): Likewise.
57151         Reported by Eric Blake.
57152
57153 2008-09-21  Bruno Haible  <bruno@clisp.org>
57154
57155         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57156         * tests/test-sprintf-posix.h (test_function): Likewise.
57157
57158 2008-09-21  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/getpass (Depends-on): Add strdup-posix.
57161
57162         New module 'strdup-posix'.
57163         * modules/strdup-posix: New file.
57164         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57165         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57167         REPLACE_STRDUP.
57168         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57169         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57171         strdup-posix.
57172
57173         * modules/strdup (Depends-on): Remove malloc-posix.
57174
57175 2008-09-20  Bruno Haible  <bruno@clisp.org>
57176
57177         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57178         Wildenhues.
57179
57180 2008-09-20  Bruno Haible  <bruno@clisp.org>
57181
57182         Ensure that wint_t gets defined on IRIX 5.3.
57183         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57184         * lib/wctype.in.h (wint_t): Likewise.
57185         (__wctype_wint_t): Remove type.
57186         (isw*): Use wint_t instead of __wctype_wint_t.
57187         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57188         * modules/wchar (Files): Add m4/wint_t.m4.
57189         (Makefile.am): Substitute HAVE_WINT_T.
57190         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57191         * tests/test-wctype.c: Check that wint_t is defined.
57192         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57193         * doc/posix-headers/wctype.texi: Likewise.
57194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57195
57196 2008-09-18  Bruno Haible  <bruno@clisp.org>
57197
57198         * gnulib-tool (func_exit): Update comment.
57199
57200 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57201
57202         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57203         assumes strdup exists and does not depend on strdup to return
57204         ENOMEM on out of memory conditions.
57205
57206 2008-09-18  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57209         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57210         digits for the exponent.
57211
57212 2008-09-18  Jim Meyering  <meyering@redhat.com>
57213             Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/vasnprintf.c (decimal_point_char): Define also if
57216         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57217
57218 2008-09-16  Bruno Haible  <bruno@clisp.org>
57219         and Eric Blake  <ebb9@byu.net>
57220
57221         vasnprintf: support Irix 5.3
57222         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57223         that mishandle long double infinity.
57224         Reported by Tom G. Christensen.
57225
57226 2008-09-16  Bruno Haible  <bruno@clisp.org>
57227
57228         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57229         Solaris 9.
57230         * doc/glibc-functions/alphasort.texi: Likewise.
57231         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57232
57233 2008-09-16  Jim Meyering  <meyering@redhat.com>
57234
57235         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57236         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57237         a umask modification leak out of a subshell.  Otherwise, the
57238         opensolaris /bin/sh would be accepted and thus cause unwarranted
57239         failures in the coreutils test suite.
57240
57241 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57242
57243         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57244         to succeed.
57245
57246 2008-09-16  Jim Meyering  <meyering@redhat.com>
57247
57248         avoid spurious test failure when library is built without ACL support
57249         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57250         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57251         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57252         * tests/test-copy-acl.sh: Likewise.
57253
57254 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57255
57256         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57257         based on character occurrence counts.
57258
57259 2008-09-15  Eric Blake  <ebb9@byu.net>
57260
57261         tests: avoid some compiler warnings
57262         * tests/test-memchr.c (main): Pass NULL indirectly.
57263         * tests/test-closein.c (main): Avoid unused variable.
57264
57265 2008-09-15  Bruno Haible  <bruno@clisp.org>
57266
57267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57268         are missing on OpenBSD 4.0 individually.
57269         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57270
57271 2008-09-15  Bruno Haible  <bruno@clisp.org>
57272
57273         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57274         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57275         * doc/posix-functions/perror.texi: Likewise.
57276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57277         is missing.
57278         Reported by Eric Blake.
57279
57280         * lib/errno.in.h: Use replacement values >= 2000.
57281         Reported by Eric Blake.
57282
57283 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57284
57285         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57286         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57287         limit.
57288         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57289         compareseq was aborted.
57290
57291 2008-09-14  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57294         yvec_edit_count.
57295         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57296         (fstrcmp_bounded): Simplify result computation accordingly.
57297
57298 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57299
57300         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57301         (fstrcmp): Define in terms of fstrcmp_bounded.
57302         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57303         lower_bound argument.
57304         Return quickly if the result is certainly < lower_bound.
57305         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57306
57307 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57308
57309         * lib/diffseq.h (EARLY_ABORT): New macro.
57310         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57311         evaluates to true.
57312
57313 2008-09-14  Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/perror-tests: New file.
57316         * tests/test-perror.sh: New file.
57317         * tests/test-perror.c: New file.
57318
57319         New module 'perror'.
57320         * lib/stdio.in.h (perror): New declaration.
57321         * lib/perror.c: New file.
57322         * m4/perror.m4: New file.
57323         * modules/perror: New file.
57324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57325         * doc/posix-functions/perror.texi: Mention the perror module.
57326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57327         REPLACE_PERROR.
57328         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57329         REPLACE_PERROR.
57330
57331 2008-09-14  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/stdio (Makefile.am): Reorder to match the order in
57334         lib/stdio.in.h.
57335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57336
57337 2008-09-13  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57340
57341 2008-09-13  Bruno Haible  <bruno@clisp.org>
57342
57343         Extend strerror to cover the added errno values.
57344         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57345         (rpl_strerror): Provide error messages for the added errno values and
57346         for the WSA* values.
57347         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57348         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57349         strerror.
57350         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57351         * modules/strerror (Depends-on): Add errno.
57352         * doc/posix-functions/strerror.texi: Document the change.
57353         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57354         and EOVERFLOW.
57355
57356 2008-09-13  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/EOVERFLOW: Remove file.
57359         * m4/eoverflow.m4: Remove file.
57360         * modules/EOVERFLOW-tests: Remove file.
57361         * tests/test-EOVERFLOW.c: Remove file.
57362         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57363         * modules/ftell (Depends-on): Likewise.
57364         * modules/getdelim (Depends-on): Likewise.
57365         * modules/getugroups (Depends-on): Likewise.
57366         * modules/poll (Depends-on): Likewise.
57367         * modules/snprintf (Depends-on): Likewise.
57368         * modules/sprintf-posix (Depends-on): Likewise.
57369         * modules/vasnprintf (Depends-on): Likewise.
57370         * modules/vasprintf (Depends-on): Likewise.
57371         * modules/vfprintf-posix (Depends-on): Likewise.
57372         * modules/vsnprintf (Depends-on): Likewise.
57373         * modules/vsprintf-posix (Depends-on): Likewise.
57374         * modules/xvasprintf (Depends-on): Likewise.
57375         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57376         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57377         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57378         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57379         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57380         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57381         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57382         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57383         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57384         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57385         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57386         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57387         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57388         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57389         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57390         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57391         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57392         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57393         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57394         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57395         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57396         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57397         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57398         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57399         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57400         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57401         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57402         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57403         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57404         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57405         * MODULES.html.sh: Remove EOVERFLOW.
57406         * NEWS: Mention the change.
57407
57408 2008-09-13  Bruno Haible  <bruno@clisp.org>
57409
57410         * modules/errno-tests: New file.
57411         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57412
57413         * lib/errno.in.h: New file.
57414         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57415         * modules/errno: New file.
57416         * doc/posix-headers/errno.texi: Update documentation.
57417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57418
57419 2008-09-13  Bruno Haible  <bruno@clisp.org>
57420
57421         * tests/test-poll.c: Use #if for native Windows, rather than testing
57422         __MSVCRT__.
57423
57424 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57425             Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/glob.c: Don't include <pwd.h> on native Windows.
57428         (WINDOWS32): New macro.
57429         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57430
57431 2008-09-13  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57434         (ETIMEDOUT): Remove macro.
57435         (glthread_cond_timedwait_multithreaded): New declaration.
57436         (glthread_cond_timedwait): Use it.
57437         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57438         (glthread_cond_timedwait_multithreaded): New function.
57439
57440 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57441
57442         * modules/poll-tests: Do not check for io.h.
57443         * tests/test-poll.c: Check for __MSVCRT__ instead.
57444
57445 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57446
57447         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57448         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57449         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57450
57451 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57452
57453         * modules/poll-tests: New.
57454         * tests/test-poll.c: New.
57455
57456 2008-09-12  Eric Blake  <ebb9@byu.net>
57457
57458         frexp: test for NetBSD failure on -0.0
57459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57460         not all, bugs from NetBSD 3.0 have been fixed.
57461         * doc/posix-functions/frexp.texi (frexp): Document bug.
57462         Reported by Thomas Klausner.
57463
57464         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57466         literal -0.0.
57467         Reported by Jonathan C. Patschke <jp@centtech.com>.
57468
57469 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57470
57471         * lib/glthread/cond.h: Use dummy implementation also if
57472         USE_WIN32_THREADS.
57473
57474 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57475
57476         * modules/fnmatch-posix (License): Change to LGPLv2+.
57477         * modules/fnmatch-gnu (License): Likewise.
57478
57479 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57480
57481         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57482
57483 2008-09-11  Jim Meyering  <meyering@redhat.com>
57484
57485         * users.txt: Add gtk-vnc.
57486
57487 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57488
57489         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57490         rotate amounts.
57491
57492         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57493         required for 16-bit and 8-bit rotates.
57494         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57495         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57496         UINT8_MAX instead of hard-coded constants.
57497         Suggested by Paul Eggert.
57498
57499 2008-09-07  Bruno Haible  <bruno@clisp.org>
57500
57501         * tests/test-striconveh.c (main): Check behaviour when converting from
57502         UTF-7.
57503
57504         Make striconveh work better with stateful encodings.
57505         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57506         that iconv does not increment the inptr when returning -1/EINVAL.
57507
57508 2008-09-07  Bruno Haible  <bruno@clisp.org>
57509
57510         * build-aux/config.rpath: Update according to libtool-2.2.6.
57511         * build-aux/config.libpath: Likewise.
57512
57513 2008-09-06  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57516         * lib/freadptr.c (freadptr): Likewise.
57517         * lib/freadseek.c (freadptrinc): Likewise.
57518         Reported by Simon Josefsson.
57519
57520 2008-09-06  Bruno Haible  <bruno@clisp.org>
57521
57522         * modules/freadptr (License): Change to LGPLv2+.
57523         * modules/freadseek (License): Likewise.
57524         Suggested by Eric Blake.
57525
57526         * modules/memchr2 (License): Change to LGPLv2+.
57527         Approved by Eric Blake.
57528
57529 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57530             Bruno Haible  <bruno@clisp.org>
57531
57532         Make gnulib-tool work with native 'sed' on AIX.
57533         * gnulib-tool (sed_noop): New variable.
57534         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57535         func_add_or_update, func_create_testdir): Use it to initialize sed
57536         script variables.
57537         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57538
57539 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57540             Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57543         also works after #include directives.
57544
57545 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57546
57547         getdate.y: reject an out-of-range timezone value
57548         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57549         the range [-24...+24].  When specified with only one or two digits,
57550         * tests/test-getdate.c: Tests for the fix.
57551         * doc/getdate.texi: Document this change.
57552
57553 2008-09-03  Bruno Haible  <bruno@clisp.org>
57554
57555         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57556
57557 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57558
57559         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57560         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57561         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57562         Blake <ebb9@byu.net>.
57563
57564         * tests/test-bitrotate.c: Add more test vectors.
57565
57566 2008-09-02  Eric Blake  <ebb9@byu.net>
57567
57568         vasnprintf-posix: handle large precision via %.*d
57569         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57570         when handling it ourselves.
57571         * tests/test-vasnprintf-posix.c (test_function): Add test.
57572         * tests/test-snprintf-posix.h (test_function): Likewise.
57573         * tests/test-sprintf-posix.h (test_function): Likewise.
57574         * tests/test-vasprintf-posix.c (test_function): Likewise.
57575         Reported by Alain Guibert.
57576
57577 2008-09-01  Eric Blake  <ebb9@byu.net>
57578
57579         c-stack: make configure-time check more robust
57580         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57581         successful sigaction call.
57582         Reported by Tom G. Christensen.
57583
57584 2008-09-01  Bruno Haible  <bruno@clisp.org>
57585
57586         New module 'findprog-lgpl'.
57587         * modules/findprog-lgpl: New file.
57588         * lib/findprog-lgpl.c: New file.
57589         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57590         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57591         to decide whether to use strdup or xstrdup, concatenated_filename or
57592         xconcatenated_filename.
57593
57594 2008-09-01  Bruno Haible  <bruno@clisp.org>
57595
57596         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57597         'xconcat-filename' (GPL).
57598         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57599         (License): Change to LGPLv2+.
57600         * modules/xconcat-filename: New file.
57601         * lib/concat-filename.h (concatenated_filename): Change specification.
57602         (xconcatenated_filename): New declaration.
57603         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57604         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57605         memory situations.
57606         * lib/xconcat-filename.c: New file.
57607         * NEWS: Mention the change.
57608         * lib/findprog.c: Include concat-filename.h, not filename.h.
57609         (find_in_path): Use xconcatenated_filename instead of
57610         concatenated_filename.
57611         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57612         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57613         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57614         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57615         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57616         instead of concatenated_filename.
57617         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57618         (execute_java_class): Use xconcatenated_filename instead of
57619         concatenated_filename.
57620         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57621         * modules/javacomp (Depends-on): Likewise.
57622         * modules/javaexec (Depends-on): Likewise.
57623
57624 2008-09-01  Bruno Haible  <bruno@clisp.org>
57625
57626         Split module 'filename' into 'filename' and 'concat-filename'.
57627         * modules/filename: Keep only lib/filename.h.
57628         (License): Change to LGPLv2+.
57629         * modules/concat-filename: New file, extracted from modules/filename.
57630         * lib/filename.h (concatenated_filename): Remove declaration.
57631         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57632         * lib/concat-filename.c: Include concat-filename.h.
57633         * NEWS: Mention the change.
57634
57635 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57636
57637         * lib/bitrotate.h (rotl8, rotr8): Add.
57638
57639         * modules/bitrotate (configure.ac): Need
57640         AC_REQUIRE([AC_C_INLINE]).
57641         (Description): Mention stdint.h.  Reported by Bruno Haible
57642         <bruno@clisp.org>.
57643
57644         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57645         Paolo Bonzini <bonzini@gnu.org>.
57646
57647 2008-08-31  Bruno Haible  <bruno@clisp.org>
57648
57649         Assume Solaris specific bi-arch conventions on Solaris systems.
57650         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57651         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57653         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57654         like acl_libdirstem.
57655         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57656         acl_libdirstem.
57657         * NEWS: Mention the change.
57658         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57659
57660 2008-08-31  Jim Meyering  <meyering@redhat.com>
57661
57662         * lib/strftime.h: Add comments describing the two added arguments.
57663
57664         remove duplicate #include directives
57665         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57666         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57667
57668 2008-08-31  Bruno Haible  <bruno@clisp.org>
57669
57670         New module 'sigpipe-die'.
57671         * modules/sigpipe-die: New file.
57672         * lib/sigpipe-die.h: New file.
57673         * lib/sigpipe-die.c: New file.
57674         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57675
57676 2008-08-31  Bruno Haible  <bruno@clisp.org>
57677
57678         Don't override previously installed signal handlers.
57679         * lib/fatal-signal.c (saved_sigactions): New variable.
57680         (uninstall_handlers): Reset the signal to the saved handler, not
57681         to SIG_DFL (except when ignored).
57682         (install_handlers): Save the previous handlers.
57683
57684 2008-08-30  Bruno Haible  <bruno@clisp.org>
57685
57686         * gnulib-tool (func_reset_sigpipe): New function.
57687         (func_get_automake_snippet, func_modules_transitive_closure,
57688         func_import): Invoke it before a join command that reads from stdin,
57689         to avoid "echo: write error: Broken pipe" error messages on stderr.
57690         Reported by Sam Steingold <sds@gnu.org>.
57691
57692 2008-08-30  Bruno Haible  <bruno@clisp.org>
57693
57694         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57695         Code copied from m4/open.m4.
57696         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57697         access and the filename ends in a slash. Code copied from lib/open.c.
57698         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57699         * tests/test-fopen.c (main): Check against bug with trailing slash.
57700
57701 2008-08-29  Bruno Haible  <bruno@clisp.org>
57702
57703         Avoid some "gcc -pedantic" warnings.
57704         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57705         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57706         * lib/dirent.in.h: Likewise.
57707         * lib/fcntl.in.h: Likewise.
57708         * lib/float.in.h: Likewise.
57709         * lib/iconv.in.h: Likewise.
57710         * lib/inttypes.in.h: Likewise.
57711         * lib/locale.in.h: Likewise.
57712         * lib/math.in.h: Likewise.
57713         * lib/netinet_in.in.h: Likewise.
57714         * lib/search.in.h: Likewise.
57715         * lib/signal.in.h: Likewise.
57716         * lib/stdarg.in.h: Likewise.
57717         * lib/stdint.in.h: Likewise.
57718         * lib/stdio.in.h: Likewise.
57719         * lib/stdlib.in.h: Likewise.
57720         * lib/string.in.h: Likewise.
57721         * lib/strings.in.h: Likewise.
57722         * lib/sys_select.in.h: Likewise.
57723         * lib/sys_socket.in.h: Likewise.
57724         * lib/sys_stat.in.h: Likewise.
57725         * lib/sys_time.in.h: Likewise.
57726         * lib/sysexits.in.h: Likewise.
57727         * lib/time.in.h: Likewise.
57728         * lib/unistd.in.h: Likewise.
57729         * lib/wchar.in.h: Likewise.
57730         * lib/wctype.in.h: Likewise.
57731         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57732         * modules/fchdir (Makefile.am): Likewise.
57733         * modules/fcntl (Makefile.am): Likewise.
57734         * modules/float (Makefile.am): Likewise.
57735         * modules/iconv_open (Makefile.am): Likewise.
57736         * modules/inttypes (Makefile.am): Likewise.
57737         * modules/locale (Makefile.am): Likewise.
57738         * modules/math (Makefile.am): Likewise.
57739         * modules/netinet_in (Makefile.am): Likewise.
57740         * modules/search (Makefile.am): Likewise.
57741         * modules/signal (Makefile.am): Likewise.
57742         * modules/stdarg (Makefile.am): Likewise.
57743         * modules/stdint (Makefile.am): Likewise.
57744         * modules/stdio (Makefile.am): Likewise.
57745         * modules/stdlib (Makefile.am): Likewise.
57746         * modules/string (Makefile.am): Likewise.
57747         * modules/strings (Makefile.am): Likewise.
57748         * modules/sys_select (Makefile.am): Likewise.
57749         * modules/sys_socket (Makefile.am): Likewise.
57750         * modules/sys_stat (Makefile.am): Likewise.
57751         * modules/sys_time (Makefile.am): Likewise.
57752         * modules/sysexits (Makefile.am): Likewise.
57753         * modules/time (Makefile.am): Likewise.
57754         * modules/unistd (Makefile.am): Likewise.
57755         * modules/wchar (Makefile.am): Likewise.
57756         * modules/wctype (Makefile.am): Likewise.
57757         Reported by Reuben Thomas <rrt@sc3d.org>.
57758
57759 2008-08-29  Bruno Haible  <bruno@clisp.org>
57760
57761         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57762         any more.
57763
57764 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57765
57766         * MODULES.html.sh (Misc): Add bitrotate.
57767
57768         * modules/bitrotate: New file.
57769
57770         * lib/bitrotate.h: New file.
57771
57772         * modules/bitrotate-tests: New file.
57773
57774         * tests/test-bitrotate.c: New file.
57775
57776         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57777         on the bitrotate module.
57778
57779         * lib/arctwo.c: Use new bitrotate module.
57780
57781 2008-08-29  Jim Meyering  <meyering@redhat.com>
57782
57783         bootstrap: merge changes from coreutils
57784         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57785         of copied files.  Remove a kludge, now that this is fixed.
57786         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57787         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57788         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57789
57790 2008-08-29  Bruno Haible  <bruno@clisp.org>
57791
57792         * MODULES.html.sh: Remove --cvs-urls option.
57793
57794 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57795
57796         maint.mk: adjust to file name change
57797         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57798
57799 2008-08-28  Jim Meyering  <meyering@redhat.com>
57800
57801         * modules/getndelim2 (License): Relicense to LGPLv2+.
57802         Approved by Richard Stallman for the version of 1995, and by
57803         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57804
57805 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57806
57807         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57808         dummy if one is not available.  Do not touch them if
57809         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57810         (getc_maybe_unlocked): New.
57811         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57812
57813 2008-08-26  Eric Blake  <ebb9@byu.net>
57814
57815         doc/INSTALL: resync from autoconf
57816         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57817         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57818         moving...
57819         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57820         * INSTALL: Regenerate.
57821         * INSTALL.ISO: New file.
57822         * INSTALL.UTF-8: Likewise.
57823
57824 2008-08-26  Jim Meyering  <meyering@redhat.com>
57825
57826         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57827         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57828         these definitions conditional, so that they may be overridden, too.
57829
57830 2008-08-26  Bruno Haible  <bruno@clisp.org>
57831
57832         Generate INSTALL file variants with prettier quotes.
57833         * doc/Makefile (INSTALL_PRELUDE): New macro.
57834         (INSTALL): Use it.
57835         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57836
57837 2008-08-26  Bruno Haible  <bruno@clisp.org>
57838
57839         Run makeinfo in an English locale.
57840         * doc/Makefile (MAKEINFO): New variable.
57841
57842 2008-08-26  Bruno Haible  <bruno@clisp.org>
57843
57844         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57845         Suggested by Eric Blake.
57846
57847 2008-08-25  Bruno Haible  <bruno@clisp.org>
57848
57849         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57850
57851 2008-08-25  Eric Blake  <ebb9@byu.net>
57852
57853         c-stack: test that stack overflow can be caught
57854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57855         that platform allows handling stack overflow; at least OS/2 EMX
57856         has sigaltstack, but crashes before transferring control to
57857         handler on stack overflow.
57858         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57859         check for HAVE_STACK_OVERFLOW_HANDLING.
57860         Reported by Elbert Pol.
57861
57862 2008-08-25  Bruno Haible  <bruno@clisp.org>
57863
57864         * doc/posix-functions/strftime.texi: Fix description of strftime
57865         module.
57866
57867 2008-08-24  Bruno Haible  <bruno@clisp.org>
57868
57869         * tests/uniwidth/test-uc_width2.c: New file.
57870         * tests/uniwidth/test-uc_width2.sh: New file.
57871         * modules/uniwidth/width-tests (Files): Add the new files.
57872         (TESTS): Add uniwidth/test-uc_width2.sh.
57873         (TESTS_ENVIRONMENT): New variable.
57874         (check_PROGRAMS): Add test-uc_width2.
57875         (test_uc_width2_SOURCES): New variable.
57876
57877         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57878         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57879         not 0x00AB.
57880         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57881
57882 2008-08-22  Eric Blake  <ebb9@byu.net>
57883
57884         test-lock, test-tls: mention why a test is skipped
57885         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57886         skipped.
57887         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57888
57889         count-one-bits: relax license
57890         * modules/count-one-bits (License): Relicense to LGPLv2+.
57891         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57892
57893 2008-08-22  Andreas Schwab  <schwab@suse.de>
57894
57895         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57896         Remove spurious space in assignment.
57897
57898 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57899
57900         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57901         Paul Eggert <eggert@CS.UCLA.EDU>.
57902
57903 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57904
57905         * modules/gettext: Add m4/threadlib.m4.
57906
57907 2008-08-19  Eric Blake  <ebb9@byu.net>
57908
57909         test-c-stack: fix compilation failure on FreeBSD 5.0
57910         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57911         headers before <sys/resource.h>.
57912         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57913         the bug.
57914         Reported by Nelson H. F. Beebe.
57915
57916         strverscmp: migrate from "strverscmp.h" to <string.h>
57917         * modules/string (Makefile.am): Add new hooks.
57918         * modules/strverscmp (Files): Remove strverscmp.h.
57919         (Depends-on): Add string.
57920         (configure.ac): Add indicator.
57921         (Include): Mention new header.
57922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57923         defaults.
57924         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57925         results.
57926         * lib/strverscmp.h: Delete.
57927         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57928         * tests/test-strverscmp.c (includes): Adjust client.
57929         * lib/check-version.c (includes): Likewise.
57930         * NEWS: Document the change.
57931
57932         strverscmp: add unit test
57933         * modules/strverscmp-tests: New file.
57934         * tests/test-strverscmp.c: Likewise.
57935
57936 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57937
57938         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57939         regarding Windows crypto stuff, from Mono.
57940
57941 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57942
57943         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57944         if present, for intel RND.  Return error on failures.
57945
57946 2008-08-18  Ben Pfaff  <blp@gnu.org>
57947
57948         gitlog-to-changelog: give better diagnostic for failed pipe-open
57949         * build-aux/gitlog-to-changelog: Improve error message: suggest
57950         that the version of Git may be too old.
57951
57952 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57953
57954         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57955         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57956
57957 2008-08-18  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57960         pthread_in_use().
57961
57962 2008-08-18  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/glthread/threadlib.c: Include <pthread.h>.
57965
57966 2008-08-18  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57969         glthread_recursive_lock_* macros.
57970         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57971         Fix syntax error.
57972
57973 2008-08-18  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/glthread/thread.c: Avoid forcing a context switch right after
57976         thread creation.
57977
57978 2008-08-17  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57981         * lib/glthread/thread.h: Provide Win32 specific implementation.
57982         * modules/thread (Files): Add lib/glthread/thread.c.
57983         (Depends-on): Add lock.
57984         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57985
57986 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57987
57988         New module 'yield'.
57989         * modules/yield: New file.
57990         * lib/glthread/yield.h: New file.
57991         * m4/yield.m4: New file.
57992         * MODULES.html.sh (Multithreading): Add yield.
57993
57994 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57995
57996         New module 'thread'.
57997         * modules/thread: New file.
57998         * lib/glthread/thread.h: New file.
57999         * m4/thread.m4: New file.
58000         * MODULES.html.sh (Multithreading): Add thread.
58001
58002 2008-08-17  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/glthread/lock.h: Include <stdlib.h> always.
58005         * lib/glthread/tls.h: Likewise.
58006         * lib/glthread/cond.h: Likewise.
58007
58008 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58009
58010         New module 'cond'.
58011         * modules/cond: New file.
58012         * lib/glthread/cond.h: New file.
58013         * lib/glthread/cond.c: New file.
58014         * m4/cond.m4: New file.
58015         * MODULES.html.sh (Multithreading): Add cond.
58016
58017 2008-08-16  Eric Blake  <ebb9@byu.net>
58018
58019         c-stack: fix regression on Irix 5.3 from 2008-06-21
58020         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58021         sa_sigaction...
58022         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58023         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58024         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58025         * modules/signal (Makefile.am): Use the value.
58026         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58027         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58028         * doc/posix-headers/signal.texi (signal.h): Document this
58029         portability issue.
58030         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58031         Reported by Tom G. Christensen.
58032
58033 2008-08-17  Bruno Haible  <bruno@clisp.org>
58034
58035         New module 'threadlib'.
58036         * modules/threadlib: New file.
58037         * lib/glthread/threadlib.c: New file, extracted from
58038         lib/glthread/lock.c.
58039         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58040         functions.
58041         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58042         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58043         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58044         macros.
58045         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58046         (gl_DISABLE_THREADS): Remove macro.
58047         * modules/lock (Files): Remove build-aux/config.rpath.
58048         (Depends-on): Remove havelib. Add threadlib.
58049         (configure.ac-early): Remove section.
58050         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58051         * modules/tls (Depends-on): Remove lock. Add threadlib.
58052         (Link): New section, copied from threadlib.
58053         * MODULES.html.sh (Multithreading): Add threadlib.
58054
58055 2008-08-14  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58058         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58059         glthread_rwlock_unlock, glthread_rwlock_destroy,
58060         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58061         glthread_recursive_lock_destroy): Define as macros always.
58062         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58063         glthread_lock_lock.
58064         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58065         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58066         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58067         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58068         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58069         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58070         (glthread_recursive_lock_lock_func): Renamed from
58071         glthread_recursive_lock_lock.
58072         (glthread_recursive_lock_unlock_func): Renamed from
58073         glthread_recursive_lock_unlock.
58074         (glthread_recursive_lock_destroy_func): Renamed from
58075         glthread_recursive_lock_destroy.
58076
58077 2008-08-14  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/glthread/lock.h: Renamed from lib/lock.h.
58080         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58081         * lib/glthread/tls.h: Renamed from lib/tls.h.
58082         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58083         * lib/fstrcmp.c: Update includes.
58084         * lib/strsignal.c: Update includes.
58085         * modules/lock (Files, Makefile.am): Update.
58086         (Include): Change to "glthread/lock.h".
58087         * modules/tls (Files, Makefile.am): Update.
58088         (Include): Change to "glthread/tls.h".
58089         * tests/test-lock.c: Update includes.
58090         * tests/test-tls.c: Update includes.
58091         * NEWS: Mention the renamed header files.
58092
58093 2008-08-11  Jim Meyering  <meyering@redhat.com>
58094
58095         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58096
58097 2008-08-11  Eric Blake  <ebb9@byu.net>
58098
58099         test-c-stack: avoid C99-ism
58100         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58101         before statement.
58102         Reported by Alain Guibert.
58103
58104 2008-08-10  Jim Meyering  <meyering@redhat.com>
58105
58106         ensure that return value of uinttostr et al are not ignored
58107         * lib/inttostr.h (__GNUC_PREREQ): Define.
58108         (__attribute_warn_unused_result__): Define.
58109         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58110
58111 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58112
58113         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58114         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58115
58116 2008-08-07  Jim Meyering  <meyering@redhat.com>
58117
58118         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58119
58120         * modules/mkstemp (License): Relicense under LGPLv2+.
58121         * modules/tempname (License): Likewise.
58122
58123 2008-08-06  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/poll.c (poll): Further micro-optimization.
58126
58127 2008-08-06  Jim Meyering  <meyering@redhat.com>
58128
58129         inet_pton.c: use locale-independent tolower
58130         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58131         (inet_pton6): Use c_tolower rather than tolower.
58132         * modules/inet_pton (Depends-on): Add c-ctype.
58133
58134 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58135
58136         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58137         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58138
58139 2008-08-06  Jim Meyering  <meyering@redhat.com>
58140
58141         * modules/inet_pton (License): Relicense under LGPLv2+.
58142
58143 2008-08-03  Bruno Haible  <bruno@clisp.org>
58144
58145         Additional non-aborting API for lock and tls.
58146         * lib/lock.h: Include <errno.h>.
58147         (glthread_lock_init): New macro/function.
58148         (gl_lock_init): Define as wrapper around glthread_lock_init.
58149         (glthread_lock_lock): New macro/function.
58150         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58151         (glthread_lock_unlock): New macro/function.
58152         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58153         (glthread_lock_destroy): New macro/function.
58154         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58155         (glthread_rwlock_init): New macro/function.
58156         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58157         (glthread_rwlock_rdlock): New macro/function.
58158         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58159         (glthread_rwlock_wrlock): New macro/function.
58160         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58161         (glthread_rwlock_unlock): New macro/function.
58162         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58163         (glthread_rwlock_destroy): New macro/function.
58164         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58165         (glthread_recursive_lock_init): New macro/function.
58166         (gl_recursive_lock_init): Define as wrapper around
58167         glthread_recursive_lock_init.
58168         (glthread_recursive_lock_lock): New macro/function.
58169         (gl_recursive_lock_lock): Define as wrapper around
58170         glthread_recursive_lock_lock.
58171         (glthread_recursive_lock_unlock): New macro/function.
58172         (gl_recursive_lock_unlock): Define as wrapper around
58173         glthread_recursive_lock_unlock.
58174         (glthread_recursive_lock_destroy): New macro/function.
58175         (gl_recursive_lock_destroy): Define as wrapper around
58176         glthread_recursive_lock_destroy.
58177         (glthread_once): New macro/function.
58178         (gl_once): Define as wrapper around glthread_once.
58179         Update function declarations.
58180         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58181         glthread_rwlock_init. Return error code.
58182         (glthread_rwlock_rdlock_multithreaded): Renamed from
58183         glthread_rwlock_rdlock. Return error code.
58184         (glthread_rwlock_wrlock_multithreaded): Renamed from
58185         glthread_rwlock_wrlock. Return error code.
58186         (glthread_rwlock_unlock_multithreaded): Renamed from
58187         glthread_rwlock_unlock. Return error code.
58188         (glthread_rwlock_destroy_multithreaded): Renamed from
58189         glthread_rwlock_destroy. Return error code.
58190         (glthread_recursive_lock_init_multithreaded): Renamed from
58191         glthread_recursive_lock_init. Return error code.
58192         (glthread_recursive_lock_lock_multithreaded): Renamed from
58193         glthread_recursive_lock_lock. Return error code.
58194         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58195         glthread_recursive_lock_unlock. Return error code.
58196         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58197         glthread_recursive_lock_destroy. Return error code.
58198         (glthread_once_call): Make static.
58199         (glthread_once_multithreaded): Renamed from glthread_once.
58200         * lib/tls.h: Include <errno.h>.
58201         (glthread_tls_key_init): New macro/function.
58202         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58203         (glthread_tls_set): New macro/function.
58204         (gl_tls_set): Define as wrapper around glthread_tls_set.
58205         (glthread_tls_key_destroy): New macro/function.
58206         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58207         Update function declarations.
58208         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58209         glthread_tls_get.
58210         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58211
58212 2008-08-04  Eric Blake  <ebb9@byu.net>
58213
58214         gnumakefile: use space, not TAB, outside of targets
58215         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58216
58217 2008-08-02  Jim Meyering  <meyering@redhat.com>
58218
58219         getdate.y: avoid locale-dependent date parsing failure
58220         In Turkish locales, getdate would fail to recognize keywords
58221         containing a lowercase "i".  The solution is not to rely on
58222         locale-sensitive case-conversion.
58223         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58224         (lookup_word): Use c_toupper in place of toupper.
58225         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58226         Reported by Vefa Bicakci <bicave@superonline.com> in
58227         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58228         * modules/getdate (Depends-on): Add c-ctype.
58229
58230 2008-08-02  Bruno Haible  <bruno@clisp.org>
58231
58232         * gnulib-tool (func_import): When updating or creating a .gitignore
58233         file, prepend each added line with a slash, and ignore leading slashes
58234         from the existing lines.
58235         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58236
58237 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58238
58239         Portability fix for GNU make 3.79.1.
58240         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58241         versions do not understand.
58242
58243 2008-08-01  Bruno Haible  <bruno@clisp.org>
58244
58245         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58246         * tests/test-isnanf.h (zero): New variable.
58247         (main): Avoid literal -0.0f.
58248         * tests/test-isnand.h (zero): New variable.
58249         (main): Avoid literal -0.0.
58250         * tests/test-isnanl.h (zero): New variable.
58251         (main): Avoid literal -0.0L.
58252         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58253         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58254         -0.0, -0.0L.
58255         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58256         (test_signbitd): Avoid literal -0.0.
58257         (test_signbitl): Avoid literal -0.0L.
58258         * tests/test-ceilf1.c (zero): New variable.
58259         (main): Avoid literal -0.0f.
58260         * tests/test-ceill.c (zero): New variable.
58261         (main): Avoid literal -0.0L.
58262         * tests/test-floorf1.c (zero): New variable.
58263         (main): Avoid literal -0.0f.
58264         * tests/test-floorl.c (zero): New variable.
58265         (main): Avoid literal -0.0L.
58266         * tests/test-roundf1.c (zero): New variable.
58267         (main): Avoid literal -0.0f.
58268         * tests/test-round1.c (zero): New variable.
58269         (main): Avoid literal -0.0.
58270         * tests/test-roundl.c (zero): New variable.
58271         (main): Avoid literal -0.0L.
58272         * tests/test-truncf1.c (zero): New variable.
58273         (main): Avoid literal -0.0f.
58274         * tests/test-trunc1.c (zero): New variable.
58275         (main): Avoid literal -0.0.
58276         * tests/test-truncl.c (zero): New variable.
58277         (main): Avoid literal -0.0L.
58278         * tests/test-frexp.c (zero): New variable.
58279         (main): Avoid literal -0.0.
58280         * tests/test-frexpl.c (zero): New variable.
58281         (main): Avoid literal -0.0L.
58282         * tests/test-ldexpl.c (zero): New variable.
58283         (main): Avoid literal -0.0L.
58284         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58285         (zerod, zerol): New variables.
58286         (test_function): Avoid literals -0.0, -0.0L.
58287         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58288         (zerod, zerol): New variables.
58289         (test_function): Avoid literals -0.0, -0.0L.
58290         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58291         (zerod, zerol): New variables.
58292         (test_function): Avoid literals -0.0, -0.0L.
58293         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58294         (zerod, zerol): New variables.
58295         (test_function): Avoid literals -0.0, -0.0L.
58296         * tests/test-strtod.c (zero): New variable.
58297         (main): Avoid literal -0.0.
58298         Reported by Jonathan C. Patschke <jp@centtech.com>.
58299
58300 2008-07-31  Jim Meyering  <meyering@redhat.com>
58301
58302         sha256.h: correct definition of SHA224_DIGEST_SIZE
58303         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58304         Reported by Paulie Pena IV <paulie4@gmail.com>.
58305         Define as 224 / 8, rather than as a literal.
58306         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58307         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58308         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58309
58310 2008-07-31  Bruno Haible  <bruno@clisp.org>
58311
58312         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58313         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58314         Reported by Jonathan Patschke <jp@centtech.com>.
58315
58316 2008-07-31  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58319         Reported by Paolo Bonzini <bonzini@gnu.org>.
58320
58321 2008-07-30  Eric Blake  <ebb9@byu.net>
58322
58323         test-strtod: allow compilation without -lm
58324         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58325         Reported by Dennis Clarke <blastwave@gmail.com>.
58326
58327 2008-07-28  Jim Meyering  <meyering@redhat.com>
58328
58329         bootstrap: work also when there are no .po files in po/
58330         * build-aux/bootstrap (update_po_files): Complete the change
58331         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58332
58333 2008-07-27  Jim Meyering  <meyering@redhat.com>
58334
58335         * users.txt: Add zile.
58336
58337 2008-07-26  Ben Pfaff  <blp@gnu.org>
58338
58339         Add missing dependencies on new m4/exponent[fdl].m4 files.
58340         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58341         * modules/isnand-nolibm: Add m4/exponentd.m4.
58342         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58343         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58344         m4/isnan[fdl].m4, because the macros actually used moved.
58345         Reported by Jim Meyering.
58346
58347 2008-07-14  Ben Pfaff  <blp@gnu.org>
58348
58349         Add isinf module.
58350         * lib/isinf.c: New file.
58351         * lib/math.in.h: Define isinf macro if we have decided to replace
58352         it.
58353         * m4/isinf.m4: New file.
58354         * m4/math_h.m4: Initialize and substitute variables for isinf
58355         module.
58356         * modules/isinf: New file.
58357         * modules/isinf-tests: New file.
58358         * modules/math: Add substitutions for new module.
58359         * tests/test-isinf.c: New file.
58360         * doc/posix-functions/isinf.texi: Mention new module.
58361         * MODULES.html.sh: Mention new module.
58362
58363 2008-07-14  Ben Pfaff  <blp@gnu.org>
58364
58365         Factor out some macros for use by additional modules.
58366         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58367         exponentf.m4.
58368         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58369         exponentd.m4.
58370         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58371         file exponentl.m4.
58372         * m4/exponentf.m4: New file.
58373         * m4/exponentd.m4: New file.
58374         * m4/exponentl.m4: New file.
58375         * modules/isnanf: Use new file m4/exponentf.m4.
58376         * modules/isnand: Use new file m4/exponentd.m4.
58377         * modules/isnanl: Use new file m4/exponentl.m4.
58378
58379 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58380
58381         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58382         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58383         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58384         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58385
58386         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58387         readlink on platforms without PATH_MAX.
58388
58389 2008-07-21  Eric Blake  <ebb9@byu.net>
58390
58391         Warn, not fail, on stale version.
58392         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58393
58394         Don't allow installation with stale devel version number.
58395         * top/GNUmakefile (_is-install-target): New macro.
58396         (_curr-ver): Forbid installation with stale version number.
58397
58398 2008-07-20  Bruno Haible  <bruno@clisp.org>
58399
58400         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58401         TESTS_ENVIRONMENT.
58402         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58403
58404 2008-07-20  Bruno Haible  <bruno@clisp.org>
58405
58406         * lib/c-stack.h (c_stack_action): Add documentation.
58407         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58408
58409 2008-07-20  Bruno Haible  <bruno@clisp.org>
58410
58411         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58412         * modules/readlink (License): Likewise.
58413
58414 2008-07-17  Eric Blake  <ebb9@byu.net>
58415
58416         * modules/c-stack (Link): Fix typo.
58417
58418         Make c-stack use libsigsegv, when available.
58419         * modules/c-stack (Depends-on): Add libsigsegv.
58420         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58421         needed.
58422         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58423         (segv_handler, overflow_handler, c_stack_action)
58424         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58425         implementation when libsigsegv is available, but only when using
58426         the library is necessary.
58427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58428         comment, explaining why XSI check fails on Linux.
58429         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58430         * tests/test-c-stack2.sh: Tweak skip message.
58431         * NEWS: Document new link-time requirements.
58432
58433 2008-07-16  Eric Blake  <ebb9@byu.net>
58434
58435         c-stack: Expose false positives when not using libsigsegv.
58436         * modules/c-stack-tests (Files): Expand test.
58437         * tests/test-c-stack.c (main): Add means to conditionally trigger
58438         non-overflow SIGSEGV.
58439         * tests/test-c-stack2.sh: New file.
58440
58441 2008-07-14  Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58444         Reported by Eric Blake.
58445
58446 2008-07-14  Sam Steingold  <sds@gnu.org>
58447             Bruno Haible  <bruno@clisp.org>
58448
58449         New module libsigsegv.
58450         * modules/libsigsegv: New file.
58451         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58452         modifications.
58453         * MODULES.html.sh (Signal handling): New section.
58454
58455 2008-07-14  Bruno Haible  <bruno@clisp.org>
58456
58457         * modules/unictype/ctype-* (Description): Add the word "function".
58458         Improves the resulting doc in MODULES.html.
58459
58460 2008-07-12  Ben Pfaff  <blp@gnu.org>
58461
58462         Add longlong module.
58463         * modules/longlong: New file.
58464
58465 2008-07-12  Bruno Haible  <bruno@clisp.org>
58466
58467         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58468         to empty.
58469
58470 2008-07-10  Ben Pfaff  <blp@gnu.org>
58471
58472         Add isnan module.
58473         * doc/posix-functions/isnan.texi: Mention new module.
58474         * lib/math.in.h: Define isnan macro if we have decided to replace
58475         it.
58476         * m4/isnan.m4: New file.
58477         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58478         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58479         also.
58480         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58481         redundancy.
58482         * m4/math_h.m4: Initialize and substitute variables for isnan
58483         module.
58484         * modules/isnan: New file.
58485         * modules/isnan-tests: New file.
58486         * modules/math: Add substitutions for new module.
58487         * tests/test-isnan.c: New file.
58488         * MODULES.html.sh: Mention new module.
58489
58490 2008-07-10  Ben Pfaff  <blp@gnu.org>
58491
58492         Add isnanf module.
58493         * lib/isnanf.m4: New file.
58494         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58495         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58496         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58497         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58498         * modules/isnanf: New file.
58499         * modules/isnanf-tests: New file.
58500         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58501         files.
58502         * tests/test-isnanf-nolibm.c: factored most of its contents into
58503         new file tests/test-isnanf.h.
58504         * tests/test-isnanf.h: New file.
58505         * tests/test-isnanf.c: New file.
58506         * MODULES.html.sh: Mention new module.
58507         * doc/glibc-functions/isnanf.texi: Mention new module.
58508
58509 2008-07-10  Ben Pfaff  <blp@gnu.org>
58510
58511         Add isnand module.
58512         * lib/isnand.h: New file.
58513         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58514         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58515         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58516         functionality also.
58517         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58518         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58519         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58520         * modules/isnand: New file.
58521         * modules/isnand-tests: New file.
58522         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58523         files.
58524         * tests/test-isnand-nolibm.c: factored most of its contents into
58525         new file tests/test-isnand.h.
58526         * tests/test-isnand.h: New file.
58527         * tests/test-isnand.c: New file.
58528         * MODULES.html.sh: Mention new module.
58529
58530 2008-07-10  Ben Pfaff  <blp@gnu.org>
58531
58532         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58533         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58534         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58535         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58536         * modules/isnanf-nolibm: Update references to renamed files.
58537         * modules/isnand-nolibm: Likewise.
58538         * modules/isnanf-nolibm-tests: Likewise.
58539         * modules/isnand-nolibm-tests: Likewise.
58540         * lib/frexp.c: Likewise.
58541         * lib/isfinite.c: Likewise.
58542         * lib/signbitd.c: Likewise.
58543         * lib/signbitf.c: Likewise.
58544         * lib/vasnprintf.c: Likewise.
58545         * tests/test-ceilf1.c: Likewise.
58546         * tests/test-ceilf2.c: Likewise.
58547         * tests/test-floorf1.c: Likewise.
58548         * tests/test-floorf2.c: Likewise.
58549         * tests/test-frexp.c: Likewise.
58550         * tests/test-round1.c: Likewise.
58551         * tests/test-round2.c: Likewise.
58552         * tests/test-roundf1.c: Likewise.
58553         * tests/test-strtod.c: Likewise.
58554         * tests/test-trunc1.c: Likewise.
58555         * tests/test-trunc2.c: Likewise.
58556         * tests/test-truncf1.c: Likewise.
58557         * tests/test-truncf2.c: Likewise.
58558         * NEWS: Mention the renamed header files.
58559
58560 2008-07-11  Jim Meyering  <meyering@redhat.com>
58561
58562         vc-list-files: make the last-resort awk code more portable
58563         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58564         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58565         does not support it.
58566
58567 2008-07-10  Eric Blake  <ebb9@byu.net>
58568
58569         Work with tar's bootstrap.
58570         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58571         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58572         an m4 comment.
58573
58574 2008-07-09  Jim Meyering  <meyering@redhat.com>
58575
58576         posix-shell.m4: fix typo that made this test malfunction
58577         * m4/posix-shell.m4: Remove capitalization in variable name.
58578
58579 2008-07-08  Bruno Haible  <bruno@clisp.org>
58580
58581         * m4/onceonly.m4: Update comments.
58582         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58583
58584 2008-07-04  Jim Meyering  <meyering@redhat.com>
58585
58586         * users.txt: Add vc-dwim.
58587         (bison, coreutils): Use the gitweb URL.
58588
58589 2008-07-03  Jim Meyering  <meyering@redhat.com>
58590
58591         * users.txt: Add libffcall.  From Sam Steingold.
58592
58593 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58594
58595         getdate.y: do not ignore TZ with relative day, month or year offset
58596         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58597         relative-date-handling, since otherwise, the latter would clobber the
58598         sole output (an updated Start value) of the tz-handling block.
58599         * tests/test-getdate.c: Tests for the fix
58600
58601 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58602
58603         Recognize 'foo_LIBRARIES += libgnu.a'.
58604         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58605         makefile snippet has already specified an installation location,
58606         also using '+='.
58607
58608 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58609
58610         getdate.y: factor out common actions
58611         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58612         Use them in place of open-coded actions.
58613
58614 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58615
58616         Add self-test for getdate module.
58617         * modules/getdate-tests: New file.
58618         * tests/test-getdate.c: New file.
58619
58620 2008-06-29  Bruno Haible  <bruno@clisp.org>
58621
58622         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58623         .gitignore.
58624         Reported by Sylvain Beucler <beuc@beuc.net>.
58625
58626 2008-06-29  Bruno Haible  <bruno@clisp.org>
58627
58628         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58629         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58630
58631 2008-06-29  Bruno Haible  <bruno@clisp.org>
58632
58633         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58634         EXTRA_DIST.
58635         Reported by Sylvain Beucler <beuc@beuc.net>.
58636
58637 2008-06-26  Jim Meyering  <meyering@redhat.com>
58638
58639         make several modules depend on the "open" module
58640         This provides slightly increased consistency when opening-for-write
58641         the name of a non-directory spelled with a trailing slash.
58642         * modules/chdir-safer: Likewise.
58643         * modules/chown: Likewise.
58644         * modules/clean-temp: Likewise.
58645         * modules/copy-file: Likewise.
58646         * modules/fchdir: Likewise.
58647         * modules/fcntl-safer: Likewise.
58648         * modules/pipe: Likewise.
58649         * modules/utime: Likewise.
58650         Prompted by Eric Blake and Bruno Haible.
58651
58652 2008-06-24  Andreas Schwab  <schwab@suse.de>
58653
58654         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58655         literals can be used as initializers for global variables.
58656
58657 2008-06-23  Eric Blake  <ebb9@byu.net>
58658
58659         Make gnulib-cache.m4 easier to diff.
58660         * gnulib-tool (func_import): Allow newlines when reading cached
58661         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58662
58663 2008-06-23  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58666         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58667         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58668         m4/signalblocking.m4.
58669         (gl_PREREQ_SIGACTION): Don't invoke it.
58670         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58671         gl_PREREQ_SIG_HANDLER_H.
58672         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58673         Don't check for sigaction here.
58674
58675 2008-06-23  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58678         (install_handlers): Don't set the SA_RESETHAND flag.
58679
58680 2008-06-23  Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/sigaction.m4: Comment fixes.
58683         * lib/signal.in.h: Likewise.
58684
58685 2008-06-23  Eric Blake  <ebb9@byu.net>
58686
58687         Fix typo.
58688         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58689
58690         Avoid SA_ namespace.
58691         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58692         Reported by Ralf Wildenhues.
58693
58694         Avoid test failure due to SA_RESTORER.
58695         * tests/test-sigaction.c (SA_MASK): New macro.
58696         (main): Avoid failing due to extension flags being set.
58697         Reported by Jim Meyering.
58698
58699         Revert use of sig-handler.h in sigprocmask.c.
58700         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58701         it requires the existence of struct sigaction.
58702         * lib/sigprocmask.c (handler_t): Restore typedef.
58703         (rpl_signal, old_handlers): Use local type.
58704
58705 2008-06-22  Bruno Haible  <bruno@clisp.org>
58706
58707         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58708         conditionally.
58709         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58710
58711 2008-06-22  Bruno Haible  <bruno@clisp.org>
58712
58713         * doc/posix-functions/siginterrupt.texi: Move note.
58714
58715         * lib/signal.in.h (SA_RESTART): New macro.
58716         * lib/sigaction.c: Update comment.
58717
58718         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58719
58720         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58721         (gl_PREREQ_SIGPROCMASK): Invoke it.
58722         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58723
58724         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58725
58726         * lib/sigprocmask.c: Update a comment.
58727
58728 2008-06-21  Eric Blake  <ebb9@byu.net>
58729
58730         Use sigaction module rather than signal().
58731         * modules/c-stack (Depends-on): Add sigaction.
58732         * modules/fatal-signal (Depends-on): Likewise.
58733         * modules/nanosleep (Depends-on): Likewise.
58734         * modules/sigprocmask (Files): Add sig-handler.h.
58735         * modules/sigaction (Files): Likewise.
58736         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58737         Eggert.
58738         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58739         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58740         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58741         (init_fatal_signals): Likewise.
58742         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58743         (siginterrupt): Delete fallback.
58744         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58745         instead.
58746         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58747         siginterrupt.
58748
58749         New module sigaction, for mingw.
58750         * modules/sigaction: New module...
58751         * modules/sigaction-tests: ...and its test.
58752         * m4/sigaction.m4: New file.
58753         * lib/sigaction.c: Likewise.
58754         * tests/test-sigaction.c: Likewise.
58755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58756         * modules/signal (Makefile.am): Likewise.
58757         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58758         needed.
58759         * doc/posix-headers/signal.texi (signal.h): Mention provided
58760         types.
58761         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58762         that sigaction is preferable.
58763         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58764         module.
58765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58766         sigaction.
58767
58768         Improve robustness of sigprocmask by overriding signal.
58769         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58770         is in use.
58771         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58772         (SIGKILL, SIGSTOP): Provide fallbacks.
58773         (rpl_signal): Implement.
58774         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58775         signal can be called inside handlers.
58776
58777         Fix nanosleep module on mingw.
58778         * modules/nanosleep (Depends-on): Add sys_select.
58779         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58780
58781         Fix licensing of sigprocmask.
58782         * modules/raise (License): Relicense as LGPL.
58783
58784 2008-06-21  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58787         result if it contains question marks.
58788         Reported by Michael Geng <linux@michaelgeng.de>.
58789
58790 2008-06-19  Bruno Haible  <bruno@clisp.org>
58791
58792         Fix CVS-ism.
58793         * doc/gnulib.texi: Include updated-stamp.texi.
58794         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58795         (updated-stamp.texi): New rule.
58796         (gnulib.info): Depend on it.
58797         * doc/.gitignore: Add updated-stamp.texi.
58798         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58799
58800 2008-06-19  Bruno Haible  <bruno@clisp.org>
58801
58802         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58803         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58804
58805 2008-06-19  Eric Blake  <ebb9@byu.net>
58806
58807         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58808         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58809         Reported by Stepan Kasal.
58810
58811 2008-06-18  Bruno Haible  <bruno@clisp.org>
58812
58813         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58814         Reported by Eric Blake.
58815
58816 2008-06-18  Eric Blake  <ebb9@byu.net>
58817
58818         Work around cygwin 1.5.25 strsignal bug.
58819         * tests/test-strsignal.c: Allow for const char *.
58820         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58821
58822 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58823
58824         * users.txt: Update URL to article and add author/date
58825         information.
58826
58827 2008-06-17  Bruno Haible  <bruno@clisp.org>
58828
58829         New macro gl_DISABLE_THREADS.
58830         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58831         if the user did not pass --enable-threads or --disable-threads option.
58832         (gl_DISABLE_THREADS): New macro.
58833         Reported by Eric Blake <ebb9@byu.net>.
58834
58835 2008-06-17  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58838         when the macro ignores it.
58839         Based on a patch by Eric Blake <ebb9@byu.net>.
58840
58841 2008-06-17  Bruno Haible  <bruno@clisp.org>
58842
58843         * modules/tls (License): Change to LGPLv2+.
58844         Reported by Eric Blake.
58845
58846 2008-06-17  Eric Blake  <ebb9@byu.net>
58847
58848         Simplify c-stack prerequisites.
58849         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58851         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58852         check.
58853         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58854         <sys/resource.h>.
58855
58856         Move c-stack test into testsuite.
58857         * modules/c-stack-tests: New file.
58858         * lib/c-stack.c [DEBUG]: Move test program...
58859         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58860         fail test if sigaltstack is lacking.
58861         * tests/test-c-stack.sh: New driver file.
58862
58863 2008-06-16  Eric Blake  <ebb9@byu.net>
58864
58865         Use raise module consistently.
58866         * modules/fatal-signal (Depends-on): Add raise.
58867         * modules/sigprocmask (Depends-on): Likewise.
58868         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58869         * lib/sigprocmask.c (sigprocmask): Likewise.
58870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58871         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58872
58873         Fix compliance bug in sigpending.
58874         * lib/sigprocmask.c (sigpending): Return pending array via
58875         parameter, not return value.
58876
58877 2008-06-14  Eric Blake  <ebb9@byu.net>
58878
58879         Improve obstack-printf test code.
58880         * tests/test-obstack-printf.c (test_function): Fix comment, and
58881         simplify usage of obstack_* in macros.  Add a test for coverage.
58882         Reported by Bruno Haible.
58883
58884 2008-06-14  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58887         array size as a constant, not as a const variable.
58888         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58889         AC_USE_SYSTEM_EXTENSIONS.
58890         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58891         Test whether the obstack_printf function actually exists.
58892         * modules/obstack-printf (Depends-on): Add extensions.
58893         (Include): Remove obstack.h.
58894         * modules/obstack-printf-posix (Depends-on): Add extensions.
58895         (Include): Remove obstack.h.
58896
58897 2008-06-13  Eric Blake  <ebb9@byu.net>
58898
58899         Add obstack-printf and obstack-printf-posix modules.
58900         * modules/obstack-printf: New file.
58901         * modules/obstack-printf-posix: Likewise.
58902         * MODULES.html.sh (Misc): Mention them.
58903         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58904         Likewise.
58905         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58906         Likewise.
58907         * modules/stdio (Makefile.am): Accomodate new modules.
58908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58909         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58910         Declare.
58911         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58912         functions.
58913         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58914         (gl_REPLACE_OBSTACK_PRINTF): New macros
58915         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58916         * tests/test-obstack-printf.c: New file.
58917         * modules/obstack-printf-tests: Likewise.
58918         * modules/obstack-printf-posix-tests: Likewise.
58919
58920 2008-06-11  Bruno Haible  <bruno@clisp.org>
58921
58922         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58923         * lib/open.c: Include errno.h.
58924         (open): Fail when attempting to write to a file that has a trailing
58925         slash.
58926         * tests/test-open.c (main): Test against trailing slash bug.
58927         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58928
58929 2008-06-10  Bruno Haible  <bruno@clisp.org>
58930
58931         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58932         for $? to work inside the trap command, with various /bin/sh-s.
58933         * tests/test-vc-list-files-cvs.sh: Likewise.
58934
58935 2008-06-10  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/acl-internal.h: Don't include gettext.h here.
58938         * lib/set-mode-acl.c: Include gettext.h here.
58939         * lib/copy-acl.c: Likewise.
58940
58941 2008-06-10  Bruno Haible  <bruno@clisp.org>
58942
58943         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58944         * lib/wait-process.c (wait_subprocess): Likewise.
58945         * lib/execute.h (execute): Add termsigp argument.
58946         * lib/execute.c (execute): Likewise.
58947         * lib/csharpcomp.c (compile_csharp_using_pnet,
58948         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58949         * lib/csharpexec.c (execute_csharp_using_pnet,
58950         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58951         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58952         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58953         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58954         is_jikes_present): Update.
58955         * lib/javaexec.c (execute_java_class): Update.
58956         * lib/javaversion.c (execute_and_read_line): Update.
58957         * NEWS: Document the changes.
58958         Reported by Eric Blake.
58959
58960 2008-06-10  Eric Blake  <ebb9@byu.net>
58961
58962         Add missing include.
58963         * tests/test-strstr.c (includes): Add <signal.h>.
58964         * tests/test-strcasestr.c (includes): Likewise.
58965         * tests/test-memmem.c (includes): Likewise.
58966
58967 2008-06-10  Bruno Haible  <bruno@clisp.org>
58968
58969         * lib/wait-process.c (wait_subprocess): Add an assertion.
58970
58971 2008-06-10  Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58974
58975 2008-06-10  Bruno Haible  <bruno@clisp.org>
58976
58977         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58978         using alarm().
58979         * tests/test-strcasestr.c (main): Likewise.
58980         * tests/test-strstr.c (main): Likewise.
58981
58982 2008-06-09  Bruno Haible  <bruno@clisp.org>
58983
58984         Work around the Solaris 10 ACE ACLs ABI change.
58985         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58986         declare if ACL_NO_TRIVIAL is present.
58987         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58988         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58989         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58990         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58991         define if ACL_NO_TRIVIAL is present.
58992         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58993         and use the current ABI.
58994         (file_has_acl): Use same #if condition as elsewhere.
58995         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58996         in use, and use the current ABI.
58997         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58998         Reported by Jim Meyering.
58999
59000 2008-06-09  Eric Blake  <ebb9@byu.net>
59001
59002         Work around environments that (stupidly) ignore SIGALRM.
59003         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59004         before using alarm().
59005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59007         Reported by Ian Beckwith <ianb@erislabs.net>.
59008
59009         Produce autobuild blurb earlier in log.
59010         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59011
59012 2008-06-09  Jim Meyering  <meyering@redhat.com>
59013         and Ondřej Vašík  <ovasik@redhat.com>
59014
59015         utimens.c: correct kernel bug work-around
59016         Ondřej Vašík found that the invalid return value of 280 indicates
59017         failure, not success, and the kernel bug we're trying to work
59018         around affects not just the utimensat call, but also the fallback
59019         futimens call.
59020         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59021         not success.
59022         [HAVE_FUTIMENS]: Use the same work-around, here.
59023
59024 2008-06-09  Jim Meyering  <meyering@redhat.com>
59025
59026         add more guards around definition of ACE_-related code
59027         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59028         ALLOW and ACE_OWNER are also defined.
59029
59030 2008-06-08  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/acl-internal.h: Add me as co-author.
59033         * lib/file-has-acl.c: Likewise.
59034         * lib/set-mode-acl.c: Likewise.
59035         * lib/copy-acl.c: Likewise.
59036
59037 2008-06-08  Bruno Haible  <bruno@clisp.org>
59038
59039         Add support for AIX ACLs.
59040         * lib/acl-internal.h (acl_nontrivial): New declaration.
59041         * lib/file-has-acl.c (acl_nontrivial): New function.
59042         (file_has_acl): Add implementation using AIX 4 ACL API.
59043         * lib/set-mode-acl.c (qset_acl): Likewise.
59044         * lib/copy-acl.c (qcopy_acl): Likewise.
59045
59046 2008-06-08  Bruno Haible  <bruno@clisp.org>
59047
59048         Add support for HP-UX ACLs.
59049         * lib/acl-internal.h (acl_nontrivial): New declaration.
59050         * lib/file-has-acl.c (acl_nontrivial): New function.
59051         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59052         * lib/set-mode-acl.c (qset_acl): Likewise.
59053         * lib/copy-acl.c (qcopy_acl): Likewise.
59054
59055 2008-06-08  Bruno Haible  <bruno@clisp.org>
59056
59057         Add support for Cygwin ACLs.
59058         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59059         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59060         the chmod_or_fchmod call.
59061         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59062
59063 2008-06-08  Bruno Haible  <bruno@clisp.org>
59064
59065         Fix bug with setuid modes in Solaris 10+ code.
59066         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59067         succeeded, when the mode contains some special bits.
59068
59069 2008-06-08  Bruno Haible  <bruno@clisp.org>
59070
59071         Add support for Solaris 7..10 ACLs.
59072         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59073         declarations.
59074         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59075         functions.
59076         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59077         * lib/set-mode-acl.c (qset_acl): Likewise.
59078         * lib/copy-acl.c (qcopy_acl): Likewise.
59079
59080 2008-06-08  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59083         declaration.
59084         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59085         (acl_access_nontrivial): Remove MacOS X case.
59086         (file_has_acl): Use acl_extended_nontrivial.
59087         * lib/copy-acl.c (qcopy_acl): Likewise.
59088
59089 2008-06-08  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59092
59093 2008-06-08  Jim Meyering  <meyering@redhat.com>
59094
59095         * modules/acl (Maintainer): Add Bruno Haible.
59096
59097 2008-06-07  Bruno Haible  <bruno@clisp.org>
59098
59099         Improve support for Tru64 ACLs.
59100         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59101         ACL on OSF/1.
59102
59103 2008-06-07  Bruno Haible  <bruno@clisp.org>
59104
59105         Add support for MacOS X ACLs.
59106         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59107         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59108         * lib/set-mode-acl.c (qset_acl): Likewise.
59109         * lib/copy-acl.c (qcopy_acl): Likewise.
59110
59111 2008-06-07  Bruno Haible  <bruno@clisp.org>
59112
59113         Fix memory leak introduced on 2008-05-22.
59114         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59115         use.
59116
59117 2008-06-07  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59120         to construct an empty ACL.
59121
59122 2008-06-07  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59125         precisely.
59126         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59127
59128 2008-06-07  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59131         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59132
59133 2008-06-07  Bruno Haible  <bruno@clisp.org>
59134
59135         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59136         regardless of POSIX.
59137         * doc/posix-functions/_longjmp.texi: Likewise.
59138         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59139         SystemV platform in this case.
59140
59141 2008-06-06  Eric Blake  <ebb9@byu.net>
59142
59143         Document abort() bugs.
59144         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59145
59146         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59147         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59148         sigsetjmp.
59149         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59150         siglongjmp, but only as a macro.
59151         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59152         is obsolete.
59153         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59154
59155         Tweak documentation to cover cygwin argz bugs.
59156         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59157         argz bug fix; no code change needed since no cygwin releases
59158         occurred between the last fix and the bug being tested.
59159         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59160         module and recently fixed cygwin bugs.
59161         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59162         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59163         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59164         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59165         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59166         Likewise.
59167         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59168         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59169         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59170         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59171         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59172         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59173         Likewise.
59174
59175         Avoid gcc warning on cygwin.
59176         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59177         !ACL_NO_TRIVIAL]: Avoid unused variable.
59178
59179 2008-06-05  Eric Blake  <ebb9@byu.net>
59180
59181         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59182         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59183         git-version-gen fails to come up with a version.
59184         Reported by Simon Josefsson.
59185
59186 2008-06-05  Jim Meyering  <meyering@redhat.com>
59187             Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         utimens.c: work around a probable Linux kernel bug
59190         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59191         appears to be a kernel bug that causes utimensat to return 280
59192         instead of 0, indicating success.
59193
59194 2008-06-04  Bruno Haible  <bruno@clisp.org>
59195
59196         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59197         2008-06-01 commit.
59198
59199 2008-06-04  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59202         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59203         (file_has_acl): Use it. Save errno afterwards.
59204         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59205
59206 2008-06-03  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59209         draft code. Simplify #ifs.
59210         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59211         Put Solaris code after POSIX-draft code. Fix comments regarding
59212         Solaris 10, HP-UX. Mention Cygwin.
59213         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59214
59215 2008-06-03  Eric Blake  <ebb9@byu.net>
59216
59217         Provide fallback for older kernels.
59218         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59219         Provide runtime fallback if kernel lacks support.
59220         Reported by Mike Frysinger.
59221
59222 2008-06-02  Bruno Haible  <bruno@clisp.org>
59223
59224         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59225         it exists.
59226
59227 2008-06-02  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59230         * lib/copy-acl.c (qcopy_acl): Update comment.
59231
59232 2008-06-02  Bruno Haible  <bruno@clisp.org>
59233
59234         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59235         like ACL APIs.
59236
59237 2008-06-02  Bruno Haible  <bruno@clisp.org>
59238
59239         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59240         * tests/test-set-mode-acl.sh: Likewise.
59241         * tests/test-copy-acl.sh: Likewise.
59242         * tests/test-copy-file.sh: Likewise.
59243
59244 2008-06-02  Bruno Haible  <bruno@clisp.org>
59245
59246         * tests/test-file-has-acl.sh: Remove unused code.
59247
59248 2008-06-01  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59251         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59252         messages.
59253         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59254
59255 2008-06-01  Bruno Haible  <bruno@clisp.org>
59256
59257         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59258         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59259         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59260         APIs.
59261         * modules/acl-tests (configure.ac): Remove tests now contained in
59262         m4/acl.m4.
59263
59264 2008-06-02  Jim Meyering  <meyering@redhat.com>
59265
59266         announce-gen: use a better key-server host name
59267         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59268         it may be more consistently reliable.  Suggested by Werner Koch
59269         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59270
59271 2008-06-01  Bruno Haible  <bruno@clisp.org>
59272
59273         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59274         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59275
59276 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59277
59278         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59279
59280 2008-06-01  Bruno Haible  <bruno@clisp.org>
59281
59282         New ACL tests.
59283         * tests/test-file-has-acl.sh: New file.
59284         * tests/test-file-has-acl.c: New file.
59285         * tests/test-set-mode-acl.sh: New file.
59286         * tests/test-set-mode-acl.c: New file.
59287         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59288         * tests/test-copy-acl.c: New file.
59289         * modules/acl-tests: New file, based on modules/copy-file-tests.
59290         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59291         (Depends-on): Add acl-tests.
59292         (configure.ac): Remove checks.
59293         (Makefile.am): Don't create test-sameacls program here any more.
59294
59295 2008-06-01  Bruno Haible  <bruno@clisp.org>
59296
59297         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59298         * tests/test-sameacls.c: Include progname.h.
59299         (main): Invoke set_program_name. Portability fixes for MacOS X,
59300         Solaris, HP-UX.
59301
59302 2008-06-01  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59305         function.
59306         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59307
59308 2008-06-01  Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/rpmatch (Depends-on): Add strdup.
59311
59312 2008-06-01  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/pipe.c: Include unistd-safer.h.
59315         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59316         * modules/pipe (Depends-on): Add unistd-safer.
59317
59318 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59319
59320         * modules/autobuild (configure.ac): Call AB_INIT.
59321
59322 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59323
59324         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59325         Suggested by Bruno Haible <bruno@clisp.org>.
59326
59327 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59328
59329         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59330         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59331         <bruno@clisp.org>.
59332
59333 2008-05-29  Eric Blake  <ebb9@byu.net>
59334
59335         Prefer new POSIX 200x interfaces over futimesat.
59336         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59337         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59338         when available.
59339         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59340
59341 2008-05-28  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/stpcpy (License): Change to LGPLv2+.
59344         Requested by David Lutterkort <dlutter@redhat.com>.
59345
59346 2008-05-27  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59349         current mingw.
59350         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59351
59352 2008-05-27  Bruno Haible  <bruno@clisp.org>
59353
59354         * modules/iconv_open (Link): New section, from module 'iconv'.
59355         * modules/striconv (Link): Likewise.
59356         * modules/striconveh (Link): Likewise.
59357         * modules/xstriconv (Link): Likewise.
59358         * modules/unicodeio (Link): Likewise.
59359         * modules/propername (Link): Likewise.
59360         Reported by Jim Meyering.
59361
59362 2008-05-26  Jim Meyering  <meyering@redhat.com>
59363
59364         sha256: do not artificially restrict buffer length to be < 2^32
59365         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59366         uint32_t to size_t.
59367         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59368         to match.
59369
59370         avoid unaligned access errors, e.g., on sparc
59371         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59372         direct access through a possibly-unaligned uint64* pointer.
59373         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59374         direct access through a possibly-unaligned uint32* pointer.
59375         Prompted by this patch from Tom "spot" Callaway:
59376         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59377
59378         sha512.c: fix typo in comment
59379         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59380
59381 2008-05-25  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59384         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59385         (Makefile.am): Update lib_SOURCES.
59386
59387 2008-05-25  Bruno Haible  <bruno@clisp.org>
59388
59389         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59390
59391 2008-05-25  Jim Meyering  <meyering@redhat.com>
59392
59393         useless-if-before-free: freed expr may have white-space differences
59394         * build-aux/useless-if-before-free: Recognize cases in which the
59395         freed expression differs from the tested one in embedded white
59396         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59397         $1 was used, so we can't make any regexp shy.  Improved tests now
59398         detect this.
59399
59400         useless-if-before-free: accept white space in the expression.
59401         * build-aux/useless-if-before-free: For now, any white space
59402         in the expression must be identical in the free argument.
59403
59404         useless-if-before-free: efficiency tweak
59405         * build-aux/useless-if-before-free: Make the expression-matching
59406         regexp "shy".
59407         Make the *outer* regexp shy, not the expr-matching one.
59408
59409         update code-in-comment to accept cast of free arg
59410         * build-aux/useless-if-before-free: Update regexp.
59411
59412 2008-05-25  Bruno Haible  <bruno@clisp.org>
59413
59414         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59415         * modules/copy-file-tests (Files, Makefile.am): Update.
59416         * tests/test-copy-file.c (func_test_copy): Update.
59417
59418 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59419
59420         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59421
59422 2008-05-23  Bruno Haible  <bruno@clisp.org>
59423
59424         Improve support for ACLs on OSF/1.
59425         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59426         Remove fallback for unknown flavors of ACLs.
59427
59428 2008-05-22  Bruno Haible  <bruno@clisp.org>
59429
59430         Add support for ACLs on OSF/1.
59431         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59432         replacements.
59433         (acl_free_text): New macro fallback.
59434         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59435         acl_free.
59436         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59437         acl_free_text function. Require AC_C_INLINE.
59438
59439 2008-05-22  Bruno Haible  <bruno@clisp.org>
59440
59441         Make copy_acl work on MacOS X 10.5.
59442         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59443         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59444         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59445         If MODE_INSIDE_ACL, don't assume that every system has the same text
59446         representation for ACLs as FreeBSD.
59447         * lib/copy-acl.c (copy_acl): Add support for platforms with
59448         !MODE_INSIDE_ACL.
59449         * lib/file-has-acl.c (file_has_acl): Likewise.
59450         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59451         FreeBSD, MacOS X, or IRIX, respectively.
59452
59453 2008-05-22  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/acl.h: Don't include <sys/acl.h>.
59456         (GETACLCNT): Move fallback to lib/acl-internal.h.
59457         * lib/acl-internal.h: Include <sys/acl.h> here.
59458         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59459
59460 2008-05-22  Bruno Haible  <bruno@clisp.org>
59461
59462         Split off copy_acl function to separate file.
59463         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59464         * lib/acl.c (copy_acl): Moved function to separate file.
59465         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59466         * modules/acl (Files): Add lib/copy-acl.c.
59467         (Makefiles.am): Augment lib_SOURCES.
59468
59469 2008-05-22  Bruno Haible  <bruno@clisp.org>
59470
59471         * modules/copy-file-tests: New file.
59472         * tests/test-copy-file.sh: New file.
59473         * tests/test-copy-file.c: New file.
59474         * tests/test-copy-file-sameacls.c: New file.
59475
59476 2008-05-22  Eric Blake  <ebb9@byu.net>
59477
59478         Avoid gcc warning.
59479         * tests/test-memcmp.c (main): Pass NULL indirectly.
59480
59481 2008-05-21  Bruno Haible  <bruno@clisp.org>
59482
59483         Add reference doc about ACLs.
59484         * doc/acl-resources.txt: New file.
59485         * doc/acl-cygwin.txt: New file.
59486
59487 2008-05-21  Bruno Haible  <bruno@clisp.org>
59488
59489         Avoid one more warning from gcc.
59490         * lib/vasnprintf.c (IF_LINT): Update comments.
59491         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59492
59493 2008-05-21  Jim Meyering  <meyering@redhat.com>
59494
59495         avoid a warning from gcc
59496         * lib/vasnprintf.c (IF_LINT): Define.
59497         (scale10_round_decimal_long_double):
59498         Use it to avoid a "may be used uninitialized" warning.
59499         (scale10_round_decimal_double): Likewise.
59500
59501 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59502
59503         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59504         declared.
59505
59506 2008-05-20  Bruno Haible  <bruno@clisp.org>
59507
59508         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59509         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59510
59511 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59512
59513         * modules/memcmp-tests: New file.
59514         * tests/test-memcmp.c: New file.
59515
59516 2008-05-19  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/propername (Notice, configure.ac): Put quoted "..." into
59519         --keyword option.
59520         * lib/propername.h: Update comments accordingly.
59521         Reported by Eric Blake.
59522
59523 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59524
59525         * modules/getpass-gnu (Depends-on): Add fseeko.
59526
59527 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59528
59529         * modules/base64-tests: New file.
59530
59531 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59532
59533         * lib/base64.c (base64_decode_ctx): If a decode context structure
59534         was passed in use it to ignore newlines.  If a context structure
59535         was _not_ passed in, continue to treat newlines as garbage (this
59536         is the historical behavior).  Formerly base64_decode.
59537         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59538         takes a decode context structure.
59539         * lib/base64.h (base64_decode): Macro for four-argument calls.
59540         (base64_decode_alloc): Likewise.
59541         * lib/base64.c (base64_decode_ctx): If a decode context structure
59542         was passed in use it to ignore newlines.  If a context structure
59543         was _not_ passed in, continue to treat newlines as garbage (this
59544         is the historical behavior).  Formerly base64_decode.
59545         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59546         takes a decode context structure.
59547         * lib/base64.h (base64_decode): Macro for four-argument calls.
59548         (base64_decode_alloc): Likewise.
59549
59550 2008-05-19  Jim Meyering  <meyering@redhat.com>
59551
59552         avoid a warning from gcc
59553         * lib/trim.c (IF_LINT): Define.
59554         (trim2): Use it to avoid a "may be used uninitialized" warning.
59555
59556         Fix doc typo.
59557         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59558
59559 2008-05-19  Bruno Haible  <bruno@clisp.org>
59560
59561         * doc/glibc-functions/getpass.texi: Document limits of other
59562         implementations.
59563
59564 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59565             Bruno Haible <bruno@clisp.org>
59566
59567         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59568
59569 2008-05-18  Bruno Haible  <bruno@clisp.org>
59570
59571         * modules/propername: New file, from GNU gettext.
59572         * lib/propername.h: New file, from GNU gettext.
59573         * lib/propername.c: New file, from GNU gettext.
59574         * MODULES.html.sh (Internationalization functions): Add propername.
59575
59576 2008-05-16  Jim Meyering  <meyering@redhat.com>
59577             Bruno Haible  <bruno@clisp.org>
59578
59579         Avoid some warnings from "gcc -Wshadow".
59580         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59581
59582 2008-05-15  Eric Blake  <ebb9@byu.net>
59583
59584         Extend previous patch to cygwin 1.7.0.
59585         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59586         fast implementation in cygwin >= 1.7.0.
59587         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59589
59590 2008-05-15  Bruno Haible  <bruno@clisp.org>
59591
59592         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59593         implementation in glibc >= 2.9.
59594         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59596
59597 2008-05-15  Bruno Haible  <bruno@clisp.org>
59598
59599         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59600         (Unicode string functions): Add unilbrk/*.
59601         Reported by Karl Berry.
59602
59603 2008-05-15  Eric Blake  <ebb9@byu.net>
59604
59605         Fix violation of <stdbool.h> replacement in regex.
59606         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59607         * lib/regexec.c (re_search_internal): Likewise.
59608         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59609
59610 2008-05-15  Jim Meyering  <meyering@redhat.com>
59611
59612         avoid distracting test output when git or cvs is not found
59613         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59614         * tests/test-vc-list-files-git.sh: Likewise.
59615
59616 2008-05-15  Eric Blake  <ebb9@byu.net>
59617
59618         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59619         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59620         glibc version.
59621         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59622         * doc/posix-functions/strstr.texi (strstr): Likewise.
59623         * lib/str-two-way.h (MAX): Sychronize with glibc.
59624
59625 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59626
59627         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59628         opr.ctx_type.
59629         (calc_first): Initialize constraint field.
59630         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59631         Fix grammar.
59632         (duplicate_node): Merge constraint field for all node types.
59633         (calc_eclosure_iter): Look at constraint field for all node types.
59634         * lib/regex_internal.c (create_cd_newstate): Don't look at
59635         opr.ctx_type.
59636
59637 2008-05-14  Bruno Haible  <bruno@clisp.org>
59638
59639         Help GCC to do better code generation.
59640         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59641         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59642         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59643         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59644         Declare with attribute 'malloc' if supported.
59645
59646 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59647
59648         use "echo STR|wc -c" rather than unportable "expr length STR"
59649         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59650         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59651
59652 2008-05-14  Jim Meyering  <meyering@redhat.com>
59653
59654         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59655         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59656         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59657         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59658         via Collin Lasse.
59659
59660 2008-05-14  Eric Blake  <ebb9@byu.net>
59661
59662         Avoid quadratic growth in gl_LIBSOURCES.
59663         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59664         Suggested by Bruno Haible.
59665
59666         Test xmemdup0.
59667         * modules/xmemdup0-tests: New file.
59668         * tests/test-xmemdup0.c: Likewise.
59669
59670 2008-05-13  Eric Blake  <ebb9@byu.net>
59671
59672         Split xmemdup0 into its own module.
59673         * modules/xmemdup0: New file.
59674         * lib/xmemdup0.h: Likewise.
59675         * lib/xmemdup0.c: Likewise.
59676         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59677         * lib/xalloc.h (xmemdup0): Remove.
59678         * lib/xmalloc.c (xmemdup0): Likewise.
59679
59680 2008-05-13  Eric Blake  <ebb9@byu.net>
59681             Bruno Haible  <bruno@clisp.org>
59682
59683         Reduce number of forks required during autoconf.
59684         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59685         and gl_LIBSOURCES_DIR.
59686         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59687         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59688         m4_syscmd per file.
59689         <m4_foreach_w>: Move...
59690         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59691
59692 2008-05-13  Eric Blake  <ebb9@byu.net>
59693
59694         * gnulib-tool: Fix various comment typos.
59695
59696 2008-05-12  Bruno Haible  <bruno@clisp.org>
59697
59698         Tailor the linebreaking algorithm.
59699         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59700
59701 2008-05-12  Bruno Haible  <bruno@clisp.org>
59702
59703         Update to Unicode 5.0.0.
59704         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59705         LBP_JV, LBP_JT. Redistribute values.
59706         (unilbrk_table): Change size.
59707         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59708         Unicode TR#14 rev. 22.
59709         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59710         LBP_JV, LBP_JT. Redistribute values.
59711         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59712         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59713         Update.
59714         * lib/unilbrk/lbrkprop1.h: Regenerated.
59715         * lib/unilbrk/lbrkprop2.h: Regenerated.
59716         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59717         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59718         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59719         Likewise.
59720         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59721         Likewise.
59722         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59723         result.
59724         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59725         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59726         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59727         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59728         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59729         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59730
59731 2008-05-11  Bruno Haible  <bruno@clisp.org>
59732
59733         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59734
59735 2008-05-11  Bruno Haible  <bruno@clisp.org>
59736
59737         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59738         * modules/unilbrk/gen-lbrk: New file.
59739
59740 2008-05-11  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59743         * m4/sha512.m4 (gl_SHA512): Likewise.
59744
59745 2008-05-11  Jim Meyering  <meyering@redhat.com>
59746
59747         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59748         * modules/crypto/sha256: New file.
59749         * modules/crypto/sha512: Likewise.
59750         * lib/sha256.c: Likewise.
59751         * lib/sha256.h: Likewise.
59752         * lib/sha512.c: Likewise.
59753         * lib/sha512.h: Likewise.
59754         * lib/u64.h: Likewise.
59755         * m4/sha256.m4: Likewise.
59756         * m4/sha512.m4: Likewise.
59757         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59758
59759 2008-05-10  Bruno Haible  <bruno@clisp.org>
59760
59761         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59762         (Input/Output <stdio.h>): Add xprintf.
59763         (Signal handling <signal.h>): Add strsignal.
59764         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59765         (Core language properties): Add func.
59766         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59767         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59768         strings.
59769         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59770         (Input/output): New section.
59771         (File system functions): Add openat-die, stat-macros.
59772         (Networking functions): Add sockets.
59773         (Unicode string functions): Add unictype/*.
59774         (Support for building libraries and executables): Add gperf.
59775         (Support for building documentation): Add agpl-3.0.
59776         (Misc): Add nocrash.
59777
59778 2008-05-10  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/unictype/gen-ctype: New file.
59781
59782 2008-05-10  Jim Meyering  <meyering@redhat.com>
59783
59784         Make chdir-safer.c more efficient on a system with no symlinks.
59785         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59786         also if ELOOP is zero.  Suggested by Bruno Haible.
59787
59788         Make chdir-safer.c slightly safer.
59789         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59790         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59791
59792         Avoid compile failure on systems without ELOOP (like mingw).
59793         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59794         Reported by Bruno Haible.
59795
59796 2008-05-10  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59799         (is_utf8_encoding): Use a case-insensitive comparison.
59800         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59801         streq.
59802
59803 2008-05-10  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59806         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59807         * lib/unilbrk/ulc-common.h (iconv_string_length,
59808         iconv_string_keeping_offsets): Remove declarations.
59809         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59810         Don't include <iconv.h>, streq.h, xsize.h.
59811         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59812         conversion.
59813         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59814         <iconv.h>, streq.h, xsize.h.
59815         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59816         conversion.
59817         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59818         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59819         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59820         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59821
59822 2008-05-10  Bruno Haible  <bruno@clisp.org>
59823
59824         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59825         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59826
59827         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59828         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59829
59830         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59831         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59832
59833         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59834         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59835
59836         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59837         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59838
59839         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59840         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59841
59842         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59843         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59844
59845         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59846         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59847
59848 2008-05-10  Bruno Haible  <bruno@clisp.org>
59849
59850         Split up 'linebreak' module.
59851         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59852         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59853         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59854         modifications.
59855         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59856         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59857         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59858         lib/linebreak.c.
59859         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59860         lib/linebreak.c.
59861         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59862         lib/linebreak.c.
59863         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59864         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59865         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59866         lib/linebreak.c.
59867         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59868         lib/linebreak.c.
59869         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59870         lib/linebreak.c.
59871         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59872         lib/linebreak.c.
59873         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59874         lib/linebreak.c.
59875         * modules/unilbrk/base: New file.
59876         * modules/unilbrk/tables: New file.
59877         * modules/unilbrk/u8-possible-linebreaks: New file.
59878         * modules/unilbrk/u16-possible-linebreaks: New file.
59879         * modules/unilbrk/u32-possible-linebreaks: New file.
59880         * modules/unilbrk/ulc-common: New file.
59881         * modules/unilbrk/ulc-possible-linebreaks: New file.
59882         * modules/unilbrk/u8-width-linebreaks: New file.
59883         * modules/unilbrk/u16-width-linebreaks: New file.
59884         * modules/unilbrk/u32-width-linebreaks: New file.
59885         * modules/unilbrk/ulc-width-linebreaks: New file.
59886         * lib/linebreak.h: Remove file.
59887         * lib/linebreak.c: Remove file.
59888         * m4/linebreak.m4: Remove file.
59889         * modules/linebreak: Remove file.
59890         * NEWS: Mention the changes.
59891
59892 2008-05-09  Eric Blake  <ebb9@byu.net>
59893
59894         Add xmemdup0.
59895         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59896         implementation.
59897         * lib/xmalloc.c (xmemdup0): New C implementation.
59898
59899 2008-05-08  Bruno Haible  <bruno@clisp.org>
59900
59901         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59902
59903 2008-05-07  Eric Blake  <ebb9@byu.net>
59904
59905         Support cross-compilation of <wctype.h>.
59906         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59907         AC_CACHE_CHECK.
59908
59909 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59910
59911         * build-aux/vc-list-files: Add support for bzr.
59912
59913 2008-05-03  Jim Meyering  <meyering@redhat.com>
59914
59915         avoid failed assertion with tight malloc
59916         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59917
59918 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59919
59920         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59921         are needed from arpa/inet.h.
59922         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59923         Reported by Bruno Haible.
59924
59925 2008-05-02  Jim Meyering  <meyering@redhat.com>
59926
59927         avoid compilation error on FreeBSD 6
59928         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59929
59930 2008-05-01  Jim Meyering  <meyering@redhat.com>
59931
59932         useless-if-before-free: correct --help's exit status description
59933         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59934         for one or more matches, etc.  Reported by Bruno Haible.
59935
59936         vc-list-files: make the stand-alone gnulib test work
59937         * modules/vc-list-files-tests (configure.ac):
59938         Define and AC_SUBST abs_aux_dir.
59939         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59940         $(abs_top_srcdir) to each script and having each of them
59941         duplicate the work of setting PATH, set PATH here, using
59942         the new variable, abs_aux_dir instead.
59943         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59944         * tests/test-vc-list-files-git.sh: Likewise.
59945         Reported by Bruno Haible.
59946
59947 2008-05-01  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59950         reallocation. Rename 'done' to 'found_delimiter'.
59951
59952 2008-05-01  Jim Meyering  <meyering@redhat.com>
59953
59954         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59955         * build-aux/vc-list-files: Use `...`, not $(...).
59956
59957 2008-04-30  Jim Meyering  <meyering@redhat.com>
59958
59959         add tests for vc-list-files
59960         * modules/vc-list-files-tests: New module.
59961         * tests/test-vc-list-files-cvs.sh: New file.
59962         * tests/test-vc-list-files-git.sh: New file.
59963
59964         avoid a warning from gcc
59965         * lib/getndelim2.c (IF_LINT): Define.
59966         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59967
59968         vc-list-files: work properly with build-aux/cvsu, too
59969         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59970         to all cvs-based clauses.
59971
59972         vc-list-files: work properly in the CVS+awk case, too
59973         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59974
59975         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59976         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59977         take more than one file argument, so .  Add quotes, just in case $dir
59978         ever contains a shell meta-character.  Prompted by Soren Hansen in
59979         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59980
59981 2008-04-29  Eric Blake  <ebb9@byu.net>
59982
59983         Optimize getndelim2 to use block operations when possible.
59984         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59985         freadseek, and memchr2.
59986         * lib/getndelim2.c (getndelim2): Use them for block reads.
59987
59988 2008-04-29  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59991         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59992         * modules/inet_ntop (Depends-on): Add extensions.
59993         * modules/inet_pton (Depends-on): Likewise.
59994         Reported by Simon Josefsson.
59995
59996 2008-04-29  Jim Meyering  <meyering@redhat.com>
59997
59998         When the is more than one match in a block, match all of them.
59999         * build-aux/useless-if-before-free: Iterate through each block
60000         until there are no more matches.
60001
60002         Fix broken useless-if-before-free script.
60003         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60004         the expression to match cast of argument to free-like function.
60005
60006 2008-04-29  Eric Blake  <ebb9@byu.net>
60007
60008         Use new header.
60009         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60010
60011 2008-04-29  Jim Meyering  <meyering@redhat.com>
60012
60013         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60014         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60015         by gnulib to exist and to declare e.g., inet_ntop.
60016         Don't include "inet_ntop.h", now removed.
60017
60018         * m4/arpa_inet_h.m4: Remove trailing blanks.
60019
60020 2008-04-29  Eric Blake  <ebb9@byu.net>
60021
60022         Silence valgrind on safe reads beyond potential array bounds.
60023         * lib/rawmemchr.valgrind: New file.
60024         * lib/strchrnul.valgrind: Likewise.
60025         * modules/rawmemchr (Files): Distribute new file.
60026         * modules/strchrnul (Files): Likewise.
60027         Suggested by Bruno Haible.
60028
60029 2008-04-29  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60032         (inet_ntop, inet_pton): Change portability warning's wording.
60033         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60034         Invoke gl_CHECK_NEXT_HEADERS.
60035         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60036         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60037         set ARPA_INET_H.
60038         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60039         * modules/arpa_inet (Description): No longer only for systems that
60040         lack it.
60041         (Depends-on): Add include_next.
60042         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60043         HAVE_ARPA_INET_H.
60044
60045 2008-04-29  Jim Meyering  <meyering@redhat.com>
60046
60047         * modules/mkdir (License): Re-license as LGPLv2+.
60048
60049 2008-04-29  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/rawmemchr (Maintainer): Set to Eric.
60052         * modules/strchrnul (Maintainer): Likewise.
60053
60054 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60055
60056         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60057         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60058
60059         * modules/arpa_inet (arpa/inet.h): Use them.
60060
60061 2008-04-28  Eric Blake  <ebb9@byu.net>
60062
60063         Test getndelim2.
60064         * modules/getndelim2-tests: New file.
60065         * tests/test-getndelim2.c: Likewise.
60066         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60067         stream.
60068         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60069
60070         * MODULES.html.sh: Document new module.
60071
60072 2008-04-20  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/c-stack.c (die): Use raise.
60075         * modules/c-stack (Depends-on): Add raise.
60076
60077 2008-04-28  Bruno Haible  <bruno@clisp.org>
60078
60079         Expect rpmatch to be declared.
60080         * lib/yesno.c (rpmatch): Remove declaration.
60081
60082         Declare rpmatch.
60083         * lib/stdlib.in.h (rpmatch): New declaration.
60084         * lib/rpmatch.c: Include <stdlib.h> first.
60085         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60086         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60088         HAVE_RPMATCH.
60089         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60091         (Include): Set to <stdlib.h>.
60092         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60093         HAVE_RPMATCH.
60094         * NEWS: Document the change.
60095
60096 2008-04-28  Bruno Haible  <bruno@clisp.org>
60097
60098         Change rpmatch to use nl_langinfo when appropriate.
60099         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60100         (N_): New macro.
60101         (localized_pattern): New function/macro.
60102         (try): Remove match, nomatch arguments. Copy the pattern into safe
60103         memory before caching it.
60104         (rpmatch): Use localized_pattern. Add translator comments.
60105         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60106         Suggested by Eric Blake.
60107         * modules/rpmatch (Depends-on): Add stdbool.
60108
60109 2008-04-28  Eric Blake  <ebb9@byu.net>
60110
60111         Add rawmemchr module, matching glibc.
60112         * modules/string (Makefile.am): New indicator.
60113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60114         * lib/string.in.h (rawmemchr): Declare when appropriate.
60115         * modules/rawmemchr: New file.
60116         * m4/rawmemchr.m4: Likewise.
60117         * lib/rawmemchr.c: Likewise.
60118         * modules/rawmemchr-tests: Likewise.
60119         * tests/test-rawmemchr.c: Likewise.
60120         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60121         module.
60122         * modules/strchrnul (Depends-on): Add rawmemchr.
60123         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60124
60125         Whitespace cleanup.
60126         * tests/test-strchrnul.c: Reindent.
60127         * lib/strchrnul.c: Likewise.
60128
60129         Optimize and test strchrnul.
60130         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60131         * modules/strchrnul-tests: New file.
60132         * tests/test-strchrnul.c: Likewise.
60133
60134         Remove intprops dependency.
60135         * modules/memchr (Depends-on): Remove intprops.
60136         * modules/memrchr (Depends-on): Likewise.
60137         * modules/memchr2 (Depends-on): Likewise.
60138         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60139         * lib/memrchr.c (__memrchr): Likewise.
60140         * lib/memrchr2.c (memchr2): Likewise.
60141         Reported by Simon Josefsson.
60142
60143 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60144
60145         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60146         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60147
60148 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60149
60150         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60151
60152         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60153
60154         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60155
60156         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60157         declarations.
60158         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60159
60160         * m4/inet_pton.m4: Don't check for header files.
60161
60162         * m4/inet_ntop.m4: Don't check for header files.
60163
60164 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60165
60166         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60167         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60168         trigger for cygwin).
60169         Reported by Bruno Haible  <bruno@clisp.org>.
60170
60171 2008-04-28  Bruno Haible  <bruno@clisp.org>
60172
60173         * doc/posix-functions/strdup.texi: Mention mingw problem.
60174
60175 2008-04-27  Bruno Haible  <bruno@clisp.org>
60176
60177         * modules/stat-time-tests (Depends-on): Add sleep.
60178         * tests/test-stat-time.c (force_unlink): New function.
60179         (cleanup): Use it.
60180         (test_mtime): Remove the ctime related tests.
60181         (test_ctime): New function, containing the ctime related tests.
60182         (main): Call test_ctime, except on native Windows platforms.
60183
60184 2008-04-27  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/rpmatch.c (rpmatch): Add some comments.
60187         Reported by James Youngman <jay@gnu.org>.
60188
60189 2008-04-27  Bruno Haible  <bruno@clisp.org>
60190
60191         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60192         quiet NaNs.
60193
60194 2008-04-27  Bruno Haible  <bruno@clisp.org>
60195
60196         Make test-yesno.sh work on mingw.
60197         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60198         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60199         (main): Set stdin to binary mode.
60200         * modules/yesno-tests (Depends-on): Add binary-io.
60201
60202 2008-04-27  Bruno Haible  <bruno@clisp.org>
60203
60204         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60205         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60206         argument that lie outside the IEEE 854 domain.
60207         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60208         (gl_ISFINITE): Use it.
60209         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60210
60211 2008-04-27  Bruno Haible  <bruno@clisp.org>
60212
60213         Allow local renaming in config.h.
60214         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60215
60216 2008-04-27  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/memchr.c (__memchr): Change type of 'i'.
60219         * lib/memchr2.c (memchr2): Likewise.
60220
60221 2008-04-26  Eric Blake  <ebb9@byu.net>
60222         and Bruno Haible  <bruno@clisp.org>
60223
60224         Optimize and test memrchr.
60225         * modules/memrchr (Depends-on): Add intprops.
60226         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60227         * modules/memrchr-tests: New file.
60228         * tests/test-memrchr.c: New file.
60229
60230 2008-04-26  Bruno Haible  <bruno@clisp.org>
60231
60232         Add tentative support for DragonFly BSD.
60233         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60234         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60235         fp.
60236         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60237         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60238         * lib/fpurge.c (fpurge): Likewise.
60239         * lib/freadable.c (freaadable): Likewise.
60240         * lib/freadahead.c (freadahead): Likewise.
60241         * lib/freading.c (freading): Likewise.
60242         * lib/freadptr.c (freadptr): Likewise.
60243         * lib/freadseek.c (freadptrinc): Likewise.
60244         * lib/fseeko.c (fseeko): Likewise.
60245         * lib/fseterr.c (fseterr): Likewise.
60246         * lib/fwritable.c (fwritable): Likewise.
60247         * lib/fwriting.c (fwriting): Likewise.
60248
60249 2008-04-26  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/stdio-impl.h: New file.
60252         * lib/fbufmode.c: Include stdio-impl.h.
60253         (fbufmode): Use fp_, remove redundant #defines.
60254         * lib/fflush.c: Include stdio-impl.h.
60255         (clear_ungetc_buffer): Remove redundant #defines.
60256         * lib/fpurge.c: Include stdio-impl.h.
60257         (fpurge): Remove redundant #defines.
60258         * lib/freadable.c: Include stdio-impl.h.
60259         (freadable): Remove redundant #defines.
60260         * lib/freadahead.c: Include stdio-impl.h.
60261         (freadahead): Remove redundant #defines.
60262         * lib/freading.c: Include stdio-impl.h.
60263         (freading): Remove redundant #defines.
60264         * lib/freadptr.c: Include stdio-impl.h.
60265         (freadptr): Remove redundant #defines.
60266         * lib/freadseek.c: Include stdio-impl.h.
60267         (freadptrinc): Remove redundant #defines.
60268         * lib/fseeko.c: Include stdio-impl.h.
60269         (rpl_fseeko): Remove redundant #defines.
60270         * lib/fseterr.c: Include stdio-impl.h.
60271         (fseterr): Remove redundant #defines.
60272         * lib/fwritable.c: Include stdio-impl.h.
60273         (fwritable: Remove redundant #defines.
60274         * lib/fwriting.c: Include stdio-impl.h.
60275         (fwriting): Remove redundant #defines.
60276         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60277         * modules/fflush (Files): Likewise.
60278         * modules/fpurge (Files): Likewise.
60279         * modules/freadable (Files): Likewise.
60280         * modules/freadahead (Files): Likewise.
60281         * modules/freading (Files): Likewise.
60282         * modules/freadptr (Files): Likewise.
60283         * modules/freadseek (Files): Likewise.
60284         * modules/fseeko (Files): Likewise.
60285         * modules/fseterr (Files): Likewise.
60286         * modules/fwritable (Files): Likewise.
60287         * modules/fwriting (Files): Likewise.
60288
60289 2008-04-26  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60292         restore_seek_optimization, update_fpos_cache): New functions, extracted
60293         from rpl_fflush.
60294         (rpl_fflush): Use them.
60295         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60296         (gl_REPLACE_FFLUSH): Use it.
60297
60298 2008-04-26  Bruno Haible  <bruno@clisp.org>
60299
60300         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60301         on Solaris.
60302         * tests/test-xstrtoimax.sh: Likewise.
60303         * tests/test-xstrtoumax.sh: Likewise.
60304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60305
60306 2008-04-26  Bruno Haible  <bruno@clisp.org>
60307
60308         * modules/memchr-tests: New file.
60309         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60310
60311 2008-04-26  Eric Blake  <ebb9@byu.net>
60312             Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/memchr.c: Include intprops.h.
60315         (__memchr): Optimize parallel detection of matching bytes. Rename local
60316         variables. Add explanatory comments.
60317
60318 2008-04-26  Bruno Haible  <bruno@clisp.org>
60319
60320         Fix module 'memchr', broken since 2000-10-28.
60321         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60322
60323 2008-04-26  Bruno Haible  <bruno@clisp.org>
60324
60325         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60326         comments.
60327
60328 2008-04-25  Eric Blake  <ebb9@byu.net>
60329
60330         Use native fstatat on cygwin 1.7.0.
60331         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60332         first.
60333
60334 2008-04-23  Eric Blake  <ebb9@byu.net>
60335
60336         Improve memchr2 performance.
60337         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60338         NUL bytes.
60339         * modules/memchr2 (Depends-on): Use intprops.h.
60340
60341 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60342
60343         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60344         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60345         <blp@cs.stanford.edu>.
60346
60347 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60348
60349         * lib/arpa_inet.in.h: New file.
60350
60351         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60352         (Makefile.am): Sed in substitute header file.
60353
60354         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60355         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60356
60357         * modules/inet_ntop (configure.ac): Use
60358         gl_ARPA_INET_MODULE_INDICATOR.
60359
60360         * modules/inet_pton (configure.ac): Use
60361         gl_ARPA_INET_MODULE_INDICATOR.
60362
60363 2008-04-22  Jim Meyering  <meyering@redhat.com>
60364
60365         * modules/verify (License): Re-license as LGPLv2+.
60366
60367 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60368
60369         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60370         parameter to void* as per POSIX standard (MinGW uses char*).
60371
60372 2008-04-21  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60375         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60376         Define to replacements if REPLACE_ISWCNTRL is 1.
60377         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60378         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60379         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60380         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60381         what it fixes.
60382         * doc/posix-functions/iswalpha.texi: Likewise.
60383         * doc/posix-functions/iswblank.texi: Likewise.
60384         * doc/posix-functions/iswcntrl.texi: Likewise.
60385         * doc/posix-functions/iswdigit.texi: Likewise.
60386         * doc/posix-functions/iswgraph.texi: Likewise.
60387         * doc/posix-functions/iswlower.texi: Likewise.
60388         * doc/posix-functions/iswprint.texi: Likewise.
60389         * doc/posix-functions/iswpunct.texi: Likewise.
60390         * doc/posix-functions/iswspace.texi: Likewise.
60391         * doc/posix-functions/iswupper.texi: Likewise.
60392         * doc/posix-functions/iswxdigit.texi: Likewise.
60393         Reported by Alain Guibert.
60394
60395 2008-04-21  Bruno Haible  <bruno@clisp.org>
60396
60397         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60398         Patch by Alain Guibert.
60399
60400 2008-04-21  Bruno Haible  <bruno@clisp.org>
60401
60402         Fix test failures on mingw.
60403         * tests/test-xstrtol.c (print_no_progname): New function.
60404         (main): Install it in error_print_progname hook.
60405         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60406         * tests/test-xstrtoimax.sh: Likewise.
60407         * tests/test-xstrtoumax.sh: Likewise.
60408
60409 2008-04-21  Bruno Haible  <bruno@clisp.org>
60410
60411         Fix test failure on mingw.
60412         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60413
60414 2008-04-21  Bruno Haible  <bruno@clisp.org>
60415
60416         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60417         Actually assign a value.
60418
60419 2008-04-20  Bruno Haible  <bruno@clisp.org>
60420
60421         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60422         take 2.
60423         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60424         'canonicalize-lgpl' module is also used.
60425         * lib/canonicalize-lgpl.c: Undo last change.
60426         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60427
60428 2008-04-20  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60431         config.h. Provide _mkdir based fallback for mingw.
60432         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60433         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60434         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60435         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60436         rather than defining mkdir in config.h.
60437         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60438         (gl_SYS_STAT_H_DEFAULTS): New macro.
60439         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60440         HAVE_IO_H any more.
60441         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60442         HAVE_DECL_MKDIR and HAVE_IO_H.
60443
60444 2008-04-20  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/isapipe.c: Port to native Windows platforms.
60447
60448 2008-04-20  Bruno Haible  <bruno@clisp.org>
60449
60450         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60451
60452 2008-04-21  Eric Blake  <ebb9@byu.net>
60453
60454         Work around preprocessors that don't handle UINTMAX_MAX.
60455         * lib/memchr2.c (memchr2): Avoid embedded #if.
60456         Reported by Alain Guibert, fix suggested by Bruno Haible.
60457
60458 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60459
60460         * doc/posix-functions/strftime.texi (strftime): Explain better
60461         Windows incompatibility.  Suggested by Micah Cowan
60462         <micah@cowan.name>.
60463
60464 2008-04-20  Bruno Haible  <bruno@clisp.org>
60465
60466         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60467         unistr/u8-mblen.
60468
60469 2008-04-20  Bruno Haible  <bruno@clisp.org>
60470
60471         Fix test failure on platforms with non-GNU iconv.
60472         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60473         (U_TO_U8): Use it, rather than u16_to_u8.
60474         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60475         units at the end of the input string.
60476         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60477
60478 2008-04-20  Bruno Haible  <bruno@clisp.org>
60479
60480         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60481         when the resulting length is 0.
60482         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60483
60484 2008-04-20  Bruno Haible  <bruno@clisp.org>
60485
60486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60487         works.
60488         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60489
60490 2008-04-20  Bruno Haible  <bruno@clisp.org>
60491
60492         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60493         * modules/tsearch-tests (configure.ac): Test for initstate function.
60494
60495 2008-04-20  Bruno Haible  <bruno@clisp.org>
60496
60497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60498         for nlink_t if missing.
60499         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60500
60501 2008-04-19  Bruno Haible  <bruno@clisp.org>
60502
60503         Work around snprintf bug on Linux libc5.
60504         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60506         gl_SNPRINTF_SIZE1.
60507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60508         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60509         that test failed.
60510         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60511         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60512         * modules/snprintf (Files): Add m4/printf.m4.
60513         * modules/vsnprintf (Files): Likewise.
60514         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60515         * doc/posix-functions/vsnprintf.texi: Likewise.
60516
60517 2008-04-19  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60520         from 0.0058 to less than 10^-7.
60521
60522 2008-04-19  Bruno Haible  <bruno@clisp.org>
60523
60524         Fix rounding when a precision is given.
60525         * lib/vasnprintf.c (is_borderline): New function.
60526         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60527         9...9x.
60528         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60529         %e, %g.
60530         * tests/test-vasprintf-posix.c (test_function): Likewise.
60531         * tests/test-snprintf-posix.h (test_function): Likewise.
60532         * tests/test-sprintf-posix.h (test_function): Likewise.
60533         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60534         * tests/test-printf-posix.h (test_function): Likewise.
60535         * tests/test-printf-posix.output: Update.
60536         Reported by John Darrington <john@darrington.wattle.id.au> via
60537         Ben Pfaff <blp@cs.stanford.edu>.
60538
60539 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60540
60541         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60542         Suggested by Bruno Haible <bruno@clisp.org>.
60543
60544 2008-04-17  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60547         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60548         implementation.
60549         Patch by Bruce Merry <bmerry@gmail.com>.
60550
60551 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60552
60553         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60554         doesn't work under Windows.
60555
60556 2008-04-16  Bruno Haible  <bruno@clisp.org>
60557
60558         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60559         New macros.
60560         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60561         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60562         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60563         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60564         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60565         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60566         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60567         macros.
60568         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60569         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60570         Northern Sotho, Uighur.
60571
60572 2008-04-16  Bruno Haible  <bruno@clisp.org>
60573
60574         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60575         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60576         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60577         Reported by Daniel Bergström <daniel@octocode.com>.
60578
60579 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60580             Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60583         function.
60584         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60585         New functions, mostly extracted from gl_locale_name_default.
60586         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60587
60588 2008-04-16  Eric Blake  <ebb9@byu.net>
60589
60590         Adjust strtod detection to catch glibc 2.7 bug.
60591         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60592         Reported by John Gatewood Ham.
60593
60594 2008-04-16  Bruno Haible  <bruno@clisp.org>
60595
60596         Add tentative support for Linux libc5.
60597         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60598         * lib/fpurge.c (fpurge): Likewise.
60599         * lib/freadable.c (freadable): Likewise.
60600         * lib/freadahead.c (freadahead): Likewise.
60601         * lib/freading.c (freading): Likewise.
60602         * lib/freadptr.c (freadptr): Likewise.
60603         * lib/freadseek.c (freadptrinc): Likewise.
60604         * lib/fseeko.c (rpl_fseeko): Likewise.
60605         * lib/fseterr.c (fseterr): Likewise.
60606         * lib/fwritable.c (fwritable): Likewise.
60607         * lib/fwriting.c (fwriting): Likewise.
60608         Reported by Alain Guibert <alguibert+bts@free.fr>.
60609
60610 2008-04-15  Bruno Haible  <bruno@clisp.org>
60611
60612         * modules/mathl (configure.ac): Define module indicator.
60613
60614 2008-04-15  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/logl.c (logl): Remove unused variables.
60617
60618 2008-04-15  Bruno Haible  <bruno@clisp.org>
60619
60620         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60621         fails.
60622
60623 2008-04-15  Bruno Haible  <bruno@clisp.org>
60624
60625         * lib/trim.c (trim2): Fix argument of isspace() macro.
60626
60627 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60628
60629         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60630         to 0.
60631         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60632
60633 2008-04-14  Bruno Haible  <bruno@clisp.org>
60634
60635         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60636         AC_LANG_PROGRAM argument.
60637         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60638         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60640         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60641         * m4/math_h.m4 (gl_MATH_H): Likewise.
60642         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60644         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60645         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60646         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60647         * m4/regex.m4 (gl_REGEX): Likewise.
60648         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60649         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60652         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60653         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60656
60657 2008-04-14  Jim Meyering  <meyering@redhat.com>
60658
60659         test-strtod: fix typos: s/abs/fabs/
60660         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60661
60662 2008-04-13  Bruno Haible  <bruno@clisp.org>
60663
60664         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60665         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60666         module is also used and while not building the reloc-wrapper.
60667
60668 2008-04-13  Bruno Haible  <bruno@clisp.org>
60669
60670         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60671
60672 2008-04-13  Bruno Haible  <bruno@clisp.org>
60673
60674         Fix AIX compilation failure introduced on 2008-04-02.
60675         * tests/test-frexp.c (exp): Undefine before redefining.
60676         * tests/test-frexpl.c (exp): Likewise.
60677
60678 2008-04-13  Bruno Haible  <bruno@clisp.org>
60679
60680         Work around a HP-UX stdio bug.
60681         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60682         * tests/test-ftello.c (main): Likewise.
60683         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60684         * doc/posix-functions/ftello.texi: Likewise.
60685
60686 2008-04-13  Bruno Haible  <bruno@clisp.org>
60687
60688         Make test-signbit pass on HP-UX/hppa.
60689         * tests/test-signbit.c (minus_zerol): New variable.
60690         (test_signbitl): Use it.
60691
60692 2008-04-13  Bruno Haible  <bruno@clisp.org>
60693
60694         Make truncl work on OSF/1 4.0.
60695         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60696         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60697         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60699         HAVE_DECL_TRUNCL.
60700         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60701         HAVE_DECL_TRUNCL.
60702         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60703
60704 2008-04-13  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60707
60708 2008-04-13  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60711         expression, so as to avoid HP-UX 11 cc compiler bug.
60712
60713 2008-04-13  Bruno Haible  <bruno@clisp.org>
60714
60715         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60716
60717 2008-04-13  Bruno Haible  <bruno@clisp.org>
60718
60719         * lib/git-merge-changelog.c: Remove empty declaration outside of
60720         functions.
60721
60722 2008-04-13  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60725
60726 2008-04-13  Bruno Haible  <bruno@clisp.org>
60727
60728         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60729         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60731         also if it exists but lacks definitions of the SHUT_* macros.
60732         * modules/sys_socket (Description): Update.
60733         Reported by Elbert Pol <e.pol@chello.nl>.
60734
60735 2008-04-13  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/localcharset.c (OS2): Don't redefine if already defined.
60738         Reported by Elbert Pol <e.pol@chello.nl>.
60739
60740 2008-04-13  Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/binary-io.h [__EMX__]: Include <io.h>.
60743         Reported by Elbert Pol <e.pol@chello.nl>.
60744
60745 2008-04-12  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/fpucw.h: Enable the definitions also for x86_64.
60748         Needed for NetBSD/x86_64.
60749         Reported by Thomas Klausner <tk@giga.or.at>.
60750
60751 2008-04-12  Bruno Haible  <bruno@clisp.org>
60752
60753         * tests/test-strtod.c: Include isnand.h.
60754         (main): Use isnand instead of isnan.
60755         Reported by Jim Meyering.
60756
60757 2008-04-12  Bruno Haible  <bruno@clisp.org>
60758
60759         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60760         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60761
60762 2008-04-12  Jim Meyering  <meyering@redhat.com>
60763
60764         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60765
60766 2008-04-12  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60769         Reported by Elbert Pol <e.pol@chello.nl>.
60770
60771 2008-04-12  Eric Blake  <ebb9@byu.net>
60772
60773         Work around Solaris 10 math.h bug.
60774         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60775         (gl_MATH_H_DEFAULTS): Set up default.
60776         * modules/math (Makefile.am): Replace new indicators.
60777         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60778         * tests/test-math.c (main): Test this.
60779         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60780         * doc/posix-headers/math.texi (math.h): Mention bug.
60781         Reported by Nelson H. F. Beebe and Jim Meyering.
60782
60783 2008-04-11  Bruno Haible  <bruno@clisp.org>
60784
60785         Adapt to future versions of Apple GCC.
60786         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60787         Reported by Peter O'Gorman <peter@pogma.com>.
60788
60789 2008-04-11  Bruno Haible  <bruno@clisp.org>
60790
60791         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60792
60793 2008-04-11  Bruno Haible  <bruno@clisp.org>
60794
60795         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60796
60797         * modules/getaddrinfo-tests (Makefile.am): Define
60798         test_getaddrinfo_LDADD.
60799
60800 2008-04-11  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60803         (init): Fix syntax error.
60804         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60805         is declared.
60806
60807 2008-04-11  Bruno Haible  <bruno@clisp.org>
60808
60809         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60810         * modules/glob (Depends-on): Add stdbool.
60811
60812 2008-04-11  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/trim.c: Include <string.h>.
60815
60816 2008-04-11  Eric Blake  <ebb9@byu.net>
60817
60818         Avoid compile failure on OS/2.
60819         * lib/regex_internal.h (internal_function): Disable optimization
60820         on OS/2 (__EMX__), where it caused compiler error.
60821         Reported by Elbert Pol.
60822
60823 2008-04-11  Bruno Haible  <bruno@clisp.org>
60824
60825         Flush the standard error stream before aborting. Needed on mingw.
60826         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60827         * tests/test-array_list.c (ASSERT): Likewise.
60828         * tests/test-array_oset.c (ASSERT): Likewise.
60829         * tests/test-avltree_list.c (ASSERT): Likewise.
60830         * tests/test-avltree_oset.c (ASSERT): Likewise.
60831         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60832         * tests/test-binary-io.c (ASSERT): Likewise.
60833         * tests/test-byteswap.c (ASSERT): Likewise.
60834         * tests/test-c-ctype.c (ASSERT): Likewise.
60835         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60836         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60837         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60838         * tests/test-c-strstr.c (ASSERT): Likewise.
60839         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60840         * tests/test-canonicalize.c (ASSERT): Likewise.
60841         * tests/test-carray_list.c (ASSERT): Likewise.
60842         * tests/test-ceilf1.c (ASSERT): Likewise.
60843         * tests/test-ceilf2.c (ASSERT): Likewise.
60844         * tests/test-ceill.c (ASSERT): Likewise.
60845         * tests/test-count-one-bits.c (ASSERT): Likewise.
60846         * tests/test-fbufmode.c (ASSERT): Likewise.
60847         * tests/test-fflush2.c (ASSERT): Likewise.
60848         * tests/test-floorf1.c (ASSERT): Likewise.
60849         * tests/test-floorf2.c (ASSERT): Likewise.
60850         * tests/test-floorl.c (ASSERT): Likewise.
60851         * tests/test-fopen.c (ASSERT): Likewise.
60852         * tests/test-fpending.c (ASSERT): Likewise.
60853         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60854         * tests/test-fpurge.c (ASSERT): Likewise.
60855         * tests/test-freadable.c (ASSERT): Likewise.
60856         * tests/test-freadahead.c (ASSERT): Likewise.
60857         * tests/test-freading.c (ASSERT): Likewise.
60858         * tests/test-freadptr.c (ASSERT): Likewise.
60859         * tests/test-freadptr2.c (ASSERT): Likewise.
60860         * tests/test-freadseek.c (ASSERT): Likewise.
60861         * tests/test-freopen.c (ASSERT): Likewise.
60862         * tests/test-frexp.c (ASSERT): Likewise.
60863         * tests/test-frexpl.c (ASSERT): Likewise.
60864         * tests/test-fseek.c (ASSERT): Likewise.
60865         * tests/test-fseeko.c (ASSERT): Likewise.
60866         * tests/test-fstrcmp.c (ASSERT): Likewise.
60867         * tests/test-ftell.c (ASSERT): Likewise.
60868         * tests/test-ftello.c (ASSERT): Likewise.
60869         * tests/test-func.c (ASSERT): Likewise.
60870         * tests/test-fwritable.c (ASSERT): Likewise.
60871         * tests/test-fwriting.c (ASSERT): Likewise.
60872         * tests/test-getdelim.c (ASSERT): Likewise.
60873         * tests/test-getline.c (ASSERT): Likewise.
60874         * tests/test-i-ring.c (ASSERT): Likewise.
60875         * tests/test-iconv-utf.c (ASSERT): Likewise.
60876         * tests/test-iconv.c (ASSERT): Likewise.
60877         * tests/test-isfinite.c (ASSERT): Likewise.
60878         * tests/test-isnand.c (ASSERT): Likewise.
60879         * tests/test-isnanf.c (ASSERT): Likewise.
60880         * tests/test-isnanl.h (ASSERT): Likewise.
60881         * tests/test-ldexpl.c (ASSERT): Likewise.
60882         * tests/test-linked_list.c (ASSERT): Likewise.
60883         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60884         * tests/test-localename.c (ASSERT): Likewise.
60885         * tests/test-lseek.c (ASSERT): Likewise.
60886         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60887         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60888         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60889         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60890         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60891         * tests/test-mbschr.c (ASSERT): Likewise.
60892         * tests/test-mbscspn.c (ASSERT): Likewise.
60893         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60894         * tests/test-mbspbrk.c (ASSERT): Likewise.
60895         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60896         * tests/test-mbsrchr.c (ASSERT): Likewise.
60897         * tests/test-mbsspn.c (ASSERT): Likewise.
60898         * tests/test-mbsstr1.c (ASSERT): Likewise.
60899         * tests/test-mbsstr2.c (ASSERT): Likewise.
60900         * tests/test-mbsstr3.c (ASSERT): Likewise.
60901         * tests/test-memchr2.c (ASSERT): Likewise.
60902         * tests/test-memmem.c (ASSERT): Likewise.
60903         * tests/test-open.c (ASSERT): Likewise.
60904         * tests/test-printf-frexp.c (ASSERT): Likewise.
60905         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60906         * tests/test-printf-posix.c (ASSERT): Likewise.
60907         * tests/test-quotearg.c (ASSERT): Likewise.
60908         * tests/test-rbtree_list.c (ASSERT): Likewise.
60909         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60910         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60911         * tests/test-round1.c (ASSERT): Likewise.
60912         * tests/test-roundf1.c (ASSERT): Likewise.
60913         * tests/test-roundl.c (ASSERT): Likewise.
60914         * tests/test-signbit.c (ASSERT): Likewise.
60915         * tests/test-sleep.c (ASSERT): Likewise.
60916         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60917         * tests/test-snprintf.c (ASSERT): Likewise.
60918         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60919         * tests/test-stat-time.c (ASSERT): Likewise.
60920         * tests/test-strcasestr.c (ASSERT): Likewise.
60921         * tests/test-strerror.c (ASSERT): Likewise.
60922         * tests/test-striconv.c (ASSERT): Likewise.
60923         * tests/test-striconveh.c (ASSERT): Likewise.
60924         * tests/test-striconveha.c (ASSERT): Likewise.
60925         * tests/test-strsignal.c (ASSERT): Likewise.
60926         * tests/test-strstr.c (ASSERT): Likewise.
60927         * tests/test-strtod.c (ASSERT): Likewise.
60928         * tests/test-trunc1.c (ASSERT): Likewise.
60929         * tests/test-trunc2.c (ASSERT): Likewise.
60930         * tests/test-truncf1.c (ASSERT): Likewise.
60931         * tests/test-truncf2.c (ASSERT): Likewise.
60932         * tests/test-truncl.c (ASSERT): Likewise.
60933         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60934         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60935         * tests/test-vasnprintf.c (ASSERT): Likewise.
60936         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60937         * tests/test-vasprintf.c (ASSERT): Likewise.
60938         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60939         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60940         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60941         * tests/test-vsnprintf.c (ASSERT): Likewise.
60942         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60943         * tests/test-wcwidth.c (ASSERT): Likewise.
60944         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60945         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60946         * tests/test-xvasprintf.c (ASSERT): Likewise.
60947         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60948         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60949         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60950         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60951         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60952         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60953         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60954         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60955         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60956         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60957         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60958         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60959         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60960         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60961         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60962         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60963         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60964         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60965         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60966         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60967         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60968         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60969         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60970         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60971         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60972         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60973         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60974         * tests/unictype/test-combining.c (ASSERT): Likewise.
60975         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60976         * tests/unictype/test-digit.c (ASSERT): Likewise.
60977         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60978         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60979         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60980         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60981         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60982         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60983         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60984         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60985         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60986         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60987         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60988         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60989         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60990         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60991         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60992         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60993         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60994         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60995         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60996         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60997         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60998         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60999         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61000         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61001         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61002         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61003         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61004         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61005         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61006         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61007         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61008         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61009         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61010         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61011         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61012         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61013         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61014         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61015         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61016         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61017         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61018         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61019         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61020         Reported by Eric Blake.
61021
61022 2008-04-11  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/wchar.in.h: Tweak comment.
61025
61026 2008-04-11  Bruno Haible  <bruno@clisp.org>
61027
61028         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61029         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61030         gl_COMMON.
61031         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61032
61033 2008-04-11  Bruno Haible  <bruno@clisp.org>
61034
61035         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61036
61037 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61038
61039         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61040         of attempting to use non-existing /dev/*random.  Based on patch
61041         from Adam Strzelecki <ono@java.pl> in
61042         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61043
61044 2008-04-08  Bruno Haible  <bruno@clisp.org>
61045
61046         Add tentative support for emx+gcc.
61047         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61048         * lib/fpurge.c (fpurge): Likewise.
61049         * lib/freadable.c (freadable): Likewise.
61050         * lib/freadahead.c (freadahead): Likewise.
61051         * lib/freading.c (freading): Likewise.
61052         * lib/freadptr.c (freadptr): Likewise.
61053         * lib/freadseek.c (freadptrinc): Likewise.
61054         * lib/fseeko.c (rpl_fseeko): Likewise.
61055         * lib/fseterr.c (fseterr): Likewise.
61056         * lib/fwritable.c (fwritable): Likewise.
61057         * lib/fwriting.c (fwriting): Likewise.
61058         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61059
61060 2008-04-09  Eric Blake  <ebb9@byu.net>
61061
61062         Avoid some autoconf warnings.
61063         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61064         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61065         * m4/afs.m4 (gl_AFS): Likewise.
61066         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61067         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61068         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61069         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61070         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61071         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61072         (AC_CHECK_DECLS_ONCE): Likewise.
61073         Rename file...
61074         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61075         gnulib-tool requires autoconf 2.59 or better.
61076         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61077
61078 2008-04-08  Eric Blake  <ebb9@byu.net>
61079
61080         Use 'git describe --match' if present (added in git 1.5.5).
61081         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61082         if possible.
61083
61084 2008-04-08  Bruno Haible  <bruno@clisp.org>
61085
61086         Add tentative support for OpenServer.
61087         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61088         _ptr, _cnt.
61089         * lib/fpurge.c (fpurge): Likewise.
61090         * lib/freadable.c (freadable): Likewise.
61091         * lib/freadahead.c (freadahead): Likewise.
61092         * lib/freading.c (freading): Likewise.
61093         * lib/freadptr.c (freadptr): Likewise.
61094         * lib/freadseek.c (freadptrinc): Likewise.
61095         * lib/fseeko.c (rpl_fseeko): Likewise.
61096         * lib/fseterr.c (fseterr): Likewise.
61097         * lib/fwritable.c (fwritable): Likewise.
61098         * lib/fwriting.c (fwriting): Likewise.
61099         Reported by Roger Cornelius <rac@tenzing.org> and
61100         Brian K. White <brian@aljex.com>.
61101
61102 2008-04-06  Jim Meyering  <meyering@redhat.com>
61103
61104         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61105
61106 2008-04-06  Bruno Haible  <bruno@clisp.org>
61107
61108         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61109         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61110         * tests/test-printf-posix.sh: Likewise.
61111         * tests/test-vfprintf-posix.sh: Likewise.
61112         * tests/test-vprintf-posix.sh: Likewise.
61113         * tests/test-xprintf-posix.sh: Likewise.
61114
61115 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61116
61117         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61118         hide error from 'ls', needed on OS/2.
61119         Report by Elbert Pol <elbert.pol@gmail.com>.
61120
61121 2008-04-04  Eric Blake  <ebb9@byu.net>
61122
61123         Make test-fseeko.c failures meaningful.
61124         * tests/test-fseeko.c: Print line number on failure.
61125         * tests/test-fseek.c: Likewise.
61126         Reported by Nelson H. F. Beebe.
61127
61128         Improve strtod bug detection check.
61129         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61130         required for Solaris 10.
61131         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61132
61133 2008-04-04  Bruno Haible  <bruno@clisp.org>
61134
61135         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61136         by m4/setenv.m4.
61137
61138 2008-04-03  Eric Blake  <ebb9@byu.net>
61139
61140         Ensure sane .version contents.
61141         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61142         version string.
61143         * build-aux/git-version-gen: Improve documentation.
61144
61145         Make GNU make output nicer.
61146         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61147         MAKECMDGOALS to enforce message for all command line targets.  Set
61148         srcdir for use in maint.mk.
61149
61150         Another maintainer tweak.
61151         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61152         a target that regenerates version.
61153
61154 2008-04-03  Jim Meyering  <meyering@redhat.com>
61155
61156         vc-list-files: don't cause coreutils "make po-check" failure
61157         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61158
61159 2008-04-03  Eric Blake  <ebb9@byu.net>
61160
61161         Allow VPATH usage of vc-list-files.
61162         * build-aux/vc-list-files (scriptversion): Add timestamp.
61163         (options): Add --help, --version, -C.
61164         (CVS): Support installed cvsu.
61165
61166 2008-04-02  Bruno Haible  <bruno@clisp.org>
61167
61168         Avoid some "statement with no effect" warnings from gcc.
61169         * tests/test-wctype.c (main): Explicitly ignore unused values.
61170         Reported by Jim Meyering.
61171
61172 2008-04-02  Jim Meyering  <meyering@redhat.com>
61173
61174         Avoid some warnings from "gcc -Wshadow".
61175         * tests/test-frexp.c (exp): Define to a different identifier.
61176         * tests/test-frexpl.c (exp): Likewise.
61177
61178 2008-04-03  Jim Meyering  <meyering@redhat.com>
61179
61180         bootstrap: remove dangling *.[ch] symlinks from lib
61181         * build-aux/bootstrap [dangling symlink removal]: Move find's
61182         -depth option to precede all others, to avoid a warning.
61183         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61184
61185 2008-04-02  Bruno Haible  <bruno@clisp.org>
61186
61187         Avoid some warnings from "gcc -Wshadow".
61188         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61189         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61190         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61191         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61192         Reported by Jim Meyering.
61193
61194 2008-04-01  Bruno Haible  <bruno@clisp.org>
61195
61196         Fix test to work on IRIX 6.5 with cc.
61197         * tests/test-math.c (numeric_equal): New function.
61198         (main): Use it.
61199
61200 2008-04-01  Bruno Haible  <bruno@clisp.org>
61201
61202         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61203
61204 2008-04-01  Bruno Haible  <bruno@clisp.org>
61205
61206         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61207         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61208         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61209         (Depends-on): Remove math.
61210
61211         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61212         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61213         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61214         (Depends-on): Remove math.
61215
61216         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61217         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61218         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61219         (Depends-on): Remove math.
61220         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61221         (Depends-on): Remove math.
61222
61223         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61224         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61225         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61226         (Depends-on): Remove math.
61227         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61228         (Depends-on): Remove math.
61229
61230         * tests/test-round1.c: Include nan.h.
61231         (main): Use NaNd instead of NAN.
61232         * modules/round-tests (Files): Add tests/nan.h.
61233
61234         * tests/test-trunc1.c: Include nan.h.
61235         (main): Use NaNd instead of NAN.
61236         * modules/trunc-tests (Files): Add tests/nan.h.
61237
61238         * tests/test-roundf1.c: Include nan.h.
61239         (main): Use NaNf instead of NAN.
61240         * modules/roundf-tests (Files): Add tests/nan.h.
61241
61242         * tests/test-truncf1.c: Include nan.h.
61243         (main): Use NaNf instead of NAN.
61244         * modules/truncf-tests (Files): Add tests/nan.h.
61245
61246         * tests/test-ceilf1.c: Include nan.h.
61247         (main): Use NaNf instead of NAN.
61248         * modules/ceilf-tests (Files): Add tests/nan.h.
61249
61250         * tests/test-floorf1.c: Include nan.h.
61251         (main): Use NaNf instead of NAN.
61252         * modules/floorf-tests (Files): Add tests/nan.h.
61253
61254         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61255         (main): Use NaNf instead of NAN.
61256         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61257
61258         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61259         (main): Use NaNd instead of NAN.
61260         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61261
61262         * tests/test-frexp.c: Include nan.h.
61263         (main): Use NaNd instead of NAN.
61264         * modules/frexp-tests (Files): Add tests/nan.h.
61265
61266         * lib/isnan.c: Don't include <math.h>.
61267         (FUNC): Don't use NAN macro.
61268         * modules/isnand-nolibm (Depends-on): Remove math.
61269         * modules/isnanf-nolibm (Depends-on): Remove math.
61270         * modules/isnanl (Depends-on): Remove math.
61271         * modules/isnanl-nolibm (Depends-on): Remove math.
61272
61273         * tests/nan.h: New file.
61274
61275 2008-04-01  Eric Blake  <ebb9@byu.net>
61276
61277         Fix typos.
61278         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61279         values to be the right type.
61280
61281         For now, cater to gnulib strtod inaccuracies.
61282         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61283         fractional results.  While not as nice from a QoI perspective, it
61284         is a quicker patch than correctly implementing decimal to binary
61285         rounding.
61286
61287 2008-03-31  Eric Blake  <ebb9@byu.net>
61288
61289         Guarantee a definition of NAN.
61290         * lib/math.in.h (NAN): Define if missing.
61291         * tests/test-math.c (main): Test it.
61292         * doc/posix-headers/math.texi (math.h): Document this.
61293         * lib/isnan.c (rpl_isnand): Use it.
61294         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61295         * tests/test-floorf1.c (NaN): Likewise.
61296         * tests/test-frexp.c (NaN): Likewise.
61297         * tests/test-isnand.c (NaN): Likewise.
61298         * tests/test-isnanf.c (NaN): Likewise.
61299         * tests/test-round1.c (NaN): Likewise.
61300         * tests/test-roundf1.c (NaN): Likewise.
61301         * tests/test-snprintf-posix.h (NaN): Likewise.
61302         * tests/test-sprintf-posix.h (NaN): Likewise.
61303         * tests/test-trunc1.c (NaN): Likewise.
61304         * tests/test-truncf1.c (NaN): Likewise.
61305         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61306         * tests/test-vasprintf-posix.c (NaN): Likewise.
61307         * modules/isnand-nolibm (Depends-on): Add math.
61308         * modules/isnanf-nolibm (Depends-on): Likewise.
61309         * modules/isnanl (Depends-on): Likewise.
61310         * modules/isnanl-nolibm (Depends-on): Likewise.
61311         * modules/snprintf-posix-tests (Depends-on): Likewise.
61312         * modules/sprintf-posix-tests (Depends-on): Likewise.
61313         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61314         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61315         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61316         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61317
61318 2008-03-31  Bruno Haible  <bruno@clisp.org>
61319
61320         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61321         * doc/posix-functions/strtod.texi: Likewise.
61322
61323 2008-03-31  Bruno Haible  <bruno@clisp.org>
61324
61325         * tests/test-strtod.c (main): Don't use C99 syntax.
61326
61327 2008-03-31  Bruno Haible  <bruno@clisp.org>
61328
61329         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61330         Reported by Eric Blake.
61331
61332 2008-03-31  Jim Meyering  <meyering@redhat.com>
61333
61334         Don't compare actual signbit return values.
61335         * tests/test-strtod.c (main): Rather, compare only their
61336         zero/non-zero nature.
61337
61338 2008-03-31  Eric Blake  <ebb9@byu.net>
61339
61340         More strtod documentation.
61341         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61342         failures as distinct bugs.
61343
61344 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61347         Problem reported by Erik Benada in
61348         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61349
61350 2008-03-30  Bruno Haible  <bruno@clisp.org>
61351
61352         * tests/test-strtod.c: Add comments about which assertion fails on which
61353         platform.
61354         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61355
61356 2008-03-30  Eric Blake  <ebb9@byu.net>
61357
61358         Test signbit behavior on zeros.
61359         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61360         (test_signbitd, test_signbitl): Likewise.
61361
61362         More strtod touchups.
61363         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61364         sign of negative underflow, for now.  Use .5, not .1.
61365         * doc/posix-functions/strtod.texi (strtod): Mention these
61366         limitations.
61367         Reported by Jim Meyering.
61368
61369 2008-03-30  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61372         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61373
61374 2008-03-30  Bruno Haible  <bruno@clisp.org>
61375
61376         Avoid failure when attempting to return empty iconv results on some
61377         platforms.
61378         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61379         allocation, don't report ENOMEM when the resulting string is empty.
61380
61381 2008-03-30  Bruno Haible  <bruno@clisp.org>
61382
61383         Fix buffer overrun.
61384         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61385         Don't consider the width for tmp_length. Check count against tmp_length
61386         before doing the padding. Ensure enough allocation during padding.
61387
61388 2008-03-30  Eric Blake  <ebb9@byu.net>
61389
61390         strtod touchups.
61391         * lib/strtod.c (strtod): Avoid compiler warnings.
61392         Reported by Jim Meyering.
61393
61394 2008-03-30  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61397         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61398         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61399         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61400         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61401         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61402         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61403         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61404
61405         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61406         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61407         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61408         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61409         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61410         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61411         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61412         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61413
61414         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61415         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61416         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61417         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61418         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61419         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61420         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61421         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61422
61423         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61424         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61425
61426         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61427         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61428
61429         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61430         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61431
61432         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61434         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61435
61436         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61438         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61439
61440         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61442         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61443
61444         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61446         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61447
61448         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61449         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61451         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61452         (Depends-on): Add EOVERFLOW.
61453         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61454         (Depends-on): Add EOVERFLOW.
61455         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61456         (Depends-on): Add EOVERFLOW.
61457         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61458         (Depends-on): Add EOVERFLOW.
61459         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61460         (Depends-on): Add EOVERFLOW.
61461         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61462         (Depends-on): Add EOVERFLOW.
61463         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61464         (Depends-on): Add EOVERFLOW.
61465         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61466         (Depends-on): Add EOVERFLOW.
61467
61468         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61470         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61471
61472         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61474         * modules/snprintf (Depends-on): Add EOVERFLOW.
61475
61476         * lib/poll.c (EOVERFLOW): Remove fallback.
61477         * modules/poll (Depends-on): Add EOVERFLOW.
61478
61479         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61480         * modules/getugroups (Depends-on): Add EOVERFLOW.
61481
61482         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61483         * modules/getdelim (Depends-on): Add EOVERFLOW.
61484
61485         * lib/ftell.c (EOVERFLOW): Remove fallback.
61486         * modules/ftell (Depends-on): Add EOVERFLOW.
61487
61488         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61490         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61491
61492         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61493
61494         * modules/EOVERFLOW-tests: New file.
61495         * tests/test-EOVERFLOW.c: New file.
61496
61497         * modules/EOVERFLOW: New file.
61498         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61499
61500 2008-03-30  Bruno Haible  <bruno@clisp.org>
61501
61502         Fix bug introduced on 2007-06-10.
61503         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61504         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61505
61506 2008-03-30  Bruno Haible  <bruno@clisp.org>
61507
61508         Improve freadseek's efficiency after ungetc.
61509         * lib/freadseek.c: Include freadahead.h.
61510         (freadptrinc): New function, extracted from freadseek.
61511         (freadseek): Use it in a loop. Use freadahead to determine the number
61512         of loop iterations.
61513         * modules/freadseek (Depends-on): Add freadahead.
61514         (configure.ac): Require AC_C_INLINE.
61515
61516 2008-03-30  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/freadseek.c (freadseek): Don't ignore the return value of
61519         freadptr.
61520
61521 2008-03-29  Eric Blake  <ebb9@byu.net>
61522
61523         Add hex float support.
61524         * modules/strtod (Depends-on): Add c-ctype.
61525         (Link): Mention POW_LIB.
61526         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61527         whitespace between 'e' and exponent.
61528         * tests/test-strtod.c (main): Enable hex float tests.
61529         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61530         now provides.
61531
61532         Document various strtod bugs, with some fixes.
61533         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61534         "-0x", "inf", "nan", and hex constants.
61535         * doc/posix-functions/atof.texi (atof): Likewise.
61536         * modules/stdlib (Makefile.am): Support strtod.
61537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61538         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61539         detect additional strtod bugs.
61540         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61541         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61542         bool where appropriate.  Parse 'inf' and 'nan'.
61543         * tests/test-strtod.c: New file.
61544         * modules/strtod (Depends-on): Add stdbool, stdlib.
61545         (configure.ac): Turn on module indicator.
61546         * modules/strtod-tests: New module.
61547
61548 2008-03-29  Eric Blake  <ebb9@byu.net>
61549
61550         Fix ftell on mingw.
61551         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61552         * modules/ftell-tests (Depends-on): Add binary-io.
61553         * modules/ftello-tests (Depends-on): Likewise.
61554         * tests/test-ftell.c (main): Enhance test to cover behavior after
61555         ungetc.  Enforce binary mode.
61556         * tests/test-ftello.c (main): Likewise.
61557
61558         Pass test-freadseek on cygwin.
61559         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61560         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61561         ungetc buffer.
61562
61563         * tests/test-fflush2.c (main): Fix typo.
61564
61565 2008-03-29  Bruno Haible  <bruno@clisp.org>
61566
61567         * tests/test-fflush2.c (main): Temporarily disable the contents of
61568         this test.
61569         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61570         Reported by Eric Blake.
61571
61572 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61573
61574         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61575         (GC_SHA224_DIGEST_SIZE): Add.
61576
61577         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61578         (gc_hash_digest_length): Likewise.
61579         (gc_hash_buffer): Likewise.
61580
61581 2008-03-25  Bruno Haible  <bruno@clisp.org>
61582
61583         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61584         detail which gettext release to use.
61585         Reported by Simon Josefsson.
61586
61587 2008-03-26  Jim Meyering  <meyering@redhat.com>
61588
61589         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61590         * modules/gnumakefile (clean-GNUmakefile): Also, use
61591         test ... && ... || : syntax rather than if-then ... fi.
61592
61593         gnumakefile: Don't double-quote-expand $(VPATH) value.
61594         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61595
61596 2008-03-24  Eric Blake  <ebb9@byu.net>
61597
61598         Alter GNUmakefile to install into top directory.
61599         * modules/maintainer-makefile: Split, and add dependency...
61600         * modules/gnumakefile: to this new module.
61601         * build-aux/GNUmakefile: Move...
61602         * top/GNUmakefile: ...here.
61603         * build-aux/maint.mk: Move...
61604         * top/maint.mk: ...here.
61605         * MODULES.html.sh (Support for maintaining...): Document new
61606         module.
61607
61608 2008-03-23  Bruno Haible  <bruno@clisp.org>
61609
61610         * gnulib-tool: New options --vc-files, --no-vc-files.
61611         (func_usage): Document them.
61612         (vc_files): New variable.
61613         (func_import): Consider vc_files.
61614         (func_create_testdir): Set vc_files to empty.
61615         Suggested by Jim Meyering and Karl Berry.
61616
61617 2008-03-23  Bruno Haible  <bruno@clisp.org>
61618
61619         Fix regex compilation error on HP-UX 11.
61620         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61621         * modules/regex (Files): Add m4/mbstate_t.m4.
61622         Reported by Ton Voon <ton.voon@altinity.com>.
61623
61624 2008-03-23  Bruno Haible  <bruno@clisp.org>
61625
61626         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61627
61628 2008-03-23  Eric Blake  <ebb9@byu.net>
61629             Bruno Haible  <bruno@clisp.org>
61630
61631         Install files from top/ in the destination directory.
61632         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61633         augmentation also for the files from top/.
61634         (func_import, func_create_testdir): Rewrite file names:
61635         top/filename -> filename.
61636
61637 2008-03-23  Bruno Haible  <bruno@clisp.org>
61638
61639         Tweak "gnulib --version" output.
61640         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61641
61642 2008-03-23  Bruno Haible  <bruno@clisp.org>
61643
61644         Tweak "gnulib --version" output.
61645         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61646         rather than contents of ChangeLog, when possible.
61647
61648 2008-03-21  Eric Blake  <ebb9@byu.net>
61649
61650         More --version tweaks.
61651         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61652         date of last ChangeLog entry.
61653
61654 2008-03-21  Jim Meyering  <meyering@redhat.com>
61655
61656         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61657
61658 2008-03-20  Eric Blake  <ebb9@byu.net>
61659
61660         VPATH fix.
61661         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61662
61663 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61664
61665         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61666         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61667
61668 2008-03-20  Eric Blake  <ebb9@byu.net>
61669
61670         Sync GNUmakefile with coreutils.
61671         * build-aux/GNUmakefile (have-Makefile): Rename...
61672         (_have-Makefile): ...to this, for namespace consideration.
61673         (GNUmakefile.cfg): Include, if present.
61674         (_autoreconf): Define a default.
61675         (_is-dist-target): New rule for rebuilds to pick up intra-release
61676         version.
61677         (maint-cfg.mk): Rename...
61678         (cfg.mk): ...to this.
61679
61680 2008-03-18  Jim Meyering  <meyering@redhat.com>
61681
61682         New script and module: mktempd
61683         * MODULES.html.sh (maint+release support): Add mktempd.
61684         * build-aux/mktempd: New file.
61685         * modules/mktempd: New file.
61686
61687 2008-03-15  Jim Meyering  <meyering@redhat.com>
61688
61689         Undo last change.
61690         * lib/sha1.c, lib/md5.c: 63 != ~63.
61691         Reported by Andreas Schwab.
61692
61693         sha1.c, md5.c: Hoist a redundant expression.
61694         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61695         "ctx->buflen" only once, before calling *_process_block.
61696         * lib/md5.c (md5_process_bytes): Likewise.
61697
61698 2008-03-14  Eric Blake  <ebb9@byu.net>
61699
61700         Bump copyright year in files generated by gnulib-tool.
61701         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61702         gnulib-tool, rather than hard-coding it.
61703
61704         Fix 'gnulib-tool --version' output to work with git.
61705         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61706         (startup): ...here.
61707         (func_version): Use it to invoke git-version-gen, rather than
61708         relying on CVS keyword expansion.  Modernize wording.
61709         (cvsdatestamp, last_checkin_date, version): Kill unused
61710         variables.
61711
61712 2008-03-12  Jim Meyering  <meyering@redhat.com>
61713
61714         Recognize optional cast of the argument to free.
61715         * build-aux/useless-if-before-free: Update regexps.
61716
61717         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61718
61719 2008-03-11  Bruno Haible  <bruno@clisp.org>
61720
61721         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61722         by a single package.
61723         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61724         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61725         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61726         Reported by Sam Steingold <sds@gnu.org>.
61727
61728 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61729
61730         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61731         repositories.
61732
61733 2008-03-11  Bruno Haible  <bruno@clisp.org>
61734
61735         Avoid conflicts between local macro definitions.
61736         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61737         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61738
61739 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61740             Bruno Haible  <bruno@clisp.org>
61741
61742         Make va_copy work with some version of xlc on AIX 5.1.
61743         * lib/stdarg.in.h: New file.
61744         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61745         On AIX, use a <stdarg.h> file substitute.
61746         * modules/stdarg (Files): Add lib/stdarg.in.h.
61747         (Depends-on): Add include_next.
61748         (Makefile.am): Build a stdarg.h substitute if requested.
61749         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61750
61751 2008-03-10  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61755         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61756
61757 2008-03-10  Bruno Haible  <bruno@clisp.org>
61758
61759         * modules/stdlib (Depends-on): Add include_next, remove
61760         absolute-header.
61761
61762 2008-03-09  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/freadahead.h (freadahead): Document more precisely.
61765         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61766         the sum of both buffer sizes.
61767         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61768         * NEWS: Document the change.
61769
61770 2008-03-09  Bruno Haible  <bruno@clisp.org>
61771
61772         Extend freadptr to return also the buffer size.
61773         * lib/freadptr.h (freadptr): Add sizep argument.
61774         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61775         (freadptr): Add sizep argument. Determine buffer size like freadahead
61776         does.
61777         * tests/test-freadptr.c: Don't include freadahead.h.
61778         (main): Adapt for new calling convention of freadptr.
61779         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61780         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61781         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61782         tests/test-freadptr2.sh.
61783         (Depends): Remove freadahead.
61784         (TESTS): Add test-freadptr2.sh.
61785         (check_PROGRAMS): Add test-freadptr2.
61786
61787 2008-03-09  Bruno Haible  <bruno@clisp.org>
61788
61789         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61790         Report and solution by Simon Josefsson.
61791
61792 2008-03-06  Bruno Haible  <bruno@clisp.org>
61793
61794         Make fflush after ungetc work on BSD platforms.
61795         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61796         * tests/test-fflush2.c: New file.
61797         * tests/test-fflush2.sh: New file.
61798         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61799         tests/test-fflush2.c.
61800         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61801         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61802
61803 2008-03-06  Eric Blake  <ebb9@byu.net>
61804
61805         Likewise for ftello.
61806         * modules/ftello (Dependencies): Add extensions.
61807         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61808
61809 2008-03-06  Bruno Haible  <bruno@clisp.org>
61810
61811         * modules/fseeko (Dependencies): Add extensions.
61812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61813         Needed on glibc systems.
61814
61815 2008-03-06  Bruno Haible  <bruno@clisp.org>
61816
61817         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61818         email address.
61819         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61820
61821 2008-03-06  Bruno Haible  <bruno@clisp.org>
61822
61823         * users.txt: Add libgnupdf.
61824
61825 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61826
61827         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61828         (Header File Substitutes, Function Substitutes,
61829         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61830         (Build robot for gnulib): Fix typo.
61831
61832 2008-03-06  Bruno Haible  <bruno@clisp.org>
61833
61834         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61835         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61836
61837 2008-03-06  Bruno Haible  <bruno@clisp.org>
61838
61839         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61840         * doc/gnulib.texi: Include it.
61841
61842 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61843
61844         * modules/func (License): Change license to unlimited; there was
61845         no LGPL parts in the module anyway.
61846
61847 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61848
61849         * modules/__func__: Renamed to modules/func.
61850         * modules/__func__-tests: Renamed to modules/func-tests.
61851         * tests/test-__func__.c: Renamed to tests/test-func.c.
61852         * m4/__func__.m4: Renamed to m4/func.m4.
61853         * doc/gnulib.texi (__func__): Section renamed to func.
61854         Suggested by Eric Blake <ebb9@byu.net>.
61855
61856 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61857
61858         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61859         about __func__.  Make example self-contained.  Suggested by Eric
61860         Blake <ebb9@byu.net>.
61861
61862         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61863         Suggested by Eric Blake <ebb9@byu.net>.
61864
61865 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61866
61867         * modules/__func__: New file.
61868         * modules/__func__-tests: New file.
61869         * tests/test-__func__.c: New file.
61870         * m4/__func__.m4: New file.
61871         * doc/gnulib.texi (__func__): Document __func__ module.
61872
61873 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61874
61875         * modules/byteswap (License): Re-license as LGPLv2+.
61876
61877 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61878
61879         * doc/Makefile: Add pdf target.
61880
61881 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61882
61883         * modules/inline (License): Use 'unlimited', since there are only
61884         *.m4 files in this module.
61885
61886 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61887             Bruno Haible  <bruno@clisp.org>
61888
61889         Add support for HP C 7.1 on OpenVMS 8.3.
61890         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61891
61892 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61893
61894         Update VMS specifics.
61895         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61896
61897 2008-03-02  Jim Meyering  <meyering@redhat.com>
61898
61899         Remove the last dependency on the "free" module.
61900         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61901         Reported by Bob Proulx.
61902
61903         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61904
61905         Remove useless "if" tests before free.  Deprecate "free" module.
61906         * doc/posix-functions/free.texi: Mention that this
61907         module is no longer useful.
61908         * modules/free (Notice): Say this module is obsolete.
61909         * modules/readutmp (Depends-on): Remove free.
61910         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61911         * lib/putenv.c (putenv): Likewise.
61912         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61913         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61914         * tests/test-c-strcasestr.c (main): Likewise.
61915         * tests/test-c-strstr.c (main): Likewise.
61916         * tests/test-mbscasestr1.c (main): Likewise.
61917         * tests/test-mbscasestr2.c (main): Likewise.
61918         * tests/test-mbsstr1.c (main): Likewise.
61919         * tests/test-mbsstr2.c (main): Likewise.
61920         * tests/test-memmem.c (main): Likewise.
61921         * tests/test-strcasestr.c (main): Likewise.
61922         * tests/test-striconv.c (main): Likewise.
61923         * tests/test-striconveh.c (main): Likewise.
61924         * tests/test-striconveha.c (main): Likewise.
61925         * tests/test-strstr.c (main): Likewise.
61926
61927         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61928
61929         bootstrap: sync from coreutils again
61930         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61931
61932 2008-03-01  Jim Meyering  <meyering@redhat.com>
61933
61934         bootstrap: sync from coreutils
61935         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61936         also when the target doesn't exist.
61937
61938 2008-03-01  Eric Blake  <ebb9@byu.net>
61939
61940         Fix bugs in last patch.
61941         * lib/memchr2.c (memchr2): Fix typo.
61942         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61943         extension.
61944         Reported by Bruce Korb.
61945
61946         New module 'memchr2'.
61947         * modules/memchr2: New file.
61948         * modules/memchr2-tests: Likewise.
61949         * lib/memchr2.h: Likewise.
61950         * lib/memchr2.c: Likewise, based on memchr.c.
61951         * tests/test-memchr2.c: New test.
61952         * MODULES.html.sh (String handling): Add memchr2.
61953
61954 2008-02-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * modules/freadseek-tests: New file.
61957         * tests/test-freadseek.sh: New file.
61958         * tests/test-freadseek.c: New file.
61959
61960         New module 'freadseek'.
61961         * modules/freadseek: New file.
61962         * lib/freadseek.h: New file.
61963         * lib/freadseek.c: New file.
61964         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61965
61966 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61967
61968         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61969         wydawca.
61970
61971         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61972         program_invocation_name and program_invocation_short_name are
61973         present.
61974
61975 2008-02-28  Bruno Haible  <bruno@clisp.org>
61976
61977         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61978         * tests/test-freadptr.sh: Also test non-seekable stdin.
61979
61980 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61981
61982         * build-aux/bootstrap (source_base, m4_base)
61983         (doc_base, tests_base): New variables.
61984         (gnulib_tool_options): Do not hardcode base directories, use
61985         the above variables instead.
61986
61987 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61988
61989         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61990
61991 2008-02-28  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/freadptr-tests: New file.
61994         * tests/test-freadptr.sh: New file.
61995         * tests/test-freadptr.c: New file.
61996
61997         New module 'freadptr'.
61998         * modules/freadptr: New file.
61999         * lib/freadptr.h: New file.
62000         * lib/freadptr.c: New file.
62001         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62002
62003 2008-02-26  Karl Berry  <karl@freefriends.org>
62004
62005         Sync from Libtool:
62006         * libltdl/argz.c (argz_add, argz_count): New functions.
62007         * libltdl/argz.in.h: Declare them.
62008         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62009
62010 2008-02-22  Bruno Haible  <bruno@clisp.org>
62011
62012         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62013         is a pointer type.  Needed for HP-UX 10.
62014         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62015         * doc/posix-functions/gmtime_r.texi: Likewise.
62016         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62017
62018 2008-02-24  Bruno Haible  <bruno@clisp.org>
62019
62020         * modules/environ-tests: New file.
62021         * tests/test-environ.c: New file.
62022
62023         New module 'environ'.
62024         * modules/environ: New file.
62025         * lib/unistd.in.h (environ): New declaration.
62026         * m4/environ.m4: New file.
62027         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62028         after use.
62029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62030         HAVE_DECL_ENVIRON.
62031         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62032         HAVE_DECL_ENVIRON.
62033         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62034         wrong claim that 'environ' is missing on some systems.
62035         * modules/execute (Depends-on): Add environ.
62036         * lib/execute.c (environ): Remove fallback declaration.
62037         * modules/pipe (Depends-on): Add environ.
62038         * lib/pipe.c (environ): Remove fallback declaration.
62039         * modules/setenv (Depends-on): Add environ.
62040         * lib/setenv.c (environ): Remove fallback declaration.
62041         * modules/unsetenv (Depends-on): Add environ.
62042         * lib/unsetenv.c (environ): Remove fallback declaration.
62043         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62044         m4/environ.m4.
62045         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62046         (gl_PREREQ_UNSETENV): Likewise.
62047
62048 2008-02-24  Bruno Haible  <bruno@clisp.org>
62049
62050         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62051
62052 2008-02-20  Bob Proulx  <bob@proulx.com>
62053
62054         Enable use of older two part flavor 'git describe'.
62055         * build-aux/git-version-gen: If using the older two part flavor of
62056         git version then recreate the third part now present in the
62057         newer three part flavor of git describe.
62058
62059 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62060
62061         * lib/fts.c (fts_build): Typo correction to comment.
62062
62063 2008-02-17  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62066         generating no-op conflicts.
62067
62068 2008-02-17  Bruno Haible  <bruno@clisp.org>
62069
62070         Speed up by 10%.
62071         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62072         result_entries, rather than an index-based loop.
62073
62074 2008-02-17  Bruno Haible  <bruno@clisp.org>
62075
62076         Speed up by 25%.
62077         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62078         'hashcode_cached'.
62079         (entry_create): New function.
62080         (entry_hashcode): Use the cached hashcode if possible.
62081         (read_changelog_file, try_split_merged_entry): Use entry_create.
62082
62083 2008-02-17  Bruno Haible  <bruno@clisp.org>
62084
62085         Speed up from O(n^2) to O(n) for long ChangeLog files.
62086         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62087         (read_changelog_file): Change implementation of entries_reversed list
62088         to rbtreehash.
62089         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62090
62091 2008-02-17  Bruno Haible  <bruno@clisp.org>
62092
62093         New option --split-merged-entry.
62094         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62095         (find_paragraph_end, try_split_merged_entry): New functions.
62096         (long_options): Add option --split-merged-entry.
62097         (usage): Document option --split-merged-entry.
62098         (main): Implement option --split-merged-entry.
62099         Reported by Eric Blake.
62100
62101 2008-02-17  Bruno Haible  <bruno@clisp.org>
62102
62103         * lib/git-merge-changelog.c: Include c-strstr.h.
62104         (main): Support the "git pull --rebase" situation.
62105         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62106         Reported by Eric Blake.
62107
62108 2008-02-16  Eric Blake  <ebb9@byu.net>
62109
62110         Avoid doubling \ in common case of "c-maybe" quoting style.
62111         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62112         eliding outer quotes.
62113         * lib/quotearg.h: Document this.
62114         * tests/test-quotearg.c (result_strings, inputs, results_g)
62115         (flag_results, locale_results): Test it by adding a new string to
62116         each test group.
62117         (compare_strings): Test new string.
62118
62119 2008-02-13  Eric Blake  <ebb9@byu.net>
62120
62121         Avoid trigraph quoting in default output.
62122         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62123         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62124         unless explicitly requested.
62125         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62126
62127 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62128
62129         Don't rely on signed integer overflowing to negative value.
62130         * lib/getugroups.c (getugroups): Include <limits.h>.
62131         Instead, compare against INT_MAX, and increment only if the test passes.
62132
62133 2008-02-13  Jim Meyering  <meyering@redhat.com>
62134         and Eric Blake  <ebb9@byu.net>
62135
62136         Avoid shadowing warning and compile errors on Linux.
62137         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62138         forwarding macros on Linux.
62139         (dcgettext): Define a stub, for Linux.
62140         (results_g, main): Avoid warnings.
62141
62142 2008-02-12  Eric Blake  <ebb9@byu.net>
62143
62144         Silence warning in last patch.
62145         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62146
62147         Quotearg part 4: add tests, fix c-maybe colon quoting.
62148         * lib/quotearg.h: Improve documentation.
62149         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62150         escapes when adding outer quotes.  When quoting trigraphs, use
62151         valid C notation.  When quoting NUL, omit extra characters if next
62152         character is not digit.  Alter prototype.
62153         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62154         callers.
62155         * modules/quotearg-tests: New module.
62156         * tests/test-quotearg.c: New test.
62157
62158 2008-02-07  Eric Blake  <ebb9@byu.net>
62159
62160         Quotearg part 3: add flag to control outer quote elision.
62161         * lib/quotearg.h (c_maybe_quoting_style): New style.
62162         (enum quoting_flags): Better documentation of flags.
62163         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62164         c-maybe style.
62165         (quotearg_buffer_restyled): Handle new flag to elide outer
62166         quotes.
62167
62168         Quotearg part 2: add flag that can control NUL elision.
62169         * lib/quotearg.h (set_quoting_flags): New prototype.
62170         * lib/quotearg.c (struct quoting_options): Add flag field.
62171         (set_quoting_flags): New function.
62172         (quotearg_buffer_restyled): Add flags parameter.
62173         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62174         (quotearg_n_options): Set the flag, since length cannot be
62175         returned.
62176         (quoting_options_from_style): Default flags correctly.
62177
62178         Quotearg part 1: more wrappers, restore quotearg_char state.
62179         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62180         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62181         (quotearg_colon_mem): New wrappers.
62182         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62183         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62184         functions.
62185         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62186         (quotearg_colon_mem): New functions.
62187
62188 2008-02-11  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62191         library in the current directory: it does not work with parallel make.
62192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62193
62194 2008-02-11  Bruno Haible  <bruno@clisp.org>
62195
62196         * .gitattributes: New file.
62197
62198 2008-02-11  Jim Meyering  <meyering@redhat.com>
62199
62200         useless-if-before-free: Fix reversed exit values.
62201         * build-aux/useless-if-before-free: Use correct values
62202         for EXIT_MATCH and EXIT_NO_MATCH.
62203
62204         * build-aux/useless-if-before-free: Close stdout carefully.
62205
62206 2008-02-10  Bruno Haible  <bruno@clisp.org>
62207
62208         New module 'git-merge-changelog'.
62209         * modules/git-merge-changelog: New file.
62210         * lib/git-merge-changelog.c: New file.
62211
62212 2008-02-10  Jim Meyering  <meyering@redhat.com>
62213
62214         useless-if-before-free: New option: --list (-l).
62215
62216         useless-if-before-free: Don't exit immediately upon open failure.
62217         * build-aux/useless-if-before-free: Exit 2 for errors.
62218         Upon failure to open a file, don't exit immediately.
62219         Rather, just warn and continue with any remaining files.
62220
62221 2008-02-10  Bruno Haible  <bruno@clisp.org>
62222
62223         New abstract list operation 'node_set_value'.
62224         * lib/gl_list.h (gl_list_node_set_value): New function.
62225         (struct gl_list_implementation): New field node_set_value.
62226         * lib/gl_list.c (gl_list_node_set_value): New function.
62227         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62228         (gl_array_list_implementation): Update.
62229         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62230         (gl_carray_list_implementation): Update.
62231         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62232         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62233         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62234         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62235         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62236         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62237         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62238         Update.
62239         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62240         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62241         (gl_sublist_list_implementation): Update.
62242
62243 2008-02-10  Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62246         Needed when ELEMENT is #defined to 'some_type *'.
62247
62248 2008-02-10  Jim Meyering  <meyering@redhat.com>
62249
62250         New script and module: useless-if-before-free
62251         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62252         * build-aux/useless-if-before-free: New file.
62253         * modules/useless-if-before-free: New file.
62254
62255         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62256
62257         xstrtol_error: Fix typo.
62258         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62259         s/exit_failure/exit_status/.
62260
62261 2008-02-09  Jim Meyering  <meyering@redhat.com>
62262
62263         New script and module: gitlog-to-changelog
62264         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62265         * modules/gitlog-to-changelog: New file.
62266         * build-aux/gitlog-to-changelog: New file.
62267
62268 2008-02-08  Jim Meyering  <meyering@redhat.com>
62269
62270         Avoid two "parameter unused" warnings.
62271         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62272         Mark "st" as used.
62273
62274         Use "git COMMAND", not "git-COMMAND".
62275         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62276         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62277         * build-aux/git-version-gen: Use "git status", not "git-status".
62278
62279 2008-02-07  Bruno Haible  <bruno@clisp.org>
62280
62281         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62282         Avoids a crash on Windows Vista.
62283         Reported by Adam Strzelecki <ono@java.pl> via
62284         Simon Josefsson <simon@josefsson.org>.
62285
62286 2008-02-06  Bruno Haible  <bruno@clisp.org>
62287
62288         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62289         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62290         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62292         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62294         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62295         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62303         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62304         left-adjust flag.
62305         * tests/test-snprintf-posix.h (test_function): Likewise.
62306         * tests/test-sprintf-posix.h (test_function): Likewise.
62307         * tests/test-vasprintf-posix.c (test_function): Likewise.
62308         * doc/posix-functions/fprintf.texi: Update.
62309         * doc/posix-functions/printf.texi: Update.
62310         * doc/posix-functions/snprintf.texi: Update.
62311         * doc/posix-functions/sprintf.texi: Update.
62312         * doc/posix-functions/vfprintf.texi: Update.
62313         * doc/posix-functions/vprintf.texi: Update.
62314         * doc/posix-functions/vsnprintf.texi: Update.
62315         * doc/posix-functions/vsprintf.texi: Update.
62316         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62317
62318 2008-02-06  Bruno Haible  <bruno@clisp.org>
62319
62320         Fix bug introduced on 2008-01-26.
62321         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62322
62323 2008-02-06  Bruno Haible  <bruno@clisp.org>
62324
62325         Fix bug introduced on 2007-06-10.
62326         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62327         !NEED_PRINTF_FLAG_ZERO.
62328
62329 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62330
62331         getloadavg: use libperfstat on AIX5
62332         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62333
62334 2008-02-03  Bruno Haible  <bruno@clisp.org>
62335
62336         * lib/diffseq.h: Add comments about required #includes.
62337         Reported by Michael Biggs <gnulib@doubleplum.net>.
62338
62339 2008-02-01  Bruno Haible  <bruno@clisp.org>
62340
62341         * users.txt: Add gnuit.
62342
62343 2008-01-31  Bruno Haible  <bruno@clisp.org>
62344
62345         * lib/md4.c (set_uint32): Mark as inline.
62346         * lib/md5.c (set_uint32): Likewise.
62347         * lib/sha1.c (set_uint32): Likewise.
62348         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62349         * m4/md5.m4 (gl_MD5): Likewise.
62350         * m4/sha1.m4 (gl_SHA1): Likewise.
62351
62352 2008-01-31  Jim Meyering  <meyering@redhat.com>
62353
62354         Use "sizeof VAR", rather than a literal "4".
62355         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62356         * lib/md4.c (md4_read_ctx): Likewise.
62357         * lib/sha1.c (sha1_read_ctx): Likewise.
62358
62359 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62360
62361         * tests/test-sha1.c: New file, based on test-md5.c.
62362
62363         * modules/crypto/sha1-tests: New file.
62364
62365 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62366
62367         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62368
62369 2008-01-31  Jim Meyering  <meyering@redhat.com>
62370
62371         Prefer "sizeof v" over the equivalent "4".
62372         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62373         * lib/md5.c (set_uint32): Likewise.
62374         * lib/sha1.c (set_uint32): Likewise.
62375
62376 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62377
62378         * lib/sha1.c (set_uint32): Mark function as static.
62379
62380 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62381
62382         md2: clarify comments to say that alignment is not required.
62383         * lib/md2.h: Remove warning about alignment in comment.
62384         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62385         never been required.
62386
62387 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62388
62389         md4: adapt alignment constraint fix from sha1.
62390         * lib/md4.c (set_uint32): New function, from sha1.c
62391         (md4_read_ctx): Use it.
62392         (md4_finish_ctx): Doc fix.
62393         * lib/md4.h: Doc fix.
62394
62395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62396
62397         md5: adapt alignment constraint fix from sha1.
62398         * lib/md5.c (set_uint32): New function, from sha1.c
62399         (md5_read_ctx): Use it.
62400         (md5_finish_ctx): Doc fix.
62401         * lib/md5.h: Doc fix.
62402
62403 2008-01-30  Peter Palfrader  <weasel@debian.org>
62404
62405         sha1: remove the result buffer alignment constraint
62406         * lib/sha1.c (set_uint32): New function.
62407         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62408         constraint.
62409         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62410         * lib/sha1.h: Likewise.
62411
62412 2008-01-30  Andreas Schwab  <schwab@suse.de>
62413             Bruno Haible  <bruno@clisp.org>
62414
62415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62416         correct definition of LDBL_MIN_EXP.
62417
62418 2008-01-30  Karl Berry  <karl@gnu.org>
62419
62420         * config/srclist-update: try to preserve x bit on updates.
62421         * config/srclistvars.sh: update for karl.
62422
62423 2008-01-29  Jim Meyering  <meyering@redhat.com>
62424
62425         vasnprintf.c: Avoid warning about unused label
62426         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62427         "overflow" label definition and associated code with the
62428         same cpp condition that guards the sole use of that label.
62429
62430 2008-01-26  Bruno Haible  <bruno@clisp.org>
62431
62432         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62433         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62434         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62435         * lib/isnanl-nolibm.h (isnanl): Likewise.
62436         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62437
62438 2008-01-26  Bruno Haible  <bruno@clisp.org>
62439
62440         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62441         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62442
62443 2008-01-26  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62446         GCC >= 4.0 built-in.
62447         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62448
62449 2008-01-26  Bruno Haible  <bruno@clisp.org>
62450
62451         Rename isnan, applicable to 'double' only, to isnand.
62452         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62453         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62454         (configure.ac): Update.
62455         (Include): Replace "isnan.h" with "isnand.h".
62456         * m4/isnand.m4: Renamed from m4/isnan.m4.
62457         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62458         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62459         instead of isnan.c.
62460         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62461         instead of HAVE_ISNAN_IN_LIBC.
62462         (isnand): Renamed from isnan.
62463         * lib/isnand.c: New file.
62464         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62465         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62466         (Makefile.am): Update.
62467         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62468         Include isnand.h instead of isnan.h.
62469         (main): Test isnand instead of isnan.
62470         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62471         isnan-nolibm.
62472         * modules/frexp (Depends-on): Likewise.
62473         * modules/frexp-tests (Depends-on): Likewise.
62474         * modules/frexp-nolibm (Depends-on): Likewise.
62475         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62476         * modules/isfinite (Depends-on): Likewise.
62477         * modules/round-tests (Depends-on): Likewise.
62478         * modules/signbit (Depends-on): Likewise.
62479         * modules/signbit-tests (Depends-on): Likewise.
62480         * modules/snprintf-posix (Depends-on): Likewise.
62481         * modules/sprintf-posix (Depends-on): Likewise.
62482         * modules/trunc-tests (Depends-on): Likewise.
62483         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62484         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62485         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62486         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62487         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62488         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62489         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62490         * modules/vasnprintf-posix (Depends-on): Likewise.
62491         * modules/vasprintf-posix (Depends-on): Likewise.
62492         * modules/vfprintf-posix (Depends-on): Likewise.
62493         * modules/vsnprintf-posix (Depends-on): Likewise.
62494         * modules/vsprintf-posix (Depends-on): Likewise.
62495         * lib/frexp.c: Include isnand.h instead of isnan.h.
62496         (ISNAN): Set to isnand instead of isnan.
62497         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62498         (gl_isfinited): Use isnand instead of isnan.
62499         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62500         (gl_signbitd): Use isnand instead of isnan.
62501         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62502         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62503         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62504         (main): Use isnand instead of isnan.
62505         * tests/test-round1.c: Include isnand.h.
62506         (main): Use isnand instead of isnan.
62507         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62508         (ISNAN): Set to isnand instead of isnan.
62509         * tests/test-trunc1.c: Include isnand.h.
62510         (main): Use isnand instead of isnan.
62511         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62512         (equal): Use isnand instead of isnan.
62513         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62514         isnand-nolibm.
62515         * NEWS: Mention the change.
62516
62517 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62518             Bruno Haible  <bruno@clisp.org>
62519
62520         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62521         the GCC builtins for signbits are present and set
62522         REPLACE_SIGNBIT_USING_GCC if so.
62523         * lib/math.in.h (signbit): Define using GCC builtins if
62524         REPLACE_SIGNBIT_USING_GCC is set.
62525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62526         REPLACE_SIGNBIT_USING_GCC.
62527         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62528
62529 2008-01-25  Jim Meyering  <meyering@redhat.com>
62530
62531         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62532         * lib/poll.c: Include <config.h>, not "config.h".
62533         * tests/test-getaddrinfo.c: Likewise.
62534
62535 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62536
62537         * modules/sockets-tests: New file.
62538
62539 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62540
62541         * modules/sockets: New module, can be used to call WSA_Startup and
62542         WSA_Cleanup when needed.
62543
62544         * lib/sockets.h, lib/sockets.c: New files.
62545
62546         * m4/sockets.m4: New file.
62547
62548         * tests/test-sockets.c: New file.
62549
62550 2008-01-19  Bruno Haible  <bruno@clisp.org>
62551
62552         * doc/posix-headers: Renamed from doc/headers.
62553         * doc/posix-functions: Renamed from doc/functions.
62554         * doc/gnulib.texi: Update.
62555
62556 2008-01-19  Bruno Haible  <bruno@clisp.org>
62557
62558         * doc/glibc-functions/strcasestr.texi: Include contents of
62559         doc/functions/strcasestr.texi, fixing the list of platforms.
62560         * doc/functions/strcasestr.texi: Remove file.
62561
62562 2008-01-19  Bruno Haible  <bruno@clisp.org>
62563
62564         * doc/glibc-functions/memmem.texi: Include contents of
62565         doc/functions/memmem.texi.
62566         * doc/functions/memmem.texi: Remove file.
62567
62568 2008-01-18  Bruno Haible  <bruno@clisp.org>
62569
62570         * doc/glibc-functions/*.texi: New files.
62571         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62572         to use the new files.
62573
62574 2008-01-17  Bruno Haible  <bruno@clisp.org>
62575
62576         * tests/test-gethostname.c (main): Fix printf statement.
62577
62578 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62579
62580         * modules/gethostname-tests: New file.
62581
62582         * tests/test-gethostname.c: New file.
62583
62584 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62585
62586         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62587         used by the UNAME case.  Reported by Bruno Haible
62588         <bruno@clisp.org>.
62589
62590 2008-01-17  Eric Blake  <ebb9@byu.net>
62591
62592         Convert c-strcasestr to be more efficient.
62593         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62594         (Depends-on): Add c-strcase, remove malloca, strnlen.
62595         * tests/test-c-strcasestr.c (main): Enhance test.
62596         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62597
62598 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62599
62600         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62601         Use it in creating po/Makevars.
62602
62603 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62604
62605         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62606         Applications that requires it should initialize libgcrypt
62607         manually.
62608
62609 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62610
62611         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62612
62613 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         Fix problem with getdate on mingw32 reported by Simon Josefsson
62616         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62617         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62618         tzname", when deciding whether to declare tzname.
62619         * lib/strftime.c (tzname): Likewise.
62620
62621 2008-01-15  Bruno Haible  <bruno@clisp.org>
62622
62623         Work around a MacOS X 10.5 bug in frexpl().
62624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62625         * doc/functions/frexpl.texi: Document the bug.
62626         Reported by Elias Pipping <pipping@gentoo.org>.
62627
62628 2008-01-14  Eric Blake  <ebb9@byu.net>
62629
62630         Touch up previous patch.
62631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62632         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62633
62634         Convert strcasestr module to use Two-Way algorithm.
62635         * modules/strcasestr-simple: New module, based on the old
62636         strcasestr, but with Two-Way rather than KMP.
62637         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62638         * lib/string.in.h (rpl_strcasestr): Declare.
62639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62640         performance.
62641         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62642         * modules/string (Makefile.am): Support strcasestr.
62643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62644         * modules/strcasestr-tests (Depends-on): Check for alarm.
62645         * tests/test-strcasestr.c: Augment test.
62646         * lib/str-two-way.h: Clean up stray macro.
62647         * NEWS: Document new module.
62648         * MODULES.html.sh (string handling): Likewise.
62649         * doc/functions/strcasestr.texi: New file.
62650         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62651         here, since it is not a POSIX function.
62652
62653 2008-01-14  Colin Watson  <cjwatson@debian.org>
62654             Bruno Haible  <bruno@clisp.org>
62655
62656         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62657         works fine; if not, set REPLACE_STRSIGNAL.
62658         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62660         REPLACE_STRSIGNAL.
62661         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62662         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62663         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62664
62665 2008-01-14  Bruno Haible  <bruno@clisp.org>
62666
62667         * modules/strsignal (Include): Change to <string.h>.
62668
62669 2008-01-14  Colin Watson  <cjwatson@debian.org>
62670
62671         * modules/argp (Notice): Add a notice recommending to change
62672         XGETTEXT_OPTIONS.
62673         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62674
62675 2008-01-13  Colin Watson  <cjwatson@debian.org>
62676
62677         * modules/strsignal-tests: New file.
62678         * tests/test-strsignal.c: New file.
62679
62680         * lib/strsignal.c: New file, from glibc with modifications.
62681         * lib/siglist.h: New file, from glibc with modifications.
62682         * lib/string.in.h (strsignal): New declaration.
62683         * m4/strsignal.m4: New file.
62684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62685         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62686         * modules/strsignal: New file.
62687         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62688         HAVE_DECL_STRSIGNAL.
62689
62690 2008-01-13  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62693         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62695         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62696
62697 2008-01-13  Bruno Haible  <bruno@clisp.org>
62698
62699         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62700         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62701         * lib/argp.h (__attribute__): Likewise.
62702         * lib/c-stack.c (__attribute__): Likewise.
62703         * lib/error.h (__attribute__): Likewise.
62704         * lib/fts.c (__attribute__): Likewise.
62705         * lib/openat.h (__attribute__): Likewise.
62706         * lib/stdio.in.h (__attribute__): Likewise.
62707         * lib/string.in.h (__attribute__): Likewise.
62708         * lib/utimens.c (__attribute__): Likewise.
62709         * lib/vasnprintf.h (__attribute__): Likewise.
62710         * lib/xalloc.h (__attribute__): Likewise.
62711         * lib/xprintf.h (__attribute__): Likewise.
62712         * lib/xstrtol.h (__attribute__): Likewise.
62713         * lib/xvasprintf.h (__attribute__): Likewise.
62714
62715 2008-01-12  Bruno Haible  <bruno@clisp.org>
62716
62717         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62718         * doc/glibc-headers/a.out.texi: New file.
62719         * doc/glibc-headers/aliases.texi: New file.
62720         * doc/glibc-headers/alloca.texi: New file.
62721         * doc/glibc-headers/ar.texi: New file.
62722         * doc/glibc-headers/argp.texi: New file.
62723         * doc/glibc-headers/argz.texi: New file.
62724         * doc/glibc-headers/byteswap.texi: New file.
62725         * doc/glibc-headers/crypt.texi: New file.
62726         * doc/glibc-headers/endian.texi: New file.
62727         * doc/glibc-headers/envz.texi: New file.
62728         * doc/glibc-headers/err.texi: New file.
62729         * doc/glibc-headers/error.texi: New file.
62730         * doc/glibc-headers/execinfo.texi: New file.
62731         * doc/glibc-headers/fpu_control.texi: New file.
62732         * doc/glibc-headers/fstab.texi: New file.
62733         * doc/glibc-headers/fts.texi: New file.
62734         * doc/glibc-headers/getopt.texi: New file.
62735         * doc/glibc-headers/ieee754.texi: New file.
62736         * doc/glibc-headers/ifaddrs.texi: New file.
62737         * doc/glibc-headers/libintl.texi: New file.
62738         * doc/glibc-headers/mcheck.texi: New file.
62739         * doc/glibc-headers/mntent.texi: New file.
62740         * doc/glibc-headers/obstack.texi: New file.
62741         * doc/glibc-headers/paths.texi: New file.
62742         * doc/glibc-headers/printf.texi: New file.
62743         * doc/glibc-headers/pty.texi: New file.
62744         * doc/glibc-headers/resolv.texi: New file.
62745         * doc/glibc-headers/shadow.texi: New file.
62746         * doc/glibc-headers/sysexits.texi: New file.
62747         * doc/glibc-headers/ttyent.texi: New file.
62748
62749 2008-01-12  Jim Meyering  <meyering@redhat.com>
62750
62751         announce-gen: emit Gnulib's git-based version string.
62752         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62753         New option --gnulib-version=V, where V is expected to be
62754         the output of running git describe in the gnulib directory.
62755         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62756         not useful, and plan to stop publishing an xdelta file with each
62757         coreutils release.
62758
62759         * build-aux/announce-gen: Also check for lzma-compressed files.
62760
62761 2008-01-11  Bruno Haible  <bruno@clisp.org>
62762
62763         * tests/test-memmem.c (main): Increase maximum allowed time.
62764         * tests/test-strstr.c (main): Likewise.
62765
62766 2008-01-11  Bruno Haible  <bruno@clisp.org>
62767
62768         * doc/functions/memmem.texi: Add more precisions about platforms.
62769         * doc/functions/strstr.texi: Likewise.
62770
62771 2008-01-10  Eric Blake  <ebb9@byu.net>
62772
62773         * m4/strstr.m4: Delete cruft from copy-n-paste.
62774         Reported by Bruno Haible.
62775
62776 2008-01-10  Bruno Haible  <bruno@clisp.org>
62777
62778         Make c-strstr rely on strstr.
62779         * lib/c-strstr.c: Don't include str-kmp.h.
62780         (c_strstr): Define in terms of strstr.
62781         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62782         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62783
62784 2008-01-10  Bruno Haible  <bruno@clisp.org>
62785
62786         * doc/gnulib.texi (String Functions in C Locale): New section.
62787         * doc/c-ctype.texi: New file.
62788         * doc/c-strcase.texi: New file.
62789         * doc/c-strcaseeq.texi: New file.
62790         * doc/c-strcasestr.texi: New file.
62791         * doc/c-strstr.texi: New file.
62792         * doc/c-strtod.texi: New file.
62793         * doc/c-strtold.texi: New file.
62794
62795 2008-01-10  Eric Blake  <ebb9@byu.net>
62796
62797         * lib/relocatable.h: Fix a comment.
62798
62799 2008-01-10  Eric Blake  <ebb9@byu.net>
62800
62801         Share two-way algorithm.
62802         * lib/str-two-way.h: New file, merged from...
62803         * lib/memmem.c: ...here...
62804         * lib/strstr.c: ...and here.
62805         * modules/memmem (Files): Use it.
62806         * modules/strstr (Files): Likewise.
62807
62808         Avoid quadratic strstr implementations.
62809         * lib/strstr.c: New file.
62810         * m4/strstr.m4: Likewise.
62811         * modules/strstr: Likewise.
62812         * modules/strstr-tests: Likewise.
62813         * tests/test-strstr.c: Likewise.
62814         * lib/string.in.h (rpl_strstr): Declare.
62815         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62817         * modules/string (Makefile.am): Likewise.
62818         * MODULES.html.sh (string handling): Mention new module.
62819         * doc/functions/strstr.texi (strstr): Document the bug.
62820
62821 2008-01-10  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/relocatable.h (relocate): State whether result is freshly
62824         allocated or not.
62825         * lib/relocatable.c (relocate): Return a freshly allocated string
62826         instead of a pointer to a privately held string.
62827         Reported by Sylvain Beucler <beuc@gnu.org>.
62828
62829 2008-01-10  Colin Watson  <cjwatson@debian.org>
62830
62831         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62832         s/S_ISNLK/S_ISLNK/.
62833
62834 2008-01-09  Bruno Haible  <bruno@clisp.org>
62835
62836         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62837         and other files.
62838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62839         if it's only a guess.
62840         * modules/memmem: Simplify by depending on memmem-simple.
62841
62842 2008-01-09  Bruno Haible  <bruno@clisp.org>
62843
62844         Work around OpenBSD 4.0 tdelete() bug.
62845         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62846         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62847         macros and don't redefine the enum values.
62848         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62849         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62850         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62851
62852 2008-01-09  Bruno Haible  <bruno@clisp.org>
62853
62854         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62855         (main): Don't perform the tests if setlocale did not install a UTF-8
62856         locale. Needed on OpenBSD 4.0.
62857         * modules/wcwidth-tests (Depends-on): Add localcharset.
62858
62859 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62862         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62863         * NEWS: announce this.
62864         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62865
62866 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62867         and Eric Blake  <ebb9@byu.net>
62868
62869         Add memmem-simple module.
62870         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62871         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62872         * modules/memmem-simple: New file.
62873         * modules/memmem (Description): Tweak.
62874         * MODULES.html.sh (string handling): Mention new module.
62875         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62876         addressed by memmem-simple.
62877         * NEWS: Document the difference.
62878
62879 2008-01-09  Eric Blake  <ebb9@byu.net>
62880
62881         Give gcc some memmem optimization hints.
62882         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62883         (strcasestr): Declare as pure.
62884         * modules/memmem (Maintainer): Claim my implementation.
62885
62886 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62887
62888         Support AIX 6.1 and higher.
62889         * build-aux/config.libpath: Likewise.
62890         * build-aux/config.rpath: Likewise.
62891
62892 2008-01-08  Jim Meyering  <meyering@redhat.com>
62893             Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62896         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62897         Reported by Peter Fales in
62898         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62899
62900 2008-01-08  Bruno Haible  <bruno@clisp.org>
62901
62902         * modules/unictype/category-of (Depends-on): Add
62903         unictype/category-none.
62904         * modules/unictype/category-and-tests (Depends-on): Add
62905         unictype/category-{L,N,Lu,Nd}.
62906         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62907         * modules/unictype/category-or-tests (Depends-on): Add
62908         unictype/category-{L,N}.
62909         * modules/unictype/category-name-tests (Depends-on): Add
62910         unictype/category-{Z,Nl}.
62911         Reported by Simon Josefsson.
62912
62913 2008-01-08  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62916         convention better.
62917         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62918         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62919         Reported by Peter Miller <millerp@canb.auug.org.au>.
62920
62921 2008-01-08  Eric Blake  <ebb9@byu.net>
62922
62923         Rewrite memmem to guarantee linear complexity without malloc.
62924         * lib/memmem.c (memmem): Use Two-Way rather than
62925         Knuth-Morris-Pratt, to allow O(1) space usage.
62926         (critical_factorization, two_way_short_needle)
62927         (two_way_long_needle): New functions.
62928         (knuth_morris_pratt): Delete.
62929         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62930         Add stdint.
62931         * tests/test-memmem.c (main): Add tests for periodic needle and
62932         sublinear performance.
62933         * doc/functions/memmem.texi (memmem): Document other deficiencies
62934         in cygwin and older glibc.
62935
62936 2008-01-08  Bruno Haible  <bruno@clisp.org>
62937
62938         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62939         augmentation.
62940
62941 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62942
62943         Add a configure time option: --disable-acl.
62944         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62945         AC_ARG_ENABLE(acl).
62946
62947 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62948
62949         * tests/test-localename.c: Don't include obsolete "setenv.h".
62950
62951         * modules/localename-tests (Depends-on): Need unsetenv.
62952
62953 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62954
62955         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62956
62957 2008-01-06  Colin Watson  <cjwatson@debian.org>
62958
62959         * users.txt: Add man-db.
62960
62961 2008-01-07  Bruno Haible  <bruno@clisp.org>
62962
62963         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62964         previous section name.
62965
62966 2008-01-07  Bruno Haible  <bruno@clisp.org>
62967
62968         * lib/progname.c (set_program_name): Don't strip off a leading
62969         "lt-" prefix outside a .libs directory.
62970         Suggested by Paul Eggert.
62971
62972 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62973             Bruno Haible  <bruno@clisp.org>
62974
62975         Improve memory cleanup in 'relocatable' module.
62976         * lib/relocatable.h (compute_curr_prefix): Change return type to
62977         'char *'.
62978         * lib/relocatable.c (compute_curr_prefix): Change return type to
62979         'char *'. Free curr_installdir after use.
62980         (relocate): Free curr_prefix_better after use.
62981         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62982
62983 2008-01-01  Bruno Haible  <bruno@clisp.org>
62984
62985         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62986         failure on older glibc systems.
62987         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62988
62989 2008-01-05  Eric Blake  <ebb9@byu.net>
62990
62991         Avoid quadratic system memmem.
62992         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62993         Reported by Ralf Wildenhues.
62994
62995         Fix memmem test for mingw.
62996         * modules/memmem-tests (configure.ac): Check for alarm.
62997         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62998         it.
62999         * doc/functions/memmem.texi: New file.
63000         * doc/gnulib.texi (Function Substitutes): Add memmem.
63001         Reported by Bruno Haible.
63002
63003 2008-01-04  Bruno Haible  <bruno@clisp.org>
63004
63005         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63006         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63007         gl_HEADER_STRING_H_DEFAULTS.
63008
63009 2008-01-04  Eric Blake  <ebb9@byu.net>
63010
63011         Shorten duration of memmem test.
63012         * tests/test-memmem.c (main): Use alarm to declare failure if test
63013         is taking too long.
63014         Reported by Ralf Wildenhues.
63015
63016 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63017
63018         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63019         string, needed by strerror.
63020
63021 2008-01-03  Colin Watson  <cjwatson@debian.org>
63022             Bruno Haible  <bruno@clisp.org>
63023
63024         * doc/gnulib-tool.texi (Localization): New section.
63025
63026 2008-01-02  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63029         variables to 'unsigned char *' type.
63030         Reported by Paul Eggert.
63031
63032 2008-01-02  Jim Meyering  <jim@meyering.net>
63033
63034         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63035
63036 2007-12-31  Jim Meyering  <jim@meyering.net>
63037
63038         Avoid use of private FTS type name.
63039         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63040
63041 2007-12-30  Karl Berry  <karl@gnu.org>
63042
63043         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63044         work around defect in Texinfo and/or the standalone Info browser.
63045
63046 2007-12-30  Bruno Haible  <bruno@clisp.org>
63047
63048         Unify 5 copies of the KMP code.
63049         * lib/str-kmp.h: New file.
63050         * lib/c-strcasestr.c: Include str-kmp.h.
63051         (knuth_morris_pratt): Remove function.
63052         (c_strcasestr): Update.
63053         * lib/c-strstr.c: Include str-kmp.h.
63054         (knuth_morris_pratt): Remove function.
63055         (c_strcasestr): Update.
63056         * lib/mbscasestr.c: Include str-kmp.h.
63057         (knuth_morris_pratt_unibyte): Remove function.
63058         * lib/mbsstr.c: Include str-kmp.h.
63059         (knuth_morris_pratt_unibyte): Remove function.
63060         * lib/strcasestr.c: Include str-kmp.h.
63061         (knuth_morris_pratt): Remove function.
63062         (strcasestr): Update.
63063         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63064         * modules/c-strstr (Files): Likewise.
63065         * modules/mbscasestr (Files): Likewise.
63066         * modules/mbsstr (Files): Likewise.
63067         * modules/strcasestr (Files): Likewise.
63068         Suggested by Paul Eggert.
63069
63070 2007-12-30  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63073         defined.
63074
63075 2007-12-30  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/xmalloca.h: Include xalloc.h.
63078         (xnmalloca): New macro.
63079
63080 2007-12-30  Bruno Haible  <bruno@clisp.org>
63081
63082         * lib/malloca.h (nmalloca): New macro.
63083         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63084         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63085         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63086         knuth_morris_pratt_multibyte): Likewise.
63087         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63088         knuth_morris_pratt_multibyte): Likewise.
63089         * lib/memmem.c (knuth_morris_pratt): Likewise.
63090         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63091
63092 2007-12-25  Bruno Haible  <bruno@clisp.org>
63093
63094         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63095         * lib/glob.c: Don't include openat.h.
63096         (link_exists2_p): Add back the code that deals with the
63097         !GLOB_ALTDIRFUNC case.
63098         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63099         let it do the filename concatenation.
63100         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63101         * modules/glob (Depends-on): Remove openat.
63102
63103 2007-12-31  Bruno Haible  <bruno@clisp.org>
63104
63105         * modules/dirfd (License): Change to LGPLv2+.
63106         Approved by Jim Meyering.
63107
63108 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63111         when multiplying M by sizeof (size_t).
63112
63113 2007-12-10  Martin Lambers  <marlam@marlam.de>
63114
63115         Override getpagesize on mingw.
63116         * lib/getpagesize.c: New file.
63117         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63118         * modules/getpagesize (Files): Add lib/getpagesize.c.
63119         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63121         REPLACE_GETPAGESIZE.
63122         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63123
63124 2007-12-25  Bruno Haible  <bruno@clisp.org>
63125
63126         * modules/localcharset (Notice): New field.
63127         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63128         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63129
63130 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63131             Bruno Haible  <bruno@clisp.org>
63132
63133         Avoid using the syntax symbol() in formatted documentation.
63134         * MODULES.html.sh (func_module): When replacing symbol() with a
63135         hyperlink, remove the parentheses. Show an error if some remain.
63136         Recognize and render the '...' syntax.
63137         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63138         Rework. Add paragraph about GCC's inlining.
63139         * doc/alloca.texi: Likewise.
63140         * doc/error.texi: Remove parentheses from symbol reference.
63141         * doc/gnulib-intro.texi: Likewise.
63142         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63143         * modules/fnmatch (Description): Reword to say "the ... function".
63144         * modules/full-read (Description): Likewise.
63145         * modules/full-write (Description): Likewise.
63146         * modules/safe-read (Description): Likewise.
63147         * modules/safe-write (Description): Likewise.
63148         * modules/strchrnul (Description): Likewise.
63149         * modules/trim (Description): Likewise.
63150         * modules/error (Description): Remove parentheses from symbol
63151         references.
63152         * modules/verror (Description): Likewise.
63153         Reported by Karl Berry.
63154
63155 2007-12-25  Bruno Haible  <bruno@clisp.org>
63156
63157         Fixup after 2007-10-16 commit.
63158         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63159
63160 2007-12-24  Bruno Haible  <bruno@clisp.org>
63161
63162         Make --enable-relocatable work with DESTDIR.
63163         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63164         to compute installdir from destprog.
63165         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63166         also set the RELOC_DESTDIR variable.
63167         Reported by Левашев Иван <octagram@bluebottle.com>.
63168
63169 2007-12-24  Bruno Haible  <bruno@clisp.org>
63170
63171         Fix link error due to xalloc_die().
63172         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63173         of xreadlink.
63174         * lib/relocwrapper.c: Update comments.
63175         * build-aux/install-reloc: Remove xreadlink.c from file list.
63176         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63177         xreadlink.c.
63178         Reported by Левашев Иван <octagram@bluebottle.com>.
63179
63180 2007-12-24  Bruno Haible  <bruno@clisp.org>
63181
63182         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63183         * lib/setenv.h: Remove file.
63184         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63185         lib/setenv.h.
63186         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63187         (Depends-on): Add stdlib.
63188         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63189         gl_FUNC_UNSETENV.
63190         (Include): Replace setenv.h with <stdlib.h>.
63191         * modules/unsetenv: New file.
63192         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63193         * lib/unsetenv.c: Include <stdlib.h> first.
63194         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63195         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63196         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63197         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63198         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63199         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63201         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63202         * doc/functions/unsetenv.texi: Update.
63203         * modules/xsetenv (Depends-on): Add unsetenv.
63204         * modules/getdate (Depends-on): Likewise.
63205         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63206         * lib/xsetenv.c: Don't include setenv.h.
63207         * lib/getdate.y: Likewise.
63208         * lib/relocwrapper.c: Likewise.
63209         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63210         (Depends-on): Add stdlib.
63211         * NEWS: Mention the changes.
63212         Reported by Левашев Иван <octagram@bluebottle.com>.
63213
63214 2007-12-23  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63217         indentation.
63218
63219 2007-12-23  Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/c-strcasestr.c: Add more comments.
63222         * lib/c-strstr.c: Likewise.
63223         * lib/mbscasestr.c: Likewise.
63224         * lib/mbsstr.c: Likewise.
63225         * lib/strcasestr.c: Likewise.
63226         * lib/memmem.c: Likewise.
63227
63228 2007-12-23  Bruno Haible  <bruno@clisp.org>
63229
63230         * tests/test-memmem.c: Include <string.h> first.
63231
63232 2007-12-22  Bruno Haible  <bruno@clisp.org>
63233
63234         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63235         the contents of $testsbase.
63236         Reported by Ralf Wildenhues.
63237
63238 2007-12-22  Bruno Haible  <bruno@clisp.org>
63239
63240         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63241         two variables local_ldadd_before, local_ldadd_last.
63242
63243 2007-12-20  Eric Blake  <ebb9@byu.net>
63244
63245         Work around circular library issue when cross-compiling.
63246         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63247         that progname.o does not need to pull in rpl_memcmp.
63248
63249 2007-12-19  Eric Blake  <ebb9@byu.net>
63250
63251         Fix memmem to avoid O(n^2) worst-case complexity.
63252         * lib/memmem.c (knuth_morris_pratt): New function.
63253         (memmem): Use it if first few naive iterations fail.
63254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63255         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63256         * modules/memchr (License): Likewise.
63257         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63258         malloca.
63259         * tests/test-memmem.c: Rewrite, borrowing ideas from
63260         test-mbsstr1.c; the old version wouldn't even compile!
63261         * modules/memmem-tests: New file.
63262         * lib/string.in.h (rpl_memmem): Add declaration.
63263         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63265         REPLACE_MEMMEM.
63266
63267 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63270         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63271         before any system include files, and undef after them all.  This
63272         should fix a problem on VMS reported by John E. Malmberg in
63273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63274
63275 2007-12-17  Eric Blake  <ebb9@byu.net>
63276
63277         Revert addition of verify, for BSD/OS.
63278         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63279         can't handle large files, for the sake of obsolete platforms.
63280         * modules/fseeko (Depends-on): Remove verify.
63281         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63282         * doc/functions/ftello.texi (ftello): Likewise.
63283         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63284         Reported by Larry Jones.
63285
63286 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63287
63288         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63289         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63290
63291 2007-12-17  Jim Meyering  <meyering@redhat.com>
63292
63293         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63294         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63295         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63296         * modules/getcwd (Depends-on): Add openat.
63297         Reported by Petr Salinger.
63298
63299 2007-12-17  Bruno Haible  <bruno@clisp.org>
63300
63301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63302         avoid a segmentation fault of the configure test on x86_64 systems.
63303
63304 2007-12-15  Jim Meyering  <meyering@redhat.com>
63305
63306         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63307
63308 2007-12-13  Eric Blake  <ebb9@byu.net>
63309
63310         Another fseek test.
63311         * tests/test-fseek.c (main): Also test ungetc handling.
63312         * tests/test-fseeko.c (main): Likewise.
63313         * modules/fseeko (Depends-on): Add verify.
63314         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63315         large.
63316         Reported by Larry Jones.
63317
63318         Fix fseeko on mingw.
63319         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63320         seek.
63321
63322         Beef up fseek tests.
63323         * tests/test-fseek.c (main): Also test eof handling.
63324         * tests/test-fseeko.c (main): Likewise.
63325         Reported by Larry Jones.
63326
63327 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63328
63329         Fix fseeko on BSD-based platforms.
63330         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63331         successful seek.
63332
63333 2007-12-12  Eric Blake  <ebb9@byu.net>
63334
63335         Allow circular dependency of separate libtests.a
63336         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63337         when use_libtests.
63338
63339 2007-12-11  Eric Blake  <ebb9@byu.net>
63340
63341         Fix bug with -0.0L in previous patch.
63342         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63343         * tests/test-isnan.c (main): Also test on zeroes.
63344         * tests/test-isnanf.c (main): Likewise.
63345         * tests/test-isnanl.h (main): Likewise.
63346
63347         Detect pseudo-denormals on x86 even when cross-compiling.
63348         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63349         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63350         invalid bit patterns that happen to satisfy ==.
63351
63352         Avoid link failures with separate libtests.a.
63353         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63354         last, to satisfy circular dependencies.
63355
63356 2007-12-11  Eric Blake  <ebb9@byu.net>
63357         and Bruno Haible  <bruno@clisp.org>
63358
63359         Fix OpenBSD 4.0 <float.h> handling of long double.
63360         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63361         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63362         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63363
63364 2007-12-11  Jim Meyering  <meyering@redhat.com>
63365
63366         * users.txt: Add libvirt.
63367
63368         Support versions of autoconf prior to 2.59c.
63369         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63370         if it is not already defined.
63371
63372 2007-12-09  Bruno Haible  <bruno@clisp.org>
63373
63374         Let 'gnulib-tool --import' collect sources needed for the tests in
63375         tests/ rather than in lib/.
63376         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63377         argument. If true, add rules to generate libtests.a, and put libtests.a
63378         into $(LDADD). Consider source files in subdirectories and set
63379         uses_subdirs.
63380         (func_emit_initmacro_start, func_emit_initmacro_end,
63381         func_emit_initmacro_done): Pass all arguments explicitly.
63382         (func_import): Determine two module lists main_modules,
63383         testsrelated_modules. Determine use_libtests. Determine two variables
63384         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63385         instead of just sed_transform_lib_file. Determine two variables
63386         main_files and testsrelated_files. Compute 'files' as the union of
63387         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63388         func_add_or_update. In the generated gnulib-comp.m4, collect the
63389         object files for tests/ in different variables than those for lib/.
63390         Substitute LIBTESTS_LIBDEPS.
63391         (func_create_testdir): Combine the uses_subdirs results from
63392         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63393
63394 2007-12-09  Bruno Haible  <bruno@clisp.org>
63395
63396         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63397         the build-aux directory.
63398
63399 2007-12-09  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63402         introduced on 2006-09-09.
63403
63404 2007-12-07  Jim Meyering  <meyering@redhat.com>
63405
63406         Let these macros work also with autoconf-2.59.
63407         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63408         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63409         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63410
63411 2007-12-06  Jim Meyering  <meyering@redhat.com>
63412
63413         Avoid a configure-time syntax error in gl_FUNC_ACL.
63414         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63415         function in each branch, before testing the cache variable.
63416
63417 2007-12-04  Eric Blake  <ebb9@byu.net>
63418
63419         Make scripts executable.
63420         * build-aux/config.guess: Add execute permissions.
63421         * build-aux/config.sub: Likewise.
63422         * build-aux/gendocs.sh: Likewise.
63423
63424         Fix frexp on mingw.
63425         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63426         cross-compiling.
63427         * doc/functions/frexp.texi (frexp): Document the bug.
63428
63429         Make cygwin fseeko check more reliable.
63430         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63431         version numbers, rather than unrelated feature check.
63432         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63433         * doc/functions/ftello.texi (ftello): Likewise.
63434         Reported by Bruno Haible.
63435
63436         * m4/strerror.m4: Bump version number.
63437
63438 2007-12-03  Bruno Haible  <bruno@clisp.org>
63439
63440         * doc/functions/mprotect.texi: Mention the mingw problem.
63441
63442 2007-12-03  Eric Blake  <ebb9@byu.net>
63443
63444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63445         REPLACE_STRERROR is initialized before this macro.
63446
63447 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63450         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63451         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63452         put -lsec in even for programs other than 'ls'.  This fixes a problem
63453         for gettext reported by Bruno Haible in
63454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63455         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63456         Add support for Solaris 10.  This isn't efficient, but should get the
63457         job done for now.
63458
63459 2007-12-03  James Youngman  <jay@gnu.org>
63460
63461         * doc/regexprops-generic.texi: change "an close-group" to "a
63462         close-group" and "illegal" to "not allowed".
63463
63464 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63465
63466         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63467         pr_byname.h. Needed for the rare case when the maintainer has done
63468         "make maintainer-clean" in the source directory and then attempts a
63469         build outside the source directory.
63470         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63471         scripts_byname.h.
63472
63473 2007-12-02  Martin Lambers <marlam@marlam.de>
63474             Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/getpagesize.h: Remove file.
63477         * lib/unistd.in.h: Include declaration of getpagesize here.
63478         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63479         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63480         HAVE_SYS_PARAM_H.
63481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63482         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63483         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63484         (Depends-on): Add unistd.
63485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63486         (Include): Use <unistd.h> instead of getpagesize.h.
63487         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63488         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63489         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63490         gl_GETPAGESIZE invocation, already handled by module dependency.
63491         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63492
63493 2007-12-02  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/strings-tests: New file.
63496         * tests/test-strings.c: New file.
63497
63498         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63499         * lib/strings.in.h: New file.
63500         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63501         * m4/strings_h.m4: New file.
63502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63503         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63504         * modules/strings: New file.
63505         * modules/string (Makefile.am): Update.
63506         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63507         Reported by Karl Berry.
63508
63509 2007-12-01  Eric Blake  <ebb9@byu.net>
63510
63511         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63512         accommodate fix in cygwin 1.5.25.
63513
63514 2007-12-01  Jim Meyering  <meyering@redhat.com>
63515
63516         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63517         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63518         that would inhibit utf8-optimization of a regexp containing line-
63519         or buffer-anchors, e.g., `^', `$'.
63520
63521 2007-11-30  Bruno Haible  <bruno@clisp.org>
63522
63523         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63524         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63525         glthread_recursive_lock_init.
63526         * lib/lock.c (glthread_recursive_lock_init)
63527         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63528         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63529
63530 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63531
63532         New function qset_acl, like set_acl but with syscall semantics.
63533         * lib/acl.h (qset_acl): New decl.
63534         * lib/acl.c (qset_acl): New function.
63535         (set_acl): Use new function.  Use more-consistent diagnostics.
63536
63537 2007-11-28  Jim Meyering  <meyering@redhat.com>
63538
63539         * modules/physmem (License): Change from GPL to LGPLv2+.
63540
63541 2007-11-26  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63544         'long double' type has excess precision.
63545         Reported by Jim Meyering in
63546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63547
63548 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63549
63550         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63551         Sync from <http://gnu.org/licenses>.
63552         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63553         with license text from same location.
63554         * doc/maintain.texi, doc/standards.texi:  Sync from
63555         <http://savannah.gnu.org/projects/gnustandards>.
63556
63557 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63558         and Jim Meyering  <meyering@redhat.com>
63559
63560         Adjust getdate' grammar to accept a slightly more regular language.
63561         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63562         Before, the former was rejected.
63563         * lib/getdate.y (digits_to_date_time): New function, factored
63564         out of ...
63565         (number): ...here.  Just call digits_to_date_time.
63566         (hybrid): New non-terminal to handle an <unsigned number,
63567         signed relative offset> sequence consistently.
63568
63569 2007-11-18  Jim Meyering  <meyering@redhat.com>
63570
63571         Pull my changes from coreutils:
63572         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63573         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63574         use of $gnulib_tool_option_extras, so that it's separated from the
63575         preceding argument.
63576
63577         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63578         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63579         parent destination directories before copying a file into place.
63580
63581 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63582
63583         bootstrap: work also with 4-argument variant of AC_INIT
63584         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63585
63586 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63587
63588         Port test-getaddrinfo to Solaris.
63589         Problem reported by Bruno Haible in
63590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63591         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63592         explanation of setting 'hints'.
63593         Don't reject an implementation merely because it returns EAI_SERVICE.
63594         (EAI_SERVICE): Define to 0 if not defined.
63595
63596 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         The license of gnu-make and posix-shell is now "GPLed build tool".
63599         * modules/gnu-make (License): Likewise.
63600         * modules/posix-shell (License): Likewise.
63601
63602         New module posix-shell, for determining a POSIX shell
63603         or perhaps something that is close enough to a POSIX shell.
63604         * m4/posix-shell.m4: New file.
63605         * modules/posix-shell: New file.
63606
63607         * MODULES.html.sh: Mention new module.
63608
63609         New module gnu-make, for determining whether we're using GNU Make.
63610         * m4/gnu-make.m4: New file.
63611         * modules/gnu-make: New file.
63612         * MODULES.html.sh: Mention new module.
63613
63614 2007-11-14  Jim Meyering  <meyering@redhat.com>
63615
63616         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63617         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63618         use this macro to create a function _definition_.
63619         Remove useless "#undef ARGMATCH_DIE".
63620
63621 2007-11-14  Bruno Haible  <bruno@clisp.org>
63622
63623         * lib/config.charset: Update for OpenBSD 4.1.
63624         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63625
63626 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         Document 64-bit #if problems in stdint.texi.
63629         * doc/headers/stdint.texi (stdint.h): Mention problems with
63630         64-bit-#if, and how to work around them.
63631
63632         Don't insist on 'long long int' support in the preprocessor.  It
63633         breaks too many things.  For example, PRIdMAX still uses a 'long
63634         long int' format with the latest Sun compiler, even though
63635         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63636         preprocessor problem.  This causes the latest coreutils to dump
63637         core on Solaris 10 sparc with the Sun C compiler.
63638         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63639         the troublesome expressions at configure-time, not at #if-time.
63640         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63641         preprocessor.
63642         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63643         compile-time C checks, done at 'configure'-time.
63644         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63645         * modules/inttypes (Makefile): Substitute the new symbols that
63646         gl_INTTYPES_H now generates.
63647         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63648
63649 2007-11-12  Bruno Haible  <bruno@clisp.org>
63650
63651         Tests for Unicode character classification functions.
63652
63653         * modules/unictype/bidicategory-byname-tests: New file.
63654         * modules/unictype/bidicategory-name-tests: New file.
63655         * modules/unictype/bidicategory-of-tests: New file.
63656         * modules/unictype/bidicategory-test-tests: New file.
63657         * modules/unictype/block-list-tests: New file.
63658         * modules/unictype/block-of-tests: New file.
63659         * modules/unictype/block-test-tests: New file.
63660         * modules/unictype/category-C-tests: New file.
63661         * modules/unictype/category-Cc-tests: New file.
63662         * modules/unictype/category-Cf-tests: New file.
63663         * modules/unictype/category-Cn-tests: New file.
63664         * modules/unictype/category-Co-tests: New file.
63665         * modules/unictype/category-Cs-tests: New file.
63666         * modules/unictype/category-L-tests: New file.
63667         * modules/unictype/category-Ll-tests: New file.
63668         * modules/unictype/category-Lm-tests: New file.
63669         * modules/unictype/category-Lo-tests: New file.
63670         * modules/unictype/category-Lt-tests: New file.
63671         * modules/unictype/category-Lu-tests: New file.
63672         * modules/unictype/category-M-tests: New file.
63673         * modules/unictype/category-Mc-tests: New file.
63674         * modules/unictype/category-Me-tests: New file.
63675         * modules/unictype/category-Mn-tests: New file.
63676         * modules/unictype/category-N-tests: New file.
63677         * modules/unictype/category-Nd-tests: New file.
63678         * modules/unictype/category-Nl-tests: New file.
63679         * modules/unictype/category-No-tests: New file.
63680         * modules/unictype/category-P-tests: New file.
63681         * modules/unictype/category-Pc-tests: New file.
63682         * modules/unictype/category-Pd-tests: New file.
63683         * modules/unictype/category-Pe-tests: New file.
63684         * modules/unictype/category-Pf-tests: New file.
63685         * modules/unictype/category-Pi-tests: New file.
63686         * modules/unictype/category-Po-tests: New file.
63687         * modules/unictype/category-Ps-tests: New file.
63688         * modules/unictype/category-S-tests: New file.
63689         * modules/unictype/category-Sc-tests: New file.
63690         * modules/unictype/category-Sk-tests: New file.
63691         * modules/unictype/category-Sm-tests: New file.
63692         * modules/unictype/category-So-tests: New file.
63693         * modules/unictype/category-Z-tests: New file.
63694         * modules/unictype/category-Zl-tests: New file.
63695         * modules/unictype/category-Zp-tests: New file.
63696         * modules/unictype/category-Zs-tests: New file.
63697         * modules/unictype/category-and-not-tests: New file.
63698         * modules/unictype/category-and-tests: New file.
63699         * modules/unictype/category-byname-tests: New file.
63700         * modules/unictype/category-name-tests: New file.
63701         * modules/unictype/category-none-tests: New file.
63702         * modules/unictype/category-of-tests: New file.
63703         * modules/unictype/category-or-tests: New file.
63704         * modules/unictype/category-test-withtable-tests: New file.
63705         * modules/unictype/combining-class-tests: New file.
63706         * modules/unictype/ctype-alnum-tests: New file.
63707         * modules/unictype/ctype-alpha-tests: New file.
63708         * modules/unictype/ctype-blank-tests: New file.
63709         * modules/unictype/ctype-cntrl-tests: New file.
63710         * modules/unictype/ctype-digit-tests: New file.
63711         * modules/unictype/ctype-graph-tests: New file.
63712         * modules/unictype/ctype-lower-tests: New file.
63713         * modules/unictype/ctype-print-tests: New file.
63714         * modules/unictype/ctype-punct-tests: New file.
63715         * modules/unictype/ctype-space-tests: New file.
63716         * modules/unictype/ctype-upper-tests: New file.
63717         * modules/unictype/ctype-xdigit-tests: New file.
63718         * modules/unictype/decimal-digit-tests: New file.
63719         * modules/unictype/digit-tests: New file.
63720         * modules/unictype/mirror-tests: New file.
63721         * modules/unictype/numeric-tests: New file.
63722         * modules/unictype/property-alphabetic-tests: New file.
63723         * modules/unictype/property-ascii-hex-digit-tests: New file.
63724         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63725         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63726         * modules/unictype/property-bidi-block-separator-tests: New file.
63727         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63728         * modules/unictype/property-bidi-common-separator-tests: New file.
63729         * modules/unictype/property-bidi-control-tests: New file.
63730         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63731         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63732         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63733         * modules/unictype/property-bidi-european-digit-tests: New file.
63734         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63735         * modules/unictype/property-bidi-left-to-right-tests: New file.
63736         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63737         * modules/unictype/property-bidi-other-neutral-tests: New file.
63738         * modules/unictype/property-bidi-pdf-tests: New file.
63739         * modules/unictype/property-bidi-segment-separator-tests: New file.
63740         * modules/unictype/property-bidi-whitespace-tests: New file.
63741         * modules/unictype/property-byname-tests: New file.
63742         * modules/unictype/property-combining-tests: New file.
63743         * modules/unictype/property-composite-tests: New file.
63744         * modules/unictype/property-currency-symbol-tests: New file.
63745         * modules/unictype/property-dash-tests: New file.
63746         * modules/unictype/property-decimal-digit-tests: New file.
63747         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63748         * modules/unictype/property-deprecated-tests: New file.
63749         * modules/unictype/property-diacritic-tests: New file.
63750         * modules/unictype/property-extender-tests: New file.
63751         * modules/unictype/property-format-control-tests: New file.
63752         * modules/unictype/property-grapheme-base-tests: New file.
63753         * modules/unictype/property-grapheme-extend-tests: New file.
63754         * modules/unictype/property-grapheme-link-tests: New file.
63755         * modules/unictype/property-hex-digit-tests: New file.
63756         * modules/unictype/property-hyphen-tests: New file.
63757         * modules/unictype/property-id-continue-tests: New file.
63758         * modules/unictype/property-id-start-tests: New file.
63759         * modules/unictype/property-ideographic-tests: New file.
63760         * modules/unictype/property-ids-binary-operator-tests: New file.
63761         * modules/unictype/property-ids-trinary-operator-tests: New file.
63762         * modules/unictype/property-ignorable-control-tests: New file.
63763         * modules/unictype/property-iso-control-tests: New file.
63764         * modules/unictype/property-join-control-tests: New file.
63765         * modules/unictype/property-left-of-pair-tests: New file.
63766         * modules/unictype/property-line-separator-tests: New file.
63767         * modules/unictype/property-logical-order-exception-tests: New file.
63768         * modules/unictype/property-lowercase-tests: New file.
63769         * modules/unictype/property-math-tests: New file.
63770         * modules/unictype/property-non-break-tests: New file.
63771         * modules/unictype/property-not-a-character-tests: New file.
63772         * modules/unictype/property-numeric-tests: New file.
63773         * modules/unictype/property-other-alphabetic-tests: New file.
63774         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63775         * modules/unictype/property-other-grapheme-extend-tests: New file.
63776         * modules/unictype/property-other-id-continue-tests: New file.
63777         * modules/unictype/property-other-id-start-tests: New file.
63778         * modules/unictype/property-other-lowercase-tests: New file.
63779         * modules/unictype/property-other-math-tests: New file.
63780         * modules/unictype/property-other-uppercase-tests: New file.
63781         * modules/unictype/property-paired-punctuation-tests: New file.
63782         * modules/unictype/property-paragraph-separator-tests: New file.
63783         * modules/unictype/property-pattern-syntax-tests: New file.
63784         * modules/unictype/property-pattern-white-space-tests: New file.
63785         * modules/unictype/property-private-use-tests: New file.
63786         * modules/unictype/property-punctuation-tests: New file.
63787         * modules/unictype/property-quotation-mark-tests: New file.
63788         * modules/unictype/property-radical-tests: New file.
63789         * modules/unictype/property-sentence-terminal-tests: New file.
63790         * modules/unictype/property-soft-dotted-tests: New file.
63791         * modules/unictype/property-space-tests: New file.
63792         * modules/unictype/property-terminal-punctuation-tests: New file.
63793         * modules/unictype/property-test-tests: New file.
63794         * modules/unictype/property-titlecase-tests: New file.
63795         * modules/unictype/property-unassigned-code-value-tests: New file.
63796         * modules/unictype/property-unified-ideograph-tests: New file.
63797         * modules/unictype/property-uppercase-tests: New file.
63798         * modules/unictype/property-variation-selector-tests: New file.
63799         * modules/unictype/property-white-space-tests: New file.
63800         * modules/unictype/property-xid-continue-tests: New file.
63801         * modules/unictype/property-xid-start-tests: New file.
63802         * modules/unictype/property-zero-width-tests: New file.
63803         * modules/unictype/scripts-tests: New file.
63804         * modules/unictype/syntax-c-ident-tests: New file.
63805         * modules/unictype/syntax-c-whitespace-tests: New file.
63806         * modules/unictype/syntax-java-ident-tests: New file.
63807         * modules/unictype/syntax-java-whitespace-tests: New file.
63808         * tests/unictype/test-bidi_byname.c: New file.
63809         * tests/unictype/test-bidi_name.c: New file.
63810         * tests/unictype/test-bidi_of.c: New file.
63811         * tests/unictype/test-bidi_test.c: New file.
63812         * tests/unictype/test-block_list.c: New file.
63813         * tests/unictype/test-block_of.c: New file.
63814         * tests/unictype/test-block_test.c: New file.
63815         * tests/unictype/test-categ_and.c: New file.
63816         * tests/unictype/test-categ_and_not.c: New file.
63817         * tests/unictype/test-categ_byname.c: New file.
63818         * tests/unictype/test-categ_name.c: New file.
63819         * tests/unictype/test-categ_none.c: New file.
63820         * tests/unictype/test-categ_of.c: New file.
63821         * tests/unictype/test-categ_or.c: New file.
63822         * tests/unictype/test-categ_test_withtable.c: New file.
63823         * tests/unictype/test-combining.c: New file.
63824         * tests/unictype/test-decdigit.c: New file.
63825         * tests/unictype/test-digit.c: New file.
63826         * tests/unictype/test-mirror.c: New file.
63827         * tests/unictype/test-numeric.c: New file.
63828         * tests/unictype/test-pr_byname.c: New file.
63829         * tests/unictype/test-pr_test.c: New file.
63830         * tests/unictype/test-predicate-part1.h: New file.
63831         * tests/unictype/test-predicate-part2.h: New file.
63832         * tests/unictype/test-scripts.c: New file.
63833         * tests/unictype/test-sy_c_ident.c: New file.
63834         * tests/unictype/test-sy_java_ident.c: New file.
63835
63836         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63837         for Unicode 5.0.0.
63838         * tests/unictype/test-categ_Cc.c: Likewise.
63839         * tests/unictype/test-categ_Cf.c: Likewise.
63840         * tests/unictype/test-categ_Cn.c: Likewise.
63841         * tests/unictype/test-categ_Co.c: Likewise.
63842         * tests/unictype/test-categ_Cs.c: Likewise.
63843         * tests/unictype/test-categ_L.c: Likewise.
63844         * tests/unictype/test-categ_Ll.c: Likewise.
63845         * tests/unictype/test-categ_Lm.c: Likewise.
63846         * tests/unictype/test-categ_Lo.c: Likewise.
63847         * tests/unictype/test-categ_Lt.c: Likewise.
63848         * tests/unictype/test-categ_Lu.c: Likewise.
63849         * tests/unictype/test-categ_M.c: Likewise.
63850         * tests/unictype/test-categ_Mc.c: Likewise.
63851         * tests/unictype/test-categ_Me.c: Likewise.
63852         * tests/unictype/test-categ_Mn.c: Likewise.
63853         * tests/unictype/test-categ_N.c: Likewise.
63854         * tests/unictype/test-categ_Nd.c: Likewise.
63855         * tests/unictype/test-categ_Nl.c: Likewise.
63856         * tests/unictype/test-categ_No.c: Likewise.
63857         * tests/unictype/test-categ_P.c: Likewise.
63858         * tests/unictype/test-categ_Pc.c: Likewise.
63859         * tests/unictype/test-categ_Pd.c: Likewise.
63860         * tests/unictype/test-categ_Pe.c: Likewise.
63861         * tests/unictype/test-categ_Pf.c: Likewise.
63862         * tests/unictype/test-categ_Pi.c: Likewise.
63863         * tests/unictype/test-categ_Po.c: Likewise.
63864         * tests/unictype/test-categ_Ps.c: Likewise.
63865         * tests/unictype/test-categ_S.c: Likewise.
63866         * tests/unictype/test-categ_Sc.c: Likewise.
63867         * tests/unictype/test-categ_Sk.c: Likewise.
63868         * tests/unictype/test-categ_Sm.c: Likewise.
63869         * tests/unictype/test-categ_So.c: Likewise.
63870         * tests/unictype/test-categ_Z.c: Likewise.
63871         * tests/unictype/test-categ_Zl.c: Likewise.
63872         * tests/unictype/test-categ_Zp.c: Likewise.
63873         * tests/unictype/test-categ_Zs.c: Likewise.
63874         * tests/unictype/test-ctype_alnum.c: Likewise.
63875         * tests/unictype/test-ctype_alpha.c: Likewise.
63876         * tests/unictype/test-ctype_blank.c: Likewise.
63877         * tests/unictype/test-ctype_cntrl.c: Likewise.
63878         * tests/unictype/test-ctype_digit.c: Likewise.
63879         * tests/unictype/test-ctype_graph.c: Likewise.
63880         * tests/unictype/test-ctype_lower.c: Likewise.
63881         * tests/unictype/test-ctype_print.c: Likewise.
63882         * tests/unictype/test-ctype_punct.c: Likewise.
63883         * tests/unictype/test-ctype_space.c: Likewise.
63884         * tests/unictype/test-ctype_upper.c: Likewise.
63885         * tests/unictype/test-ctype_xdigit.c: Likewise.
63886         * tests/unictype/test-decdigit.h: Likewise.
63887         * tests/unictype/test-digit.h: Likewise.
63888         * tests/unictype/test-numeric.h: Likewise.
63889         * tests/unictype/test-pr_alphabetic.c: Likewise.
63890         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63891         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63892         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63893         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63894         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63895         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63896         * tests/unictype/test-pr_bidi_control.c: Likewise.
63897         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63898         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63899         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63900         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63901         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63902         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63903         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63904         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63905         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63906         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63907         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63908         * tests/unictype/test-pr_combining.c: Likewise.
63909         * tests/unictype/test-pr_composite.c: Likewise.
63910         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63911         * tests/unictype/test-pr_dash.c: Likewise.
63912         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63913         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63914         * tests/unictype/test-pr_deprecated.c: Likewise.
63915         * tests/unictype/test-pr_diacritic.c: Likewise.
63916         * tests/unictype/test-pr_extender.c: Likewise.
63917         * tests/unictype/test-pr_format_control.c: Likewise.
63918         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63919         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63920         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63921         * tests/unictype/test-pr_hex_digit.c: Likewise.
63922         * tests/unictype/test-pr_hyphen.c: Likewise.
63923         * tests/unictype/test-pr_id_continue.c: Likewise.
63924         * tests/unictype/test-pr_id_start.c: Likewise.
63925         * tests/unictype/test-pr_ideographic.c: Likewise.
63926         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63927         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63928         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63929         * tests/unictype/test-pr_iso_control.c: Likewise.
63930         * tests/unictype/test-pr_join_control.c: Likewise.
63931         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63932         * tests/unictype/test-pr_line_separator.c: Likewise.
63933         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63934         * tests/unictype/test-pr_lowercase.c: Likewise.
63935         * tests/unictype/test-pr_math.c: Likewise.
63936         * tests/unictype/test-pr_non_break.c: Likewise.
63937         * tests/unictype/test-pr_not_a_character.c: Likewise.
63938         * tests/unictype/test-pr_numeric.c: Likewise.
63939         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63940         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63941         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63942         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63943         * tests/unictype/test-pr_other_id_start.c: Likewise.
63944         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63945         * tests/unictype/test-pr_other_math.c: Likewise.
63946         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63947         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63948         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63949         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63950         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63951         * tests/unictype/test-pr_private_use.c: Likewise.
63952         * tests/unictype/test-pr_punctuation.c: Likewise.
63953         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63954         * tests/unictype/test-pr_radical.c: Likewise.
63955         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63956         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63957         * tests/unictype/test-pr_space.c: Likewise.
63958         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63959         * tests/unictype/test-pr_titlecase.c: Likewise.
63960         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63961         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63962         * tests/unictype/test-pr_uppercase.c: Likewise.
63963         * tests/unictype/test-pr_variation_selector.c: Likewise.
63964         * tests/unictype/test-pr_white_space.c: Likewise.
63965         * tests/unictype/test-pr_xid_continue.c: Likewise.
63966         * tests/unictype/test-pr_xid_start.c: Likewise.
63967         * tests/unictype/test-pr_zero_width.c: Likewise.
63968         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63969         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63970
63971 2007-11-12  Bruno Haible  <bruno@clisp.org>
63972
63973         Unicode character classification functions.
63974         * lib/unictype.h: New file.
63975         * modules/unictype/base: New file.
63976         * modules/unictype/category-L: New file.
63977         * modules/unictype/category-Lu: New file.
63978         * modules/unictype/category-Ll: New file.
63979         * modules/unictype/category-Lt: New file.
63980         * modules/unictype/category-Lm: New file.
63981         * modules/unictype/category-Lo: New file.
63982         * modules/unictype/category-M: New file.
63983         * modules/unictype/category-Mn: New file.
63984         * modules/unictype/category-Mc: New file.
63985         * modules/unictype/category-Me: New file.
63986         * modules/unictype/category-N: New file.
63987         * modules/unictype/category-Nd: New file.
63988         * modules/unictype/category-Nl: New file.
63989         * modules/unictype/category-No: New file.
63990         * modules/unictype/category-P: New file.
63991         * modules/unictype/category-Pc: New file.
63992         * modules/unictype/category-Pd: New file.
63993         * modules/unictype/category-Ps: New file.
63994         * modules/unictype/category-Pe: New file.
63995         * modules/unictype/category-Pi: New file.
63996         * modules/unictype/category-Pf: New file.
63997         * modules/unictype/category-Po: New file.
63998         * modules/unictype/category-S: New file.
63999         * modules/unictype/category-Sm: New file.
64000         * modules/unictype/category-Sc: New file.
64001         * modules/unictype/category-Sk: New file.
64002         * modules/unictype/category-So: New file.
64003         * modules/unictype/category-Z: New file.
64004         * modules/unictype/category-Zs: New file.
64005         * modules/unictype/category-Zl: New file.
64006         * modules/unictype/category-Zp: New file.
64007         * modules/unictype/category-C: New file.
64008         * modules/unictype/category-Cc: New file.
64009         * modules/unictype/category-Cf: New file.
64010         * modules/unictype/category-Cs: New file.
64011         * modules/unictype/category-Co: New file.
64012         * modules/unictype/category-Cn: New file.
64013         * modules/unictype/category-or: New file.
64014         * modules/unictype/category-of: New file.
64015         * modules/unictype/category-test: New file.
64016         * modules/unictype/category-test-withtable: New file.
64017         * modules/unictype/category-byname: New file.
64018         * modules/unictype/category-none: New file.
64019         * modules/unictype/category-and: New file.
64020         * modules/unictype/category-and-not: New file.
64021         * modules/unictype/category-name: New file.
64022         * modules/unictype/combining-class: New file.
64023         * modules/unictype/category-all: New file.
64024         * modules/unictype/bidicategory-all: New file.
64025         * modules/unictype/bidicategory-byname: New file.
64026         * modules/unictype/bidicategory-name: New file.
64027         * modules/unictype/bidicategory-of: New file.
64028         * modules/unictype/bidicategory-test: New file.
64029         * modules/unictype/decimal-digit: New file.
64030         * modules/unictype/digit: New file.
64031         * modules/unictype/numeric: New file.
64032         * modules/unictype/mirror: New file.
64033         * modules/unictype/property-white-space: New file.
64034         * modules/unictype/property-alphabetic: New file.
64035         * modules/unictype/property-other-alphabetic: New file.
64036         * modules/unictype/property-not-a-character: New file.
64037         * modules/unictype/property-default-ignorable-code-point: New file.
64038         * modules/unictype/property-other-default-ignorable-code-point: New
64039         file.
64040         * modules/unictype/property-deprecated: New file.
64041         * modules/unictype/property-logical-order-exception: New file.
64042         * modules/unictype/property-variation-selector: New file.
64043         * modules/unictype/property-private-use: New file.
64044         * modules/unictype/property-unassigned-code-value: New file.
64045         * modules/unictype/property-uppercase: New file.
64046         * modules/unictype/property-other-uppercase: New file.
64047         * modules/unictype/property-lowercase: New file.
64048         * modules/unictype/property-other-lowercase: New file.
64049         * modules/unictype/property-titlecase: New file.
64050         * modules/unictype/property-soft-dotted: New file.
64051         * modules/unictype/property-id-start: New file.
64052         * modules/unictype/property-other-id-start: New file.
64053         * modules/unictype/property-id-continue: New file.
64054         * modules/unictype/property-other-id-continue: New file.
64055         * modules/unictype/property-xid-start: New file.
64056         * modules/unictype/property-xid-continue: New file.
64057         * modules/unictype/property-pattern-white-space: New file.
64058         * modules/unictype/property-pattern-syntax: New file.
64059         * modules/unictype/property-join-control: New file.
64060         * modules/unictype/property-grapheme-base: New file.
64061         * modules/unictype/property-grapheme-extend: New file.
64062         * modules/unictype/property-other-grapheme-extend: New file.
64063         * modules/unictype/property-grapheme-link: New file.
64064         * modules/unictype/property-bidi-control: New file.
64065         * modules/unictype/property-bidi-left-to-right: New file.
64066         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64067         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64068         * modules/unictype/property-bidi-european-digit: New file.
64069         * modules/unictype/property-bidi-eur-num-separator: New file.
64070         * modules/unictype/property-bidi-eur-num-terminator: New file.
64071         * modules/unictype/property-bidi-arabic-digit: New file.
64072         * modules/unictype/property-bidi-common-separator: New file.
64073         * modules/unictype/property-bidi-block-separator: New file.
64074         * modules/unictype/property-bidi-segment-separator: New file.
64075         * modules/unictype/property-bidi-whitespace: New file.
64076         * modules/unictype/property-bidi-non-spacing-mark: New file.
64077         * modules/unictype/property-bidi-boundary-neutral: New file.
64078         * modules/unictype/property-bidi-pdf: New file.
64079         * modules/unictype/property-bidi-embedding-or-override: New file.
64080         * modules/unictype/property-bidi-other-neutral: New file.
64081         * modules/unictype/property-hex-digit: New file.
64082         * modules/unictype/property-ascii-hex-digit: New file.
64083         * modules/unictype/property-ideographic: New file.
64084         * modules/unictype/property-unified-ideograph: New file.
64085         * modules/unictype/property-radical: New file.
64086         * modules/unictype/property-ids-binary-operator: New file.
64087         * modules/unictype/property-ids-trinary-operator: New file.
64088         * modules/unictype/property-zero-width: New file.
64089         * modules/unictype/property-space: New file.
64090         * modules/unictype/property-non-break: New file.
64091         * modules/unictype/property-iso-control: New file.
64092         * modules/unictype/property-format-control: New file.
64093         * modules/unictype/property-dash: New file.
64094         * modules/unictype/property-hyphen: New file.
64095         * modules/unictype/property-punctuation: New file.
64096         * modules/unictype/property-line-separator: New file.
64097         * modules/unictype/property-paragraph-separator: New file.
64098         * modules/unictype/property-quotation-mark: New file.
64099         * modules/unictype/property-sentence-terminal: New file.
64100         * modules/unictype/property-terminal-punctuation: New file.
64101         * modules/unictype/property-currency-symbol: New file.
64102         * modules/unictype/property-math: New file.
64103         * modules/unictype/property-other-math: New file.
64104         * modules/unictype/property-paired-punctuation: New file.
64105         * modules/unictype/property-left-of-pair: New file.
64106         * modules/unictype/property-combining: New file.
64107         * modules/unictype/property-composite: New file.
64108         * modules/unictype/property-decimal-digit: New file.
64109         * modules/unictype/property-numeric: New file.
64110         * modules/unictype/property-diacritic: New file.
64111         * modules/unictype/property-extender: New file.
64112         * modules/unictype/property-ignorable-control: New file.
64113         * modules/unictype/property-test: New file.
64114         * modules/unictype/property-byname: New file.
64115         * modules/unictype/property-all: New file.
64116         * modules/unictype/scripts: New file.
64117         * modules/unictype/scripts-all: New file.
64118         * modules/unictype/block-of: New file.
64119         * modules/unictype/block-test: New file.
64120         * modules/unictype/block-list: New file.
64121         * modules/unictype/block-all: New file.
64122         * modules/unictype/syntax-c-whitespace: New file.
64123         * modules/unictype/syntax-java-whitespace: New file.
64124         * modules/unictype/syntax-c-ident: New file.
64125         * modules/unictype/syntax-java-ident: New file.
64126         * modules/unictype/ctype-alnum: New file.
64127         * modules/unictype/ctype-alpha: New file.
64128         * modules/unictype/ctype-cntrl: New file.
64129         * modules/unictype/ctype-digit: New file.
64130         * modules/unictype/ctype-graph: New file.
64131         * modules/unictype/ctype-lower: New file.
64132         * modules/unictype/ctype-print: New file.
64133         * modules/unictype/ctype-punct: New file.
64134         * modules/unictype/ctype-space: New file.
64135         * modules/unictype/ctype-upper: New file.
64136         * modules/unictype/ctype-xdigit: New file.
64137         * modules/unictype/ctype-blank: New file.
64138         * lib/unictype/bidi_byname.c: New file.
64139         * lib/unictype/bidi_name.c: New file.
64140         * lib/unictype/bidi_of.c: New file.
64141         * lib/unictype/bidi_test.c: New file.
64142         * lib/unictype/bitmap.h: New file.
64143         * lib/unictype/block_test.c: New file.
64144         * lib/unictype/blocks.c: New file.
64145         * lib/unictype/categ_C.c: New file.
64146         * lib/unictype/categ_Cc.c: New file.
64147         * lib/unictype/categ_Cf.c: New file.
64148         * lib/unictype/categ_Cn.c: New file.
64149         * lib/unictype/categ_Co.c: New file.
64150         * lib/unictype/categ_Cs.c: New file.
64151         * lib/unictype/categ_L.c: New file.
64152         * lib/unictype/categ_Ll.c: New file.
64153         * lib/unictype/categ_Lm.c: New file.
64154         * lib/unictype/categ_Lo.c: New file.
64155         * lib/unictype/categ_Lt.c: New file.
64156         * lib/unictype/categ_Lu.c: New file.
64157         * lib/unictype/categ_M.c: New file.
64158         * lib/unictype/categ_Mc.c: New file.
64159         * lib/unictype/categ_Me.c: New file.
64160         * lib/unictype/categ_Mn.c: New file.
64161         * lib/unictype/categ_N.c: New file.
64162         * lib/unictype/categ_Nd.c: New file.
64163         * lib/unictype/categ_Nl.c: New file.
64164         * lib/unictype/categ_No.c: New file.
64165         * lib/unictype/categ_P.c: New file.
64166         * lib/unictype/categ_Pc.c: New file.
64167         * lib/unictype/categ_Pd.c: New file.
64168         * lib/unictype/categ_Pe.c: New file.
64169         * lib/unictype/categ_Pf.c: New file.
64170         * lib/unictype/categ_Pi.c: New file.
64171         * lib/unictype/categ_Po.c: New file.
64172         * lib/unictype/categ_Ps.c: New file.
64173         * lib/unictype/categ_S.c: New file.
64174         * lib/unictype/categ_Sc.c: New file.
64175         * lib/unictype/categ_Sk.c: New file.
64176         * lib/unictype/categ_Sm.c: New file.
64177         * lib/unictype/categ_So.c: New file.
64178         * lib/unictype/categ_Z.c: New file.
64179         * lib/unictype/categ_Zl.c: New file.
64180         * lib/unictype/categ_Zp.c: New file.
64181         * lib/unictype/categ_Zs.c: New file.
64182         * lib/unictype/categ_and.c: New file.
64183         * lib/unictype/categ_and_not.c: New file.
64184         * lib/unictype/categ_byname.c: New file.
64185         * lib/unictype/categ_name.c: New file.
64186         * lib/unictype/categ_none.c: New file.
64187         * lib/unictype/categ_of.c: New file.
64188         * lib/unictype/categ_or.c: New file.
64189         * lib/unictype/categ_test.c: New file.
64190         * lib/unictype/combining.c: New file.
64191         * lib/unictype/ctype_alnum.c: New file.
64192         * lib/unictype/ctype_alpha.c: New file.
64193         * lib/unictype/ctype_blank.c: New file.
64194         * lib/unictype/ctype_cntrl.c: New file.
64195         * lib/unictype/ctype_digit.c: New file.
64196         * lib/unictype/ctype_graph.c: New file.
64197         * lib/unictype/ctype_lower.c: New file.
64198         * lib/unictype/ctype_print.c: New file.
64199         * lib/unictype/ctype_punct.c: New file.
64200         * lib/unictype/ctype_space.c: New file.
64201         * lib/unictype/ctype_upper.c: New file.
64202         * lib/unictype/ctype_xdigit.c: New file.
64203         * lib/unictype/decdigit.c: New file.
64204         * lib/unictype/digit.c: New file.
64205         * lib/unictype/identsyntaxmap.h: New file.
64206         * lib/unictype/mirror.c: New file.
64207         * lib/unictype/numeric.c: New file.
64208         * lib/unictype/pr_alphabetic.c: New file.
64209         * lib/unictype/pr_ascii_hex_digit.c: New file.
64210         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64211         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64212         * lib/unictype/pr_bidi_block_separator.c: New file.
64213         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64214         * lib/unictype/pr_bidi_common_separator.c: New file.
64215         * lib/unictype/pr_bidi_control.c: New file.
64216         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64217         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64218         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64219         * lib/unictype/pr_bidi_european_digit.c: New file.
64220         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64221         * lib/unictype/pr_bidi_left_to_right.c: New file.
64222         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64223         * lib/unictype/pr_bidi_other_neutral.c: New file.
64224         * lib/unictype/pr_bidi_pdf.c: New file.
64225         * lib/unictype/pr_bidi_segment_separator.c: New file.
64226         * lib/unictype/pr_bidi_whitespace.c: New file.
64227         * lib/unictype/pr_byname.c: New file.
64228         * lib/unictype/pr_byname.gperf: New file.
64229         * lib/unictype/pr_combining.c: New file.
64230         * lib/unictype/pr_composite.c: New file.
64231         * lib/unictype/pr_currency_symbol.c: New file.
64232         * lib/unictype/pr_dash.c: New file.
64233         * lib/unictype/pr_decimal_digit.c: New file.
64234         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64235         * lib/unictype/pr_deprecated.c: New file.
64236         * lib/unictype/pr_diacritic.c: New file.
64237         * lib/unictype/pr_extender.c: New file.
64238         * lib/unictype/pr_format_control.c: New file.
64239         * lib/unictype/pr_grapheme_base.c: New file.
64240         * lib/unictype/pr_grapheme_extend.c: New file.
64241         * lib/unictype/pr_grapheme_link.c: New file.
64242         * lib/unictype/pr_hex_digit.c: New file.
64243         * lib/unictype/pr_hyphen.c: New file.
64244         * lib/unictype/pr_id_continue.c: New file.
64245         * lib/unictype/pr_id_start.c: New file.
64246         * lib/unictype/pr_ideographic.c: New file.
64247         * lib/unictype/pr_ids_binary_operator.c: New file.
64248         * lib/unictype/pr_ids_trinary_operator.c: New file.
64249         * lib/unictype/pr_ignorable_control.c: New file.
64250         * lib/unictype/pr_iso_control.c: New file.
64251         * lib/unictype/pr_join_control.c: New file.
64252         * lib/unictype/pr_left_of_pair.c: New file.
64253         * lib/unictype/pr_line_separator.c: New file.
64254         * lib/unictype/pr_logical_order_exception.c: New file.
64255         * lib/unictype/pr_lowercase.c: New file.
64256         * lib/unictype/pr_math.c: New file.
64257         * lib/unictype/pr_non_break.c: New file.
64258         * lib/unictype/pr_not_a_character.c: New file.
64259         * lib/unictype/pr_numeric.c: New file.
64260         * lib/unictype/pr_other_alphabetic.c: New file.
64261         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64262         * lib/unictype/pr_other_grapheme_extend.c: New file.
64263         * lib/unictype/pr_other_id_continue.c: New file.
64264         * lib/unictype/pr_other_id_start.c: New file.
64265         * lib/unictype/pr_other_lowercase.c: New file.
64266         * lib/unictype/pr_other_math.c: New file.
64267         * lib/unictype/pr_other_uppercase.c: New file.
64268         * lib/unictype/pr_paired_punctuation.c: New file.
64269         * lib/unictype/pr_paragraph_separator.c: New file.
64270         * lib/unictype/pr_pattern_syntax.c: New file.
64271         * lib/unictype/pr_pattern_white_space.c: New file.
64272         * lib/unictype/pr_private_use.c: New file.
64273         * lib/unictype/pr_punctuation.c: New file.
64274         * lib/unictype/pr_quotation_mark.c: New file.
64275         * lib/unictype/pr_radical.c: New file.
64276         * lib/unictype/pr_sentence_terminal.c: New file.
64277         * lib/unictype/pr_soft_dotted.c: New file.
64278         * lib/unictype/pr_space.c: New file.
64279         * lib/unictype/pr_terminal_punctuation.c: New file.
64280         * lib/unictype/pr_test.c: New file.
64281         * lib/unictype/pr_titlecase.c: New file.
64282         * lib/unictype/pr_unassigned_code_value.c: New file.
64283         * lib/unictype/pr_unified_ideograph.c: New file.
64284         * lib/unictype/pr_uppercase.c: New file.
64285         * lib/unictype/pr_variation_selector.c: New file.
64286         * lib/unictype/pr_white_space.c: New file.
64287         * lib/unictype/pr_xid_continue.c: New file.
64288         * lib/unictype/pr_xid_start.c: New file.
64289         * lib/unictype/pr_zero_width.c: New file.
64290         * lib/unictype/scripts.c: New file.
64291         * lib/unictype/sy_c_ident.c: New file.
64292         * lib/unictype/sy_c_whitespace.c: New file.
64293         * lib/unictype/sy_java_ident.c: New file.
64294         * lib/unictype/sy_java_whitespace.c: New file.
64295
64296         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64297         Unicode 5.0.0.
64298         * lib/unictype/blocks.h: Likewise.
64299         * lib/unictype/categ_C.h: Likewise.
64300         * lib/unictype/categ_Cc.h: Likewise.
64301         * lib/unictype/categ_Cf.h: Likewise.
64302         * lib/unictype/categ_Cn.h: Likewise.
64303         * lib/unictype/categ_Co.h: Likewise.
64304         * lib/unictype/categ_Cs.h: Likewise.
64305         * lib/unictype/categ_L.h: Likewise.
64306         * lib/unictype/categ_Ll.h: Likewise.
64307         * lib/unictype/categ_Lm.h: Likewise.
64308         * lib/unictype/categ_Lo.h: Likewise.
64309         * lib/unictype/categ_Lt.h: Likewise.
64310         * lib/unictype/categ_Lu.h: Likewise.
64311         * lib/unictype/categ_M.h: Likewise.
64312         * lib/unictype/categ_Mc.h: Likewise.
64313         * lib/unictype/categ_Me.h: Likewise.
64314         * lib/unictype/categ_Mn.h: Likewise.
64315         * lib/unictype/categ_N.h: Likewise.
64316         * lib/unictype/categ_Nd.h: Likewise.
64317         * lib/unictype/categ_Nl.h: Likewise.
64318         * lib/unictype/categ_No.h: Likewise.
64319         * lib/unictype/categ_P.h: Likewise.
64320         * lib/unictype/categ_Pc.h: Likewise.
64321         * lib/unictype/categ_Pd.h: Likewise.
64322         * lib/unictype/categ_Pe.h: Likewise.
64323         * lib/unictype/categ_Pf.h: Likewise.
64324         * lib/unictype/categ_Pi.h: Likewise.
64325         * lib/unictype/categ_Po.h: Likewise.
64326         * lib/unictype/categ_Ps.h: Likewise.
64327         * lib/unictype/categ_S.h: Likewise.
64328         * lib/unictype/categ_Sc.h: Likewise.
64329         * lib/unictype/categ_Sk.h: Likewise.
64330         * lib/unictype/categ_Sm.h: Likewise.
64331         * lib/unictype/categ_So.h: Likewise.
64332         * lib/unictype/categ_Z.h: Likewise.
64333         * lib/unictype/categ_Zl.h: Likewise.
64334         * lib/unictype/categ_Zp.h: Likewise.
64335         * lib/unictype/categ_Zs.h: Likewise.
64336         * lib/unictype/categ_of.h: Likewise.
64337         * lib/unictype/combining.h: Likewise.
64338         * lib/unictype/ctype_alnum.h: Likewise.
64339         * lib/unictype/ctype_alpha.h: Likewise.
64340         * lib/unictype/ctype_blank.h: Likewise.
64341         * lib/unictype/ctype_cntrl.h: Likewise.
64342         * lib/unictype/ctype_digit.h: Likewise.
64343         * lib/unictype/ctype_graph.h: Likewise.
64344         * lib/unictype/ctype_lower.h: Likewise.
64345         * lib/unictype/ctype_print.h: Likewise.
64346         * lib/unictype/ctype_punct.h: Likewise.
64347         * lib/unictype/ctype_space.h: Likewise.
64348         * lib/unictype/ctype_upper.h: Likewise.
64349         * lib/unictype/ctype_xdigit.h: Likewise.
64350         * lib/unictype/decdigit.h: Likewise.
64351         * lib/unictype/digit.h: Likewise.
64352         * lib/unictype/mirror.h: Likewise.
64353         * lib/unictype/numeric.h: Likewise.
64354         * lib/unictype/pr_alphabetic.h: Likewise.
64355         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64356         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64357         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64358         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64359         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64360         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64361         * lib/unictype/pr_bidi_control.h: Likewise.
64362         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64363         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64364         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64365         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64366         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64367         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64368         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64369         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64370         * lib/unictype/pr_bidi_pdf.h: Likewise.
64371         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64372         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64373         * lib/unictype/pr_combining.h: Likewise.
64374         * lib/unictype/pr_composite.h: Likewise.
64375         * lib/unictype/pr_currency_symbol.h: Likewise.
64376         * lib/unictype/pr_dash.h: Likewise.
64377         * lib/unictype/pr_decimal_digit.h: Likewise.
64378         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64379         * lib/unictype/pr_deprecated.h: Likewise.
64380         * lib/unictype/pr_diacritic.h: Likewise.
64381         * lib/unictype/pr_extender.h: Likewise.
64382         * lib/unictype/pr_format_control.h: Likewise.
64383         * lib/unictype/pr_grapheme_base.h: Likewise.
64384         * lib/unictype/pr_grapheme_extend.h: Likewise.
64385         * lib/unictype/pr_grapheme_link.h: Likewise.
64386         * lib/unictype/pr_hex_digit.h: Likewise.
64387         * lib/unictype/pr_hyphen.h: Likewise.
64388         * lib/unictype/pr_id_continue.h: Likewise.
64389         * lib/unictype/pr_id_start.h: Likewise.
64390         * lib/unictype/pr_ideographic.h: Likewise.
64391         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64392         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64393         * lib/unictype/pr_ignorable_control.h: Likewise.
64394         * lib/unictype/pr_iso_control.h: Likewise.
64395         * lib/unictype/pr_join_control.h: Likewise.
64396         * lib/unictype/pr_left_of_pair.h: Likewise.
64397         * lib/unictype/pr_line_separator.h: Likewise.
64398         * lib/unictype/pr_logical_order_exception.h: Likewise.
64399         * lib/unictype/pr_lowercase.h: Likewise.
64400         * lib/unictype/pr_math.h: Likewise.
64401         * lib/unictype/pr_non_break.h: Likewise.
64402         * lib/unictype/pr_not_a_character.h: Likewise.
64403         * lib/unictype/pr_numeric.h: Likewise.
64404         * lib/unictype/pr_other_alphabetic.h: Likewise.
64405         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64406         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64407         * lib/unictype/pr_other_id_continue.h: Likewise.
64408         * lib/unictype/pr_other_id_start.h: Likewise.
64409         * lib/unictype/pr_other_lowercase.h: Likewise.
64410         * lib/unictype/pr_other_math.h: Likewise.
64411         * lib/unictype/pr_other_uppercase.h: Likewise.
64412         * lib/unictype/pr_paired_punctuation.h: Likewise.
64413         * lib/unictype/pr_paragraph_separator.h: Likewise.
64414         * lib/unictype/pr_pattern_syntax.h: Likewise.
64415         * lib/unictype/pr_pattern_white_space.h: Likewise.
64416         * lib/unictype/pr_private_use.h: Likewise.
64417         * lib/unictype/pr_punctuation.h: Likewise.
64418         * lib/unictype/pr_quotation_mark.h: Likewise.
64419         * lib/unictype/pr_radical.h: Likewise.
64420         * lib/unictype/pr_sentence_terminal.h: Likewise.
64421         * lib/unictype/pr_soft_dotted.h: Likewise.
64422         * lib/unictype/pr_space.h: Likewise.
64423         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64424         * lib/unictype/pr_titlecase.h: Likewise.
64425         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64426         * lib/unictype/pr_unified_ideograph.h: Likewise.
64427         * lib/unictype/pr_uppercase.h: Likewise.
64428         * lib/unictype/pr_variation_selector.h: Likewise.
64429         * lib/unictype/pr_white_space.h: Likewise.
64430         * lib/unictype/pr_xid_continue.h: Likewise.
64431         * lib/unictype/pr_xid_start.h: Likewise.
64432         * lib/unictype/pr_zero_width.h: Likewise.
64433         * lib/unictype/scripts.h: Likewise.
64434         * lib/unictype/scripts_byname.gperf: Likewise.
64435         * lib/unictype/sy_c_ident.h: Likewise.
64436         * lib/unictype/sy_c_whitespace.h: Likewise.
64437         * lib/unictype/sy_java_ident.h: Likewise.
64438         * lib/unictype/sy_java_whitespace.h: Likewise.
64439
64440         * lib/unictype/Makefile: New file.
64441         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64442         glibc.
64443         * lib/unictype/3level.h: New file, copied from glibc.
64444         * lib/unictype/3levelbit.h: New file.
64445
64446 2007-11-11  Bruno Haible  <bruno@clisp.org>
64447
64448         * modules/gperf: New file.
64449         * modules/iconv_open (Depends-on): Add it.
64450         (Makefile.am): Remove the GPERF definition.
64451
64452 2007-11-11  Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64455         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64456
64457 2007-11-11  Bruno Haible  <bruno@clisp.org>
64458
64459         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64460         (usage): Remove function.
64461
64462 2007-11-11  Bruno Haible  <bruno@clisp.org>
64463
64464         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64465         gl_FUNC_CEILF_LIBS.
64466         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64467         gl_FUNC_CEIL_LIBS.
64468         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64469         gl_FUNC_CEILL_LIBS.
64470         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64471         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64472         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64473
64474 2007-11-11  Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64477         roundf were declared but do not exist on functions.
64478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64479         roundl were declared but do not exist on functions.
64480         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64481         HAVE_FLOORL_AND_CEILL, respectively.
64482         Needed for Sun C on Solaris 10.
64483
64484 2007-11-11  Bruno Haible  <bruno@clisp.org>
64485
64486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64487         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64488         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64489         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64490         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64491         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64492         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64493         HAVE_DECL_ROUNDF.
64494         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64495         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64497         of HAVE_DECL_ROUND*.
64498         * modules/math (Makefile.am): Update.
64499
64500 2007-11-10  Bruno Haible  <bruno@clisp.org>
64501
64502         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64503         ptrdiff_t as m4/intl.m4.
64504
64505 2007-11-10  Jim Meyering  <meyering@redhat.com>
64506
64507         Avoid link failure for the argmatch test.
64508         * tests/test-argmatch.c (usage): Define function to avoid a link
64509         failure: argmatch_die requires a usage function.
64510
64511 2007-11-09  Bruno Haible  <bruno@clisp.org>
64512
64513         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64514         * doc/functions/vsnprintf.texi: Likewise.
64515         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64516         with a size argument < 2.
64517
64518 2007-11-09  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64521         buffer. Fixes an inefficiency introduced on 2007-11-03.
64522
64523 2007-11-09  Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64526         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64527
64528 2007-11-08  Jim Meyering  <meyering@redhat.com>
64529
64530         Change cache variable name prefix "jm_" to "gl_" everywhere.
64531         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64532         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64533         * m4/uptime.m4: s/gl_/jm_/
64534
64535 2007-11-07  Bruno Haible  <bruno@clisp.org>
64536
64537         Update to GNU gettext 0.17.
64538         * m4/intl.m4: Update to GNU gettext 0.17.
64539         * m4/po.m4: Likewise.
64540         * modules/gettext (Files): Remove m4/ulonglong.m4.
64541         (configure.ac): Require gettext infrastructure from version 0.17.
64542
64543 2007-11-06  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64546         symbolic values are not defined in a public header.
64547         * lib/freadable.c (freadable) [QNX]: Likewise.
64548         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64549         * lib/freading.c (freading) [QNX]: Likewise.
64550         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64551         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64552         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64553         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64554         Reported by Alain Magloire.
64555
64556         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64557
64558 2007-11-05  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64561         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64562         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64563         Reported by Eric Blake.
64564
64565 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64566             Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64569         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64570         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64571         (malloc): Undefine also before including <stdlib.h>.
64572         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64573         Needed on OSF/1 4.0.
64574
64575 2007-11-05  Jim Meyering  <meyering@redhat.com>
64576
64577         git-version-gen: sync from coreutils.
64578         * build-aux/git-version-gen: Add comments.
64579         Change the first '-' to '.' in the snapshot version string,
64580         e.g., 6.9-377-08144 -> 6.9.377-08144
64581         Remove first parameter.
64582         Don't declare a version "-dirty" merely because a time
64583         stamp has changed.
64584
64585 2007-11-04  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/lock.h: Protect all macro definitions containing an 'if'
64588         statement through a "do { ... } while (0)".
64589         * lib/tls.h: Likewise.
64590
64591 2007-11-04  Bruno Haible  <bruno@clisp.org>
64592
64593         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64594
64595 2007-11-04  Bruno Haible  <bruno@clisp.org>
64596
64597         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64598         * modules/fprintf-posix (Depends-on): Add nocrash.
64599         * modules/snprintf-posix (Depends-on): Likewise.
64600         * modules/sprintf-posix (Depends-on): Likewise.
64601         * modules/vasnprintf-posix (Depends-on): Likewise.
64602         * modules/vasprintf-posix (Depends-on): Likewise.
64603         * modules/vfprintf-posix (Depends-on): Likewise.
64604         * modules/vsnprintf-posix (Depends-on): Likewise.
64605         * modules/vsprintf-posix (Depends-on): Likewise.
64606         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64607         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64608         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64609         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64610         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64611         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64612         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64613
64614 2007-11-04  Bruno Haible  <bruno@clisp.org>
64615
64616         * modules/nocrash: New file.
64617         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64618         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64619
64620 2007-11-04  Bruno Haible  <bruno@clisp.org>
64621
64622         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64623         precision handling.
64624         * tests/test-vasprintf-posix.c (test_function): Likewise.
64625         * tests/test-snprintf-posix.h (test_function): Likewise.
64626         * tests/test-sprintf-posix.h (test_function): Likewise.
64627
64628         Fix *printf behaviour for large precisions on mingw and BeOS.
64629         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64630         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64632         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64634         gl_PRINTF_PRECISION and test its result. Invoke
64635         gl_PREREQ_VASNPRINTF_PRECISION.
64636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64643         * doc/functions/fprintf.texi: Update.
64644         * doc/functions/printf.texi: Update.
64645         * doc/functions/snprintf.texi: Update.
64646         * doc/functions/sprintf.texi: Update.
64647         * doc/functions/vfprintf.texi: Update.
64648         * doc/functions/vprintf.texi: Update.
64649         * doc/functions/vsnprintf.texi: Update.
64650         * doc/functions/vsprintf.texi: Update.
64651
64652 2007-11-04  Bruno Haible  <bruno@clisp.org>
64653
64654         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64655
64656 2007-11-04  Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64659         Reported by Sylvain Beucler <beuc@gnu.org>.
64660
64661 2007-11-03  Bruno Haible  <bruno@clisp.org>
64662
64663         * tests/test-fprintf-posix2.sh: New file.
64664         * tests/test-fprintf-posix2.c: New file.
64665         * modules/fprintf-posix-tests (Files): Add them.
64666         (TESTS): Add test-fprintf-posix2.sh.
64667         (configure.ac): Check for getrlimit and setrlimit.
64668         (check_PROGRAMS): Add test-fprintf-posix2.
64669
64670         * tests/test-printf-posix2.sh: New file.
64671         * tests/test-printf-posix2.c: New file.
64672         * modules/printf-posix-tests (Files): Add them.
64673         (TESTS): Add test-printf-posix2.sh.
64674         (configure.ac): Check for getrlimit and setrlimit.
64675         (check_PROGRAMS): Add test-printf-posix2.
64676
64677         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64678         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64679         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64680         (decode_double): New function, copied from decode_long_double.
64681         (scale10_round_decimal_decoded): New function, extracted from
64682         scale10_round_decimal_long_double.
64683         (scale10_round_decimal_long_double): Use it.
64684         (scale10_round_decimal_double): New function.
64685         (floorlog10): New function.
64686         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64690         gl_PRINTF_ENOMEM and test its result. Invoke
64691         gl_PREREQ_VASNPRINTF_ENOMEM.
64692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64699         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64700         * modules/snprintf-posix (Depends-on): Likewise.
64701         * modules/sprintf-posix (Depends-on): Likewise.
64702         * modules/vasnprintf-posix (Depends-on): Likewise.
64703         * modules/vasprintf-posix (Depends-on): Likewise.
64704         * modules/vfprintf-posix (Depends-on): Likewise.
64705         * modules/vsnprintf-posix (Depends-on): Likewise.
64706         * modules/vsprintf-posix (Depends-on): Likewise.
64707         * doc/functions/fprintf.texi: Update.
64708         * doc/functions/printf.texi: Update.
64709         * doc/functions/snprintf.texi: Update.
64710         * doc/functions/sprintf.texi: Update.
64711         * doc/functions/vfprintf.texi: Update.
64712         * doc/functions/vprintf.texi: Update.
64713         * doc/functions/vsnprintf.texi: Update.
64714         * doc/functions/vsprintf.texi: Update.
64715
64716 2007-11-03  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/frexp-nolibm-tests: New file.
64719
64720         * modules/frexp-nolibm: New file.
64721         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64722
64723 2007-11-03  Bruno Haible  <bruno@clisp.org>
64724
64725         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64726         value is C99 compliant.
64727         Needed for OSF/1 5.1.
64728
64729 2007-11-03  Bruno Haible  <bruno@clisp.org>
64730
64731         Fix out-of-memory handling of vasnprintf.
64732         * lib/printf-parse.c: Include <errno.h>.
64733         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64734         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64735         is already set.
64736
64737 2007-11-02  Eric Blake  <ebb9@byu.net>
64738
64739         Fix tests on cygwin.
64740         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64741
64742 2007-11-01  Bruno Haible  <bruno@clisp.org>
64743
64744         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64745         warning.
64746         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64747         needed for POSIX compatibility.
64748
64749 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64750
64751         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64752         for compatibility with GNU.
64753
64754 2007-11-01  Bruno Haible  <bruno@clisp.org>
64755
64756         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64757         (putenv): Renamed from rpl_putenv. Change argument type from
64758         'const char *' to 'char *'.
64759         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64760         of defining putenv in config.h, just set REPLACE_PUTENV.
64761         * modules/putenv (Depends-on): Add stdlib.
64762         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64763         (Include): Use <stdlib.h>.
64764         * lib/stdlib.in.h (putenv): New declaration.
64765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64766         REPLACE_PUTENV.
64767         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64768         REPLACE_PUTENV.
64769         Needed for MacOS X 10.5.0.
64770         Reported by Peter O'Gorman <peter@pogma.com>.
64771
64772 2007-11-01  Jim Meyering  <meyering@redhat.com>
64773
64774         Treat an empty date string exactly like "0".
64775         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64776         if the remaining date string (to be parsed) is empty, use "0".
64777         Reported by Mischa Molhoek and discussed in this thread:
64778         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64779
64780 2007-10-31  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64783         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64784         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64785         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64786         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64787         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64788
64789 2007-10-31  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64792         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64793         (AC_TYPE_LONG_LONG_INT): Use it.
64794         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64795         it as well.
64796         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64797         to m4/longlong.m4.
64798         * modules/stdint (Files): Remove m4/ulonglong.m4.
64799         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64800         m4/ulonglong.m4.
64801         * modules/strtoumax (Files): Likewise.
64802
64803 2007-10-30  Bruno Haible  <bruno@clisp.org>
64804
64805         * modules/xvasprintf-posix: New file.
64806         Suggested by Eric Blake.
64807
64808 2007-10-30  Bruno Haible  <bruno@clisp.org>
64809
64810         * modules/xprintf-posix-tests: New file.
64811         * tests/test-xprintf-posix.sh: New file.
64812         * tests/test-xprintf-posix.c: New file.
64813         * tests/test-xfprintf-posix.c: New file.
64814
64815         * modules/xprintf-posix: New file.
64816
64817 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64818
64819         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64820         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64821         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64822
64823 2007-10-29  Bruno Haible  <bruno@clisp.org>
64824
64825         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64826         contain the special marker '_cv_'.
64827         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64828         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64830         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64831         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64832         Reported by Ralf Wildenhues.
64833
64834 2007-10-29  Bruno Haible  <bruno@clisp.org>
64835
64836         * gnulib-tool (func_import): When --lgpl is not specified, set
64837         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64838         GPLv3.
64839         Reported by Simon Josefsson.
64840
64841 2007-10-28  Bruno Haible  <bruno@clisp.org>
64842
64843         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64844         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64845         HAVE_DECL_ISFINITE.
64846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64847         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64848         HAVE_DECL_ISFINITE.
64849
64850 2007-10-28  Bruno Haible  <bruno@clisp.org>
64851
64852         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64853         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64854
64855 2007-10-28  Bruno Haible  <bruno@clisp.org>
64856
64857         Fix link errors with Sun C 5.0 on Solaris 10.
64858         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64859         function is declared but not present in the compiler's libm.
64860         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64861         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64862         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64863         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64864         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64865         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64866         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64868         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64869         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64870         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64871         HAVE_DECL_FLOORL.
64872
64873 2007-10-28  Bruno Haible  <bruno@clisp.org>
64874
64875         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64876         gl_FUNC_FLOORL. Cache the result.
64877         (gl_FUNC_FLOORL): Use it.
64878         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64879         gl_FUNC_CEILL. Cache the result.
64880         (gl_FUNC_CEILL): Use it.
64881
64882         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64883         gl_FUNC_FLOOR. Cache the result.
64884         (gl_FUNC_FLOOR): Use it.
64885         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64886         gl_FUNC_CEIL. Cache the result.
64887         (gl_FUNC_CEIL): Use it.
64888
64889         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64890         gl_FUNC_FLOORF. Cache the result.
64891         (gl_FUNC_FLOORF): Use it.
64892         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64893         gl_FUNC_CEILF. Cache the result.
64894         (gl_FUNC_CEILF): Use it.
64895
64896 2007-10-28  Bruno Haible  <bruno@clisp.org>
64897
64898         * gnulib-tool: Allow specifying the LGPL version number through
64899         --lgpl=2 or --lgpl=3.
64900         (func_usage): Document --lgpl with argument.
64901         Handle --lgpl=... arguments.
64902         (func_import): Recognize also gl_LGPL calls with an argument. When
64903         --lgpl=2 is used and the module's license is just LGPL, report an
64904         error. Set sed_transform_lib_file according to the lgpl variable. In
64905         the generated files, use --lgpl or gl_LGPL invocations with argument,
64906         if necessary.
64907         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64908         an LGPv2+ license.
64909         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64910         gl_LGPL macro.
64911
64912 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64913             Bruno Haible  <bruno@clisp.org>
64914
64915         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64916         (u16_uctomb_aux): Likewise.
64917         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64918         !HAVE_INLINE.
64919         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64920
64921 2007-10-28  Bruno Haible  <bruno@clisp.org>
64922
64923         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64924         Invoke AM_GETTEXT_OPTION if it exists.
64925         * modules/vasprintf: Likewise.
64926         * modules/verror: Likewise.
64927         * modules/xprintf: Likewise.
64928         * modules/xvasprintf: Likewise.
64929
64930 2007-10-27  Ben Pfaff  <blp@gnu.org>
64931
64932         * lib/math.in.h: Define isfinite macro and prototypes for
64933         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64934         implementations.
64935         * m4/math_h.m4: New substitutions for isfinite module.
64936         * lib/isfinite.c: New file.
64937         * m4/isfinite.m4: New file.
64938         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64939         * modules/isfinite: New file.
64940         * modules/isfinite-tests: New file.
64941         * tests/tests-isfinite.c: New file.
64942         * doc/functions/isfinite.texi: Mention isfinite module.
64943         * MODULES.html.sh: Mention new module.
64944
64945 2007-10-27  Ben Pfaff  <blp@gnu.org>
64946
64947         Ralf Wildenhues reported that Tru64 4.0D declares the round
64948         functions but does not have definitions.
64949         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64950         cannot be found in any library, set the output variable to
64951         "missing" instead of "".
64952         * m4/round.m4: Also use our substitute if we cannot find round in
64953         any library, even if it is declared.
64954         * m4/roundf.m4: Likewise for roundf.
64955         * m4/roundl.m4: Likewise for roundl.
64956         * lib/math.in.h: Undefine roundf, round, roundl before defining
64957         their replacements, to allow for hypothetical systems where these
64958         may be defined as macros but not available in libraries.
64959
64960 2007-10-27  Bruno Haible  <bruno@clisp.org>
64961
64962         * doc/gnulib.texi: Invoke @firstparagraphindent.
64963         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64964         changes in gnulib.
64965         (Source changes): New section.
64966
64967 2007-10-26  Bruno Haible  <bruno@clisp.org>
64968
64969         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64970         borrowed from autoconf.
64971
64972 2007-10-26  Bruno Haible  <bruno@clisp.org>
64973
64974         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64975         strerror returned the empty string. Needed on HP-UX 11.00.
64976
64977 2007-10-24  Micah Cowan  <micah@cowan.name>
64978
64979         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64980         * build-aux/bootstrap: Remove support for now-unnecessary option,
64981         --cvs-user, and envvars CVS_USER, CVS_RSH.
64982
64983 2007-10-24  Jim Meyering  <meyering@redhat.com>
64984
64985         Avoid diagnostics from sha1sum when there is no cached checksum.
64986         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64987         if the po.s1 file hasn't been created yet.
64988
64989         * build-aux/bootstrap: Sync from coreutils:
64990         2007-10-24  Jim Meyering  <meyering@redhat.com>
64991         Get gnulib from the git repository, not from an obsolete cvs one.
64992         * build-aux/bootstrap: Suggestion from Micah Cowan.
64993         2007-10-04  Jim Meyering  <jim@meyering.net>
64994         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64995         (update_po_files): Work also when there are no .po files in po/.
64996
64997 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * README: Append ".git" to git and cg examples.
65000         Problem reported by Benoit Sigoure.
65001
65002 2007-10-23  Micah Cowan  <micah@cowan.name>
65003
65004         * users.txt: Add wget.
65005
65006 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65007
65008         Fix linking of some unistdio tests on FreeBSD.
65009         * modules/unistdio/u16-vsnprintf-tests
65010         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65011         * modules/unistdio/u16-vsprintf-tests
65012         (test_u16_vsnprintf1_LDADD): Likewise.
65013         * modules/unistdio/u32-vsnprintf-tests
65014         (test_u32_vsnprintf1_LDADD): Likewise.
65015         * modules/unistdio/u32-vsprintf-tests
65016         (test_u32_vsprintf1_LDADD): Likewise.
65017         * modules/unistdio/u8-vsnprintf-tests
65018         (test_u8_vsnprintf1_LDADD): Likewise.
65019         * modules/unistdio/u8-vsprintf-tests
65020         (test_u8_vsprintf1_LDADD): Likewise.
65021         * modules/unistdio/ulc-vsnprintf-tests
65022         (test_ulc_vsnprintf1_LDADD): Likewise.
65023         * modules/unistdio/ulc-vsprintf-tests
65024         (test_ulc_vsprintf1_LDADD): Likewise.
65025
65026         Fix linking of some uniconv tests on FreeBSD.
65027         * modules/uniconv/u16-conv-from-enc-tests
65028         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65029         * modules/uniconv/u16-conv-to-enc-tests
65030         (test_u16_conv_to_enc_LDADD): Likewise.
65031         * modules/uniconv/u16-strconv-from-enc-tests
65032         (test_u16_strconv_from_enc_LDADD): Likewise.
65033         * modules/uniconv/u16-strconv-to-enc-tests
65034         (test_u16_strconv_to_enc_LDADD): Likewise.
65035         * modules/uniconv/u32-conv-from-enc-tests
65036         (test_u32_conv_from_enc_LDADD): Likewise.
65037         * modules/uniconv/u32-conv-to-enc-tests
65038         (test_u32_conv_to_enc_LDADD): Likewise.
65039         * modules/uniconv/u32-strconv-from-enc-tests
65040         (test_u32_strconv_from_enc_LDADD): Likewise.
65041         * modules/uniconv/u32-strconv-to-enc-tests
65042         (test_u32_strconv_to_enc_LDADD): Likewise.
65043         * modules/uniconv/u8-conv-from-enc-tests
65044         (test_u8_conv_from_enc_LDADD): Likewise.
65045         * modules/uniconv/u8-conv-to-enc-tests
65046         (test_u8_conv_to_enc_LDADD): Likewise.
65047         * modules/uniconv/u8-strconv-from-enc-tests
65048         (test_u8_strconv_from_enc_LDADD): Likewise.
65049         * modules/uniconv/u8-strconv-to-enc-tests
65050         (test_u8_strconv_to_enc_LDADD): Likewise.
65051
65052 2007-10-22  Bruno Haible  <bruno@clisp.org>
65053
65054         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65055         size.
65056
65057 2007-10-22  Eric Blake  <ebb9@byu.net>
65058
65059         Tweak x*printf documentation.
65060         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65061         variable name and comments.
65062         Suggested by Bruno Haible.
65063
65064 2007-10-22  Bruno Haible  <bruno@clisp.org>
65065
65066         * lib/acl.c (copy_acl): Fix file name in comment.
65067
65068 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         Fix Tru64 problem with stdbool.h.
65071         * lib/stdbool.in.h (false, true):
65072         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65073         Don't declare as an enum in this situation; it runs afoul of Tru64.
65074         Problem reported by Steven M. Schweda in
65075         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65076
65077 2007-10-22  Eric Blake  <ebb9@byu.net>
65078
65079         Also wrap vf?printf.
65080         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65081         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65082         (xvprintf, xvfprintf): New functions.
65083
65084 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65085
65086         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65087         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65088
65089         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65090         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65091
65092 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65095         by Bruno Haible.
65096
65097 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65098
65099         * lib/getloadavg.c
65100         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65101         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65102
65103         * tests/test-i-ring.c: Work for C89.
65104
65105 2007-10-22  Bruno Haible  <bruno@clisp.org>
65106
65107         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65108         -1u, in preprocessor expression, so that we don't test for the bug
65109         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65111
65112 2007-10-22  Eric Blake  <ebb9@byu.net>
65113
65114         * tests/test-yesno.sh: Silence stderr during test.
65115
65116 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65117
65118         * modules/crypto/gc-camellia: New file.
65119
65120         * m4/gc-camellia.m4: New file.
65121
65122         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65123
65124         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65125
65126 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65127
65128         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65129         --help to stdout.  Reported by sms@antinode.org (Steven
65130         M. Schweda).
65131
65132 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65133
65134         * users.txt: Fix link to libksba.
65135
65136 2007-10-21  Ben Pfaff  <blp@gnu.org>
65137
65138         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65139         round.c roundf implementation that depends on floorf and ceilf to
65140         be tested unconditionally.
65141
65142 2007-10-21  Ben Pfaff  <blp@gnu.org>
65143
65144         * m4/check-libm-func.m4: Removed.
65145         * m4/check-math-lib.m4: New file.
65146         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65147         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65148         definition and lack of AC_LIBOBJ([roundf]).
65149         * m4/roundl.m4: Ditto, and similarly for roundl.
65150         * modules/round: Reference new m4 file.
65151         * modules/roundf: Ditto.
65152         * modules/roundl: Ditto.
65153         * tests/test-round2.c (main): Use ROUND instead of round.
65154         Bug report from Bruno Haible.
65155
65156 2007-10-21  Bruno Haible  <bruno@clisp.org>
65157
65158         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65159         context.
65160
65161 2007-10-21  Bruno Haible  <bruno@clisp.org>
65162
65163         * tests/test-wcwidth.c (main): Allow negative result for some control
65164         characters.
65165
65166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65167         Needed on OSF/1 5.1.
65168
65169 2007-10-21  Bruno Haible  <bruno@clisp.org>
65170
65171         * tests/test-floorf1.c: Include isnanf.h.
65172         (main): Use isnanf() instead of isnan().
65173         * tests/test-ceilf1.c: Include isnanf.h.
65174         (main): Use isnanf() instead of isnan().
65175         * tests/test-truncf1.c: Include isnanf.h.
65176         (main): Use isnanf() instead of isnan().
65177         * tests/test-roundf1.c: Include isnanf.h.
65178         (main): Use isnanf() instead of isnan().
65179
65180 2007-10-21  Eric Blake  <ebb9@byu.net>
65181
65182         * users.txt: Update URL for m4.
65183
65184 2007-10-21  Bruno Haible  <bruno@clisp.org>
65185
65186         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65187
65188 2007-10-21  Bruno Haible  <bruno@clisp.org>
65189
65190         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65191         Git's management files if the CVS files are not present.
65192
65193 2007-10-20  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65196         gcc-3.4.x.
65197
65198 2007-10-20  Ben Pfaff  <blp@gnu.org>
65199
65200         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65201         implementations.
65202         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65203         * lib/round.c: New file.
65204         * lib/roundf.c: New file.
65205         * lib/roundl.c: New file.
65206         * m4/round.m4: New file.
65207         * m4/roundf.m4: New file.
65208         * m4/roundl.m4: New file.
65209         * m4/check-libm-func-m4: New file.
65210         * modules/math: Replace round, roundf, roundl related @VARS@ in
65211         math.in.h.
65212         * modules/round: New file.
65213         * modules/round-tests: New file.
65214         * modules/roundf: New file.
65215         * modules/roundf-tests: New file.
65216         * modules/roundl: New file.
65217         * modules/roundl-tests: New file.
65218         * tests/test-round1.c: New file.
65219         * tests/test-round2.c: New file.
65220         * tests/test-roundf1.c: New file.
65221         * tests/test-roundf2.c: New file.
65222         * tests/test-roundl.c: New file.
65223         * doc/functions/round.texi: Mention round module.
65224         * doc/functions/roundf.texi: Mention roundf module.
65225         * doc/functions/roundl.texi: Mention roundl module.
65226         * MODULES.html.sh: Mention new modules.
65227         Thanks to Bruno Haible for suggestions.
65228
65229 2007-10-20  Jim Meyering  <meyering@redhat.com>
65230
65231         * lib/xprintf.c: Include <config.h> unconditionally.
65232
65233         Change xprintf's license to GPL.
65234         * modules/xprintf (License): s/LGPL/GPL/, since this module
65235         depends on modules (exit and exitfail) which are GPL.
65236         Suggestion from Bruno Haible.
65237
65238         xprintf fixes.
65239         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65240         Use a clearer diagnostic.
65241         Patch from Bruno Haible.
65242
65243 2007-10-20  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65246         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65248
65249 2007-10-20  Bruno Haible  <bruno@clisp.org>
65250
65251         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65252         precision in the comparison result > x - 1 or similar.
65253         * tests/test-ceilf2.c (correct_result_p): Likewise.
65254         * tests/test-truncf2.c (correct_result_p): Likewise.
65255         * tests/test-trunc2.c (correct_result_p): Likewise.
65256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65257
65258 2007-10-20  Bruno Haible  <bruno@clisp.org>
65259
65260         * modules/ceil: New file.
65261         * m4/ceil.m4: New file.
65262         * doc/functions/ceil.texi: Mention the 'ceil' module.
65263
65264 2007-10-20  Bruno Haible  <bruno@clisp.org>
65265
65266         * modules/floor: New file.
65267         * m4/floor.m4: New file.
65268         * doc/functions/floor.texi: Mention the 'floor' module.
65269
65270 2007-10-20  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65273         of %a.
65274         * modules/floorf-tests (Depends-on): Likewise.
65275         * modules/truncf-tests (Depends-on): Likewise.
65276         * modules/trunc-tests (Depends-on): Likewise.
65277         Reported by Ben Pfaff.
65278
65279 2007-10-19  Jim Meyering  <meyering@redhat.com>
65280
65281         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65282         Don't bother testing specific errno values.  Just test ferror.
65283
65284         New module: xprintf
65285         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65286
65287 2007-10-19  Bruno Haible  <bruno@clisp.org>
65288
65289         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65290         syntax.
65291         * modules/javaexec (Makefile.am): Likewise.
65292         * modules/relocatable-prog (Makefile.am): Likewise.
65293         Suggested by Jim Meyering.
65294
65295 2007-10-18  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65298         Reported by Jim Meyering.
65299
65300 2007-10-18  Eric Blake  <ebb9@byu.net>
65301
65302         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65303
65304 2007-10-18  Bruno Haible  <bruno@clisp.org>
65305
65306         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65307         the format string into writable memory. Needed in Fortify conditions.
65308
65309 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65310             Bruno Haible  <bruno@clisp.org>
65311
65312         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65313         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65314         * modules/trim (Depends-on): Add mbchar.
65315         (configure.ac): Add gl_FUNC_MBRTOWC.
65316         (Makefile.am): Augment lib_SOURCES.
65317
65318 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65319
65320         Modify glob.c to use fstatat and dirfd, to simplify it.
65321         Suggested by Eric Blake.
65322         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65323         Don't include <stdbool.h>; not used.
65324         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65325         (link_exists_p): Simplify implementation, since we can now assume
65326         dirfd and fstatat.
65327         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65328
65329 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65330
65331         * gnulib-tool (func_get_dependencies): Fix sed script to
65332         match only tests.
65333
65334 2007-10-17  Bruno Haible  <bruno@clisp.org>
65335
65336         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65337         allow locale names without encoding suffix.
65338         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65340
65341 2007-10-16  Bruno Haible  <bruno@clisp.org>
65342
65343         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65344         * lib/getgroups.c (getgroups): Likewise.
65345         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65346
65347 2007-10-16  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65350         * modules/malloc-posix (License): Likewise.
65351         * modules/realloc-posix (License): Likewise.
65352         * modules/calloc-posix (License): Likewise.
65353         * modules/intprops (License): Change from GPL to LGPL, with
65354         Paul Eggert's approval.
65355
65356 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         Merge glibc changes into lib/glob.c.
65359
65360         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65361         2007-10-15 04:59:03 UTC.  Here are the changes:
65362
65363         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65364
65365         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65366
65367         * lib/glob.c: Add some branch prediction throughout.
65368
65369         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65370
65371         [BZ #5103]
65372         * lib/glob.c (glob): Recognize patterns starting \/.
65373
65374         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65375
65376         [BZ #3996]
65377         * lib/glob.c (attribute_hidden): Define if not defined.
65378         (glob): Unescape dirname, filename or username when needed and not
65379         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65380         is NULL.  Handle unescaped [ in pattern without closing ].
65381         Don't pass GLOB_CHECK down to recursive glob for directories.
65382         (__glob_pattern_type): New function.
65383         (__glob_pattern_p): Implement using __glob_pattern_type.
65384         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65385         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65386         Remove unreachable code.
65387
65388         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65389
65390         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65391         explain why there are no leaks.
65392
65393         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65394
65395         [BZ #3253]
65396         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65397         time, rather allocate increasingly bigger arrays of pointers, if
65398         possible with alloca, if too large with malloc.
65399
65400 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65403         Problem reported by H.Merijn Brand in
65404         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65405         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65406         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65407
65408 2007-10-15  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65411         with explicit rpl_ prefix.
65412         * lib/fopen.c (fopen): Likewise.
65413         * lib/freopen.c (freopen): Likewise.
65414         * lib/iconv.c (iconv): Likewise.
65415         * lib/iconv_close.c (iconv_close): Likewise.
65416
65417 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65418
65419         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65420
65421 2007-10-15  Bruno Haible  <bruno@clisp.org>
65422
65423         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65424         <stddef.h> instead of <stdlib.h> since we only need NULL.
65425         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65426
65427 2007-10-15  Bruno Haible  <bruno@clisp.org>
65428
65429         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65430         Replace paragraph talking about LIBOBJS.
65431         Reported by Colin Watson <cjwatson@debian.org>.
65432
65433 2007-10-15  Bruno Haible  <bruno@clisp.org>
65434
65435         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65436         <stdlib.h> before using NULL.
65437
65438 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65439
65440         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65441         Reported by Albert Chin <china@thewrittenword.com>.
65442
65443 2007-10-14  Bruno Haible  <bruno@clisp.org>
65444
65445         * modules/iconv_open-utf-tests: New file.
65446         * tests/test-iconv-utf.c: New file.
65447
65448         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65449         * modules/iconv_open-utf: New file.
65450         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65451         (iconv, iconv_close): New declarations.
65452         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65453         be defined.
65454         (iconv_open): Add special handling of conversion between UTF-8 and
65455         UTF-{16,32}{BE,LE}.
65456         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65457         * lib/iconv_close.c: New file.
65458         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65459         gl_FUNC_ICONV_OPEN.
65460         (gl_FUNC_ICONV_OPEN): Use it.
65461         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65462         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65463         and REPLACE_ICONV_UTF.
65464         * modules/iconv_open (Depends-on): Add c-strcase.
65465         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65466         ICONV_CONST.
65467         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65468
65469 2007-10-13  Albert Chin  <china@thewrittenword.com>
65470             Bruno Haible  <bruno@clisp.org>
65471
65472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65473         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65474
65475 2007-10-13  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65478         defined, use the ISO C99 inline semantics.
65479         * lib/argp.h (ARGP_EI): Likewise.
65480
65481 2007-10-13  Bruno Haible  <bruno@clisp.org>
65482
65483         Handle 'inline' change in gcc 4.3.0.
65484         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65485         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65486         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65487         argp_fmtstream_point): Disable 'extern' declaration if the function
65488         definition is going to be provided inline.
65489         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65490         semantics, not the ISO C99 inline semantics.
65491         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65492         'extern' declaration if the function definition is going to be provided
65493         inline.
65494         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65495         the GNU C inline semantics, not the ISO C99 inline semantics. With
65496         GCC 4.2, avoid a warning.
65497
65498 2007-10-13  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/freading.h (freading): Enable the use of __freading for
65501         glibc >= 2.7.
65502         * lib/freading.c (freading): Likewise.
65503
65504 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65507         "warning: C99 inline functions are not supported; using GNU89".
65508
65509 2007-10-12  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65512         of 2.
65513         * tests/test-ceilf2.c: New file.
65514         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65515
65516         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65517         * modules/ceilf-tests: Update.
65518
65519 2007-10-12  Bruno Haible  <bruno@clisp.org>
65520
65521         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65522         of 2.
65523         * tests/test-floorf2.c: New file.
65524         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65525
65526         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65527         * modules/floorf-tests: Update.
65528
65529 2007-10-12  Bruno Haible  <bruno@clisp.org>
65530
65531         * tests/test-trunc2.c: New file.
65532         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65533
65534         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65535         * modules/trunc-tests: Update.
65536
65537 2007-10-12  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65540         of 2.
65541         * tests/test-truncf2.c: New file.
65542         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65543
65544         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65545         * modules/truncf-tests: Update.
65546
65547 2007-10-11  Eric Blake  <ebb9@byu.net>
65548
65549         Don't claim strerror is broken on Interix.
65550         * doc/functions/strerror.texi (strerror): Known broken systems are
65551         now Solaris 8, and not Interix.
65552         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65553         Interix on cross-compile.
65554         Reported by Martin Koeppe in
65555         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65556
65557 2007-10-11  Bruno Haible  <bruno@clisp.org>
65558
65559         * modules/i-ring-tests: New file.
65560         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65561         instead of assert.
65562
65563 2007-10-11  Bruno Haible  <bruno@clisp.org>
65564
65565         * modules/filenamecat-tests: New file.
65566         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65567         * lib/filenamecat.c: Remove test code.
65568
65569 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65572
65573         * lib/strerror.c: Include <string.h> always, to test interface,
65574         and to remove the need for the dummy.
65575         Include intprops.h to compute width instead of doing it ourselves
65576         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65577         (strerror): Define it to return NULL if there's no system strerror.
65578         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65579         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65580         ancient pre-strerror Unix systems well any more.  Saying "unknown
65581         system error" is enough.
65582         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65583         simpler strerror.c implementation.
65584         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65585         Simplify the tests to reflect the simpler strerror implementation.
65586         * modules/strerror (Depends-on): Add intprops.
65587
65588 2007-10-09  Eric Blake  <ebb9@byu.net>
65589
65590         Silence test-fpending.
65591         * modules/fpending-tests (Files): Add wrapper script.
65592         * tests/test-fpending.sh: New file.
65593
65594 2007-10-09  Bruno Haible  <bruno@clisp.org>
65595
65596         * MODULES.html.sh (func_module): Don't create a hyperlink for
65597         function names like 'printf_frexp'.
65598         (Misc): Add crc, memxor.
65599         (Characteristics of floating types): New section.
65600         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65601         isnanf-nolibm, signbit, trunc, truncf, truncl.
65602         (Enhancements for ISO C 99 functions): New subsection Input/output.
65603         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65604         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65605         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65606         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65607         (Enhancements for POSIX:2001 functions): Add chdir-long.
65608         (File system functions): Add areadlink, chdir-safer, read-file.
65609         Remove cycle-check.
65610         (File system as inode set): New section.
65611         (Date and time): Add gethrxtime.
65612         (Multithreading): Add openmp.
65613         (Internationalization functions): Add localename.
65614         (Unicode string functions): Add unistr/u*-mbsnlen.
65615         (Support for maintaining and releasing projects): Add git-version-gen.
65616         (Lone files): Remove directories.
65617
65618 2007-10-08  Ben Pfaff  <blp@gnu.org>
65619
65620         * lib/xmalloca.h: Fix typo in comment.
65621
65622 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65623
65624         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65625         when avoiding problems with integer overflow.  Use a portable test
65626         instead.
65627
65628 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65629
65630         * modules/dummy (License): Change to LGPLv2+.
65631         * modules/float (License): Likewise
65632         * modules/realloc (License): Likewise
65633         * modules/stdlib (License): Likewise
65634
65635 2007-10-07  Bruno Haible  <bruno@clisp.org>
65636
65637         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65638         * floor.c (TWO_MANT_DIG): Likewise.
65639         * ceil.c (TWO_MANT_DIG): Likewise.
65640         Reported by Ben Pfaff.
65641
65642 2007-10-07  Bruno Haible  <bruno@clisp.org>
65643
65644         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65645         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65646         * lib/frexp.c (FUNC): Likewise.
65647         * lib/printf-frexp.h (printf_frexp): Likewise.
65648         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65649         * lib/printf-frexp.c (FUNC): Likewise.
65650         Suggested by Jim Meyering.
65651
65652 2007-10-07  Jim Meyering  <meyering@redhat.com>
65653
65654         Make xnanosleep's integer overflow test more robust.
65655         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65656         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65657
65658 2007-10-07  Bruno Haible  <bruno@clisp.org>
65659
65660         * NEWS: Mention the license change.
65661
65662         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65663         abbreviations in the modules files.
65664
65665         Change copyright notice from GPLv2+ to GPLv3+.
65666         * README: Change copyright notice.
65667         * MODULES.html.sh: Likewise.
65668         * build-aux/bootstrap.conf: Likewise.
65669         * build-aux/config.libpath: Likewise.
65670         * build-aux/csharpcomp.sh.in: Likewise.
65671         * build-aux/csharpexec.sh.in: Likewise.
65672         * build-aux/install-reloc: Likewise.
65673         * build-aux/javacomp.sh.in: Likewise.
65674         * build-aux/javaexec.sh.in: Likewise.
65675         * build-aux/ldd.sh.in: Likewise.
65676         * build-aux/reloc-ldflags: Likewise.
65677         * build-aux/relocatable.sh.in: Likewise.
65678         * build-aux/x-to-1.in: Likewise.
65679         * check-module: Likewise.
65680         * config/srclistvars.sh: Likewise.
65681         * gnulib-tool: Likewise.
65682         * lib/acl-internal.h: Likewise.
65683         * lib/acl.c: Likewise.
65684         * lib/acl.h: Likewise.
65685         * lib/acl_entries.c: Likewise.
65686         * lib/areadlink-with-size.c: Likewise.
65687         * lib/areadlink.c: Likewise.
65688         * lib/areadlink.h: Likewise.
65689         * lib/argmatch.c: Likewise.
65690         * lib/argmatch.h: Likewise.
65691         * lib/argp-ba.c: Likewise.
65692         * lib/argp-eexst.c: Likewise.
65693         * lib/argp-fmtstream.c: Likewise.
65694         * lib/argp-fmtstream.h: Likewise.
65695         * lib/argp-fs-xinl.c: Likewise.
65696         * lib/argp-help.c: Likewise.
65697         * lib/argp-namefrob.h: Likewise.
65698         * lib/argp-parse.c: Likewise.
65699         * lib/argp-pin.c: Likewise.
65700         * lib/argp-pv.c: Likewise.
65701         * lib/argp-pvh.c: Likewise.
65702         * lib/argp-xinl.c: Likewise.
65703         * lib/argp.h: Likewise.
65704         * lib/at-func.c: Likewise.
65705         * lib/atanl.c: Likewise.
65706         * lib/backupfile.c: Likewise.
65707         * lib/backupfile.h: Likewise.
65708         * lib/basename.c: Likewise.
65709         * lib/binary-io.h: Likewise.
65710         * lib/byteswap.in.h: Likewise.
65711         * lib/c-stack.c: Likewise.
65712         * lib/c-stack.h: Likewise.
65713         * lib/c-strcasestr.c: Likewise.
65714         * lib/c-strcasestr.h: Likewise.
65715         * lib/c-strstr.c: Likewise.
65716         * lib/c-strstr.h: Likewise.
65717         * lib/c-strtod.c: Likewise.
65718         * lib/calloc.c: Likewise.
65719         * lib/canon-host.c: Likewise.
65720         * lib/canon-host.h: Likewise.
65721         * lib/canonicalize-lgpl.c: Likewise.
65722         * lib/canonicalize.c: Likewise.
65723         * lib/canonicalize.h: Likewise.
65724         * lib/ceil.c: Likewise.
65725         * lib/ceilf.c: Likewise.
65726         * lib/ceill.c: Likewise.
65727         * lib/chdir-long.c: Likewise.
65728         * lib/chdir-long.h: Likewise.
65729         * lib/chdir-safer.c: Likewise.
65730         * lib/chdir-safer.h: Likewise.
65731         * lib/chown.c: Likewise.
65732         * lib/classpath.c: Likewise.
65733         * lib/classpath.h: Likewise.
65734         * lib/clean-temp.c: Likewise.
65735         * lib/clean-temp.h: Likewise.
65736         * lib/cloexec.c: Likewise.
65737         * lib/close-stream.c: Likewise.
65738         * lib/closein.c: Likewise.
65739         * lib/closein.h: Likewise.
65740         * lib/closeout.c: Likewise.
65741         * lib/closeout.h: Likewise.
65742         * lib/concat-filename.c: Likewise.
65743         * lib/copy-file.c: Likewise.
65744         * lib/copy-file.h: Likewise.
65745         * lib/count-one-bits.h: Likewise.
65746         * lib/crc.c: Likewise.
65747         * lib/crc.h: Likewise.
65748         * lib/creat-safer.c: Likewise.
65749         * lib/csharpcomp.c: Likewise.
65750         * lib/csharpcomp.h: Likewise.
65751         * lib/csharpexec.c: Likewise.
65752         * lib/csharpexec.h: Likewise.
65753         * lib/cycle-check.c: Likewise.
65754         * lib/cycle-check.h: Likewise.
65755         * lib/diacrit.c: Likewise.
65756         * lib/diacrit.h: Likewise.
65757         * lib/diffseq.h: Likewise.
65758         * lib/dirchownmod.c: Likewise.
65759         * lib/dirent.in.h: Likewise.
65760         * lib/dirfd.c: Likewise.
65761         * lib/dirfd.h: Likewise.
65762         * lib/dirname.c: Likewise.
65763         * lib/dirname.h: Likewise.
65764         * lib/dummy.c: Likewise.
65765         * lib/dup-safer.c: Likewise.
65766         * lib/dup2.c: Likewise.
65767         * lib/eealloc.h: Likewise.
65768         * lib/error.c: Likewise.
65769         * lib/error.h: Likewise.
65770         * lib/euidaccess.c: Likewise.
65771         * lib/exclude.c: Likewise.
65772         * lib/exclude.h: Likewise.
65773         * lib/execute.c: Likewise.
65774         * lib/execute.h: Likewise.
65775         * lib/exitfail.c: Likewise.
65776         * lib/exitfail.h: Likewise.
65777         * lib/expl.c: Likewise.
65778         * lib/fatal-signal.c: Likewise.
65779         * lib/fatal-signal.h: Likewise.
65780         * lib/fbufmode.c: Likewise.
65781         * lib/fbufmode.h: Likewise.
65782         * lib/fchdir.c: Likewise.
65783         * lib/fchmodat.c: Likewise.
65784         * lib/fchownat.c: Likewise.
65785         * lib/fcntl--.h: Likewise.
65786         * lib/fcntl-safer.h: Likewise.
65787         * lib/fcntl.in.h: Likewise.
65788         * lib/fd-safer.c: Likewise.
65789         * lib/fflush.c: Likewise.
65790         * lib/file-has-acl.c: Likewise.
65791         * lib/file-set.c: Likewise.
65792         * lib/file-type.c: Likewise.
65793         * lib/file-type.h: Likewise.
65794         * lib/fileblocks.c: Likewise.
65795         * lib/filemode.c: Likewise.
65796         * lib/filemode.h: Likewise.
65797         * lib/filename.h: Likewise.
65798         * lib/filenamecat.c: Likewise.
65799         * lib/filenamecat.h: Likewise.
65800         * lib/findprog.c: Likewise.
65801         * lib/findprog.h: Likewise.
65802         * lib/float.in.h: Likewise.
65803         * lib/floor.c: Likewise.
65804         * lib/floorf.c: Likewise.
65805         * lib/floorl.c: Likewise.
65806         * lib/fopen-safer.c: Likewise.
65807         * lib/fopen.c: Likewise.
65808         * lib/fpending.c: Likewise.
65809         * lib/fpending.h: Likewise.
65810         * lib/fprintf.c: Likewise.
65811         * lib/fprintftime.h: Likewise.
65812         * lib/fpucw.h: Likewise.
65813         * lib/fpurge.c: Likewise.
65814         * lib/fpurge.h: Likewise.
65815         * lib/freadable.c: Likewise.
65816         * lib/freadable.h: Likewise.
65817         * lib/freadahead.c: Likewise.
65818         * lib/freadahead.h: Likewise.
65819         * lib/freading.c: Likewise.
65820         * lib/freading.h: Likewise.
65821         * lib/free.c: Likewise.
65822         * lib/freopen.c: Likewise.
65823         * lib/frexp.c: Likewise.
65824         * lib/frexpl.c: Likewise.
65825         * lib/fseek.c: Likewise.
65826         * lib/fseterr.c: Likewise.
65827         * lib/fseterr.h: Likewise.
65828         * lib/fstatat.c: Likewise.
65829         * lib/fstrcmp.c: Likewise.
65830         * lib/fstrcmp.h: Likewise.
65831         * lib/fsusage.c: Likewise.
65832         * lib/fsusage.h: Likewise.
65833         * lib/ftell.c: Likewise.
65834         * lib/ftello.c: Likewise.
65835         * lib/fts-cycle.c: Likewise.
65836         * lib/fts.c: Likewise.
65837         * lib/fts_.h: Likewise.
65838         * lib/full-read.c: Likewise.
65839         * lib/full-read.h: Likewise.
65840         * lib/full-write.c: Likewise.
65841         * lib/full-write.h: Likewise.
65842         * lib/fwritable.c: Likewise.
65843         * lib/fwritable.h: Likewise.
65844         * lib/fwriteerror.c: Likewise.
65845         * lib/fwriteerror.h: Likewise.
65846         * lib/fwriting.c: Likewise.
65847         * lib/fwriting.h: Likewise.
65848         * lib/gcd.c: Likewise.
65849         * lib/gcd.h: Likewise.
65850         * lib/getcwd.c: Likewise.
65851         * lib/getdate.h: Likewise.
65852         * lib/getdate.y: Likewise.
65853         * lib/getdomainname.c: Likewise.
65854         * lib/getdomainname.h: Likewise.
65855         * lib/getgroups.c: Likewise.
65856         * lib/gethostname.c: Likewise.
65857         * lib/gethrxtime.c: Likewise.
65858         * lib/gethrxtime.h: Likewise.
65859         * lib/getloadavg.c: Likewise.
65860         * lib/getndelim2.c: Likewise.
65861         * lib/getndelim2.h: Likewise.
65862         * lib/getnline.c: Likewise.
65863         * lib/getnline.h: Likewise.
65864         * lib/getopt.c: Likewise.
65865         * lib/getopt.in.h: Likewise.
65866         * lib/getopt1.c: Likewise.
65867         * lib/getopt_int.h: Likewise.
65868         * lib/getpagesize.h: Likewise.
65869         * lib/getsubopt.c: Likewise.
65870         * lib/gettime.c: Likewise.
65871         * lib/getugroups.c: Likewise.
65872         * lib/getugroups.h: Likewise.
65873         * lib/getusershell.c: Likewise.
65874         * lib/gl_anyavltree_list1.h: Likewise.
65875         * lib/gl_anyavltree_list2.h: Likewise.
65876         * lib/gl_anyhash_list1.h: Likewise.
65877         * lib/gl_anyhash_list2.h: Likewise.
65878         * lib/gl_anylinked_list1.h: Likewise.
65879         * lib/gl_anylinked_list2.h: Likewise.
65880         * lib/gl_anyrbtree_list1.h: Likewise.
65881         * lib/gl_anyrbtree_list2.h: Likewise.
65882         * lib/gl_anytree_list1.h: Likewise.
65883         * lib/gl_anytree_list2.h: Likewise.
65884         * lib/gl_anytree_oset.h: Likewise.
65885         * lib/gl_anytreehash_list1.h: Likewise.
65886         * lib/gl_anytreehash_list2.h: Likewise.
65887         * lib/gl_array_list.c: Likewise.
65888         * lib/gl_array_list.h: Likewise.
65889         * lib/gl_array_oset.c: Likewise.
65890         * lib/gl_array_oset.h: Likewise.
65891         * lib/gl_avltree_list.c: Likewise.
65892         * lib/gl_avltree_list.h: Likewise.
65893         * lib/gl_avltree_oset.c: Likewise.
65894         * lib/gl_avltree_oset.h: Likewise.
65895         * lib/gl_avltreehash_list.c: Likewise.
65896         * lib/gl_avltreehash_list.h: Likewise.
65897         * lib/gl_carray_list.c: Likewise.
65898         * lib/gl_carray_list.h: Likewise.
65899         * lib/gl_linked_list.c: Likewise.
65900         * lib/gl_linked_list.h: Likewise.
65901         * lib/gl_linkedhash_list.c: Likewise.
65902         * lib/gl_linkedhash_list.h: Likewise.
65903         * lib/gl_list.c: Likewise.
65904         * lib/gl_list.h: Likewise.
65905         * lib/gl_oset.c: Likewise.
65906         * lib/gl_oset.h: Likewise.
65907         * lib/gl_rbtree_list.c: Likewise.
65908         * lib/gl_rbtree_list.h: Likewise.
65909         * lib/gl_rbtree_oset.c: Likewise.
65910         * lib/gl_rbtree_oset.h: Likewise.
65911         * lib/gl_rbtreehash_list.c: Likewise.
65912         * lib/gl_rbtreehash_list.h: Likewise.
65913         * lib/gl_sublist.c: Likewise.
65914         * lib/gl_sublist.h: Likewise.
65915         * lib/group-member.c: Likewise.
65916         * lib/group-member.h: Likewise.
65917         * lib/hard-locale.c: Likewise.
65918         * lib/hard-locale.h: Likewise.
65919         * lib/hash-pjw.c: Likewise.
65920         * lib/hash-pjw.h: Likewise.
65921         * lib/hash-triple.c: Likewise.
65922         * lib/hash.c: Likewise.
65923         * lib/hash.h: Likewise.
65924         * lib/human.c: Likewise.
65925         * lib/human.h: Likewise.
65926         * lib/i-ring.c: Likewise.
65927         * lib/i-ring.h: Likewise.
65928         * lib/idcache.c: Likewise.
65929         * lib/imaxabs.c: Likewise.
65930         * lib/imaxdiv.c: Likewise.
65931         * lib/inet_pton.c: Likewise.
65932         * lib/inet_pton.h: Likewise.
65933         * lib/intprops.h: Likewise.
65934         * lib/inttostr.c: Likewise.
65935         * lib/inttostr.h: Likewise.
65936         * lib/inttypes.in.h: Likewise.
65937         * lib/isapipe.c: Likewise.
65938         * lib/isdir.c: Likewise.
65939         * lib/isnan.c: Likewise.
65940         * lib/isnan.h: Likewise.
65941         * lib/isnanf.c: Likewise.
65942         * lib/isnanf.h: Likewise.
65943         * lib/isnanl-nolibm.h: Likewise.
65944         * lib/isnanl.c: Likewise.
65945         * lib/isnanl.h: Likewise.
65946         * lib/javacomp.c: Likewise.
65947         * lib/javacomp.h: Likewise.
65948         * lib/javaexec.c: Likewise.
65949         * lib/javaexec.h: Likewise.
65950         * lib/javaversion.c: Likewise.
65951         * lib/javaversion.h: Likewise.
65952         * lib/javaversion.java: Likewise.
65953         * lib/lbrkprop.h: Likewise.
65954         * lib/lchmod.h: Likewise.
65955         * lib/lchown.c: Likewise.
65956         * lib/ldexpl.c: Likewise.
65957         * lib/linebreak.c: Likewise.
65958         * lib/linebreak.h: Likewise.
65959         * lib/linebuffer.c: Likewise.
65960         * lib/linebuffer.h: Likewise.
65961         * lib/locale.in.h: Likewise.
65962         * lib/logl.c: Likewise.
65963         * lib/long-options.c: Likewise.
65964         * lib/long-options.h: Likewise.
65965         * lib/lstat.c: Likewise.
65966         * lib/lstat.h: Likewise.
65967         * lib/math.in.h: Likewise.
65968         * lib/mbchar.c: Likewise.
65969         * lib/mbchar.h: Likewise.
65970         * lib/mbfile.h: Likewise.
65971         * lib/mbiter.h: Likewise.
65972         * lib/mbscasecmp.c: Likewise.
65973         * lib/mbscasestr.c: Likewise.
65974         * lib/mbschr.c: Likewise.
65975         * lib/mbscspn.c: Likewise.
65976         * lib/mbslen.c: Likewise.
65977         * lib/mbsncasecmp.c: Likewise.
65978         * lib/mbsnlen.c: Likewise.
65979         * lib/mbspbrk.c: Likewise.
65980         * lib/mbspcasecmp.c: Likewise.
65981         * lib/mbsrchr.c: Likewise.
65982         * lib/mbssep.c: Likewise.
65983         * lib/mbsspn.c: Likewise.
65984         * lib/mbsstr.c: Likewise.
65985         * lib/mbstok_r.c: Likewise.
65986         * lib/mbswidth.c: Likewise.
65987         * lib/mbswidth.h: Likewise.
65988         * lib/mbuiter.h: Likewise.
65989         * lib/memcasecmp.c: Likewise.
65990         * lib/memcasecmp.h: Likewise.
65991         * lib/memchr.c: Likewise.
65992         * lib/memcmp.c: Likewise.
65993         * lib/memcoll.c: Likewise.
65994         * lib/memcoll.h: Likewise.
65995         * lib/memcpy.c: Likewise.
65996         * lib/memrchr.c: Likewise.
65997         * lib/mkancesdirs.c: Likewise.
65998         * lib/mkdir-p.c: Likewise.
65999         * lib/mkdir-p.h: Likewise.
66000         * lib/mkdir.c: Likewise.
66001         * lib/mkdirat.c: Likewise.
66002         * lib/mkdtemp.c: Likewise.
66003         * lib/mkstemp-safer.c: Likewise.
66004         * lib/mkstemp.c: Likewise.
66005         * lib/modechange.c: Likewise.
66006         * lib/modechange.h: Likewise.
66007         * lib/mountlist.c: Likewise.
66008         * lib/mountlist.h: Likewise.
66009         * lib/mpsort.c: Likewise.
66010         * lib/nanosleep.c: Likewise.
66011         * lib/obstack.c: Likewise.
66012         * lib/obstack.h: Likewise.
66013         * lib/open-safer.c: Likewise.
66014         * lib/open.c: Likewise.
66015         * lib/openat-die.c: Likewise.
66016         * lib/openat-priv.h: Likewise.
66017         * lib/openat-proc.c: Likewise.
66018         * lib/openat.c: Likewise.
66019         * lib/openat.h: Likewise.
66020         * lib/pagealign_alloc.c: Likewise.
66021         * lib/pagealign_alloc.h: Likewise.
66022         * lib/physmem.c: Likewise.
66023         * lib/physmem.h: Likewise.
66024         * lib/pipe-safer.c: Likewise.
66025         * lib/pipe.c: Likewise.
66026         * lib/pipe.h: Likewise.
66027         * lib/posixtm.c: Likewise.
66028         * lib/posixtm.h: Likewise.
66029         * lib/posixver.c: Likewise.
66030         * lib/printf-frexp.c: Likewise.
66031         * lib/printf-frexp.h: Likewise.
66032         * lib/printf-frexpl.c: Likewise.
66033         * lib/printf-frexpl.h: Likewise.
66034         * lib/printf.c: Likewise.
66035         * lib/progname.c: Likewise.
66036         * lib/progname.h: Likewise.
66037         * lib/progreloc.c: Likewise.
66038         * lib/putenv.c: Likewise.
66039         * lib/quote.c: Likewise.
66040         * lib/quote.h: Likewise.
66041         * lib/quotearg.c: Likewise.
66042         * lib/quotearg.h: Likewise.
66043         * lib/raise.c: Likewise.
66044         * lib/readline.c: Likewise.
66045         * lib/readline.h: Likewise.
66046         * lib/readlink.c: Likewise.
66047         * lib/readtokens.c: Likewise.
66048         * lib/readtokens.h: Likewise.
66049         * lib/readtokens0.c: Likewise.
66050         * lib/readtokens0.h: Likewise.
66051         * lib/readutmp.c: Likewise.
66052         * lib/readutmp.h: Likewise.
66053         * lib/realloc.c: Likewise.
66054         * lib/relocwrapper.c: Likewise.
66055         * lib/rename-dest-slash.c: Likewise.
66056         * lib/rename.c: Likewise.
66057         * lib/rmdir.c: Likewise.
66058         * lib/rpmatch.c: Likewise.
66059         * lib/safe-read.c: Likewise.
66060         * lib/safe-read.h: Likewise.
66061         * lib/safe-write.c: Likewise.
66062         * lib/safe-write.h: Likewise.
66063         * lib/same-inode.h: Likewise.
66064         * lib/same.c: Likewise.
66065         * lib/same.h: Likewise.
66066         * lib/save-cwd.c: Likewise.
66067         * lib/save-cwd.h: Likewise.
66068         * lib/savedir.c: Likewise.
66069         * lib/savedir.h: Likewise.
66070         * lib/savewd.c: Likewise.
66071         * lib/savewd.h: Likewise.
66072         * lib/search.in.h: Likewise.
66073         * lib/setenv.c: Likewise.
66074         * lib/setenv.h: Likewise.
66075         * lib/settime.c: Likewise.
66076         * lib/sh-quote.c: Likewise.
66077         * lib/sh-quote.h: Likewise.
66078         * lib/sig2str.c: Likewise.
66079         * lib/sig2str.h: Likewise.
66080         * lib/signal.in.h: Likewise.
66081         * lib/signbitd.c: Likewise.
66082         * lib/signbitf.c: Likewise.
66083         * lib/signbitl.c: Likewise.
66084         * lib/sigprocmask.c: Likewise.
66085         * lib/sincosl.c: Likewise.
66086         * lib/sleep.c: Likewise.
66087         * lib/sprintf.c: Likewise.
66088         * lib/sqrtl.c: Likewise.
66089         * lib/stat-time.h: Likewise.
66090         * lib/stdio--.h: Likewise.
66091         * lib/stdio-safer.h: Likewise.
66092         * lib/stdlib--.h: Likewise.
66093         * lib/stdlib-safer.h: Likewise.
66094         * lib/stdlib.in.h: Likewise.
66095         * lib/stpcpy.c: Likewise.
66096         * lib/stpncpy.c: Likewise.
66097         * lib/strchrnul.c: Likewise.
66098         * lib/strcspn.c: Likewise.
66099         * lib/strerror.c: Likewise.
66100         * lib/strftime.c: Likewise.
66101         * lib/strftime.h: Likewise.
66102         * lib/striconveh.c: Likewise.
66103         * lib/striconveh.h: Likewise.
66104         * lib/striconveha.c: Likewise.
66105         * lib/striconveha.h: Likewise.
66106         * lib/stripslash.c: Likewise.
66107         * lib/strnlen1.c: Likewise.
66108         * lib/strnlen1.h: Likewise.
66109         * lib/strtod.c: Likewise.
66110         * lib/strtoimax.c: Likewise.
66111         * lib/strtok_r.c: Likewise.
66112         * lib/strtol.c: Likewise.
66113         * lib/strtoll.c: Likewise.
66114         * lib/strtoul.c: Likewise.
66115         * lib/strtoull.c: Likewise.
66116         * lib/sysexits.in.h: Likewise.
66117         * lib/tempname.c: Likewise.
66118         * lib/tempname.h: Likewise.
66119         * lib/timespec.h: Likewise.
66120         * lib/tls.c: Likewise.
66121         * lib/tls.h: Likewise.
66122         * lib/tmpdir.c: Likewise.
66123         * lib/tmpdir.h: Likewise.
66124         * lib/tmpfile-safer.c: Likewise.
66125         * lib/tmpfile.c: Likewise.
66126         * lib/trigl.c: Likewise.
66127         * lib/trigl.h: Likewise.
66128         * lib/trim.c: Likewise.
66129         * lib/trim.h: Likewise.
66130         * lib/trunc.c: Likewise.
66131         * lib/truncf.c: Likewise.
66132         * lib/truncl.c: Likewise.
66133         * lib/tsearch.c: Likewise.
66134         * lib/unicodeio.c: Likewise.
66135         * lib/unicodeio.h: Likewise.
66136         * lib/unistd--.h: Likewise.
66137         * lib/unistd-safer.h: Likewise.
66138         * lib/unistdio/ulc-fprintf.c: Likewise.
66139         * lib/unistdio/ulc-vfprintf.c: Likewise.
66140         * lib/unlinkdir.c: Likewise.
66141         * lib/unlinkdir.h: Likewise.
66142         * lib/unlocked-io.h: Likewise.
66143         * lib/unsetenv.c: Likewise.
66144         * lib/userspec.c: Likewise.
66145         * lib/utime.c: Likewise.
66146         * lib/utimecmp.c: Likewise.
66147         * lib/utimecmp.h: Likewise.
66148         * lib/utimens.c: Likewise.
66149         * lib/verify.h: Likewise.
66150         * lib/verror.c: Likewise.
66151         * lib/verror.h: Likewise.
66152         * lib/version-etc-fsf.c: Likewise.
66153         * lib/version-etc.c: Likewise.
66154         * lib/version-etc.h: Likewise.
66155         * lib/vfprintf.c: Likewise.
66156         * lib/vprintf.c: Likewise.
66157         * lib/vsprintf.c: Likewise.
66158         * lib/w32spawn.h: Likewise.
66159         * lib/wait-process.c: Likewise.
66160         * lib/wait-process.h: Likewise.
66161         * lib/wcwidth.c: Likewise.
66162         * lib/write-any-file.c: Likewise.
66163         * lib/xalloc-die.c: Likewise.
66164         * lib/xalloc.h: Likewise.
66165         * lib/xasprintf.c: Likewise.
66166         * lib/xgetcwd.c: Likewise.
66167         * lib/xgetcwd.h: Likewise.
66168         * lib/xgetdomainname.c: Likewise.
66169         * lib/xgetdomainname.h: Likewise.
66170         * lib/xgethostname.c: Likewise.
66171         * lib/xmalloc.c: Likewise.
66172         * lib/xmalloca.c: Likewise.
66173         * lib/xmalloca.h: Likewise.
66174         * lib/xmemcoll.c: Likewise.
66175         * lib/xnanosleep.c: Likewise.
66176         * lib/xreadlink.c: Likewise.
66177         * lib/xreadlink.h: Likewise.
66178         * lib/xsetenv.c: Likewise.
66179         * lib/xsetenv.h: Likewise.
66180         * lib/xstriconv.c: Likewise.
66181         * lib/xstriconv.h: Likewise.
66182         * lib/xstrndup.c: Likewise.
66183         * lib/xstrndup.h: Likewise.
66184         * lib/xstrtod.c: Likewise.
66185         * lib/xstrtod.h: Likewise.
66186         * lib/xstrtol-error.c: Likewise.
66187         * lib/xstrtol.c: Likewise.
66188         * lib/xstrtol.h: Likewise.
66189         * lib/xtime.h: Likewise.
66190         * lib/xvasprintf.c: Likewise.
66191         * lib/xvasprintf.h: Likewise.
66192         * lib/yesno.c: Likewise.
66193         * lib/yesno.h: Likewise.
66194         * posix-modules: Likewise.
66195         * tests/test-alloca-opt.c: Likewise.
66196         * tests/test-arcfour.c: Likewise.
66197         * tests/test-arctwo.c: Likewise.
66198         * tests/test-argmatch.c: Likewise.
66199         * tests/test-argp-2.sh: Likewise.
66200         * tests/test-argp.c: Likewise.
66201         * tests/test-arpa_inet.c: Likewise.
66202         * tests/test-array_list.c: Likewise.
66203         * tests/test-array_oset.c: Likewise.
66204         * tests/test-atexit.c: Likewise.
66205         * tests/test-avltree_list.c: Likewise.
66206         * tests/test-avltree_oset.c: Likewise.
66207         * tests/test-avltreehash_list.c: Likewise.
66208         * tests/test-base64.c: Likewise.
66209         * tests/test-binary-io.c: Likewise.
66210         * tests/test-byteswap.c: Likewise.
66211         * tests/test-c-ctype.c: Likewise.
66212         * tests/test-c-strcasecmp.c: Likewise.
66213         * tests/test-c-strcasestr.c: Likewise.
66214         * tests/test-c-strncasecmp.c: Likewise.
66215         * tests/test-c-strstr.c: Likewise.
66216         * tests/test-canonicalize-lgpl.c: Likewise.
66217         * tests/test-canonicalize.c: Likewise.
66218         * tests/test-carray_list.c: Likewise.
66219         * tests/test-ceilf.c: Likewise.
66220         * tests/test-ceill.c: Likewise.
66221         * tests/test-count-one-bits.c: Likewise.
66222         * tests/test-crc.c: Likewise.
66223         * tests/test-dirname.c: Likewise.
66224         * tests/test-fbufmode.c: Likewise.
66225         * tests/test-fcntl.c: Likewise.
66226         * tests/test-fflush.c: Likewise.
66227         * tests/test-floorf.c: Likewise.
66228         * tests/test-floorl.c: Likewise.
66229         * tests/test-fopen.c: Likewise.
66230         * tests/test-fprintf-posix.c: Likewise.
66231         * tests/test-fprintf-posix.h: Likewise.
66232         * tests/test-fpurge.c: Likewise.
66233         * tests/test-freadable.c: Likewise.
66234         * tests/test-freadahead.c: Likewise.
66235         * tests/test-freading.c: Likewise.
66236         * tests/test-freopen.c: Likewise.
66237         * tests/test-frexp.c: Likewise.
66238         * tests/test-frexpl.c: Likewise.
66239         * tests/test-fseek.c: Likewise.
66240         * tests/test-fseeko.c: Likewise.
66241         * tests/test-fseterr.c: Likewise.
66242         * tests/test-fstrcmp.c: Likewise.
66243         * tests/test-ftell.c: Likewise.
66244         * tests/test-ftello.c: Likewise.
66245         * tests/test-fwritable.c: Likewise.
66246         * tests/test-fwriting.c: Likewise.
66247         * tests/test-getaddrinfo.c: Likewise.
66248         * tests/test-getpass.c: Likewise.
66249         * tests/test-gettimeofday.c: Likewise.
66250         * tests/test-hmac-md5.c: Likewise.
66251         * tests/test-hmac-sha1.c: Likewise.
66252         * tests/test-iconv.c: Likewise.
66253         * tests/test-iconvme.c: Likewise.
66254         * tests/test-inttypes.c: Likewise.
66255         * tests/test-isnan.c: Likewise.
66256         * tests/test-isnanf.c: Likewise.
66257         * tests/test-isnanl-nolibm.c: Likewise.
66258         * tests/test-isnanl.c: Likewise.
66259         * tests/test-isnanl.h: Likewise.
66260         * tests/test-ldexpl.c: Likewise.
66261         * tests/test-linked_list.c: Likewise.
66262         * tests/test-linkedhash_list.c: Likewise.
66263         * tests/test-locale.c: Likewise.
66264         * tests/test-localename.c: Likewise.
66265         * tests/test-lock.c: Likewise.
66266         * tests/test-lseek.c: Likewise.
66267         * tests/test-malloca.c: Likewise.
66268         * tests/test-math.c: Likewise.
66269         * tests/test-mbscasecmp.c: Likewise.
66270         * tests/test-mbscasestr1.c: Likewise.
66271         * tests/test-mbscasestr2.c: Likewise.
66272         * tests/test-mbscasestr3.c: Likewise.
66273         * tests/test-mbscasestr4.c: Likewise.
66274         * tests/test-mbschr.c: Likewise.
66275         * tests/test-mbscspn.c: Likewise.
66276         * tests/test-mbsncasecmp.c: Likewise.
66277         * tests/test-mbspbrk.c: Likewise.
66278         * tests/test-mbspcasecmp.c: Likewise.
66279         * tests/test-mbsrchr.c: Likewise.
66280         * tests/test-mbsspn.c: Likewise.
66281         * tests/test-mbsstr1.c: Likewise.
66282         * tests/test-mbsstr2.c: Likewise.
66283         * tests/test-mbsstr3.c: Likewise.
66284         * tests/test-md5.c: Likewise.
66285         * tests/test-memmem.c: Likewise.
66286         * tests/test-netinet_in.c: Likewise.
66287         * tests/test-open.c: Likewise.
66288         * tests/test-printf-frexp.c: Likewise.
66289         * tests/test-printf-frexpl.c: Likewise.
66290         * tests/test-printf-posix.c: Likewise.
66291         * tests/test-printf-posix.h: Likewise.
66292         * tests/test-rbtree_list.c: Likewise.
66293         * tests/test-rbtree_oset.c: Likewise.
66294         * tests/test-rbtreehash_list.c: Likewise.
66295         * tests/test-read-file.c: Likewise.
66296         * tests/test-rijndael.c: Likewise.
66297         * tests/test-search.c: Likewise.
66298         * tests/test-signbit.c: Likewise.
66299         * tests/test-sleep.c: Likewise.
66300         * tests/test-snprintf-posix.c: Likewise.
66301         * tests/test-snprintf-posix.h: Likewise.
66302         * tests/test-snprintf.c: Likewise.
66303         * tests/test-sprintf-posix.c: Likewise.
66304         * tests/test-sprintf-posix.h: Likewise.
66305         * tests/test-stat-time.c: Likewise.
66306         * tests/test-stdbool.c: Likewise.
66307         * tests/test-stdint.c: Likewise.
66308         * tests/test-stdio.c: Likewise.
66309         * tests/test-stdlib.c: Likewise.
66310         * tests/test-stpncpy.c: Likewise.
66311         * tests/test-strcasestr.c: Likewise.
66312         * tests/test-striconv.c: Likewise.
66313         * tests/test-striconveh.c: Likewise.
66314         * tests/test-striconveha.c: Likewise.
66315         * tests/test-string.c: Likewise.
66316         * tests/test-sys_select.c: Likewise.
66317         * tests/test-sys_socket.c: Likewise.
66318         * tests/test-sys_stat.c: Likewise.
66319         * tests/test-sys_time.c: Likewise.
66320         * tests/test-sysexits.c: Likewise.
66321         * tests/test-time.c: Likewise.
66322         * tests/test-tls.c: Likewise.
66323         * tests/test-trunc.c: Likewise.
66324         * tests/test-truncf.c: Likewise.
66325         * tests/test-truncl.c: Likewise.
66326         * tests/test-unistd.c: Likewise.
66327         * tests/test-vasnprintf-posix.c: Likewise.
66328         * tests/test-vasnprintf-posix2.c: Likewise.
66329         * tests/test-vasnprintf.c: Likewise.
66330         * tests/test-vasprintf-posix.c: Likewise.
66331         * tests/test-vasprintf.c: Likewise.
66332         * tests/test-verify.c: Likewise.
66333         * tests/test-vfprintf-posix.c: Likewise.
66334         * tests/test-vprintf-posix.c: Likewise.
66335         * tests/test-vsnprintf-posix.c: Likewise.
66336         * tests/test-vsnprintf.c: Likewise.
66337         * tests/test-vsprintf-posix.c: Likewise.
66338         * tests/test-wchar.c: Likewise.
66339         * tests/test-wctype.c: Likewise.
66340         * tests/test-wcwidth.c: Likewise.
66341         * tests/test-xstrtol.c: Likewise.
66342         * tests/test-xvasprintf.c: Likewise.
66343         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66344         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66345         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66346         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66347         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66348         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66349         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66350         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66351         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66352         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66353         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66354         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66355         * tests/uniname/test-uninames.c: Likewise.
66356         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66357         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66358         * tests/unistdio/test-u16-printf1.h: Likewise.
66359         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66360         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66361         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66362         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66363         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66364         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66365         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66366         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66367         * tests/unistdio/test-u32-printf1.h: Likewise.
66368         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66369         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66370         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66371         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66372         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66373         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66374         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66375         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66376         * tests/unistdio/test-u8-printf1.h: Likewise.
66377         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66378         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66379         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66380         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66381         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66382         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66383         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66384         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66385         * tests/unistdio/test-ulc-printf1.h: Likewise.
66386         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66387         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66388         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66389         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66390         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66391         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66392         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66393         * tests/uniwidth/test-u16-width.c: Likewise.
66394         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66395         * tests/uniwidth/test-u32-width.c: Likewise.
66396         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66397         * tests/uniwidth/test-u8-width.c: Likewise.
66398         * tests/uniwidth/test-uc_width.c: Likewise.
66399         * config/srclist-update: Likewise.
66400         (fixlicense): Update to GPLv3+.
66401
66402         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66403         * tests/test-tsearch.c: Change copyright notice.
66404
66405         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66406         * lib/c-strcaseeq.h: Change copyright notice.
66407         * lib/streq.h: Likewise.
66408         * lib/uniconv.h: Likewise.
66409         * lib/uniconv/u-conv-from-enc.h: Likewise.
66410         * lib/uniconv/u-conv-to-enc.h: Likewise.
66411         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66412         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66413         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66414         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66415         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66416         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66417         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66418         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66419         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66420         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66421         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66422         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66423         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66424         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66425         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66426         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66427         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66428         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66429         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66430         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66431         * lib/uniname.h: Likewise.
66432         * lib/uniname/uniname.c: Likewise.
66433         * lib/unistdio.h: Likewise.
66434         * lib/unistdio/u-asnprintf.h: Likewise.
66435         * lib/unistdio/u-asprintf.h: Likewise.
66436         * lib/unistdio/u-printf-args.c: Likewise.
66437         * lib/unistdio/u-printf-args.h: Likewise.
66438         * lib/unistdio/u-printf-parse.h: Likewise.
66439         * lib/unistdio/u-snprintf.h: Likewise.
66440         * lib/unistdio/u-sprintf.h: Likewise.
66441         * lib/unistdio/u-vasprintf.h: Likewise.
66442         * lib/unistdio/u-vsnprintf.h: Likewise.
66443         * lib/unistdio/u-vsprintf.h: Likewise.
66444         * lib/unistdio/u16-asnprintf.c: Likewise.
66445         * lib/unistdio/u16-asprintf.c: Likewise.
66446         * lib/unistdio/u16-printf-parse.c: Likewise.
66447         * lib/unistdio/u16-snprintf.c: Likewise.
66448         * lib/unistdio/u16-sprintf.c: Likewise.
66449         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66450         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66451         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66452         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66453         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66454         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66455         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66456         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66457         * lib/unistdio/u16-vasnprintf.c: Likewise.
66458         * lib/unistdio/u16-vasprintf.c: Likewise.
66459         * lib/unistdio/u16-vsnprintf.c: Likewise.
66460         * lib/unistdio/u16-vsprintf.c: Likewise.
66461         * lib/unistdio/u32-asnprintf.c: Likewise.
66462         * lib/unistdio/u32-asprintf.c: Likewise.
66463         * lib/unistdio/u32-printf-parse.c: Likewise.
66464         * lib/unistdio/u32-snprintf.c: Likewise.
66465         * lib/unistdio/u32-sprintf.c: Likewise.
66466         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66467         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66468         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66469         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66470         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66471         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66472         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66473         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66474         * lib/unistdio/u32-vasnprintf.c: Likewise.
66475         * lib/unistdio/u32-vasprintf.c: Likewise.
66476         * lib/unistdio/u32-vsnprintf.c: Likewise.
66477         * lib/unistdio/u32-vsprintf.c: Likewise.
66478         * lib/unistdio/u8-asnprintf.c: Likewise.
66479         * lib/unistdio/u8-asprintf.c: Likewise.
66480         * lib/unistdio/u8-printf-parse.c: Likewise.
66481         * lib/unistdio/u8-snprintf.c: Likewise.
66482         * lib/unistdio/u8-sprintf.c: Likewise.
66483         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66484         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66485         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66486         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66487         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66488         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66489         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66490         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66491         * lib/unistdio/u8-vasnprintf.c: Likewise.
66492         * lib/unistdio/u8-vasprintf.c: Likewise.
66493         * lib/unistdio/u8-vsnprintf.c: Likewise.
66494         * lib/unistdio/u8-vsprintf.c: Likewise.
66495         * lib/unistdio/ulc-asnprintf.c: Likewise.
66496         * lib/unistdio/ulc-asprintf.c: Likewise.
66497         * lib/unistdio/ulc-printf-parse.c: Likewise.
66498         * lib/unistdio/ulc-snprintf.c: Likewise.
66499         * lib/unistdio/ulc-sprintf.c: Likewise.
66500         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66501         * lib/unistdio/ulc-vasprintf.c: Likewise.
66502         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66503         * lib/unistdio/ulc-vsprintf.c: Likewise.
66504         * lib/unistr.h: Likewise.
66505         * lib/unistr/u-cpy-alloc.h: Likewise.
66506         * lib/unistr/u-cpy.h: Likewise.
66507         * lib/unistr/u-endswith.h: Likewise.
66508         * lib/unistr/u-move.h: Likewise.
66509         * lib/unistr/u-set.h: Likewise.
66510         * lib/unistr/u-startswith.h: Likewise.
66511         * lib/unistr/u-stpcpy.h: Likewise.
66512         * lib/unistr/u-stpncpy.h: Likewise.
66513         * lib/unistr/u-strcat.h: Likewise.
66514         * lib/unistr/u-strcpy.h: Likewise.
66515         * lib/unistr/u-strcspn.h: Likewise.
66516         * lib/unistr/u-strdup.h: Likewise.
66517         * lib/unistr/u-strlen.h: Likewise.
66518         * lib/unistr/u-strncat.h: Likewise.
66519         * lib/unistr/u-strncpy.h: Likewise.
66520         * lib/unistr/u-strnlen.h: Likewise.
66521         * lib/unistr/u-strpbrk.h: Likewise.
66522         * lib/unistr/u-strspn.h: Likewise.
66523         * lib/unistr/u-strstr.h: Likewise.
66524         * lib/unistr/u-strtok.h: Likewise.
66525         * lib/unistr/u16-check.c: Likewise.
66526         * lib/unistr/u16-chr.c: Likewise.
66527         * lib/unistr/u16-cmp.c: Likewise.
66528         * lib/unistr/u16-cpy-alloc.c: Likewise.
66529         * lib/unistr/u16-cpy.c: Likewise.
66530         * lib/unistr/u16-endswith.c: Likewise.
66531         * lib/unistr/u16-mblen.c: Likewise.
66532         * lib/unistr/u16-mbsnlen.c: Likewise.
66533         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66534         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66535         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66536         * lib/unistr/u16-mbtouc.c: Likewise.
66537         * lib/unistr/u16-mbtoucr.c: Likewise.
66538         * lib/unistr/u16-move.c: Likewise.
66539         * lib/unistr/u16-next.c: Likewise.
66540         * lib/unistr/u16-prev.c: Likewise.
66541         * lib/unistr/u16-set.c: Likewise.
66542         * lib/unistr/u16-startswith.c: Likewise.
66543         * lib/unistr/u16-stpcpy.c: Likewise.
66544         * lib/unistr/u16-stpncpy.c: Likewise.
66545         * lib/unistr/u16-strcat.c: Likewise.
66546         * lib/unistr/u16-strchr.c: Likewise.
66547         * lib/unistr/u16-strcmp.c: Likewise.
66548         * lib/unistr/u16-strcpy.c: Likewise.
66549         * lib/unistr/u16-strcspn.c: Likewise.
66550         * lib/unistr/u16-strdup.c: Likewise.
66551         * lib/unistr/u16-strlen.c: Likewise.
66552         * lib/unistr/u16-strmblen.c: Likewise.
66553         * lib/unistr/u16-strmbtouc.c: Likewise.
66554         * lib/unistr/u16-strncat.c: Likewise.
66555         * lib/unistr/u16-strncmp.c: Likewise.
66556         * lib/unistr/u16-strncpy.c: Likewise.
66557         * lib/unistr/u16-strnlen.c: Likewise.
66558         * lib/unistr/u16-strpbrk.c: Likewise.
66559         * lib/unistr/u16-strrchr.c: Likewise.
66560         * lib/unistr/u16-strspn.c: Likewise.
66561         * lib/unistr/u16-strstr.c: Likewise.
66562         * lib/unistr/u16-strtok.c: Likewise.
66563         * lib/unistr/u16-to-u32.c: Likewise.
66564         * lib/unistr/u16-to-u8.c: Likewise.
66565         * lib/unistr/u16-uctomb-aux.c: Likewise.
66566         * lib/unistr/u16-uctomb.c: Likewise.
66567         * lib/unistr/u32-check.c: Likewise.
66568         * lib/unistr/u32-chr.c: Likewise.
66569         * lib/unistr/u32-cmp.c: Likewise.
66570         * lib/unistr/u32-cpy-alloc.c: Likewise.
66571         * lib/unistr/u32-cpy.c: Likewise.
66572         * lib/unistr/u32-endswith.c: Likewise.
66573         * lib/unistr/u32-mblen.c: Likewise.
66574         * lib/unistr/u32-mbsnlen.c: Likewise.
66575         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66576         * lib/unistr/u32-mbtouc.c: Likewise.
66577         * lib/unistr/u32-mbtoucr.c: Likewise.
66578         * lib/unistr/u32-move.c: Likewise.
66579         * lib/unistr/u32-next.c: Likewise.
66580         * lib/unistr/u32-prev.c: Likewise.
66581         * lib/unistr/u32-set.c: Likewise.
66582         * lib/unistr/u32-startswith.c: Likewise.
66583         * lib/unistr/u32-stpcpy.c: Likewise.
66584         * lib/unistr/u32-stpncpy.c: Likewise.
66585         * lib/unistr/u32-strcat.c: Likewise.
66586         * lib/unistr/u32-strchr.c: Likewise.
66587         * lib/unistr/u32-strcmp.c: Likewise.
66588         * lib/unistr/u32-strcpy.c: Likewise.
66589         * lib/unistr/u32-strcspn.c: Likewise.
66590         * lib/unistr/u32-strdup.c: Likewise.
66591         * lib/unistr/u32-strlen.c: Likewise.
66592         * lib/unistr/u32-strmblen.c: Likewise.
66593         * lib/unistr/u32-strmbtouc.c: Likewise.
66594         * lib/unistr/u32-strncat.c: Likewise.
66595         * lib/unistr/u32-strncmp.c: Likewise.
66596         * lib/unistr/u32-strncpy.c: Likewise.
66597         * lib/unistr/u32-strnlen.c: Likewise.
66598         * lib/unistr/u32-strpbrk.c: Likewise.
66599         * lib/unistr/u32-strrchr.c: Likewise.
66600         * lib/unistr/u32-strspn.c: Likewise.
66601         * lib/unistr/u32-strstr.c: Likewise.
66602         * lib/unistr/u32-strtok.c: Likewise.
66603         * lib/unistr/u32-to-u16.c: Likewise.
66604         * lib/unistr/u32-to-u8.c: Likewise.
66605         * lib/unistr/u32-uctomb.c: Likewise.
66606         * lib/unistr/u8-check.c: Likewise.
66607         * lib/unistr/u8-chr.c: Likewise.
66608         * lib/unistr/u8-cmp.c: Likewise.
66609         * lib/unistr/u8-cpy-alloc.c: Likewise.
66610         * lib/unistr/u8-cpy.c: Likewise.
66611         * lib/unistr/u8-endswith.c: Likewise.
66612         * lib/unistr/u8-mblen.c: Likewise.
66613         * lib/unistr/u8-mbsnlen.c: Likewise.
66614         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66615         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66616         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66617         * lib/unistr/u8-mbtouc.c: Likewise.
66618         * lib/unistr/u8-mbtoucr.c: Likewise.
66619         * lib/unistr/u8-move.c: Likewise.
66620         * lib/unistr/u8-next.c: Likewise.
66621         * lib/unistr/u8-prev.c: Likewise.
66622         * lib/unistr/u8-set.c: Likewise.
66623         * lib/unistr/u8-startswith.c: Likewise.
66624         * lib/unistr/u8-stpcpy.c: Likewise.
66625         * lib/unistr/u8-stpncpy.c: Likewise.
66626         * lib/unistr/u8-strcat.c: Likewise.
66627         * lib/unistr/u8-strchr.c: Likewise.
66628         * lib/unistr/u8-strcmp.c: Likewise.
66629         * lib/unistr/u8-strcpy.c: Likewise.
66630         * lib/unistr/u8-strcspn.c: Likewise.
66631         * lib/unistr/u8-strdup.c: Likewise.
66632         * lib/unistr/u8-strlen.c: Likewise.
66633         * lib/unistr/u8-strmblen.c: Likewise.
66634         * lib/unistr/u8-strmbtouc.c: Likewise.
66635         * lib/unistr/u8-strncat.c: Likewise.
66636         * lib/unistr/u8-strncmp.c: Likewise.
66637         * lib/unistr/u8-strncpy.c: Likewise.
66638         * lib/unistr/u8-strnlen.c: Likewise.
66639         * lib/unistr/u8-strpbrk.c: Likewise.
66640         * lib/unistr/u8-strrchr.c: Likewise.
66641         * lib/unistr/u8-strspn.c: Likewise.
66642         * lib/unistr/u8-strstr.c: Likewise.
66643         * lib/unistr/u8-strtok.c: Likewise.
66644         * lib/unistr/u8-to-u16.c: Likewise.
66645         * lib/unistr/u8-to-u32.c: Likewise.
66646         * lib/unistr/u8-uctomb-aux.c: Likewise.
66647         * lib/unistr/u8-uctomb.c: Likewise.
66648         * lib/unitypes.h: Likewise.
66649         * lib/uniwidth.h: Likewise.
66650         * lib/uniwidth/cjk.h: Likewise.
66651         * lib/uniwidth/u16-strwidth.c: Likewise.
66652         * lib/uniwidth/u16-width.c: Likewise.
66653         * lib/uniwidth/u32-strwidth.c: Likewise.
66654         * lib/uniwidth/u32-width.c: Likewise.
66655         * lib/uniwidth/u8-strwidth.c: Likewise.
66656         * lib/uniwidth/u8-width.c: Likewise.
66657         * lib/uniwidth/width.c: Likewise.
66658
66659 2007-10-07  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66662         The file is still under LGPL (see modules/inttypes).
66663
66664 2007-10-06  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/trunc (Dependencies): Add 'extensions'.
66667         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66668         Reported by Ben Pfaff <blp@gnu.org>.
66669
66670 2007-10-06  Bruno Haible  <bruno@clisp.org>
66671
66672         * modules/freopen-tests: New file.
66673         * tests/test-freopen.c: New file.
66674
66675         * modules/fopen-tests: New file.
66676         * tests/test-fopen.c: New file.
66677
66678         * modules/fopen: New file.
66679         * lib/fopen.c: New file.
66680         * m4/fopen.m4: New file.
66681         * modules/freopen: New file.
66682         * lib/freopen.c: New file.
66683         * m4/freopen.m4: New file.
66684         * lib/stdio.in.h (fopen, freopen): New declarations.
66685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66686         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66687         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66688         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66689         * doc/functions/fopen.texi: Mention the 'fopen' module.
66690         * doc/functions/freopen.texi: Mention the 'freopen' module.
66691
66692 2007-10-06  Bruno Haible  <bruno@clisp.org>
66693
66694         * modules/open-tests: New file.
66695         * tests/test-open.c: New file.
66696
66697         * modules/open: New file.
66698         * lib/open.c: New file.
66699         * m4/open.m4: New file.
66700         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66701         lib/open.c does.
66702         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66703         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66704         macros.
66705         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66706         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66707         REPLACE_OPEN.
66708         * doc/functions/open.texi: Mention the 'open' module.
66709
66710 2007-10-04  Bruno Haible  <bruno@clisp.org>
66711
66712         * modules/ceill-tests: New file.
66713         * tests/test-ceill.c: New file.
66714
66715         * modules/ceill: New file.
66716         * lib/ceill.c: Replace entire file.
66717         * m4/ceill.m4: New file.
66718         * lib/math.in.h (ceill): Replace declaration.
66719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66720         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66721         * doc/functions/ceill.texi: Mention the 'ceill' module.
66722         * modules/mathl (Files): Remove lib/ceill.c.
66723         (Depends-on): Add ceill.
66724
66725 2007-10-04  Bruno Haible  <bruno@clisp.org>
66726
66727         * modules/ceilf-tests: New file.
66728         * tests/test-ceilf.c: New file.
66729
66730         * modules/ceilf: New file.
66731         * lib/ceil.c: New file.
66732         * lib/ceilf.c: New file.
66733         * m4/ceilf.m4: New file.
66734         * lib/math.in.h (ceilf): New declaration.
66735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66736         HAVE_DECL_CEILF.
66737         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66738         HAVE_DECL_CEILF.
66739         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66740
66741 2007-10-04  Bruno Haible  <bruno@clisp.org>
66742
66743         * modules/floorl-tests: New file.
66744         * tests/test-floorl.c: New file.
66745
66746         * modules/floorl: New file.
66747         * lib/floorl.c: Replace entire file.
66748         * m4/floorl.m4: New file.
66749         * lib/math.in.h (floorl): Replace declaration.
66750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66751         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66752         * doc/functions/floorl.texi: Mention the 'floorl' module.
66753         * modules/mathl (Files): Remove lib/floorl.c.
66754         (Depends-on): Add floorl.
66755
66756 2007-10-04  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/floorf-tests: New file.
66759         * tests/test-floorf.c: New file.
66760
66761         * modules/floorf: New file.
66762         * lib/floor.c: New file.
66763         * lib/floorf.c: New file.
66764         * m4/floorf.m4: New file.
66765         * lib/math.in.h (floorf): New declaration.
66766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66767         HAVE_DECL_FLOORF.
66768         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66769         HAVE_DECL_FLOORF.
66770         * doc/functions/floorf.texi: Mention the 'floorf' module.
66771
66772 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66773             Bruno Haible  <bruno@clisp.org>
66774
66775         Advertise for the Git server instead of the CVS server.
66776         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66777         repository instead of the CVS one.
66778         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66779         about all VCS systems generically.
66780         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66781
66782 2007-10-04  Bruno Haible  <bruno@clisp.org>
66783
66784         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66785         means.
66786         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66787
66788 2007-10-04  Bruno Haible  <bruno@clisp.org>
66789
66790         * modules/truncl-tests: New file.
66791         * tests/test-truncl.c: New file.
66792
66793         * modules/truncl: New file.
66794         * lib/truncl.c: New file.
66795         * m4/truncl.m4: New file.
66796         * lib/math.in.h (truncl): New declaration.
66797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66798         HAVE_DECL_TRUNCL.
66799         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66800         HAVE_DECL_TRUNCL.
66801         * doc/functions/truncl.texi: Mention the 'truncl' module.
66802
66803 2007-10-04  Bruno Haible  <bruno@clisp.org>
66804
66805         * modules/truncf-tests: New file.
66806         * tests/test-truncf.c: New file.
66807
66808         * modules/truncf: New file.
66809         * lib/trunc.c: Make paramerizable through USE_* macros.
66810         * lib/truncf.c: New file.
66811         * m4/truncf.m4: New file.
66812         * lib/math.in.h (truncf): New declaration.
66813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66814         HAVE_DECL_TRUNCF.
66815         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66816         HAVE_DECL_TRUNCF.
66817         * doc/functions/truncf.texi: Mention the 'truncf' module.
66818
66819 2007-10-03  Bruno Haible  <bruno@clisp.org>
66820
66821         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66822         augmentation also for tests modules.
66823         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66824         * modules/atexit-tests (Makefile.am): Likewise.
66825         * modules/binary-io-tests (Makefile.am): Likewise.
66826         * modules/c-strcase-tests (Makefile.am): Likewise.
66827         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66828         * modules/canonicalize-tests (Makefile.am): Likewise.
66829         * modules/closein-tests (Makefile.am): Likewise.
66830         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66831         * modules/freadahead-tests (Makefile.am): Likewise.
66832         * modules/fseek-tests (Makefile.am): Likewise.
66833         * modules/fseeko-tests (Makefile.am): Likewise.
66834         * modules/ftell-tests (Makefile.am): Likewise.
66835         * modules/ftello-tests (Makefile.am): Likewise.
66836         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66837         * modules/isnanl-tests (Makefile.am): Likewise.
66838         * modules/lseek-tests (Makefile.am): Likewise.
66839         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66840         * modules/mbscasestr-tests (Makefile.am): Likewise.
66841         * modules/mbschr-tests (Makefile.am): Likewise.
66842         * modules/mbscspn-tests (Makefile.am): Likewise.
66843         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66844         * modules/mbspbrk-tests (Makefile.am): Likewise.
66845         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66846         * modules/mbsrchr-tests (Makefile.am): Likewise.
66847         * modules/mbsspn-tests (Makefile.am): Likewise.
66848         * modules/mbsstr-tests (Makefile.am): Likewise.
66849         * modules/printf-posix-tests (Makefile.am): Likewise.
66850         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66851         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66852         * modules/tsearch-tests (Makefile.am): Likewise.
66853         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66854         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66855         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66856         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66857         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66858         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66859         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66860         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66861         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66862         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66863         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66864         * modules/xstrtol-tests (Makefile.am): Likewise.
66865         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66866         * modules/yesno-tests (Makefile.am): Likewise.
66867
66868 2007-10-03  Bruno Haible  <bruno@clisp.org>
66869
66870         * modules/trunc-tests: New file.
66871         * tests/test-trunc.c: New file.
66872
66873         * modules/trunc: New file.
66874         * lib/trunc.c: New file.
66875         * m4/trunc.m4: New file.
66876         * lib/math.in.h (trunc): New declaration.
66877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66878         HAVE_DECL_TRUNC.
66879         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66880         HAVE_DECL_TRUNC.
66881         * doc/functions/trunc.texi: Mention the 'trunc' module.
66882
66883 2007-10-03  Bruno Haible  <bruno@clisp.org>
66884
66885         * tests/test-fpending.c: New file, mostly copied
66886         from coreutils/lib/t-fpending.c.
66887         * modules/fpending-tests: New file.
66888
66889 2007-10-03  Bruno Haible  <bruno@clisp.org>
66890
66891         Port the stdio extensions to QNX (untested).
66892         * lib/fseterr.c (fseterr): Add support for QNX.
66893         * lib/fbufmode.c (fbufmode): Likewise.
66894         * lib/freadable.c (freadable): Likewise.
66895         * lib/fwritable.c (fwritable): Likewise.
66896         * lib/freading.c (freading): Likewise.
66897         * lib/fwriting.c (fwriting): Likewise.
66898         * lib/freadahead.c (freadahed): Likewise.
66899         * lib/fpurge.c (fpurge): Likewise.
66900         * lib/fseeko.c (rpl_fseeko): Likewise.
66901
66902 2007-10-03  Bruno Haible  <bruno@clisp.org>
66903             Jim Meyering  <jim@meyering.net>
66904             Eric Blake  <ebb9@byu.net>
66905
66906         * doc/relocatable.texi: Use @command instead of @program.
66907
66908 2007-10-02  Jim Meyering  <jim@meyering.net>
66909
66910         Perform one more "_.h" -> ".in.h" substitution.
66911         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66912         instead of unistd_.h here, too.
66913
66914 2007-10-01  Bruno Haible  <bruno@clisp.org>
66915
66916         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66917         Needed for the alloca-opt module.
66918
66919 2007-09-30  Bruno Haible  <bruno@clisp.org>
66920
66921         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66922         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66923         alloca_.h.
66924         * lib/argz.in.h: Renamed from lib/argz_.h.
66925         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66926         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66927         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66928         byteswap_.h.
66929         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66930         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66931         dirent_.h.
66932         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66933         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66934         fcntl_.h.
66935         * lib/float.in.h: Renamed from lib/float_.h.
66936         * modules/float (Files, Makefile.am): Use float.in.h instead of
66937         float_.h.
66938         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66939         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66940         fnmatch_.h.
66941         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66942         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66943         getopt_.h.
66944         * lib/glob.in.h: Renamed from lib/glob_.h.
66945         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66946         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66947         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66948         iconv_.h.
66949         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66950         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66951         inttypes_.h.
66952         * lib/locale.in.h: Renamed from lib/locale_.h.
66953         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66954         locale_.h.
66955         * lib/math.in.h: Renamed from lib/math_.h.
66956         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66957         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66958         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66959         of netinet_in_.h. Add dependency.
66960         * lib/poll.in.h: Renamed from lib/poll_.h.
66961         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66962         * lib/search.in.h: Renamed from lib/search_.h.
66963         * modules/search (Files, Makefile.am): Use search.in.h instead of
66964         search_.h.
66965         * lib/signal.in.h: Renamed from lib/signal_.h.
66966         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66967         _signal.h.
66968         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66969         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66970         stdbool_.h.
66971         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66972         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66973         stdint_.h.
66974         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66975         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66976         stdio_.h.
66977         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66978         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66979         stdlib_.h.
66980         * lib/string.in.h: Renamed from lib/string_.h.
66981         * modules/string (Files, Makefile.am): Use string.in.h instead of
66982         string_.h.
66983         * doc/gnulib-tool.texi (Initial import): Update.
66984         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66985         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66986         of sys_select_.h. Add dependency.
66987         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66988         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66989         of sys_socket_.h.
66990         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66991         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66992         sys_stat_.h.
66993         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66994         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66995         sys_time_.h.
66996         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66997         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66998         sysexits_.h.
66999         * lib/time.in.h: Renamed from lib/time_.h.
67000         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67001         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67002         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67003         unistd_.h.
67004         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67005         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67006         wchar_.h.
67007         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67008         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67009         wctype_.h.
67010         * build-aux/bootstrap (slurp): Update.
67011         * lib/.cppi-disable: Update.
67012
67013 2007-09-30  Bruno Haible  <bruno@clisp.org>
67014
67015         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67016         Needed on BeOS.
67017
67018 2007-09-30  Bruno Haible  <bruno@clisp.org>
67019
67020         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67021
67022 2007-09-29  Bruno Haible  <bruno@clisp.org>
67023
67024         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67025
67026 2007-09-29  Bruno Haible  <bruno@clisp.org>
67027
67028         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67029         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67030         * build-aux/install-reloc: Compile also areadlink.c.
67031         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67032
67033 2007-09-29  Bruno Haible  <bruno@clisp.org>
67034
67035         * gnulib-tool (func_emit_initmacro_done): Indentation.
67036
67037 2007-09-29  Bruno Haible  <bruno@clisp.org>
67038
67039         * README: Add CVS checkout update instructions.
67040         Info from Bob Proulx <bob@proulx.com>.
67041
67042 2007-09-28  Eric Blake  <ebb9@byu.net>
67043
67044         Provide move-if-change.
67045         * build-aux/move-if-change: New file, based on best practice
67046         rather than any canonical upstream location.
67047
67048 2007-09-28  Jim Meyering  <jim@meyering.net>
67049
67050         Fix canonicalize loop-detection corner case.
67051         Do not attempt to stat the symlink values stored via seen_triple.
67052         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67053         on linux-2.6.18, (but not 2.6.22).
67054         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67055         triple_compare.  The former compares dev,ino,filename, while the latter
67056         would actually stat dirname(filename) when dev and ino were equal.
67057         * lib/hash-triple.c: Install <string.h>.
67058         (STREQ): Define.
67059         (triple_compare_ino_str): New function.
67060         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67061
67062 2007-09-28  Eric Blake  <ebb9@byu.net>
67063
67064         Enforce that AC_REPLACE_FUNCS files exist.
67065         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67066         override check for typos.
67067
67068         Fix test-closein on Solaris 10.
67069         * tests/test-closein.c (main): Don't assume stdin can be inherited
67070         closed on all systems.
67071         * tests/test-closein.sh: Likewise.
67072         Reported by Piotr Tarnowski.
67073
67074 2007-09-28  Jim Meyering  <jim@meyering.net>
67075
67076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67077
67078 2007-09-27  Jim Meyering  <jim@meyering.net>
67079
67080         canonicalize: Avoid a false-positive cycle failure.
67081         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67082         Sort.  Remove cycle-check.
67083         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67084         not cycle-check.h.
67085         (seen_triple): New function.
67086         (canonicalize_filename_mode): Use it instead of cycle-check.
67087         * tests/test-canonicalize.c: Add a test for this bug.
67088         * tests/test-canonicalize.sh: Set up and run the test.
67089
67090         New module, file-set, from coreutils.
67091         * modules/file-set: Define it.
67092         * lib/file-set.c, lib/file-set.h: Implement.
67093
67094         New module, hash-triple, from coreutils.
67095         * modules/hash-triple: Define it.
67096         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67097
67098 2007-09-25  Eric Blake  <ebb9@byu.net>
67099
67100         Fix strerror on Interix.
67101         * lib/string_.h (strerror): Declare replacement.
67102         * doc/functions/strerror.texi (strerror): Document the Interix
67103         shortcoming.
67104         * modules/string (Makefile.am): Support new hooks.
67105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67106         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67107         gl_FUNC_STRERROR_SEPARATE.
67108         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67109         * lib/strerror.c (rpl_strerror): Provide replacement.
67110         * modules/strerror (Depends-on): Add string.
67111         (configure.ac): Detect use of module.
67112         * tests/test-strerror.c: New file.
67113         * modules/strerror-tests: New test module.
67114         * modules/argp (Depends-on): Add strerror.
67115         * modules/error (Depends-on): Likewise.
67116         Reported by Martin Koeppe.
67117
67118 2007-09-24  Bruno Haible  <bruno@clisp.org>
67119
67120         * README: Update git instructions.
67121
67122 2007-09-24  Eric Blake  <ebb9@byu.net>
67123
67124         Revert fpending breakage from 2007-09-08.
67125         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67126         __fpending.c.
67127
67128 2007-09-24  Jim Meyering  <jim@meyering.net>
67129
67130         filenamecat.c: Add a test.
67131         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67132         showing how the function works when DIR is the empty string.
67133
67134 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67135
67136         * tests/test-canonicalize.sh: Turn on executable bit.
67137
67138 2007-09-19  Eric Blake  <ebb9@byu.net>
67139
67140         * README: Update CVS instructions.
67141
67142 2007-09-18  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/areadlink: New file.
67145         * lib/areadlink.h (areadlink): New declaration.
67146         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67147
67148 2007-09-17  Jim Meyering  <jim@meyering.net>
67149
67150         * lib/savewd.c (ESTALE) [!defined]: Define.
67151         Reported to be required on Interix by Martin Koeppe.
67152
67153 2007-09-17  Bruno Haible  <bruno@clisp.org>
67154
67155         * gnulib-tool (func_version): Use $version.
67156
67157 2007-09-16  Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67160         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67161         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67162         Reported by Greg Schafer <gschafer@zip.com.au>.
67163
67164 2007-09-15  Bruno Haible  <bruno@clisp.org>
67165
67166         * gnulib-tool (sed): Try a little harder to make bash understand the
67167         alias.
67168         Reported by Bruce Korb <bruce.korb@gmail.com>.
67169
67170 2007-09-13  Eric Blake  <ebb9@byu.net>
67171
67172         * ChangeLog: Remove conflict markers.
67173
67174 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67175
67176         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67177         Reported by Bruno Haible <bruno@clisp.org>.
67178
67179 2007-09-12  Bruno Haible  <bruno@clisp.org>
67180
67181         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67182         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67183         is not defined.
67184
67185 2007-09-12  Eric Blake  <ebb9@byu.net>
67186
67187         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67188         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67189         Autoconf definition.
67190         * modules/euidaccess (Depends-on): Add extensions, for
67191         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67192         * modules/fnmatch (Depends-on): Likewise.
67193         * modules/getaddrinfo (Depends-on): Likewise.
67194         * modules/getdelim (Depends-on): Likewise.
67195         * modules/getline (Depends-on): Likewise.
67196         * modules/getsubopt (Depends-on): Likewise.
67197         * modules/gettext (Depends-on): Likewise.
67198         * modules/group-member (Depends-on): Likewise.
67199         * modules/mbchar (Depends-on): Likewise.
67200         * modules/memmem (Depends-on): Likewise.
67201         * modules/mempcpy (Depends-on): Likewise.
67202         * modules/memrchr (Depends-on): Likewise.
67203         * modules/pagealign_alloc (Depends-on): Likewise.
67204         * modules/readutmp (Depends-on): Likewise.
67205         * modules/stpcpy (Depends-on): Likewise.
67206         * modules/stpncpy (Depends-on): Likewise.
67207         * modules/strchrnul (Depends-on): Likewise.
67208         * modules/strndup (Depends-on): Likewise.
67209         * modules/strsep (Depends-on): Likewise.
67210         * modules/strverscmp (Depends-on): Likewise.
67211         * modules/vasprintf (Depends-on): Likewise.
67212         * modules/wcwidth (Depends-on): Likewise.
67213         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67214         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67215         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67217         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67218         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67219         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67220         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67221         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67222         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67224         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67226         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67227         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67228         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67229         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67230         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67232         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67235         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67236         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67237         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67239         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67240         so that lock.m4 can be used in gettext without extensions module.
67241
67242 2007-09-11  Bruno Haible  <bruno@clisp.org>
67243
67244         * m4/isc-posix.m4: Remove file.
67245         Suggested by Eric Blake.
67246
67247 2007-09-11  Eric Blake  <ebb9@byu.net>
67248
67249         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67250
67251 2007-09-10  Bruno Haible  <bruno@clisp.org>
67252
67253         * posix-modules: Fix typo in error message.
67254         Reported by Matt <mkraai@beckman.com>.
67255
67256 2007-09-09  Bruno Haible  <bruno@clisp.org>
67257
67258         * doc/functions/getdelim.texi: Update list of platforms lacking the
67259         function.
67260         * doc/functions/getline.texi: Likewise.
67261
67262 2007-09-09  Jim Meyering  <jim@meyering.net>
67263
67264         * lib/hash.c (hash_initialize): Detect calloc failure.
67265         Reported by Bruno Haible.
67266
67267 2007-09-09  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67270         malloc or realloc fails.
67271
67272 2007-09-09  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/getcwd (Depends-on): Add malloc-posix.
67275         * modules/glob (Depends-on): Likewise.
67276         * modules/putenv (Depends-on): Likewise.
67277         * modules/strdup (Depends-on): Likewise.
67278         * modules/getdelim (Depends-on): Add realloc-posix.
67279         * modules/read-file (Depends-on): Likewise.
67280
67281 2007-09-09  Bruno Haible  <bruno@clisp.org>
67282
67283         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67284         (gl_FUNC_MALLOC_POSIX): Require it.
67285         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67286         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67287         * modules/realloc (Files): Add m4/malloc.m4.
67288         * modules/calloc (Files): Likewise.
67289
67290 2007-09-09  Bruno Haible  <bruno@clisp.org>
67291
67292         * modules/malloc-posix: New file.
67293         * modules/malloc (Depends-on): Add malloc-posix.
67294         * lib/malloc.c: Include errno.h.
67295         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67296         and a POSIX-compatible malloc into a single function. Set ENOMEM
67297         when returning NULL.
67298         * m4/malloc.m4: New file.
67299         * doc/functions/malloc.texi: Mention the malloc-posix module.
67300         * lib/stdlib_.h (malloc): New declaration.
67301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67302         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67303         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67304         and HAVE_MALLOC_POSIX.
67305
67306 2007-09-09  Bruno Haible  <bruno@clisp.org>
67307
67308         * modules/realloc-posix: New file.
67309         * modules/realloc (Depends-on): Add realloc-posix.
67310         * lib/realloc.c: Include errno.h.
67311         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67312         and a POSIX-compatible realloc into a single function. Set ENOMEM
67313         when returning NULL.
67314         * m4/realloc.m4: New file.
67315         * doc/functions/realloc.texi: Mention the realloc-posix module.
67316         * lib/stdlib_.h (realloc): New declaration.
67317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67318         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67319         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67320         and HAVE_REALLOC_POSIX.
67321
67322 2007-09-09  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/calloc-posix: New file.
67325         * modules/calloc (Depends-on): Add calloc-posix.
67326         * lib/calloc.c: Include errno.h.
67327         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67328         and a POSIX-compatible calloc into a single function. Set ENOMEM
67329         when returning NULL.
67330         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67331         * doc/functions/calloc.texi: Mention the calloc-posix module.
67332         * lib/stdlib_.h (calloc): New declaration.
67333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67334         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67335         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67336         and HAVE_CALLOC_POSIX.
67337
67338 2007-09-09  Bruno Haible  <bruno@clisp.org>
67339
67340         Allow for modules to show an arbitrary notice.
67341         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67342         * gnulib-tool: New option --extract-notice.
67343         (func_usage): Document it.
67344         (sed_extract_prog): Update.
67345         (func_get_notice): New function.
67346         (func_modules_notice): New function.
67347         (func_import, func_create_testdir): Invoke it.
67348         Suggested by Jim Meyering.
67349
67350 2007-09-09  Bruno Haible  <bruno@clisp.org>
67351
67352         * gnulib-tool: New options --verbose, --quiet.
67353         (func_usage): Document them.
67354         (verbose): New variable.
67355         (func_execute_command): New function.
67356         (func_import): Don't show the module list and the file list if
67357         $verbose < 0.
67358         (func_create_testdir): Likewise. Use func_execute_command.
67359         (func_create_megatestdir): Use func_execute_command.
67360
67361 2007-09-08  Bruno Haible  <bruno@clisp.org>
67362
67363         * gnulib-tool (func_import): Prefer rsync over wget when available,
67364         for fetching the PO files.
67365
67366 2007-09-08  Bruno Haible  <bruno@clisp.org>
67367
67368         * posix-modules: New file. Portions copied from gnulib-tool.
67369         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67370
67371 2007-09-08  Jim Meyering  <jim@meyering.net>
67372
67373         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67374         * lib/fpending.h: Rename from __fpending.h.
67375         * lib/fpending.c: Rename from __fpending.c.
67376         Include "fpending.h", not "__fpending.h".
67377         * lib/__fpending.h, lib/__fpending.c: Remove files.
67378         * modules/fpending (Files): Reflect new file names.
67379         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67380
67381 2007-09-08  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/inttypes-h.m4: Remove stub file.
67384
67385 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67386
67387         * doc/headers/stdint.texi: Discuss #include_next issue.
67388
67389 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67392
67393 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67394
67395         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67396         in variable name.
67397
67398 2007-09-03  Jim Meyering  <jim@meyering.net>
67399
67400         New module: git-version-gen.
67401         * modules/git-version-gen: New file.
67402
67403         Import changes from coreutils for bootstrap script.
67404
67405         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67406
67407         bootstrap: uses rsync to download the .po files
67408         * build-aux/bootstrap (po_download_command_format): New global.
67409         (download_po_files): Use rsync.
67410         (update_po_files): Don't remove .po files after download,
67411         so future rsync runs can take advantage of the copies.
67412
67413         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67414
67415         Solve the unnecessary-.po-file-regeneration problem once and for all.
67416         * build-aux/bootstrap (download_po_files): New function, renamed from
67417         get_translations.  Now, downloads, but doesn't update LINGUAS.
67418         (update_po_files): New function.
67419
67420         bootstrap: Ignore more.
67421         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67422         uniwidth to e.g., lib/.gitignore.
67423         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67424
67425         * build-aux/bootstrap: New setting: vc_ignore.
67426         (insert_sorted_if_absent): Create $file if absent.
67427         Adapt to new, possibly empty, list: $vc_ignore.
67428
67429         bootstrap: generate more ignorable names
67430         * build-aux/bootstrap (slurp): When generating ignorable names,
67431         also map .sin to .sed, .gperf to .c, and .y to .c.
67432
67433 2007-09-03  Jim Meyering  <jim@meyering.net>
67434
67435         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67436         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67437
67438 2007-09-02  Bruno Haible  <bruno@clisp.org>
67439
67440         Fix mis-recognition of 'mcs' on QNX 6.
67441         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67442         output contains the string "Mono".
67443         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67444         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67445
67446 2007-09-01  Bruno Haible  <bruno@clisp.org>
67447
67448         Fix collision between uniwidth/* and linebreak modules.
67449         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67450         u32_width): Remove declarations.
67451         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67452         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67453         streq3, streq2, streq1, streq0): Remove functions.
67454         (STREQ): Remove macro.
67455         (is_cjk_encoding): Remove function.
67456         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67457         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67458         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67459         * NEWS: Document the change.
67460
67461 2007-09-01  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/streq.h: Add double-inclusion guard.
67464
67465 2007-09-01  Karl Berry  <karl@gnu.org>
67466
67467         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67468
67469 2007-08-28  Jim Meyering  <jim@meyering.net>
67470
67471         Rename mreadlink_with_size to areadlink_with_size.
67472         * NEWS: Document the change.
67473         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67474         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67475         * lib/mreadlink.h: Rename this to...
67476         * lib/areadlink.h: ...this.
67477         * modules/mreadlink-with-size: Rename this to...
67478         * modules/areadlink-with-size: ...this.
67479         * lib/canonicalize.c: Reflect the renaming.
67480         * modules/canonicalize: Likewise.
67481
67482 2007-08-26  Bruno Haible  <bruno@clisp.org>
67483
67484         * gnulib-tool (func_import): When deciding which files to remove,
67485         consider also dangling symbolic links.
67486         Reported by Eric Blake.
67487
67488 2007-08-26  Bruno Haible  <bruno@clisp.org>
67489
67490         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67491
67492 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67493
67494         * lib/readline.c: Don't include getline.h, the prototype is now
67495         found in stdio.h.
67496
67497 2007-08-23  Jim Meyering  <jim@meyering.net>
67498
67499         Getdelim touchup.
67500         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67501         around the funlockfile call, since funlockfile never sets errno.
67502         Don't set errno upon failed realloc.
67503
67504 2007-08-22  Eric Blake  <ebb9@byu.net>
67505
67506         Getline touchups.
67507         * lib/getdelim.c (getdelim): Revert regression that required *n to
67508         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67510         getdelim, rather than whether implementation is missing.
67511         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67512         * lib/stdio_.h (getline): Also declare if replacement is
67513         required.
67514         * doc/functions/getdelim.texi: New file.
67515         * doc/functions/getline.texi: Likewise.
67516         * doc/gnulib.texi (Function Substitutes): Add new files.
67517         Reported by Bruno Haible.
67518
67519 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67520
67521         * users.txt: Add Guile.
67522
67523 2007-08-22  Eric Blake  <ebb9@byu.net>
67524
67525         * tests/test-getdelim.c (main): Use remove, not unlink.
67526         * tests/test-getline.c (main): Likewise.
67527
67528         Move getline and getdelim into stdio.h, per POSIX 200x.
67529         * modules/getline (Files): Remove getline.h.
67530         (Depends-on): Add stdio.
67531         (configure.ac): Add module indicator.
67532         * modules/getdelim (Files): Remove getdelim.h.
67533         (Depends-on): Add stdio.
67534         (configure.ac): Add module indicator.
67535         * modules/stdio (Makefile.am): Work with new indicators.
67536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67537         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67538         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67539         * lib/getdelim.h: Delete.
67540         * lib/getline.h: Delete.
67541         * lib/stdio_.h (getdelim, getline): Declare.
67542         * modules/getdelim-tests: New module.
67543         * modules/getline-tests: Likewise.
67544         * tests/test-getdelim.c: New file.
67545         * tests/test-getline.c: Likewise.
67546         * NEWS: Document the change.
67547         * lib/getline.c: Update choice of header.
67548         * lib/csharpcomp.c: Likewise.
67549         * lib/getpass.c: Likewise.
67550         * lib/javacomp.c: Likewise.
67551         * lib/javaversion.c: Likewise.
67552         * lib/yesno.c: Likewise.
67553         * lib/getdelim.c: Likewise.
67554         (getdelim): Set errno on failure, and avoid memory leak.
67555
67556 2007-08-19  Bruno Haible  <bruno@clisp.org>
67557
67558         * modules/closein (Depends-on): Add freadahead.
67559         * lib/closein.c: Include freadahead.h.
67560         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67561         is zero.
67562
67563 2007-08-19  Bruno Haible  <bruno@clisp.org>
67564
67565         * modules/freadahead-tests: New file.
67566         * tests/test-freadahead.sh: New file.
67567         * tests/test-freadahead.c: New file.
67568
67569         * modules/freadahead: New file.
67570         * lib/freadahead.h: New file.
67571         * lib/freadahead.c: New file.
67572         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67573         fbufmode, fpurge, freadable, fwritable.
67574
67575 2007-08-19  Eric Blake  <ebb9@byu.net>
67576
67577         Test yesno in combination with closein.
67578         * lib/yesno.c (yesno): Document use of stdin.
67579         * modules/yesno-tests (Files): New module.
67580         * tests/test-yesno.c (main): New file.
67581         * tests/test-yesno.sh: Likewise.
67582
67583 2007-08-19  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67586         * lib/fseeko.c (rpl_fseeko): Likewise.
67587         * lib/fseterr.c (fseterr): Likewise.
67588
67589 2007-08-19  Bruno Haible  <bruno@clisp.org>
67590
67591         * tests/test-lseek.c (main): Disable a test for BeOS.
67592         * doc/functions/lseek.texi: Document the BeOS bug.
67593
67594 2007-08-19  Bruno Haible  <bruno@clisp.org>
67595             Eric Blake  <ebb9@byu.net>
67596
67597         * lib/lseek.c: Include <sys/stat.h>.
67598         (rpl_lseek): Add workaround code also for Unix platforms.
67599         Needed for BeOS.
67600         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67601         * doc/functions/lseek.texi: Document BeOS definiency.
67602
67603 2007-08-18  Bruno Haible  <bruno@clisp.org>
67604
67605         * modules/fstrcmp-tests: New file.
67606         * tests/test-fstrcmp.c: New file.
67607
67608 2007-08-18  Bruno Haible  <bruno@clisp.org>
67609
67610         * modules/fstrcmp: New file, from GNU gettext with modifications.
67611         * lib/fstrcmp.h: New file, from GNU gettext.
67612         * lib/fstrcmp.c: New file, from GNU gettext.
67613         * MODULES.html.sh (String handling): Add fstrcmp.
67614
67615 2007-08-18  Bruno Haible  <bruno@clisp.org>
67616
67617         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67618         'bool'.
67619         (diag, compareseq): Remove const from the ctxt argument.
67620         (USE_HEURISTIC): Undefine at the end.
67621
67622 2007-08-18  Jim Meyering  <jim@meyering.net>
67623
67624         New file: lib/idcache.h
67625         * NEWS: Mention the addition.
67626         * modules/idcache (Files): Add lib/idcache.h
67627         * lib/idcache.c: Include "idcache.h".
67628         Don't include <sys/types.h>.
67629         Add a FIXME comment.
67630         Move file-scoped "static" declarations to the top.
67631         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67632
67633 2007-08-17  Bruno Haible  <bruno@clisp.org>
67634         and Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * MODULES.html.sh: Add diffseq.
67637         * modules/diffseq: New file.
67638         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67639         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67640
67641 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         Import changes from coreutils for bootstrap script.
67644
67645         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * build-aux/bootstrap (slurp): Work even in environments where
67648         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67649         current code does not slurp files whose names start with ".", and
67650         this looks like it might be a troublesome area.
67651
67652         2007-07-11  Jim Meyering  <jim@meyering.net>
67653
67654         If there's a GPL vN copyright comment, require that N == 3.
67655
67656         2007-07-08  Jim Meyering  <jim@meyering.net>
67657
67658         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67659         * build-aux/bootstrap (mam_template): Move definition out of loop.
67660
67661         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67662
67663         * build-aux/bootstrap (symlink_to_dir): Rename function from
67664         symlink_to_gnulib.  Add a directory parameter.  Update all
67665         callers.
67666         (cp_mark_as_generated): Also check for -- and link to -- files in
67667         gl/.
67668
67669         2007-07-08  Jim Meyering  <jim@meyering.net>
67670
67671         Adapt to deeper hierarchy in gnulib.
67672         * build-aux/bootstrap (symlink_to_dir): If the destination
67673         directory doesn't exist, create it. This is required at least for
67674         "lib/uniwidth/cjk.h".
67675
67676         2007-05-15  Jim Meyering  <jim@meyering.net>
67677
67678         * build-aux/bootstrap: Now that generated Makefile.am files
67679         are no longer under version control, they must be created at
67680         bootstrap time.
67681
67682 2007-08-14  Ben Pfaff  <blp@gnu.org>
67683
67684         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67685
67686 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67687
67688         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67689         given the changes below.
67690         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67691         even on hosts that have padding bits beyond the supported 64.
67692
67693 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67696         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67697         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67698         depends on it.
67699         (xstrtol_error): Remove.
67700         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67701         but with a different signature.
67702         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67703         * lib/xstrtol-error.c: Include exitfail.h.
67704         (xstrtol_fatal): New function, with a different signature from the
67705         old xstrtol_error, so that the caller need not worry about passing
67706         in an exit status, or about storage management of the option argument.
67707         (xstrtol_error): Now a static function.  Redo signature to
67708         implement xstrtol_fatal.  Output the correct number of hyphens in
67709         front of the option so that the caller need not worry about
67710         storage management.
67711         (N_): New macro.
67712         (_): Remove; not used now.
67713         * modules/xstrtol: Depend on getopt.
67714         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67715         of old STRTOL_FATAL_ERROR macro.
67716         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67717         of test program.
67718         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67719         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67720
67721 2007-08-08  Eric Blake  <ebb9@byu.net>
67722
67723         * lib/xstrtol-error.c: Add missing include.
67724
67725         Move xstrtol messages into gnulib domain, when --pobase is used.
67726         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67727         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67728         * modules/xstrtol (Files): Distribute new file.
67729         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67730         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67731         * tests/test-xstrtol.c: ...into new file.
67732         * tests/test-xstrtoul.c: Also test xstrtoul.
67733         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67734         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67735         * tests/test-xstrtol.sh: Drive the tests.
67736         * tests/test-xstrtoimax.sh: Likewise.
67737         * tests/test-xstrtoumax.sh: Likewise.
67738         * modules/xstrtol-tests: New module.
67739         * modules/xstrtoimax-tests: Likewise.
67740         * modules/xstrtoumax-tests: Likewise.
67741
67742 2007-08-08  Jim Meyering  <jim@meyering.net>
67743
67744         New function: mfile_name_concat.
67745         * lib/filenamecat.c (mfile_name_concat): New function, just like
67746         file_name_concat, but return NULL upon failure rather than exiting
67747         with a diagnostic.
67748         * lib/filenamecat.h: Declare it.
67749
67750 2007-08-07  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67753         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67754         warning from gcc.
67755         Reported by Eric Blake.
67756
67757 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67758
67759         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67760         * modules/crypto/arcfour (License): Likewise.
67761         * modules/crypto/des-tests (License): Likewise.
67762         * modules/crypto/gc-arctwo-tests (License): Likewise.
67763         * modules/crypto/gc-des-tests (License): Likewise.
67764         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67765         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67766         * modules/crypto/gc-md2-tests (License): Likewise.
67767         * modules/crypto/gc-md4-tests (License): Likewise.
67768         * modules/crypto/gc-md5-tests (License): Likewise.
67769         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67770         * modules/crypto/gc-rijndael-tests (License): Likewise.
67771         * modules/crypto/gc-sha1-tests (License): Likewise.
67772         * modules/crypto/gc-tests (License): Likewise.
67773         * modules/crypto/hmac-md5 (License): Likewise.
67774         * modules/crypto/hmac-sha1 (License): Likewise.
67775         * modules/crypto/md2-tests (License): Likewise.
67776         * modules/crypto/md4-tests (License): Likewise.
67777         * modules/crypto/md5 (License): Likewise.
67778         * modules/crypto/rijndael (License): Likewise.
67779         * modules/crypto/sha1 (License): Likewise.
67780         * modules/memxor (License): Likewise.
67781
67782 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67783         and Bruno Haible  <bruno@clisp.org>
67784
67785         * NEWS: Describe interface changes to human, xstrtol.
67786         * lib/human.h: Include <xstrtol.h>.
67787         (human_options): Return enum strtol_error, not int.  Remove
67788         bool arg; take int * instead.
67789         * lib/human.c: Don't include "gettext.h".
67790         (_): Remove; no longer used.
67791         Don't include <xstrtol.h>, since human.h does it.
67792         (human_options): Adjust to abovementioned interface changes.
67793         Do not report error to stderr; that's now the caller's
67794         responsibility.
67795         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67796         interface change.
67797         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67798         Str, Argument_type_string.  All uses changed.  Put " argument"
67799         in diagnostics to make them clearer.  Change wording of suffix
67800         message for clarity.
67801         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67802         Argument_type_string.
67803         (STRTOL_FATAL_WARN): Remove; no longer used.
67804         * modules/human (Depends-on): Remove gettext-h.
67805
67806 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67807
67808         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67809
67810 2007-07-31  Bruno Haible  <bruno@clisp.org>
67811
67812         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67813         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67814         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67815
67816 2007-07-31  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67819         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67820
67821 2007-07-30  Bruno Haible  <bruno@clisp.org>
67822
67823         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67824         * modules/c-ctype (License): Likewise.
67825         * modules/c-strcase (License): Likewise.
67826         * modules/check-version (License): Likewise.
67827         * modules/iconv (License): Likewise.
67828         * modules/iconv_open (License): Likewise.
67829         * modules/read-file (License): Likewise.
67830         * modules/striconv (License): Likewise.
67831         * modules/strverscmp (License): Likewise.
67832         * modules/vasprintf (License): Likewise.
67833         * modules/crypto/des (License): Likewise.
67834         * modules/crypto/gc (License): Likewise.
67835         * modules/crypto/gc-arcfour (License): Likewise.
67836         * modules/crypto/gc-arctwo (License): Likewise.
67837         * modules/crypto/gc-des (License): Likewise.
67838         * modules/crypto/gc-hmac-md5 (License): Likewise.
67839         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67840         * modules/crypto/gc-md2 (License): Likewise.
67841         * modules/crypto/gc-md4 (License): Likewise.
67842         * modules/crypto/gc-md5 (License): Likewise.
67843         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67844         * modules/crypto/gc-random (License): Likewise.
67845         * modules/crypto/gc-rijndael (License): Likewise.
67846         * modules/crypto/gc-sha1 (License): Likewise.
67847         * modules/crypto/md2 (License): Likewise.
67848         * modules/crypto/md4 (License): Likewise.
67849
67850 2007-07-30  Jim Meyering  <jim@meyering.net>
67851
67852         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67853         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67854         it has valid stat data.  This bug would cause du not to count the
67855         sizes of inaccessible directories.
67856         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67857         in <http://bugzilla.redhat.com/250077>.
67858
67859 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67860             Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67863         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67864         #include_next, gives a diagnostic about it, but reports no error in
67865         the exit code.
67866         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67867
67868 2007-07-24  Ben Pfaff  <blp@gnu.org>
67869
67870         Improve name: "count-one-bits" is better than "popcount".
67871         * MODULES.html.sh: Update name.
67872         * lib/popcount.h: Renamed lib/count-one-bits.h.
67873         (popcount): Renamed count_one_bits.
67874         (popcountl): Renamed count_one_bits_l.
67875         (popcountll): Renamed count_one_bits_ll.
67876         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67877         * modules/popcount: Renamed module/count-one-bits.
67878         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67879         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67880
67881 2007-07-23  Ben Pfaff  <blp@gnu.org>
67882
67883         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67884         better code generation, and add U to large constants to avoid
67885         warnings, in non-GCC case.
67886         Suggested by Bruno Haible.
67887
67888 2007-07-23  Ben Pfaff  <blp@gnu.org>
67889
67890         * lib/popcount.h: Use verify_true instead of if...abort.
67891         * modules/popcount: Depend on verify module.
67892         Suggested by Jim Meyering.
67893
67894 2007-07-23  Bruno Haible  <bruno@clisp.org>
67895
67896         * gnulib-tool (func_import): Create a .cvsignore file also when the
67897         directory is not yet in CVS but the toplevel directory is. When
67898         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67899         Reported by Karl Berry.
67900
67901 2007-07-22  Ben Pfaff  <blp@gnu.org>
67902
67903         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67904         case.
67905         Suggested by Eric Blake.
67906
67907 2007-07-22  Ben Pfaff  <blp@gnu.org>
67908
67909         New module: popcount.
67910         * MODULES.html.sh: Add popcount.
67911         * modules/popcount: New file.
67912         * modules/popcount-tests: New file.
67913         * tests/test-popcount.c: New file.
67914         * lib/popcount.h: New file.
67915         * m4/popcount.m4: New file.
67916
67917 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67918
67919         * build-aux/announce-gen: Update to GPLv3.
67920
67921         * build-aux/config.guess: Update from config.
67922
67923 2007-07-21  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67926         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67927
67928 2007-07-20  Jim Meyering  <jim@meyering.net>
67929
67930         * check-module: Diagnose a self-dependency.
67931
67932 2007-07-19  Bruno Haible  <bruno@clisp.org>
67933
67934         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67935         empty.
67936         Reported by Eric Blake.
67937
67938 2007-07-18  Bruno Haible  <bruno@clisp.org>
67939
67940         * gnulib-tool: New options --po-base, --po-domain.
67941         (func_usage): Document them.
67942         (pobase, po_domain): New variables.
67943         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67944         DEFAULT_TEXT_DOMAIN.
67945         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67946         (func_import): Consider pobase and po_domain. Create a po/ directory.
67947         (func_create_testdir): Set pobase and po_domain to empty.
67948         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67949         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67950
67951 2007-07-18  Bruno Haible  <bruno@clisp.org>
67952
67953         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67954         EXTRA_DIST augmentation for files in build-aux/.
67955
67956 2007-07-16  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67959         * modules/getdelim (License): Likewise.
67960
67961 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67962
67963         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67964         * modules/d-type (License): Likewise.
67965         * modules/extensions (License): Likewise.
67966         * modules/fnmatch (License): Likewise.
67967         * modules/fseeko (License): Likewise.
67968         * modules/getaddrinfo (License): Likewise.
67969         * modules/getline (License): Likewise.
67970         * modules/getlogin_r (License): Likewise.
67971         * modules/getpass (License): Likewise.
67972         * modules/gettimeofday (License): Likewise.
67973         * modules/glob (License): Likewise.
67974         * modules/inet_ntop (License): Likewise.
67975         * modules/malloc (License): Likewise.
67976         * modules/malloca (License): Likewise.
67977         * modules/memmem (License): Likewise.
67978         * modules/mempcpy (License): Likewise.
67979         * modules/memset (License): Likewise.
67980         * modules/minmax (License): Likewise.
67981         * modules/mktime (License): Likewise.
67982         * modules/netinet_in (License): Likewise.
67983         * modules/pathmax (License): Likewise.
67984         * modules/poll (License): Likewise.
67985         * modules/regex (License): Likewise.
67986         * modules/snprintf (License): Likewise.
67987         * modules/stdbool (License): Likewise.
67988         * modules/stdint (License): Likewise.
67989         * modules/stdio (License): Likewise.
67990         * modules/strcase (License): Likewise.
67991         * modules/strcasestr (License): Likewise.
67992         * modules/strdup (License): Likewise.
67993         * modules/string (License): Likewise.
67994         * modules/strndup (License): Likewise.
67995         * modules/strnlen (License): Likewise.
67996         * modules/strpbrk (License): Likewise.
67997         * modules/strptime (License): Likewise.
67998         * modules/strsep (License): Likewise.
67999         * modules/sys_select (License): Likewise.
68000         * modules/sys_socket (License): Likewise.
68001         * modules/sys_stat (License): Likewise.
68002         * modules/sys_time (License): Likewise.
68003         * modules/time (License): Likewise.
68004         * modules/time_r (License): Likewise.
68005         * modules/timegm (License): Likewise.
68006         * modules/unistd (License): Likewise.
68007         * modules/vsnprintf (License): Likewise.
68008         * modules/wctype (License): Likewise.
68009
68010 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68011
68012         * modules/argz (License): LGPLv2+.
68013
68014 2007-07-15  Karl Berry  <karl@gnu.org>
68015
68016         * doc/gnulib.texi: revise node structure per new fdl.texi.
68017
68018 2007-07-14  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68021         the output file.
68022         * lib/uniname/uninames.h: Regenerated.
68023
68024 2007-07-14  Karl Berry  <karl@gnu.org>
68025
68026         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68027         omitting sectioning and index commands.
68028
68029 2007-07-13  Bruno Haible  <bruno@clisp.org>
68030
68031         New gnulib-tool option --more-symlinks.
68032         * gnulib-tool (func_usage): Document --more-symlinks.
68033         (do_copyrights): New variable.
68034         Recognize option --more-symlinks.
68035         (func_import): Don't add a copyright notice transform to
68036         sed_transform_lib_file if do_copyrights is empty.
68037
68038 2007-07-13  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/vasnprintf.c (decimal_point_char): Define also if
68041         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68042         && !NEED_PRINTF_DIRECTIVE_A.
68043         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68044         Gary V. Vaughan <gary@gnu.org>.
68045
68046 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * lib/inttypes_.h: Undo previous change, since it was fixed
68049         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68050
68051 2007-07-13  Bruno Haible  <bruno@clisp.org>
68052
68053         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68054         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68055
68056 2007-07-13  Jim Meyering  <jim@meyering.net>
68057
68058         df: Don't fail for Tru64's "file-on-file mount".
68059         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68060         so we fall through and use statfs instead.  Details here:
68061         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68062         Reported by Albert Chin.
68063
68064 2007-07-13  Bruno Haible  <bruno@clisp.org>
68065
68066         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68067         * modules/configmake (License): Likewise.
68068         * modules/gettext (License): Likewise.
68069         * modules/gettext-h (License): Likewise.
68070         * modules/include_next (License): Likewise.
68071         * modules/link-warning (License): Likewise.
68072         * modules/localcharset (License): Likewise.
68073         * modules/localename (License): Likewise.
68074         * modules/lock (License): Likewise.
68075         * modules/relocatable-lib-lgpl (License): Likewise.
68076         * modules/size_max (License): Likewise.
68077         * modules/vasnprintf (License): Likewise.
68078         * modules/wchar (License): Likewise.
68079         * modules/xsize (License): Likewise.
68080
68081 2007-07-13  Bruno Haible  <bruno@clisp.org>
68082
68083         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68084         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68085
68086 2007-07-12  Bruno Haible  <bruno@clisp.org>
68087
68088         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68089         in the modules files.
68090
68091 2007-07-11  Karl Berry  <karl@gnu.org>
68092
68093         * MODULES.html.sh (func_module): use
68094          sed -e '\|^'"${includefile}"'$|d'
68095          instead of /.../d, to avoid errors on $includefile's containing /.
68096
68097 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68098
68099         * gnulib-tool (func_import): Avoid duplication of --avoid
68100         statements
68101         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68102         names to `_' in variable names.
68103
68104 2007-07-10  Eric Blake  <ebb9@byu.net>
68105
68106         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68107         * NEWS: Document this change.
68108
68109 2007-07-08  Bruno Haible  <bruno@clisp.org>
68110
68111         Update to Unicode 5.0.
68112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68113         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68114         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68115         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68116         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68117         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68118         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68119         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68120         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68121         U+10A3F, U+1D242..U+1D244.
68122         (nonspacing_table_ind): Update.
68123         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68124         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68125
68126 2007-07-08  Bruno Haible  <bruno@clisp.org>
68127
68128         Update to Unicode 5.0.
68129         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68130         code transform. Extend the name index field of unicode_name_to_code and
68131         unicode_code_to_name from 16 to 24 bits.
68132         * lib/uniname/uniname.c (unicode_character_name,
68133         unicode_name_character): Add the range 0x12xxx to the code transform.
68134         * lib/uniname/uninames.h: Regenerated.
68135         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68136
68137 2007-07-07  Bruno Haible  <bruno@clisp.org>
68138
68139         * modules/wcwidth-tests: New file.
68140         * tests/test-wcwidth.c: New file.
68141
68142         Work around MacOS X wcwidth() bug.
68143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68144         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68145         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68146         original wcwidth in non-UTF-8 locales.
68147         * modules/wcwidth (Depends-on): Add localcharset, streq,
68148         uniwidth/width.
68149         * doc/functions/wcwidth.texi: Update.
68150
68151 2007-07-07  Bruno Haible  <bruno@clisp.org>
68152
68153         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68154         (wcwidth): New declaration.
68155         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68156         macros.
68157         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68158         here. Prepare for creating <wchar.h> unconditionally.
68159         * modules/wchar (Depends-on): Add link-warning.
68160         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68161         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68162         * lib/wcwidth.h: Remove file.
68163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68164         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68165         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68166         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68167         (Include): Replace wcwidth.h with <wchar.h>.
68168         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68169         * lib/mbchar.h: Don't include wcwidth.h.
68170         * lib/mbswidth.c: Likewise.
68171         * NEWS: Mention the change.
68172
68173 2007-07-07  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68176         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68177         definition with an external declaration.
68178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68179         defined as a function. Remove AC_C_INLINE requirement.
68180         * modules/wcwidth (Files): Add lib/wcwidth.c.
68181         (Makefile.am): Remove redundant statement.
68182
68183 2007-07-07  Bruno Haible  <bruno@clisp.org>
68184
68185         * MODULES.html.sh (Unicode string functions): Add the new modules.
68186
68187         * tests/uniwidth/test-u32-strwidth.c: New file.
68188         * modules/uniwidth/u32-strwidth-tests: New file.
68189
68190         * lib/uniwidth/u32-strwidth.c: New file.
68191         * modules/uniwidth/u32-strwidth: New file.
68192
68193         * tests/uniwidth/test-u16-strwidth.c: New file.
68194         * modules/uniwidth/u16-strwidth-tests: New file.
68195
68196         * lib/uniwidth/u16-strwidth.c: New file.
68197         * modules/uniwidth/u16-strwidth: New file.
68198
68199         * tests/uniwidth/test-u8-strwidth.c: New file.
68200         * modules/uniwidth/u8-strwidth-tests: New file.
68201
68202         * lib/uniwidth/u8-strwidth.c: New file.
68203         * modules/uniwidth/u8-strwidth: New file.
68204
68205         * tests/uniwidth/test-u32-width.c: New file.
68206         * modules/uniwidth/u32-width-tests: New file.
68207
68208         * lib/uniwidth/u32-width.c: New file.
68209         * modules/uniwidth/u32-width: New file.
68210
68211         * tests/uniwidth/test-u16-width.c: New file.
68212         * modules/uniwidth/u16-width-tests: New file.
68213
68214         * lib/uniwidth/u16-width.c: New file.
68215         * modules/uniwidth/u16-width: New file.
68216
68217         * tests/uniwidth/test-u8-width.c: New file.
68218         * modules/uniwidth/u8-width-tests: New file.
68219
68220         * lib/uniwidth/u8-width.c: New file.
68221         * modules/uniwidth/u8-width: New file.
68222
68223         * tests/uniwidth/test-uc_width.c: New file.
68224         * modules/uniwidth/width-tests: New file.
68225
68226         * lib/uniwidth/width.c: New file, from GNU libiconv.
68227         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68228         * modules/uniwidth/width: New file.
68229
68230         * lib/uniwidth.h: New file, from GNU libiconv.
68231         * modules/uniwidth/base: New file.
68232
68233 2007-07-07  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/uniname.h: New file, from GNU gettext.
68236         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68237         * lib/uniname/uninames.h: New file, from GNU gettext.
68238         * lib/uniname/uniname.c: New file, from GNU gettext.
68239         * tests/uniname/test-uninames.sh: New file.
68240         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68241         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68242         * modules/uniname/base: New file.
68243         * modules/uniname/uniname: New file.
68244         * modules/uniname/uniname-tests: New file.
68245         * MODULES.html.sh (Unicode string functions): Add the new modules.
68246
68247 2007-07-06  Bruno Haible  <bruno@clisp.org>
68248
68249         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68250
68251 2007-07-06  Bruno Haible  <bruno@clisp.org>
68252
68253         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68254         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68255         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68256         include <sys/time.h>.
68257         Reported by Eric Blake.
68258
68259 2007-07-06  Eric Blake  <ebb9@byu.net>
68260
68261         Fix testing canonicalize on cygwin.
68262         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68263         Revert patch from 2007-06-19.
68264         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68265         canonicalize module is also in use.
68266         * tests/test-canonicalize.c: New file.
68267         * tests/test-canonicalize.sh: Likewise.
68268         * modules/canonicalize-tests: Likewise.
68269
68270 2007-07-06  Jim Meyering  <jim@meyering.net>
68271
68272         * lib/getugroups.c (getugroups): Detect getgrent failure.
68273         Adjust comment to reflect reality: this function may return -1.
68274
68275 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68276
68277         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68278         the new TP address.
68279         (usage): Fix typo
68280         (gnulib_mk): New variable.
68281
68282 2007-07-05  Jim Meyering  <jim@meyering.net>
68283
68284         Don't let endgrent clobber errno, no matter how improbable.
68285         * lib/getugroups.c (getugroups): Save and restore errno around
68286         endgrent call.
68287
68288         Close the group DB even when failing with 2^31 or more members.
68289         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68290
68291 2007-07-04  Jim Meyering  <jim@meyering.net>
68292
68293         * lib/getugroups.h: New file.
68294         * lib/getugroups.c: Include "getugroups.h".
68295         Remove uses of "register" keyword.
68296         Move local variable, "cp", down into scope where used.
68297         Give "username" parameter the "const" attribute.
68298         * modules/getugroups (Files): Add lib/getugroups.h
68299
68300 2007-07-04  Karl Berry  <karl@gnu.org>
68301
68302         * MODULES.html.sh (func_all_modules): Complete rename of
68303         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68304
68305 2007-07-02  Bruno Haible  <bruno@clisp.org>
68306
68307         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68308         mode, when inttypes.h comes from gnulib.
68309         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68310
68311 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68312
68313         * NEWS: Mention lgpl module name change.
68314
68315         * modules/lgpl-2.1: Renamed from lgpl.
68316
68317         * NEWS: Mention gpl module name change.
68318
68319         * modules/gpl-3.0: New file, based on gpl-2.0.
68320
68321         * modules/gpl-2.0: Renamed from gpl.
68322
68323         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68324         doc/gpl-2.0.texi.
68325
68326 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68329         #define __STDC_LIMIT_MACROS temporarily while including
68330         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68331         Problem reported by Joel E. Denny in
68332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68333
68334 2007-07-01  Bruno Haible  <bruno@clisp.org>
68335
68336         * lib/unistdio.h: New file.
68337         * lib/unistdio/u-asnprintf.h: New file.
68338         * lib/unistdio/u-asprintf.h: New file.
68339         * lib/unistdio/u-printf-args.c: New file.
68340         * lib/unistdio/u-printf-args.h: New file.
68341         * lib/unistdio/u-printf-parse.h: New file.
68342         * lib/unistdio/u-snprintf.h: New file.
68343         * lib/unistdio/u-sprintf.h: New file.
68344         * lib/unistdio/u-vasprintf.h: New file.
68345         * lib/unistdio/u-vsnprintf.h: New file.
68346         * lib/unistdio/u-vsprintf.h: New file.
68347         * lib/unistdio/ulc-asnprintf.c: New file.
68348         * lib/unistdio/ulc-asprintf.c: New file.
68349         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68350         * lib/unistdio/ulc-printf-parse.c: New file.
68351         * lib/unistdio/ulc-snprintf.c: New file.
68352         * lib/unistdio/ulc-sprintf.c: New file.
68353         * lib/unistdio/ulc-vasnprintf.c: New file.
68354         * lib/unistdio/ulc-vasprintf.c: New file.
68355         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68356         * lib/unistdio/ulc-vsnprintf.c: New file.
68357         * lib/unistdio/ulc-vsprintf.c: New file.
68358         * lib/unistdio/u8-asnprintf.c: New file.
68359         * lib/unistdio/u8-asprintf.c: New file.
68360         * lib/unistdio/u8-printf-parse.c: New file.
68361         * lib/unistdio/u8-snprintf.c: New file.
68362         * lib/unistdio/u8-sprintf.c: New file.
68363         * lib/unistdio/u8-vasnprintf.c: New file.
68364         * lib/unistdio/u8-vasprintf.c: New file.
68365         * lib/unistdio/u8-vsnprintf.c: New file.
68366         * lib/unistdio/u8-vsprintf.c: New file.
68367         * lib/unistdio/u8-u8-asnprintf.c: New file.
68368         * lib/unistdio/u8-u8-asprintf.c: New file.
68369         * lib/unistdio/u8-u8-snprintf.c: New file.
68370         * lib/unistdio/u8-u8-sprintf.c: New file.
68371         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68372         * lib/unistdio/u8-u8-vasprintf.c: New file.
68373         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68374         * lib/unistdio/u8-u8-vsprintf.c: New file.
68375         * lib/unistdio/u16-asnprintf.c: New file.
68376         * lib/unistdio/u16-asprintf.c: New file.
68377         * lib/unistdio/u16-printf-parse.c: New file.
68378         * lib/unistdio/u16-snprintf.c: New file.
68379         * lib/unistdio/u16-sprintf.c: New file.
68380         * lib/unistdio/u16-vasnprintf.c: New file.
68381         * lib/unistdio/u16-vasprintf.c: New file.
68382         * lib/unistdio/u16-vsnprintf.c: New file.
68383         * lib/unistdio/u16-vsprintf.c: New file.
68384         * lib/unistdio/u16-u16-asnprintf.c: New file.
68385         * lib/unistdio/u16-u16-asprintf.c: New file.
68386         * lib/unistdio/u16-u16-snprintf.c: New file.
68387         * lib/unistdio/u16-u16-sprintf.c: New file.
68388         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68389         * lib/unistdio/u16-u16-vasprintf.c: New file.
68390         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68391         * lib/unistdio/u16-u16-vsprintf.c: New file.
68392         * lib/unistdio/u32-asnprintf.c: New file.
68393         * lib/unistdio/u32-asprintf.c: New file.
68394         * lib/unistdio/u32-printf-parse.c: New file.
68395         * lib/unistdio/u32-snprintf.c: New file.
68396         * lib/unistdio/u32-sprintf.c: New file.
68397         * lib/unistdio/u32-vasnprintf.c: New file.
68398         * lib/unistdio/u32-vasprintf.c: New file.
68399         * lib/unistdio/u32-vsnprintf.c: New file.
68400         * lib/unistdio/u32-vsprintf.c: New file.
68401         * lib/unistdio/u32-u32-asnprintf.c: New file.
68402         * lib/unistdio/u32-u32-asprintf.c: New file.
68403         * lib/unistdio/u32-u32-snprintf.c: New file.
68404         * lib/unistdio/u32-u32-sprintf.c: New file.
68405         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68406         * lib/unistdio/u32-u32-vasprintf.c: New file.
68407         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68408         * lib/unistdio/u32-u32-vsprintf.c: New file.
68409         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68410         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68411         * tests/unistdio/test-ulc-printf1.h: New file.
68412         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68413         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68414         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68415         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68416         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68417         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68418         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68419         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68420         * tests/unistdio/test-u8-asnprintf1.c: New file.
68421         * tests/unistdio/test-u8-asnprintf1.h: New file.
68422         * tests/unistdio/test-u8-printf1.h: New file.
68423         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68424         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68425         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68426         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68427         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68428         * tests/unistdio/test-u8-vasprintf1.c: New file.
68429         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68430         * tests/unistdio/test-u8-vsprintf1.c: New file.
68431         * tests/unistdio/test-u16-asnprintf1.c: New file.
68432         * tests/unistdio/test-u16-asnprintf1.h: New file.
68433         * tests/unistdio/test-u16-printf1.h: New file.
68434         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68435         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68436         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68437         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68438         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68439         * tests/unistdio/test-u16-vasprintf1.c: New file.
68440         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68441         * tests/unistdio/test-u16-vsprintf1.c: New file.
68442         * tests/unistdio/test-u32-asnprintf1.c: New file.
68443         * tests/unistdio/test-u32-asnprintf1.h: New file.
68444         * tests/unistdio/test-u32-printf1.h: New file.
68445         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68446         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68447         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68448         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68449         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68450         * tests/unistdio/test-u32-vasprintf1.c: New file.
68451         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68452         * tests/unistdio/test-u32-vsprintf1.c: New file.
68453         * modules/unistdio/base: New file.
68454         * modules/unistdio/u-printf-args: New file.
68455         * modules/unistdio/ulc-asnprintf: New file.
68456         * modules/unistdio/ulc-asprintf: New file.
68457         * modules/unistdio/ulc-fprintf: New file.
68458         * modules/unistdio/ulc-printf-parse: New file.
68459         * modules/unistdio/ulc-snprintf: New file.
68460         * modules/unistdio/ulc-sprintf: New file.
68461         * modules/unistdio/ulc-vasnprintf: New file.
68462         * modules/unistdio/ulc-vasprintf: New file.
68463         * modules/unistdio/ulc-vfprintf: New file.
68464         * modules/unistdio/ulc-vsnprintf: New file.
68465         * modules/unistdio/ulc-vsprintf: New file.
68466         * modules/unistdio/u8-asnprintf: New file.
68467         * modules/unistdio/u8-asprintf: New file.
68468         * modules/unistdio/u8-printf-parse: New file.
68469         * modules/unistdio/u8-snprintf: New file.
68470         * modules/unistdio/u8-sprintf: New file.
68471         * modules/unistdio/u8-vasnprintf: New file.
68472         * modules/unistdio/u8-vasprintf: New file.
68473         * modules/unistdio/u8-vsnprintf: New file.
68474         * modules/unistdio/u8-vsprintf: New file.
68475         * modules/unistdio/u8-u8-asnprintf: New file.
68476         * modules/unistdio/u8-u8-asprintf: New file.
68477         * modules/unistdio/u8-u8-snprintf: New file.
68478         * modules/unistdio/u8-u8-sprintf: New file.
68479         * modules/unistdio/u8-u8-vasnprintf: New file.
68480         * modules/unistdio/u8-u8-vasprintf: New file.
68481         * modules/unistdio/u8-u8-vsnprintf: New file.
68482         * modules/unistdio/u8-u8-vsprintf: New file.
68483         * modules/unistdio/u16-asnprintf: New file.
68484         * modules/unistdio/u16-asprintf: New file.
68485         * modules/unistdio/u16-printf-parse: New file.
68486         * modules/unistdio/u16-snprintf: New file.
68487         * modules/unistdio/u16-sprintf: New file.
68488         * modules/unistdio/u16-vasnprintf: New file.
68489         * modules/unistdio/u16-vasprintf: New file.
68490         * modules/unistdio/u16-vsnprintf: New file.
68491         * modules/unistdio/u16-vsprintf: New file.
68492         * modules/unistdio/u16-u16-asnprintf: New file.
68493         * modules/unistdio/u16-u16-asprintf: New file.
68494         * modules/unistdio/u16-u16-snprintf: New file.
68495         * modules/unistdio/u16-u16-sprintf: New file.
68496         * modules/unistdio/u16-u16-vasnprintf: New file.
68497         * modules/unistdio/u16-u16-vasprintf: New file.
68498         * modules/unistdio/u16-u16-vsnprintf: New file.
68499         * modules/unistdio/u16-u16-vsprintf: New file.
68500         * modules/unistdio/u32-asnprintf: New file.
68501         * modules/unistdio/u32-asprintf: New file.
68502         * modules/unistdio/u32-printf-parse: New file.
68503         * modules/unistdio/u32-snprintf: New file.
68504         * modules/unistdio/u32-sprintf: New file.
68505         * modules/unistdio/u32-vasnprintf: New file.
68506         * modules/unistdio/u32-vasprintf: New file.
68507         * modules/unistdio/u32-vsnprintf: New file.
68508         * modules/unistdio/u32-vsprintf: New file.
68509         * modules/unistdio/u32-u32-asnprintf: New file.
68510         * modules/unistdio/u32-u32-asprintf: New file.
68511         * modules/unistdio/u32-u32-snprintf: New file.
68512         * modules/unistdio/u32-u32-sprintf: New file.
68513         * modules/unistdio/u32-u32-vasnprintf: New file.
68514         * modules/unistdio/u32-u32-vasprintf: New file.
68515         * modules/unistdio/u32-u32-vsnprintf: New file.
68516         * modules/unistdio/u32-u32-vsprintf: New file.
68517         * modules/unistdio/ulc-asnprintf-tests: New file.
68518         * modules/unistdio/ulc-vasnprintf-tests: New file.
68519         * modules/unistdio/ulc-vasprintf-tests: New file.
68520         * modules/unistdio/ulc-vsnprintf-tests: New file.
68521         * modules/unistdio/ulc-vsprintf-tests: New file.
68522         * modules/unistdio/u8-asnprintf-tests: New file.
68523         * modules/unistdio/u8-vasnprintf-tests: New file.
68524         * modules/unistdio/u8-vasprintf-tests: New file.
68525         * modules/unistdio/u8-vsnprintf-tests: New file.
68526         * modules/unistdio/u8-vsprintf-tests: New file.
68527         * modules/unistdio/u16-asnprintf-tests: New file.
68528         * modules/unistdio/u16-vasnprintf-tests: New file.
68529         * modules/unistdio/u16-vasprintf-tests: New file.
68530         * modules/unistdio/u16-vsnprintf-tests: New file.
68531         * modules/unistdio/u16-vsprintf-tests: New file.
68532         * modules/unistdio/u32-asnprintf-tests: New file.
68533         * modules/unistdio/u32-vasnprintf-tests: New file.
68534         * modules/unistdio/u32-vasprintf-tests: New file.
68535         * modules/unistdio/u32-vsnprintf-tests: New file.
68536         * modules/unistdio/u32-vsprintf-tests: New file.
68537         * MODULES.html.sh (Unicode string functions): Add the new modules.
68538
68539 2007-07-01  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/sprintf.c (sprintf): Limit the available length estimation,
68542         to avoid address wraparound.
68543         * lib/vsprintf.c (vsprintf): Likewise.
68544         * modules/sprintf-posix (Dependencies): Add stdint.
68545         * modules/vsprintf-posix (Dependencies): Likewise.
68546
68547 2007-07-01  Bruno Haible  <bruno@clisp.org>
68548
68549         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68550         Windows PATH as well. Conservative double-quoting. Comments.
68551
68552 2007-07-01  Bruno Haible  <bruno@clisp.org>
68553             Eric Blake  <ebb9@byu.net>
68554             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68555
68556         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68557         empty components in $PATH, denoting '.'.
68558
68559 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68560
68561         * gnulib-tool: Fix indentation.
68562         (func_create_megatestdir): Likewise.
68563         Report by Bruno Haible.
68564
68565 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68566
68567         Sync from Automake.
68568         * build-aux/gnupload: Fix shell portability issues with for loops.
68569         Report by Karl Berry.
68570
68571 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68572
68573         * build-aux/maint.mk (POURL): Use translationproject.org.
68574
68575 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68576             Bruno Haible  <bruno@clisp.org>
68577
68578         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68579         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68580         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68581         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68582         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68583
68584 2007-06-27  Bruno Haible  <bruno@clisp.org>
68585
68586         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68587         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68588
68589 2007-06-26  Karl Berry  <karl@gnu.org>
68590
68591         * MODULES.html.sh: remove xreadlink-with-size.
68592
68593 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68596         method that I hope also handles the double-include problem noted
68597         by Bruno Haible in
68598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68599
68600 2007-06-23  Bruno Haible  <bruno@clisp.org>
68601
68602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68603         Don't let the 'mostlyclean' target fail if the last subdirectory could
68604         not be removed.
68605         Reported by Karl Berry.
68606
68607 2007-06-23  Bruno Haible  <bruno@clisp.org>
68608
68609         * gnulib-tool (echo): Add a speedier workaround for ksh.
68610         * tests/test-echo.sh: Likewise.
68611
68612 2007-06-23  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68615         * tests/test-echo.sh: Likewise.
68616
68617 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68618
68619         * gnulib-tool (IFS): Initialize early, so we don't set it to
68620         empty later.
68621         (self_abspathname): Rewrite algorithm to set it, reindent.
68622         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68623         (func_create_megatestdir): Merge some sed scripts.
68624
68625 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68628         exposed by Sun Studio 11 cc on Solaris 8.
68629
68630 2007-06-22  Bruno Haible  <bruno@clisp.org>
68631
68632         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68633         backslashes.
68634         * tests/test-echo.sh: New file.
68635
68636 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68637
68638         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68639         simplify `sed_replace_build_aux' scripts, they are portable but
68640         echoing them with `echo' is not.
68641         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68642
68643 2007-06-21  Karl Berry  <karl@gnu.org>
68644
68645         * config/srclist.txt: guess we can't handle the licenses via
68646         srclist at the moment.
68647
68648 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * MODULES.html.sh: Add include_next.
68651         * modules/include_next: New file.
68652
68653 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68656         INCLUDE_NEXT.
68657         (gl_CHECK_NEXT_HEADERS): New macro.
68658         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68659         the obsolescent gl_ABSOLUTE_HEADER.
68660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68661         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68662         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68663         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68664         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68665         * m4/math_h.m4 (gl_MATH_H): Likewise.
68666         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68667         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68668         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68669         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68670         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68671         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68672         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68677         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68678         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68679         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68680         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68681         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68682         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68683         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68684         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68685         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68686         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68687         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68688         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68689         * lib/float_.h: Likewise.
68690         * lib/inttypes_.h: Likewise.
68691         * lib/math_.h: Likewise.
68692         * lib/search_.h: Likewise.
68693         * lib/signal_.h: Likewise.
68694         * lib/stdint_.h: Likewise.
68695         * lib/stdio_.h: Likewise.
68696         * lib/stdlib_.h: Likewise.
68697         * lib/string_.h: Likewise.
68698         * lib/sys_stat_.h: Likewise.
68699         * lib/sys_time_.h: Likewise.
68700         * lib/time_.h: Likewise.
68701         * lib/unistd_.h: Likewise.
68702         * lib/wchar_.h: Likewise.
68703         * lib/wctype_.h: Likewise.
68704         * lib/dirent_.h: Likewise.
68705         * lib/iconv_.h: Likewise.
68706         * lib/locale_.h: Likewise.
68707         * lib/netinet_in_.h: Likewise.
68708         * lib/sys_select_.h: Likewise.
68709         * lib/sys_socket_.h: Likewise.
68710         * lib/sysexits_.h: Likewise.
68711         * modules/fcntl (Depends-on): Depend on include_next, not
68712         absolute_header.
68713         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68714         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68715         * modules/fchdir: Likewise.
68716         * modules/float: Likewise.
68717         * modules/iconv_open: Likewise.
68718         * modules/inttypes: Likewise.
68719         * modules/locale: Likewise.
68720         * modules/math: Likewise.
68721         * modules/netinet_in: Likewise.
68722         * modules/search: Likewise.
68723         * modules/signal: Likewise.
68724         * modules/stdint: Likewise.
68725         * modules/stdio: Likewise.
68726         * modules/stdlib: Likewise.
68727         * modules/string: Likewise.
68728         * modules/sys_select: Likewise.
68729         * modules/sys_socket: Likewise.
68730         * modules/sys_stat: Likewise.
68731         * modules/sys_time: Likewise.
68732         * modules/sysexits: Likewise.
68733         * modules/time: Likewise.
68734         * modules/unistd: Likewise.
68735         * modules/wchar: Likewise.
68736         * modules/wctype: Likewise.
68737         * modules/sys_stat: Change maintainer to "all".
68738         * modules/unistd: Likewise.
68739
68740 2007-06-20  Karl Berry  <karl@gnu.org>
68741
68742         * config/srclist.txt: track www changes in license files.
68743
68744 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68745
68746         * build-aux/bootstrap: Remove stray dot.
68747         Make sure build_aux settings are honored when linking
68748         gnulib_extra_files.
68749
68750 2007-06-19  Eric Blake  <ebb9@byu.net>
68751
68752         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68753         Allow compilation on cygwin.
68754
68755 2007-06-19  Jim Meyering  <jim@meyering.net>
68756
68757         xreadlink-with-size: Remove module.  No longer used.
68758         Ex-callers now use xreadlink or mreadlink-with-size.
68759         * modules/xreadlink-with-size: Remove module.
68760         * lib/xreadlink-with-size.c: Remove file.
68761         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68762         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68763         just before the function definition *is* accurate.
68764
68765         Eliminate one way canonicalize_filename_mode could exit.
68766         * lib/canonicalize.c (canonicalize_filename_mode):
68767         Use mreadlink_with_size, not xreadlink_with_size.
68768
68769 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         Detect porting problems to FreeBSD/arm, which has time_t wider than
68772         long int.  Original problem reported for GNU diff by Xin Li in
68773         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68774         * modules/getdate (Depends-on): Add intprops, verify.
68775         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68776         is an integer type no wider than long int.
68777
68778 2007-06-18  Jim Meyering  <jim@meyering.net>
68779
68780         New module: mreadlink-with-size.
68781         * MODULES.html.sh: Add mreadlink-with-size.
68782         * modules/mreadlink-with-size: New module
68783         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68784         not xreadlink-with-size.
68785         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68786
68787 2007-06-16  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68790         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68791         Reported by Gary V. Vaughan <gary@gnu.org>.
68792
68793 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         Revamp lchown so that it lives in unistd.h where it belongs.
68796         * lib/lchown.h: Remove.
68797         * lib/dirchownmod.c: Don't include lib/lchown.h.
68798         * lib/fchownat.c: Likewise.
68799         * lib/openat.c: Likewise.
68800         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68801         does not follow symlinks.
68802         (EOPNOTSUPP): Define if not defined.
68803         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68804         is defined to 0.
68805         (lchown): New decl.
68806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68807         Do not check for lchown decl.
68808         Set REPLACE_LCHOWN.
68809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68810         REPLACE_LCHOWN.
68811         * modules/chown: Make it clear it follows symlinks.
68812         * modules/lchown: Make it clear it doesn't follow symlinks.
68813         (Files): Remove lib/lchown.h
68814         (Depends-on): Add unistd.
68815         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68816         (Include): Include <unistd.h>, not "lchown.h".
68817         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68818         REPLACE_LCHOWN.
68819
68820 2007-06-15  Jim Meyering  <jim@meyering.net>
68821
68822         Change license (GPL to LGPL) of fsusage and dependents.
68823         * modules/fsusage (License): Change to LGPL.
68824         * modules/full-read (License): Likewise.
68825         * modules/full-write (License): Likewise.
68826         * modules/safe-read (License): Likewise.
68827         * modules/safe-write (License): Likewise.
68828
68829 2007-06-14  Ben Pfaff  <blp@gnu.org>
68830
68831         Missing part of allocsa -> malloca transition.
68832         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68833         gl_MALLOCA.
68834
68835 2007-06-12  Bruno Haible  <bruno@clisp.org>
68836
68837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68838         to ia64, x86_64, i386.
68839         Reported by Eric Blake.
68840
68841 2007-06-12  Bruno Haible  <bruno@clisp.org>
68842
68843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68844         cross-compiling to x86_64.
68845
68846 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68849         glitch reported by Ralf Wildenhues in
68850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68851
68852         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68853         Vin Shelton.
68854
68855 2007-06-11  Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68858         replacement string.
68859         Reported by Eric Blake.
68860
68861 2007-06-10  Bruno Haible  <bruno@clisp.org>
68862
68863         Prepare vasnprintf code for use with Unicode strings.
68864         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68865         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68866         TYPE_U32_STRING.
68867         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68868         a_u32_string variants.
68869         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68870         * lib/printf-args.c: Don't include config.h and the specification
68871         header if PRINTF_FETCHARGS is already defined.
68872         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68873         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68874         TYPE_U16_STRING, TYPE_U32_STRING.
68875         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68876         u16_directive, u16_directives, u32_directive, u32_directives): New
68877         types.
68878         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68879         New declarations.
68880         * lib/printf-parse.c: Don't include config.h and the specification
68881         header if PRINTF_PARSE is already defined. Eliminate the set of
68882         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68883         them now. Include c-ctype.h.
68884         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68885         directive and CHAR_T_ONLY_ASCII.
68886         * lib/vasnprintf.c: Don't include config.h and the specification header
68887         if VASNPRINTF is already defined.
68888         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68889         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68890         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68891         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68892         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68893         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68894         code accordingly.
68895         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68896         pad_ourselves also in this case, with the 'c' and 's' directives, and
68897         with a different notion of "width".
68898         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68899
68900 2007-06-10  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/unistr/u32-mbsnlen: New file.
68903         * lib/unistr/u32-mbsnlen.c: New file.
68904
68905         * modules/unistr/u16-mbsnlen: New file.
68906         * lib/unistr/u16-mbsnlen.c: New file.
68907
68908         * modules/unistr/u8-mbsnlen: New file.
68909         * lib/unistr/u8-mbsnlen.c: New file.
68910
68911         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68912         declarations.
68913
68914 2007-06-10  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/string_.h (mbsnlen): New declaration.
68917         * lib/mbsnlen.c: New file.
68918         * m4/mbsnlen.m4: New file.
68919         * modules/mbsnlen: New file.
68920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68921         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68922         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68923
68924 2007-06-10  Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68927
68928 2007-06-10  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68931         * lib/mbuiter.h: Likewise.
68932
68933 2007-06-10  Bruno Haible  <bruno@clisp.org>
68934
68935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68936         declaration.
68937
68938 2007-06-10  Karl Berry  <karl@gnu.org>
68939
68940         * config/srclist.txt: remove gettext entries, Bruno prefers
68941         to update individually.
68942
68943 2007-06-10  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68946         'maxlen'. Ensure only length + width bytes are allocated, not
68947         length + 1 + width.
68948
68949 2007-06-09  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68952         (CHAR_T): Remove macro.
68953         (VASNPRINTF): Update.
68954
68955 2007-06-09  Bruno Haible  <bruno@clisp.org>
68956
68957         * MODULES.html.sh (Unicode string functions): Add the new modules.
68958
68959         * modules/uniconv/u32-conv-to-enc: New file.
68960         * lib/uniconv/u32-conv-to-enc.c: New file.
68961         * modules/uniconv/u32-conv-to-enc-tests: New file.
68962         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68963
68964         * modules/uniconv/u16-conv-to-enc: New file.
68965         * lib/uniconv/u16-conv-to-enc.c: New file.
68966         * lib/uniconv/u-conv-to-enc.h: New file.
68967         * modules/uniconv/u16-conv-to-enc-tests: New file.
68968         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68969
68970         * modules/uniconv/u8-conv-to-enc: New file.
68971         * lib/uniconv/u8-conv-to-enc.c: New file.
68972         * modules/uniconv/u8-conv-to-enc-tests: New file.
68973         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68974
68975         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68976         u32_conv_to_encoding): New declarations.
68977
68978 2007-06-09  Bruno Haible  <bruno@clisp.org>
68979
68980         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68981
68982 2007-06-09  Bruno Haible  <bruno@clisp.org>
68983
68984         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68985         * modules/malloca: Renamed from modules/allocsa, updated.
68986         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68987         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68988         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68989         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68990         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68991         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68992         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68993         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68994         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68995         * modules/c-strcasestr (Depends-on): Update.
68996         * lib/c-strcasestr.c: Update.
68997         * modules/c-strstr (Depends-on): Update.
68998         * lib/c-strstr.c: Update.
68999         * modules/canonicalize-lgpl (Depends-on): Update.
69000         * lib/canonicalize-lgpl.c: Update.
69001         * modules/clean-temp (Depends-on): Update.
69002         * lib/clean-temp.c: Update.
69003         * modules/csharpcomp (Depends-on): Update.
69004         * lib/csharpcomp.c: Update.
69005         * modules/csharpexec (Depends-on): Update.
69006         * lib/csharpexec.c: Update.
69007         * modules/javacomp (Depends-on): Update.
69008         * lib/javacomp.c: Update.
69009         * modules/javaexec (Depends-on): Update.
69010         * lib/javaexec.c: Update.
69011         * modules/mbscasestr (Depends-on): Update.
69012         * lib/mbscasestr.c: Update.
69013         * modules/mbsstr (Depends-on): Update.
69014         * lib/mbsstr.c: Update.
69015         * modules/setenv (Depends-on): Update.
69016         * lib/setenv.c: Update.
69017         * modules/strcasestr (Depends-on): Update.
69018         * lib/strcasestr.c: Update.
69019         * modules/striconveha (Depends-on): Update.
69020         * lib/striconveha.c: Update.
69021         * modules/relocatable-prog-wrapper (Files): Update.
69022         * lib/relocwrapper.c: Update.
69023         * build-aux/install-reloc: Update.
69024         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69025
69026 2007-06-08  Bruno Haible  <bruno@clisp.org>
69027
69028         Port to uClibc.
69029         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69030         * lib/fpurge.c (fpurge): Likewise.
69031         * lib/freading.c (freading): Likewise.
69032         * lib/fseeko.c (rpl_fseeko): Likewise.
69033         * lib/fseterr.c (fseterr): Likewise.
69034         * lib/fwriting.c (fwriting): Likewise.
69035         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69036
69037 2007-06-08  Bruno Haible  <bruno@clisp.org>
69038
69039         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69040         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69041         * modules/gettext (Files): Add m4/intlmacosx.m4.
69042
69043 2007-06-07  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/localename-tests: New file.
69046         * tests/test-localename.c: New file.
69047
69048         New module 'localename'.
69049         * lib/localename.h: New file.
69050         * lib/localename.c: New file, from GNU gettext.
69051         * m4/localename.m4: New file.
69052         * modules/localename: New file.
69053
69054 2007-06-07  Bruno Haible  <bruno@clisp.org>
69055
69056         Work around the lack of <wchar.h> on some builds of uClibc.
69057         * doc/headers/wchar.texi: Update.
69058         * lib/wchar_.h: Include <wchar.h> only if it exists.
69059         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69060         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69061         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69062         doesn't exist.
69063         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69064         * modules/mbfile (Depends-on): Add wchar.
69065         * modules/mbiter (Depends-on): Likewise.
69066         * modules/mbuiter (Depends-on): Likewise.
69067         Reported by Simon Josefsson.
69068
69069 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         Work around problem reported by Steven M. Schweda in
69072         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69073         Tru64 5.1B with the Compaq compiler environment installed declares
69074         an 'isblank' function but does not define it in the C library.
69075         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69076         * lib/regex_internal.h (isblank): Likewise.
69077         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69078         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69079
69080 2007-06-05  Bruno Haible  <bruno@clisp.org>
69081
69082         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69083         ia64.
69084         * modules/printf-safe: New file.
69085         * modules/fprintf-posix (Depends-on): Add printf-safe.
69086         * modules/printf-posix (Depends-on): Likewise.
69087         * modules/snprintf-posix (Depends-on): Likewise.
69088         * modules/sprintf-posix (Depends-on): Likewise.
69089         * modules/vasnprintf-posix (Depends-on): Likewise.
69090         * modules/vasprintf-posix (Depends-on): Likewise.
69091         * modules/vfprintf-posix (Depends-on): Likewise.
69092         * modules/vprintf-posix (Depends-on): Likewise.
69093         * modules/vsnprintf-posix (Depends-on): Likewise.
69094         * modules/vsprintf-posix (Depends-on): Likewise.
69095         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69096         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69097         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69098         "no" on i386, x86_64, ia64.
69099         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69100         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69101         on i386, x86_64, ia64.
69102         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69103         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69104         on i386, x86_64, ia64.
69105         * tests/test-vasnprintf-posix.c: Include float.h.
69106         (LDBL80_WORDS): New macro.
69107         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69108         on i386, x86_64, ia64.
69109         * tests/test-vasprintf-posix.c: Include float.h.
69110         (LDBL80_WORDS): New macro.
69111         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69112         on i386, x86_64, ia64.
69113         * tests/test-snprintf-posix.c: Include float.h.
69114         * tests/test-sprintf-posix.c: Likewise.
69115         * tests/test-vsnprintf-posix.c: Likewise.
69116         * tests/test-vsprintf-posix.c: Likewise.
69117
69118 2007-06-05  Bruno Haible  <bruno@clisp.org>
69119
69120         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69121         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69122         non-IEEE numbers on i386, x86_64, ia64.
69123         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69124         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69125         * tests/test-isnanl.h: Include float.h.
69126         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69127
69128 2007-06-05  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69131         also the %a / %A. Handle the %a / %A code before this extra handling.
69132
69133 2007-06-05  Bruno Haible  <bruno@clisp.org>
69134
69135         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69136         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69137
69138 2007-06-05  Bruno Haible  <bruno@clisp.org>
69139
69140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69141         typo in variable name.
69142
69143 2007-06-05  Eric Blake  <ebb9@byu.net>
69144
69145         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69146         Reported by Simon Josefsson.
69147
69148 2007-06-04  Bruno Haible  <bruno@clisp.org>
69149
69150         Avoid test failures on some PowerPC platforms.
69151         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69152         Define differently for PowerPC.
69153         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69154         Reported by Gary V. Vaughan <gary@gnu.org>.
69155
69156 2007-06-02  Bruno Haible  <bruno@clisp.org>
69157
69158         Fix test-stdint failure on FreeBSD/ia64.
69159         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69160         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69161         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69162         * doc/headers/stdint.texi: Update.
69163
69164 2007-06-01  Bruno Haible  <bruno@clisp.org>
69165
69166         * tests/test-binary-io.c (main): Pass a third argument to open().
69167         Reported by Gary V. Vaughan <gary@gnu.org>.
69168
69169 2007-06-01  Bruno Haible  <bruno@clisp.org>
69170
69171         * doc/functions/frexpl.texi: Update for mingw.
69172
69173 2007-06-01  Bruno Haible  <bruno@clisp.org>
69174
69175         * tests/test-lseek.c (main): Disable test of errno for invalid third
69176         argument.
69177         * doc/functions/lseek.texi: Update.
69178         Reported by Gary V. Vaughan <gary@gnu.org>.
69179
69180 2007-05-28  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69183
69184 2007-05-31  Eric Blake  <ebb9@byu.net>
69185
69186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69187         cross compiling.
69188
69189 2007-05-30  Eric Blake  <ebb9@byu.net>
69190         and Bruno Haible  <bruno@clisp.org>
69191
69192         Work around mingw test failures exposed by m4-1.4.9b.
69193         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69194         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69195         moment.
69196
69197 2007-05-30  Bruno Haible  <bruno@clisp.org>
69198
69199         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69200         assuming that they are closed. Needed on HP-UX 11.
69201
69202 2007-05-29  Bruno Haible  <bruno@clisp.org>
69203
69204         Fix a problem with #include_next.
69205         * lib/dirent_.h: Split the double-inclusion guard.
69206         * lib/fcntl_.h: Likewise.
69207         * lib/float_.h: Likewise.
69208         * lib/iconv_.h: Likewise.
69209         * lib/inttypes_.h: Likewise.
69210         * lib/locale_.h: Likewise.
69211         * lib/math_.h: Likewise.
69212         * lib/netinet_in_.h: Likewise.
69213         * lib/search_.h: Likewise.
69214         * lib/signal_.h: Likewise.
69215         * lib/stdint_.h: Likewise.
69216         * lib/stdio_.h: Likewise.
69217         * lib/stdlib_.h: Likewise.
69218         * lib/string_.h: Likewise.
69219         * lib/sys_select_.h: Likewise.
69220         * lib/sys_socket_.h: Likewise.
69221         * lib/sys_stat_.h: Likewise.
69222         * lib/sys_time_.h: Likewise.
69223         * lib/sysexits_.h: Likewise.
69224         * lib/time_.h: Likewise.
69225         * lib/unistd_.h: Likewise.
69226         * lib/wchar_.h: Likewise.
69227         * lib/wctype_.h: Likewise.
69228
69229 2007-05-29  Bruno Haible  <bruno@clisp.org>
69230
69231         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69232         for the moment.
69233
69234 2007-05-29  Bruno Haible  <bruno@clisp.org>
69235
69236         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69237         invocation.
69238         Reported by Eric Blake.
69239
69240 2007-05-29  Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69243         compiling case.
69244
69245 2007-05-29  Eric Blake  <ebb9@byu.net>
69246             Bruno Haible  <bruno@clisp.org>
69247
69248         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69249         cross compiles.
69250
69251 2007-05-28  Eric Blake  <ebb9@byu.net>
69252
69253         * modules/closein-tests (test_closein_LDADD): Support test on
69254         cygwin with libtool.
69255
69256 2007-05-28  Bruno Haible  <bruno@clisp.org>
69257
69258         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69259         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69260         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69261         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69262         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69263         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69264         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69265         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69266         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69267
69268 2007-05-28  Eric Blake  <ebb9@byu.net>
69269
69270         Unconditionally include <config.h> in unit tests.
69271         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69272         * tests/test-allocsa.c, tests/test-arcfour.c,
69273         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69274         tests/test-array_list.c, tests/test-array_oset.c,
69275         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69276         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69277         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69278         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69279         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69280         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69281         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69282         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69283         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69284         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69285         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69286         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69287         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69288         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69289         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69290         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69291         test-md5.c, test-memmem.c, test-printf-posix.c,
69292         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69293         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69294         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69295         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69296         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69297         test-vasnprintf-posix2.c, test-vasnprintf.c,
69298         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69299         test-vfprintf-posix.c, test-vprintf-posix.c,
69300         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69301         test-xvasprintf.c: Likewise.
69302
69303 2007-05-28  Bruno Haible  <bruno@clisp.org>
69304
69305         * gnulib-tool (func_import): Remember the --with-tests command-line
69306         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69307         Reported by Eric Blake.
69308
69309 2007-05-28  Bruno Haible  <bruno@clisp.org>
69310
69311         * modules/ftell-tests: New file.
69312         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69313         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69314
69315         * lib/ftell.c: New file.
69316         * modules/ftell: New file.
69317         * m4/ftell.m4: New file.
69318         * doc/functions/ftell.texi: Update.
69319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69320         REPLACE_FTELL.
69321         * lib/stdio_.h (rpl_ftell): New declaration.
69322         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69323         REPLACE_FTELL.
69324
69325 2007-05-28  Eric Blake  <ebb9@byu.net>
69326
69327         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69328
69329 2007-05-28  Bruno Haible  <bruno@clisp.org>
69330
69331         * modules/fseek-tests: New file.
69332         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69333         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69334
69335         * lib/fseek.c: New file.
69336         * modules/fseek: New file.
69337         * m4/fseek.m4: New file.
69338         * doc/functions/fseek.texi: Update.
69339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69340         REPLACE_FSEEK.
69341         * lib/stdio_.h (rpl_fseek): New declaration.
69342         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69343         REPLACE_FSEEK.
69344
69345 2007-05-28  Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/stdio_.h (fflush): More comments.
69348
69349 2007-05-28  Bruno Haible  <bruno@clisp.org>
69350
69351         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69352         runtime test.
69353
69354 2007-05-28  Eric Blake  <ebb9@byu.net>
69355
69356         Improve lseek module.
69357         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69358         * lib/unistd_.h (lseek): Scale back link warning message.
69359         * tests/test-lseek.c: Beef up test.
69360         * tests/test-lseek.sh: Exercise more facets of lseek.
69361         Reported by Bruno Haible.
69362
69363 2007-05-28  Bruno Haible  <bruno@clisp.org>
69364
69365         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69366         to define.
69367
69368 2007-05-27  Bruno Haible  <bruno@clisp.org>
69369
69370         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69371
69372 2007-05-27  Bruno Haible  <bruno@clisp.org>
69373
69374         * modules/openmp: New file.
69375         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69376         Noah Misch.
69377
69378 2007-05-26  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/chdir-long (Depends-on): Add fchdir.
69381         * modules/chdir-safer (Depends-on): Likewise.
69382         * modules/fts (Depends-on): Likewise.
69383         * modules/fts-lgpl (Depends-on): Likewise.
69384         * modules/openat (Depends-on): Likewise.
69385         * modules/savewd (Depends-on): Likewise.
69386
69387 2007-05-24  Eric Blake  <ebb9@byu.net>
69388
69389         Fix lseek on mingw.
69390         * modules/lseek: New module.
69391         * m4/lseek.m4: New file.
69392         * lib/lseek.c: New file.
69393         * modules/lseek-tests: New file.
69394         * tests/test-lseek.c: New file.
69395         * tests/test-lseek.sh: New file.
69396         * MODULES.html.sh: Document lseek module.
69397         * modules/fflush (Depends-on): Add lseek, fseeko.
69398         * modules/fseeko (Depends-on): Likewise.
69399         * modules/ftello (Depends-on): Likewise.
69400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69401         broken.
69402         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69403         broken.
69404         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69405         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69406         * lib/ftello.c (rpl_ftello): Likewise.
69407         * tests/test-fseeko.c (main): Test this.
69408         * tests/test-fseeko.sh: Likewise.
69409         * tests/test-ftello.c (main): Likewise.
69410         * tests/test-ftello.sh: Likewise.
69411         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69412         implies replacing fseek.
69413         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69414         HAVE_FTELLO.
69415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69416         * modules/unistd (Makefile.am): Likewise.
69417         * lib/unistd_.h (lseek): Declare a replacement.
69418         * doc/functions/lseek.texi (lseek): Document this fix.
69419         * doc/functions/fseek.texi (fseek): Likewise.
69420         * doc/functions/ftell.texi (ftell): Likewise.
69421
69422 2007-05-24  Bruno Haible  <bruno@clisp.org>
69423
69424         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69425         in the printed representation of a NaN.
69426         * tests/test-vasprintf-posix.c (test_function): Likewise.
69427         * tests/test-snprintf-posix.h (test_function): Likewise.
69428         * tests/test-sprintf-posix.h (test_function): Likewise.
69429         Reported by Eric Blake.
69430
69431 2007-05-23  Eric Blake  <ebb9@byu.net>
69432
69433         Fix fseeko/ftello on cygwin 1.5.24.
69434         * doc/functions/fseeko.texi (fseeko): Document the fix.
69435         * doc/functions/ftello.texi (ftello): Document the fix.
69436         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69437         * doc/functions/stdout.text (stdout): New file.
69438         * doc/functions/stderr.text (stderr): New file.
69439         * doc/gnulib.texi (Function Substitutes): Use new files.
69440         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69441         prior to 1.7.0.
69442         * tests/test-ftello.c (main): Likewise for ftello.
69443         * tests/test-fseeko.sh: New file.
69444         * tests/test-ftello.sh: New file.
69445         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69446         with seekable stdin.
69447         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69448         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69449         (gl_REPLACE_FSEEKO): New macro.
69450         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69451         * modules/fseeko (Files): Distribute fseeko.c.
69452         * modules/ftello (Files): Distribute ftello.c.
69453         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69454         mode.
69455         * lib/ftello.c (rpl_ftello): New file.
69456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69457         fseeko, ftello.
69458         (gl_STDIN_LARGE_OFFSET): New macro.
69459         * modules/stdio (Makefile.am): Perform the replacement.
69460         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69461
69462 2007-05-23  Bruno Haible  <bruno@clisp.org>
69463
69464         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69465         GNULIB_POSIXCHECK is defined.
69466
69467 2007-05-21  Bruno Haible  <bruno@clisp.org>
69468
69469         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69470         Check also the output for NaN arguments. When cross-compiling, guess
69471         no on IRIX.
69472         * lib/vasnprintf.c: Update comments.
69473         * tests/test-vasnprintf-posix.c (strisnan): New function.
69474         (test_function): Use it.
69475         * tests/test-vasprintf-posix.c (strisnan): New function.
69476         (test_function): Use it.
69477         * tests/test-snprintf-posix.h (strisnan): New function.
69478         (test_function): Use it.
69479         * tests/test-sprintf-posix.h (strisnan): New function.
69480         (test_function): Use it.
69481         Reported by Eric Blake.
69482
69483 2007-05-20  Bruno Haible  <bruno@clisp.org>
69484
69485         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69486         numbers that fails on BeOS.
69487         * doc/functions/frexpl.texi: Update.
69488
69489 2007-05-20  Jim Meyering  <jim@meyering.net>
69490
69491         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69492         forced upon us by glibc-2.6.
69493
69494 2007-05-20  Bruno Haible  <bruno@clisp.org>
69495
69496         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69497         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69498         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69499         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69500         NEED_PRINTF_INFINITE.
69501         (is_infinitel): New function.
69502         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69504         gl_PREREQ_VASNPRINTF_INFINITE.
69505         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69507         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69508         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69509         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69510         gl_PREREQ_VASNPRINTF_INFINITE.
69511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69518         * doc/functions/fprintf.texi: Update.
69519         * doc/functions/printf.texi: Update.
69520         * doc/functions/snprintf.texi: Update.
69521         * doc/functions/sprintf.texi: Update.
69522         * doc/functions/vfprintf.texi: Update.
69523         * doc/functions/vprintf.texi: Update.
69524         * doc/functions/vsnprintf.texi: Update.
69525         * doc/functions/vsprintf.texi: Update.
69526
69527 2007-05-20  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69530         was not found in libc.
69531         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69532
69533 2007-05-20  Bruno Haible  <bruno@clisp.org>
69534
69535         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69536         printed as "-nan" instead of "nan".
69537         * tests/test-vasprintf-posix.c (test_function): Likewise.
69538         * tests/test-snprintf-posix.h (test_function): Likewise.
69539         * tests/test-sprintf-posix.h (test_function): Likewise.
69540         Needed for HP-UX 11.
69541
69542 2007-05-20  Jim Meyering  <jim@meyering.net>
69543
69544         Fix buggy test for the fchownat-deref bug.
69545         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69546         symlink required for the run-test.  Without it, this test would
69547         always declare that fchownat doesn't work, and client code would
69548         unnecessarily use the replacement function with fixed libc.
69549         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69550         Reported by Greg Schafer.
69551
69552 2007-05-19  Bruno Haible  <bruno@clisp.org>
69553
69554         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69555         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69556         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69557         Needed for IRIX 6.5 and Solaris 2.5.1.
69558
69559 2007-05-19  Bruno Haible  <bruno@clisp.org>
69560
69561         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69562         (test_function): Skip tests involving -0.0 on platforms where
69563         -0.0 = 0.0.
69564         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69565         (test_function): Skip tests involving -0.0 on platforms where
69566         -0.0 = 0.0.
69567         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69568         (test_function): Skip tests involving -0.0 on platforms where
69569         -0.0 = 0.0.
69570         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69571         (test_function): Skip tests involving -0.0 on platforms where
69572         -0.0 = 0.0.
69573         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69574         tests.
69575         * tests/test-printf-posix.h (test_function): Likewise.
69576         * tests/test-printf-posix.output: Remove all -0.0 related results.
69577         Needed for IRIX 6.5.
69578
69579 2007-05-19  Bruno Haible  <bruno@clisp.org>
69580
69581         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69582         printed as "nan0x7fffffff" instead of "nan".
69583         * tests/test-vasprintf-posix.c (test_function): Likewise.
69584         * tests/test-snprintf-posix.h (test_function): Likewise.
69585         * tests/test-sprintf-posix.h (test_function): Likewise.
69586         * tests/test-fprintf-posix.h (NaN): Remove macro.
69587         (test_function): Remove all NaN related tests.
69588         * tests/test-printf-posix.h (NaN): Remove macro.
69589         (test_function): Remove all NaN related tests.
69590         * tests/test-printf-posix.output: Remove all NaN related results.
69591         Needed for IRIX 6.5.
69592
69593 2007-05-19  Bruno Haible  <bruno@clisp.org>
69594
69595         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69597
69598 2007-05-19  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/float_.h: New file.
69601         * m4/float_h.m4: New file.
69602         * modules/float: New file.
69603         * modules/isnanl (Dependencies): Add float.
69604         * modules/isnanl-nolibm (Dependencies): Likewise.
69605         * modules/mathl (Dependencies): Likewise.
69606         * modules/printf-frexpl (Dependencies): Likewise.
69607         * modules/signbit (Dependencies): Likewise.
69608         * modules/vasnprintf (Dependencies): Likewise.
69609         * doc/headers/float.texi: Update.
69610
69611 2007-05-19  Jim Meyering  <jim@meyering.net>
69612
69613         * lib/utimens.c (gl_futimens): Rename from futimens,
69614         now that glibc-2.6 declares futimens.
69615         * lib/utimens.h: Likewise.
69616
69617 2007-05-19  Bruno Haible  <bruno@clisp.org>
69618
69619         Avoid test failures on mingw.
69620         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69621         * tests/test-printf-posix.sh: Likewise.
69622         * tests/test-vfprintf-posix.sh: Likewise.
69623         * tests/test-vprintf-posix.sh: Likewise.
69624
69625 2007-05-19  Bruno Haible  <bruno@clisp.org>
69626
69627         Fix *printf result for NaN, Inf, -0.0 on mingw.
69628         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69629         * lib/vasnprintf.c: Include math.h and isnan.h.
69630         (is_infinite_or_zero): New function.
69631         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69632         values in the %f, %F, %e, %E, %g, %G directives.
69633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69635         gl_PRINTF_INFINITE and test its result. Invoke
69636         gl_PREREQ_VASNPRINTF_INFINITE.
69637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69644         * doc/functions/fprintf.texi: Update.
69645         * doc/functions/printf.texi: Update.
69646         * doc/functions/snprintf.texi: Update.
69647         * doc/functions/sprintf.texi: Update.
69648         * doc/functions/vfprintf.texi: Update.
69649         * doc/functions/vprintf.texi: Update.
69650         * doc/functions/vsnprintf.texi: Update.
69651         * doc/functions/vsprintf.texi: Update.
69652
69653 2007-05-19  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69656         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69657         Instead of multiplying with 10^k, set extra_zeroes to k.
69658         (scale10_round_long_double): Remove function.
69659
69660 2007-05-18  Bruno Haible  <bruno@clisp.org>
69661
69662         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69663         introduced on 2007-05-06.
69664
69665 2007-05-18  Bruno Haible  <bruno@clisp.org>
69666
69667         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69668         %g directives.
69669         * tests/test-vasprintf-posix.c (test_function): Likewise.
69670         * tests/test-snprintf-posix.h (test_function): Likewise.
69671         * tests/test-sprintf-posix.h (test_function): Likewise.
69672
69673 2007-05-18  Bruno Haible  <bruno@clisp.org>
69674
69675         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69676         (strmatch): New function.
69677         (test_function): Test the %f directive on numbers of various exponents.
69678         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69679         (strmatch): New function.
69680         (test_function): Test the %f directive on numbers of various exponents.
69681         * tests/test-snprintf-posix.h (strmatch): New function.
69682         (test_function): Test the %f directive on numbers of various exponents.
69683         * tests/test-sprintf-posix.h (strmatch): New function.
69684         (test_function): Test the %f directive on numbers of various exponents.
69685         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69686         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69687         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69688         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69689
69690 2007-05-18  Bruno Haible  <bruno@clisp.org>
69691
69692         Add support for 'long double' number output.
69693         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69694         * lib/vasnprintf.c: Include math.h and float+.h.
69695         (mp_limb_t): New type.
69696         (GMP_LIMB_BITS): New macro.
69697         (mp_twolimb_t): New type.
69698         (GMP_TWOLIMB_BITS): New macro.
69699         (mpn_t): New type.
69700         (multiply, divide, convert_to_decimal, decode_long_double,
69701         scale10_round_long_double, scale10_round_decimal_long_double,
69702         floorlog10l): New functions.
69703         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69704         for the %f, %F, %e, %E, %g, %G directives.
69705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69707         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69708         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69716         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69717         * modules/snprintf-posix (Depends-on): Likewise.
69718         * modules/sprintf-posix (Depends-on): Likewise.
69719         * modules/vasnprintf-posix (Depends-on): Likewise.
69720         * modules/vasprintf-posix (Depends-on): Likewise.
69721         * modules/vfprintf-posix (Depends-on): Likewise.
69722         * modules/vsnprintf-posix (Depends-on): Likewise.
69723         * modules/vsprintf-posix (Depends-on): Likewise.
69724         * modules/vasnprintf (Files): Add lib/float+.h.
69725         * doc/functions/fprintf.texi: Update.
69726         * doc/functions/printf.texi: Update.
69727         * doc/functions/snprintf.texi: Update.
69728         * doc/functions/sprintf.texi: Update.
69729         * doc/functions/vfprintf.texi: Update.
69730         * doc/functions/vprintf.texi: Update.
69731         * doc/functions/vsnprintf.texi: Update.
69732         * doc/functions/vsprintf.texi: Update.
69733
69734 2007-05-18  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69737
69738 2007-05-18  Bruno Haible  <bruno@clisp.org>
69739
69740         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69741         for printing 64-bit integers. Needed for mingw.
69742
69743 2007-05-18  Bruno Haible  <bruno@clisp.org>
69744
69745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69746         gl_FUNC_FREXPL_WORKS.
69747         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69748
69749 2007-05-18  Bruno Haible  <bruno@clisp.org>
69750
69751         * modules/frexpl-nolibm-tests: New file.
69752
69753         * modules/frexpl-nolibm: New file.
69754         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69755
69756 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69759         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69760         GCC 4.2, which otherwise issues a lot of warnings.
69761         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69762         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69763         Likewise.
69764         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69765         * modules/iconv_open (iconv.h): Likewise.
69766         * modules/locale (locale.h): Likewise.
69767         * modules/netinet_in (netinet/in.h): Likewise.
69768         * modules/sys_select (sys_select.h): Likewise.
69769         * modules/sys_socket (sys/socket.h): Likewise.
69770         * modules/sys_stat (sys/stat.h): Likewise.
69771         * modules/sysexits (sysexits.h): Likewise.
69772         * modules/unistd (unistd.h): Likewise.
69773
69774 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69775
69776         * modules/closein-tests (Makefile.am): Distribute
69777         `test-closein.sh'.
69778
69779 2007-05-17  Bruno Haible  <bruno@clisp.org>
69780
69781         * tests/test-printf-posix.output: Renamed from
69782         tests/test-fprintf-posix.out.
69783         * modules/fprintf-posix-tests: Update.
69784         * modules/printf-posix-tests: Update.
69785         * modules/vfprintf-posix-tests: Update.
69786         * modules/vprintf-posix-tests: Update.
69787         * tests/test-fprintf-posix.sh: Update.
69788         * tests/test-printf-posix.sh: Update.
69789         * tests/test-vfprintf-posix.sh: Update.
69790         * tests/test-vprintf-posix.sh: Update.
69791         Reported by Ralf Wildenhues.
69792
69793 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69796         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69797         GCC 4.2, which otherwise issues a lot of warnings.
69798         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69799         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69800         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69801         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69802         it should no longer be needed.
69803         * lib/string_.h: Likewise.
69804         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69805         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69806         * modules/inttypes (inttypes.h): Likewise.
69807         * modules/math (math.h): Likewise.
69808         * modules/search (search.h): Likewise.
69809         * modules/signal (signal.h): Likewise.
69810         * modules/stdint (stdint.h): Likewise.
69811         * modules/stdio (stdio.h): Likewise.
69812         * modules/stdlib (stdlib.h): Likewise.
69813         * modules/string (string.h): Likewise.
69814         * modules/sys_time (sys/time.h): Likewise.
69815         * modules/time (time.h): Likewise.
69816         * modules/wchar (wchar.h): Likewise.
69817         * modules/wctype (wtype.h): Likewise.
69818
69819 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69820
69821         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69822
69823 2007-05-13  Bruno Haible  <bruno@clisp.org>
69824
69825         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69826         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69827         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69828         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69829         (gl_PREREQ_STRTOK_R): Don't require it here.
69830
69831 2007-05-13  Bruno Haible  <bruno@clisp.org>
69832
69833         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69834         when used in C++ mode.
69835
69836 2007-05-12  Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/linebuffer.h: Tweak doc.
69839         * lib/linebuffer.c: Likewise.
69840
69841 2007-05-12  James Youngman  <jay@gnu.org>
69842
69843         * lib/linebuffer.c (readlinebuffer_delim): New function,
69844         like readlinebuffer, but use a caller-specified delimiter.
69845         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69846         as the delimiter.
69847         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69848
69849 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69850
69851         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69852         * modules/openat (Files): Remove openat-die.c.
69853         (Depends-on): Add openat-die.
69854         * modules/openat-die: New module.
69855
69856 2007-05-06  Bruno Haible  <bruno@clisp.org>
69857
69858         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69859         Update with info about Cygwin.
69860         * doc/functions/fprintf.texi: Update.
69861         * doc/functions/printf.texi: Update.
69862         * doc/functions/snprintf.texi: Update.
69863         * doc/functions/sprintf.texi: Update.
69864         * doc/functions/vfprintf.texi: Update.
69865         * doc/functions/vprintf.texi: Update.
69866         * doc/functions/vsnprintf.texi: Update.
69867         * doc/functions/vsprintf.texi: Update.
69868         Reported by Eric Blake.
69869
69870 2007-05-06  Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69873         padding ourselves for the floating-point directives.
69874         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69877         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69878         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69886         * tests/test-snprintf-posix.h (test_function): Also check the width
69887         and some flags in the %f directive.
69888         * tests/test-sprintf-posix.h (test_function): Likewise.
69889         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69890         * tests/test-vasprintf-posix.c (test_function): Likewise.
69891         * doc/functions/fprintf.texi: Update.
69892         * doc/functions/printf.texi: Update.
69893         * doc/functions/snprintf.texi: Update.
69894         * doc/functions/sprintf.texi: Update.
69895         * doc/functions/vfprintf.texi: Update.
69896         * doc/functions/vprintf.texi: Update.
69897         * doc/functions/vsnprintf.texi: Update.
69898         * doc/functions/vsprintf.texi: Update.
69899
69900 2007-05-06  Bruno Haible  <bruno@clisp.org>
69901
69902         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69903         pass the ' flag character to sprintf or snprintf.
69904         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69907         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69908         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69916         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69917         flag.
69918         * tests/test-sprintf-posix.h (test_function): Likewise.
69919         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69920         * tests/test-vasprintf-posix.c (test_function): Likewise.
69921         * doc/functions/fprintf.texi: Update.
69922         * doc/functions/printf.texi: Update.
69923         * doc/functions/snprintf.texi: Update.
69924         * doc/functions/sprintf.texi: Update.
69925         * doc/functions/vfprintf.texi: Update.
69926         * doc/functions/vprintf.texi: Update.
69927         * doc/functions/vsnprintf.texi: Update.
69928         * doc/functions/vsprintf.texi: Update.
69929
69930 2007-05-01  Bruno Haible  <bruno@clisp.org>
69931
69932         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69933
69934 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69937         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69938
69939 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69942         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69944
69945 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69946
69947         * lib/argp-help.c (struct hol_entry): New member `ord'.
69948         (HOL_ENTRY_PTRCMP): Use ord for comparison
69949         (hol_sort): Initialize ord.
69950
69951 2007-05-01  Bruno Haible  <bruno@clisp.org>
69952
69953         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69954         Reported by Eric Blake.
69955         * doc/gnulib.texi (Function Substitutes): Update.
69956
69957 2007-05-01  Bruno Haible  <bruno@clisp.org>
69958
69959         * doc/functions.texi: Remove file, now redundant through
69960         doc/functions/*.texi.
69961
69962 2007-05-01  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/argp (Depends-on): Add sleep.
69965
69966 2007-05-01  Bruno Haible  <bruno@clisp.org>
69967
69968         * modules/sleep-tests: New file.
69969         * tests/test-sleep.c: New file.
69970
69971         * modules/sleep: New file.
69972         * lib/sleep.c: New file.
69973         * m4/sleep.m4: New file.
69974         * lib/unistd_.h (sleep): New declaration.
69975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69976         HAVE_SLEEP.
69977         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69978         * doc/functions/sleep.texi: Document the sleep module.
69979
69980 2007-05-01  Bruno Haible  <bruno@clisp.org>
69981
69982         * lib/sigprocmask.h: Remove file.
69983         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69984         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69985         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69986         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69987         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69988         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69989         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69990         HAVE_SIGSET_T as a shell variable.
69991         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69992         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69993         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69994         (Depends-on): Add signal. Remove verify.
69995         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69996         (Include): Mention <signal.h> instead of sigprocmask.h.
69997         * NEWS: Mention the change.
69998         * lib/fatal-signal.c: Don't include sigprocmask.h.
69999
70000 2007-05-01  Bruno Haible  <bruno@clisp.org>
70001
70002         * modules/signal: New file.
70003         * lib/signal_.h: New file.
70004         * m4/signal_h.m4: New file.
70005
70006 2007-05-01  Bruno Haible  <bruno@clisp.org>
70007
70008         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70009         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70010         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70011         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70012
70013 2007-05-01  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70016         configure time.
70017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70018         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70019         * modules/sys_stat (Makefile.am): Substitute their values into
70020         sys/stat.h.
70021
70022 2007-05-01  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70025         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70026         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70027
70028 2007-05-01  Bruno Haible  <bruno@clisp.org>
70029
70030         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70031         'assert' module here.
70032
70033 2007-05-01  Bruno Haible  <bruno@clisp.org>
70034
70035         * doc/functions/*.texi: New files.
70036         * doc/functions/google-ranking.txt: New file.
70037         * doc/gnulib.texi (Function Substitutes): New chapter.
70038         (ctime, inet_ntoa): Remove sections.
70039         * doc/ctime.texi: Remove file.
70040         * doc/inet_ntoa.texi: Remove file.
70041         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70042         dependencies.
70043         (%.info): New rule, specifying a --reference-limit.
70044
70045 2007-05-01  Bruno Haible  <bruno@clisp.org>
70046
70047         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70048
70049 2007-05-01  Bruno Haible  <bruno@clisp.org>
70050
70051         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70052         the portability of 'mkdir' to mingw systems.
70053
70054 2007-05-01  Bruno Haible  <bruno@clisp.org>
70055
70056         * doc/headers/google-ranking.txt: New file.
70057
70058 2007-04-30  Eric Blake  <ebb9@byu.net>
70059
70060         Prefer fseeko to fseek.
70061         * modules/getpass (Depends-on): Add fseeko.
70062         * lib/getpass.c (getpass): Use fseeko, not fseek.
70063
70064 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70065
70066         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70067         assumes the sorting is stable, while most qsort implementations
70068         are not.  Use argument addresses to ensure they never compare as
70069         equal.
70070
70071         * tests/test-argp-2.sh (usage-indent test): Fix output
70072         (func_compare): Restore diff options
70073         * tests/test-argp.c: Restore #include "progname.h"
70074
70075 2007-04-29  Bruno Haible  <bruno@clisp.org>
70076
70077         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70079         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70081         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70082         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70083         (TESTS, check_PROGRAMS): Add test-snprintf.
70084         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70085         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70086         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70087         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70088         assertions that fail on HP-UX, OSF/1, or IRIX.
70089         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70090
70091 2007-04-29  Bruno Haible  <bruno@clisp.org>
70092
70093         * MODULES.html.sh (posix_functions): Remove 'contents'.
70094
70095 2007-04-29  Karl Berry  <karl@gnu.org>
70096
70097         * config/srclist.txt (gendocs_template_min): new entry.
70098
70099 2007-04-29  Bruno Haible  <bruno@clisp.org>
70100
70101         Work around fpurge bug on BSD systems.
70102         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70104         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70105         fpurge to rpl_fpurge if the system already has this function.
70106         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70107         the case where the system already has this function. Correct invariants
70108         on BSD systems.
70109         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70110         BSD systems.
70111
70112 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70113
70114         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70115         proposed by Sven Verdoolaege.
70116
70117         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70118         options.
70119         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70120         (usage and help tests): Update
70121
70122 2007-04-29  Bruno Haible  <bruno@clisp.org>
70123
70124         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70125         Print more information in case of failure. Disable a test on BeOS.
70126
70127 2007-04-29  Bruno Haible  <bruno@clisp.org>
70128
70129         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70130         This helps debugging on systems on which no gdb is available.
70131
70132 2007-04-29  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/freading.h: Improve comments.
70135         * lib/fwriting.h: Likewise.
70136         * tests/test-freading.c (main): Don't check freading immediately after
70137         repositioning. Needed for glibc.
70138
70139 2007-04-29  Bruno Haible  <bruno@clisp.org>
70140
70141         * lib/freading.c (freading): Trivial simplification.
70142
70143 2007-04-28  Bruno Haible  <bruno@clisp.org>
70144
70145         * tests/test-fwriting.c (main): Also test the interaction between
70146         fflush and fwriting.
70147         * modules/fwriting-tests (Depends-on): Add fflush.
70148
70149         * tests/test-freading.c (main): Also test the interaction between
70150         fflush and freading.
70151         * modules/freading-tests (Depends-on): Add fflush.
70152
70153 2007-04-28  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70156         fseeko and ftello.
70157         Suggested by Eric Blake.
70158
70159 2007-04-28  Jim Meyering  <jim@meyering.net>
70160
70161         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70162         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70163         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70164
70165 2007-04-27  Eric Blake  <ebb9@byu.net>
70166
70167         * doc/headers/assert.texi (assert.h): Document assert module use.
70168
70169 2007-04-27  Bruno Haible  <bruno@clisp.org>
70170
70171         * doc/headers/*.texi: New files.
70172         * doc/gnulib.texi (Header File Substitutes): New chapter.
70173         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70174         dependencies.
70175         (standards.info ,standards.html, standards.dvi): Update dependencies.
70176         (mostlyclean, clean): New targets.
70177
70178 2007-04-27  Bruno Haible  <bruno@clisp.org>
70179
70180         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70181         * modules/sysexits (Files, Makefile.am): Update.
70182
70183         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70184         * modules/sys_socket (Files, Makefile.am): Update.
70185
70186         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70187         * modules/sys_stat (Files, Makefile.am): Update.
70188
70189 2007-04-27  Eric Blake  <ebb9@byu.net>
70190
70191         * lib/freading.h: Improve comments.
70192         * lib/fwriting.h: Likewise.
70193         * lib/fflush.c: Likewise.
70194
70195         Fix closein for mingw.
70196         * modules/closein-tests: Add tests for closein.
70197         * tests/test-closein.c: New file.
70198         * tests/test-closein.sh: Likewise.
70199         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70200         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70201
70202 2007-04-27  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70205         version is < 6.
70206         * lib/math_.h [__DECC]: Likewise.
70207         * lib/stdio_.h [__DECC]: Likewise.
70208         * lib/stdlib_.h [__DECC]: Likewise.
70209         * lib/string_.h [__DECC]: Likewise.
70210         * lib/time_.h [__DECC]: Likewise.
70211         * lib/wchar_.h [__DECC]: Likewise.
70212         * lib/wctype_.h [__DECC]: Likewise.
70213
70214 2007-04-27  Bruno Haible  <bruno@clisp.org>
70215
70216         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70217
70218 2007-04-27  Bruno Haible  <bruno@clisp.org>
70219
70220         * lib/fflush.c: Add comments.
70221         * modules/fpurge-tests (Depends-on): Add fflush.
70222         * modules/freadable-tests (Depends-on): Likewise.
70223         * modules/fwritable-tests (Depends-on): Likewise.
70224
70225 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70226
70227         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70228         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70229         Report by Bruno Haible <bruno@clisp.org>.
70230
70231 2007-04-26  Eric Blake  <ebb9@byu.net>
70232
70233         Fix fflush on mingw.
70234         * modules/fflush (Depends-on): Add freading.
70235         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70236         but unread data.
70237
70238 2007-04-26  Eric Blake  <ebb9@byu.net>
70239         and Bruno Haible  <bruno@clisp.org>
70240
70241         Implement freading and fwriting.
70242         * lib/freading.c: New file.
70243         * lib/freading.h: Likewise.
70244         * m4/freading.m4: Likewise.
70245         * modules/freading: Likewise.
70246         * modules/freading-tests: Likewise.
70247         * tests/test-freading.c: Likewise.
70248         * lib/fwriting.c: New file.
70249         * lib/fwriting.h: Likewise.
70250         * m4/fwriting.m4: Likewise.
70251         * modules/fwriting: Likewise.
70252         * modules/fwriting-tests: Likewise.
70253         * tests/test-fwriting.c: Likewise.
70254         * MODULES.html.sh (File stream based Input/Output): Mention them.
70255
70256 2007-04-26  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70259         'long' when we assume it.
70260         Suggested by Eric Blake.
70261
70262 2007-04-26  Bruno Haible  <bruno@clisp.org>
70263
70264         Ensure fseeko, ftello are declared on glibc systems.
70265         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70266         * modules/fseeko (configure.ac-early): Likewise.
70267         * modules/ftello (configure.ac-early): Likewise.
70268         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70269         AC_FUNC_FSEEKO for this.
70270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70271         (gl_CHECK_FSEEKO): Remove macro.
70272
70273 2007-04-26  Bruno Haible  <bruno@clisp.org>
70274
70275         * tests/test-fflush.c (main): Also check the ftell result after
70276         fflush and fseek/fseeko.
70277         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70278         file descriptor position cache in the stream.
70279         * lib/fseeko.c (rpl_fseeko): Likewise.
70280
70281 2007-04-26  Bruno Haible  <bruno@clisp.org>
70282
70283         * modules/fflush-tests (Depends-on): Add fseeko.
70284
70285 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70286             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70287
70288         * lib/argz_.h: ensure error_t definition is obtained in same
70289         mechanism system argz.h would have.
70290         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70291         argz facilities are known bad.  Err on the side of caution if
70292         cross-compiling.
70293
70294 2007-04-25  Eric Blake  <ebb9@byu.net>
70295
70296         * lib/fpurge.c (includes): Use stdlib.h for free.
70297         * tests/test-fflush.c (main): Also test fflush-fseeko.
70298
70299 2007-04-25  Bruno Haible  <bruno@clisp.org>
70300
70301         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70302         * lib/fseeko.c: New file.
70303         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70304         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70305         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70306         gl_FUNC_FSEEKO.
70307         (gl_FUNC_FSEEKO): Invoke it.
70308         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70309         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70310         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70311
70312 2007-04-25  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/fflush (Depends-on): Add ftello.
70315
70316 2007-04-25  Bruno Haible  <bruno@clisp.org>
70317
70318         * modules/ftello-tests: New file.
70319         * tests/test-ftello.c: New file.
70320
70321         * modules/ftello: New file.
70322         * m4/ftello.m4: New file.
70323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70324         HAVE_FTELLO.
70325         * lib/stdio_.h (ftello): New declaration.
70326         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70327         HAVE_FTELLO.
70328
70329 2007-04-25  Bruno Haible  <bruno@clisp.org>
70330
70331         * modules/fseeko-tests: New file.
70332         * tests/test-fseeko.c: New file.
70333
70334         * modules/fseeko: New file.
70335         * m4/fseeko.m4: New file.
70336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70337         HAVE_FSEEKO.
70338         * lib/stdio_.h (fseeko): New declaration.
70339         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70340         HAVE_FSEEKO.
70341
70342 2007-04-25  Bruno Haible  <bruno@clisp.org>
70343
70344         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70345
70346 2007-04-25  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70349         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70350         * tests/test-unistd.c: Likewise.
70351         * tests/test-fcntl.c: Likewise.
70352
70353 2007-04-23  Eric Blake  <ebb9@byu.net>
70354
70355         * lib/fflush.c: Fix missing include.
70356         Reported by Bruno Haible.
70357
70358 2007-04-23  Bruno Haible  <bruno@clisp.org>
70359
70360         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70361         Reported by Eric Blake.
70362
70363 2007-04-23  Bruno Haible  <bruno@clisp.org>
70364
70365         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70366
70367 2007-04-23  Bruno Haible  <bruno@clisp.org>
70368
70369         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70370
70371 2007-04-23  Bruno Haible  <bruno@clisp.org>
70372
70373         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70374         Needed on HP-UX 11.
70375
70376 2007-04-16  Eric Blake  <ebb9@byu.net>
70377
70378         Make fflush rely on fpurge.
70379         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70380         open coding all variants.
70381         * modules/fflush (Depends-on): Add fpurge and unistd.
70382         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70384
70385         Fix --with-tests compilation on cygwin.
70386         * modules/argmatch-tests (Makefile.am): List gnulib library first
70387         in LDADD.
70388         * modules/argp-tests (Makefile.am): Likewise.
70389         * modules/array-list-tests (Makefile.am): Likewise.
70390         * modules/array-oset-tests (Makefile.am): Likewise.
70391         * modules/avltree-list-tests (Makefile.am): Likewise.
70392         * modules/avltree-oset-tests (Makefile.am): Likewise.
70393         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70394         * modules/carray-list-tests (Makefile.am): Likewise.
70395         * modules/dirname-tests (Makefile.am): Likewise.
70396         * modules/frexp-tests (Makefile.am): Likewise.
70397         * modules/isnanl-tests (Makefile.am): Likewise.
70398         * modules/linked-list-tests (Makefile.am): Likewise.
70399         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70400         * modules/lock-tests (Makefile.am): Likewise.
70401         * modules/rbtree-list-tests (Makefile.am): Likewise.
70402         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70403         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70404         * modules/tls-tests (Makefile.am): Likewise.
70405         * modules/tsearch-tests (Makefile.am): Likewise.
70406         * modules/xvasprintf-tests (Makefile.am): Likewise.
70407
70408         Fix fpurge for cygwin.
70409         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70410         value.
70411         * modules/fpurge-tests (Depends-on): Clean up trash.
70412
70413 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70414
70415         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70416
70417         * m4/autobuild.m4: Re-indent.
70418
70419 2007-04-13  Bruno Haible  <bruno@clisp.org>
70420
70421         * modules/fpurge-tests: New file.
70422         * tests/test-fpurge.c: New file.
70423
70424         * modules/fpurge: New file.
70425         * lib/fpurge.h: New file.
70426         * lib/fpurge.c: New file.
70427         * m4/fpurge.m4: New file.
70428
70429 2007-04-13  Bruno Haible  <bruno@clisp.org>
70430
70431         * modules/fbufmode-tests: New file.
70432         * tests/test-fbufmode.c: New file.
70433
70434         * modules/fbufmode: New file.
70435         * lib/fbufmode.h: New file.
70436         * lib/fbufmode.c: New file.
70437         * m4/fbufmode.m4: New file.
70438
70439 2007-04-13  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/fwritable-tests: New file.
70442         * tests/test-fwritable.c: New file.
70443
70444         * modules/fwritable: New file.
70445         * lib/fwritable.h: New file.
70446         * lib/fwritable.c: New file.
70447         * m4/fwritable.m4: New file.
70448
70449 2007-04-13  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/freadable-tests: New file.
70452         * tests/test-freadable.c: New file.
70453
70454         * modules/freadable: New file.
70455         * lib/freadable.h: New file.
70456         * lib/freadable.c: New file.
70457         * m4/freadable.m4: New file.
70458
70459 2007-04-13  Bruno Haible  <bruno@clisp.org>
70460
70461         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70462         MOSTLYCLEANFILES.
70463
70464 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70467         gzip bootstrap.conf to avoid dragging in i18n machinery.
70468         (gnulib_tool_option): Use it.
70469
70470 2007-04-13  Bruno Haible  <bruno@clisp.org>
70471
70472         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70473         %F directives.
70474         * tests/test-vasprintf-posix.c (test_function): Likewise.
70475         * tests/test-snprintf-posix.h (test_function): Likewise.
70476         * tests/test-sprintf-posix.h (test_function): Likewise.
70477         * tests/test-fprintf-posix.h (test_function): Likewise.
70478         * tests/test-printf-posix.h (test_function): Likewise.
70479         * tests/test-fprintf-posix.out: Likewise.
70480
70481 2007-04-13  Bruno Haible  <bruno@clisp.org>
70482
70483         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70484         * modules/tls-tests (configure.ac): Likewise.
70485         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70486
70487 2007-04-13  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/tls.c (glthread_tls_get): Fix return type.
70490         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70491
70492 2007-04-12  Eric Blake  <ebb9@byu.net>
70493
70494         * modules/gettime (Depends-on): Remove gettime.
70495         Reported by Dmitry V. Levin.
70496
70497 2007-04-12  Bruno Haible  <bruno@clisp.org>
70498
70499         * modules/fflush (Include): Mention <stdio.h>.
70500         * modules/strtoimax (Include): Mention <inttypes.h>.
70501         * modules/strtoumax (Include): Likewise.
70502
70503 2007-04-12  Eric Blake  <ebb9@byu.net>
70504
70505         * .cvsignore: New file.
70506         * .gitignore: Likewise.
70507
70508 2007-04-12  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70511         not before, since $(LDADD) often contains libgnu.a.
70512         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70513         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70514         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70515         Needed on Cygwin.
70516
70517 2007-04-12  Eric Blake  <ebb9@byu.net>
70518
70519         Work around glibc's failure to flush stdin on fclose.
70520         * lib/closein.c (close_stdin): Flush stdin before closing.
70521
70522         Work around glibc's failure to reset seekable stdin on exit.
70523         * modules/closein: New module.
70524         * lib/closein.c: New file.
70525         * lib/closein.h: Likewise.
70526         * m4/closein.m4: Likewise.
70527         * MODULES.html.sh (File stream based Input/Output): Document it.
70528
70529 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70530
70531         * gnulib-tool: Rename generated 'autobuild' script to
70532         'do-autobuild' in --create-megatestdir output.
70533
70534         * doc/gnulib.texi (Build robot for gnulib): Fix.
70535
70536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70537
70538         * modules/sysexits (Depends-on): Add absolute-header.
70539
70540 2007-04-12  Eric Blake  <ebb9@byu.net>
70541
70542         No need to preserve errno on success.
70543         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70544         Reported by Bruno Haible.
70545
70546 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70547
70548         * MODULES.html.sh (Support for maintaining and releasing
70549         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70550
70551 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70552
70553         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70554
70555 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70556
70557         * modules/autobuild: New module.
70558
70559         * m4/autobuild.m4: New file.
70560
70561 2007-04-11  Bruno Haible  <bruno@clisp.org>
70562
70563         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70564         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70577         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70578         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70580         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70581         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70583         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70584         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70586         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70587         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70588         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70589         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70590         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70591         Reported by Eric Blake.
70592
70593 2007-04-11  Bruno Haible  <bruno@clisp.org>
70594
70595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70596
70597 2007-04-10  Bruno Haible  <bruno@clisp.org>
70598
70599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70600         for NaN and Infinity. Needed on FreeBSD 6.1.
70601         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70602         regarding results for "%010a" of Infinity and NaN.
70603         * tests/test-vasprintf-posix.c (test_function): Likewise.
70604         * tests/test-snprintf-posix.h (test_function): Likewise.
70605         * tests/test-sprintf-posix.h (test_function): Likewise.
70606         * tests/test-fprintf-posix.h (test_function): Likewise.
70607         * tests/test-printf-posix.h (test_function): Likewise.
70608         * tests/test-fprintf-posix.out: Likewise.
70609
70610 2007-04-10  Bruno Haible  <bruno@clisp.org>
70611
70612         * modules/locale-tests: New file.
70613         * tests/test-locale.c: New file.
70614
70615         * modules/locale: New file.
70616         * lib/locale_.h: New file.
70617         * m4/locale_h.m4: New file.
70618
70619 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70620             Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70623         be determined, test for availability of the copysignf, copysign,
70624         copysignl functions.
70625         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70626         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70627         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70628
70629 2007-04-09  Eric Blake  <ebb9@byu.net>
70630
70631         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70632         * modules/stdio (Makefile.am): Support fflush.
70633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70634         * modules/fflush: New file.
70635         * lib/fflush.c: Likewise.
70636         * m4/fflush.m4: Likewise.
70637         * modules/fflush-tests: New test.
70638         * tests/test-fflush.c: Likewise.
70639         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70640
70641 2007-04-06  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70644         (VASNPRINTF): Use signbit for faster determination whether to print a
70645         minus sign.
70646         * modules/vasnprintf (Files): Remove lib/float+.h.
70647         * modules/fprintf-posix (Depends-on): Add signbit.
70648         * modules/snprintf-posix (Depends-on): Likewise.
70649         * modules/sprintf-posix (Depends-on): Likewise.
70650         * modules/vasnprintf-posix (Depends-on): Likewise.
70651         * modules/vasprintf-posix (Depends-on): Likewise.
70652         * modules/vfprintf-posix (Depends-on): Likewise.
70653         * modules/vsnprintf-posix (Depends-on): Likewise.
70654         * modules/vsprintf-posix (Depends-on): Likewise.
70655
70656 2007-04-06  Bruno Haible  <bruno@clisp.org>
70657
70658         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70659         * tests/test-frexpl.c (main): Likewise.
70660         * tests/test-ldexpl.c (main): Likewise.
70661         * modules/frexp-tests (Depends-on): Add signbit.
70662         * modules/frexpl-tests (Depdends-on): Likewise.
70663         * modules/ldexpl-tests (Depdends-on): Likewise.
70664
70665 2007-04-06  Bruno Haible  <bruno@clisp.org>
70666
70667         * modules/signbit-tests: New file.
70668         * tests/test-signbit.c: New file.
70669
70670         * modules/signbit: New file.
70671         * lib/signbitf.c: New file.
70672         * lib/signbitd.c: New file.
70673         * lib/signbitl.c: New file.
70674         * m4/signbit.m4: New file.
70675         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70676         (signbit): New macro.
70677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70678         REPLACE_SIGNBIT.
70679         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70680         REPLACE_FREXPL into math.h.
70681
70682 2007-04-06  Bruno Haible  <bruno@clisp.org>
70683
70684         * modules/isnanf-nolibm-tests: New file.
70685         * tests/test-isnanf.c: New file.
70686
70687         * modules/isnanf-nolibm: New file.
70688         * lib/isnanf.h: New file.
70689         * lib/isnanf.c: New file.
70690         * lib/isnan.c: Consider the USE_FLOAT macro.
70691         * m4/isnanf.m4: New file.
70692
70693 2007-04-06  Bruno Haible  <bruno@clisp.org>
70694
70695         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70696         (Link): New section.
70697
70698         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70699
70700 2007-04-06  Bruno Haible  <bruno@clisp.org>
70701
70702         Assume the 'long double' type.
70703         * m4/longdouble.m4: Remove file.
70704         * config/srclist.txt: Don't mention longdouble.m4.
70705         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70706         * lib/float+.h: Likewise.
70707         * lib/frexp.c: Likewise.
70708         * lib/printf-args.h: Likewise.
70709         * lib/printf-args.c: Likewise.
70710         * lib/printf-frexp.c: Likewise.
70711         * lib/printf-parse.c: Likewise.
70712         * lib/vasnprintf.c: Likewise.
70713         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70714         * m4/intl.m4: Likewise.
70715         * m4/isnanl.m4: Likewise.
70716         * m4/printf.m4: Likewise.
70717         * m4/printf-frexpl.m4: Likewise.
70718         * m4/vasnprintf.m4: Likewise.
70719         * modules/allocsa (Files): Remove m4/longdouble.m4.
70720         * modules/gettext (Files): Likewise.
70721         * modules/relocatable-prog-wrapper (Files): Likewise.
70722         * modules/vasnprintf (Files): Likewise.
70723         * modules/isnanl (Files): Likewise.
70724         (Include): Simplify.
70725         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70726         (Include): Simplify.
70727         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70728         (Include): Simplify.
70729         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70730         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70731         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70733         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70735         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70737         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70739         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70741         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70742         * tests/test-isnanl.c: Likewise.
70743         * tests/test-snprintf-posix.h: Likewise.
70744         * tests/test-sprintf-posix.h: Likewise.
70745         * tests/test-vasnprintf-posix.c: Likewise.
70746         * tests/test-vasnprintf-posix2.c: Likewise.
70747         * tests/test-vasprintf-posix.c: Likewise.
70748
70749 2007-04-06  Bruno Haible  <bruno@clisp.org>
70750
70751         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70752         * lib/math_.h [__DECC]: Include the overridden include file through
70753         #include_next, outside the double-inclusion guard.
70754         * lib/stdio_.h [__DECC]: Likewise.
70755         * lib/stdlib_.h [__DECC]: Likewise.
70756         * lib/string_.h [__DECC]: Likewise.
70757         * lib/time_.h [__DECC]: Likewise.
70758         * lib/wchar_.h [__DECC]: Likewise.
70759         * lib/wctype_.h [__DECC]: Likewise.
70760         * lib/inttypes_.h [__DECC]: Likewise.
70761         Reported by Albert Chin <china@thewrittenword.com> in
70762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70763
70764 2007-04-04  Eric Blake  <ebb9@byu.net>
70765
70766         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70767         1.5.x.
70768
70769 2007-04-04  Bruno Haible  <bruno@clisp.org>
70770
70771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70772         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70773
70774 2007-04-04  Bruno Haible  <bruno@clisp.org>
70775
70776         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70777         results for "%010a" of Infinity and NaN.
70778         * tests/test-vasprintf-posix.c (test_function): Likewise.
70779         * tests/test-snprintf-posix.h (test_function): Likewise.
70780         * tests/test-sprintf-posix.h (test_function): Likewise.
70781         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70782         * tests/test-printf-posix.h (test_function): Likewise.
70783         * tests/test-fprintf-posix.out: Update.
70784         Needed for FreeBSD 6.1.
70785
70786 2007-04-04  Bruno Haible  <bruno@clisp.org>
70787
70788         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70789         directly used by the gnulib modules nor by gnulib-tool.
70790
70791 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         * DEPENDENCIES: Give overall description of version dependency
70794         desirability.  Use more-typical names for apps.
70795         Add shell, coreutils, diffutils, grep, tar, gzip.
70796
70797 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70798
70799         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70800
70801 2007-04-04  Karl Berry  <karl@gnu.org>
70802
70803         * MODULES.html.sh (func_module): missing '.
70804
70805 2007-04-03  Bruno Haible  <bruno@clisp.org>
70806
70807         * modules/argmatch-tests (Makefile.am): New variable
70808         test_argmatch_LDADD.
70809         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70810         * modules/array-list-tests (Makefile.am): New variable
70811         test_array_list_LDADD.
70812         * modules/array-oset-tests (Makefile.am): New variable
70813         test_array_oset_LDADD.
70814         * modules/avltree-list-tests (Makefile.am): New variable
70815         test_avltree_list_LDADD.
70816         * modules/avltree-oset-tests (Makefile.am): New variable
70817         test_avltree_oset_LDADD.
70818         * modules/avltreehash-list-tests (Makefile.am): New variable
70819         test_avltreehash_list_LDADD.
70820         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70821         test_canonicalize_lgpl_LDADD.
70822         * modules/carray-list-tests (Makefile.am): New variable
70823         test_carray_list_LDADD.
70824         * modules/dirname-tests (Makefile.am): New variable
70825         test_dirname_LDADD.
70826         * modules/linked-list-tests (Makefile.am): New variable
70827         test_linked_list_LDADD.
70828         * modules/linkedhash-list-tests (Makefile.am): New variable
70829         test_linkedhash_list_LDADD.
70830         * modules/rbtree-list-tests (Makefile.am): New variable
70831         test_rbtree_list_LDADD.
70832         * modules/rbtree-oset-tests (Makefile.am): New variable
70833         test_rbtree_oset_LDADD.
70834         * modules/rbtreehash-list-tests (Makefile.am): New variable
70835         test_rbtreehash_list_LDADD.
70836         * modules/xvasprintf-tests (Makefile.am): New variable
70837         test_xvasprintf_LDADD.
70838         Reported by Eric Blake.
70839
70840 2007-04-03  Eric Blake  <ebb9@byu.net>
70841
70842         * DEPENDENCIES: Weaken m4 requirements.
70843
70844 2007-04-03  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70847         * modules/isnanl-tests (configure.ac): Likewise.
70848
70849 2007-04-03  Ben Pfaff  <blp@gnu.org>
70850
70851         * modules/iconv_open: Add $(srcdir)/ to source directory
70852         references in Makefile fragments that call gperf, to fix VPATH
70853         builds.
70854
70855 2007-04-03  Bruno Haible  <bruno@clisp.org>
70856
70857         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70858         * lib/ldexpl.c: Undo last change.
70859
70860 2007-04-03  Bruno Haible  <bruno@clisp.org>
70861
70862         * modules/printf-frexpl (Depends-on): Undo last change.
70863         (Files): Add m4/ldexpl.m4.
70864
70865 2007-04-03  Bruno Haible  <bruno@clisp.org>
70866
70867         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70868         * modules/isnanl (Link): New section.
70869
70870         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70871         * modules/frexp (Link): New section.
70872
70873         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70874         * modules/frexpl (Link): New section.
70875
70876         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70877         * modules/ldexpl (Link): New section.
70878
70879 2007-04-03  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/TEMPLATE-EXTENDED: New file.
70882         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70883
70884 2007-04-03  Bruno Haible  <bruno@clisp.org>
70885
70886         * DEPENDENCIES: New file.
70887         Suggested by Simon Josefsson.
70888
70889 2007-04-03  Bruno Haible  <bruno@clisp.org>
70890
70891         * doc/gnulib.texi: Escape @.
70892
70893 2007-04-03  James Youngman  <jay@gnu.org>
70894         and Paul Eggert  <eggert@cs.ucla.edu>
70895
70896         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70897         birthtime on all systems that have birthtime, not just those which
70898         use st_birthtimensec rather than st_birthtim.  Putting zero in
70899         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70900         that the birth time is not available for files on an NFS mount.
70901
70902 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70903
70904         * modules/memxor: Move back from crypto/, suggested by Bruno.
70905         * modules/crypto/hmac-sha1: Fix memxor dependency.
70906
70907         * modules/crypto/gc: Moved from ../.
70908
70909 2007-04-02  Eric Blake  <ebb9@byu.net>
70910
70911         * lib/ldexpl.c (includes): Avoid libm.
70912
70913         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70914
70915 2007-04-02  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70918         on IRIX.
70919
70920 2007-04-02  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70923         x86 or x86_64 platforms running MacOS X.
70924         Reported by Ryan Schmidt <@ryandesign.com>.
70925
70926 2007-04-02  Bruno Haible  <bruno@clisp.org>
70927
70928         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70929         i386.
70930
70931 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70932
70933         * modules/crypto/arcfour: Moved from ../.
70934         * modules/crypto/arcfour-tests: Moved from ../.
70935         * modules/crypto/arctwo: Moved from ../.
70936         * modules/crypto/arctwo-tests: Moved from ../.
70937         * modules/crypto/des: Moved from ../.
70938         * modules/crypto/des-tests: Moved from ../.
70939         * modules/crypto/gc-arcfour: Moved from ../.
70940         * modules/crypto/gc-arcfour-tests: Moved from ../.
70941         * modules/crypto/gc-arctwo: Moved from ../.
70942         * modules/crypto/gc-arctwo-tests: Moved from ../.
70943         * modules/crypto/gc-des: Moved from ../.
70944         * modules/crypto/gc-des-tests: Moved from ../.
70945         * modules/crypto/gc-hmac-md5: Moved from ../.
70946         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70947         * modules/crypto/gc-hmac-sha1: Moved from ../.
70948         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70949         * modules/crypto/gc-md2: Moved from ../.
70950         * modules/crypto/gc-md2-tests: Moved from ../.
70951         * modules/crypto/gc-md4: Moved from ../.
70952         * modules/crypto/gc-md4-tests: Moved from ../.
70953         * modules/crypto/gc-md5: Moved from ../.
70954         * modules/crypto/gc-md5-tests: Moved from ../.
70955         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70956         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70957         * modules/crypto/gc-random: Moved from ../.
70958         * modules/crypto/gc-rijndael: Moved from ../.
70959         * modules/crypto/gc-rijndael-tests: Moved from ../.
70960         * modules/crypto/gc-sha1: Moved from ../.
70961         * modules/crypto/gc-sha1-tests: Moved from ../.
70962         * modules/crypto/gc-tests: Moved from ../.
70963         * modules/crypto/hmac-md5: Moved from ../.
70964         * modules/crypto/hmac-md5-tests: Moved from ../.
70965         * modules/crypto/hmac-sha1: Moved from ../.
70966         * modules/crypto/hmac-sha1-tests: Moved from ../.
70967         * modules/crypto/md2: Moved from ../.
70968         * modules/crypto/md2-tests: Moved from ../.
70969         * modules/crypto/md4: Moved from ../.
70970         * modules/crypto/md4-tests: Moved from ../.
70971         * modules/crypto/md5: Moved from ../.
70972         * modules/crypto/md5-tests: Moved from ../.
70973         * modules/crypto/memxor: Moved from ../.
70974         * modules/crypto/rijndael: Moved from ../.
70975         * modules/crypto/rijndael-tests: Moved from ../.
70976         * modules/crypto/sha1: Moved from ../.
70977
70978 2007-03-30  James Youngman  <jay@gnu.org>
70979
70980         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70981         rename() to change the ctime of a file (because ctime is unaffected
70982         by rename on jfs2 on AIX 5.1).
70983         (main): Start by doing cleanup, in case a previous run failed leaving
70984         test files behind.
70985
70986 2007-03-31  Bruno Haible  <bruno@clisp.org>
70987
70988         Support old proprietary implementations of iconv.
70989         * modules/iconv_open: New file.
70990         * lib/iconv_.h: New file.
70991         * m4/iconv_h.m4: New file.
70992         * lib/iconv_open.c: New file.
70993         * lib/iconv_open-aix.gperf: New file.
70994         * lib/iconv_open-hpux.gperf: New file.
70995         * lib/iconv_open-irix.gperf: New file.
70996         * lib/iconv_open-osf.gperf: New file.
70997         * m4/iconv_open.m4: New file.
70998         * modules/linebreak (Depends-on): Add iconv_open.
70999         * modules/striconv (Depends-on): Likewise.
71000         * modules/striconveh (Depends-on): Likewise.
71001         * modules/unicodeio (Depends-on): Likewise.
71002         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71003         (iconv_t)(-1).
71004         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71005         conversion if cd is (iconv_t)(-1).
71006         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71007         is not possible.
71008
71009 2007-03-31  Bruno Haible  <bruno@clisp.org>
71010
71011         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71012         work on Solaris either. Protect also second use of "autodetect_jp".
71013
71014 2007-03-31  Bruno Haible  <bruno@clisp.org>
71015
71016         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71017         the function is not present.
71018
71019 2007-03-31  Bruno Haible  <bruno@clisp.org>
71020
71021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71022         the function is not present.
71023
71024 2007-03-31  Bruno Haible  <bruno@clisp.org>
71025
71026         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71027         a bug in HP-UX iconv_open().
71028
71029 2007-03-31  Bruno Haible  <bruno@clisp.org>
71030
71031         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71032         (Mathematics <math.h>): New section, add fpieee.
71033         (Input/output <stdio.h>): Add fseterr.
71034         (Mathematics <math.h>): New section, add printf-frexp.
71035         (Container data structures): Add sublist.
71036         (Core language properties): Add fpucw, inline.
71037         (Functions for greatest-width integer types <inttypes.h>): Add
71038         imaxabs, imaxdiv, inttypes.
71039         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71040         isnanl-nolibm, ldexp.
71041         (Mathematics <math.h>): New section, add printf-frexpl.
71042         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71043         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71044         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71045         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71046         (Unicode string functions): Add unistr/u*-mbtoucr.
71047         (Java): Add javacomp-script, javaexec-script.
71048         (C#): Add csharpcomp-script, csharpexec-script.
71049         (Support for building libraries and executables): Add havelib,
71050         relocatable-*.
71051         (Support for maintaining and releasing projects): Renamed from
71052         'Support for maintaining and release projects'. Add announce-gen.
71053
71054 2007-03-31  Bruno Haible  <bruno@clisp.org>
71055
71056         * README: Talk primarily about git.
71057         (git and CVS): Renamed from CVS.
71058         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71059         gnulib is available through git.
71060         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71061
71062 2007-03-30  Bruno Haible  <bruno@clisp.org>
71063
71064         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71065         * lib/poll_.h: Likewise.
71066         * lib/stat_.h: Likewise.
71067         * lib/sys_time_.h: Likewise.
71068         * lib/sysexit_.h: Likewise.
71069         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71070         * lib/stdbool_.h: Likewise.
71071         * lib/byteswap_.h: Add double-inclusion guard.
71072
71073 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71074
71075         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71076
71077 2007-03-30  Karl Berry  <karl@gnu.org>
71078
71079         * config/srclist-update: double space after USA in the license
71080         substitution, since that's how it's usually (?) written.
71081
71082 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71085         reported by Bruno Haible.
71086
71087 2007-03-29  Bruno Haible  <bruno@clisp.org>
71088
71089         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71090         a bug in AIX iconv().
71091
71092 2007-03-29  Bruno Haible  <bruno@clisp.org>
71093
71094         * modules/ldexpl-tests: New file.
71095         * tests/test-ldexpl.c: New file.
71096
71097 2007-03-29  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/ldexpl.c: Include fpucw.h.
71100         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71101         multiplication.
71102         * modules/ldexpl (Depends-on): Add fpucw.
71103
71104 2007-03-29  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/ldexpl: New file.
71107         * m4/ldexpl.m4: New file.
71108         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71109         set.
71110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71111         REPLACE_LDEXPL.
71112         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71113         REPLACE_LDEXPL.
71114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71115         gl_FUNC_LDEXPL_WORKS.
71116         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71117         * modules/mathl (Files): Remove lib/ldexpl.c.
71118         (Depends-on): Add ldexpl.
71119
71120 2007-03-29  Bruno Haible  <bruno@clisp.org>
71121
71122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71123
71124 2007-03-29  Bruno Haible  <bruno@clisp.org>
71125
71126         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71127         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71128         and possibly also HP-UX.
71129         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71130         work on AIX, IRIX, HP-UX, OSF/1.
71131         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71132         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71133         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71134         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71135         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71136         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71137
71138 2007-03-29  Bruno Haible  <bruno@clisp.org>
71139
71140         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71141
71142 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71145         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71146
71147 2007-03-29  Eric Blake  <ebb9@byu.net>
71148
71149         * lib/acl-internal.h: Remove redundant include.
71150         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71151         Cygwin when a file is locked.
71152
71153 2007-03-29  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71156         file.
71157         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71158
71159 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71160
71161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71162         try to remove a parent directory if the child couldn't be removed
71163         (except for the first rmdir, which could fail because the child
71164         doesn't exist).  Problem reported by Jeff Blaine in
71165         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71166
71167 2007-03-28  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/striconveh.c (utf8conv_carefully): New function.
71170         (mem_cd_iconveh_internal): Invoke it.
71171
71172 2007-03-28  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71175         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71176         input.
71177         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71178         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71179         unistr/u8-uctomb.
71180
71181 2007-03-28  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/unistr/u8-mbtoucr: New file.
71184         * lib/unistr/u8-mbtoucr.c: New file.
71185         * modules/unistr/u16-mbtoucr: New file.
71186         * lib/unistr/u16-mbtoucr.c: New file.
71187         * modules/unistr/u16-mbtoucr: New file.
71188         * lib/unistr/u16-mbtoucr.c: New file.
71189         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71190
71191 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71192             Bruno Haible  <bruno@clisp.org>
71193
71194         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71195         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71196         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71197
71198         * m4/stdio_h.m4: Add stubs for vasprintf too.
71199
71200         * modules/stdio: Support vasprintf in sed command.
71201
71202         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71203         vasprintf.h.  Add stdio module indicator.
71204
71205         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71206         vasprintf.h.
71207
71208         * lib/vasprintf.h: File removed.
71209
71210         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71211         * lib/vasprintf.c: Ditto.
71212         * lib/xvasprintf.c: Ditto.
71213         * tests/test-vasprintf-posix.c: Ditto.
71214         * tests/test-vasprintf.c: Ditto.
71215
71216 2007-03-27  Bruno Haible  <bruno@clisp.org>
71217
71218         Make vasnprintf multithread-safe.
71219         * lib/vasnprintf.c (decimal_point_char): New function.
71220         (VASNPRINTF): Use it.
71221         Suggested by Simon Josefsson.
71222
71223 2007-03-27  Eric Blake  <ebb9@byu.net>
71224
71225         Support sub-second birthtime on cygwin.
71226         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71227         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71228         (get_stat_birthtime): Also work with st_birthtim.
71229
71230 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71233         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71234         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71235         (get_stat_birthtime_ns): Simplify compile-time tests.
71236         (get_stat_birthtime): Change the API to look like
71237         get_stat_mtime etc., except return a negative tv_nsec on error.
71238         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71239         Don't check for "spare" fields.
71240         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71241         or for struct stat.st_birthtime, as these tests aren't used.
71242         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71243
71244 2007-03-27  Bruno Haible  <bruno@clisp.org>
71245
71246         * lib/stat-time.h: Include <sys/stat.h>.
71247
71248 2007-03-27  James Youngman  <jay@gnu.org>
71249
71250         * lib/stat-time.h (get_stat_birthtime): New function for
71251           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71252         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71253           and its variants.
71254         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71255         * modules/stat-time-test: New file.
71256         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71257
71258 2007-03-26  Bruno Haible  <bruno@clisp.org>
71259
71260         Better support of signalling NaNs.
71261         * lib/atanl.c: Include isnanl.h.
71262         (atanl): Perform test for NaN at the beginning of the function and
71263         through a call to isnanl.
71264         * lib/cosl.c: Include isnanl.h.
71265         (cosl): Perform test for NaN at the beginning of the function and
71266         through a call to isnanl.
71267         * lib/ldexpl.c: Include isnanl.h.
71268         (ldexpl): Perform test for NaN through a call to isnanl.
71269         * lib/logl.c: Include isnanl.h.
71270         (logl): Perform test for NaN at the beginning of the function and
71271         through a call to isnanl.
71272         * lib/sinl.c: Include isnanl.h.
71273         (sinl): Perform test for NaN at the beginning of the function and
71274         through a call to isnanl.
71275         * lib/sqrtl.c: Include isnanl.h.
71276         (sqrtl): Perform test for NaN at the beginning of the function and
71277         through a call to isnanl.
71278         * lib/tanl.c: Include isnanl.h.
71279         (tanl): Perform test for NaN at the beginning of the function and
71280         through a call to isnanl.
71281         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71282         * modules/mathl (Depends-on): Add isnanl.
71283
71284 2007-03-26  Eric Blake  <ebb9@byu.net>
71285
71286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71287         regression in logic sense of previous patch.
71288
71289 2007-03-26  Bruno Haible  <bruno@clisp.org>
71290
71291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71292         unportable shell command "if ! ...".
71293         Reported by Ralf Wildenhues.
71294
71295 2007-03-25  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71298         <sysexits.h> file, and only add EX_CONFIG.
71299         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71300         absolute file name and whether it is sufficient. Substitute also
71301         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71302         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71303         ABSOLUTE_SYSEXITS_H into sysexits.h.
71304
71305 2007-03-25  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71308         hints is NULL.
71309
71310 2007-03-25  Bruno Haible  <bruno@clisp.org>
71311
71312         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71313         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71314
71315 2007-03-25  Bruno Haible  <bruno@clisp.org>
71316
71317         * lib/vasnprintf.c: Include langinfo.h.
71318         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71319         multithread-safe.
71320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71321         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71324         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71326         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71329         Reported by Simon Josefsson.
71330
71331 2007-03-25  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71334         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71335         * modules/vasnprintf (Depends-on): Add stdint.
71336
71337 2007-03-25  Bruno Haible  <bruno@clisp.org>
71338
71339         * modules/fpieee: New file.
71340         * m4/fpieee.m4: New file.
71341         * modules/isnan-nolibm (Depends-on): Add fpieee.
71342         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71343         * modules/isnanl (Depends-on): Add fpieee.
71344
71345 2007-03-25  Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71348
71349 2007-03-25  Bruno Haible  <bruno@clisp.org>
71350
71351         Avoid test failures on IRIX 6.5.
71352         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71353         (main): Use it.
71354         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71355         macros.
71356         (main): Use them.
71357
71358 2007-03-25  Bruno Haible  <bruno@clisp.org>
71359
71360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71361         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71362         exists but doesn't work.
71363         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71364         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71366         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71367         math.h.
71368
71369 2007-03-25  Bruno Haible  <bruno@clisp.org>
71370
71371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71372         returns inf. Needed on IRIX 6.5.
71373
71374 2007-03-25  Bruno Haible  <bruno@clisp.org>
71375
71376         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71377         (main): Use isnanl instead of x != x idiom.
71378         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71379
71380         * tests/test-frexp.c: Include isnan.h.
71381         (main): Use isnan instead of x != x idiom.
71382         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71383
71384 2007-03-25  Bruno Haible  <bruno@clisp.org>
71385
71386         * tests/test-frexp.c (NaN): New function/macro.
71387         (main): Use it instead of 0.0 / 0.0.
71388         * tests/test-isnan.c (NaN): New function/macro.
71389         (main): Use it instead of 0.0 / 0.0.
71390         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71391         (test_function): Use it instead of 0.0 / 0.0.
71392         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71393         (test_function): Use it instead of 0.0 / 0.0.
71394         * tests/test-snprintf-posix.h (NaN): New function/macro.
71395         (test_function): Use it instead of 0.0 / 0.0.
71396         * tests/test-sprintf-posix.h (NaN): New function/macro.
71397         (test_function): Use it instead of 0.0 / 0.0.
71398         * tests/test-fprintf-posix.h (NaN): New function/macro.
71399         (test_function): Use it instead of 0.0 / 0.0.
71400         * tests/test-printf-posix.h (NaN): New function/macro.
71401         (test_function): Use it instead of 0.0 / 0.0.
71402
71403         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71404
71405 2007-03-25  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71408
71409 2007-03-25  Bruno Haible  <bruno@clisp.org>
71410
71411         * lib/regexec.c (merge_state_with_log): Make static.
71412
71413 2007-03-25  Bruno Haible  <bruno@clisp.org>
71414
71415         * lib/trigl.c (kernel_rem_pio2): Make static.
71416
71417 2007-03-25  Bruno Haible  <bruno@clisp.org>
71418
71419         * lib/sincosl.c (sincosl_table): Make static.
71420
71421 2007-03-25  Bruno Haible  <bruno@clisp.org>
71422
71423         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71424         if the compiler does not support C99.
71425
71426 2007-03-25  Bruno Haible  <bruno@clisp.org>
71427
71428         * modules/time (Makefile.am): Ensure all rule action lines start with a
71429         tab.
71430
71431 2007-03-24  Bruno Haible  <bruno@clisp.org>
71432
71433         * modules/tsearch-tests: New file.
71434         * tests/test-tsearch.sh: New file.
71435         * tests/test-tsearch.c: New file, mostly copied from glibc.
71436
71437         * modules/search-tests: New file.
71438         * tests/test-search.c: New file.
71439
71440         * modules/search: New file.
71441         * lib/search_.h: New file, incorporating lib/tsearch.h.
71442         * m4/search_h.m4: New file.
71443         * lib/tsearch.h: Remove file.
71444         * lib/tsearch.c: Include search.h instead of tsearch.h.
71445         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71446         HAVE_TSEARCH.
71447         * modules/tsearch (Files): Remove lib/tsearch.h.
71448         (Depends-on): Add search.
71449         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71450         (Include): Change tsearch.h into search.h.
71451
71452 2007-03-24  Bruno Haible  <bruno@clisp.org>
71453
71454         * modules/fpucw: New file.
71455         * lib/fpucw.h: New file.
71456         * lib/frexp.c: Include fpucw.h.
71457         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71458         (FUNC): Use them.
71459         * lib/printf-frexp.c: Include fpucw.h.
71460         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71461         (FUNC): Use them.
71462         * lib/vasnprintf.c: Include fpucw.h.
71463         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71464         'long double' calculations.
71465         * tests/test-frexpl.c: Include fpucw.h.
71466         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71467         * tests/test-printf-frexpl.c: Include fpucw.h.
71468         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71469         * modules/frexpl (Depends-on): Add fpucw.
71470         * modules/printf-frexpl (Depends-on): Likewise.
71471         * modules/fprintf-posix (Depends-on): Likewise.
71472         * modules/snprintf-posix (Depends-on): Likewise.
71473         * modules/sprintf-posix (Depends-on): Likewise.
71474         * modules/vasnprintf-posix (Depends-on): Likewise.
71475         * modules/vasprintf-posix (Depends-on): Likewise.
71476         * modules/vfprintf-posix (Depends-on): Likewise.
71477         * modules/vsnprintf-posix (Depends-on): Likewise.
71478         * modules/vsprintf-posix (Depends-on): Likewise.
71479         * modules/frexpl-tests (Depends-on): Likewise.
71480         * modules/printf-frexpl-tests (Depends-on): Likewise.
71481
71482 2007-03-24  Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/float+.h: New file.
71485         * lib/isnan.c: Include float+.h.
71486         (SIZE): New macro.
71487         (FUNC): Compare only SIZE bytes of the value.
71488         * lib/vasnprintf.c: Include float+.h.
71489         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71490         SIZEOF_LDBL or SIZEOF_DBL bytes.
71491         * modules/isnan-nolibm (Files): Add lib/float+.h.
71492         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71493         * modules/isnanl (Files): Add lib/float+.h.
71494         * modules/vasnprintf (Files): Add lib/float+.h.
71495
71496 2007-03-24  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71499         include isnanl-nolibm.h.
71500
71501 2007-03-24  Bruno Haible  <bruno@clisp.org>
71502
71503         * tests/test-read-file.c (main): Don't produce spurious output for
71504         expected situations. Make the test fail if it encountered unexpected
71505         results.
71506
71507 2007-03-24  Bruno Haible  <bruno@clisp.org>
71508
71509         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71510         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71511
71512 2007-03-24  Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71515
71516 2007-03-24  Bruno Haible  <bruno@clisp.org>
71517
71518         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71519         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71520
71521         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71522         * modules/utf8-ucs4: Turn into a symbolic link to module
71523         unistr/u8-mbtouc.
71524
71525         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71526         utf8-ucs4-unsafe.
71527         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71528         unistr/u8-mbtouc-unsafe.
71529
71530         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71531         * modules/utf16-ucs4: Turn into a symbolic link to module
71532         unistr/u16-mbtouc.
71533
71534         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71535         utf16-ucs4-unsafe.
71536         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71537         unistr/u16-mbtouc-unsafe.
71538
71539         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71540         * modules/ucs4-utf8: Turn into a symbolic link to module
71541         unistr/u8-ubtomb.
71542
71543         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71544         * modules/ucs4-utf16: Turn into a symbolic link to module
71545         unistr/u16-ubtomb.
71546
71547 2007-03-24  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71550         Enable the function only if HAVE_INLINE.
71551         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71552         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71553         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71554         Enable the function only if HAVE_INLINE.
71555         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71556         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71557         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71558         Enable the function only if HAVE_INLINE.
71559         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71560         Enable the function only if HAVE_INLINE.
71561         * modules/utf8-ucs4: Update.
71562         * modules/utf8-ucs4-unsafe: Update.
71563         * modules/utf16-ucs4: Update.
71564         * modules/utf16-ucs4-unsafe: Update.
71565         * modules/ucs4-utf8: Update.
71566         * modules/ucs4-utf16: Update.
71567
71568 2007-03-24  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/utf8-ucs4.h: Remove file.
71571         * lib/utf8-ucs4-unsafe.h: Remove file.
71572         * lib/utf16-ucs4.h: Remove file.
71573         * lib/utf16-ucs4-unsafe.h: Remove file.
71574         * lib/ucs4-utf8.h: Remove file.
71575         * lib/ucs4-utf16.h: Remove file.
71576         * lib/unistr.h: Include their previous contents.
71577         * m4/utf-ucs4.m4: Remove file.
71578         * m4/ucs4-utf.m4: Remove file.
71579         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71580         (Depends-on): Add unistr/base.
71581         (configure.ac): Remove gl_UTF_UCS4.
71582         (Makefile.am): Update.
71583         (Include): Change to unistr.h.
71584         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71585         (Depends-on): Add unistr/base.
71586         (configure.ac): Remove gl_UTF_UCS4.
71587         (Makefile.am): Update.
71588         (Include): Change to unistr.h.
71589         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71590         (Depends-on): Add unistr/base.
71591         (configure.ac): Remove gl_UTF_UCS4.
71592         (Makefile.am): Update.
71593         (Include): Change to unistr.h.
71594         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71595         (Depends-on): Add unistr/base.
71596         (configure.ac): Remove gl_UTF_UCS4.
71597         (Makefile.am): Update.
71598         (Include): Change to unistr.h.
71599         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71600         (Depends-on): Add unistr/base.
71601         (configure.ac): Remove gl_UCS4_UTF.
71602         (Makefile.am): Update.
71603         (Include): Change to unistr.h.
71604         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71605         (Depends-on): Add unistr/base.
71606         (configure.ac): Remove gl_UCS4_UTF.
71607         (Makefile.am): Update.
71608         (Include): Change to unistr.h.
71609         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71610         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71611         utf8-ucs4-unsafe.h.
71612         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71613         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71614         utf16-ucs4-unsafe.h.
71615         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71616         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71617         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71618         * lib/unistr/u8-strchr.c: Likewise.
71619         * lib/unistr/u8-strrchr.c: Likewise.
71620         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71621         * lib/unistr/u16-strchr.c: Likewise.
71622         * lib/unistr/u16-strrchr.c: Likewise.
71623         * lib/striconveh.c: Update.
71624         * lib/linebreak.c: Update.
71625
71626 2007-03-24  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71629         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71630
71631 2007-03-22  Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71634
71635 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71636
71637         * MODULES.html.sh (File system functions): New module write-any-file.
71638         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71639         * m4/write-any-file.m4: New files.
71640
71641 2007-03-23  Eric Blake  <ebb9@byu.net>
71642
71643         * gnulib-tool: Rearrange space-tab sequences, since some editors
71644         like to eat them.
71645
71646 2007-03-23  Eric Blake  <ebb9@byu.net>
71647
71648         * lib/version-etc.c (version_etc_va): Update license wording to
71649         be more concise.  Recommended by Richard Stallman.
71650
71651 2007-03-22  Bruno Haible  <bruno@clisp.org>
71652
71653         * lib/poll.c (MSG_PEEK): New fallback definition.
71654
71655 2007-03-22  Bruno Haible  <bruno@clisp.org>
71656
71657         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71658         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71659         (main): Update.
71660         Fixes a compilation error on BeOS.
71661
71662 2007-03-22  Bruno Haible  <bruno@clisp.org>
71663
71664         * modules/frexpl-tests: New file.
71665         * tests/test-frexpl.c: New file.
71666
71667         * modules/frexpl: New file.
71668         * m4/frexpl.m4: New file.
71669         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71670         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71672         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71673         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71674         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71675
71676 2007-03-22  Bruno Haible  <bruno@clisp.org>
71677
71678         * lib/frexpl.c: Share code with lib/frexp.c.
71679         * modules/mathl (Files): Add lib/frexp.c.
71680         (Depends-on): Add isnanl-nolibm.
71681
71682 2007-03-22  Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/printf-frexp (Files): Add m4/frexp.m4.
71685         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71686         only if the found frexp function actually works.
71687
71688 2007-03-22  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/frexp.c: Remove older implementation that uses divisions.
71691
71692 2007-03-21  Bruno Haible  <bruno@clisp.org>
71693
71694         * modules/frexp-tests: New file.
71695         * tests/test-frexp.c: New file.
71696
71697         * modules/frexp: New file.
71698         * lib/frexp.c: New file.
71699         * m4/frexp.m4: New file.
71700         * lib/math_.h (frexp): New declaration.
71701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71702         REPLACE_FREXP.
71703         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71704
71705 2007-03-21  Bruno Haible  <bruno@clisp.org>
71706
71707         * modules/isnanl-tests: New file.
71708         * tests/test-isnanl.c: New file.
71709
71710         * modules/isnanl: New file.
71711         * lib/isnanl.h: New file.
71712         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71713         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71714         gl_FUNC_ISNANL_WORKS.
71715         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71716         New macros.
71717
71718 2007-03-21  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71721         lib/isnanl.h.
71722         (Include): Update.
71723         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71724         * lib/vasnprintf.c: Update.
71725         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71726         tests/test-isnanl.h, remove tests/test-isnanl.c.
71727         (Makefile.am): Update.
71728         * tests/test-isnanl-nolibm.c: New file.
71729         * tests/test-isnanl.h: New file.
71730         * tests/test-isnanl.c: Remove file.
71731
71732 2007-03-21  Jim Meyering  <jim@meyering.net>
71733
71734         When trying to open ".", treat ESTALE like EACCES.
71735         * lib/savewd.c (savewd_save): Resort to forking not just upon
71736         failure with EACCES, but also when errno is ESTALE.
71737
71738 2007-03-20  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71741         Needed on AIX 5.1. Reported by Matthew Woehlke.
71742
71743 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         Suggestions by Bruno Haible:
71746         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71747         our own.
71748         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71749         * modules/acl (Depends-on): Add gettext.
71750
71751 2007-03-19  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/iconvme: Remove file.
71754         * lib/iconvme.h: Remove file.
71755         * lib/iconvme.c: Remove file.
71756         * m4/iconvme.m4: Remove file.
71757
71758 2007-03-19  Bruno Haible  <bruno@clisp.org>
71759
71760         * doc/relocatable-maint.texi: Break long shell script line.
71761         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71762
71763 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71764
71765         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71766         handle file_has_acl.
71767         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71768         * lib/acl.c: Move header inclusions and related macro defns into
71769         lib/acl-internal.h.
71770         (S_ISLNK): Remove defn, since that's now done for us.
71771         (file_has_acl): Move to lib/file-has-acl.c.
71772         Call acl_trivial if available.  This is the crucial part of the fix.
71773         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71774         shared within the library.  Rewrite a bit, partly to make it compatible
71775         with the GNU coding style.
71776         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71777         Remove unnecessary double-quotes.
71778         Don't test for acl_to_text; the build will catch that.
71779         Replace acl_entries if it doesn't exist and it is needed.
71780         Check for -lsec and acl_trivial (as used on Solaris 10).
71781         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71782         lib/file-has-acl.c.
71783         (Depends-on): Add sys_stat, for S_ISLNK.
71784
71785 2007-03-19  Ben Pfaff  <blp@gnu.org>
71786
71787         * doc/gnulib.texi: Fix typos.
71788         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71789
71790 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71793         If size is zero here, buf must be zero.
71794
71795 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71796
71797         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71798         <bruno@clisp.org>.
71799
71800 2007-03-18  Bruno Haible  <bruno@clisp.org>
71801
71802         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71803         Suggested by Eric Blake.
71804
71805 2007-03-18  Ben Pfaff  <blp@gnu.org>
71806
71807         * doc/relocatable.texi: Recommend using as prefix a directory
71808         that does not exist and will never be created.  Based on
71809         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71810         and others.
71811
71812 2007-03-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/fchownat.c: Include lchown.h.
71815
71816 2007-03-17  Bruno Haible  <bruno@clisp.org>
71817
71818         Fix endless loop when the given allocated size was > INT_MAX.
71819         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71820         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71821         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71822         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71823         * lib/sprintf.c (sprintf): Likewise.
71824
71825 2007-03-17  Bruno Haible  <bruno@clisp.org>
71826
71827         * tests/test-argp-2.sh (func_compare): Output a context diff.
71828
71829 2007-03-17  Bruno Haible  <bruno@clisp.org>
71830
71831         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71832         locale's decimal-point character.
71833
71834 2007-03-17  Bruno Haible  <bruno@clisp.org>
71835
71836         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71837         before comparing it. Needed because on some platforms (e.g. x86) a
71838         'long double' occupies less bytes than sizeof (long double).
71839
71840 2007-03-17  Bruno Haible  <bruno@clisp.org>
71841
71842         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71843         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71844         * tests/test-getaddrinfo.c (simple): Likewise.
71845         * tests/test-read-file.c (main): Likewise.
71846
71847 2007-03-17  Bruno Haible  <bruno@clisp.org>
71848
71849         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71850
71851 2007-03-17  Bruno Haible  <bruno@clisp.org>
71852
71853         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71854         unused variable.
71855
71856 2007-03-17  Bruno Haible  <bruno@clisp.org>
71857
71858         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71859         * tests/test-c-strncasecmp.c: Likewise.
71860
71861 2007-03-17  Bruno Haible  <bruno@clisp.org>
71862
71863         * modules/stdlib (Depends-on): Add unistd.
71864         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71865         Needed for MacOS X 10.3.
71866
71867 2007-03-17  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71870
71871 2007-03-17  Bruno Haible  <bruno@clisp.org>
71872
71873         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71874
71875 2007-03-17  Bruno Haible  <bruno@clisp.org>
71876
71877         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71878         to reflect files copied from gnulib (with or without modifications).
71879         Suggested by Jim Meyering.
71880
71881 2007-03-17  Eric Blake  <ebb9@byu.net>
71882
71883         * NEWS: Document stdlib change from 2007-02-18.
71884
71885 2007-03-17  Jim Meyering  <jim@meyering.net>
71886
71887         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71888         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71889         someone uses a name containing shell meta-characters.
71890         Reported by Alfred M. Szmidt.
71891
71892         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71893
71894 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71895
71896         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71897         and copy gettext configuration files only if configure.ac contains
71898         a use of AM_GNU_GETTEXT_VERSION.
71899
71900 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71901
71902         * build-aux/bootstrap (gnulib_name): New variable.
71903         (gnulib_tool_options): Use it.
71904
71905 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71906
71907         * tests/test-des.c: Use new namespace.
71908
71909 2007-03-15  Bruno Haible  <bruno@clisp.org>
71910
71911         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71912         Reported by James Youngman <jay@gnu.org>.
71913
71914 2007-03-15  Bruno Haible  <bruno@clisp.org>
71915
71916         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71917         declared prototype. Needed with cc on OSF/1 5.1.
71918
71919 2007-03-15  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71922         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71923         (struct gl_list_implementation): Add dispose_fn argument to the
71924         'create_empty', 'create' methods.
71925         (struct gl_list_impl_base): Add field 'dispose_fn'.
71926         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71927         argument.
71928         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71929         dispose_fn argument.
71930         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71931         dispose_fn on the dropped values.
71932         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71933         dispose_fn argument.
71934         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71935         dropped values.
71936         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71937         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71938         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71939         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71940         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71941         argument.
71942         (gl_tree_list_free): Call dispose_fn on the dropped values.
71943         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71944         the dropped values.
71945         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71946         Add dispose_fn argument.
71947         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71948         Call dispose_fn on the dropped values.
71949         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71950         Add dispose_fn argument.
71951         (gl_sublist_create): Initialize the 'dispose_fn' field.
71952         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71953         * tests/test-array_list.c (main): Update.
71954         * tests/test-carray_list.c (main): Update.
71955         * tests/test-avltree_list.c (main): Update.
71956         * tests/test-rbtree_list.c (main): Update.
71957         * tests/test-avltreehash_list.c (main): Update.
71958         * tests/test-rbtreehash_list.c (main): Update.
71959         * tests/test-linked_list.c (main): Update.
71960         * tests/test-linkedhash_list.c (main): Update.
71961         * tests/test-array_oset.c (main): Update.
71962
71963 2007-03-15  Bruno Haible  <bruno@clisp.org>
71964
71965         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71966         (gl_oset_create_empty): Add dispose_fn argument.
71967         (struct gl_oset_implementation): Add dispose_fn argument to
71968         'create_empty' method.
71969         (struct gl_oset_impl_base): Add dispose_fn field.
71970         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71971         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71972         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71973         values.
71974         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71975         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71976         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71977         dropped value.
71978         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71979         dropped value.
71980         * tests/test-array_oset.c (main): Update.
71981         * tests/test-avltree_oset.c (main): Update.
71982         * tests/test-rbtree_oset.c (main): Update.
71983         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71984
71985 2007-03-13  Bruno Haible  <bruno@clisp.org>
71986
71987         * tests/test-stdbool.c (i): Update after last patch.
71988
71989 2007-03-12  Bruno Haible  <bruno@clisp.org>
71990
71991         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71992         the iswprint macro. Needed on Solaris 2.5.1.
71993
71994 2007-03-12  Bruno Haible  <bruno@clisp.org>
71995
71996         * tests/test-printf-frexp.c (main): Declare x as volatile.
71997
71998 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71999
72000         * doc/gnulib.texi (Build robot for gnulib): New section.
72001
72002 2007-03-12  Jim Meyering  <jim@meyering.net>
72003
72004         * build-aux/bootstrap: New file.
72005         * build-aux/bootstrap.conf: New file, from coreutils.
72006
72007 2007-03-11  Bruno Haible  <bruno@clisp.org>
72008
72009         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72010
72011 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72012
72013         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72014         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72015         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72016
72017 2007-03-11  Bruno Haible  <bruno@clisp.org>
72018
72019         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72020         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72021
72022 2007-03-11  Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72025         formula. Needed for SunPRO C 5.0.
72026
72027 2007-03-11  Bruno Haible  <bruno@clisp.org>
72028
72029         * modules/long-options (Depends-on): Add getopt.
72030
72031 2007-03-11  Bruno Haible  <bruno@clisp.org>
72032
72033         * modules/modechange (Depends-on): Add stdbool.
72034
72035 2007-03-11  Bruno Haible  <bruno@clisp.org>
72036
72037         * modules/i-ring (Depends-on): Add stdbool.
72038
72039 2007-03-11  Bruno Haible  <bruno@clisp.org>
72040
72041         * modules/gc-des (Depends-on): Add stdbool.
72042
72043 2007-03-11  Bruno Haible  <bruno@clisp.org>
72044
72045         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72046
72047 2007-03-11  Bruno Haible  <bruno@clisp.org>
72048
72049         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72050
72051 2007-03-11  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72054
72055 2007-03-11  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/vasnprintf.c (sprintf): Undefine.
72058
72059 2007-03-11  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72062         initializers in SunPRO C and Compaq C compilers.
72063
72064 2007-03-11  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72067         decrementing code ANSI C compliant.
72068
72069 2007-03-11  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72072         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72073
72074 2007-03-11  Bruno Haible  <bruno@clisp.org>
72075
72076         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72077         <stdbool.h> substitute doesn't pass.
72078
72079 2007-03-11  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72082
72083 2007-03-11  Bruno Haible  <bruno@clisp.org>
72084
72085         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72086         script, for submission to autobuild.josefsson.org.
72087
72088 2007-03-10  Bruno Haible  <bruno@clisp.org>
72089
72090         * modules/canonicalize-lgpl-tests: New file.
72091         * tests/test-canonicalize-lgpl.sh: New file.
72092         * tests/test-canonicalize-lgpl.c: New file.
72093
72094         * modules/c-strcase-tests: New file.
72095         * tests/test-c-strcase.sh: New file.
72096         * tests/test-c-strcasecmp.c: New file.
72097         * tests/test-c-strncasecmp.c: New file.
72098
72099         * modules/atexit-tests: New file.
72100         * tests/test-atexit.sh: New file.
72101         * tests/test-atexit.c: New file.
72102
72103 2007-03-10  Bruno Haible  <bruno@clisp.org>
72104
72105         * tests/test-binary-io.sh: Use temporary filenames that are not so
72106         likely to clash with those of other tests (in a parallel make).
72107         * tests/test-binary-io.c: Likewise.
72108
72109 2007-03-10  Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72112         fallback; use #error instead.
72113         Suggested by Simon Josefsson.
72114
72115 2007-03-10  Bruno Haible  <bruno@clisp.org>
72116
72117         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72118         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72119         first and the last.
72120
72121 2007-03-10  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72124
72125 2007-03-10  Bruno Haible  <bruno@clisp.org>
72126
72127         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72128         "make distcheck".
72129         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72130         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72131         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72132
72133 2007-03-10  Bruno Haible  <bruno@clisp.org>
72134
72135         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72136         variable.
72137         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72138         variable.
72139
72140 2007-03-09  Eric Blake  <ebb9@byu.net>
72141         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72142
72143         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72144         types are not being provided by gnulib.
72145         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72146         types are supported.
72147
72148 2007-03-10  Bruno Haible  <bruno@clisp.org>
72149
72150         * lib/stdio_.h (__attribute__): New macro.
72151         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72152         vsprintf): Specify __attribute__ __format__ for GCC.
72153         Suggested by Eric Blake.
72154
72155 2007-03-09  Bruno Haible  <bruno@clisp.org>
72156
72157         * modules/printf-posix-tests: New file.
72158         * tests/test-printf-posix.sh: New file.
72159         * tests/test-printf-posix.c: New file.
72160
72161         * modules/printf-posix: New file.
72162         * lib/printf.c: New file.
72163         * m4/printf-posix-rpl.m4: New file.
72164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72165         REPLACE_PRINTF.
72166         * lib/stdio_.h (printf): New declaration.
72167         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72168         ____strfmon____): New macros.
72169         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72170         REPLACE_PRINTF.
72171
72172 2007-03-09  Bruno Haible  <bruno@clisp.org>
72173
72174         * tests/test-vasnprintf-posix2.sh: New file.
72175         * tests/test-vasnprintf-posix2.c: New file.
72176         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72177         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72178         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72179
72180         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72181         a locale dependent decimal point, rather than always '.'.
72182
72183 2007-03-09  Eric Blake  <ebb9@byu.net>
72184
72185         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72186         spite of platforms like Tandem/NSK that define it to -1.
72187
72188 2007-03-08  Bruno Haible  <bruno@clisp.org>
72189
72190         * modules/vprintf-posix-tests: New file.
72191         * tests/test-vprintf-posix.sh: New file.
72192         * tests/test-vprintf-posix.c: New file.
72193         * tests/test-printf-posix.h: New file.
72194
72195         * modules/vprintf-posix: New file.
72196         * lib/vprintf.c: New file.
72197         * m4/vprintf-posix.m4: New file.
72198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72199         REPLACE_VPRINTF.
72200         * lib/stdio_.h (vprintf): New declaration.
72201         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72202         REPLACE_VPRINTF.
72203
72204 2007-03-08  Bruno Haible  <bruno@clisp.org>
72205
72206         * modules/fprintf-posix-tests: New file.
72207         * tests/test-fprintf-posix.sh: New file.
72208         * tests/test-fprintf-posix.c: New file.
72209
72210         * modules/fprintf-posix: New file.
72211         * lib/fprintf.c: New file.
72212         * m4/fprintf-posix.m4: New file.
72213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72214         REPLACE_FPRINTF.
72215         * lib/stdio_.h (fprintf): New declaration.
72216         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72217         REPLACE_FPRINTF.
72218
72219 2007-03-08  Bruno Haible  <bruno@clisp.org>
72220
72221         * modules/vfprintf-posix-tests: New file.
72222         * tests/test-vfprintf-posix.sh: New file.
72223         * tests/test-vfprintf-posix.c: New file.
72224         * tests/test-fprintf-posix.h: New file.
72225         * tests/test-fprintf-posix.out: New file.
72226
72227         * modules/vfprintf-posix: New file.
72228         * lib/vfprintf.c: New file.
72229         * m4/vfprintf-posix.m4: New file.
72230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72231         REPLACE_VFPRINTF.
72232         * lib/stdio_.h (vfprintf): New declaration.
72233         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72234         REPLACE_VFPRINTF.
72235
72236 2007-03-08  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72239
72240 2007-03-08  Bruno Haible  <bruno@clisp.org>
72241
72242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72243         instead of 'expr' invocations.
72244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72249         Suggested by Paul Eggert.
72250
72251 2007-03-08  Bruno Haible  <bruno@clisp.org>
72252
72253         * modules/fseterr-tests: New file.
72254         * tests/test-fseterr.c: New file.
72255
72256         * modules/fseterr: New file.
72257         * lib/fseterr.h: New file.
72258         * lib/fseterr.c: New file.
72259
72260 2007-03-08  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72263         * lib/getopt_.h: Likewise.
72264         * lib/mbswidth.h: Likewise.
72265         * lib/setenv.h: Likewise.
72266         * lib/vasnprintf.h: Likewise.
72267         * lib/vasprintf.h: Likewise.
72268         * lib/verror.h: Likewise.
72269         * lib/xsetenv.h: Likewise.
72270         * lib/xvasprintf.h: Likewise.
72271
72272 2007-03-08  Jim Meyering  <jim@meyering.net>
72273
72274         * users.txt: Add parted.
72275
72276         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72277
72278 2007-03-07  Bruno Haible  <bruno@clisp.org>
72279
72280         * m4/printf.m4: Make the shell script snippets copy&pastable.
72281
72282 2007-03-02  Bruno Haible  <bruno@clisp.org>
72283
72284         * lib/netinet_in_.h: New file.
72285         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72286         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72287         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72288         (Depends-on): Add absolute-header.
72289         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72290         into netinet/in.h.
72291
72292 2007-03-03  Bruno Haible  <bruno@clisp.org>
72293
72294         * lib/sys_select_.h: New file.
72295         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72296         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72297         * modules/sys_select (Files): Add lib/sys_select_.h.
72298         (Depends-on): Add absolute-header.
72299         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72300         into sys/select.h.
72301
72302 2007-03-02  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72305         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72306         values.
72307         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72308         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72309         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72310         * modules/sys_socket (Depends-on): Add absolute-header.
72311         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72312         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72313         (Include): Remove requirement of inclusion of <sys/types.h>.
72314
72315 2007-03-02  Bruno Haible  <bruno@clisp.org>
72316
72317         * lib/byteswap_.h (bswap_32): Fix formula.
72318
72319 2007-03-06  Bruno Haible  <bruno@clisp.org>
72320
72321         * modules/sprintf-posix-tests: New file.
72322         * tests/test-sprintf-posix.c: New file.
72323
72324         * modules/sprintf-posix: New file.
72325         * lib/sprintf.c: New file.
72326         * m4/sprintf-posix.m4: New file.
72327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72328         REPLACE_SPRINTF.
72329         * lib/stdio_.h (sprintf): New declaration.
72330         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72331         REPLACE_SPRINTF.
72332
72333 2007-03-06  Bruno Haible  <bruno@clisp.org>
72334
72335         * modules/vsprintf-posix-tests: New file.
72336         * tests/test-vsprintf-posix.c: New file.
72337         * tests/test-sprintf-posix.h: New file.
72338
72339         * modules/vsprintf-posix: New file.
72340         * lib/vsprintf.c: New file.
72341         * m4/vsprintf-posix.m4: New file.
72342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72343         REPLACE_VSPRINTF.
72344         * lib/stdio_.h (vsprintf): New declaration.
72345         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72346         REPLACE_VSPRINTF.
72347
72348 2007-03-06  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/vsnprintf (Depend-on): Remove minmax.
72351
72352 2007-03-06  Bruno Haible  <bruno@clisp.org>
72353
72354         * modules/snprintf-posix-tests: New file.
72355         * tests/test-snprintf-posix.c: New file.
72356
72357         * modules/snprintf-posix: New file.
72358         * m4/snprintf-posix.m4: New file.
72359         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72360         gl_FUNC_SNPRINTF.
72361         (gl_FUNC_SNPRINTF): Invoke it.
72362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72363         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72364         is set.
72365         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72366
72367 2007-03-06  Bruno Haible  <bruno@clisp.org>
72368
72369         * modules/vsnprintf-posix-tests: New file.
72370         * tests/test-vsnprintf-posix.c: New file.
72371         * tests/test-snprintf-posix.h: New file.
72372
72373         * modules/vsnprintf-posix: New file.
72374         * m4/vsnprintf-posix.m4: New file.
72375         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72376         gl_FUNC_VSNPRINTF.
72377         (gl_FUNC_VSNPRINTF): Invoke it.
72378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72379         * lib/stdio_.h (vsnprintf): Define as a replacement if
72380         REPLACE_VSNPRINTF is set.
72381         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72382
72383 2007-03-06  Bruno Haible  <bruno@clisp.org>
72384
72385         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72387
72388 2007-03-06  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72391         (asinl): Declare also if HAVE_DECL_ASINL is set.
72392         (atanl): Declare also if HAVE_DECL_ATANL is set.
72393         (ceill): Declare also if HAVE_DECL_CEILL is set.
72394         (cosl): Declare also if HAVE_DECL_COSL is set.
72395         (expl): Declare also if HAVE_DECL_EXPL is set.
72396         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72397         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72398         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72399         (logl): Declare also if HAVE_DECL_LOGL is set.
72400         (sinl): Declare also if HAVE_DECL_SINL is set.
72401         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72402         (tanl): Declare also if HAVE_DECL_TANL is set.
72403         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72405         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72406         declaration of frexpl, ldexpl.
72407         * modules/printf-frexpl (Depends-on): Add math.
72408         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72409
72410 2007-03-05  Bruno Haible  <bruno@clisp.org>
72411
72412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72413         frexpl and ldexpl are declared.
72414         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72415
72416 2007-03-05  Bruno Haible  <bruno@clisp.org>
72417
72418         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72419         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72420
72421 2007-03-05  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/stdio_.h: Include <stddef.h>.
72424
72425 2007-03-05  Bruno Haible  <bruno@clisp.org>
72426
72427         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72428
72429 2007-03-05  Bruno Haible  <bruno@clisp.org>
72430
72431         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72432         NetBSD 4, from Ralf Wildenhues.
72433
72434 2007-03-04  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/vasprintf.h: Update #if logic for the case when the functions
72437         exist but are overridden.
72438
72439 2007-03-04  Bruno Haible  <bruno@clisp.org>
72440
72441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72442         implementations: glibc-2.4 and MacOS X 10.3.
72443         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72444         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72445         * tests/test-vasprintf-posix.c (test_function): Likewise.
72446
72447 2007-03-04  Bruno Haible  <bruno@clisp.org>
72448
72449         * modules/vasprintf-posix-tests: New file.
72450         * tests/test-vasprintf-posix.c: New file.
72451
72452         * modules/vasprintf-posix: New file.
72453         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72454         defined.
72455         * m4/vasprintf-posix.m4: New file.
72456         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72457         gl_FUNC_VASPRINTF.
72458         (gl_FUNC_VASPRINTF): Invoke it.
72459         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72460         here.
72461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72462
72463 2007-03-04  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72466         REPLACE_GETTIMEOFDAY.
72467         * modules/sys_time (Makefile.am): Likewise.
72468         * m4/sys_time_h.m4: Likewise.
72469         * m4/gettimeofday.m4: Likewise.
72470
72471 2007-03-04  Bruno Haible  <bruno@clisp.org>
72472
72473         * modules/vasnprintf-posix-tests: New file.
72474         * tests/test-vasnprintf-posix.c: New file.
72475
72476         * modules/vasnprintf-posix: New file.
72477         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72478         printf-frexpl.h.
72479         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72480         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72481         REPLACE_VASNPRINTF is defined.
72482         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72483         gl_FUNC_VASNPRINTF.
72484         (gl_FUNC_VASNPRINTF): Invoke it.
72485         * m4/vasnprintf-posix.m4: New file.
72486         * m4/printf.m4: New file.
72487
72488 2007-03-04  Bruno Haible  <bruno@clisp.org>
72489
72490         Compile progreloc.c only if --enable-relocatable is specified.
72491         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72492         if --enable-relocatable was specified.
72493         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72494         lib_SOURCES.
72495
72496 2007-03-04  Jim Meyering  <jim@meyering.net>
72497
72498         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72499         Use it consistently, rather than enumerating errno constants.
72500
72501 2007-03-04  Bruno Haible  <bruno@clisp.org>
72502
72503         * modules/xvasprintf-tests: New file.
72504         * tests/test-xvasprintf.c: New file.
72505
72506         * modules/vasprintf-tests: New file.
72507         * tests/test-vasprintf.c: New file.
72508
72509         * modules/vasnprintf-tests: New file.
72510         * tests/test-vasnprintf.c: New file.
72511
72512         * modules/vsnprintf-tests: New file.
72513         * tests/test-vsnprintf.c: New file.
72514
72515         * modules/snprintf-tests: New file.
72516         * tests/test-snprintf.c: New file.
72517
72518 2007-03-04  Bruno Haible  <bruno@clisp.org>
72519
72520         Compile relocatable.c only if --enable-relocatable is specified.
72521         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72522         gl_RELOCATABLE_LIBRARY.
72523         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72524         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72525         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72526         gl_RELOCATABLE_LIBRARY.
72527         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72528         (Makefile.am): Remove lib_SOURCES.
72529         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72530         gl_RELOCATABLE_LIBRARY.
72531         (Makefile.am): Remove lib_SOURCES.
72532         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72533         always.
72534         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72535         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72536
72537 2007-03-04  Bruno Haible  <bruno@clisp.org>
72538
72539         * modules/argmatch-tests: New file.
72540         * tests/test-argmatch.c: New file.
72541
72542         * tests/test-allocsa.c (main): Halve the number of loop runs.
72543
72544         * modules/alloca-opt-tests: New file.
72545         * tests/test-alloca-opt.c: New file.
72546
72547 2007-03-04  Jim Meyering  <jim@meyering.net>
72548
72549         Work around difference between Linux ACLs and Solaris 10 ZFS.
72550         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72551         for EINVAL.
72552
72553 2007-03-03  Bruno Haible  <bruno@clisp.org>
72554
72555         * modules/relocatable-prog (Depends-on): Add back progreloc's
72556         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72557
72558 2007-03-03  Bruno Haible  <bruno@clisp.org>
72559
72560         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72561         * modules/relocatable-lib: New file.
72562
72563 2007-03-03  Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/relocatable-prog: Renamed from modules/relocatable.
72566         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72567
72568 2007-03-03  Bruno Haible  <bruno@clisp.org>
72569
72570         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72571         m4/relocatable-lib.m4.
72572         (Depends-on): Remove 'relocatable'.
72573         (configure.ac): Add gl_RELOCATABLE_NOP.
72574
72575 2007-03-03  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/relocatable-prog-wrapper: New file.
72578         * modules/relocatable (Depends-on): Add it. Remove all other
72579         dependencies except progname.
72580         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72581
72582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72583         (gl_FUNC_STRERROR): Nop.
72584         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72585
72586         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72587         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72588
72589         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72590         (gl_FUNC_READLINK): Update.
72591
72592         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72593
72594 2007-03-03  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72597         * modules/xreadlink (Depends-on): Add unistd.
72598         * modules/xreadlink-with-size (Depends-on): Likewise.
72599
72600 2007-03-03  Bruno Haible  <bruno@clisp.org>
72601
72602         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72603         extracted from gt_FUNC_SETENV.
72604         (gt_FUNC_SETENV): Remove macro.
72605         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72606         remove gt_FUNC_SETENV.
72607
72608 2007-03-03  Bruno Haible  <bruno@clisp.org>
72609
72610         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72611         ENABLE_RELOCATABLE here.
72612         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72613
72614 2007-03-03  Bruno Haible  <bruno@clisp.org>
72615
72616         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72617         * tests/test-rbtreehash_list.c: Include progname.h.
72618         (main): Call set_program_name.
72619
72620         * modules/rbtree-oset-tests (Depends-on): Add progname.
72621         * tests/test-rbtree_oset.c: Include progname.h.
72622         (main): Call set_program_name.
72623
72624         * modules/rbtree-list-tests (Depends-on): Add progname.
72625         * tests/test-rbtree_list.c: Include progname.h.
72626         (main): Call set_program_name.
72627
72628         * modules/linked-list-tests (Depends-on): Add progname.
72629         * tests/test-linked_list.c: Include progname.h.
72630         (main): Call set_program_name.
72631
72632 2007-03-03  Bruno Haible  <bruno@clisp.org>
72633
72634         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72635         All uses of __restrict changed to _Restrict_.
72636         * lib/glob_.h (__restrict): Remove macro.
72637
72638 2007-03-02  Bruno Haible  <bruno@clisp.org>
72639
72640         * modules/gettext (configure.ac): Require gettext infrastructure
72641         from version 0.16.1.
72642
72643 2007-03-02  Bruno Haible  <bruno@clisp.org>
72644
72645         * modules/linkedhash-list-tests (Depends-on): Add progname.
72646         * tests/test-linkedhash_list.c: Include progname.h.
72647         (main): Call set_program_name.
72648
72649         * modules/carray-list-tests (Depends-on): Add progname.
72650         * tests/test-carray_list.c: Include progname.h.
72651         (main): Call set_program_name.
72652
72653         * modules/avltreehash-list-tests (Depends-on): Add progname.
72654         * tests/test-avltreehash_list.c: Include progname.h.
72655         (main): Call set_program_name.
72656
72657         * modules/avltree-oset-tests (Depends-on): Add progname.
72658         * tests/test-avltree_oset.c: Include progname.h.
72659         (main): Call set_program_name.
72660
72661         * modules/avltree-list-tests (Depends-on): Add progname.
72662         * tests/test-avltree_list.c: Include progname.h.
72663         (main): Call set_program_name.
72664
72665         * modules/array-oset-tests (Depends-on): Add progname.
72666         * tests/test-array_oset.c: Include progname.h.
72667         (main): Call set_program_name.
72668
72669         * modules/array-list-tests (Depends-on): Add progname.
72670         * tests/test-array_list.c: Include progname.h.
72671         (main): Call set_program_name.
72672
72673         * modules/argp-tests (Depends-on): Add progname.
72674         * tests/test-argp.c: Include argp.h first. Include progname.h.
72675         (main): Call set_program_name.
72676
72677 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         * doc/gnulib-tool.texi (Initial import): Reword description of
72680         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72681         limited effect even if defined after the first system include.
72682
72683 2007-03-01  Bruno Haible  <bruno@clisp.org>
72684
72685         * build-aux/config.libpath: Update to libtool-1.5.22.
72686         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72687
72688 2007-03-01  Bruno Haible  <bruno@clisp.org>
72689
72690         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72691         foo_CFLAGS.
72692         Reported by Ralf Wildenhues.
72693
72694 2007-03-01  Bruno Haible  <bruno@clisp.org>
72695
72696         * build-aux/install-reloc: Remove object files left over by some
72697         compilers.
72698         Reported by Ralf Wildenhues.
72699
72700 2007-03-01  Bruno Haible  <bruno@clisp.org>
72701
72702         * build-aux/install-reloc: Break long lines.
72703
72704 2007-03-01  Bruno Haible  <bruno@clisp.org>
72705
72706         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72707         Reported by Ralf Wildenhues.
72708
72709 2007-03-01  Bruno Haible  <bruno@clisp.org>
72710
72711         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72712         include ordering constraints.
72713
72714 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72718         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72719         as another example.
72720         * lib/time_.h: Fix misspelling.
72721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72722         Require gl_HEADER_TIME_H_DEFAULTS.
72723         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72724         * m4/time_r.m4 (gl_TIME_R): Likewise.
72725         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72726
72727 2007-03-01  Bruno Haible  <bruno@clisp.org>
72728
72729         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72730         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72731
72732 2007-03-01  Jim Meyering  <jim@meyering.net>
72733
72734         * modules/xreadlink (Maintainer): Add my name.
72735         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72736
72737 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72738             Bruno Haible  <bruno@clisp.org>
72739
72740         * build-aux/install-reloc: Compile also c-ctype.c.
72741         * build-aux/relocatable.sh.in: New file.
72742         * doc/relocatable.texi: New file.
72743         * doc/relocatable-maint.texi: New file.
72744         * doc/gnulib.texi: Include relocatable-maint.texi.
72745         * lib/progreloc.c: Include unistd.h unconditionally.
72746         * lib/relocwrapper.c: Include unistd.h unconditionally.
72747         Include c-ctype.h.
72748         (add_dotbin): Use c_tolower.
72749         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72750         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72751         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72752         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72753         to m4/relocatable-lib.m4.
72754         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72755         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72756         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72757         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72758         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72759         * modules/relocatable: New file.
72760         * modules/relocatable-lib: New file.
72761         * modules/relocatable-script: New file.
72762
72763 2007-02-28  Bruno Haible  <bruno@clisp.org>
72764
72765         Import --enable-relocatable infrastructure.
72766         * build-aux/config.libpath: New file, from GNU gettext.
72767         * build-aux/install-reloc: New file, from GNU gettext.
72768         * build-aux/reloc-ldflags: New file, from GNU gettext.
72769         * lib/relocatable.h: New file, from GNU gettext.
72770         * lib/relocatable.c: New file, from GNU gettext.
72771         * lib/relocwrapper.c: New file, from GNU gettext.
72772         * m4/relocatable.m4: New file, from GNU gettext.
72773
72774 2007-02-28  Bruno Haible  <bruno@clisp.org>
72775
72776         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72777
72778         * modules/xreadlink: New file, from GNU gettext with modifications.
72779         * lib/xreadlink.c: New file, from GNU gettext.
72780         * lib/xreadlink.h: Add comments.
72781         (xreadlink): New declaration.
72782
72783         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72784         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72785         lib/xreadlink-with-size.c.
72786         (configure.ac): Remove gl_XREADLINK invocation.
72787         (Makefile.am): Augment lib_SOURCES.
72788         * m4/xreadlink.m4: Remove file.
72789         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72790         (xreadlink_with_size): Renamed from xreadink.
72791         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72792         * modules/canonicalize (Depends-on): Replace xreadlink with
72793         xreadlink-with-size.
72794         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72795
72796 2007-02-25  Jim Meyering  <jim@meyering.net>
72797
72798         * build-aux/announce-gen: When complaining about excess arguments,
72799         list them.
72800
72801 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * README: Document signed integer overflow situation more
72804         accurately.
72805
72806 2007-02-25  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72809         'a' or 'A' conversion.
72810
72811 2007-02-25  Bruno Haible  <bruno@clisp.org>
72812
72813         * modules/filename: Renamed from modules/pathname.
72814         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72815         lib/concatpath.c with lib/concat-filename.c.
72816         (Makefile.am): Update.
72817         (Include): Replace pathname.h with filename.h.
72818         * lib/filename.h: Renamed from lib/pathname.h.
72819         (concatenated_filename): Renamed from concatenated_pathname.
72820         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72821         (concatenated_filename): Renamed from concatenated_pathname.
72822         * lib/findprog.c: Include filename.h instead of pathname.h.
72823         (find_in_path): Update.
72824         * lib/javacomp.c: Include filename.h instead of pathname.h.
72825         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72826         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72827         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72828         is_oldgcj_14_13_usable, is_javac_usable): Update.
72829         * lib/javaexec.c: Include filename.h instead of pathname.h.
72830         (execute_java_class): Update.
72831         * modules/findprog: Update.
72832         * modules/javacomp: Update.
72833         * modules/javaexec: Update.
72834         * MODULES.html.sh (File system functions): Add 'filename', remove
72835         'pathname'.
72836
72837 2007-02-25  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/printf-frexpl-tests: New file.
72840         * tests/test-printf-frexpl.c: New file.
72841
72842         * modules/printf-frexpl: New file.
72843         * lib/printf-frexpl.h: New file.
72844         * lib/printf-frexpl.c: New file.
72845         * m4/printf-frexpl.m4: New file.
72846
72847 2007-02-25  Bruno Haible  <bruno@clisp.org>
72848
72849         * modules/printf-frexp-tests: New file.
72850         * tests/test-printf-frexp.c: New file.
72851
72852         * modules/printf-frexp: New file.
72853         * lib/printf-frexp.h: New file.
72854         * lib/printf-frexp.c: New file.
72855         * m4/printf-frexp.m4: New file.
72856
72857 2007-02-25  Bruno Haible  <bruno@clisp.org>
72858
72859         Assume automake >= 1.10 for the tests.
72860         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72861         * modules/arctwo-tests: Likewise.
72862         * modules/argp-tests: Likewise.
72863         * modules/avltree-list-tests: Likewise.
72864         * modules/avltree-oset-tests: Likewise.
72865         * modules/avltreehash-list-tests: Likewise.
72866         * modules/carray-list-tests: Likewise.
72867         * modules/crc-tests: Likewise.
72868         * modules/des-tests: Likewise.
72869         * modules/gc-arcfour-tests: Likewise.
72870         * modules/gc-arctwo-tests: Likewise.
72871         * modules/gc-des-tests: Likewise.
72872         * modules/gc-hmac-md5-tests: Likewise.
72873         * modules/gc-hmac-sha1-tests: Likewise.
72874         * modules/gc-md2-tests: Likewise.
72875         * modules/gc-md4-tests: Likewise.
72876         * modules/gc-md5-tests: Likewise.
72877         * modules/gc-pbkdf2-sha1-tests: Likewise.
72878         * modules/gc-rijndael-tests: Likewise.
72879         * modules/gc-sha1-tests: Likewise.
72880         * modules/gc-tests: Likewise.
72881         * modules/getaddrinfo-tests: Likewise.
72882         * modules/hmac-md5-tests: Likewise.
72883         * modules/hmac-sha1-tests: Likewise.
72884         * modules/linked-list-tests: Likewise.
72885         * modules/linkedhash-list-tests: Likewise.
72886         * modules/lock-tests: Likewise.
72887         * modules/md2-tests: Likewise.
72888         * modules/md4-tests: Likewise.
72889         * modules/md5-tests: Likewise.
72890         * modules/rbtree-list-tests: Likewise.
72891         * modules/rbtree-oset-tests: Likewise.
72892         * modules/rbtreehash-list-tests: Likewise.
72893         * modules/read-file-tests: Likewise.
72894         * modules/rijndael-tests: Likewise.
72895         * modules/stdint-tests: Likewise.
72896         * modules/tls-tests: Likewise.
72897
72898 2007-02-24  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72901         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72902         function; instead check whether isnan with a double argument links.
72903         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72904         function; instead check whether isnan with a 'long double' argument
72905         links.
72906         Reported by Eric Blake <ebb9@byu.net>.
72907
72908 2007-02-24  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72911         defined.
72912         * lib/isnanl.c: Remove all code. Just include isnan.c.
72913         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72914
72915 2007-02-25  Jim Meyering  <jim@meyering.net>
72916
72917         Avoid conflicting types for 'unsetenv' on FreeBSD.
72918         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72919         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72920         in stdlib.h.
72921
72922 2007-02-24  Bruno Haible  <bruno@clisp.org>
72923
72924         * modules/isnanl-nolibm-tests: New file.
72925         * tests/test-isnanl.c: New file.
72926
72927         * modules/isnanl-nolibm: New file.
72928         * lib/isnanl.h: New file.
72929         * lib/isnanl.c: New file.
72930         * m4/isnanl.m4: New file.
72931
72932 2007-02-24  Bruno Haible  <bruno@clisp.org>
72933
72934         * modules/isnan-nolibm-tests: New file.
72935         * tests/test-isnan.c: New file.
72936
72937         * modules/isnan-nolibm: New file.
72938         * lib/isnan.h: New file.
72939         * lib/isnan.c: New file.
72940         * m4/isnan.m4: New file.
72941
72942 2007-02-24  Bruno Haible  <bruno@clisp.org>
72943
72944         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72945         assume that an exponent fits in 20 bits.
72946
72947 2007-02-24  Jim Meyering  <jim@meyering.net>
72948
72949         * m4/regex.m4: Update the description of the configure-time option,
72950         --without-included-regex, to state accurately what the defaults are,
72951         and perhaps to give people an idea why using this option is risky.
72952
72953 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72956         loops on small arguments.  This attempts to avoid the problem
72957         Bruno Haible reported for AIX 4.3.2 in
72958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72959
72960 2007-02-23  Bruno Haible  <bruno@clisp.org>
72961
72962         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72963         Needed for help2man.
72964
72965 2007-02-23  Karl Berry  <karl@gnu.org>
72966
72967         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72968         exists, foo.h should be cvs-ignored, not committed.
72969
72970 2007-02-23  Eric Blake  <ebb9@byu.net>
72971
72972         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72973         * lib/stat-time.h (includes): Likewise.
72974         * lib/utimecmp.c (includes): Likewise.
72975         * lib/utimens.h (includes): Likewise.
72976         * lib/getdate.y (includes): Also include "timespec.h" for use
72977         internal to the module.
72978         * modules/utimens (Depends-on): Revert yesterday's patch.
72979         * modules/nanosleep (Depends-on): Add missing dependency.
72980
72981 2007-02-22  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/glob.c: Don't include getlogin_r.h.
72984
72985 2007-02-22  Jim Meyering  <jim@meyering.net>
72986
72987         * modules/utimens (Depends-on): Add timespec, required for
72988         utimens.h's inclusion of timespec.h.
72989
72990 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72993         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72994         Schwab in
72995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72996         I'll try to think of a better way to fix the Solaris problem.
72997
72998         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72999         like glibc; on Solaris 10, it fails with errno == EINVAL.
73000         POSIX says the behavior is unspecified if the first argument is NULL,
73001         so play it safe and never pass NULL to the system getcwd.
73002
73003 2007-02-21  Jim Meyering  <jim@meyering.net>
73004
73005         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73006         of gettimeofday.  It would conflict with the one now always
73007         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73008         an IRIX 6.5 build failure.
73009
73010 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         Minor fixups to port to Solaris 10 with Sun C 5.8.
73013         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73014         * modules/getcwd (Depends-on): Add dirfd.
73015         * lib/putenv.c (putenv): #undef it.
73016         (rpl_putenv): New decl.
73017         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73018
73019 2007-02-20  Bruno Haible  <bruno@clisp.org>
73020
73021         * modules/stdio-tests: New file.
73022         * tests/test-stdio.c: New file.
73023
73024         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73025         (Depends-on): Add stdio.
73026         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73027         (Include): Use <stdio.h> instead of vsnprintf.h.
73028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73029         HAVE_DECL_VSNPRINTF.
73030         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73031
73032         * modules/snprintf (Files): Remove lib/snprintf.h.
73033         (Depends-on): Add stdio.
73034         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73035         (Include): Use <stdio.h> instead of snprintf.h.
73036         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73037         HAVE_DECL_SNPRINTF.
73038         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73039         * lib/getaddrinfo.c: Likewise.
73040
73041         * modules/stdio: New file.
73042         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73043         * lib/snprintf.h: Remove file.
73044         * lib/vsnprintf.h: Remove file.
73045         * lib/.cppi-disable: Remove snprintf.h.
73046         * m4/stdio_h.m4: New file.
73047         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73048
73049 2007-02-20  Jim Meyering  <jim@meyering.net>
73050
73051         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73052         used by e.g., mingw.  From Bruno Haible.
73053
73054 2007-02-19  Bruno Haible  <bruno@clisp.org>
73055
73056         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73057         warnings.
73058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73059
73060 2007-02-19  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73063         from mingw users.
73064
73065 2007-02-19  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73068         warnings.
73069         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73070
73071 2007-02-19  Jim Meyering  <jim@meyering.net>
73072
73073         Don't use FD after a successful "fdopendir (fd)".
73074         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73075         Reset it by calling dirfd on the just-obtained DIR*.
73076
73077         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73078         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73079
73080 2007-02-18  Bruno Haible  <bruno@clisp.org>
73081
73082         * lib/readlink.c: Include <unistd.h>.
73083         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73084         HAVE_READLINK.
73085         * modules/readlink (Depends-on): Add unistd.
73086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73087         (Include): Add <unistd.h>.
73088
73089         * lib/getlogin_r.h: Remove file.
73090         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73091         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73092         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73093         HAVE_DECL_GETLOGIN_R.
73094         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73096         (Include): Use <unistd.h> instead of getlogin_r.h.
73097
73098         * lib/getcwd.h: Remove file.
73099         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73100         * lib/xgetcwd.c: Likewise.
73101         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73102         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73103         * modules/getcwd (Files): Remove lib/getcwd.h.
73104         (Depends-on): Add unistd.
73105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73106         (Include): Use <unistd.h> instad of getcwd.h.
73107
73108         * lib/ftruncate.c: Include <unistd.h> first.
73109         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73110         Set HAVE_FTRUNCATE.
73111         * modules/ftruncate (Depends-on): Add unistd.
73112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73113
73114         * lib/fchdir.c: Include <unistd.h> first.
73115         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73117         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73118         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73119         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73120
73121         * lib/dup2.c: Include <unistd.h> first.
73122         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73123         HAVE_DUP2.
73124         * modules/dup2 (Depends-on): Add unistd.
73125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73126
73127         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73128         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73129         REPLACE_CHOWN. Don't define chown as a macro here.
73130         * modules/chown (Depends-on): Add unistd.
73131         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73132
73133         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73134         Add definition for GL_LINK_WARNING.
73135         (chown, dup2): New declarations.
73136         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73137         link warning.
73138         (ftruncate): New declaration.
73139         (getcwd): New declaration, taken from old getcwd.h.
73140         (getlogin_r): New declaration, taken from old getlogin_r.h.
73141         (readlink): New declaration.
73142         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73143         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73144         (gl_PREREQ_UNISTD): Remove macro.
73145         (gl_UNISTD_MODULE_INDICATOR): New macro.
73146         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73147         many new variables. Don't set UNISTD_H.
73148         * modules/unistd (Description): Change.
73149         (Depends-on): Add link-warning.
73150         (configure.ac): Update.
73151         (Makefile.am): Create unistd.h always. Substitute many new variables
73152         into it.
73153
73154 2007-02-18  Bruno Haible  <bruno@clisp.org>
73155
73156         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73157         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73158         HAVE_GETSUBOPT.
73159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73160         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73161         * lib/getsubopt.h: Remove file.
73162         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73163         (Depends-on): Add stdlib.
73164         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73165         (Includes): Use <stdlib.h> instead of getsubopt.h.
73166         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73167         Set HAVE_GETSUBOPT.
73168         * lib/getsubopt.c: Don't include getsubopt.h.
73169
73170 2007-02-18  Bruno Haible  <bruno@clisp.org>
73171
73172         * modules/fchdir (Depends-on): Add dup2.
73173
73174 2007-02-18  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/stdlib_.h: Handle glibc's special invocation convention
73177         specially.
73178
73179 2007-02-18  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/stdlib-tests: New file.
73182         * tests/test-stdlib.c: New file.
73183
73184         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73185         (Depends-on): Add stdlib.
73186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73187         (Includes): Use <stdlib.h> instead of mkstemp.h.
73188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73189         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73190         * lib/mkstemp.c: Don't include mkstemp.h.
73191         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73192         * lib/stdlib--.h: Don't include mkstemp.h.
73193
73194         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73195         (Depends-on): Add stdlib.
73196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73197         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73198         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73199         HAVE_MKDTEMP.
73200         * lib/mkdtemp.c: Don't include mkdtemp.h.
73201         * lib/clean-temp.c: Don't include mkdtemp.h.
73202
73203         * modules/exit (Files): Remove lib/exit.h.
73204         (Depends-on): Add stdlib.
73205         (Makefile.am): Remove lib_SOURCES.
73206         (Include): Use <stdlib.h> instead of exit.h.
73207         * lib/argmatch.c: Don't include exit.h.
73208         * lib/execute.c: Likewise.
73209         * lib/pagealign_alloc.c: Likewise.
73210         * lib/pipe.c: Likewise.
73211         * lib/wait-process.c: Likewise.
73212         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73213         * lib/exitfail.c: Likewise.
73214         * lib/savewd.c: Likewise.
73215         * lib/xsetenv.c: Likewise.
73216
73217         * modules/stdlib: New file.
73218         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73219         and extra comments about mkstemp().
73220         * lib/exit.h: Remove file.
73221         * lib/mkdtemp.h: Remove file.
73222         * lib/mkstemp.h: Remove file.
73223         * m4/stdlib_h.m4: New file.
73224         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73225
73226 2007-02-18  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/math-tests: New file.
73229         * tests/test-math.c: New file.
73230
73231         * modules/math: New file.
73232         * modules/mathl (Files): Remove lib/mathl.h.
73233         (Depends-on): Add math.
73234         (Makefile.am): Don't mention mathl.h.
73235         (Include): Use <math.h> instead of mathl.h.
73236         * lib/math_.h: New file.
73237         * lib/mathl.h: Remove file.
73238         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73239         mathl.h.
73240         * lib/asinl.c: Likewise.
73241         * lib/atanl.c: Likewise.
73242         * lib/ceill.c: Likewise.
73243         * lib/cosl.c: Likewise.
73244         * lib/expl.c: Likewise.
73245         * lib/floorl.c: Likewise.
73246         * lib/frexpl.c: Likewise.
73247         * lib/ldexpl.c: Likewise.
73248         * lib/logl.c: Likewise.
73249         * lib/sincosl.c: Likewise.
73250         * lib/sinl.c: Likewise.
73251         * lib/sqrtl.c: Likewise.
73252         * lib/tanl.c: Likewise.
73253         * lib/trigl.c: Likewise.
73254         * m4/math_h.m4: New file.
73255         * MODULES.html.sh (Mathematics): Add math.
73256
73257 2007-02-17  Bruno Haible  <bruno@clisp.org>
73258
73259         * modules/wctype-tests: New file.
73260         * tests/test-wctype.c: New file.
73261
73262         * modules/wchar-tests: New file.
73263         * tests/test-wchar.c: New file.
73264
73265         * modules/unistd-tests: New file.
73266         * tests/test-unistd.c: New file.
73267
73268         * modules/time-tests: New file.
73269         * tests/test-time.c: New file.
73270
73271         * modules/sysexits-tests: New file.
73272         * tests/test-sysexits.c: New file.
73273
73274         * modules/sys_time-tests: New file.
73275         * tests/test-sys_time.c: New file.
73276
73277         * modules/sys_stat-tests: New file.
73278         * tests/test-sys_stat.c: New file.
73279
73280         * modules/sys_socket-tests: New file.
73281         * tests/test-sys_socket.c: New file.
73282
73283         * modules/sys_select-tests: New file.
73284         * tests/test-sys_select.c: New file.
73285
73286         * modules/string-tests: New file.
73287         * tests/test-string.c: New file.
73288
73289         * modules/stdbool-tests: New file.
73290         * tests/test-stdbool.c: New file.
73291
73292         * modules/netinet_in-tests: New file.
73293         * tests/test-netinet_in.c: New file.
73294
73295         * modules/inttypes-tests: New file.
73296         * tests/test-inttypes.c: New file.
73297
73298         * modules/fcntl-tests: New file.
73299         * tests/test-fcntl.c: New file.
73300
73301         * modules/byteswap-tests: New file.
73302         * tests/test-byteswap.c: New file.
73303
73304         * modules/arpa_inet-tests: New file.
73305         * tests/test-arpa_inet.c: New file.
73306
73307 2007-02-17  Bruno Haible  <bruno@clisp.org>
73308
73309         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73310         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73311         if the corresponding module is not enabled. Emit link warnings if
73312         the function is used nevertheless.
73313         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73314         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73315         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73316         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73317         * modules/inttypes (Depends-on): Add link-warning.
73318         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73319         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73320         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73321         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73322         * modules/imaxdiv (configure.ac): Likewise.
73323         * modules/strtoimax (configure.ac): Likewise.
73324         * modules/strtoumax (configure.ac): Likewise.
73325
73326 2007-02-17  Bruno Haible  <bruno@clisp.org>
73327
73328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73329         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73330         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73331         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73332
73333 2007-02-17  Bruno Haible  <bruno@clisp.org>
73334
73335         * modules/link-warning: New file.
73336         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73337         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73338         * modules/string (Depends-on): Add link-warning.
73339         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73340         string.h.
73341         * MODULES.html.sh (Support for building libraries and executables): Add
73342         link-warning.
73343
73344 2007-02-17  Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73347         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73348         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73349         long lines.
73350
73351 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73352             Bruno Haible  <bruno@clisp.org>
73353
73354         * modules/tmpfile: New file.
73355         * lib/tmpfile.c: New file.
73356         * m4/tmpfile.m4: New file.
73357         * MODULES.html.sh (func_all_modules): New section "Input/output".
73358
73359 2007-02-15  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73362         (supports_delete_on_close): New function.
73363         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73364
73365 2007-02-14  Bruno Haible  <bruno@clisp.org>
73366
73367         * modules/mbspcasecmp-tests: New file.
73368         * tests/test-mbspcasecmp.sh: New file.
73369         * tests/test-mbspcasecmp.c: New file.
73370
73371         New module mbspcasecmp.
73372         * modules/mbspcasecmp: New file.
73373         * lib/mbspcasecmp.c: New file.
73374         * lib/string_.h (strncasecmp): Change warning message.
73375         (mbspcasecmp): New declaration.
73376         * m4/mbspcasecmp.m4: New file.
73377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73378         GNULIB_MBSPCASECMP.
73379         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73380         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73381
73382 2007-02-14  Bruno Haible  <bruno@clisp.org>
73383
73384         * modules/mbsncasecmp-tests: New file.
73385         * tests/test-mbsncasecmp.sh: New file.
73386         * tests/test-mbsncasecmp.c: New file.
73387
73388         New module mbsncasecmp.
73389         * modules/mbsncasecmp: New file.
73390         * lib/mbsncasecmp.c: New file.
73391         * lib/string_.h (mbsncasecmp): New declaration.
73392         * m4/mbsncasecmp.m4: New file.
73393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73394         GNULIB_MBSNCASECMP.
73395         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73396         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73397
73398 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73401         Verify that it doesn't overlap with our flags.
73402         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73403         do not have the desired effect in multibyte locales; instead, use
73404         mbscasecmp.
73405         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73406         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73407         we don't require GNU fnmatch ourselves (if our users require it, they
73408         should do so explicitly).
73409
73410         Fix regex code so it doesn't rely on strcasecmp.
73411         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73412         Otherwise, include gnulib's langinfo.h.
73413         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73414         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73415         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73416         * modules/regex (FILES): Remove m4/codeset.m4.
73417         (Depends-on): Add localcharset.  Remove strcase.
73418
73419 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73420
73421         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73422         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73423
73424 2007-02-13  Bruno Haible  <bruno@clisp.org>
73425
73426         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73428
73429 2007-02-12  Bruno Haible  <bruno@clisp.org>
73430
73431         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73432         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73433         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73434         time warning rather than a link error.
73435
73436 2007-02-12  Bruno Haible  <bruno@clisp.org>
73437
73438         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73439         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73441
73442 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73445         args, not 2.
73446
73447 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         New module 'time', so that apps can include <time.h> as per
73450         POSIX and GNU instead of separate include files like time_r.h
73451         and timegm.h.  This implementation tries out a simpler approach
73452         for replacing decls in standard include files (as compared to
73453         the string module), somewhat as an experiment.
73454
73455         * config/srclist.txt: Comment out mktime.c for now.
73456         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73457         since it doesn't apply any more.  Use generic wording instead.
73458         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73459         'time'.
73460         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73461         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73462         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73463         Don't include <sys/types.h>; no longer needed since we assume C89.
73464         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73465         * lib/strftime.c: Likewise.
73466         * lib/time_r.c: Likewise.
73467         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73468         * lib/nanosleep.c: Include <time.h> first, to check interface.
73469         * lib/strptime.c: Likewise.
73470         * lib/time_r.c: Likewise.
73471         * lib/timegm.c: Likewise.
73472         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73473         needed.
73474         * lib/timegm.c: Don't include timegm.h; no longer needed.
73475         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73476         time.h now handles any problems in that area.
73477         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73478         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73479         that time.h defines struct timespec.
73480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73481         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73482         handles that.
73483         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73484         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73485         needed.  Set REPLACE_LOCALTIME.
73486         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73487         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73488         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73489         nanosleep; time_h.m4 now does that.  Don't require
73490         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73491         module handles this now.
73492         * modules/getdate (Depends-on): Remove timespec.  Add time.
73493         * modules/nanosleep (Depends-on): Likewise.
73494         * modules/stat-time (Depends-on): Likewise.
73495         * modules/nanosleep (Include): Include time.h, not timespec.h.
73496         * modules/strptime (Files): Remove lib/strptime.h.
73497         (Depends-on): Add extensions, time.
73498         (Include): Include time.h, not strptime.h.
73499         * modules/time_r (Files): Remove lib/time_r.h.
73500         (Depends-on): Add time.
73501         (Include): Include time.h, not time_r.h.
73502         * modules/timegm: Likewise.
73503         * modules/timespec (Description): Now does timespec-related decls
73504         of our own, instead of struct timespec itself.
73505         (Depends-on): Add time; remove extensions.
73506         (Maintainer): Add self.
73507         * modules/utimecmp (Depends-on): Add time; remove timespec.
73508         * modules/utimens (Depends-on): Likewise.
73509         * modules/xnanosleep (Depends-on): Likewise.
73510
73511 2007-02-11  Bruno Haible  <bruno@clisp.org>
73512
73513         * lib/c-strstr.c: Include allocsa.h.
73514         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73515         * lib/c-strcasestr.c: Include allocsa.h.
73516         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73517         * lib/strcasestr.c: Include allocsa.h.
73518         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73519         * lib/mbsstr.c: Include allocsa.h.
73520         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73521         allocsa/freesa instead of malloc/free.
73522         * lib/mbscasestr.c: Include allocsa.h.
73523         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73524         allocsa/freesa instead of malloc/free.
73525         * modules/c-strstr (Depends-on): Add allocsa.
73526         * modules/c-strcasestr (Depends-on): Likewise.
73527         * modules/strcasestr (Depends-on): Likewise.
73528         * modules/mbsstr (Depends-on): Likewise.
73529         * modules/mbscasestr (Depends-on): Likewise.
73530
73531 2007-02-11  Bruno Haible  <bruno@clisp.org>
73532
73533         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73534
73535         * modules/mbsspn-tests: New file.
73536         * tests/test-mbsspn.sh: New file.
73537         * tests/test-mbsspn.c: New file.
73538
73539 2007-02-11  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73542
73543         * modules/mbspbrk-tests: New file.
73544         * tests/test-mbspbrk.sh: New file.
73545         * tests/test-mbspbrk.c: New file.
73546
73547 2007-02-11  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73550         unneeded cast.
73551
73552         * modules/mbscspn-tests: New file.
73553         * tests/test-mbscspn.sh: New file.
73554         * tests/test-mbscspn.c: New file.
73555
73556 2007-02-11  Bruno Haible  <bruno@clisp.org>
73557
73558         * modules/mbscasecmp-tests: New file.
73559         * tests/test-mbscasecmp.sh: New file.
73560         * tests/test-mbscasecmp.c: New file.
73561
73562 2007-02-11  Bruno Haible  <bruno@clisp.org>
73563
73564         Ensure O(n) worst-case complexity of mbscasestr.
73565         * lib/mbscasestr.c: Include stdbool.h.
73566         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73567         functions.
73568         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73569         the bookkeeping indicates that it's worth it.
73570         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73571
73572         * modules/mbscasestr-tests: New file.
73573         * tests/test-mbscasestr1.c: New file.
73574         * tests/test-mbscasestr2.sh: New file.
73575         * tests/test-mbscasestr2.c: New file.
73576         * tests/test-mbscasestr3.sh: New file.
73577         * tests/test-mbscasestr3.c: New file.
73578         * tests/test-mbscasestr4.sh: New file.
73579         * tests/test-mbscasestr4.c: New file.
73580         * m4/locale-tr.m4: New file.
73581
73582 2007-02-11  Bruno Haible  <bruno@clisp.org>
73583
73584         Ensure O(n) worst-case complexity of mbsstr.
73585         * lib/mbsstr.c: Include stdbool.h.
73586         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73587         functions.
73588         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73589         bookkeeping indicates that it's worth it.
73590         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73591
73592         * modules/mbsstr-tests: New file.
73593         * tests/test-mbsstr1.c: New file.
73594         * tests/test-mbsstr2.sh: New file.
73595         * tests/test-mbsstr2.c: New file.
73596         * tests/test-mbsstr3.sh: New file.
73597         * tests/test-mbsstr3.c: New file.
73598         * m4/locale-fr.m4: New file.
73599
73600 2007-02-11  Bruno Haible  <bruno@clisp.org>
73601
73602         * lib/mbsrchr.c (mbsrchr): Fix bug.
73603
73604         * modules/mbsrchr-tests: New file.
73605         * tests/test-mbsrchr.sh: New file.
73606         * tests/test-mbsrchr.c: New file.
73607
73608 2007-02-11  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/mbschr.c (mbschr): Fix bug.
73611
73612         * modules/mbschr-tests: New file.
73613         * tests/test-mbschr.sh: New file.
73614         * tests/test-mbschr.c: New file.
73615         * m4/locale-zh.m4: New file.
73616
73617 2007-02-11  Bruno Haible  <bruno@clisp.org>
73618
73619         Support for copying multibyte string iterators.
73620         * lib/mbiter.h: Include <string.h>.
73621         (mbiter_multi_copy): New function.
73622         (mbi_copy): New macro.
73623         * lib/mbuiter.h: Include <string.h>.
73624         (mbuiter_multi_copy): New function.
73625         (mbui_copy): New macro.
73626
73627 2007-02-11  Bruno Haible  <bruno@clisp.org>
73628
73629         New module mbslen.
73630         * modules/mbslen: New file.
73631         * lib/mbslen.c: New file.
73632         * lib/string_.h (mbslen): New declaration.
73633         * m4/mbslen.m4: New file.
73634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73635         GNULIB_MBSLEN.
73636         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73637         * MODULES.html.sh (Internationalization functions): Add mbslen.
73638
73639 2007-02-11  Bruno Haible  <bruno@clisp.org>
73640
73641         Ensure O(n) worst-case complexity of strcasestr substitute.
73642         * lib/strcasestr.c: Include stdbool.h.
73643         (knuth_morris_pratt): New function.
73644         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73645         bookkeeping indicates that it's worth it.
73646         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73647
73648         * modules/strcasestr-tests: New file.
73649         * tests/test-strcasestr.c: New file.
73650
73651 2007-02-11  Bruno Haible  <bruno@clisp.org>
73652
73653         Ensure O(n) worst-case complexity of c_strcasestr.
73654         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73655         (knuth_morris_pratt): New function.
73656         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73657         the bookkeeping indicates that it's worth it.
73658         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73659
73660         * modules/c-strcasestr-tests: New file.
73661         * tests/test-c-strcasestr.c: New file.
73662
73663 2007-02-11  Bruno Haible  <bruno@clisp.org>
73664
73665         Ensure O(n) worst-case complexity of c_strstr.
73666         * lib/c-strstr.c: Include stdbool.h, string.h.
73667         (knuth_morris_pratt): New function.
73668         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73669         bookkeeping indicates that it's worth it.
73670         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73671
73672         * lib/c-strstr.c: Complete rewrite for maintainability.
73673
73674         * modules/c-strstr-tests: New file.
73675         * tests/test-c-strstr.c: New file.
73676
73677 2007-02-11  Bruno Haible  <bruno@clisp.org>
73678
73679         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73680         5.2.1 and earlier, whereby \055 was treated just like the range
73681         delimiter '-'.
73682         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73683
73684 2007-02-08  Bruno Haible  <bruno@clisp.org>
73685
73686         * modules/regex (Depends-on): Add stdbool.
73687         Reported by Dalibor Topic <robilad@kaffe.org>.
73688
73689 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73692         Prefer returning from main to exiting from it.
73693         Remove unnecessary parens after sizeof.
73694
73695 2007-02-05  Bruno Haible  <bruno@clisp.org>
73696
73697         New module mbssep.
73698         * modules/mbssep: New file.
73699         * lib/mbssep.c: New file.
73700         * lib/string_.h (strsep): Add a conditional link warning.
73701         (mbssep): New declaration.
73702         * m4/mbssep.m4: New file.
73703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73704         GNULIB_MBSSEP.
73705         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73706         * MODULES.html.sh (Internationalization functions): Add mbssep.
73707
73708 2007-02-05  Bruno Haible  <bruno@clisp.org>
73709
73710         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73711         Optimize search in case of 1 delimiter.
73712
73713 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73714
73715         * lib/acl.h: Include sys/types.h before sys/acl.h.
73716
73717 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73718
73719         Merge upstream fix for glibc bugzilla #3957:
73720
73721         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73722
73723         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73724         bit for RE_HAT_LISTS_NOT_NEWLINE.
73725         (build_charclass_op): Remove bogus comment.
73726
73727 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73728
73729         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73730
73731 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73734         * lib/memmem.c [!defined _LIBC]: Include config.h.
73735
73736 2007-02-04  Bruno Haible  <bruno@clisp.org>
73737
73738         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73739         warning message.
73740
73741 2007-02-04  Bruno Haible  <bruno@clisp.org>
73742
73743         New module mbstok_r.
73744         * modules/mbstok_r: New file.
73745         * lib/mbstok_r.c: New file.
73746         * lib/string_.h (strtok_r): Change argument names to match the
73747         comments. Add a conditional link warning.
73748         (mbstok_r): New declaration.
73749         * m4/mbstok_r.m4: New file.
73750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73751         GNULIB_MBSTOK_R.
73752         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73753         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73754
73755 2007-02-04  Bruno Haible  <bruno@clisp.org>
73756
73757         New module mbsspn.
73758         * modules/mbsspn: New file.
73759         * lib/mbsspn.c: New file.
73760         * lib/string_.h (strspn): Add a conditional link warning.
73761         (mbsspn): New declaration.
73762         * m4/mbsspn.m4: New file.
73763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73764         GNULIB_MBSSPN.
73765         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73766         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73767
73768 2007-02-04  Bruno Haible  <bruno@clisp.org>
73769
73770         New module mbspbrk.
73771         * modules/mbspbrk: New file.
73772         * lib/mbspbrk.c: New file.
73773         * lib/string_.h (strpbrk): Add a conditional link warning.
73774         (mbspbrk): New declaration.
73775         * m4/mbspbrk.m4: New file.
73776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73777         GNULIB_MBSPBRK.
73778         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73779         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73780
73781 2007-02-04  Bruno Haible  <bruno@clisp.org>
73782
73783         New module mbscspn.
73784         * modules/mbscspn: New file.
73785         * lib/mbscspn.c: New file.
73786         * lib/string_.h (strcspn): Add a conditional link warning.
73787         (mbscspn): New declaration.
73788         * m4/mbscspn.m4: New file.
73789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73790         GNULIB_MBSCSPN.
73791         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73792         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73793
73794 2007-02-04  Bruno Haible  <bruno@clisp.org>
73795
73796         New module mbscasestr, reduced goal of strcasestr.
73797         * modules/mbscasestr: New file.
73798         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73799         (mbscasestr): Renamed from strcasestr.
73800         * lib/strcasestr.c: Don't include mbuiter.h.
73801         (strcasestr): Remove support for multibyte locales.
73802         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73803         Change the conditional link warning.
73804         (mbscasestr): New declaration.
73805         * m4/mbscasestr.m4: New file.
73806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73807         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73808         REPLACE_STRCASESTR.
73809         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73811         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73812         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73813         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73814         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73815         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73816         (Depends-on): Remove mbuiter.
73817         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73818
73819 2007-02-04  Bruno Haible  <bruno@clisp.org>
73820
73821         Simplify handling of strncasecmp.
73822         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73823         the conditional link warning.
73824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73825         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73826         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73827         * modules/strcase (configure.ac): Don't invoke
73828         gl_STRING_MODULE_INDICATOR.
73829         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73830
73831 2007-02-04  Bruno Haible  <bruno@clisp.org>
73832
73833         New module mbscasecmp, reduced goal of strcasecmp.
73834         * modules/mbscasecmp: New file.
73835         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73836         (mbscasecmp): Renamed from strcasecmp.
73837         * lib/strcasecmp.c: Don't include mbuiter.h.
73838         (strcasecmp): Remove support for multibyte locales.
73839         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73840         Change the conditional link warning.
73841         (mbscasecmp): New declaration.
73842         * m4/mbscasecmp.m4: New file.
73843         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73844         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73845         REPLACE_STRCASECMP.
73846         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73848         GNULIB_MBSCASECMP.
73849         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73850         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73851         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73852         (Depends-on): Remove mbuiter.
73853         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73854
73855 2007-02-04  Bruno Haible  <bruno@clisp.org>
73856
73857         New module mbsstr. Remove module strstr.
73858         * modules/mbsstr: New file.
73859         * modules/strstr: Remove file.
73860         * lib/mbsstr.c: Renamed from lib/strstr.c.
73861         (mbsstr): Renamed from strstr.
73862         * lib/string_.h (strstr): Remove declaration. Change the conditional
73863         link warning.
73864         (mbsstr): New declaration.
73865         * m4/mbsstr.m4: New file.
73866         * m4/strstr.m4: Remove file.
73867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73868         REPLACE_STRSTR.
73869         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73870         Don't initialize GNULIB_STRSTR.
73871         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73872         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73873         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73874         (Support for systems lacking ANSI C 89): Remove strstr.
73875
73876 2007-02-04  Bruno Haible  <bruno@clisp.org>
73877
73878         New module mbsrchr.
73879         * modules/mbsrchr: New file.
73880         * lib/mbsrchr.c: New file.
73881         * lib/string_.h (strrchr): Add a conditional link warning.
73882         (mbsrchr): New declaration.
73883         * m4/mbsrchr.m4: New file.
73884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73885         GNULIB_MBSRCHR.
73886         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73887         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73888
73889 2007-02-04  Bruno Haible  <bruno@clisp.org>
73890
73891         New module mbschr.
73892         * modules/mbschr: New file.
73893         * lib/mbschr.c: New file.
73894         * lib/string_.h (strchr): Add a conditional link warning.
73895         (mbschr): New declaration.
73896         * m4/mbschr.m4: New file.
73897         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73898         GNULIB_MBSCHR.
73899         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73900         * MODULES.html.sh (Internationalization functions): Add mbschr.
73901
73902 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73903
73904         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73905
73906         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73907
73908 2007-02-04  Bruno Haible  <bruno@clisp.org>
73909
73910         New module description section 'configure.ac-early'.
73911         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73912         (func_get_autoconf_early_snippet): New function.
73913         (func_import, func_create_testdir): Use it. Remove special cases for
73914         modules 'extensions' and 'lock'.
73915         * modules/extensions (configure.ac-early): Require
73916         gl_USE_SYSTEM_EXTENSIONS.
73917         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73918
73919 2007-02-04  Bruno Haible  <bruno@clisp.org>
73920
73921         Make use of gcj-4.3's -fsource and -ftarget option.
73922         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73923         and if so try the options -fsource and -ftarget.
73924         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73925         source_version, ftarget_option, target_version arguments.
73926         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73927         (is_envjavac_oldgcj_14_14_usable): Renamed from
73928         is_envjavac_gcj_14_14_usable.
73929         (is_envjavac_oldgcj_14_13_usable): Renamed from
73930         is_envjavac_gcj_14_13_usable.
73931         (is_gcj_present): Update.
73932         (is_gcj_43, is_gcj43_usable): New functions.
73933         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73934         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73935         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73936         try the options -fsource and -ftarget.
73937
73938 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73941         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73942         larger value.
73943
73944 2007-02-03  Jim Meyering  <jim@meyering.net>
73945
73946         Give tools a better chance to allocate space for very large buffers.
73947         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73948
73949         Make pwd and readlink work also when run with an unreadable parent dir
73950         on systems with openat support.
73951         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73952         provided getcwd function, even when we have openat support.
73953         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73954
73955 2007-02-02  Bruno Haible  <bruno@clisp.org>
73956
73957         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73958         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73959         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73960         portability problems if one of these functions is only used on specific
73961         platforms.
73962         Reported by Paul Eggert.
73963
73964 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73967         is causing more trouble than it's curing.
73968         * lib/regex_internal.h (__mempcpy): Remove.
73969         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73970         (and make the code a tad smaller to boot).
73971         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73972
73973 2007-02-02  Jim Meyering  <jim@meyering.net>
73974
73975         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73976         section, not in the Makefile.am: one.
73977
73978 2007-02-02  Eric Blake  <ebb9@byu.net>
73979
73980         * lib/strchrnul.c: Always include config.h first.
73981
73982         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73983         gnulib strstr is not necessary here.
73984
73985 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73986
73987         * m4/socklen.m4: Fix typo.
73988
73989 2007-02-02  Eric Blake  <ebb9@byu.net>
73990
73991         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73992         * modules/netinet_in (Makefile.am): Likewise.
73993
73994 2007-02-01  Bruno Haible  <bruno@clisp.org>
73995
73996         * lib/string_.h (GL_LINK_WARNING): New macro.
73997         (strcasecmp, strstr, strcasestr): If provided by the system,
73998         conditionally define as a macro that leads to a warning instead of to
73999         an error.
74000         (strncasecmp): Conditionally define as a macro that leads to a warning.
74001
74002 2007-02-01  Karl Berry  <karl@gnu.org>
74003
74004         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74005
74006 2007-02-01  Bruno Haible  <bruno@clisp.org>
74007
74008         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74009         renamings.
74010
74011 2007-02-01  Eric Blake  <ebb9@byu.net>
74012
74013         * modules/regex (Depends-on): Revert dependence on mempcpy.
74014         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74015         module's definition of mempcpy.
74016         Reported by Paul Eggert.
74017
74018 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74021         the symbol XYZ before redefining it.  This fixes a problem with
74022         programs that don't use XYZ, when compiled on systems that define
74023         XYZ to something else.
74024
74025 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74028         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74029         writeable to group or other and (2) is intended to have a special
74030         mode bit that is set or cleared.  In such a case, the directory
74031         should be neither group- nor other-writeable until the special
74032         mode bits are right.
74033
74034 2007-01-31  Eric Blake  <ebb9@byu.net>
74035
74036         * modules/mountlist (Depends-on): Add strstr.
74037
74038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74039         bug.
74040         * modules/string (Makefile.am): Remove redundant replacement.
74041         * modules/regex (Depends-on): Add mempcpy.
74042
74043 2007-01-31  Bruno Haible  <bruno@clisp.org>
74044
74045         New module description field 'Link'.
74046         * gnulib-tool (func_usage): Document --extract-link-directive.
74047         (sed_extract_prog): Recognize 'Link' directive.
74048         (func_get_link_directive): New function.
74049         (func_import): Show summary of link directives.
74050         Handle --extract-link-directive option.
74051         * modules/acl (Link): New section.
74052         * modules/clock-time (Link): New section.
74053         * modules/euidaccess (Link): New section.
74054         * modules/gettext (Link): New section.
74055         * modules/iconv (Link): New section.
74056         * modules/lock (Link): New section.
74057         * modules/nanosleep (Link): New section.
74058         * modules/readline (Link): New section.
74059
74060 2007-01-27  Bruno Haible  <bruno@clisp.org>
74061
74062         Enforce the use of gnulib modules for unportable <string.h> functions.
74063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74065         (gl_HEADER_STRING_H_BODY): Require it.
74066         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74067         the symbol XYZ to one that gives a link error.
74068         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74069         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74070         * modules/mempcpy (configure.ac): Likewise.
74071         * modules/memrchr (configure.ac): Likewise.
74072         * modules/stpcpy (configure.ac): Likewise.
74073         * modules/stpncpy (configure.ac): Likewise.
74074         * modules/strcase (configure.ac): Likewise.
74075         * modules/strcasestr (configure.ac): Likewise.
74076         * modules/strchrnul (configure.ac): Likewise.
74077         * modules/strdup (configure.ac): Likewise.
74078         * modules/strndup (configure.ac): Likewise.
74079         * modules/strnlen (configure.ac): Likewise.
74080         * modules/strpbrk (configure.ac): Likewise.
74081         * modules/strsep (configure.ac): Likewise.
74082         * modules/strstr (configure.ac): Likewise.
74083         * modules/strtok_r (configure.ac): Likewise.
74084
74085 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74086
74087         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74088
74089 2007-01-30  Jim Meyering  <jim@meyering.net>
74090
74091         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74092
74093 2007-01-29  Bruno Haible  <bruno@clisp.org>
74094
74095         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74096         * lib/execute.c: Likewise.
74097         * lib/pipe.c: Likewise.
74098         * lib/printf-args.h: Likewise.
74099         * lib/printf-args.c: Likewise.
74100         * lib/printf-parse.c: Likewise.
74101         * lib/vasnprintf.c: Likewise.
74102
74103 2007-01-29  Eric Blake  <ebb9@byu.net>
74104
74105         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74106         declaration.
74107
74108 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * lib/strptime.h (strptime): Use 'restrict' for args where
74111         POSIX requires this.
74112         * lib/strptime.c (strptime): Likewise.
74113         Change license notice from LGPL to GPL, since gnulib-tool will
74114         change this as needed.
74115         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74116         defined.
74117         Include "strptime.h" first, to check interface.
74118         Do not #undef _LIBC and _NL_CURRENT.
74119         Do not include <stdlib.h>; no longer needed.
74120         Include "time_r.h" and declare ptime_locale_status
74121         only if _LIBC is not defined.
74122         (__P): Remove unused macro.
74123         (match_string): Bring back glibc version, but use it only if _LIBC
74124         is defined.
74125         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74126         Remove unnecessary assertion and abort() call.
74127         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74128         * m4/strptime.m4: Fix serial number comment.
74129         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74130         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74131         (Depends-on): Add time_r.
74132
74133 2007-01-29  Bruno Haible  <bruno@clisp.org>
74134
74135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74136         strptime.
74137         * modules/strptime (Depends-on): Add stdbool.
74138         * lib/strptime.h: Include <time.h> always. Add comments.
74139
74140 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74141
74142         * modules/strptime: New file.
74143         * lib/strptime.h: New file.
74144         * lib/strptime.c: New file.
74145         * m4/strptime.m4: New file.
74146
74147 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         * MODULES.html.sh: New module mpsort.
74150         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74151
74152         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74153         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74155         All uses changed.
74156         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74157         All uses changed.
74158         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74159         to _Restrict_.
74160         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74161         the parameter matches the prototype.
74162
74163 2007-01-28  Jim Meyering  <jim@meyering.net>
74164
74165         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74166         sys/time.h here, reverting that part of the previous patch:
74167         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74168
74169 2007-01-28  Bruno Haible  <bruno@clisp.org>
74170
74171         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74172         value of $(SYS_TIME_H).
74173         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74174         remove it conditionally, too. [added by Jim Meyering]
74175         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74176         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74177         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74178         GETTIMEOFDAY_REPLACEMENT to 1.
74179
74180 2007-01-28  Bruno Haible  <bruno@clisp.org>
74181
74182         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74183         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74185         Set UNISTD_H instead of UNISTD_H2.
74186         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74187
74188 2007-01-28  Bruno Haible  <bruno@clisp.org>
74189
74190         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74191         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74192
74193 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74194
74195         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74196         (func_create_testdir): Ensure C locale for `grep' and `tr'
74197         character ranges.
74198         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74199         ACLOCAL_AMFLAGS parsing state machine.
74200
74201 2007-01-27  Bruno Haible  <bruno@clisp.org>
74202
74203         * modules/unistr/base: Update.
74204
74205 2007-01-27  Bruno Haible  <bruno@clisp.org>
74206
74207         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74208         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74209         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74210         modules/unistr/u32-mbtouc.
74211         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74212         * lib/unistr.h: Update.
74213         * lib/linebreak.c: Update.
74214         * modules/unistr/u32-mbtouc: Renamed from
74215         modules/unistr/u32-mbtouc-safe.
74216         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74217         * lib/unistr.h: Update.
74218         * lib/unistr/u32-to-u8.c: Update.
74219         * lib/unistr/u32-to-u16.c: Update.
74220
74221 2007-01-27  Bruno Haible  <bruno@clisp.org>
74222
74223         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74224         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74225         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74226         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74227         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74228         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74229         modules/unistr/u16-mbtouc.
74230         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74231         * lib/unistr.h: Update.
74232         * lib/linebreak.c: Update.
74233         * modules/linebreak: Update.
74234         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74235         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74236         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74237         * modules/unistr/u16-mbtouc: Renamed from
74238         modules/unistr/u16-mbtouc-safe.
74239         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74240         * lib/unistr.h: Update.
74241         * lib/unistr/u16-to-u8.c: Update.
74242         * modules/unistr/u16-to-u8: Update.
74243         * lib/unistr/u16-to-u32.c: Update.
74244         * modules/unistr/u16-to-u32: Update.
74245
74246 2007-01-27  Bruno Haible  <bruno@clisp.org>
74247
74248         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74249         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74250         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74251         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74252         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74253         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74254         modules/unistr/u8-mbtouc.
74255         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74256         * lib/unistr.h: Update.
74257         * lib/striconveh.c: Update.
74258         * modules/striconveh: Update.
74259         * lib/linebreak.c: Update.
74260         * modules/linebreak: Update.
74261         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74262         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74263         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74264         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74265         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74266         * lib/unistr.h: Update.
74267         * lib/striconveh.c: Update.
74268         * modules/striconveh: Update.
74269         * lib/unistr/u8-to-u16.c: Update.
74270         * modules/unistr/u8-to-u16: Update.
74271         * lib/unistr/u8-to-u32.c: Update.
74272         * modules/unistr/u8-to-u32: Update.
74273
74274 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74275
74276         Sync from Libtool.
74277         * lib/argz.c: Do not include strings.h nor memory.h, include
74278         string.h unconditionally.  Patch by Simon Josefsson.
74279
74280 2007-01-27  Bruno Haible  <bruno@clisp.org>
74281
74282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74283         from gl_HEADER_STRING_H_BODY.
74284         (gl_HEADER_STRING_H_BODY): Require it.
74285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74286         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74287         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74288         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74289         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74290         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74292         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74293         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74295         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74296         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74297         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74298         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74299         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74300
74301 2007-01-27  Bruno Haible  <bruno@clisp.org>
74302
74303         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74304         check_PROGRAMS into noinst_PROGRAMS.
74305         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74306         check_PROGRAMS in this case.
74307         (func_import): Set for_test to false.
74308         (func_create_testdir): Set for_test to true.
74309
74310 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74311             Bruno Haible  <bruno@clisp.org>
74312
74313         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74314         (Depends-on): Add string.
74315         (Includes): Use <string.h> instead of strcasestr.h.
74316         * modules/string (Makefile.am): Also substitute the value of
74317         REPLACE_STRCASESTR.
74318         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74319         assume strcasestr is declared in <string.h> not <strings.h>. Also
74320         set REPLACE_STRCASESTR.
74321         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74322         REPLACE_STRCASESTR.
74323         * lib/strcasestr.h: Remove file.
74324         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74325         * lib/string_.h (strcasestr): New declaration.
74326
74327 2007-01-27  Bruno Haible  <bruno@clisp.org>
74328
74329         * lib/string_.h: Use 'extern'.
74330
74331 2007-01-27  Jim Meyering  <jim@meyering.net>
74332
74333         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74334         of set-but-not-used local, "q".
74335
74336         * lib/mempcpy.c: Include <config.h> before <string.h>.
74337         This fixes a compilation error on HP-UX, due to the system's
74338         "restrict"-using mempcpy prototype.
74339
74340 2007-01-26  Bruno Haible  <bruno@clisp.org>
74341
74342         Small optimization.
74343         * lib/javacomp.c: Include c-strstr.h.
74344          (is_envjavac_gcj): Use c_strstr instead of strstr.
74345         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74346
74347 2007-01-26  Bruno Haible  <bruno@clisp.org>
74348
74349         * MODULES.html.sh (Unicode string functions): Add the new modules.
74350
74351         * modules/uniconv/u32-strconv-to-locale: New file.
74352         * lib/uniconv/u32-strconv-to-locale.c: New file.
74353
74354         * modules/uniconv/u16-strconv-to-locale: New file.
74355         * lib/uniconv/u16-strconv-to-locale.c: New file.
74356
74357         * modules/uniconv/u8-strconv-to-locale: New file.
74358         * lib/uniconv/u8-strconv-to-locale.c: New file.
74359
74360         * modules/uniconv/u32-strconv-from-locale: New file.
74361         * lib/uniconv/u32-strconv-from-locale.c: New file.
74362
74363         * modules/uniconv/u16-strconv-from-locale: New file.
74364         * lib/uniconv/u16-strconv-from-locale.c: New file.
74365
74366         * modules/uniconv/u8-strconv-from-locale: New file.
74367         * lib/uniconv/u8-strconv-from-locale.c: New file.
74368
74369         * modules/uniconv/u32-strconv-to-enc: New file.
74370         * lib/uniconv/u32-strconv-to-enc.c: New file.
74371         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74372         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74373
74374         * modules/uniconv/u16-strconv-to-enc: New file.
74375         * lib/uniconv/u16-strconv-to-enc.c: New file.
74376         * lib/uniconv/u-strconv-to-enc.h: New file.
74377         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74378         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74379
74380         * modules/uniconv/u8-strconv-to-enc: New file.
74381         * lib/uniconv/u8-strconv-to-enc.c: New file.
74382         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74383         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74384
74385         * modules/uniconv/u32-strconv-from-enc: New file.
74386         * lib/uniconv/u32-strconv-from-enc.c: New file.
74387         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74388         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74389
74390         * modules/uniconv/u16-strconv-from-enc: New file.
74391         * lib/uniconv/u16-strconv-from-enc.c: New file.
74392         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74393         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74394
74395         * modules/uniconv/u8-strconv-from-enc: New file.
74396         * lib/uniconv/u8-strconv-from-enc.c: New file.
74397         * lib/uniconv/u-strconv-from-enc.h: New file.
74398         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74399         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74400
74401         * modules/uniconv/u32-conv-from-enc: New file.
74402         * lib/uniconv/u32-conv-from-enc.c: New file.
74403         * modules/uniconv/u32-conv-from-enc-tests: New file.
74404         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74405
74406         * modules/uniconv/u16-conv-from-enc: New file.
74407         * lib/uniconv/u16-conv-from-enc.c: New file.
74408         * lib/uniconv/u-conv-from-enc.h: New file.
74409         * modules/uniconv/u16-conv-from-enc-tests: New file.
74410         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74411
74412         * modules/uniconv/u8-conv-from-enc: New file.
74413         * lib/uniconv/u8-conv-from-enc.c: New file.
74414         * modules/uniconv/u8-conv-from-enc-tests: New file.
74415         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74416
74417         * modules/uniconv/base: New file.
74418         * lib/uniconv.h: New file.
74419
74420 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * doc/gnulib-tool.texi (Initial import): Update to match current
74423         behavior with strdup module.
74424         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74425         * lib/memmem.h: Remove; all uses removed.  This is now done
74426         by <string.h>.
74427         * lib/mempcpy.h: Likewise.
74428         * lib/memrchr.h: Likewise.
74429         * lib/stpcpy.h: Likewise.
74430         * lib/stpncpy.h: Likewise.
74431         * lib/strcase.h: Likewise.
74432         * lib/strchrnul.h: Likewise.
74433         * lib/strdup.h: Likewise.
74434         * lib/strndup.h: Likewise.
74435         * lib/strnlen.h: Likewise.
74436         * lib/strpbrk.h: Likewise.
74437         * lib/strsep.h: Likewise.
74438         * lib/strstr.h: Likewise.
74439         * lib/strtok_r.h: Likewise.
74440         * lib/string_.h: New file.
74441         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74442         Rely on <string.h> instead.
74443         * lib/canon-host.c: Likewise.
74444         * lib/chdir-long.c: Likewise.
74445         * lib/concatpath.c: Likewise.
74446         * lib/exclude.c: Likewise.
74447         * lib/fchdir.c: Likewise.
74448         * lib/getaddrinfo.c: Likewise.
74449         * lib/getcwd.c: Likewise.
74450         * lib/getsubopt.c: Likewise.
74451         * lib/glob.c: Likewise.
74452         * lib/hard-locale.c: Likewise.
74453         * lib/iconvme.c: Likewise.
74454         * lib/javacomp.c: Likewise.
74455         * lib/mempcpy.c: Likewise.
74456         * lib/memrchr.c: Likewise.
74457         * lib/regex_internal.h: Likewise.
74458         * lib/stpncpy.c: Likewise.
74459         * lib/strcasecmp.c: Likewise.
74460         * lib/strchrnul.c: Likewise.
74461         * lib/strdup.c: Likewise.
74462         * lib/striconv.c: Likewise.
74463         * lib/striconveh.c: Likewise.
74464         * lib/striconveha.c: Likewise.
74465         * lib/strncasecmp.c: Likewise.
74466         * lib/strndup.c: Likewise.
74467         * lib/strnlen.c: Likewise.
74468         * lib/strsep.c: Likewise.
74469         * lib/strstr.c: Likewise.
74470         * lib/strtok_r.c: Likewise.
74471         * lib/userspec.c: Likewise.
74472         * lib/w32spawn.h: Likewise.
74473         * lib/xstrndup.c: Likewise.
74474         * lib/mountlist.c (strstr): Remove decl.
74475         * m4/string_h.m4: New file.
74476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74477         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74478         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74479         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74480         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74481         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74482         Set REPLACE_STRCASECMP if necessary.
74483         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74484         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74485         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74486         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74487         HAVE_DECL_STRDUP if necessary.
74488         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74489         since gl_FUNC_STRNDUP does that now.
74490         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74491         Check for decl here...
74492         (gl_PREREQ_STRNLEN): ... not here.
74493         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74494         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74495         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74497         necessary.
74498         * modules/string: New file.
74499         * modules/memmem (Files): Remove special-purpose include file.
74500         (Depends-on): Add string.
74501         (Include): Include <string.h>, not the removed file.
74502         * modules/mempcpy: Likewise.
74503         * modules/memrchr: Likewise.
74504         * modules/stpcpy: Likewise.
74505         * modules/stpncpy: Likewise.
74506         * modules/strcase: Likewise.
74507         * modules/strchrnul: Likewise.
74508         * modules/strdup: Likewise.
74509         * modules/strndup: Likewise.
74510         * modules/strnlen: Likewise.
74511         * modules/strpbrk: Likewise.
74512         * modules/strsep: Likewise.
74513         * modules/strstr: Likewise.
74514         * modules/strtok_r: Likewise.
74515         * tests/test-dirname.c: Don't include "strdup.h", since
74516         <string.h> now suffices.
74517         * tests/test-memmem.c: Don't include "memmem.h", since
74518         <string.h> now suffices.
74519
74520 2007-01-25  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74523         *resultp is 0.
74524
74525         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74526         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74527         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74528         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74529
74530         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74531         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74532         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74533         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74534         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74535         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74536
74537 2007-01-24  Bruno Haible  <bruno@clisp.org>
74538
74539         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74541         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74542         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74543         gl_FUNC_FTS_CORE.
74544         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74545         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74546         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74547         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74548         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74549         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74550         gl_FUNC_FCHOWNAT.
74551         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74552         gl_FUNC_STRFTIME.
74553         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74554         Reported by Ralf Wildenhues.
74555
74556 2007-01-24  Bruno Haible  <bruno@clisp.org>
74557
74558         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74559         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74560         gl_GETADDRINFO.
74561         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74562         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74563         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74564
74565 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74568         Don't use 'exit'; just return from 'main'.
74569         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74570
74571         * lib/fnmatch_.h: Readjust white space and comments to match
74572         glibc, to avoid spurious diffs.
74573
74574 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74577         2004-12-01 change by Jakub Jelinek, since this code won't compile
74578         if !LIBC.  Problem reported by Bob Proulx.
74579
74580 2007-01-23  Bruno Haible  <bruno@clisp.org>
74581
74582         * lib/striconveh.c: Include c-strcaseeq.h.
74583         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74584         * modules/striconveh (Depends-on): Add c-strcaseeq.
74585
74586 2007-01-23  Bruno Haible  <bruno@clisp.org>
74587
74588         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74589
74590         * modules/c-strcaseeq: New file.
74591         * lib/c-strcaseeq.h: New file.
74592
74593         * modules/streq: New file.
74594         * lib/streq.h: New file.
74595
74596 2007-01-23  Bruno Haible  <bruno@clisp.org>
74597
74598         * modules/striconveha-tests: New file.
74599         * tests/test-striconveha.c: New file.
74600
74601         * lib/striconveha.h: Include <stdbool.h>.
74602         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74603         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74604         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74605         (mem_iconveha): New function.
74606         (str_iconveha_notranslit): Renamed from str_iconveha.
74607         (str_iconveha): New function.
74608         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74609         c-strcase.
74610
74611 2007-01-23  Bruno Haible  <bruno@clisp.org>
74612
74613         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74614         encodings without forgiving before trying any encoding with handler.
74615         (str_iconveha): Try all encodings without forgiving before trying any
74616         encoding with handler.
74617
74618 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         Import the following changes from libc.
74621
74622         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74623
74624         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74625
74626         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74627
74628         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74629         normal_bracket label.
74630
74631         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74632
74633         [BZ #361]
74634         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74635         to normal_bracket after fetching the next character.
74636
74637 2007-01-22  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74640         argument.
74641         * lib/striconveh.c (iconv_carefully_1): New function.
74642         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74643         argument.
74644         (str_cd_iconveh): Update.
74645         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74646         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74647         * tests/test-striconveh.c (MAGIC): New macro.
74648         (new_offsets): New function.
74649         (main): Test call with and without offsets.
74650
74651 2007-01-22  Bruno Haible  <bruno@clisp.org>
74652
74653         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74654         * modules/sys_select (Makefile.am): Likewise.
74655         * modules/sys_socket (Makefile.am): Likewise.
74656         * modules/sys_time (Makefile.am): Likewise.
74657
74658 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * modules/gettimeofday (License): Change from GPL to LGPL, since
74661         gettimeofday is a library function.
74662
74663 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74664
74665         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74666
74667 2007-01-21  Bruno Haible  <bruno@clisp.org>
74668
74669         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74670
74671 2007-01-21  Bruno Haible  <bruno@clisp.org>
74672
74673         * modules/striconveha: New file.
74674         * lib/striconveha.h: New file.
74675         * lib/striconveha.c: New file.
74676         * MODULES.html.sh (Internationalization functions): Add striconveha.
74677         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74678         string.
74679         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74680
74681 2007-01-21  Bruno Haible  <bruno@clisp.org>
74682
74683         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74684         * lib/striconveh.c (str_iconveh): Likewise.
74685
74686 2007-01-21  Bruno Haible  <bruno@clisp.org>
74687
74688         * lib/striconveh.h (mem_iconveh): New declaration.
74689         * lib/striconveh.c (mem_iconveh): New function.
74690         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74691
74692 2007-01-21  Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74695
74696         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74697         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74698         original result buffer.
74699         (str_cd_iconveh): Update.
74700         * tests/test-striconveh.c (main): Update.
74701
74702         * lib/striconv.h (mem_cd_iconv): Change specification.
74703         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74704         result buffer.
74705         (str_cd_iconv): Update.
74706         * tests/test-striconv.c (main): Update.
74707
74708 2007-01-21  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74711
74712 2007-01-20  Jim Meyering  <jim@meyering.net>
74713
74714         * lib/userspec.c (parse_with_separator): If a user or group string
74715         starts with "+", skip the corresponding name-to-ID look-up, since
74716         such a look-up must fail: user and group names may not include "+".
74717
74718 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74721         since we now assume the sys_time module.
74722         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74723         check for sys/time.h; no longer needed.
74724         * modules/poll (Depends-on): Depend on sys_time.
74725
74726 2007-01-18  Bruno Haible  <bruno@clisp.org>
74727
74728         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74729         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74730
74731         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74732         gettimeofday.
74733
74734         * tests/test-gettimeofday.c: Include <time.h>.
74735         (dummy): Remove variable.
74736
74737         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74738         gl_HEADER_SYS_TIME_H.
74739         (gl_HEADER_SYS_TIME_H): New macro.
74740
74741         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74742         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74744         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74745         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74747         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74748         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74749         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74750         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74751         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74752
74753         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74754         last change; it caused a compilation error when cross-compiling to
74755         Cygwin.
74756
74757 2007-01-18  Jim Meyering  <jim@meyering.net>
74758
74759         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74760         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74761         than the race-prone "test -d sys || mkdir sys".
74762         (configure.ac): Use AC_PROG_MKDIR_P.
74763         * modules/sys_select: Likewise.
74764         * modules/sys_socket: Likewise.
74765         * modules/sys_time: Likewise.
74766
74767 2007-01-18  Eric Blake  <ebb9@byu.net>
74768
74769         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74770         replace gettimeofday.
74771         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74772         name, to avoid infinite recursion.
74773
74774 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74777         module sys_time.
74778         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74779         assume timespec.h defines struct timeval.
74780         * lib/settime.c: Likewise.
74781         * lib/utimens.c: Likewise.
74782         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74783         since we now assume the gettimeofday module.
74784         * lib/tempname.c (__gen_tempname): Likewise.
74785         * lib/gettimeofday.h: Remove.
74786         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74787         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74788         Include <time.h>, for 'time()'.
74789         (localtime_buffer_addr): Also use this workaround if
74790         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74791         to simplify the uses.  All uses changed.
74792         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74793         that #undef is inside {}, and 'const' follows type name consistently.
74794         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74795         (gettimeofday): Do not use the maximum possible value for
74796         tv->tv_usec, since that might break usages other than ls.c.
74797         Instead, we'll leave ls.c alone.  This undoes today's patch
74798         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74799         we've never observed the problem but might as well keep the
74800         canary.
74801         * lib/nanosleep.c: Include timespec.h first, for interface check.
74802         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74803         now assume the sys_time module.
74804         * lib/tempname.c: Likewise.
74805         * lib/timespec.h: Likewise.
74806         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74807         needed.
74808         * lib/strftime.c: Likewise.
74809         * lib/timespec.h: Likewise.
74810         * lib/posixtm.c: Include posixtm.h first, for interface check.
74811         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74812         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74813         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74814         * lib/sys_time_.h: New file.
74815         * lib/timespec.h (struct timespec): Use long int, not long.
74816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74817         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74818         Remove obsolescent call to AC_HEADER_TIME.
74819         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74821         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74822         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74823         Likewise.
74824         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74825         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74827         into the sys_time module.  Check for gettimeofday just once.
74828         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74829         for gettimeofday signature to just check the signature.  Merely
74830         compile it, since linking doesn't test signature.  Improve test for
74831         whether gettimeofday.o is actually needed.
74832         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74833         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74834         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74835         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74836         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74837         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74838         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74839         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74840         than worrying about sys/time.h.
74841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74842         Don't bother worrying about TIME_WITH_SYS_TIME.
74843         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74844         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74845         * m4/sys_time_h.m4: New file.
74846         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74847         Don't include sys/time.h.  Return from main rather than exiting.
74848         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74849         all uses changed.
74850         * modules/gethrxtime (Depends-on): Add sys_time.
74851         * modules/gettime (Depends-on): Likewise.
74852         * modules/gettimeofday (Depends-on): Likewise.
74853         * modules/nanosleep (Depends-on): Likewise.
74854         * modules/settime (Depends-on): Likewise.
74855         * modules/tempname (Depends-on): Likewise.
74856         * modules/utimens (Depends-on): Likewise.
74857         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74858         (Include): Change back to <sys/time.h>.
74859         (Maintainer): Add self.
74860         * modules/sys_time: New file.
74861         * modules/tempname (Depends-on): Add gettimeofday.
74862         * tests/test-gettimeofday.c: Include <sys/time.h>
74863         rather than gettimeofday.h.
74864
74865 2007-01-17  Bruno Haible  <bruno@clisp.org>
74866
74867         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74868         the license default to GPL.
74869         (func_create_testdir): Don't complain if a module is LGPL and its
74870         tests module depends on GPLed modules.
74871
74872 2007-01-17  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/gettimeofday.c (gettimeofday): Add code for the case
74875         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74876         maximum possible value for tv->tv_usec, rather than the minimum one.
74877
74878 2005-10-08  Martin Lambers  <marlam@marlam.de>
74879 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74880 2007-01-16  Bruno Haible  <bruno@clisp.org>
74881
74882         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74883         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74884         gl_FUNC_GETTIMEOFDAY.
74885         (Include): Add gettimeofday.h.
74886         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74887         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74888         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74889         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74890         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74891         * lib/gettimeofday.h: New file.
74892         * lib/gettimeofday.c: Include <sys/timeb.h>.
74893         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74894         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74895         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74896         fall back on time().
74897
74898         * tests/test-gettimeofday.c: New file.
74899         * modules/gettimeofday-tests: New file.
74900
74901 2007-01-16  Eric Blake  <ebb9@byu.net>
74902
74903         * modules/fnmatch (Depends-on): Depend on wchar.
74904         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74905         * m4/fnmatch.m4: Likewise.
74906         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74907         * m4/mbchar.m4: Likewise.
74908         * modules/mbswidth (Depends-on): Depend on wchar.
74909         * lib/mbswidth.c: Assume <wchar.h>.
74910         * m4/mbswidth.m4: Likewise.
74911         * modules/quotearg (Depends-on): Depend on wchar.
74912         * lib/quotearg.c: Assume <wchar.h>.
74913         * m4/quotearg.m4: Likewise.
74914         * modules/regex (Depends-on): Depend on wchar.
74915         * lib/regex_internal.h: Assume <wchar.h>.
74916         * m4/regex.m4: Likewise.
74917         * modules/stdint (Depends-on): Depend on wchar.
74918         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74919         * m4/stdint.m4: Likewise.
74920         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74921         * modules/strftime (Depends-on): Depend on wchar.
74922         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74923         * modules/strtol (Depends-on): Depend on wchar.
74924         * lib/strtol.c: Assume <wchar.h>.
74925         * modules/wcwidth (Depends-on): Depend on wchar.
74926         * lib/wcwidth.h: Assume <wchar.h>.
74927         * m4/wcwidth.m4: Likewise.
74928
74929 2007-01-16  Bruno Haible  <bruno@clisp.org>
74930
74931         * modules/csharpexec-script: New, created from...
74932         * modules/csharpexec: ... this.
74933
74934 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74935
74936         * modules/javaexec-script: New, created from...
74937         * modules/javaexec: ... this.
74938
74939 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74940
74941         * modules/poll (Dependencies): Add sys_select.
74942
74943 2007-01-15  Jim Meyering  <jim@meyering.net>
74944
74945         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74946         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74947         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74948         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74949
74950 2007-01-15  Bruno Haible  <bruno@clisp.org>
74951
74952         * modules/striconveh: New file.
74953         * lib/striconveh.h: New file.
74954         * lib/striconveh.c: New file.
74955         * MODULES.html.sh (Internationalization functions): Add striconveh.
74956
74957         * modules/striconveh-tests: New file.
74958         * tests/test-striconveh.c: New file.
74959
74960 2007-01-15  Bruno Haible  <bruno@clisp.org>
74961
74962         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74963         not from GNU libiconv or GNU libc.
74964
74965 2007-01-15  Bruno Haible  <bruno@clisp.org>
74966
74967         * doc/gnulib-intro.texi (Copyright): Explain the different license
74968         terms for module descriptions, autoconf macros, tests, documentation.
74969
74970 2007-01-14  Bruno Haible  <bruno@clisp.org>
74971
74972         * modules/striconv-tests: New file.
74973         * tests/test-striconv.c: New file.
74974
74975 2007-01-14  Bruno Haible  <bruno@clisp.org>
74976
74977         * modules/iconv-tests: New file.
74978         * tests/test-iconv.c: New file.
74979
74980 2007-01-14  Bruno Haible  <bruno@clisp.org>
74981
74982         * gnulib-tool (func_get_license): For test modules, use the license of
74983         the main module.
74984
74985 2007-01-14  Bruno Haible  <bruno@clisp.org>
74986
74987         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74988         if iconv is found to exist.
74989
74990 2007-01-14  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/c-ctype-tests: New file.
74993         * tests/test-c-ctype.c: New file.
74994
74995 2007-01-14  Bruno Haible  <bruno@clisp.org>
74996
74997         * modules/binary-io-tests: New file.
74998         * tests/test-binary-io.sh: New file.
74999         * tests/test-binary-io.c: New file.
75000
75001 2007-01-14  Bruno Haible  <bruno@clisp.org>
75002
75003         * modules/array-oset-tests: New file.
75004         * tests/test-array_oset.c: New file.
75005
75006 2007-01-14  Bruno Haible  <bruno@clisp.org>
75007
75008         * modules/array-list-tests: New file.
75009         * tests/test-array_list.c: New file.
75010
75011 2007-01-14  Bruno Haible  <bruno@clisp.org>
75012
75013         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75014         and make.
75015         Reported by Simon Josefsson in
75016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75017
75018 2007-01-14  Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/allocsa-tests: New file.
75021         * tests/test-allocsa.c: New file.
75022
75023 2007-01-14  Bruno Haible  <bruno@clisp.org>
75024
75025         * modules/fchdir (Depends-on): Add absolute-header.
75026         * modules/unistd (Depends-on): Likewise.
75027
75028 2006-12-30  Bruno Haible  <bruno@clisp.org>
75029
75030         * modules/fchdir: New file.
75031         * modules/unistd (Files): Add lib/unistd_.h.
75032         (Makefile.am): Generate unistd.h from unistd_.h.
75033         * lib/fchdir.c: New file.
75034         * lib/dirent_.h: New file.
75035         * lib/unistd_.h: New file.
75036         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75037         * m4/fchdir.m4: New file.
75038         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75039         (gl_HEADER_UNISTD): Invoke it.
75040         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75041         function.
75042         * lib/backupfile.c (opendir, closedir): Undefine.
75043         * lib/chown.c (open, close): Undefine.
75044         * lib/clean-temp.c (open, close): Undefine.
75045         * lib/copy-file.c (open, close): Undefine.
75046         * lib/execute.c (open, close): Undefine.
75047         * lib/fsusage.c (open, close): Undefine.
75048         * lib/gc-gnulib.c (open, close): Undefine.
75049         * lib/getcwd.c (opendir, closedir): Undefine.
75050         * lib/glob.c (opendir, closedir): Undefine.
75051         * lib/javacomp.c (open, close): Undefine.
75052         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75053         * lib/openat-proc.c (open, close): Undefine.
75054         * lib/pagealign_alloc.c (open, close): Undefine.
75055         * lib/pipe.c (open, close): Undefine.
75056         * lib/progreloc.c (open, close): Undefine.
75057         * lib/savedir.c (opendir, closedir): Undefine.
75058         * lib/utime.c (open, close): Undefine.
75059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75060
75061 2007-01-10  Bruno Haible  <bruno@clisp.org>
75062
75063         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75064
75065 2007-01-12  Eric Blake  <ebb9@byu.net>
75066
75067         Provide a robust <wchar.h>.  Further simplifications are now
75068         possible in other modules, but not included here.
75069         * modules/wchar: New module.
75070         * m4/wchar.m4: New file.
75071         * lib/wchar_.h: Likewise.
75072         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75073         of the new module.
75074         * MODULES.html.sh (Extended multibyte and wide character utilities):
75075         New section.
75076
75077 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75078
75079         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75080         to a reasonable default for memory allocation.
75081         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75082         file system that reports garbage st_size values for symlinks.
75083         Problem reported by Liyang Hu.
75084
75085 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75086
75087         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75088         Emacs .#* auto-save files).
75089
75090 2007-01-11  Bruno Haible  <bruno@clisp.org>
75091
75092         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75093         directory.
75094
75095 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         Use @...@ consistently in lib/wctype_.h.
75098         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75099         on it being set to 1 or 0.
75100         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75101         go back to AC_SUBSTing it.
75102         * modules/wctype (Makefile.am): Undo previous change.
75103
75104 2007-01-10  Eric Blake  <ebb9@byu.net>
75105
75106         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75107         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75108         * modules/wctype (Makefile.am): Likewise.
75109         Reported by Chris McGuire.
75110
75111 2007-01-10  Jim Meyering  <jim@meyering.net>
75112
75113         fts.c: a small readability/maintainability improvement
75114         * lib/fts.c (fts_read): Make this code slightly more readable and
75115         maintainable by hoisting the "sp->fts_cur = p" assignments to
75116         immediately follow the statements that set P.  Derived from
75117         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75118
75119 2007-01-10  Eric Blake  <ebb9@byu.net>
75120
75121         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75122         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75124         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75125         Reported by Chris McGuire.
75126
75127 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75128
75129         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75130         in sed script.
75131
75132 2007-01-09  Bruno Haible  <bruno@clisp.org>
75133
75134         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75135         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75136         variables.
75137         (func_module): Use them.
75138
75139 2007-01-09  Bruno Haible  <bruno@clisp.org>
75140
75141         * modules/unistr/base: New file.
75142         * lib/unistr.h: New file.
75143
75144         * modules/unistr/u8-to-u16: New file.
75145         * lib/unistr/u8-to-u16.c: New file.
75146
75147         * modules/unistr/u8-to-u32: New file.
75148         * lib/unistr/u8-to-u32.c: New file.
75149
75150         * modules/unistr/u16-to-u8: New file.
75151         * lib/unistr/u16-to-u8.c: New file.
75152
75153         * modules/unistr/u16-to-u32: New file.
75154         * lib/unistr/u16-to-u32.c: New file.
75155
75156         * modules/unistr/u32-to-u8: New file.
75157         * lib/unistr/u32-to-u8.c: New file.
75158
75159         * modules/unistr/u32-to-u16: New file.
75160         * lib/unistr/u32-to-u16.c: New file.
75161
75162         * modules/unistr/u8-check: New file.
75163         * modules/unistr/u16-check: New file.
75164         * modules/unistr/u32-check: New file.
75165         * lib/unistr/u8-check.c: New file.
75166         * lib/unistr/u16-check.c: New file.
75167         * lib/unistr/u32-check.c: New file.
75168
75169         * modules/unistr/u8-chr: New file.
75170         * modules/unistr/u16-chr: New file.
75171         * modules/unistr/u32-chr: New file.
75172         * lib/unistr/u8-chr.c: New file.
75173         * lib/unistr/u16-chr.c: New file.
75174         * lib/unistr/u32-chr.c: New file.
75175
75176         * modules/unistr/u8-cmp: New file.
75177         * modules/unistr/u16-cmp: New file.
75178         * modules/unistr/u32-cmp: New file.
75179         * lib/unistr/u8-cmp.c: New file.
75180         * lib/unistr/u16-cmp.c: New file.
75181         * lib/unistr/u32-cmp.c: New file.
75182
75183         * modules/unistr/u8-cpy: New file.
75184         * modules/unistr/u16-cpy: New file.
75185         * modules/unistr/u32-cpy: New file.
75186         * lib/unistr/u8-cpy.c: New file.
75187         * lib/unistr/u16-cpy.c: New file.
75188         * lib/unistr/u32-cpy.c: New file.
75189         * lib/unistr/u-cpy.h: New file.
75190
75191         * modules/unistr/u8-cpy-alloc: New file.
75192         * modules/unistr/u16-cpy-alloc: New file.
75193         * modules/unistr/u32-cpy-alloc: New file.
75194         * lib/unistr/u8-cpy-alloc.c: New file.
75195         * lib/unistr/u16-cpy-alloc.c: New file.
75196         * lib/unistr/u32-cpy-alloc.c: New file.
75197         * lib/unistr/u-cpy-alloc.h: New file.
75198
75199         * modules/unistr/u8-endswith: New file.
75200         * modules/unistr/u16-endswith: New file.
75201         * modules/unistr/u32-endswith: New file.
75202         * lib/unistr/u8-endswith.c: New file.
75203         * lib/unistr/u16-endswith.c: New file.
75204         * lib/unistr/u32-endswith.c: New file.
75205         * lib/unistr/u-endswith.h: New file.
75206
75207         * modules/unistr/u8-mblen: New file.
75208         * modules/unistr/u16-mblen: New file.
75209         * modules/unistr/u32-mblen: New file.
75210         * lib/unistr/u8-mblen.c: New file.
75211         * lib/unistr/u16-mblen.c: New file.
75212         * lib/unistr/u32-mblen.c: New file.
75213
75214         * modules/unistr/u8-mbtouc: New file.
75215         * modules/unistr/u16-mbtouc: New file.
75216         * modules/unistr/u32-mbtouc: New file.
75217         * lib/unistr/u8-mbtouc.c: New file.
75218         * lib/unistr/u16-mbtouc.c: New file.
75219         * lib/unistr/u32-mbtouc.c: New file.
75220
75221         * modules/unistr/u8-mbtouc-safe: New file.
75222         * modules/unistr/u16-mbtouc-safe: New file.
75223         * modules/unistr/u32-mbtouc-safe: New file.
75224         * lib/unistr/u8-mbtouc-safe.c: New file.
75225         * lib/unistr/u16-mbtouc-safe.c: New file.
75226         * lib/unistr/u32-mbtouc-safe.c: New file.
75227
75228         * modules/unistr/u8-move: New file.
75229         * modules/unistr/u16-move: New file.
75230         * modules/unistr/u32-move: New file.
75231         * lib/unistr/u8-move.c: New file.
75232         * lib/unistr/u16-move.c: New file.
75233         * lib/unistr/u32-move.c: New file.
75234         * lib/unistr/u-move.h: New file.
75235
75236         * modules/unistr/u8-next: New file.
75237         * modules/unistr/u16-next: New file.
75238         * modules/unistr/u32-next: New file.
75239         * lib/unistr/u8-next.c: New file.
75240         * lib/unistr/u16-next.c: New file.
75241         * lib/unistr/u32-next.c: New file.
75242
75243         * modules/unistr/u8-prev: New file.
75244         * modules/unistr/u16-prev: New file.
75245         * modules/unistr/u32-prev: New file.
75246         * lib/unistr/u8-prev.c: New file.
75247         * lib/unistr/u16-prev.c: New file.
75248         * lib/unistr/u32-prev.c: New file.
75249
75250         * modules/unistr/u8-set: New file.
75251         * modules/unistr/u16-set: New file.
75252         * modules/unistr/u32-set: New file.
75253         * lib/unistr/u8-set.c: New file.
75254         * lib/unistr/u16-set.c: New file.
75255         * lib/unistr/u32-set.c: New file.
75256         * lib/unistr/u-set.h: New file.
75257
75258         * modules/unistr/u8-startswith: New file.
75259         * modules/unistr/u16-startswith: New file.
75260         * modules/unistr/u32-startswith: New file.
75261         * lib/unistr/u8-startswith.c: New file.
75262         * lib/unistr/u16-startswith.c: New file.
75263         * lib/unistr/u32-startswith.c: New file.
75264         * lib/unistr/u-startswith.h: New file.
75265
75266         * modules/unistr/u8-stpcpy: New file.
75267         * modules/unistr/u16-stpcpy: New file.
75268         * modules/unistr/u32-stpcpy: New file.
75269         * lib/unistr/u8-stpcpy.c: New file.
75270         * lib/unistr/u16-stpcpy.c: New file.
75271         * lib/unistr/u32-stpcpy.c: New file.
75272         * lib/unistr/u-stpcpy.h: New file.
75273
75274         * modules/unistr/u8-stpncpy: New file.
75275         * modules/unistr/u16-stpncpy: New file.
75276         * modules/unistr/u32-stpncpy: New file.
75277         * lib/unistr/u8-stpncpy.c: New file.
75278         * lib/unistr/u16-stpncpy.c: New file.
75279         * lib/unistr/u32-stpncpy.c: New file.
75280         * lib/unistr/u-stpncpy.h: New file.
75281
75282         * modules/unistr/u8-strcat: New file.
75283         * modules/unistr/u16-strcat: New file.
75284         * modules/unistr/u32-strcat: New file.
75285         * lib/unistr/u8-strcat.c: New file.
75286         * lib/unistr/u16-strcat.c: New file.
75287         * lib/unistr/u32-strcat.c: New file.
75288         * lib/unistr/u-strcat.h: New file.
75289
75290         * modules/unistr/u8-strchr: New file.
75291         * modules/unistr/u16-strchr: New file.
75292         * modules/unistr/u32-strchr: New file.
75293         * lib/unistr/u8-strchr.c: New file.
75294         * lib/unistr/u16-strchr.c: New file.
75295         * lib/unistr/u32-strchr.c: New file.
75296
75297         * modules/unistr/u8-strcmp: New file.
75298         * modules/unistr/u16-strcmp: New file.
75299         * modules/unistr/u32-strcmp: New file.
75300         * lib/unistr/u8-strcmp.c: New file.
75301         * lib/unistr/u16-strcmp.c: New file.
75302         * lib/unistr/u32-strcmp.c: New file.
75303
75304         * modules/unistr/u8-strcpy: New file.
75305         * modules/unistr/u16-strcpy: New file.
75306         * modules/unistr/u32-strcpy: New file.
75307         * lib/unistr/u8-strcpy.c: New file.
75308         * lib/unistr/u16-strcpy.c: New file.
75309         * lib/unistr/u32-strcpy.c: New file.
75310         * lib/unistr/u-strcpy.h: New file.
75311
75312         * modules/unistr/u8-strcspn: New file.
75313         * modules/unistr/u16-strcspn: New file.
75314         * modules/unistr/u32-strcspn: New file.
75315         * lib/unistr/u8-strcspn.c: New file.
75316         * lib/unistr/u16-strcspn.c: New file.
75317         * lib/unistr/u32-strcspn.c: New file.
75318         * lib/unistr/u-strcspn.h: New file.
75319
75320         * modules/unistr/u8-strdup: New file.
75321         * modules/unistr/u16-strdup: New file.
75322         * modules/unistr/u32-strdup: New file.
75323         * lib/unistr/u8-strdup.c: New file.
75324         * lib/unistr/u16-strdup.c: New file.
75325         * lib/unistr/u32-strdup.c: New file.
75326         * lib/unistr/u-strdup.h: New file.
75327
75328         * modules/unistr/u8-strlen: New file.
75329         * modules/unistr/u16-strlen: New file.
75330         * modules/unistr/u32-strlen: New file.
75331         * lib/unistr/u8-strlen.c: New file.
75332         * lib/unistr/u16-strlen.c: New file.
75333         * lib/unistr/u32-strlen.c: New file.
75334         * lib/unistr/u-strlen.h: New file.
75335
75336         * modules/unistr/u8-strmblen: New file.
75337         * modules/unistr/u16-strmblen: New file.
75338         * modules/unistr/u32-strmblen: New file.
75339         * lib/unistr/u8-strmblen.c: New file.
75340         * lib/unistr/u16-strmblen.c: New file.
75341         * lib/unistr/u32-strmblen.c: New file.
75342
75343         * modules/unistr/u8-strmbtouc: New file.
75344         * modules/unistr/u16-strmbtouc: New file.
75345         * modules/unistr/u32-strmbtouc: New file.
75346         * lib/unistr/u8-strmbtouc.c: New file.
75347         * lib/unistr/u16-strmbtouc.c: New file.
75348         * lib/unistr/u32-strmbtouc.c: New file.
75349
75350         * modules/unistr/u8-strncat: New file.
75351         * modules/unistr/u16-strncat: New file.
75352         * modules/unistr/u32-strncat: New file.
75353         * lib/unistr/u8-strncat.c: New file.
75354         * lib/unistr/u16-strncat.c: New file.
75355         * lib/unistr/u32-strncat.c: New file.
75356         * lib/unistr/u-strncat.h: New file.
75357
75358         * modules/unistr/u8-strncmp: New file.
75359         * modules/unistr/u16-strncmp: New file.
75360         * modules/unistr/u32-strncmp: New file.
75361         * lib/unistr/u8-strncmp.c: New file.
75362         * lib/unistr/u16-strncmp.c: New file.
75363         * lib/unistr/u32-strncmp.c: New file.
75364
75365         * modules/unistr/u8-strncpy: New file.
75366         * modules/unistr/u16-strncpy: New file.
75367         * modules/unistr/u32-strncpy: New file.
75368         * lib/unistr/u8-strncpy.c: New file.
75369         * lib/unistr/u16-strncpy.c: New file.
75370         * lib/unistr/u32-strncpy.c: New file.
75371         * lib/unistr/u-strncpy.h: New file.
75372
75373         * modules/unistr/u8-strnlen: New file.
75374         * modules/unistr/u16-strnlen: New file.
75375         * modules/unistr/u32-strnlen: New file.
75376         * lib/unistr/u8-strnlen.c: New file.
75377         * lib/unistr/u16-strnlen.c: New file.
75378         * lib/unistr/u32-strnlen.c: New file.
75379         * lib/unistr/u-strnlen.h: New file.
75380
75381         * modules/unistr/u8-strpbrk: New file.
75382         * modules/unistr/u16-strpbrk: New file.
75383         * modules/unistr/u32-strpbrk: New file.
75384         * lib/unistr/u8-strpbrk.c: New file.
75385         * lib/unistr/u16-strpbrk.c: New file.
75386         * lib/unistr/u32-strpbrk.c: New file.
75387         * lib/unistr/u-strpbrk.h: New file.
75388
75389         * modules/unistr/u8-strrchr: New file.
75390         * modules/unistr/u16-strrchr: New file.
75391         * modules/unistr/u32-strrchr: New file.
75392         * lib/unistr/u8-strrchr.c: New file.
75393         * lib/unistr/u16-strrchr.c: New file.
75394         * lib/unistr/u32-strrchr.c: New file.
75395
75396         * modules/unistr/u8-strspn: New file.
75397         * modules/unistr/u16-strspn: New file.
75398         * modules/unistr/u32-strspn: New file.
75399         * lib/unistr/u8-strspn.c: New file.
75400         * lib/unistr/u16-strspn.c: New file.
75401         * lib/unistr/u32-strspn.c: New file.
75402         * lib/unistr/u-strspn.h: New file.
75403
75404         * modules/unistr/u8-strstr: New file.
75405         * modules/unistr/u16-strstr: New file.
75406         * modules/unistr/u32-strstr: New file.
75407         * lib/unistr/u8-strstr.c: New file.
75408         * lib/unistr/u16-strstr.c: New file.
75409         * lib/unistr/u32-strstr.c: New file.
75410         * lib/unistr/u-strstr.h: New file.
75411
75412         * modules/unistr/u8-strtok: New file.
75413         * modules/unistr/u16-strtok: New file.
75414         * modules/unistr/u32-strtok: New file.
75415         * lib/unistr/u8-strtok.c: New file.
75416         * lib/unistr/u16-strtok.c: New file.
75417         * lib/unistr/u32-strtok.c: New file.
75418         * lib/unistr/u-strtok.h: New file.
75419
75420         * modules/unistr/u8-uctomb: New file.
75421         * modules/unistr/u16-uctomb: New file.
75422         * modules/unistr/u32-uctomb: New file.
75423         * lib/unistr/u8-uctomb.c: New file.
75424         * lib/unistr/u16-uctomb.c: New file.
75425         * lib/unistr/u32-uctomb.c: New file.
75426
75427         * MODULES.html.sh (Unicode string functions): Add the new modules.
75428
75429 2007-01-08  Bruno Haible  <bruno@clisp.org>
75430
75431         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75432         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75433         subdirectories.
75434
75435 2007-01-08  Karl Berry  <karl@gnu.org>
75436
75437         * doc/error.texi: mention that main() fns must set program_name
75438         when progname is used.
75439
75440 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75443         WCTYPE_H is empty, for the benefit of builds from non-distclean
75444         directories.  Problem reported by Eric Blake in
75445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75446
75447 2007-01-08  Bruno Haible  <bruno@clisp.org>
75448
75449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75450         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75451         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75452         PROVIDE_CANONICALIZE_FILENAME_MODE.
75453         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75454
75455 2007-01-08  Bruno Haible  <bruno@clisp.org>
75456
75457         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75458         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75459         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75460         * lib/fts.c: Likewise.
75461         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75462
75463 2006-12-25  Bruno Haible  <bruno@clisp.org>
75464
75465         * modules/utf8-ucs4-safe: New file.
75466         * lib/utf8-ucs4-safe.h: New file.
75467         * lib/unistr/utf8-ucs4-safe.c: New file.
75468
75469         * modules/utf16-ucs4-safe: New file.
75470         * lib/utf16-ucs4-safe.h: New file.
75471         * lib/unistr/utf16-ucs4-safe.c: New file.
75472
75473         * MODULES.html.sh (Unicode string functions): Add the new modules.
75474
75475 2007-01-08  Bruno Haible  <bruno@clisp.org>
75476
75477         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75478         (Depends-on): Add unitypes.
75479         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75480         (u8_mbtouc_aux): Move out to separate file.
75481         (u8_mbtouc): Use ucs4_t, uint8_t types.
75482         * lib/unistr/utf8-ucs4.c: New file.
75483
75484         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75485         (Depends-on): Add unitypes.
75486         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75487         (u16_mbtouc_aux): Move out to separate file.
75488         (u16_mbtouc): Use ucs4_t, uint16_t types.
75489         * lib/unistr/utf16-ucs4.c: New file.
75490
75491         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75492         (Depends-on): Add unitypes.
75493         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75494         (u8_uctomb_aux): Move out to separate file.
75495         (u8_uctomb): Use ucs4_t, uint8_t types.
75496         * lib/unistr/ucs4-utf8.c: New file.
75497
75498         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75499         (Depends-on): Add unitypes.
75500         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75501         (u16_uctomb_aux): Move out to separate file.
75502         (u16_uctomb): Use ucs4_t, uint16_t types.
75503         * lib/unistr/ucs4-utf16.c: New file.
75504
75505 2006-12-25  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/unitypes: New file.
75508         * lib/unitypes.h: New file.
75509         * MODULES.html.sh (func_all_modules): New section "Unicode string
75510         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75511         this section. Add unitypes.
75512
75513 2007-01-08  Bruno Haible  <bruno@clisp.org>
75514
75515         Avoid variable names that conflict with those from libtool.
75516         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75517         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75518         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75519         library_names_spec to acl_library_names_spec, hardcode_* to
75520         acl_hardcode_*.
75521         Reported by Ralf Wildenhues.
75522
75523 2007-01-08  Bruno Haible  <bruno@clisp.org>
75524
75525         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75526         definition.
75527         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75528         definition.
75529         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75530         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75531         definition.
75532         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75533         definition.
75534         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75535         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75536         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75537         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75538         definition.
75539         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75540         definition.
75541         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75542         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75543         GC_USE_<algorithm>.
75544         * lib/gc-libgcrypt.c: Likewise.
75545         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75546         * modules/gc-arctwo (configure.ac): Likewise.
75547         * modules/gc-des (configure.ac): Likewise.
75548         * modules/gc-hmac-md5 (configure.ac): Likewise.
75549         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75550         * modules/gc-md2 (configure.ac): Likewise.
75551         * modules/gc-md4 (configure.ac): Likewise.
75552         * modules/gc-md5 (configure.ac): Likewise.
75553         * modules/gc-random (configure.ac): Likewise.
75554         * modules/gc-rijndael (configure.ac): Likewise.
75555         * modules/gc-sha1 (configure.ac): Likewise.
75556
75557 2007-01-08  Bruno Haible  <bruno@clisp.org>
75558
75559         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75560         macro definition.
75561         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75562         definition.
75563         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75564         definition.
75565         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75566         * modules/fcntl-safer (configure.ac): Likewise.
75567         * modules/fopen-safer (configure.ac): Likewise.
75568         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75569         GNULIB_FWRITEERROR macro definition.
75570
75571 2007-01-08  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/gnulib-common.m4: New file.
75574         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75575         (func_get_filelist): Add m4/gnulib-common.m4.
75576
75577 2007-01-08  Bruno Haible  <bruno@clisp.org>
75578
75579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75580         command.
75581
75582 2007-01-08  Jim Meyering  <jim@meyering.net>
75583
75584         Use a more robust test for a "can't happen" condition.
75585         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75586         narrowed the st_size value.  Presuming the "can't happen" condition
75587         is true, that narrowing could conceivably convert an invalid st_size
75588         value into a valid one.  Instead, use a change based on Matthew
75589         Woehlke's original patch.
75590
75591         Slight readability improvement: use an assert-like macro
75592         in place of literal "abort ()" uses.
75593         * lib/fts.c (fts_assert): Define.
75594         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75595         Use this macro instead of a bare 'abort'.
75596
75597 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75600         simply work around them.
75601         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75602         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75603         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75604         declaring.
75605         Don't bother to define as macros, since the standard doesn't require it.
75606         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75607         longer worry about IRIX 5.3.
75608         (HAVE_WCTYPE_CTMP_BUG): Remove.
75609
75610 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75613         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75614         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75615         Problems reported by Georg Schwarz for IRIX 5.3.
75616
75617         * gnulib-tool (autoconf_minversion): Take the maximum version number
75618         found, not the minimum.  Problem reported by James Youngman.
75619
75620 2007-01-03  Karl Berry  <karl@gnu.org>
75621
75622         * doc/error.texi: new file, explaining interaction with progname.
75623         * doc/gnulib.texi: include it.  Update copyright.
75624
75625 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75626
75627         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75628         AC_CANONICAL_HOST, to improve autobuild outputs.
75629
75630 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75631             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75632
75633         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75634         sockets, server sockets, and other file descriptors.  Count errors
75635         to compute the return value.  Reorder the code a bit to be easier
75636         to follow.  Don't set event bits that were not requested (except
75637         POLLERR and POLLHUP).
75638
75639 2007-01-01  Bruno Haible  <bruno@clisp.org>
75640
75641         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75642
75643 2007-01-03  Jim Meyering  <jim@meyering.net>
75644
75645         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75646
75647 2007-01-02  Bruno Haible  <bruno@clisp.org>
75648
75649         * modules/settime (Include): Require timespec.h.
75650         * modules/nanosleep (Include): Likewise.
75651
75652 2007-01-01  Bruno Haible  <bruno@clisp.org>
75653
75654         * gnulib-tool (func_emit_copyright_notice): Bump year.
75655         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75656
75657 2007-01-01  Bruno Haible  <bruno@clisp.org>
75658
75659         Improve support for OpenBSD.
75660         * build-aux/config.rpath (libname_spec): Export.
75661         (library_names_spec): New variable. Export.
75662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75663         library_names_spec from the config.rpath output. Locate shared library
75664         through the name pattern in library_names_spec.
75665
75666 2007-01-01  Eric Blake  <ebb9@byu.net>
75667
75668         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75669
75670 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75673         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75674         assume the C locale, and avoid an "eval" that could cause trouble.
75675         Problem with SORT reported by Bob Proulx.
75676
75677         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75678         Define.  Trivial patch from Henning Nielsen Lund, originally
75679         sent to bug-grep@gnu.org today.
75680
75681 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75684         struct stat.  Problem reported by Henning Nielsen Lund.
75685         * lib/acl.c: Include acl.h first, to check interface.  Don't
75686         bother to include sys/types.h and sys/stat.h again.
75687
75688 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         Import the following change from libc; problem reported by
75691         Sven Verdoolaege.
75692
75693         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75694
75695         [BZ #1373]
75696         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75697
75698 2006-12-28  Jim Meyering  <jim@meyering.net>
75699
75700         * build-aux/announce-gen: Do not assume that the package
75701         builds any of tar.gz, tar.bz2, and .xdelta files.
75702         Suggestion from Simon Josefsson.
75703
75704 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75705
75706         * modules/announce-gen: New file.
75707
75708 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75711         handles its gotchas now.
75712         * lib/mbswidth.c: Likewise.
75713         * lib/wcwidth.h: Likewise.
75714         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75715         and iswcntrl; the wctype module does this stuff now.
75716         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75718         * modules/mbchar (Depends-on): Add wctype.
75719         * modules/mbswidth (Depends-on): Likewise.
75720         * modules/wcwidth (Depends-on): Likewise.
75721
75722 2006-12-27  Eric Blake  <ebb9@byu.net>
75723
75724         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75725         module uses more than what <wctype.h> is required to provide.
75726
75727 2006-12-26  Eric Blake  <ebb9@byu.net>
75728
75729         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75730
75731 2006-12-26  Eric Blake  <ebb9@byu.net>
75732
75733         * modules/absolute-header: New module.
75734         * modules/fcntl (Depends-on): Depend on it.
75735         * modules/inttypes (Depends-on): Likewise.
75736         * modules/stdint (Depends-on): Likewise.
75737         * modules/sys_stat (Depends-on): Likewise.
75738         * modules/wctype (Depends-on): Likewise.
75739         * MODULES.html.sh (Support for building libraries and
75740         executables): Document it.
75741
75742 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75743
75744         * gnulib-tool (SED): Remove, undoing previous change.
75745         The problem was that it broke coreutils on Solaris, because
75746         "sed --posix" leaked into a makefile.
75747         (sed): New alias, if 'alias' and GNU sed.
75748
75749 2006-12-24  Jim Meyering  <jim@meyering.net>
75750
75751         Work around an fchownat bug in glibc-2.4:
75752         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75753         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75754         in spite of the -P option.
75755         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75756         New macros.
75757         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75758         * modules/openat (Files): Add lib/fchownat.c.
75759         * lib/openat.c (fchownat): Don't define here.  Move to...
75760         * lib/fchownat.c: ...this new file.
75761
75762 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75763
75764         Fix bug reported by Bruno Haible in
75765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75766         where quotearg.c didn't compile on Mac OS X 10.2 because it
75767         lacks <wchar.h> and wint_t.
75768         * lib/wctype_.h (__wctype_wint_t): New type.
75769         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75770         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75771         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75772         Arg is now of type __wctype_wint_t, not wint_t.
75773         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75774         substitute HAVE_WINT_T.
75775         * modules/wctype (Files): Add m4/wint_t.m4.
75776         (wctype.h): Substitute HAVE_WINT_T.
75777
75778 2006-12-23  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75781
75782 2006-12-23  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75785         S_ISLNK.
75786         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75787         mingw.
75788
75789 2006-12-22  Bruno Haible  <bruno@clisp.org>
75790
75791         * lib/copy-file.c: Include acl.h.
75792         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75793         Close the file descriptors only after being done with copy_acl.
75794         * modules/copy-file (Depends-on): Add acl.
75795
75796 2006-12-22  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (SED): New variable.
75799         Use $SED instead of sed everywhere.
75800
75801 2006-12-22  Bruno Haible  <bruno@clisp.org>
75802
75803         * modules/no-c++: New file.
75804         * m4/no-c++.m4: New file.
75805         * MODULES.html.sh (Support for building libraries and executables):
75806         Add no-c++.
75807
75808 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75811         Include <limits.h>, and use its INT_MAX to rewrite the
75812         j loop so that it does not overflow 'int'.  Problem reported by
75813         Ralf Wildenhues in
75814         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75815         Play it safe by shifting left by 1 rather than multiplying by 2,
75816         as GCC is less likely to optimize this away when the value
75817         is signed (when it assumes overflow leads to undefined behavior).
75818         Also, don't assume time_t uses two's complement.
75819
75820 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         * MODULES.html.sh: New module wctype.
75823         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75824         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75825         <wctype.h>, since the new wctype module should fix this.
75826         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75827         the wctype module should arrange for it.
75828         * lib/regex_internal.h: Likewise.
75829         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75830         since the wctype module should handle this now.
75831         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75832         * modules/fnmatch (Depends-on): Add wctype.
75833         * modules/quotearg (Depends-on): Likewise.
75834         * modules/regex (Depends-on): Likewise.
75835
75836 2006-12-19  Bruno Haible  <bruno@clisp.org>
75837
75838         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75839         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75840
75841 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75842
75843         * modules/savewd (Depends-on): Fix dependency on fcntl.
75844
75845 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75848         conforms to C99, rather than relying on the user's environment
75849         setting of STDINT_H.
75850
75851 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75852         and Eric Blake  <ebb9@byu.net>
75853
75854         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75855         This is more consistent with the other defines here.
75856         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75857         Port to z/OS.  Problem reported by Paul Gilmartin.
75858         Change local vars to use gl_ prefix rather than ac_.
75859         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75860         with other defines.
75861         * modules/double-slash-root: New module.
75862         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75863         (Depends-on): Add double-slash-root.
75864         * MODULES.html.sh (File system functions): Mention new module.
75865
75866 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75869         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75870         This is for the benefit of gzip, which doesn't do i18n.
75871
75872 2006-12-12  Jim Meyering  <jim@meyering.net>
75873
75874         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75875         Reported by Andreas Schwab <schwab@suse.de>.
75876
75877 2006-12-12  Bruno Haible  <bruno@clisp.org>
75878
75879         Merge these changes.
75880         2006-09-05  Bruno Haible  <bruno@clisp.org>
75881         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75882         iconv_alloc succeeded.
75883         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75884         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75885         test for " && dest " at the end - dest is always != NULL there. Call
75886         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75887         with 2xNULL arguments, also to flush the state storage. Handle the
75888         IRIX iconv behaviour. Realloc the final result, to throw away unused
75889         memory.
75890
75891 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75894         and fchmodat unconditionally, since glibc 2.4 has them.
75895         Problem reported by Arkadiusz Miskiewicz.
75896
75897 2006-12-10  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_import): Show the include files only for those
75900         modules that are copied and specified.
75901         Reported by Karl Berry.
75902
75903 2006-12-08  Jim Meyering  <jim@meyering.net>
75904
75905         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75906         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75907
75908         * build-aux/announce-gen: Add two new options, both optional:
75909         --bootstrap-tools=TOOL_LIST
75910               a comma-separated list of tools, e.g.,
75911               autoconf,automake,bison,gnulib
75912         --gnulib-snapshot-date=DATE
75913               if gnulib is in the bootstrap tool list,
75914               then report this as the snapshot date.
75915               If not specified, use the current date/time.
75916               If you specify a date here, be sure it's UTC.
75917
75918 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75919
75920         * tests/test-argp-2.sh: Fix test to match actual output.
75921         (func_compare): Fix sed script to be portable.
75922
75923 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75926         workaround for this case.  It is not autoconfigured now; offhand
75927         it's hard to see how to autoconfigure it.
75928
75929 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75932         a directory that is about to be chowned.  Such a directory's
75933         initial file permissions should permit the owner only and this
75934         should not be changed until after the chown, since the group and
75935         other bits would be incorrect if they granted permission before
75936         the chown.
75937
75938         Fix porting problem for iswctype reported by Georg Schwarz in:
75939         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75940         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75941         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75942         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75943         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75944
75945 2006-12-03  Jim Meyering  <jim@meyering.net>
75946
75947         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75948         p->fts_statp may not yet be defined.
75949         (fts_read): Instead, set it in the caller, once p->fts_statp is
75950         sure to be defined, and corresponds to a top-level directory.
75951         This bug made du -x fail.  Here's the coreutils test case:
75952         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75953         Reported by Mike Frysinger.
75954
75955 2006-12-01  Jim Meyering  <jim@meyering.net>
75956
75957         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75958         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75959         Reported by Simon Josefsson.
75960
75961 2006-11-30  Jim Meyering  <jim@meyering.net>
75962
75963         * m4/warning.m4: Use the all-permissive copyright notice
75964         recommended by RMS (rather than LGPL).
75965         * m4/vararrays.m4: Likewise.
75966         * m4/flexmember.m4: Likewise.
75967
75968 2006-11-29  Bruno Haible  <bruno@clisp.org>
75969
75970         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75971         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75972         using +=.
75973         Reported by Simon Josefsson <simon@josefsson.org>.
75974
75975 2006-11-28  James Youngman <jay@gnu.org>
75976
75977         * README: Advise users that they might find the bug-gnulib@gnu.org
75978         and autotools-announce@gnu.org mailing lists useful.
75979
75980 2006-11-28  Bruno Haible  <bruno@clisp.org>
75981
75982         * m4/ptrdiff_max.m4: Remove file.
75983
75984 2006-11-21  Bruno Haible  <bruno@clisp.org>
75985
75986         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75987         _AC_COMPUTE_INT.
75988         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75989         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75990         _AC_COMPUTE_INT.
75991         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75992         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75993         _AC_COMPUTE_INT.
75994         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75995
75996 2006-11-28  Jim Meyering  <jim@meyering.net>
75997
75998         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75999         warning from "gcc -Wshadow" about shadowing the builtin.
76000
76001 2006-11-27  Bruno Haible  <bruno@clisp.org>
76002
76003         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76004         _AC_COMPUTE_INT.
76005         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76006
76007 2006-11-27  Bruno Haible  <bruno@clisp.org>
76008             Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76011
76012 2006-11-26  Bruno Haible  <bruno@clisp.org>
76013
76014         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76015         noinst_LTLIBRARIES.
76016
76017 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76018             Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76021         if compiling with "gcc -ansi".
76022
76023 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         Fix some incompatibilities with gcc -ansi -pedantic.
76026         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76027         if compiling pedantically with GCC, unless it's C99 or later.
76028         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76029         it mishandles gcc -ansi -pedantic as well.
76030         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76031         if gcc -pedantic.
76032         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76033         initializers for struct if -pedantic, unless it's C99 or later.
76034
76035 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76036
76037         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76038         Don't close an fd more than once. Identical atimes indicate
76039         success, not failure.
76040
76041 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76042
76043         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76044
76045 2006-11-23  Jim Meyering  <jim@meyering.net>
76046
76047         * build-aux/announce-gen: New file.  From coreutils.
76048
76049 2006-11-22  Jim Meyering  <jim@meyering.net>
76050
76051         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76052         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76053         (fts_read): Use a temporary to narrow the overused st_size member
76054         before using it in a switch statement.  Reported by Matthew Woehlke.
76055
76056         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76057         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76058
76059 2006-11-20  Bruno Haible  <bruno@clisp.org>
76060
76061         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76062         changequote instead of pairs of brackets.
76063         Reported by Andreas Schwab <schwab@suse.de>.
76064
76065 2006-11-21  Jim Meyering  <jim@meyering.net>
76066
76067         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76068         so as to remain compatible with older compilers.
76069         Patch from Michael Deutschmann.
76070
76071 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * MODULES.html.sh (File system functions): Add openat.
76074
76075         * lib/openat.h (rpl_fstatat): New macro, if
76076         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76077         (fstatat): Define to rpl_fstatat under the same conditions,
76078         unless COMPILING_FSTATAT.
76079         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76080         seems to have the bug.
76081         * lib/fstatat.c: New file.
76082         * modules/openat (Files): Add it.
76083
76084 2006-11-20  Bruno Haible  <bruno@clisp.org>
76085
76086         * Makefile: New file.
76087
76088 2006-11-20  Jim Meyering  <jim@meyering.net>
76089
76090         The beginnings of syntax-related checks for gnulib.
76091         * lib/Makefile: New file.
76092         * lib/t-idcache: New script.  Ensure that the two halves of
76093         idcache.c stay in sync.
76094
76095         * lib/idcache.c: Adjust comments in user- and group- portions to
76096         be more accurate, and to be consistent with one another.
76097
76098 2006-11-20  Jim Meyering  <jim@meyering.net>
76099
76100         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76101         continue using the flexible array member (thus, this module performs
76102         half as many malloc calls), with the addition that...
76103         (getgroup, getuser): Consistently record a non-match via an empty
76104         "name" string, and map an empty string match to a NULL return value.
76105         * modules/idcache (Depends-on): Re-add flexmember.
76106
76107         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76108         (getuidbyname, getgroup, getgidbyname): Likewise.
76109
76110         Use cleaner syntax: NULL rather than 0.
76111         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76112
76113 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76116         It mishandled the case where the group was missing.
76117         Problem reported by Greg Schafer.
76118         * modules/idcache: Likewise.
76119
76120 2006-11-18  Jim Meyering  <jim@meyering.net>
76121
76122         * check-module (%exempt_header): Add exception for some
76123         conditionally-included headers.
76124
76125         * modules/i-ring (Depends-on): Add verify.
76126         (License): Change to LGPL.
76127
76128 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76131         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76132         and inttostr.h.  Use snprintf rather than uinttostr, so that
76133         LGPLed code doesn't depend on GPLed.
76134
76135 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * modules/inline (License): Change from GPL to LGPL.
76138
76139 2006-11-17  Jim Meyering  <jim@meyering.net>
76140
76141         * modules/d-type (License): Switch to LGPL.
76142
76143 2006-11-15  Bruno Haible  <bruno@clisp.org>
76144
76145         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76146
76147 2006-11-15  Eric Blake  <ebb9@byu.net>
76148
76149         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76150         the module dependency.
76151
76152 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76153             Bruno Haible  <bruno@clisp.org>
76154
76155         * gnulib-tool (func_create_testdir): Add license consistency check.
76156
76157 2006-11-15  Eric Blake  <ebb9@byu.net>
76158
76159         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76160         random "(cached)" in configure output.
76161
76162 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76163
76164         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76165         test for conforming inttypes.h is both announced and cached.
76166
76167         * MODULES.html.sh (seen_modules, seen_files): New variables.
76168         (func_module): Rewrite to use a few less gnulib-tool and sed
76169         invocations.  Avoid a couple of quadratic algorithms for ...
76170         (missed_modules, missed_files): ... these, with ...
76171         (func_append, func_tmpdir): ... these new functions, from
76172         gnulib-tool.  Analogously, install traps for cleanup.
76173
76174         * tests/test-gc.c (main): Remove unused variables.
76175         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76176
76177 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * modules/inttostr (License): Change to LGPL.
76180
76181 2006-11-14  Eric Blake  <ebb9@byu.net>
76182
76183         * modules/tempname (License): Change to LGPL.
76184
76185 2006-11-14  Eric Blake  <ebb9@byu.net>
76186
76187         * doc/functions.texi (Function Portability): *printf functions on
76188         Cygwin now understand all POSIX size specifiers.
76189
76190 2006-11-14  Bruno Haible  <bruno@clisp.org>
76191
76192         * modules/c-ctype (License): Change to LGPL.
76193
76194 2006-11-12  Bruno Haible  <bruno@clisp.org>
76195
76196         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76197         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76198         for GNOME libraries, for which the include files are installed in
76199         subdirectories of $prefix/include.
76200
76201 2006-11-12  Bruno Haible  <bruno@clisp.org>
76202
76203         * m4/lib-link.m4: Require at least autoconf-2.54.
76204         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76205         name to underscores for the --with option.
76206
76207 2006-11-13  Bruno Haible  <bruno@clisp.org>
76208
76209         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76210         the tests directory.
76211         Reported by Ralf Wildenhues.
76212
76213 2006-11-13  Bruno Haible  <bruno@clisp.org>
76214
76215         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76216         (func_emit_initmacro_end): Undo the override here.
76217         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76218         Works around the famous automake error in coreutils.
76219
76220 2006-11-13  Eric Blake  <ebb9@byu.net>
76221
76222         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76223         element, not its node.
76224
76225 2006-11-12  Bruno Haible  <bruno@clisp.org>
76226
76227         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76228         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76229
76230 2006-11-12  Bruno Haible  <bruno@clisp.org>
76231
76232         * gnulib-tool: New option --local-symlink.
76233         (func_usage): Document it.
76234         (lsymbolic): New variable.
76235         (func_import, func_create_testdir): If --symlink was not specified,
76236         test whether --local-symlink was specified and the file comes from
76237         the local_gnulib_dir.
76238
76239 2006-11-12  Bruno Haible  <bruno@clisp.org>
76240
76241         * gnulib-tool (func_ln): New function.
76242         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76243
76244 2006-11-12  Bruno Haible  <bruno@clisp.org>
76245
76246         Finish support for source files in subdirectories.
76247         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76248         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76249         AUTOMAKE_OPTIONS.
76250         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76251
76252 2006-11-12  Bruno Haible  <bruno@clisp.org>
76253
76254         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76255         EXTRA_lib_SOURCES augmentation.
76256         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76257
76258 2006-11-12  Jim Meyering  <jim@meyering.net>
76259
76260         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76261         file descriptors.  This also averts a failure on systems with
76262         native openat support when a traversed directory lacks "x" access.
76263         * lib/fts_.h: Include "i-ring.h"
76264         (struct FTS) [fts_fd_ring]: New member.
76265         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76266         (FCHDIR): Add parentheses.
76267         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76268         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76269         When descending, rather than simply closing the previous
76270         fts_cwd_fd value, push that file descriptor onto the ring.
76271         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76272         (fts_open): Initialize the new fd_ring member.
76273         (fts_close): Clear the ring.
76274         (fts_safe_changedir): When possible, use our new fd_ring to skip
76275         the diropen and fstat and dev/ino comparison that would normally
76276         accompany a virtual `chdir ("..")'.
76277
76278         * modules/fts (Depends-on): Add i-ring.
76279         * modules/i-ring: New module.
76280         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76281         * m4/i-ring.m4: New file.
76282
76283 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76284
76285         * gnulib-tool (func_create_testdir): Fix replacement of
76286         `build-aux' in configure.ac.  Run autotools in gltests
76287         subdirectory.
76288         (func_create_testdir, func_create_megatestdir, test): There is
76289         no need for '--force' in most autotool invocations in a new
76290         tree.  Actually fail the whole test if any of the tools, or the
76291         configure or make stages fail.
76292
76293         Sync from Automake.
76294         * build-aux/gnupload: Revert last change.  Add pointer to upload
76295         instructions of the GNU Maintenance Instructions.
76296         Suggestion by Karl Berry.
76297
76298 2006-11-10  Jim Meyering  <jim@meyering.net>
76299
76300         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76301
76302 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76305         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76306         (bind_textdomain_codeset) [! ENABLE_NLS]:
76307         Evaluate all the arguments.  That way, callers get compatible behavior
76308         if the arguments have side effects.  Also, it avoids some GCC
76309         diagnostics in some cases; Joel E. Denny reported problems when Bison
76310         was configured with --enable-gcc-warnigs.
76311
76312 2006-11-10  Jim Meyering  <jim@meyering.net>
76313
76314         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76315         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76316         account.
76317
76318 2006-11-10  Jim Meyering  <jim@meyering.net>
76319
76320         * modules/inline: New file/module.
76321         * modules/xalloc (Files): Remove m4/inline.m4.
76322         (Depends-on): Add inline, instead.
76323         * modules/oset: Likewise.
76324         * modules/list: Likewise.
76325
76326 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76329         Problem reported by Matthew Woehlke.
76330
76331 2006-11-09  Bruno Haible  <bruno@clisp.org>
76332
76333         * lib/tempname.c (gen_tempname): Remove variant that invokes
76334         __gen_tempname.
76335         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76336         __gen_tempname.
76337
76338 2006-11-08  Bruno Haible  <bruno@clisp.org>
76339
76340         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76341         to 'yes' instead of 'cross-compiling'.
76342
76343 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * lib/quotearg.h (quotearg_free): New decl.
76346         * lib/quotearg.c (quotearg_free): New function.
76347         (slot0, nslots, slotvec0, slotvec):
76348         Now file-scope so that quotearg_free can get at them.
76349
76350 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76351
76352         Sync from Automake.
76353         * build-aux/gnupload: Add missing 'gnu' to example URL.
76354         Report by Karl Berry.
76355
76356 2006-11-08  Bruno Haible  <bruno@clisp.org>
76357
76358         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76359         Suggested by Paul Eggert.
76360
76361 2006-11-08  Jim Meyering  <jim@meyering.net>
76362
76363         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76364         It's already included if !_LIBC.
76365         (fts_safe_changedir): Add a comment.
76366
76367 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76368
76369         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76370         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76371         Matthew Woehlke.
76372
76373         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76374         definitions up, to avoid colliding with change below.
76375         (static_inline) [HAVE_INLINE]: New macro.
76376         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76377         Provide extern decls when !HAVE_INLINE.  Do not define unless
76378         static_inline is defined, either by us or by xmalloc.c.  Use
76379         static_inline rather than static inline.
76380         (XCALLOC): Optimize sizeof(T) = 1 case.
76381         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76382
76383 2006-11-07  Bruno Haible  <bruno@clisp.org>
76384
76385         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76386         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76387         AC_C_INLINE.
76388         * modules/xalloc (Files): Add m4/inline.m4.
76389
76390 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76391
76392         * README: Fix typo.
76393         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76394         (Miscellanous Notes): ...from this.
76395
76396 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76399         Mention that offsetof should be used instead of sizeof.
76400         From Bruno Haible.
76401
76402 2006-11-07  Bruno Haible  <bruno@clisp.org>
76403
76404         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76405
76406 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76409         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76410         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76411         (gl_tree_add_before, gl_tree_add_after):
76412         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76413         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76414         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76415         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76416         (gl_linked_add_after, gl_linked_add_at): Likewise.
76417         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76418         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76419         (gl_tree_add_before, gl_tree_add_after): Likewise.
76420         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76421         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76422         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76423
76424 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76425
76426         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76427
76428 2006-11-06  Bruno Haible  <bruno@clisp.org>
76429
76430         * m4/inline.m4: New file.
76431         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76432         * modules/list (Files): Add m4/inline.m4.
76433         * modules/oset (Files): Likewise.
76434
76435 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/idcache.c: Include <stddef.h>, for offsetof.
76438         (struct userid.name): Change from char * to a flexible array member.
76439         All uses changed.
76440         * modules/idcache (Depends-on): Add flexmember.
76441
76442         * MODULES.html.sh (Core language properties): New module flexmember.
76443         * modules/flexmember, m4/flexmember.m4: New files.
76444
76445         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76446         inline functions that are identical with the old xnmalloc_inline,
76447         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76448         that we can avoid some unnecessary integer multiplications and
76449         divisions in the common case where the element size is known at
76450         compile time.
76451         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76452         needed.
76453         (xnboundedmalloc): Remove.
76454         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76455         arguments, for consistency with rest of this header.
76456         (xcharalloc): Rewrite using XNMALLOC.
76457         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76458         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76459         versions have been moved to lib/xalloc.h and renamed to be the
76460         non-*_inline versions.
76461         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76462         and xnrealloc functions, since those functions are now inline and
76463         now call us.
76464         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76465         renaming described above.
76466         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76467         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76468         captures the dependency in AC_C_INLINE.
76469
76470         New module canonicalize-lgpl, proposed by Charles Wilson in
76471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76472         with a few small changes afterwards.
76473         * MODULES.html.sh (File system functions): New module
76474         canonicalize-lgpl.
76475         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76476         and canonicalize_file_name.
76477         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76478         * modules/canonicalize-lgpl: New files.
76479
76480 2006-11-05  Bruno Haible  <bruno@clisp.org>
76481
76482         * gnulib-tool (func_import, func_create_testdir): Create directories
76483         also for files in subdirectories of lib/.
76484
76485 2006-11-05  Bruno Haible  <bruno@clisp.org>
76486
76487         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76488         ANSI C compliant.
76489
76490 2006-11-03  Bruno Haible  <bruno@clisp.org>
76491
76492         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76493         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76494         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76495         (xnboundedmalloc): New inline function.
76496         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76497         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76498         xmalloc.
76499         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76500         xmalloc.
76501         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76502         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76503         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76504         xmalloc.
76505         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76506         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76507         xmalloc.
76508         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76509         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76510         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76511         xmalloc.
76512         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76513         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76514         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76515         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76516         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76517         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76518         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76519
76520 2006-11-03  Bruno Haible  <bruno@clisp.org>
76521
76522         * lib/c-ctype.h [C++]: Define functions without name mangling.
76523         * lib/fwriteerror.h [C++]: Likewise.
76524         * lib/gcd.h [C++]: Likewise.
76525         * lib/linebreak.h [C++]: Likewise.
76526
76527 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76530         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76531         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76533         Check for functions and headers just once.
76534         Check for declaration of canonicalize_file_name.
76535         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76536
76537 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76538
76539         * gnulib-tool (func_import): Fix typo in actioncmd.
76540
76541 2006-11-02  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76544         newline sequence in the Makefile.am snippet as a space, like "make"
76545         does.
76546         Reported by Roger Persson <perrog@gmail.com>.
76547
76548 2006-11-01  Bruno Haible  <bruno@clisp.org>
76549
76550         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76551         already declared in <string.h>.
76552         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76553
76554 2006-11-01  Bruno Haible  <bruno@clisp.org>
76555
76556         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76557         * lib/strcase.h: Include <string.h>.
76558         (strcasecmp): Define to rpl_strcasecmp here.
76559
76560 2006-11-01  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76563
76564 2006-11-01  Eric Blake  <ebb9@byu.net>
76565
76566         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76567
76568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76569
76570 2006-10-29  Bruno Haible  <bruno@clisp.org>
76571
76572         Make it compile in C++ mode.
76573         * lib/full-write.c (full_rw): Add a cast.
76574
76575 2006-11-01  Bruno Haible  <bruno@clisp.org>
76576
76577         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76578         be POSIX compliant.
76579         Reported by Roger Persson <perrog@gmail.com>.
76580
76581 2006-11-01  Eric Blake  <ebb9@byu.net>
76582
76583         * lib/getopt_.h: Fix comments.
76584
76585 2006-10-31  Eric Blake  <ebb9@byu.net>
76586
76587         * modules/tmpdir (Depends-on): Add sys_stat.
76588         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76589         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76590         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76591         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76592         tempname.
76593
76594 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         Avoid some C++ diagnostics reported by Bruno Haible.
76597         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76598         xmalloc.
76599         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76600         (struct slotvec): Move to top level.
76601         (quotearg_n_options): Rewrite to avoid xmalloc.
76602         * lib/xalloc.h (xcharalloc): New function.
76603         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76604         [defined __cplusplus]: Add function template that provides result
76605         type propagation.  This part of the change is from Bruno Haible.
76606
76607 2006-10-29  Bruno Haible  <bruno@clisp.org>
76608
76609         Make it compile in C++ mode.
76610         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76611         * lib/strnlen1.c (strnlen1): Cast memchr result.
76612         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76613         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76614         (create_temp_dir): Rename local variable 'template'.
76615         (compile_csharp_using_sscli): Add cast.
76616         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76617         * lib/findprog.c (find_in_path): Likewise.
76618         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76619         * lib/wait-process.c (register_slave_subprocess): Likewise.
76620
76621 2006-10-22  Bruno Haible  <bruno@clisp.org>
76622
76623         * modules/tsearch: New file.
76624         * lib/tsearch.h: New file.
76625         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76626         * m4/tsearch.m4: New file.
76627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76628
76629 2006-10-29  Eric Blake  <ebb9@byu.net>
76630
76631         * lib/arcfour.c: Assume config.h.
76632         * lib/arctwo.c: Likewise.
76633         * lib/base64.c: Likewise.
76634         * lib/check-version.c: Likewise.
76635         * lib/crc.c: Likewise.
76636         * lib/des.c: Likewise.
76637         * lib/gc-gnulib.c: Likewise.
76638         * lib/gc-libgcrypt.c: Likewise.
76639         * lib/gc-pbkdf2-sha1.c: Likewise.
76640         * lib/getaddrinfo.c: Likewise.
76641         * lib/getdelim.c: Likewise.
76642         * lib/getline.c: Likewise.
76643         * lib/hmac-md5.c: Likewise.
76644         * lib/hmac-sha1.c: Likewise.
76645         * lib/iconvme.c: Likewise.
76646         * lib/md2.c: Likewise.
76647         * lib/md4.c: Likewise.
76648         * lib/memxor.c: Likewise.
76649         * lib/read-file.c: Likewise.
76650         * lib/readline.c: Likewise.
76651         * lib/rijndael-alg-fst.c: Likewise.
76652         * lib/rijndael-api-fst.c: Likewise.
76653         * lib/xgetdomainname.c: Likewise.
76654
76655 2006-10-28  Eric Blake  <ebb9@byu.net>
76656
76657         * lib/xstrndup.c: Assume config.h.
76658
76659 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76662         stat-macros.h is now for our own macros, whereas stat_h is for
76663         macros in the <sys/stat.h> name space.
76664         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76665         (STAT_MACROS_H): Remove.
76666         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76667         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76668         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76669         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76670         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76671         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76672         Move these macros to ...
76673         * lib/stat_.h: here.  Don't include stat-macros.h.
76674         * lib/canonicalize.c: Don't include stat-macros.h.
76675         * lib/chown.c: Likewise.
76676         * lib/euidaccess.c: Likewise.
76677         * lib/file-type.c: Likewise.
76678         * lib/filemode.c: Likewise.
76679         * lib/glob.c: Likewise.
76680         * lib/isapipe.c: Likewise.
76681         * lib/lchown.c: Likewise.
76682         * lib/lstat.c: Likewise.
76683         * lib/mkdir-p.c: Likewise.
76684         * lib/rmdir.c: Likewise.
76685         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76687         unless mkdir isn't declared, to speed up 'configure'.
76688         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76689         would define all the S_* symbols.
76690         * modules/canonicalize (Depends-on):
76691         Depend on sys_stat, not stat-macros.
76692         * modules/chown: Likewise.
76693         * modules/euidaccess: Likewise.
76694         * modules/filemode: Likewise.
76695         * modules/file-type: Likewise.
76696         * modules/glob: Likewise.
76697         * modules/isapipe: Likewise.
76698         * modules/lchown: Likewise.
76699         * modules/lstat: Likewise.
76700         * modules/mkancesdirs: Likewise.
76701         * modules/rmdir: Likewise.
76702         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76703         * modules/modechange: Likewise.
76704         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76705         (configure.ac): Remove gl_STAT_MACROS.
76706         * modules/sys_stat (Depends-on): Remove stat-macros.
76707
76708 2006-10-27  Bruno Haible  <bruno@clisp.org>
76709
76710         * m4/signed.m4: Remove file.
76711         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76712         invocation.
76713         * modules/vasnprintf (Files): Remove m4/signed.m4.
76714
76715 2006-10-27  Bruno Haible  <bruno@clisp.org>
76716
76717         Update to GNU gettext 0.16.
76718         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76719         m4/inttypes-h.m4, m4/signed.m4.
76720         * m4/gettext.m4: Update to GNU gettext 0.16.
76721         * m4/intl.m4: New file, from GNU gettext.
76722         * m4/intldir.m4: New file, from GNU gettext.
76723         * config/srclist.txt: Update
76724
76725 2006-10-27  Eric Blake  <ebb9@byu.net>
76726
76727         * MODULES.html.sh: Document tempname.
76728         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76729         dependencies.
76730         (Files): Move lib/tempname.c...
76731         * modules/tempname: ...to this new module.
76732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76733         (gl_PREREQ_TEMPNAME): Move...
76734         * m4/tempname.m4: ...to this new file.
76735         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76736         * modules/sys_stat (Depends-on): Add stat-macros.
76737         * lib/stat_.h (includes): Pick up stat macros.
76738         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76739         if stat macros are broken.
76740         * lib/tempname.c (includes): No need to include "stat-macros.h".
76741         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76742         (direxists, __path_search) [!_LIBC]: Don't compile these in
76743         gnulib; the tmpdir module covers that.
76744         * lib/tempname.h: New file.
76745
76746 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * COPYING: Explain how gnulib-tool converts licence headers.
76749         Almost all wording by Eric Blake.
76750
76751 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * lib/mbchar.h (is_basic_table): Make read-only.
76754         * lib/mbchar.c (is_basic_table): Likewise.
76755         Reported by John Darrington.
76756
76757 2006-10-25  Bruno Haible  <bruno@clisp.org>
76758
76759         * lib/progname.h (set_program_name): Undefine before defining.
76760
76761 2006-10-25  Bruno Haible  <bruno@clisp.org>
76762
76763         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76764         false for non-gcc C++ compilers.
76765         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76766
76767 2006-10-24  Bruno Haible  <bruno@clisp.org>
76768
76769         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76770         iconv implementations like Irix iconv.
76771
76772 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * modules/vararrays: New file.
76775         * m4/vararrays.m4: New file, taken from diffutils.
76776         * MODULES.html.sh: New module vararrays.
76777
76778 2006-10-24  Karl Berry  <karl@gnu.org>
76779
76780         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76781         Don't call GNU Unix.
76782
76783 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76784
76785         * users.txt: Add Libtool.
76786
76787         Sync from Libtool:
76788
76789         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76792         to gnulib's policy of including config.h unconditionally.
76793
76794 2006-10-24  Bruno Haible  <bruno@clisp.org>
76795
76796         * modules/wcwidth (Files): Add m4/wint_t.m4.
76797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76798         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76799
76800 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76803         to pacify GCC with some -W flags enabled.  Problem reported by
76804         Bruno Haible.
76805
76806 2006-10-24  Jim Meyering  <jim@meyering.net>
76807
76808         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76809         Reported by Karl Berry.
76810
76811 2006-10-23  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76814
76815 2006-10-24  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/gl_list.h: Use C comment style, not C++ comment style.
76818
76819 2006-10-23  Eric Blake  <ebb9@byu.net>
76820
76821         * lib/getaddrinfo.c (includes): Add missing include.
76822
76823 2006-10-23  Bruno Haible  <bruno@clisp.org>
76824             Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         Ability to rename obstack_free.
76827         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76828         obstack_free.
76829         (obstack_free): Invoke the __obstack_free macro.
76830         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76831
76832 2006-10-23  Bruno Haible  <bruno@clisp.org>
76833             Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76836         __argc, __argv from the declaration. (They are defined as macros on
76837         mingw.)
76838
76839 2006-10-22  Bruno Haible  <bruno@clisp.org>
76840
76841         * doc/gnulib-intro.texi: New file.
76842         * doc/gnulib.texi: Include it.
76843
76844 2006-10-21  Bruno Haible  <bruno@clisp.org>
76845
76846         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76847         "Introduction", "Miscellanous Notes", "Particular Modules".
76848
76849 2006-10-21  Bruno Haible  <bruno@clisp.org>
76850
76851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76852         Change mostlyclean-local rule to avoid sh syntax error from bash
76853         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76854
76855 2006-10-23  Jim Meyering  <jim@meyering.net>
76856
76857         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76858         in place of snprintf.
76859
76860         * modules/inttostr (Files): Add lib/uinttostr.c.
76861         * lib/uinttostr.c (inttostr): New file/function.
76862         * lib/inttostr.h (uinttostr): Declare.
76863         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76864         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76865         Add uinttostr.
76866         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76867
76868 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * lib/canonicalize.c (ELOOP): Define if not already defined.
76871         Problem reported by Bruno Haible in
76872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76873
76874 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76877         Problem reported by Perry Smith and Ville Laurikari.
76878
76879         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76880         uses.
76881
76882 2006-10-19  Bruno Haible  <bruno@clisp.org>
76883
76884         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76885         for mingw.
76886
76887 2006-10-19  Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76890         Needed for mingw.
76891
76892 2006-10-19  Bruno Haible  <bruno@clisp.org>
76893
76894         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76895
76896 2006-10-19  Bruno Haible  <bruno@clisp.org>
76897
76898         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76899         it.
76900
76901 2006-10-19  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76904         invocation.
76905
76906 2006-10-19  Bruno Haible  <bruno@clisp.org>
76907
76908         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76909         mountlist by default.
76910
76911 2006-10-16  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/c-strstr.c: Include c-strstr.h.
76914
76915 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76916
76917         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76918         in a slash.
76919
76920 2006-10-18  Bruno Haible  <bruno@clisp.org>
76921
76922         * lib/lock.h [C++]: Wrap definitions in extern "C".
76923
76924 2006-10-18  Bruno Haible  <bruno@clisp.org>
76925
76926         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76927         gl_LIBOBJS list.
76928
76929 2006-10-18  Bruno Haible  <bruno@clisp.org>
76930
76931         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76932
76933 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * lib/xstrtol.h: Include gettext.h.
76936         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76937         Problem reported by Eric Blake.
76938         * modules/xstrtol (Depends-on): Add gettext-h.
76939
76940 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76941
76942         * lib/strftime.c (advance): New macro.
76943         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76944         incomplete type, so you can't add 0 to it.  Problem and patch
76945         reported by Eelco Dolstra for dietlibc.
76946
76947 2006-10-18  Jim Meyering  <jim@meyering.net>
76948
76949         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76950         type for a local, and rename it: s/up/user_proc/.
76951
76952 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76953
76954         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76955         READ_UTMP_USER_PROCESS.
76956         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76957
76958 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76961         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76962
76963 2006-10-17  Eric Blake  <ebb9@byu.net>
76964
76965         * lib/sigprocmask.c (sigprocmask): Fix typo.
76966
76967         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76968
76969         * modules/clean-temp (Makefile.am): Don't add to make output...
76970         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76971         config.h.
76972
76973 2006-10-17  Bruno Haible  <bruno@clisp.org>
76974
76975         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76976         differently if DEFAULT_TEXT_DOMAIN is set.
76977
76978 2006-10-16  Bruno Haible  <bruno@clisp.org>
76979
76980         * lib/clean-temp.c: Include fwriteerror.h.
76981
76982 2006-10-16  Bruno Haible  <bruno@clisp.org>
76983
76984         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76985
76986 2006-10-16  Bruno Haible  <bruno@clisp.org>
76987
76988         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76989         * lib/sigprocmask.h: Include <sys/types.h>.
76990         (sigset_t): Use the system's definition if present.
76991
76992 2006-10-17  Eric Blake  <ebb9@byu.net>
76993
76994         * lib/xvasprintf.c (includes): Assume config.h.
76995         * lib/xasprintf.c (includes): Likewise.
76996
76997 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77000         at least as wide as intmax_t.
77001
77002 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77003
77004         (Imported from Automake.)
77005         * build-aux/gnupload: Update to version 1.1 of directive file.
77006
77007 2006-10-16  Eric Blake  <ebb9@byu.net>
77008
77009         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77010         match Automake 1.10a.
77011
77012 2006-10-14  Bruno Haible  <bruno@clisp.org>
77013
77014         * modules/sigprocmask: New file.
77015         * lib/sigprocmask.h: New file.
77016         * lib/sigprocmask.c: New file.
77017         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77018         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77019         request sigprocmask.o.
77020         (gl_PREREQ_SIGPROCMASK): New macro.
77021         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77022         (Depends-on): Add sigprocmask.
77023         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77024         gt_SIGNALBLOCKING. Test for 'raise' only once.
77025         * lib/fatal-signal.c: Include sigprocmask.h.
77026         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77027         unblock_fatal_signals): Define always.
77028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77029         sigprocmask.
77030
77031 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         Sync from Automake.
77034         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77035         which incorrectly sets the mode of an existing destination
77036         directory.  In some cases the unpatched install-sh could do the
77037         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77038         system.  We hope this is rare in practice, but it's clearly worth
77039         fixing.  Problem reported by Alex Unleashed in
77040         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77041         Also, don't bother to check for -m bugs unless we're using -m;
77042         suggested by Stepan Kasal.
77043
77044 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77045
77046         Sync from Automake.
77047         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77048         `-c' flag, so they appear at the same position as in %FASTDEP%
77049         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77050         which ignores unknown options only after the first non-option.
77051         Bug report against M4 by Nelson H. F. Beebe.
77052
77053 2006-10-13  Jim Meyering  <jim@meyering.net>
77054
77055         Fix a bug in yesterday's change.
77056         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77057         p->fts_statp->st_dev would be used uninitialized.
77058         Ensures that we always call fts_stat on the very first entry.
77059         Miklos Szeredi reported that find -xdev stopped working.
77060
77061 2006-10-12  Bruno Haible  <bruno@clisp.org>
77062
77063         * gnulib-tool (func_get_automake_snippet): Append an automatically
77064         computed EXTRA_DIST augmentation.
77065         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77066         * modules/alloca-opt (Makefile.am): Likewise.
77067         * modules/allocsa (Makefile.am): Likewise.
77068         * modules/arcfour (Makefile.am): Likewise.
77069         * modules/arctwo (Makefile.am): Likewise.
77070         * modules/argmatch (Makefile.am): Likewise.
77071         * modules/argz (Makefile.am): Likewise.
77072         * modules/atexit (Makefile.am): Likewise.
77073         * modules/backupfile (Makefile.am): Likewise.
77074         * modules/byteswap (Makefile.am): Likewise.
77075         * modules/c-strtod (Makefile.am): Likewise.
77076         * modules/c-strtold (Makefile.am): Likewise.
77077         * modules/calloc (Makefile.am): Likewise.
77078         * modules/canon-host (Makefile.am): Likewise.
77079         * modules/canonicalize (Makefile.am): Likewise.
77080         * modules/chdir-long (Makefile.am): Likewise.
77081         * modules/chdir-safer (Makefile.am): Likewise.
77082         * modules/check-version (Makefile.am): Likewise.
77083         * modules/chown (Makefile.am): Likewise.
77084         * modules/cloexec (Makefile.am): Likewise.
77085         * modules/close-stream (Makefile.am): Likewise.
77086         * modules/closeout (Makefile.am): Likewise.
77087         * modules/crc (Makefile.am): Likewise.
77088         * modules/csharpexec (Makefile.am): Likewise.
77089         * modules/cycle-check (Makefile.am): Likewise.
77090         * modules/des (Makefile.am): Likewise.
77091         * modules/dev-ino (Makefile.am): Likewise.
77092         * modules/dirfd (Makefile.am): Likewise.
77093         * modules/dirname (Makefile.am): Likewise.
77094         * modules/dup2 (Makefile.am): Likewise.
77095         * modules/eealloc (Makefile.am): Likewise.
77096         * modules/error (Makefile.am): Likewise.
77097         * modules/euidaccess (Makefile.am): Likewise.
77098         * modules/exclude (Makefile.am): Likewise.
77099         * modules/exitfail (Makefile.am): Likewise.
77100         * modules/fcntl-safer (Makefile.am): Likewise.
77101         * modules/fcntl (Makefile.am): Likewise.
77102         * modules/file-type (Makefile.am): Likewise.
77103         * modules/fileblocks (Makefile.am): Likewise.
77104         * modules/filemode (Makefile.am): Likewise.
77105         * modules/filenamecat (Makefile.am): Likewise.
77106         * modules/fnmatch (Makefile.am): Likewise.
77107         * modules/fopen-safer (Makefile.am): Likewise.
77108         * modules/fpending (Makefile.am): Likewise.
77109         * modules/fprintftime (Makefile.am): Likewise.
77110         * modules/free (Makefile.am): Likewise.
77111         * modules/fsusage (Makefile.am): Likewise.
77112         * modules/ftruncate (Makefile.am): Likewise.
77113         * modules/fts (Makefile.am): Likewise.
77114         * modules/gc-arcfour (Makefile.am): Likewise.
77115         * modules/gc-des (Makefile.am): Likewise.
77116         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77117         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77118         * modules/gc-md4 (Makefile.am): Likewise.
77119         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77120         * modules/gc-sha1 (Makefile.am): Likewise.
77121         * modules/gc (Makefile.am): Likewise.
77122         * modules/getaddrinfo (Makefile.am): Likewise.
77123         * modules/getcwd (Makefile.am): Likewise.
77124         * modules/getdelim (Makefile.am): Likewise.
77125         * modules/getdomainname (Makefile.am): Likewise.
77126         * modules/getgroups (Makefile.am): Likewise.
77127         * modules/gethostname (Makefile.am): Likewise.
77128         * modules/gethrxtime (Makefile.am): Likewise.
77129         * modules/getline (Makefile.am): Likewise.
77130         * modules/getloadavg (Makefile.am): Likewise.
77131         * modules/getlogin_r (Makefile.am): Likewise.
77132         * modules/getndelim2 (Makefile.am): Likewise.
77133         * modules/getopt (Makefile.am): Likewise.
77134         * modules/getpagesize (Makefile.am): Likewise.
77135         * modules/getpass-gnu (Makefile.am): Likewise.
77136         * modules/getpass (Makefile.am): Likewise.
77137         * modules/getsubopt (Makefile.am): Likewise.
77138         * modules/gettime (Makefile.am): Likewise.
77139         * modules/gettimeofday (Makefile.am): Likewise.
77140         * modules/getugroups (Makefile.am): Likewise.
77141         * modules/getusershell (Makefile.am): Likewise.
77142         * modules/glob (Makefile.am): Likewise.
77143         * modules/group-member (Makefile.am): Likewise.
77144         * modules/hard-locale (Makefile.am): Likewise.
77145         * modules/hash (Makefile.am): Likewise.
77146         * modules/hmac-md5 (Makefile.am): Likewise.
77147         * modules/hmac-sha1 (Makefile.am): Likewise.
77148         * modules/human (Makefile.am): Likewise.
77149         * modules/idcache (Makefile.am): Likewise.
77150         * modules/imaxabs (Makefile.am): Likewise.
77151         * modules/imaxdiv (Makefile.am): Likewise.
77152         * modules/inet_ntop (Makefile.am): Likewise.
77153         * modules/inet_pton (Makefile.am): Likewise.
77154         * modules/intprops (Makefile.am): Likewise.
77155         * modules/inttostr (Makefile.am): Likewise.
77156         * modules/inttypes (Makefile.am): Likewise.
77157         * modules/isapipe (Makefile.am): Likewise.
77158         * modules/javaversion (Makefile.am): Likewise.
77159         * modules/lchmod (Makefile.am): Likewise.
77160         * modules/lchown (Makefile.am): Likewise.
77161         * modules/localcharset (Makefile.am): Likewise.
77162         * modules/long-options (Makefile.am): Likewise.
77163         * modules/lstat (Makefile.am): Likewise.
77164         * modules/malloc (Makefile.am): Likewise.
77165         * modules/mathl (Makefile.am): Likewise.
77166         * modules/mbchar (Makefile.am): Likewise.
77167         * modules/md2 (Makefile.am): Likewise.
77168         * modules/md4 (Makefile.am): Likewise.
77169         * modules/md5 (Makefile.am): Likewise.
77170         * modules/memcasecmp (Makefile.am): Likewise.
77171         * modules/memchr (Makefile.am): Likewise.
77172         * modules/memcmp (Makefile.am): Likewise.
77173         * modules/memcoll (Makefile.am): Likewise.
77174         * modules/memcpy (Makefile.am): Likewise.
77175         * modules/memmem (Makefile.am): Likewise.
77176         * modules/memmove (Makefile.am): Likewise.
77177         * modules/mempcpy (Makefile.am): Likewise.
77178         * modules/memrchr (Makefile.am): Likewise.
77179         * modules/memset (Makefile.am): Likewise.
77180         * modules/memxor (Makefile.am): Likewise.
77181         * modules/mkancesdirs (Makefile.am): Likewise.
77182         * modules/mkdir-p (Makefile.am): Likewise.
77183         * modules/mkdir (Makefile.am): Likewise.
77184         * modules/mkdtemp (Makefile.am): Likewise.
77185         * modules/mkstemp (Makefile.am): Likewise.
77186         * modules/mktime (Makefile.am): Likewise.
77187         * modules/modechange (Makefile.am): Likewise.
77188         * modules/mountlist (Makefile.am): Likewise.
77189         * modules/nanosleep (Makefile.am): Likewise.
77190         * modules/obstack (Makefile.am): Likewise.
77191         * modules/openat (Makefile.am): Likewise.
77192         * modules/pagealign_alloc (Makefile.am): Likewise.
77193         * modules/pathmax (Makefile.am): Likewise.
77194         * modules/physmem (Makefile.am): Likewise.
77195         * modules/poll (Makefile.am): Likewise.
77196         * modules/posixtm (Makefile.am): Likewise.
77197         * modules/posixver (Makefile.am): Likewise.
77198         * modules/putenv (Makefile.am): Likewise.
77199         * modules/quote (Makefile.am): Likewise.
77200         * modules/quotearg (Makefile.am): Likewise.
77201         * modules/raise (Makefile.am): Likewise.
77202         * modules/read-file (Makefile.am): Likewise.
77203         * modules/readline (Makefile.am): Likewise.
77204         * modules/readlink (Makefile.am): Likewise.
77205         * modules/readtokens (Makefile.am): Likewise.
77206         * modules/readutmp (Makefile.am): Likewise.
77207         * modules/realloc (Makefile.am): Likewise.
77208         * modules/regex (Makefile.am): Likewise.
77209         * modules/rename-dest-slash (Makefile.am): Likewise.
77210         * modules/rename (Makefile.am): Likewise.
77211         * modules/rijndael (Makefile.am): Likewise.
77212         * modules/rmdir (Makefile.am): Likewise.
77213         * modules/rpmatch (Makefile.am): Likewise.
77214         * modules/safe-read (Makefile.am): Likewise.
77215         * modules/safe-write (Makefile.am): Likewise.
77216         * modules/same-inode (Makefile.am): Likewise.
77217         * modules/same (Makefile.am): Likewise.
77218         * modules/save-cwd (Makefile.am): Likewise.
77219         * modules/savedir (Makefile.am): Likewise.
77220         * modules/setenv (Makefile.am): Likewise.
77221         * modules/settime (Makefile.am): Likewise.
77222         * modules/sha1 (Makefile.am): Likewise.
77223         * modules/sig2str (Makefile.am): Likewise.
77224         * modules/snprintf (Makefile.am): Likewise.
77225         * modules/stat-macros (Makefile.am): Likewise.
77226         * modules/stat-time (Makefile.am): Likewise.
77227         * modules/stdbool (Makefile.am): Likewise.
77228         * modules/stdint (Makefile.am): Likewise.
77229         * modules/stdlib-safer (Makefile.am): Likewise.
77230         * modules/stpcpy (Makefile.am): Likewise.
77231         * modules/stpncpy (Makefile.am): Likewise.
77232         * modules/strcase (Makefile.am): Likewise.
77233         * modules/strcasestr (Makefile.am): Likewise.
77234         * modules/strchrnul (Makefile.am): Likewise.
77235         * modules/strcspn (Makefile.am): Likewise.
77236         * modules/strdup (Makefile.am): Likewise.
77237         * modules/strerror (Makefile.am): Likewise.
77238         * modules/strftime (Makefile.am): Likewise.
77239         * modules/strndup (Makefile.am): Likewise.
77240         * modules/strnlen (Makefile.am): Likewise.
77241         * modules/strpbrk (Makefile.am): Likewise.
77242         * modules/strsep (Makefile.am): Likewise.
77243         * modules/strstr (Makefile.am): Likewise.
77244         * modules/strtod (Makefile.am): Likewise.
77245         * modules/strtoimax (Makefile.am): Likewise.
77246         * modules/strtok_r (Makefile.am): Likewise.
77247         * modules/strtol (Makefile.am): Likewise.
77248         * modules/strtoll (Makefile.am): Likewise.
77249         * modules/strtoul (Makefile.am): Likewise.
77250         * modules/strtoull (Makefile.am): Likewise.
77251         * modules/strtoumax (Makefile.am): Likewise.
77252         * modules/strverscmp (Makefile.am): Likewise.
77253         * modules/sys_socket (Makefile.am): Likewise.
77254         * modules/sys_stat (Makefile.am): Likewise.
77255         * modules/sysexits (Makefile.am): Likewise.
77256         * modules/time_r (Makefile.am): Likewise.
77257         * modules/timegm (Makefile.am): Likewise.
77258         * modules/timespec (Makefile.am): Likewise.
77259         * modules/tmpfile-safer (Makefile.am): Likewise.
77260         * modules/trim (Makefile.am): Likewise.
77261         * modules/unistd-safer (Makefile.am): Likewise.
77262         * modules/unlinkdir (Makefile.am): Likewise.
77263         * modules/unlocked-io (Makefile.am): Likewise.
77264         * modules/userspec (Makefile.am): Likewise.
77265         * modules/utime (Makefile.am): Likewise.
77266         * modules/utimecmp (Makefile.am): Likewise.
77267         * modules/utimens (Makefile.am): Likewise.
77268         * modules/vasnprintf (Makefile.am): Likewise.
77269         * modules/vasprintf (Makefile.am): Likewise.
77270         * modules/vsnprintf (Makefile.am): Likewise.
77271         * modules/xalloc (Makefile.am): Likewise.
77272         * modules/xgetcwd (Makefile.am): Likewise.
77273         * modules/xnanosleep (Makefile.am): Likewise.
77274         * modules/xreadlink (Makefile.am): Likewise.
77275         * modules/xstrtod (Makefile.am): Likewise.
77276         * modules/xstrtol (Makefile.am): Likewise.
77277         * modules/xstrtold (Makefile.am): Likewise.
77278         * modules/yesno (Makefile.am): Likewise.
77279         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77280
77281 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * modules/error (Makefile.am): Distribute files through
77284         EXTRA_DIST, not lib_SOURCES.
77285
77286 2006-10-12  Eric Blake  <ebb9@byu.net>
77287
77288         * modules/error (Makefile.am): Distribute files in /lib.
77289         * modules/obstack (Makefile.am): Likewise.
77290
77291 2006-10-12  Bruno Haible  <bruno@clisp.org>
77292
77293         * modules/acl (Makefile.am): Distribute all files in lib/ through
77294         EXTRA_DIST.
77295         * modules/arcfour (Makefile.am): Likewise.
77296         * modules/arctwo (Makefile.am): Likewise.
77297         * modules/argmatch (Makefile.am): Likewise.
77298         * modules/argz (Makefile.am): Likewise.
77299         * modules/atexit (Makefile.am): Likewise.
77300         * modules/backupfile (Makefile.am): Likewise.
77301         * modules/c-strtod (Makefile.am): Likewise.
77302         * modules/c-strtold (Makefile.am): Likewise.
77303         * modules/calloc (Makefile.am): Likewise.
77304         * modules/canon-host (Makefile.am): Likewise.
77305         * modules/canonicalize (Makefile.am): Likewise.
77306         * modules/chdir-long (Makefile.am): Likewise.
77307         * modules/chdir-safer (Makefile.am): Likewise.
77308         * modules/check-version (Makefile.am): Likewise.
77309         * modules/chown (Makefile.am): Likewise.
77310         * modules/cloexec (Makefile.am): Likewise.
77311         * modules/close-stream (Makefile.am): Likewise.
77312         * modules/closeout (Makefile.am): Likewise.
77313         * modules/crc (Makefile.am): Likewise.
77314         * modules/cycle-check (Makefile.am): Likewise.
77315         * modules/des (Makefile.am): Likewise.
77316         * modules/dirfd (Makefile.am): Likewise.
77317         * modules/dirname (Makefile.am): Likewise.
77318         * modules/dup2 (Makefile.am): Likewise.
77319         * modules/euidaccess (Makefile.am): Likewise.
77320         * modules/exclude (Makefile.am): Likewise.
77321         * modules/exitfail (Makefile.am): Likewise.
77322         * modules/fcntl-safer (Makefile.am): Likewise.
77323         * modules/file-type (Makefile.am): Likewise.
77324         * modules/fileblocks (Makefile.am): Likewise.
77325         * modules/filemode (Makefile.am): Likewise.
77326         * modules/filenamecat (Makefile.am): Likewise.
77327         * modules/fnmatch (Makefile.am): Likewise.
77328         * modules/fopen-safer (Makefile.am): Likewise.
77329         * modules/fpending (Makefile.am): Likewise.
77330         * modules/fprintftime (Makefile.am): Likewise.
77331         * modules/free (Makefile.am): Likewise.
77332         * modules/fsusage (Makefile.am): Likewise.
77333         * modules/ftruncate (Makefile.am): Likewise.
77334         * modules/fts (Makefile.am): Likewise.
77335         * modules/gc (Makefile.am): Likewise.
77336         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77337         * modules/getaddrinfo (Makefile.am): Likewise.
77338         * modules/getcwd (Makefile.am): Likewise.
77339         * modules/getdelim (Makefile.am): Likewise.
77340         * modules/getdomainname (Makefile.am): Likewise.
77341         * modules/getgroups (Makefile.am): Likewise.
77342         * modules/gethostname (Makefile.am): Likewise.
77343         * modules/gethrxtime (Makefile.am): Likewise.
77344         * modules/getline (Makefile.am): Likewise.
77345         * modules/getloadavg (Makefile.am): Likewise.
77346         * modules/getlogin_r (Makefile.am): Likewise.
77347         * modules/getopt (Makefile.am): Likewise.
77348         * modules/getpass (Makefile.am): Likewise.
77349         * modules/getpass-gnu (Makefile.am): Likewise.
77350         * modules/getsubopt (Makefile.am): Likewise.
77351         * modules/gettime (Makefile.am): Likewise.
77352         * modules/gettimeofday (Makefile.am): Likewise.
77353         * modules/getugroups (Makefile.am): Likewise.
77354         * modules/getusershell (Makefile.am): Likewise.
77355         * modules/glob (Makefile.am): Likewise.
77356         * modules/group-member (Makefile.am): Likewise.
77357         * modules/hard-locale (Makefile.am): Likewise.
77358         * modules/hash (Makefile.am): Likewise.
77359         * modules/hmac-md5 (Makefile.am): Likewise.
77360         * modules/hmac-sha1 (Makefile.am): Likewise.
77361         * modules/human (Makefile.am): Likewise.
77362         * modules/idcache (Makefile.am): Likewise.
77363         * modules/imaxabs (Makefile.am): Likewise.
77364         * modules/imaxdiv (Makefile.am): Likewise.
77365         * modules/inet_ntop (Makefile.am): Likewise.
77366         * modules/inet_pton (Makefile.am): Likewise.
77367         * modules/inttostr (Makefile.am): Likewise.
77368         * modules/isapipe (Makefile.am): Likewise.
77369         * modules/lchown (Makefile.am): Likewise.
77370         * modules/long-options (Makefile.am): Likewise.
77371         * modules/lstat (Makefile.am): Likewise.
77372         * modules/malloc (Makefile.am): Likewise.
77373         * modules/mathl (Makefile.am): Likewise.
77374         * modules/mbchar (Makefile.am): Likewise.
77375         * modules/md2 (Makefile.am): Likewise.
77376         * modules/md4 (Makefile.am): Likewise.
77377         * modules/md5 (Makefile.am): Likewise.
77378         * modules/memcasecmp (Makefile.am): Likewise.
77379         * modules/memchr (Makefile.am): Likewise.
77380         * modules/memcmp (Makefile.am): Likewise.
77381         * modules/memcoll (Makefile.am): Likewise.
77382         * modules/memcpy (Makefile.am): Likewise.
77383         * modules/memmem (Makefile.am): Likewise.
77384         * modules/memmove (Makefile.am): Likewise.
77385         * modules/mempcpy (Makefile.am): Likewise.
77386         * modules/memrchr (Makefile.am): Likewise.
77387         * modules/memset (Makefile.am): Likewise.
77388         * modules/memxor (Makefile.am): Likewise.
77389         * modules/mkancesdirs (Makefile.am): Likewise.
77390         * modules/mkdir (Makefile.am): Likewise.
77391         * modules/mkdir-p (Makefile.am): Likewise.
77392         * modules/mkdtemp (Makefile.am): Likewise.
77393         * modules/mkstemp (Makefile.am): Likewise.
77394         * modules/mktime (Makefile.am): Likewise.
77395         * modules/modechange (Makefile.am): Likewise.
77396         * modules/mountlist (Makefile.am): Likewise.
77397         * modules/nanosleep (Makefile.am): Likewise.
77398         * modules/openat (Makefile.am): Likewise.
77399         * modules/pagealign_alloc (Makefile.am): Likewise.
77400         * modules/physmem (Makefile.am): Likewise.
77401         * modules/poll (Makefile.am): Likewise.
77402         * modules/posixtm (Makefile.am): Likewise.
77403         * modules/posixver (Makefile.am): Likewise.
77404         * modules/putenv (Makefile.am): Likewise.
77405         * modules/quote (Makefile.am): Likewise.
77406         * modules/quotearg (Makefile.am): Likewise.
77407         * modules/raise (Makefile.am): Likewise.
77408         * modules/read-file (Makefile.am): Likewise.
77409         * modules/readline (Makefile.am): Likewise.
77410         * modules/readlink (Makefile.am): Likewise.
77411         * modules/readtokens (Makefile.am): Likewise.
77412         * modules/readutmp (Makefile.am): Likewise.
77413         * modules/realloc (Makefile.am): Likewise.
77414         * modules/regex (Makefile.am): Likewise.
77415         * modules/rename (Makefile.am): Likewise.
77416         * modules/rename-dest-slash (Makefile.am): Likewise.
77417         * modules/rijndael (Makefile.am): Likewise.
77418         * modules/rmdir (Makefile.am): Likewise.
77419         * modules/rpmatch (Makefile.am): Likewise.
77420         * modules/safe-read (Makefile.am): Likewise.
77421         * modules/safe-write (Makefile.am): Likewise.
77422         * modules/same (Makefile.am): Likewise.
77423         * modules/save-cwd (Makefile.am): Likewise.
77424         * modules/savedir (Makefile.am): Likewise.
77425         * modules/setenv (Makefile.am): Likewise.
77426         * modules/settime (Makefile.am): Likewise.
77427         * modules/sha1 (Makefile.am): Likewise.
77428         * modules/sig2str (Makefile.am): Likewise.
77429         * modules/snprintf (Makefile.am): Likewise.
77430         * modules/stdlib-safer (Makefile.am): Likewise.
77431         * modules/stpcpy (Makefile.am): Likewise.
77432         * modules/stpncpy (Makefile.am): Likewise.
77433         * modules/strcase (Makefile.am): Likewise.
77434         * modules/strcasestr (Makefile.am): Likewise.
77435         * modules/strchrnul (Makefile.am): Likewise.
77436         * modules/strcspn (Makefile.am): Likewise.
77437         * modules/strdup (Makefile.am): Likewise.
77438         * modules/strerror (Makefile.am): Likewise.
77439         * modules/strftime (Makefile.am): Likewise.
77440         * modules/strndup (Makefile.am): Likewise.
77441         * modules/strnlen (Makefile.am): Likewise.
77442         * modules/strpbrk (Makefile.am): Likewise.
77443         * modules/strsep (Makefile.am): Likewise.
77444         * modules/strstr (Makefile.am): Likewise.
77445         * modules/strtod (Makefile.am): Likewise.
77446         * modules/strtoimax (Makefile.am): Likewise.
77447         * modules/strtok_r (Makefile.am): Likewise.
77448         * modules/strtol (Makefile.am): Likewise.
77449         * modules/strtoll (Makefile.am): Likewise.
77450         * modules/strtoul (Makefile.am): Likewise.
77451         * modules/strtoull (Makefile.am): Likewise.
77452         * modules/strtoumax (Makefile.am): Likewise.
77453         * modules/strverscmp (Makefile.am): Likewise.
77454         * modules/time_r (Makefile.am): Likewise.
77455         * modules/timegm (Makefile.am): Likewise.
77456         * modules/tmpfile-safer (Makefile.am): Likewise.
77457         * modules/unistd-safer (Makefile.am): Likewise.
77458         * modules/unlinkdir (Makefile.am): Likewise.
77459         * modules/userspec (Makefile.am): Likewise.
77460         * modules/utime (Makefile.am): Likewise.
77461         * modules/utimecmp (Makefile.am): Likewise.
77462         * modules/utimens (Makefile.am): Likewise.
77463         * modules/vasnprintf (Makefile.am): Likewise.
77464         * modules/vasprintf (Makefile.am): Likewise.
77465         * modules/vsnprintf (Makefile.am): Likewise.
77466         * modules/xalloc (Makefile.am): Likewise.
77467         * modules/xgetcwd (Makefile.am): Likewise.
77468         * modules/xnanosleep (Makefile.am): Likewise.
77469         * modules/xreadlink (Makefile.am): Likewise.
77470         * modules/xstrtod (Makefile.am): Likewise.
77471         * modules/xstrtol (Makefile.am): Likewise.
77472         * modules/xstrtold (Makefile.am): Likewise.
77473         * modules/yesno (Makefile.am): Likewise.
77474
77475 2006-10-12  Jim Meyering  <jim@meyering.net>
77476
77477         * m4/getloadavg.m4: Revert the change below.
77478
77479         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77480         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77481         fail with a symlink, which is what coreutils' ./bootstrap now
77482         creates by default.
77483
77484 2006-10-12  Bruno Haible  <bruno@clisp.org>
77485
77486         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77487         mingw.
77488         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77489         MSVC and mingw explicitly.
77490
77491 2006-10-11  Simon Josefsson  <jas@extundo.com>
77492             Bruno Haible  <bruno@clisp.org>
77493
77494         Add support for multiple gnulib-tool invocations in the scope of a
77495         single configure.ac file.
77496         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77497         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77498         with the same contents as the _LIBADD variable.
77499         (func_emit_initmacro_start, func_emit_initmacro_end,
77500         func_emit_initmacro_done): New functions.
77501         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77502         gl_LIBOBJS and gl_LTLIBOBJS.
77503
77504 2006-10-11  Bruno Haible  <bruno@clisp.org>
77505
77506         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77507         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77508         autoreconf. Instead, invoke autopoint explicitly but move back the
77509         *.m4 files from gnulib.
77510
77511 2006-10-11  Bruno Haible  <bruno@clisp.org>
77512
77513         * gnulib-tool (func_usage): Make module names after --create-testdir
77514         optional.
77515         (func_create_testdir): If no module was specified, use nearly all
77516         modules.
77517
77518 2006-10-12  Jim Meyering  <jim@meyering.net>
77519
77520         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77521         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77522         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77523         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77524         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77525         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77526         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77527         (fts_set_stat_required): New function.
77528         (fts_open): Defer the calls to fts_stat, if possible or requested.
77529         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77530         into fts_stat itself.
77531         (fts_read): Perform any required (deferred) fts_stat call.
77532         (fts_build): Likewise, for the directory we're about to open and read.
77533         In the readdir loop, carefully decide whether each entry will require
77534         an eventual call to fts_stat, using dirent.d_type info if available.
77535         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77536         a command line argument into this function.  Update all callers.
77537         Map a return value of FTS_DOT to FTS_D for a command line argument.
77538         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77539         Thanks to Miklos Szeredi for his tenacity and for the initial
77540         bug report about "find" failing on a FUSE-based file system.
77541
77542         * lib/fts.c (fts_open): Use consistent indentation.
77543
77544 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77547         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77548         reported by Jim Meyering.  All uses of cache variables renamed
77549         to match Autoconf's.
77550         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77551         the other one.
77552
77553         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77554         Fix misspelling in diagnostic.
77555
77556 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77559         defined.  Problem reported by Matthew Woehlke.
77560
77561         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77562         Add support for Tandem NonStop R series.
77563         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77564         Use new macro.
77565
77566         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77567         (has_trailing_slash): Omit size arg; all callers changed.
77568         Omit 'inline', since it doesn't help performance and we'd
77569         need to configure it.
77570         Don't count //, ///, etc. as having a trailing slash.
77571         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77572         (rpl_rename_dest_slash): On failure, use rename's errno rather
77573         than (in some cases) an incorrect or junk errno.
77574         Simplify code by removing need to compute length; this does
77575         cause it to make two passes instead of one over the file name,
77576         but it's worth it.
77577
77578         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77579         change, since Autoconf's version may no longer be appropriate now
77580         that we are using CVS Autoconf's version.  Add support for Tandem.
77581
77582 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77583             Bruno Haible  <bruno@clisp.org>
77584
77585         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77586         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77587         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77588         gl_AC_TYPE_LONG_LONG.
77589
77590         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77591         instead of HAVE_LONG_LONG.
77592         * lib/printf-args.c (printf_fetchargs): Likewise.
77593         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77594         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77596         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77597         gl_AC_TYPE_LONG_LONG.
77598
77599 2006-10-11  Bruno Haible  <bruno@clisp.org>
77600
77601         * m4/longlong.m4: Add comments.
77602         * m4/ulonglong.m4: Likewise.
77603
77604 2006-10-10  Bruno Haible  <bruno@clisp.org>
77605
77606         Make it possible to #define stpcpy, strdup to aliases.
77607         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77608         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77609
77610 2006-10-10  Bruno Haible  <bruno@clisp.org>
77611
77612         Make it possible to #define gcd to an alias.
77613         * lib/gcd.c: Include config.h.
77614
77615 2006-10-10  Bruno Haible  <bruno@clisp.org>
77616
77617         Make it possible to #define c_isascii to an alias.
77618         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77619         defined. Undefine the macros before defining them, to avoid gcc
77620         warnings.
77621         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77622         define NO_C_CTYPE_MACROS early.
77623
77624 2006-10-10  Bruno Haible  <bruno@clisp.org>
77625
77626         Make it possible to #define set_program_name to an alias.
77627         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77628         ENABLE_RELOCATABLE early.
77629
77630 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77633         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77634         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77635         More generally, don't assume that 64-bit signed int is available
77636         if unsigned int is, and vice versa.
77637         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77638         unsigned symbols, not on their signed counterparts.
77639         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77640         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77641         (UINT64_C, UINTMAX_C):
77642         Likewise.
77643         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77644         unsigned counterparts.
77645         (Have_long_long, Unsigned): New macros.
77646         (Int): Renamed from INT.
77647         (strtoimax): Use the new macros.
77648         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77649         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77650         * modules/inttypes (inttypes.h): Substitute
77651         HAVE_UNSIGNED_LONG_LONG_INT.
77652         * modules/stdint (stdint.h): Likewise.
77653         (Files): Add m4/ulonglong.m4.
77654
77655 2006-10-10  Bruno Haible  <bruno@clisp.org>
77656
77657         Fix a gcc -Wshadow warning.
77658         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77659         to 'bucket'.
77660         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77661         gl_linked_indexof_from_to): Likewise.
77662         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77663         Likewise.
77664         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77665         Likewise.
77666         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77667         Reported by Eric Blake.
77668
77669 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77672         for NetBSD.  Problem reported by Bruno Haible.
77673
77674 2006-10-09  Jim Meyering  <jim@meyering.net>
77675
77676         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77677         Patch from Bruno Haible.
77678
77679 2006-10-09  Jim Meyering  <jim@meyering.net>
77680
77681         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77682         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77683         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77684
77685 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         Don't include <config.h> twice; this doesn't work in some cases,
77688         e.g., when config.h has "#define intmax_t long long int" and
77689         we include <config.h>, <inttypes.h>, <config.h> in that order.
77690         Problem reported by Matthew Woehlke in:
77691         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77692         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77693         * lib/fts-cycle.c: Don't include config.h.
77694         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77695         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77696         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77697         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77698         inttypes.h.
77699         * lib/xstrtoumax.c: Likewise.
77700         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77701         __strtol and the like, so that this module is more like its siblings.
77702         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77703         Remove; no longer needed now that we assume gnulib inttypes.h.
77704
77705 2006-10-08  Bruno Haible  <bruno@clisp.org>
77706
77707         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77708         option.
77709
77710 2006-10-07  Jim Meyering  <jim@meyering.net>
77711
77712         * modules/inttypes (inttypes.h): Revert what seems to have been
77713         an inadvertent part of today's change: use "|", not "/" in the
77714         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77715
77716 2006-10-07  Bruno Haible  <bruno@clisp.org>
77717
77718         * modules/sublist: New file.
77719
77720 2006-10-07  Bruno Haible  <bruno@clisp.org>
77721
77722         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77723         * modules/argz (argz.h): Likewise.
77724         * modules/arpa_inet (arpa/inet.h): Likewise.
77725         * modules/byteswap (byteswap.h): Likewise.
77726         * modules/configmake (configmake.h): Likewise.
77727         * modules/fcntl (fcntl.h): Likewise.
77728         * modules/fnmatch (fnmatch.h): Likewise.
77729         * modules/getopt (getopt.h): Likewise.
77730         * modules/glob (glob.h): Likewise.
77731         * modules/inttypes (inttypes.h): Likewise.
77732         * modules/netinet_in (netinet/in.h): Likewise.
77733         * modules/poll (poll.h): Likewise.
77734         * modules/stdbool (stdbool.h): Likewise.
77735         * modules/stdint (stdint.h): Likewise.
77736         * modules/sys_select (sys/select.h): Likewise.
77737         * modules/sys_socket (sys/socket.h): Likewise.
77738         * modules/sys_stat (sys/stat.h): Likewise.
77739         * modules/sysexits (sysexits.h): Likewise.
77740         * modules/unistd (unistd.h): Likewise.
77741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77742         Add a "DO NOT EDIT" comment to the generated file.
77743         (func_import): Likewise for gnulib-comp.m4.
77744
77745 2006-10-07  Bruno Haible  <bruno@clisp.org>
77746
77747         * lib/gl_sublist.h: New file.
77748         * lib/gl_sublist.c: New file.
77749
77750 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77753         name (relative to the original working directory) and the file
77754         name component (relative to the temporary working directory).  All
77755         callers changed.
77756         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77757         * lib/mkdir-p.c (make_dir_parents): Likewise.
77758         * lib/mkdir-p.h (make_dir_parents): Likewise.
77759
77760 2006-10-06  Eric Blake  <ebb9@byu.net>
77761
77762         Define several macros for use by the clean-temp module.
77763         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77764         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77765         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77766
77767         * lib/clean-temp.h (close_stream_temp): New declaration.
77768         * lib/clean-temp.c (includes): Pull in headers according to what
77769         other modules are in use.
77770         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77771
77772 2006-10-06  Bruno Haible  <bruno@clisp.org>
77773
77774         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77775         instead of fopen, fwriteerror.
77776
77777 2006-10-06  Bruno Haible  <bruno@clisp.org>
77778
77779         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77780         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77781         int.
77782         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77783         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77784         Return an error indicator.
77785         Suggested by Eric Blake.
77786
77787 2006-10-06  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77790         Reported by Eric Blake.
77791
77792 2006-10-06  Bruno Haible  <bruno@clisp.org>
77793
77794         * modules/closeout (Description): Mention stderr too.
77795
77796 2006-10-06  Bruno Haible  <bruno@clisp.org>
77797         and Paul Eggert  <eggert@cs.ucla.edu>
77798
77799         * lib/closeout.c (close_stdout): Also close stderr.
77800         * lib/closeout.h: Update comment.
77801
77802 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77805         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77806         * lib/dirchownmod.c: Include lchown.h.
77807         * lib/lchown.c: Don't include files that lchown.h now includes.
77808         Don't declare chown, since lchown.h now does that.
77809         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77810         (lchown): Define to rpl_chown if lchown is declared but
77811         does not exist.  Declare using a prototype if lchown is not
77812         declared.  Add a copyright notice.
77813         * lib/mkstemp.h: Include <unistd.h>.
77814         * lib/openat.c: Include lchown.h.
77815
77816         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77817         we now test for that separately.
77818         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77819         rather than O_NOFOLLOW, when testing whether it's possible to
77820         avoid a race condition reliably.
77821         * lib/savewd.c (savewd_chdir): Likewise.
77822
77823         Remove macros that are no longer needed now that stdint.h is
77824         reliable.
77825         * lib/fsusage.c (UINTMAX_MAX): Remove.
77826         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77827         * lib/utimecmp.c (SIZE_MAX): Remove.
77828
77829         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77830
77831         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77832         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77833         O_NOATIME works.
77834
77835 2006-10-05  Bruno Haible  <bruno@clisp.org>
77836
77837         * lib/gl_list.h (gl_sortedlist_search_from_to,
77838         gl_sortedlist_indexof_from_to): New declarations.
77839         (gl_list_implementation): New fields sortedlist_search_from_to,
77840         sortedlist_indexof_from_to.
77841         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77842         inline functions.
77843         * lib/gl_list.c (gl_sortedlist_search_from_to,
77844         gl_sortedlist_indexof_from_to): New functions.
77845         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77846         function.
77847         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77848         (gl_array_sortedlist_search_from_to): New function.
77849         (gl_array_list_implementation): Update.
77850         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77851         function.
77852         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77853         (gl_carray_sortedlist_search_from_to): New function.
77854         (gl_carray_list_implementation): Update.
77855         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77856         gl_linked_sortedlist_indexof_from_to): New functions.
77857         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77858         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77859         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77860         gl_tree_sortedlist_indexof_from_to): New functions.
77861         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77862         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77863         Update.
77864         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77865         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77866         Update.
77867
77868 2006-10-05  Bruno Haible  <bruno@clisp.org>
77869
77870         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77871         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77872         (struct gl_list_implementation): Add fields search_from_to,
77873         indexof_from_to. Remove fields search, indexof.
77874         (gl_list_search): Use the search_from_to method.
77875         (gl_list_search_from, gl_list_search_from_to): New functions.
77876         (gl_list_indexof): Use the indexof_from_to method.
77877         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77878         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77879         (gl_list_search_from, gl_list_search_from_to): New functions.
77880         (gl_list_indexof): Use the indexof_from_to method.
77881         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77882         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77883         gl_array_indexof. Add start_index, end_index arguments.
77884         (gl_array_search_from_to): Renamed from gl_array_search. Add
77885         start_index, end_index arguments.
77886         (gl_array_remove, gl_array_list_implementation): Update.
77887         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77888         gl_carray_indexof. Add start_index, end_index arguments.
77889         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77890         start_index, end_index arguments.
77891         (gl_carray_remove, gl_carray_list_implementation): Update.
77892         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77893         gl_linked_search. Add start_index, end_index arguments.
77894         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77895         start_index, end_index arguments.
77896         (gl_linked_remove): Update.
77897         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77898         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77899         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77900         field to 'size_t'.
77901         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77902         gl_tree_search. Add start_index, end_index arguments.
77903         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77904         start_index, end_index arguments.
77905         (gl_tree_remove): Update.
77906         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77907         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77908         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77909         function.
77910         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77911         gl_tree_search. Add start_index, end_index arguments.
77912         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77913         start_index, end_index arguments.
77914         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77915         Update.
77916         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77917
77918 2006-10-05  Bruno Haible  <bruno@clisp.org>
77919
77920         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77921
77922         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77923         fwriteerror_temp): New declarations.
77924         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77925         (descriptors): New variable.
77926         (cleanup): First, close the descriptors.
77927         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77928         fclose_temp, fwriteerror_temp): New functions.
77929
77930 2006-10-04  Jim Meyering  <jim@meyering.net>
77931
77932         * lib/fts.c (fts_open): Tiny comment change.
77933
77934 2006-10-04  Bruno Haible  <bruno@clisp.org>
77935
77936         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77937         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77938         gl_LOCK_BODY.
77939         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77940         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77941         gl_LOCK_EARLY_BODY.
77942         (gl_LOCK): Require gl_LOCK_BODY.
77943
77944 2006-10-04  Bruno Haible  <bruno@clisp.org>
77945
77946         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77947         (gl_oset_search_atleast): New declaration.
77948         (struct gl_oset_implementation): Add field 'search_atleast'.
77949         (gl_oset_search_atleast): New inline function.
77950         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77951         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77952         (gl_array_oset_implementation): Update.
77953         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77954         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77955         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77956
77957 2006-10-04  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77960
77961 2006-10-03  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77964         from gl_avltreehash_list_implementation.
77965
77966 2006-10-03  Bruno Haible  <bruno@clisp.org>
77967
77968         * lib/gl_oset.c (gl_oset_add): Fix return type.
77969
77970 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77971
77972         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77973
77974 2006-10-02  Eric Blake  <ebb9@byu.net>
77975
77976         * modules/strnlen (Depends-on): Add extensions.
77977
77978 2006-10-02  Eric Blake  <ebb9@byu.net>
77979
77980         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77981         definition in 2.60+.
77982
77983 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77984
77985         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77986         checks.
77987
77988 2006-10-02  Bruno Haible  <bruno@clisp.org>
77989
77990         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77991         to the AUTOMAKE_OPTIONS.
77992         Reported by Jim Meyering.
77993
77994 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         Work around bug in Solaris 10 /proc file system:
77997         /proc/self/fd/NNN/.. isn't the parent directory of
77998         the directory whose file descriptor is NNN.  This needs to
77999         be worked around at run time, not compile time, since a
78000         program might be built on Solaris 8, where things work, and
78001         run on Solaris 10.
78002         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78003         to use the following interface instead:
78004         (OPENAT_BUFFER_SIZE): New macro.
78005         (openat_proc_name): New function.
78006         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78007         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78008         Likewise.
78009         * lib/openat-proc.c: New file.
78010         * modules/openat (Files): Add lib/openat-proc.c.
78011         (Depends-on): Add same-inode, stdbool.
78012         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78013
78014 2006-09-29  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78017         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78018         argument. Set stdout_closed before testing for ferror, not after.
78019         (fwriteerror, fwriteerror_no_ebadf): New functions.
78020
78021 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78022
78023         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78024
78025 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78026
78027         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78028         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78029
78030 2006-09-28  Jim Meyering  <jim@meyering.net>
78031
78032         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78033         Include <unistd.h>.
78034
78035 2006-09-28  Bruno Haible  <bruno@clisp.org>
78036
78037         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78038         * modules/linkedhash-list (Depends-on): Likewise.
78039         * modules/rbtreehash-list (Depends-on): Likewise.
78040
78041 2006-09-28  Bruno Haible  <bruno@clisp.org>
78042
78043         * lib/strndup.h: Simplify the redefinition of strndup.
78044         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78046
78047 2006-09-28  Bruno Haible  <bruno@clisp.org>
78048
78049         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78050         * lib/gl_linkedhash_list.c: Likewise.
78051         * lib/gl_rbtreehash_list.c: Likewise.
78052
78053 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78056         getaddrinfo.
78057
78058         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78059         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78060         it causes <stdio_ext.h> to cause a compile-time error.
78061         Problem reported by Nelson H. F. Beebe.
78062         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78063         of HAVE_DECL___PENDING.
78064
78065         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78066         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78067         declaration.
78068
78069 2006-09-27  Jim Meyering  <jim@meyering.net>
78070
78071         This file could end up with a definition for a function
78072         named __strndup, rather than rpl_strndup on a system with
78073         incomplete weak_alias support.
78074         * lib/strndup.c (strndup): Rename from __strndup.
78075         Remove #defines that used to map __strndup to strndup.
78076         Don't use K&R prototypes.
78077         Remove LIBC-related code, since this file is not sync'd with glibc.
78078         * lib/strndup.h: Revamp, accordingly.
78079         * m4/strndup.m4: Modernize.
78080
78081 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * modules/savewd (Depends-on): Add 'raise'.
78084         * lib/savewd.c: Include <signal.h>, for 'raise'.
78085
78086 2006-09-26  Jim Meyering  <jim@meyering.net>
78087
78088         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78089         when we detect Darwin 8.7.0's acl_get_file bug.
78090         Rearrange to perform the new (below) run-test while $LIBS
78091         contains any acl-related library.  Set USE_ACL at the end.
78092         (gl_ACL_GET_FILE): New function.
78093
78094 2006-09-26  Eric Blake  <ebb9@byu.net>
78095
78096         * lib/verror.c: Include <config.h> unconditionally.
78097
78098 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * modules/clock-time (Maintainer): Add self.
78101         * modules/getlogin_r (Depends-on): Add extensions.
78102
78103 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78104
78105         * modules/clock-time: New module.
78106         * modules/nanosleep (Depends-on): Add clock-time.
78107         * modules/gethrxtime (Depends-on): Likewise.
78108         * modules/gettime (Depends-on): Likewise.
78109         * modules/settime (Depends-on): Likewise.
78110
78111         * modules/fts-lgpl: Depend on openat.
78112         * modules/mkancesdirs: Depend on savewd.
78113         * modules/mkdir-p: Likewise.
78114
78115 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78116
78117         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78118
78119         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78120         `gl_have_arbitrary_file_name_length_limit' to
78121         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78122         actually works between configure runs.
78123
78124 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78125             Bruno Haible  <bruno@clisp.org>
78126
78127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78128
78129 2006-09-25  Jim Meyering  <jim@meyering.net>
78130
78131         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78132         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78133
78134 2006-09-25  Eric Blake  <ebb9@byu.net>
78135
78136         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78137         exec's in 2006-09-18 patch when shuffling fds.
78138
78139 2006-09-25  Bruno Haible  <bruno@clisp.org>
78140
78141         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78142         Reported by Jim Meyering.
78143
78144 2006-09-24  Jim Meyering  <jim@meyering.net>
78145
78146         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78147         compare a pointer against a literal "0".  That caused failures with
78148         at least HP-UX's hpcc.
78149
78150 2006-09-22  Simon Josefsson  <jas@extundo.com>
78151
78152         * modules/gc-sha1:
78153         * modules/gc-md4:
78154         * modules/gc-hmac-sha1:
78155         * modules/gc-hmac-md5:
78156         * modules/gc-des:
78157         * modules/gc-arcfour: Distribute more files.
78158
78159 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78160
78161         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78162         (gl_linked_iterator_from_to): Initialize struct completely.
78163         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78164         (gl_tree_iterator_from_to): Likewise
78165         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78166         * lib/gl_array_list.c [lint] (gl_array_iterator)
78167         (gl_array_iterator_from_to): Likewise.
78168         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78169         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78170         (gl_carray_iterator_from_to): Likewise.
78171
78172         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78173         * lib/md4.c (md4_process_block): Remove unused variable.
78174         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78175         parentheses for clarity.
78176
78177 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78178
78179         * modules/bison-i18n (Depends-on): Add gettext.
78180
78181 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78182
78183         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78184         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78185         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78186         also add missing comma that caused broken test.
78187         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78188         stdlib.h, for `abort'.
78189         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78190         variables.
78191         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78192         include unistd.h if present, for `rmdir'.
78193         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78194         variables.
78195         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78196         in the process include standard headers for prototypes.
78197         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78198         gets declared on GNU/Linux.
78199         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78200         unistd.h, for `rmdir'.
78201         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78202
78203         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78204         always true.
78205         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78206
78207         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78208
78209 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78210
78211         * gnulib-tool (func_version): Create output all at once.  This
78212         may help avoid triggering unnecessary SIGPIPEs, and at any
78213         rate it doesn't hurt.
78214
78215 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78216             Bruno Haible  <bruno@clisp.org>
78217
78218         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78219         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78220         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78221
78222         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78223         (gl_FUNC_VASPRINTF): Invoke it.
78224
78225 2006-09-22  Bruno Haible  <bruno@clisp.org>
78226
78227         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78228         getloadavg.c as first argument.
78229
78230 2006-09-22  Bruno Haible  <bruno@clisp.org>
78231
78232         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78233         at the beginning of the gl_INIT macro.
78234         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78235         gl_GETLOADAVG.
78236
78237 2006-09-22  Bruno Haible  <bruno@clisp.org>
78238
78239         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78240         module.
78241         Suggested by Ralf Wildenhues.
78242
78243 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         Import this patch from libc:
78246
78247         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78248
78249         * lib/regex_internal.c (re_string_reconstruct): Handle
78250         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78251         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78252         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78253         re_string_context_at.
78254
78255         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78256         now requires it.
78257         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78258         gl_REGEX now does it for us.
78259         (gl_REGEX): Add test taken from
78260         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78261
78262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78263         Check that large offsets work.  Modernize Autoconf usages.
78264         Prefer "yes" to mean a good thing rather than a bad.
78265         Don't put "#define mkstemp" in config.h, as this might interfere
78266         with standard system headers that "#define mkstemp mkstemp64".
78267
78268         * modules/mkstemp (Depends-on): Add extensions, so that
78269         mkstemp is visible on some platforms.
78270         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78271         (Include): Change to "mkstemp.h" from <stdlib.h>.
78272         (Files): Add mkstemp.h.
78273
78274         * lib/mkstemp.h: New file, since some standard headers
78275         #define mkstemp.
78276         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78277         Include "mkstemp.h".
78278         Make the _LIBC code resemble glibc original more,
78279         e.g., use K&R style.
78280         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78281         (mkstemp): Remove, since mkstemp.h does this for us.
78282         * lib/stdlib--.h: Include mkstemp.h.
78283
78284         Import this patch from libc:
78285
78286         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78287
78288         * lib/tempname.c (__gen_tempname): Change attempts_min
78289         into a macro.  Use preprocessor to decide how to initialize
78290         attempts [Coverity CID 67].
78291
78292 2006-09-20  Bruno Haible  <bruno@clisp.org>
78293
78294         * lib/mkdtemp.c: Import from libc.
78295         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78296                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78297                 attempts_min into a macro.  Use preprocessor to decide how to
78298                 initialize attempts [Coverity CID 67].
78299         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78300                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78301                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78302
78303 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78304
78305         * gnulib-tool (func_exit): New function, to allow to pass the
78306         exit status portably through the trap.  Use everywhere.
78307         (--help, --version): Signal a write error.
78308         (trap): catch SIGPIPE, for write errors.
78309         Exit at the end of the trap, with the correct exit status.
78310
78311 2006-09-19  Karl Berry  <karl@gnu.org>
78312
78313         * doc/gnulib.texi: note about the license texinfo files.
78314
78315 2006-09-19  Eric Blake  <ebb9@byu.net>
78316
78317         * gnulib-tool: Avoid space-tab.
78318
78319 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78322         that prevented coreutils 6.1 from building.  Problem reported
78323         by Petter Reinholdtsen.
78324
78325 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * gnulib-tool (avoidlist): Fix typo that broke options like
78328         --avoid=lock that are used by coreutils bootstrap.
78329
78330 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78331
78332         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78333         more systematically.
78334
78335 2006-09-18  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78338
78339 2006-09-18  Bruno Haible  <bruno@clisp.org>
78340
78341         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78342
78343 2006-09-18  Bruno Haible  <bruno@clisp.org>
78344
78345         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78346         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78347         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78348         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78349         * m4/gettext.m4: Require autoconf >= 2.52.
78350         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78351         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78352         of gl_cv_header_inttypes_h.
78353
78354 2006-09-18  Bruno Haible  <bruno@clisp.org>
78355
78356         * lib/javaversion.c: Include configmake.h.
78357
78358 2006-09-18  Bruno Haible  <bruno@clisp.org>
78359
78360         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78361         avoid that the while loops be executed in a subshell.
78362
78363 2006-09-18  Bruno Haible  <bruno@clisp.org>
78364
78365         * MODULES.html.sh (func_module): Break long lines.
78366         Suggested by Bruce Korb <bkorb@gnu.org>.
78367
78368 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78369
78370         Speed up by a factor of 1.12.
78371         * gnulib-tool (nl): New variable.
78372         (func_import): Rewrite include directive extraction to only read each
78373         directive once.
78374
78375 2006-09-17  Bruno Haible  <bruno@clisp.org>
78376
78377         * modules/javaversion (Makefile.am): Remove DEFS setting.
78378         (Depends-on): Add configmake, for PKGDATADIR definition.
78379
78380 2006-09-17  Bruno Haible  <bruno@clisp.org>
78381
78382         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78383
78384 2006-09-17  Bruno Haible  <bruno@clisp.org>
78385
78386         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78387         (func_modules_transitive_closure, func_modules_add_dummy,
78388         func_modules_to_filelist, func_import, func_create_testdir,
78389         func_create_megatestdir, ...): Use it wherever possible.
78390         Suggested by Ralf Wildenhues.
78391
78392 2006-09-16  Karl Berry  <karl@gnu.org>
78393
78394         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78395         to avoid sectioning errors.
78396         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78397         [ifinfo]: blank line after @center-ed titles.
78398         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78399         Spell FSF address consistently with others.
78400         (These changes approved by rms.)
78401
78402 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78403
78404         Speed up by a factor of 1.61.
78405         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78406         already checked module names again.
78407
78408 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78409
78410         Speed up by a factor of 1.13.
78411         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78412         for new_files, and the input to func_add_or_update.
78413
78414 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78415
78416         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78417         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78418
78419 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * modules/mkancesdirs (Depends-on): Add fcntl.
78422         * modules/savewd: New file.
78423         * MODULES.html.sh (File system functions): Add savewd.
78424
78425         * modules/configmake (Makefile.am): Add support for the
78426         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78427
78428 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         * m4/savewd.m4: New file.
78431
78432 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78435         (dirchownmod): New arg FD.  All callers changed.
78436         Use FD rather than opening the directory ourself, as opening is
78437         now the caller's responsibility.
78438         * lib/dirchownmod.h: Likewise.
78439         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78440         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78441         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78442         (test_dir): Remove.
78443         (mkancesdirs): Return length of prefix of FILE that has already
78444         been made, or -2 if there is a child doing the work.  Redo
78445         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78446         ".", and treat ".." specially since it might stray back into
78447         already-created areas.  Use a subprocess if necessary.  New arg
78448         WD; all users changed.  MAKE_DIR function should now return 1
78449         if it creates a directory that is not readable.  Return -2 if
78450         a child process is spun off.
78451         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78452         Adjust signature to match code.
78453         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78454         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78455         all users changed.
78456         * lib/savewd.c, lib/savewd.h: New files.
78457
78458 2006-09-15  Jim Meyering  <jim@meyering.net>
78459
78460         * modules/rename-dest-slash: New module.
78461         * MODULES.html.sh (posix_compat): Add it here.
78462
78463         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78464
78465 2006-09-15  Jim Meyering  <jim@meyering.net>
78466
78467         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78468         file.
78469
78470         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78471
78472 2006-09-15  Jim Meyering  <jim@meyering.net>
78473
78474         * lib/rename-dest-slash.c (has_trailing_slash): Use
78475         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78476         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78477         test before testing whether SRC is a directory.
78478         Suggestions from Bruno Haible.
78479
78480         Avoid a warning about an unused variable.
78481         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78482         into the #ifdef block where it's used.
78483
78484         * lib/rename-dest-slash.c: New file.
78485
78486 2006-09-14  Bruno Haible  <bruno@clisp.org>
78487
78488         * lib/allocsa.c: Include <config.h> unconditionally.
78489         * lib/asnprintf.c: Likewise.
78490         * lib/asprintf.c: Likewise.
78491         * lib/c-strcasecmp.c: Likewise.
78492         * lib/c-strcasestr.c: Likewise.
78493         * lib/c-strncasecmp.c: Likewise.
78494         * lib/c-strstr.c: Likewise.
78495         * lib/classpath.c: Likewise.
78496         * lib/clean-temp.c: Likewise.
78497         * lib/concatpath.c: Likewise.
78498         * lib/copy-file.c: Likewise.
78499         * lib/csharpcomp.c: Likewise.
78500         * lib/csharpexec.c: Likewise.
78501         * lib/execute.c: Likewise.
78502         * lib/fatal-signal.c: Likewise.
78503         * lib/findprog.c: Likewise.
78504         * lib/fwriteerror.c: Likewise.
78505         * lib/gl_array_list.c: Likewise.
78506         * lib/gl_array_oset.c: Likewise.
78507         * lib/gl_avltree_list.c: Likewise.
78508         * lib/gl_avltree_oset.c: Likewise.
78509         * lib/gl_avltreehash_list.c: Likewise.
78510         * lib/gl_carray_list.c: Likewise.
78511         * lib/gl_linked_list.c: Likewise.
78512         * lib/gl_linkedhash_list.c: Likewise.
78513         * lib/gl_list.c: Likewise.
78514         * lib/gl_oset.c: Likewise.
78515         * lib/gl_rbtree_list.c: Likewise.
78516         * lib/gl_rbtree_oset.c: Likewise.
78517         * lib/gl_rbtreehash_list.c: Likewise.
78518         * lib/imaxabs.c: Likewise.
78519         * lib/imaxdiv.c: Likewise.
78520         * lib/javacomp.c: Likewise.
78521         * lib/javaexec.c: Likewise.
78522         * lib/javaversion.c: Likewise.
78523         * lib/linebreak.c: Likewise.
78524         * lib/localcharset.c: Likewise.
78525         * lib/lock.c: Likewise.
78526         * lib/mbchar.c: Likewise.
78527         * lib/mbswidth.c: Likewise.
78528         * lib/mkdtemp.c: Likewise.
78529         * lib/pipe.c: Likewise.
78530         * lib/printf-args.c: Likewise.
78531         * lib/printf-parse.c: Likewise.
78532         * lib/progname.c: Likewise.
78533         * lib/progreloc.c: Likewise.
78534         * lib/readlink.c: Likewise.
78535         * lib/sh-quote.c: Likewise.
78536         * lib/stpcpy.c: Likewise.
78537         * lib/stpncpy.c: Likewise.
78538         * lib/strcasecmp.c: Likewise.
78539         * lib/strcasestr.c: Likewise.
78540         * lib/strcspn.c: Likewise.
78541         * lib/striconv.c: Likewise.
78542         * lib/strncasecmp.c: Likewise.
78543         * lib/strnlen1.c: Likewise.
78544         * lib/strstr.c: Likewise.
78545         * lib/strtok_r.c: Likewise.
78546         * lib/tls.c: Likewise.
78547         * lib/tmpdir.c: Likewise.
78548         * lib/unicodeio.c: Likewise.
78549         * lib/unsetenv.c: Likewise.
78550         * lib/vasnprintf.c: Likewise.
78551         * lib/vasprintf.c: Likewise.
78552         * lib/wait-process.c: Likewise.
78553         * lib/xallocsa.c: Likewise.
78554         * lib/xsetenv.c: Likewise.
78555         * lib/xstriconv.c: Likewise.
78556
78557 2006-09-13  Simon Josefsson  <jas@extundo.com>
78558
78559         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78560         that internally, suggested by Ralf Wildenhues
78561         <Ralf.Wildenhues@gmx.de>.
78562
78563 2006-09-13  Simon Josefsson  <jas@extundo.com>
78564
78565         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78566         @LIBOBJS@.
78567         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78568
78569 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78572         longer worry about uses that don't define HAVE_CONFIG_H.
78573         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78574         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78575         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78576         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78577         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78578         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78579         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78580         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78581         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78582         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78583         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78584         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78585         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78586         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78587         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78588         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78589         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78590         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78591         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78592         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78593         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78594         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78595         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78596         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78597         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78598         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78599         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78600         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78601         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78602         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78603         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78604         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78605         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78606         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78607         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78608         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78609         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78610         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78611         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78612         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78613         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78614         Likewise.
78615
78616 2006-09-13  Eric Blake  <ebb9@byu.net>
78617
78618         * lib/getopt.c: Fix typo in last commit.
78619
78620 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78621
78622         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78623         dgettext.
78624
78625 2006-09-12  Jim Meyering  <jim@meyering.net>
78626
78627         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78628         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78629         Reported by Nelson H. F. Beebe.
78630
78631 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78632
78633         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78634         program_invocation_name and program_invocation_short_name are
78635         initialized.
78636         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78637         and program_invocation_short_name to argp.h, so they are visible
78638         to user programs.
78639         * lib/argp.h: Likewise
78640
78641 2006-09-10  Bruno Haible  <bruno@clisp.org>
78642
78643         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78644         m4/inttypes_h.m4, m4/uintmax_t.m4.
78645
78646 2006-09-10  Bruno Haible  <bruno@clisp.org>
78647
78648         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78649         gl_AC_TYPE_UINTMAX_T.
78650
78651 2006-09-10  Bruno Haible  <bruno@clisp.org>
78652
78653         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78654
78655 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78656
78657         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78658         convention.  Text proposed by Bruno Haible.
78659         (struct argp_option): Document the use of N_() wrappers.
78660
78661         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78662         '\v', and translate the two parts separately, instead of feeding
78663         the whole string to gettext.  This allows to exclude
78664         '\v' from the strings visible to the translator by writing doc
78665         strings as N_("..") "\v" N_("..").
78666
78667 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         * config/srclist.txt: Undo latest change; the bug was fixed.
78670
78671 2006-09-09  Bruno Haible  <bruno@clisp.org>
78672
78673         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78674         assignments if building a library without libtool.
78675         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78676         in func_emit_lib_Makefile_am.
78677         (func_import): When building a static library libfoo.a, arrange to
78678         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78679         (func_create_testdir): Likewise.
78680         * modules/gc (configure.ac, Makefile.am): If building statically,
78681         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78682         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78683         * modules/striconv (configure.ac, Makefile.am): Likewise.
78684         Based on a suggestion by Ralf Wildenhues.
78685
78686 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78689         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78690         Also:
78691
78692         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78693         Add year_2050_test to catch glibc bug 2821
78694         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78695
78696         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78697         Prefer #ifdef to #if.
78698
78699         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78700         Return from 'main' instead of calling 'exit'.
78701
78702 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78703
78704         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78705         returned the maximum time_t value rather than (time_t) -1.
78706         Problem originally reported by William Bardwell
78707         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78708
78709         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78710         Moved to here ...
78711         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78712         ... from here.
78713
78714 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78717         2821 is fixed.
78718
78719 2006-09-08  Jim Meyering  <jim@meyering.net>
78720
78721         Don't make generated files read-only.  That would bother too many
78722         people.  However, do retain the ability to work when targets are
78723         read-only: remove the destination and temporary files before writing
78724         them (when generated via sed or echo), or by using the -f option for
78725         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78726         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78727         * modules/byteswap, modules/configmake, modules/fcntl:
78728         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78729         * modules/localcharset, modules/netinet_in, modules/poll:
78730         * modules/stdbool, modules/stdint, modules/sys_select:
78731         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78732
78733 2006-09-08  Jim Meyering  <jim@meyering.net>
78734
78735         Avoid new build failure on FreeBSD 6.0.
78736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78737         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78738         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78739
78740 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78741
78742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78743
78744 2006-09-07  Jim Meyering  <jim@meyering.net>
78745
78746         Fix global typo in last change: use chmod u-w, not chmod u-x.
78747         Spotted by Paul Eggert and Bruce Korb.
78748         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78749         * modules/byteswap, modules/configmake, modules/fcntl:
78750         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78751         * modules/localcharset, modules/netinet_in, modules/poll:
78752         * modules/stdbool, modules/stdint, modules/sys_select:
78753         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78754
78755 2006-09-06  Jim Meyering  <jim@meyering.net>
78756
78757         Make generated files be read-only.
78758         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78759         Ensure that each generated file is now read-only.
78760         * modules/argz: Likewise.
78761         * modules/arpa_inet: Likewise.
78762         * modules/byteswap: Likewise.
78763         * modules/configmake: Likewise.
78764         * modules/fcntl: Likewise.
78765         * modules/fnmatch: Likewise.
78766         * modules/getopt: Likewise.
78767         * modules/glob: Likewise.
78768         * modules/inttypes: Likewise.
78769         * modules/netinet_in: Likewise.
78770         * modules/poll: Likewise.
78771         * modules/stdbool: Likewise.
78772         * modules/stdint: Likewise.
78773         * modules/sys_select: Likewise.
78774         * modules/sys_socket: Likewise.
78775         * modules/sys_stat: Likewise.
78776         * modules/sysexits: Likewise.
78777         * modules/localcharset: Same as above, but continue using temporary
78778         file named "t-$@" (why different?) rather than the "$@-t" used
78779         everywhere else.
78780
78781         * modules/sysexits (Makefile.am): Replace literal occurrences
78782         of "sysexit.h" more readable, and more consistent, "$@".
78783
78784 2006-09-06  Bruno Haible  <bruno@clisp.org>
78785
78786         * modules/striconv: New file.
78787         * modules/xstriconv: New file.
78788         * MODULES.html.sh (Internationalization functions): Add striconv,
78789         xstriconv.
78790
78791 2006-09-06  Bruno Haible  <bruno@clisp.org>
78792
78793         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78794         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78795         not using libtool correctly.
78796
78797 2006-09-06  Bruno Haible  <bruno@clisp.org>
78798
78799         * lib/striconv.h: New file.
78800         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78801         iconvstring.c.
78802         * lib/xstriconv.h: New file.
78803         * lib/xstriconv.c: New file.
78804
78805 2006-09-06  Bruno Haible  <bruno@clisp.org>
78806
78807         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78808         lib_..._LDFLAGS.
78809
78810 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78811
78812         * lib/argz_.h: Sync from Libtool.
78813
78814         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78815                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78816
78817         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78818
78819 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78820
78821         * modules/trim: New file.
78822
78823 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78824
78825         * lib/trim.h: New file.
78826         * lib/trim.c: New file.
78827
78828 2006-09-05  Bruno Haible  <bruno@clisp.org>
78829
78830         * MODULES.html.sh (String handling): Add trim.
78831
78832 2006-09-04  Karl Berry  <karl@gnu.org>
78833
78834         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78835         until next release.
78836
78837 2006-09-03  Bruno Haible  <bruno@clisp.org>
78838
78839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78840         correctly.
78841
78842 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78845         not gl_GETLOADAVG.  Omit unneeded semicolons.
78846         Problems reported by Ralf Wildenhues in
78847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78848         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78849         at the end, which is the usual gnulib style.
78850
78851         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78852         of doing all the work ourselves.
78853         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78854         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78855
78856 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78859         Problem reported by Ralf Wildenhues in
78860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78861
78862         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78863         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78864
78865 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78868         yesterday's patch by changing test -n to test -z.
78869
78870 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78873         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78874         the former is now obsolescent.
78875
78876         * modules/chdir-long (Depends-on): Add fcntl.
78877
78878 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78881         obsolescent, and programs should use gnulib instead.
78882         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78883         but with prefixes changed.
78884
78885 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78888         or stdbool.h, because they might not exist while configuring.
78889
78890         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78891         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78892         does that for us.
78893         (O_DIRECTORY): Remove.
78894
78895 2006-08-31  Eric Blake  <ebb9@byu.net>
78896
78897         * gnulib-tool: Don't let emacs change spaces to TAB.
78898
78899 2006-08-31  Bruno Haible  <bruno@clisp.org>
78900
78901         * gnulib-tool: When calling func_import more than once, do it in a
78902         subshell.
78903         Reported by Eric Blake <ebb9@byu.net>.
78904
78905 2006-08-31  Bruno Haible  <bruno@clisp.org>
78906
78907         * gnulib-tool (nl): Remove variable.
78908         (sed_transform_lib_file): Use more robust test for config-h module.
78909         (func_import): Fix typo in 2006-08-25 patch.
78910
78911 2006-08-31  Bruno Haible  <bruno@clisp.org>
78912
78913         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78914         specified, augment Makefile.am variables instead of assigning them.
78915
78916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         Work around a bug in both the Linux and SunOS 64-bit kernels:
78919         nanosleep mishandles sleeps for longer than 2**31 seconds.
78920         Problem reported by Frank v Waveren in
78921         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78923         Check for nanosleep bug.
78924         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78925
78926 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         Work around a bug in both the Linux and SunOS 64-bit kernels:
78929         nanosleep mishandles sleeps for longer than 2**31 seconds.
78930         Problem reported by Frank v Waveren in
78931         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78932         * lib/nanosleep.c (BILLION): New constant.
78933         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78934         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78935         implementation.
78936
78937 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * modules/nanosleep (Depends-on): Add gettime.
78940
78941 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78942         and Simon Josefsson  <jas@extundo.com>
78943         and Oskar Liljeblad  <oskar@osk.mine.nu>
78944
78945         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78946         * gnulib-tool (func_import): New license type 'unmodifiable license
78947         text'.
78948         * modules/fdl: Use it.  Longer description.
78949         * module/gpl, module/lgpl: New files.
78950
78951 2006-08-30  Jim Meyering  <jim@meyering.net>
78952
78953         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78954         shadowing the parameter.
78955
78956 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78957
78958         Sync from Libtool:
78959
78960         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78961
78962         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78963         sharing with gnulib.  Report by Eric Blake.
78964
78965 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * modules/isapipe: New file.
78968         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78969
78970 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * modules/configmake (Makefile.am): Add a comment, and omit
78973         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78974         by Bruno Haible.
78975
78976 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * m4/isapipe.m4: New file.
78979
78980 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * lib/isapipe.c, lib/isapipe.h: New files.
78983
78984 2006-08-29  Jim Meyering  <jim@meyering.net>
78985
78986         * modules/configmake (Makefile.am): Make configmake.h depend on
78987         Makefile.  Otherwise, a stale configmake.h could hang around.
78988
78989 2006-08-29  Eric Blake  <ebb9@byu.net>
78990
78991         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78992         resolution of upstream bug 3044.
78993
78994 2006-08-29  Bruno Haible  <bruno@clisp.org>
78995
78996         * modules/localcharset (Depends-on): Add configmake.
78997         (Makefile.am): Remove setting of LIBDIR through DEFS.
78998
78999 2006-08-29  Bruno Haible  <bruno@clisp.org>
79000
79001         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79002         defined.
79003
79004 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * modules/fcntl: New file.
79007         * modules/chdir-safer (Depends-on): Add fcntl.
79008         * modules/fts: Likewise.
79009         * modules/mkdir-p: Likewise.
79010
79011         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79012         This undoes the most recent change, since we're now addressing the
79013         problem in a different way.
79014
79015         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79016         into output, since the output might be called Makefile.am even
79017         if $makefile_name is something different.
79018         (func_import): Use $makefile_am rather than
79019         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79020         empty.
79021
79022         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79023
79024 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79027         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79028         recent change to stdint.m4, since we're now addressing the problem in a
79029         different way.
79030
79031 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * m4/fcntl_h.m4: New file.
79034
79035 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * lib/fcntl_.h: New file.
79038         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79039         the fcntl module.
79040         * lib/dirchownmod.c: Likewise.
79041         * lib/fts.c: Likewise.
79042
79043         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79044         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79045         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79046         just before including <inttypes.h>, to avoid circular inclusion.
79047
79048 2006-08-28  Jim Meyering  <jim@meyering.net>
79049
79050         * doc/visibility.texi: Actually read and correct the grammar of the
79051         sentence affected by yesterday's change.
79052
79053 2006-08-28  Eric Blake  <ebb9@byu.net>
79054
79055         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79056         needs wrapper.
79057
79058 2006-08-28  Eric Blake  <ebb9@byu.net>
79059
79060         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79061
79062 2006-08-28  Eric Blake  <ebb9@byu.net>
79063
79064         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79065
79066 2006-08-28  Bruno Haible  <bruno@clisp.org>
79067
79068         * modules/c-strstr: New file, from GNU gettext.
79069         * MODULES.html.sh (String handling): Add c-strstr.
79070
79071 2006-08-28  Bruno Haible  <bruno@clisp.org>
79072
79073         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79074         macros.
79075         Reported by Eric Blake.
79076
79077 2006-08-28  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79080         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79081         * lib/vasprintf.c: Include errno.h, limits.h.
79082         (EOVERFLOW): New fallback definition.
79083         (vasprintf): Test here whether the string length is > INT_MAX.
79084         * lib/vsnprintf.c: Include errno.h, limits.h.
79085         (EOVERFLOW): New fallback definition.
79086         (vsnprintf): Fix bug when generated string was too long for the buffer.
79087         Test here whether the string length is > INT_MAX.
79088
79089 2006-08-28  Bruno Haible  <bruno@clisp.org>
79090
79091         * lib/inttypes_.h (SCNX*): Remove definitions.
79092         Reported by Eric Blake.
79093
79094 2006-08-28  Bruno Haible  <bruno@clisp.org>
79095
79096         * lib/c-strstr.h: New file, from GNU gettext.
79097         * lib/c-strstr.c: New file, from GNU gettext.
79098
79099 2006-08-28  Bruno Haible  <bruno@clisp.org>
79100
79101         * gnulib-tool: Reorder some statements.
79102
79103 2006-08-28  Bruno Haible  <bruno@clisp.org>
79104
79105         * gnulib-tool: New option --makefile-name.
79106         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79107         $makefile_name.
79108         (func_import): Write $makefile_name to the cache file, and read it from
79109         there unless explicitly specified. Use $makefile_name as file name
79110         instead of Makefile.am. Adjust the recommendations accordingly.
79111
79112 2006-08-28  Bruno Haible  <bruno@clisp.org>
79113
79114         * gnulib-tool (func_verify_module): Check against misapplying patch.
79115
79116 2006-08-28  Bruno Haible  <bruno@clisp.org>
79117
79118         * gnulib-tool (func_relativize, func_relconcat): New functions.
79119         Give an error if --local-dir is given with --update.
79120         Remove trailing slashes from $local_gnulib_dir.
79121         (func_import): Store the relativized $local_gnulib_dir in
79122         gnulib-cache.m4, and read it from there if not specified explicitly.
79123
79124 2006-08-28  Bruno Haible  <bruno@clisp.org>
79125
79126         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79127         is the current directory. Respect also $local_gnulib_dir.
79128
79129 2006-08-28  Bruno Haible  <bruno@clisp.org>
79130             Simon Josefsson  <jas@extundo.com>
79131
79132         BeOS portability.
79133         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79134
79135 2006-08-27  Jim Meyering  <jim@meyering.net>
79136
79137         * doc/visibility.texi: Remove duplicate word: "pointer".
79138
79139 2006-08-26  Bruno Haible  <bruno@clisp.org>
79140
79141         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79142         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79143         (Makefile.am): Create inttypes.h from inttypes_.h.
79144         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79145
79146         * modules/imaxabs: New file.
79147
79148         * modules/imaxdiv: New file.
79149
79150 2006-08-26  Bruno Haible  <bruno@clisp.org>
79151
79152         * m4/inttypes.m4: New file.
79153         * m4/_inttypes_h.m4: Remove file.
79154         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79155         PRI_MACROS_BROKEN.
79156         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79157
79158         * m4/imaxabs.m4: New file.
79159
79160         * m4/imaxdiv.m4: New file.
79161
79162 2006-08-26  Bruno Haible  <bruno@clisp.org>
79163
79164         * lib/inttypes_.h: New file.
79165         * lib/inttypes.h: Remove file.
79166         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79167
79168         * lib/imaxabs.c: New file.
79169
79170         * lib/imaxdiv.c: New file.
79171
79172 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         New config-h module, so that "make" output needn't be cluttered
79175         by -DHAVE_CONFIG_H.
79176         * MODULES.html.sh (Support for building libraries and executables):
79177         Add config-h.
79178         * modules/config-h: New file.
79179         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79180         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79181         the config-h module is used.
79182
79183         New configmake module, so that "make" output needn't be cluttered
79184         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79185         * MODULES.html.sh (Support for building libraries and executables):
79186         Add configmake.
79187         * modules/configmake: New file.
79188
79189 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * m4/config-h.m4: New file.
79192
79193 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79194
79195         * config/srclist.txt: Add elisp-comp.
79196
79197 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * MODULES.html.sh (Support for building libraries and executables):
79200         Add elisp-comp.
79201         * build-aux/elisp-comp: New file.
79202         * modules/elisp-comp: New file.
79203
79204 2006-08-24  Bruno Haible  <bruno@clisp.org>
79205
79206         * gnulib-tool (func_create_testdir): Use non-default values of
79207         sourcebase and m4base.
79208
79209 2006-08-24  Bruno Haible  <bruno@clisp.org>
79210
79211         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79212         HTML structure.
79213
79214 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * modules/openat (Depends-on): Add lchown.
79217
79218 2006-08-23  Bruno Haible  <bruno@clisp.org>
79219
79220         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79221         of gl_LOCK_EARLY instead of gl_LOCK.
79222
79223 2006-08-23  Bruno Haible  <bruno@clisp.org>
79224
79225         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79226         on OSF/1 to no.
79227         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79228
79229 2006-08-23  Bruno Haible  <bruno@clisp.org>
79230
79231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79232         as unusable.
79233
79234         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79235         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79236         (gl_LOCK): New macro.
79237
79238 2006-08-22  Simon Josefsson  <jas@extundo.com>
79239
79240         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79241         to md5 module.
79242
79243 2006-08-22  Simon Josefsson  <jas@extundo.com>
79244
79245         * MODULES.html.sh: Add "Support for maintaining and release
79246         projects".
79247
79248         * build-aux/gnupload: New file, from coreutils.
79249
79250 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         Avoid the need for AC_LIBSOURCES in m4 macros.
79253         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79254         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79255         * modules/check-version (EXTRA_DIST): Add check-version.h.
79256         * modules/crc (EXTRA_DIST): Add crc.h.
79257         * modules/des (EXTRA_DIST): Add des.h.
79258         * modules/gc (EXTRA_DIST): Add gc.h.
79259         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79260         * modules/getline (EXTRA_DIST): Add getline.h.
79261         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79262         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79263         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79264         * modules/md2 (EXTRA_DIST): Add md2.h.
79265         * modules/md4 (EXTRA_DIST): Add md4.h.
79266         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79267         * modules/read-file (EXTRA_DIST): Add read-file.h.
79268         * modules/readline (EXTRA_DIST): Add readline.h.
79269         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79270         rijndael-api-fst.h.
79271
79272 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * m4/rijndael.m4 (gl_ARCFOUR):
79275         * m4/arctwo.m4 (gl_ARCTWO):
79276         * m4/check-version.m4 (gl_CHECK_VERSION):
79277         * m4/crc.m4 (gl_CRC):
79278         * m4/des.m4 (gl_DES):
79279         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79280         * m4/gc.m4 (gl_GC):
79281         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79282         * m4/getline.m4 (gl_FUNC_GETLINE):
79283         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79284         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79285         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79286         * m4/md2.m4 (gl_MD2):
79287         * m4/md4.m4 (gl_MD4):
79288         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79289         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79290         * m4/readline.m4 (gl_FUNC_READLINE):
79291         * m4/rijndael.m4 (gl_RIJNDAEL):
79292         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79293         to get the necessary .h files and whatnot.
79294
79295 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79298         gnulib rather than the other way around.
79299         * config/srclistvars.sh (COREUTILS): Remove.
79300
79301 2006-08-22  Jim Meyering  <jim@meyering.net>
79302
79303         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79304
79305         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79306
79307 2006-08-22  Eric Blake  <ebb9@byu.net>
79308
79309         * modules/regexprops-generic: New file.
79310         * MODULES.html.sh (Support for building documentation): List it.
79311
79312 2006-08-22  Eric Blake  <ebb9@byu.net>
79313
79314         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79315         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79316         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79317         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79318
79319 2006-08-22  Bruno Haible  <bruno@clisp.org>
79320
79321         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79322         and lib_LTLIBRARIES like the other lib_* variables.
79323
79324 2006-08-22  Bruno Haible  <bruno@clisp.org>
79325
79326         * build-aux/x-to-1.in: New file, from GNU gettext.
79327
79328 2006-08-22  Bruno Haible  <bruno@clisp.org>
79329
79330         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79331         <utmpx.h> exists.
79332
79333 2006-08-22  Bruno Haible  <bruno@clisp.org>
79334
79335         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79336         <utmpx.h> exists.
79337
79338 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         BeOS portability.
79341         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79342         exist.
79343         Problem reported by Bruno Haible.
79344
79345 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79346
79347         Avoid the need for AC_LIBSOURCES in m4 macros.
79348         * modules/acl (EXTRA_DIST): Add acl.h.
79349         * modules/argmatch (Files): Add m4/argmatch.m4.
79350         (configure.ac): Add gl_ARGMATCH.
79351         (EXTRA_DIST): Renamed from lib_SOURCES, for
79352         consistency with the other modules.  Remove argmatch.c.
79353         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79354         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79355         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79356         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79357         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79358         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79359         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79360         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79361         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79362         * modules/closeout (EXTRA_DIST): Add closeout.h.
79363         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79364         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79365         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79366         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79367         dirname.h; remove basename.c and stripslash.c.
79368         * modules/exclude (EXTRA_DIST): Add exclude.h.
79369         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79370         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79371         * modules/file-type (EXTRA_DIST): Add file-type.h.
79372         * modules/filemode (EXTRA_DIST): Add filemode.h.
79373         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79374         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79375         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79376         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79377         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79378         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79379         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79380         * modules/getdate (EXTRA_DIST): Add getdate.c.
79381         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79382         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79383         * modules/getpass (EXTRA_DIST): Add getpass.h.
79384         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79385         * modules/group-member (EXTRA_DIST): Add group-member.h.
79386         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79387         * modules/hash (EXTRA_DIST): Add hash.h.
79388         * modules/human (EXTRA_DIST): Add human.h.
79389         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79390         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79391         * modules/lchown (EXTRA_DIST): Add lchown.h.
79392         * modules/long-options (EXTRA_DIST): Add long-options.h.
79393         * modules/lstat (EXTRA_DIST): Add lstat.h.
79394         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79395         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79396         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79397         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79398         * modules/memxor (EXTRA_DIST): Add memxor.h.
79399         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79400         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79401         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79402         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79403         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79404         * modules/physmem (EXTRA_DIST): Add physmem.h.
79405         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79406         * modules/posixver (EXTRA_DIST): Add posixver.h.
79407         * modules/quote (EXTRA_DIST): Add quote.h.
79408         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79409         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79410         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79411         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79412         regex_internal.h regexec.c.
79413         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79414         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79415         * modules/same (EXTRA_DIST): Add same.h.
79416         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79417         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79418         * modules/savedir (EXTRA_DIST): Add savedir.h.
79419         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79420         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79421         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79422         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79423         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79424         * modules/strdup (EXTRA_DIST): Add strdup.h.
79425         * modules/strftime (EXTRA_DIST): Add strftime.h.
79426         * modules/strndup (EXTRA_DIST): Add strndup.h.
79427         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79428         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79429         * modules/time_r (EXTRA_DIST): Add time_r.h.
79430         * modules/timespec (EXTRA_DIST): Add timespec.h.
79431         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79432         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79433         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79434         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79435         * modules/userspec (EXTRA_DIST): Add userspec.h.
79436         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79437         * modules/utimens (EXTRA_DIST): Add utimens.h.
79438         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79439         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79440         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79441         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79442         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79443         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79444         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79445         * modules/yesno (EXTRA_DIST): Add yesno.h.
79446
79447 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79450
79451         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79452         * m4/dev-ino.m4, same-inode.m4: Remove.
79453
79454         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79455         * m4/acl.m4 (AC_FUNC_ACL):
79456         * m4/backupfile.m4 (gl_BACKUPFILE):
79457         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79458         * m4/canon-host.m4 (gl_CANON_HOST):
79459         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79460         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79461         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79462         * m4/cloexec.m4 (gl_CLOEXEC):
79463         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79464         * m4/closeout.m4 (gl_CLOSEOUT):
79465         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79466         * m4/dirname.m4 (gl_DIRNAME):
79467         * m4/exclude.m4 (gl_EXCLUDE):
79468         * m4/exitfail.m4 (gl_EXITFAIL):
79469         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79470         * m4/file-type.m4 (gl_FILE_TYPE):
79471         * m4/filemode.m4 (gl_FILEMODE):
79472         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79473         * m4/fpending.m4 (gl_FUNC_FPENDING):
79474         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79475         * m4/fts.m4 (gl_FUNC_FTS):
79476         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79477         * m4/getdate.m4 (gl_GETDATE):
79478         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79479         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79480         * m4/getpass.m4 (gl_FUNC_GETPASS):
79481         * m4/gettime.m4 (gl_GETTIME):
79482         * m4/getugroups.m4 (gl_GETUGROUPS):
79483         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79484         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79485         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79486         * m4/hash.m4 (gl_HASH):
79487         * m4/idcache.m4 (gl_IDCACHE):
79488         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79489         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79490         * m4/long-options.m4 (gl_LONG_OPTIONS):
79491         * m4/lstat.m4 (gl_FUNC_LSTAT):
79492         * m4/md5.m4 (gl_MD5):
79493         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79494         * m4/memcoll.m4 (gl_MEMCOLL):
79495         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79496         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79497         * m4/memxor.m4 (gl_MEMXOR):
79498         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79499         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79500         * m4/modechange.m4 (gl_MODECHANGE):
79501         * m4/mountlist.m4 (gl_MOUNTLIST):
79502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79503         * m4/openat.m4 (gl_FUNC_OPENAT):
79504         * m4/pathmax.m4 (gl_PATHMAX):
79505         * m4/physmem.m4 (gl_PHYSMEM):
79506         * m4/posixtm.m4 (gl_POSIXTM):
79507         * m4/posixver.m4 (gl_POSIXVER):
79508         * m4/quote.m4 (gl_QUOTE):
79509         * m4/quotearg.m4 (gl_QUOTEARG):
79510         * m4/readtokens.m4 (gl_READTOKENS):
79511         * m4/readutmp.m4 (gl_READUTMP):
79512         * m4/regex.m4 (gl_REGEX):
79513         * m4/safe-read.m4 (gl_SAFE_READ):
79514         * m4/safe-write.m4 (gl_SAFE_WRITE):
79515         * m4/same.m4 (gl_SAME):
79516         * m4/save-cwd.m4 (gl_SAVE_CWD):
79517         * m4/savedir.m4 (gl_SAVEDIR):
79518         * m4/settime.m4 (gl_SETTIME):
79519         * m4/sha1.m4 (gl_SHA1):
79520         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79521         * m4/stat-macros.m4 (gl_STAT_MACROS):
79522         * m4/stat-time.m4 (gl_STAT_TIME):
79523         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79524         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79525         * m4/strdup.m4 (gl_FUNC_STRDUP):
79526         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79527         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79528         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79530         * m4/time_r.m4 (gl_TIME_R):
79531         * m4/timespec.m4 (gl_TIMESPEC):
79532         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79533         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79534         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79535         * m4/userspec.m4 (gl_USERSPEC):
79536         * m4/utimecmp.m4 (gl_UTIMECMP):
79537         * m4/utimens.m4 (gl_UTIMENS):
79538         * m4/xalloc.m4 (gl_XALLOC):
79539         * m4/xgetcwd.m4 (gl_XGETCWD):
79540         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79541         * m4/xreadlink.m4 (gl_XREADLINK):
79542         * m4/xstrtod.m4 (gl_XSTRTOD):
79543         * m4/yesno.m4 (gl_YESNO):
79544         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79545         to get the necessary .h files and whatnot.
79546
79547 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79548             Bruno Haible  <bruno@clisp.org>
79549
79550         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79551         /bin/sh understanding of '!' conditional negation.
79552
79553 2006-08-21  Jim Meyering  <jim@meyering.net>
79554
79555         * modules/openat (Depends-on): Really alphabetize.
79556
79557         * modules/acl (Depends-on): Add error and quote.
79558
79559         * check-module (find_included_lib_files): Add at-func.c to the
79560         ok-to-include-more-than-once white list.
79561
79562         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79563
79564 2006-08-21  Bruno Haible  <bruno@clisp.org>
79565
79566         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79567         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79568         Reported by Martin Lambers <marlam@marlam.de>.
79569
79570 2006-08-21  Bruno Haible  <bruno@clisp.org>
79571
79572         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79573         specify an installation location, don't emit a noinst_LIBRARIES or
79574         noinst_LTLIBRARIES assignment.
79575
79576 2006-08-21  Bruno Haible  <bruno@clisp.org>
79577
79578         BeOS portability.
79579         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79580         BeOS has mbrtowc() but no <wctype.h>.
79581
79582 2006-08-21  Bruno Haible  <bruno@clisp.org>
79583
79584         BeOS portability.
79585         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79586         exist.
79587
79588 2006-08-21  Bruno Haible  <bruno@clisp.org>
79589
79590         BeOS portability.
79591         * lib/mbchar.h: Include <wctype.h> only if it exists.
79592
79593 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         Remove files that are no longer needed by their respective modules.
79596         * m4/obstack.m4: Remove.
79597         * m4/strerror_r.m4: Remove.
79598         * m4/uint32_t.m4: Remove.
79599         * m4/uintptr_t.m4: Remove.
79600         * m4/ullong_max.m4: Remove.
79601         * m4/xstrtoimax.m4: Remove.
79602         * m4/xstrtoumax.m4: Remove.
79603
79604         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79605         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79606         dependencies now capture this.
79607
79608         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79609         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79610         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79611         * m4/human.m4 (gl_HUMAN): Likewise.
79612         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79613         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79614
79615         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79616
79617         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79618         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79619         stdint.
79620         * m4/human.m4 (gl_HUMAN): Likewise.
79621         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79622         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79623         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79624         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79625         * m4/xstrtol (gl_XSTRTOL): Likewise.
79626
79627         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79628         AC_TYPE_LONG_LONG_INT.
79629         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79630         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79631         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79632         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79633
79634         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79635         on stdbool.
79636
79637         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79638         (gl_PREREQ_XSTRTOUL): Remove.
79639
79640         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79641
79642         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79643         mode.
79644
79645 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         Add and change modules to make it easier for coreutils to use
79648         gnulib-tool.
79649         * modules/backupfile (Files): Remove m4/d-ino.m4.
79650         (Depends-on): Add d-ino.
79651         * modules/cycle-check (Depends-on): Add stdint.
79652         (lib_SOURCES): Add cycle-check.h.
79653         * modules/d-ino: New module.
79654         * modules/d-type: New module.
79655         * modules/error (Files): Remove m4/strerror_r.m4.
79656         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79657         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79658         m4/inttypes_h.m4, m4/uintmax_t.m4.
79659         (Depends-on): Add stdint.
79660         (lib_SOURCES): Add fsusage.h.
79661         * modules/getcwd (Files): Remove d-ino.m4.
79662         (Depends-on): Add d-ino.
79663         * modules/getndelim2 (Depends-on): Add stdint.
79664         * modules/glob (Files): Remove m4/d-type.m4.
79665         (Depends-on): Add d-type.
79666         * modules/host-os: New module.
79667         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79668         m4/inttypes_h.m4, m4/uintmax_t.m4.
79669         * Depends-on: Add stdint.
79670         (lib_SOURCES): Add human.h.
79671         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79672         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79673         m4/uintmax_t.m4, m4/ulonglong.m4.
79674         (Depends-on): Add stdint.
79675         (EXTRA_DIST): Add inttostr.h.
79676         * modules/lchmod: New module.
79677         * modules/link-follow: New module.
79678         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79679         (Depends-on): Add lchmod.
79680         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79681         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79682         (Depends-on): Add stdint.
79683         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79684         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79685         (Depends-on): Add stdint.
79686         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79687         * modules/perl: New module.
79688         * modules/regex (Depends-on): Add stdint.
79689         * modules/rmdir-errno: New module.
79690         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79691         m4/intmax_t.m4.
79692         (Depends-on): Add stdint.
79693         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79694         m4/uintmax_t.m4.
79695         (Depends-on): Add stdint.
79696         * modules/unlink-busy: New module.
79697         * modules/utimecmp (Depends-on): Add stdint.
79698         * modules/uptime: New module.
79699         * modules/winsz-ioctl: New module.
79700         * modules/winsz-termios: New module.
79701         * modules/xnanosleep (Depends-on): Add nanosleep.
79702         * modules/ullong_max: Remove.
79703         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79704         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79705         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79706         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79707         (Depends-on): Add inttypes.
79708         (lib_SOURCES): Add xstrtol.h.
79709         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79710         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79711         * MODULES.html.sh: Move 'assert' into the assert section.
79712         Move 'dummy' into the linking section.
79713         Remove ullong_max.
79714         Add section for compatibility checks for POSIX:2001 functions,
79715         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79716         winsz-ioctl, and winsz-termios into it.
79717         Add lchmod.
79718         Add top-level Misc section and put host-os, perl, and uptime
79719         into it.
79720
79721 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79724         now assume the stdint module.  Do not include inttypes.h.
79725         * lib/fsusage.h: Likewise.
79726         * lib/getndelim2.c: Likewise.
79727         * lib/human.h: Likewise.
79728         * lib/inttostr.h: Likewise.
79729         * lib/obstack.c: Likewise.
79730         * lib/regex_internal.h: Likewise.
79731         * lib/tempname.c: Likewise.
79732         * lib/utimecmp.c: Likewise.
79733         * lib/xstrtol.h: Likewise.
79734
79735         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79736
79737         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79738         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79739         * lib/xtime.h: Likewise.
79740
79741 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * modules/openat (Files): Add lib/fchmodat.c.
79744         Fixes problem reported by Jay Youngman.
79745
79746 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79747
79748         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79749         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79750
79751 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79752             Bruno Haible  <bruno@clisp.org>
79753
79754         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79755         and is a script that invokes bison. Tighten the code. Add comments.
79756
79757 2006-08-18  Jim Meyering  <jim@meyering.net>
79758
79759         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79760         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79761         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79762         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79763
79764 2006-08-18  Bruno Haible  <bruno@clisp.org>
79765
79766         * modules/bison-i18n: New file.
79767         * MODULES.html.sh (Internationalization functions): Add it.
79768
79769 2006-08-18  Bruno Haible  <bruno@clisp.org>
79770
79771         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79772         sys/statvfs.h. When getmntinfo was found, check its declaration and
79773         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79774
79775 2006-08-18  Bruno Haible  <bruno@clisp.org>
79776
79777         * m4/bison-i18n.m4: New file, from bison.
79778
79779 2006-08-18  Bruno Haible  <bruno@clisp.org>
79780
79781         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79782         (ME_DUMMY): Treat "kernfs" as a dummy.
79783         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79784
79785 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         Update from coreutils.
79788
79789         2006-08-15  Jim Meyering  <jim@meyering.net>
79790
79791         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79792
79793         2006-01-17  Jim Meyering  <jim@meyering.net>
79794
79795         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79796
79797         2006-01-11  Jim Meyering  <jim@meyering.net>
79798
79799         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79800         Check for the lchmod function.
79801
79802 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         Update from coreutils.
79805
79806         * lib/__fpending.h: Add copyright notice.
79807         * lib/fprintftime.h: Likewise.
79808         * lib/savedir.c: Use (C) in copyright notice.
79809         * lib/savedir.h: Likewise.
79810
79811         2006-08-15  Jim Meyering  <jim@meyering.net>
79812
79813         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79814         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79815         in support of the EXPECTED_ERRNO macro.
79816         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79817         definitions.  Instead, define the appropriate symbols and include
79818         "at-func.c".
79819         * lib/mkdirat.c (mkdirat): Likewise.
79820         * lib/fchmodat.c (fchmodat): Likewise.
79821         (ENOSYS): Remove definition.
79822         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79823         it.  Don't include "unistd--.h" -- it wasn't ever used.
79824
79825         2006-01-17  Jim Meyering  <jim@meyering.net>
79826
79827         Rewrite fts.c not to change the current working directory,
79828         by using openat, fstatat, fdopendir, etc..
79829
79830         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79831         (HAVE_OPENAT_SUPPORT): Define.
79832         [_LIBC] (fchdir): Don't undef or define; no longer used.
79833         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79834         Now, this `function' always succeeds, and consumes its file descriptor
79835         parameter -- so callers must not close such FDs.  Update callers.
79836         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79837         (diropen): Add parameter, SP.  Adjust all callers.
79838         Implement using diropen_fd, rather than open.
79839         (fts_open): Initialize new member, fts_cwd_fd.
79840         Remove fts_rft-setting code.
79841         (fts_close): Close fts_cwd_fd, if necessary.
79842         (__opendir2): Define in terms of opendir or opendirat,
79843         depending on whether the FST_NOCHDIR flag is set.
79844         (fts_build): Since fts_safe_changedir consumes its FD, and since
79845         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79846         and close the dup'd file descriptor upon failure.
79847         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79848         (fts_safe_changedir): Tweak semantics to reflect that this function
79849         now calls cwd_advance_fd and hence consumes its FD argument.
79850         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79851         [struct FTS] (fts_rft): Remove now-unused member.
79852         [struct FTS] (fts_cycle.state): Improve comment.
79853
79854         * lib/openat.c (openat_needs_fchdir): New function.
79855         * lib/openat.h (openat_needs_fchdir): Declare it.
79856
79857 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79860         Problem and fix reported by Pádraig Brady in
79861         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79862
79863 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79866
79867 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/memcoll.c (memcoll): Optimize for the common case where the
79870         arguments are bytewise equal.
79871
79872 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * doc/regexprops-generic.texi: Add a copyright notice.
79875
79876 2006-08-15  Bruno Haible  <bruno@clisp.org>
79877
79878         * modules/tmpdir (License): Change to LGPL.
79879
79880 2006-08-15  Bruno Haible  <bruno@clisp.org>
79881
79882         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79883         module.
79884
79885 2006-08-14  Simon Josefsson  <jas@extundo.com>
79886
79887         * config/srclist.txt: Add gnupload.
79888
79889 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         Change copyright notice from LGPL 2 to GPL 2, since that's the
79892         standard form used in the gnulib repository.
79893         * tests/test-lock.c: Likewise.
79894         * tests/test-stdint.c: Likewise.
79895         * tests/test-tls.c: Likewise.
79896
79897         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79898         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79899         Add copyright notice.
79900
79901         * check-module: Add copyright notice.  Output a copyright
79902         notice if "--version" is specified.
79903         * modules/COPYING: New file.
79904         * tests/test-getaddrinfo.c: Add copyright notice.
79905         * tests/test-verify.c: Likewise.
79906
79907 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         Change copyright notice from LGPL 2 to GPL 2, since that's the
79910         standard form used in the gnulib repository.
79911         * lib/lock.c: LGPL -> GPL.
79912         * lib/lock.h: Likewise.
79913         * lib/strnlen1.c: Likewise.
79914         * lib/strnlen1.h: Likewise.
79915         * lib/tls.c: Likewise.
79916         * lib/tls.h: Likewise.
79917         * lib/tmpdir.c: Likewise.
79918
79919         * lib/TODO: Remove; this belongs only in coreutils.
79920
79921 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         Add copyright notices to long-enough files that lack them, since
79924         otherwise the files aren't clearly free.  Use the same notice that
79925         getdate.texi already uses.
79926         * doc/alloca-opt.texi: Add copyright notice.
79927         * doc/alloca.texi: Likewise.
79928         * doc/ctime.texi: Likewise.
79929         * doc/functions.texi: Likewise.
79930         * doc/gcd.texi: Likewise.
79931         * doc/gnulib-tool.texi: Likewise.
79932         * doc/inet_ntoa.texi: Likewise.
79933         * doc/visibility.texi: Likewise.
79934
79935         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79936         * doc/quote.texi: Add copyright notice.
79937
79938         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79939         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79940         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79941         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79942         is now obsolete, and give a pointer to the Sun list.
79943         Add copyright notice.
79944
79945 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * config/srclistvars.sh: Add copyright notice.
79948
79949 2006-08-14  Eric Blake  <ebb9@byu.net>
79950
79951         Import the following change from libc:
79952
79953         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79954
79955         Upstream bug 2997.
79956         * lib/misc/error.c: Add space between program name and message if file
79957         name is missing.
79958
79959 2006-08-12  Karl Berry  <karl@gnu.org>
79960
79961         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79962         remove, these originate in gnulib now.
79963
79964 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79965
79966         * doc/Makefile (standards.info standards.html standards.dvi):
79967         Also depend on make-stds.texi.
79968
79969 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79972         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79973
79974         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79975         in wchar_t.  Problem reported by Eric Blake.
79976
79977         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79978         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79979         Also, help the compiler to keep LEN in a register.
79980
79981 2006-08-11  Eric Blake  <ebb9@byu.net>
79982
79983         * users.txt: Sort.  Add tar.
79984
79985 2006-08-11  Bruno Haible  <bruno@clisp.org>
79986
79987         * users.txt: New file.
79988
79989 2006-08-11  Bruno Haible  <bruno@clisp.org>
79990
79991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79992         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79993
79994 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         * modules/snprintf (Depends-on): Remove minmax.
79997         (Maintainer): Add self and Bruno.
79998
79999 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80002         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80003         (EOVERFLOW): Define if the system does not.
80004         Do not include "minmax.h"; it wasn't used.
80005         (snprintf): Don't assume size_t promotes to an unsigned type.
80006         Fix bug when generated string was too long for the buffer: the
80007         buffer's contents are supposed to be the initial prefix of the
80008         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80009         exceeds INT_MAX; do the check ourselves.
80010
80011         Import the following changes from libc:
80012
80013         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80014
80015         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80016         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80017         set wc to the byte which couldn't be converted.
80018         (re_string_reconstruct): Don't clear valid_raw_len before calling
80019         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80020         tip_context using re_string_context_at.
80021
80022         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80023
80024         * lib/posix/regex.h: g++ still cannot handled [restrict].
80025
80026         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80027
80028         * lib/posix/regex.h: Remove special handling for VMS.
80029
80030 2006-08-10  Jim Meyering  <jim@meyering.net>
80031
80032         * modules/same-inode: New module.
80033         * modules/dev-ino: New module.
80034         * modules/cycle-check: Depend on these modules, rather than simply
80035         including their .h files.
80036         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80037         required via m4/cycle-check.m4.
80038         * modules/same: Depend on new same-inode module, rather than
80039         including same-inode.h.
80040         * modules/chdir-safer: New file.
80041
80042         * modules/chown (Depends-on): Add stat-macros.
80043
80044 2006-08-10  Jim Meyering  <jim@meyering.net>
80045
80046         * m4/cycle-check.m4: New file.
80047         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80048         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80049
80050 2006-08-10  Eric Blake  <ebb9@byu.net>
80051
80052         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80053         in from original proposal.
80054
80055 2006-08-10  Eric Blake  <ebb9@byu.net>
80056         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80057
80058         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80059         namespace.
80060
80061 2006-08-10  Bruno Haible  <bruno@clisp.org>
80062
80063         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80064         as well.
80065
80066 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         Sync from coreutils.
80069
80070         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80071
80072         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80073         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80074
80075 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * modules/restrict: Remove; no longer needed now that we assume
80078         Autoconf 2.59 or later.
80079         * MODULES.html.sh: Remove 'restrict'.
80080         * modules/argp (Depends-on): Remove 'restrict'.
80081         * modules/base64 (Depends-on): Likewise.
80082         * modules/gc (Depends-on): Likewise.
80083         * modules/getaddrinfo (Depends-on): Likewise.
80084         * modules/glob (Depends-on): Likewise.
80085         * modules/inet_ntop (Depends-on): Likewise.
80086         * modules/inet_pton (Depends-on): Likewise.
80087         * modules/memxor (Depends-on): Likewise.
80088         * modules/regex (Depends-on): Likewise.
80089         * modules/strtok_r (Depends-on): Likewise.
80090         * modules/time_r (Depends-on): Likewise.
80091
80092 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80095         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80096         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80097         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80098         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80099         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80100         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80101         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80102
80103         Merge from coreutils.
80104         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80105         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80106         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80107         * m4/time_r.m4 (gl_TIME_R): Likewise.
80108
80109 2006-08-09  Karl Berry  <karl@gnu.org>
80110
80111         * config/srclist.txt: no more gettext-tools, per Bruno.
80112
80113 2006-08-08  Eric Blake  <ebb9@byu.net>
80114
80115         * modules/verror: New module.
80116         * MODULES.html.sh: Document it.
80117
80118 2006-08-08  Eric Blake  <ebb9@byu.net>
80119
80120         * lib/verror.h, lib/verror.c: New files.
80121
80122 2006-08-08  Eric Blake  <ebb9@byu.net>
80123
80124         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80125         verror_at_line output complies with GNU Coding Standards even when
80126         file is NULL.
80127
80128 2006-08-07  Bruno Haible  <bruno@clisp.org>
80129
80130         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80131         versions of AIX.
80132         Reported by Ralf Wildenhues.
80133
80134 2006-08-07  Bruno Haible  <bruno@clisp.org>
80135
80136         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80137         in an AC_DEFUN. Needed so that the autoconf snippets can use
80138         AC_REQUIRE.
80139
80140 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80141
80142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80143         Initialize pkgdata_DATA.
80144         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80145         overriding it.
80146
80147 2006-08-06  Eric Blake  <ebb9@byu.net>
80148
80149         * lib/error.h: Fold in some upstream changes from glibc.
80150         * lib/error.c: Likewise.
80151
80152 2006-08-04  Bruno Haible  <bruno@clisp.org>
80153
80154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80155         Make the mostlyclean-local rule depend on mostlyclean-generic.
80156         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80157
80158 2006-07-31  Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80161         <stdlib.h>, <string.h>.
80162
80163 2006-07-30  Bruno Haible  <bruno@clisp.org>
80164
80165         * modules/readlink (License): Change to LGPL.
80166
80167 2006-07-30  Bruno Haible  <bruno@clisp.org>
80168
80169         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80170         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80171         set PKGDATADIR to point to it.
80172
80173 2006-07-30  Bruno Haible  <bruno@clisp.org>
80174
80175         * modules/csharpexec (configure.ac): Comment out macro invocation.
80176         * modules/javaexec (configure.ac): Likewise.
80177         * modules/javacomp-script (configure.ac): Likewise.
80178
80179         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80180
80181 2006-07-30  Bruno Haible  <bruno@clisp.org>
80182
80183         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80184         linked-list.
80185
80186 2006-07-30  Bruno Haible  <bruno@clisp.org>
80187
80188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80189
80190 2006-07-30  Bruno Haible  <bruno@clisp.org>
80191
80192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80193         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80194         get removed.
80195
80196 2006-07-29  Bruno Haible  <bruno@clisp.org>
80197
80198         Make it possible for gnulib-tool to work with locally modified or
80199         augmented gnulib repositories.
80200         * gnulib-tool (func_usage): Document --local-dir option.
80201         (local_gnulib_dir): New variable.
80202         Handle --local-dir option.
80203         (func_lookup_file): New function.
80204         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80205         (func_get_description, func_get_filelist, func_get_description,
80206         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80207         func_get_automake_snippet, func_get_include_directive,
80208         func_get_license, func_get_maintainer): Use func_lookup_file.
80209         (func_import, func_create_testdir): Use func_lookup_file.
80210
80211 2006-07-29  Bruno Haible  <bruno@clisp.org>
80212
80213         * modules/setenv (Depends-on): Add unistd.
80214
80215 2006-07-29  Bruno Haible  <bruno@clisp.org>
80216
80217         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80218
80219 2006-07-29  Bruno Haible  <bruno@clisp.org>
80220
80221         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80222
80223 2006-07-29  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (import, update): If there is no Makefile.am, look at
80226         aclocal.m4, instead of bailing out.
80227
80228 2006-07-29  Bruno Haible  <bruno@clisp.org>
80229
80230         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80231         Categorize the options by when they are useful.
80232
80233 2006-07-29  Bruno Haible  <bruno@clisp.org>
80234
80235         * gnulib-tool (func_usage): Document option --no-libtool.
80236         Handle option --no-libtool.
80237         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80238         for changed semantics of $libtool variable.
80239         (func_import): Likewise. If libtool is not used, show this through
80240         an option --no-libtool.
80241         (func_create_testdir): Update.
80242
80243 2006-07-29  Bruno Haible  <bruno@clisp.org>
80244
80245         * gnulib-tool (func_import): Extend error message about missing
80246         --doc-base.
80247
80248 2006-07-29  Bruno Haible  <bruno@clisp.org>
80249
80250         * gnulib-tool (func_import): Don't create the $docbase directory if
80251         there is no file to store there.
80252
80253 2006-07-29  Bruno Haible  <bruno@clisp.org>
80254
80255         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80256         relevant, look for configure.ac there, not in the current directory.
80257         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80258
80259 2006-07-29  Bruno Haible  <bruno@clisp.org>
80260
80261         * gnulib-tool (SORT): New variable.
80262         (func_usage): Undocument --assume-autoconf option.
80263         Remove --assume-autoconf option handling.
80264         (autoconf_minversion): Determine from the contents of configure.ac.
80265         (func_import): Remove autoconf_minversion handling.
80266         Suggested by Eric Blake.
80267
80268 2006-07-29  Bruno Haible  <bruno@clisp.org>
80269
80270         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80271
80272 2006-07-29  Bruno Haible  <bruno@clisp.org>
80273
80274         * config/srclist.txt (*setenv.[ch]): Remove rules.
80275
80276 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80277
80278         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80279
80280 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80281
80282         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80283         arpa/inet.h.
80284
80285 2006-07-28  Simon Josefsson  <jas@extundo.com>
80286
80287         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80288         * modules/inet_pton (Depends-on): Likewise.
80289
80290 2006-07-28  Simon Josefsson  <jas@extundo.com>
80291
80292         * m4/netinet_in_h.m4: New file.
80293
80294 2006-07-28  Simon Josefsson  <jas@extundo.com>
80295
80296         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80297         #include's.
80298
80299 2006-07-28  Simon Josefsson  <jas@extundo.com>
80300
80301         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80302         #include's.
80303
80304 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80307         setgid on directories only if they set these bits.
80308         * lib/modechange.h: Remove obsolete comment about masks.
80309
80310 2006-07-28  Eric Blake  <ebb9@byu.net>
80311
80312         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80313         macro expansion.
80314
80315 2006-07-28  Bruno Haible  <bruno@clisp.org>
80316
80317         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80318
80319 2006-07-28  Bruno Haible  <bruno@clisp.org>
80320
80321         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80322
80323 2006-07-28  Bruno Haible  <bruno@clisp.org>
80324
80325         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80326         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80327         Define fallbacks.
80328         Avoids link error on FreeBSD 4.x.
80329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80330
80331         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80332         encoding.
80333         * lib/mbswidth.c (iswcntrl): Likewise.
80334
80335 2006-07-27  Bruno Haible  <bruno@clisp.org>
80336
80337         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80338         test.
80339
80340 2006-07-27  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80343         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80344         defined.
80345
80346 2006-07-26  Eric Blake  <ebb9@byu.net>
80347
80348         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80349
80350 2006-07-26  Eric Blake  <ebb9@byu.net>
80351
80352         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80353         like mingw that lack mkstemp.
80354         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80355         avoid compilation warning on mingw.
80356
80357 2006-07-26  Bruno Haible  <bruno@clisp.org>
80358
80359         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80360         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80361         INT_FAST*_MIN, INTPTR_MIN.
80362
80363 2006-07-25  Bruno Haible  <bruno@clisp.org>
80364
80365         * modules/version-etc (Depends-on): Add stdarg.
80366
80367 2006-07-25  Bruno Haible  <bruno@clisp.org>
80368
80369         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80370         complex commands.
80371
80372 2006-07-25  Bruno Haible  <bruno@clisp.org>
80373
80374         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80375         defined in <stdarg.h> or config.h.
80376
80377 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80380         (gl_STDIO_SAFER): Remove.
80381
80382 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * MODULES.html.sh (File stream based Input/Output):
80385         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80386         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80387         * modules/fopen-safer, modules/tmpfile-safer: New files.
80388         * modules/stdio-safer: Remove.
80389
80390 2006-07-24  Bruno Haible  <bruno@clisp.org>
80391
80392         * modules/tmpdir: New file.
80393         * MODULES.html.sh (File system functions): Add it.
80394
80395 2006-07-24  Bruno Haible  <bruno@clisp.org>
80396
80397         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80398         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80399
80400 2006-07-24  Bruno Haible  <bruno@clisp.org>
80401
80402         * modules/clean-temp: New file.
80403
80404 2006-07-24  Bruno Haible  <bruno@clisp.org>
80405
80406         * m4/tmpdir.m4: New file, from GNU gettext.
80407
80408 2006-07-24  Bruno Haible  <bruno@clisp.org>
80409
80410         * lib/tmpdir.h: New file, from GNU gettext.
80411         * lib/tmpdir.c: New file, from GNU gettext.
80412
80413 2006-07-24  Bruno Haible  <bruno@clisp.org>
80414
80415         * lib/clean-temp.h: New file, from GNU gettext.
80416         * lib/clean-temp.c: New file, from GNU gettext.
80417
80418 2006-07-23  Eric Blake  <ebb9@byu.net>
80419
80420         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80421         (Depends-on): Add binary-io.
80422
80423 2006-07-23  Eric Blake  <ebb9@byu.net>
80424
80425         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80426
80427 2006-07-23  Eric Blake  <ebb9@byu.net>
80428
80429         * lib/tmpfile-safer.c: New file.
80430         * lib/stdio-safer.h (fopen_safer): Add prototype.
80431         * lib/stdio--.h (tmpfile): Make safer.
80432
80433 2006-07-23  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80436         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80437         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80438         gl_linked_remove_at): Use it.
80439
80440 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80441         and Simon Josefsson <jas@extundo.com>
80442
80443         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80444
80445         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80446
80447 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         * modules/close-stream: New file.
80450         * modules/closeout (Description): Make it clear that it exits
80451         with a diagnostic on error.
80452         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80453         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80454
80455 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * m4/close-stream.m4: New file.
80458
80459 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * lib/close-stream.c, lib/close-stream.h: New files.
80462
80463 2006-07-22  Bruno Haible  <bruno@clisp.org>
80464
80465         Merge from GNU gettext 0.15.
80466
80467         2006-05-01  Bruno Haible  <bruno@clisp.org>
80468
80469                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80470
80471         2006-07-22  Bruno Haible  <bruno@clisp.org>
80472
80473                 * modules/javaversion: New file.
80474                 * MODULES.html.sh (Java): Add javaversion.
80475
80476         2006-03-12  Bruno Haible  <bruno@clisp.org>
80477
80478                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80479
80480         2005-12-04  Bruno Haible  <bruno@clisp.org>
80481
80482                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80483                 (untested).
80484
80485         2006-06-21  Bruno Haible  <bruno@clisp.org>
80486
80487                 Avoid warnings from recent versions of mcs.
80488                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80489                 -o, -L, -r any more. Use options documented since mcs-1.0
80490                 instead. Similarly for -g.
80491
80492         2005-12-04  Bruno Haible  <bruno@clisp.org>
80493
80494                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80495                 .resources, not .resource.
80496
80497         2005-07-09  Bruno Haible  <bruno@clisp.org>
80498
80499                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80500                 add a .dll suffix.
80501                 Reported by Mark Junker <mjscod@gmx.de>.
80502
80503         2006-07-22  Bruno Haible  <bruno@clisp.org>
80504
80505                 * modules/gettext: Upgrade to gettext-0.15.
80506                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80507                 m4/visibility.m4.
80508                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80509
80510 2006-07-22  Bruno Haible  <bruno@clisp.org>
80511
80512         Merge from GNU gettext 0.15.
80513
80514         2006-03-25  Bruno Haible  <bruno@clisp.org>
80515
80516                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80517
80518         2006-07-21  Bruno Haible  <bruno@clisp.org>
80519
80520                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80521                 "1.1".
80522
80523         2006-05-09  Bruno Haible  <bruno@clisp.org>
80524
80525                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80526                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80527                 for the conftestver execution.
80528
80529         2006-05-01  Bruno Haible  <bruno@clisp.org>
80530
80531                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80532                 optional target-version argument. Verify that the compiler
80533                 groks source of the specified source-version, or add -source
80534                 option as necessary. Verify that the compiler produces
80535                 bytecode in the specified target-version, or add -target and
80536                 -source options as necessary. Make the result of the test
80537                 available as variable CONF_JAVAC. Also log error output in
80538                 config.log.
80539
80540         2006-03-11  Bruno Haible  <bruno@clisp.org>
80541
80542                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80543
80544         2006-05-09  Bruno Haible  <bruno@clisp.org>
80545
80546                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80547                 CLASSPATH_SEPARATOR to a semicolon.
80548
80549         2006-03-12  Bruno Haible  <bruno@clisp.org>
80550
80551                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80552                 available as variable CONF_JAVA, for subsequent autoconf
80553                 tests. Also log error output in config.log.
80554
80555         2006-07-19  Bruno Haible  <bruno@clisp.org>
80556
80557                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80558                 that getline works on glibc2 systems. Needed to avoid trouble
80559                 in relocatable.c.
80560                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80561
80562         2005-12-04  Bruno Haible  <bruno@clisp.org>
80563
80564                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80565                 launcher (untested).
80566
80567         2005-12-04  Bruno Haible  <bruno@clisp.org>
80568
80569                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80570
80571         2006-07-22  Bruno Haible  <bruno@clisp.org>
80572
80573                 * gettext.m4: Update from GNU gettext-0.15.
80574                 * nls.m4: Likewise.
80575                 * po.m4: Likewise.
80576                 * inttypes-pri.m4: Likewise.
80577                 * inttypes-h.m4: Renamed from inttypes.m4.
80578                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80579
80580 2006-07-22  Bruno Haible  <bruno@clisp.org>
80581
80582         Merge from GNU gettext 0.15.
80583
80584         2005-07-05  Bruno Haible  <bruno@clisp.org>
80585
80586                 * printf-args.c (printf_fetchargs): Work around broken
80587                 definition of wint_t on mingw.
80588
80589         2005-02-12  Bruno Haible  <bruno@clisp.org>
80590
80591                 * xallocsa.h: Add extern "C" for C++.
80592
80593         2006-05-17  Bruno Haible  <bruno@clisp.org>
80594
80595                 Cygwin portability.
80596                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80597
80598         2006-04-30  Bruno Haible  <bruno@clisp.org>
80599
80600                 * progreloc.c: Include <mach-o/dyld.h> if available.
80601                 (find_executable): Use _NSGetExecutablePath when possible.
80602
80603         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80604
80605                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80606                 function.
80607
80608         2005-12-29  Bruno Haible  <bruno@clisp.org>
80609
80610                 * progreloc.c (set_program_name_and_installdir): Fix
80611                 compilation error.
80612
80613         2005-12-04  Bruno Haible  <bruno@clisp.org>
80614
80615                 Cygwin portability.
80616                 * progreloc.c: Include <windows.h> also on Cygwin.
80617                 (find_executable): Add support for Cygwin.
80618                 (set_program_name_and_installdir): Handle also platforms with
80619                 nonempty EXEEXT.
80620
80621         2006-07-11  Bruno Haible  <bruno@clisp.org>
80622
80623                 * javacomp.c: Fix a comment.
80624                 Reported by Jim Meyering.
80625
80626         2006-04-30  Bruno Haible  <bruno@clisp.org>
80627
80628                 * javacomp.h (compile_java_class): Add source_version,
80629                 target_version arguments.
80630                 * javacomp.c: Rewritten to choose only a compiler that
80631                 respects the specified source_version and target_version.
80632
80633         2006-06-27  Bruno Haible  <bruno@clisp.org>
80634
80635                 Assume correct S_ISDIR macro.
80636                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80637
80638         2006-07-22  Bruno Haible  <bruno@clisp.org>
80639
80640                 * javaversion.h: New file, from GNU gettext.
80641                 * javaversion.c: New file, from GNU gettext.
80642                 * javaversion.java: New file, from GNU gettext.
80643                 * javaversion.class: New file, from GNU gettext.
80644
80645         2006-05-17  Bruno Haible  <bruno@clisp.org>
80646
80647                 Cygwin portability.
80648                 * javaexec.c (execute_java_class): Test for jview program
80649                 also on Cygwin.
80650
80651         2006-04-09  Bruno Haible  <bruno@clisp.org>
80652
80653                 * fatal-signal.c: Don't include string.h.
80654                 (at_fatal_signal): Use a copying loop instead of memcpy.
80655
80656         2005-12-04  Bruno Haible  <bruno@clisp.org>
80657
80658                 * csharpexec.c: Add support for 'clix' launcher (untested).
80659                 (execute_csharp_using_sscli): New function.
80660                 (execute_csharp_program): Call it.
80661
80662         2006-06-21  Bruno Haible  <bruno@clisp.org>
80663
80664                 Avoid warnings from recent versions of mcs.
80665                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80666                 -o, -L, -r any more. Use options documented since mcs-1.0
80667                 instead. Similarly for -g.
80668
80669         2005-07-09  Bruno Haible  <bruno@clisp.org>
80670
80671                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80672                 add a .dll suffix.
80673                 Reported by Mark Junker <mjscod@gmx.de>.
80674
80675         2006-06-17  Bruno Haible  <bruno@clisp.org>
80676
80677                 * config.charset: Update for NetBSD 3.0.
80678
80679         2006-05-17  Bruno Haible  <bruno@clisp.org>
80680
80681                 Cygwin portability.
80682                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80683
80684         2006-05-16  Bruno Haible  <bruno@clisp.org>
80685
80686                 * localcharset.c [CYGWIN]: Include <windows.h>.
80687                 (get_charset_aliases): For Cygwin, return the same CPxxx
80688                 aliases list as under WIN32.
80689                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80690                 the environment variables. Fall back to GetACP().
80691
80692         2006-04-05  Bruno Haible  <bruno@clisp.org>
80693
80694                 * config.charset: Update Juan Manuel Guerrero's address.
80695
80696         2005-02-12  Bruno Haible  <bruno@clisp.org>
80697
80698                 * allocsa.h: Add extern "C" for C++.
80699
80700         2005-02-10  Bruno Haible  <bruno@clisp.org>
80701
80702                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80703                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80704
80705         2006-07-22  Bruno Haible  <bruno@clisp.org>
80706
80707                 * gettext.h: Update to GNU gettext-0.15.
80708
80709 2006-07-22  Bruno Haible  <bruno@clisp.org>
80710
80711         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80712         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80713         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80714
80715 2006-07-21  Eric Blake  <ebb9@byu.net>
80716
80717         * modules/stdlib-safer: New file.
80718         * MODULES.html.sh (File stream based Input/Output): Add
80719         stdlib-safer.
80720
80721 2006-07-21  Eric Blake  <ebb9@byu.net>
80722
80723         * lib/stdlib-safer.h: New file from coreutils, required by
80724         stdlib--.h.
80725
80726 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80727
80728         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80729
80730 2006-07-20  Bruno Haible  <bruno@clisp.org>
80731
80732         * gnulib-tool: Recognize new option --assume-autoconf.
80733         (autoconf_minversion): New variable.
80734         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80735
80736 2006-07-20  Bruno Haible  <bruno@clisp.org>
80737
80738         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80739
80740 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80741
80742         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80743         Reindent and repaginate.
80744
80745 2006-07-19  Derek Price  <derek@ximbiot.com>
80746
80747         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80748         Correct grammar.
80749
80750 2006-07-17  Bruno Haible  <bruno@clisp.org>
80751
80752         * modules/list: New file.
80753         * modules/array-list: New file.
80754         * modules/carray-list, modules/carray-list-tests: New files.
80755         * modules/linked-list, modules/linked-list-tests: New files.
80756         * modules/avltree-list, modules/avltree-list-tests: New files.
80757         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80758         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80759         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80760         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80761         * modules/oset: New file.
80762         * modules/array-oset: New file.
80763         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80764         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80765         * tests/test-carray_list.c: New file.
80766         * tests/test-linked_list.c: New file.
80767         * tests/test-avltree_list.c: New file.
80768         * tests/test-rbtree_list.c: New file.
80769         * tests/test-linkedhash_list.c: New file.
80770         * tests/test-avltreehash_list.c: New file.
80771         * tests/test-rbtreehash_list.c: New file.
80772         * tests/test-avltree_oset.c: New file.
80773         * tests/test-rbtree_oset.c: New file.
80774         * MODULES.html.sh (Container data structures): New section.
80775
80776 2006-07-17  Bruno Haible  <bruno@clisp.org>
80777
80778         * m4/gl_list.m4: New file.
80779
80780 2006-07-17  Bruno Haible  <bruno@clisp.org>
80781
80782         * lib/gl_list.h: New file.
80783         * lib/gl_list.c: New file.
80784         * lib/gl_array_list.h: New file.
80785         * lib/gl_array_list.c: New file.
80786         * lib/gl_carray_list.h: New file.
80787         * lib/gl_carray_list.c: New file.
80788         * lib/gl_linked_list.h: New file.
80789         * lib/gl_linked_list.c: New file.
80790         * lib/gl_anylinked_list1.h: New file.
80791         * lib/gl_anylinked_list2.h: New file.
80792         * lib/gl_avltree_list.h: New file.
80793         * lib/gl_avltree_list.c: New file.
80794         * lib/gl_anyavltree_list1.h: New file.
80795         * lib/gl_anyavltree_list2.h: New file.
80796         * lib/gl_rbtree_list.h: New file.
80797         * lib/gl_rbtree_list.c: New file.
80798         * lib/gl_anyrbtree_list1.h: New file.
80799         * lib/gl_anyrbtree_list2.h: New file.
80800         * lib/gl_anytree_list1.h: New file.
80801         * lib/gl_anytree_list2.h: New file.
80802         * lib/gl_linkedhash_list.h: New file.
80803         * lib/gl_linkedhash_list.c: New file.
80804         * lib/gl_anyhash_list1.h: New file.
80805         * lib/gl_anyhash_list2.h: New file.
80806         * lib/gl_avltreehash_list.h: New file.
80807         * lib/gl_avltreehash_list.c: New file.
80808         * lib/gl_rbtreehash_list.h: New file.
80809         * lib/gl_rbtreehash_list.c: New file.
80810         * lib/gl_anytreehash_list1.h: New file.
80811         * lib/gl_anytreehash_list2.h: New file.
80812
80813         * lib/gl_oset.h: New file.
80814         * lib/gl_oset.c: New file.
80815         * lib/gl_array_oset.h: New file.
80816         * lib/gl_array_oset.c: New file.
80817         * lib/gl_avltree_oset.h: New file.
80818         * lib/gl_avltree_oset.c: New file.
80819         * lib/gl_rbtree_oset.h: New file.
80820         * lib/gl_rbtree_oset.c: New file.
80821         * lib/gl_anytree_oset.h: New file.
80822
80823 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * m4/mkancesdirs.m4: New file.
80826         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80827         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80828         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80829         it.
80830
80831 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80834         * lib/mkancesdirs.h: New files.
80835         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80836         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80837         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80838         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80839         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80840         callers changed.  Revamp internals significantly, by not
80841         attempting to create directories that are temporarily more
80842         permissive than the final results.  Do not attempt to use
80843         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80844         This removes some race conditions, fixes some bugs, and simplifies
80845         things.  Use new dirchownmod function to do owner and mode changes.
80846         * lib/mkdir-p.h: Likewise.
80847         * lib/modechange.c (octal_to_mode): New function.
80848         (struct mode_change): New member mentioned.
80849         (make_node_op_equals): New arg mentioned.  All callers changed.
80850         (mode_compile): Keep track of which mode bits the user has explicitly
80851         mentioned.
80852         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80853         New arg PMODE_BITS, to keep track of which mode bits the user
80854         mentioned; it treats S_ISUID and S_ISGID speciall.
80855         All callers changed.
80856         * lib/modechange.h: Likewise.
80857
80858 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         * MODULES.html.sh: Add mkancestors.
80861         * modules/mkancesdirs: New module.
80862         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80863         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80864         The chdir-safer and afs files are now orphans; I'll remove them
80865         unless someone speaks up.
80866         Add lib/dirchownmod.c, lib/dirchownmod.h.
80867         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80868         Add lchown, mkancesdirs.
80869         (Maintainer): Add self.
80870
80871 2006-07-15  Karl Berry  <karl@gnu.org>
80872
80873         * gnulib-tool: help message wording/arrangement.
80874
80875 2006-07-14  Simon Josefsson  <jas@extundo.com>
80876
80877         * doc/gnulib.texi (Libtool and Windows): New section.
80878
80879 2006-07-12  Simon Josefsson  <jas@extundo.com>
80880
80881         * modules/gendocs (License): Fix license, approved by Karl.
80882
80883 2006-07-12  Eric Blake  <ebb9@byu.net>
80884
80885         * MODULES.html.sh: Add gendocs.
80886
80887 2006-07-11  Eric Blake  <ebb9@byu.net>
80888
80889         * modules/fdl: New module, to install doc/fdl.texi.
80890         * MODULES.html.sh: Add new section for documentation modules.
80891         * gnulib-tool: Avoid space-tab.
80892         (--doc-base): New option, to manage files from doc.
80893
80894 2006-07-11  Eric Blake  <ebb9@byu.net>
80895
80896         * m4/absolute-header.m4: Fix comments to match recent change.
80897
80898 2006-07-11  Eric Blake  <ebb9@byu.net>
80899
80900         * gnulib-tool: List --doc-base before --tests-base.
80901
80902 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80903
80904         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80905
80906 2006-07-11  Bruno Haible  <bruno@clisp.org>
80907
80908         * README: Mention where to put documentation.
80909
80910 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80911
80912         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80913
80914 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80915
80916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80917         to stdint.m4.
80918
80919 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80922         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80923         "no/such/file/stdint.h" when there is no such file, so that
80924         the resulting C code can be parsed by dodgy compilers.
80925         Problems reported by Bob Proulx.
80926
80927 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80928
80929         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80930         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80931         macros into the GNU _D_EXACT_NAMLEN.
80932         * lib/savedir.c:  Likewise.
80933         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80934
80935 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80936         and Paul Eggert  <eggert@cs.ucla.edu>
80937
80938         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80939         * m4/savedir.m4:
80940         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80941         macros into the GNU _D_EXACT_NAMLEN.
80942
80943 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80946         around the absolute name, to work around a problem with the HP-UX
80947         11.23 native C compiler, reported by Bob Proulx.
80948
80949 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         * doc/maintain.texi, make-stds.texi: Sync from
80952         <http://savannah.gnu.org/projects/gnustandards>.
80953
80954 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80957
80958 2006-07-09  Jim Meyering  <jim@meyering.net>
80959
80960         * m4/glob.m4: Remove a doubled word in a comment.
80961
80962 2006-07-09  Jim Meyering  <jim@meyering.net>
80963
80964         * lib/argp-pv.c: Remove a doubled word in a comment.
80965         * lib/check-version.c (check_version): Likewise.
80966         * lib/javacomp.c (compile_java_class): Likewise.
80967
80968 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80971         for the benefit of people using Autoconf 2.60.  If you want to
80972         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80973         (or m4/onceonly.m4, if pre-2.57) manually.
80974
80975 2006-07-08  Jim Meyering  <jim@meyering.net>
80976
80977         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80978         comment.
80979         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80980         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80981         comment.
80982
80983 2006-07-08  Jim Meyering  <jim@meyering.net>
80984
80985         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80986
80987 2006-07-07  Simon Josefsson  <jas@extundo.com>
80988
80989         * tests/test-crc.c: Change expected crc value, the test vector
80990         were probably computed using the old broken crc.c?
80991
80992 2006-07-06  Simon Josefsson  <jas@extundo.com>
80993
80994         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80995         now the canonical place for the M4 file).
80996
80997         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80998         from the sys_socket dependency now.
80999
81000         * modules/inet_pton (Files): Ditto.
81001
81002         * modules/inet_ntop (Files): Ditto.
81003
81004 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81005
81006         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81007         not gl_PREREQ_GETUSERSHELL.
81008
81009 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81010
81011         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81012         with only one argument, for Autoconf 2.60.
81013         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81014         expand to nothing, so add a shell command to avoid syntax error.
81015         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81016
81017 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81018
81019         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81020
81021 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81022
81023         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81024         no longer needed.  Check for isblank decl.
81025         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81026         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81027         of existence.
81028
81029 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * lib/getloadavg.c: Use __VMS, not VMS.
81032         * lib/getopt.c: Likewise.
81033         * lib/getpagesize.h: Likewise.
81034         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81035         and probably does not work.
81036
81037 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * lib/.cppi-disable: Add wcwidth.
81040         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81041         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81042         (ISGRAPH): Remove.  All uses changed to isgraph.
81043         (FOLD) [!defined _LIBC]: Remove special case.
81044         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81045         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81046         HAVE_ISBLANK.
81047         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81048         case.
81049
81050 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81051
81052         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81053         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81054         brackets.  Other minor changes to suppress some compiler
81055         warnings.
81056
81057 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81058         and Paul Eggert  <eggert@cs.ucla.edu>
81059
81060         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81061         of invoking obsolescent AC_HEADER_DIRENT macro.
81062         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81063         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81066         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81067         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81068         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81069         * m4/readdir.m4: Remove; no longer needed.
81070
81071 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81072         and Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81075         Don't worry about this obsolete case any more.
81076         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81077         directories.
81078         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81079         worry about this obsolete case any more.
81080         * lib/fts.c: Likewise.
81081         * lib/getcwd.c: Likewise.
81082         * lib/glob.h: Likewise.
81083         * lib/savedir.c: Likewise.
81084
81085 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81088         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81089         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81090         needed.
81091         All uses removed.
81092         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81093         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81094         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81095         needed.
81096         * m4/getdate.m4 (gl_GETDATE): Likewise.
81097         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81098         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81099         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81100         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81101         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81102         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81103         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81104         needed.
81105
81106 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81107
81108         * lib/memcasecmp.c: Include <limits.h>.
81109         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81110         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81111         Don't assume isdigit succeeds only on '0' through '9'.
81112
81113 2006-07-05  Eric Blake  <ebb9@byu.net>
81114
81115         * modules/getaddrinfo (Depends-on): Add snprintf.
81116
81117 2006-07-05  Eric Blake  <ebb9@byu.net>
81118
81119         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81120         to avoid 'header present but could not be compiled' on cygwin.
81121
81122 2006-07-05  Eric Blake  <ebb9@byu.net>
81123
81124         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81125         missing from netdb.h.
81126         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81127
81128 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81129
81130         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81131         no longer needed.
81132         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81133         * m4/getdate.m4 (gl_GETDATE): Likewise.
81134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81135         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81136         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81137         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81138         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81139
81140 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81141
81142         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81143         All uses of is_space replaced by isspace.
81144         * lib/exit.h: Don't talk about STDC_HEADERS.
81145         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81146         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81147         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81148         replaced by isprint etc.
81149         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81150         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81151         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81152         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81153         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81154         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81155
81156 2006-07-05  Bruno Haible  <bruno@clisp.org>
81157
81158         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81159         the function exists, before testing against AIX.
81160         Reported by Martin Lambers <marlam@marlam.de>.
81161
81162 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81165         From Mark D. Baushke.
81166
81167 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81170         to the absolute name, not just one, to bypass Sun C 5.8's
81171         "warning: #include of /usr/include/... may be non-portable".
81172
81173 2006-07-04  Eric Blake  <ebb9@byu.net>
81174
81175         * modules/dirname-tests: New test module.
81176         * tests/test-dirname.c: New file, replacing dirname.c
81177         TEST_DIRNAME section that was recently deleted.
81178
81179 2006-07-04  Bruno Haible  <bruno@clisp.org>
81180
81181         Assume ANSI C header files and <ctype.h> functions.
81182         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81183         (mbsnwidth): Use isprint, iscntrl instead.
81184
81185 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         Merge from coreutils.
81188         * MODULES.html.sh: Add xstrtold.
81189         * modules/xstrtold: New file.
81190         * modules/cycle-check (Files): Add lib/same-inode.h.
81191         * modules/dirname (Files): Add m4/double-slash-root.m4.
81192         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81193         * modules/mkdir-p (Files): Add lib/same-inode.h.
81194         * modules/same (Files): Add lib/same-inode.h.
81195
81196 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81199         This is to keep the terminology clean; POSIX talks about
81200         "absolute pathnames", not "full pathnames", but the GNU
81201         Coding Standards say to use "path" for something else;
81202         so use "absolute" to keep both sides happy.
81203         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81204         Set gl_absolute_header, not gl_full_header_path.
81205         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81206         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81207         All uses changed.
81208
81209         Merge from coreutils.
81210
81211         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81212
81213         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81214         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81215         want to require the building of c-strtod.o.
81216         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81217         needs -lm directly.
81218         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81219
81220         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81223         --as-needed option if available.  Problem reported by Albert Chin in
81224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81225         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81226         cc merely issues a bunch of annoying warnings for --as-needed
81227         (this problem was reported by Bob Proulx).  Also, try linking with
81228         -lm to detect a bug in binutils 2.16 (this problem was reported
81229         by Ralf Wildenhues).
81230
81231         2006-06-18  Jim Meyering  <jim@meyering.net>
81232
81233         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81234         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81235         macro.
81236         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81237         also check for glibc-2.4's abort-inducing bug.
81238
81239         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81240         Low-probability clean-up should be to use rmdir to get rid of
81241         the just-created directory, not unlink.
81242
81243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81244         configure fail, and request a bug report to inform us about it.
81245         Add a comment that, barring reports to the contrary, in 2007 we'll
81246         assume ftruncate is universally available.
81247
81248         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81249
81250         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81251
81252         2006-03-12  Jim Meyering  <jim@meyering.net>
81253
81254         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81255         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81256         * m4/same.m4 (gl_SAME): Likewise.
81257         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81258
81259         2006-03-11  Eric Blake  <ebb9@byu.net>
81260
81261         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81262         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81263         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81264         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81265
81266 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81267
81268         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81269         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81270         reported by Mark D. Baushke, one in
81271         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81272
81273         Merge from coreutils.
81274
81275         * lib/.cppi-disable: Add stdint_.h.
81276         * lib/.cvsignore: Add stdint.h.
81277
81278         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81281         both double and long double versions.
81282         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81283         * lib/xstrtold.c: New file.
81284         * lib/xstrtod.h (xstrtold): New decl.
81285
81286         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * lib/filemode.c (setst): Remove.
81289         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81290         (arguably) clearer, and the generated code is a bit smaller on my
81291         Debian GNU/Linux stable x86 host.
81292
81293         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81296         Assume that filemode.h includes sys/types.h and sys/stat.h.
81297         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81298         (ftypelet): Reorder to put common cases first, for efficiency.
81299         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81300         to do 'M'.
81301         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81302         of 10, for compatibility with FreeBSD.  All callers changed.
81303         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81304         types that can't be deduced solely from st_mode.  First arg is now a
81305         const pointer.
81306         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81307         (strmode): Renamed from mode_string.
81308         (filemodestring): New decl.
81309         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81310         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81311         needed.
81312         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81313
81314         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81317         fsusage.h now does that.  Include fsusage.h first, to test interface.
81318         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81319         at most one method (the old code could have generated decls that
81320         didn't conform to C89, not that this was ever exercised).
81321         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81322
81323         2006-03-19  Jim Meyering  <jim@meyering.net>
81324
81325         Work even in a chroot where d_ino values for entries in "/"
81326         don't match the stat.st_ino values for the same names.
81327         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81328         number, iterate through all entries again, using lstat instead.
81329         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81330         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81331
81332         * lib/getcwd.c (__getcwd): Clarify a comment.
81333         Use memcpy in place of a call to strcpy.
81334
81335         2006-03-12  Jim Meyering  <jim@meyering.net>
81336
81337         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81338         matches that of the current directory (which we're about to chdir ".."
81339         out of), then save the dev-ino of the parent, instead.
81340
81341         * lib/same-inode.h (SAME_INODE): New file/macro.
81342         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81343         Include "same-inode.h", instead.
81344         * lib/same.c: Likewise.
81345         * lib/cycle-check.h: Include "same-inode.h".
81346         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81347         * lib/cycle-check.c (SAME_INODE): Remove definition.
81348         * lib/root-dev-ino.h: Include "same-inode.h".
81349
81350         2006-03-11  Eric Blake  <ebb9@byu.net>
81351
81352         * lib/same.c (same_name): s/base_name/last_component/
81353         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81354         * lib/filenamecat.c (file_name_concat): Likewise.
81355
81356         2006-03-11  Eric Blake  <ebb9@byu.net>,
81357                     Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81360         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81361         drive prefix.
81362         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81363         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81364         (last_component): New method.
81365         * lib/dirname.c (dir_len): Determine when drive letters need a
81366         subsequent slash.  Preserve // when it is special.
81367         (dir_name): Don't append dot when drive letter is absolute.
81368         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81369         * lib/basename.c (base_name): New semantics - malloc the result.
81370         Preserve // when it is special.  Preserve relative files that look
81371         like drive letters.
81372         (base_len): Preserve // when it is special.
81373         (last_component): New method, similar to old base_name semantics.
81374         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81375         base_name.  Strip redundant slashes from ///.
81376
81377 2006-07-03  Jim Meyering  <jim@meyering.net>
81378
81379         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81380         macro is used before the first cycle_check call.
81381
81382 2006-07-03  Eric Blake  <ebb9@byu.net>
81383
81384         * modules/dirname (Depends-on): Add xstrndup.
81385
81386 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81387
81388         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81389         test cases, so that config.log is a bit easier to follow.
81390
81391 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81394         both are 64 bits, since this seems to be the tradition, and this
81395         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81396         we ever run into a host that prefers long long to long in this
81397         case, we'll need another configure-time test.  Problem reported by
81398         Jim Meyering.
81399
81400 2006-07-02  Eric Blake  <ebb9@byu.net>
81401
81402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81403
81404 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         * modules/inttypes (Depends-on): No longer depends on stdint.
81407         * modules/stdint (Description): Say more about assumptions.
81408         Say that the fast types might differ.  Say macros are used.
81409         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81410         (Makefile.am): Revise list of substituted symbols to match
81411         new stdint.m4.
81412         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81413         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81414         * tests/test-stdint.c (verify_same_types)
81415         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81416         the code conforms to C99/C89.
81417         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81418         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81419
81420 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81423         but fix a bug, by requiring at least 64 bits.
81424         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81425         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81426         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81427         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81428
81429         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81430         changes.  Make 2.59 a prerequisite.  Check and substitute for
81431         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81432         inttypes.h.  Do not use special include files; just use the
81433         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81434         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81435         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81436         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81437         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81438         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81439         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81440         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81441         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81442         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81443         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81444         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81445         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81446         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81447         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81448         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81449         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81450         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81451         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81452         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81453         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81454         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81455         not check for things that C99 does not require, e.g., int8_t.  If
81456         a test isn't needed unless <stdint.h> isn't working, and is
81457         unlikely to be needed for any other reason, then don't do it
81458         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81459         size_t, since we assume C89 freestanding at least.  Do not check
81460         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81461         the right thing even if the types are not defined.  Instead use:
81462         (gl_STDINT_TYPE_PROPERTIES): New macro.
81463         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81464         testing whether <sys/types.h> clashes, as Autoconf does this for
81465         us now.  All uses removed.
81466         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81467         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81468         (gl_CHECK_TYPE_SAME):
81469         Remove; no longer needed.
81470         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81471         exists, since we'll return 0 anyway in that case.
81472         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81473
81474 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81477         possible collision with system files.
81478         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81479         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81480         WCHAR_MIN and WCHAR_MAX in this case.
81481         (<stddef.h>): Do not include; no longer needed.
81482         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81483         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81484         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81485         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81486         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81487         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81488         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81489         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81490         !defined(__c99))]: Include in this case too, since it's harmless
81491         now.
81492         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81493         dangerous to do so.
81494         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81495         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81496         (_STDINT_MIN, _STDINT_MAX): New macros.
81497         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81498         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81499         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81500         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81501         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81502         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81503         macros, not typedefs; this simplifies things quite a bit.
81504         Use long int for all types narrower than int64_t.
81505         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81506         Define in terms of long long int or int64_t or long int,
81507         not int64_t or int32_t.  This saves some compile-time testing.
81508         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81509         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81510         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81511         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81512         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81513         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81514         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81515         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81516         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81517         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81518         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81519         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81520         undef any previous version and define our own version, for
81521         simplicity and consistency with the new macros for types.
81522         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81523         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81524         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81525         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81526         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81527         @WINT_T_SUFFIX@ to keep things simple here.
81528         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81529         Simplify by assuming typical 8/16/32/64 host, since we're
81530         already doing that elsewhere anyway.
81531         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81532         and assume long long int is 64 bits if available.  This
81533         speeds up 'configure'.
81534
81535 2006-07-01  Eric Blake  <ebb9@byu.net>
81536
81537         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81538         Reported by Andreas Buening.
81539
81540 2006-07-01  Eric Blake  <ebb9@byu.net>
81541
81542         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81543
81544 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81545
81546         * lib/getaddrinfo.c: fixed typo
81547
81548 2006-06-29  Jim Meyering  <jim@meyering.net>
81549
81550         * modules/strftime (Maintainer): Add my name, since with the
81551         FPRINTFTIME changes strftime.c has forked from glibc.
81552
81553 2006-06-29  Eric Blake  <ebb9@byu.net>
81554
81555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81556
81557 2006-06-29  Eric Blake  <ebb9@byu.net>
81558
81559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81560
81561 2006-06-29  Eric Blake  <ebb9@byu.net>
81562
81563         * lib/stat_.h: New file.
81564
81565 2006-06-29  Eric Blake  <ebb9@byu.net>
81566
81567         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81568         unused static function.
81569
81570 2006-06-29  Eric Blake  <ebb9@byu.net>
81571
81572         * doc/functions.texi (Function Portability): Document missing lstat
81573         on mingw.
81574
81575 2006-06-29  Eric Blake  <ebb9@byu.net>
81576
81577         * MODULES.html.sh: Add sys_stat.
81578         * modules/sys_stat: New module.
81579         * modules/mkstemp (Depends-on): Add sys_stat.
81580
81581 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81582
81583         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81584
81585 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81586
81587         * m4/c-bs-a.m4: Removed.
81588
81589 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81590
81591         * lib/strftime.c: Assume strftime() exists.
81592
81593 2006-06-29  Derek Price  <derek@ximbiot.com>
81594
81595         * modules/c-bs-a: Removed - \a is C89.
81596         * MODULES.html.sh: Remove c-bs-a.
81597
81598 2006-06-29  Bruno Haible  <bruno@clisp.org>
81599
81600         * modules/wcwidth (License): Change to LGPL.
81601
81602 2006-06-28  Simon Josefsson  <jas@extundo.com>
81603
81604         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81605         on _WIN32.
81606
81607         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81608         getnameinfo.
81609
81610 2006-06-28  Simon Josefsson  <jas@extundo.com>
81611
81612         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81613
81614 2006-06-28  Simon Josefsson  <jas@extundo.com>
81615
81616         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81617         functions there.  It will succeed on Windows XP, but on Windows
81618         2000 and (presumably) earlier, it will fail, and use the internal
81619         re-implementation.
81620         (use_win32_p): New function.
81621         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81622         Support AI_NUMERICSERV to disable getservbyname.
81623         (getnameinfo): New function, only supports
81624         NI_NUMERICHOST|NI_NUMERICSERV for now.
81625
81626         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81627         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81628         getnameinfo.
81629
81630 2006-06-28  Eric Blake  <ebb9@byu.net>
81631
81632         * modules/wcwidth: New file.
81633         * modules/mbchar (Depends-on): Add wcwidth.
81634         * modules/mbswidth (Depends-on): Add wcwidth.
81635         * MODULES.html.sh: Add wcwidth.
81636
81637 2006-06-28  Eric Blake  <ebb9@byu.net>
81638
81639         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81641
81642 2006-06-28  Eric Blake  <ebb9@byu.net>
81643
81644         * lib/xvasprintf.h: Fix comments.
81645
81646 2006-06-28  Eric Blake  <ebb9@byu.net>
81647
81648         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81649         * lib/mbswidth.c (wcwidth): Move from here...
81650         * lib/wcwidth.h: ...to this new file.
81651
81652 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81653
81654         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81655
81656         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81657         it's obsolete.
81658         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81659
81660 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81661
81662         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81663         Autoconf 2.60 says this stuff was obsolete.
81664
81665 2006-06-28  Bruno Haible  <bruno@clisp.org>
81666
81667         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81668
81669 2006-06-28  Bruno Haible  <bruno@clisp.org>
81670
81671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81672         gt_TYPE_WCHAR_T.
81673
81674 2006-06-28  Bruno Haible  <bruno@clisp.org>
81675
81676         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81677         declaration for wcwidth.
81678         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81679
81680 2006-06-28  Bruno Haible  <bruno@clisp.org>
81681
81682         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81683         (mkdir): Define using _mkdir.
81684
81685 2006-06-28  Bruno Haible  <bruno@clisp.org>
81686
81687         * lib/getaddrinfo.h: Fix POSIX URL.
81688         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81689         _WIN32.
81690         (use_win32_p): Make static.
81691         (getaddrinfo): Reject service name if it is empty or does not consist
81692         solely of decimal digits, or if its value is > 65535.
81693         (getnameinfo): Remove useless casts.
81694
81695 2006-06-27  Simon Josefsson  <jas@extundo.com>
81696
81697         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81698         Eggert and Martin Lambers.
81699
81700 2006-06-27  Simon Josefsson  <jas@extundo.com>
81701
81702         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81703         Eggert and Martin Lambers.
81704
81705 2006-06-27  Bruno Haible  <bruno@clisp.org>
81706
81707         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81708         result to 0, not to empty.
81709         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81710
81711 2006-06-27  Bruno Haible  <bruno@clisp.org>
81712
81713         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81714
81715 2006-06-26  Simon Josefsson  <jas@extundo.com>
81716
81717         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81718         present.
81719
81720 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81721
81722         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81723         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81725
81726 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81727
81728         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81729
81730 2006-06-26  Bruno Haible  <bruno@clisp.org>
81731
81732         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81733
81734 2006-06-26  Bruno Haible  <bruno@clisp.org>
81735
81736         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81737
81738 2006-06-26  Bruno Haible  <bruno@clisp.org>
81739
81740         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81741         SGI C compiler in pre-C99 mode.
81742         Suggested by Mark D. Baushke and Larry Jones.
81743
81744 2006-06-26  Bruno Haible  <bruno@clisp.org>
81745
81746         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81747         WCHAR_MAX.
81748         Reported by Mark D. Baushke and Larry Jones.
81749
81750 2006-06-26  Bruno Haible  <bruno@clisp.org>
81751
81752         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81753         in pre-C99 mode.
81754         Suggested by Mark D. Baushke and Larry Jones.
81755
81756 2006-06-23  Simon Josefsson  <jas@extundo.com>
81757             Bruno Haible  <bruno@clisp.org>
81758
81759         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81760         Emit mostlyclean-local rule.
81761         (func_emit_tests_Makefile_am): Likewise.
81762         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81763
81764 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81765
81766         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81767
81768 2006-06-23  Bruno Haible  <bruno@clisp.org>
81769
81770         * tests/test-stdint.c: Update to match ISO C 99 Technical
81771         Corrigendum 1.
81772
81773 2006-06-23  Bruno Haible  <bruno@clisp.org>
81774
81775         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81776
81777 2006-06-23  Bruno Haible  <bruno@clisp.org>
81778
81779         * lib/stdint_.h: Treat IRIX like OpenBSD.
81780
81781 2006-06-23  Bruno Haible  <bruno@clisp.org>
81782
81783         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81784         ISO C 99 Technical Corrigendum 1.
81785
81786 2006-06-22  Simon Josefsson  <jas@extundo.com>
81787
81788         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81789         MinGW.
81790
81791 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81792
81793         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81794         needed.  Some compiler complained about some of them.  Problem reported
81795         by Larry Jones in
81796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81797
81798 2006-06-21  Simon Josefsson  <jas@extundo.com>
81799
81800         * tests/test-getaddrinfo.c: New file.
81801
81802         * modules/getaddrinfo-tests: New file.
81803
81804         * MODULES.html.sh: Add inet_pton.
81805
81806         * modules/inet_pton: New file.
81807
81808 2006-06-21  Simon Josefsson  <jas@extundo.com>
81809
81810         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81811         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81812         of using the (limited) gnulib implementation on Windows XP.
81813
81814         * m4/inet_pton.m4: New file.
81815
81816 2006-06-21  Simon Josefsson  <jas@extundo.com>
81817
81818         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81819         variable.
81820
81821         * lib/socket_.h: Don't define WINVER.
81822
81823         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81824         slightly modified to work in gnulib.
81825
81826 2006-06-21  Simon Josefsson  <jas@extundo.com>
81827
81828         * doc/gnulib.texi (Windows sockets): Add.
81829
81830 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * lib/read-file.c (fread_file): Start with buffer allocation of
81833         0 bytes rather than 1 byte; this simplifies the code.
81834         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81835         code to free buffer and save/restore errno.
81836         (internal_read_file): Remove unused local.
81837
81838 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81841         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81842         Problem reported by Denis Excoffier in
81843         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81844
81845 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81846
81847         * modules/sys_socket, modules/socklen: Include sys/types since
81848         FreeBSD 4.x's sys/socket.h needs it.
81849
81850 2006-06-19  Simon Josefsson  <jas@extundo.com>
81851
81852         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81853
81854 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81857
81858 2006-06-19  Bruno Haible  <bruno@clisp.org>
81859
81860         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81861         and FULL_PATH_INTTYPES_H in angle brackets.
81862         Reported by Mark D. Baushke <mdb@gnu.org>.
81863
81864 2006-06-17  Eric Blake  <ebb9@byu.net>
81865
81866         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81867         errno.
81868
81869 2006-06-17  Bruno Haible  <bruno@clisp.org>
81870
81871         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81872         <sys/inttypes.h>.
81873
81874 2006-06-17  Bruno Haible  <bruno@clisp.org>
81875
81876         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81877         whether errno is declared. Assume <errno.h> declares errno.
81878
81879 2006-06-17  Bruno Haible  <bruno@clisp.org>
81880
81881         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81882
81883 2006-06-17  Bruno Haible  <bruno@clisp.org>
81884
81885         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81886         problem on Solaris 2.5.1.
81887
81888 2006-06-16  Eric Blake  <ebb9@byu.net>
81889
81890         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81891         * lib/unicodeio.c [!defined errno]: Likewise.
81892         * lib/strtol.c [!defined errno]: Likewise.
81893         * lib/strtod.c [!defined errno]: Likewise.
81894
81895 2006-06-15  Eric Blake  <ebb9@byu.net>
81896
81897         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81898
81899 2006-06-15  Eric Blake  <ebb9@byu.net>
81900
81901         * config/srclist.txt (ssize_t.m4): Lose sync.
81902
81903 2006-06-15  Bruno Haible  <bruno@clisp.org>
81904
81905         * modules/stdint (Files): Include m4/full-header-path.m4,
81906         m4/size_max.m4, m4/wchar_t.m4.
81907         (Makefile.am): Many more substitutions.
81908         * modules/stdint-tests: New file.
81909         * tests/test-stdint.c: New file.
81910
81911 2006-06-15  Bruno Haible  <bruno@clisp.org>
81912
81913         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81914         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81915         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81916         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81917         gl_CHECK_TYPE_SAME): New macros.
81918
81919 2006-06-15  Bruno Haible  <bruno@clisp.org>
81920
81921         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81922
81923 2006-06-15  Bruno Haible  <bruno@clisp.org>
81924
81925         * lib/stdint_.h: Rewritten to be fully auto-configured.
81926         Fixes bug on HP-UX/IA64.
81927
81928 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81929
81930         * lib/getdate.y (__attribute__): Don't define if already defined.
81931         Problem reported by Larry Jones.
81932         * lib/utimens.c (__attribute__): Likewise.
81933
81934 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81937         reported by Andreas Schwab.
81938
81939 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81940             Bruno Haible  <bruno@clisp.org>
81941
81942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81943         check for the declaration of strnlen and a run test that exposes the
81944         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81945         rpl_strndup.
81946
81947 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81948             Bruno Haible  <bruno@clisp.org>
81949
81950         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81951
81952 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81953
81954         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81955         compile test, for Tru64 4.0D.
81956
81957 2006-05-28  Karl Berry  <karl@gnu.org>
81958
81959         * config/srclist.txt (printf-args.c): lose sync.
81960
81961 2006-05-26  Martin Lambers  <marlam@marlam.de>
81962
81963         * lib/getpass.c: Updates the test for the native W32 API, and adds
81964         missing includes, thus fixing compilation warnings.
81965
81966 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81967
81968         * lib/exclude.c (exclude_fnmatch): New function.
81969         (excluded_file_name): Call exclude_fnmatch.
81970         * lib/exclude.h (excluded_file_name): New prototype
81971
81972 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * lib/tempname.c (small_open, large_open): New macros.
81975         (__open, __open64) [!_LIBC]: Remove.
81976         (__gen_tempname): Use small_open and large_open instead of __open
81977         and __open64.  This fixes a portability bug on HP-UX 11.11i
81978         reported by Simon Wing-Tang in
81979         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81980
81981 2006-05-24  Bruno Haible  <bruno@clisp.org>
81982
81983         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81984         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81985         Reported by Thorsten Maerz <torte@netztorte.de> via
81986         Aaron Stone <aaron@serendipity.cx>.
81987
81988 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81991         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81992         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81993         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81994         not really conditional on the cache.
81995         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81996
81997 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82000         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82001         (my_usleep): Don't mishandle maximum value.
82002
82003 2006-05-19  Jim Meyering  <jim@meyering.net>
82004
82005         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82006
82007 2006-05-17  Bruno Haible  <bruno@clisp.org>
82008
82009         Cygwin portability.
82010         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82011
82012 2006-05-17  Bruno Haible  <bruno@clisp.org>
82013
82014         * lib/stdint_.h: Fix recognition of Cygwin.
82015
82016 2006-05-15  Bruno Haible  <bruno@clisp.org>
82017
82018         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82019         on libtool patch by Ralf Wildenhues.
82020
82021 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82022
82023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82024         test for C99 conformance; (bool) 0.5 is an integer constant
82025         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82026         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82027
82028 2006-05-11  Simon Josefsson  <jas@extundo.com>
82029
82030         * m4/xvasprintf.m4: Fix obvious typo.
82031
82032 2006-05-11  Jim Meyering  <jim@meyering.net>
82033
82034         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82035         James Lemley.
82036
82037 2006-05-10  Simon Josefsson  <jas@extundo.com>
82038
82039         * lib/md4.c: Typo fix, update copyright years.
82040         (K1, K2): Don't use L because it turn computations into 64-bit on
82041         64-bit platforms.
82042
82043 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82046         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82047         unwanted sign propagation, e.g., on hosts with 64-bit int.
82048         There still are some problems with reeelly weird theoretical hosts
82049         (e.g., 33-bit int) but it's not worth worrying about now.
82050         * lib/sha1.c (rol): Likewise.
82051         (K1, K2, K3, K4): Remove unnecessary L suffix.
82052
82053 2006-05-10  Bruno Haible  <bruno@clisp.org>
82054
82055         * lib/des.c: Cast to avoid warnings.
82056
82057 2006-05-09  Bruno Haible  <bruno@clisp.org>
82058
82059         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82060         (Depends-on): Depend also on xsize, stdarg.
82061         (configure.ac): Add gl_XVASPRINTF.
82062
82063 2006-05-09  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/xvasprintf.m4: New file.
82066
82067 2006-05-09  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82070         (EOVERFLOW): Define fallback value.
82071         (xstrcat): New function.
82072         (xvasprintf): Recognize the special case of a string concatenation.
82073
82074 2006-05-08  Eric Blake  <ebb9@byu.net>
82075
82076         * gnulib-tool (func_version): Base copyright year on CVS date.
82077         (func_emit_copyright_notice): New function.
82078         (func_emit_lib_Makefile_am): Use it.
82079         (func_emit_tests_Makefile_am): Likewise.
82080         (func_import): Likewise.
82081
82082 2006-05-08  Bruno Haible  <bruno@clisp.org>
82083
82084         * modules/stdarg: New file.
82085         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82086
82087 2006-05-08  Bruno Haible  <bruno@clisp.org>
82088
82089         * m4/stdarg.m4: New file, from GNU gettext.
82090
82091 2006-05-08  Bruno Haible  <bruno@clisp.org>
82092
82093         * config/srclist.txt (build-aux/config.rpath): different from latest
82094         release.
82095
82096 2006-05-08  Bruno Haible  <bruno@clisp.org>
82097
82098         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82099
82100 2006-05-05  Jim Meyering  <jim@meyering.net>
82101
82102         * m4/warning.m4: New file, derived from bison's file by the same name.
82103
82104 2006-05-03  Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/stdint_.h: Shorter URL.
82107         * lib/inttypes.h: Likewise.
82108
82109 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82112
82113 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * lib/verify.h: Document the internals better.  Most of this change
82116         was written by Bruno Haible.
82117
82118 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82119
82120         * doc/verify.texi: New file, partly based on a proposal by
82121         Bruno Haible.
82122
82123 2006-05-02  Bruno Haible  <bruno@clisp.org>
82124
82125         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82126         test from here...
82127         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82128
82129 2006-04-29  Bruno Haible  <bruno@clisp.org>
82130
82131         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82132         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82133
82134 2006-04-29  Bruno Haible  <bruno@clisp.org>
82135
82136         * gnulib-tool: Make --update option actually work.
82137
82138 2006-04-29  Bruno Haible  <bruno@clisp.org>
82139
82140         * doc/gcd.texi: New file.
82141         * doc/gnulib.texi: Include it.
82142
82143 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/getdate.y (get_date): When adding relative date, start with the
82146         initial time, not with the result of the first mktime call.
82147
82148 2006-04-25  Bruno Haible  <bruno@clisp.org>
82149
82150         * gnulib-tool (func_import): Output the include directives in three
82151         blocks, sorted separately.
82152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82153
82154 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82157         to define main with arguments, for C++.  Reported by Eric Blake.
82158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82159         Prefer 'int main ()' to 'int main (void)', for C++.
82160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82161         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82162         for 'main', for C99 and C++.
82163
82164 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82165
82166         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82167         Don't assume that exit status -1 is valid.
82168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82169         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82170         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82171         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82172         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82173         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82174         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82175         functions can be used without declaring them, or that you can
82176         exit with status -1.
82177         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82178
82179 2006-04-24  Karl Berry  <karl@gnu.org>
82180
82181         * config/srclist.txt (longdouble.m4): sync lost.
82182
82183 2006-04-24  Eric Blake  <ebb9@byu.net>
82184
82185         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82186
82187 2006-04-24  Bruno Haible  <bruno@clisp.org>
82188
82189         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82190         poll() implementation in AIX.
82191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82192
82193 2006-04-24  Bruno Haible  <bruno@clisp.org>
82194
82195         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82196         assigned exactly once.
82197
82198 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82199             Bruno Haible  <bruno@clisp.org>
82200
82201         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82202         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82203         for AM_CPPFLAGS.
82204
82205 2006-04-23  Bruno Haible  <bruno@clisp.org>
82206
82207         * modules/copy-file: Depend on unistd.
82208         * modules/execute: Likewise.
82209         * modules/fatal-signal: Likewise.
82210         * modules/findprog: Likewise.
82211         * modules/mkdtemp : Likewise.
82212         * modules/pipe: Likewise.
82213         * modules/wait-process: Likewise.
82214
82215 2006-04-23  Bruno Haible  <bruno@clisp.org>
82216
82217         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82218         condition was already detected.
82219         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82220
82221 2006-04-23  Bruno Haible  <bruno@clisp.org>
82222
82223         * lib/copy-file.c: Include <unistd.h> unconditionally.
82224         * lib/execute.c: Likewise.
82225         * lib/fatal-signal.c: Likewise.
82226         * lib/findprog.c: Likewise.
82227         * lib/mkdtemp.c: Likewise.
82228         * lib/pipe.h: Likewise.
82229         * lib/pipe.c: Likewise.
82230         * lib/wait-process.h: Likewise.
82231
82232 2006-04-23  Bruno Haible  <bruno@clisp.org>
82233
82234         * gnulib-tool (func_usage): Fix --import description. Document
82235         --update.
82236         (func_import): Create temporary file in a temporary directory, if
82237         --dry-run is specified. Silence errors from 'grep' when there are no
82238         m4 files in $m4dir.
82239         (func_create_testdir): Silence errors from 'grep' when there are no
82240         m4 files in $m4dir.
82241         Reported by Karl Berry <karl@freefriends.org>.
82242
82243 2006-04-20  Bruno Haible  <bruno@clisp.org>
82244
82245         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82246         one argument, so that the code will be portable to Autoconf 2.60.
82247         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82248         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82249         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82250
82251 2006-04-19  Derek Price  <derek@ximbiot.com>
82252             Eric Blake  <ebb9@byu.net>
82253
82254         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82255         rather than "/full/path.h".  Update comment to match.  Shorten &
82256         generalize m4_translit call via AS_TR_CPP.
82257
82258 2006-04-19  Derek Price  <derek@ximbiot.com>
82259             Eric Blake  <ebb9@byu.net>
82260
82261         * lib/inttypes.h: Correct grammar in comment.
82262
82263 2006-04-18  Derek Price  <derek@ximbiot.com>
82264             Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * modules/inttypes: New file.
82267         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82268
82269 2006-04-18  Derek Price  <derek@ximbiot.com>
82270             Paul Eggert  <eggert@cs.ucla.edu>
82271
82272         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82273         New files.
82274
82275 2006-04-18  Derek Price  <derek@ximbiot.com>
82276             Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         * lib/inttypes.h: New file.
82279         * lib/strtoimax.c: Assume <inttypes.h>.
82280
82281 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82282
82283         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82284         isn't mounted.  Problem reported by Kir Kolyshkin.
82285
82286 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82287
82288         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82289         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82290         Derek R. Price.
82291         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82292         implementation.
82293
82294 2006-04-12  Eric Blake  <ebb9@byu.net>
82295
82296         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82297         is now done automatically by the corresponding Autoconf macro.
82298
82299 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82302         time_r.h.
82303
82304 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         Merge regex changes from libc, removing some of our
82307         POSIX-conformance changes that were rejected and redoing them in a
82308         less-intrusive way.
82309
82310         * lib/regcomp.c (re_compile_internal, init_dfa):
82311         Length arg is now size_t, not Idx.  All uses changed.
82312         (peek_token): Forward decl now says internal_function.
82313         (__re_error_msgid, __re_error_msgid_idx):
82314         Now static rather than extern with attribute_hidden.
82315         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82316         For some reason libc prefers K&R style defns for external functions.
82317         (regerror) [!defined _LIBC]: Likewise.
82318         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82319         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82320         (build_range_exp, build_collating_symbol):
82321         Use K&R-style defn.
82322         (re_compile_fastmap): Use '\0' to memset, not 0.
82323         (utf8_sb_map): Make the calculations more obvious.
82324         (init_dfa, parse_bracket_exp, build_charclass_op):
82325         Call calloc and cast result, as glibc does.
82326         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82327         (build_range_exp, build_collating_symbol):
82328         Now internal functions.
82329
82330         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82331
82332         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82333         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82334         Don't depend on VMS; depend on __VMS instead, for POSIX
82335         namespace cleanness.
82336         (regoff_t): Define to ssize_t, not long int.
82337
82338         Remove the REG_ macros named below.  Instead, make the old names
82339         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82340         __USE_GNU_REGEX.
82341         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82342         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82343         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82344         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82345         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82346         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82347         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82348         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82349         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82350         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82351         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82352         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82353         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82354         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82355         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82356         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82357         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82358         (REG_NREGS):
82359         Remove.  All uses replaced by the old RE_* names.
82360         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82361         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82362         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82363         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82364         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82365         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82366         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82367         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82368         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82369         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82370         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82371         Don't bother having these macros be independent of each others'
82372         values, since they no longer exist in the POSIX name space.
82373
82374         Rename the following member names back to their old names,
82375         unless !__USE_GNU_REGEX.  All uses changed back.
82376         (buffer): Renamed from re_buffer.
82377         (allocated): Renamed from re_allocated.
82378         (used): Renamed from re_used.
82379         (syntax): Renamed from re_syntax.
82380         (fastmap): Renamed from re_fastmap.
82381         (translate): Renamed from re_translate.
82382         (can_be_null): Renamed from re_can_be_null.
82383         (regs_allocated): Renamed from re_regs_allocated.
82384         (fastmap_accurate): Renamed from re_fastmap_accurate.
82385         (no_sub): Renamed from re_no_sub.
82386         (not_bol): Renamed from re_not_bol.
82387         (not_eol): Renamed from re_not_eol.
82388         (newline_anchor): Renamed from re_newline_anchor.
82389         (num_regs): Renamed from rm_num_regs.
82390         (start): Renamed from rm_start.
82391         (end): Renamed from rm_end.
82392
82393         (free_state): Move up a bit.
82394
82395         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82396         #define to be empty.
82397         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82398         when that is what is intended.
82399         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82400         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82401         (MAX): New macro.
82402         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82403         All uses changed back to re_malloc, etc.  It's now the caller's
82404         responsibility to check for overflow; all callers changed.
82405         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82406         (re_x2nrealloc): Remove.
82407         (free_state): Remove decl.
82408
82409         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82410         (re_set_registers, re_exec):
82411         Use K&R-style defn.
82412
82413         2006-01-31  Roland McGrath  <roland@redhat.com>
82414
82415         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82416         Reported by Mike Frysinger <vapier@gentoo.org>.
82417
82418         2006-01-15  Andreas Jaeger  <aj@suse.de>
82419
82420         [BZ #1950]
82421         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82422         build_wcs_upper_buffer change.
82423         (build_wcs_upper_buffer): Change return type.
82424
82425         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82426
82427         * lib/regex_internal.h: Include <stdint.h> if available.
82428
82429         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82430
82431         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82432
82433         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82434
82435         * lib/regcomp.c: Adjust for changed secondary hash function.
82436
82437         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82438
82439         * lib/regex.h: Pretty printing.
82440         Clean up namespace a bit.
82441
82442         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82443
82444         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82445         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82446
82447         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82448                     Ulrich Drepper  <drepper@redhat.com>
82449
82450         [BZ #1302]
82451         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82452         changed.
82453         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82454
82455         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82456
82457         [BZ #281]
82458         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82459         * lib/regcomp.c: Remove unnecessary uses of
82460         unsigned RE_TRANSLATE_TYPE.
82461         * lib/regex_internal.h: Likewise.
82462         * lib/regex_internal.c: Likewise.
82463         * lib/regexec.c: Likewise.
82464         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82465
82466         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82467
82468         * lib/regexec.c (find_recover_state): Remove unnecessary
82469         initialization.
82470         (transit_state_bkref): Make DFA a const pointer.
82471         (get_subexp): Likewise.
82472         (check_arrival): Likewise.
82473         (update_cur_sifted_state): Likewise.
82474         (re_search_internal): Likewise.
82475         (prune_impossible_nodes): Likewise.
82476         (acquire_init_state_context): Likewise.
82477         (proceed_next_node): Likewise.
82478         (set_regs): Likewise.
82479         (free_fail_stack_return): Likewise.
82480         (check_arrival_expand_ecl): Mark DFA parameter as const.
82481         (check_arrival_expand_ecl_sub): Likewise.
82482         (check_subexp_limits): Likewise.
82483         (sub_epsilon_src_nodes):  Likewise.
82484         (add_epsilon_src_nodes):  Likewise.
82485         (merge_state_array): Likewise.
82486         (update_regs): Likewise.
82487         (build_trtable): Likewise.
82488         (sift_states_backward): Mark MCTX parameter as const.
82489         (build_sifted_states): Likewise.
82490         (update_cur_sifted_state): Likewise.
82491         (sift_states_mkref): Likewise.
82492         (check_arrival_expand_ecl): Mark eclosure as const.
82493         (check_dst_limits_calc_pos_1): Likewise.
82494         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82495         pointer.
82496
82497         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82498
82499         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82500         (transit_state_sb): Likewise.
82501         (transit_state_mb): Likewise.
82502         (sift_states_iter_mb): Likewise.
82503         (check_arrival_add_next_nodes): Likewise.
82504         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82505         [_LIBC] (re_search_2_stub): Use mempcpy.
82506
82507         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82508         mbrtowc for very simple UTF-8 case.
82509
82510         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82511         a pointer-to-const.
82512         (re_acquire_state_context): Likewise.
82513         * lib/regex_internal.h: Adjust prototypes.
82514
82515         * lib/regex.c: Prevent using C++ compilers.
82516
82517         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82518         (re_acquire_state_context): Likewise.
82519
82520 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * modules/regex (Depends-on): Add ssize_t.
82523
82524 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82525
82526         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82527         translation table.
82528
82529 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82532
82533 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82534             Bruno Haible  <bruno@clisp.org>
82535
82536         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82537         <sys/types.h> and <inttypes.h>.
82538
82539 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82540
82541         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82542         `__error_t_defined', so argp.h will not typedef the former.
82543
82544 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82547         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82548         glibc names.  Even if glibc is changed to conform to POSIX, the
82549         traditional names will be available anyway, since regex depends on
82550         the extensions module.  Also, fix a longstanding typo in the
82551         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82552         reported by Emanuele Giaquinta.  Also, change sense of cached
82553         variable, so that the message makes sense.
82554
82555 2006-03-24  Simon Josefsson  <jas@extundo.com>
82556
82557         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82558         including some doc fixes.
82559         (base64_encode_alloc): Fix +1 bug on allocation failures.
82560
82561 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82562
82563         * lib/base64.c (base64_encode): Do not read past end of array with
82564         unsanitized input on systems with CHAR_BIT > 8.
82565
82566 2006-03-24  Eric Blake  <ebb9@byu.net>
82567
82568         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82569
82570 2006-03-22  Karl Berry  <karl@gnu.org>
82571
82572         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82573         * config/srclistvars.sh (COREUTILS): new var.
82574
82575 2006-03-17  Jim Meyering  <jim@meyering.net>
82576
82577         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82578         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82579
82580 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82581
82582         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82583         no longer needs it.  Instead, check that regoff_t is as least
82584         as wide as ptrdiff_t.
82585
82586         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82587         so that our regex.h stays compatible with the installed regex.
82588         This is helpful for installers who configure --without-included-regex.
82589         Problem reported by Emanuele Giaquinta.
82590
82591 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82592
82593         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82594         Typedef to long int, not to off_, as POSIX will likely change
82595         in that direction.
82596
82597 2006-03-15  Eric Blake  <ebb9@byu.net>
82598
82599         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82600
82601 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82602
82603         * lib/argp-help.c (validate_uparams): Fix typo
82604         * lib/argp-parse.c (argp_default_options): Consistently begin help
82605         messages with a lowercase letter.
82606
82607 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82608
82609         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82610         overrun buffers and shouldn't be used (much as gets shouldn't be
82611         used).
82612         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82613
82614 2006-03-08  Simon Josefsson  <jas@extundo.com>
82615
82616         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82617         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82618
82619 2006-03-08  Simon Josefsson  <jas@extundo.com>
82620
82621         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82622         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82623
82624 2006-03-08  Simon Josefsson  <jas@extundo.com>
82625
82626         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82627         signal that configure disabled the device.
82628
82629 2006-03-08  Simon Josefsson  <jas@extundo.com>
82630
82631         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82632         languages.
82633
82634 2006-03-07  Simon Josefsson  <jas@extundo.com>
82635
82636         * modules/getopt (Depends-on): Add unistd.
82637
82638         * modules/unistd: New file.
82639
82640 2006-03-07  Simon Josefsson  <jas@extundo.com>
82641
82642         * modules/gc-random: New file.
82643
82644 2006-03-07  Simon Josefsson  <jas@extundo.com>
82645
82646         * m4/unistd_h.m4: New file.
82647
82648 2006-03-07  Simon Josefsson  <jas@extundo.com>
82649
82650         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82651         test to be side-effect free by storing the result in the cache
82652         variable gl_cv_lib_readline, and moving the assignment of
82653         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82654         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82655
82656 2006-03-07  Simon Josefsson  <jas@extundo.com>
82657
82658         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82659         error on missing devices (the functions will return an error).
82660
82661         * m4/gc.m4: Move random stuff to gc-random.m4
82662
82663 2006-03-07  Simon Josefsson  <jas@extundo.com>
82664
82665         * lib/unistd_.h: New file.
82666
82667 2006-03-07  Simon Josefsson  <jas@extundo.com>
82668
82669         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82670
82671 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82674         Problem reported by Juan Manuel Guerrero.
82675
82676 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82677
82678         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82679         the unistd module.
82680         * lib/getlogin_r.c: Likewise.
82681         * lib/getlogin_r.h: Likewise.
82682         * lib/glob.c: Likewise.
82683         * lib/pagealign_alloc.c: Likewise.
82684         * lib/unistd_.h: Remove; no longer needed.
82685
82686 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82687
82688         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82689         Add unistd.
82690         * modules/c-stack (Depends-on): Add unistd.
82691         * modules/getlogin_r: Likewise.
82692         * modules/glob: Likewise.
82693         * modules/pagealign_alloc: Likewise.
82694         * modules/unistd (Files): Remove lib/unistd_.h.
82695         (EXTRA_DIST): Remove.
82696         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82697         need unistd_.h.
82698         (MOSTLYCLEANFILES): Remove unistd.h-t.
82699
82700 2006-03-03  Simon Josefsson  <jas@extundo.com>
82701
82702         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82703
82704 2006-03-03  Simon Josefsson  <jas@extundo.com>
82705
82706         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82707         libidn and bison.
82708
82709 2006-03-03  Simon Josefsson  <jas@extundo.com>
82710
82711         * build-aux/maint.mk: Add indent target.
82712
82713 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82714
82715         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82716         our replacement poll.h in any case, to avoid a differing
82717         declaration from a system header.  Seen on AIX.
82718
82719 2006-03-01  Simon Josefsson  <jas@extundo.com>
82720
82721         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82722         <kasal@ucw.cz>.
82723
82724 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         * modules/gettime (Depends-on): Add extensions module.
82727         * modules/nanosleep (Depends-on): Likewise.
82728         * modules/settime (Depends-on): Likewise.
82729
82730 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82731
82732         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82733         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82734         pedantically.
82735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82736         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82737
82738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82739         not "==".  Reported by Ralf Wildenhues.
82740
82741 2006-03-01  Karl Berry  <karl@gnu.org>
82742
82743         * doc/Copyright/request-*: new files, synced from gnuorg.
82744
82745 2006-03-01  Karl Berry  <karl@gnu.org>
82746
82747         * config/srclist.txt (Copyright/*): new entries.
82748
82749 2006-02-28  Simon Josefsson  <jas@extundo.com>
82750
82751         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82752
82753 2006-02-27  Simon Josefsson  <jas@extundo.com>
82754
82755         * lib/base64.h: Indent #define's.  From Jim Meyering
82756         <jim@meyering.net>.
82757
82758 2006-02-27  Jim Meyering  <jim@meyering.net>
82759
82760         Revert the change of 2006-02-24, so these files can continue
82761         to be sync'd from gettext.
82762         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82763         of `config.h'.
82764
82765 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         * modules/intprops: New file.
82768         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82769         Add intprops.
82770         * modules/getloadavg (Files): Remove lib/intprops.h.
82771         (Depends-on): Add intprops.
82772         * modules/human: Likewise.
82773         * modules/inttostr: Likewise.
82774         * modules/openat: Likewise.
82775         * modules/sig2str: Likewise.
82776         * modules/userspec: Likewise.
82777         * modules/utimecmp: Likewise.
82778         * modules/xnanosleep: Likewise.
82779         * modules/xstrtol: Likewise.
82780
82781 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82782
82783         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82784         * modules/lock-tests (TESTS): Use $(EXEEXT).
82785         * modules/tls-tests: Likewise.
82786         * modules/argp-tests: Likewise.
82787         (check_PROGRAMS): New var, replacing...
82788         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82789
82790 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82791
82792         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82793         `config.h'.
82794
82795 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82798
82799 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82800
82801         Sync from coreutils.
82802         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82803         gl_CHDIR_SAFER.
82804
82805 2006-02-22  Jim Meyering  <jim@meyering.net>
82806
82807         Sync from coreutils.
82808         * m4/chdir-safer.m4: New file.
82809
82810 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82813         AT_FDCWD exceeds INT_MAX.
82814         * lib/openat.h (AT_FDCWD): Likewise.
82815
82816 2006-02-17  Eric Blake  <address@hidden>
82817
82818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82819
82820 2006-02-16  Simon Josefsson  <jas@extundo.com>
82821
82822         * modules/getaddrinfo (Depends-on): Add sys_socket.
82823
82824 2006-02-15  Simon Josefsson  <jas@extundo.com>
82825
82826         * build-aux/maint.mk: Add dsyntax-check rule.
82827
82828 2006-02-15  Eric Blake  <ebb9@byu.net>
82829
82830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82831         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82832         'present but cannot compile' warnings on cygwin.
82833         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82834         use ws2tcpip.h if sys/socket.h works.
82835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82836         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82837
82838 2006-02-14  Simon Josefsson  <jas@extundo.com>
82839
82840         * modules/maintainer-makefile (Files): Rename.
82841
82842         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82843         and (the local) Makefile.cfg to maint-cfg.mk.
82844
82845         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82846         to the latter.
82847
82848         * modules/maintainer-makefile: New module.
82849
82850         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82851         severaly stripped to make it possible to build it up from scratch
82852         with reliable tests.
82853
82854         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82855         fixes to permit overriding the default actions when configure and
82856         makefile are not available.
82857
82858 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         Sync from coreutils.
82861         * modules/lstat (Depends-on): Don't depend on xalloc.
82862         (License): Change from GPL to LGPL, since this is now simply a
82863         replacement for a libc function.
82864
82865 2006-02-14  Jim Meyering  <jim@meyering.net>
82866
82867         Sync from coreutils.
82868
82869         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82870         failure on deficient systems, and simplify gnulib lgpl dependencies.
82871         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82872         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82873
82874         * lib/xalloc-die.c: Remove unused definition of N_.
82875
82876 2006-02-14  Jim Meyering  <jim@meyering.net>
82877
82878         Sync from coreutils.
82879         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82880         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82881         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82882         double-quote uses of that variable, to accommodate the rare case in
82883         which getmntent is available in none of the libraries checked.  This
82884         happens at least on FreeBSD 5.0.
82885
82886 2006-02-13  Simon Josefsson  <jas@extundo.com>
82887
82888         * gnulib-tool (Usage): Fix --import, from
82889         karl@freefriends.org (Karl Berry).
82890
82891 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82892
82893         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82894
82895 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82896
82897         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82898         "autoupdate" on 2005-12-12.
82899
82900 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82901
82902         * modules/closeout (Depends-on): Remove atexit.
82903
82904 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82907         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82908
82909 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82910
82911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82912         __EXTENSIONS__ if this causes compilation to fail.  Problem
82913         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82914         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82915
82916 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82917
82918         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82919         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82920         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82921         All uses changed.
82922
82923 2006-01-26  Simon Josefsson  <jas@extundo.com>
82924
82925         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82926         prototype is visible on mingw32.
82927
82928         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82929         for mingw32.
82930
82931         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82932         mingw32).
82933
82934 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82937         attempt to open for write; this always fails, at least on POSIX
82938         hosts.  This reinstates the 2006-01-09 change, which was
82939         inadvertently removed.
82940
82941 2006-01-26  Bruno Haible  <bruno@clisp.org>
82942
82943         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82944         Reported by Paul Eggert.
82945
82946 2006-01-26  Bruno Haible  <bruno@clisp.org>
82947             Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/stdbool_.h (_Bool)
82950         [(! (defined __cplusplus || defined __BEOS__)
82951           && !defined __GNUC__
82952           && !(defined __HP_cc || defined __xlc__
82953                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82954                || defined __sgi))]:
82955         #define to signed char in these cases too; this simplifies
82956         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82957         etc., separately) and makes it more conservative.
82958
82959 2006-01-25  Simon Josefsson  <jas@extundo.com>
82960
82961         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82962         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82963         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82964
82965 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82966
82967         * lib/argp-namefrob.h: Bugfix. Remove stray #
82968
82969 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82972         so that we test the test.
82973         Check for yet another HP-UX cc bug involving *bool |= bool.
82974
82975 2006-01-25  Karl Berry  <karl@gnu.org>
82976
82977         * config/srclist.txt (vasnprintf.c): sync lost.
82978
82979 2006-01-25  Jim Meyering  <jim@meyering.net>
82980
82981         Sync from the stable (b5) branch of coreutils:
82982
82983         * lib/fts.c (fts_children): Don't let close() clobber errno from
82984         failed fchdir().
82985
82986         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82987         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82988         a dangling symlink.  That can also happen at least for ELOOP.
82989         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82990         FYI, this bug predates the inclusion of fts.c in coreutils.
82991
82992         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82993         in their own block, so pre-c99 compilers don't object.
82994
82995         Avoid the double-free (first in fts_read, second in fts_close) that
82996         would occur when an `active' directory is made inaccessible (e.g.,
82997         via chmod a-x) during a traversal.
82998         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82999         before returning.  Reproduce this failure by
83000         mkdir -p a/b; cd a; chmod a-x . b
83001         Reported by Stavros Passas.
83002
83003 2006-01-25  Jim Meyering  <jim@meyering.net>
83004
83005         * lib/fileblocks.c: Remove more useless parentheses.
83006         * lib/readutmp.h: Likewise.
83007
83008 2006-01-25  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83011         warnings.
83012         Reported by Paul Eggert.
83013
83014 2006-01-25  Bruno Haible  <bruno@clisp.org>
83015
83016         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83017         rid of a trap command. For Solaris sh.
83018         Reported by Mark D. Baushke <mdb@gnu.org>.
83019
83020 2006-01-24  Simon Josefsson  <jas@extundo.com>
83021
83022         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83023         Bruno.
83024
83025 2006-01-24  Karl Berry  <karl@gnu.org>
83026
83027         * config/srclist.txt (argp-namefrob.h): sync lost.
83028
83029 2006-01-24  Jim Meyering  <jim@meyering.net>
83030
83031         * modules/openat (Files): Add lib/intprops.h.
83032         From Mark D. Baushke.
83033
83034 2006-01-24  Jim Meyering  <jim@meyering.net>
83035
83036         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83037         Reported by Mark D. Baushke.
83038
83039 2006-01-24  Jim Meyering  <jim@meyering.net>
83040
83041         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83042
83043 2006-01-24  Bruno Haible  <bruno@clisp.org>
83044
83045         * modules/strnlen (Maintainer): Change from glibc to all.
83046
83047 2006-01-24  Bruno Haible  <bruno@clisp.org>
83048
83049         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83050         Patch by Paul Eggert.
83051
83052 2006-01-24  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83055         already has it.
83056         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83057         2005-11-26.
83058
83059         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83060         'signed char' to avoid problems with the built-in _Bool type.
83061         Reported by Paul Eggert on 2005-11-26.
83062
83063 2006-01-24  Bruno Haible  <bruno@clisp.org>
83064
83065         * gnulib-tool (func_import): Avoid constructing complicated sed
83066         expressions inside backquote.
83067         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83068
83069 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83070
83071         These changes imported from libc.
83072         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83073         test and two separate function calls.
83074         * lib/strndup.c (__strndup): Add libc_hidden_def.
83075
83076 2006-01-23  Simon Josefsson  <jas@extundo.com>
83077
83078         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83079         Remove the test_*_SOURCES variable: automake infers it by default.
83080         * modules/tls-tests: Likewise.
83081
83082 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         Work around porting bugs reported by Dieter in
83085         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83086         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83087         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83088         Include "getopt.h" first, to check interface.
83089         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83090         !HAVE_DECL_GETENV.
83091         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83092         (__strndup): Revert to K&R-style function dfns, the glibc style.
83093         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83094         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83095         Include strnlen.h first, to get prototype properly.
83096         (strnlen): Renamed from __strnlen.
83097         Remove weak alias.
83098
83099 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83100
83101         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83102
83103 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83104
83105         * config/srclist.txt: Adjust to reflect glibc reorganization.
83106         This affects only comments.
83107
83108 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83109
83110          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83111          Reported by Bruce Korb <bkorb@gnu.org>.
83112
83113 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83114
83115         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83116         to pacify gcc -Wswitch-default.
83117
83118 2006-01-22  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83121         temporary buffer for sprintf, take into account the precision also
83122         for 'd', 'i', 'u', 'o', 'x', 'X'.
83123
83124 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83125
83126         * modules/argp-tests: New module
83127         * tests/test-argp.c: New file
83128         * tests/test-argp-2.sh: New file
83129
83130 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83131
83132         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83133         (__argp_base_name): Removed
83134         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83135         typo.
83136         (__argp_base_name): Provide macro definition or extern declaration
83137         depending on the configuration
83138
83139 2006-01-20  Simon Josefsson  <jas@extundo.com>
83140
83141         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83142
83143 2006-01-20  Simon Josefsson  <jas@extundo.com>
83144
83145         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83146
83147 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83150         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83151         Suggested by Bruno Haible.
83152
83153 2006-01-20  Karl Berry  <karl@gnu.org>
83154
83155         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83156         until changes propagate, I guess.
83157
83158 2006-01-19  Simon Josefsson  <jas@extundo.com>
83159
83160         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83161
83162 2006-01-19  Simon Josefsson  <jas@extundo.com>
83163
83164         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83165
83166 2006-01-19  Simon Josefsson  <jas@extundo.com>
83167
83168         * gnulib-tool: Set check_PROGRAMS.
83169
83170         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83171         modules/des-tests, modules/gc-arcfour-tests,
83172         modules/gc-arctwo-tests, modules/gc-des-tests,
83173         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83174         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83175         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83176         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83177         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83178         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83179         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83180         test_*_SOURCES.
83181
83182 2006-01-18  Simon Josefsson  <jas@extundo.com>
83183
83184         * modules/socklen (Depends-on): Depend on sys_socket.
83185
83186 2006-01-18  Simon Josefsson  <jas@extundo.com>
83187
83188         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83189         modules/des-tests, modules/gc-arcfour-tests,
83190         modules/gc-arctwo-tests, modules/gc-des-tests,
83191         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83192         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83193         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83194         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83195         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83196         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83197         $(EXEEXT) to automake TESTS variable, for mingw32.
83198
83199 2006-01-17  Simon Josefsson  <jas@extundo.com>
83200
83201         * modules/socklen (Include): Need sys/socket.h.
83202
83203 2006-01-17  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/ssize_t (Include): Add <sys/types.h>.
83206
83207 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83208
83209         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83210         it's not portable and it doesn't work with cross-compiles.
83211         Problem reported by Bruno Haible.  Fix missing-$ typo in
83212         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83213         -zignore from being used with Sun's C compiler.
83214
83215 2006-01-12  Simon Josefsson  <jas@extundo.com>
83216
83217         * lib/base64.c: Fix warning, reported by Bruno Haible
83218         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83219
83220 2006-01-12  Bruno Haible  <bruno@clisp.org>
83221
83222         * modules/ldd: New file.
83223         * build-aux/ldd.sh.in: New file.
83224         * MODULES.html.sh (Support for building libraries and executables): Add
83225         ldd.
83226
83227 2006-01-12  Bruno Haible  <bruno@clisp.org>
83228
83229         * m4/ldd.m4: New file.
83230
83231 2006-01-12  Bruno Haible  <bruno@clisp.org>
83232
83233         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83234         endless loop while replacing $auxdir with build-aux.
83235
83236 2006-01-11  Simon Josefsson  <jas@extundo.com>
83237
83238         * lib/stdint_.h (SIZE_MAX): Add missing (.
83239
83240 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83241
83242         Sync from coreutils.
83243         * lib/md5.c: Fix commentary typos.
83244         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83245         * lib/md5.h (__attribute__): Remove; unused.
83246         * lib/sha1.c: Fix commentary to match md5 better.
83247         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83248         so that we don't need to worry about alignment.  All uses changed.
83249         This merges the 2005-10-28 md5 change into sha1.
83250
83251 2006-01-11  Jim Meyering  <jim@meyering.net>
83252
83253         Sync from coreutils.
83254         * lib/md5.c (OP): Fix spacing.
83255
83256 2006-01-11  Bruno Haible  <bruno@clisp.org>
83257
83258         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83259         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83260         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83261
83262 2006-01-11  Bruno Haible  <bruno@clisp.org>
83263
83264         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83265         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83266         the "early" section as well.
83267
83268 2006-01-11  Bruno Haible  <bruno@clisp.org>
83269
83270         Avoid "ar: no archive members specified" error on MacOS X.
83271         * gnulib-tool (func_modules_add_dummy): New function.
83272         (func_import, func_create_testdir): Invoke it.
83273
83274 2006-01-11  Bruno Haible  <bruno@clisp.org>
83275
83276         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83277         with $auxdir in AC_CONFIG_FILES statements.
83278
83279 2006-01-11  Bruno Haible  <bruno@clisp.org>
83280
83281         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83282         Initialize also noinst_HEADERS to empty.
83283
83284 2006-01-11  Bruno Haible  <bruno@clisp.org>
83285
83286         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83287         variables.
83288         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83289         autoreconf.
83290
83291 2006-01-11  Bruno Haible  <bruno@clisp.org>
83292
83293         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83294         overridable by the user.
83295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83296
83297 2006-01-10  Simon Josefsson  <jas@extundo.com>
83298
83299         * modules/sys_socket: New file.
83300
83301 2006-01-10  Simon Josefsson  <jas@extundo.com>
83302
83303         * m4/sys_socket_h.m4: New file.
83304
83305 2006-01-10  Simon Josefsson  <jas@extundo.com>
83306
83307         * lib/socket_.h: New file.
83308
83309 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         * modules/readutmp (Maintainer): Add myself.
83312
83313 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83314
83315         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83316         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83317         People who are still concerned with buggy memcmp implementations
83318         can invoke gl_FUNC_MEMCMP themselves.
83319
83320 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * lib/regex_internal.h (BITSET_WORD_BITS):
83323         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83324         preprocessor mishandles large unsigned values as if they were signed.
83325         Problem reported by Claudio Fontana in
83326         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83327
83328 2006-01-10  Jim Meyering  <jim@meyering.net>
83329
83330         Avoid the double-free (first in fts_read, second in fts_close) that
83331         would occur when an `active' directory is made inaccessible (e.g.,
83332         via chmod a-x) during a traversal.
83333         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83334         before returning.  Reproduce this failure by
83335         mkdir -p a/b; cd a; chmod a-x . b
83336         Reported by Stavros Passas.
83337
83338         Sync from coreutils.
83339         * lib/sha1.c: Tweak grammar in a comment.
83340
83341 2006-01-10  Jim Meyering  <jim@meyering.net>
83342
83343         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83344         Patch by Joerg Sonnenberger.
83345
83346 2006-01-10  Bruno Haible  <bruno@clisp.org>
83347
83348         * modules/readutmp: Depend on module free.
83349         * modules/strtok_r: Depend on module restrict.
83350
83351 2006-01-10  Bruno Haible  <bruno@clisp.org>
83352
83353         * modules/gettext (configure.ac): Add an invocation of
83354         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83355
83356 2006-01-10  Bruno Haible  <bruno@clisp.org>
83357
83358         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83359         Reported by Werner Lemberg <wl@gnu.org>.
83360
83361 2006-01-10  Bruno Haible  <bruno@clisp.org>
83362
83363         * lib/localcharset.c: Update from GNU gettext.
83364
83365 2006-01-10  Bruno Haible  <bruno@clisp.org>
83366
83367         * lib/argp.h (__const): Remove macro. Use const instead.
83368         * lib/argp-fmtstream.h (__const): Likewise.
83369         * lib/glob_.h (__const): Remove macro.
83370         * lib/glob-libc.h: Use const instead of __const.
83371
83372 2006-01-10  Bruno Haible  <bruno@clisp.org>
83373
83374         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83375         variable.
83376         Needed to avoid an automake error regarding the 'gettext' module.
83377
83378 2006-01-09  Simon Josefsson  <jas@extundo.com>
83379
83380         * modules/inet_ntop (Depends-on): Add restrict.
83381
83382 2006-01-09  Simon Josefsson  <jas@extundo.com>
83383
83384         * modules/gc-rijndael-tests (License): Put under LGPL.
83385
83386         * modules/gc-des-tests (License): Likewise.
83387
83388         * modules/gc-arcfour-tests (License): Likewise.
83389
83390         * modules/gc-arctwo-tests (License): Likewise.
83391
83392         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83393
83394         * modules/gc-hmac-sha1-tests (Files): Likewise.
83395
83396         * modules/gc-hmac-md5-tests (License): Likewise.
83397
83398         * modules/gc-sha1-tests (License): Likewise.
83399
83400         * modules/gc-md5-tests (License): Likewise.
83401
83402         * modules/gc-md4-tests (License): Likewise.
83403
83404         * modules/gc-md2-tests (License): Likewise.
83405
83406         * modules/gc-tests (License): Likewise.
83407
83408         * modules/des-tests (License): Likewise.
83409
83410         * modules/md4-tests (License): Likewise.
83411
83412         * modules/md2-tests (License): Likewise.
83413
83414 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         Sync from coreutils:
83417
83418         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83419         * modules/lib-ignore: New file.
83420         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83421         chdir-safer.m4, lchmod.m4.
83422         * modules/openat: Add mkdirat.c, openat-priv.h.
83423
83424 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83425
83426         Sync from coreutils.
83427         * m4/lib-ignore.m4: New file.
83428         * m4/lchmod.m4: New file.
83429
83430 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83431
83432         Sync from coreutils.
83433         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83434         for write access: POSIX says that must fail.
83435         * lib/fts.c (diropen): Likewise.
83436         * lib/save-cwd.c (save_cwd): Likewise.
83437         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83438         well, for minor improvements on hosts that lack O_DIRECTORY.
83439         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83440         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83441         Fall back on chown if open failed with EACCES.
83442
83443         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83444         Report an error at compile-time if only a 1-second nominal clock
83445         resolution is found.
83446
83447         * lib/lchmod.h: New file.
83448         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83449         (make_dir_parents): Use lchown rather than chown, and
83450         lchmod rather than chmod.
83451
83452         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83453         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83454         "proc" reported by n0dalus.
83455
83456         * lib/mountlist.c: Include <limits.h>.
83457         (dev_from_mount_options)
83458         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83459         New function.  It no longer assumes "dev=" has the System V meaning
83460         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83461         (read_file_system_list)
83462         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83463         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83464         dev= in that case.
83465
83466         * lib/posixtm.h (PDS_PRE_2000): New macro.
83467         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83468         allow_century.  All usages changed.  Reject dates outside the range
83469         1969-1999 if PDS_PRE_2000 is used.
83470
83471 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83472
83473         Sync from coreutils.
83474         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83475         (Time of day items): Mention the possibility of leap seconds.
83476         Problem reported by Dr. David Alan Gilbert.
83477
83478 2006-01-09  Jim Meyering  <jim@meyering.net>
83479
83480         Sync from coreutils.
83481
83482         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83483
83484         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83485
83486         * lib/modechange.c (mode_compile): Reject an invalid mode string
83487         that starts with an octal digit.  From Andreas Gruenbacher.
83488
83489         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83490         and dup to open_safer and dup_safer, respectively.
83491         (openat_permissive): Fix typo in comment.
83492
83493         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83494         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83495         (_): Remove; no longer needed.
83496         (openat): Renamed from rpl_openat; no need for rpl_openat
83497         since openat.h renames openat for us.
83498         Replace most of the body with a call to openat_permissive,
83499         to avoid duplicate code.
83500         Port to (probably hypothetical) environments were mode_t is
83501         wider than int.
83502         (openat_permissive): Require mode arg, so that we can check
83503         types better.  Put it just after flags.  Change cwd failure
83504         indicator from pointer-to-bool to pointer-to-errno-value.
83505         All callers changed.
83506         Invoke openat_save_fail and/or openat_restore_fail if
83507         cwd_errno is null, so that openat can call us.
83508         (openat_permissive, fdopendir, fstatat, unlinkat):
83509         Simplify errno handling to avoid some duplicate code,
83510         as it's OK to set errno on success.
83511         * lib/openat.h: Revamp code so that function macros depend on
83512         __OPENAT_PREFIX only, not also on AT_FDCWD.
83513         (openat_ro): Remove.  Caller changed to use openat_permissive.
83514         (openat_permissive): Now a macro, if not a function.
83515         (openat_restore_fail, openat_save_fail): Now always functions,
83516         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83517
83518         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83519         and openat.c.
83520         * lib/mkdirat.c: Include openat-priv.h.
83521         Remove definitions of macros defined therein.
83522         * lib/openat.c: Likewise.
83523
83524         * lib/mkdirat.c (mkdirat): New file and function.
83525         * lib/openat.h (mkdirat): Declare.
83526
83527         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83528
83529         * lib/openat.h (openat_permissive): Declare.
83530         (openat_ro): Define.
83531
83532         * lib/openat.c (EXPECTED_ERRNO): New macro.
83533         (openat_permissive): New function -- used in remove.c rewrite.
83534         (all functions): Set errno just before returning, only if there
83535         was an actual failure.
83536         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83537
83538         Emulate openat-family functions using Linux's procfs, if possible.
83539         Idea and some code based on Ulrich Drepper's glibc changes.
83540
83541         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83542         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83543         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83544         before falling back on save_cwd and restore_cwd.
83545         (fdopendir, fstatat, unlinkat): Likewise.
83546
83547         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83548         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83549
83550         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83551         as second argument to va_arg.  Otherwise, some versions of gcc
83552         warn that `if this code is reached, the program will abort'.
83553
83554 2006-01-09  Jim Meyering  <jim@meyering.net>
83555
83556         Sync from coreutils.
83557         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83558         Require openat-priv.h.
83559
83560 2006-01-09  Bruno Haible  <bruno@clisp.org>
83561
83562         * modules/strnlen (Include): Use strnlen.h.
83563
83564 2006-01-09  Bruno Haible  <bruno@clisp.org>
83565
83566         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83567
83568 2006-01-09  Bruno Haible  <bruno@clisp.org>
83569
83570         * lib/sysexit_.h (EX_OK): New macro.
83571         Suggested by Martin Lambers <marlam@marlam.de>.
83572
83573 2006-01-09  Bruno Haible  <bruno@clisp.org>
83574
83575         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83576         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83577
83578 2006-01-09  Bruno Haible  <bruno@clisp.org>
83579
83580         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83581         numbers.
83582
83583 2006-01-09  Bruno Haible  <bruno@clisp.org>
83584
83585         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83586         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83587         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83588         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83589
83590 2006-01-09  Bruno Haible  <bruno@clisp.org>
83591
83592         * build-aux/javacomp.sh.in: New file, moved from lib/.
83593         * modules/javacomp-script (Files): Update.
83594         (configure.ac): Add AC_CONFIG_FILES invocation.
83595         (EXTRA_DIST): Remove variable.
83596
83597         * build-aux/javaexec.sh.in: New file, moved from lib/.
83598         * modules/javaexec (Files): Update.
83599         (configure.ac): Add AC_CONFIG_FILES invocation.
83600         (EXTRA_DIST): Remove javaexec.sh.in.
83601
83602         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83603         * modules/csharpcomp-script (Files): Update.
83604         (configure.ac): Add AC_CONFIG_FILES invocation.
83605         (EXTRA_DIST): Remove variable.
83606
83607         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83608         * modules/csharpexec (Files): Update.
83609         (configure.ac): Add AC_CONFIG_FILES invocation.
83610         (EXTRA_DIST): Remove csharpexec.sh.in.
83611
83612 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83613
83614         Sync from coreutils.
83615
83616         Add POSIX ACL support
83617         * lib/acl.h (copy_acl, set_acl): Add declarations.
83618         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83619         systems other than Linux.
83620         (chmod_or_fchmod): New function: use fchmod when possible,
83621         and chmod otherwise.
83622         (file_has_acl): Add a POSIX ACL implementation, with a
83623         Linux-specific subcase.
83624         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83625         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83626         acls are unsupported.
83627         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83628         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83629         are unsupported.
83630
83631 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83632
83633         Sync from coreutils.
83634         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83635
83636 2006-01-07  Bruno Haible  <bruno@clisp.org>
83637
83638         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83639         gl_EARLY.
83640
83641 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83644         Problem reported for Mingw by Mark Junker.
83645
83646 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83647
83648         * README: Gnulib normally doesn't generate a tarball.
83649
83650 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83651
83652         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83653         long int, not int, for nanosecond counts, so that people who are
83654         used to POSIX struct timespec won't be surprised.  Reported by Jim
83655         Meyering.
83656
83657 2005-12-28  Bruno Haible  <bruno@clisp.org>
83658
83659         * build-aux/config.rpath: Update from GNU gettext.
83660
83661 2005-12-16  Jim Meyering  <jim@meyering.net>
83662
83663         * modules/fprintftime: New module.
83664         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83665
83666 2005-12-16  Jim Meyering  <jim@meyering.net>
83667
83668         * m4/fprintftime.m4: New file.
83669
83670 2005-12-16  Jim Meyering  <jim@meyering.net>
83671
83672         * lib/fprintftime.c, lib/fprintftime.h: New files.
83673
83674 2005-12-15  Simon Josefsson  <jas@extundo.com>
83675
83676         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83677         new m4/socklen.m4.
83678
83679 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83680
83681         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83682         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83683
83684 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83685
83686         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83687         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83688         struct uparams is valid. Fall back to the default values if it is
83689         not.
83690
83691 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83692
83693         * modules/argp (Files): Add argp-pin.c
83694         (Depends-on): dirname
83695         (lib_SOURCES): Add argp-pin.c
83696
83697 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83698
83699         * m4/argp.m4:  Check if program_invocation_name and
83700         program_invocation_short_name are declared and define appropriate
83701         macros if they are not.
83702
83703 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83704
83705         * lib/argp-help.c (__argp_base_name): New function
83706         (__argp_short_program_name): Rewrite using __argp_base_name
83707         * lib/argp-namefrob.h: Define program_invocation_name and
83708         program_invocation_short_name if requested
83709         (__argp_base_name): Add prototype
83710         * lib/argp-parse.c (argp_def): Use gettext wrappers
83711         (argp_default_parser): Use __argp_base_name
83712         * lib/argp-pin.c: New file. Defines program_invocation_name and
83713         program_invocation_short_name on systems that lack them.
83714
83715 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83718         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83719         porting problem reported by Georg Schwarz in
83720         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83721
83722 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83723
83724         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83725         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83726         porting problem reported by Georg Schwarz in
83727         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83728
83729 2005-12-05  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83732         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83733         Reported by Mark Junker <mjscod@gmx.de>.
83734
83735 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83736
83737         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83738         Use implementation from Albert Chin, with some
83739         comments/corrections by Stepan Kasal and myself.
83740
83741 2005-12-02  Bruno Haible  <bruno@clisp.org>
83742
83743         * gnulib-tool (func_import): Accept GPLed build tool modules when
83744         --lgpl is given.
83745         * modules/csharpcomp-script: New file.
83746         * modules/csharpcomp: Depend on it.
83747         * modules/javacomp-script: New file.
83748         * modules/javacomp: Depend on it.
83749         Suggested by Simon Josefsson.
83750
83751 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83752
83753         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83754         statement, to work around an HP-UX 10.20 compiler bug reported by
83755         Peter O'Gorman.
83756
83757 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83758
83759         * modules/savedir (Depends-on): Add openat.
83760
83761 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83762
83763         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83764         (uintmax_t) [defined uintmax_t]: Do not declare.
83765         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83766         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83767         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83768         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83769         sake of portability to weird hosts that C allows (though we don't
83770         know of any practical examples).
83771
83772         * lib/savedir.h (fdsavedir): New decl.
83773         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83774         contains most of the former guts of savedir.
83775         (savedir): Use savedirstream.
83776         Include "openat.h".
83777
83778 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * modules/obstack (Files): Add m4/ulonglong.m4.
83781         Problem reported by Davide Angelocola.
83782
83783 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83786         coreutils no longer futzes with rounding modes.
83787
83788 2005-11-14  Jim Meyering  <jim@meyering.net>
83789
83790         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83791         replacement of mkstemp.
83792
83793 2005-11-10  Simon Josefsson  <jas@extundo.com>
83794
83795         * lib/readline.c: Remove EOL.
83796
83797 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83798
83799         * modules/gethrxtime (Depends-on): Add gettime.
83800
83801 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83804         or gettimeofday; no longer needed.
83805
83806 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83807
83808         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83809         time business.
83810         (gethrxtime) [! (HAVE_NANOUPTIME
83811         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83812         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83813         our own approximation.
83814
83815 2005-11-08  Eric Blake  <ebb9@byu.net>
83816
83817         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83818
83819 2005-11-08  Eric Blake  <ebb9@byu.net>
83820
83821         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83822
83823 2005-11-04  Bruno Haible  <bruno@clisp.org>
83824
83825         * gnulib-tool: Implement --update mode.
83826
83827 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83828
83829         Fix porting problem reported by Theodoros V. Kalamatianos.
83830         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83831         Don't assume that futimes failing means we must fail.
83832
83833 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83834
83835         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83836         variables to suggest the intended function of the PATH_MAX check.
83837
83838 2005-10-30  Kean Johnston  <jkj@sco.com>
83839
83840         Trivial changes to support SCO systems.
83841         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83842         as PATH_MAX.
83843         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83844         where __ptr is null when no I/O is pending.
83845
83846 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83849         leave errno alone.  Problem reported by Dmitry V. Levin.
83850
83851 2005-10-28  Simon Josefsson  <jas@extundo.com>
83852
83853         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83854         Test more.
83855
83856         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83857
83858         * modules/md2, modules/md2-tests: New files.
83859
83860 2005-10-28  Simon Josefsson  <jas@extundo.com>
83861
83862         * m4/inet_ntop.m4: More tests.
83863
83864         * m4/gc-md2.m4, md2.m4: New file.
83865
83866 2005-10-28  Simon Josefsson  <jas@extundo.com>
83867
83868         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83869         "restrict" keywords, as per POSIX.  Protect the function
83870         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83871         Don't use K&R prototypes.  Check the sprintf return values.
83872         Re-define EAFNOSUPPORT if not present.  Indent.
83873
83874         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83875         suggested by Bruno Haible <bruno@clisp.org>.
83876
83877         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83878
83879         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83880
83881         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83882         libgcrypt).
83883
83884         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83885
83886         * lib/md2.h, lib/md2.c: New files.
83887
83888 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83889
83890         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83891         errno alone.  Problem reported by Frederic Jolliton.
83892
83893 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83894
83895         * modules/verify (License): Change from GPL to LGPL.  This is a
83896         tiny module and there are apparently near-equivalents that are
83897         under the BSD license.
83898
83899 2005-10-24  Simon Josefsson  <jas@extundo.com>
83900
83901         * modules/sha1: Relicense to LGPL.
83902
83903 2005-10-24  Simon Josefsson  <jas@extundo.com>
83904
83905         * lib/md4.h: Shrink buffer size, now that we changed the type.
83906
83907 2005-10-23  Simon Josefsson  <jas@extundo.com>
83908
83909         * gnulib-tool (func_import): Fix --tests-base.
83910
83911 2005-10-22  Simon Josefsson  <jas@extundo.com>
83912
83913         * modules/arcfour (Depends-on): Need stdint.
83914
83915 2005-10-22  Simon Josefsson  <jas@extundo.com>
83916
83917         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83918         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83919
83920 2005-10-22  Simon Josefsson  <jas@extundo.com>
83921
83922         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83923         suggested by Bruno Haible <bruno@clisp.org>.
83924
83925 2005-10-22  Simon Josefsson  <jas@extundo.com>
83926
83927         * lib/crc.h: Include stddef.h, for size_t.
83928
83929 2005-10-22  Simon Josefsson  <jas@extundo.com>
83930
83931         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83932         arcfour_context struct (simplify test vector testing in GNU
83933         Shishi).
83934
83935 2005-10-21  Simon Josefsson  <jas@extundo.com>
83936
83937         * modules/des, modules/des-tests: New files.
83938
83939         * modules/gc-des, modules/gc-des-tests: New files.
83940
83941         * tests/test-des.c, tests/test-gc-des.c: New file.
83942
83943 2005-10-21  Simon Josefsson  <jas@extundo.com>
83944
83945         * modules/arctwo, modules/arctwo-tests: New files.
83946
83947         * tests/test-arctwo.c: New file.
83948
83949         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83950
83951         * tests/test-gc-arctwo.c: New file.
83952
83953 2005-10-21  Simon Josefsson  <jas@extundo.com>
83954
83955         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83956         Bruno Haible <bruno@clisp.org>.
83957
83958         * m4/gc-des.m4: New file.
83959
83960 2005-10-21  Simon Josefsson  <jas@extundo.com>
83961
83962         * m4/arctwo.m4: New file.
83963
83964         * m4/gc-arctwo.m4: New file.
83965
83966 2005-10-21  Simon Josefsson  <jas@extundo.com>
83967
83968         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83969         block.
83970
83971 2005-10-21  Simon Josefsson  <jas@extundo.com>
83972
83973         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83974         <bruno@clisp.org>.
83975
83976         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83977
83978         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83979         Bruno Haible <bruno@clisp.org>.
83980
83981         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83982         <bruno@clisp.org>.
83983
83984 2005-10-21  Simon Josefsson  <jas@extundo.com>
83985
83986         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83987
83988 2005-10-21  Simon Josefsson  <jas@extundo.com>
83989
83990         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83991
83992 2005-10-21  Simon Josefsson  <jas@extundo.com>
83993
83994         * lib/des.h, lib/des.c: New files.
83995
83996         * lib/gc-gnulib.c: Support DES.c
83997
83998 2005-10-21  Simon Josefsson  <jas@extundo.com>
83999
84000         * lib/arctwo.h, lib/arctwo.c: New files.
84001
84002         * lib/gc-gnulib.c: Support ARCTWO.
84003
84004 2005-10-21  Simon Josefsson  <jas@extundo.com>
84005
84006         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84007         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84008
84009 2005-10-21  Simon Josefsson  <jas@extundo.com>
84010
84011         * gnulib-tool (func_import, func_create_testdir): Define automake
84012         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84013         Makefile.am snippet),
84014         suggested by Bruno Haible <bruno@clisp.org>.
84015
84016         * modules/gc (Makefile.am): Use it.
84017
84018 2005-10-21  Bruno Haible  <bruno@clisp.org>
84019
84020         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84021         patch.
84022
84023 2005-10-19  Simon Josefsson  <jas@extundo.com>
84024
84025         * tests/test-gc-rijndael.c: New file.
84026
84027         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84028
84029 2005-10-19  Simon Josefsson  <jas@extundo.com>
84030
84031         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84032         interface too.
84033
84034 2005-10-19  Simon Josefsson  <jas@extundo.com>
84035
84036         * tests/test-gc-arcfour.c: New file.
84037
84038         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84039
84040 2005-10-19  Simon Josefsson  <jas@extundo.com>
84041
84042         * modules/gc-md4, modules/gc-md4-tests: New file.
84043
84044         * tests/test-gc-md4.c: New file.
84045
84046 2005-10-19  Simon Josefsson  <jas@extundo.com>
84047
84048         * m4/gc-md4.m4: New file.
84049
84050 2005-10-19  Simon Josefsson  <jas@extundo.com>
84051
84052         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84053         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84054         <kasal@ucw.cz>.
84055
84056 2005-10-19  Simon Josefsson  <jas@extundo.com>
84057
84058         * m4/gc-arcfour.m4: New file.
84059
84060         * m4/gc-rijndael.m4: New file.
84061
84062 2005-10-19  Simon Josefsson  <jas@extundo.com>
84063
84064         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84065
84066 2005-10-19  Simon Josefsson  <jas@extundo.com>
84067
84068         * lib/gc-gnulib.c: Support ARCFOUR.
84069
84070 2005-10-19  Simon Josefsson  <jas@extundo.com>
84071
84072         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84073         support.
84074
84075         * lib/gc.h: Add ECB enum type.
84076
84077         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84078
84079 2005-10-18  Simon Josefsson  <jas@extundo.com>
84080
84081         * tests/test-md5.c: New file.
84082
84083         * modules/md5-tests: New file.
84084
84085 2005-10-18  Simon Josefsson  <jas@extundo.com>
84086
84087         * tests/test-md4.c: New file.
84088
84089         * modules/md4, modules/md4-tests: New files.
84090
84091 2005-10-18  Simon Josefsson  <jas@extundo.com>
84092
84093         * m4/md4.m4: New file.
84094
84095 2005-10-18  Simon Josefsson  <jas@extundo.com>
84096
84097         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84098
84099 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84100
84101         * gnulib-tool (func_create_testdir): Omit the second check whether
84102         BUILT_SOURCES in nonempty.
84103
84104 2005-10-17  Simon Josefsson  <jas@extundo.com>
84105
84106         * tests/test-rijndael.c: New file.
84107
84108 2005-10-17  Simon Josefsson  <jas@extundo.com>
84109
84110         * modules/sha1: Depend on stdint instead of md5.
84111
84112         * modules/md5: Depend on stdint, remove uint32_t.
84113
84114 2005-10-17  Simon Josefsson  <jas@extundo.com>
84115
84116         * modules/gc-sha1-tests: New file.
84117
84118         * tests/test-gc-sha1.c: New file.
84119
84120 2005-10-17  Simon Josefsson  <jas@extundo.com>
84121
84122         * m4/md5.m4: Remove call to uint32_t.m4.
84123
84124 2005-10-17  Simon Josefsson  <jas@extundo.com>
84125
84126         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84127
84128         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84129         md5.h.
84130
84131         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84132
84133         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84134
84135 2005-10-17  Simon Josefsson  <jas@extundo.com>
84136
84137         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84138
84139 2005-10-17  Simon Josefsson  <jas@extundo.com>
84140
84141         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84142
84143 2005-10-17  Simon Josefsson  <jas@extundo.com>
84144
84145         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84146
84147         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84148
84149 2005-10-17  Bruno Haible  <bruno@clisp.org>
84150
84151         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84152         that it can also be used in a test.
84153
84154 2005-10-16  Bruno Haible  <bruno@clisp.org>
84155
84156         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84157         TESTS_ENVIRONMENT, so that individual tests can augment it.
84158
84159         * gnulib-tool (func_create_testdir): Use an intermediate target for
84160         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84161         macros, like $(ALLOCA_H), which cannot be passed through the command
84162         line.
84163
84164 2005-10-15  Simon Josefsson  <jas@extundo.com>
84165
84166         * modules/rijndael-tests: New file.
84167
84168         * modules/rijndael: New file.
84169
84170 2005-10-15  Simon Josefsson  <jas@extundo.com>
84171
84172         * m4/rijndael.m4: New file.
84173
84174 2005-10-15  Simon Josefsson  <jas@extundo.com>
84175
84176         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84177
84178         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84179
84180 2005-10-14  Simon Josefsson  <jas@extundo.com>
84181
84182         * tests/test-arcfour.c: New file.
84183
84184         * modules/arcfour, modules/arcfour-tests: New files.
84185
84186 2005-10-14  Simon Josefsson  <jas@extundo.com>
84187
84188         * m4/arcfour.m4: New file.
84189
84190 2005-10-14  Simon Josefsson  <jas@extundo.com>
84191
84192         * lib/arcfour.h, lib/arcfour.c: New files.
84193
84194 2005-10-14  Roland McGrath  <roland@redhat.com>
84195
84196         Import from libc.  [BZ #1331]
84197         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84198         macro argument.
84199         Reported by Matej Vela <vela@debian.org>.
84200
84201 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84202
84203         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84204         include <wchar.h>; no longer needed.
84205
84206 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84207
84208         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84209
84210 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84211         and  Ulrich Drepper  <drepper@redhat.com>
84212
84213         Import from libc.
84214         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84215         instead of inline stream orientation test and two separate
84216         function calls.  Pay no attention to USE_IN_LIBIO.
84217
84218 2005-10-13  Simon Josefsson  <jas@extundo.com>
84219
84220         * modules/gc-hmac-md5-tests: New file.
84221
84222         * tests/test-gc-hmac-sha1.c: New file.
84223
84224         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84225
84226         * modules/gc-hmac-md5-tests: New file.
84227
84228         * tests/test-gc-md5.c: New file.
84229
84230         * modules/gc-md5-tests: New file.
84231
84232 2005-10-13  Simon Josefsson  <jas@extundo.com>
84233
84234         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84235         Move memory allocation outside of loop.
84236
84237 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84240         intermediate directory is in a read-only file system.  Problem
84241         reported by Eric Blake.
84242
84243 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84244
84245         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84246
84247 2005-10-12  Simon Josefsson  <jas@extundo.com>
84248
84249         * tests/test-hmac-sha1.c: New file.
84250
84251         * modules/hmac-sha1-tests: New file.
84252
84253         * modules/hmac-sha1: New file.
84254
84255 2005-10-12  Simon Josefsson  <jas@extundo.com>
84256
84257         * modules/gc-sha1: New file.
84258
84259 2005-10-12  Simon Josefsson  <jas@extundo.com>
84260
84261         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84262
84263         * tests/test-gc-pbkdf2-sha1.c: New file.
84264
84265 2005-10-12  Simon Josefsson  <jas@extundo.com>
84266
84267         * modules/gc-md5, modules/gc-hmac-md5: New files.
84268
84269         * modules/gc (Files): Remove md5, memxor and hmac files.
84270
84271 2005-10-12  Simon Josefsson  <jas@extundo.com>
84272
84273         * m4/gc-pbkdf2-sha1.m4: New file.
84274
84275         * m4/gc-hmac-sha1.m4: New file.
84276
84277         * m4/gc-sha1: New file.
84278
84279         * m4/hmac-sha1.m4: New file.
84280
84281 2005-10-12  Simon Josefsson  <jas@extundo.com>
84282
84283         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84284
84285         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84286
84287 2005-10-12  Simon Josefsson  <jas@extundo.com>
84288
84289         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84290         suggested by Bruno Haible <bruno@clisp.org>.
84291
84292 2005-10-12  Simon Josefsson  <jas@extundo.com>
84293
84294         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84295
84296 2005-10-12  Simon Josefsson  <jas@extundo.com>
84297
84298         * lib/gc-pbkdf2-sha1.c: New file.
84299
84300         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84301
84302 2005-10-12  Simon Josefsson  <jas@extundo.com>
84303
84304         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84305
84306         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84307
84308 2005-10-12  Simon Josefsson  <jas@extundo.com>
84309
84310         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84311         GC_USE_HMAC_MD5, respectively.
84312
84313         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84314         (gc_md5): Fix typo.
84315
84316         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84317
84318         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84319
84320         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84321
84322 2005-10-12  Bruno Haible  <bruno@clisp.org>
84323
84324         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84325         Reported by Stepan Kasal <kasal@ucw.cz>.
84326
84327 2005-10-11  Simon Josefsson  <jas@extundo.com>
84328
84329         * tests/test-crc.c: New file.
84330
84331         * modules/crc, modules/crc-tests: New files.
84332
84333 2005-10-11  Simon Josefsson  <jas@extundo.com>
84334
84335         * m4/crc.m4: New file.
84336
84337 2005-10-11  Simon Josefsson  <jas@extundo.com>
84338
84339         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84340
84341         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84342
84343         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84344
84345 2005-10-11  Simon Josefsson  <jas@extundo.com>
84346
84347         * lib/crc.h, lib/crc.c: New files.
84348
84349         * lib/gc.h (gc_hash_buffer): Add doc.
84350
84351 2005-10-11  Bruno Haible  <bruno@clisp.org>
84352
84353         * modules/c-strcasestr: New file.
84354         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84355
84356 2005-10-11  Bruno Haible  <bruno@clisp.org>
84357
84358         * modules/c-strcase: New file.
84359         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84360
84361 2005-10-11  Bruno Haible  <bruno@clisp.org>
84362
84363         * lib/strcasecmp.c: Include limits.h.
84364         (strcasecmp): Avoid integer overflow on exotic platforms.
84365         * lib/strncasecmp.c: Include limits.h.
84366         (strncasecmp): Avoid integer overflow on exotic platforms.
84367         Reported by Paul Eggert.
84368
84369 2005-10-11  Bruno Haible  <bruno@clisp.org>
84370
84371         * lib/c-strcasestr.h: New file, from GNU gettext.
84372         * lib/c-strcasestr.c: New file, from GNU gettext.
84373
84374 2005-10-11  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/c-strcase.h: New file, from GNU gettext.
84377         * lib/c-strcasecmp.c: New file, from GNU gettext.
84378         * lib/c-strncasecmp.c: New file, from GNU gettext.
84379
84380 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * modules/mempcpy (License): GPL -> LGPL.
84383         * modules/strchrnul (License): Likewise.
84384         * modules/sysexits (License): Likewise.
84385
84386 2005-10-08  Simon Josefsson  <jas@extundo.com>
84387
84388         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84389
84390 2005-10-07  Simon Josefsson  <jas@extundo.com>
84391
84392         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84393
84394 2005-10-06  Simon Josefsson  <jas@extundo.com>
84395
84396         * tests/test-hmac-md5.c: New file.
84397
84398         * modules/hmac-md5-tests: New file.
84399
84400         * modules/hmac-md5: New file.
84401
84402 2005-10-06  Simon Josefsson  <jas@extundo.com>
84403
84404         * m4/hmac-md5.m4: New file.
84405
84406         * m4/memxor.m4: Require gl_C_RESTRICT.
84407
84408 2005-10-06  Simon Josefsson  <jas@extundo.com>
84409
84410         * lib/memxor.c (memxor): Avoid casts and warnings.
84411
84412 2005-10-06  Simon Josefsson  <jas@extundo.com>
84413
84414         * lib/hmac-md5.c: New file.
84415
84416         * lib/hmac.h: New file.
84417
84418 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84419
84420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84421         promotes to int, not unsigned int, to catch the AIX 5.3
84422         compiler bug.
84423
84424 2005-10-05  Simon Josefsson  <jas@extundo.com>
84425
84426         * modules/memxor: New file.
84427
84428         * modules/iconv (Files): Move config.rpath to havelib, it is used
84429         there.
84430
84431         * modules/havelib (Files): Add config.rpath.
84432
84433 2005-10-05  Simon Josefsson  <jas@extundo.com>
84434
84435         * m4/memxor.m4: New file.
84436
84437 2005-10-05  Simon Josefsson  <jas@extundo.com>
84438
84439         * lib/memxor.c (memxor): Fix compiler error.
84440
84441         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84442         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84443
84444         * lib/memxor.h, lib/memxor.c: New files.
84445
84446         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84447         we assume all systems have it, suggested by Jim Meyering
84448         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84449         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84450         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84451         same reasons.
84452
84453 2005-10-05  Simon Josefsson  <jas@extundo.com>
84454
84455         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84456
84457 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84458
84459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84460         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84461         needed, since the source code now assumes these .h files.
84462
84463 2005-10-05  Derek Price  <derek@ximbiot.com>
84464
84465         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84466
84467 2005-10-05  Bruno Haible  <bruno@clisp.org>
84468
84469         * modules/stdint (License): Change to LGPL.
84470
84471 2005-10-04  Simon Josefsson  <jas@extundo.com>
84472
84473         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84474         D. Baushke" <mdb@gnu.org>.
84475
84476 2005-10-04  Bruno Haible  <bruno@clisp.org>
84477
84478         * lib/verify.h (verify_true): Provide alternative definition for C++.
84479
84480 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84481
84482         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84483         (SSIZE_MAX): New macro, if not already defined.
84484         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84485         than 2 GiB.
84486
84487 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         Sync from coreutils.
84490         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84491         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84492         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84493         ULLONG_MAX doesn't work with 2.7.2.1.
84494
84495 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84496
84497         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84498         From Ben Pfaff.
84499
84500         * modules/exclude (Depends-on): Depend on verify.
84501         * modules/strtoimax (Depends-on): Likewise.
84502         * modules/utimecmp (Depends-on): Likewise.
84503
84504 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84505
84506         * lib/exclude.c: Include verify.h.
84507         (verify): Remove.  All callers changed to use verify.h's version.
84508         * lib/strtoimax.c: Likewise.
84509         * lib/utimecmp.c: Likewis.e
84510
84511         Sync from coreutils.
84512         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84513         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84514         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84515         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84516         bother returning ENOSYS if settimeofday or stime fails; just let
84517         them return whatever errno they want to return.
84518         * lib/utimens.c: Include unistd.h, for dup2.
84519         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84520         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84521
84522 2005-10-02  Jim Meyering  <jim@meyering.net>
84523
84524         Sync from coreutils.
84525         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84526         from glibc-2.2.5 that fails for read-only files.
84527
84528 2005-10-02  Jim Meyering  <jim@meyering.net>
84529
84530         Sync from coreutils.
84531         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84532         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84533         `#if HAVE_CONFIG_H'.
84534         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84535         Remove AT_FDCWD test.
84536         Do not consume the fd unless successful.
84537         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84538         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84539         block, so that we don't even try to compile it if settimeofday is
84540         available.  This works around a compilation failure on OSF1 V5.1,
84541         due to stime requiring a `long int*' while tv_sec is `int'.
84542
84543 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84544
84545         Sync from coreutils.
84546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84547         against `yes', rather than just testing for nonempty.
84548
84549 2005-10-01  Simon Josefsson  <jas@extundo.com>
84550
84551         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84552         and Darwin.
84553
84554         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84555         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84556         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84557         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84558         Check if struct addrinfo is declared.
84559
84560 2005-10-01  Simon Josefsson  <jas@extundo.com>
84561
84562         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84563         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84564         AI_* and EAI_* definitions.  Protect function declarations.
84565
84566 2005-10-01  Jim Meyering  <jim@meyering.net>
84567
84568         Sync from coreutils.
84569
84570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84571         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84572         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84574         in the inet and nsl libraries.  Required on Solaris 5.7.
84575
84576 2005-10-01  Jim Meyering  <jim@meyering.net>
84577
84578         Sync from coreutils.
84579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84580         in the inet and nsl libraries.  Required on Solaris 5.7.
84581
84582 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84583
84584         * lib/getdelim.c (getdelim): Remove unused variables.
84585
84586 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84587
84588         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84589         so that the code works even with ancient cpp.  Portability problem
84590         with GCC 2.7.2.1 reported by Thomas M.Ott.
84591
84592 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84593
84594         * modules/regex (Depends-on): Add strcase.
84595
84596         * modules/gethostname (Licence): Change from GPL to LGPL, since
84597         gethostname.c is a trivial implementation of a standard library
84598         function.
84599         * modules/poll (License): Change from GPL to LGPL, since it's
84600         derived from LGPL code.
84601
84602 2005-09-27  Jim Meyering  <jim@meyering.net>
84603
84604         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84605         HAVE_CONFIG_H.
84606
84607         * lib/intprops.h (signed_type_or_expr__): Define.
84608         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84609         for unsigned types.
84610
84611 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         * lib/verify.h (verify_expr): Remove, replacing with:
84614         (verify_true): New macro that returns true instead of void.
84615         (verify_type__): Remove.
84616         (verify): Use verify_true rather than verify_type__.
84617
84618 2005-09-26  Bruno Haible  <bruno@clisp.org>
84619
84620         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84621         is necessary.
84622         (lib_SOURCES): Remove mbchar.c.
84623         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84624         (Files): Add m4/mbrtowc.m4.
84625         * modules/mbiter: Likewise.
84626         * modules/mbuiter: Likewise.
84627
84628 2005-09-26  Bruno Haible  <bruno@clisp.org>
84629
84630         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84631         compile mbchar.c if they are not both present.
84632         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84633         * m4/mbiter.m4 (gl_MBITER): Likewise.
84634         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84635         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84636         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84637
84638 2005-09-25  Jim Meyering  <jim@meyering.net>
84639
84640         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84641         also uses socklen_t.
84642
84643 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84644
84645         * lib/utimens.c (ENOSYS): Define if not already defined.
84646         (futimens): Support having a null PATH if the file descriptor
84647         is nonnegative.
84648
84649         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84650         Remove.
84651         (__attribute): Define to empty unless GCC 3.1 or later.
84652         This works around a core dump on OpenBSD 3.4, which has GCC
84653         2.95.3, which dumps core when given __attribute__(()).  It also
84654         simplifies other tests, since we really don't want to bother with
84655         worrying about which ancient version of GCC supported what.
84656         Original problem reported by Yoann Vandoorselaere, with part of
84657         the fix suggested by Derek Price.
84658
84659 2005-09-24  Jim Meyering  <jim@meyering.net>
84660
84661         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84662         so we can once again use a positive bitfield width of 1 -- now we
84663         don't have to explain why we were using a bitfield width of 2.
84664
84665 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84666
84667         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84668         and similarly for the other external symbols.  Problem reported
84669         by James Gallager.
84670
84671         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84672         bug reported by Jim Meyering.
84673
84674         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84675         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84676         not needed, since socklen is a prerequisite module.
84677
84678 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84681         Problem reported by Eric Blake.
84682         (getaddrinfo): Initialize se so that it's not garbage.
84683         Redo internal storage allocation so that it doesn't make unportable
84684         assumptions about alignment.
84685         Fix a memory leak.
84686
84687         * lib/utimens.c (futimens): Use futimesat if available.
84688         Prefer it to futimes since it doesn't have the futimes bug.
84689
84690         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84691         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84692         Instead, declare a function that returns a pointer to an array,
84693         and use verify_type__ to declare the size of the array.
84694         Problem and germ of a solution reported by Bruno Haible.
84695         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84696         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84697
84698 2005-09-23  Jim Meyering  <jim@meyering.net>
84699
84700         Sync from coreutils.
84701         Correct build failure (socklen_t not defined) on at least
84702         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84703         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84704
84705 2005-09-23  Jim Meyering  <jim@meyering.net>
84706
84707         * modules/getaddrinfo (Depends-on): Add socklen.
84708
84709 2005-09-23  Bruno Haible  <bruno@clisp.org>
84710
84711         * tests/test-verify.c: New file.
84712
84713 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         Sync from coreutils.
84716
84717         * modules/argmatch (Depends-on): Add verify.
84718         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84719         unistd-safer.
84720         * modules/save-cwd (Depends-on): Likewise.
84721
84722         * modules/openat (Files): Add lib/openat-die.c.
84723         (Depends-on): Remove error, exitfail.
84724         Add dirname.
84725
84726         * modules/verify: New file.
84727         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84728         with "verify" module.
84729
84730 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         Sync from coreutils.
84733
84734         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84735         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84736         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84737         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84738         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84739         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84740         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84741         Don't bother checking for string.h, stdlib.h, unistd.h.
84742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84744         module's job.
84745         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84746         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84747
84748         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84749         (gl_GETDATE): Use it.
84750
84751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84752
84753 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         Sync from coreutils.
84756
84757         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84758         stat-time.h.
84759         * lib/argmatch.h: Include verify.h
84760         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84761         (ARGMATCH_ASSERT): Remove; unused.
84762         * lib/canonicalize.c: Assume STDC_HEADERS.
84763         * lib/exclude.c: Include "strcase.h".
84764         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84765         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84766         and stdio-safer.h.
84767         (getusershell): Call fopen, not fopen_safer.
84768         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84769         Do not include unistd-safer.h.
84770         (save_cwd): Don't call fd_safer; no longer needed
84771         now that we include fcntl--.h.
84772
84773         * lib/getdate.y (relative_time): New type.
84774         (RELATIVE_TIME_0): New constant.
84775         (parser_control): Use relative_time instead of doing it ourselves.
84776         (%union): Add new relative_time rel member.
84777         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84778         Now typeless.
84779         (relunit, relunit_snumber): Now of type rel.
84780         (zone, rel, relunit, get_date): Adjust to above changes.
84781
84782         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84783         Do not include unistd-safer.h.
84784         (getloadavg): Don't call fd_safer; no longer needed
84785         now that we include fcntl--.h.
84786
84787         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84788         (make_dir_parents): Treat ENOSYS like EEXIST.
84789
84790         Improve quality of diagnostics on restore_cwd failure.
84791         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84792         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84793         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84794         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84795         each time through the loop.  Do not diagnose restore_cwd failure;
84796         that is the caller's job (and perhaps the caller does not care).
84797
84798         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84799         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84800         If the file already exists but is not a directory, don't bother
84801         to try to make its parents.
84802         Close potential file descriptor leak if we can't chdir("/") (!).
84803         Don't always return true if chdir($PWD) fails; return true only
84804         if the requested action was done successfully (except for the
84805         chdir($PWD)).
84806         Don't log final directory unless we actually made it.
84807         Refactor to avoid duplicate code to fix up permissions.
84808         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84809
84810         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84811         to make it a bit faster and (I hope) clearer.
84812         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84813         Fix bug in formats like %2N.
84814
84815         * lib/verify.h: New file.
84816
84817 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84818
84819         Sync from coreutils.
84820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84821
84822 2005-09-22  Jim Meyering  <jim@meyering.net>
84823
84824         Sync from coreutils.
84825
84826         * m4/lstat.m4 (gl_FUNC_LSTAT):
84827         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84828         Remove obsolete comment.
84829         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84830         * m4/xstrtod.m4: Likewise.
84831
84832         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84833
84834 2005-09-22  Jim Meyering  <jim@meyering.net>
84835
84836         Sync from coreutils.
84837
84838         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84839
84840         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84841         the .tm_year member, since otherwise gcc-4.0 would now warn about
84842         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84843
84844         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84845         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84846
84847         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84848         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84849         when run in a time zone for which daylight savings time is in effect
84850         for the starting date.
84851
84852         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84853         stop us from restricting permissions of just-created absolute-named
84854         directories.
84855         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84856         to restore initial working directory.
84857         * lib/mkdir-p.c (make_dir_parents): New parameter:
84858         different_working_dir, to tell caller if/when we change the working
84859         directory and are unable to return to the initial one.
84860         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84861         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84862         `return false'.  This fixes a bug introduced on 2004-07-30.
84863
84864         * lib/openat.c (fdopendir): Be sure to close the supplied
84865         file descriptor before returning.  This makes our replacement
84866         implementation a little closer to Solaris's, where fdopendir
84867         ties the file descriptor to the returned DIR* pointer.
84868         * lib/openat.c (unlinkat): New function.
84869         * lib/openat.h (unlinkat): Add prototype.
84870         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84871         (openat_restore_fail): Rename from openat_restore_die.
84872         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84873
84874         Provide an alternative to exiting immediately upon save_cwd or
84875         restore_cwd failure.  Now, an application can arrange e.g.,
84876         to perform a longjump in that case.
84877         * lib/openat.c: Include dirname.h.
84878         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84879         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84880         and openat_restore_die rather than calling error directly.
84881         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84882
84883         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84884         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84885         define.
84886
84887         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84888         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84889                             int utc, int nanoseconds);
84890         Background:
84891         date should not have to allocate a megabyte of virtual memory to
84892         handle a format argument like +%1048575T.  When implemented with
84893         strftime, it must allocate such a buffer, use strftime to fill it
84894         in, print it, then free it.
84895         With fprintftime, it simply prints everything and exits.
84896         With no need for memory allocation, that's one fewer way to fail.
84897         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84898         optional field width, not before, so we accept %9:z, not %:9z.
84899         (my_strftime): Be sure to use L_('x') for literals.
84900
84901         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84902         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84903         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84904         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84905         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84906         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84907         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84908         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84909         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84910         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84911         * lib/xgethostname.c, lib/xreadlink.c:
84912         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84913
84914         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84915         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84916         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84917         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84918         and don't include <sys/file.h>).
84919
84920 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84921
84922         Sync from coreutils.
84923
84924         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84925         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84926         [!LDAV_DONE]: Avoid unused variable warning.
84927
84928 2005-09-21  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/unicodeio.h (unicode_to_mb): New declaration.
84931
84932 2005-09-20  Derek Price  <derek@ximbiot.com>
84933
84934         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84935         getaddrinfo.h.
84936
84937 2005-09-20  Bruno Haible  <bruno@clisp.org>
84938
84939         * gnulib-tool: Remove trailing slashes from the values specified for
84940         --source-base, --m4-base, --tests-base, --aux-dir.
84941         Suggested by Simon Josefsson <jas@extundo.com>.
84942
84943 2005-09-20  Bruno Haible  <bruno@clisp.org>
84944
84945         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84946         func_modules_to_filelist, func_import, func_create_testdir): Make all
84947         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84948         change when gnulib-tool is invoked in a different locale.
84949
84950 2005-09-19  Simon Josefsson  <jas@extundo.com>
84951
84952         * m4/socklen.m4: Fix typo.
84953
84954 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84955
84956         Use a consistent style for including <config.h>.
84957         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84958         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84959         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84960         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84961         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84962         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84963         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84964         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84965         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84966         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84967         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84968         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84969         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84970         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84971         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84972         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84973         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84974         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84975         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84976         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84977         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84978         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84979         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84980         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84981         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84982         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84983         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84984         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84985         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84986         lib/xstrtoumax.c, lib/yesno.c:
84987         Standardize inclusion of config.h.
84988         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84989         lib/inttostr.h:  Removed inclusion of config.h from header files.
84990         * lib/inttostr.c:  Adjusted in-tree users.
84991         * lib/timespec.h: Remove superfluous warning to include config.h.
84992         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84993         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84994         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84995         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84996         config.h with HAVE_CONFIG_H.
84997
84998 2005-09-19  Jim Meyering  <jim@meyering.net>
84999
85000         * modules/pathmax (License): Change to LGPL.
85001
85002 2005-09-19  Derek Price  <derek@ximbiot.com>
85003
85004         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85005
85006 2005-09-19  Bruno Haible  <bruno@clisp.org>
85007
85008         * gnulib-tool (import): Provide default for --tests-base.
85009
85010 2005-09-19  Bruno Haible  <bruno@clisp.org>
85011
85012         * doc/quote.texi: New file, extracted from gnulib.texi.
85013         * doc/ctime.texi: New file, extracted from gnulib.texi.
85014         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85015         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85016         * doc/gnulib.texi: Include them.
85017
85018 2005-09-18  Bruno Haible  <bruno@clisp.org>
85019
85020         Portability fix.
85021         * gnulib-tool (func_readlink): New function.
85022         (func_ln_if_changed): Use it.
85023
85024 2005-09-18  Bruno Haible  <bruno@clisp.org>
85025
85026         * gnulib-tool: Support --with-tests also with --import.
85027         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85028         (func_import): Use variables $testsbase and $inctests. Emit a
85029         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85030         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85031         SUBDIRS += $testsdir.
85032         (func_create_testdir): Update.
85033
85034 2005-09-18  Bruno Haible  <bruno@clisp.org>
85035
85036         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85037         instead of $dry_run.
85038         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85039         (func_ln_if_changed): Don't handle dry-run here.
85040         (func_import): In dry-run mode, detect more precisely which actions
85041         would be performed, and don't use "...ing" verbs.
85042
85043 2005-09-18  Bruno Haible  <bruno@clisp.org>
85044
85045         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85046         (func_import): Use join on two temporary files instead of three nested
85047         loops, in order to determine which files are new or old.
85048
85049 2005-09-18  Bruno Haible  <bruno@clisp.org>
85050
85051         * gnulib-tool (func_import): Comment out code that spits out the
85052         new files with --dry-run.
85053
85054 2005-09-18  Bruno Haible  <bruno@clisp.org>
85055
85056         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85057
85058 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85059
85060         * lib/stat-time.h: New file.
85061         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85062         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85063         in a different way.
85064         (timespec_cmp): New function.
85065         * lib/utimecmp.c: Include stat-time.h.
85066         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85067         members exist, not on the obsolescent ST_MTIM_NSEC.
85068         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85069
85070 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85071
85072         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85073
85074 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         * MODULES.html.sh (File system functions): Add stat-time.
85077         * modules/stat-time: New file.
85078         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85079         is now done in a different way, by the stat-time module.
85080         * modules/utimecmp (Depends-on): Add stat-time.
85081
85082 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * m4/st_mtim.m4: Remove.  Superseded by...
85085         * m4/stat-time.m4: New file.
85086         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85087         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85088
85089 2005-09-15  Derek Price  <derek@ximbiot.com>
85090
85091         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85092
85093 2005-09-15  Derek Price  <derek@ximbiot.com>
85094
85095         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85096         * lib/regex_internal.c: Ditto, using this...
85097         (__GNUC_PREREQ): ...new macro.
85098         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85099         using...
85100         (__GNUC_PREREQ): ...this new macro.
85101
85102         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85103
85104 2005-09-15  Derek Price  <derek@ximbiot.com>
85105             Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85108         changes, consolidating in...
85109         * lib/regex_internal.h: ...this file.
85110
85111 2005-09-13  Jim Meyering  <jim@meyering.net>
85112
85113         * lib/canon-host.c: Filter through gnu indent and reword comments
85114         slightly.
85115         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85116
85117 2005-09-13  Derek Price  <derek@ximbiot.com>
85118
85119         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85120         failure.
85121         Reported by Jim Meyering  <jim@meyering.net>.
85122
85123 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85124
85125         * lib/base64.c: Typo.
85126         (base64_encode): Put b64str in initialized data section.
85127
85128 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         Merge glibc and coreutils changes into gnulib, plus a few
85131         extra fixes.
85132         * lib/md5.c: Use #error rather than a string.
85133         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85134         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85135         (__attribute__): Define to empty for non recent-GCC.
85136         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85137         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85138         Renamed from their non-__ counterparts, with new macros replacing
85139         them if not _LIBC.  Add __THROW attribute.
85140         (rol): Remove.
85141         (struct md5_ctx): Align buffer if using GCC.
85142         * lib/sha1.h (struct sha1_ctx): Likewise.
85143         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85144         The old name was backwards.
85145         (NOTSWAP): Remove; not used.
85146         (rol): New macro, moved here from md5.h.
85147         (sha1_process_block): Remove a FIXME that doesn't make sense.
85148
85149 2005-09-12  Derek Price  <derek@ximbiot.com>
85150
85151         Return usable errors from canon-host.
85152         * lib/canon-host.h: New file.
85153         * lib/canon-host.c (canon_host): Wrap...
85154         (canon_host_r): ...this new function, which now relies exclusively on
85155         getaddrinfo.
85156         (ch_strerror): New function.
85157         (last_cherror): New global.
85158         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85159         interface.
85160         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85161         void *.
85162         (freeaddrinfo): Free ai->ai_canonname when set.
85163
85164 2005-09-12  Derek Price  <derek@ximbiot.com>
85165
85166         Make canon-host require getaddrinfo.
85167         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85168         AC_LIBSOURCE canon-host.h.  Call...
85169         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85170         gl_GETADDRINFO.
85171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85172
85173 2005-09-12  Derek Price  <derek@ximbiot.com>
85174
85175         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85176         LGPL.
85177         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85178
85179 2005-09-12  Derek Price  <derek@ximbiot.com>
85180
85181         * lib/gai_strerror.c: Include config.h when available.  Include
85182         getaddrinfo.h before other headers to test interface.
85183         Reported by Larry Jones <lawrence.jones@ugs.com>.
85184
85185 2005-09-12  Derek Price  <derek@ximbiot.com>
85186             Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * modules/glob (Files): Add glob-libc.h.
85189
85190 2005-09-12  Derek Price  <derek@ximbiot.com>
85191             Paul Eggert  <eggert@cs.ucla.edu>
85192
85193         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85194         glob_.h, glob-libc.h.
85195         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85196
85197 2005-09-12  Derek Price  <derek@ximbiot.com>
85198             Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85201         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85202         protecting things that should be done only in gnulib contexts.
85203         * lib/glob_.h: New file, containing only the glob things needed for
85204         gnulib.
85205         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85206         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85207         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85208         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85209         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85210         and to respect the namespace rules better.
85211
85212 2005-09-08  Simon Josefsson  <jas@extundo.com>
85213
85214         * modules/socklen: New file.
85215
85216 2005-09-08  Simon Josefsson  <jas@extundo.com>
85217
85218         * m4/socklen.m4: New file.
85219
85220 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         * modules/utimens (Files): Add m4/utimbuf.m4, since
85223         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85224         Reported by Sergey Poznyakoff.
85225
85226 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85229         definitions, since that's the preferred style in glibc.
85230         Fix a minor spacing issue, and update copyright notice to match
85231         glibc's.
85232
85233 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85236
85237 2005-09-06  Simon Josefsson  <jas@extundo.com>
85238
85239         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85240         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85241
85242 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85245         warning.
85246
85247 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * config/srclist.txt: Add glibc bug 1302.
85250
85251 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85252
85253         Change bitset word type from unsigned int to unsigned long int,
85254         as this has better performance on typical 64-bit hosts.
85255         Port bitset code to hosts with unusual word sizes.
85256         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85257         (build_collating_symbol):
85258         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85259         argument is a bitset.  This is merely a style issue, but it makes
85260         it clearer that an entire array is expected.
85261         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85262         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85263         Port to the case where bitset_word is not the same as unsigned int.
85264         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85265         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85266         Likewise.
85267         * lib/regexec.c (check_dst_limits_calc_pos_1,
85268         check_subexp_matching_top):
85269         (build_trtable, group_nodes_into_DFAstates):
85270         Likewise.
85271         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85272         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85273         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85274         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85275         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85276         * lib/regcomp.c (optimize_subexps, lower_subexp):
85277         Work even if bitset_word has holes in its bitwise representation.
85278         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85279         * lib/regexec.c (check_dst_limits_calc_pos_1,
85280         check_subexp_matching_top):
85281         Likewise.
85282         * lib/regex_internal.c (re_string_reconstruct):
85283         Don't assume UCHAR_MAX == 255.
85284         * lib/regex_internal.h (bitset_set_all): Likewise.
85285         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85286         All uses changed.
85287         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85288         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85289         All uses changed.
85290         (BITSET_WORD_MAX): New macro.
85291         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85292         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85293         (bitset_empty, bitset_copy):
85294         Prefer sizeof (bitset) to multiplying it out ourselves.
85295         (bitset_not_merge): Remove; unused.
85296         (bitset_contain): Return bool, not unsigned int with one bit on.
85297         All callers changed.
85298         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85299         alignment than re_node_set; do this by defining a new internal
85300         type struct dests_alloc and using it to allocate memory.
85301
85302 2005-09-05  Bruno Haible  <bruno@clisp.org>
85303
85304         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85305         links.
85306
85307 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85308
85309         * modules/size_max (Makefile.am): Add size_max.h
85310
85311 2005-09-04  Derek Price  <derek@ximbiot.com>
85312
85313         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85314
85315 2005-09-03  Simon Josefsson  <jas@extundo.com>
85316
85317         * gnulib-tool: Fix typo.
85318
85319 2005-09-03  Simon Josefsson  <jas@extundo.com>
85320
85321         * config/srclist.txt: Add glibc bug 1293.
85322
85323 2005-09-03  Derek Price  <derek@ximbiot.com>
85324
85325         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85326         From Larry Jones <lawrence.jones@ugs.com>.
85327
85328 2005-09-02  Simon Josefsson  <jas@extundo.com>
85329
85330         * modules/socklen: New file.
85331
85332 2005-09-02  Simon Josefsson  <jas@extundo.com>
85333
85334         * modules/havelib: New module.
85335
85336         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85337         Use havelib.
85338
85339 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85340
85341         Check for arithmetic overflow when calculating sizes, to prevent
85342         some buffer-overflow issues.  These patches are conservative, in the
85343         sense that when I couldn't determine whether an overflow was possible,
85344         I inserted a run-time check.
85345         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85346         macros.
85347         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85348         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85349         (re_xnrealloc, re_x2nrealloc): New inline functions.
85350         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85351         parse_bracket_exp):
85352         (build_equiv_class, build_charclass): Check for arithmetic overflow
85353         in size expression calculations.
85354         * lib/regex_internal.c (re_string_realloc_buffers):
85355         (build_wcs_upper_buffer, re_node_set_add_intersect):
85356         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85357         (re_dfa_add_node, register_state): Likewise.
85358         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85359         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85360         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85361         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85362
85363 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85366         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85367
85368 2005-09-02  Bruno Haible  <bruno@clisp.org>
85369
85370         Support for lib vs. lib64 distinction on biarch platforms.
85371         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85372         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85374
85375 2005-09-02  Bruno Haible  <bruno@clisp.org>
85376
85377         * gnulib-tool (import): In the other first-use case, provide defaults
85378         as well.
85379
85380 2005-09-02  Bruno Haible  <bruno@clisp.org>
85381
85382         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85383         patches not yet found in the latest gettext release.
85384
85385 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85388         to avoid a collision with bits/local_lim.h in glibc.
85389         All uses changed.  Problem reported by Dmitry V. Levin in
85390         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85391
85392         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85393         bugs in int versus size_t comparisons.
85394         (re_string_context_at): Fix bug where the code assumed that
85395         Idx is signed.
85396
85397         Use bool where appropriate.
85398         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85399         All callers changed.
85400         (calc_eclosure_iter): Likewise, for ROOT arg.
85401         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85402         (build_charclass_op): Likewise, for NON_MATCH arg.
85403         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85404         (re_string_construct_common): Likewise, for ICASE arg.
85405         * lib/regexec.c (re_search_2_stub, re_search_stub):
85406         Likewise, for RET_LEN arg.
85407         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85408         (set_regs): Likewise, for FL_BACKTRACK arg.
85409         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85410         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85411         (calc_eclosure_iter, parse_bracket_exp):
85412         Use bool for internal variables that are booleans.
85413         * lib/regexec.c (re_search_internal, check_matching,
85414         proceed_next_node):
85415         (set_regs, build_sifted_states, sift_states_bkref):
85416         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85417         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85418         (find_collation_sequence_value):
85419         Likewise.
85420         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85421         (re_node_set_compare):
85422         Return bool, not int. All callers changed.
85423         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85424         (build_trtable, check_node_accept): Likewise.
85425         * lib/regex_internal.h: Include stdbool.h.
85426
85427         Fix bugs uncovered when converting to bool.
85428         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85429         failure instead of charging ahead blindly.
85430         * lib/regex_internal.c (register_state): Likewise.
85431         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85432         for freeing internal storage.
85433         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85434         bitset pieces used as boolean, to avoid undefined behavior
85435         on hosts that do int overflow checking.
85436
85437 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * config/srclist.txt: Add glibc bugs 1285-1287.
85440
85441 2005-09-01  Jim Meyering  <jim@meyering.net>
85442
85443         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85444         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85445         Require gl_STAT_MACROS, too.
85446
85447 2005-09-01  Bruno Haible  <bruno@clisp.org>
85448
85449         * gnulib-tool (import): In the first-use case, provide defaults.
85450
85451 2005-09-01  Bruno Haible  <bruno@clisp.org>
85452
85453         * gnulib-tool (func_import): Remove the .tmp files.
85454
85455 2005-09-01  Bruno Haible  <bruno@clisp.org>
85456
85457         * gnulib-tool (func_import): Fix handling of symbolic links.
85458
85459 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85460
85461         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85462         old glibc regex code mishandles strings longer than 2**31 bytes.
85463         This patch fixes this when the regex code is used in gnulib
85464         (i.e., outside glibc).
85465
85466         This patch should not affect the use of the regex code inside
85467         glibc.  No doubt this problem also needs to be handled for glibc
85468         as well, but the result will be an incompatible change to the
85469         glibc ABI, and the old ABI will have to be supported too.  That
85470         can be the the subject for another patch.
85471
85472         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85473         governing whether the rest of this patch is active.  By default,
85474         the macro is disabled and the patch has no effect.
85475         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85476         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85477         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85478         (re_match_2, re_set_registers): Use the new types.
85479         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85480         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85481         New macros.
85482         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85483         (re_string_context_at, bin_tree_t, re_dfastate_t):
85484         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85485         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85486         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85487         (re_string_char_size_at, re_string_wchar_at):
85488         (re_string_elem_size_at):
85489         Use the new types and macros to port to 64-bit hosts.
85490         Use unsigned types for internal values, so that the code
85491         mostly works even for arrays larger than SSIZE_MAX.
85492         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85493         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85494         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85495         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85496         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85497         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85498         (calc_inveclosure, parse_dup_op, build_range_exp):
85499         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85500         (fetch_number, create_token_tree, mark_opt_subexp):
85501         Likewise.
85502         * lib/regex_internal.c (re_string_construct_common,
85503         create_ci_newstate):
85504         (create_cd_newstate, re_string_allocate, re_string_construct):
85505         (re_string_realloc_buffers, build_wcs_upper_buffer):
85506         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85507         (re_string_reconstruct, re_string_peek_byte_case):
85508         (re_string_fetch_byte_case, re_string_context_at):
85509         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85510         (re_node_set_init_copy, re_node_set_add_intersect):
85511         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85512         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85513         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85514         (re_acquire_state, re_acquire_state_context, register_state):
85515         Likewise.
85516         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85517         search_cur_bkref_entry):
85518         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85519         (re_search_internal, re_search_2_stub, re_search_stub)
85520         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85521         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85522         (update_cur_sifted_state, check_dst_limits):
85523         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85524         (check_subexp_limits, sift_states_bkref, merge_state_array):
85525         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85526         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85527         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85528         (expand_bkref_cache, check_node_accept_bytes):
85529         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85530         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85531         (acquire_init_state_context, check_halt_node_context):
85532         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85533         (sift_states_backward, clean_state_log_if_needed):
85534         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85535         (find_recover_state, transit_state_sb, transit_state_mb):
85536         (transit_state_bkref, build_trtable, match_ctx_clean):
85537         Likewise.
85538         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85539         to work around an assumption that REG_MISSING is negative.
85540
85541         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85542         (seek_collating_symbol_entry) [defined _LIBC]:
85543         (lookup_collation_sequence_value) [defined _LIBC]:
85544         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85545         Use prototypes rather than old-style function definitions.
85546         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85547         (transit_state_sb) [0]:
85548         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85549
85550         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85551         rm_eo.
85552
85553         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85554         (optimize_subexps, lower_subexp):
85555         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85556         since the signed shift might overflow.  Use 1u<<31 instead.
85557         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85558         Likewise.
85559         * lib/regexec.c (check_dst_limits_calc_pos_1,
85560         check_subexp_matching_top): Likewise.
85561
85562         * lib/regcomp.c (optimize_subexps, lower_subexp):
85563         Use CHAR_BIT rather than 8, for clarity.
85564         * lib/regexec.c (check_dst_limits_calc_pos_1):
85565         (check_subexp_matching_top): Likewise.
85566         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85567         have to worry about portability issues when shifting it left.
85568         Remove no-longer-needed test for table_size > 0.
85569         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85570         in a word, as the resulting behavior is undefined.
85571         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85572         in one case, a <= should have been an <, and in another case the
85573         whole test was missing.
85574         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85575         the standard name CHAR_BIT.
85576         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85577         this is not true on one's complement and signed-magnitude hosts.
85578
85579         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85580         next_last_offset.
85581         (struct re_dfa_t): Remove unused member states_alloc.
85582         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85583
85584 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85585
85586         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85587         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85588         and large-file glibc and in 32-bit large-file Solaris.
85589
85590 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85591
85592         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85593         lengths fit in regoff_t; this isn't true if regoff_t is the same
85594         width as size_t.
85595         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85596         (= START + RANGE) instead of RANGE.  This avoids overflow
85597         problems when regoff_t is the same width as size_t.
85598         All callers changed.
85599         (re_search_2_stub): Check for overflow when adding the
85600         sizes of the two strings.
85601         (re_search_stub): Check for overflow when adding START
85602         to RANGE; if it occurs, substitute the extreme value.
85603
85604 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85607
85608 2005-08-31  Jim Meyering  <jim@meyering.net>
85609
85610         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85611         a pointer-to-const.
85612         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85613         (register_state): Likewise.
85614         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85615         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85616         (group_nodes_into_DFAstates): Likewise.
85617
85618 2005-08-31  Jim Meyering  <jim@meyering.net>
85619
85620         * check-module: Add a FIXME comment.
85621
85622 2005-08-31  Eric Blake  <ebb9@byu.net>
85623
85624         * modules/unistd-safer (Files): Add unistd--.h.
85625         * modules/stdio-safer (Files): Add stdio--.h.
85626
85627 2005-08-31  Derek Price  <derek@ximbiot.com>
85628
85629         * lib/getdelim.c (getdelim): Return EOF on EOF.
85630         Reported by Larry Jones <lawrence.jones@ugs.com>.
85631
85632 2005-08-31  Bruno Haible  <bruno@clisp.org>
85633
85634         Avoid unnecessary diffs in the generated lib/Makefile.am.
85635         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85636         the generated files.
85637         (func_import): Don't set cmd.
85638
85639 2005-08-31  Bruno Haible  <bruno@clisp.org>
85640
85641         * lib/strstr.c: Include <stddef.h>, for NULL.
85642         * lib/strcasestr.c: Likewise.
85643         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85644
85645 2005-08-31  Bruno Haible  <bruno@clisp.org>
85646
85647         * gnulib-tool: New option --macro-prefix.
85648         (func_import): Use macro_prefix.
85649         (import): Handle option --macro-prefix.
85650
85651 2005-08-31  Bruno Haible  <bruno@clisp.org>
85652
85653         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85654         Also use new variables cached_lgpl, cached_libtool.
85655
85656 2005-08-31  Bruno Haible  <bruno@clisp.org>
85657
85658         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85659         always instantiating them.
85660
85661 2005-08-31  Bruno Haible  <bruno@clisp.org>
85662
85663         * gnulib-tool (func_import): Read the previous cached settings
85664         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85665         earlier added by gnulib but are now dropped. Warn when a gnulib file
85666         overwrites a non-gnulib file.
85667
85668 2005-08-31  Bruno Haible  <bruno@clisp.org>
85669
85670         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85671         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85672         projects that don't keep autogenerated files in CVS. Put into
85673         actioncmd only the specified modules, not the transitive closure.
85674
85675 2005-08-31  Bruno Haible  <bruno@clisp.org>
85676
85677         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85678         Create directories that shall be filled.
85679         (import): Don't look for gl_* macros in configure.ac. Recurse across
85680         all directories containing a gnulib-cache.m4 files, if meaningful.
85681
85682 2005-08-31  Bruno Haible  <bruno@clisp.org>
85683
85684         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85685         (import): Set seen_libtool when we see gl_LIBTOOL.
85686
85687 2005-08-31  Bruno Haible  <bruno@clisp.org>
85688
85689         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85690         declaration macro definitions from generated gnulib.m4.
85691
85692 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85693
85694         * lib/iconvme.h: Add prototype for iconv_alloc.
85695
85696 2005-08-29  Simon Josefsson  <jas@extundo.com>
85697
85698         * lib/iconvme.c: Fix errno.
85699
85700 2005-08-29  Bruno Haible  <bruno@clisp.org>
85701
85702         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85703         that it works when the directory contains spaces.
85704
85705 2005-08-29  Bruno Haible  <bruno@clisp.org>
85706
85707         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85708
85709 2005-08-29  Bruno Haible  <bruno@clisp.org>
85710
85711         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85712         Emit more advice.
85713
85714 2005-08-29  Bruno Haible  <bruno@clisp.org>
85715         and Stepan Kasal  <kasal@ucw.cz>
85716
85717         * check-module: If more parameters are given, check each of them
85718         separately; add more exceptions, as noted by Jim Meyering.
85719         (check_module): New procedure.
85720         (%exempt_header): Now contains all exceptions.
85721
85722 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85723
85724         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85725
85726 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85727
85728         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85729
85730 2005-08-28  Bruno Haible  <bruno@clisp.org>
85731
85732         * m4/gnulib-tool.m4: New file.
85733
85734 2005-08-27  Jim Meyering  <jim@meyering.net>
85735
85736         * modules/unistd-safer (Files): Add pipe-safer.c.
85737         * modules/fcntl-safer (Files): Add creat-safer.c.
85738
85739 2005-08-27  Jim Meyering  <jim@meyering.net>
85740
85741         * m4/stdlib-safer.m4: New file.  From coreutils.
85742         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85744         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85745         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85746         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85747
85748 2005-08-27  Jim Meyering  <jim@meyering.net>
85749
85750         * lib/fopen-safer.c: Merge minor changes from coreutils.
85751         * lib/dup-safer.c: Likewise.
85752         * lib/fd-safer.c: Likewise.
85753
85754         Merge from coreutils.
85755         * lib/stdio--.h: New file.
85756         * lib/stdlib--.h: New file.
85757         * lib/mkstemp-safer.c: New file.
85758
85759         GNU tar needs these.
85760         * lib/pipe-safer.c: New file.
85761         * lib/creat-safer.c: New file.
85762         * lib/fcntl--.h (creat): Define to creat_safer.
85763         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85764         * lib/unistd--.h (pipe): Define to pipe_safer.
85765         * lib/unistd-safer.h: Declare pipe_safer.
85766
85767 2005-08-26  Simon Josefsson  <jas@extundo.com>
85768
85769         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85770         Haible <bruno@clisp.org>.
85771
85772 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         * lib/regex_internal.h: Remove all references to
85775         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85776         or better.
85777         (bitset_not, bitset_merge, bitset_not_merge):
85778         (bitset_mask, re_string_allocate, re_string_construct):
85779         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85780         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85781         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85782         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85783         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85784         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85785         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85786         (re_acquire_state_context):
85787         Remove unnecessary forward decls.
85788         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85789         Put __attribute at function definition,
85790         now that the function decl has been removed.
85791         * lib/regex_internal.c (re_string_peek_byte_case):
85792         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85793         Likewise.
85794
85795 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85796
85797         * m4/regex.m4: Add AC_PREREQ(2.50).
85798         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85799
85800 2005-08-25  Simon Josefsson  <jas@extundo.com>
85801
85802         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85803         __fsetlocking.
85804
85805 2005-08-25  Simon Josefsson  <jas@extundo.com>
85806
85807         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85808         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85809         GLIBC specific code.
85810
85811 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85812
85813         Make regex safe for g++.  This fixes one real bug (an "err"
85814         that should have been "*err").  g++ problem reported by
85815         Sam Steingold.
85816         * lib/regex_internal.h (re_calloc): New macro, consistent with
85817         re_malloc etc.  All callers of calloc changed to use re_calloc.
85818         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85819         not int.  All callers changed.
85820         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85821         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85822         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85823         (find_recover_state): Change "err" to "*err"; this fixes what
85824         appears to be a real bug.
85825         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85826         versus int.
85827
85828 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * modules/regex (Depends-on): Add malloc, since the code
85831         assumes that !malloc(0) means failure.
85832
85833 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85836
85837         alloca modernization/simplification for regex.
85838         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85839         needs to be at the start of the file, and can be moved into
85840         regex_internal.h and simplified.
85841         * lib/regex_internal.h: Include <alloca.h>.
85842         (__libc_use_alloca) [!defined _LIBC]: New macro.
85843         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85844         now works outside glibc.
85845
85846 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85847
85848         * config/srclist.txt: Add glibc bugs 1241, 1245.
85849
85850 2005-08-25  Jim Meyering  <jim@meyering.net>
85851
85852         * lib/open-safer.c: Include <config.h>.
85853         Otherwise, we'd lose LARGEFILE support in any file using
85854         e.g. "fcntl--.h"
85855
85856 2005-08-25  Bruno Haible  <bruno@clisp.org>
85857
85858         * m4/minmax.m4: Require autoconf 2.52.
85859         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85860         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85861         alternatives of translit over the alphabet.
85862         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85863
85864 2005-08-24  Simon Josefsson  <jas@extundo.com>
85865
85866         * tests/test-getpass.c: New file.
85867
85868 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85869
85870         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85871         for GNU regex features.
85872
85873 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85874
85875         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85876         * lib/regex.h (regerror): Likewise.
85877
85878         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85879         requires this.  (The code never needed it.)
85880
85881         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85882         All uses of recently-renamed identifiers changed to use the new,
85883         POSIX-compliant names.  The code will build and run just fine
85884         without these changes, but it's better to eat our own dog food
85885         and use the standard-conforming names.
85886
85887         * lib/regex.h: Fix a multitude of POSIX name space violations.
85888         These changes have an effect only for programs that define
85889         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85890         do not change anything for programs compiled in the normal way.
85891         Also, there is no effect on the ABI.
85892
85893         (_REGEX_SOURCE): New macro.
85894         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85895         defined and _GNU_SOURCE is not; this fixes a name space violation.
85896
85897         Rename the following macros to obey POSIX requirements.
85898         The old names are still visible as macros if _REGEX_SOURCE is defined.
85899         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85900         RE_BACKSLASH_ESCAPE_IN_LISTS.
85901         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85902         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85903         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85904         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85905         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85906         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85907         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85908         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85909         (REG_INTERVALS): renamed from RE_INTERVALS.
85910         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85911         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85912         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85913         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85914         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85915         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85916         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85917         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85918         RE_UNMATCHED_RIGHT_PAREN_ORD.
85919         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85920         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85921         (REG_DEBUG): renamed from RE_DEBUG.
85922         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85923         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85924         unusual, since we can't clash with the POSIX REG_ICASE.
85925         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85926         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85927         (REG_NO_SUB): renamed from RE_NO_SUB.
85928         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85929         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85930         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85931         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85932         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85933         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85934         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85935         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85936         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85937         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85938         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85939         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85940         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85941         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85942         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85943         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85944         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85945         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85946         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85947         (REG_FIXED): Renamed from REGS_FIXED.
85948         (REG_NREGS): Renamed from RE_NREGS.
85949
85950         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85951         of other REG_* macros, since POSIX says the user is allowed to
85952         #undef these macros selectively.
85953
85954         (reg_errcode_t): Update comment stating what other tables need
85955         to be consistent.
85956
85957         Rename the following enum values to obey POSIX requirements.
85958         The old names are still visible as macros.
85959         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85960         is not defined, since GNU is supposed to be a superset of POSIX as
85961         much as possible, and since we want reg_errcode_t to be a signed
85962         type for implementation consistency.
85963         (_REG_NOERROR): Renamed from REG_NOERROR.
85964         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85965         (_REG_BADPAT): Renamed from REG_BADPAT.
85966         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85967         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85968         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85969         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85970         (_REG_EBRACK): Renamed from REG_EBRACK.
85971         (_REG_EPAREN): Renamed from REG_EPAREN.
85972         (_REG_EBRACE): Renamed from REG_EBRACE.
85973         (_REG_BADBR): Renamed from REG_BADBR.
85974         (_REG_ERANGE): Renamed from REG_ERANGE.
85975         (_REG_ESPACE): Renamed from REG_ESPACE.
85976         (_REG_BADRPT): Renamed from REG_BADRPT.
85977         (_REG_EEND): Renamed from REG_EEND.
85978         (_REG_ESIZE): Renamed from REG_ESIZE.
85979         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85980         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85981         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85982         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85983         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85984
85985         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85986         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85987         changed.  But support the old name if the new one is not defined
85988         and if _REGEX_SOURCE.
85989
85990         Change the following member names in struct re_pattern_buffer.
85991         The old names are still supported if !_REGEX_SOURCE.
85992         The new names are always supported, regardless of _REGEX_SOURCE.
85993         (re_buffer): Renamed from buffer.
85994         (re_allocated): Renamed from allocated.
85995         (re_used): Renamed from used.
85996         (re_syntax): Renamed from syntax.
85997         (re_fastmap): Renamed from fastmap.
85998         (re_translate): Renamed from translate.
85999         (re_can_be_null): Renamed from can_be_null.
86000         (re_regs_allocated): Renamed from regs_allocated.
86001         (re_fastmap_accurate): Renamed from fastmap_accurate.
86002         (re_no_sub): Renamed from no_sub.
86003         (re_not_bol): Renamed from not_bol.
86004         (re_not_eol): Renamed from not_eol.
86005         (re_newline_anchor): Renamed from newline_anchor.
86006
86007         Change the following member names in struct re_registers.
86008         The old names are still supported if !_REGEX_SOURCE.
86009         The new names are always supported, regardless of _REGEX_SOURCE.
86010         (rm_num_regs): Renamed from num_regs.
86011         (rm_start): Renamed from start.
86012         (rm_end): Renamed from end.
86013
86014         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86015         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86016         Prepend __ to parameter names.
86017
86018         Undo yesterday's changes.
86019
86020 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86023         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86024         lib/regex.c.
86025
86026 2005-08-24  Jim Meyering  <jim@meyering.net>
86027
86028         Sync from coreutils.
86029         * m4/fcntl-safer.m4: New file.
86030
86031         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86032         and object files for this module.
86033
86034 2005-08-24  Jim Meyering  <jim@meyering.net>
86035
86036         Sync from coreutils.
86037         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86038
86039 2005-08-24  Jim Meyering  <jim@meyering.net>
86040
86041         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86042         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86043
86044 2005-08-24  Jim Meyering  <jim@meyering.net>
86045
86046         * modules/fcntl-safer: New module.
86047         * modules/fts (Depends-on): Add fcntl-safer.
86048         * MODULES.html.sh (File descriptor based Input/Output):
86049         Add fcntl-safer.
86050
86051 2005-08-24  Bruno Haible  <bruno@clisp.org>
86052
86053         Support for unit test modules.
86054         * modules/README: Mention tests modules.
86055         * modules/TEMPLATE-TESTS: New file.
86056         * gnulib-tool: New options --extract-tests-module, --with-tests and
86057         --tests-base (unused for the moment).
86058         (testsbase, inctests): New variables.
86059         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86060         (func_verify_module): Exclude TEMPLATE-TESTS.
86061         (func_verify_nontests_module, func_verify_tests_module): New functions.
86062         (func_get_dependencies): Add implicit dependency for tests modules.
86063         (func_get_tests_module): New function.
86064         (func_modules_transitive_closure): When --with-tests was specified,
86065         include the unit tests as well, unless explicitly avoided.
86066         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86067         (func_emit_tests_Makefile_am): New function.
86068         (func_create_testdir): When --with-tests was specified, emit a
86069         tests/ directory.
86070         * MODULES.html.sh (Future developments): Update.
86071
86072 2005-08-24  Bruno Haible  <bruno@clisp.org>
86073
86074         * modules/tls-tests: New file.
86075         * tests/test-tls.c: New file, from GNU gettext.
86076
86077 2005-08-24  Bruno Haible  <bruno@clisp.org>
86078
86079         * modules/lock-tests: New file.
86080         * tests/test-lock.c: New file, from GNU gettext.
86081
86082 2005-08-24  Bruno Haible  <bruno@clisp.org>
86083
86084         * lib/lock.h: Add multiple inclusion guard.
86085         * lib/tls.h: Add multiple inclusion guard.
86086
86087 2005-08-24  Bruno Haible  <bruno@clisp.org>
86088
86089         * gnulib-tool: Add support for the --aux-dir option to
86090         --create-testdir, --create-megatestdir, --test, --megatest.
86091         (func_create_testdir, func_create_megatestdir): Optionally emit a
86092         AC_CONFIG_AUX_DIR directive.
86093         (create-testdir, create-megatestdir, test, megatest): Provide a
86094         default value for $auxdir.
86095
86096 2005-08-24  Bruno Haible  <bruno@clisp.org>
86097
86098         * gnulib-tool (import): Use compound statement instead of subshell
86099         where possible.
86100
86101 2005-08-24  Bruno Haible  <bruno@clisp.org>
86102
86103         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86104
86105 2005-08-24  Bruno Haible  <bruno@clisp.org>
86106
86107         * gnulib-tool (func_version): Update.
86108
86109 2005-08-24  Bruno Haible  <bruno@clisp.org>
86110
86111         * gnulib-tool (func_import, func_create_testdir,
86112         func_create_megatestdir): Quote all autoconf macro arguments.
86113
86114 2005-08-24  Bruno Haible  <bruno@clisp.org>
86115
86116         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86117         option --force, because --force causes the aclocal.m4 of each
86118         subdirectory to be newer than the corresponding config.h.in.
86119
86120 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86123         All contents moved to gl_REGEX.
86124         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86125         assume that it does.
86126
86127 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86128
86129         * lib/regex.h (REG_NOSYS)
86130         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86131         Define, since POSIX requires it as of 2001.
86132         (_REG_ENOSYS)
86133         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86134         New private symbol, used to keep the enum signed in all cases.
86135         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86136         Youngman in
86137         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86138
86139         * lib/regex_internal.c (re_string_skip_chars, register_state):
86140         (calc_state_hash):
86141         Remove forward decls; no longer needed now that we use prototypes.
86142         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86143         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86144         (clean_state_log_if_needed): Likewise.
86145
86146 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86147
86148         * config/srclist.txt: Add glibc bugs 1231-1233.
86149
86150 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         Fix problems reported by Sam Steingold in
86153         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86154         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86155         assumed that reg_errcode_t is a signed type, which is not
86156         necessarily true if _XOPEN_SOURCE is not defined.
86157         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86158         since some compilers warn about it otherwise.
86159
86160 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86163         (init_word_char, create_initial_state, duplicate_node_closure):
86164         (fetch_token, peek_token_bracket, build_range_exp):
86165         (build_collating_symbol): Remove forward decls; no longer needed
86166         now that we use prototypes.
86167
86168         * lib/regcomp.c:
86169         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86170         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86171         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86172         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86173         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86174         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86175         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86176         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86177         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86178         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86179         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86180         (build_charclass, build_charclass_op, fetch_number, create_tree):
86181         (create_token_tree, mark_opt_subexp, duplicate_tree):
86182         Use prototypes rather than old-style definitions.
86183
86184         * lib/regex_internal.c:
86185         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86186         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86187         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86188         (re_string_reconstruct, re_string_peek_byte_case):
86189         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86190         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86191         (re_node_set_init_copy, re_node_set_add_intersect):
86192         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86193         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86194         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86195         (re_acquire_state, re_acquire_state_context, register_state):
86196         (create_ci_newstate, create_cd_newstate, free_state):
86197         Likewise.
86198         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86199         re_search_2):
86200         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86201         (re_search_internal, prune_impossible_nodes):
86202         (acquire_init_state_context, check_matching, static):
86203         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86204         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86205         (update_regs, sift_states_backward, build_sifted_states):
86206         (clean_state_log_if_needed, merge_state_array):
86207         (update_cur_sifted_state, add_epsilon_src_nodes):
86208         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86209         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86210         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86211         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86212         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86213         (check_arrival, check_arrival_add_next_nodes):
86214         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86215         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86216         (check_node_accept_bytes, check_node_accept, extend_buffers):
86217         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86218         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86219         (sift_ctx_init):
86220         Likewise.
86221
86222         * lib/regex_internal.h:
86223         (re_string_allocate, re_string_construct, re_string_reconstruct):
86224         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86225         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86226         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86227         (re_string_context_at, re_string_peek_byte_case):
86228         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86229         is defined, since we now use prototypes always.
86230
86231         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86232         C89 or better.  All uses removed.
86233
86234 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86235
86236         * config/srclist.txt: Add glibc bugs 1220-1227.
86237
86238 2005-08-20  Jim Meyering  <jim@meyering.net>
86239
86240         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86241         of unused local, dfa.
86242
86243 2005-08-20  Bruno Haible  <bruno@clisp.org>
86244
86245         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86246
86247 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86250         (re_node_set_insert_last, re_dfa_add_node):
86251         Rename local variables to avoid GCC shadowing warnings.
86252
86253 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86256         [defined lint]: Suppress bogus uninitialized-variable warnings.
86257
86258         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86259         and let the caller return REG_ESPACE if out of space.  This
86260         removes an uninitialied-variable warning with GCC 4.0.1, and also
86261         avoids taking the address of a local variable.  All callers
86262         changed.
86263
86264 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86265
86266         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86267         $LIBCSRC/posix/regexec.c.
86268         Add glibc bug 1217 for regcomp.c.
86269
86270 2005-08-19  Jim Meyering  <jim@meyering.net>
86271
86272         * lib/regexec.c (proceed_next_node): Redo local variables to
86273         avoid GCC shadowing warnings.
86274
86275 2005-08-18  Bruno Haible  <bruno@clisp.org>
86276
86277         * lib/strstr.c (strstr): Fix return value in multibyte case.
86278         * lib/strcasestr.c (strcasestr): Likewise.
86279
86280 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86283
86284 2005-08-17  Jim Meyering  <jim@meyering.net>
86285
86286         Make the %s format (seconds since the epoch) work for a negative
86287         number and when used with a zero-padded field width, e.g. %015s.
86288
86289         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86290         label so that it precedes the code to set `digits'.  Otherwise,
86291         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86292         print `00-22'.  Now, it prints `-0022', as it should.
86293
86294 2005-08-17  Bruno Haible  <bruno@clisp.org>
86295
86296         * modules/strstr (Files): Add m4/mbrtowc.m4.
86297         (Depends-on): Add mbuiter.
86298
86299 2005-08-17  Bruno Haible  <bruno@clisp.org>
86300
86301         * modules/strcasestr: New file.
86302         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86303         strcasestr.
86304
86305 2005-08-17  Bruno Haible  <bruno@clisp.org>
86306
86307         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86308
86309 2005-08-17  Bruno Haible  <bruno@clisp.org>
86310
86311         * modules/mbuiter: New file.
86312         * MODULES.html.sh (Extended multibyte and wide character utilities):
86313         Add mbuiter.
86314
86315 2005-08-17  Bruno Haible  <bruno@clisp.org>
86316
86317         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86318         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86319
86320 2005-08-17  Bruno Haible  <bruno@clisp.org>
86321
86322         * m4/strcasestr.m4: New file.
86323
86324 2005-08-17  Bruno Haible  <bruno@clisp.org>
86325
86326         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86327         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86328
86329 2005-08-17  Bruno Haible  <bruno@clisp.org>
86330
86331         * lib/strcasestr.h: New file.
86332         * lib/strcasestr.c: New file.
86333
86334 2005-08-17  Bruno Haible  <bruno@clisp.org>
86335
86336         * lib/strcasecmp.c: Use mbuiter.h.
86337
86338 2005-08-17  Bruno Haible  <bruno@clisp.org>
86339
86340         * lib/mbuiter.h: New file.
86341
86342 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86343
86344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86345         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86346         and gl_GETOPT are both invoked via different paths (as happens
86347         with GNU tar CVS because it uses both argp and getopt), the former
86348         wins.
86349
86350 2005-08-16  Bruno Haible  <bruno@clisp.org>
86351
86352         * modules/tls: New file.
86353         * MODULES.html.sh (Multithreading): Add tls.
86354
86355 2005-08-16  Bruno Haible  <bruno@clisp.org>
86356
86357         * modules/strnlen1: New file.
86358         * MODULES.html.sh (String handling): Add strnlen1.
86359
86360 2005-08-16  Bruno Haible  <bruno@clisp.org>
86361
86362         * modules/strcase (Files): Add m4/mbrtowc.m4.
86363         (Depends-on): Add strnlen1, mbchar.
86364
86365 2005-08-16  Bruno Haible  <bruno@clisp.org>
86366
86367         * modules/mbiter: New file.
86368         * MODULES.html.sh (Extended multibyte and wide character utilities):
86369         Add mbiter.
86370
86371 2005-08-16  Bruno Haible  <bruno@clisp.org>
86372
86373         * modules/mbfile: New file.
86374         * MODULES.html.sh (Extended multibyte and wide character utilities):
86375         Add mbfile.
86376
86377 2005-08-16  Bruno Haible  <bruno@clisp.org>
86378
86379         * modules/mbchar: New file.
86380         * MODULES.html.sh (Extended multibyte and wide character utilities):
86381         New section.
86382
86383 2005-08-16  Bruno Haible  <bruno@clisp.org>
86384
86385         * m4/tls.m4: New file, from GNU gettext.
86386
86387 2005-08-16  Bruno Haible  <bruno@clisp.org>
86388
86389         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86390         always.
86391         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86392
86393 2005-08-16  Bruno Haible  <bruno@clisp.org>
86394
86395         * m4/mbiter.m4: New file.
86396
86397 2005-08-16  Bruno Haible  <bruno@clisp.org>
86398
86399         * m4/mbfile.m4: New file.
86400
86401 2005-08-16  Bruno Haible  <bruno@clisp.org>
86402
86403         * m4/mbchar.m4: New file.
86404
86405 2005-08-16  Bruno Haible  <bruno@clisp.org>
86406
86407         * lib/tls.h: New file, from GNU gettext.
86408         * lib/tls.c: New file, from GNU gettext.
86409
86410 2005-08-16  Bruno Haible  <bruno@clisp.org>
86411
86412         * lib/strnlen1.h: New file.
86413         * lib/strnlen1.c: New file.
86414
86415 2005-08-16  Bruno Haible  <bruno@clisp.org>
86416
86417         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86418         (mbi_init): Update.
86419         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86420         NUL byte, not after it.
86421
86422 2005-08-16  Bruno Haible  <bruno@clisp.org>
86423
86424         * lib/strcase.h (strcasecmp): Add note in comments.
86425         * lib/strncasecmp.c: Use code from strcasecmp.c.
86426         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86427         (strcasecmp): Work correctly in multibyte locales.
86428
86429 2005-08-16  Bruno Haible  <bruno@clisp.org>
86430
86431         * lib/mbiter.h: New file.
86432
86433 2005-08-16  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/mbfile.h: New file.
86436
86437 2005-08-16  Bruno Haible  <bruno@clisp.org>
86438
86439         * lib/mbchar.h: New file.
86440         * lib/mbchar.c: New file.
86441
86442 2005-08-16  Bruno Haible  <bruno@clisp.org>
86443
86444         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86445         the valid ones. Makes the comparison operations transitive:
86446         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86447         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86448
86449 2005-08-15  Simon Josefsson  <jas@extundo.com>
86450
86451         * modules/ssize_t (License): Change to 'unlimited'.
86452
86453         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86454
86455 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86456
86457         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86458         Add comments for each pending glibc patch.
86459
86460 2005-08-15  Bruno Haible  <bruno@clisp.org>
86461
86462         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86463         __cplusplus is defined.
86464
86465 2005-08-14  Jim Meyering  <jim@meyering.net>
86466
86467         Sync from coreutils.
86468
86469         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86470         Use the hash-table-based cycle-detection code not just when
86471         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86472         Reported by James Youngman in
86473         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86474         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86475         FTS_TIGHT_CYCLE_CHECK.
86476         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86477         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86478         once again.
86479         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86480         * lib/fts.c (fd_safer): Remove decl.
86481         Include fcntl--.h rather than unistd-safer.h
86482         (fts_safe_changedir): Don't call fd_safer; no longer needed
86483         now that we include fcntl--.h.
86484
86485 2005-08-12  Simon Josefsson  <jas@extundo.com>
86486
86487         * modules/getndelim2: Use ssize_t module.
86488         * modules/getnline: Likewise.
86489         * modules/safe-read: Likewise.
86490         * modules/xreadlink: Likewise.
86491
86492         * modules/ssize_t: New file.
86493
86494 2005-08-12  Simon Josefsson  <jas@extundo.com>
86495
86496         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86497
86498 2005-08-12  Simon Josefsson  <jas@extundo.com>
86499
86500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86501         ssize_t.
86502
86503 2005-08-12  Simon Josefsson  <jas@extundo.com>
86504
86505         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86506         readline, getdelim and check_version.
86507         (Support for systems lacking ISO C 99: Sizes of integer types):
86508         Add size_max.
86509
86510 2005-08-12  Bruno Haible  <bruno@clisp.org>
86511
86512         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86513
86514 2005-08-11  Simon Josefsson  <jas@extundo.com>
86515
86516         * modules/readline: New file.
86517
86518         * modules/strnlen (Files): Add strnlen.h.
86519
86520 2005-08-11  Simon Josefsson  <jas@extundo.com>
86521
86522         * m4/readline.m4: New file.
86523
86524 2005-08-11  Simon Josefsson  <jas@extundo.com>
86525
86526         * lib/readline.h, readline.c: New file.
86527
86528 2005-08-11  Simon Josefsson  <jas@extundo.com>
86529
86530         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86531         gl_AVOID.
86532
86533 2005-08-11  Bruno Haible  <bruno@clisp.org>
86534
86535         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86536
86537 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86538
86539         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86540
86541 2005-08-10  Simon Josefsson  <jas@extundo.com>
86542
86543         * tests/test-iconvme.c: New file.
86544
86545 2005-08-10  Simon Josefsson  <jas@extundo.com>
86546
86547         * m4/strnlen.m4: New file.
86548
86549         * m4/strndup.m4: Don't check for strnlen declaration, done in
86550         strnlen.m4.
86551
86552 2005-08-10  Simon Josefsson  <jas@extundo.com>
86553
86554         * lib/strndup.c: Use strnlen.h.
86555
86556         * lib/strnlen.h: New file.
86557
86558 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86559
86560         * README: Typos.
86561
86562 2005-08-02  Simon Josefsson  <jas@extundo.com>
86563
86564         * modules/readline: New file.
86565
86566 2005-08-02  Simon Josefsson  <jas@extundo.com>
86567
86568         * modules/getdelim: New file.
86569
86570         * modules/getline: Rewrite, don't use getndelim2.
86571
86572 2005-08-02  Simon Josefsson  <jas@extundo.com>
86573
86574         * m4/getline.m4: Separate out getdelim stuff into separate module.
86575
86576         * m4/getdelim.m4: New file.
86577
86578 2005-08-02  Simon Josefsson  <jas@extundo.com>
86579
86580         * lib/getline.h, getline.c: Rewrite.
86581
86582         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86583
86584 2005-07-31  Bruno Haible  <bruno@clisp.org>
86585
86586         * lib/lock.h (gl_lock_initializer): New macro.
86587         (gl_lock_define_initialized): Use it.
86588         (gl_rwlock_initializer): New macro.
86589         (gl_rwlock_define_initialized): Use it.
86590         (gl_recursive_lock_initializer): New macro.
86591         (gl_recursive_lock_define_initialized): Use it.
86592
86593 2005-07-30  Karl Berry  <karl@gnu.org>
86594
86595         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86596         Report from Ben Pfaff, regarding getopt.
86597
86598 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86599
86600         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86601         normal way.
86602         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86603         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86604         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86605         (gl_GETOPT): Use the new macros.  Most of the implementation
86606         is moved to the new macros.  This is for programs like Emacs
86607         that don't want all the functionality of gl_GETOPT.
86608
86609 2005-07-26  Bruno Haible  <bruno@clisp.org>
86610
86611         * m4/lock.m4: Update from GNU gettext.
86612
86613 2005-07-26  Bruno Haible  <bruno@clisp.org>
86614
86615         * lib/lock.h: Update from GNU gettext.
86616         * lib/lock.c: Update from GNU gettext.
86617
86618 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86621         obsolescent AC_TRY_RUN.  Include the default includes files, for
86622         'exit'.
86623
86624 2005-07-24  Bruno Haible  <bruno@clisp.org>
86625
86626         * modules/visibility: New file.
86627         * MODULES.html.sh (Misc): Add visibility.
86628
86629 2005-07-24  Bruno Haible  <bruno@clisp.org>
86630
86631         * m4/visibility.m4: New file.
86632
86633 2005-07-24  Bruno Haible  <bruno@clisp.org>
86634
86635         * doc/visibility.texi: New file.
86636
86637 2005-07-22  Bruno Haible  <bruno@clisp.org>
86638
86639         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86640         $(ALLOCA_H), redundant through BUILT_SOURCES.
86641         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86642         redundant through BUILT_SOURCES.
86643         * modules/byteswap (Makefile.am): Remove explicit dependency on
86644         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86645         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86646         $(FNMATCH_H), redundant through BUILT_SOURCES.
86647         * modules/getopt (Makefile.am): Remove explicit dependency on
86648         $(GETOPT_H), redundant through BUILT_SOURCES.
86649         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86650         redundant through BUILT_SOURCES.
86651         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86652         redundant through BUILT_SOURCES.
86653         * modules/stdbool (Makefile.am): Remove explicit dependency on
86654         $(STDBOOL_H), redundant through BUILT_SOURCES.
86655         * modules/stdint (Makefile.am): Remove explicit dependency on
86656         $(STDINT_H), redundant through BUILT_SOURCES.
86657         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86658         Remove explicit dependency on $(SYSEXITS_H).
86659         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86660
86661 2005-07-18  Simon Josefsson  <jas@extundo.com>
86662
86663         * lib/check-version.c (check_version): Accept identical versions too.
86664
86665 2005-07-18  Bruno Haible  <bruno@clisp.org>
86666
86667         * modules/lock: New file.
86668         * MODULES.html.sh (Multithreading): New section.
86669
86670 2005-07-18  Bruno Haible  <bruno@clisp.org>
86671
86672         * m4/lock.m4: New file, from GNU gettext.
86673
86674 2005-07-18  Bruno Haible  <bruno@clisp.org>
86675
86676         * lib/lock.h: New file, from GNU gettext.
86677         * lib/lock.c: New file, from GNU gettext.
86678
86679 2005-07-18  Bruno Haible  <bruno@clisp.org>
86680
86681         * lib/lock.h (gl_once_t): New type.
86682         (gl_once_define, gl_once): New macros.
86683         * lib/lock.c (fresh_once): New variable.
86684         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86685         functions.
86686
86687 2005-07-16  Simon Josefsson  <jas@extundo.com>
86688
86689         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86690         workaround, suggested by Bruno.
86691
86692 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86693
86694         * modules/xalloc (Depends-on): Add xalloc-die.
86695         * modules/xvasprintf (Depends-on): Add xalloc-die.
86696
86697 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86698
86699         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86700         with a minor change.
86701
86702 2005-07-15  Bruno Haible  <bruno@clisp.org>
86703
86704         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86705         When using lib/poll.c, define poll as rpl_poll.
86706
86707 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86708
86709         * modules/argp (Depends-on): Remove unlocked-io.
86710
86711 2005-07-14  Derek Price  <derek@ximbiot.com>
86712
86713         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86714         for glob symlink bug.
86715
86716 2005-07-14  Bruno Haible  <bruno@clisp.org>
86717
86718         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86719         Instead, test for *_unlocked function declarations directly.
86720
86721 2005-07-11  Simon Josefsson  <jas@extundo.com>
86722
86723         * modules/size_max: New file.
86724
86725         * modules/xsize: Depend on size_max module for size_max.m4.
86726
86727 2005-07-11  Simon Josefsson  <jas@extundo.com>
86728
86729         * lib/size_max.h: New file.
86730
86731 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86732
86733         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86734         copyright symbol and the year.
86735         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86736         (version_etc_va): Use parameterized copyright notice.
86737         Reword to conform to the current GNU coding standards.
86738
86739 2005-07-11  Karl Berry  <karl@gnu.org>
86740
86741         * doc/gnulib.texi (Quoting): new node.
86742         (Initial import): more info, from Patrice.
86743
86744 2005-07-11  Bruno Haible  <bruno@clisp.org>
86745
86746         * gnulib-tool (func_usage): Document option --avoid.
86747         (Command line options): Handle --avoid.
86748         (func_acceptable): New function.
86749         (func_modules_transitive_closure): Use it.
86750
86751 2005-07-11  Bruno Haible  <bruno@clisp.org>
86752
86753         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86754         Reported by Jim Meyering.
86755
86756 2005-07-10  Bruno Haible  <bruno@clisp.org>
86757
86758         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86759         Needed when size_t is smaller than 'unsigned int'.
86760         Reported by Paul Eggert.
86761
86762 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86763
86764         * modules/argp (Depends-on): Add unlocked-io
86765
86766 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86767
86768         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86769         block of defines.
86770
86771 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86772
86773         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86774         fix now.
86775
86776 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86777         and Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86780         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86781
86782 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86783
86784         * modules/regex (Files): Add lib/regex_internal.c,
86785         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86786         (Depends-on): Add extensions.
86787         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86788
86789 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86790
86791         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86792         pathconf.
86793         * m4/same.m4 (gl_SAME): Likewise.
86794         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86795
86796         * m4/regex.m4: Adjust to new libc regex implementation.
86797         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86798         all the .c and .h parts of (the new) regex.
86799         Quote the m4 stuff better.
86800         Check for RE_ICASE bug of old gnulib.
86801         Check for REG_STARTEND of recent libc.
86802         Rename local variables from jm_* to gl_*.
86803         Quote operand of "test -f".
86804         Say "recent enough" version of libc, not "version 2".
86805         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86806         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86807         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86808         Remove check for btowc, isascii.
86809         Require AM_LANGINFO_CODESET.
86810
86811 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         * lib/regex.c, regex.h: Sync from libc.
86814         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86815         * lib/regexec.c:
86816         New files, synced from libc, except that regex_internal.h
86817         currently has a small porting fix.
86818
86819 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86820
86821         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86822         regex_internal.c, regexec.c.
86823         Add regex_internal.h too, but as a comment, since the libc version
86824         is currently broken in gnulib mode.
86825
86826 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86827
86828         Support programs like Emacs that use gnulib but not gettext.
86829         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86830         * modules/gettext-h: New file.
86831         * modules/gettext (Files): Remove lib/gettext.h.
86832         (Depends-on): Add gettext-h.
86833         (Makefile.am): Remove lib_SOURCES.
86834         * modules/argmatch, modules/c-stack, modules/closeout:
86835         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86836         * modules/execute, modules/file-type, modules/getaddrinfo:
86837         * modules/getopt, modules/human, modules/javacomp:
86838         * modules/javaexec, modules/mkdir-p, modules/obstack:
86839         * modules/openat, modules/pagealign_alloc, modules/pipe:
86840         * modules/quotearg, modules/regex, modules/rpmatch:
86841         * modules/unicodeio, modules/userspec, modules/version-etc:
86842         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86843         * modules/xsetenv:
86844         Depend on gettext-h, not gettext.
86845
86846 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86847
86848         * gnulib-tool (func_import): Add support for 'public domain' license.
86849         * modules/alloca, modules/atexit, modules/memmove:
86850         Now public domain, not GPL.
86851         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86852         * modules/realloc, modules/strerror, modules/strtod:
86853         Now LGPL, not GPL.
86854
86855 2005-07-05  Bruno Haible  <bruno@clisp.org>
86856
86857         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86858         autoconf CVS. Needed for mingw.
86859
86860 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86861
86862         Remove the dependency of the strftime module on the tzset module.
86863         * modules/strftime (Depends-on): Remove dependency on tzset.
86864
86865 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86866
86867         Remove the dependency of the strftime module on the tzset module.
86868         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86869         gl_FUNC_TZSET_CLOBBER.
86870
86871 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         Remove the dependency of the strftime module on the tzset module.
86874         * lib/strftime.c (my_strftime)
86875         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86876         Copy the input structure, to work around some of the bug with
86877         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86878         Solaris releases, you should also use the tzset module, but we won't
86879         require it as a dependency any more since we don't want LGPLed code
86880         to depend on GPLed code.
86881
86882 2005-07-02  Jim Meyering  <jim@meyering.net>
86883
86884         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86885         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86886         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86887         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86888
86889 2005-07-02  Jim Meyering  <jim@meyering.net>
86890
86891         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86892
86893 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86894
86895         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86896         declares only 'struct timespec;' (!).
86897
86898 2005-07-01  Jim Meyering  <jim@meyering.net>
86899
86900         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86901         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86902         * lib/save-cwd.c, tempname.c:
86903         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86904         and don't include <sys/file.h>).
86905
86906 2005-06-29  Jim Meyering  <jim@meyering.net>
86907
86908         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86909         type name.  Use the variable name instead.
86910         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86911         Likewise.
86912
86913 2005-06-28  Simon Josefsson  <jas@extundo.com>
86914
86915         * modules/check-version (Files): Add check-version.m4.
86916
86917 2005-06-28  Simon Josefsson  <jas@extundo.com>
86918
86919         * m4/check-version.m4: New file, suggested by Jim Meyering
86920         <jim@meyering.net>.
86921
86922 2005-06-28  Simon Josefsson  <jas@extundo.com>
86923
86924         * lib/check-version.h, lib/check-version.c: New files.
86925
86926 2005-06-28  Simon Josefsson  <jas@extundo.com>
86927
86928         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86929         collision with global variable.  Better indentation.  Don't
86930         increment buffer pointer beyond buffer end.  Based on comments
86931         from Paul Eggert <eggert@cs.ucla.edu>.
86932
86933         * lib/base64.h: Indent.
86934
86935 2005-06-28  Simon Josefsson  <jas@extundo.com>
86936
86937         * doc/gnulib.texi (Library version handling): New section.
86938
86939 2005-06-28  Jim Meyering  <jim@meyering.net>
86940
86941         * check-module (find_included_lib_files): Hard-code another
86942         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86943         but modules/fts-lgpl (correctly) does not list those files.
86944
86945         * modules/canonicalize (Files): Add lib/pathmax.h.
86946
86947 2005-06-25  Simon Josefsson  <jas@extundo.com>
86948
86949         * modules/check-version: New file.
86950
86951 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86952
86953         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86954         initializer of struct addrinfo, as an indication that we don't
86955         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86962         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86963         * m4/stat.m4: Remove this file.
86964
86965 2005-06-24  Derek Price  <derek@ximbiot.com>
86966         and Bruno Haible  <bruno@clisp.org>
86967
86968         Remove stat module & update lstat.
86969         * lib/stat.c: Remove this file...
86970         (slash_aware_lstat): ...moving this content and its support...
86971         * lib/lstat.c (rpl_lstat): ...into here.
86972         * lib/lstat.h: New file.
86973
86974 2005-06-24  Derek Price  <derek@ximbiot.com>
86975         and Bruno Haible  <bruno@clisp.org>
86976
86977         Remove stat module & update lstat.
86978         * config/srclist.txt (libc sources): Remove stat.
86979
86980 2005-06-24  Derek Price  <derek@ximbiot.com>
86981         and Bruno Haible  <bruno@clisp.org>
86982
86983         Remove stat module & update lstat.
86984         * MODULES.html.sh (stat): Remove.
86985         * MODULES.html: Regenerated.
86986         * modules/lstat (Description): Correct function name.
86987         (Files): Add "lstat.h".
86988         (Depends-on): Remove stat, add xalloc, stat-macros.
86989         * modules/stat: Remove this file.
86990         (Include): Add "lstat.h", remove <sys/stat.h>.
86991
86992 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86995         (ranged_convert): Don't save conversion in a temporary struct.
86996         This causes a warning with GCC 4.0.0, and anyway in the typical
86997         case it's not worth the extra 100 bytes or so of code.
86998         (ranged_convert, __mktime_internal): When calling a function via a
86999         pointer P, use P () rather than (*P) (), as we now assume C89 or
87000         better.
87001
87002 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87003
87004         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87005         "who -r" failed to give output.  Problem reported by Tim Waugh.
87006
87007         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87008         (xcalloc): Use it to avoid needless tests.
87009         Problem reported by Jim Meyering.
87010
87011 2005-06-20  Derek Price  <derek@ximbiot.com>
87012
87013         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87014         unnecessary for Autoconfs > 2.59c.
87015
87016 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87017
87018         * lib/argp.h (__option_is_short): Check upper limit of
87019         __key. Isprint() requires its argument to have the value
87020         of an unsigned char or EOF.
87021
87022 2005-06-16  Jim Meyering  <jim@meyering.net>
87023
87024         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87025         when either N or S is zero.
87026
87027 2005-06-16  Derek Price  <derek@ximbiot.com>
87028
87029         * m4/bison.m4: Declare YACC & YFLAGS precious.
87030
87031 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87032
87033         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87034         multibyte string or pattern, fall back on unibyte matching.
87035         Problem reported by James Youngman.
87036
87037 2005-06-08  Bruno Haible  <bruno@clisp.org>
87038
87039         * modules/csharpcomp: New file.
87040         * MODULES.html.sh (C#): Add csharpcomp.
87041
87042 2005-06-08  Bruno Haible  <bruno@clisp.org>
87043
87044         * m4/csharpcomp.m4: New file, from GNU gettext.
87045
87046 2005-06-08  Bruno Haible  <bruno@clisp.org>
87047
87048         * lib/csharpcomp.h: New file, from GNU gettext.
87049         * lib/csharpcomp.c: New file, from GNU gettext.
87050         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87051
87052 2005-06-08  Bruno Haible  <bruno@clisp.org>
87053
87054         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87055         warning on mingw.
87056
87057 2005-06-07  Derek Price  <derek@ximbiot.com>
87058
87059         Sync from CVS.
87060         * lib/glob_.h: Indent nested #ifdef.
87061
87062 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87063
87064         Sync from coreutils.
87065         Use "file name" when talking about file names, instead of "filename"
87066         or "path", as per the GNU coding standards.
87067         * lib/mkdir-p.c: Renamed from makepath.c.
87068         (make_dir_parents): Renamed from make_path.  All callers changed.
87069         * lib/mkdir-p.h: Likewise.  All includers changed.
87070         * lib/filenamecat.c: Renamed from path-concat.c.
87071         (file_name_concat): Renamed from path_concat.  All callers changed.
87072         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87073         * lib/filenamecat.h: Likewise.  All includers changed.
87074         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87075         in comments or local variable names.
87076         * lib/basename.c: Likewise.
87077         * lib/canonicalize.c, canonicalize.h: Likewise.
87078         * lib/dirname.c, dirname.h: Likewise.
87079         * lib/euidaccess.c: Likewise.
87080         * lib/exclude.c: Likewise
87081         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87082         * lib/fsusage.c, fsuage.h: Likewise.
87083         * lib/fts.c, fts_.h: Likewise.
87084         * lib/getcwd.c: Likewise.
87085         * lib/getloadavg.c: Likewise.
87086         * lib/mkstemp.c: Likewise.
87087         * lib/mountlist.c, mountlist.h: Likewise.
87088         * lib/openat.c, openat.h: Likewise.
87089         * lib/readlink-stub.c: Likewise.
87090         * lib/readutmp.c, readutmp.h: Likewise.
87091         * lib/rename.c: Likewise.
87092         * lib/rmdir.c: Likewise.
87093         * lib/same.c: Likewise.
87094         * lib/savedir.c: Likewise.
87095         * lib/stripslash.c: Likewise.
87096         * lib/tempname.c: Likewise.
87097         * lib/xreadlink.c: Likewise.
87098         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87099         All uses changed.
87100         * lib/exclude.h: Likewise.
87101
87102         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87103         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87104         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87105         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87106         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87107         files have been getting away with it for years (MORE/BSD 4.3
87108         is extinct now).
87109         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87110         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87111
87112         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87113         Define to 256, not 255, as per modern POSIX.
87114
87115 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87116
87117         Sync from coreutils.
87118         Use "file name" when talking about file names, instead of "filename"
87119         or "path", as per the GNU coding standards.
87120         * MODULES.html.sh: mkdir-p renamed from makepath.
87121         filenamecat renamed from path-concat.
87122         * modules/filenamecat: Renamed from modules/path-concat.
87123         (Files): filenamecat.h and filenamecat.c renamed from
87124         path-concat.h and path-concat.c.
87125         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87126         (Include): filenamecat.h, not path-concat.h.
87127         * modules/mkdir-p: Renamed from modules/makepath.
87128         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87129         makepath.c.
87130         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87131         (Include): mkdir-p.h, not makepath.h.
87132
87133 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87134
87135         Sync from coreutils.
87136         * m4/mkdir-p.m4: Renamed from makepath.m4.
87137         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87138         Rename files from makepath.c to mkdir-p.c, and from
87139         makepath.h to mkdir-p.h.
87140         * m4/filenamecat.m4: Renamed from path-concat.m4.
87141         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87142         Rename files from path-concat.c to filenamecat.c,
87143         and from path-concat.h to filenamecat.h.
87144         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87145         "file name" in local variables or comments.
87146         * m4/rename.m4: Likewise.
87147
87148 2005-06-01  Bruno Haible  <bruno@clisp.org>
87149
87150         * modules/csharpexec: New file.
87151         * MODULES.html.sh (C#): New section.
87152
87153 2005-06-01  Bruno Haible  <bruno@clisp.org>
87154
87155         * m4/csharp.m4: New file, from GNU gettext.
87156         * m4/csharpexec.m4: New file, from GNU gettext.
87157
87158 2005-06-01  Bruno Haible  <bruno@clisp.org>
87159
87160         * lib/csharpexec.h: New file, from GNU gettext.
87161         * lib/csharpexec.c: New file, from GNU gettext.
87162         * lib/csharpexec.sh.in: New file, from GNU gettext.
87163
87164 2005-05-31  Derek Price  <derek@ximbiot.com>
87165             Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         Sync from cvs.
87168         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87169
87170 2005-05-31  Derek Price  <derek@ximbiot.com>
87171             Paul Eggert  <eggert@cs.ucla.edu>
87172
87173         Sync from cvs.
87174         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87175
87176 2005-05-29  Derek Price  <derek@ximbiot.com>
87177
87178         * config/srclist.txt (glob_.h, glob.c): Add these files.
87179
87180 2005-05-29  Derek Price  <derek@ximbiot.com>
87181
87182         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87183         * modules/glob: New file.
87184         * modules/getlogin_r: Add link to POSIX spec in description.
87185
87186 2005-05-29  Derek Price  <derek@ximbiot.com>
87187             Paul Eggert  <eggert@cs.ucla.edu>
87188
87189         * m4/glob.m4: New file.
87190
87191 2005-05-29  Derek Price  <derek@ximbiot.com>
87192             Paul Eggert  <eggert@cs.ucla.edu>
87193
87194         * lib/glob_.h, lib/glob.c: New files.
87195
87196 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87197
87198         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87199         * modules/fts-lgpl (Depends-on): Remove gettext.
87200
87201 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87202
87203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87204         and don't require gt_INTTYPES_PRI.
87205
87206 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87207
87208         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87209
87210         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87211         the configuration hassle isn't worth it.
87212         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87213         (LONGEST_MODIFIER, PRIuMAX): Remove.
87214
87215 2005-05-27  Bruno Haible  <bruno@clisp.org>
87216
87217         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87218
87219 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87220
87221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87222         _POSIX_PTHREAD_SEMANTICS for Solaris.
87223
87224 2005-05-25  Derek Price  <derek@ximbiot.com>
87225
87226         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87227
87228 2005-05-25  Derek Price  <derek@ximbiot.com>
87229             Paul Eggert  <eggert@cs.ucla.edu>
87230
87231         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87232         * lib/getlogin_r.c, getlogin_r.h: New files.
87233
87234 2005-05-25  Bruno Haible  <bruno@clisp.org>
87235             Derek Price  <derek@ximbiot.com>
87236
87237         * lib/getlogin_r.h: Simplify API documentation.
87238
87239 2005-05-23  Derek Price  <derek@ximbiot.com>
87240
87241         * modules/minmax (Files): Add m4/minmax.m4.
87242         (configure.ac): Add gl_MINMAX.
87243
87244 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87245
87246         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87247         so that unistd-safer.h (GPL'ed code) need not be included.
87248
87249 2005-05-22  Bruno Haible  <bruno@clisp.org>
87250
87251         * m4/minmax.m4: New file.
87252         Based on a patch by Derek Price <derek@ximbiot.com>.
87253
87254 2005-05-22  Bruno Haible  <bruno@clisp.org>
87255
87256         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87257         (INT64_MIN): Fix definition.
87258         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87259
87260         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87261         NEED_SIGNED_INT_TYPES.
87262
87263         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87264         HAVE_SYSTEM_INTTYPES.
87265
87266 2005-05-22  Bruno Haible  <bruno@clisp.org>
87267
87268         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87269         Also include <sys/param.h> if it defines MIN, MAX.
87270         Based on a patch by Derek Price <derek@ximbiot.com>.
87271
87272 2005-05-21  Jim Meyering  <jim@meyering.net>
87273
87274         * modules/fts (Files): Add m4/inttypes-pri.m4.
87275         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87276
87277 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87278
87279         New fts module.
87280         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87281         (setup_dir, free_dir): New functions.
87282         (enter_dir, leave_dir): Define trivial
87283         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87284         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87285         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87286         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87287         Move to fts-cycle.c.
87288         (fts_open): Use setup_dir.
87289         (fts_close): Use free_dir.
87290         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87291         This adds a label and some gotos, but the alternatives were messier.
87292         Check for memory allocation failure when entering a dir.
87293         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87294         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87295         (FTS): New member fts_cycle, that is a union that contains the
87296         old active_dir_ht and cycle_state.  All uses changed to mention
87297         fts_cycle.ht and fts_cycle.state.
87298         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87299         fts.c, with the following changes:
87300         (setup_dir, free_dir): New functions.
87301         (enter_dir): Now returns bool.  Return true if successful, false
87302         if memory exhausted.  All callers changed.
87303         Do not bother partly cleaning up on
87304         memory allocation failure; that is free_dir's job.
87305         However, free ad if hash_insert fails, to avoid memory leak.
87306         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87307         fts->fts_options to see which union member to use.
87308
87309 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87310
87311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87312         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87313
87314 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87317
87318 2005-05-20  Jim Meyering  <jim@meyering.net>
87319
87320         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87321         Now a macro, to pacify GCC.
87322
87323 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87324
87325         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87326         of -1.
87327
87328 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87329
87330         * lib/chown.c (rpl_chown): Return -1 on failure.
87331
87332 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87333
87334         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87335         Don't check for stddef.h.
87336         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87337         don't use its results.
87338         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87339         since we include them unconditionally.  Don't require
87340         AM_STDBOOL_H, since stdbool is a prerequisite.
87341         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87342         since we assume C89 or better.
87343         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87344         as we don't use their results.
87345         Don't check for fchdir, memmove, memset, strrchr, as we use
87346         them unconditionally.
87347         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87348         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87349
87350 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87351
87352         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87353         Include <stddef.h> unconditionally, since we assume C89 now.
87354         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87355         * lib/fts.c: Include fts_.h first, to check interface.
87356         Do not include intprops.h; no longer needed.
87357         Include cycle-check.h and hash.h, since fts_.h no longer does.
87358         Remove unnecessary casts of closedir to void.
87359         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87360         decide whether to decrement nlinks.
87361         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87362         (FTS): Use struct hash_table * instead of Hash_table, so that
87363         we no longer need to include hash.h here.
87364
87365 2005-05-18  Jim Meyering  <jim@meyering.net>
87366
87367         * modules/dirfd (License): Change to LGPL.  Most of the code
87368         is already in the public domain.
87369
87370 2005-05-18  Jim Meyering  <jim@meyering.net>
87371
87372         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87373         Reported by Yoann Vandoorselaere.
87374
87375 2005-05-17  Jim Meyering  <jim@meyering.net>
87376
87377         * m4/fts.m4: New file, from coreutils.
87378
87379 2005-05-17  Jim Meyering  <jim@meyering.net>
87380
87381         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87382
87383 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87384
87385         Sync from coreutils.
87386         * m4/unlinkdir.m4: New file.
87387
87388 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87389
87390         Sync from coreutils.
87391         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87392         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87393         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87394         White space changes only.
87395         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87396         special.
87397         * lib/yesno.c: Include getline.h, not ctype.h.
87398         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87399         Use getline to remove arbitrary restriction on response length.
87400
87401 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87402
87403         * config/srclist-update: Spell out "Street" in FSF postal
87404         mail address; this is the style the FSF seems to prefer.
87405
87406         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87407         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87408         this updates FSF postal mail address.
87409
87410         Sync from coreutils.
87411         * modules/unlinkdir: New file.
87412         * modules/yesno (Depends-on): Add getline.
87413         * MODULES.html.sh (File system functions): Add unlinkdir.
87414
87415 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87416
87417         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87418         lib/strsep.h:
87419         Change the initial comment to refer to GPL, not LGPL.
87420         gnulib-tool will change it to LGPL as needed.
87421
87422         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87423         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87424         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87425         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87426         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87427         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87428         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87429         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87430         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87431         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87432         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87433         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87434         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87435         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87436         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87437         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87438         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87439         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87440         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87441         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87442         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87443         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87444         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87445         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87446         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87447         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87448         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87449         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87450         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87451         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87452         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87453         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87454         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87455         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87456         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87457         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87458         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87459         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87460         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87461         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87462         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87463         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87464         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87465         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87466         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87467         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87468         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87469         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87470         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87471         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87472         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87473         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87474         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87475         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87476         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87477         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87478         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87479         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87480         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87481         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87482         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87483         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87484         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87485         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87486         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87487         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87488         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87489         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87490         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87491         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87492         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87493         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87494         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87495         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87496         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87497         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87498         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87499         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87500         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87501         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87502         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87503         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87504         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87505         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87506         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87507         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87508         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87509         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87510         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87511         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87512         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87513         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87514         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87515         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87516         lib/yesno.c, lib/yesno.h:
87517         Update FSF postal mail address.
87518
87519 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87522         tests/test-memmem.c, tests/test-stpncpy.c:
87523         Update FSF postal mail address.
87524
87525 2005-05-13  Bruno Haible  <bruno@clisp.org>
87526
87527         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87528         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87529         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87530         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87531         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87532         Add support for 64-bit integers in the MSVC compiler.
87533
87534 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87535
87536         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87537
87538 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87539
87540         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87541
87542 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87543
87544         * doc/getdate.texi (General date syntax): Don't say that date
87545         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87546         Problem reported by Nic Ferrier.
87547
87548 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87549
87550         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87551         specified in ai_socktype. Fix invalid ai_protocol
87552         check. ai_protocol is usually set to 0 or depending on
87553         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87554         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87555         ai_socktype / ai_protocol in the returned addrinfo structure.
87556
87557 2005-05-10  Simon Josefsson  <jas@extundo.com>
87558
87559         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87560         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87561
87562 2005-05-10  Karl Berry  <karl@gnu.org>
87563
87564         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87565         (from http://www.gnu.org/licenses).
87566         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87567         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87568         fdl.texi suffices.
87569
87570 2005-05-10  Karl Berry  <karl@gnu.org>
87571
87572         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87573         (COPYING.DOC): remove.
87574
87575         * config/srclist-update: new FSF address.
87576
87577 2005-05-10  Derek Price  <derek@ximbiot.com>
87578
87579         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87580         possible.
87581
87582 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87583             Bruno Haible  <bruno@clisp.org>
87584
87585         * modules/inet_ntop: New file.
87586         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87587         inet_ntop.
87588
87589 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87590             Bruno Haible  <bruno@clisp.org>
87591
87592         * m4/inet_ntop.m4: New file.
87593
87594 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87595             Bruno Haible  <bruno@clisp.org>
87596
87597         * lib/inet_ntop.h: New file.
87598         * lib/inet_ntop.c: New file, from glibc with modifications.
87599
87600 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87601
87602         * modules/time_r (License): Change to LGPL.
87603         * modules/extensions (License): Change to LGPL.  Actually,
87604         the license is more permissive than that, but currently gnulib-tool
87605         doesn't know how to handle more-permissive licenses.
87606
87607         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87608         Problem reported by Dave Love.
87609
87610 2005-05-08  Jim Meyering  <jim@meyering.net>
87611
87612         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87613         blank.
87614
87615 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87616
87617         * modules/argmatch (Depends-on): Add stdbool.
87618         * modules/backupfile (Depends-on): Likewise.
87619         * modules/chdir-long (Depends-on): Likewise.
87620         * modules/closeout (Depends-on): Likewise.
87621         * modules/cycle-check (Depends-on): Likewise.
87622         * modules/dirname (Depends-on): Likewise.
87623         * modules/fnmatch (Depends-on): Likewise.
87624         * modules/fsusage (Depends-on): Likewise.
87625         * modules/fwriteerror (Depends-on): Likewise.
87626         * modules/getcwd (Depends-on): Likewise.
87627         * modules/getloadavg (Depends-on): Likewise.
87628         * modules/hard-locale (Depends-on): Likewise.
87629         * modules/makepath (Depends-on): Likewise.
87630         * modules/mountlist (Depends-on): Likewise.
87631         * modules/nanosleep (Depends-on): Likewise.
87632         * modules/posixtm (Depends-on): Likewise.
87633         * modules/quotearg (Depends-on): Likewise.
87634         * modules/readtokens (Depends-on): Likewise.
87635         * modules/readtokens0 (Depends-on): Likewise.
87636         * modules/readutmp (Depends-on): Likewise.
87637         * modules/save-cwd (Depends-on): Likewise.
87638         * modules/strftime (Depends-on): Likewise.
87639         * modules/userspec (Depends-on): Likewise.
87640         * modules/utimecmp (Depends-on): Likewise.
87641         * modules/xgetcwd (Depends-on): Likewise.
87642         * modules/xnanosleep (Depends-on): Likewise.
87643         * modules/xstrtod (Depends-on): Likewise.
87644         * modules/yesno (Depends-on): Likewise.
87645
87646 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87647
87648         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87649         needless checks.
87650
87651 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87652
87653         Merge from coreutils.  Among other things,
87654         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87655         * lib/fd-safer.c: New file.
87656         * lib/fcntl-safer.h, open-safer.c: Remove.
87657         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87658         * lib/dup-safer.c: Include unistd-safer.h first.
87659         Don't include errno.h.
87660         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87661         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87662         * lib/file-type.c: Rely on file-type.h change.
87663         * lib/getloadavg.c: Include unistd-safer.h.
87664         (getloadavg): Use safer open.
87665         * lib/getusershell.c: Include "stdio-safer.h".
87666         (getusershell): Use safer fopen.
87667         * lib/long-options.c (long_options): Use NULL rather than 0.
87668         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87669         'free'.
87670         * lib/modechange.c: Likewise.
87671         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87672         (MODE_DONE): New constant.
87673         (struct mode_change): Remove 'next' member.
87674         (make_node_op_equals): New function; like the old one of the
87675         same name, except it allocates an array.
87676         (mode_compile, mode_create_from_ref): Use it.
87677         (mode_compile): Allocate result as an array, not a linked list.
87678         Parse octal string ourself, so that we catch mistakes like "+0".
87679         (mode_adjust): Arg is an array, not a linked list.
87680         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87681         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87682         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87683         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87684         Remove.  This is now stat-macros.h's job.
87685         (talloc): Remove.  All callers replaced by xalloc, so that
87686         our invokers don't have to worry about reporting memory failures.
87687         (make_node_op_equals): Remove.
87688         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87689         New constants.
87690         (struct mode_change): Moved here from modechange.h.
87691         (mode_append_entry): Remove.
87692         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87693         apps to have incorrect behavior.  Use simpler algorithm for head
87694         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87695         Detect more invalid usages rather than having somewhat-random behavior.
87696         Don't insert an "a=" action, as that leads to incorrect behavior.
87697         (mode_compile, mode_create_from_ref): Return NULL on error instead
87698         of an enum, since now there's only one way to have an error.  All
87699         callers changed.
87700         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87701         at the correct time.  Simplify calculation of "+u" and its ilk.
87702         Don't mishandle "+X".
87703         (mode_free): Remove "register" and localize decls.
87704         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87705         (struct mode_change): Move to modechange.c; callers don't
87706         need to see this stuff.
87707         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87708         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87709         (mode_change, mode_adjust): Reflect the new signatures noted above.
87710         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87711         that might redefine system include files.
87712         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87713         (my_usleep): Use NULL rather than (void *) 0.
87714         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87715         Use siginterrupt to specify that system calls should be interrupted.
87716         (rpl_nanosleep): Move initialization of suspended closer to call of
87717         my_usleep.
87718         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87719         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87720         (desirable_utmp_entry): New function.
87721         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87722         using x2nrealloc, to simplify logic.
87723         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87724         size calculation.  Do not assume utmp file is a regular file.
87725         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87726         (READ_UTMP_CHECK_PIDS): New constant.
87727         * lib/save-cwd.c: Include unistd-safer.h.
87728         (save_cwd): Use fd_safer.
87729         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87730         [!_LIBC] Include "stat-macros.h" instead.
87731         * lib/unistd-safer.h (fd_safer): New decl.
87732
87733 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87734
87735         * modules/getloadavg (Depends-on): Add unistd-safer.
87736         * modules/getusershell (Depends-on): Add stdio-safer.
87737         * modules/lstat (Depends-on): Remove xalloc.
87738         * modules/mkstemp (Depends-on): Add stat-macros.
87739         * modules/modechange (Depends-on): Remove xstrtol.
87740         Add stat-macros, xalloc.
87741         * modules/save-cwd (Depends-on): Add unistd-safer.
87742         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87743         * modules/unistd-safer (Files): Add lib/fd-safer.c
87744         (Makefile.am): Remove lib_SOURCES.
87745
87746         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87747         Remove fcntl-safer; unistd-safer supersedes it.
87748
87749 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87750
87751         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87752         AC_HEADER_STAT.
87753         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87754         (gl_PREREQ_CHOWN): Remove.
87755         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87756         it.  Don't require AC_HEADER_STAT.
87757         (gl_PREREQ_LSTAT): Remove.
87758         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87759         Don't require AC_HEADER_STAT.
87760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87761         (gl_PREREQ_RMDIR): Remove.
87762         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87763         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87764         the stat-macros module a prerequisite.
87765         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87766         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87767         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87768         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87769         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87770         variable names.
87771         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87772         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87773         variable prefixes.
87774         * m4/fcntl-safer.m4: Remove.
87775         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87776         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87777         Invoke gl_PREREQ_FD_SAFER.
87778         (gl_PREREQ_FD_SAFER): New macro.
87779         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87780         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87781         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87782         Remove duplicate call to AC_LIBOBJ(readutmp).
87783         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87784
87785         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87786         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87787
87788 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87789
87790         * MODULES.html.sh (Misc): Add byteswap.
87791
87792 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87793
87794         * modules/getcwd (Depends-on): Add extensions.
87795         * modules/openat (Depends-on): Likewise.
87796
87797 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87798
87799         * modules/byteswap: New file.
87800
87801 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87802
87803         * m4/byteswap.m4: New file.
87804
87805 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87806
87807         * lib/byteswap_.h: New file.
87808
87809 2005-04-25  Karl Berry  <karl@gnu.org>
87810
87811         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87812
87813 2005-04-25  Albert Chin  <china@thewrittenword.com>
87814
87815         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87816         Toolkit C bug.
87817
87818 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87819
87820         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87821         (func_ln_if_changed): Remove forcibly for no error message
87822         in case file does not exist.
87823
87824 2005-04-19  Simon Josefsson  <jas@extundo.com>
87825
87826         * gnulib-tool (Options): Make --symlink mean --symbolic.
87827
87828 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87829
87830         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87831
87832 2005-04-16  Simon Josefsson  <jas@extundo.com>
87833
87834         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87835
87836 2005-04-15  Simon Josefsson  <jas@extundo.com>
87837
87838         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87839
87840 2005-04-15  Simon Josefsson  <jas@extundo.com>
87841
87842         * gnulib-tool: Rename --symlink to --symbolic.
87843
87844 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87845
87846         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87847         symbolic links to files instead of copying/moving.  Add --aux-dir,
87848         specifying directory relative --dir where auxiliary build tools
87849         are placed.
87850
87851 2005-04-14  Bruno Haible  <bruno@clisp.org>
87852
87853         * modules/allocsa (License): Change to LGPL.
87854         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87855
87856 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87857
87858         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87859         that "UTC +1 second" continues to work.  Problem reported
87860         by Dmitry V. Levin.
87861         (relunit_snumber): New rule.
87862         (relunit): Use it.
87863
87864 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87865
87866         * lib/getdate.y (universal_time_zone_table): New constant.
87867         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87868         universal_time_zone_table.
87869         (lookup_zone): Prefer universal_time_zone_table to
87870         local_time_zone_table, so that "GMT" time stamps are allowed in
87871         London during the summer.  Problem reported by Ian Abbott.
87872
87873 2005-04-12  Jim Meyering  <jim@meyering.net>
87874
87875         * lib/human.c (humblock): Set *options even when returning due to
87876         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87877         warning from gcc-4.
87878
87879 2005-04-09  Jim Meyering  <jim@meyering.net>
87880
87881         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87882         -Wuninitialized: initialize tm0.tm_year.
87883
87884 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87885
87886         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87887         count, since there's no maximum.  All uses changed.
87888         Add member dsts_seen.
87889         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87890         not being INT_MAX.
87891         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87892         Use pc_rels_seen to decide whether a date is absolute.
87893
87894         * lib/getdate.y (number): Don't overwrite year.
87895         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87896         check.
87897
87898 2005-04-02  Simon Josefsson  <jas@extundo.com>
87899
87900         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87901         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87902
87903 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87904
87905         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87906         where no absolute path name can be longer than PATH_MAX.
87907
87908 2005-03-27  Jim Meyering  <jim@meyering.net>
87909
87910         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87911
87912 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87913
87914         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87915         "one's complement" -> "ones' complement" in comment, as per Knuth.
87916         "value of type" -> "type or expression" in comment.
87917         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87918
87919 2005-03-26  Jim Meyering  <jim@meyering.net>
87920
87921         Comment nits.
87922         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87923         Correct typos: s/or/of/.
87924
87925 2005-03-26  Jim Meyering  <jim@meyering.net>
87926
87927         * modules/check-include-files: Move to ../ and rename to...
87928         * check-module: ...this.
87929
87930 2005-03-25  Jim Meyering  <jim@meyering.net>
87931
87932         * modules/xvasprintf (Files): Add xalloc.h.
87933
87934 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87935
87936         * modules/gettext (Files): config/config.rpath ->
87937         build-aux/config.rpath
87938         * modules/iconv (Files): Likewise.
87939         Problem reported by Oskar Liljeblad.
87940
87941 2005-03-23  Jim Meyering  <jim@meyering.net>
87942
87943         * modules/check-include-files: New script to check for
87944         missing dependencies, multiple includes, etc.
87945
87946         * modules/c-strtold (Depends-on): Add xalloc.
87947         * modules/c-strtod (Depends-on): Add xalloc.
87948         * modules/hash (Depends-on): Add xalloc.
87949         (Files): Remove lib/xalloc.h.
87950
87951         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87952         * modules/userspec (Files): Add lib/inttostr.h.
87953
87954 2005-03-23  Jim Meyering  <jim@meyering.net>
87955
87956         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87957
87958 2005-03-22  Jim Meyering  <jim@meyering.net>
87959
87960         * modules/stat-macros: New module.
87961         * modules/canonicalize, modules/euidaccess, modules/file-type,
87962         * modules/filemode, modules/lchown, modules/makepath,
87963         * modules/rmdir, modules/stat: Depend on new stat-macros module
87964         rather than listing lib/stat-macros.h manually.
87965         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87966
87967 2005-03-22  Jim Meyering  <jim@meyering.net>
87968
87969         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87970
87971 2005-03-22  Bruno Haible  <bruno@clisp.org>
87972
87973         * config/srclist.txt: Replace target directory 'config' with
87974         'build-aux'.
87975         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87976         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87977         ../build-aux/.
87978
87979 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87980
87981         * modules/chdir-long (Depends-on): Add mempcpy.
87982
87983         * modules/acl, modules/backupfile, modules/c-strtod,
87984         modules/c-strtold, modules/canon-host, modules/canonicalize,
87985         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87986         modules/exclude, modules/exitfail, modules/file-type,
87987         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87988         modules/getdate, modules/getline, modules/getpagesize,
87989         modules/getpass, modules/getugroups, modules/group-member,
87990         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87991         modules/inttostr, modules/long-options, modules/makepath,
87992         modules/md5, modules/memcasecmp, modules/memcoll,
87993         modules/modechange, modules/mountlist, modules/path-concat,
87994         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87995         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87996         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87997         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87998         modules/strftime, modules/strndup, modules/strverscmp,
87999         modules/timespec, modules/unlocked-io, modules/userspec,
88000         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88001         modules/yesno:
88002         Remove lib_SOURCES line from Makefile.am section, as this is now
88003         done automatically by the corresponding Autoconf macro.
88004
88005 2005-03-21  Jim Meyering  <jim@meyering.net>
88006
88007         Changes imported from coreutils.
88008
88009         * lib/cycle-check.c: Don't include xalloc.h.
88010
88011         * lib/path-concat.c: Don't include assert.h.
88012         (path_concat): Remove assertion that would have triggered
88013         for ABASE starting with more than one slash.
88014         Reported by Andreas Schwab.
88015
88016         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88017         properly when ABASE is an absolute file name.
88018         Correct the description of this function.
88019         Include <assert.h>.
88020         Add an assertion and a test driver.
88021         This fixes a bug introduced on 2004-07-02.
88022         Andreas Schwab reported the resulting failure of cp --parents:
88023         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88024
88025 2005-03-21  Jim Meyering  <jim@meyering.net>
88026
88027         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88028         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88029
88030 2005-03-21  Jim Meyering  <jim@meyering.net>
88031         and  Paul Eggert  <eggert@cs.ucla.edu>
88032
88033         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88034         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88035         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88036         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88037         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88038         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88039         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88040         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88041         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88042         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88043         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88044         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88045         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88046         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88047         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88048         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88049         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88050         for these modules.
88051
88052 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88053
88054         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88055         (which shouldn't happen), generate nothing instead of returning 0
88056         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88057
88058 2005-03-16  Bruno Haible  <bruno@clisp.org>
88059
88060         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88061         HAVE_LONGLONG_64BIT.
88062
88063 2005-03-16  Bruno Haible  <bruno@clisp.org>
88064
88065         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88066         HAVE_LONGLONG_64BIT.
88067
88068 2005-03-16  Bruno Haible  <bruno@clisp.org>
88069
88070         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88071         HAVE_LONGLONG_64BIT.
88072
88073 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88074
88075         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88076         reliably distinguish strftime failure from empty output on POSIX
88077         hosts.
88078
88079 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88080
88081         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88082         (iconv_string): Don't guess a size-zero buffer, as that might cause
88083         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88084         result would be 'too large', where 'too large' is (heuristically)
88085         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88086         overflow concerns.  This will prevent some unwanted malloc failures
88087         when the inputs are very large.
88088
88089 2005-03-15  Karl Berry  <karl@gnu.org>
88090
88091         * config/srclist.txt (config.rpath): from gettext.
88092         * config/config.rpath: update.
88093
88094 2005-03-15  Bruno Haible  <bruno@clisp.org>
88095
88096         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88097         to 'negate'.
88098
88099         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88100         variable.
88101
88102         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88103         results.
88104
88105 2005-03-14  Simon Josefsson  <jas@extundo.com>
88106
88107         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88108         <fx@gnu.org>.
88109
88110 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88111
88112         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88113         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88114         intprops.h.
88115         * lib/strtol.c: Likewise.
88116
88117 2005-03-14  Jim Meyering  <jim@meyering.net>
88118
88119         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88120         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88121         to be nonzero so that we (and caller) can detect the difference
88122         between a valid zero-length expansion and an error return, even
88123         when the underlying strftime fails before writing anything into
88124         that location.
88125
88126 2005-03-14  Bruno Haible  <bruno@clisp.org>
88127
88128         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88129         Update from GNU gettext 0.14.3.
88130
88131 2005-03-10  Jim Meyering  <jim@meyering.net>
88132
88133         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88134
88135 2005-03-10  Jim Meyering  <jim@meyering.net>
88136
88137         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88138         so that this module works on systems without fchdir.
88139
88140 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88141
88142         Factor int-properties macros into a single file, except for
88143         glibc-related files.
88144         * lib/intprops.h: New file.
88145         * lib/getloadavg.c: Include it instead of limits.h.
88146         (INT_STRLEN_BOUND): Remove.
88147         * lib/human.c: Include intprops.h.
88148         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88149         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88150         302/1000.
88151         * lib/inttostr.h: Include intprops.h instead of limits.h.
88152         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88153         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88154         for consistency with intprops.h.
88155         (time_t_is_integer, twos_complement_arithmetic): Use them.
88156         * lib/sig2str.h: Include <signal.h>, intprops.h.
88157         (INT_STRLEN_BOUND): Remove.
88158         * lib/strftime.c (TYPE_SIGNED): Remove.
88159         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88160         * lib/strtol.c: Adjust comments to match intprops.h.
88161         * lib/userspec.c: Include intprops.h.
88162         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88163         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88164         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88165         instead of rolling our own expressions.
88166         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88167
88168         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88169         instead of int.
88170         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88171         the right thing even if adding 1900 would overflow.  Similarly
88172         for tm_mon + 1 and tm_yday + 1.
88173         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88174         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88175         (DO_SIGNED_NUMBER): New macro.
88176         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88177
88178 2005-03-07  Bruno Haible  <bruno@clisp.org>
88179
88180         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88181
88182 2005-03-07  Bruno Haible  <bruno@clisp.org>
88183
88184         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88185
88186 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88187
88188         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88189         (func_import): Only replace files via --import when they have actually
88190         changed.
88191
88192 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88193
88194         * m4/mmap-anon.m4: New file.
88195         * m4/pagealign_alloc.m4: New file.
88196
88197 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88198             Bruno Haible  <bruno@clisp.org>
88199
88200         * modules/pagealign_alloc: New file.
88201         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88202
88203 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88204             Bruno Haible  <bruno@clisp.org>
88205
88206         * lib/pagealign_alloc.h: New file.
88207         * lib/pagealign_alloc.c: New file.
88208
88209 2005-03-03  Bruno Haible  <bruno@clisp.org>
88210
88211         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88212         Use an all-permissive copyright notice, recommended by RMS.
88213
88214 2005-03-02  Bruno Haible  <bruno@clisp.org>
88215
88216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88217         of AIX, the replacement has to be done only after <string.h> is
88218         included, therefore not in config.h. stpncpy.h does the replacement,
88219         and stpncpy.c uses it.
88220
88221 2005-03-02  Bruno Haible  <bruno@clisp.org>
88222
88223         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88224         stpncpy.c uses it.
88225
88226 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88229         The workaround isn't strictly needed for POSIX conformance, and
88230         it's too much of a pain to configure and maintain.  We'll ask
88231         people to fix their kernels instead.
88232         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88233         (NANOSLEEP_BUG_WORKAROUND): Remove.
88234         (xnanosleep): Remove the workaround.
88235
88236 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88237
88238         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88239         Reported by Derek Price.
88240         (Include): Add "timespec.h".
88241
88242         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88243
88244 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88247         to detect nanosleep bug.
88248
88249 2005-03-01  Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88252
88253 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88254
88255         * modules/gethrxtime: New file.
88256         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88257         (Depends-on): Add gethrxtime.
88258         (configure.ac): Add gl_XNANOSLEEP.
88259         (Makefile.am): Remove lib_SOURCES line.
88260
88261 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88262
88263         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88264         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88265
88266 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88269         * lib/timespec.h (gettime): Return void, since it always
88270         succeeds now.  All uses changed.
88271         * lib/gettime.c (gettime): Likewise.
88272         [HAVE_NANOTIME]: Prefer nanotime.
88273         Assume gettimeofday succeeds, as POSIX requires.
88274         Assime time () succeeds, since other code already does.
88275         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88276         (timespec_subtract): Remove.
88277         (NANOSLEEP_BUG_WORKAROUND): New constant.
88278         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88279         things considerably.  Use it only on GNU/Linux hosts, since the
88280         workaround shouldn't be needed elsewhere.
88281
88282 2005-02-24  Bruno Haible  <bruno@clisp.org>
88283
88284         * modules/gettext (Files): Add m4/glibc2.m4.
88285
88286 2005-02-24  Bruno Haible  <bruno@clisp.org>
88287
88288         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88289         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88290         * m4/progtest.m4:
88291         Update from GNU gettext 0.14.2.
88292         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88293
88294 2005-02-24  Bruno Haible  <bruno@clisp.org>
88295
88296         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88297         * lib/config.charset: Update from GNU gettext 0.14.2.
88298
88299 2005-02-24  Bruno Haible  <bruno@clisp.org>
88300
88301         * lib/gettext.h: Update from GNU gettext 0.14.2.
88302
88303 2005-02-23  Simon Josefsson  <jas@extundo.com>
88304
88305         * m4/iconvme.m4: New file.
88306
88307 2005-02-23  Jim Meyering  <jim@meyering.net>
88308
88309         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88310         change.
88311         Thanks to Bruno Haible for catching it.
88312
88313 2005-02-22  Simon Josefsson  <jas@extundo.com>
88314
88315         * modules/iconvme: New file.
88316
88317         * MODULES.html.sh: Add iconvme.
88318
88319 2005-02-22  Simon Josefsson  <jas@extundo.com>
88320
88321         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88322
88323 2005-02-22  Simon Josefsson  <jas@extundo.com>
88324
88325         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88326
88327 2005-02-22  Jim Meyering  <jim@meyering.net>
88328
88329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88330         s/ifndef/ifdef/.
88331
88332 2005-02-20  Neil Conway  <neilc@samurai.com>
88333
88334         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88335         returned by OSX/Darwin if the specified buffer is not large
88336         enough for the hostname.
88337
88338 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88339
88340         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88341         pass it to _help, otherwise the latter coredumps trying to
88342         dereference state.root_argp.
88343
88344 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88345
88346         * modules/chdir-long (Depends-on): Add memrchr.
88347         * modules/memrchr (Files): Add lib/memrchr.h.
88348         (Include): "memrchr.h".
88349
88350 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88351
88352         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88353
88354 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88355
88356         * lib/memrchr.h: New file.
88357         * lib/chdir-long.c: Include it.
88358         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88359         Don't bother including stddef.h.
88360
88361 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88362
88363         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88364         inclusion.
88365         Include <sys/types.h>, for dev_t.
88366         (ME_DUMMY, ME_REMOTE): Move from here....
88367         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88368         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88369         Dmitry V. Levin.
88370         Include mountlist.h first, to test the interface.
88371
88372 2005-01-29  Bruno Haible  <bruno@clisp.org>
88373
88374         * lib/progname.c (program_name): Initialize.
88375         Needed when linking statically on MacOS X.
88376
88377 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88378
88379         Sync from coreutils.
88380         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88381         (Depends-on): Add c-strtod.
88382         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88383
88384 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88385
88386         Sync from coreutils.
88387         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88388
88389         Remove files that are specific to coreutils.
88390         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88391
88392 2005-01-28  Bruno Haible  <bruno@clisp.org>
88393
88394         * modules/javacomp: New file.
88395         * MODULES.html.sh (Java): Add javacomp.
88396
88397 2005-01-28  Bruno Haible  <bruno@clisp.org>
88398
88399         * m4/javacomp.m4: New file, from GNU gettext.
88400
88401 2005-01-28  Bruno Haible  <bruno@clisp.org>
88402
88403         * lib/javacomp.sh.in: New file, from GNU gettext.
88404         * lib/javacomp.h: New file, from GNU gettext.
88405         * lib/javacomp.c: New file, from GNU gettext.
88406
88407 2005-01-26  Simon Josefsson  <jas@extundo.com>
88408
88409         * lib/gai_strerror.c: Use GPL in header.
88410
88411 2005-01-26  Bruno Haible  <bruno@clisp.org>
88412
88413         * modules/javaexec: New file.
88414         * MODULES.html.sh (Java): Add javaexec.
88415
88416 2005-01-26  Bruno Haible  <bruno@clisp.org>
88417
88418         * m4/javaexec.m4: New file, from GNU gettext.
88419
88420 2005-01-26  Bruno Haible  <bruno@clisp.org>
88421
88422         * lib/javaexec.sh.in: New file, from GNU gettext.
88423         * lib/javaexec.h: New file, from GNU gettext.
88424         * lib/javaexec.c: New file, from GNU gettext.
88425
88426 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88427
88428         * modules/lchown (Depends-on): Remove lchown.h
88429
88430 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88431
88432         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88433         must be defined if the header file was not found, in order
88434         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88435
88436 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88437
88438         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88439         initializers for struct pentry_state.
88440         (__argp_error): Check return value of __asprintf
88441         (__argp_failure): Translate error message
88442
88443         * lib/argp-parse.c: Removed braces around the expansion of N_()
88444
88445 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88446
88447         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88448         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88449         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88450         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88451         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88452         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88453         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88454         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88455         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88456         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88457         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88458         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88459         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88460         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88461         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88462         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88463         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88464         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88465         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88466         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88467         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88468         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88469         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88470         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88471         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88472         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88473         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88474         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88475         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88476         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88477         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88478         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88479         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88480         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88481         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88482         Use an all-permissive copyright notice, recommended by RMS.
88483
88484 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88485
88486         * modules/chdir-long (Depends-on): Remove mempcpy.
88487
88488 2005-01-21  Jim Meyering  <jim@meyering.net>
88489
88490         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88491         same value as for Solaris 9.
88492
88493         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88494         component length.  This included changing the parameter to be
88495         of type `char *' rather than `char const *'.
88496         * lib/chdir-long.h (chdir_long): Update prototype.
88497
88498         * lib/openat.c (fdopendir, fstatat): New functions.
88499         * lib/openat.h: Include headers required for use of DIR and struct
88500         stat.
88501         [AT_SYMLINK_NOFOLLOW]: Define.
88502         (fdopendir, fstatat): Add prototypes.
88503
88504 2005-01-21  Bruno Haible  <bruno@clisp.org>
88505
88506         * modules/classpath: New file.
88507         * MODULES.html.sh (Java): Add classpath.
88508
88509 2005-01-21  Bruno Haible  <bruno@clisp.org>
88510
88511         * lib/classpath.h: New file, from GNU gettext.
88512         * lib/classpath.c: New file, from GNU gettext.
88513
88514 2005-01-20  Simon Josefsson  <jas@extundo.com>
88515
88516         * modules/version-etc-fsf: New file.
88517
88518 2005-01-20  Simon Josefsson  <jas@extundo.com>
88519
88520         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88521         * lib/version-etc.c: Remove version_etc_copyright.
88522         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88523         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88524
88525 2005-01-20  Simon Josefsson  <jas@extundo.com>
88526
88527         * lib/base64.h (isbase64): Add.
88528
88529         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88530         using a unsigned prototype, don't inline.
88531         (base64_decode): Use it.
88532
88533 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88534
88535         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88536         it.
88537
88538 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88539
88540         * lib/save-cwd.c (save_cwd): Remove code to support the case
88541         where fchdir is missing or flaky.
88542
88543 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88544
88545         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88546
88547 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88548
88549         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88550         AC_LIBSOURCES now does this.
88551         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88552         with new ullong_max module.
88553
88554 2005-01-19  Bruno Haible  <bruno@clisp.org>
88555
88556         * modules/sh-quote: New file.
88557         * MODULES.html.sh (Executing programs): Add sh-quote.
88558
88559 2005-01-19  Bruno Haible  <bruno@clisp.org>
88560
88561         * lib/sh-quote.h: New file, from GNU gettext.
88562         * lib/sh-quote.c: New file, from GNU gettext.
88563
88564 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88565
88566         Merge from coreutils.
88567         * m4/ullong_max.m4: New file.
88568         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88569         (gl_MACROS): Assume localeconv exists.
88570
88571 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         Merge changes from coreutils, as described below in several
88574         changelogs dated today.
88575
88576         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88577         (O_DIRECTORY): Remove; not needed here, since "." must be
88578         a directory.  All uses removed.
88579         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88580         universal on Suns, and we also need to test for IRIX.
88581         Revamp code to use 'if' rather than '#if'.
88582         Avoid unnecessary comparison of cwd->desc to 0.
88583
88584         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88585         for known valid error numbers rather than observed invalid ones.
88586
88587 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88588
88589         * modules/ullong_max: New file.
88590
88591         * modules/chdir-long, modules/openat: New files.
88592         * modules/save-cwd (Depends-on): Depend on chdir-long.
88593         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88594
88595 2005-01-18  Jim Meyering  <jim@meyering.net>
88596
88597         Merge from coreutils.
88598         * m4/chdir-long.m4, m4/openat.m4: New files.
88599         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88600         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88601         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88602         is sane and DOES follow symlinks.  Besides, testing 20 different
88603         systems found no broken chown implementations.
88604         Prompted by a change in rsync's copy of this macro.
88605         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88606
88607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88608
88609         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88610         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88611         NULL-means-set-to-current-time semantics.
88612         Remove temporary file immediately, rather than waiting
88613         for configure's at-exit trap code to do it.
88614
88615 2005-01-18  Jim Meyering  <jim@meyering.net>
88616
88617         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88618
88619         * lib/utimens.c (futimens): Account for the fact that futimes
88620         can also fail with errno == ENOSYS or errno == ENOENT.
88621         Patch from Dmitry V. Levin.
88622
88623         Change the name of the robust chdir function from chdir to chdir_long.
88624         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88625         (restore_cwd): Use chdir_long, not chdir.
88626         * lib/chdir-long.c: Renamed from chdir.c.
88627         * lib/chdir-long.h: Renamed from chdir.h.
88628         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88629         Hurd.
88630
88631 2005-01-18  Bruno Haible  <bruno@clisp.org>
88632
88633         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88634         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88635         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88636         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88637         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88638         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88639         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88640         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88641         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88642         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88643         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88644         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88645         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88646         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88647         Use an all-permissive copyright notice, recommended by RMS.
88648
88649 2005-01-18  Bob Proulx  <bob@proulx.com>
88650
88651         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88652         simplify offsetof() macro construct to avoid compile failure with
88653         native HP-UX 11.0 ANSI C compiler.
88654
88655 2005-01-17  Bruno Haible  <bruno@clisp.org>
88656
88657         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88658         redundant because stpncpy.m4 takes care of it.
88659
88660 2005-01-17  Bruno Haible  <bruno@clisp.org>
88661
88662         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88663
88664 2005-01-17  Bruno Haible  <bruno@clisp.org>
88665
88666         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88667         used.
88668
88669 2005-01-17  Bruno Haible  <bruno@clisp.org>
88670
88671         * lib/fwriteerror.h (fwriteerror): Change specification to include
88672         fclose.
88673         * lib/fwriteerror.c: Include <stdbool.h>.
88674         (fwriteerror): At the end, close the file stream. Record whether
88675         stdout was already closed.
88676
88677 2005-01-17  Bruno Haible  <bruno@clisp.org>
88678
88679         * lib/execute.c (environ): Declare if needed.
88680         * lib/pipe.c (environ): Likewise.
88681         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88682
88683 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88684
88685         * modules/argp: Depend on vsnprintf
88686
88687 2005-01-10  Jim Meyering  <jim@meyering.net>
88688
88689         * modules/closeout (Depends-on): Add atexit.
88690
88691 2005-01-06  Bruno Haible  <bruno@clisp.org>
88692
88693         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88694
88695 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88696
88697         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88698         definitions to be after all include files, to avoid collisions.
88699         Problem reported by Bob Proulx.
88700
88701 2005-01-04  Jim Meyering  <jim@meyering.net>
88702
88703         Changes imported from coreutils.
88704         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88705         as the mkstemp template, use a temporary directory and an
88706         8.3-friendly template to avoid trouble on systems like DJGPP.
88707         Reported by Juan M. Guerrero via Stepan Kasal.
88708         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88709         close. Remove the temporary directory right away, rather than waiting
88710         for configure's at-exit trap code to do it.
88711         Suggestion from Stepan Kasal.
88712
88713 2005-01-01  Simon Josefsson  <jas@extundo.com>
88714
88715         * gnulib-tool: Print #include directives when --import'ing.
88716
88717 2004-12-28  Simon Josefsson  <jas@extundo.com>
88718
88719         * tests/test-base64.c: Include required header files.  Remove
88720         unused variables.
88721
88722 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88723
88724         * modules/error (Depends-on): Remove gettext.
88725
88726 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88727
88728         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88729         not needed.  This removes a dependency on the gettext module.
88730         [defined _LIBC]: Do not include <libintl.h>; not needed.
88731
88732 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88733
88734         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88735         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88736
88737 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88738
88739         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88740         HAVE_DECL_STRTOLD.
88741
88742 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         * modules/getdate (Depends-on): Remove alloca-opt.
88745
88746 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88747
88748         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88749
88750 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88751
88752         * lib/argp-parse.c: Include <stddef.h>.
88753         (alignof, alignto): New macros.
88754         (parser_init): Don't assume that void * is aligned sufficiently
88755         for struct option.
88756
88757         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88758         need to extend the stack.
88759         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88760         large.
88761
88762 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88763
88764         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88765
88766 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88767
88768         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88769         (2004-10-24) change.  Apparently this was a false alarm.
88770
88771         * modules/getdate: Depend on alloca-opt, not alloca.
88772
88773 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88776         Remove now-obsolete comment about AIX.
88777         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88778         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88779         (YYMAXDEPTH): New macro.
88780
88781 2004-12-18  Simon Josefsson  <jas@extundo.com>
88782
88783         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88784
88785 2004-12-18  Bruno Haible  <bruno@clisp.org>
88786
88787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88788
88789 2004-12-18  Bruno Haible  <bruno@clisp.org>
88790
88791         * lib/fatal-signal.c (fatal_signals): Make non-const.
88792         (init_fatal_signals): New function.
88793         (uninstall_handlers, install_handlers): Ignore signals that were set to
88794         SIG_IGN.
88795         (at_fatal_signal): Call init_fatal_signals.
88796         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88797         SIG_IGN.
88798         Reported by Paul Eggert.
88799
88800 2004-12-18  Bruno Haible  <bruno@clisp.org>
88801
88802         * doc/alloca.texi: New file.
88803         * doc/alloca-opt.texi: New file.
88804
88805 2004-12-17  Jim Meyering  <jim@meyering.net>
88806
88807         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88808         Otherwise, install-sh could exit with improper exit status when
88809         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88810
88811 2004-12-16  Simon Josefsson  <jas@extundo.com>
88812
88813         * tests/test-base64.c: Add license.
88814
88815 2004-12-15  Stepan Kasal  <address@hidden>
88816
88817         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88818
88819 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88820
88821         * modules/getcwd (Files): Add m4/d-ino.m4.
88822         Suggested by Mark D. Baushke.
88823
88824 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88825
88826         * lib/getdate.y (textint): New member "negative".
88827         (time_zone_hhmm): New function.
88828         Expect 14 shift-reduce conflicts, not 13.
88829         (o_colon_minutes): New rule.
88830         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88831         (yylex): Set the "negative" member of signed numbers.
88832
88833 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88834
88835         * doc/getdate.texi (Time of day items, Time zone items):
88836         Describe new formats +00:00, UTC+00:00.
88837
88838 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88839
88840         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88841         spurious "-l"s.  Problem reported by Stepan Kasal.
88842
88843 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88846         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88847
88848 2004-12-04  Simon Josefsson  <jas@extundo.com>
88849
88850         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88851         Vandoorselaere <yoann@prelude-ids.org>.
88852
88853 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88854
88855         Changes imported from coreutils.
88856         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88857         exist.
88858         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88859
88860 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88861
88862         Changes imported from coreutils.
88863         * lib/hard-locale.c: Assume <locale.h> exists.
88864         Include "strdup.h".
88865         (GLIBC_VERSION): New macro.
88866         (hard_locale): Assume setlocale exists.
88867         Rewrite to avoid #ifdef.
88868         Use strdup rather than malloc + strcpy.
88869         * lib/human.c: Assume <locale.h> exists.
88870         (human_readable): Assume localeconv exists.
88871
88872 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88873
88874         * modules/hard-locale (Depends-on): Add strdup.
88875
88876 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88877
88878         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88879         convert T2, not T.  (Imported from libc.)
88880
88881 2004-11-30  Simon Josefsson  <jas@extundo.com>
88882
88883         * modules/restrict (License): Change to LGPL.
88884
88885 2004-11-30  Simon Josefsson  <jas@extundo.com>
88886
88887         * m4/restrict.m4: Add copyright and copying conditions.
88888
88889 2004-11-30  Simon Josefsson  <jas@extundo.com>
88890
88891         * m4/base64.m4: New file.
88892
88893 2004-11-30  Simon Josefsson  <jas@extundo.com>
88894
88895         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88896         base64.
88897
88898         * tests/test-base64.c: New file.
88899
88900         * modules/base64: New file.
88901
88902 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88903
88904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88905         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88906
88907         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88908
88909 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88910
88911         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88912         (__getcwd.c): Don't restore errno; glibc doesn't.
88913         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88914         first, falling back to our code only if its results look suspicious.
88915         Ensure that the resulting buffer is only as large as necessary.
88916
88917         * lib/readutmp.c: Include readutmp.h first.
88918         Include <errno.h>, since readutmp.h no longer does that.
88919         * lib/readutmp.h: Don't include <errno.h>,
88920         <sys/param.h>, <time.h>; not needed to establish interface.
88921         (errno): Remove decl.
88922         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88923         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88924         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88925
88926 2004-11-28  Simon Josefsson  <jas@extundo.com>
88927
88928         * lib/base64.h, base64.c: New file.
88929
88930 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88931
88932         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88933
88934 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88935
88936         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88937         (Depends-on): Remove pathmax, same.  Add mempcpy.
88938         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88939         (Makefile.am): Append getcwd.h to lib_SOURCES.
88940         (Include): Add getcwd.h.
88941         (Maintainer): Change from Jim Meyering to "all, glibc",
88942         since getdate now uses intended-for-glibc code.
88943         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88944         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88945
88946 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88947
88948         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88949         HP's ANSI C compiler.
88950         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88951         Declaring int functions causes warnings on some modern systems and
88952         shouldn't be needed to compile on ancient ones.
88953         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88954         defined.
88955
88956         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88957         with the following changes.
88958         (__set_errno): Parenthesize properly.
88959         Include <stdbool.h>.
88960         (MIN, MAX, MATCHING_INO): New macros.
88961         (__getcwd): Define with prototype, not K&R form.
88962         Use heuristics to allocate default buffer on stack if possible.
88963         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88964         behavior, and to avoid the PATH_MAX limit when computing
88965         ../../../../...
88966         Use MATCHING_INO to compare inode number to file.
88967         Check for arithmetic overflow in size calculations.
88968         Fix bug in reallocation of dot array that caused getcwd to fail
88969         on directories nested deeper than 75.
88970         Be more careful about saving errno on error.
88971         Do not use realloc; use only free+malloc, as this is a bit
88972         more flexible and avoids a needless copy operation.
88973         Do not inspect st_dev and st_ino for symbolic links; POSIX
88974         doesn't specify the latter.
88975         Check for closedir errors.
88976         Avoid needless casts.
88977         Use "#ifdef weak_alias" around weak_alias, to be like other
88978         glibc code.
88979         The following changes to getcwd.c have effect only when used in
88980         gnulib; they have no effect inside glibc proper.
88981         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88982         as alloca isn't used.
88983         (alloca, __alloca): Likewise.
88984         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88985         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88986         unconditionally, as gnulib assumes C89 or better.
88987         Do not include <sys/param.h>.
88988         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88989         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88990         better.
88991         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88992         Include <dirent.h> in a way that is compatible with modern Autoconf.
88993         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88994         New macros, if not already defined.
88995         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88996         Use "_LIBC", not "defined _LIBC", for consistency.
88997         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88998         a mempcpy module.
88999         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89000         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89001         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89002         credit only to Jim Meyering and adjust the copyright dates.
89003         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89004         <stdlib.h>, <unistd.h>, "pathmax.h".
89005         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89006         (INITIAL_BUFFER_SIZE): Remove.
89007         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89008
89009 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89010
89011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89012         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89013         Use the _ONCE methods, for efficiency.
89014         Check for fcntl.h.  In test program, include <errno.h>
89015         and <fcntl.h> if available.  Remove old K&R cruft from
89016         test program.  Check for common errors in GNU/Linux,
89017         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89018         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89019         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89020         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89021         name accordingly.
89022         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89023         accommodate new getcwd.c.
89024         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89025         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89026         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89027         that's all we need now.
89028
89029 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89030
89031         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89032         argp-parse.c depends on getopt internals, that means we should
89033         always use our getopt, to be on the safe side.
89034         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89035         order not to spoil the result of an eventual previous invocation
89036         of gl_GETOPT_SUBSTITUTE.
89037
89038 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89039
89040         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89041         redefinition warnings. To avoid them, include the defines
89042         in `#if !defined __need_getopt ... #endif'. The only place
89043         where __getopt_argv_const is used is in definitions
89044         of getopt_long and getopt_long_only below, which are as well
89045         protected by `#ifndef __need_getopt'.
89046         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89047         __need_getopt after including <stdio.h> and <unistd.h> These
89048         headers might have defined it.
89049
89050 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89051
89052         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89053
89054 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89057         (futimens): New function, which uses futimes if available.
89058         (futimens, utimens): Support timespec==NULL, with same semantics
89059         as utime and utimens.
89060         * lib/utimens.h (futimens): New decl.
89061
89062 2004-11-23  Jim Meyering  <jim@meyering.net>
89063
89064         * lib/getopt_.h: Remove trailing blanks.
89065
89066 2004-11-23  Jim Meyering  <jim@meyering.net>
89067
89068         * lib/__fpending.c: Add comment.
89069
89070 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89071
89072         * modules/canonicalize (Depends-on): Add xreadlink.
89073         Problem reported by James Youngman.
89074
89075 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89076
89077         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89078         New macros.
89079         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89080         optopt): Use them instead of invoking ## directly; otherwise, the
89081         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89082
89083 2004-11-19  Bruno Haible  <bruno@clisp.org>
89084
89085         * lib/strtok_r.c: Move comments from here...
89086         * lib/strtok_r.h: ... to here.
89087
89088 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89089
89090         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89091         implementations that mishandle size_t overflow.
89092
89093 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89094
89095         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89096         might fail.  Problem reported by Yoann Vandoorselaere.
89097         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89098         implementations that mishandle size_t overflow.
89099
89100 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89101
89102         * modules/canon-host (Depends-on): Add strdup.
89103
89104 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89105
89106         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89107
89108 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89109
89110         * lib/canon-host.c: Include "strdup.h".
89111         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89112         Use strdup instead of malloc/strcpy to duplicate strings.
89113
89114         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89115         (human_space_before_unit): New constant.
89116         * lib/human.c (human_readable): Support it.
89117
89118         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89119         (xgetcwd): Set errno correctly when failing.
89120         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89121         the failure is actually due to a PATH_MAX problem.
89122
89123         Further getopt changes to make it more likely that glibc will
89124         buy the changes back.
89125         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89126         (getopt): Use it, so to preserve glibc semantic
89127         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89128         when compiling for libc.
89129         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89130         (getopt_long, getopt_long_only): Use it.
89131
89132         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89133         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89134         (getopt): Argv is now char * const *, as per standard.
89135         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89136         not char *__getopt_argv_const *.
89137         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89138         _getopt_long_only_r): Likewise.
89139         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89140         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89141         _getopt_long_r, _getopt_long_only_r): Likewise.
89142         * lib/getopt_.h (__getopt_argv_const): Remove.
89143         (getopt): Argv is now char * const *, as per standard.
89144
89145         * lib/getdate.y (tORDINAL): New token.
89146         (day, relunit): Allow it for relative times.
89147         (relative_time_table): Use tORDINAL for ordinals.
89148
89149 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89150
89151         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89152         Document that "second" isn't allowed as an ordinal number.
89153
89154 2004-11-16  Jim Meyering  <jim@meyering.net>
89155
89156         * modules/closeout (Depends-on): Add fpending.
89157
89158 2004-11-15  Jim Meyering  <jim@meyering.net>
89159
89160         * lib/closeout.c: Include "__fpending.h" once again.
89161         Include <stdbool.h>.
89162         (close_stdout): Don't fail just because stdout was closed initially,
89163         since some programs don't write to stdout in the normal course of
89164         operation (other than --version and --help), and we don't want this
89165         function to make e.g. `touch file >&-' fail.
89166         But do fail if it was closed and someone has tried to write to it.
89167         E.g., `printf foo >&-' must fail.
89168
89169 2004-11-13  Jim Meyering  <jim@meyering.net>
89170
89171         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89172
89173 2004-11-12  Simon Josefsson  <jas@extundo.com>
89174
89175         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89176         small doc fix is still pending.
89177
89178 2004-11-11  Simon Josefsson  <jas@extundo.com>
89179
89180         * modules/strtok_r: New file.
89181
89182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89183         strtok_r.
89184
89185 2004-11-11  Simon Josefsson  <jas@extundo.com>
89186
89187         * m4/strtok_r.m4: New file.
89188
89189         * m4/getopt.m4: Replace opterr.
89190
89191 2004-11-11  Simon Josefsson  <jas@extundo.com>
89192
89193         * lib/strtok_r.h, strtok_r.c: New file.
89194
89195 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89196
89197         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89198         of replacing opterr, getopt, etc.  This should handle the
89199         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89200
89201 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89202
89203         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89204         we can stop lying to compilers about the constness of argv when we
89205         are compiled outside glibc.
89206         (getopt, getopt_long, getopt_long_only): Use it.
89207         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89208         _getopt_internal, getopt): Likewise.
89209         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89210         _getopt_long_only_r): Likewise.
89211         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89212         _getopt_long_r, _getopt_long_only_r): Likewise.
89213
89214         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89215         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89216         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89217         the other external symbols.
89218         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89219         declaration, since the above renaming now works around collisions.
89220
89221 2004-11-11  Jim Meyering  <jim@meyering.net>
89222
89223         * lib/linebreak.c: Remove trailing blanks.
89224         * lib/alloca_.h: Likewise.
89225         * lib/acosl.c: Likewise.
89226         * lib/euidaccess.c: Likewise.
89227         * lib/allocsa.h: Likewise.
89228
89229 2004-11-10  Simon Josefsson  <jas@extundo.com>
89230
89231         * m4/getaddrinfo.m4: New file.
89232
89233 2004-11-10  Simon Josefsson  <jas@extundo.com>
89234
89235         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89236
89237 2004-11-10  Simon Josefsson  <jas@extundo.com>
89238
89239         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89240         getaddrinfo.
89241
89242         * modules/getaddrinfo: New file.
89243
89244 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89245
89246         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89247
89248 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89249
89250         * lib/mktime.c (SHR): New macro, which is a portable
89251         substitute for >> that should work even on Crays.
89252         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89253         Problem reported by Mark D. Baushke in
89254         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89255         * lib/getdate.y (SHR): Likewise.
89256         (tm_diff): Use it.
89257         * lib/strftime.c (SHR): Likewise.
89258         (tm_diff): Use it.
89259         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89260         quote_these_too, so that right shifts are well defined.  All uses
89261         changed.
89262
89263 2004-11-10  Jim Meyering  <jim@meyering.net>
89264
89265         Ensure that no close failure goes unreported.
89266         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89267         return early when it seems there's nothing to flush.
89268         Don't include __fpending.h.
89269
89270 2004-11-10  Jim Meyering  <jim@meyering.net>
89271
89272         * modules/closeout (Depends-on): Remove fpending.
89273
89274 2004-11-10  Jim Meyering  <jim@meyering.net>
89275
89276         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89277
89278 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89279
89280         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89281         gl_FUNC_STRFTIME.
89282         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89283         and AC_REQUIRE when possible, to avoid duplicate checks.
89284         Check for <wchar.h>.
89285
89286 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89287
89288         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89289
89290 2004-11-09  Bruno Haible  <bruno@clisp.org>
89291
89292         * m4/sockpfaf.m4: New file.
89293
89294 2004-11-05  Bruno Haible  <bruno@clisp.org>
89295
89296         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89297         Reported by Mark D. Baushke <mdb@cvshome.org>.
89298
89299 2004-11-04  Bruno Haible  <bruno@clisp.org>
89300
89301         2004-09-11  Bruno Haible  <bruno@clisp.org>
89302                 * allocsa.valgrind: New file.
89303         2004-02-06  Bruno Haible  <bruno@clisp.org>
89304                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89305                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89306                 Reported by Christopher Seip <chris.seip@hp.com>.
89307
89308 2004-11-04  Bruno Haible  <bruno@clisp.org>
89309
89310         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89311         (Makefile.am): Distribute it.
89312
89313 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89314
89315         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89316         with errno == ERANGE if the buffer is too small.
89317         Problem reported by Mark D. Baushke.
89318
89319 2004-11-03  Albert Chin  <china@thewrittenword.com>
89320             Paul Eggert  <eggert@cs.ucla.edu>
89321
89322         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89323         equivalent, substitute $ac_type for equivalent type rather than
89324         blindly using uint32_t *always* which won't work if uint32_t is not
89325         available.  Define _UINT32_T to work around typedef of uint32_t if
89326         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89327         2.5.1.
89328
89329 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89330
89331         * m4/jm-macros.m4: Sync from coreutils.
89332         (gl_MACROS): Check for mbrlen, for pathchk.
89333         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89334
89335 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89336
89337         * lib/xreadlink.c (MAXSIZE): New macro.
89338         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89339         size does not exceed MAXSIZE.  Avoid cast.
89340         As suggested by Mark D. Baushke in
89341         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89342         if readlink fails with buffer size just under MAXSIZE, try again
89343         with MAXSIZE.
89344
89345 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89346
89347         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89348
89349 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89350         and  Paul Eggert  <eggert@cs.ucla.edu>
89351
89352         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89353         (get_date): Overparenthesize to avoid GCC warning.
89354
89355 2004-11-02  Bruno Haible  <bruno@clisp.org>
89356
89357         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89358         returns void.
89359
89360 2004-11-02  Bruno Haible  <bruno@clisp.org>
89361
89362         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89363         function returns void.
89364
89365 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89366
89367         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89368         fflush_unlocked, flockfile, funlockfile, funlockfile,
89369         fputs_unlocked, putc_unlocked.
89370
89371 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89372
89373         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89374         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89375         already declared.
89376
89377 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89378
89379         * modules/getdate (Files): Add doc/getdate.texi.
89380         (Depends-on): Add setenv, xalloc.
89381
89382 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * lib/getdate.y: Add support for TZ="foo" within a date string.
89385         Fix some bugs near time_t boundaries.  Reject dates with
89386         out-of-range components, e.g., "Sept 31".
89387         Include <stdlib.h>, "setenv.h", "xalloc.h".
89388         (ISDIGIT_LOCALE): Remove; unused.
89389         Note that the TZ and time functions used here are not reentrant.
89390         (mktime_ok, get_tz): New functions.
89391         (TZBUFSIZE): New constant.
89392         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89393         This requires that we sometimes generate our own TZ="XXX..." setting.
89394
89395 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89396
89397         * doc/getdate.texi: New file, from coreutils with modifications for
89398         the new TZ parsing.
89399
89400 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89401
89402         * lib/mktime.c (not_equal_tm): Remove redundant check.
89403
89404 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89405
89406         * modules/regex (lib_SOURCES): Add regex.c.
89407         Reported by James Youngman in
89408         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89409
89410 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89411
89412         * lib/getdate.y: Use Bison 1.875 features, and some minor
89413         code cleanups.  This change does not affect semantics.
89414         Don't include <stdlib.h>; no longer needed.
89415         Don't include unlocked-io.h; only the "#if TEST" code uses
89416         stdio, and performance isn't crucial there.
89417         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89418         Bison 1.875 features as described below.
89419         All uses of "PC." replaced by "pc->".
89420         (YYSTYPE): Add a forward declaration.
89421         (yylex, yyerror): Use full prototypes in forward decls.
89422         Use "%pure-parser" rather than obsolescent "%pure_parser".
89423         Use %parse-param and %lex-param instead of obsolescent
89424         YYPARSE_PARAM and YYLEX_PARAM.
89425         (meridian_table, month_and_day_table, time_units_table,
89426         relative_time_table, time_zone_table, military_table,
89427         lookup_zone, lookup_word, get_date):
89428         Use NULL instead of 0 where appropriate.
89429         (to_hour): Avoid abort (), to avoid a dependency on
89430         stdlib.h.
89431         (yyerror, yylex): Now accepts parser_control * arg.
89432         (main) [TEST]: Use '\0' rather than 0 for char.
89433
89434 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89435
89436         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89437
89438 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89439
89440         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89441         It's now the caller's responsibility to handle the case where
89442         !HAVE_GETPAGESIZE && !defined getpagesize.
89443
89444         * lib/mktime.c (leapyear): Arg is long int, not int.
89445
89446 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89447
89448         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89449
89450 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89451
89452         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89453         missing.  Problem reported by James Youngman.
89454
89455 2004-10-16  Simon Josefsson  <jas@extundo.com>
89456
89457         * gnulib-tool: Fix comments.  Fix parse problem.
89458         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89459
89460 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89463         implementation of getopt_long.  Problem reported by Alexander Taler in:
89464         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89465
89466 2004-10-15  Bruno Haible  <bruno@clisp.org>
89467
89468         * gnulib-tool: Untabify. Initialize supplied_libname.
89469         (func_usage): More homogenous output.
89470         (func_modules_transitive_closure, func_modules_to_filelist,
89471         func_emit_lib_Makefile_am): New functions.
89472         (func_import): New function, extracted from big case statement. Use
89473         func_get_license, func_modules_transitive_closure,
89474         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89475         opt_lgpl. Don't use test -a, as it's not portable.
89476         (func_create_testdir): Use func_modules_transitive_closure,
89477         func_modules_to_filelist, func_emit_lib_Makefile_am.
89478
89479 2004-10-15  Bruno Haible  <bruno@clisp.org>
89480
89481         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89482
89483 2004-10-15  Bruno Haible  <bruno@clisp.org>
89484
89485         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89486         the portions belonging to each module.
89487         Suggested by Derek Robert Price <derek@ximbiot.com>.
89488
89489 2004-10-12  Simon Josefsson  <jas@extundo.com>
89490
89491         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89492         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89493         to real functions.
89494
89495 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89496
89497         * modules/vsnprintf: New file.
89498
89499 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89500
89501         * m4/vsnprintf.m4: New file.
89502
89503 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89504
89505         * lib/vsnprintf.h: New file.
89506         * lib/vsnprintf.c: New file.
89507
89508 2004-10-11  Bruno Haible  <bruno@clisp.org>
89509
89510         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89511         vsnprintf.
89512
89513 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89514
89515         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89516
89517 2004-10-07  Bruno Haible  <bruno@clisp.org>
89518
89519         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89520         fits into the provided buffer.
89521
89522 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         * lib/diacrit.c, diacrit.h: Add GPL notice.
89525
89526         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89527         notice.
89528         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89529         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89530         This avoids a potential constant-folding bug.
89531
89532 2004-10-05  Bruno Haible  <bruno@clisp.org>
89533
89534         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89535         for the declaration of strsep.
89536
89537 2004-10-05  Bruno Haible  <bruno@clisp.org>
89538
89539         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89540
89541 2004-10-04  Simon Josefsson  <jas@extundo.com>
89542
89543         * modules/memmem: New file.
89544         * tests/test-memmem.c: New file.
89545         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89546
89547 2004-10-04  Simon Josefsson  <jas@extundo.com>
89548
89549         * m4/memmem.m4: New file.
89550
89551 2004-10-04  Simon Josefsson  <jas@extundo.com>
89552
89553         * lib/memmem.h: New file.
89554         * lib/memmem.c: New file, taken from glibc.
89555
89556 2004-10-04  Simon Josefsson  <jas@extundo.com>
89557
89558         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89559         '#ifdef USE_UNLOCKED_IO'.
89560
89561 2004-10-04  Simon Josefsson  <jas@extundo.com>
89562
89563         * config/srclist.txt: Add memmem from glibc.
89564
89565 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89566
89567         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89568
89569         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89570         modules/exclude, modules/getdate, modules/getline,
89571         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89572         modules/getusershell, modules/linebuffer, modules/md5,
89573         modules/mountlist, modules/posixtm, modules/readtokens,
89574         modules/readutmp, modules/regex, modules/sha1,
89575         modules/version-etc, modules/yesno:
89576         Remove dependency on unlocked-io.
89577
89578 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89579
89580         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89581
89582         * m4/unlocked-io.m4: Add copyright notice.
89583         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89584
89585 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89586
89587         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89588         * lib/xmalloc.c (xmemdup): Likewise.
89589         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89590         XFREE): Remove these long-obsolescent macros.
89591         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89592         * lib/xstrdup.c: Remove.
89593
89594         * lib/regex.c (re_comp): Cast gettext return value to char *,
89595         Problem reported by Martin Neitzel via Mark D. Baushke.
89596
89597 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89598
89599         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89600         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89601         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89602         regex.c, sha1.c, version-etc.c, yesno.c:
89603         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89604         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89605         the includer's responsibility.
89606
89607         Sync from coreutils.
89608
89609         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89610         points to the start of a string, as the C Standard says the
89611         resulting behavior is undefined.
89612
89613         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89614         simple -> simple_backups, numbered_existing ->
89615         numbered_existing_backups, numbered -> numbered_backups
89616         to avoid shadowing problems.  All uses changed.
89617         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89618         * lib/backupfile.c (check_extension, numbered_backup):
89619         Rename locals to avoid shadowing 'basename'.
89620         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89621         once.
89622
89623         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89624         * lib/.cvsignore: Add getopt.h.
89625
89626 2004-10-04  Bruno Haible  <bruno@clisp.org>
89627
89628         * modules/README: New file.
89629         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89630         not a module.
89631
89632 2004-10-02  Jim Meyering  <jim@meyering.net>
89633
89634         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89635
89636 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89637
89638         * modules/strsep: New file.
89639
89640 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89641
89642         * m4/strsep.m4: New file.
89643
89644 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89645
89646         * lib/strsep.h: New file.
89647         * lib/strsep.c: New file.
89648
89649 2004-10-01  Simon Josefsson  <jas@extundo.com>
89650
89651         * lib/snprintf.c (snprintf): Handle size==0.
89652
89653 2004-10-01  Simon Josefsson  <jas@extundo.com>
89654             Bruno Haible  <bruno@clisp.org>
89655
89656         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89657         (snprintf): Declare 'args'.
89658
89659 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89660
89661         * lib/snprintf.c: Remove comments as to why each header is needed.
89662
89663 2004-10-01  Bruno Haible  <bruno@clisp.org>
89664
89665         * MODULES.html.sh: Add strsep.
89666
89667 2004-09-30  Simon Josefsson  <jas@extundo.com>
89668
89669         * modules/snprintf: New file.
89670
89671 2004-09-30  Simon Josefsson  <jas@extundo.com>
89672
89673         * m4/snprintf.m4: New file.
89674
89675 2004-09-30  Simon Josefsson  <jas@extundo.com>
89676
89677         * lib/snprintf.h, lib/snprintf.c: New files.
89678
89679 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89680
89681         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89682         (hol_entry_help): Never translate an empty string.
89683         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89684         * lib/argp.h (OPTION_NO_TRANS): New option.
89685
89686 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89687
89688         * modules/argp (Maintainer): Replace Simon Josefsson
89689         by Sergey Poznyakoff.
89690
89691 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89692
89693         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89694         changes merged back into glibc.
89695
89696 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89697
89698         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89699
89700 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89701
89702         * lib/xvasprintf.c: Include xalloc.h.
89703         (xvasprintf): Use xalloc_die, not xmalloc_die.
89704
89705 2004-09-29  Bruno Haible  <bruno@clisp.org>
89706
89707         * modules/alloca-opt: New file, derived from modules/alloca.
89708         * modules/allocsa: Depend on alloca-opt instead of alloca.
89709         * modules/setenv: Likewise.
89710         * modules/vasnprintf: Likewise.
89711         * MODULES.html.sh: Add alloca-opt.
89712
89713 2004-09-28  Simon Josefsson  <jas@extundo.com>
89714
89715         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89716         LGPL, and to replace license template from GPL to LGPL.
89717
89718 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89719
89720         * modules/dummy: Change license to LGPL.
89721
89722 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89723
89724         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89725
89726 2004-09-24  Simon Josefsson  <jas@extundo.com>
89727
89728         * modules/minmax (License): Change from GPL to LGPL.
89729
89730 2004-09-23  Simon Josefsson  <jas@extundo.com>
89731
89732         * gnulib-tool (--import): Typo.
89733
89734 2004-09-23  Simon Josefsson  <jas@extundo.com>
89735
89736         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89737
89738 2004-09-22  Bruno Haible  <bruno@clisp.org>
89739
89740         * modules/*: Add 'License' field.
89741         * gnulib-tool: Accept --extract-license option.
89742         (func_get_license): New function.
89743
89744 2004-09-21  Bruno Haible  <bruno@clisp.org>
89745
89746         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89747         Reported by Simon Josefsson.
89748
89749 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89752         gl_AC_TYPE_LONG_LONG.
89753
89754 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89755
89756         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89757
89758 2004-09-18  Simon Josefsson  <jas@extundo.com>
89759         and  Paul Eggert  <eggert@cs.ucla.edu>
89760
89761         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89762         calls with autoreconf.  Define GL_LIB.
89763
89764 2004-09-14  Karl Berry  <karl@gnu.org>
89765
89766         * config/srclist.txt: unsync setenv.c, sigh.
89767
89768 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89769
89770         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89771         Problem reported by Bruno Haible in:
89772         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89773
89774 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89775
89776         * config/srclist.txt: Comment out argp-pvh.c.
89777
89778 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89779
89780         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89781         in case some system header has #define'd it.  Problem reported by
89782         Soeren D. Schulze in
89783         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89784
89785 2004-09-09  Karl Berry  <karl@gnu.org>
89786
89787         * regex.[ch]: delete from the root.  These were supposed to be
89788                 synced with emacs cvs, but this has not happened for about
89789                 a year, and anyway nothing else uses emacs regex.[ch].
89790                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89791                 lib/regex[.ch] is untouched.
89792
89793 2004-09-09  Bruno Haible  <bruno@clisp.org>
89794
89795         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89796
89797 2004-09-09  Bruno Haible  <bruno@clisp.org>
89798
89799         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89800         modifications.
89801         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89802
89803 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89804
89805         * modules/xvasprintf: New file.
89806         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89807
89808 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89809
89810         * lib/xvasprintf.h: New file.
89811         * lib/xvasprintf.c: New file.
89812         * lib/xasprintf.c: New file.
89813
89814 2004-09-08  Bruno Haible  <bruno@clisp.org>
89815
89816         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89817
89818 2004-09-08  Bruno Haible  <bruno@clisp.org>
89819
89820         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89821         length is > INT_MAX.
89822         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89823         more.
89824
89825 2004-09-08  Bruno Haible  <bruno@clisp.org>
89826
89827         * lib/stdint_.h: New file, taken from GNU clisp.
89828
89829 2004-09-08  Bruno Haible  <bruno@clisp.org>
89830             Oskar Liljeblad  <oskar@osk.mine.nu>
89831
89832         * modules/stdint: New file.
89833         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89834
89835 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89836
89837         Import from coreutils.
89838         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89839         strings on unbounded length.  alloca's performance benefits aren't
89840         that important here.
89841         (V_STRDUP): Remove.
89842         (parse_with_separator): New function, with most of the internals
89843         of the old parse_user_spec.  Allow user to omit both user and group,
89844         for compatibility with FreeBSD.
89845         Clone only the user name, not the entire spec.
89846         Do not set *uid, *gid unless entirely successful.
89847         Avoid memory leak in some failing cases.
89848         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89849         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89850         (parse_user_spec): Rewrite to use parse_with_separator.
89851
89852 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89853
89854         * modules/userspec: Don't depend on alloca.
89855
89856 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89857
89858         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89859
89860 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89861
89862         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89863         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89864         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89865
89866 2004-08-16  Simon Josefsson  <jas@extundo.com>
89867
89868         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89869         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89870         Add --dry-run for --import.
89871         Let user provided command line parameters override configure.ac
89872         settings.
89873
89874 2004-08-12  Simon Josefsson  <jas@extundo.com>
89875
89876         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89877         as discussed with Paul Eggert in threads rooted at
89878         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89879         and
89880         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89881         Before, the test was empty, and relied on ELIDE_CODE in source
89882         code.)
89883         (gl_PREREQ_GETOPT): New macro.
89884         (gl_GETOPT): Use them.
89885
89886 2004-08-12  Simon Josefsson  <jas@extundo.com>
89887
89888         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89889         * lib/getopt_.h: Renamed from getopt.h.
89890
89891 2004-08-12  Simon Josefsson  <jas@extundo.com>
89892
89893         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89894         Change default library name from libfoo to libgnu.
89895         Now, if you have a configure.ac that says:
89896                 gl_SOURCE_BASE(gl)
89897                 gl_M4_BASE(gl/m4)
89898                 gl_MODULES(error getopt etcetera)
89899                 gl_INIT
89900         you can import all you need by running:
89901                 ../gnulib/gnulib-tool --import
89902
89903         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89904         (Makefile.am): Rewrite, use logic from argz.
89905         (Include): Use <getopt.h> instead of "getopt.h".
89906
89907 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89908
89909         * modules/argp (Files): Add m4/unlocked-io.m4.
89910         (Depends-on): Add extensions.
89911
89912 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89913
89914         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89915         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89916         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89917         Check for program_invocation_name, program_invocation_short_name,
89918         flockfile, funlockfile, features.h, _getopt_long_only_r.
89919
89920 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89921
89922         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89923         its complicated substitute.
89924         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89925         and program_invocation_name.
89926         (__argp_basename) [!_LIBC]: Remove; the only use was
89927         replaced by its body.
89928         (__argp_short_program_name): Change condition from
89929         !defined __argp_short_program_name to
89930         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89931         to match argp-namefrob.h.
89932         (__argp_failure): Don't assume strerror_r returns char *.
89933         * lib/argp-parse.c (N_): Define unconditionally.
89934         (argp_default_options): Fill out initializers with 0 to avoid
89935         gcc warnings.
89936
89937 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89938
89939         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89940         getopt1.c.
89941
89942 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89943
89944         Merge from coreutils.
89945
89946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89947
89948         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89949         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89950
89951 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89952
89953         Merge from coreutils.
89954
89955         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89956         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89957         for Reliant Unix 5.43.
89958
89959         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89960         (union fooround): Use uintmax_t, not long int.
89961         The rest is a merge from libc:
89962         [defined _LIBC]: Include <shlib-compat.h>.
89963         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89964
89965         * lib/settime.c (settime): Recode to avoid warning with
89966         Sun Forte C 6U2.
89967
89968         * lib/strverscmp.c: Convert to UTF-8.
89969
89970 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89971
89972         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89973         m4/uintmax_t.m4.
89974
89975 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89976
89977         * modules/xalloc-die: New file.
89978         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89979
89980         * modules/md5 (Files): Add m4/uint32_t.m4.
89981         * modules/sha1: Renamed from modules/sha.
89982         (Files):
89983         Rename lib/sha.h to lib/sha1.h.
89984         Rename lib/sha.c to lib/sha1.c.
89985         Rename m4/sha.m4 to m4/sha1.m4.
89986         (lib_SOURCES): Likewise.
89987         (configure.ac): Rename gl_SHA to gl_SHA1.
89988         (Include): sha.h -> sha1.h.
89989
89990 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89991
89992         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89993         * m4/sha1.m4: Renamed from sha.m4.
89994         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89995
89996 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89997
89998         * lib/obstack.h (obstack_empty_p):
89999         Don't assume that chunk->contents is suitably aligned.
90000         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90001         Likewise. Problem reported by Benno in
90002         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90003
90004         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90005         readable.  This could be improved further but it'd take some work.
90006
90007 2004-08-08  Simon Josefsson  <jas@extundo.com>
90008
90009         * modules/xgethostname (Depends-on): Remove exit and error (not
90010         used).
90011
90012         * modules/getpass-gnu: Add getpass.h.
90013         (Depends-on): Add stdbool.
90014         * modules/getpass: Add getpass.h.
90015
90016 2004-08-08  Simon Josefsson  <jas@extundo.com>
90017
90018         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90019         Check getpass declaration.
90020
90021 2004-08-08  Simon Josefsson  <jas@extundo.com>
90022
90023         * lib/xgethostname.c: Don't include error.h (not used).
90024
90025         * lib/getpass.h: Add.
90026         * lib/getpass.c: Include getpass.h first.
90027
90028 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90029
90030         * lib/xalloc-die.c: New file.
90031         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90032         All uses removed.
90033         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90034         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90035         xalloc-die.c.
90036         (_, N_, xalloc_die): Move to xalloc-die.c.
90037         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90038         so that we needn't mess with xalloc_msg_memory_exhausted.
90039
90040         * lib/sha1.h: Renamed from sha.h.
90041         (SHA1_H): Renamed from _SHA_H.
90042         (sha1_ctx): Renamed from sha_ctx.
90043         (sha1_init_ctx): Renamed from sha_init_ctx.
90044         (sha1_process_block): Renamed from sha_process_block.
90045         (sha1_process_bytes): Renamed from sha_process_bytes.
90046         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90047         (sha1_read_ctx): Renamed from sha_read_ctx.
90048         (sha1_stream): Renamed from sha_stream.
90049         (sha1_buffer): Renamed from sha_buffer.
90050         * lib/sha1.c: Likewise; renamed from sha.c.
90051         Do not include <sys/types.h>.
90052         Include <stddef.h> rather than <stdlib.h>.
90053
90054 2004-08-08  Bruno Haible  <bruno@clisp.org>
90055
90056         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90057         FILESYSTEM_PREFIX_LEN.
90058         * lib/progreloc.c: Likewise.
90059         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90060
90061 2004-08-06  Simon Josefsson  <jas@extundo.com>
90062
90063         * modules/progname (Depends-on): Don't depend on stdbool.
90064
90065 2004-08-06  Simon Josefsson  <jas@extundo.com>
90066
90067         * modules/getsubopt: New file.
90068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90069         getsubopt.
90070
90071 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         More merge from coreutils.
90074
90075         * m4/utimens.m4, m4/utimecmp.m4: New files.
90076         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90077         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90078         prereq.m4, sha.m4: Import changes from coreutils.
90079
90080 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90081
90082         More merge from coreutils.
90083         * modules/raise, modules/readtokens0, modules/utimens:
90084         * modules/utimecmp, module/xnanosleep: New files.
90085         * modules/strftime: Add lib/strftime.h.
90086         Change include from <time.h> to "strftime.h".
90087         * modules/yesno: Add lib/yesno.h.
90088         * modules/backupfile: Remove lib/addext.c.
90089         * modules/euidaccess: Add stat-macros.h.
90090         * modules/canonicalize, modules/euidaccess,
90091         modules/filemode, modules/lchown, modules/makepath,
90092         modules/rmdir, modules/stat: Likewise.
90093
90094 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90095
90096         Merge from tar.
90097         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90098         SIZE_MAX is a valid preprocessor constant.
90099         (__argp_basename): Change from "#ifndef _LIBC"
90100         to "#ifndef __argp_short_program_name", so that
90101         we don't compile these functions for tar.
90102
90103         More merges from coreutils.
90104         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90105         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90106         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90107         * lib/addext.c: Remove; no longer needed.
90108         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90109         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90110         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90111         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90112         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90113         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90114         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90115         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90116         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90117         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90118         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90119         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90120         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90121         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90122         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90123         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90124         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90125         Import changes from coreutils.
90126
90127 2004-08-05  Simon Josefsson  <jas@extundo.com>
90128
90129         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90130
90131 2004-08-05  Simon Josefsson  <jas@extundo.com>
90132
90133         * m4/getsubopt.m4: New file.
90134
90135 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90136
90137         Merge from coreutils.
90138
90139         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90140         * m4/getcwd-path-max.m4: New files.
90141
90142         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90143         FILESYSTEM_PREFIX_LEN ->
90144         FILE_SYSTEM_PREFIX_LEN.
90145         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90146         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90147         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90148         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90149
90150         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90151         prerequisite modules now handle the DOS stuff.
90152         Don't check for unistd.h.
90153
90154 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90155
90156         Merge from coreutils.
90157
90158         * lib/.gdb-history: Remove; this doesn't belong here.
90159
90160         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90161         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90162         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90163         * lib/getcwd.c: New files.
90164
90165         * lib/dirname.h: Include <stdbool.h>.
90166         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90167         for consistency with POSIX terminology.  All uses changed.
90168         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90169         (strip_trailing_slashes): Use bool for booleans.
90170         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90171
90172         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90173         sometimes returns a positive errno value even when it succeeds.
90174         (print_errno_message) [!LIBC]: Fall back on strerror if
90175         __strerror_r fails.
90176
90177         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90178         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90179         (longest_relative_suffix): New function.
90180         (path_concat): Use it.  Assume first argument is not NULL.
90181         Port to DOS.  Omit redundant separators.
90182         Report an error instead of returning NULL.
90183         Use mempcpy instead of memcpy.
90184         (xpath_concat): Remove: not declared or used.
90185
90186         * lib/same.h: Include <stdbool.h>
90187         (same_name): Return bool, not int.
90188         * lib/same.c (same_name): Likewise.
90189         (errno): Don't declare; we assume C89 or better now.
90190
90191         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90192         if not already defined.
90193
90194         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90195         * lib/dup-safer.c (errno): Likewise.
90196
90197 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90198
90199         Merge from coreutils.
90200         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90201         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90202         * modules/path-concat: Don't depend on strdup.
90203
90204 2004-08-03  Simon Josefsson  <jas@extundo.com>
90205
90206         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90207         * lib/progname.h: Don't include stdbool.h.
90208
90209 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90210
90211         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90212         * MODULES.html.sh (func_all_modules): Remove fatal.
90213
90214 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90215
90216         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90217
90218 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90219
90220         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90221         working.
90222
90223 2004-08-02  Simon Josefsson  <jas@extundo.com>
90224
90225         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90226         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90227         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90228
90229 2004-08-01  Simon Josefsson  <jas@extundo.com>
90230
90231         * lib/xgetdomainname.c: Include stdlib.h, for free().
90232
90233 2004-07-19  Bruno Haible  <bruno@clisp.org>
90234
90235         * MODULES.html.sh (func_all_modules): Add dummy.
90236
90237 2004-07-16  Simon Josefsson  <jas@extundo.com>
90238
90239         * modules/dummy: New file.
90240
90241 2004-07-16  Simon Josefsson  <jas@extundo.com>
90242
90243         * lib/dummy.c: New file.
90244
90245 2004-07-16  Bruno Haible  <bruno@clisp.org>
90246
90247         * lib/backupfile.h: Add extern "C" for C++.
90248         * lib/closeout.h: Likewise.
90249         * lib/copy-file.h: Likewise.
90250         * lib/findprog.h: Likewise.
90251         * lib/full-write.h: Likewise.
90252         * lib/pathname.h: Likewise.
90253         * lib/progname.h: Likewise.
90254         * lib/stpcpy.h: Likewise.
90255         * lib/stpncpy.h: Likewise.
90256         * lib/strcase.h: Likewise.
90257         * lib/strstr.h: Likewise.
90258         * lib/xalloc.h: Likewise.
90259
90260         * lib/mbswidth.h: Add extern "C" for C++.
90261         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90262
90263 2004-07-13  Robert Millan  <robertmh@gnu.org>
90264
90265         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90266
90267 2004-07-09  Simon Josefsson  <jas@extundo.com>
90268
90269         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90270         failed without this.)
90271
90272 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90273
90274         * modules/chown (Files): Add lib/fchown-stub.c, since
90275         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90276
90277 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90278
90279         * lib/fchown-stub.c: New file.
90280
90281 2004-06-24  Jim Meyering  <jim@meyering.net>
90282
90283         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90284
90285 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90286
90287         * modules/argz: Omit "#include".
90288
90289         * MODULES.html.sh (func_all_modules): Add calloc, to match
90290         2004-06-01 addition of calloc module.
90291
90292 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90293
90294         * m4/argz.m4: New file, which is autoupdated from libtool.
90295
90296 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90297
90298         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90299         libtool.
90300
90301 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90302
90303         * config/srclist-update: Don't insist on "USA." before the
90304         close-comment, as libtool omits the period and puts the */ on a
90305         separate line.
90306         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90307         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90308
90309 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90310
90311         * modules/argz: New file.
90312         * MODULES.html.sh (func_all_modules): Add argz.
90313
90314 2004-06-12  Jim Meyering  <jim@meyering.net>
90315         and  Paul Eggert  <eggert@cs.ucla.edu>
90316
90317         * modules/hash (Files): Add lib/xalloc.h.
90318         * modules/pipe (Depends-on): Add wait-process.
90319         * modules/stat (Depends-on): Add xalloc.
90320         * modules/userspec (Files): Add lib/userspec.h.
90321         * modules/xstrto
90322
90323         Upgrade from gettext-0.13.
90324         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90325         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90326         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90327
90328 2004-06-10  Jim Meyering  <jim@meyering.net>
90329
90330         * lib/calloc.c: New file.
90331
90332 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90333
90334         * lib/getdate.y (yylex): Allow space between sign and number.
90335         Problem reported by Dan Jacobson.
90336
90337 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90338
90339         Merge from coreutils CVS.
90340
90341         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90342         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90343         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90344         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90345         xstrtol.m4: Fix copyright date and/or serial number.
90346
90347         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90348         See if we need an fchown replacement.
90349         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90350         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90351         and use the replacement function if we detect either defect.
90352
90353         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90354         gl_UTIMECMP.
90355
90356 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90357         and  Jim Meyering  <jim@meyering.net>
90358
90359         Merge from coreutils CVS.
90360
90361         * lib/stat-macros.h: New file, with contents from file-type.h
90362         and coreutils' system.h.
90363         * lib/file-type.c: Include "stat-macros.h".
90364         * lib/file-type.h (file_type): Move all macro definitions to new file,
90365         stat-macros.h.
90366
90367         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90368         Wrap old code with this conditional.
90369         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90370         function that does not dereference symlinks.
90371         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90372
90373         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90374         dependency problems.
90375         (xreadlink): Accept new arg SIZE, for efficiency.
90376         All decls and uses changed.
90377         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90378
90379         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90380         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90381
90382         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90383         sysexits.h.
90384
90385 2004-06-01  Jim Meyering  <jim@meyering.net>
90386
90387         * m4/calloc.m4: New file.
90388
90389 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90390
90391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90392         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90393         Also, fix a typo in a diagnostic.
90394
90395 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90396
90397         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90398         or AC_FUNC_REALLOC.
90399
90400 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90401
90402         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90403         macros to be defined.
90404         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90405         the allocator returns NULL because the requested size is zero.
90406
90407 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90408
90409         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90410         var.  Add comment explaining why libc still defines it.  This
90411         merges the following patch from glibc:
90412         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90413
90414 2004-05-20  Andreas Schwab  <schwab@suse.de>
90415
90416         * m4/free.m4: Replace free if it not known to work, not the other
90417         way round.
90418
90419 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90420
90421         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90422         present in glibc since revision 1.1 of this file.
90423         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90424         obstack_alignment_mask, obstack_alloc, obstack_base,
90425         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90426         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90427         obstack_grow0, obstack_init, obstack_int_grow,
90428         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90429         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90430         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90431         nonexistent functions.
90432
90433 2004-05-18  Karl Berry  <karl@gnu.org>
90434
90435         * config/srclist.txt: break link for vasnprintf.c.
90436
90437 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90438
90439         Port obstack to the AS/400, where pointers are 16 bytes wide and
90440         you cannot cast an integer to a valid pointer.  This patch is
90441         currently waiting to be integrated into glibc; see
90442         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90443
90444         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90445         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90446         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90447         (struct obstack): temp member is now a union of a pointer and
90448         an integer, instead of an integer.  All integer uses changed.
90449         This does not affect the physical layout of struct obstack,
90450         except on hosts (like the AS/400) where the size or alignment of
90451         void * is greater than that of ptrdiff_t.
90452         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90453         __STDC__)]: Store temporary in pointer member of union, not
90454         integer member.
90455         * lib/obstack.c: Include <stddef.h>, for offsetof.
90456         (struct fooalign): Remove; it doesn't need a name.
90457         (union fooround): Change double to long double, and add void *.
90458         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90459         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90460         not a macro.  Hence the values are always int; so remove all
90461         casts-to-int in uses.
90462
90463 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90464
90465         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90466         we can get this patch merged into glibc.
90467
90468 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90469             Paul Eggert  <eggert@cs.ucla.edu>
90470
90471         * m4/argp: Depend on alloca.
90472
90473 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90474             Paul Eggert  <eggert@cs.ucla.edu>
90475
90476         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90477         freecoding.
90478
90479 2004-05-17  Bruno Haible  <bruno@clisp.org>
90480
90481         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90482         precision that consists of a '.' followed by an empty digit string.
90483         Patch by Tor Lillqvist <tml@iki.fi>.
90484
90485 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90486
90487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90488         for backward compatibility with older code.  We need our own
90489         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90490         it under some other name, and our alloca.h will define it.
90491
90492 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90493             Derek Price  <derek@ximbiot.com>
90494
90495         * lib/alloca.c: Include <alloca.h>, to get our interface.
90496         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90497         include <alloca.h> first.  Use C89 prototype for alloca; this
90498         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90499         Use #elif for simplicity, since we can assume C89 now.
90500         Don't try to source the system alloca.h since it will not be found
90501         and to prevent recursively including its replacement.
90502         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90503         * lib/regex.c: Likewise.
90504
90505 2004-05-16  Derek Price  <derek@ximbiot.com>
90506             Paul Eggert  <eggert@cs.ucla.edu>
90507
90508         getline cleanup.  This changes the getndelim2 API: both order of
90509         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90510         no delimiter).
90511
90512         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90513         interface does that.
90514         (getline): Always use getdelim, so that we don't have two
90515         copies of this code.
90516         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90517         if available.
90518         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90519         (GETNDELIM2_MAXIMUM): New macro.
90520         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90521         instead of the old practice of delim2==0.  All callers changed.
90522         Return -1 on overflow, instead of returning junk.
90523         Do not set *linesize unless allocation succeeds.
90524         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90525         that we include sys/types.h.
90526         * lib/getnline.h: Likewise.
90527         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90528         (getndelim2): Reorder arguments.
90529         * lib/getnline.c (getnline, getndelim):
90530         Don't discard the NMAX argument.
90531         (getnline): Invoke getndelim, to avoid code duplication.
90532         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90533         of (size_t) -1 by callers of the getnline family.
90534
90535 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90536
90537         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90538         Check for gettimeofday.
90539         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90540         Check for settimeofday, stime.
90541
90542 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90543
90544         * lib/nanosleep.c (suspended): Change its type from int to
90545         sig_atomic_t volatile.
90546         (first_call): Make it private to rpl_nanosleep, and have it
90547         be zero initially as that's a bit faster.
90548         (my_usleep): Round up fractional times instead of truncating them,
90549         as this is the usual meaning for 'sleep'.
90550
90551         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90552         doesn't work.
90553         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90554         (ENOSYS): Define if not defined.
90555         (settime): Fall back on stime if it exists and settimeofday fails.
90556         But don't bother with fallbacks if a method fails with errno == EPERM.
90557
90558 2004-05-11  Jim Meyering  <jim@meyering.net>
90559
90560         Prior to this change, the save_cwd caller required read access to the
90561         current directory on most systems (ones with the fchdir function).
90562
90563         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90564         fails, try write-only, and finally, resort to using xgetcwd.
90565
90566 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90567
90568         * lib/obstack.c, obstack.h: Import changes from libc.
90569
90570 2004-04-28  Bruno Haible  <bruno@clisp.org>
90571
90572         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90573         also implicitly appends .exe to executables.
90574         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90575         accepts Windows pathnames.
90576         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90577         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90578         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90579         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90580         Reported by Derek Robert Price <derek@ximbiot.com>.
90581
90582 2004-04-21  Karl Berry  <karl@gnu.org>
90583
90584         * config/srclist.txt (localcharset.c): break sync.
90585
90586 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90587
90588         * m4/host-os.m4: Add a copyright notice.
90589
90590 2004-04-20  Jim Meyering  <jim@meyering.net>
90591
90592         Change UTILS_ to gl_ in AC_DEFINE'd names.
90593         Change utils_- and jm_-prefixed variables, too.
90594         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90595         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90597
90598         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90599         Don't emit trailing blanks.
90600         Also rename jm_-prefixed variables to have gl_ prefix.
90601
90602         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90603         Also rename jm_-prefixed variables to have gl_ prefix.
90604
90605         * m4/jm-macros.m4: Reflect the renamings.
90606         * m4/prereq.m4: Likewise.
90607
90608 2004-04-20  Jim Meyering  <jim@meyering.net>
90609
90610         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90611         memory.
90612
90613 2004-04-20  Jim Meyering  <jim@meyering.net>
90614             Bruno Haible  <bruno@clisp.org>
90615
90616         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90617         memory when realloc fails.
90618
90619 2004-04-19  Jim Meyering  <jim@meyering.net>
90620
90621         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90622         now that readutmp.c may call `free (0)'.
90623
90624 2004-04-19  Bruno Haible  <bruno@clisp.org>
90625
90626         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90627         * m4/inttypes_h.m4: Likewise.
90628         * m4/stdint_h.m4: Likewise.
90629         * m4/intmax_t.m4: Likewise.
90630         * m4/uintmax_t.m4: Likewise.
90631
90632 2004-04-18  Jim Meyering  <jim@meyering.net>
90633
90634         * m4/prereq.m4: Don't forbid jm_ prefix.
90635
90636         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90637         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90638         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90639         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90640         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90641         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90642         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90643         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90644         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90645         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90646         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90647         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90648         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90649         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90650         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90651         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90652         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90653         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90654         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90655
90656 2004-04-18  Jim Meyering  <jim@meyering.net>
90657
90658         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90659         failure, don't leak memory and do call END_UTMP_ENT.
90660
90661 2004-04-16  Jim Meyering  <jim@meyering.net>
90662
90663         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90664         coreutils' stat program.
90665         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90666
90667 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90668
90669         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90670         C89.
90671         (CHAR_BIT): Remove, since we assume C89.
90672         Include <stdint.h> if available, as per current Autoconf CVS advice.
90673
90674 2004-03-31  Jim Meyering  <jim@meyering.net>
90675
90676         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90677         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90678         * m4/xalloc.m4: Likewise.
90679
90680 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90681
90682         Merge from coreutils.
90683
90684         * m4/inttostr.m4: New file.
90685         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90686         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90687         Require gl_CLOCK_TIME.
90688         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90689
90690 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90691
90692         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90693         not bool, to be more consistent with Unix conventions.
90694         Suggested by Bruno Haible.
90695
90696         Merge from coreutils.
90697
90698         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90699         * lib/umaxtostr.c: New files.
90700
90701         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90702         the usual <time.h> dance.
90703         (get_date): Change signature to support fractional time stamps.
90704         All callers changed.
90705         * lib/getdate.y: Include "getdate.h" first, as we can now
90706         assume C89 and don't need to worry about 'const'.
90707         Similarly, include "unlocked-io.h" near start, not in middle.
90708         Include <limits.h>.
90709         (textint.value): Use long int rather than int.
90710         (textint.digits): Use size_t rather than int.
90711         (BILLION, LOG10_BILLION): New constants.
90712         (parser_control): New member rel_ns.  Members day_ordinal,
90713         time_zone, month, day, hour, minutes, rel_year, rel_month,
90714         rel_day, rel_hour, rel_minutes, rel_seconds
90715         are now long int, not int.  Member seconds is now struct timespec,
90716         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90717         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90718         not int.
90719         (%union.intval): Now long int, not int.
90720         New member timespec.
90721         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90722         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90723         (spec): Now is a timespec or an item list.
90724         (timespec, items): New nonterminals.
90725         (time, rel, relunit, number, get_date):
90726         Add support for fractional seconds.
90727         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90728         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90729         (to_hour): First arg is now long int, not int.
90730         (to_year): Returns long int, not int.
90731         Don't treat year -70 like 70.
90732         (tm_diff): Returns long int, not int.
90733         (lookup_word): Use bool instead of int when appropriate.
90734         (yylex): Use size_t for count, not int.
90735         Detect overflow when parsing large integer constants.
90736         Add support for fractions.
90737         (get_date): Make pointers 'const' if possible.
90738         Use more-portable code to detect integer overflow.
90739         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90740         Don't use ctime; it's not reliable if the year has >4 digits.
90741
90742         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90743         This is for compatibility with BSD.
90744
90745         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90746         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90747         From coreutils' system.h.
90748
90749         * lib/userspec.c: Don't include "posixver.h".
90750         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90751         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90752         compatible extension.  Simplify code by removing a boolean int
90753         that was always nonzero if a string was nonnull.
90754
90755 2004-03-30  Jim Meyering  <jim@meyering.net>
90756
90757         Merge from coreutils.
90758
90759         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90760         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90761         on some systems one must include <grp.h> before it.
90762         Reported by Christian Krackowizer.
90763
90764 2004-03-30  Jim Meyering  <jim@meyering.net>
90765
90766         Merge from coreutils.
90767
90768         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90769
90770         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90771         an empty input stream.
90772
90773         * lib/readtokens.c: Include <stdbool.h>.
90774         (readtoken): Use `size_t' rather than int/long.
90775         All callers adjusted.
90776         Use `bool' rather than `int' where appropriate.
90777         Use memset rather than an explicit loop.
90778         Use x2nrealloc rather than xrealloc.
90779         Allow the use of `\0' as a delimiter.
90780         (readtokens): Likewise.
90781         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90782
90783 2004-03-30  Jim Meyering  <jim@meyering.net>
90784
90785         * m4/realloc.m4: Remove file, since now it does no more than
90786         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90787         the `configure.ac' section of module/realloc.
90788         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90789
90790 2004-03-30  Bruno Haible  <bruno@clisp.org>
90791
90792         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90793         nonnull.
90794
90795 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90796
90797         Merge changes to getloadavg.c from coreutils and Emacs.
90798
90799         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90800         Define to an expression, not to the empty string.
90801         Include cloexec.h and xalloc.h.
90802         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90803         Use set_cloexec_flag rather than rolling our own.
90804         * lib/cloexec.c, lib/cloexec.h: New files.
90805
90806 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90807
90808         * m4/cloexec.m4: New file.
90809
90810 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90811
90812         * lib/getopt.h: Sync with libc CVS.
90813
90814 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90815             Bruno Haible  <bruno@clisp.org>
90816
90817         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90818         mbswidth.
90819
90820 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90821             Bruno Haible  <bruno@clisp.org>
90822
90823         * lib/mbswidth.h: Include <wchar.h> only if
90824         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90825         <wchar.h>.
90826         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90827
90828 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90829
90830         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90831         Sync with libc CVS.
90832         * lib/getopt_int.h: New file, also synced from libc.
90833
90834 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90835
90836         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90837         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90838         Bring back getopt.c, getopt.h, getopt1.c.
90839
90840 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90841
90842         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90843         All uses changed.  Check for sa_sigaction member; this fixes
90844         a bug first reported by Jason Andrade in
90845         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90846
90847 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90848
90849         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90850         '#if' expressions.  Unlike the code it replaces, it does not
90851         depend on (defined _SC_PAGESIZE).  However, it does depend on
90852         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90853         first reported by Jason Andrade in
90854         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90855
90856 2004-02-25  Simon Josefsson  <jas@extundo.com>
90857
90858         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90859
90860 2004-02-25  Simon Josefsson  <jas@extundo.com>
90861
90862         * lib/strdup.h: New file.
90863         * lib/strdup.c: Include it.
90864         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90865         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90866
90867 2004-02-23  Karl Berry  <karl@gnu.org>
90868
90869         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90870         (from fencepost.gnu.org:/gd/gnuorg).
90871
90872 2004-02-23  Karl Berry  <karl@gnu.org>
90873
90874         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90875         * config/srclist.txt: add maintain/standards documents.
90876
90877 2004-02-18  Bruno Haible  <bruno@clisp.org>
90878
90879         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90880         Reported by Derek Robert Price <derek@ximbiot.com>.
90881
90882 2004-02-16  Karl Berry  <karl@gnu.org>
90883
90884         * config/mkinstalldirs, install-sh: update from automake.
90885
90886 2004-02-06  Karl Berry  <karl@gnu.org>
90887
90888         * m4/po.m4: update from gettext 0.14.1.
90889
90890 2004-02-06  Karl Berry  <karl@gnu.org>
90891
90892         * lib/config.charset: update from gettext 0.14.1.
90893
90894 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90895
90896         Add comments and code, prompted by suggestions from Bruno Haible
90897         for sh-quote.
90898         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90899         describing the enum quoting_style values.
90900         * lib/quotearg.c (quotearg_alloc): New function.
90901         (quotearg_buffer_restyled): Treat lone { and } as special.
90902         Treat = as special.  Work around bug with older shells
90903         that "see" a '\' that is really the 2nd byte of a multibyte char.
90904         Quote empty string with shell_quoting_style.
90905
90906 2004-02-03  Bruno Haible  <bruno@clisp.org>
90907
90908         * m4/pipe.m4: New file, from GNU gettext.
90909
90910 2004-02-03  Bruno Haible  <bruno@clisp.org>
90911
90912         * lib/pipe.h: New file, from GNU gettext.
90913         * lib/pipe.c: New file, from GNU gettext.
90914
90915 2004-01-27  Bruno Haible  <bruno@clisp.org>
90916
90917         * m4/execute.m4: New file, from GNU gettext.
90918
90919 2004-01-27  Bruno Haible  <bruno@clisp.org>
90920
90921         * lib/execute.h: New file, from GNU gettext.
90922         * lib/execute.c: New file, from GNU gettext.
90923         * lib/w32spawn.h: New file, from GNU gettext.
90924
90925 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90926
90927         Merge from diffutils.
90928
90929         * lib/file-type.c (file_type): Add typed memory objects.
90930         * lib/file-type.h (S_TYPEISTMO): New macro.
90931
90932         * lib/c-stack.h (c_stack_action): Remove argv argument.
90933         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90934         (die): Don't calculate message unless segv_action returns.
90935         (get_stack_location, min_address_from_argv, max_address_from_argv,
90936         volatile stack_base, volatile_stack_size): Remove.
90937         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90938         that every segmentation violation is a stack overflow.  (Ouch!)
90939         See Debian bug 136249 (still outstanding) for more info about why
90940         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90941
90942 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90943
90944         Exit-status fix from coreutils.
90945
90946         Use exit_failure consistently in place of EXIT_FAILURE,
90947         so that program exit statuses are consistent on failure.
90948
90949         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90950         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90951         * lib/argmatch.h: Comment fix to match the above.
90952         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90953         Now a macro referring to exit_failure, instead of a separate
90954         variable.  Include "exitfail.h" to get it.
90955         * lib/xstrtol.h: Include "exitfail.h".
90956         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90957
90958         * lib/long-options.c (parse_long_options): Use prototype
90959         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90960         for clarity.
90961
90962 2004-01-21  Jim Meyering  <jim@meyering.net>
90963
90964         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90965         so as not to conflict with a different-sized __mktime_internal
90966         function in GNU libc.
90967         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90968         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90969
90970 2004-01-20  Karl Berry  <karl@gnu.org>
90971
90972         * config/config.guess: update from config.
90973
90974         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90975
90976 2004-01-20  Bruno Haible  <bruno@clisp.org>
90977
90978         Safer stack allocation.
90979         * lib/setenv.c: Include allocsa.h.
90980         (alloca): Remove fallback definition.
90981         (freea): Remove macro.
90982         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90983         instead of freea.
90984
90985 2004-01-20  Bruno Haible  <bruno@clisp.org>
90986
90987         * m4/eealloc.m4: New file, from GNU gettext.
90988
90989 2004-01-20  Bruno Haible  <bruno@clisp.org>
90990
90991         * m4/allocsa.m4: New file, from GNU gettext.
90992
90993 2004-01-20  Bruno Haible  <bruno@clisp.org>
90994
90995         * lib/xallocsa.h: New file, from GNU gettext.
90996         * lib/xallocsa.c: New file, from GNU gettext.
90997
90998 2004-01-20  Bruno Haible  <bruno@clisp.org>
90999
91000         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91001
91002 2004-01-20  Bruno Haible  <bruno@clisp.org>
91003
91004         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91005         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91006         specially.
91007
91008 2004-01-20  Bruno Haible  <bruno@clisp.org>
91009
91010         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91011         patch.
91012
91013 2004-01-20  Bruno Haible  <bruno@clisp.org>
91014
91015         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91016
91017 2004-01-20  Bruno Haible  <bruno@clisp.org>
91018
91019         * lib/eealloc.h: New file.
91020
91021 2004-01-20  Bruno Haible  <bruno@clisp.org>
91022
91023         * lib/binary-io.h: Avoid warnings on Cygwin.
91024
91025 2004-01-20  Bruno Haible  <bruno@clisp.org>
91026
91027         * lib/allocsa.h: New file, from GNU gettext.
91028         * lib/allocsa.c: New file, from GNU gettext.
91029
91030 2004-01-18  Karl Berry  <karl@gnu.org>
91031
91032         * doc/gpl.texi, doc/lgpl.texi: new files.
91033
91034 2004-01-18  Karl Berry  <karl@gnu.org>
91035
91036         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91037         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91038
91039 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91040
91041         Merge from coreutils.
91042
91043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91044         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91045         (gl_DEFAULT_POSIX2_VERSION): Move
91046         the documentation from 'configure' into 'config.hin',
91047         so that 'configure --help' isn't burdened by it and
91048         we don't have to worry about its formatting there.
91049         Reword the documentation so that it's more succinct
91050         and can be run together into a single paragraph.
91051         * m4/same.m4 (gl_SAME): Check for pathconf.
91052
91053 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91054
91055         Merge from coreutils.
91056
91057         * lib/posixver.c: Include posixver.h.
91058
91059         * lib/same.c: Include <stdbool.h>, <limits.h>.
91060         (_POSIX_NAME_MAX): Define if not defined.
91061         (MIN): New macro.
91062         (same_name): If file names are silently truncated, report
91063         that the file names are the same if they are the same after
91064         the silent truncation.
91065
91066         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91067         conversion function.
91068         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91069         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91070         longer needed.
91071
91072 2004-01-15  Jim Meyering  <jim@meyering.net>
91073
91074         Merge from coreutils.
91075
91076         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91077         if no library is required.
91078         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91079         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91080         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91081         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91082         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91083         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91084         value, $ac_cv_search_crypt, if it's "none required".
91085         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91086         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91087         not gl_FUNC_GETLOADAVG.
91088         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91089         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91090
91091 2004-01-15  Jim Meyering  <jim@meyering.net>
91092
91093         Merge from coreutils.
91094
91095         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91096         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91097         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91098
91099         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91100         optional configure-time default.
91101
91102         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91103
91104         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91105
91106 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91107
91108         Merge from coreutils.
91109
91110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91111         value, $ac_cv_search_nanosleep, if it's "none required".
91112
91113 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91114
91115         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91116         with like-named macro in fnmatch.c.
91117         (EXT): Use an internal constant instead.
91118
91119         Merge fnmatch patches from glibc.
91120         * lib/fnmatch.c (mbsinit): Remove define.
91121         Add libc_hidden_ver (__fnmatch, fnmatch).
91122         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91123         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91124
91125 2004-01-14  Karl Berry  <karl@gnu.org>
91126
91127         * config/install-sh: update from automake.
91128
91129 2004-01-13  Karl Berry  <karl@gnu.org>
91130
91131         * config/install-sh: update from automake.
91132
91133 2004-01-09  Karl Berry  <karl@gnu.org>
91134
91135         * config/install-sh: update from automake.
91136
91137 2004-01-05  Karl Berry  <karl@gnu.org>
91138
91139         * config/config.{sub,guess}: update from config.
91140
91141 2003-12-31  Karl Berry  <karl@gnu.org>
91142
91143         * config/depcomp: update from automake.
91144
91145 2003-12-14  Karl Berry  <karl@gnu.org>
91146
91147         * lib/config.charset: update from gettext-runtime.
91148
91149 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91150
91151         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91152         Bug reported by Alfred M. Szmidt.
91153
91154 2003-12-03  Bruno Haible  <bruno@clisp.org>
91155
91156         * m4/gettext.m4: Upgrade from gettext-0.13.
91157         * m4/po.m4: Upgrade from gettext-0.13.
91158         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91159         * m4/intmax.m4: New file, from gettext-0.13.
91160         * m4/printf-posix.m4: New file, from gettext-0.13.
91161
91162 2003-11-29  Karl Berry  <karl@gnu.org>
91163
91164         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91165
91166 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91167             Bruno Haible  <bruno@clisp.org>
91168
91169         * lib/printf-parse.h: Don't include sys/types.h.
91170         (ARG_NONE): New macro.
91171         (char_directive): Change type of *arg_index fields to size_t.
91172         * lib/printf-parse.c: Don't include sys/types.h.
91173         (SSIZE_MAX): Remove macro.
91174         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91175         Remove unnecessary overflow check.
91176         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91177         fields.
91178
91179 2003-11-25  Bruno Haible  <bruno@clisp.org>
91180
91181         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91182
91183 2003-11-25  Bruno Haible  <bruno@clisp.org>
91184
91185         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91186         gt_TYPE_SSIZE_T.
91187
91188 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91189
91190         * modules/alloca: Remove dependency on xalloc.
91191
91192 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91193
91194         * lib/alloca.c: Remove dependency on xalloc module.
91195         (xalloc_die): Remove.
91196         (memory_full) [!defined emacs]: New macro.
91197         [!defined emacs]: Don't include xalloc.h.
91198         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91199         address arithmetic overflows.  Change datatypes a bit to avoid
91200         unnecessary casts.
91201
91202 2003-11-22  Jim Meyering  <jim@meyering.net>
91203
91204         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91205         s/size/size_t/.
91206
91207 2003-11-21  Karl Berry  <karl@gnu.org>
91208
91209         * config/config.{sub,guess}: update from config.
91210
91211 2003-11-18  Karl Berry  <karl@gnu.org>
91212
91213         * config/config.{sub,guess}: update from config.
91214
91215         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91216
91217 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91218
91219         * README: Mention that S+T cannot overflow if S is the size of
91220         an existing object and T is sufficiently small.
91221
91222 2003-11-17  Jim Meyering  <jim@meyering.net>
91223
91224         On systems without utime and without a utimes function capable of
91225         dealing with a NULL struct utimbuf* argument, this utime replacement
91226         could -- in unusual circumstances -- leak a file descriptor.
91227         * lib/utime.c: Include <unistd.h> and <errno.h>.
91228         (utime_null): Be sure to close `fd' and to preserve errno.
91229         Reported by Geoff Collyer via Arnold Robbins.
91230
91231 2003-11-17  Bruno Haible  <bruno@clisp.org>
91232
91233         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91234         (Depends-on): Add xsize.
91235
91236 2003-11-17  Bruno Haible  <bruno@clisp.org>
91237
91238         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91239
91240 2003-11-17  Bruno Haible  <bruno@clisp.org>
91241
91242         * lib/vasnprintf.c (alloca): Remove fallback definition.
91243         (freea): Remove definition.
91244         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91245         Reported by Paul Eggert.
91246
91247 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91248             Bruno Haible  <bruno@clisp.org>
91249
91250         Protect against address arithmetic overflow.
91251         * lib/printf-args.h: Include stddef.h.
91252         (arguments): Change type of field 'count' to size_t.
91253         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91254         'unsigned int' where appropriate.
91255         * lib/printf-parse.h: Include sys/types.h.
91256         (char_directive): Change type of *arg_index fields to ssize_t.
91257         (char_directives): Change type of fields 'count', max_*_length to
91258         size_t.
91259         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91260         (SSIZE_MAX): Define fallback value.
91261         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91262         instead of 'int' where appropriate. Check a_allocated, d_allocated
91263         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91264         * lib/vasnprintf.c: Include xsize.h.
91265         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91266         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91267         overflow. Avoid wraparound when converting a width or precision from
91268         decimal to binary.
91269
91270 2003-11-16  Bruno Haible  <bruno@clisp.org>
91271
91272         Update from GNU gettext.
91273         * lib/printf-parse.c: Generalize to it can be compiled for wide
91274         strings.
91275         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91276         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91277         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91278         SNPRINTF): New macros.
91279         Don't include <alloca.h> if the file is used inside libintl.
91280         (local_wcslen): New function, for Solaris 2.5.1.
91281         (VASNPRINTF): Use it instead of wcslen.
91282
91283 2003-11-16  Bruno Haible  <bruno@clisp.org>
91284
91285         * lib/xsize.h (xmax): New function.
91286         (xsum, xsum3, xsum4): Declare as "pure" functions.
91287
91288 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91289
91290         * modules/xalloc (Files): Undo latest change, since xalloc.h
91291         no longer needs SIZE_MAX or PTRDIFF_MAX.
91292
91293 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91294
91295         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91296         gl_PTRDIFF_MAX.
91297
91298 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91299
91300         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91301         "return", to pacify some unknown compiler.  Problem reported
91302         by Joerg Schilling.
91303
91304 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91305
91306         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91307         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91308         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91309         heuristic is just as accurate as far as we know, and it removes a
91310         dependency on size_max.m4 and ptrdiff_max.m4.
91311
91312 2003-11-11  Bruno Haible  <bruno@clisp.org>
91313
91314         * modules/xsize (Files): Add m4/size_max.m4.
91315         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91316
91317 2003-11-11  Bruno Haible  <bruno@clisp.org>
91318
91319         * m4/size_max.m4: New file.
91320         * m4/ptrdiff_max.m4: New file.
91321         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91322         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91323         (gl_XALLOC): Invoke it.
91324
91325 2003-11-11  Bruno Haible  <bruno@clisp.org>
91326
91327         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91328         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91329         defined.
91330
91331 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91332
91333         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91334         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91335         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91336         From Bruno Haible.
91337         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91338         not (size_t) -1, since it's defined here.
91339
91340 2003-11-09  Karl Berry  <karl@gnu.org>
91341
91342         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91343
91344 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91345
91346         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91347         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91348         Reject sizes of exactly SIZE_MAX bytes.
91349         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91350         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91351
91352 2003-11-05  Bruno Haible  <bruno@clisp.org>
91353
91354         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91355         SIZE_MAX defined in <limits.h> on Solaris.
91356
91357 2003-11-04  Jim Meyering  <jim@meyering.net>
91358
91359         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91360         variable names, rather than @VAR@.
91361         * modules/poll: Likewise.
91362
91363 2003-11-04  Bruno Haible  <bruno@clisp.org>
91364
91365         * modules/xsize: New file.
91366         * modules/linebreak: Depend on xsize.
91367         * MODULES.html.sh (func_all_modules): Add xsize.
91368
91369 2003-11-04  Bruno Haible  <bruno@clisp.org>
91370
91371         * m4/xsize.m4: New file.
91372
91373 2003-11-04  Bruno Haible  <bruno@clisp.org>
91374
91375         * lib/xsize.h: New file.
91376         * lib/linebreak.c: Include xsize.h.
91377         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91378         argument for overflow.
91379         Suggested by Paul Eggert.
91380
91381 2003-11-03  Karl Berry  <karl@gnu.org>
91382
91383         * config/config.{guess,sub}: update from config.
91384
91385 2003-11-03  Jim Meyering  <jim@meyering.net>
91386
91387         * modules/userspec (lib_SOURCES): Add userspec.h.
91388         (Include): Add "userspec.h".
91389         Improve description.
91390
91391 2003-11-03  Jim Meyering  <jim@meyering.net>
91392
91393         * lib/userspec.c: Include "userspec.h".
91394         * lib/userspec.h: New file.
91395
91396 2003-11-03  Bruno Haible  <bruno@clisp.org>
91397
91398         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91399
91400 2003-11-03  Bruno Haible  <bruno@clisp.org>
91401
91402         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91403         available, to avoid (extremely rare) race condition.
91404         Suggested by Paul Eggert.
91405
91406 2003-11-02  Karl Berry  <karl@gnu.org>
91407
91408         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91409
91410 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91411
91412         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91413         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91414         (read_filesystem_list): Set and use me_type_malloced.
91415         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91416         whatever the type happens to be), for brevity and consistency.
91417         Check for size calculation overflow on Alphas running OSF/1.
91418
91419 2003-10-31  Jim Meyering  <jim@meyering.net>
91420
91421         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91422
91423         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91424
91425 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91426             Bruno Haible  <bruno@clisp.org>
91427
91428         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91429         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91430
91431 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91432
91433         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91434         netbsd*-gnu*.  Suggested by Robert Millan.
91435
91436 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91437
91438         * modules/group-member: Depend on stdbool.
91439
91440 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91441
91442         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91443
91444 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91445
91446         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91447         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91448         after the 'gnu' in these cases.  This fixes some bugs in the
91449         previous change, and is based on suggestions by Robert Millan.
91450
91451 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91452
91453         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91454         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91455         no longer needed.
91456         * lib/quotearg.c (quotearg_n_options): Use it.
91457         * lib/group-member.c: Include <stdbool.h>.
91458         (free_group_info): Arg is now const *; don't free arg.
91459         (get_group_info): Now returns bool and accepts struct group_info *,
91460         rather than returning a malloc'ed struct group_info *.
91461         All uses changed.  Check for overflow in internal size calculation.
91462
91463         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91464         rather than xmalloc/xrealloc.
91465         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91466         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91467         conformance bug: the old code used a pointer after freeing the
91468         storage that it addressed.
91469         * lib/hash.c (hash_initialize): Simplify the code by using
91470         xalloc_oversized rather than doing it by hand.
91471         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91472         the buffer preserved.  Use free and xmalloc instead.
91473         * lib/quotearg.c (quotearg_n_options): Likewise.
91474         Use a simpler test for size overflow.  Don't use xalloc_oversized
91475         because unsigned int might be wider than size_t (!); this suggests
91476         that we should switch from unsigned int to size_t for slot numbers.
91477
91478 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91479
91480         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91481         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91482         NetBSD kernels.  Requested by Richard Stallman.
91483
91484 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91485
91486         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91487         to allocate the returned structure.  Do not allocate a subarray,
91488         as x2nrealloc will do that.
91489         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91490         instead of xnrealloc.
91491         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91492
91493 2003-10-27  Bruno Haible  <bruno@clisp.org>
91494
91495         * lib/stdbool_.h: Better support for BeOS.
91496
91497 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91498
91499         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91500         now uses inline.
91501
91502 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91503
91504         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91505         callers that want to do their own size-overflow checking.  Include
91506         <stdbool.h>, since xalloc_oversized returns bool.
91507         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91508         to use xalloc_oversized.
91509
91510         Add two functions x2realloc, x2nrealloc, for programs that grow
91511         arrays dynamically by doubling their sizes.
91512         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91513         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91514         New functions.
91515
91516         Port to C99 semantics for 'inline' of external functions.
91517         Bug reported by Bruno Haible.
91518         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91519         with the old contents of xnmalloc.
91520         (xnmalloc, xmalloc): Use it.
91521         (xnrealloc_inline): New static inline function,
91522         with the old contents of xnrealloc.
91523         (xnrealloc, xrealloc): Use it.
91524
91525         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91526         that.
91527
91528 2003-10-26  Karl Berry  <karl@gnu.org>
91529
91530         * config/srclist.txt (COPYING.DOC): no longer available from
91531         /gd/gnuorg; don't know where the ultimate source is.
91532
91533 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91534
91535         Fix several address-calculation bugs in the hash modules,
91536         plus some minor code cleanup.
91537
91538         * lib/hash.h: Include <stdbool.h>, for bool.
91539         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91540         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91541         hash_get_n_entries, hash_get_max_bucket_length,
91542         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91543         hash_rehash): Use size_t rather than unsigned.
91544         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91545         hash_get_n_buckets_used, hash_get_n_entries,
91546         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91547         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91548         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91549         Likewise.
91550         (SIZE_MAX): Define if not defined.
91551         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91552         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91553         hash_print):
91554         Use const * when possible.
91555         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91556         (check_tuning): Fix bug: if tuning parameters were very close to
91557         0 or 1, rounding errors could have caused subscript violations.
91558         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91559         (hash_initialize): Add 'fail:' label
91560         to free table and return NULL, and use it to simplify code.
91561         Use calloc rather than clearing the storage ourself.
91562         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91563         buffer size calculations.
91564         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91565         Include <stddef.h>, for size_t.
91566         * lib/hash-pjw.c (hash_pjw): Likewise.
91567         Switch to method described by Bruno Haible.
91568         Include <limits.h>, for CHAR_BIT.
91569         (SIZE_BITS): New macro.
91570
91571 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91572
91573         * m4/getline.m4 (AM_FUNC_GETLINE):
91574         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91575         hosts.  Problem reported by Derek Robert Price in
91576         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91577         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91578         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91579
91580 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91581
91582         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91583         ceiling the allocation at NMAX bytes rather than silently
91584         discarding input bytes before NMAX is reached.  This makes
91585         a difference only if NMAX exceeds SIZE_MAX / 2.
91586
91587         * lib/obstack.c: Merge from glibc.
91588         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91589         Add libc_hidden_def (_obstack_newchunk).
91590         (_obstack_free) [! defined _LIBC]: Remove.
91591         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91592         a clone of the function body.
91593         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91594         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91595
91596         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91597         glibc.
91598         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91599         arg to memcpy.
91600
91601         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91602         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91603         Don't use lvalue casts, as GCC plans to remove support for them
91604         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91605         was also present in the non-GCC version, indicating that this
91606         code had always been buggy and had never been widely used.
91607         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91608         Use the fast variant of each macro, rather than copying the
91609         definiens of the fast variant; that way, we'll be more likely to
91610         catch future bugs in the fast variants.
91611
91612 2003-10-20  Bruno Haible  <bruno@clisp.org>
91613
91614         * modules/wait-process: New file.
91615         * MODULES.html.sh (func_all_modules): Add wait-process.
91616
91617 2003-10-20  Bruno Haible  <bruno@clisp.org>
91618
91619         * m4/wait-process.m4: New file.
91620
91621 2003-10-20  Bruno Haible  <bruno@clisp.org>
91622
91623         * lib/wait-process.h: New file, from GNU gettext.
91624         * lib/wait-process.c: New file, from GNU gettext.
91625
91626 2003-10-19  Jim Meyering  <jim@meyering.net>
91627
91628         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91629         HPUX 10.20.
91630
91631 2003-10-18  Karl Berry  <karl@gnu.org>
91632
91633         * config/config.guess: update from config.
91634
91635 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91636
91637         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91638         (getgroups): First arg is int, not size_t.
91639         Don't let 'free' mangle errno.
91640
91641 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91642
91643         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91644
91645 2003-10-16  Karl Berry  <karl@gnu.org>
91646
91647         * config/config.{guess,sub}: update from config.
91648
91649 2003-10-16  Jim Meyering  <jim@meyering.net>
91650
91651         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91652         memcpy.
91653
91654 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91655
91656         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91657         (SIZE_MAX): Remove.
91658         (new_exclude, add_exclude_file): Initial size no longer needs to
91659         be a power of 2.
91660         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91661         our own address arithmetic overflow checking.
91662
91663         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91664         (fnmatch): Do not alloca more than 2000 wide characters;
91665         instead, use malloc for large buffers.
91666         Check for address arithmetic overflow, and return -1
91667         with errno set to ENOMEM in that case.
91668         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91669         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91670         instead, return -1.  Check for address arithmetic overflow.
91671
91672 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91673
91674         Handle invalid suffixes and overflow independently, so that
91675         callers can treat them independently as needed.  Fix some bugs in
91676         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91677         suffix for a human-readable blocksize.  The major caller-visible
91678         change is the addition of a new
91679         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91680         that both overflow and suffix chars were found.
91681
91682         * lib/human.c (humblock): Don't check separately for invalid suffix
91683         char; that is xstrtoumax's job (now that its bug is fixed).
91684         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91685         INTMAX_MAX]: New macros.
91686         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91687         TYPE_MAXIMUM): New macros.
91688         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91689         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91690         if overflow occurs, as it's what __strtol does and it's more useful
91691         in practice.
91692         (__xstrtol): If __strtol reports some error other than ERANGE,
91693         reflect it to the caller as LONGINT_INVALID.  If it reports
91694         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91695         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91696         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91697         value.
91698         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91699         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91700         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91701         [defined UINTMAX_MAX]: New macros.
91702
91703 2003-10-14  Bruno Haible  <bruno@clisp.org>
91704
91705         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91706
91707 2003-10-14  Bruno Haible  <bruno@clisp.org>
91708
91709         * m4/sig_atomic_t: New file, from GNU gettext.
91710         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91711
91712 2003-10-14  Bruno Haible  <bruno@clisp.org>
91713
91714         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91715         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91716         Also use volatile where needed.
91717
91718 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91719
91720         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91721         Change maintainer from Bruno Haible to 'all'.
91722
91723 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91724
91725         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91726
91727 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91730         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91731         and define in terms of the other primitives.
91732         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91733         (SIZE_MAX): Define if not already defined.
91734         (array_size_overflow): New function.
91735         (xalloc_die): Abort instead of exiting if 'error' returns.
91736         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91737         (xmalloc, xrealloc): Use them.
91738         (xcalloc): Check for address arithmetic overflow.
91739         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91740         a bit faster than strcpy.
91741
91742 2003-10-10  Simon Josefsson  <jas@extundo.com>
91743
91744         * modules/argp (Depends-on): Add restrict and strcase.
91745
91746 2003-10-10  Simon Josefsson  <jas@extundo.com>
91747
91748         * m4/argp.m4: Add AC_C_INLINE.
91749
91750 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91751
91752         Merge getpass from libc, plus a few fixes.
91753
91754         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91755         Include <stdbool.h>.
91756         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91757         __fsetlocking to empty.
91758         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91759         do include <bits/libc-lock.h>.
91760         Do not include <fcntl.h>; not needed.
91761         [_LIBC]: Include <wchar.h>.
91762         (NOTCANCEL_MODE): New macro.
91763         (flockfile, funlockfile) [_LIBC]: New macros.
91764         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91765         [!_LIBC]: New macros.
91766         (call_fclose): New function.
91767         (getpass): Use it.  Save tty stream separately; this simplifies the
91768         code and makes it more reliable if stdin happens to equal stdout.
91769         Invoke __fsetlocking on tty.
91770         Handle thread cancellation if needed.
91771         Namespace cleanup (use __tcgetattr, __getline).
91772         Use bool for Booleans.
91773         [USE_IN_LIBIO]: Handle wide streams.
91774         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91775         stream might go where.
91776
91777         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91778         doesn't have to include <stdio.h> before us.
91779         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91780         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91781         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91782         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91783         if not declared, so that we can use getpass.c code from libc without
91784         rewriting it.
91785         (flockfile, ftrylockfile, funlockfile): New macros.
91786
91787 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91788
91789         * modules/getpass: Depend on stdbool.
91790
91791 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91792
91793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91794
91795 2003-10-07  Karl Berry  <karl@gnu.org>
91796
91797         * config/config.{guess,sub}: update from config.
91798
91799 2003-10-06  Jim Meyering  <jim@meyering.net>
91800             Bruno Haible  <bruno@clisp.org>
91801
91802         This lets translators provide better translations for the
91803         "Written by ..." part of --version output.
91804         * lib/version-etc.h: Include stdarg.h.
91805         (version_etc_copyright): Declare as readonly.
91806         (version_etc): Make this function variadic with a NULL-terminated list
91807         of author name strings.
91808         (version_etc_va): New declaration.
91809         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91810         (version_etc_copyright): Declare as readonly.
91811         (version_etc_va): New function. Provide a different translatable string
91812         for each possible number of authors < 10. Abbreviate when there are 10
91813         authors or more.
91814         (version_etc): Make this function variadic. Call version_etc_va.
91815         Suggestion from Gary V. Vaughan.
91816
91817         * lib/long-options.h (parse_long_options): Change prototype: the
91818         authors string is moved to the end and becomes variadic.
91819         * lib/long-options.c: Include stdarg.h.
91820         (parse_long_options): Make this function variadic, too.
91821         Call version_etc_va, not version_etc.
91822
91823 2003-10-06  Bruno Haible  <bruno@clisp.org>
91824
91825         * modules/version-etc-2: Remove file.
91826         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91827
91828 2003-10-06  Bruno Haible  <bruno@clisp.org>
91829
91830         * modules/fatal-signal: New file.
91831         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91832
91833 2003-10-06  Bruno Haible  <bruno@clisp.org>
91834
91835         * m4/fatal-signal.m4: New file.
91836         * m4/signalblocking.m4: New file, from GNU gettext.
91837
91838 2003-10-06  Bruno Haible  <bruno@clisp.org>
91839
91840         * lib/version-etc-2.h: Remove file.
91841         * lib/version-etc-2.c: Remove file.
91842
91843 2003-10-06  Bruno Haible  <bruno@clisp.org>
91844
91845         * lib/fatal-signal.h: New file, from GNU gettext.
91846         * lib/fatal-signal.c: New file, from GNU gettext.
91847
91848 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91849
91850         * README: Rework advice for preventing empty .o files.
91851         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91852         not <sys/types.h>.
91853
91854 2003-10-04  Karl Berry  <karl@gnu.org>
91855
91856         * lib/argp*: update from libc.
91857
91858 2003-10-04  Karl Berry  <karl@gnu.org>
91859
91860         * config/config.{guess,sub}: update from config.
91861
91862 2003-10-02  Bruno Haible  <bruno@clisp.org>
91863
91864         * modules/lchown (Include): Add lchown.h.
91865         * modules/time_r (Include): Use "..." syntax.
91866         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91867
91868 2003-10-01  Simon Josefsson  <jas@extundo.com>
91869
91870         * MODULES.html.sh (func_all_modules): Move gethostname from section
91871         'based on' to section 'lacking' POSIX:2001.
91872
91873 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91874
91875         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91876         to output mode on the same stream.
91877
91878 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91881         Fix arg typo in previous patch.
91882
91883 2003-09-28  Jim Meyering  <jim@meyering.net>
91884
91885         * lib/error.c: Correct cpp indentation.
91886
91887 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91888
91889         * modules/free: New file.
91890
91891 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91892
91893         * m4/free.m4: New file.
91894
91895 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91896
91897         * lib/minmax.h (MIN, MAX)
91898         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91899         Omit the special code that used __typeof__, since we worry that
91900         it could be more trouble than it's worth.  See:
91901         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91902         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91903
91904         * lib/free.c: New file.
91905
91906 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91907
91908         Trivial fixes to Makefile.am parts of module listings.
91909         * modules/strstr: Append strstr.h to lib_SOURCES.
91910         * modules/strcase: Likewise, for strcase.h.
91911
91912 2003-09-27  Karl Berry  <karl@gnu.org>
91913
91914         * config/mkinstalldirs: update from automake.
91915
91916 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91917
91918         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91919         (error_tail): Do not loop, reallocating temporary buffer, since
91920         the output cannot contain more wide characters than the input
91921         contains bytes, the size must be big enough already.  This avoids
91922         one potential size overflow calculation.  Check for size overflow
91923         when calculating temporary buffer size.  Free temporary buffer
91924         when done, if it was allocated with malloc; this plugs a memory
91925         leak.  Remove casts from void * to pointers, that are no longer
91926         needed now that we're assuming C89 or better.
91927
91928         Merge error changes from glibc.
91929
91930         * lib/error.c, error.h: Update copyright notice header to match glibc.
91931         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91932         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91933         Disable cancellation while printing error.
91934         * lib/error.h: Prepend __ to parameter names.
91935
91936 2003-09-26  Jim Meyering  <jim@meyering.net>
91937
91938         * lib/error.c (error_tail): Move some declarations
91939         into inner scope where the local variables are used.
91940
91941 2003-09-26  Bruno Haible  <bruno@clisp.org>
91942
91943         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91944         stpncpy().
91945         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91946
91947 2003-09-26  Bruno Haible  <bruno@clisp.org>
91948
91949         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91950         (stpncpy): Define as alias for gnu_stpncpy.
91951         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91952
91953 2003-09-25  Simon Josefsson  <jas@extundo.com>
91954
91955         * lib/xgetdomainname.h: New file.
91956         * lib/xgetdomainname.c: New file.
91957
91958 2003-09-25  Simon Josefsson  <jas@extundo.com>
91959             Bruno Haible  <bruno@clisp.org>
91960
91961         * modules/getdomainname: New file.
91962         * modules/xgetdomainname: New file.
91963         * MODULES.html.sh (func_all_modules): Add getdomainname,
91964         xgetdomainname.
91965
91966 2003-09-25  Simon Josefsson  <jas@extundo.com>
91967             Bruno Haible  <bruno@clisp.org>
91968
91969         * m4/getdomainname.m4: New file.
91970
91971 2003-09-25  Simon Josefsson  <jas@extundo.com>
91972             Bruno Haible  <bruno@clisp.org>
91973
91974         * lib/getdomainname.h: New file.
91975         * lib/getdomainname.c: New file.
91976
91977 2003-09-25  Karl Berry  <karl@gnu.org>
91978
91979         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91980
91981 2003-09-25  Karl Berry  <karl@gnu.org>
91982
91983         * config/install-sh: update from automake.
91984
91985 2003-09-25  Bruno Haible  <bruno@clisp.org>
91986
91987         * modules/version-etc-2: New file, from modules/version-etc with
91988         modifications.
91989         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91990
91991 2003-09-25  Bruno Haible  <bruno@clisp.org>
91992
91993         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91994         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91995
91996 2003-09-24  Simon Josefsson  <jas@extundo.com>
91997
91998         * modules/xgethostname: Add xgethostname.h.
91999
92000 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92001
92002         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92003         the buffer associated with the argument.  Bug reported by
92004         Simon Josefsson.
92005
92006 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92007
92008         * README: Document assumptions that 'int' is at least 32 bits
92009         wide, that integer arithmetic is 2's complement without overflow,
92010         that there are no holes in integer values, that adding sizes of
92011         two nonoverlapping objects can't overflow, and that all-bits-zero
92012         yields scalar zero.  Fix spelling and capitalization typos.
92013
92014 2003-09-19  Karl Berry  <karl@gnu.org>
92015
92016         * lib/argp.h: update from libc.
92017
92018 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92019
92020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92021         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92022         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92023
92024 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92025
92026         * gnulib-tool: Use "test -h", not "test -L", for portability
92027         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92028         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92029         (sed_extract_prog): Issue s commands one-by-one, rather than
92030         using \| in one s command.
92031
92032 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92035         input error, instead of returning NULL the next time we are called
92036         (and therefore losing track of errno).
92037
92038 2003-09-16  Bruno Haible  <bruno@clisp.org>
92039
92040         * gnulib-tool (func_create_testdir): Warn about duplicated
92041         dependencies.
92042
92043 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92044
92045         * modules/argmatch, modules/fatal, modules/obstack,
92046         modules/xalloc, modules/xgethostname: Sort dependencies by
92047         importance, not alphabetically.
92048
92049 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92050
92051         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92052         fails, so that the caller gets the proper errno.
92053
92054         * lib/readutmp.c (read_utmp): Likewise.
92055         Check for fstat error.  Close stream and free storage
92056         when failing.
92057
92058 2003-09-14  Karl Berry  <karl@gnu.org>
92059
92060         * config/srclist.txt (strdup.c): disable for c89 changes.
92061
92062 2003-09-14  Jim Meyering  <jim@meyering.net>
92063
92064         * lib/getloadavg.c: Correct cpp indentation.
92065         * lib/strdup.c: Likewise.
92066         * lib/vasnprintf.c: Likewise.
92067
92068 2003-09-14  Bruno Haible  <bruno@clisp.org>
92069
92070         * modules/fwriteerror: New file.
92071         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92072
92073 2003-09-14  Bruno Haible  <bruno@clisp.org>
92074
92075         * lib/fwriteerror.h: New file.
92076         * lib/fwriteerror.c: New file.
92077
92078 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92079
92080         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92081         modules/xgethostname, modules/xalloc: Depend on exit.
92082
92083 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92084
92085         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92086
92087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92088         and AC_MINIX, too, so that their extensions are available.
92089
92090         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92091         This macro has been superseded by gl_BACKUPFILE.
92092
92093         More patches to assume C89 or better.
92094
92095         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92096
92097         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92098         unconditionally.
92099         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92100         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92101         Include <string.h>, <stdlib.h> unconditionally.
92102         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92103         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92104         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92105         headers or for string.h.
92106         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92107         or strtoul.
92108
92109         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92110         headers.
92111         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92112         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92113         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92114         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92115         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92116         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92117         memcpy, memset.
92118         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92119         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92120         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92121         strtol.
92122         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92123         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92124         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92125         strtoul.
92126
92127 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92128
92129         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92130         * lib/obstack.c [!defined _LIBC]: Likewise.
92131         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92132         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92133         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92134
92135         More changes to assume C89 or better.
92136
92137         * lib/error.c (error_tail): Assume vprintf.
92138
92139         * lib/argmatch.c (getenv): Remove decl.
92140         * lib/progreloc.c (get_full_program_name): Define via prototype.
92141         * lib/setenv.c (clearenv): Likewise.
92142         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92143         needed.
92144         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92145         (malloc, memcpy): Remove decls.
92146         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92147         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92148         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92149         (memcpy): Remove macro.
92150         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92151         (__P): Remove.  All uses removed.
92152         (PTR): Remove.  All uses changed to void *.
92153         (CHAR_BIT, NULL): Remove.
92154         (spaces, zeros, memset_space, memset_zero)
92155         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92156         Remove.
92157         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92158         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92159         Define with prototype.
92160         Remove now-unnecessary prototype decl.
92161         (extra_args_spec): Assume ANSI C.  All uses changed.
92162         (extra_args_spec_iso): Remove.
92163         (my_strftime, emacs_strftimeu): Define via prototype.
92164         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92165         unconditionally.
92166         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92167         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92168         (strtoul, strtol): Remove decls.
92169         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92170         LONG_MAX): Remove.
92171         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92172         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92173         (LOCALE_PARAM_PROTO): New macro.
92174         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92175         (INTERNAL (strtol), strtol): Define with a prototype.
92176         (PARAMS): Remove.  All uses removed.
92177         * lib/tempname.c: Include <string.h> unconditionally.
92178         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92179         * lib/xgethostname.c (main): Define with a prototype.
92180         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92181         Include <stdlib.h> unconditionally.
92182         (calloc, malloc, realloc, free): Remove decls.
92183         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92184         Include <stdlib.h> unconditionally.  Sort include file names.
92185         (strtod): Remove.
92186         (xstrtod): Define with a prototype.
92187         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92188         (strtol, strtoul): Remove decls.
92189
92190 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92191
92192         More patches to assume C89 or better.
92193         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92194         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92195         string.h, memchr, STDC_HEADERS.
92196
92197 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92198
92199         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92200         Include <stdlib.h>, <string.h> unconditionally.
92201         Remove now-unnecessary cast to char *.
92202         * lib/strnlen.c: Include <string.h> unconditionally.
92203         * lib/yesno.c (yesno): Define with a prototype.
92204
92205 2003-09-11  Bruno Haible  <bruno@clisp.org>
92206
92207         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92208
92209 2003-09-10  Jim Meyering  <jim@meyering.net>
92210
92211         * lib/error.c: Correct indentation of cpp directives.
92212
92213 2003-09-10  Bruno Haible  <bruno@clisp.org>
92214
92215         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92216         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92217         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92218         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92219         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92220         <stdlib.h> and <string.h> checks.
92221         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92222         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92223
92224 2003-09-10  Bruno Haible  <bruno@clisp.org>
92225
92226         * lib/strcspn.c: Include <string.h> unconditionally.
92227         * lib/strpbrk.c: Include <string.h> unconditionally.
92228         * lib/strstr.c: Include <string.h> unconditionally.
92229         * lib/unicodeio.c: Include <string.h> unconditionally.
92230         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92231         * lib/unsetenv.c: Likewise.
92232         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92233         * lib/yesno.c: Include <stdlib.h> unconditionally.
92234         (rpmatch): Add prototype.
92235
92236 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92237
92238         More patches to assume C89 or better.
92239         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92240         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92241         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92242         or for string.h.
92243         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92244         stdlib.h.
92245         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92246         C headers.
92247         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92248         string.h.
92249         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92250         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92251         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92252         or for string.h.
92253         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92254         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92255         C headers.
92256         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92257         memcpy.
92258         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92259         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92260         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92261         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92262         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92263         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92264         string.h, free.
92265         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92266         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92267         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92268         C headers, or for string.h.
92269         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92270         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92271         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92272         headers, memory.h, stdlib.h, string.h, strings.h.
92273         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92274         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92275         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92276         strchr.
92277         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92278         headers, memory.h, string.h.
92279         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92280         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92281         free.
92282         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92283         headers.
92284         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92285         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92286         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92287         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92288         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92289
92290 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92291
92292         More K&R removal.
92293
92294         * lib/acosl.c (main): Use a prototype.
92295         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92296         tanl.c: Likewise.
92297
92298         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92299
92300         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92301         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92302         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92303         with a prototype.
92304         * lib/getopt.c (const): Remove macro.
92305         Include <string.h> unconditionally.
92306         (my_index): Remove; all uses changed to strchr.
92307         (strlen): Remove decl.
92308         (exchange): Remove forward decl; no longer needed.
92309         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92310         Define with prototype.
92311         * lib/getopt1.c (const): Remove macro.
92312         (getopt_long, getopt_long_only, main): Define with prototype.
92313
92314         * lib/getugroups.c: Include <string.h> unconditionally.
92315
92316         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92317         (getusershell, setusershell, endusershell, readname, main):
92318         Define with prototypes.
92319
92320         * lib/group-member.c: Include group-member.h first.
92321         Include <stdlib.h> unconditionally.
92322
92323         * lib/hard-locale.c: Include hard-locale.h first.
92324         Include <stdlib.h>, <string.h> unconditionally.
92325
92326         * lib/hash.c (free, malloc): Remove decls.
92327         Include <stdlib.h> unconditionally.
92328
92329         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92330         (getenv): Do not declare.
92331
92332         * lib/idcache.c: Include <string.h> unconditionally.
92333
92334         * lib/long-options.c: Include long-options.h first, to test interface.
92335         Include <stdlib.h> unconditionally.
92336
92337         * lib/makepath.c: Include makepath.h first, to test interface.
92338         Include <stdlib.h> and <string.h> unconditionally.
92339
92340         * lib/linebuffer.c: Include <stdlib.h>.
92341         (free): Remove decl.
92342
92343         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92344         stddef.h. rpl_malloc returns void *, not char *.
92345         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92346         prototype.
92347
92348         * lib/md5.h: Include <limits.h> unconditionally.
92349         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92350         (__P): Remove; all uses removed.
92351         * lib/md5.c: Include "md5.h" first.
92352         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92353         md5_buffer, md5_process_bytes, md5_process_block):
92354         Define with prototypes.
92355         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92356         * lib/sha.c: Include "sha.h" first.
92357         Include <stdlib.h>, <string.h> unconditionally.
92358
92359         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92360         * lib/memcmp.c (__ptr_t): Likewise.
92361         * lib/memrchr.c (__ptr_t): Likewise.
92362         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92363         Include <string.h> unconditionally.
92364         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92365         * lib/memchr.c: Include <stdlib.h> unconditionally.
92366         * lib/memchr.c (LONG_MAX): Remove.
92367         * lib/memrchr.c (LONG_MAX): Likewise.
92368         * lib/memchr.c (__memchr): Define via a prototype.
92369         * lib/memrchr.c (__memrchr): Likewise.
92370         * lib/memcmp.c (__P): Remove, and remove all uses.
92371         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92372         Remove forward decls; no longer needed.
92373         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92374         Use types required by C89 in prototype.
92375
92376         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92377         * lib/savedir.c: Likewise.
92378         * lib/mkdir.c (free): Remove decl.
92379         * lib/rmdir.c (rmdir): Define with a prototype.
92380         * lib/savedir.c: Include savedir.h first, to test interface.
92381
92382         * lib/mktime.c (STDC_HEADERS): Remove.
92383         Include <stdlib.h>, <string.h> unconditionally.
92384
92385         * lib/modechange.c: Include <stdlib.h> unconditionally.
92386         (malloc): Remove decl.
92387
92388         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92389         (free): Remove decl.
92390
92391         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92392         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92393         (This type really should be intptr_t, but that's a C99ism.)
92394         (_obstack_memcpy): Remove: all uses changed to memcpy.
92395         Include <string.h> unconditionally.
92396         (struct obstack): Assume __STDC__ for types of members
92397         chunkfun, freefun, extra_arg.
92398         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92399         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92400         obstack_begin, obstack_specify_allocation,
92401         obstack_specify_allocation_with_arg, obstack_chunkfun,
92402         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92403         Remove unprototyped decls and the macros that use them.
92404         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92405         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92406         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92407         (defined __STDC__ && __STDC__)]:
92408         Remove nonprototyped code.
92409         Include <stdlib.h> unconditionally.
92410         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92411         _obstack_allocated_p, _obstack_free, obstack_free,
92412         _obstack_memory_used, print_and_abort):
92413         Define using prototypes.
92414         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92415         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92416         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92417         obstack_next_free, obstack_object_size, obstack_room) [0]:
92418         Remove unused, unprototyped code.
92419
92420         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92421
92422         * lib/physmem.c (physmem_total, physmem_available, main): Define
92423         with prototypes.
92424
92425         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92426         (main): Define with a prototype.
92427
92428         * lib/posixver.c (getenv): Remove decl.
92429
92430         * lib/putenv.c (malloc): Returns void *, not char *.
92431         Include <string.h> unconditionally.
92432         (strchr, memcpy, NULL): Do not define.
92433
92434         * lib/readtokens.c: Include readtokens.h first, to test interface.
92435         Include <stdlib.h>, <string.h> unconditionally.
92436         (init_tokenbuffer): Define with a prototype.
92437
92438         * lib/regex.c (PARAMS): Remove.  All uses removed.
92439         All uses of _RE_ARGS removed, too.
92440         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92441         unconditionally.
92442         (bzero): Assume memset exists.
92443         (memcmp, memcpy, NULL): Remove.
92444         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92445         char, or assignments to local vars of type signed char.
92446         (init_syntax_once, PREFIX(extract_number_and_incr),
92447         PREFIX(print_partial_compiled_pattern),
92448         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92449         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92450         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92451         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92452         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92453         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92454         wcs_compile_range, byte_compile_range, truncate_wchar,
92455         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92456         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92457         count_mbs_length, wcs_re_match_2_internal,
92458         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92459         PREFIX(alt_match_null_string_p),
92460         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92461         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92462         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92463         now-unnecessary declaration, if any.
92464         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92465         regcomp, regexec):
92466         Remove now-unnecessary casts among pointer types.
92467         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92468
92469         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92470         (free): Remove decl.
92471
92472         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92473
92474         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92475         (free): Remove decl.
92476
92477         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92478         * lib/xgetcwd.c: Likewise.
92479
92480         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92481         (free): Remove decl.
92482
92483         * lib/strchrnul.c (strchrnul): Define with a prototype.
92484         Fix bug: c_in was not converted to char before searching.
92485
92486         The following changes are not K&R related:
92487
92488         * lib/group-member.h: Include <sys/types.h>, so that this file is
92489         self-contained.
92490         * lib/makepath.h: Likewise.
92491
92492         * lib/getusershell.c (readname, default_index, line_size, readname):
92493         Use size_t, not int, for sizes.
92494         (readname): If the size overflows, report an error instead of
92495         looping forever.
92496
92497 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92498
92499         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92500         libc.
92501
92502 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92503
92504         * README: New section: portability guidelines.
92505
92506 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92507
92508         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92509         C89 spec.
92510
92511 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92512
92513         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92514
92515 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92516
92517         Assume C89 or better; remove K&R cruft.
92518         A few of these changes were first proposed by Derek Robert Price
92519         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92520
92521         * lib/addext.c: Include <string.h> unconditionally.
92522         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92523         Don't declare getenv or malloc.
92524
92525         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92526         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92527         (NULL): Remove.
92528         (find_stack_direction, alloca): Use prototypes.
92529
92530         * lib/atexit.c (atexit): Define using a prototype.
92531
92532         * lib/basename.c, dirname.c, stripslash.c:
92533         Include <string.h> unconditionally.
92534
92535         * lib/bcopy.c: Include <stddef.h>.
92536         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92537
92538         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92539
92540         * lib/error.h (error, error_at_line, error_print_progname)
92541         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92542         * lib/error.c: Include error.h first, to check interface.
92543         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92544         (VA_START): Remove; all uses changeed to va_start.
92545         (exit, strerror): Remove decls.
92546         (error_print_progname): Prototype uncondionally.
92547         Don't include <errno.h>; no longer needed.
92548         (private_strerror): Remove.
92549         (error_tail): Always define.
92550         (error, error_at_line): Assume C89 or better; always use prototypes.
92551         * lib/fatal.c: Include "fatal.h" first, to test interface.
92552         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92553         (VA_START): Remove; all uses changed to va_start.
92554         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92555         this case.
92556         (exit): Remove decl.
92557         (fatal): Prototype unconditionally.  Assume va_start works.
92558         Abort at end, to pacify gcc.
92559
92560         * lib/euidaccess.c (main): Define with a prototype.
92561
92562         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92563
92564         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92565
92566         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92567         prototypes.
92568         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92569         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92570         (getenv): Remove decl.
92571         (fnmatch): Define using a prototype.
92572         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92573         (FCT): Define using a prototype.
92574
92575         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92576
92577         * lib/gethostname.c: Include <stddef.h>.
92578         (gethostname): Define with prototype.  Length is size_t, not int.
92579
92580 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92581
92582         Assume C89 or better; remove K&R cruft.
92583         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92584         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92585         string.h, getenv, malloc.
92586         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92587         headers.
92588         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92589         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92590         do not check for strerror.
92591         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92592         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92593         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92594         do not check for doprnt or vprintf.
92595         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92596         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92597
92598 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92599
92600         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92601         getversion.c should have been removed then, but was accidentally
92602         preserved.
92603
92604         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92605         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92606
92607 2003-09-08  Karl Berry  <karl@gnu.org>
92608
92609         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92610                 config, forget about prep.
92611
92612         * config/depcomp, missing: update from automake.
92613
92614 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92615
92616         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92618
92619 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92620
92621         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92622         copy_tm_result.  Bug reported by Simon Josefsson in
92623         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92624
92625 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92626
92627         * m4/time_r.m4: New file.
92628         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92629         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92630         is. Check for timegm declaration.
92631         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92632         Do not check for gmtime_r.
92633         Replace mktime if __mktime_internal does not exist and if mktime
92634         hasn't been replaced already.
92635
92636 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92637
92638         * lib/time_r.c, lib/time_r.h: New files.
92639
92640         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92641         __localtime_r.
92642         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92643         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92644
92645         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92646         __gmtime_r.
92647         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92648         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92649         Include <time_r.h>.
92650
92651         * lib/timegm.c: Switch to glibc implementation, with the following
92652         changes:
92653         [defined HAVE_CONFIG_H]: Include <config.h>.
92654         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92655         (__mktime_internal) [!defined _LIBC]: New decl.
92656         (__gmtime_r) [!defined _LIBC]: New macro and function.
92657         (timegm): Use a prototype, since gnulib assumes C89.
92658         Do not bother declaring tmp to be const, as it's not really usefu.
92659         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92660         (timegm): Declare only if HAVE_DECL_TIMEGM.
92661
92662 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92663
92664         * MODULES.html.sh (func_all_modules): Add time_r.
92665         * modules/time_r: New file.
92666         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92667         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92668
92669 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92670
92671         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92672         Bug reported by Lute Kamstra in
92673         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92674
92675         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92676         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92677         course with correspondingly smaller numbers for tomorrow and
92678         yesterday.  From Tadayoshi Funaba.  Originally installed into
92679         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92680         coreutils merge?).
92681
92682 2003-08-31  Simon Josefsson  <jas@extundo.com>
92683
92684         * modules/timegm: New file.
92685         * MODULES.html.sh (func_all_modules): Add timegm.
92686
92687 2003-08-31  Simon Josefsson  <jas@extundo.com>
92688
92689         * m4/timegm.m4: New file.
92690
92691 2003-08-31  Simon Josefsson  <jas@extundo.com>
92692
92693         * lib/timegm.h: New file.
92694         * lib/timegm.c: New file.  Based on
92695         wget-1.8.2/src/http.c:mktime_from_utc.
92696
92697 2003-08-31  Karl Berry  <karl@gnu.org>
92698
92699         * lib/argp.h: update from libc.
92700
92701 2003-08-28  Bruno Haible  <bruno@clisp.org>
92702
92703         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92704         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92705         followed by '#define fnmatch fnmatch_posix' gives an error.
92706
92707 2003-08-28  Bruno Haible  <bruno@clisp.org>
92708
92709         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92710         warning on QNX, which defines O_BINARY to 000000.
92711
92712 2003-08-27  Jim Meyering  <jim@meyering.net>
92713
92714         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92715         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92716         would fail after 32.  Reported by Danny Levinson.  Details here:
92717         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92718
92719 2003-08-24  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92722         MSVC7 <stdio.h> is included later.
92723
92724 2003-08-22  Simon Josefsson  <jas@extundo.com>
92725
92726         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92727
92728 2003-08-20  Karl Berry  <karl@gnu.org>
92729
92730         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92731
92732 2003-08-20  Bruno Haible  <bruno@clisp.org>
92733
92734         * modules/progname: New file.
92735         * MODULES.html.sh (func_all_modules): Add progname.
92736
92737 2003-08-20  Bruno Haible  <bruno@clisp.org>
92738
92739         * lib/progname.h: New file, from GNU gettext.
92740         * lib/progname.c: New file, from GNU gettext.
92741         * lib/progreloc.c: New file, from GNU gettext.
92742
92743 2003-08-19  Jim Meyering  <jim@meyering.net>
92744
92745         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92746         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92747
92748 2003-08-19  Bruno Haible  <bruno@clisp.org>
92749
92750         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92751         more.
92752
92753 2003-08-19  Bruno Haible  <bruno@clisp.org>
92754
92755         * lib/xstrdup.c: Assume <string.h> exists.
92756
92757 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92758
92759         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92760         in makefile rules.
92761
92762 2003-08-18  Jim Meyering  <jim@meyering.net>
92763
92764         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92765         * m4/lib-ld.m4: Likewise.
92766
92767 2003-08-18  Jim Meyering  <jim@meyering.net>
92768
92769         * lib/setenv.h: Indent nested cpp directive.
92770         * lib/vasnprintf.c: Remove trailing blanks.
92771
92772 2003-08-17  Simon Josefsson  <jas@extundo.com>
92773
92774         * modules/xstrndup: New file.
92775         * MODULES.html.sh (func_all_modules): Add xstrndup.
92776
92777 2003-08-17  Simon Josefsson  <jas@extundo.com>
92778
92779         * modules/argp: Fix autoconf macro name. Add more dependencies.
92780
92781 2003-08-17  Simon Josefsson  <jas@extundo.com>
92782
92783         * m4/xstrndup.m4: New file.
92784
92785 2003-08-17  Simon Josefsson  <jas@extundo.com>
92786
92787         * m4/argp.m4: New file.
92788
92789 2003-08-17  Simon Josefsson  <jas@extundo.com>
92790             Bruno Haible  <bruno@clisp.org>
92791
92792         * lib/xstrndup.h: New file.
92793         * lib/xstrndup.c: New file.
92794
92795 2003-08-17  Bruno Haible  <bruno@clisp.org>
92796
92797         * modules/strndup (Files, Include): Add lib/strndup.h.
92798
92799 2003-08-17  Bruno Haible  <bruno@clisp.org>
92800
92801         * modules/euidaccess (Files): Add lib/euidaccess.h.
92802
92803 2003-08-17  Bruno Haible  <bruno@clisp.org>
92804
92805         * lib/strndup.h: New file.
92806
92807 2003-08-17  Bruno Haible  <bruno@clisp.org>
92808
92809         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92810         like AC_GNU_SOURCE.
92811         * modules/extensions (configure.ac): Comment out the invocation of
92812         gl_USE_SYSTEM_EXTENSIONS.
92813
92814 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92815
92816         Merges from coreutils, etc.
92817         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92818         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92819         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92820         fixing a typo.
92821         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92822         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92823
92824 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92825
92826         Document merge from coreutils.
92827         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92828         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92829         * modules/utime: Add m4/utimes-null.m4.
92830
92831 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92832
92833         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92834         space, undoing this 2003-08-12 change:
92835         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92836
92837 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92838
92839         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92840         strtoul.c from libc, undoing this 2003-08-12 change:
92841         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92842
92843 2003-08-16  Jim Meyering  <jim@meyering.net>
92844
92845         Merges from coreutils.
92846         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92847         prefix.  Adjust cache variables similarly.  Create 500 rather than
92848         just 300 files, to exercise bug on Darwin6.5, too.
92849         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92850         $missing_dir.
92851         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92852         AM_SYS_POSIX_TERMIOS.
92853         Reported by mkc@mathdogs.com.
92854         Also change use of $am_cv_sys_posix_termios
92855         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92856         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92857         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92858         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92859         in /proc/mounts until it finds one with matching device number.  This
92860         is unnecessary when the FILE argument *is* a mount point.  No stat call
92861         is necessary in that case.  So, disable the statvfs-testing code on
92862         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92863         as RedHat bug# 84846.
92864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92865         to 1MB, so as not to render systems with no stack size limit (e.g.,
92866         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92867         Include <unistd.h>.  On some systems,
92868         it is required for the definition of _SC_PAGESIZE.
92869
92870 2003-08-16  Jim Meyering  <jim@meyering.net>
92871
92872         Merge from coreutils.
92873         * lib/xstrtoimax.c: #else #if -> #elif.
92874         * lib/xstrtoumax.c: Likewise.
92875
92876 2003-08-16  Jim Meyering  <jim@meyering.net>
92877
92878         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92879         * m4/utimes.m4: Removed.
92880         * m4/utimes-null.m4: Renamed from utimes.m4.
92881
92882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92883         to 1MB, so as not to render systems with no stack size limit (e.g.,
92884         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92885         Include <unistd.h>.  On some systems,
92886         it is required for the definition of _SC_PAGESIZE.
92887
92888 2003-08-16  Jim Meyering  <jim@meyering.net>
92889         and Paul Eggert  <eggert@cs.ucla.edu>
92890
92891         Merges from coreutils, etc.
92892
92893         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92894         using the latest version from cvs.  This avoids problems with #line
92895         directives using a vendor (Sun) compiler.
92896         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92897         Don't set GETGROUPS_LIB here; now it's
92898         done via getgroups.m4's wrapper function.
92899         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92900         rather than just in sh-util/configure.in, so that the
92901         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92902         same.
92903         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92904         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92905         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92906         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92907         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92908         Remove code that is now done by the newly-required macros.
92909         Append $(EXEEXT) to DF_PROG.
92910         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92911         Do not invoke or require the following here,
92912         since prereq.m4 or some gnulib .m4 now does this for us:
92913         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92914         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92915         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92916         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92917         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92918         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92919         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92920         AC_FUNC_OBSTACK.
92921         Do not replace the following functions, as this is now the job
92922         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92923         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92924         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92925         atexit getpass, strdup, getpagesize.
92926         Replace 'raise'.
92927         Do not check for the following functions, as this is now the job
92928         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92929         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92930         setregid.
92931         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92932         Check for sys/sysctl.h.
92933         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92934         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92935         of checking for ssize_t ourselves.
92936
92937         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92938         Require every macro that gnulib/modules/* suggests for us.
92939         (jm_PREREQ_ADDEXT): New macro.
92940         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92941         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92942
92943         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92944         (gl_PHYSMEM): Use it.
92945         Also check for `table' function.
92946         Check for new headers and functions.
92947         Add check for sys/sysmp.h.
92948         With suggestions from Kaveh Ghazi.
92949         Ignore headers that are present but cannot be compiled.  This
92950         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92951         C 5.4.
92952
92953 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92954
92955         Document merge from coreutils.
92956         * modules/userspec: Depend on posixver.
92957         * modules/strftime: Depend on tzset.
92958
92959 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92960
92961         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92962         rather than tab, after '#' in shell-script copyright notices.
92963         Suggested by Bruno Haible.
92964
92965 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92966
92967         * config/srclist-update: Use three spaces, rather than tab, after '#'
92968         in shell-script copyright notices.  Suggested by Bruno Haible.
92969         Remove unnecessary parenthesization in regular expression.
92970
92971 2003-08-15  Jim Meyering  <jim@meyering.net>
92972
92973         Merge from coreutils.
92974         * lib/xgethostname.c: Include <stdlib.h>.
92975         (xghostname): Don't exit for anything other than memory-related
92976         failure; just return NULL.
92977         * lib/userspec.c: Include "posixver.h".
92978         (parse_user_spec): Accept `.' as a separator only
92979         in pre-POSIX-200112 mode.
92980         * lib/strtoimax.c: Use #elif rather than #else #if.
92981         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92982         Remove function, now that we can rely on a working tzset function.
92983         [!_LIBC]: Ensure that the required autoconf test has been run.
92984         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92985         Use underlying_strftime for %r.
92986         * lib/sha.c: Merge in some clean-up and optimization changes from
92987         glibc.
92988         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92989         Ensure that it is a multiple of 64.
92990         Rearrange loop exit tests so as to avoid performing an
92991         additional fread after encountering an error or EOF.
92992         * lib/realloc.c: Update copyright date.
92993
92994 2003-08-15  Jim Meyering  <jim@meyering.net>
92995         and Paul Eggert  <eggert@twinsun.com>
92996
92997         Merge from coreutils.
92998         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92999         member but strut utmpx does not.  Needed for AIX 4.3.3.
93000         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93001
93002 2003-08-15  Jim Meyering  <jim@meyering.net>
93003         and Paul Eggert  <eggert@cs.ucla.edu>
93004
93005         Merges from coreutils, etc.
93006         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93007         Require gl_FUNC_TZSET_CLOBBER.
93008         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93009         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93010         members.
93011
93012 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93013
93014         Help the merge from coreutils.
93015         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93016         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93017         * m4/tzset.m4: Use it too.
93018
93019 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93020
93021         * modules/tzset: New file.
93022
93023 2003-08-14  Jim Meyering  <jim@meyering.net>
93024
93025         Merges from coreutils.
93026         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93027         variable names, rather than @FNMATCH_H@.
93028         * modules/alloca: Likewise for $(ALLOCA_H).
93029
93030         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93031         the three copies of the literal target, `fnmatch.h'.
93032         * modules/alloca (alloca.h): Likewise.
93033
93034 2003-08-14  Jim Meyering  <jim@meyering.net>
93035
93036         Merge from coreutils.
93037         * m4/tzset.m4: New file.
93038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93039         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93040         otherwise, AIX 5.1 systems would end up using the latter.
93041         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93042         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93043         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93044         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93045
93046 2003-08-14  Jim Meyering  <jim@meyering.net>
93047
93048         Merge from coreutils.
93049         * lib/obstack.h: Whitespace changes.
93050         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93051         and xcalloc return values.
93052         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93053         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93054         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93055         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93056         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93057         error from mntctl.
93058         Use mntctl's return value to drive the entry-processing loop, since
93059         we can't rely on the value of the vmt_length member in the last
93060         entry.  On some systems doing so could result in exhausting
93061         virtual memory.  Based in part on a patch from Mike Jetzer.
93062
93063 2003-08-14  Jim Meyering  <jim@meyering.net>
93064         and Paul Eggert  <eggert@twinsun.com>
93065
93066         Merges from coreutils, plus other fixes.
93067         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93068         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93069         for credits and details.  Thanks to Kaveh Ghazi for helping
93070         to keep these files in sync.
93071         (ARRAY_SIZE): Define it.
93072         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93073         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93074         (memcasecmp): Don't assume size_t fits in unsigned int.
93075         Remove casts and duplicate code.
93076         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93077         (memcpy): Remove definition.
93078         Merge in some clean-up and optimization changes from glibc.
93079         [BLOCKSIZE]: Move definition to top of file.
93080         Ensure that it is a multiple of 64.
93081         Rearrange loop exit tests so as to avoid performing an
93082         additional fread after encountering an error or EOF.
93083         * lib/md5.h (md5_uintptr): Define.
93084         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93085         return to the initial working directory.  Preserve errno
93086         for caller.
93087         * lib/idcache.c: Include "xalloc.h".
93088         (xmalloc, xrealloc): Remove decls.
93089         (getuser): Remove casts no longer required in C89.
93090         * lib/human.c: Include stdio.h, for sprintf.
93091         * lib/group-member.c: Include "xalloc.h".
93092         (xmalloc, xrealloc): Remove decls.
93093         (get_group_info): Remove casts no longer required in C89.
93094         * lib/getusershell.c (readname): Remove casts no longer required in
93095         C89.
93096         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93097         * lib/getline.c: Whitespace fix, from coreutils.
93098
93099 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93100
93101         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93102         Check for isascii.
93103
93104         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93105         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93106         Undo previous (whitespace-only) change.
93107
93108 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93109
93110         * lib/exclude.c: Include <ctype.h>
93111         (IN_CTYPE_DOMAIN): New macro.
93112         (is_space): New fn.
93113         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93114         and empty lines.
93115
93116         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93117         Undo previous (whitespace-only) change.
93118
93119 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93120
93121         * config/srclist-update: Change update back to the old behavior,
93122         leaving whitespace alone.  Use one 'sed' command rather than a
93123         pipeline.
93124         (fixlicense): Now a variable, not a function.
93125         (remove_trailing_blanks): Remove.
93126         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93127         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93128         Undo previous (whitespace-only) change.
93129
93130 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93131
93132         Merge from coreutils.
93133         * modules/euidaccess: Add lib_SOURCES, include for new
93134         file euidaccess.h
93135
93136 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93137
93138         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93139         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93140         Normalize leading white space and remove trailing white space.
93141
93142         Merge from coreutils
93143         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93144
93145         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93146         0.12.1.  These files are now being upgraded automatically by
93147         ../config/srclist-update.
93148
93149 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93150
93151         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93152         Normalize leading white space and remove trailing white space.
93153         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93154         notice, as per ../config/srclist-update.
93155
93156         Merge from coreutils.
93157         * lib/euidaccess.h: New file.
93158         * lib/euidaccess.c: Include it.
93159         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93160         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93161         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93162
93163 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93164
93165         * config/srclist-update: Add copyright notice.
93166         (remove_id_lines, remove_trailing_blanks): New constants.
93167         (fixfile): Use them to normalize spacing a bit in copied files.
93168         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93169         Normalize leading white space and remove trailing white space.
93170
93171         * config/texinfo.tex: Sync with texinfo.
93172
93173         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93174         strtoul.c from libc, to merge coreutils whitespace changes.
93175
93176         * config/srclist.txt: Get the following m4 files from gettext:
93177         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93178         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93179         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93180         wint_t.m4.
93181
93182 2003-08-12  Karl Berry  <karl@gnu.org>
93183
93184         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93185         been made.
93186
93187 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93188
93189         * modules/gnu-source, m4/gnu-source.m4:
93190         Remove; we're assuming Autoconf 2.54 or later now.
93191         Suggested by Bruno Haible.
93192         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93193
93194 2003-08-11  Bruno Haible  <bruno@clisp.org>
93195
93196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93197
93198 2003-08-11  Bruno Haible  <bruno@clisp.org>
93199
93200         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93201         (vasnprintf): Use it instead of wcslen.
93202
93203 2003-08-11  Bruno Haible  <bruno@clisp.org>
93204
93205         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93206         value to ensure that _Bool promotes to int. Use #define for _Bool when
93207         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93208
93209 2003-08-10  Karl Berry  <karl@gnu.org>
93210
93211         * lib/regex.h: update from libc (whitespace fix).
93212
93213 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93214
93215         Merge some files from coreutils.  These changes were
93216         originally made by Jim Meyering.
93217         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93218         many older Unixes require this.
93219         * lib/alloca.c (alloca): Remove cast to argument of free;
93220         no longer needed in C89.
93221         * lib/alloca_.h, regex.h: Fix white space to match
93222         what GNU indent does.
93223
93224 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93225
93226         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93227         apparently Emacs's Unicode mode got confused before my 2003-08-05
93228         checkin.
93229
93230 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93231
93232         * m4/extensions.m4: New file.
93233         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93234         Require gl_USE_SYSTEM_EXTENSIONS.
93235         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93236         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93237
93238 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93239
93240         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93241         * modules/extensions, modules/gnu-source: New files.
93242         * modules/timespec, modules/unlocked-io: Depend on extensions.
93243
93244 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93245
93246         * modules/restrict: New file.
93247         * MODULES.html.sh (func_all_modules): Add restrict.
93248         * modules/regex: Depend on restrict.
93249
93250 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93251
93252         * m4/restrict.m4: New file.
93253         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93254
93255 2003-08-07  Bruno Haible  <bruno@clisp.org>
93256
93257         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93258         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93259
93260 2003-08-07  Bruno Haible  <bruno@clisp.org>
93261
93262         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93263         makes the module 'getndelim2' compatible with the module 'getline'.
93264
93265 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93266
93267         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93268         byte with "\201" to avoid glitches when editing that source file
93269         with multi-gnome-terminal.
93270
93271 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93272
93273         * lib/bumpalloc.h: Remove.
93274
93275 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93276
93277         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93278         * modules/bumpalloc: Remove.
93279
93280 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93281
93282         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93283         GNU coding style.
93284
93285         Merge from coreutils.
93286         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93287         1. From glibc.
93288         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93289         from Karl Berry, implemented by Jim Meyering.
93290         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93291         from Dmitry V. Levin.
93292         Remove anachronistic cast of xrealloc.
93293         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93294         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93295         type. Otherwise, it wouldn't compile with at least /bin/cc on
93296         ymp-cray-unicos9.0.2.X.
93297         Combine two mostly-identical uses of alloca into one.
93298         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93299
93300 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93301
93302         [From Emacs.]
93303
93304         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93305         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93306         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93307         obsolete NLIST_NAME_UNION.
93308         [__GNU__]: Undef BSD and FSCALE.
93309         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93310
93311 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93312
93313         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93314         an enum type, so that it's guaranteed to promote to int.  See:
93315         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93316
93317 2003-08-03  Karl Berry  <karl@gnu.org>
93318
93319         * config/depcomp: update from automake.
93320
93321 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93322
93323         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93324         (strerror): Don't assume that a printable int fits in 14 bytes.
93325
93326 2003-07-31  Bruno Haible  <bruno@clisp.org>
93327
93328         * modules/getpass-gnu: New file.
93329         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93330
93331 2003-07-31  Bruno Haible  <bruno@clisp.org>
93332
93333         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93334
93335 2003-07-24  Karl Berry  <karl@gnu.org>
93336
93337         * config/missing: update from automake.
93338
93339 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93340             Bruno Haible  <bruno@clisp.org>
93341
93342         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93343         * lib/getline.c (getline, getdelim): Likewise.
93344         Remove _GNU_SOURCE define; now it's defined in config.h through
93345         m4/getline.m4.
93346
93347 2003-07-23  Karl Berry  <karl@gnu.org>
93348
93349         * config/config.sub: update from prep.
93350
93351 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93352
93353         * modules/xalloc (Depends-on): Add exitfail.
93354         * modules/xmemcoll: Likewise.
93355
93356 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93357
93358         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93359         over-parenthesization in macros.
93360
93361         Sync with coreutils.
93362
93363         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93364         required by C99.
93365
93366         Use `exit_failure' for xalloc and xmemcoll instead of their own
93367         private exit-failure variables.
93368         * lib/xalloc.h (xalloc_exit_failure): Remove.
93369         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93370         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93371         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93372         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93373         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93374
93375 2003-07-20  Jim Meyering  <jim@meyering.net>
93376
93377         * modules/closeout (Depends-on): Add exitfail.
93378         Suggestion from Bruno Haible.
93379
93380 2003-07-19  Karl Berry  <karl@gnu.org>
93381
93382         * config/config.sub: update from prep.
93383
93384 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93385
93386         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93387         Remove.
93388         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93389         to test that it can stand by itself.  Include "exitfail.h".
93390         Clients should set exit_failure instead.
93391         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93392
93393 2003-07-18  Bruno Haible  <bruno@clisp.org>
93394
93395         * modules/getndelim2: New file.
93396         * modules/getline: Share files with module getndelim2.
93397         * modules/getnline: Depend on getndelim2 instead of sharing files with
93398         it. Add getnline.c to lib_SOURCES.
93399         * MODULES.html.sh (func_all_modules): Add getndelim2.
93400
93401 2003-07-18  Bruno Haible  <bruno@clisp.org>
93402
93403         * m4/getndelim2.m4: New file.
93404         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93405         invoke gl_PREREQ_GETNDELIM2.
93406         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93407         gl_PREREQ_GETNDELIM2.
93408         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93409         gl_GETNDELIM2.
93410
93411 2003-07-18  Bruno Haible  <bruno@clisp.org>
93412
93413         * lib/getndelim2.h: New file.
93414         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93415         getndelim2.h.
93416         (getndelim2): Make non-static. Change return type to ssize_t.
93417         * lib/getline.h: Change argument names.
93418         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93419         * lib/getnline.c: Include getndelim2.h.
93420
93421 2003-07-18  Andreas Schwab  <schwab@suse.de>
93422
93423         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93424
93425 2003-07-17  Karl Berry  <karl@gnu.org>
93426
93427         * config/config.sub: update from prep.
93428
93429 2003-07-17  Bruno Haible  <bruno@clisp.org>
93430
93431         * modules/getnline: New file.
93432         * modules/getline: Add lib/getndelim2.c to source file list.
93433         * MODULES.html.sh (func_all_modules): Add getnline.
93434
93435 2003-07-17  Bruno Haible  <bruno@clisp.org>
93436
93437         * m4/getnline.m4: New file.
93438
93439 2003-07-17  Bruno Haible  <bruno@clisp.org>
93440
93441         * m4/Makefile.am.in: Remove file.
93442         * m4/Makefile.am: Remove file.
93443         * m4/Makefile.in: Remove file.
93444
93445 2003-07-17  Bruno Haible  <bruno@clisp.org>
93446
93447         * lib/getnline.h: New file.
93448         * lib/getnline.c: New file.
93449         * lib/getndelim2.c: New file, extracted from getline.c.
93450         (getndelim2): Renamed from getdelim2, with added nmax argument.
93451         * lib/getline.c: Include getndelim2.c.
93452         (getdelim2): Moved out to getndelim2.c.
93453         (getline, getdelim): Update.
93454
93455 2003-07-17  Bruno Haible  <bruno@clisp.org>
93456
93457         * lib/Makefile.am: Remove file.
93458         * lib/Makefile.in: Remove file.
93459
93460 2003-07-17  Bruno Haible  <bruno@clisp.org>
93461
93462         * configure.in: Remove file.
93463         * Makefile.in: Remove file.
93464
93465 2003-07-17  Bruno Haible  <bruno@clisp.org>
93466
93467         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93468
93469 2003-07-16  Karl Berry  <karl@gnu.org>
93470
93471         * config/srclist-update: was running fixlicense twice, which caused
93472                 texinfo.tex to be nullified for some reason.  Simplify,
93473                 $gplsrc is no longer needed as far as I can see?
93474
93475 2003-07-16  Jim Meyering  <jim@meyering.net>
93476
93477         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93478
93479 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93480
93481         * config/srclist.txt: Get the following files from gettext-runtime/intl
93482         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93483         ref-del.sin.  From Bruno Haible.
93484         * config/srclist-update (fixfile): Change grep pattern again, since the
93485         previous fix didn't work (there was another trailing $).  Use
93486         '[$]' to escape the $s.
93487
93488 2003-07-15  Karl Berry  <karl@gnu.org>
93489
93490         * lib/vasnprintf.c: update from gettext.
93491
93492 2003-07-15  Karl Berry  <karl@gnu.org>
93493
93494         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93495         gets expanded when surrounded by '$'.
93496
93497 2003-07-15  Jim Meyering  <jim@meyering.net>
93498
93499         * modules/save-cwd: Don't depend on error.  From Derek Price.
93500
93501 2003-07-15  Jim Meyering  <jim@meyering.net>
93502
93503         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93504
93505 2003-07-14  Simon Josefsson  <jas@extundo.com>
93506
93507         * modules/mempcpy: New file.
93508         * MODULES.html.sh (func_all_modules): Add mempcpy.
93509
93510 2003-07-14  Simon Josefsson  <jas@extundo.com>
93511
93512         * m4/mempcpy.m4: New file.
93513
93514 2003-07-14  Simon Josefsson  <jas@extundo.com>
93515
93516         * lib/mempcpy.h: New file.
93517         * lib/mempcpy.c: New file.
93518
93519 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93520
93521         * modules/getdate, modules/posixtm: Depend on mktime.
93522
93523 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93524
93525         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93526         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93527         unicodeio.c, unicodeio.h, unlocked-io.h:
93528         Switch from LGPL to GPL.
93529
93530 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93531
93532         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93533         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93534         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93535         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93536         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93537         updated automatically by ../config/srclist-update.  This changes
93538         their license from LPGL to GPL.
93539
93540 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93541
93542         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93543         assumed to refer to the root of the most recent stable gettext version.
93544         * config/srclistvars.sh: Add defaults for eggert.
93545         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93546         Match "This program" as well as "The program".  This is needed
93547         for gettext.
93548
93549 2003-07-14  Jim Meyering  <jim@meyering.net>
93550
93551         Don't emit diagnostics.  Let callers do that.
93552         * lib/save-cwd.c: Don't include "error.h".
93553         (save_cwd): Don't call error.  Ensure that errno is valid
93554         when returning nonzero.
93555
93556         * lib/save-cwd.h (restore_cwd): Update prototype.
93557         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93558         Simplify.  Don't call error upon failure.  Let callers do that.
93559         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93560         when auditing is enabled.  But don't bother updating the #if.
93561
93562 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93563
93564         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93565         it breaks C++ compilation.
93566         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93567
93568 2003-07-10  Simon Josefsson  <jas@extundo.com>
93569
93570         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93571
93572 2003-07-10  Jim Meyering  <jim@meyering.net>
93573
93574         * m4/clock_time.m4: Remove trailing blank.
93575         * m4/intmax_t.m4: Likewise.
93576
93577 2003-07-10  Jim Meyering  <jim@meyering.net>
93578
93579         * lib/vasnprintf.c: Remove trailing blanks.
93580         Make cpp indentation consistent.
93581
93582 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93583
93584         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93585         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93586         Switch from LGPL to GPL.
93587
93588 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93589
93590         * config/srclist.txt: Sort sublists.  Add
93591         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93592         that differ from gnulib for one reason or another; we'd like this list
93593         to be smaller but for now let's document what we have.
93594
93595 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93596
93597         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93598         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93599         and sweeter "eval x=$x".
93600         * config/srclist.txt: Get lib/argp* from glibc.
93601
93602 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93603
93604         * lib/mktime.c: Fix some boundary cases and remove need for floating
93605         point.
93606
93607         Issue a compile-time diagnostic if time_t is floating point, or if
93608         two's complement arithmetic is not in effect, or if arithmetic
93609         right shift does not propagate the sign.  These assumptions were
93610         all in the original code but they weren't checked.
93611
93612         (TIME_T_MIDPOINT, verify): New macros.
93613         (__isleap): Remove; it has integer overflow problems.
93614         (leapyear): New function, without those problems.
93615         (ydhms_tm_diff): Remove; splitting into two parts.
93616         (ydhms_diff): New function, containing the arithmetic part of
93617         the old ydhms_tm_diff function.  Issue a compile-time
93618         diagnostic if we are not using C99 integer division.
93619         Avoid casts when possible.
93620         (guess_time_tm): New function, containing the checking part of
93621         the old ydhms_tm_diff function.  Return the new value, rather than
93622         the difference between it and the old.  Accept a new argument T
93623         so that *T specifies the old value.  Check for overflow in the result.
93624
93625         (__mktime_internal): Use a time_t offset, not a long int offset.
93626         This undoes the 2003-06-04 change, which is no longer needed now
93627         that we have better overflow checking.
93628         (localtime_offset): Likewise.
93629
93630         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93631         and long are 64-bit but int is only 32-bit.
93632         (ydhms_diff): Use long int to store year1 and yday1.
93633         Issue a compile-time diagnostic if long int is not wide enough.
93634
93635         (__mktime_internal): Use long int to store adjusted year and yday.
93636         Use plain C rather than preprocessor commands, if that doesn't
93637         affect efficiency.
93638         Check for overflow (and try to repair) after each probe
93639         rather than checking only at the very end.  This avoids some bugs
93640         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93641         does not equal GMT offset at maximum time).
93642         Use integer to check for overflow rather than floating point; this
93643         is more portable to non-IEEE hosts, and is a tad faster.
93644         When we detect that we are oscillating between two values,
93645         don't check whether tm_isdst has the requested value, since
93646         we already know the answer.  When tm_isdst has the wrong value,
93647         use a different heuristic to find the right one, based on the
93648         extreme values actually observed in practice in tz2003a,
93649         rather than the (overly optimistic) "previous 3 calendar quarters".
93650
93651         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93652         "T const" to accommodate glibc style.
93653         (check_result): Use less-confusing report format.  "long" -> "long int.
93654         (main): Likewise.
93655         Don't loop if the iteration overflows time_t.
93656         Allow a negative step in the iteration.
93657
93658 2003-07-06  Karl Berry  <karl@gnu.org>
93659
93660         * config/depcomp: update from automake.
93661         * config/config.sub: update from prep.
93662
93663 2003-07-03  Karl Berry  <karl@gnu.org>
93664
93665         * config/config.guess: update from prep.
93666
93667 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93668
93669         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93670         xreadlink.c now includes it unconditionally.
93671
93672 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93673
93674         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93675         having it depend on HAVE_SYS_TYPES_H.
93676
93677 2003-07-01  Bruno Haible  <bruno@clisp.org>
93678
93679         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93680         <sys/types.h> should be sufficient.
93681         Reported by Paul Eggert.
93682
93683 2003-06-26  Karl Berry  <karl@gnu.org>
93684
93685         * config/depcomp: update from automake.
93686
93687 2003-06-26  Bruno Haible  <bruno@clisp.org>
93688
93689         * modules/human: Depend on module stdbool.
93690
93691 2003-06-25  Bruno Haible  <bruno@clisp.org>
93692
93693         * modules/readlink: New file.
93694         * modules/xreadlink: Depend on it.
93695         * MODULES.html.sh (func_all_modules): Add readlink.
93696
93697 2003-06-25  Bruno Haible  <bruno@clisp.org>
93698
93699         * m4/readlink.m4: New file.
93700
93701 2003-06-25  Bruno Haible  <bruno@clisp.org>
93702
93703         * lib/readlink.c: New file.
93704
93705 2003-06-22  Karl Berry  <karl@gnu.org>
93706
93707         * config/srclist.txt: update mkinstalldirs from automake.
93708         * config/mkinstalldirs: update.
93709
93710 2003-06-22  Bruno Haible  <bruno@clisp.org>
93711
93712         Portability to mingw32.
93713         * m4/ssize_t.m4: New file, from GNU gettext.
93714         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93715         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93716
93717 2003-06-22  Bruno Haible  <bruno@clisp.org>
93718
93719         * modules/safe-read: Add m4/ssize_t.m4.
93720         * modules/xreadlink: Add m4/ssize_t.m4.
93721
93722 2003-06-20  Bruno Haible  <bruno@clisp.org>
93723
93724         Assume C89, so PARAMS isn't needed.
93725         * lib/unicodeio.h (PARAMS): Remove.
93726         * lib/unicodeio.c: Don't use PARAMS.
93727
93728 2003-06-18  Karl Berry  <karl@gnu.org>
93729
93730         * config/config.{guess,sub}: update from prep.
93731
93732 2003-06-18  Jim Meyering  <jim@meyering.net>
93733
93734         Merge changes from coreutils.
93735         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93736         Remove explicit declarations of xmalloc and realloc.
93737         Include xalloc.h.
93738         (read_utmp): Remove anachronistic cast of xmalloc.
93739
93740 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93741
93742         Assume C89, so PARAMS isn't needed.
93743         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93744         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93745         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93746         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93747         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93748         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93749         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93750         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93751         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93752         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93753         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93754         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93755         no longer needed. Anyway, config.h should always be included before any
93756         other file.
93757
93758 2003-06-11  Simon Josefsson  <jas@extundo.com>
93759
93760         * modules/sysexits: New file.
93761         * MODULES.html.sh (func_all_modules): Add sysexits.
93762
93763 2003-06-11  Simon Josefsson  <jas@extundo.com>
93764
93765         * lib/sysexit_.h: New file.
93766
93767 2003-06-11  Derek Price  <derek@ximbiot.com>
93768
93769         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93770         necessary.
93771
93772 2003-06-11  Bruno Haible  <bruno@clisp.org>
93773
93774         * m4/sysexits.m4: New file.
93775
93776 2003-06-10  Simon Josefsson  <jas@extundo.com>
93777
93778         * lib/argp.h: New file, from glibc.
93779         * lib/argp-ba.c: New file, from glibc.
93780         * lib/argp-eexst.c: New file, from glibc.
93781         * lib/argp-fmtstream.c: New file, from glibc.
93782         * lib/argp-fmtstream.h: New file, from glibc.
93783         * lib/argp-fs-xinl.c: New file, from glibc.
93784         * lib/argp-help.c: New file, from glibc.
93785         * lib/argp-namefrob.h: New file, from glibc.
93786         * lib/argp-parse.c: New file, from glibc.
93787         * lib/argp-pv.c: New file, from glibc.
93788         * lib/argp-pvh.c: New file, from glibc.
93789         * lib/argp-xinl.c: New file, from glibc.
93790
93791 2003-06-10  Simon Josefsson  <jas@extundo.com>
93792
93793         * modules/strchrnul: New file.
93794
93795 2003-06-10  Simon Josefsson  <jas@extundo.com>
93796
93797         * modules/argp: New file.
93798
93799 2003-06-10  Simon Josefsson  <jas@extundo.com>
93800
93801         * m4/strchrnul.m4: New file.
93802
93803 2003-06-10  Simon Josefsson  <jas@extundo.com>
93804
93805         * lib/strchrnul.h: New file.
93806         * lib/strchrnul.c: New file.
93807
93808 2003-06-10  Bruno Haible  <bruno@clisp.org>
93809
93810         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93811
93812 2003-06-07  Karl Berry  <karl@gnu.org>
93813
93814         * config/config.{guess,sub}: update from prep.
93815
93816 2003-06-07  Jim Meyering  <jim@meyering.net>
93817
93818         * modules/strtod: Use $(...) notation, not @...@ for
93819         AC_REPLACE'd variables.
93820         * modules/localcharset: Likewise.
93821
93822 2003-06-07  Jim Meyering  <jim@meyering.net>
93823
93824         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93825         in place of my name in the copyright comment.
93826         Remove definition and uses of __P.
93827
93828         From coreutils.
93829         * lib/stat.c: Don't declare xmalloc explicitly.
93830         Instead, include "xalloc.h".
93831         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93832         xrealloc, and xcalloc return values.
93833         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93834         Improve comment.
93835         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93836
93837 2003-06-07  Bruno Haible  <bruno@clisp.org>
93838
93839         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93840         avoid AC_CONFIG_LINKS.
93841         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93842         fnmatch.h, to avoid AC_CONFIG_LINKS.
93843         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93844
93845 2003-06-07  Bruno Haible  <bruno@clisp.org>
93846
93847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93848         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93849         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93850         directory.
93851         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93852         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93853         directory.
93854
93855 2003-06-06  Jim Meyering  <jim@meyering.net>
93856
93857         Merge from coreutils.
93858         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93859         Consolidate declarations and initializations of *_base* locals.
93860
93861         Merge from coreutils.
93862         This avoids a core dump on systems without GNU putenv,
93863         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93864         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93865         (unsetenv): New static function, from GNU libc.
93866         (rpl_putenv): Use it.
93867
93868         * lib/modechange.c: Remove trailing blanks.
93869
93870         Merge from coreutils.
93871         * lib/fsusage.c: Remove declaration of statfs.
93872         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93873
93874         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93875
93876 2003-06-06  Jim Meyering  <jim@meyering.net>
93877
93878         * lib/stdbool_.h: Renamed from stdbool.h.in.
93879
93880 2003-06-06  Jim Meyering  <jim@meyering.net>
93881             Bruno Haible  <bruno@clisp.org>
93882
93883         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93884         Adjust Makefile.am snippet not to redirect directly to target.
93885         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93886
93887 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93888
93889         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93890         mismatch, look in future quarters as well as past.  This fixes a
93891         bug when processing fall-backwards gaps immediately after a long
93892         period of daylight-saving time.
93893
93894         * lib/mktime.c: Assume freestanding C89 or better.
93895         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93896         (__P): Remove; not used.
93897         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93898         (mktime, not_equal_tm, print_tm, check_result,
93899         main): Use prototypes.  Use const * where appropriate.
93900         (main): Fix typo in testing code that uncovered by above changes.
93901         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93902
93903 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93904
93905         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93906         locale.h, localeconv.  This merges changes from coreutils.
93907
93908         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93909         It can be removed after the next Autoconf is released.
93910         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93911         needed.
93912
93913 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93914
93915         * lib/mktime.c: Fix Debian bug 177940
93916         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93917         (localtime_offset): Now long int, not time_t, because we want it
93918         to be guaranteed to be signed.  All uses changed.
93919         (__mktime_internal): If overflow would occur when adding offset,
93920         don't add it.
93921
93922         Merge 'human' changes from coreutils.  Rewrite to support
93923         locale-specific notations like thousands separators.
93924         * lib/human.c: Simplify authorship notice.
93925         Include human.h immediately after config.h.
93926         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93927         <limits.h>: Do not include, since human.h does.
93928         (SIZE_MAX, UINTMAX_MAX): New macros.
93929         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93930         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93931         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93932         (power_letter): Renamed from suffixes.
93933         (generate_suffix_backwards): Remove.
93934         (adjust_value): Now takes int style (because of human.h changes)
93935         and long double value (for greater precision on some platforms).
93936         (group_number): New function.
93937         (human_readable): Use it.  Use integer options, not enum.
93938         Put the options before the sizes in the arg list.
93939         Support all the new options.
93940         The old human_readable function has been removed;
93941         use inttostr.h instead.
93942         (human_readable, default_block_size, humblock):
93943         Use uintmax_t, not int, for block sizes.
93944         (human_readable_inexact, block_size_types): Remove.
93945         (block_size_opts): New constant.
93946         (human_options): Renamed from human_block_size, with new signature
93947         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93948         * lib/human.h: Add copyright and authorship notice.
93949         Include <limits.h> and <stdbool.h> unconditionally.
93950         (PARAMS): Remove.  All uses removed.
93951         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93952         (enum human_inexact_style): Remove tag; now a nameless enum.
93953         (human_floor, human_ceiling, human_round_to_even): Now have
93954         values 2, 0, 1 rather than -1, 1, 0.
93955         (human_group_digits, human_suppress_point_zero, human_autoscale,
93956         human_base_1024, human_SI, human_B): New constants.
93957         (human_readable_inexact, human_block_size): Remove.
93958         (human_readable): Size args are now uintmax_t, not int.
93959         (human_options): New decl.
93960
93961         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93962         unnecessary now that we assume C89 or better.  This change
93963         imported from coreutils.
93964
93965         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93966         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93967         in the 2003-05-30 sync from glibc.
93968
93969         .h files should stand alone, but we shouldn't include <sys/types.h>
93970         if we can get away with just <stddef.h>.
93971
93972         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93973         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93974         rather than <sys/types.h>, as we merely need size_t.
93975         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93976         to get size_t.
93977         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93978         Include <stdio.h>, to get FILE.
93979         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93980         memcasecmp.h has included <stddef.h> and all we need is size_t.
93981         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93982         our interface, instead of including <sys/types.h>
93983
93984 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93985
93986         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93987         now, as glibc mktime is buggy on non-glibc systems.
93988
93989 2003-06-03  Karl Berry  <karl@gnu.org>
93990
93991         * config/config.sub: update from prep.
93992
93993 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93994
93995         [from coreutils]
93996         Fix some minor time-related bugs with POSIX time arguments.
93997         Some valid time stamps were being rejected (notably -1, and
93998         time stamps before 1900 on 64-bit hosts).  And some invalid
93999         time stamps were being accepted, e.g. September 31.
94000
94001         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94002         that we can return (time_t) -1 successfully.
94003         * lib/posixtm.c: Likewise.
94004         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94005         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94006         (t): Remove static var.
94007         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94008         of static var.  All uses changed.
94009         (year): Do not reject years before 1900; they can occur with
94010         64-bit time_t.
94011         (posix_time_parse): Do not check for out-of-range components;
94012         that is now the caller's responsibility, since our checks were
94013         only approximations.
94014         (posixtime): Use mktime to check for out-of-range components,
94015         since it knows them exactly.
94016         If mktime returns (time_t) -1, check whether an error actually occurred
94017         by invoking localtime on -1.
94018         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94019         posixtime failures better.
94020         Improve the test data (in comments only).
94021
94022 2003-06-02  Karl Berry  <karl@gnu.org>
94023
94024         * config/mkinstalldirs (version): new variable.
94025         (--version): new option.
94026         (usage): improve message.
94027
94028 2003-05-30  Karl Berry  <karl@gnu.org>
94029
94030         * lib/mktime.c: update from libc.
94031
94032 2003-05-30  Bruno Haible  <bruno@clisp.org>
94033
94034         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94035         * config/config.rpath: Upgrade to gettext-0.12.1.
94036
94037 2003-05-30  Bruno Haible  <bruno@clisp.org>
94038
94039         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94040         * m4/nls.m4: New file, from gettext-0.12.1.
94041         * m4/po.m4: New file, from gettext-0.12.1.
94042         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94043
94044 2003-05-30  Bruno Haible  <bruno@clisp.org>
94045
94046         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94047         * lib/localcharset.h: Likewise.
94048         * lib/localcharset.c: Likewise.
94049
94050 2003-05-29  Karl Berry  <karl@gnu.org>
94051
94052         * config/config.rpath: update from gettext.
94053
94054 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94055
94056         Assume the headers required for C89 freestanding compilers.
94057         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94058         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94059         * m4/human.m4 (gl_HUMAN): Likewise.
94060         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94061         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94062         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94063         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94065         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94066
94067 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94068
94069         Assume the headers required for C89 freestanding compilers.
94070         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94071         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94072         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94073         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94074         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94075         define, since <limits.h> is guaranteed to do that.
94076         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94077         * lib/exclude.c: Include <stdbool.h> unconditionally.
94078         * lib/tempname.c: Include <stddef.h> unconditionally.
94079         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94080         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94081         <stddef.h> does that.
94082         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94083         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94084         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94085         needed.
94086         * lib/xstrtol.c: Likewise.
94087         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94088         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94089
94090         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94091         warnings on some platforms.
94092
94093         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94094         arbitrarily.
94095
94096 2003-05-26  Jim Meyering  <jim@meyering.net>
94097
94098         Merge in a change from coreutils:
94099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94100         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94101         that condition, rather than `-1' which is slightly misleading.
94102         Change the name of the cache variable to have the gl_ prefix.
94103         Prompted by a patch from Richard Dawe for DJGPP.
94104
94105 2003-05-24  Karl Berry  <karl@gnu.org>
94106
94107         * config/config.guess: update from prep.
94108
94109 2003-05-22  Karl Berry  <karl@gnu.org>
94110
94111         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94112
94113 2003-05-20  Karl Berry  <karl@gnu.org>
94114
94115         * config/config.guess: update from prep.
94116
94117 2003-05-18  Karl Berry  <karl@gnu.org>
94118
94119         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94120         might actually be set by the user.
94121
94122         * config/depcomp, install-sh, mdate-sh: update from automake.
94123
94124 2003-05-17  Bruno Haible  <bruno@clisp.org>
94125
94126         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94127         invalid expansion for AC_EGREP_CPP.
94128         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94129         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94130         Suggested by Akim Demaille <akim@epita.fr> in
94131         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94132
94133 2003-05-12  Jim Meyering  <jim@meyering.net>
94134
94135         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94136         the space-padded-by-default conversion specifiers, %e, %k, %l.
94137
94138 2003-05-12  Bruno Haible  <bruno@clisp.org>
94139
94140         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94141         the string is longer than 4 KB.
94142
94143 2003-05-11  Karl Berry  <karl@gnu.org>
94144
94145         * config/config.{guess,sub}: update from prep.
94146
94147 2003-05-09  Bruno Haible  <bruno@clisp.org>
94148
94149         * modules/error: Add m4/strerror_r.m4 to file list.
94150
94151 2003-05-03  Bruno Haible  <bruno@clisp.org>
94152
94153         Upgrade to Unicode-4.0.
94154         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94155         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94156         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94157         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94158         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94159         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94160         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94161         Change width of U+E0100..U+E01EF from 1 to 0.
94162
94163 2003-04-25  Jim Meyering  <jim@meyering.net>
94164
94165         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94166         of type size_t, not int.
94167
94168 2003-04-25  Bruno Haible  <bruno@clisp.org>
94169
94170         * lib/copy-file.c: Include <stddef.h>, for size_t.
94171
94172 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94173
94174         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94175         code which expansion is under static control.  Patch imported from
94176         Akim Demaille's patch to Bison; see
94177         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94178
94179 2003-04-14  Bruno Haible  <bruno@clisp.org>
94180
94181         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94182
94183 2003-04-11  Jim Meyering  <jim@meyering.net>
94184
94185         Merge changes from Coreutils.
94186
94187         2003-03-22  Jim Meyering  <jim@meyering.net>
94188
94189         * lib/strftime.c (widen): Cast alloca return value to proper type.
94190
94191         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94192
94193         From GNU libc.
94194         * lib/strftime.c (my_strftime): Handle very large width
94195         specifications for numeric values correctly.  Improve checks for
94196         overflow.
94197
94198         2003-01-19  Jim Meyering  <jim@meyering.net>
94199
94200         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94201         definitions.
94202         (nl_get_alt_digit) [! defined my_strftime]: Define.
94203         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94204         _nl_get_alt_digit and _nl_get_walt_digit.
94205
94206         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94207         libc. These changes have no effect outside of _LIBC.
94208
94209 2003-04-10  Bruno Haible  <bruno@clisp.org>
94210
94211         * modules/findprog: New file.
94212         * MODULES.html.sh (func_all_modules): Add it.
94213
94214 2003-04-10  Bruno Haible  <bruno@clisp.org>
94215
94216         * m4/findprog.m4: New file.
94217         * m4/eaccess.m4: New file.
94218
94219 2003-04-10  Bruno Haible  <bruno@clisp.org>
94220
94221         * lib/findprog.h: New file, from GNU gettext.
94222         * lib/findprog.c: New file, from GNU gettext.
94223
94224 2003-04-05  Jim Meyering  <jim@meyering.net>
94225
94226         Merge changes from Coreutils.
94227
94228         * lib/exclude.h (PARAMS): Remove definition and uses.
94229         * lib/exclude.c: Remove uses of `PARAMS'.
94230
94231         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94232         Add test-cases for DOS filenames. Declare program_name.
94233         (main): Set up program_name.  Patch by Rich Dawe.
94234
94235         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94236         error from mntctl.
94237         Use mntctl's return value to drive the entry-processing loop, since
94238         we can't rely on the value of the vmt_length member in the last
94239         entry.  On some systems doing so could result in exhausting
94240         virtual memory.  Based in part on a patch from Mike Jetzer.
94241
94242 2003-04-04  Bruno Haible  <bruno@clisp.org>
94243
94244         * modules/linebreak: New file.
94245         * MODULES.html.sh (func_all_modules): Add it.
94246
94247 2003-04-04  Bruno Haible  <bruno@clisp.org>
94248
94249         * m4/linebreak.m4: New file.
94250
94251 2003-04-04  Bruno Haible  <bruno@clisp.org>
94252
94253         * lib/linebreak.h: New file, from GNU gettext.
94254         * lib/linebreak.c: New file, from GNU gettext with slight
94255         modifications.
94256         * lib/lbrkprop.h: New file, from GNU gettext.
94257
94258 2003-04-03  Bruno Haible  <bruno@clisp.org>
94259
94260         * modules/utf8-ucs4: New file.
94261         * modules/utf16-ucs4: New file.
94262         * modules/ucs4-utf8: New file.
94263         * modules/ucs4-utf16: New file.
94264         * MODULES.html.sh (func_all_modules): Add them.
94265
94266 2003-04-03  Bruno Haible  <bruno@clisp.org>
94267
94268         * m4/utf-ucs4.m4: New file.
94269         * m4/ucs4-utf.m4: New file.
94270
94271 2003-04-03  Bruno Haible  <bruno@clisp.org>
94272
94273         * lib/utf8-ucs4.h: New file, from GNU gettext.
94274         * lib/utf16-ucs4.h: New file, from GNU gettext.
94275         * lib/ucs4-utf8.h: New file, from GNU gettext.
94276         * lib/ucs4-utf16.h: New file, from GNU gettext.
94277
94278 2003-04-02  Bruno Haible  <bruno@clisp.org>
94279
94280         * modules/binary-io: New file.
94281         * MODULES.html.sh (func_all_modules): Add it.
94282
94283 2003-04-02  Bruno Haible  <bruno@clisp.org>
94284
94285         * lib/binary-io.h: New file, from GNU gettext.
94286
94287 2003-04-01  Bruno Haible  <bruno@clisp.org>
94288
94289         * modules/pathname: New file.
94290         * MODULES.html.sh (func_all_modules): Add it.
94291
94292 2003-04-01  Bruno Haible  <bruno@clisp.org>
94293
94294         * lib/pathname.h: New file, from GNU gettext.
94295         * lib/concatpath.c: New file, from GNU gettext.
94296
94297 2003-03-30  Bruno Haible  <bruno@clisp.org>
94298
94299         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94300
94301 2003-03-30  Bruno Haible  <bruno@clisp.org>
94302
94303         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94304         function chown() doesn't exist.
94305
94306 2003-03-28  Bruno Haible  <bruno@clisp.org>
94307
94308         * modules/copy-file: New file.
94309         * MODULES.html.sh (func_all_modules): Add it.
94310
94311 2003-03-28  Bruno Haible  <bruno@clisp.org>
94312
94313         * m4/copy-file.m4: New file.
94314
94315 2003-03-28  Bruno Haible  <bruno@clisp.org>
94316
94317         * lib/copy-file.h: New file, from GNU gettext.
94318         * lib/copy-file.c: New file, from GNU gettext.
94319
94320 2003-03-18  Jim Meyering  <jim@meyering.net>
94321
94322         * lib/quote.c (quote_n): Fix typo in comment.
94323
94324 2003-03-18  Bruno Haible  <bruno@clisp.org>
94325
94326         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94327         checking.
94328         * m4/onceonly_2_57.m4: Likewise.
94329
94330 2003-03-17  Bruno Haible  <bruno@clisp.org>
94331
94332         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94333         (m4_quote): Remove macro.
94334         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94335
94336 2003-03-14  Jim Meyering  <jim@meyering.net>
94337
94338         Merge changes from Coreutils.
94339         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94340         to be const, in order to avoid warnings.
94341         (obstack_room): Likewise.
94342         (obstack_empty_p): Likewise.
94343
94344 2003-03-14  Bruno Haible  <bruno@clisp.org>
94345
94346         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94347         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94348
94349 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94350
94351         Merge changes from Bison.
94352         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94353         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94354         when compiling Bison 1.875's `bitset bset = obstack_alloc
94355         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94356         * lib/hash.c: Include <stdbool.h> unconditionally.
94357
94358 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94359
94360         * m4/onceonly.m4 (m4_quote): New macro.
94361         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94362         Quote AC_FOREACH variable-expansions properly.
94363
94364 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94365
94366         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94367
94368 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94369
94370         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94371         Reported by Bruce Becker; see:
94372         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94373
94374 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94375             Bruno Haible  <bruno@clisp.org>
94376
94377         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94378         Reported by John Hughes, see
94379         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94380
94381 2003-02-20  Bruno Haible  <bruno@clisp.org>
94382
94383         * MODULES.html.sh (func_all_modules): Add poll.
94384
94385 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94386
94387         * modules/poll: New file.
94388
94389 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94390
94391         * lib/poll_.h: New file.
94392         * lib/poll.c: New file.
94393
94394 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94395
94396         * m4/poll.m4: New file.
94397
94398 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94399
94400         * modules/mathl: New file.
94401
94402 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94403
94404         * lib/mathl.h: New file.
94405         * lib/acosl.c: New file.
94406         * lib/asinl.c: New file.
94407         * lib/atanl.c: New file.
94408         * lib/ceill.c: New file.
94409         * lib/cosl.c: New file.
94410         * lib/expl.c: New file.
94411         * lib/floorl.c: New file.
94412         * lib/frexpl.c: New file.
94413         * lib/ldexpl.c: New file.
94414         * lib/logl.c: New file.
94415         * lib/sincosl.c: New file.
94416         * lib/sinl.c: New file.
94417         * lib/sqrtl.c: New file.
94418         * lib/tanl.c: New file.
94419         * lib/trigl.c: New file.
94420         * lib/trigl.h: New file.
94421
94422 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94423
94424         * m4/mathl.m4: New file.
94425
94426 2003-02-18  Bruno Haible  <bruno@clisp.org>
94427
94428         * MODULES.html.sh (func_all_modules): Add mathl.
94429
94430 2003-02-17  Bruno Haible  <bruno@clisp.org>
94431
94432         * modules/mkdtemp: New module.
94433         * MODULES.html.sh (func_all_modules): Add it.
94434
94435 2003-02-17  Bruno Haible  <bruno@clisp.org>
94436
94437         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94438
94439 2003-02-17  Bruno Haible  <bruno@clisp.org>
94440
94441         * lib/mkdtemp.h: New file, from GNU gettext.
94442         * lib/mkdtemp.c: New file, from GNU gettext.
94443
94444 2003-02-02  Jim Meyering  <jim@meyering.net>
94445
94446         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94447         e.g. glibc-2.2.93.
94448
94449 2003-01-31  Bruno Haible  <bruno@clisp.org>
94450
94451         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94452         'rpl_rename'.
94453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94454         'rpl_strnlen'.
94455         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94456         'rpl_strtod'.
94457         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94458         'rpl_utime'.
94459
94460 2003-01-31  Bruno Haible  <bruno@clisp.org>
94461
94462         * lib/rename.c: #undef rename before defining rpl_rename.
94463         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94464
94465 2003-01-30  Bruno Haible  <bruno@clisp.org>
94466
94467         * modules/vasnprintf, modules/vasprintf: New modules.
94468         * MODULES.html.sh (func_all_modules): Add them.
94469
94470 2003-01-30  Bruno Haible  <bruno@clisp.org>
94471
94472         * m4/signed.m4: New file, from GNU gettext.
94473         * m4/longdouble.m4: New file, from GNU gettext.
94474         * m4/wchar_t.m4: New file, from GNU gettext.
94475         * m4/wint_t.m4: New file, from GNU gettext.
94476         * m4/vasnprintf.m4: New file.
94477         * m4/vasprintf.m4: New file.
94478
94479 2003-01-30  Bruno Haible  <bruno@clisp.org>
94480
94481         * lib/printf-args.h: New file, from GNU gettext.
94482         * lib/printf-args.c: New file, from GNU gettext.
94483         * lib/printf-parse.h: New file, from GNU gettext.
94484         * lib/printf-parse.c: New file, from GNU gettext.
94485         * lib/vasnprintf.h: New file, from GNU gettext.
94486         * lib/vasnprintf.c: New file, from GNU gettext.
94487         * lib/asnprintf.c: New file, from GNU gettext.
94488         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94489         * lib/vasprintf.c: New file, from GNU gettext.
94490         * lib/asprintf.c: New file, from GNU gettext.
94491
94492 2003-01-29  Bruno Haible  <bruno@clisp.org>
94493
94494         * modules/stpncpy: New module.
94495         * MODULES.html.sh (func_all_modules): Add it.
94496
94497 2003-01-29  Bruno Haible  <bruno@clisp.org>
94498
94499         * m4/stpncpy.m4: New file.
94500
94501 2003-01-29  Bruno Haible  <bruno@clisp.org>
94502
94503         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94504         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94505
94506 2003-01-28  Bruno Haible  <bruno@clisp.org>
94507
94508         * modules/c-ctype: New module.
94509         * MODULES.html.sh (func_all_modules): Add it.
94510
94511 2003-01-28  Bruno Haible  <bruno@clisp.org>
94512
94513         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94514         Paul Eggert.
94515         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94516         Paul Eggert.
94517
94518 2003-01-27  Bruno Haible  <bruno@clisp.org>
94519
94520         * modules/xsetenv: New module.
94521         * MODULES.html.sh (func_all_modules): Add it.
94522
94523 2003-01-27  Bruno Haible  <bruno@clisp.org>
94524
94525         * lib/xsetenv.h: New file, from GNU gettext.
94526         * lib/xsetenv.c: New file, from GNU gettext.
94527
94528 2003-01-23  Jim Meyering  <jim@meyering.net>
94529
94530         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94531         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94532
94533 2003-01-23  Bruno Haible  <bruno@clisp.org>
94534
94535         * modules/minmax: New module.
94536         * MODULES.html.sh (func_all_modules): Add it.
94537
94538 2003-01-23  Bruno Haible  <bruno@clisp.org>
94539
94540         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94541         Eggert.
94542
94543 2003-01-22  Bruno Haible  <bruno@clisp.org>
94544
94545         * modules/exit: New module.
94546         * MODULES.html.sh (func_all_modules): Add it.
94547
94548 2003-01-22  Bruno Haible  <bruno@clisp.org>
94549
94550         * lib/exit.h: New file, from GNU gettext.
94551
94552 2003-01-19  Bruno Haible  <bruno@clisp.org>
94553
94554         * gnulib-tool: Recognize option --extract-maintainer.
94555         (func_get_maintainer): New function.
94556         * modules/*: Add Maintainer entry.
94557
94558 2003-01-16  Jim Meyering  <jim@meyering.net>
94559
94560         * m4/regex.m4: The `regex' struct is both input and output.
94561         Initialize it before each use.  Patch by Tim Waugh.
94562
94563 2003-01-16  Bruno Haible  <bruno@clisp.org>
94564
94565         * MODULES.html.sh: Add a table of contents. Add the module name as
94566         leftmost column. Add hyperlinks.
94567
94568 2003-01-15  Bruno Haible  <bruno@clisp.org>
94569
94570         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94571
94572 2003-01-15  Bruno Haible  <bruno@clisp.org>
94573
94574         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94575         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94576         suffix.
94577
94578 2003-01-15  Bruno Haible  <bruno@clisp.org>
94579
94580         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94581
94582 2003-01-15  Bruno Haible  <bruno@clisp.org>
94583
94584         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94585         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94586
94587 2003-01-14  Jim Meyering  <jim@meyering.net>
94588
94589         * lib/same.c (same_name): Tweak a comment.
94590
94591 2003-01-14  Bruno Haible  <bruno@clisp.org>
94592
94593         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94594         when a string comparison is sufficient.
94595
94596 2003-01-14  Bruno Haible  <bruno@clisp.org>
94597
94598         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94599         'unsigned int'.
94600
94601 2003-01-14  Bruno Haible  <bruno@clisp.org>
94602
94603         * lib/hash-pjw.c: Add comment about low quality of this function.
94604
94605 2003-01-13  Bruno Haible  <bruno@clisp.org>
94606
94607         * modules/stpcpy: Distribute lib/stpcpy.h.
94608         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94609
94610 2003-01-13  Bruno Haible  <bruno@clisp.org>
94611
94612         * modules/*: Add a description.
94613         * modules/strpbrk: Fix Makefile.am snippet.
94614         * modules/strtoimax: Fix dependencies.
94615         * modules/strtoumax: Likewise.
94616
94617 2003-01-13  Bruno Haible  <bruno@clisp.org>
94618
94619         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94620         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94621         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94622
94623 2003-01-13  Bruno Haible  <bruno@clisp.org>
94624
94625         * gnulib-tool (func_create_testdir): Store config/* files in the main
94626         directory.
94627         * config.rpath: Move to ...
94628         * config/config.rpath: ... here.
94629         * modules/gettext: Contains config/config.rpath, not config.rpath.
94630         * modules/iconv: Likewise.
94631
94632 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94633
94634         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94635         to avoid collisions with libcurses and libreadline.
94636
94637         * m4/getstr.m4: Remove.
94638         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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
94645         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94646         * lib/getstr.h, getstr.c: Remove.
94647         * lib/getline.c: Include "getline.h", to check interface.
94648         Move body of old getstr.c here: this defines MIN_CHUNK and
94649         declares getdelim2, which is renamed from getstr.
94650         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94651
94652         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94653         All uses changed.
94654         * lib/linebuffer.h: Likewise.
94655         (readline): Remove backward-compatibility macro.
94656
94657 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94658
94659         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94660         to avoid collisions with libcurses and libreadline.
94661         * getstr: Remove.
94662         * MODULES.html.sh: Remove getstr.
94663         * modules/getline: Depend on unlocked-io, not getstr.
94664
94665 2003-01-12  Jim Meyering  <jim@meyering.net>
94666
94667         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94668
94669 2003-01-10  Bruno Haible  <bruno@clisp.org>
94670
94671         * modules/alloca: Change Makefile.am requirements. Simplify Include
94672         requirements. Add lib/alloca_.h to file list.
94673
94674 2003-01-10  Bruno Haible  <bruno@clisp.org>
94675
94676         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94677
94678 2003-01-10  Bruno Haible  <bruno@clisp.org>
94679
94680         * lib/alloca_.h: New file.
94681         * lib/getdate.y: Unconditionally include alloca.h.
94682         * lib/makepath.c: Likewise.
94683         * lib/setenv.c: Likewise.
94684         * lib/userspec.c: Likewise.
94685
94686 2003-01-09  Karl Berry  <karl@gnu.org>
94687
94688         * MODULES.html.sh: include `dirname $0` in PATH, to find
94689         gnulib-tool.
94690
94691 2003-01-09  Bruno Haible  <bruno@clisp.org>
94692
94693         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94694         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94695
94696 2003-01-09  Bruno Haible  <bruno@clisp.org>
94697
94698         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94699
94700 2003-01-09  Bruno Haible  <bruno@clisp.org>
94701
94702         * lib/stdbool.h.in: New file.
94703
94704 2003-01-09  Bruno Haible  <bruno@clisp.org>
94705
94706         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94707         * MODULES.html.sh: Likewise.
94708
94709 2003-01-08  Jim Meyering  <jim@meyering.net>
94710
94711         * lib/full-write.c: Undefine and define-away `const' after inclusion
94712         of errno.h, not before.  Suggestion from Bruno Haible.
94713
94714 2003-01-08  Bruno Haible  <bruno@clisp.org>
94715
94716         * modules/full-read: Depend on full-write.
94717
94718 2003-01-08  Bruno Haible  <bruno@clisp.org>
94719
94720         * lib/safe-read.c: Include specification header first, to ensure its
94721         selfcontainedness.
94722         * lib/full-write.c: Likewise.
94723
94724 2003-01-07  Jim Meyering  <jim@meyering.net>
94725
94726         * lib/full-write.c: Rework so that it may serve to define full_read,
94727         too.
94728         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94729
94730 2003-01-07  Bruno Haible  <bruno@clisp.org>
94731
94732         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94733         <inttypes.h>.
94734         * lib/xstrtol.h: Likewise.
94735         * lib/xstrtoimax.c: Likewise.
94736         * lib/xstrtoumax.c: Likewise.
94737         * lib/human.h: Likewise.
94738
94739         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94740         on systems that have <inttypes.h> but not <stdint.h>.
94741
94742 2003-01-07  Bruno Haible  <bruno@clisp.org>
94743
94744         * MODULES.html.sh: Add copyright notice.
94745         (missed_files): Omit CVS directory entries.
94746         (func_module): Make it work with sed-3.02.
94747         * MODULES.txt: Remove file.
94748
94749 2003-01-06  Jim Meyering  <jim@meyering.net>
94750
94751         * lib/version-etc.c: Update year in translatable copyright string.
94752
94753 2003-01-03  Karl Berry  <karl@gnu.org>
94754
94755         * config/config.{guess,sub}: update from prep.
94756
94757 2003-01-02  Karl Berry  <karl@gnu.org>
94758
94759         * doc/COPYING.DOC: belatedly updated to 1.2.
94760
94761 2003-01-01  Karl Berry  <karl@gnu.org>
94762
94763         * gnulib-tool (func_verify_module): report module name $module in
94764         error message, not $1.
94765         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94766         be created, only if it doesn't exist.
94767         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94768
94769 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94770
94771         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94772
94773 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94774
94775         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94776         memcmp if strcoll doesn't work.
94777
94778 2002-12-31  Bruno Haible  <bruno@clisp.org>
94779
94780         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94781         nonempty.
94782
94783 2002-12-31  Bruno Haible  <bruno@clisp.org>
94784
94785         * lib/memcoll.c (STRCOLL): New macro.
94786         (memcoll): Use it.
94787
94788 2002-12-31  Bruno Haible  <bruno@clisp.org>
94789
94790         * lib/localcharset.h: New file.
94791         * lib/localcharset.c: Include it.
94792         * lib/unicodeio.c: Likewise.
94793
94794 2002-12-31  Bruno Haible  <bruno@clisp.org>
94795
94796         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94797         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94798
94799 2002-12-31  Bruno Haible  <bruno@clisp.org>
94800
94801         * lib/getline.h: Include <stddef.h>, for size_t.
94802
94803         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94804         * lib/unicodeio.c: Don't include <stddef.h>.
94805
94806 2002-12-31  Bruno Haible  <bruno@clisp.org>
94807
94808         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94809         HAVE_TM_ZONE.
94810
94811 2002-12-24  Karl Berry  <karl@gnu.org>
94812
94813         * config/config.guess: update from prep.
94814
94815 2002-12-24  Bruno Haible  <bruno@clisp.org>
94816
94817         General infrasructure.
94818         * m4/README: Rewritten.
94819         * m4/onceonly.m4: New file.
94820         * m4/onceonly_2_57.m4: New file.
94821
94822         Module atexit.
94823         * m4/atexit.m4: New file.
94824
94825         Module strtod.
94826         * m4/strtod.m4: New file.
94827
94828         Module strtol.
94829         * m4/strtol.m4: New file.
94830
94831         Module strtoul.
94832         * m4/strtoul.m4: New file.
94833
94834         Module memchr.
94835         * m4/memchr.m4: New file.
94836
94837         Module memcmp.
94838         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94839         (jm_FUNC_MEMCMP): Invoke it.
94840
94841         Module memcpy.
94842         * m4/memcpy.m4: New file.
94843
94844         Module memmove.
94845         * m4/memmove.m4: New file.
94846
94847         Module memset.
94848         * m4/memset.m4: New file.
94849
94850         Module strcspn.
94851         * m4/strcspn.m4: New file.
94852
94853         Module strpbrk.
94854         * m4/strpbrk.m4: New file.
94855
94856         Module strstr.
94857         * m4/strstr.m4: New file.
94858
94859         Module strerror.
94860         * m4/strerror.m4: New file.
94861
94862         Module mktime.
94863         * m4/mktime.m4: Renamed from jm-mktime.m4.
94864         (gl_PREREQ_MKTIME): New macro.
94865         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94866
94867         Module malloc.
94868         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94869         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94870         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94871
94872         Module realloc.
94873         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94874         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94875         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94876
94877         Module strftime.
94878         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94879         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94880         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94881         gl_TM_GMTOFF.
94882         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94883
94884         Module xalloc.
94885         * m4/xalloc.m4: New file.
94886
94887         Module alloca.
94888         * m4/alloca.m4: New file.
94889
94890         Module putenv.
94891         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94892         (jm_FUNC_PUTENV): Invoke it.
94893
94894         Module setenv.
94895         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94896         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94897         when invoked twice.
94898         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94899         gt_FUNC_SETENV.
94900
94901         Module memrchr.
94902         * m4/memrchr.m4: New file.
94903
94904         Module stpcpy.
94905         * m4/stpcpy.m4: New file.
94906
94907         Module strcase.
94908         * m4/strcase.m4: New file.
94909
94910         Module strdup.
94911         * m4/strdup.m4: New file.
94912
94913         Module strnlen.
94914         * m4/strnlen.m4: New file.
94915
94916         Module strndup.
94917         * m4/strndup.m4: New file.
94918
94919         Module xstrtod.
94920         * m4/xstrtod.m4: New file.
94921
94922         Module xstrtol.
94923         * m4/xstrtol.m4: New file.
94924
94925         Module getdate.
94926         * m4/getdate.m4: New file.
94927
94928         Module unlocked-io.
94929         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94930         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94931         * m4/jm-glibc-io.m4n: Remove file.
94932
94933         Module long-options.
94934         * m4/long-options.m4: New file.
94935
94936         Module md5.
94937         * m4/md5.m4: New file.
94938
94939         Module sha.
94940         * m4/sha.m4: New file.
94941
94942         Module getstr.
94943         * m4/getstr.m4: New file.
94944
94945         Module getline.
94946         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94947         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94948         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94949         simply getline. Infoke gl_PREREQ_GETLINE.
94950
94951         Module obstack.
94952         * m4/obstack.m4: New file.
94953
94954         Module hash.
94955         * m4/hash.m4: New file.
94956
94957         Module readtokens.
94958         * m4/readtokens.m4: New file.
94959
94960         Module strverscmp.
94961         * m4/strverscmp.m4: New file.
94962
94963         Module stdbool.
94964         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94965         OSF/1.
94966
94967         Module strtoll.
94968         * m4/strtoll.m4: New file.
94969
94970         Module strtoull.
94971         * m4/strtoull.m4: New file.
94972
94973         Module strtoimax.
94974         * m4/strtoimax.m4: New file.
94975
94976         Module strtoumax.
94977         * m4/strtoumax.m4: New file.
94978
94979         Module xstrtoimax.
94980         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94981         jm_AC_PREREQ_XSTRTOIMAX.
94982         Moved the strtol prerequisites to strtol.m4.
94983         Moved the strtoll prerequisites to strtoll.m4.
94984         Moved the strtoimax prerequisites to strtoimax.m4.
94985
94986         Module xstrtoumax.
94987         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94988         jm_AC_PREREQ_XSTRTOUMAX.
94989         Moved the strtoul prerequisites to strtoul.m4.
94990         Moved the strtoull prerequisites to strtoull.m4.
94991         Moved the strtoumax prerequisites to strtoumax.m4.
94992
94993         Module chown.
94994         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94995         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94996
94997         Module dup2.
94998         * m4/dup2.m4: New file.
94999
95000         Module ftruncate.
95001         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95002         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95003
95004         Module getgroups.
95005         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95006         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95007
95008         Module gettimeofday.
95009         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95010         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95011         gl_PREREQ_GETTIMEOFDAY.
95012
95013         Module mkdir.
95014         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95015         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95016
95017         Module mkstemp.
95018         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95019         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95020         jm_AC_TYPE_UINTMAX_T.
95021         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95022
95023         Module stat.
95024         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95025         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95026
95027         Module lstat.
95028         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95029         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95030
95031         Module timespec.
95032         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95033         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95034         * m4/st_mtim.m4: Indentation.
95035
95036         Module nanosleep.
95037         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95038         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95039         gl_PREREQ_NANOSLEEP.
95040
95041         Module regex.
95042         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95043         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95044         (gl_REGEX): New macro.
95045
95046         Module rename.
95047         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95048         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95049
95050         Module rmdir.
95051         * m4/rmdir.m4: New file.
95052
95053         Module utime.
95054         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95055         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95056         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95057
95058         Module dirname.
95059         * m4/dirname.m4: New file.
95060
95061         Module getopt.
95062         * m4/getopt.m4: New file.
95063
95064         Module unistd-safer.
95065         * m4/unistd-safer.m4: New file.
95066
95067         Module fnmatch.
95068         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95069         declaration.
95070         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95071         (gl_FUNC_FNMATCH_POSIX): New macro.
95072         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95073         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95074         simply fnmatch.
95075
95076         Module exclude.
95077         * m4/exclude.m4: New file.
95078
95079         Module human.
95080         * m4/human.m4: New file.
95081
95082         Module acl.
95083         * m4/acl.m4: Nop.
95084
95085         Module backupfile.
95086         * m4/backupfile.m4: New file.
95087         * m4/d-ino.m4: Indentation.
95088
95089         Module fsusage.
95090         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95091         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95092         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95093
95094         Module dirfd.
95095         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95096         requirements.
95097
95098         Module euidaccess.
95099         * m4/euidaccess.m4: New file.
95100
95101         Module file-type.
95102         * m4/file-type.m4: New file.
95103
95104         Module fileblocks.
95105         * m4/fileblocks.m4: New file.
95106
95107         Module filemode.
95108         * m4/filemode.m4: New file.
95109
95110         Module isdir.
95111         * m4/isdir.m4: New file.
95112
95113         Module lchown.
95114         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95115         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95116
95117         Module makepath.
95118         * m4/makepath.m4: New file.
95119
95120         Module modechange.
95121         * m4/modechange.m4: New file.
95122
95123         Module mountlist.
95124         * m4/mountlist.m4: New file.
95125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95126         Indentation.
95127
95128         Module path-concat.
95129         * m4/path-concat.m4: New file.
95130
95131         Module pathmax.
95132         * m4/pathmax.m4: New file.
95133
95134         Module same.
95135         * m4/same.m4: New file.
95136
95137         Module save-cwd.
95138         * m4/save-cwd.m4: New file.
95139
95140         Module savedir.
95141         * m4/savedir.m4: New file.
95142
95143         Module xgetcwd.
95144         * m4/xgetcwd.m4: New file.
95145         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95146
95147         Module xreadlink.
95148         * m4/xreadlink.m4: New file.
95149
95150         Module safe-read.
95151         * m4/safe-read.m4: New file.
95152
95153         Module safe-write.
95154         * m4/safe-write.m4: New file.
95155
95156         Module closeout.
95157         * m4/closeout.m4: New file.
95158
95159         Module stdio-safer.
95160         * m4/stdio-safer.m4: New file.
95161
95162         Module getpass.
95163         * m4/getpass.m4: New file.
95164
95165         Module getugroups.
95166         * m4/getugroups.m4: New file.
95167
95168         Module group-member.
95169         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95170         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95171
95172         Module idcache.
95173         * m4/idcache.m4: New file.
95174
95175         Module userspec.
95176         * m4/userspec.m4: New file.
95177
95178         Module gettime.
95179         * m4/clock_time.m4: New file.
95180         * m4/gettime.m4: New file.
95181
95182         Module settime.
95183         * m4/settime.m4: New file.
95184
95185         Module posixtm.
95186         * m4/posixtm.m4: New file.
95187
95188         Module gethostname.
95189         * m4/gethostname.m4: New file.
95190
95191         Module canon-host.
95192         * m4/canon-host.m4: New file.
95193
95194         Module gettext.
95195         * m4/codeset.m4: New file, from gettext-0.11.5.
95196         * m4/gettext.m4: New file, from gettext-0.11.5.
95197         * m4/glibc21.m4: New file, from gettext-0.11.5.
95198         * m4/iconv.m4: New file, from gettext-0.11.5.
95199         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95200         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95201         * m4/inttypes.m4: New file, from gettext-0.11.5.
95202         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95203         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95204         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95205         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95206         * m4/lib-link.m4: New file, from gettext-0.11.5.
95207         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95208         * m4/progtest.m4: New file, from gettext-0.11.5.
95209         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95210         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95211         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95212
95213         Module localcharset.
95214         * m4/localcharset.m4: New file.
95215
95216         Module hard-locale.
95217         * m4/hard-locale.m4: New file.
95218
95219         Module mbswidth.
95220         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95221         onceonly macros.
95222         * m4/mbrtowc.m4: Add comment.
95223
95224         Module memcasecmp.
95225         * m4/memcasecmp.m4: New file.
95226
95227         Module memcoll.
95228         * m4/memcoll.m4: New file.
95229
95230         Module unicodeio.
95231         * m4/unicodeio.m4: New file.
95232
95233         Module rpmatch.
95234         * m4/rpmatch.m4: New file.
95235
95236         Module yesno.
95237         * m4/yesno.m4: New file.
95238
95239         Module exitfail.
95240         * m4/exitfail.m4: New file.
95241
95242         Module c-stack.
95243         * m4/c-stack.m4 (gl_C_STACK): New macro.
95244         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95245
95246         Module error.
95247         * m4/error.m4 (gl_ERROR): New macro.
95248         (jm_PREREQ_ERROR): Use onceonly macros.
95249
95250         Module fatal.
95251         * m4/fatal.m4: New file.
95252
95253         Module getloadavg.
95254         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95255         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95256
95257         Module getpagesize.
95258         * m4/getpagesize.m4: New file.
95259
95260         Module getusershell.
95261         * m4/getusershell.m4: New file.
95262
95263         Module physmem.
95264         * m4/physmem.m4: New file.
95265
95266         Module posixver.
95267         * m4/posixver.m4: New file.
95268
95269         Module quotearg.
95270         * m4/quotearg.m4: New file.
95271
95272         Module quote.
95273         * m4/quote.m4: New file.
95274
95275         Module readutmp.
95276         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95277
95278         Module sig2str.
95279         * m4/sig2str.m4: New file.
95280
95281         Other.
95282         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95283         ulonglong.m4.
95284         * m4/intmax_t.m4: New file.
95285         * m4/d-type.m4: Indentation.
95286         * m4/jm-macros.m4: Update.
95287         * m4/prereq.m4 (jm_PREREQ): Update.
95288         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95289         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95290         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95291         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95292         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95293         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95294         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95295         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95296         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95297         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95298         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95299         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95300         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95301         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95302         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95303         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95304         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95305         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95306         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95307
95308 2002-12-24  Bruno Haible  <bruno@clisp.org>
95309
95310         * MODULES.txt: Update according to m4/ changes.
95311
95312         Module gettext.
95313         * config.rpath: New file, from gettext-0.11.5.
95314
95315         * modules/*: New module descriptions.
95316         * gnulib-tool: New file.
95317         * MODULES.html.sh: New file.
95318
95319 2002-12-21  Karl Berry  <karl@gnu.org>
95320
95321         * doc/fdl.texi: update to version 1.2.
95322
95323 2002-12-19  Karl Berry  <karl@gnu.org>
95324
95325         * config/config.guess: update from prep.
95326
95327 2002-12-18  Bruno Haible  <bruno@clisp.org>
95328
95329         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95330         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95331
95332 2002-12-17  Bruno Haible  <bruno@clisp.org>
95333
95334         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95335         stdlib.h, string.h.
95336
95337 2002-12-17  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/canon-host.c (strdup): Remove unused declaration.
95340
95341         * lib/fsusage.c: Include full_read.h.
95342         (get_fs_usage): Use full_read instead of safe_read.
95343
95344         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95345
95346 2002-12-12  Karl Berry  <karl@gnu.org>
95347
95348         * config/config.guess: update from prep.
95349
95350 2002-12-11  Bruno Haible  <bruno@clisp.org>
95351
95352         * m4/setenv.m4: New file, from gettext-0.11.5.
95353
95354 2002-12-11  Bruno Haible  <bruno@clisp.org>
95355
95356         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95357         not unsetenv().
95358         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95359         modifications:
95360
95361         2002-12-11  Bruno Haible  <bruno@clisp.org>
95362
95363                 * setenv.c (alloca): Fall back to malloc.
95364                 (freea): New macro.
95365                 (setenv): Use freea() to free memory allocated with alloca().
95366
95367         2002-11-13  Bruno Haible  <bruno@clisp.org>
95368
95369                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95370                 function declarations.
95371                 * unsetenv.c (unsetenv): Likewise.
95372
95373         2002-03-04  Bruno Haible  <bruno@clisp.org>
95374
95375                 Portability to AIX 4.3.3.
95376                 * unsetenv.c: New file, extracted from setenv.c.
95377                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95378
95379         2001-12-20  Bruno Haible  <bruno@clisp.org>
95380
95381                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95382                 use malloc instead. For SunOS 4.
95383
95384         2001-12-11  Bruno Haible  <bruno@clisp.org>
95385
95386                 * setenv.c: Declare alloca.
95387                 (compar_fn_t): New typedef.
95388                 (KNOWN_VALUE, STORE_VALUE): Use it.
95389
95390         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95391         setenv.h.
95392
95393 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95394
95395         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95396         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95397         Choose values that are less likely to collide with system fnmatch
95398         options.
95399         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95400         defined (e.g., a pure POSIX system).
95401         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95402         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95403
95404 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95405
95406         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95407         a pain in practice to deal with generated m4 files.  This change
95408         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95409
95410         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95411         and jm-glibc-io.m4, as they are no longer a special case.
95412         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95413         kludge and the auto-generation stuff.  Check only whether the
95414         functions are declared, not whether they exist, since older hosts
95415         that don't declare the functions can't use the optimization anyway.
95416
95417 2002-12-06  Jim Meyering  <jim@meyering.net>
95418
95419         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95420
95421         Merge in changes from libc's misc/error.c, in preparation
95422         for the merge of gnulib's changes back into libc.
95423
95424         * lib/error.c (_): Define only if not already defined.
95425         Move definition to follow all #include directives.
95426         Include unlocked-io.h only if !_LIBC.
95427         [_LIBC]: Include <libio/libioP.h>.
95428         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95429         (fflush): Tweak definition to use INTUSE.
95430         (putc): Define.
95431
95432 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95433
95434         * lib/alloca.c [defined emacs]: Include "lisp.h".
95435         (xalloc_die) [defined emacs]: New macro.
95436         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95437         [! defined emacs]: Include <xalloc.h>.
95438         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95439         (pointer): Typedef to POINTER_TYPE *.
95440         (malloc): Remove decl; we now always use xmalloc.
95441         (alloca): Use old-style definition, since Emacs needs this.
95442         Check for arithmetic overflow when computing combined size.
95443
95444 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95445
95446         Do not generate unlocked-io.h automatically, since it's easier to
95447         maintain it by hand.
95448
95449         * lib/unlocked-io.h: New file, from GNU diffutils,
95450         but with proper copyright notice and attribution.
95451         * lib/gen-uio: Remove.
95452         * lib/Makefile.am: Add copyright notice.
95453         (libfetish_a_SOURCES): Add unlocked-io.h.
95454         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95455         (DISTCLEANFILES, io_functions): Remove macros.
95456         (EXTRA_DIST): Remove gen_uio.
95457         (unlocked-io.h): Remove rule.
95458
95459 2002-12-04  Jim Meyering  <jim@meyering.net>
95460
95461         Reflect the fact that stat.c and lstat.c are no longer generated.
95462         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95463         (DISTCLEANFILES): Likewise.
95464         (EXTRA_DIST): Likewise.
95465         (all_local): Don't depend on stat.c or lstat.c.
95466         (stat.c, lstat.c): Remove rules.
95467         (EXTRA_DIST): Remove xstat.in.
95468
95469         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95470         * lib/stat.c: New file.  Contents mostly from xstat.in.
95471         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95472         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95473
95474         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95475         too.
95476         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95477
95478 2002-12-03  Jim Meyering  <jim@meyering.net>
95479
95480         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95481         but not semantics, to minimize the differences between these two files.
95482         (safe_read): Change comment to mention SAFE_READ_ERROR.
95483
95484         * lib/safe-read.c (IS_EINTR): Define.
95485         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95486
95487 2002-12-02  Jim Meyering  <jim@meyering.net>
95488
95489         * lib/safe-read.c (EINTR): Define.
95490         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95491         (INT_MAX): Provide fallback.
95492         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95493
95494         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95495
95496 2002-12-02  Bruno Haible  <bruno@clisp.org>
95497
95498         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95499         Define, taken from safe-read.c.
95500         (INT_MAX): Provide fallback.
95501         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95502         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95503
95504         * lib/safe-read.c (EINTR): Remove definition.
95505         (safe_read): Don't use EINTR if it is absent.
95506
95507 2002-12-01  Jim Meyering  <jim@meyering.net>
95508
95509         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95510         zero.
95511         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95512
95513 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95514
95515         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95516         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95517         with `if (! (value < limit)) abort ();', for readability.
95518
95519 2002-11-26  Karl Berry  <karl@gnu.org>
95520
95521         * lib/strdup.c: copy from libc again, with jim's ok.
95522         * lib/.cppi-disable: re-add strdup.c
95523
95524 2002-11-25  Karl Berry  <karl@gnu.org>
95525
95526         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95527         instead of "strtol.c".
95528
95529 2002-11-25  Karl Berry  <karl@gnu.org>
95530
95531         * config/install-sh: update from automake for variable quoting, $0 in
95532         error msgs, etc.
95533
95534         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95535         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95536         entry.
95537
95538 2002-11-25  Jim Meyering  <jim@meyering.net>
95539
95540         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95541
95542 2002-11-24  Karl Berry  <karl@gnu.org>
95543
95544         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95545         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95546
95547 2002-11-24  Jim Meyering  <jim@meyering.net>
95548
95549         Update from coreutils:
95550
95551         * lib/mktime.c: Merge in changes from libc.
95552
95553         Avoid a link-time failure on some Linux systems.
95554         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95555         (otherwise).
95556         (__mon_yday): Declare with the STATIC attribute.
95557         (__mktime_internal): Likewise.
95558         Based on a report from Greg Schafer.
95559
95560 2002-11-23  Jim Meyering  <jim@meyering.net>
95561
95562         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95563         Use `unsigned', not `int', as type of index.
95564
95565         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95566
95567         * lib/fsusage.c: Remove unneeded parentheses around operands of
95568         `defined'.
95569
95570 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95571
95572         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95573         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95574         so that we can be included first.
95575         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95576         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95577         No need to include stddef.h or sys/types.h any more.
95578         Surround local include files with "", not "<>".
95579         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95580         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95581         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95582         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95583         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95584         (ISPRINT): Remove; no longer needed now that we assume C89.
95585
95586         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95587         Preserve errno.
95588
95589         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95590         quotearg_char): Use SIZE_MAX rather than
95591         (size_t) -1 when we are talking about "infinity".
95592
95593         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95594
95595 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95596
95597         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95598         hint that one should use `if (! x) abort ();' rather than `assert
95599         (x);', and anyway it's one less thing to worry about configuring.
95600         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95601         hash_rehash, hash_insert): Use abort rather than assert.
95602
95603 2002-11-22  Bruno Haible  <bruno@clisp.org>
95604
95605         * lib/safe-read.h: Assume C89. Add comments.
95606         (safe_read): Change return type to size_t.
95607         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95608         byte counts > SSIZE_MAX correctly.
95609         * lib/safe-write.h: New file.
95610         * lib/safe-write.c: New file.
95611         * lib/full-read.h: New file.
95612         * lib/full-read.c: New file.
95613         * lib/full-write.h: Assume C89. Add comments.
95614         * lib/full-write.c: Include safe-write.h.
95615         (full_write): Rewritten to use safe_write.
95616         Suggested by Jim Meyering and Paul Eggert.
95617
95618 2002-11-21  Jim Meyering  <jim@meyering.net>
95619
95620         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95621
95622         Merge in changes from the coreutils.
95623
95624         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95625         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95626         <stdint.h>.
95627         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95628         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95629         int.  Work more efficiently if X is the same width as uintmax_t.
95630         Do not compare X to -1, to avoid bogus compiler warning.
95631         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95632         Don't assume that f_frsize and f_bsize are the same type.
95633
95634         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95635         warning on FreeBSD.
95636
95637         * lib/makepath.c (make_path): Restore umask *before* creating the final
95638         component.
95639         (make_path): Minor reformatting.
95640
95641         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95642         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95643         HAVE_MALLOC/HAVE_REALLOC.
95644
95645         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95646         dummy ones.  At least on GNU/Linux systems, `auto' means something
95647         else.
95648         From Michael Stone.
95649
95650 2002-11-21  Bruno Haible  <bruno@clisp.org>
95651
95652         Remove case insensitive option matching.
95653         * lib/argmatch.h (argcasematch): Remove declaration.
95654         (ARGCASEMATCH): Remove macro.
95655         (__xargmatch_internal): Remove case_sensitive argument.
95656         (XARGMATCH): Update.
95657         (XARGCASEMATCH): Remove macro.
95658         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95659         case_sensitive argument.
95660         (argcasematch): Remove function.
95661         (__xargmatch_internal): Remove case_sensitive argument.
95662         (main): Use XARGMATCH instead of XARGCASEMATCH.
95663
95664         * lib/xmalloc.c: Change compile-time error message. Add comment about
95665         required autoconf version.
95666
95667 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95668
95669         Merge argmatch cleanups from Bison.  Assume C89.
95670
95671         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95672         Include stdlib.h, for EXIT_FAILURE.
95673         Always include <string.h>, since we assume C89.
95674         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95675         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95676         Include <stddef.h> instead, since it's all we need for size_t.
95677         (PARAMS): Remove.  All uses removed.
95678         (ARRAY_CARDINALITY): Do not bother to #undef.
95679         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95680         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95681         Remove unnecessary parentheses.
95682         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95683         Insert necessary parentheses.
95684         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95685         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95686
95687 2002-11-19  Bruno Haible  <bruno@clisp.org>
95688
95689         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95690         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95691
95692         * lib/mbswidth.h (PARAMS): Remove macro.
95693         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95694         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95695
95696         * lib/gcd.h (PARAMS): Remove macro.
95697         (gcd): Use ANSI C function declarations.
95698         * lib/gcd.c (gcd): Likewise.
95699
95700 2002-11-15  Bruno Haible  <bruno@clisp.org>
95701
95702         * lib/strcspn.c: Include <stddef.h>.
95703         (strcspn): Use ANSI C function declaration. Change return type to
95704         size_t. Use NULL.
95705         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95706         (strpbrk): Use NULL.
95707         * lib/strpbrk.h (PARAMS): Remove macro.
95708         (strpbrk): Use ANSI C function declaration.
95709         * lib/strstr.c: Don't include <sys/types.h>.
95710         * lib/strstr.h (PARAMS): Remove macro.
95711         (strstr): Use ANSI C function declarations.
95712
95713 2002-11-14  Karl Berry  <karl@gnu.org>
95714
95715         * config/mkinstalldirs: `do' on separate line, instead of
95716         `for var; do'.
95717
95718 2002-11-06  Bruno Haible  <bruno@clisp.org>
95719
95720         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95721         * lib/gcd.c (gcd): Likewise.
95722
95723 2002-11-05  Bruno Haible  <bruno@clisp.org>
95724
95725         * lib/gcd.h: New file, from gettext-0.11.5.
95726         * lib/gcd.c: New file, from gettext-0.11.5.
95727
95728 2002-11-05  Bruno Haible  <bruno@clisp.org>
95729
95730         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95731         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95732         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95733         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95734
95735         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95736         <libintl.h>.
95737         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95738         <libintl.h>.
95739
95740         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95741         * lib/human.c: Include gettext.h instead of <libintl.h>.
95742         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95743         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95744         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95745         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95746         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95747         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95748         (textdomain): Remove definition.
95749         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95750
95751         * lib/long-options.c: Remove include of <libintl.h> and definition of
95752         _.
95753         * lib/same.c: Remove include of <libintl.h> and definition of _.
95754
95755 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95756
95757         * lib/config.charset: A few additions for Solaris.
95758
95759 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95760
95761         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95762         * lib/localcharset.c (locale_charset): Declare as extern "C".
95763
95764 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95765
95766         * lib/config.charset: msdos in uk_UA uses CP1125.
95767
95768 2002-11-04  Bruno Haible  <bruno@clisp.org>
95769
95770         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95771         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95772         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95773         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95774         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95775
95776 2002-11-04  Bruno Haible  <bruno@clisp.org>
95777
95778         * lib/localcharset.c (locale_charset): Don't return an empty string.
95779
95780 2002-11-04  Bruno Haible  <bruno@clisp.org>
95781
95782         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95783         aliases.
95784
95785 2002-11-04  Bruno Haible  <bruno@clisp.org>
95786
95787         * lib/config.charset: Update for newest glibc. Add canonical names
95788         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95789
95790 2002-11-04  Bruno Haible  <bruno@clisp.org>
95791
95792         * lib/config.charset: Add support for NetBSD.
95793
95794 2002-11-04  Bruno Haible  <bruno@clisp.org>
95795
95796         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95797
95798 2002-11-01  Bruno Haible  <bruno@clisp.org>
95799
95800         * configure.in: Add AC_CONFIG_AUX_DIR call.
95801         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95802         test/Makefile.
95803         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95804
95805 2002-09-28  Karl Berry  <karl@gnu.org>
95806
95807         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95808         installed automake until the next release, since changes have been
95809         made.
95810
95811 2002-09-25  Karl Berry  <karl@gnu.org>
95812
95813         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95814         * lib/getopt*: copy from libc/posix.
95815         * lib/gettext.h: copy from gettext.
95816         * lib/.cppi-disable: add strdup.c, gettext.h.
95817
95818 2002-09-25  Karl Berry  <karl@gnu.org>
95819
95820         * config/srclist.txt: enable gettext.h check.
95821         * config/config.{guess,sub}: update from prep.
95822         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95823                 from automake 1.6.3.
95824         See srclist*.
95825
95826 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95827
95828         * regex.c (PATFETCH): Remove the translating fetch.
95829         (PATFETCH_RAW): Rename to PATFETCH.
95830         (set_image_of_range): New fun.
95831         (SET_RANGE_TABLE_WORK_AREA): Use it.
95832         (regex_compile): Don't translate the pattern chars so eagerly.
95833         Only do it when inserting an `exactn' bytecode or when handling
95834         a char-range.
95835         (mutually_exclusive_p): Avoid empty statement.
95836
95837 2002-07-06  Jim Meyering  <meyering@lucent.com>
95838
95839         * m4/README: Don't mention Makefile.am.in.
95840         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95841
95842 2002-07-01  Jim Meyering  <meyering@lucent.com>
95843
95844         * lib/c-stack.c: Include sys/time.h.
95845         From Volker Borchert.
95846
95847 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95848
95849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95850
95851 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95852
95853         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95854         New macro.  Use it uniformly instead of
95855         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95856         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95857         reported by Vin Shelton.
95858
95859 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95860
95861         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95862         Do not assume SA_SIGINFO behavior.
95863         Bug reported by Jim Meyering on NetBSD 1.5.2.
95864
95865 2002-06-22  Jim Meyering  <meyering@lucent.com>
95866
95867         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95868         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95869
95870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95871         now that configure.ac uses AC_GNU_SOURCE.
95872         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95873         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95874
95875         Update to latest tools.  Suggestions from Paul Eggert.
95876         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95877         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95878         * m4/fnmatch.m4: Likewise.
95879         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95880         to AC_HEADER_STDBOOL
95881
95882 2002-06-22  Jim Meyering  <meyering@lucent.com>
95883
95884         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95885         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95886
95887 2002-06-22  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95890
95891         * lib/exitfail.c, exitfail.h: Likewise.
95892         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95893
95894         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95895         of fnmatch.h.
95896         (EXTRA_DIST): Add fnmatch_loop.c.
95897         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95898
95899         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95900         * lib/fnmatch.c: Update from diffutils-2.8.2.
95901         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95902         * lib/fnmatch.h: Remove file.
95903
95904 2002-06-21  Jim Meyering  <meyering@lucent.com>
95905
95906         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95907         * m4/mbrtowc.m4: Likewise.
95908
95909         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95910         * m4/mbswidth.m4: Reflect name change:
95911         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95912         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95913
95914         * m4/lib-link.m4: Update from gettext-0.11.2.
95915         * m4/gettext.m4: Likewise.
95916
95917         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95918         From Alfred M. Szmidt.
95919
95920 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95921
95922         * lib/file-type.h: Report an error if neither S_ISREG nor
95923         S_IFREG is defined, instead of using a test specific to glibc
95924         2.2.  This should be safe, since POSIX requires S_ISREG and
95925         Unix Version 7 had S_IFREG.  We don't need to check for
95926         <sys/types.h> since we don't use any symbols that it defines.
95927
95928 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95929
95930         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95931         $@-t, so that each temporary file name is unique and valid in the first
95932         8 characters, for operation under DOS.
95933
95934 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95935
95936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95937
95938 2002-06-15  Jim Meyering  <meyering@lucent.com>
95939
95940         Work even with DJGPP 2.03, which lacks support for symlinks.
95941         From Richard Dawe.
95942         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95943         is defined.
95944         * lib/lchown.c (S_ISLNK): Likewise.
95945
95946 2002-06-15  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95949         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95950         have been included before this file.
95951
95952 2002-06-14  Jim Meyering  <meyering@lucent.com>
95953
95954         * lib/file-type.h: Use the version from diffutils-2.8.2.
95955         * lib/file-type.c: Likewise.
95956
95957 2002-06-07  Jim Meyering  <meyering@lucent.com>
95958
95959         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95960         They're needed at least for NetBSD 1.5.2.
95961         ($statxfs_includes): Include those same headers.
95962         ($statxfs_includes): Include sys/vfs.h if available.
95963         ($statxfs_includes): Likewise for sys/statvfs.h.
95964         Check for the following members in both structs statfs and statvfs:
95965         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95966
95967 2002-06-01  Jim Meyering  <meyering@lucent.com>
95968
95969         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95970         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95971
95972 2002-05-28  Jim Meyering  <meyering@lucent.com>
95973
95974         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95975         Reported by Volker Borchert.
95976
95977 2002-05-27  Jim Meyering  <meyering@lucent.com>
95978
95979         Fix a problem seen only on nonconforming systems whereby ls.c's
95980         use of localtime, and then of gettimeofday would cause trouble:
95981         the localtime call used to initialize rpl_gettimeofday's save
95982         mechanism would clobber ls's current local time information so
95983         that in any long listing the first file would always be listed
95984         with date 1970-01-01.  Analysis by Volker Borchert.
95985
95986         * lib/gettimeofday.c (localtime): Undefine.
95987         (rpl_localtime): New function.
95988
95989 2002-05-27  Jim Meyering  <meyering@lucent.com>
95990
95991         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95992         localtime.
95993
95994         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95995         use the replacement function; it wouldn't resolve at link time.
95996         Reported by Volker Borchert.
95997
95998 2002-05-22  Jim Meyering  <meyering@lucent.com>
95999
96000         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96001         file-type.h.
96002         * lib/file-type.h: New file.
96003         * lib/file-type.c (file_type): New file/function.  Extracted from
96004         diffutils.
96005
96006 2002-04-30  Jim Meyering  <meyering@lucent.com>
96007
96008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96009
96010 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96011
96012         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96013
96014 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96015
96016         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96017         Do not check for alloca.h (no longer used) or stdbool.h (was never
96018         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96019
96020 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96021
96022         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96023
96024 2002-04-29  Jim Meyering  <meyering@lucent.com>
96025
96026         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96027         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96028         Use AC_FUNC_STRNLEN here instead.
96029
96030         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96031         With autoconf-2.53a, it's part of AC_PROG_CC.
96032
96033 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96034
96035         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96037
96038 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96039
96040         * lib/sig2str.h, lib/sig2str.c: New files.
96041         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96042
96043 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96044
96045         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96046         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96047         of 127, since 64 is the largest conceivable number for ancient
96048         nonstandard hosts.
96049         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96050
96051 2002-04-28  Jim Meyering  <meyering@lucent.com>
96052
96053         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96054
96055 2002-04-24  Jim Meyering  <meyering@lucent.com>
96056
96057         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96058         (jm_PREREQ): Use it.
96059
96060         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96061         mach/mach.h fcntl.h.
96062         Check for this function: setlocale.
96063
96064 2002-04-24  Jim Meyering  <meyering@lucent.com>
96065
96066         * lib/gettext.h: New file, from Gettext.
96067         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96068         (libfetish_a_SOURCES): Add gettext.h.
96069
96070 2002-04-16  Jim Meyering  <meyering@lucent.com>
96071
96072         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96073         ut_pid, ut_id, ut_exit.
96074
96075 2002-04-16  Jim Meyering  <meyering@lucent.com>
96076
96077         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96078         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96079         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96080
96081 2002-04-12  Jim Meyering  <meyering@lucent.com>
96082
96083         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96084         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96085         existence of the getmntinfo function.  Needed for Darwin 5.3.
96086
96087         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96088         This is necessary at least on Darwin 5.3.
96089
96090         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96091         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96092         strnlen.o in the library, and that makes some versions of ranlib
96093         object.
96094
96095 2002-04-12  Jim Meyering  <meyering@lucent.com>
96096
96097         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96098
96099 2002-04-09  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96102         to be more precise.  Rather than saying we're checking whether the
96103         function `works', say what we're testing.
96104         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96105         Reported by Bruno Haible.
96106
96107 2002-03-10  Jim Meyering  <meyering@lucent.com>
96108
96109         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96110         Suggestion from Santiago Vila.
96111
96112 2002-03-08  Jim Meyering  <meyering@lucent.com>
96113
96114         * lib/rename.c: Mention that this wrapper is needed also on
96115         mips-dec-ultrix4.4 systems.
96116
96117 2002-03-02  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96120         not HAVE_CLOCK_SETTIME.
96121
96122 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96123
96124         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96125         Check for clock_settime.
96126
96127 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96128
96129         * lib/nanosleep.h: Rename to....
96130         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96131
96132         * lib/gettime.c: New file.
96133         * lib/settime.c: New file.
96134         * lib/stime.c: Remove.
96135
96136         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96137         timespec.h.  Remove nanosleep.h.
96138
96139 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96140
96141         * m4/acl.m4: New file.
96142         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96143         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96144
96145 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96146
96147         * lib/acl.c, lib/acl.h: New files.
96148         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96149
96150 2002-02-24  Jim Meyering  <meyering@lucent.com>
96151
96152         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96153         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96154         cause trouble.  Reported by Nelson Beebe.
96155
96156 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96157
96158         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96159         compilers that don't know that xalloc_die never returns.
96160
96161 2002-02-20  Jim Meyering  <meyering@lucent.com>
96162
96163         * lib/getdate.c: Regenerate using bison-1.33.
96164
96165 2002-02-17  Jim Meyering  <meyering@lucent.com>
96166
96167         * config/config.guess (main): Don't use `head -1'; it's no longer
96168         portable. Use `sed 1q' instead.
96169
96170 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96171
96172         * m4/codeset.m4: Upgrade to gettext-0.11.
96173         * m4/gettext.m4: Upgrade to gettext-0.11.
96174         * m4/glibc21.m4: Upgrade to gettext-0.11.
96175         * m4/iconv.m4: Upgrade to gettext-0.11.
96176         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96177         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96178         * m4/lib-ld.m4: New file, from gettext-0.11.
96179         * m4/lib-link.m4: New file, from gettext-0.11.
96180         * m4/lib-prefix.m4: New file, from gettext-0.11.
96181         * m4/progtest.m4: Upgrade to gettext-0.11.
96182
96183 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96184
96185         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96186         (jm_PREREQ): Use it.
96187
96188 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96189
96190         * lib/posixver.c, lib/posixver.h: New files.
96191         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96192
96193 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96194             Bruno Haible  <bruno@clisp.org>
96195
96196         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96197         (fwrite_success_callback): New declaration.
96198         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96199         print_unicode_char. Call failure callback instead of error.
96200         (fwrite_success_callback): New function.
96201         (exit_failure_callback): New function.
96202         (fallback_failure_callback): New function.
96203         (print_unicode_char): Call unicode_to_mb.
96204
96205 2002-01-26  Jim Meyering  <meyering@lucent.com>
96206
96207         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96208         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96209
96210 2002-01-26  Jim Meyering  <meyering@lucent.com>
96211
96212         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96213
96214 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96215
96216         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96217
96218 2002-01-22  Jim Meyering  <meyering@lucent.com>
96219
96220         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96221         Otherwise, some versions of automake would omit the rule that makes
96222         Makefile from Makefile.in.
96223
96224 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96225
96226         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96227         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96228         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96229         (memcoll): Set errno to zero if there is no error.
96230
96231         * lib/quotearg.c (quotearg_buffer_restyled):
96232         Fix bug with quoting buffers containing NUL when backslashing escapes.
96233         This bug was exposed by the other changes in this patch.
96234         (quotearg_n_options): New arg ARGSIZE.
96235         All callers changed.
96236         (quoting_options_from_style): New function.
96237         (quotearg_n_style): Use it.
96238         (quotearg_n_style_mem): New function.
96239
96240         * lib/quotearg.h (quotearg_n_style_mem): New function.
96241
96242 2002-01-19  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96245         Remove useless quotes: DF_PROG="df".
96246         * m4/strnlen.m4: New file.
96247
96248 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96249
96250         * lib/backupfile.c (ISDIGIT): Comment fix.
96251         * lib/getdate.y (ISDIGIT): Likewise.
96252         * lib/posixtm.c (ISDIGIT, year): Likewise.
96253         * lib/strverscmp.c (ISDIGIT): Likewise.
96254         * lib/userspec.c (ISDIGIT): Likewise.
96255
96256 2002-01-16  Jim Meyering  <meyering@lucent.com>
96257
96258         * lib/getdate.y: Add three semicolons, each just before a closing
96259         brace. Bison (as of version 1.31) no longer papers over that mistake.
96260
96261 2002-01-05  Jim Meyering  <meyering@lucent.com>
96262
96263         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96264
96265 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96266
96267         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96268         not silently exit merely because the output buffer happens to
96269         have nothing pending.
96270
96271 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96272
96273         See the big note in ../ChangeLog.
96274         * lib/human.c (suffixes): Prefer K to k for 1024.
96275         (generate_suffix_backwards): New function.
96276         (human_readable_inexact): Use it.
96277         * lib/xstrtol.c (__xstrtol): If there is no number but there
96278         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96279         Accept 'K' as well as 'k'.
96280
96281 2001-12-15  Jim Meyering  <meyering@lucent.com>
96282
96283         * lib/regex.h (__restrict_arr): Update from libc.
96284
96285         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96286         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96287         (STREQ): Define.
96288
96289 2001-12-14  Jim Meyering  <meyering@lucent.com>
96290
96291         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96292         Suggestion from Bruno Haible.
96293
96294 2001-12-10  Jim Meyering  <meyering@lucent.com>
96295
96296         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96297         xrealloc, Instead, include "xalloc.h".
96298         (initbuffer): Don't cast xmalloc return value to char*.
96299         (readline): Reword comment.
96300         Don't cast xrealloc return value to char*
96301         Return NULL, not 0.
96302
96303 2001-12-09  Jim Meyering  <meyering@lucent.com>
96304
96305         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96306         about `signed and unsigned type in conditional expression'.
96307         * lib/posixtm.c (posix_time_parse): Likewise.
96308
96309         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96310
96311         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96312         to avoid a pedantic warning.
96313
96314         * lib/getstr.c: Don't include assert.h.
96315         (getstr): Remove warning-evoking assertions.
96316         Return -1 if offset parameter is out of bounds.
96317         Change the type of a local from int to size_t.
96318
96319         * lib/strftime.c (my_strftime_localtime_r): Include this function
96320         definition in the `#if ! HAVE_TM_GMTOFF' block.
96321
96322         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96323         Include xalloc.h instead.
96324
96325 2001-12-02  Jim Meyering  <meyering@lucent.com>
96326
96327         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96328         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96329         included.
96330
96331         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96332         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96333
96334 2001-11-30  Akim Demaille  <akim@epita.fr>
96335
96336         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96337         before being defined.
96338
96339 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96340
96341         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96342         First arg is int, not unsigned.
96343         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96344         (SIZE_MAX, UINT_MAX): New macros.
96345         (quotearg_n_options): Abort if N is negative.
96346         Avoid overflow check on hosts where size_t is 64 bits and int
96347         is 32 bits, as overflow is impossible there.
96348         Fix off-by-one typo that caused unnecessary reallocation.
96349
96350 2001-11-27  Jim Meyering  <meyering@lucent.com>
96351
96352         * lib/tempname.c: Merge with version from libc.
96353         * lib/regex.c: Likewise.
96354
96355         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96356         systems for which STDC_HEADERS is 0, it was not included, resulting in
96357         a warning about an integer-to-pointer conversion problem with getenv.
96358         Reported by Volker Borchert.
96359
96360 2001-11-26  Jim Meyering  <meyering@lucent.com>
96361
96362         * lib/gtod.h: Remove file.
96363         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96364         * lib/gettimeofday.c: Don't include gtod.h.
96365         (GTOD_init): Remove function.
96366         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96367         Suggestion from Volker Borchert.
96368
96369 2001-11-23  Jim Meyering  <meyering@lucent.com>
96370
96371         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96372         it.
96373         * lib/hash.c (struct hash_table): Define it here instead.
96374
96375 2001-11-22  Jim Meyering  <meyering@lucent.com>
96376
96377         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96378
96379 2001-11-20  Jim Meyering  <meyering@lucent.com>
96380
96381         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96382         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96383
96384 2001-11-19  Jim Meyering  <meyering@lucent.com>
96385
96386         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96387         directory.  Use "conftestXXXXXX" as the template.
96388         Suggestion from Paul Eggert.
96389
96390         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96391         immediately, so the test doesn't mistakenly hit the max-open-files
96392         limit.
96393
96394 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96395
96396         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96397         (TEMPORARIES): New macro.
96398         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96399         removes an artificial limitation (e.g. HP-UX 10.20, where
96400         TMP_MAX is 17576).
96401
96402 2001-11-18  Jim Meyering  <meyering@lucent.com>
96403
96404         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96405
96406 2001-11-18  Jim Meyering  <meyering@lucent.com>
96407
96408         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96409         on SunOS 4.
96410
96411         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96412         files will be created before anything else.
96413
96414 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96415
96416         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96417         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96418
96419 2001-11-17  Jim Meyering  <meyering@lucent.com>
96420
96421         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96422         Prompted by a report from Bob Proulx.
96423
96424         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96425         Instead, require UTILS_FUNC_MKSTEMP.
96426
96427 2001-11-17  Jim Meyering  <meyering@lucent.com>
96428
96429         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96430         Now, that's done as part of AC_FUNC_STRTOD.
96431
96432 2001-11-17  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96435         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96436         rather than group writable.  Patch by Juan F. Codagnone.
96437
96438         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96439         xrealloc, Instead, include "xalloc.h".
96440
96441         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96442         Remove explicit declarations of xmalloc, xrealloc,
96443         and xstrdup.  Instead, include "xalloc.h".
96444
96445         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96446         unlocked-io.h.
96447         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96448         Likewise.
96449         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96450
96451         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96452         Reported by Padraig Brady.
96453
96454         * lib/mkstemp.c: #undef mkstemp.
96455         Include config.h.
96456         (rpl_mkstemp): Rename from mkstemp.
96457         Protoize.
96458
96459 2001-11-16  Jim Meyering  <meyering@lucent.com>
96460
96461         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96462         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96463         determine the amount of total physical memory, use pstat_getstatic.
96464         HPUX-11 doesn't define _SC_PHYS_PAGES.
96465         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96466         If sysconf couldn't be used to determine the amount of available
96467         physical memory, use both pstat_getstatic and pstat_getdynamic.
96468         Based on a patch from Bob Proulx.
96469
96470 2001-11-10  Jim Meyering  <meyering@lucent.com>
96471
96472         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96473         (jm_PREREQ): Use it.
96474
96475 2001-11-09  Jim Meyering  <meyering@lucent.com>
96476
96477         * m4/jm-macros.m4: Require autoconf-2.52f.
96478         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96479         Use these AC_-prefixed names, not the AM_-prefixed ones.
96480
96481         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96482
96483 2001-11-05  Jim Meyering  <meyering@lucent.com>
96484
96485         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96486
96487 2001-11-04  Jim Meyering  <meyering@lucent.com>
96488
96489         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96490         $DEFS.
96491
96492 2001-11-03  Jim Meyering  <meyering@lucent.com>
96493
96494         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96495         of AC_DEFUN.
96496
96497         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96498         know the name of the variable in the macro definition.
96499
96500 2001-11-03  Jim Meyering  <meyering@lucent.com>
96501
96502         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96503         in argmatch_to_argument call.
96504
96505         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96506         argument.
96507
96508         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96509         e.g., a fault due to an attempt to free a NULL pointer.
96510
96511 2001-11-01  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96514         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96515
96516 2001-11-01  Jim Meyering  <meyering@lucent.com>
96517
96518         * lib/dirfd.c, lib/dirfd.h: New files.
96519         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96520
96521         * lib/hash.c (hash_print) [TESTING]: Clean up.
96522
96523 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96524
96525         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96526         to avoid a warning if -Wall.
96527
96528 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96529
96530         * README: New file
96531         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96532         (per RMS's instructions, this is now the canonical source)
96533         * lgpl/, gpl/: New directories.
96534
96535 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96536
96537         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96538
96539 2001-10-21  Jim Meyering  <meyering@lucent.com>
96540
96541         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96542         this code would end up calling gettext even in packages built
96543         with --disable-nls.
96544         * lib/getopt.c (_): Likewise.
96545         * lib/regex.c (_): Likewise.
96546
96547 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96548
96549         * m4/error.m4 (jm_PREREQ_ERROR):
96550         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96551         AC_FUNC_STRERROR_R does that.
96552         Check for strerror declaration.
96553
96554         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96555         are supposed to have them these days.
96556         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96557         Merge changes from latest Autoconf CVS.
96558         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96559         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96560         POSIX decided to standardize on the int flavor of strerror_r.
96561
96562 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96563
96564         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96565         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96566         Use strerror_r that is only a macro, even if it is not a function.
96567         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96568         (private_strerror): Use prototypes, not old-style function definition.
96569         (print_errno_message): New function.
96570         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96571         char*-flavored one.
96572         (error_tail, error, error_at_line): Use it.
96573
96574 2001-10-11  Jim Meyering  <meyering@lucent.com>
96575
96576         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96577         and quote_n (1, ... to avoid clobbering a buffer.
96578
96579 2001-10-05  Jim Meyering  <meyering@lucent.com>
96580
96581         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96582         hash-pjw.h.
96583         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96584         * lib/hash-pjw.h: New file.
96585
96586 2001-09-30  Jim Meyering  <meyering@lucent.com>
96587
96588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96589         `struct fsstat' has the `f_fstypename' member.
96590         Use that to define FS_TYPE, which is now used to make
96591         the getfsstat link test tighter.
96592
96593 2001-09-30  Jim Meyering  <meyering@lucent.com>
96594
96595         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96596         Include <sys/ucred.h>, for Apple Darwin.
96597         Include sys/mount.h and sys/fs_types.h only if available.
96598         (FS_TYPE): Define.
96599         (read_filesystem_list): Use FS_TYPE.
96600
96601 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96602
96603         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96604         a boolean context.
96605
96606 2001-09-29  Jim Meyering  <meyering@lucent.com>
96607
96608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96609         [one-argument getmntent function]): Include stdio.h before mntent.h.
96610         SunOS 4.1.x needs it for the declaration of `FILE'.
96611         Patch by Volker Borchert.
96612
96613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96614         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96615         sys/fs_types.h, and make the link-test for getfsstat guard #include
96616         directives with appropriate #if HAVE_*_H tests so that we can
96617         detect getfsstat on Apple Darwin1.3.7 systems.
96618         Reported by Nelson Beebe.
96619         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96620
96621 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96622
96623         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96624         #defines strtoimax.  Also treat the other strto* functions
96625         like strtoimax.
96626
96627         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96628         Check for strtoul and strtoumax,
96629         as those declarations are made even in the signed case.
96630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96631         Likewise, for strtol and strtoimax.
96632
96633 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96634
96635         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96636         #defines strtoimax.  Also treat the other strto* functions
96637         like strtoimax.
96638
96639         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96640         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96641         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96642
96643 2001-09-26  Jim Meyering  <meyering@lucent.com>
96644
96645         Most macros in unlocked-io.h had the wrong number of arguments.
96646         * lib/gen-uio: New script.
96647         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96648         * lib/unlocked-io.hin: Remove file.
96649         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96650         rather than trying to embed it here.
96651         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96652         Reported by Padraig Brady.
96653
96654 2001-09-25  Volker Borchert  <bt@teknon.de>
96655
96656         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96657         `result'.
96658
96659 2001-09-24  Jim Meyering  <meyering@lucent.com>
96660
96661         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96662
96663 2001-09-23  Jim Meyering  <meyering@lucent.com>
96664
96665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96666         instead of the mere test for existence of mntent.h.  The latter
96667         would get a false-positive on AIX 3.4 systems.
96668         In the outer getmntent if-block, don't die if neither of the getmntent
96669         tests succeeds.  Instead, just fall through and continue with the
96670         remaining tests.
96671
96672 2001-09-23  Jim Meyering  <meyering@lucent.com>
96673
96674         * lib/mountlist.c: Remove useless parentheses in #if directives.
96675         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96676         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96677
96678 2001-09-22  Jim Meyering  <meyering@lucent.com>
96679
96680         * m4/gettext.m4: New file.  From gettext.
96681         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96682         * m4/progtest.m4: Likewise
96683         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96684         * m4/glibc21.m4: Likewise.
96685
96686         * m4/libintl.m4: Remove.  No longer used.
96687
96688 2001-09-22  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/localcharset.c: Update from latest gettext.
96691         * lib/config.charset: Likewise.
96692
96693 2001-09-20  Jim Meyering  <meyering@lucent.com>
96694
96695         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96696         strtoimax.
96697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96698         strtoumax.
96699
96700 2001-09-20  Jim Meyering  <meyering@lucent.com>
96701
96702         * lib/xstrtol.c (strtoimax): Guard declaration with
96703         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96704         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96705         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96706         (strtoumax): Likewise, for completeness (it wasn't necessary).
96707
96708 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96709
96710         * lib/strtoimax.c (HAVE_LONG_LONG):
96711         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96712         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96713         to work around bug in IBM C compiler.
96714
96715 2001-09-17  Jim Meyering  <meyering@lucent.com>
96716
96717         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96718         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96719         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96720         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96721         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96722         whenever the right hand side need not be expanded by the shell.
96723
96724 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96725
96726         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96727         library.  It's not correct, as some older glibcs are buggy.
96728         fnmatch wasn't fixed until glibc 2.2.
96729
96730         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96731         special shell magic here.
96732
96733 2001-09-16  Jim Meyering  <meyering@lucent.com>
96734
96735         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96736         * m4/jm-macros.m4: Require it.
96737
96738 2001-09-16  Jim Meyering  <meyering@lucent.com>
96739
96740         * lib/mkdir.c: New file.
96741
96742 2001-09-15  Jim Meyering  <meyering@lucent.com>
96743
96744         * m4/jm-macros.m4: Check for help2man.
96745
96746 2001-09-11  Jim Meyering  <meyering@lucent.com>
96747
96748         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96749         The body, by Paul Eggert, was moved here from configure.in.
96750         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96751
96752 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96753
96754         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96755         (jm_PREREQ): Use it.
96756
96757 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96758
96759         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96760         Use ssize_t, not int, to store result of readlink.
96761         Check for ssize_t overflow as well as size_t overflow,
96762         as POSIX says the result of readlink is implementation-defined
96763         when ssize_t overflows.
96764         Remove unnecessary cast to char*.
96765         Use free+malloc instead of realloc, as the storage doesn't need
96766         to be preserved and it's clearer and can be more efficient that way.
96767         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96768         * lib/xreadlink.h (xreadlink): Update prototype.
96769
96770 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96771
96772         * lib/xgetcwd.c: Revert some of the previous change; intead,
96773         fix the HAVE_GETCWD_NULL code to behave more like the
96774         !HAVE_GETCWD_NULL code used to.
96775
96776         Include "xalloc.h".
96777         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96778         invoke xalloc_die.
96779
96780 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96781
96782         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96783         sys/param.h, as pathmax.h includes them.
96784
96785 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96786
96787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96788         (jm_PREREQ_XGETCWD): New macro.
96789
96790         * m4/getcwd.m4: New file.
96791
96792 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96793
96794         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96795         like the HAVE_GETCWD_NULL code.
96796         Include pathmax.h if not HAVE_GETCWD.
96797         Do not include xalloc.h.
96798         (INITIAL_BUFFER_SIZE): New symbol.
96799         Do not use xmalloc / xrealloc, since the caller is responsible for
96800         handling errors.  Preserve errno around `free' during failure.
96801         Do not overrun buffer when using getwd.
96802
96803 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96804
96805         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96806         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96807         getcwd (NULL, 0).
96808
96809 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96810
96811         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96812         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96813         spotted by Jim Meyering.
96814
96815 2001-09-03  Jim Meyering  <meyering@lucent.com>
96816
96817         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96818         failure.
96819
96820 2001-09-02  Jim Meyering  <meyering@lucent.com>
96821
96822         * lib/error.c: Update from GNU libc.
96823
96824 2001-09-01  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96827         Used by df.
96828
96829 2001-09-01  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/xreadlink.c: New file.
96832         * lib/xreadlink.h: New file.
96833         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96834         xreadlink.h.
96835
96836         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96837         doesn't conflict with sparc Solaris 7's definition in
96838         /usr/include/sys/int_types.h.
96839
96840         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96841         files.
96842         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96843         and strncasecmp as r-values.  Unixware didn't have declarations.
96844
96845 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96846
96847         * lib/xstrtol.h: Add copyright notice.
96848         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96849         LONGINT_INVALID_SUFFIX_CHAR.
96850
96851 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96852
96853         * lib/xstrtol.c (strtoimax): New decl.
96854
96855 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96856
96857         * lib/xgetcwd.c: Don't include pathmax.h.
96858         Include stdlib.h and unistd.h if available.
96859         Include xalloc.h.
96860         (xmalloc, xstrdup, free): Remove decls.
96861         (xgetcwd): Don't assume sizes fit in unsigned.
96862         Check for overflow when computing sizes.
96863         Simplify reallocation code.
96864
96865 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96866
96867         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96868         a directory's st_size can have an arbitrary value, so the old
96869         usage could waste an arbitrary amount of memory.  All uses
96870         changed.
96871         * lib/savedir.h: Update prototype.
96872
96873 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96874
96875         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96876
96877         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96878         old strtoimax.c.
96879
96880         Also, make the following further changes to make this file's
96881         configuration more similar to that of strtol.c:
96882         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96883         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96884         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96885         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96886         changed to signed values.
96887
96888         And make the following changes as well:
96889         Fix copyright notice, as 1999 was missing.
96890         (verify): New macro.
96891         (strtoimax): Check sizes at compile-time, not run-time.
96892         Prefer strtol to strtoll if both work.
96893         (main): Remove; it was not that useful and was a pain to maintain.
96894
96895         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96896
96897 2001-08-31  Jim Meyering  <meyering@lucent.com>
96898
96899         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96900         Use an initial, malloc'd, buffer of length 128 rather than
96901         a statically allocated one of length 1024.
96902
96903 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96904
96905         Simplify code, partly by assuming autoconf 2.52 semantics.
96906
96907         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96908
96909         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96910         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96911         All uses removed.
96912         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96913         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96914         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96915         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96916         jm_AC_HEADER_INTTYPES_H.
96917         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96918
96919         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96920
96921         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96922         Quote first arg of AC_DEFUN.
96923         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96924         since they are needed to parse the include file even if we need
96925         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96926         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96927         but with opposite signedness.
96928
96929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96930
96931         Merge 'exclude' changes from tar 1.13.22.
96932         This fixes one or two unlikely storage allocation overflow bugs,
96933         but doesn't change user-visible behavior otherwise.
96934
96935 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96936
96937         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96938         (jm_PREREQ_EXCLUDE): New macro.
96939
96940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96941
96942         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96943         tm to be declared.
96944
96945 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96946
96947         * lib/hash.c: Remove '2001' from copyright notice.
96948
96949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96950
96951         * lib/full-write.h: New file.
96952         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96953         * lib/full-write.c: Correct credits, as cccp.c no longer
96954         exists and anyway it was so heavily changed from the old cccp
96955         code as to be unrecognizable.  Include full-write.h.
96956         (full_write): Return size_t, with short writes meaning failure.
96957         All callers changed.  This fixes a bug with large buffers
96958         on 64-bit hosts.
96959         * lib/utime.c: Include full-write.h.
96960
96961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96962
96963         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96964         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96965         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96966         Include if available.
96967         (<xalloc.h>): Include
96968         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96969         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96970         collide with FNM macros.
96971         (struct patopts): New struct.
96972         (struct exclude): Use it, as exclude patterns now come with options.
96973         (new_exclude): Support above changes.
96974         (new_exclude, add_exclude_file):
96975         Initial size must now be a power of two to simplify overflow checking.
96976         (free_exclude, fnmatch_no_wildcards): New function.
96977         (excluded_filename): No longer requires options arg, as the options
96978         are determined by add_exclude.  Now returns bool, not int.
96979         (excluded_filename, add_exclude):
96980         Add support for the fancy new exclusion options.
96981         (add_exclude, add_exclude_file): Now takes int options arg.
96982         Check for arithmetic overflow when computing sizes.
96983         (add_exclude_file): xrealloc might modify errno, so don't
96984         realloc until after errno might be used.
96985
96986         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96987         New macros.
96988         (free_exclude): New decl.
96989         (add_exclude, add_exclude_file): Now takes int options arg.
96990         (excluded_filename): No longer requires options arg, as the options
96991         are determined by add_exclude.  Now returns bool, not int.
96992
96993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96994
96995         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96996
96997 2001-08-27  Jim Meyering  <meyering@lucent.com>
96998
96999         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97000
97001         * lib/version-etc.c (N_): Remove definition.
97002         Revert most of last change.
97003         Instead, simply don't mark the `Copyright...' string for translation.
97004         Based on advice from Paul Eggert.
97005
97006         * lib/strtoxmax.c: Tweak comment.
97007
97008 2001-08-26  Jim Meyering  <meyering@lucent.com>
97009
97010         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97011
97012         * m4/xstrtoimax.m4: New file.
97013         * m4/xstrtoumax.m4: Add comments explaining why we
97014         AC_REPLACE_FUNCS(strtol).
97015
97016 2001-08-26  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97019         of copyright with `%s' so translators don't get an untranslated
97020         message in 2002.
97021         (COPYRIGHT_YEAR): Define.
97022         (version_etc): Use fprintf rather than fputs.
97023         Suggestion from Ulrich Drepper.
97024
97025         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97026
97027         * lib/strtoll.c: New file, from GNU libc.
97028         * lib/xstrtoimax.c: New file.
97029
97030         * lib/xstrtol.h: Add xstrtoimax.
97031         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97032         * lib/strtoimax.c: New file.  Likewise, but first define
97033         STRTOUXMAX_SIGNED.
97034
97035         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97036         ...
97037         * lib/strtoxmax.c: ... then renamed to this.
97038
97039 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97040
97041         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97042         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97043         (jm_AC_TYPE_INTMAX_T): New macro.
97044         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97045
97046         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97047
97048         * m4/longlong.m4: Renamed from ulonglong.m4.
97049         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97050         * m4/uintmax_t.m4: Removed.
97051
97052 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97053
97054         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97055         Port to Solaris 8, where 'sed' requires a space after the 'r'
97056         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97057         Redirect output to $tmp just once.
97058
97059 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97060
97061         * lib/addext.c (<errno.h>): Include.
97062         (errno): Declare if not defined.
97063         (addext): Work correctly when pathconf returns -1 and leaves
97064         errno alone because there is no limit.  Also, work even if
97065         pathconf returns a value greater than SIZE_MAX.
97066
97067 2001-08-12  Jim Meyering  <meyering@lucent.com>
97068
97069         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97070         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97071         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97072         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97073         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97074         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97075         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97076         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97077         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97078         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97079         utime.m4, utimes.m4, xstrtoumax.m4:
97080         Quote the first argument in each use of AC_DEFUN.
97081
97082 2001-08-12  Jim Meyering  <meyering@lucent.com>
97083
97084         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97085         Simply `return getcwd (NULL, 0);'.
97086         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97087         Use 1300 as initial value for length, not PATH_MAX.
97088
97089         * lib/pathmax.h: Clean up cpp syntax.
97090
97091 2001-08-12  Jim Meyering  <meyering@lucent.com>
97092
97093         * lib/gettimeofday.c: New file.
97094         * lib/gtod.h: New file.
97095         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97096
97097 2001-08-05  Jim Meyering  <meyering@lucent.com>
97098
97099         * m4/jm-macros.m4: Require autoconf-2.52.
97100
97101 2001-08-04  Jim Meyering  <meyering@lucent.com>
97102
97103         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97104         stmt, to get in sync with glibc.
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.
97110
97111         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97112         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97113         with inverted sense.  All uses changed.
97114
97115         * lib/mbswidth.c: Don't include <limits.h>.
97116         Include <stdlib.h> and <string.h> unconditionally.
97117         (iswcntrl, mbsinit, ISCNTRL): New macros.
97118         (mbsnwidth): Use K&R style function declarations.
97119         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97120         can optimize it when MB_CUR_MAX == 1.
97121         The width of control characters is zero, not 1.
97122
97123 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97124
97125         The following changes are from gettext 0.10.39 as maintained by
97126         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97127
97128         * m4/codeset.m4: Upgrade to serial AM1.
97129         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97130         all uses changed.  Quote first arg of AC_DEFUN.
97131         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97132
97133         * m4/iconv.m4: Upgrade to serial AM2.
97134         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97135         Add --with-libconv-prefix.
97136         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97137         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97138         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97139         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97140         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97141
97142         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97143         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97144         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97145         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97146         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97147         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97148         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97149         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97151
97152         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97153         string.h any more.
97154
97155         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97156         not the default value.
97157
97158         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97159         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97160         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97161         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97162         Also check for iswcntrl, used for wcwidth fallback.
97163         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97164         to Autoconf 2.13.
97165
97166 2001-08-03  Jim Meyering  <meyering@lucent.com>
97167
97168         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97169         as it was in the original.  Reported by Paul Eggert.
97170
97171 2001-07-16  Jim Meyering  <meyering@lucent.com>
97172
97173         * m4/gettimeofday.m4: New file.
97174         Prompted by a report from Bernhard Baehr.
97175
97176 2001-07-15  Jim Meyering  <meyering@lucent.com>
97177
97178         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97179         stuff. Now it's in ../Makefile.cfg.
97180
97181 2001-07-15  Jim Meyering  <meyering@lucent.com>
97182
97183         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97184         (BUILT_SOURCES): Add unlocked-io.h.
97185         (io_functions): Define.
97186         (unlocked-io.h): New rule.
97187         (DISTCLEANFILES): Add unlocked-io.h.
97188         (all-local): Depend on unlocked-io.h, to ensure it is created.
97189
97190         * lib/unlocked-io.hin: New file
97191
97192         * lib/regex.c: Update from glibc.
97193
97194 2001-07-05  Jim Meyering  <meyering@lucent.com>
97195
97196         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97197         recommendation.
97198         (libfetish_a_SOURCES): Put all .h files here instead.
97199         Remove a thus-exposed (better checks in automake) duplicate and
97200         two unnecessary .h files.
97201
97202 2001-07-04  Jim Meyering  <meyering@lucent.com>
97203
97204         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97205         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97206         distcheck failure.
97207
97208 2001-07-02  Jim Meyering  <meyering@lucent.com>
97209
97210         The following changes were prompted by suggestions from Bruno Haible.
97211
97212         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97213         is now generated.
97214         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97215         definition of EXTRA_DIST.
97216         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97217         ensure that the generated file is created/updated whenever the list
97218         of $(unlocked_functions) is changed.
97219         (jm-glibc-io.m4): New rule.
97220         (unlocked-io.h): New rule -- currently unused.
97221
97222 2001-06-24  Jim Meyering  <meyering@lucent.com>
97223
97224         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97225         unmatched right bracket, rather than kludging it with an extra,
97226         falsely-matching quote in a comment.  Patch by Akim Demaille.
97227
97228 2001-06-11  Jim Meyering  <meyering@lucent.com>
97229
97230         * lib/regex.c: Update from GNU libc.
97231
97232 2001-05-27  Jim Meyering  <meyering@lucent.com>
97233
97234         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97235         Check for ut_type in struct utmp.
97236
97237 2001-05-27  Jim Meyering  <meyering@lucent.com>
97238
97239         * lib/readutmp.h (UT_TYPE): Define.
97240
97241 2001-05-24  Jim Meyering  <meyering@lucent.com>
97242
97243         * lib/argmatch.c: Include "quote.h".
97244         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97245         quote function.  Reported by Göran Uddeborg.
97246
97247 2001-05-22  Jim Meyering  <meyering@lucent.com>
97248
97249         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97250         now that we use the package-supplied version unconditionally.
97251         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97252
97253 2001-05-21  Jim Meyering  <meyering@lucent.com>
97254
97255         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97256         shell syntax errors.
97257
97258 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97259
97260         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97261
97262 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97263
97264         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97265         Don't bother to check library strftime, since
97266         we'll be using our own my_strftime function anyway.
97267         Define my_strftime instead of strftime.
97268
97269 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97270
97271         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97272         which is not yet declared.
97273
97274 2001-05-15  Jim Meyering  <meyering@lucent.com>
97275
97276         * m4/regex.m4: Use proper quoting so brackets appear in the test
97277         program.
97278         Reported by, and with help from, Bruno Haible.
97279
97280 2001-05-13  Jim Meyering  <meyering@lucent.com>
97281
97282         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97283         undefined.
97284
97285 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97286
97287         dirname code cleanup.  base_name now behaves more compatibly
97288         with POSIX basename when given file names that have trailing
97289         slashes, and similarly for dir_name.  Add new primitives
97290         base_len and dir_len.  Put the directory-name-related decls
97291         into dirname.h.
97292
97293         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97294         * lib/backupfile.c (base_name): Likewise.
97295         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97296         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97297         * lib/makepath.c (strip_trailing_slashes): Likewise.
97298         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97299         ISSLASH): Likewise.
97300         * lib/rename.c (strip_trailing_slashes): Likewise.
97301         * lib/same.c (base_name): Likewise.
97302         * lib/stripslash.c (ISSLASH): Likewise.
97303
97304         * lib/addext.c: Include <dirname.h> after size_t is defined.
97305         * lib/backupfile.c: Likewise.
97306
97307         * lib/addext.c (addext): Use base_len to trim redundant
97308         trailing slashes instead of doing it ourselves.
97309         But do not trim the last slash if it is not redundant.
97310
97311         * lib/backupfile.c (find_backup_file_name,
97312         max_backup_version): Use base_len instead of rolling it ourselves.
97313         Handle the case of "" and (on DOS) "C:" correctly.
97314
97315         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97316         needed. Include <string.h>, <dirname.h>.
97317         (base_name): Allow file names ending in slashes, other than names
97318         that are all slashes.  In this case, return the basename followed
97319         by the slashes.  This is more general, and can be used in places
97320         where the original base_name purposely had an assertion failure.
97321         (base_len): New function.
97322
97323         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97324         Do not include <assert.h>; no longer needed.
97325         Include xalloc.h.
97326         (memrchr): Remove decl.
97327         (dir_name_r): Remove.
97328         (dir_len): Renamed from dirlen.  All callers changed.
97329         Rewrite in terms of base_name, for simplicity and consistency.
97330         (dir_name): Never return NULL.  All callers changed.
97331         Do not include <stdlib.h> in test program; no longer needed.
97332         return 0; is fine for test program.
97333
97334         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97335         New macros.
97336         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97337
97338         * lib/path-concat.c (path_concat): Use base_len to compute
97339         base length, not strlen; this means we cannot rely on memcpy
97340         to null-terminate.
97341
97342         * lib/same.c (STREQ): Remove.
97343         (same_name): Handle the case where the basename ends in trailing '/'.
97344
97345         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97346         a slash was stripped.  Do not strip the last slash after a
97347         file system prefix.
97348
97349 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97350
97351         * lib/Makefile.am (libfetish_a_SOURCES):
97352         Add strftime.c, since we now compile it on all hosts.
97353
97354         * lib/strftime.c (my_strftime):
97355         Define to nstrftime if emacs, but only if my_strftime is not defined.
97356         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97357         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97358         Add one more extra argument: a nanoseconds value.
97359         All uses changed.
97360         (ns): New macro.
97361         (my_strftime function): Add %N format.
97362         (emacs_strftimeu): Renamed from emacs_strftime,
97363         with extra ut argument.
97364
97365 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97366
97367         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97368
97369 2001-04-21  Jim Meyering  <meyering@lucent.com>
97370
97371         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97372         doesn't interfere.
97373
97374 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97375
97376         * m4/ftruncate.m4: Check for chsize.
97377         Link with ftruncate.o unconditionally if ftruncate is missing.
97378         This was required when cross-compiling to i586-mingw32msvc.
97379
97380 2001-04-08  Jim Meyering  <meyering@lucent.com>
97381
97382         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97383         recomputed; that's necessary when the offset spans a DST transition.
97384         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97385
97386 2001-04-02  Jim Meyering  <meyering@lucent.com>
97387
97388         * lib/regex.h, regex.c: Update from GNU libc.
97389
97390 2001-03-24  Jim Meyering  <meyering@lucent.com>
97391
97392         * m4/jm-macros.m4: Require autoconf-2.49d.
97393
97394 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97395
97396         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97397
97398 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97399
97400         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97401
97402 2001-03-17  Jim Meyering  <meyering@lucent.com>
97403
97404         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97405         now that the version in autoconf is equivalent.
97406         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97407
97408         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97409         Suggestion from Akim Demaille.
97410
97411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97412         (jm_PREREQ_TEMPNAME): New function.
97413
97414 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97415
97416         * lib/tempname.c (uint64_t): Define to uintmax_t if
97417         not defined, and if UINT64_MAX is not defined.
97418         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97419         Reported by John David Anglin.
97420
97421 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97422
97423         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97424         resolve alias if codeset is empty.
97425         * lib/config.charset (BeOS): Use wildcard syntax.
97426
97427 2001-03-13  Jim Meyering  <meyering@lucent.com>
97428
97429         * lib/path-concat.c (path_concat)
97430         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97431         concatenating e.g., `C:' and `foo'.
97432         From Bruno Haible.
97433
97434 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97435
97436         * lib/localcharset.c (locale_charset): Don't use
97437         setlocale(LC_CTYPE,NULL). Don't return NULL.
97438         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97439
97440 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97441
97442         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97443         support for DOS/DJGPP.
97444
97445 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97446
97447         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97448         lacks mkstemp.  Compile our own tempname.c if we compile our own
97449         mkstemp.c, as mkstemp relies on tempname.
97450
97451 2001-03-01  Jim Meyering  <meyering@lucent.com>
97452
97453         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97454         AH_VERBATIM really does output its argument verbatim.
97455
97456 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97457
97458         * lib/Makefile.am (libfetish_a_SOURCES):
97459         Add dup-safer.c, fopen-safer.c.
97460         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97461
97462         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97463         * lib/unistd-safer.h: New files.
97464
97465 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97466
97467         The mkstemp replacement is taken from glibc 2.2.2, with some
97468         portability fixes for use outside glibc, as follows:
97469
97470         * lib/tempname.c (struct_stat64): New macro.
97471         (direxists, __gen_tempname): Use it.
97472         This avoids a portability problem with Solaris 8.
97473
97474         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97475         (<stddef.h>, <stdint.h>, <string.h>):
97476         Include only if STDC_HEADERS || _LIBC.
97477         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97478         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97479         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97480         (__set_errno): Define this macro if <errno.h> doesn't.
97481         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97482         Define these macros if <stdio.h> doesn't.
97483         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97484         Define these macros if <sys/stat.h>
97485         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97486         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97487         __xstat64): Define if not _LIBC.
97488         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97489         (__gen_tempname): Invoke gettimeofday only if
97490         HAVE_GETTIMEOFDAY || _LIBC;
97491         otherwise, fall back on plain "time".
97492         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97493
97494         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97495
97496         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97497
97498 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97499
97500         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97501
97502 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97503
97504         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97505         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97506         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97508
97509 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97510
97511         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97512         Remove workaround macros for hosts that have mbrtowc but not
97513         mbstate_t, as we now insist on proper declarations for both
97514         before using mbrtowc.
97515
97516 2001-02-17  Jim Meyering  <meyering@lucent.com>
97517
97518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97519         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97520         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97521         UnixWare 7.1.1.
97522
97523         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97524         rather than AC_CACHE_VAL.
97525
97526 2001-02-17  Jim Meyering  <meyering@lucent.com>
97527
97528         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97529         around included file name.
97530
97531         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97532
97533         * lib/strftime.c: Update from GNU libc (the only changes were to
97534         comments).
97535
97536 2001-02-17  Jim Meyering  <meyering@lucent.com>
97537
97538         * lib/regex.c: Update from libc.
97539
97540 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97541
97542         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97543         clash.
97544
97545 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97546
97547         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97548         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97549         Reported by Mark Hounschell via Paul Eggert.
97550
97551 2001-02-07  Jim Meyering  <meyering@lucent.com>
97552
97553         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97554
97555 2001-02-05  Jim Meyering  <meyering@lucent.com>
97556
97557         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97558         it includes the patch required for `large file' support with at least
97559         HP-UX's 10.20 /bin/cc.
97560
97561 2001-02-03  Jim Meyering  <meyering@lucent.com>
97562
97563         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97564         AS_IF, now that it works once again (mysteriously).
97565         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97566
97567 2001-01-30  Jim Meyering  <meyering@lucent.com>
97568
97569         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97570         * m4/chown.m4: Rename conftestchown to conftest.chown.
97571         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97572         s/conftestdir2/conftest.d2/.
97573         * m4/utimes.m4: s/conftestdata/conftest.data/
97574         Inspired by Pavel Roskin's change in autoconf.
97575
97576 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97577
97578         * lib/config.charset: Update for FreeBSD 4.2.
97579
97580 2001-01-27  Jim Meyering  <meyering@lucent.com>
97581
97582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97583         a use of AS_IF.
97584         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97585
97586 2001-01-26  Jim Meyering  <meyering@lucent.com>
97587
97588         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97589         quotearg.c includes it.
97590
97591 2001-01-26  Jim Meyering  <meyering@lucent.com>
97592
97593         * lib/quotearg.c: Include stddef.h.
97594         * lib/quote.c: Include stddef.h.
97595         Reported by Axel Kittenberger.
97596
97597         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97598         line in double quotes so that it evokes a better diagnostic.
97599         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97600         Reported by Axel Kittenberger.
97601
97602 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97603
97604         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97605         as if it was a `charset'.
97606
97607 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97608
97609         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97610         has const.
97611
97612 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97613
97614         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97615         to avoid a warning.  Add back 'const' to inptr.
97616
97617 2001-01-20  Jim Meyering  <meyering@lucent.com>
97618
97619         Be sure that headers are checked before used in code compiled
97620         for the type checks.
97621         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97622         In place of that, invoke jm_CHECK_ALL_TYPES.
97623         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97624         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97625         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97626         The check for ssize_t was mistakenly run before the test for unistd.h.
97627
97628         The configure-time check for stdbool.h was missing.
97629         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97630         (jm_PREREQ_HASH): New function.
97631
97632 2001-01-17  Jim Meyering  <meyering@lucent.com>
97633
97634         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97635         for autoconf-2.49c.
97636         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97637
97638 2001-01-16  Jim Meyering  <meyering@lucent.com>
97639
97640         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97641         From Bruno Haible.
97642
97643 2001-01-14  Jim Meyering  <meyering@lucent.com>
97644
97645         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97646         foo and bar.  Create conftestdir/ in the script, not in the C code.
97647         Remove directories in the script, not in the C code.
97648         Remove conftestdir{,2} before trying to create the directory.
97649         Make the entire configure script fail if the mkdir fails.
97650
97651 2001-01-14  Jim Meyering  <meyering@lucent.com>
97652
97653         * lib/rename.c: New file.  From Volker Borchert.
97654         Include stdlib.h, string.h or strings.h, and xalloc.h.
97655         Use strip_trailing_slashes rather than open-coding it.
97656
97657 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97658
97659         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97660
97661 2001-01-03  Jim Meyering  <meyering@lucent.com>
97662
97663         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97664         of local `inptr' to avoid warning with some system declarations of
97665         iconv.
97666
97667 2001-01-02  Volker Borchert  <bt@teknon.de>
97668
97669         * m4/rename.m4: New file.
97670         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97671
97672 2001-01-01  Jim Meyering  <meyering@lucent.com>
97673
97674         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97675         even on systems with utmpx.h.  It's necessary for the declaration of
97676         utmp's ut_user member.  Reported by Andreas Jaeger.
97677
97678         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97679         available. They are required for the declarations of getgrgid and
97680         getpwuid resp.
97681         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97682         Reported by Andreas Jaeger.
97683
97684 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97685
97686         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97687         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97688         so `make install' also works in VPATH builds.
97689
97690 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97691
97692         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97693         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97694         can be used in subdirectories.
97695
97696 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97697
97698         * lib/modechange.c: Do not assume that mode_t uses the
97699         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97700         the other-execute bit of FOO even if S_IXOTH != 1.
97701
97702         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97703         WOTH, XOTH, ALLM): New macros.
97704         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97705          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97706         Use them.
97707         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97708         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97709         (mode_compile):
97710         No need to use uintmax_t; unsigned long is long enough.
97711         Don't bother to get suffix since we don't use it.
97712
97713 2000-12-26  Jim Meyering  <meyering@lucent.com>
97714
97715         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97716         better with autoheader.
97717
97718 2000-12-24  Jim Meyering  <meyering@lucent.com>
97719
97720         * lib/hash.c (is_prime): Return explicit boolean values.
97721         (hash_get_first): Return NULL to appease Irix5.6's 89.
97722         Reported by Nelson Beebe.
97723
97724 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97725
97726         * lib/localcharset.c (locale_charset): Add support for Win32.
97727
97728 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97729
97730         * lib/physmem.h, lib/physmem.c: New files.
97731
97732         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97733         (noinst_HEADERS): Add physmem.h.
97734
97735         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97736         't' for compatibility with Solaris 8 sort.
97737
97738 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97739
97740         * lib/config.charset: Add support for BeOS.
97741
97742 2000-12-17  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97745         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97746
97747 2000-12-16  Jim Meyering  <meyering@lucent.com>
97748
97749         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97750         N and M) would have treated it like `chown N:N FILE'.
97751
97752         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97753
97754 2000-12-16  Jim Meyering  <meyering@lucent.com>
97755
97756         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97757         SHELLS_FILE to a file name that's useful on djgpp systems.
97758         Include stdlib.h.
97759         (ADDITIONAL_DEFAULT_SHELLS): Define.
97760         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97761         Based mostly on a patch from Prashant TR.
97762
97763 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97764
97765         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97766         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97767         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97768
97769 2000-12-08  Andreas Schwab  <schwab@suse.de>
97770
97771         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97772         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97773
97774 2000-12-07  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/stripslash.c (ISSLASH): Define.
97777         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97778         `/'.
97779         From Prashant TR.
97780
97781         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97782         (dir_name_r): Declare this function as static.
97783         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97784         manifest itself on a name containing a mix of slashes and
97785         backslashes.
97786         Make this function work with names starting with a DOS-style
97787         drive letter and colon prefix.
97788         (dir_name): Append `.' if necessary.
97789         Based mostly on patches from Prashant TR and Eli Zaretskii.
97790
97791         * lib/dirname.h (dir_name_r): Remove prototype.
97792
97793 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97794
97795         * m4/off_t-format.m4: Remove this file.
97796         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97797
97798 2000-12-06  Jim Meyering  <meyering@lucent.com>
97799
97800         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97801         replacement strtoull, we may well need the replacement strtoul, too.
97802         Check for declarations of strtoul and strtoull.
97803         Check for strtol.  Mainly as a cue to cause automake to include
97804         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97805         Check for limits.h -- strtol.c needs it.
97806
97807 2000-12-05  Jim Meyering  <meyering@lucent.com>
97808
97809         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97810
97811 2000-12-04  Jim Meyering  <meyering@lucent.com>
97812
97813         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97814         Also include memory.h, stdlib.h, unistd.h if appropriate.
97815         Reported by Andreas Jaeger (conflicting declaration of malloc).
97816
97817 2000-12-02  Jim Meyering  <meyering@lucent.com>
97818
97819         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97820         * m4/jm-macros.m4 (jm_MACROS): require it.
97821
97822 2000-12-02  Jim Meyering  <meyering@lucent.com>
97823
97824         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97825
97826 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97827
97828         * lib/memrchr.c: Include <config.h> before any system include file.
97829
97830 2000-11-30  Jim Meyering  <meyering@lucent.com>
97831
97832         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97833
97834 2000-11-30  Jim Meyering  <meyering@lucent.com>
97835
97836         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97837
97838 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97839
97840         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97841
97842 2000-11-26  Jim Meyering  <meyering@lucent.com>
97843
97844         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97845
97846 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97847
97848         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97849         size of (size_t) -1; it's not portable.
97850
97851 2000-11-17  Jim Meyering  <meyering@lucent.com>
97852
97853         * lib/strstr.c: Update from GNU libc.
97854
97855 2000-11-17  Akim Demaille  <akim@epita.fr>
97856
97857         * lib/obstack.h: Formatting changes.
97858         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97859         prevent type checking.
97860         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97861         cast the value to (void *): assigning a `foo *' to a `void *'
97862         variable is valid.
97863         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97864
97865 2000-11-16  Jim Meyering  <meyering@lucent.com>
97866
97867         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97868
97869 2000-11-11  Jim Meyering  <meyering@lucent.com>
97870
97871         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97872
97873 2000-11-10  Jim Meyering  <meyering@lucent.com>
97874
97875         * lib/obstack.h: Update from GNU libc.
97876         * lib/obstack.c: Likewise.
97877
97878 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97879
97880         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97881
97882 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97883
97884         * lib/getusershell.c (setusershell): Use rewind rather than
97885         fseek/fseeko, to avoid configuration hassles with fseeko.
97886         Don't bother opening SHELLS_FILE if shellstream is NULL;
97887         it's not necessary.
97888
97889 2000-11-05  Jim Meyering  <meyering@lucent.com>
97890
97891         * lib/makepath.h (make_dir): Declare.
97892         * lib/makepath.c (make_dir): Remove `static' attribute.
97893         Tweak a comment.
97894
97895 2000-11-04  Jim Meyering  <meyering@lucent.com>
97896
97897         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97898
97899 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97900
97901         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97902         last one in a bucket, advance to the next bucket.
97903
97904 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97905
97906         * lib/fnmatch.c: Do not comment out all the code if we are using
97907         the GNU C library, because in some cases we are replacing buggy
97908         code in the GNU C library itself.
97909
97910 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97911
97912         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97913         (regex_compile): Catch bogus \(\1\).
97914
97915 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97916
97917         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97918         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97919         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97920
97921 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97922
97923         * lib/error.h, getline.h, modechange.h:
97924         Remove "2000" from Copyright line, as the file hasn't been
97925         changed this year other than in the copyright notice.
97926
97927         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97928         was changed this year.
97929
97930 2000-10-29  Jim Meyering  <meyering@lucent.com>
97931
97932         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97933         renaming.
97934         * m4/ls-mntd-fs.m4: Likewise
97935
97936 2000-10-29  Jim Meyering  <meyering@lucent.com>
97937
97938         * lib/xstat.in: Fix grammar in comment.
97939
97940 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97941
97942         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97943         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97944         doesn't define __restrict_arr.
97945
97946 2000-10-28  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97949         (jm_PREREQ_MEMCHR): New function.
97950
97951 2000-10-28  Jim Meyering  <meyering@lucent.com>
97952
97953         * lib/memchr.c: Update from libc.
97954         Adjust for portability:
97955         [HAVE_STDLIB_H]: Include stdlib.h.
97956         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97957         Undef __memchr, too.
97958         [!weak_alias]: Define __memchr to memchr.
97959
97960         * lib/regex.c: Update from libc.
97961         * lib/regex.h: Likewise.
97962         * lib/getopt1.c: Likewise.
97963         * lib/memcmp.c: Likewise.
97964
97965         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97966         Avoid using fseek, when possible -- it's broken by design.
97967         Patch by Ulrich Drepper.
97968
97969 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97970
97971         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97972         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97973         Giving in to popular pressure to shut up the compiler with casts.
97974
97975 2000-10-26  Jim Meyering  <meyering@lucent.com>
97976
97977         * lib/strftime.c: Update from libc.
97978
97979 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97980
97981         * regex.c: More `unsigned char' -> `re_char' changes.
97982         Also change several `int' into `re_wchar_t'.
97983         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97984         (PUSH_FAILURE_POINTER): Don't cast any more.
97985         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97986         We want GCC to complain, since this piece of code makes
97987         re_match non-reentrant, which *should* be fixed.
97988         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97989         (EXTEND_BUFFER): Use RETALLOC.
97990         (SET_LIST_BIT): Don't cast.
97991         (re_wchar_t): New type.
97992         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97993         that those two functions will always properly return.
97994         (IMMEDIATE_QUIT_CHECK): Cast to void.
97995         (analyse_first): Use recursion rather than an explicit stack.
97996         (re_compile_fastmap): Can't fail anymore.
97997         (re_search_2): Don't check re_compile_fastmap for failure.
97998         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97999         Now also sets the new value (passed in a new argument).
98000         (re_match_2_internal): Use it.
98001         Also, use a new var `reg' of type size_t when looping through regs
98002         rather than reuse the inappropriate `mcnt'.
98003
98004 2000-10-25  Jim Meyering  <meyering@lucent.com>
98005
98006         * lib/obstack.c: Update from libc.
98007
98008 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98009
98010         * regex.c (regex_compile): Change the way of handling a range from
98011         a char less than 256 to a char not less than 256.
98012
98013 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98014
98015         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98016         NT-Emacs only.
98017         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98018         so that re_search functions only quit when callers expect them to.
98019
98020 2000-10-23  Jim Meyering  <meyering@lucent.com>
98021
98022         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98023         wrong.  That set_locale call must not have any side effects.
98024         From Paul Eggert.
98025
98026 2000-10-22  Jim Meyering  <meyering@lucent.com>
98027
98028         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98029         [CYCLIC]: Remove now-unused definition.
98030
98031         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98032         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98033         Suggestion from Ulrich Drepper.
98034
98035 2000-10-21  Jim Meyering  <meyering@lucent.com>
98036
98037         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98038         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98040
98041 2000-10-21  Jim Meyering  <meyering@lucent.com>
98042
98043         * lib/dirname.c (memrchr): Declare if necessary.
98044         (dir_name): Remove the restriction that there be no
98045         trailing slashes.  Now, this code skips past them, effectively
98046         ignoring them.
98047         [TEST_DIRNAME] (main): New unit tests.
98048
98049         * lib/memrchr.c: New file from GNU libc.
98050         Undef __memrchr, too.
98051         [!weak_alias]: Define __memrchr to memrchr.
98052         Guard weak_alias use with `#ifdef weak_alias'.
98053
98054 2000-10-21  Jim Meyering  <meyering@lucent.com>
98055
98056         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98057         (dir_name): Use dir_name_r.
98058         * lib/dirname.h (dir_name_r): Declare it.
98059
98060 2000-10-17  Jim Meyering  <meyering@lucent.com>
98061
98062         * lib/quote.h (PARAMS): Define and use.
98063         Reported by Akim Demaille.
98064
98065         * lib/getopt.c: Update from libc.
98066
98067 2000-10-16  Jim Meyering  <meyering@lucent.com>
98068
98069         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98070         setlocale.
98071         From Jan Fedak.
98072
98073 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98074
98075         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98076
98077 2000-09-25  Jim Meyering  <meyering@lucent.com>
98078
98079         * lib/md5.h (rol): Define (from GnuPG).
98080
98081         * lib/sha.c: Give credit (GnuPG) where due.
98082         (M): Use rol rather than open-coding it.
98083         Add a FIXME comment.
98084
98085 2000-09-21  Jim Meyering  <meyering@lucent.com>
98086
98087         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98088         Reported by Michael Stone.
98089
98090 2000-09-20  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98093         (noinst_HEADERS): Add sha.h.
98094         Based on code from Scott G. Miller and from GnuPG.
98095
98096 2000-09-18  Jim Meyering  <meyering@lucent.com>
98097
98098         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98099         LIBS. Otherwise, everyone ends up linking with -lelf for some
98100         configurations.
98101         Reported by Mike Stone.
98102
98103 2000-09-15  Jim Meyering  <meyering@lucent.com>
98104
98105         * lib/regex.c: Update from libc.
98106
98107 2000-09-10  Jim Meyering  <meyering@lucent.com>
98108
98109         * lib/getopt.c (_getopt_internal): Update from glibc.
98110
98111 2000-09-09  Jim Meyering  <meyering@lucent.com>
98112
98113         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98114         think it should be used as a general replacement for isascii.
98115         * lib/fnmatch.c: Likewise.
98116         * lib/mbswidth.c: Likewise
98117         * lib/regex.c: Likewise.
98118
98119         Don't use atoi.
98120         * lib/userspec.c: Include sys/param.h and limits.h.
98121         Include xstrtol.h.
98122         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98123         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98124         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98125         UID, GID.  Check range.
98126
98127 2000-09-06  Jim Meyering  <meyering@lucent.com>
98128
98129         * lib/getopt.c (_getopt_internal): Update from glibc.
98130
98131 2000-08-30  Jim Meyering  <meyering@lucent.com>
98132
98133         * lib/strftime.c: Merge in changes from GNU libc.
98134
98135 2000-08-26  Jim Meyering  <meyering@lucent.com>
98136
98137         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98138         * m4/fpending.m4: New file.
98139
98140 2000-08-26  Jim Meyering  <meyering@lucent.com>
98141
98142         * lib/closeout.c: Include "__fpending.h".
98143         (close_stdout_status): Return right away if there's nothing to flush.
98144
98145         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98146         * lib/__fpending.c: New file.
98147         * lib/__fpending.h: New file.
98148
98149 2000-08-20  Jim Meyering  <meyering@lucent.com>
98150
98151         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98152         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98153         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98154
98155 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98156
98157         Improve fileutils installation on systems where running
98158         programs (like install) can't be unlinked.
98159         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98160         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98161
98162 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98163
98164         Standardize on "memory exhausted" instead of "Memory exhausted"
98165         or "virtual memory exhausted".
98166         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98167         "virtual memory exhausted".
98168         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98169         our own message.
98170         * lib/userspec.c (parse_user_spec): Likewise.
98171         * lib/bumpalloc.h: comment fix
98172         * lib/same.c, userspec.c: Include xalloc.h.
98173
98174         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98175         not char *const and pointing to a constant array.
98176         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98177         (xrealloc): Comment fix.
98178
98179         * lib/userspec.c (parse_user_spec):
98180         Don't translate a message until just before returning,
98181         to avoid unnecessary translation.
98182
98183 2000-08-07  Jim Meyering  <meyering@lucent.com>
98184
98185         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98186         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98187         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98188         getgroups.c, gethostname.c, getopt.h, group-member.c,
98189         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98190         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98191         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98192         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98193         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98194         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98195         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98196         yesno.c: Back out Copyright date changes for each file with no change
98197         this year.  This eases coordination with other programs using the same
98198         source code modules.  From Paul Eggert.
98199
98200 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98201
98202         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98203         not char, for compatibility with glibc 2.1.3 strftime.c.
98204
98205 2000-08-03  Greg McGary  <greg@mcgary.org>
98206
98207         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98208         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98209         (EXTEND_BUFFER): Use them.
98210
98211 2000-08-01  Jim Meyering  <meyering@lucent.com>
98212
98213         * lib/dirname.c (ISSLASH): Define.
98214         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98215         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98216         both `\' and `/' may be use as path separators.
98217         Based on a patch from Prashant TR.
98218
98219 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98220
98221         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98222         slot vector a constant, since it might get modified.
98223
98224 2000-07-31  Jim Meyering  <meyering@lucent.com>
98225
98226         * lib/xmalloc.c: Use `virtual memory exhausted', not
98227         `Memory exhausted'.
98228         * lib/obstack.c (print_and_abort): Likewise.
98229
98230 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98231
98232         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98233         buffer, so that the caller can always quote one small
98234         component of a "memory exhausted" message in slot 0.
98235         From a suggestion by Jim Meyering.
98236
98237 2000-07-30  Jim Meyering  <meyering@lucent.com>
98238
98239         * lib/makepath.c (make_path): Quote the other instance, too.
98240
98241         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98242         (STATIC_BUF_SIZE): Define.
98243         (quotearg_n_options): Use only statically allocated storage when
98244         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98245         than STATIC_BUF_SIZE.
98246
98247 2000-07-29  Jim Meyering  <meyering@lucent.com>
98248
98249         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98250         * lib/dirname.c (dir_name): Likewise.
98251
98252         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98253         `/'.
98254
98255         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98256         (dir_name): Assert that there are no trailing slashes.
98257
98258 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98259
98260         * lib/mbswidth.h (mbswidth): Add a flags argument.
98261         (mbswidth): New declaration.
98262         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98263         * lib/mbswidth.c (mbswidth): Add a flags argument.
98264         (mbsnwidth): New function.
98265
98266 2000-07-24  Jim Meyering  <meyering@lucent.com>
98267
98268         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98269
98270 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98271
98272         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98273
98274 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98275
98276         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98277         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98278         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98279         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98280         invoke multibyte primitives.
98281
98282 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98283
98284         * lib/quotearg.c:
98285         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98286         so that mbstate_t is always defined.
98287
98288         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98289         be 1 in at least one GCC installation, and this configuration
98290         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98291         performance on hosts that have mbrtowc but have only unibyte
98292         locales, but I assume these hosts are rare.
98293
98294 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98295
98296         * lib/mbswidth.c (_XOPEN_SOURCE):
98297         Don't define; this causes problems on Solaris 7.
98298         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98299
98300 2000-07-23  Jim Meyering  <meyering@lucent.com>
98301
98302         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98303         too: getgrgid, getpwuid, getuid.
98304
98305 2000-07-23  Jim Meyering  <meyering@lucent.com>
98306
98307         * lib/basename.c (base_name): Add an assertion.
98308
98309 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98310
98311         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98312         shadow its mbsinit function.
98313
98314 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98315
98316         * lib/mbswidth.h: New file.
98317         * lib/mbswidth.c: New file.
98318         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98319         (noinst_HEADERS): Add mbswidth.h.
98320
98321 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98322
98323         * lib/config.charset: Add support for FreeBSD. Improve support for
98324         HP-UX and IRIX 6.
98325
98326 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98327
98328         * m4/mbswidth.m4: New file.
98329         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98330
98331 2000-07-15  Jim Meyering  <meyering@lucent.com>
98332
98333         * lib/makepath.c: Include quote.h.
98334         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98335         corresponding argument in a `quote (...)' call.
98336         Give better diagnostics.
98337
98338         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98339         (noinst_HEADERS): Add quote.h.
98340
98341         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98342         from tar's src/misc.c.
98343         * lib/quote.h: New file.  Prototypes for same.
98344
98345 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98346
98347         From a suggestion by Bruno Haible.
98348         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98349         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98350         to decide whether to define the BeOS workaround macro;
98351         this adjusts to the change to AC_MBSTATE_T.
98352
98353 2000-07-14  Jim Meyering  <meyering@lucent.com>
98354
98355         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98356         jm_AC_TYPE_UINTMAX_T.
98357
98358 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98359
98360         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98361
98362         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98363         quotearg_buffer_restyled): Add support for
98364         clocale_quoting_style.  Undo previous change to
98365         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98366         and "{RIGHT QUOTATION MARK}" msgids.
98367
98368 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98369
98370         From a suggestion by Bruno Haible.
98371         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98372         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98373         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98374         and mbstate_t, to a single-part test that simply defines mbstate_t.
98375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98376         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98377
98378 2000-07-10  Jim Meyering  <meyering@lucent.com>
98379
98380         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98381
98382         * m4/gnu-source.m4: Output to confdefs.h directly.
98383         Suggestion from Akim Demaille.
98384
98385 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98386
98387         The old behavior of quoting `like this' doesn't look good with
98388         newer, ISO-style fonts.  See:
98389         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98390
98391         Instead, quote "like this" by default.  Let the translator
98392         tailor the locale-specific quoting behavior by providing
98393         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98394
98395         * lib/quotearg.c (N_): New macro.
98396         (gettext_default): New function.
98397         (quotearg_buffer_restyled): Use
98398         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98399         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98400
98401 2000-07-09  Jim Meyering  <meyering@lucent.com>
98402
98403         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98404         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98405
98406         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98408
98409 2000-07-09  Jim Meyering  <meyering@lucent.com>
98410
98411         * lib/Most files: Update copyright dates to include 2000.
98412
98413 2000-07-08  Jim Meyering  <meyering@lucent.com>
98414
98415         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98416         if not defined.
98417         (xgethostname): Remove now-unnecessary #ifdef.
98418         Move declaration of `err' into loop where it's used.
98419
98420 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98421         and Bruno Haible  <haible@clisp.cons.org>
98422
98423         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98424         only if the test for an object-type mbstate_t fails.  This
98425         prevents us from mistakenly reporting that mbstate_t is a
98426         system object type after we "#define mbstate_t int" to work
98427         around its lack.
98428
98429 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98430         and Bruno Haible  <haible@clisp.cons.org>
98431
98432         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98433
98434 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98435
98436         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98437         to strerror_r.
98438         Include <ctype.h> for use of isalpha.
98439
98440 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98441
98442         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98443         by allocating a larger buffer. Test the gethostname return value for
98444         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98445         returns an error and ENAMETOOLONG isn't defined.
98446
98447 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98448
98449         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98450         dimension.
98451
98452 2000-07-04  Jim Meyering  <meyering@lucent.com>
98453
98454         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98455         of the deprecated AC_CHECKING.
98456
98457 2000-07-04  Jim Meyering  <meyering@lucent.com>
98458
98459         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98460         Reported by Bruno Haible.
98461
98462 2000-07-04  Jim Meyering  <meyering@lucent.com>
98463
98464         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98465         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98466         lacks mbrtowc.
98467
98468 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98469
98470         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98471         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98472
98473 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98474         and Bruno Haible  <haible@clisp.cons.org>
98475
98476         * lib/quotearg.c (mbrtowc):
98477         Assign to *pwc, and return 1 only if result is nonzero.
98478         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98479
98480 2000-07-03  Jim Meyering  <meyering@lucent.com>
98481
98482         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98483
98484 2000-07-03  Jim Meyering  <meyering@lucent.com>
98485
98486         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98487         This is necessary to get a definition of e.g., UTMP_FILE on
98488         HP-UX 10.20.
98489         From Bob Proulx.
98490
98491 2000-07-02  Jim Meyering  <meyering@lucent.com>
98492
98493         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98494
98495         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98496         AC_LIBOBJ(function_name).
98497         * m4/chown.m4: Likewise.
98498         * m4/fnmatch.m4: Likewise.
98499         * m4/ftruncate.m4: Likewise.
98500         * m4/getgroups.m4: Likewise.
98501         * m4/getline.m4: Likewise.
98502         * m4/group-member.m4: Likewise.
98503         * m4/jm-macros.m4: Likewise.
98504         * m4/lstat.m4: Likewise.
98505         * m4/malloc.m4: Likewise.
98506         * m4/memcmp.m4: Likewise.
98507         * m4/nanosleep.m4: Likewise.
98508         * m4/putenv.m4: Likewise.
98509         * m4/realloc.m4: Likewise.
98510         * m4/regex.m4: Likewise.
98511         * m4/stat.m4: Likewise.
98512         * m4/strftime.m4: Likewise.
98513
98514 2000-07-02  Jim Meyering  <meyering@lucent.com>
98515
98516         * lib/quotearg.c (mbstate_t): Don't define here.
98517
98518 2000-07-02  Jim Meyering  <meyering@lucent.com>
98519
98520         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98521
98522 2000-07-01  Jim Meyering  <meyering@lucent.com>
98523
98524         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98525
98526 2000-07-01  Jim Meyering  <meyering@lucent.com>
98527
98528         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98529         problem.
98530
98531 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98532
98533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98534         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98535
98536 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98537
98538         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98539         per change in ../m4/ls-mntd-fs.m4.
98540         (read_filesystem_list): Ignore symbolic links.
98541
98542 2000-06-29  Jim Meyering  <meyering@lucent.com>
98543
98544         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98545         for declaration of strcmp.
98546
98547         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98548
98549         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98550         Avoid warning by casting result to `char *' to remove `const'.
98551
98552 2000-06-28  Jim Meyering  <meyering@lucent.com>
98553
98554         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98555         included by quotearg.c, for which we perform this test.  From
98556         Bruno Haible.
98557
98558 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98559
98560         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98561         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98562         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98563
98564 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98565
98566         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98567
98568 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98569
98570         savedir now sets errno on failure and invokes xmalloc to get memory.
98571         Fix a couple of other minor bugs while we're at it.
98572
98573         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98574         (NAMLEN): Remove macro.
98575         (malloc, realloc): Remove decls.
98576         (stpcpy): Likewise.
98577         ("xalloc.h"): Include.
98578         (NAME_SIZE_DEFAULT): New macro.
98579         (savedir): Use xmalloc / xrealloc to allocate memory.
98580         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98581         Skip "" directory entries.
98582         Use strlen to calculate directory entry length, since the old method
98583         is rarely used these days and isn't worth supporting.
98584         Don't use a pointer after freeing it.
98585         Check for integer overflow when calculating allocation size.
98586         Use memcpy to copy entries, instead of stpcpy.
98587         Set errno properly when returning NULL.
98588         Check for readdir error.
98589
98590 2000-06-26  Jim Meyering  <meyering@lucent.com>
98591
98592         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98593
98594 2000-06-25  Jim Meyering  <meyering@lucent.com>
98595
98596         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98597         Linux header bug when _XOPEN_SOURCE is defined to 500.
98598
98599 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98600
98601         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98602         deficiency.
98603
98604 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98605
98606         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98607         Include xalloc.h.
98608         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98609
98610 2000-06-24  Jim Meyering  <meyering@lucent.com>
98611
98612         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98613         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98614         for which strerror does return char*, but which lacks a conveniently
98615         accessible declaration of the function.  If the compile-test says
98616         strerror_r doesn't work, then resort to a `run'-test that works on
98617         BeOS and segfaults on DEC Unix.
98618
98619 2000-06-24  Jim Meyering  <meyering@lucent.com>
98620
98621         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98622
98623 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98624
98625         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98626         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98627
98628 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98629
98630         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98631         (mbrtowc, mbstate_t): Define substitutes if
98632         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98633         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98634         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98635
98636 2000-06-23  Jim Meyering  <meyering@lucent.com>
98637
98638         * m4/afs.m4: Add missing AC_MSG_RESULT.
98639         Reported by Bruno Haible.
98640
98641         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98642         Suggestion from Bruno Haible.
98643
98644 2000-06-23  Jim Meyering  <meyering@lucent.com>
98645
98646         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98647
98648 2000-06-21  Jim Meyering  <meyering@lucent.com>
98649
98650         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98651
98652 2000-06-21  Jim Meyering  <meyering@lucent.com>
98653
98654         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98655         (noinst_HEADERS): Add getstr.h.
98656
98657         * lib/getline.c (getstr): Move into a separate file.
98658         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98659         the following changes: new parameter, delim2; both delim[12]
98660         parameters have type `int', not `char'.  The latter would lose
98661         with 8-bit delimiters.
98662         * lib/getstr.h: New file.
98663
98664 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98665
98666         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98667         than 1024, return a memory chunk of least possible size, instead
98668         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98669         Use free/xmalloc instead of xrealloc to avoid copying for very long
98670         paths.
98671
98672 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98673
98674         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98675         the empty string.
98676
98677 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98678
98679         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98680         address, not strdup.  Include <stdlib.h> and don't declare free().
98681
98682 2000-06-19  Jim Meyering  <meyering@lucent.com>
98683
98684         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98685
98686 2000-06-18  Jim Meyering  <meyering@lucent.com>
98687
98688         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98689
98690         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98691         `checking whether...' message to be consistent with that of the
98692         lstat test.
98693
98694 2000-06-18  Jim Meyering  <meyering@lucent.com>
98695
98696         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98697         Besides, these days every porting target provides a mkdir function.
98698
98699         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98700         needed. (this snippet comes from src/system.h).
98701
98702 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98703
98704         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98705
98706 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98707
98708         * lib/human.c (adjust_value): New function.
98709         (human_readable_inexact): Apply rounding style even when
98710         printing approximate values.
98711
98712 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98713
98714         * lib/human.c (human_readable_inexact): Allow an input block
98715         size that is not a multiple of the output block size, and vice versa.
98716         Reported by Piergiorgio Sartor.
98717
98718 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98719
98720         * lib/getdate.y (get_date): Apply relative times after time
98721         zone indicator, not before.  Reported by Todd A. Jacobs.
98722
98723 2000-06-13  Jim Meyering  <meyering@lucent.com>
98724
98725         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98726
98727         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98728
98729 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98730
98731         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98732
98733 2000-06-12  Jim Meyering  <meyering@lucent.com>
98734
98735         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98736         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98737         optional argument.
98738         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98739         the optional argument, `lib'.
98740
98741 2000-06-08  Jim Meyering  <meyering@lucent.com>
98742
98743         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98744
98745 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98746
98747         Rewrite largefile configuration so that we don't need to run
98748         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98749         AC_CANONICAL_HOST in configure.in -- jmm]
98750
98751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98752         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98753         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98754         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98755         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98756         All uses changed.
98757         Instead of inspecting the output of getconf, try to compile the
98758         test program without and with the macro definition.
98759         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98760         for getconf.  Instead, check for the needed flags by compiling
98761         test programs.
98762
98763 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98764
98765         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98766
98767 2000-06-04  Jim Meyering  <meyering@lucent.com>
98768
98769         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98770         SunOS 4.1.4 for which gid_t is an unsigned type.
98771
98772 2000-06-03  Jim Meyering  <meyering@lucent.com>
98773
98774         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98775         now that autoconf requires that.
98776
98777         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98778         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98779         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98780
98781 2000-06-03  Jim Meyering  <meyering@lucent.com>
98782
98783         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98784
98785 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98786
98787         * m4/glibc21.m4: New file.
98788         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98789
98790 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98791
98792         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98793         newer, don't install charset.alias.
98794         * lib/config.charset: Change the Linux/glibc rules so they become empty
98795         on glibc-2.1 or newer.
98796
98797 2000-06-02  Jim Meyering  <meyering@lucent.com>
98798
98799         * lib/mountlist.c: Back out last change.  Instead, do this...
98800         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98801         me_dummy member using the same `ignore'-testing code.
98802         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98803         fs_type strings.
98804         From Mark D. Roth.
98805
98806 2000-05-29  Jim Meyering  <meyering@lucent.com>
98807
98808         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98809         mounts with the `ignore' attribute.  Based on a patch from
98810         Mark D. Roth.
98811
98812 2000-05-28  Jim Meyering  <meyering@lucent.com>
98813
98814         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98815         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98816         * m4/stat.m4: Likewise.
98817         * m4/lstat.m4: Likewise.
98818         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98819
98820         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98821         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98822
98823 2000-05-26  Jim Meyering  <meyering@lucent.com>
98824
98825         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98826
98827 2000-05-24  Jim Meyering  <meyering@lucent.com>
98828
98829         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98830         autoconf requires that.
98831         * m4/lib-check.m4: Likewise.
98832         * m4/jm-macros.m4: Likewise.
98833         * m4/strftime.m4: Likewise.
98834
98835         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98836         AC_CHECK_DECLS, now that autoconf requires that.
98837
98838 2000-05-22  Jim Meyering  <meyering@lucent.com>
98839
98840         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98841         * m4/lstat.m4: Likewise.
98842
98843 2000-05-22  Jim Meyering  <meyering@lucent.com>
98844
98845         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98846
98847 2000-05-20  Jim Meyering  <meyering@lucent.com>
98848
98849         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98850         (jm_PREREQ): Use it.
98851
98852 2000-05-18  Jim Meyering  <meyering@lucent.com>
98853
98854         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98855         back, too, since it may have been modified by allocate_entry.
98856         (hash_delete): Rewrite to use neither the assignment operator
98857         nor the comma operator in an if-expression.
98858
98859 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98860
98861         * lib/closeout.c:
98862         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98863         Remove; no longer needed.
98864         "quotearg.h": Add include.
98865         (file_name): Do not bother to explicitly initialize to NULL; it's less
98866         efficient on some hosts.
98867         (close_stdout_status): Remove test as to whether stdout was already
98868         closed; it breaks for the case "echo x | sort >&-".
98869         Quote file name colons.
98870         Do not assume that _("write error") lacks format strings.
98871
98872 2000-05-15  Jim Meyering  <meyering@lucent.com>
98873
98874         * lib/version-etc.c (version_etc_copyright): Update the copyright
98875         string used in all --version output.
98876
98877 2000-05-14  Jim Meyering  <meyering@lucent.com>
98878
98879         * lib/closeout.c (close_stdout_set_file_name): New function.
98880         (close_stdout_status): Use new file-scoped global.
98881         Return right away if fstat says the stdout file descriptor is invalid.
98882         * lib/closeout.h (close_stdout_set_file_name): Declare.
98883
98884 2000-05-10  Jim Meyering  <meyering@lucent.com>
98885
98886         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98887         (close_stdout_set_status): New function.
98888         * lib/closeout.h (close_stdout_set_status): Declare.
98889
98890 2000-05-09  Jim Meyering  <meyering@lucent.com>
98891
98892         * m4/gettext.m4: Rename this...
98893         * m4/libintl.m4: ...to this.
98894
98895 2000-05-08  Jim Meyering  <meyering@lucent.com>
98896
98897         * lib/long-options.c: Don't include closeout.h.
98898         (parse_long_options): Don't call close_stdout for --version.
98899
98900 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98901
98902         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98903         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98904         2.1.3 bug.  This avoids a clash when files like regex.c define
98905         _GNU_SOURCE.
98906
98907 2000-05-06  Jim Meyering  <meyering@lucent.com>
98908
98909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98910         (AC_REPLACE_FUNCS): Add strnlen.
98911
98912         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98913         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98914
98915         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98916         AC_SEARCH_LIBS call for nanosleep.
98917         (LIB_NANOSLEEP): Set and AC_SUBST.
98918
98919 2000-05-06  Jim Meyering  <meyering@lucent.com>
98920
98921         * lib/strnlen.c: Undefine __strnlen and strnlen.
98922         [!weak_alias]: Define __strnlen to strnlen.
98923
98924         * lib/atexit.c: New file, from libiberty.
98925
98926 2000-05-06  Jim Meyering  <meyering@lucent.com>
98927
98928         * lib/closeout.c (close_stdout_status): Also check for errors on the
98929         stderr stream.
98930
98931 2000-05-05  Jim Meyering  <meyering@lucent.com>
98932
98933         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98934         AC_SEARCH_LIBS call for clock_gettime.
98935         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98936
98937         * m4/search-libs.m4: Update from autoconf.
98938
98939         su doesn't work on Solaris 2.6.
98940         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98941         <shadow.h>.  Reported by Dragos Harabor.
98942
98943 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98944
98945         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98946         memcpy instead of xmalloc, xrealloc, path_concat.
98947         (locale_charset): Treat empty environment variables as absent.
98948         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98949
98950 2000-05-04  Jim Meyering  <meyering@lucent.com>
98951
98952         * lib/getopt.c: Update from glibc.
98953         * lib/obstack.c: Likewise.
98954         * lib/obstack.h: Likewise.
98955         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98956         file
98957
98958         * lib/regex.h: Likewise.
98959         * lib/strndup.c: Likewise.
98960         * lib/strnlen.c: New file, from glibc.
98961
98962 2000-05-03  Jim Meyering  <meyering@lucent.com>
98963
98964         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98965
98966 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98967
98968         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98969         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98970         compile-time test, rather than inspecting host and OS, to
98971         decide whether to define _LARGEFILE_SOURCE.
98972
98973 2000-05-01  Jim Meyering  <meyering@lucent.com>
98974
98975         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98976
98977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98978         Based on a patch from Bruno Haible.
98979
98980 2000-05-01  Jim Meyering  <meyering@lucent.com>
98981
98982         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98983
98984 2000-04-29  Jim Meyering  <meyering@lucent.com>
98985
98986         * lib/path-concat.c: Declare strdup only if it's not defined.
98987         * lib/canon-host.c: Likewise.
98988
98989 2000-04-28  Jim Meyering  <meyering@lucent.com>
98990
98991         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98992         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98993         is included first, then limits.h is included by locale.h by libintl.h.
98994         From John David Anglin.
98995
98996 2000-04-25  Jim Meyering  <meyering@lucent.com>
98997
98998         * lib/makepath.c (S_IRWXUGO): Define.
98999         (make_path): Always perform explicit chmod if MODE specifies any
99000         of the `special' permission bits.  Prompted by a bug report against
99001         install from Mate Wierdl and Joost van Baal.
99002
99003 2000-04-18  Jim Meyering  <meyering@lucent.com>
99004
99005         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99006         (jm_PREREQ): Use it.
99007
99008 2000-04-18  Jim Meyering  <meyering@lucent.com>
99009
99010         * lib/README: New file.
99011
99012         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99013         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99014
99015 2000-04-17  Jim Meyering  <meyering@lucent.com>
99016
99017         Get it right :-)
99018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99019         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99020         Suggestion from Akim Demaille.
99021
99022 2000-04-17  Jim Meyering  <meyering@lucent.com>
99023
99024         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99025         the definition of it to rpl_strftime also defined-away the system's
99026         declaration.
99027
99028 2000-04-15  Jim Meyering  <meyering@lucent.com>
99029
99030         Use `C' to denote so-called `contiguous' files, the same way
99031         that tar does.
99032         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99033         (ftypelet): Use S_ISCTG.
99034         From Michael Deutschmann.
99035
99036 2000-04-14  Jim Meyering  <meyering@lucent.com>
99037
99038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99039         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99040         clobbered.
99041
99042 2000-04-14  Jim Meyering  <meyering@lucent.com>
99043
99044         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99045
99046 2000-04-13  Jim Meyering  <meyering@lucent.com>
99047
99048         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99049         AH_VERBATIM to insert required #ifndef into config.h.in.
99050         Suggestion from Akim Demaille.
99051
99052 2000-04-12  Jim Meyering  <meyering@lucent.com>
99053
99054         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99055         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99056         Christian Krackowizer.
99057
99058         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99059         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99060         (AC_SYS_LARGEFILE): Require.
99061         (AM_C_PROTOTYPES): Require.
99062
99063 2000-04-08  Jim Meyering  <meyering@lucent.com>
99064
99065         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99066         names don't conflict.  Reported by Eli Zaretskii.
99067
99068 2000-04-07  Jim Meyering  <meyering@lucent.com>
99069
99070         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99071         sys/types.h, to work around system header problems on AIX 3.2.5.
99072         From Bruno Haible.
99073
99074 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99075
99076         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99077         bug.  Deal with the different error behavior of Irix iconv.
99078
99079 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99080
99081         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99082         IRIX if the installer said otherwise.
99083
99084 2000-04-05  Jim Meyering  <meyering@lucent.com>
99085
99086         Portability tweaks required for ultrix4.3.
99087         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99088         (jm_CHECK_DECLS): Add getutent to the list of functions.
99089         (_jm_DECL_HEADERS): Add utmpx.h.
99090         From John David Anglin.
99091
99092         * m4/strftime.m4: Back out the 2000-04-02 change.
99093         Instead of that change, simply undefine putenv in the test program.
99094
99095 2000-04-05  Jim Meyering  <meyering@lucent.com>
99096
99097         Portability tweaks required for ultrix4.3.
99098         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99099         getutent.
99100         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99101         * lib/canon-host.c: Declare strdup.
99102         * lib/path-concat.c: Likewise.
99103         From John David Anglin.
99104
99105 2000-04-04  Jim Meyering  <meyering@lucent.com>
99106
99107         Be more DOS 8.3-friendly.
99108         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99109         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99110         * lib/Makefile.am: Reflect renaming.
99111         Reported by Eli Zaretskii.
99112
99113         Use a temporary file name that won't clash with `charset.alias'
99114         in the DOS 8.3 name space.
99115         * lib/Makefile.am (charset_tmp): Define.
99116         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99117         (uninstall-local): Likewise.
99118         Reported by Eli Zaretskii.
99119
99120 2000-04-03  Jim Meyering  <meyering@lucent.com>
99121
99122         * m4/gettext.m4: Fix typo in comment.
99123
99124         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99125         textutils/configure.in).  Suggestion from Paul Eggert.
99126         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99127
99128 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99129
99130         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99131         variable in the shell rather than using putenv, which isn't
99132         portable.  This avoids the configure-time inter-test dependency
99133         on the potentially-renamed putenv function.
99134
99135 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99136
99137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99138         before checking struct stat.st_blksize, so that
99139         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99140
99141 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99142
99143         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99144         since strftime.c uses HAVE_STRFTIME to decide whether to use
99145         the underlying strftime.
99146
99147 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99148
99149         * lib/time/strftime.c (my_strftime): Make sure we call the system
99150         strftime, not ourselves, when invoking the underlying strftime.
99151
99152 2000-03-24  Jim Meyering  <meyering@lucent.com>
99153
99154         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99155         (charset_alias): Define.
99156         (install-exec-local): Factor out common code.
99157         (uninstall-local): Split lines longer than 80.
99158         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99159         (SUFFIXES): Define.
99160         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99161         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99162
99163 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99164
99165         * lib/config.charset: Output a line containing "Packages using this
99166         file".
99167         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99168         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99169         ref-del.sed): New rules.
99170
99171 2000-03-17  Jim Meyering  <meyering@lucent.com>
99172
99173         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99174         Otherwise, include <strings.h>
99175
99176 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99177
99178         * lib/unicodeio.c (utf8_wctomb): New function.
99179         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99180         format instead of in UCS-4 with platform dependent endianness.
99181
99182 2000-03-10  Jim Meyering  <meyering@lucent.com>
99183
99184         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99185         From Marco Franzen.
99186
99187 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99188
99189         * lib/savedir.c (savedir): Work even if directory size is
99190         negative; this can happen with some screwy NFS configurations.
99191
99192 2000-03-06  Jim Meyering  <meyering@lucent.com>
99193
99194         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99195         if it's NULL (because we ran out of memory).  From Bruno Haible.
99196
99197 2000-03-05  Jim Meyering  <meyering@lucent.com>
99198
99199         * lib/localcharset.c ("path-concat.h"): Include.
99200         (get_charset_aliases): Use path_concat instead of ANSI string
99201         concatenation.
99202
99203         * lib/unicodeio.h (PARAMS): Define.
99204         Use it to guard prototype.
99205
99206 2000-03-04  Jim Meyering  <meyering@lucent.com>
99207
99208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99209         for lib/localcharset.c.
99210
99211 2000-03-04  Jim Meyering  <meyering@lucent.com>
99212
99213         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99214         installing into it.
99215         (uninstall-local): Uncomment this rule so `make distcheck' works
99216         once again.
99217
99218         * lib/unicodeio.c (<errno.h>): Include it.
99219         (errno): Declare if not defined.
99220
99221         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99222
99223         * lib/config.charset: New version, incorporating remarks from a linux
99224         i18n mailing list.  From Bruno Haible.
99225
99226 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99227
99228         * m4/codeset.m4: New file.
99229         * m4/iconv.m4: New file.
99230         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99231
99232 2000-03-03  Jim Meyering  <meyering@lucent.com>
99233
99234         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99235
99236 2000-03-02  Jim Meyering  <meyering@lucent.com>
99237
99238         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99239         the messages come out on separate lines.
99240
99241         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99242         rather than jm_CHECK_DECLARATIONS.
99243         * m4/decl.m4: Remove now-unused file.
99244
99245         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99246         geteuid.
99247
99248 2000-03-02  Jim Meyering  <meyering@lucent.com>
99249
99250         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99251
99252 2000-03-01  Jim Meyering  <meyering@lucent.com>
99253
99254         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99255         * lib/unicodeio.c: Likewise.
99256
99257 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99258
99259         * lib/config.charset: New file.
99260         * lib/localcharset.c: New file.
99261         * lib/unicodeio.h, lib/unicodeio.c: New files.
99262         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99263         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99264         (noinst_HEADERS): Add unicodeio.h.
99265         (all-local, install-exec-local, charset.alias): New targets.
99266
99267 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99268
99269         * lib/quotearg.c (ALERT_CHAR): New macro.
99270         (quotearg_buffer_restyled): Use it.
99271
99272 2000-02-27  Jim Meyering  <meyering@lucent.com>
99273
99274         * m4/check-decl.m4: Add getenv to the list.
99275
99276 2000-02-27  Jim Meyering  <meyering@lucent.com>
99277
99278         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99279         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99280
99281         * lib/backupfile.c: Guard inclusion of stdlib.h with
99282         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99283         Declare malloc if needed.
99284
99285         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99286         `#ifndef HAVE_DECL..'
99287         now that autoconf always defines the HAVE_DECL_ symbols.
99288         * lib/human.c: Likewise.
99289         * lib/same.c: Likewise.
99290         * lib/strtoumax.c: Likewise.
99291
99292         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99293         declaration check was not run.
99294         * lib/hash.c: Likewise.
99295         * lib/human.c: Likewise.
99296         * lib/same.c: Likewise.
99297         * lib/strtoumax.c: Likewise.
99298
99299         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99300         `.', then first look up the entire `.'-containing string as a login
99301         name.
99302
99303 2000-02-23  Jim Meyering  <meyering@lucent.com>
99304
99305         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99306         in place of my hack.
99307
99308 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99309
99310         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99311         (textint): New typedef.
99312         (parser_control): Member year changed from int to textint.
99313         All uses changed.
99314         (YYSTYPE): Removed; replaced by %union with int and textint members.
99315         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99316         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99317         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99318         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99319         (date, number, to_year): Use width of number in digits, not its value,
99320         to determine whether it's a 2-digit year, or a 2-digit time.
99321         (yylex): Store number of digits of numeric tokens.
99322         Reported by John Kendall.
99323
99324         (parser_control): Changed from struct parser_control to typedef (for
99325         consistency).  All uses changed.
99326
99327         (tID): Removed; not used.
99328         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99329
99330 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99331
99332         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99333         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99334
99335 2000-02-12  Jim Meyering  <meyering@lucent.com>
99336
99337         * lib/userspec.c (ISDIGIT): Define it.
99338         (isdigit): Remove definition.
99339         (is_number): Use ISDIGIT, not isdigit.
99340         <libintl.h>: Include.
99341         (_ and N_): Define.
99342         (parse_user_spec): Mark translatable strings.
99343
99344 2000-02-10  Jim Meyering  <meyering@lucent.com>
99345
99346         With these changes, nanosleep.[ch] are finally enough like the other
99347         lib/* replacement files to compile on a few more losing systems.
99348
99349         * lib/nanosleep.h: Don't include config.h.
99350         Remove prototype from declaration of nanosleep.
99351         (PARAMS): Remove now-unneeded definition.
99352         * lib/nanosleep.c: #undef nanosleep.
99353         (rpl_nanosleep): Rename from nanosleep.
99354
99355 2000-02-10  Jim Meyering  <meyering@lucent.com>
99356
99357         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99358         gnu_nanosleep to rpl_nanosleep.
99359
99360 2000-02-09  Jim Meyering  <meyering@lucent.com>
99361
99362         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99363         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99364
99365 2000-02-08  Akim Demaille  <akim@epita.fr>
99366
99367         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99368         `[' and `]' and remove uses of `changequote'.
99369         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99370         (AC_SYS_LARGEFILE): Likewise.
99371         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99372         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99373         of changequote.
99374         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99375         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99376         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99377         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99378
99379 2000-02-05  Jim Meyering  <meyering@lucent.com>
99380
99381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99382         Remove explicit use of AC_HEADER_TIME.  It is required by
99383         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99384         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99385         in autoconf whereby the expansion of the latter ended up preceding
99386         the expansion of its prerequisite, AC_HEADER_TIME.
99387         Reported by Volker Borchert.
99388
99389 2000-02-03  Jim Meyering  <meyering@lucent.com>
99390
99391         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99392
99393 2000-02-03  Jim Meyering  <meyering@lucent.com>
99394
99395         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99396         rather than with `#if HAVE_UTMPNAME'.
99397
99398 2000-02-02  Jim Meyering  <meyering@lucent.com>
99399
99400         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99401         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99402         Reported by Eli Zaretskii.
99403
99404 2000-02-01  Jim Meyering  <meyering@lucent.com>
99405
99406         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99407
99408 2000-01-31  Jim Meyering  <meyering@lucent.com>
99409
99410         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99411         functions.  Add the time.h and sys/time.h headers along with the
99412         AC_REQUIRE'ment of AC_HEADER_TIME.
99413
99414 2000-01-31  Jim Meyering  <meyering@lucent.com>
99415
99416         * lib/nanosleep.h (nanosleep): Guard declaration with
99417         `#if ! HAVE_DECL_NANOSLEEP'.
99418         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99419         the declaration in that vendor's sys/timers.h.
99420         Reported by Christian Krackowizer.
99421
99422         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99423         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99424         (ISPRINT): Likewise.
99425         Reported by Tom Tromey.
99426
99427 2000-01-30  Jim Meyering  <meyering@lucent.com>
99428
99429         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99430
99431         * m4/prereq.m4 (utmp_includes): Define.
99432         Check for ut_user and ut_name members in both struct utmpx
99433         and struct utmp.
99434
99435 2000-01-30  Jim Meyering  <meyering@lucent.com>
99436
99437         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99438         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99439         header files where only utmpx.ut_user is declared.
99440
99441         * lib/readutmp.h (UT_USER): Define.
99442
99443 2000-01-29  Jim Meyering  <meyering@lucent.com>
99444
99445         * m4/lib-check.m4: New file containing library-related checks from
99446         fileutils and sh-utils (textutils had none).
99447
99448 2000-01-28  Jim Meyering  <meyering@lucent.com>
99449
99450         * m4/perl.m4: Change format of warning message to look more like that
99451         from the missing script.  Suggestion from François Pinard.
99452
99453 2000-01-25  Jim Meyering  <meyering@lucent.com>
99454
99455         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99456         well as time.h in the compile check.
99457         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99458         Fix typo in cross-compiling case: s/yes/no/.
99459
99460 2000-01-23  Jim Meyering  <meyering@lucent.com>
99461
99462         * m4/jm-macros.m4: Move df-related tests here from
99463         fileutils/configure.in
99464
99465         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99466         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99467
99468         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99469         s/space/ac_fsusage_space/.
99470         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99471
99472         * m4/ftruncate.m4: New file (derived from part of
99473         fileutils/configure.in).
99474         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99475         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99476
99477         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99478         AC_SUBST these here, rather than just in sh-util/configure.in, so
99479         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99480         all the same.
99481         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99482         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99483         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99484         (AC_SUBST(POW_LIBM)): Likewise.
99485         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99486
99487 2000-01-23  Jim Meyering  <meyering@lucent.com>
99488
99489         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99490         obstack.c.
99491
99492 2000-01-22  Jim Meyering  <meyering@lucent.com>
99493
99494         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99495
99496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99497
99498         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99499         configure.in
99500         (AC_CHECK_HEADERS): Likewise for sh-utils.
99501         (AC_CHECK_HEADERS): Likewise for textutils.
99502         Merge the three lists of headers.
99503
99504         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99505         from fileutils' configure.in.
99506
99507         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99508         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99509         check-decl.m4.
99510
99511         * m4/check-decl.m4: Use #if rather than #ifdef.
99512         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99513         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99514         (_jm_DECL_HEADERS): Define new function.
99515         (jm_CHECK_DECLARATIONS): Require it.
99516
99517 2000-01-22  Jim Meyering  <meyering@lucent.com>
99518
99519         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99520         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99521         Required for some AIX systems.  Reported by Christian Krackowizer.
99522         [TESTING] (main): New function.
99523
99524         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99525         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99526         letters.
99527
99528         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99529         iswprint.
99530
99531         * lib/strverscmp.c (ISDIGIT): Define.
99532         (strverscmp): Use ISDIGIT, not isdigit.
99533
99534 2000-01-19  Jim Meyering  <meyering@lucent.com>
99535
99536         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99537         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99538         defines `struct timespec' in <sys/time.h>
99539
99540         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99541         Thanks to Akim for explaining.
99542
99543 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99544
99545         * lib/nanosleep.c (nanosleep):
99546         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99547         POSIX.1 doesn't require SA_INTERRUPT and some systems
99548         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99549         it's been part of POSIX.1 since day 1 (in 1988).
99550
99551 2000-01-17  Jim Meyering  <meyering@lucent.com>
99552
99553         * lib/interlock: Remove unused file.  Reported by François Pinard.
99554
99555 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99556
99557         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99558         alert, backslash, formfeed, and vertical tab unnecessarily in
99559         shell quoting style.
99560
99561 2000-01-16  Jim Meyering  <meyering@lucent.com>
99562
99563         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99564         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99565         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99566         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99567
99568 2000-01-16  Jim Meyering  <meyering@lucent.com>
99569
99570         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99571         because the latter didn't work.
99572
99573 2000-01-15  Jim Meyering  <meyering@lucent.com>
99574
99575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99576         (AC_REPLACE_FUNCS): Add memcpy and memset.
99577         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99578         Add strpbrk.
99579         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99580
99581 2000-01-12  Jim Meyering  <meyering@lucent.com>
99582
99583         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99584         (jm_PREREQ): Use it.
99585         (jm_PREREQ_READUTMP): New macro.
99586         (jm_PREREQ): Use it.
99587
99588 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99589
99590         Quote multibyte characters correctly.
99591         * m4/c-bs-a.m4: New file.
99592         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99593         (jm_PREREQ): Use it.
99594
99595 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99596
99597         * m4/uintmax_t.m4: Port to autoconf 2.13.
99598
99599 2000-01-08  Jim Meyering  <meyering@ascend.com>
99600
99601         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99602         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99603
99604 2000-01-04  Jim Meyering  <meyering@ascend.com>
99605
99606         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99607         jm_STRUCT_DIRENT_D_TYPE.
99608         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99609         jm_STRUCT_DIRENT_D_INO.
99610         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99611         jm_STRUCT_UTIMBUF.
99612         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99613         renamings.
99614         * m4/utime.m4: Likewise.
99615
99616         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99617         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99618
99619 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99620
99621         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99622         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99623
99624 2000-01-02  Jim Meyering  <meyering@ascend.com>
99625
99626         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99627         remember if this is necessary.
99628
99629 1999-12-26  Jim Meyering  <meyering@ascend.com>
99630
99631         * m4/jm-macros.m4: Use it here.
99632         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99633
99634 1999-12-23  Jim Meyering  <meyering@ascend.com>
99635
99636         * m4/jm-macros.m4: Check for clock_gettime (moved from
99637         fileutils/configure.in)
99638         Check for gettimeofday.
99639
99640 1999-12-20  Jim Meyering  <meyering@ascend.com>
99641
99642         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99643         autoconf-2.14a-1999-12-20.
99644
99645 1999-12-19  Jim Meyering  <meyering@ascend.com>
99646
99647         * m4/lstat-slash.m4: New file.
99648         * m4/jm-macros.m4: Use the new macro:
99649         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99650
99651 1999-12-07  Jim Meyering  <meyering@ascend.com>
99652
99653         * m4/perl.m4: Require that File::Compare be available, too.
99654         Too many systems seem to lack it.
99655
99656         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99657         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99658
99659 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99660
99661         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99662         problem with the QNX 4.25 shell, which doesn't propagate exit
99663         status of failed commands inside shell assignments.
99664
99665 1999-11-17  Jim Meyering  <meyering@ascend.com>
99666
99667         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99668
99669 1999-11-07  Jim Meyering  <meyering@ascend.com>
99670
99671         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99672
99673 1999-11-06  Jim Meyering  <meyering@ascend.com>
99674
99675         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99676         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99677
99678 1999-11-05  Jim Meyering  <meyering@ascend.com>
99679
99680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99681         configure.in of textutils, fileutils, and sh-utils into this one
99682         (shared between those packages) file.
99683         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99684         AC_STRUCT_ST_BLKSIZE.
99685
99686 1999-11-03  Jim Meyering  <meyering@ascend.com>
99687
99688         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99689         of AC_CHECK_TYPE checks includes unistd.h.
99690         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99691         Suggestion from Akim Demaille.
99692
99693 1999-10-30  Jim Meyering  <meyering@ascend.com>
99694
99695         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99696         m4-quoted string.
99697         * m4/ls-mntd-fs.m4: Likewise.
99698         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99699         * m4/jm-winsz1.m4: Likewise.
99700
99701         * m4/const.m4: Remove file, since the fix made it into the experimental
99702         version of autoconf.
99703         * m4/mktime.m4: Likewise.
99704
99705         * m4/check-type.m4: Remove file, now that the latest version of
99706         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99707
99708         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99709         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99710         AC_CHECK_TYPE.
99711
99712 1999-10-04  Jim Meyering  <meyering@ascend.com>
99713
99714         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99715
99716 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99717
99718         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99719         2.95.1 bug with HP-UX 10.20.
99720
99721 1999-09-17  Jim Meyering  <meyering@ascend.com>
99722
99723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99724         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99725         due to missing strdup (against sh-utils-2.0).
99726
99727 1999-08-29  Jim Meyering  <meyering@ascend.com>
99728
99729         * m4/jm-macros.m4: Require jm_BISON.
99730         * m4/bison.m4: New file.
99731
99732 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99733
99734         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99735         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99736
99737 1999-08-05  Jim Meyering  <meyering@ascend.com>
99738
99739         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99740         to avoid conflicts with `conftest' on 8+3 filesystems.
99741         Suggestion from Eli Zaretskii.
99742
99743 1999-08-04  Jim Meyering  <meyering@ascend.com>
99744
99745         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99746         fileutils and sh-utils (textutils's getline test was inadequate).
99747         (AM_FUNC_GETLINE): Run this test.
99748         (AC_CHECK_FUNCS): Check for getdelim.
99749         Reported by Bob Proulx.
99750
99751 1999-08-02  Jim Meyering  <meyering@ascend.com>
99752
99753         * m4/jm-macros.m4: Add a comment.
99754
99755 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99756
99757         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99758         <inttypes.h> defines strtoumax as a macro (and not as a
99759         function).
99760
99761 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99762
99763         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99764         that we can shift, multiply and divide unsigned long long
99765         values; Ultrix cc can't do it.
99766
99767 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99768
99769         * m4/mktime.m4: New file, which is a preview of what should appear
99770         in the next public autoconf release.
99771
99772 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99773
99774         * m4/lfs.m4: Remove this file.
99775         * m4/largefile.m4: New file.  It contains the old contents of
99776         lfs.m4, except that all names with prefix AC_LFS have been
99777         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99778         compatible with future autoconf versions.  Also, some minor m4
99779         quoting problems have been fixed.
99780
99781 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99782
99783         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99784         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99785         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99786         and simplify the shell code.
99787
99788 1999-08-01  Jim Meyering  <meyering@ascend.com>
99789
99790         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99791         m4.
99792
99793 1999-07-20  Jim Meyering  <meyering@ascend.com>
99794
99795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99796
99797 1999-07-15  Jim Meyering  <meyering@ascend.com>
99798
99799         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99800
99801 1999-05-22  Jim Meyering  <meyering@ascend.com>
99802
99803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99804
99805 1999-05-20  Jim Meyering  <meyering@ascend.com>
99806
99807         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99808         Add a colon after each `then' in case $4 is empty.
99809
99810 1999-05-16  Jim Meyering  <meyering@ascend.com>
99811
99812         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99813
99814 1999-05-10  Jim Meyering  <meyering@ascend.com>
99815
99816         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99817
99818         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99819         AC_FUNC_MKTIME.
99820
99821 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99822
99823         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99824
99825 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99826
99827         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99828         not CPPFLAGS, so that linking works correctly in IRIX.
99829
99830 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99831
99832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99833
99834 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99835
99836         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99837         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99839         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99840         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99841
99842         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99843
99844 1999-04-20  Jim Meyering  <meyering@ascend.com>
99845
99846         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99847         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99848         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99849
99850 1999-04-18  Jim Meyering  <meyering@ascend.com>
99851
99852         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99853         * m4/jm-macros.m4: Use it.
99854
99855 1999-04-06  Jim Meyering  <meyering@ascend.com>
99856
99857         * m4/strftime.m4: Remove test for %f.
99858
99859 1999-03-29  Jim Meyering  <meyering@ascend.com>
99860
99861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99862         superset of the AC_TYPE_* checks in the textutils, fileutils,
99863         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99864         AC_TYPE_PID_T.
99865
99866 1999-03-28  Jim Meyering  <meyering@ascend.com>
99867
99868         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99869         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99870         replaced e.g., in the *.sh files of the sh-utils.
99871
99872 1999-03-20  Jim Meyering  <meyering@ascend.com>
99873
99874         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99875         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99876         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99877
99878 1999-03-19  Jim Meyering  <meyering@ascend.com>
99879
99880         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99881
99882 1999-03-12  Jim Meyering  <meyering@ascend.com>
99883
99884         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99885
99886 1999-03-07  Jim Meyering  <meyering@ascend.com>
99887
99888         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99889         declared.
99890
99891 1999-02-17  Jim Meyering  <meyering@ascend.com>
99892
99893         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99894         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99895
99896 1999-02-07  Jim Meyering  <meyering@ascend.com>
99897
99898         * m4/group-member.m4: New file -- extracted from sh-utils'
99899         configure.in.
99900
99901         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99902         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99903
99904 1999-02-06  Jim Meyering  <meyering@ascend.com>
99905
99906         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99907         * m4/fnmatch.m4: Likewise.
99908         * m4/getgroups.m4: Likewise.
99909         * m4/lstat.m4: Likewise.
99910         * m4/malloc.m4: Likewise.
99911         * m4/putenv.m4: Likewise.
99912         * m4/realloc.m4: Likewise.
99913         * m4/regex.m4: Likewise.
99914         * m4/stat.m4: Likewise.
99915         * m4/strftime.m4: Likewise.
99916         Suggestion from Alain Magloire.
99917
99918         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99919         * m4/fnmatch.m4: Likewise.
99920         * m4/getgroups.m4: Likewise.
99921         * m4/getline.m4: Likewise.
99922         * m4/lstat.m4: Likewise.
99923         * m4/malloc.m4: Likewise.
99924         * m4/memcmp.m4: Likewise.
99925         * m4/putenv.m4: Likewise.
99926         * m4/realloc.m4: Likewise.
99927         * m4/regex.m4: Likewise.
99928         * m4/stat.m4: Likewise.
99929         * m4/strftime.m4: Likewise.
99930         Suggestion from Alain Magloire.
99931
99932         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99933         an argument.
99934
99935         * m4/regex.m4: Add a run-time Test for proper operation of
99936         re_compile_pattern.
99937
99938 1999-01-31  Jim Meyering  <meyering@ascend.com>
99939
99940         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99941
99942 1999-01-30  Jim Meyering  <meyering@ascend.com>
99943
99944         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99945
99946         * m4/jm-mktime.m4: Make this a wrapper around the official
99947         AM_FUNC_MKTIME rather than my private copy, now that the official one
99948         is up to date.
99949         * m4/mktime.m4: Remove file.
99950
99951         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99952         * m4/uptime.m4: Likewise.
99953         * m4/uintmax_t.m4: Likewise.
99954
99955 1999-01-28  Jim Meyering  <meyering@ascend.com>
99956
99957         * m4/jm-macros.m4: Use jm_AFS.
99958         * m4/afs.m4: New file (from fileutils' configure.in).
99959
99960         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99961         * m4/chown.m4: Likewise.
99962         * m4/d-ino.m4: Likewise.
99963         * m4/d-type.m4: Likewise.
99964         * m4/fnmatch.m4: Likewise.
99965         * m4/getgroups.m4: Likewise.
99966         * m4/gettext.m4: Likewise.
99967         * m4/jm-mktime.m4: Likewise.
99968         * m4/jm-winsz2.m4: Likewise.
99969         * m4/lcmessage.m4: Likewise.
99970         * m4/ls-mntd-fs.m4: Likewise.
99971         * m4/malloc.m4: Likewise.
99972         * m4/memcmp.m4: Likewise.
99973         * m4/putenv.m4: Likewise.
99974         * m4/realloc.m4: Likewise.
99975         * m4/st_mtim.m4: Likewise.
99976         * m4/strftime.m4: Likewise.
99977
99978 1999-01-16  Jim Meyering  <meyering@ascend.com>
99979
99980         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99981         (ARGMATCH_DIE_DECL): Define.
99982
99983 1999-01-12  Jim Meyering  <meyering@ascend.com>
99984
99985         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99986         Reported by Lars Hecking.
99987
99988 1999-01-10  Jim Meyering  <meyering@ascend.com>
99989
99990         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99991         gross kludge.
99992         * m4/inttypes_h.m4: Likewise.
99993         * m4/lstat.m4: Likewise.
99994         * m4/malloc.m4: Likewise.
99995         * m4/readdir.m4: Likewise.
99996         * m4/realloc.m4: Likewise.
99997         * m4/st_dm_mode.m4: Likewise.
99998         * m4/stat.m4: Likewise.
99999         * m4/utimbuf.m4: Likewise.
100000         * m4/utimes.m4: Likewise.
100001
100002         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100003         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100004         comments in config.h.in are meaningful.
100005
100006         * m4/jm-macros.m4: Require autoconf-2.13 here.
100007
100008         * m4/regex.m4: By default, don't use the included regex.c on systems
100009         with glibc 2.  Suggestion from Uli Drepper.
100010
100011 1999-01-02  Jim Meyering  <meyering@ascend.com>
100012
100013         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100014
100015 1998-12-18  Jim Meyering  <meyering@ascend.com>
100016
100017         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100018         Based on a suggestion from Lars Hecking.
100019
100020 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100021
100022         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100023
100024 1998-11-16  Jim Meyering  <meyering@ascend.com>
100025
100026         * m4/lfs.m4: Double-quote the `uname...` expression.
100027
100028 1998-11-14  Jim Meyering  <meyering@ascend.com>
100029
100030         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100031         * m4/stat.m4: Likewise.
100032
100033 1998-11-03  Jim Meyering  <meyering@ascend.com>
100034
100035         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100036         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100037
100038 1998-10-18  Jim Meyering  <meyering@ascend.com>
100039
100040         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100041
100042 1998-10-17  Jim Meyering  <meyering@ascend.com>
100043
100044         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100045         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100046         calls for those previously hard-coded headers.  Instead, take a new
100047         parameter.
100048         (jm_CHECK_DECLARATIONS): Reflect interface change.
100049         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100050         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100051
100052         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100053
100054 1998-10-14  Jim Meyering  <meyering@ascend.com>
100055
100056         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100057         instead of "TZ=America/Vancouver".  From Paul Eggert.
100058
100059 1998-10-11  Jim Meyering  <meyering@ascend.com>
100060
100061         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100062         This adds a test for a recently added compatibility fix for mktime.c.
100063         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100064
100065 1998-09-27  Jim Meyering  <meyering@ascend.com>
100066
100067         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100068
100069         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100070         ../configure.in, including a change from Gordon Matzigkeit to allow
100071         cross-compiling for the Hurd.
100072
100073         * m4/glibc.m4: New file/macro to test for the GNU C Library
100074         versions 1 and 2.  From Gordon Matzigkeit.
100075         Indent.
100076
100077 1998-09-21  Jim Meyering  <meyering@ascend.com>
100078
100079         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100080
100081 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100082
100083         Port nanosecond-resolution times to UnixWare 2.1.2 and
100084         pedantic Solaris 2.6.
100085
100086         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100087         AC_STRUCT_ST_MTIM.
100088         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100089         Generate name of ns member, instead of just 1 or undef.
100090         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100091
100092 1998-08-15  Jim Meyering  <meyering@ascend.com>
100093
100094         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100095         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100096         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100097         instead of jm_TYPE_SSIZE_T.
100098
100099 1998-08-12  Jim Meyering  <meyering@ascend.com>
100100
100101         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100102
100103 1998-08-02  Jim Meyering  <meyering@ascend.com>
100104
100105         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100106         in acconfig.h manually.
100107
100108 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100109
100110         * m4/st_mtim.m4: New file.
100111
100112 1998-07-28  Jim Meyering  <meyering@ascend.com>
100113
100114         * m4/utimes.m4: Undef stat.
100115
100116 1998-07-25  Jim Meyering  <meyering@ascend.com>
100117
100118         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100119         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100120
100121 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100122
100123         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100124         uid and gid actually remain unchanged.
100125
100126 1998-07-07  Jim Meyering  <meyering@ascend.com>
100127
100128         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100129
100130 1998-07-04  Jim Meyering  <meyering@ascend.com>
100131
100132         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100133         to prove that this macro can be used in packages without regex.c.
100134
100135 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100136
100137         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100138         is to be used.
100139
100140 1998-07-03  Jim Meyering  <meyering@ascend.com>
100141
100142         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100143
100144         * m4/gettext.m4: New file -- from gettext-0.10.35.
100145         * m4/lcmessage.m4: Likewise.
100146         * m4/progtest.m4: Likewise.
100147
100148         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100149         * m4/jm-macros.m4: Require the new macro.
100150
100151 1998-06-29  Jim Meyering  <meyering@ascend.com>
100152
100153         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100154         for the definition of NGROUPS (used in a system header included
100155         by sys/mount.h).
100156
100157 1998-06-28  Jim Meyering  <meyering@ascend.com>
100158
100159         * m4/ls-mntd-fs.m4: New file.
100160         * m4/fstypename.m4: New file.
100161
100162         * m4/jm-macros.m4: Require the new macro.
100163         * m4/jm-glibc-io.m4: New file.
100164
100165 1998-05-19  Jim Meyering  <meyering@ascend.com>
100166
100167         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100168         * m4/lchown.m4: New file.
100169
100170         * m4/Makefile.am.in: New file.
100171         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100172
100173 1998-05-14  Jim Meyering  <meyering@ascend.com>
100174
100175         * m4/Makefile.am (EXTRA_DIST): Add them.
100176         * m4/jm-macros.m4: New file.
100177         * m4/utimbuf.m4: New file.
100178
100179 1998-05-12  Jim Meyering  <meyering@ascend.com>
100180
100181         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100182
100183 1998-05-11  Jim Meyering  <meyering@ascend.com>
100184
100185         * m4/isc-posix.m4: New file.
100186
100187 1998-05-10  Jim Meyering  <meyering@ascend.com>
100188
100189         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100190
100191 1998-05-09  Jim Meyering  <meyering@ascend.com>
100192
100193         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100194         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100195         with automake.
100196
100197         * m4/ssize_t.m4: New file.
100198         * m4/mktime.m4: Remove file -- the new automake has this now.
100199
100200 1998-04-26  Jim Meyering  <meyering@ascend.com>
100201
100202         * m4/assert.m4: New file.
100203         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100204
100205 1998-04-05  Jim Meyering  <meyering@ascend.com>
100206
100207         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100208         (jm_PREREQ): Use it here.
100209
100210 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100211
100212         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100213         in acconfig.h.
100214
100215 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100216
100217         * m4/prereq.m4: New file.
100218         * m4/error.m4: New file.
100219         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100220
100221 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100222
100223         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100224         cache-check for the same variable -- that defeated the purpose of
100225         the test; the test program was never run.  This was a problem only
100226         on systems with losing getline functions -- HP-UX 10.20 is one.
100227         Reported by Bjorn Helgaas.
100228
100229 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100230
100231         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100232
100233 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100234
100235         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100236
100237         * m4/const.m4: New file.  Use an initializer in this declaration
100238         typedef int charset[2]; const charset x;
100239         Reported by Bob Glickstein.
100240
100241 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100242
100243         * m4/chown.m4: Fix reversed types on -1 args to chown.
100244         From Kaveh Ghazi.
100245
100246 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100247
100248         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100249         Add lseek and memchr.
100250
100251         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100252         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100253         have a 20-character limit on names.
100254
100255 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100256
100257         * m4/inttypes_h.m4: New file.
100258         * m4/uintmax_t.m4: New file.
100259         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100260
100261
100262         -----
100263
100264         Local Variables:
100265         coding: utf-8
100266         End:
100267
100268         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100269
100270         Copying and distribution of this file, with or without
100271         modification, are permitted provided the copyright notice
100272         and this notice are preserved.