fpending: port to recent Cygwin change to stdio_ext.h
[gnulib.git] / ChangeLog
1 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fpending: port to recent Cygwin change to stdio_ext.h
4         Reported by LRN in
5         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
6         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
7         just declare __fpending unless it's a macro.
8         A duplicate decl shouldn't hurt.
9         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
10         call compiles and links, instead of separately checking for
11         decl and lib function.
12         * modules/fpending (configure-ac):
13         Adjust to fpending.m4's renaming of shell variable.
14
15 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16
17         sys_time: port to OpenBSD
18         * lib/sys_time.in.h: Simply delegate to the system's header
19         in the BSDish cases as well.  Problem reported by Mike Miller in
20         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
21         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
22         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
23         wider than time_t.
24
25 2013-08-09  Pádraig Brady <P@draigBrady.com>
26
27         bootstrap: support checksum utils having -c but not --status
28         * build-aux/bootstrap: Only look for sha1sum if updating po files.
29         Add sha1 to the list of supported checksum utils since it's now
30         supported through adjustments below.
31         (update_po_files): Remove the use of --status
32         in a way that will suppress all error messages, but since this is
33         only used to minimize updates, it shouldn't cause an issue.
34         Exit early if there is a problem updating the po file checksums.
35         (find_tool): Remove the check for --version support as this
36         is optional as per commit 86186b17.  Don't even check for the
37         presence of the command as if that is needed, it's supported
38         through configuring prerequisites in bootstrap.conf.
39         Prompt that when a tool isn't found, one can define an environment
40         variable to add to the hardcoded search list.
41
42 2013-08-05  Jim Meyering  <meyering@fb.com>
43
44         regex: port to non-glibc/lock-using systems
45         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
46         system with GNULIB_LOCK would fail due to absence of the
47         included "glthread/lock.h".  This would affect any package
48         for which the "lock" module is used only by the regex module,
49         and not explicitly used.
50         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
51         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
52         Add a dependency on the "lock" module.
53
54 2013-07-20  Daiki Ueno  <ueno@gnu.org>
55
56         localecharset: make locale_charset thread-safe on Mac OS X
57         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
58         instead of MB_CUR_MAX.
59
60 2013-07-20  Daiki Ueno  <ueno@gnu.org>
61
62         gettext: update to version 0.18.3
63         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
64         require AC_PROG_SED to allow user to specify custom sed command when
65         generating en@quot PO file.
66
67 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
68
69         bootstrap: use correct source when copying build-aux files
70         * build-aux/bootstrap (gnulib_extra_files): This variable is
71         relative to upstream gnulib layout, not downstream.
72
73 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
74
75         tmpdir: fix bug in VMS port
76         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
77         See Steven M. Schweda in
78         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
79
80 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81
82         tmpdir: port to VMS, to // != /, and to long dirs
83         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
84         __secure_getenv, so that we're more like the glibc version.
85         All uses changed.
86         (path_search): Don't put slash after directory if __VMS.
87         Problem reported by Steven M. Schweda in
88         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
89         Simplify code to add slash; no need for a loop.
90         Do not remove trailing slash from "//".
91         Do not assume dlen <= INT_MAX.
92
93 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
94
95         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
96         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
97         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
98         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
99
100         accept4, dup3, pipe2: port to Cygwin
101         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
102         * lib/accept4.c (accept4) [O_BINARY]:
103         * lib/dup3.c (dup3) [O_BINARY]:
104         * lib/pipe2.c (pipe2) [O_BINARY]:
105         Use set_binary_mode, not setmode.
106         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
107         * modules/binary-io (Depends-on): Remove module indicator.
108         These last two bits undo the previous change to pipe2 and binary-io.
109
110 2013-07-09  Pádraig Brady  <P@draigBrady.com>
111
112         mountlist: add support for deallocating returned list entries
113         * lib/mountlist.c (free_mount_entry): A new exported function
114         to deallocate a mount list entry.
115         (read_file_system_list): Refactor to use the new deallocation function.
116         Suggested by Anton Ovchinnikov.
117
118 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
119
120         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
121         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
122         * lib/stdalign.in.h (_Alignas, _Alignof):
123         Port to FreeBSD 9.1, and to C11 and C++11.
124         (_Alignas): Also support ICC.
125         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
126         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
127
128 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
129
130         fnmatch: don't goto over declaration
131         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
132         undefined behavior for goto over a declaration.
133         Problem reported by Charlie Brown in
134         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
135
136         pipe2: decouple from binary-io a bit
137         This is for Emacs, which needs pipe2 but not binary-io.
138         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
139         * modules/binary-io (Depends-on): Add module indicator.
140
141 2013-07-03  Eric Blake  <eblake@redhat.com>
142
143         mgetgroups: relax license to LGPLv2+
144         * modules/getugroups (License): Change from GPLv3+.
145         * modules/mgetgroups (License): Likewise.
146         * modules/getgroups (License): Change from LGPLv3+.
147
148         xalloc-oversized: relax license to LGPLv2+
149         * modules/xalloc-oversized (License): Change from GPLv3+.
150
151         nproc: relax license to LGPLv2+
152         * modules/nproc (License): Change from LGPLv3+.
153
154         bootstrap: honor --no-git
155         * build-aux/bootstrap: Don't even try to use git when user is
156         pointing to a static checkout.
157
158 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
159
160         ignore-value: port to gcc -pedantic
161         * lib/ignore-value.h (ignore_value):
162         Port to gcc -pedantic, by using __extension__.
163         Reindent as per usual gnulib style nowadays.
164         Simplify GCC version check.
165
166 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
167
168         extern-inline: port to gcc -std=c89
169         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
170         Do not use __gnu_inline__ if pedantic and pre-C99.
171
172 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
173
174         doc: document extern-inline
175         * doc/extern-inline.texi: New file.
176         * doc/gnulib.texi (alloca-opt): Include it.
177         * m4/extern-inline.m4: Move some comments to documentation,
178         and others closer to what they describe.
179
180         doc: chatter less
181         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
182         (updated-stamp): Use it.  This causes 'make' to output just
183         one file name rather than zillions.
184
185         fflush, fseeko: port to musl cross-compiles
186         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
187         on some implementation that (1) is not known to be buggy,
188         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
189         cross-compiled to so we can't easily check for lack of
190         conformance.  This is for cross-compiling to musl.
191         Reported by Rich Felker in
192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
193         * m4/fclose.m4 (gl_FUNC_FCLOSE):
194         * m4/fflush.m4 (gl_FUNC_FFLUSH):
195         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
196         Adjust to above change.
197         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
198         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
199         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
200         known not to work, or unknown.
201
202 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
203
204         msvc-inval: port to mingw-w64
205         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
206         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
207         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
208
209 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
210
211         getcwd-lgpl: port to Tru64
212         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
213         Problem reported by Steven M. Schweda in
214         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
215
216         tests: port large-fd POSIX spawn tests to OS X
217         Problem reported by Daiki Ueno in
218         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
219         * tests/test-posix_spawn_file_actions_addclose.c:
220         * tests/test-posix_spawn_file_actions_adddup2.c:
221         * tests/test-posix_spawn_file_actions_addopen.c:
222         Include <limits.h>, for OPEN_MAX, if available.
223         (big_fd): New static function.
224         (main): Use it.
225
226 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
227
228         tests/nap.h: use an adaptive delay to avoid ctime update issues
229         The recent change in nap.h (5191133e) decreased the probability of lost
230         races to about a third, however such problems could still be observed
231         in virtual machines and openSUSE's OBS.
232         Before, nap() detected the needed time once empirically and then used
233         that delay (together with a small correction multiplier) in further
234         calls.  This problem has been reported and discussed several times,
235         including guesses about possible kernel issues:
236         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
237         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
238         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
239         http://bugs.gnu.org/12820
240         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
241         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
242         Now, nap() avoids the race alltogether by verifying on a reference
243         file whether a timestamp difference has happened.
244         * tests/nap.h (nap_fd): Define file descriptor variable for the
245         witness file.
246         (nap_works): Change return value to bool.  Change passing
247         the old file's status by value instead of by reference as this function
248         does no longer update that timestamp; rename the function argument from
249         st to old_st.  Remove the local variables cdiff and mdiff because that
250         function now returns true/false instead of the precise delay.
251         (guess_delay): Remove function.
252         (clear_tmp_file): Add new function to close and unlink the witness file.
253         (nap): Instead of re-using the delay which has been calculated during
254         the first call, avoid the race by actually verifying that a timestamp
255         difference can be observed on the current file system.  Use an adaptive
256         approach for the delay to minimize execution time.  Assert that the
257         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
258         = 2^31 - 1 = 2.1s.
259         Use atexit to call clear_tmp_file when the process terminates.
260
261 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
262
263         sig2str: port to C++
264         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
265         Reported by Daniel J Sebald in
266         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
267
268 2013-05-30  Eric Blake  <eblake@redhat.com>
269
270         docs: mention cygwin shortcoming in <sys/un.h>
271         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
272
273         vasnprintf: silence mingw compiler warning
274         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
275
276 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
277
278         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
279         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
280         This fixes a porting bug I recently reintroduced in regex, and
281         some other instances that I discovered while testing the fix.
282         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
283         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
284         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
285         with an empty argument if this is a pedantic pre-C99 GCC.
286         * lib/verify.h: Do not use _Static_assert if this is a pedantic
287         pre-C11 GCC.
288
289         regex: adapt to locking regime instead of depending on pthread
290         Instead of depending on pthread, adapt to whatever thread
291         modules are in use.  Problem reported by Ludovic Courtès in
292         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
293         and by Mats Erik Andersson in
294         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
295         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
296         Support either the 'lock' module, or the 'pthread' module, or
297         no module.
298         (lock_lock, lock_unlock): New macros.
299         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
300         * modules/lock, modules/pthread (configure.ac): Add module indicator.
301         * modules/regex (Depends-on): Remove pthread.
302
303 2013-05-22  Eric Blake  <eblake@redhat.com>
304
305         getgroups: document portability issues
306         * doc/glibc-functions/initgroups.texi (initgroups): Mention
307         multithread safety.
308         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
309         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
310         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
311         getugroups.
312         * doc/posix-functions/getgroups.texi (getgroups): Mention
313         multithread safety and mgetgroups.
314
315 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
316
317         test-lchown, test-chown: also skip test if chown fails with EPERM
318         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
319         skip this test, to handle FAT file systems.
320         * tests/test-chown.h (test_chown): Likewise.
321
322 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
323
324         regex: fix dfa race in multithreaded uses
325         Problem reported by Ludovic Courtès in
326         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
327         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
328         New macros.  All uses of __libc_lock_define, __libc_lock_init
329         changed to use the first two of these.
330         (__libc_lock_lock, __libc_lock_unlock): New macros, for
331         non-glibc platforms.
332         (struct re_dfa_t): Define the lock unconditionally.
333         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
334         '#ifdef _LIBC"s.
335         * modules/regex (Depends-on): Add pthread, if we use the
336         included regex.
337
338         * lib/regcomp.c: Do actions that are not needed for glibc,
339         but may be needed elsewhere.
340         (regfree, re_compile_internal): Destroy the lock.
341         (re_compile_internal): Check for lock-initialization failure.
342
343         malloca: port to compilers that reject size-zero arrays
344         This fixes a bug introduced in my previous patch.
345         * lib/malloca.c (struct preliminary_header): Use an int
346         rather than a character array of size int; that's simpler.
347         (struct header): Remove, replacing with ...
348         (union header): New type.  This avoids the need for declaring a
349         character array of size zero, which is not allowed on some platforms.
350         All uses changed.
351
352 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
353
354         parse-datetime, tests: don't use "string" + int
355         Recent versions of 'clang' complain about C source code that
356         uses expressions of the form '"string literal" + integer',
357         I guess on the theory that it's confusing for readers who are
358         used to C++.  On those grounds I suppose it's OK to make this
359         minor style change.
360         * lib/parse-datetime.y (parse_datetime):
361         * tests/test-fchdir.c (main):
362         * tests/test-snprintf-posix.h (test_function):
363         * tests/test-snprintf.c (main):
364         * tests/test-vasnprintf-posix.c (test_function):
365         * tests/test-vasnprintf.c (test_function):
366         * tests/test-vsnprintf.c (main):
367         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
368         Rewrite '"str" + E' to '&"str"[E]'.
369
370 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
371
372         argmatch: port to C++
373         * lib/argmatch.h [__cplusplus]: Add extern "C".
374
375         argp: typo fix
376         * lib/argp-help.c: Typo in comment.
377
378 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
379
380         manywarnings: update for GCC 4.8.0
381         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
382         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
383         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
384         -Wmissing-noreturn, as they are duplicates of other warnings.
385         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
386         was documented to be flaky in earlier versions of GCC.
387
388         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
389         * tests/test-spawn.c (main):
390         * tests/test-sys_socket.c (main):
391         * tests/test-sys_wait.c (main):
392         Don't have a switch value that isn't covered by a case.
393
394         getaddrinfo-tests: port --enable-gcc-warnings to clang
395         * tests/test-getaddrinfo.c (simple):
396         Avoid casts from looser to stricter-aligned pointers.
397
398         thread: port --enable-gcc-warnings to clang
399         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
400         Include <signal.h>, to pacify a warning about pthread_sigmask.
401
402         stdio: use __REDIRECT for fwrite, fwrite_unlocked
403         * lib/stdio.in.h (fwrite):
404         When working around bug 11959, use __REDIRECT rather than '#define
405         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
406         fix the -Wunused-value issue with clang, and it works with GCC too.
407         Problem with targeting reported by Eric Blake in
408         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
409         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
410         debugging the fwrite issue.
411
412         stdio: port --enable-gcc-warnings to clang
413         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
414         since the GCC workaround for fwrite does not pacify clang.
415
416         sig2str: port --enable-gcc-warnings to clang
417         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
418
419         obstack: port --enable-gcc-warnings to clang
420         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
421         Avoid casts from looser to stricter-aligned pointers.
422
423         memchr2: port --enable-gcc-warnings to clang
424         * lib/memchr2.c (memchr2):
425         Avoid casts from looser to stricter-aligned pointers.
426
427         mbsstr: port --enable-gcc-warnings to clang
428         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
429         Avoid casts from looser to stricter-aligned pointers.
430
431         malloca: port --enable-gcc-warnings to clang
432         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
433         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
434
435         inttostr: port --enable-gcc-warnings to clang
436         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
437
438         warnings: port to clang
439         Problem reported by Daniel P. Berrange via Eric Blake in
440         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
441         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
442         (gl_WARN_ADD): Use it.
443
444 2013-05-11  Jim Meyering  <meyering@fb.com>
445
446         quotearg: do not read beyond end of buffer
447         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
448         end of an ARG for which no length was specified.  With an N-byte
449         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
450         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
451         via coreutils' misc/sort-debug-keys.sh test and detected by running
452         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
453         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
454         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
455         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
456         characters correctly."
457
458 2013-05-11  Daiki Ueno  <ueno@gnu.org>
459
460         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
461         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
462         compilation target is Mac OS X 10.6.
463         Problem reported by parafin and Andoni Morales in
464         <http://savannah.gnu.org/bugs/?37844> and
465         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
466
467 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
468
469         mkdir-p: remove assumptions about umask and mode
470         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
471         umask is 0, or that MODE is a subset of MODE_BITS.
472
473 2013-05-10  Eric Blake  <eblake@redhat.com>
474
475         maint.mk: catch more abuse of HAVE_DECL in syntax-check
476         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
477
478 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
479
480         deps: require Automake >= 1.9.6 in generated Makefile fragments
481
482         That is the same minimal version required in the DEPENDENCIES file.
483         Moreover, the old code generated a requirement of Automake >= 1.5,
484         and that is an insanely outdated version.
485
486         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
487         * tests/havelib/rpathlx/Makefile.am: Likewise.
488         * tests/havelib/rpathly/Makefile.am: Likewise.
489         * tests/havelib/rpathlyx/Makefile.am: Likewise.
490         * tests/havelib/rpathlz/Makefile.am: Likewise.
491         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
492         * tests/havelib/rpathx/Makefile.am: Likewise.
493         * tests/havelib/rpathy/Makefile.am: Likewise.
494         * tests/havelib/rpathz/Makefile.am: Likewise.
495
496 2013-05-08  Eric Blake  <eblake@redhat.com>
497
498         bootstrap: AC_INIT may have more than four parameters
499         * build-aux/bootstrap (extract_package_name): Correctly extract
500         non-empty tarname field.  Avoid range in regex.
501         Based on a report by Sami Kerola <kerolasa@iki.fi>.
502
503 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
504
505         qacl: port to MS-Windows port of GNU Emacs
506         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
507         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
508         port of GNU Emacs.  Problem reported by Eli Zaretskii in
509         <http://bugs.gnu.org/14295#14>.
510
511 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
512
513         acl: include quote.h
514         * lib/copy-acl.c: Include quote.h.
515         * lib/set-acl.c: Likewise.
516
517 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
518
519         fchownat, renameat, unlinkat: update statat dependencies
520         These modules use statat and lstatat, not fstatat; so depend on
521         the statat module, which was split out recently from fstatat.
522         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
523         * modules/renameat: Likewise.  Also delete fstat.
524         URL: http://bugs.gentoo.org/468790
525
526 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
527
528         Assume gnulib is checked out from Git, not CVS
529
530         In fact, access to the gnulib repository through CVS has been
531         disabled, or more precisely, got broken and was never restored; see:
532         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
533
534         Note that support for CVS is not removed completely and unthinkingly
535         by this change: only support for CVS checkouts of gnulib itself is
536         removed.  For example, the 'bootstrap' script still cater to .cvsingore
537         files and CVS directories, for the benefit of those poor gnulib clients
538         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
539
540         * gnulib-tool: Simplify accordingly.
541         * posix-modules: Likewise.
542         * MODULES.html.sh: Likewise.
543         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
544         repository.
545         * doc/gnulib-intro.texi: Likewise.
546         * doc/gnulib-readme.texi: Likewise.
547         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
548         sample '.gitignore' file rather than a sample '.cvsignore'.
549         * NEWS: Update.
550         * m4/extensions.m4: While at it, remove a comment mistakenly referring
551         to "CVS Autoconf" rather than "git Autoconf".
552
553 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
554
555         utimensat-tests, etc.: try to fix some races
556         Problem reported by Bernhard Voelker in
557         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
558         I don't know whether this patch fixes that race condition, but it
559         fixes *some* race conditions, so it should be a win.
560         * modules/chown-tests (Depends-on):
561         * modules/fchownat-tests (Depends-on):
562         * modules/fdutimensat-tests (Depends-on):
563         * modules/futimens-tests (Depends-on):
564         * modules/lchown-tests (Depends-on):
565         * modules/stat-time-tests (Depends-on):
566         * modules/utimens-tests (Depends-on):
567         * modules/utimensat-tests (Depends-on):
568         Depend on nanosleep, not usleep.
569         * modules/chown-tests (test_chown_LDADD):
570         * modules/lchown-tests (test_lchown_LDADD):
571         * modules/stat-time-tests (test_stat_time_LDADD):
572         New macro.
573         * modules/fchownat-tests (test_fchownat_LDADD):
574         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
575         * modules/futimens-tests (test_futimens_LDADD):
576         * modules/utimens-tests (test_utimens_LDADD):
577         * modules/utimensat-tests (test_utimensat_LDADD):
578         Add $(LIB_NANOSLEEP).
579         * modules/stat-time-tests (Files): Add tests/nap.h.
580         * tests/nap.h: Include <limits.h>, for INT_MAX.
581         (lt_mtime): Remove.
582         (diff_timespec): New function.
583         (get_stat): Rename from get_mtime.  All callers changed.
584         (nap_works): Determine the needed delay by inspecting the
585         file system's timestamp jumps; this should be more reliable.
586         Look at both mtime and ctime, and take the maximum of the two jumps.
587         (nap_works, guess_delay):
588         Return a nanosecond cound, not a microsecond count.
589         All callers changed.
590         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
591         failure.
592         (nap): Multiply the guess by 1.125, to accommodate the case where
593         the file system's clock is a bit slower than nanosleep's clock.
594         * tests/test-stat-time.c (BASE): New macro.
595         Include nap.h.
596         (nap): Remove; nap.h now defines this.  This removes a duplicate
597         implementation of 'nap'.
598
599         utimens, utimensat: work around Solaris UTIME_OMIT bug
600         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
601         Linux kernel 2.6.32 does.  Work around it in the same way.
602         * doc/posix-functions/futimens.texi (futimens):
603         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
604         * lib/utimens.c (fdutimens, lutimens):
605         * lib/utimensat.c (rpl_utimensat): Work around the bug.
606
607         gettext: now it's your responsibility to add -I$(top_builddir)/intl
608         Formerly, it was your responsibility to do this for all Makefile.ams
609         other than Gnulib's.  Now it's your responsibility to do it for
610         Gnulib's Makefile.am, too.
611         * NEWS: Document this.
612         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
613
614         acl: include errno.h to get errno
615         Reported by Daiki Ueno in
616         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
617         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
618
619 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
620
621         tests: don't assume getdtablesize () <= 10000000
622         * modules/cloexec-tests:
623         * modules/dup2-tests:
624         * modules/dup3-tests:
625         * modules/nonblocking-tests:
626         * modules/posix_spawn_file_actions_addclose-tests:
627         * modules/posix_spawn_file_actions_adddup2-tests:
628         * modules/posix_spawn_file_actions_addopen-tests:
629         * modules/unistd-safer-tests:
630         Depend on the getdtablesize module.
631         * tests/test-cloexec.c:
632         * tests/test-dup-safer.c:
633         * tests/test-dup2.c:
634         * tests/test-dup3.c:
635         * tests/test-fcntl.c:
636         * tests/test-nonblocking.c:
637         * tests/test-posix_spawn_file_actions_addclose.c:
638         * tests/test-posix_spawn_file_actions_adddup2.c:
639         * tests/test-posix_spawn_file_actions_addopen.c:
640         Don't assume getdtablesize () <= 10000000.
641
642 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
643
644         extern-inline: work around bug in Sun c99
645         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
646         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
647
648 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
649
650         qacl: new module, broken out from the acl module
651         This is for GNU Emacs, which wants the acl functions but does
652         not want 'error' invoked when they fail.
653         * lib/acl-internal.h: Do not include error.h, quote.h.
654         (ENOSYS, ENOTSUP): Remove; no longer needed.
655         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
656         * lib/acl.h: Include <stdbool.h>.
657         (acl_errno_valid): New function.
658         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
659         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
660         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
661         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
662         (ACL_INTERNAL_INLINE): Remove; no longer needed.
663         * lib/file-has-acl.c (file_has_acl):
664         * lib/qcopy-acl.c (qcopy_acl):
665         * lib/qset-acl.c (qset_acl):
666         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
667         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
668         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
669         lib/file-has-acl.c, m4/acl.m4 to qacl module.
670         Add lib/set-acl.c.
671         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
672         Add qacl.
673         (configure.ac): Move gl_FUNC_ACL to qacl module.
674         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
675         Rename set-mode-acl.c to set-acl.c.
676         * lib/acl-errno-valid.c: New file.
677         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
678         copy_acl function remains in copy-acl.c.
679         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
680         (_): Remove; not needed.
681         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
682         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
683         * modules/qacl: New file, moved from the old modules/acl.
684         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
685         Remove set-mode-acl.c, copy-acl.c.
686         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
687
688         alignof, intprops, malloca: port better to IBM's C compiler
689         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
690         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
691         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
692
693 2013-04-25  Daiki Ueno  <ueno@gnu.org>
694
695         wctype-h: fix gettext link error on mingw
696         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
697         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
698         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
699         rpl_towupper and rpl_towupper.
700
701 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
702
703         regex-tests, regex: allow glibc re_search behavior
704         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
705         re_search input data to make the multi-character collating element
706         in it clearly visible, and treat re_search return code 0 as valid.
707         * m4/regex.m4 (gl_REGEX): Likewise.
708
709 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
710
711         stdalign: doc fix
712         * doc/posix-headers/stdalign.texi (stdalign.h):
713         Gnulib doesn't support '_Alignof expr'.
714
715 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
716
717         stdalign: port to stricter ISO C11
718         ISO C11 says that _Alignof's operand must be a parenthesized type.
719         Problem reported by Eli Zaretskii in
720         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
721         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
722         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
723
724 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
725
726         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
727         Problem reported by Marco Atzeri in
728         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
729         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
730         Simply delegate to the system <sys/select.h> in this case too.
731         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
732         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
733         be needed on Solaris either.
734         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
735         Simply delegate to the system <sys/time.h> in this case.
736
737 2013-03-19  Karl Berry  <karl@gnu.org>
738
739         * build-aux/gnupload: check for erroneous (with gnupload) use of
740         ftp-upload.gnu.org, tweak help.
741
742 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
743
744         copy-file, rpmatch: fix problems found by cppcheck
745         Reported by Arno Onken in
746         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
747         * lib/rpmatch.c (try): Fix memory leak.
748         * lib/copy-file.c: Include "ignore-value.h".
749         (qcopy_file_preserving): Ignore chown value.
750         * modules/copy-file (Depends-on): Add ignore-value.
751
752 2013-01-27  Jim Meyering  <jim@meyering.net>
753
754         prefix-gnulib-mk: give better diagnostics
755         * build-aux/prefix-gnulib-mk: Don't just "die".
756         Give better diagnostics upon failure.
757
758 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
759
760         putenv: port to Solaris 10
761         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
762         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
763         is not what is wanted here.
764         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
765         declaration, not for its existence.
766
767 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
768
769         mktime: fix configure typo
770         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
771
772 2013-03-12  Eric Blake  <eblake@redhat.com>
773
774         regex-tests: skip UTF-8 test on mingw
775         * modules/regex-tests (Depends-on): Add localcharset.
776         * tests/test-regex.c (main): Use it to skip test on mingw.
777
778 2013-03-11  Eric Blake  <eblake@redhat.com>
779
780         tests: make it easier to bypass alarm time in debugger
781         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
782         * tests/test-memmem.c (main): Likewise.
783         * tests/test-passfd.c (main): Likewise.
784         * tests/test-ptsname.c (main): Likewise.
785         * tests/test-ptsname_r.c (main): Likewise.
786         * tests/test-strcasestr.c (main): Likewise.
787         * tests/test-strstr.c (main): Likewise.
788
789         regex: port to mingw's recent addition of undeclared alarm
790         * doc/posix-functions/alarm.texi (alarm): Document that alarm
791         exists but still doesn't work in newer mingw.
792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
793         not existence.  Ensure SIGALRM is not trapped.
794         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
795         * m4/regex.m4 (gl_REGEX): Likewise.
796         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
797         * tests/test-regex.c (main): Use correct probe for alarm.
798
799         putenv: avoid compilation warning on mingw
800         * lib/putenv.c (_unsetenv): Protect variable declaration.
801         (putenv): Fix indentation.
802
803 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
804
805         unistd: don't prevent Tru64 Unix from using gnulib strtod.
806         * lib/unistd.in.h: be careful not to include un-needed system
807         stdlib.h from here, because that prevents gnulib stdlib.h from
808         defining rpl_strtod correctly.
809
810 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
811
812         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
813         changesets, but for the 'precision 0' test.
814         * tests/test-vasprintf-posix.c (test_function): Don't insist on
815         round-to-even, since POSIX says rounding is implementation-defined
816         and OS X 10.8.2 rounds 1.51 to 1 here.
817
818         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
819         changeset.
820         * tests/test-vasprintf-posix.c (test_function): Don't insist on
821         round-to-even, since POSIX says rounding is implementation-defined
822         and OS X 10.8.2 rounds 1.5 to 1 here.
823
824 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
825
826         vasnprintf-posix-tests: allow rounding 1.5 to 1
827         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
828         round-to-even, since POSIX says rounding is implementation-defined
829         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
830         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
831
832         bootstrap: port to FreeBSD
833         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
834         that treat '--' differently.  Reported by Mats Erik Andersson in
835         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
836
837 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
838
839         regex: rename remaining __attribute calls to __attribute__.
840         2012-02-25 changed definition of __attribute, but left some uses
841         unchanged, preventing compilation of regex module on most non-gcc
842         environments.
843         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
844         (lookup_collation_sequence_value, build_range_exp)
845         (build_collating_symbol): Set attributes with newly renamed
846         __attribute__ decorator.
847         * lib/regex_internal.c (re_string_peek_byte_case)
848         (re_node_set_compare, re_node_set_contains): Likewise.
849         * lib/regexec.c (acquire_init_state_context): Likewise.
850
851 2013-03-06  Bruno Haible  <bruno@clisp.org>
852
853         execute: Revert last change, but use a different condition.
854         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
855         on Windows.
856
857 2013-03-05  Eric Blake  <eblake@redhat.com>
858
859         execute: drop dead code
860         * lib/execute.c (nonintr_close, nonintr_open): Delete.
861
862 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
863
864         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
865         * m4/non-recursive-gnulib-prefix-hack.m4
866         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
867         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
868         <http://bugs.gnu.org/10305#237>.
869
870 2013-03-04  Eric Blake  <eblake@redhat.com>
871
872         test-getsockopt: avoid compiler warning
873         * tests/test-getsockopt.c (includes): Ensure close is declared.
874
875 2013-03-02  Bruno Haible  <bruno@clisp.org>
876
877         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
878         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
879
880 2013-03-02  Bruno Haible  <bruno@clisp.org>
881
882         gettext: Update to version 0.18.2.
883         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
884         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
885                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
886
887 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
888
889         regex: merge patches from libc
890
891         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
892         * lib/regex_internal.h (__attribute__): Rename from __attribute.
893         All uses changed.
894         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
895         (re_string_wchar_at, re_string_elem_size_at):
896         Mark function as possibly unused.
897
898         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
899         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
900         elements compare against the byte sequence of it, not its name.
901
902 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
903
904         putenv: port better to native Windows
905         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
906         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
907         (_unsetenv): Use _putenv if available.
908         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
909         a bit less likely to cause damage.
910         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
911         Fix the wrong value with SetEnvironmentVariable.
912         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
913         code better.
914
915 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
916
917         regex: ignore old-style-definition warnings
918         * lib/regex.c: Add pragma to ignore these warnings.
919         Problem reported for GNU tar by Pavel Raiskup.
920
921 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
922
923         getcwd: support coreutils better
924         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
925         but this might not be correct in coreutils, which disables
926         the raw decl checks.  Problem reported by Nagendra in
927         <http://bugs.gnu.org/10305#192>.
928         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
929         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
930         Test the getcwd function, not any macro, since getcwd.c wants the
931         function.
932         * m4/getcwd.m4 (gl_FUNC_GETCWD):
933         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
934         compile, as might happen if there's a macro but no function.
935
936         strtod: support coreutils better
937         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
938         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
939         disables the raw decl checks.  This assumes there is an underlying
940         strtod, but that's a safe assumption these days.
941         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
942
943         mountlist: port to HP NonStop
944         Reported by Joachim Schmitz in
945         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
946         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
947         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
948
949 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
950
951         extern-inline: avoid compilation error with HP-UX cc
952         Reported by Richard Lloyd in
953         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
954         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
955         Suppress extern inline with HP-UX cc.  This should be safe,
956         though it may hurt performance.  Perhaps someone with some HP-UX
957         experience can come up with a higher-performance fix.
958
959 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
960
961         putenv: fix heap corruption with mixed putenv/_putenv
962         Problem reported by Michael Goffioul in
963         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
964         * lib/putenv.c (putenv) [HAVE__PUTENV]:
965         Rely on _putenv to allocate the new environment.
966         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
967         * modules/putenv (configure.ac): Use it.
968
969 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
970
971         unsetenv etc.: port to Solaris 11 + GNU Emacs
972         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
973         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
974         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
975         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
976         idea but is too painful to fix right now), and without this gnulib
977         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
978         compiling unsetenv.c on Solaris 11.  Fix the problem for
979         unsetenv.c, and fix other similar occurrences.
980
981 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
982
983         secure_getenv: fix C++ declaration typo
984         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
985         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
986         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
987
988 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
989
990         careadlinkat: stop exporting careadlinkatcwd
991         Only Emacs used it directly, and Emacs no longer needs it.
992         * NEWS: Document this simplification.
993         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
994         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
995         for readlink.
996         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
997         Don't include stdlib.h; no longer needed.
998         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
999         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1000         * modules/areadlink (Depends-on): Add readlink.
1001         (Maintainer): Add self.
1002         * modules/careadlinkat (Depends-on): Remove readlink.
1003
1004         extensions: port better to HP-UX
1005         This is merged from git Autoconf.
1006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1007         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1008         so that it's compatible with the value used when compiling.
1009
1010         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1011         Problem reported by Mats Erik Andersson in
1012         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1013         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1014         openpty function exists, not merely when we intend to replace it.
1015         This corrects the 2013-01-31 patch, which mistakenly defined
1016         HAVE_OPENPTY even on hosts that lacked it.
1017
1018 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1019
1020         secure_getenv: fix include typo
1021         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1022
1023         secure_getenv: port better to FreeBSD and Solaris
1024         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1025         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1026         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1027         This works better on BSDish platforms.
1028         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1029         Test for issetugid if __secure_getenv is missing.
1030
1031 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1032
1033         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1034         Some of these changes are merged in from git Autoconf.
1035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1036         When deciding whether to define _XOPEN_SOURCE, inspect the
1037         preprocessor macro __hpux instead of the more-heavyweight
1038         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1039         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1040         as the key for __EXTENSIONS__.
1041
1042         unistd: avoid namespace pollution on non-glibc systems
1043         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1044         This avoids namespace pollution on non-glibc systems, by causing
1045         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1046         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1047         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1048
1049 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         tmpdir: use secure_getenv
1052         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1053         Define to secure_getenv, not getenv.
1054         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1055         as that's now secure_getenv's job.
1056         * modules/tmpdir (Depends-on): Add secure_getenv.
1057
1058         tempname: use secure_getenv
1059         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1060         Define to secure_getenv, not getenv.
1061         * modules/tempname (Depends-on):
1062         Add secure_getenv.
1063
1064         secure_getenv: new module
1065         * MODULES.html.sh (Extra functions based on ANSI C 89):
1066         Add secure_getenv.
1067         * doc/glibc-functions/secure_getenv.texi: New file.
1068         * doc/gnulib.texi: Include it.
1069         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1070         New files.
1071         * lib/stdlib.in.h (secure_getenv): New decl.
1072         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1073         * modules/stdlib (stdlib.h):
1074         Add secure_getenv checks.
1075
1076 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1079         Reported for OS X 10.8.2 by Assaf Gordon in
1080         <http://bugs.gnu.org/13516>.
1081         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1082         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1083         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1084         so that they can be kept in sync more easily.  Avoid PATH_MAX
1085         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1086         mkdir or chdir failure.
1087         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1088         lib/getcwd.c.
1089         (test_abort_bug): Do not test for the deep directory bug unless we
1090         have openat support.  Avoid PATH_MAX test on the Hurd.
1091
1092         regex-tests, regex: fix bug: memset undeclared
1093         * tests/test-regex.c: Don't include regex.h twice.  Include
1094         string.h, to declare memset.  Christensen's report also mentioned
1095         this issue.
1096         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1097         test-regex.c, to avoid future problems like this.  Remove
1098         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1099         twice.
1100
1101         regex-tests: fix link errors on older Solaris
1102         These need to link with @LIBINTL@ to get libintl_gettext.
1103         Problem reported by Tom G. Christensen in
1104         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1105         * modules/regex-tests (test_regex_LDADD): New macro.
1106
1107 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         regex-tests: new module
1110         * modules/regex-tests, tests/test-regex.c: New files.
1111
1112         regex: fix off-by-one error in configure test
1113         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1114
1115 2013-01-31  Eric Blake  <eblake@redhat.com>
1116
1117         regex: avoid infinite configure test
1118         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1119
1120 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1121
1122         openpty: fix bug where HAVE_OPENPTY wasn't defined
1123         See the thread starting at:
1124         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1125         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1126         openpty function exists, not merely when we intend to replace it.
1127
1128 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1129
1130         sys_time: port to Solaris 2.6
1131         There is a circularity problem on Solaris 2.6, where <time.h> includes
1132         <sys/time.h> for struct timespec.  The include nesting is gnulib
1133         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1134         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1135         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1136         <sys/siginfo.h>; the last, innermost file needs struct
1137         timestruc_t, which is defined in <sys/time.h>, which has not been
1138         fully parsed.  Problem reported by Tom G. Christensen in
1139         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1140         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1141         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1142         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1143         uses split double-inclusion guards.
1144
1145 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1146
1147         regex: test for buffer overrun
1148         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1149         for the just-fixed regex bug.
1150
1151 2013-01-29  Andreas Schwab  <schwab@suse.de>
1152
1153         regex: fix buffer overrun in regexp matcher [BZ #15078]
1154         * lib/regexec.c (extend_buffers): Add parameter min_len.
1155         (check_matching): Pass minimum needed length.
1156         (clean_state_log_if_needed): Likewise.
1157         (get_subexp): Likewise.
1158
1159 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1160
1161         mountlist: don't consider "devtmpfs" as dummy
1162         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1163         as there is storage associcated with it.
1164
1165 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         futimens-tests, utimens-tests: Depend on gettext.
1168         This works around a problem introduced in my 2013-01-12 patch,
1169         which added @LIBINTL@ to these modules.
1170         * modules/futimens-tests (Depends-on):
1171         * modules/utimens-tests (Depends-on): Add gettext.
1172
1173 2013-01-26  Eric Blake  <eblake@redhat.com>
1174
1175         test-getpeername: fix typo
1176         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1177
1178 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1179
1180         bootstrap: remove the need for a sorted .gitignore file
1181         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1182         rename to insert_if_absent(), so that we don't need or generate
1183         a sorted .gitignore file.  We do require a .gitignore with no
1184         existing duplicate entries and enforce that.
1185         (sort_patterns): Remove this function as we now use the simpler
1186         technigue of inserting blacklist entries at the top of the file,
1187         assuming gnulib won't be inserting !whitelist entries.
1188
1189 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         readlinkat: don't depend on gl_FUNC_OPENAT
1192         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1193         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1194         renameat.m4, symlinkat.m4; but one thing at a time.
1195
1196         statat: new module, split out from fstatat
1197         GNU Emacs needs the POSIX-specified fstatat, but not the
1198         gnulib-specified statat and lstat.  Split the latter two into a
1199         new module 'statat'.
1200         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1201         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1202         Rename from FSTATAT_INLINE. All uses changed.
1203         * modules/fstatat (Files): Remove lib/statat.c.
1204         (gl_MODULE_INDICATOR([fstatat])): Remove.
1205         (lib_SOURCES): Remove.
1206         (Maintainer): Add self.
1207         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1208         * tests/test-fstatat.c (BASE): Don't define if already defined.
1209         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1210
1211 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1212
1213         tests: don't assume fd 99 is closed
1214         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1215         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1216         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1217         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1218         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1219         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1220         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1221         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1222         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1223         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1224         * tests/test-fwrite.c, tests/test-getpeername.c:
1225         * tests/test-getsockname.c, tests/test-getsockopt.c:
1226         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1227         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1228         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1229         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1230         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1231         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1232         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1233         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1234         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1235         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1236         Close file descriptor 99, instead of assuming it's already closed.
1237
1238 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1239
1240         stpncpy: port to OS X 10.8
1241         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1242         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1243
1244 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         unistd: port to recent mingw
1247         * lib/unistd.in.h: Remove special invocation convention for mingw,
1248         which breaks for the latest mingw version.  See John W. Eaton in
1249         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1250
1251         largefile: port better to Mac OS X 10.5
1252         This patch is backported from Autoconf git.
1253         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1254         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1255         with ino_t size being different for configuration time versus
1256         build/run time.  Problem reported by PHO in
1257         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1258
1259 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         doc: clarify -Werror
1262         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1263         clarify that it's intended for developers, not for ordinary builds,
1264         and mention --enable-gcc-warnings as one possible use.
1265
1266 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1267
1268         stdint: fix build with Android's Bionic fox x86
1269         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1270         was already included as _SSIZE_T_DEFINED_ might also be defined
1271         in include/machine/_types.h, which is included by stdio.h
1272
1273 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1274
1275         net_if-tests: port to Solaris 7 + GCC 3.4.6
1276         Problem reported by Tom G. Christensen in
1277         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1278         * tests/test-net_if.c (ni): Move to next the code that uses it,
1279         so that it's declared only if needed.
1280
1281 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1282
1283         net_if-tests: port to older Solaris
1284         Problem reported by Tom G. Christensen in
1285         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1286         * modules/net_if-tests (NET_IF_LIB): New substitution.
1287         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1288         (HAVE_IF_NAMEINDEX): New C macro.
1289         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1290
1291         system-quote-tests: port to older Solaris
1292         Problem reported by Tom G. Christensen in
1293         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1294         * tests/test-system-quote-child.c (fopen, fread): Undef.
1295
1296         c-xvasprintf etc.: fix link errors on older Solaris
1297         These need to link with @LIBINTL@ to get libintl_gettext.
1298         Problem reported by Tom G. Christensen in
1299         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1300         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1301         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1302         * modules/futimens-tests (test_futimens_LDADD):
1303         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1304
1305 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         locale: port to Solaris 2.6 and 7 + GNU gettext
1308         * lib/locale.in.h: Just include_next <locale.h> when
1309         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1310         when combining the localename module with GNU gettext 0.18.2.
1311         Problem reported by Tom G. Christensen in
1312         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1313
1314 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         stdlib: port to Solaris 2.6
1317         Also, the code worked on Solaris 7 through 9 only by accident.
1318         Problem reported by Tom G. Christensen in
1319         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1320         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1321         simply include the system stdlib.h.
1322         * lib/getopt.in.h (__need_system_stdlib_h):
1323         * lib/pthread.in.h (__need_system_stdlib_h):
1324         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1325         Define when including <stdlib.h>, to avoid problems at least for
1326         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1327         with the system stdlib.h.
1328
1329 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         doc: update main copyright year
1332         * doc/gnulib.texi: Update copyright date.
1333
1334         doc: improve ISO 8601 discussion
1335         * doc/parse-datetime.texi (Combined date and time of day items):
1336         Specify more carefully what formats are supported and what is
1337         done with excess precision.
1338
1339 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         doc: avoid small caps
1342         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1343         they're more trouble than they're worth.  Suggested by Karl Berry
1344         in <http://bugs.gnu.org/13360>.
1345
1346         regex: conform to strict C
1347         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1348         From Aharon Robbins.
1349
1350         gnulib-tool: fix incompatibility with autopoint 0.18.2
1351         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1352         Problem reported by Tom G. Christensen in
1353         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1354
1355 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1356
1357         fprintftime: bring back and reword fwrite comment
1358         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1359
1360         stdio: remove now-unnecessary stdio.c
1361         Since stdio.in.h no longer uses inline functions, we no longer
1362         need to compile the extern versions.
1363         * lib/stdio.c: Remove.
1364         * modules/stdio (Files): Remove lib/stdio.c.
1365         (lib_SOURCES): Remove.
1366
1367         unicodeio: depend on stdio, not ignore-value
1368         * lib/unicodeio.c: Do not include ignore-value.h.
1369         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1370         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1371
1372         fprintftime: depend on stdio, not ignore-value
1373         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1374         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1375         since the stdio module arranges to silence that warning now.
1376         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1377
1378 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1379
1380         stdint-tests: Fix expanded-before-required-warning.
1381         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1382
1383 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         fwrite: silence __wur only for older glibc versions
1386         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1387         This will help us remove this workaround some time in the far future.
1388
1389 2013-01-03  Eric Blake  <eblake@redhat.com>
1390
1391         fwrite: silence __wur without using inline
1392         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1393         just gcc, and in a way that avoids inline issues.
1394         * modules/stdio (Depends-on): Drop extern-inline.
1395
1396 2013-01-03  Jim Meyering  <jim@meyering.net>
1397
1398         update-copyright: avoid copyright notice date corruption
1399         Given a sequence of copyright year numbers in which the final
1400         one was a two-digit number that happened to be a substring of
1401         a preceding four-digit year number, we would mistakenly update
1402         the substring (from two- to four-digit) rather than the two-digit
1403         number at the end, which, combined with the addition of the current
1404         4-digit year number would yield two 5-digit year numbers, e.g.,
1405         here, it would convert the first "99" to "1999, 2013" rather than
1406         the final one:
1407           1991, 99
1408           11999, 20131, 1999
1409         * build-aux/update-copyright: Tighten a regexp.
1410         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1411         Reported by Joseph Myers in
1412         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1413
1414 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         regex: omit needless signed-pointer casts
1417         * lib/regcomp.c (build_charclass, build_charclass_op):
1418         Use char *, not unsigned char *, for class name and extra.
1419         The char values are always nonnegative so there's no need to
1420         insist on unsigned char * here, and using char * removes the need
1421         for casts.  Reported by Aharon Robbins in
1422         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1423
1424         regex: support Gawk, which never uses alloca
1425         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1426         Do not include in this case.  Gawk doesn't supply a substitute
1427         alloca.h and doesn't need one.
1428
1429         regex: port __libc_lock_define usage to C89
1430         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1431         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1432         does not conform to C89, as it has an empty macro argument.
1433         Reported by Aharon Robbins in
1434         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1435
1436 2013-01-01  Eric Blake  <eblake@redhat.com>
1437
1438         maint: update all copyright year number ranges
1439         Run "make update-copyright".
1440
1441         version-etc: bump copyright year reported in --version
1442         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1443
1444 2012-12-31  Eric Blake  <eblake@redhat.com>
1445
1446         sigprocmask-tests: skip test if pid is unexpectedly large
1447         * tests/test-sigprocmask.c (main): Add range check.
1448
1449         git-version-gen: avoid test -z portability glitch
1450         * build-aux/git-version-gen: Prefer portable test spelling, since
1451         git-version-gen is run on more than just developer machines.
1452
1453 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1454
1455         git-version-gen: add --fallback option to use if git is not present
1456         * build-aux/git-version-gen: Add support for the new option --fallback,
1457         which comes into play when there is no $tarball_version_file and
1458         git is not working.
1459         (scriptversion): Update.
1460
1461         maint.mk: handle missing git with more grace
1462         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1463         Quietly proceed if git is not present.
1464
1465 2012-12-31  Eric Blake  <eblake@redhat.com>
1466
1467         dup2: work around cygwin bug
1468         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1469         * lib/dup2.c (rpl_dup2): Work around it.
1470         * doc/posix-functions/dup2.texi (dup2): Document it.
1471
1472 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         regex: remove unnecessary dependency on localcharset.h
1475         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1476         hasn't been needed for years.
1477         * modules/regex (Depends-on): Remove localcharset.
1478
1479         regex: revert single-byte change
1480         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1481         to this function.  This was alredy fixed in a different way, at
1482         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1483         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1484         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1485
1486         regex: simplify based on Gawk version
1487         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1488         Reported by Aharon Robbins in
1489         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1490
1491 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         regex: check that pattern char is single-byte
1494         Reported by Aharon Robbins in
1495         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1496         * lib/regexec.c (check_node_accept_bytes):
1497         Return 0 if the pattern string has a multibyte character here.
1498
1499         regex: implement rational ranges
1500         Reported by Aharon Robbins in
1501         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1502         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1503         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1504         Implement rational ranges.
1505
1506         regex: avoid redefining __wctype
1507         Reported by Aharon Robbins in
1508         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1509         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1510         #undef before defining.
1511
1512         regex: port to hosts where malloc (0) == NULL
1513         Reported by Aharon Robbins in
1514         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1515         * lib/regex_internal.c (re_node_set_alloc):
1516         Don't assume that malloc (0) yields nonnull.
1517         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1518         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1519         * modules/regex (Files): Add m4/eealloc.m4.
1520
1521         regex: port to C89
1522         Reported by Aharon Robbins in
1523         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1524         * lib/regcomp.c (init_word_char): Declaration before statement.
1525
1526         regex: merge glibc changes
1527         Also, copy the license wording from glibc.  This simplifies
1528         merging changes.  gnulib-tool will change the wording to GPL as
1529         appropriate, when importing it to other packages.  The only
1530         glibc change made since the last merge, which needs merging, is:
1531         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1532         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1533
1534         * users.txt: Add Emacs.
1535
1536         doc: omit mention of version when not needed
1537         * doc/gnulib-intro.texi (Portability and Application Code):
1538         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1539         Don't mention particular dates or versions when not necessary, so
1540         that the documentation won't go out of date so quickly.
1541
1542         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1543
1544 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1545
1546         bootstrap: pass --force to autoreconf.
1547         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1548         Add "--force" so that Automake's ylwrap and other such tools
1549         be updated at each bootstrap invocation.
1550         Use it.
1551
1552 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1553
1554         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1555         The earlier patch forgot to update one of the #if conditions, causing
1556         a problem on Debian testing i386 reported by Mats Erik Andersson
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1558         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1559         (__argp_fmtstream_puts, argp_fmtstream_puts)
1560         (__argp_fmtstream_write, argp_fmtstream_write)
1561         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1562
1563         * doc/gnulib-readme.texi: Minor fixups.
1564         (Portability guidelines): Modernize URLs.  Remove some repetition.
1565         (Indent with spaces not TABs): Reword to avoid too-long lines.
1566         Remove some '@ifset standalone' stuff that isn't used.
1567
1568         * doc/gnulib-readme.texi (Portability guidelines):
1569         ctype.h, not ctime.h.
1570
1571         Correct name of POSIX.1-2001.
1572         * doc/posix-functions/fgetc.texi (fgetc):
1573         * doc/posix-functions/fgets.texi (fgets):
1574         * doc/posix-functions/fread.texi (fread):
1575         * doc/posix-functions/fscanf.texi (fscanf):
1576         * doc/posix-functions/getc.texi (getc):
1577         * doc/posix-functions/getchar.texi (getchar):
1578         * doc/posix-functions/scanf.texi (scanf):
1579         POSIX.1-2001, not POSIX-2001.
1580
1581         doc: move README into manual
1582         * README: Move contents to new file doc/gnulib-readme.texi.
1583         Replace with a one-line summary.
1584         * doc/gnulib.texi (Brief Overview): New section,
1585         with old intro preface.  Include gnulib-readme.texi for contents.
1586         (Philosophy): Rename from "Introduction", since this
1587         section no longer introduces the rest.  Write a new preface.
1588         * doc/gnulib-readme.texi: New file, with the old contents of
1589         README texinfo-ized.  This way, the README info appears
1590         in the online and printed manual.
1591
1592 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1593
1594         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1595         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1596         c_vasprintf() prototype.
1597
1598 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1599
1600         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1601         * lib/c-vasprintf.h: Remove stray semicolon.
1602
1603 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1604
1605         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1606         It is obsolete and is planned to be removed from Automake 1.14; see
1607         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1608         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1609         (installdirs-data, installdirs-data-yes):
1610         Use $(MKDIR_P), not $(mkdir_p).
1611         * m4/intl.m4 (AM_INTL_SUBDIR):
1612         * m4/po.m4 (AM_PO_SUBDIRS):
1613         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1614
1615 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1616
1617         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1618         On this platform, we are not optimizing but we are using
1619         the substitute for extern inlines, so compile as if
1620         C99-style extern inline, or a substitute, is available.
1621         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1622         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1623         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1624         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1625         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1626         Declare as ARGP_FS_EI, not as extern.
1627         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1628         (__option_is_short, _option_is_end, __option_is_end)
1629         [!_LIBC && __USE_EXTERN_INLINES]:
1630         Declare as ARGP_EI, not as extern.
1631
1632 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1633
1634         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1635         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1636         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1637         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1638         ...), as the latter is fatal with older Autoconfs.
1639         Problem reported and fix suggested by Eric Blake in thread starting at
1640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1641
1642 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1643
1644         AC_PROG_MKDIR_P: don't workaround if not buggy
1645         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1646         Define only for Autoconf versions before 2.62.
1647         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1648         undocumented m4_PACKAGE_VERSION, for consistency with the
1649         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1650         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1651         was introduced in 2.62.
1652
1653 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1654
1655         New 'c-*printf' modules for formatted output in C locale.
1656
1657         New module 'c-vasnprintf'.
1658         * modules/c-vasnprintf: New file.
1659         * lib/c-vasnprintf.c: New file.
1660         * lib/c-vasnprintf.h: New file.
1661
1662         New module 'c-snprintf'.
1663         * modules/c-snprintf: New file.
1664         * modules/c-snprintf-tests: New file.
1665         * lib/c-snprintf.c: New file.
1666         * lib/c-snprintf.h: New file.
1667         * tests/test-c-snprintf.c: New file.
1668         * tests/test-c-snprintf.sh: New file.
1669
1670         New module 'c-vsnprintf'.
1671         * modules/c-vsnprintf: New file.
1672         * modules/c-vsnprintf-tests: New file.
1673         * lib/c-vsnprintf.c: New file.
1674         * lib/c-vsnprintf.h: New file.
1675         * tests/test-c-vsnprintf.c: New file.
1676         * tests/test-c-vsnprintf.sh: New file.
1677
1678         New module 'c-vasprintf'.
1679         * modules/c-vasprintf: New file.
1680         * modules/c-vasprintf-tests: New file.
1681         * lib/c-asprintf.c: New file.
1682         * lib/c-vasprintf.c: New file.
1683         * lib/c-vasprintf.h: New file.
1684         * tests/test-c-vasprintf.c  +: New file.
1685         * tests/test-c-vasprintf.sh: New file.
1686
1687         New module 'c-xvasprintf'.
1688         * modules/c-xvasprintf: New file.
1689         * modules/c-xvasprintf-tests: New file.
1690         * lib/c-xasprintf.c: New file.
1691         * lib/c-xvasprintf.c: New file.
1692         * lib/c-xvasprintf.h: New file.
1693         * tests/test-c-xvasprintf.c: New file.
1694         * tests/test-c-xvasprintf.sh: New file.
1695
1696 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1697
1698         argp: better 'inline'
1699         Use extern-inline module to declare extern inline functions.
1700         This avoids some bogus warning diagnostics.  Problem discovered
1701         when modifying GNU tar to use the manywarnings module.
1702         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1703         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1704         Define based on extern-inline.
1705         * modules/argp (Depends-on): Add extern-inline.
1706
1707 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         filemode, sys_stat: Handle MPX files a la AIX.
1710         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1711         * lib/sys_stat.in.h (S_ISMPX): New macro.
1712         * tests/test-sys_stat.c: Add tests for MPX files.
1713
1714 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1715
1716         x-to-1: honor $PERL
1717         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1718         a chance to use his preferred version of Perl.  This is typically
1719         required by Darwin users whose default /usr/bin/perl does not have all
1720         the libraries required by help2man, and who need to use their MacPorts
1721         installation of Perl instead.
1722
1723 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1724
1725         gnu-web-doc-update: add all the new files, even in new directories
1726         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1727         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1728         Use it.
1729         (main): Don't use cvsutils to get the list of unknown files,
1730         just add all the existing files and directories.
1731
1732 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1733
1734         gnu-web-doc-update: improve --help
1735         * build-aux/gnu-web-doc-update: Move comments into --help.
1736
1737 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1738
1739         mountlist: recognize more "dummy" file systems
1740         * lib/mountlist.c (ME_DUMMY_0):
1741         Add these dummy FS names to the list:
1742         - "debugfs" virtual filesystem for kernel debugging
1743         - "devpts" PTY slave filesystem
1744         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1745         - "fusectl" control filesystem for FUSE
1746         - "mqueue" enumerates POSIX message queues
1747         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1748         - "sysfs" is for exporting kernel objects
1749         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1750
1751 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         extern-inline: avoid incompatibility with Darwin Libc
1754         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1755         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1756         Problem reported by Akim Demaille in
1757         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1758
1759 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1760
1761         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1762         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1763         let it handle password prompting.
1764
1765 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1766
1767         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1768         * lib/canonicalize.c (canonicalize_filename_mode):
1769         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1770         fetching the current directory.  Don't overrun the beginning of
1771         rpath if there's no slashes after the MS-Windows drive letter.
1772
1773 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1774
1775         maint.mk: avoid extra forks
1776         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1777         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1778         So use that instead of "$(shell test -f FILE && echo FILE)".
1779
1780 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         vasnprintf: fix ASCII_ONLY typo
1783         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1784         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1785         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1786         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1787         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1788
1789 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1790
1791         list, oset, xlist, xoset: fix extern inline issue with C99
1792         This was introduced by my recent changes for 'inline'.
1793         Problem reported for gettext by Daiki Ueno in
1794         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1795         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1796         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1797         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1798         (gl_list_previous_node, gl_list_get_at)
1799         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1800         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1801         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1802         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1803         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1804         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1805         (gl_list_iterator_free, gl_sortedlist_search)
1806         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1807         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1808         (gl_sortedlist_remove):
1809         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1810         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1811         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1812         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1813         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1814         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1815         (gl_list_add_at, gl_sortedlist_add):
1816         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1817         Wrap these extern decls inside "#if 0", because they are implemented
1818         as inline functions, and extern inline is not what's wanted here.
1819         It would simplify these .h files to remove the extern decls entirely,
1820         although a downside would be less-clear separation between
1821         specification and implementation.
1822
1823 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1824
1825         sys_stat: no 'static inline'
1826         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1828
1829         extern-inline: no 'static inline'
1830         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1831         Do not require AC_C_INLINE.
1832         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1833         'static inline', for older compilers.
1834
1835         snippet/warn-on-use: no 'static inline'
1836         * build-aux/snippet/warn-on-use.h:
1837         Remove unnecessary 'inline' in comment.
1838
1839         rbtree-list, rbtreehash-list: no 'static inline'
1840         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1841         * lib/gl_anytree_list2.h (node_at):
1842         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1843         (gl_oset_first, add_nodes_to_buckets):
1844         Now static, not static inline.
1845
1846         regex: no 'static inline'
1847         * lib/regex_internal.c (calc_state_hash):
1848         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1849         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1850         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1851         Now static, not static inline.
1852         (inline) [__GNUC__ < 3 && _LIBC]:
1853         Remove macro; no longer needed.
1854
1855         xvasprintf: no 'static inline'
1856         * lib/xvasprintf.c (xstrcat):
1857         Now static, not static inline.
1858         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1859         Do not require AC_C_INLINE.
1860
1861         parse-datetime, parse-duration: no 'static inline'
1862         * lib/parse-datetime.y (to_uchar):
1863         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1864         (scale_n_add):
1865         Now static, not static inline.
1866         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1867         * modules/parse-duration (configure.ac):
1868         Do not require AC_C_INLINE.
1869
1870         getaddrinfo: no 'static inline'
1871         * lib/getaddrinfo.c (validate_family):
1872         Now static, not static inline.
1873         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1874         Do not require AC_C_INLINE.
1875
1876         ftruncate, fts, lstat, openat, raise: no 'static inline'
1877         * lib/ftruncate.c (chsize_nothrow):
1878         * lib/fts.c (opendirat, diropen):
1879         * lib/lstat.c (orig_lstat):
1880         * lib/openat.c (orig_openat):
1881         * lib/raise.c (raise_nothrow):
1882         Now static, not static inline.
1883         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1884         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1885         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1886         * m4/openat.m4 (gl_PREREQ_OPENAT):
1887         * m4/raise.m4 (gl_PREREQ_RAISE):
1888         Do not require AC_C_INLINE.
1889
1890         fflush, stat: no 'static inline'
1891         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1892         (clear_ungetc_buffer, disable_seek_optimization)
1893         (restore_seek_optimization, update_fpos_cache):
1894         * lib/stat.c (orig_stat):
1895         Now static, not static inline.
1896         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1897         (update_fpos_cache):
1898         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1899         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1900         * m4/stat.m4 (gl_PREREQ_STAT):
1901         Do not require AC_C_INLINE.
1902
1903         error, filevercmp: no 'static inline'
1904         * lib/error.c (is_open, flush_stdout):
1905         * lib/filevercmp.c (order):
1906         Now static, not static inline.
1907         * m4/error.m4 (gl_PREREQ_ERROR):
1908         * modules/filevercmp (configure.ac):
1909         Do not require AC_C_INLINE.
1910
1911         dup, execute, fatal-signal, etc.: no 'static inline'
1912         * lib/dup.c (dup_nothrow):
1913         * lib/execute.c (nonintr_close, nonintr_open):
1914         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1915         * lib/fopen.c (orig_fopen):
1916         * lib/freadseek.c (freadptrinc):
1917         * lib/freopen.c (orig_freopen):
1918         * lib/fstat.c (orig_fstat, fstat_nothrow):
1919         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1920         (get_rusage_as_via_iterator):
1921         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1922         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1923         * lib/isatty.c (_isatty_nothrow):
1924         * lib/open.c (orig_open):
1925         * lib/read.c (read_nothrow):
1926         * lib/sigprocmask.c (signal_nothrow):
1927         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1928         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1929         * lib/wait-process.c (unregister_slave_subprocess):
1930         * lib/write.c (write_nothrow):
1931         Now static, not static inline.
1932         * lib/spawn-pipe.c (nonintr_open): Define only if
1933         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1934         * m4/dup.m4 (gl_PREREQ_DUP):
1935         * m4/execute.m4 (gl_EXECUTE):
1936         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1937         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1938         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1939         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1940         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1941         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1942         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1943         * m4/open.m4 (gl_PREREQ_OPEN):
1944         * m4/read.m4 (gl_PREREQ_READ):
1945         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1946         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1948         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1949         * m4/write.m4 (gl_PREREQ_WRITE):
1950         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1951         Do not require AC_C_INLINE.
1952
1953         c-strtod, memcoll, readutmp: no 'static inline'
1954         * lib/c-strtod.c (c_locale):
1955         * lib/memcoll.c (strcoll_loop):
1956         * lib/readutmp.c (desirable_utmp_entry):
1957         Now static, not static inline.
1958         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1959         * m4/memcoll.m4 (gl_MEMCOLL):
1960         * m4/readutmp.m4 (gl_READUTMP):
1961         Do not require AC_C_INLINE.
1962
1963         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1964         * lib/arctwo.c (to_uchar):
1965         * lib/md4.c (set_uint32):
1966         * lib/md5.c (set_uint32):
1967         * lib/sha1.c (set_uint32):
1968         * lib/sha256.c (set_uint32):
1969         * lib/sha512.c (set_uint64):
1970         Now static, not static inline.  This is a bit simpler, and doesn't
1971         affect performance with GCC and default optimization.
1972         * m4/arctwo.m4 (gl_ARCTWO):
1973         * m4/md4.m4 (gl_MD4):
1974         * m4/md5.m4 (gl_MD5):
1975         * m4/sha1.m4 (gl_SHA1):
1976         * m4/sha256.m4 (gl_SHA256):
1977         * m4/sha512.m4 (gl_SHA512):
1978         Do not require AC_C_INLINE.
1979
1980         cond, lock, thread: better 'inline'
1981         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1982         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1983         New macros.  Use them instead of static inline, for header functions.
1984         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1985         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1986         * lib/glthread/lock.c (gl_waitqueue_init)
1987         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1988         * lib/glthread/thread.c (get_current_thread_handle):
1989         Change 'static inline' to 'inline'.
1990         * lib/glthread/cond.h, lib/glthread/thread.h:
1991         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1992         * m4/cond.m4 (gl_COND):
1993         * m4/lock.m4 (gl_PREREQ_LOCK):
1994         * m4/thread.m4 (gl_THREAD):
1995         Do not require AC_C_INLINE.
1996         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1997
1998         chdir-long, cycle-check, savewd: better 'inline'
1999         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2000         (find_non_slash):
2001         * lib/cycle-check.c (is_zero_or_power_of_two):
2002         * lib/savewd.c (savewd_delegating):
2003         Change 'static inline' to 'inline'.
2004         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2005         Replace all remaining uses of 'static inline' with it.
2006         * lib/savewd.h:
2007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2008         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2009         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2010         * m4/savewd.m4 (gl_SAVEWD):
2011         Do not require AC_C_INLINE.
2012         * modules/savewd (Depends-on): Add extern-inline.
2013
2014         base32, base64: no need for 'inline'
2015         * lib/base32.c (to_uchar, get_8, decode_8):
2016         * lib/base64.c (to_uchar, get_4, decode_4):
2017         Change 'static inline' to 'inline'.
2018         * m4/base32.m4 (gl_PREREQ_BASE32):
2019         * m4/base64.m4 (gl_PREREQ_BASE64):
2020         Do not require AC_C_INLINE.
2021
2022         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2023         * lib/gl_array_oset.c (gl_array_nx_add_at):
2024         (gl_array_remove_at):
2025         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2026         (add_to_bucket, remove_from_bucket):
2027         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2028         Change 'static inline' to 'static', as it's simpler to omit
2029         'inline' unless there's a significant performance advantage.
2030
2031         list, oset, xlist, xoset, xsublist: simplify via extern inline
2032         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2033         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2034         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2035         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2036         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2037         New macro.  Replace all uses of 'static inline' with it.
2038         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2039         instead of as macros FOO that are defined to static inline
2040         functions FOO_inline.
2041         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2042         * lib/gl_xsublist.c:
2043         Reimplement from scratch, by defining the corresponding *_INLINE
2044         macro and including the corresponding .h file.  This is simpler.
2045         * modules/list, modules/oset, modules/xlist, modules/xoset:
2046         (Files): Remove m4/gl_list.m4.
2047         (configure.ac): Remove gl_LIST.
2048         * m4/gl_list.m4: Remove.
2049         * modules/list, modules/oset, modules/xlist, modules/xoset:
2050         * modules/xsublist:
2051         (Depends-on): Depend on extern-inline, not inline.
2052
2053         xalloc: better 'inline'
2054         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2055         New macro.  Replace all uses of 'static inline' with it.
2056         (static_inline): Remove.
2057         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2058         Let 'extern inline' do the work automatically, instead of doing
2059         it by hand.
2060         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2061         Remove.  All uses removed.
2062         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2063
2064         gethrxtime: better 'inline'
2065         * lib/xtime.c: New file.
2066         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2067         * lib/xtime.h (XTIME_INCLUDE):
2068         New macros.  Replace all uses of 'static inline' with them.
2069         * lib/gethrxtime.c (gethrxtime): Define only if
2070         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2071         this source file is now always compiled, because of the extern inline.
2072         * lib/gethrxtime.h, lib/xtime.h:
2073         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2074         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2075         if gethrtime works, as they're not needed in that case.
2076         (gl_XTIME): Do not require AC_C_INLINE.
2077         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2078         compiled now.  Move the check into gl_GETHRXTIME.
2079         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2080         (Depends-on): Add extern-inline.
2081         (configure.ac): gethrxtime is always compiled now.
2082         (lib_SOURCES): Add gethrxtime.c.
2083
2084         wctype-h: better 'inline'
2085         * lib/wctype-h.c: New file.
2086         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2087         New macro.  Replace all uses of 'static inline' with it.
2088         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2089         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2090         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2091         (Depends-on): Add extern-inline.
2092
2093         unistd: better 'inline'
2094         * lib/unistd.c: New file.
2095         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2096         New macro.  Replace all uses of 'static inline' with it.
2097         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2098         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2099         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2100         (Depends-on): Add extern-inline.
2101
2102         sys_socket: better 'inline'
2103         * lib/sys_socket.c: New file.
2104         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2105         New macro.  Replace all uses of 'static inline' with it.
2106         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2108         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2109         (Depends-on): Add extern-inline.
2110
2111         stdio: better 'inline'
2112         * lib/stdio.c: New file.
2113         * lib/stdio.in.h (_GL_STDIO_INLINE):
2114         New macro.  Replace all uses of 'static inline' with it.
2115         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2116         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2117         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2118         (Depends-on): Add extern-inline.
2119
2120         sigaction: better 'inline'
2121         * lib/sig-handler.c: New file.
2122         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2123         New macro.  Replace all uses of 'static inline' with it.
2124         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2125         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2126         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2127         (Depends-on): Add extern-inline.
2128
2129         selinux-h: better 'inline'
2130         * lib/se-context.c, lib/se-selinux.c: New files.
2131         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2132         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2133         New macro.  Replace all uses of 'static inline' with it.
2134         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2135         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2136         New macro.  Replace all uses of 'static inline' with it.
2137         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2138         * modules/selinux-h (Files, lib_SOURCES):
2139         Add lib/se-context.c, lib/se-selinux.c.
2140         (Depends-on): Add extern-inline.
2141         (configure.ac): Do not require AC_C_INLINE.
2142
2143         pthread: better 'inline'
2144         * lib/pthread.c: New file.
2145         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2146         New macro.  Replace all uses of 'static inline' with it.
2147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2148         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2149         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2150         * modules/pthread (Files): Add lib/pthread.c.
2151         (Depends-on): Add extern-inline.
2152
2153         math: better 'inline'
2154         * lib/math.c: New file.
2155         * lib/math.in.h (_GL_MATH_INLINE):
2156         New macro.  Replace all uses of 'static inline' with it.
2157         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2158         * m4/math_h.m4 (gl_MATH_H):
2159         Do not require AC_C_INLINE.
2160         * modules/math (Files, lib_SOURCES):
2161         Add lib/math.c.
2162         (Depends-on): Add extern-inline.
2163
2164         count-one-bits: better 'inline'
2165         * lib/count-one-bits.c: New file.
2166         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2167         New macro.  Replace all uses of 'static inline' with it.
2168         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2169         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2170         Do not require AC_C_INLINE.
2171         * modules/count-one-bits (Files, lib_SOURCES):
2172         Add lib/count-one-bits.c.
2173         (Depends-on): Add extern-inline.
2174
2175         count-leading-zeros: better 'inline'
2176         * lib/count-leading-zeros.c: New file.
2177         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2178         New macro.  Replace all uses of 'static inline' with it.
2179         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2180         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2181         Do not require AC_C_INLINE.
2182         * modules/count-leading-zeros (Files, lib_SOURCES):
2183         Add lib/count-leading-zeros.c.
2184         (Depends-on): Add extern-inline.
2185
2186         bitrotate: better 'inline'
2187         * lib/bitrotate.c: New file.
2188         * lib/bitrotate.h (BITROTATE_INLINE):
2189         New macros.
2190         Replace all uses of 'static inline' with them.
2191         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2192         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2193         (Depends-on): Add extern-inline.
2194         (configure.ac): Do not require AC_C_INLINE.
2195
2196 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2197
2198         maint.mk: avoid gratuitous failure
2199         Reported by Stefano Lattarini in
2200         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2201         * top/maint.mk (public-submodule-commit): Quote more safely.
2202
2203 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2204
2205         canonicalize, canonicalize-lgpl: support MS-Windows file names
2206         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2207         for test cases, which it'd be nice to add at some point.
2208         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2209         * lib/canonicalize.c (canonicalize_filename_mode):
2210         * lib/canonicalize-lgpl.c (__realpath):
2211         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2212         slash is at the beginning of the file name.  Use ISSLASH, instead
2213         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2214         the first character with '/'.  Test for
2215         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2216         with a drive letter.
2217         * lib/canonicalize.c (SLASHES): New macro.
2218         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2219
2220 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2221
2222         fts: introduce FTS_VERBATIM
2223         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2224         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2225         * lib/fts.c (fts_open): Honor it.
2226
2227 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2228
2229         getlogin-tests: allow errno == ENXIO
2230         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2231         with errno == ENXIO (No controlling tty).
2232         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2233         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2234         with errno == ENOENT.  This was reported to happen in various
2235         situations on GNU/Linux.
2236
2237 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2238
2239         getlogin-tests: allow errno == ENOENT
2240         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2241         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2242         when running a test in an Emacs shell buffer.
2243
2244 2012-11-08  Jim Meyering  <jim@meyering.net>
2245
2246         tests/nap.h: avoid warning about unused variable
2247         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2248
2249         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2250         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2251         white space before each of the special-cased file names, to avoid
2252         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2253         in http://bugs.gnu.org/12830.
2254
2255 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2256
2257         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2258         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2259         fails with errno == EBADF when fd is opened with O_PATH.
2260         Reported by Jim Meyering in
2261         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2262         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2263         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2264
2265 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2266
2267         test-utimens: speed up by taking shorter naps
2268         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2269         New functions.
2270         (nap): Use them, to do a better job of guessing the delay.
2271         On Fedora 17 with ext4 atop md atop hard disks, this made
2272         test-utimens run 10x faster, because the test napped for
2273         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2274         <http://bugs.gnu.org/12820#11>.
2275
2276 2012-11-07  Jim Meyering  <jim@meyering.net>
2277
2278         mountlist.c: fix a compilation failure
2279         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2280         I introduced while transforming commit v0.0-7683-g613bcb6
2281
2282 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2283
2284         errno: port to LynxOS 178 2.2.2
2285         Problem reported by Joel Brobecker in
2286         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2287         * doc/posix-headers/errno.texi (errno.h): Document this.
2288         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2289         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2290         Supply a string for EILSEQ.
2291         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2292
2293 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2296         Linux kernel 2.6.39 introduced O_PATH (see
2297         <http://lwn.net/Articles/433854/>) and this is a better fallback
2298         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2299         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2300         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2301         * lib/fcntl.in.h (O_ACCMODE):
2302         * tests/test-fcntl-h.c (main):
2303         Do not reject O_ACCMODE merely because it has more than the
2304         minimal number of bits, as POSIX allows extensions here.
2305
2306 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2307
2308         mountlist: do not classify a bind-mounted dir entry as "dummy"
2309         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2310         the "none"-testing clause.
2311         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2312         exception for bind-mounted directories.
2313
2314 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2315
2316         quote: provide a means to escape strings with nul characters
2317         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2318         (quote, quote_n): Rename formal arguments for consistency with
2319         quotearg.
2320
2321 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2322
2323         test-raise: don't assume 199 is an invalid signal
2324         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2325
2326         sh-quote-tests: port to Solaris 9
2327         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2328         Problem reported by Dagobert Michelsen in
2329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2330
2331 2012-10-28  Jim Meyering  <jim@meyering.net>
2332
2333         maint.mk: rename a new configurable variable
2334         * top/maint.mk (_gl_translatable_string_re): Rename from
2335         translation-markers: _gl_ prefix to insulate from user Makefile code,
2336         and the _re suffix to inform that it's a regular expression.
2337
2338 2012-10-26  Eric Blake  <eblake@redhat.com>
2339
2340         maint.mk: let packages tweak sc_po_check pattern
2341         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2342         finding files with other translation markers.
2343
2344 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         euidaccess: speed up 'configure' on GNU hosts
2347         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2348         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2349         it's needed only in this case.  Use AC_CHECK_DECLS, not
2350         AC_CHECK_DECLS_ONCE.
2351         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2352         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2353
2354         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2355
2356 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         fchmodat, fchownat, fstatat: port to non-inlining compilers
2359         Problem reported for FreeBSD 9 by Jim Meyering in
2360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2361         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2362         New files, which define FCHMODAT_INLINE etc.
2363         * lib/fchmodat.c (FCHMODAT_INLINE):
2364         * lib/fchownat.c (FCHOWNAT_INLINE):
2365         * lib/fstatat.c (FSTATAT_INLINE):
2366         Remove, as chmodat.c etc. now do this.
2367         * modules/fchmodat (Files): Add lib/chmodat.c.
2368         * modules/fchownat (Files): Add lib/chownat.c.
2369         * modules/fstatat (Files): Add lib/statat.c.
2370
2371 2012-10-15  Jim Meyering  <jim@meyering.net>
2372
2373         fchmodat.c, fchownat.c: compile-impeding typos
2374         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2375         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2376         Introduced in commit v0.0-7636-gd202279.
2377
2378 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2379
2380         fcntl-h: support GNU flags like O_IGNORE_CTTY
2381         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2382         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2383         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2384         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2385         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2386         Define to 0 if not already defined.
2387         * tests/test-fcntl-h.c: Test these new flags.
2388
2389 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2390
2391         faccessat, etc.: support AT_FDCWD-only use
2392         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2393         this function only if its first argument is AT_FDCWD.
2394         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2395         values other than AT_FDCWD, so it doesn't want all the openat
2396         machinery with fchdir etc.
2397         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2398         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2399         * modules/unlinkat (Files):
2400         Remove lib/openat-priv.h, as at-internal supplies this file.
2401         Removing this file here allows us to support programs like Emacs
2402         that avoid at-internal.
2403
2404         faccessat: speed up 'configure' on mainstream hosts
2405         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2406         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2407         since it's only on unusual platforms that we need to check for
2408         'access', and it's better not to slow 'configure' down on all
2409         platforms.
2410
2411         faccessat: port to Solaris 10
2412         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2413         Needed on Solaris 10, which doesn't have AT_EACCESS,
2414         so we need the Gnulib fcntl.h, which defines it.
2415
2416 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2417         canonicalize: fix C89 compilation
2418         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2419         declarations so C89 is supported.  Also remove the comment
2420         referencing memorty allocation as the suggested feature could
2421         not be implemented as suggested.
2422         Reported by Michael Goffioul.
2423
2424 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         group-member: omit unnecessary dependencies
2427         This is for Emacs, which has its own allocator and where we
2428         don't want to use xalloc.
2429         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2430         since we no longer use xmalloc.  Do not include stdbool.h, since
2431         the changes below happen to remove the only use of bool.
2432         (GROUPBUF_SIZE): New constant.
2433         (struct group_info): Remove n_groups member.  Add groupbuf member.
2434         This lets us get the groups without using malloc, usually.
2435         (free_group_info, get_group_info): Adjust to this.
2436         (get_group_info): Return the number of groups found, or -1 on error.
2437         Use plain malloc not xmalloc, and treat its failure as if there
2438         are no groups, as the user already loses in case of error.
2439         (group_member): Simplify, based on changes to get_group_info.
2440         * modules/group-member (Depends-on): Remove dependencies on
2441         xalloc and stdbool.  Add dependency on xalloc-oversized.
2442
2443 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2444
2445         gethrxtime: port to C++
2446         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2447
2448 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         ptsname: fix macro-name typo
2451         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2452
2453 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2454
2455         inttostr: Relax license.
2456         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2457
2458 2012-10-03  Eric Blake  <eblake@redhat.com>
2459
2460         ptsname_r: support ptys returned by FreeBSD posix_openpt
2461         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2462         lives in /dev/pts/.
2463
2464 2012-10-02  Eric Blake  <eblake@redhat.com>
2465
2466         pselect: reject invalid file descriptors
2467         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2468         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2469         * modules/pselect (Depends-on): Add dup2.
2470         * doc/posix-functions/pselect.texi (pselect): Document this.
2471
2472         select: reject invalid file descriptors
2473         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2474         * lib/select.c (rpl_select) [!win32]: Work around it.
2475         * modules/select (Depends-on): Add dup2.
2476         * doc/posix-functions/select.texi (select): Document this.
2477
2478         select: enhance test
2479         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2480         New functions.
2481         (test_function): Enhance test.
2482         (do_select_bad_fd): Avoid any stale errno values.
2483
2484         ptsname: reject invalid file descriptors
2485         http://www.austingroupbugs.net/view.php?id=503
2486         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2488         * modules/stdlib (Makefile.am): Replace witness.
2489         * lib/stdlib.in.h (ptsname): Allow for replacement.
2490         * modules/ptsname (configure.ac): Trigger replacement.
2491         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2492
2493 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2494
2495         hash-pjw-bare: new module
2496         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2497         * lib/hash-pjw-bare.h: Likewise.
2498         * modules/hash-pjw-bare: New file.
2499         * MODULES.html.sh (Misc): Add it.
2500
2501 2012-10-02  Eric Blake  <eblake@redhat.com>
2502
2503         manywarnings: cater to more gcc infelicities
2504         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2505         -Wuninitialized without -O.
2506
2507 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2508
2509         select, poll tests: Make setsockopt invocation effective.
2510         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2511         the bind() call.
2512         * tests/test-select.h (open_server_socket): Likewise.
2513
2514 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         sockets, sys_stat: restore AC_C_INLINE
2517         This undoes the 2012-09-22 patch.
2518         * m4/sockets.m4 (gl_SOCKETS):
2519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2520         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2521         and does not support plain 'inline'.  Reported by Bruno Haible in
2522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2523
2524 2012-09-30  Bruno Haible  <bruno@clisp.org>
2525
2526         localeconv tests: Avoid test failure on OpenIndiana.
2527         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2528         skip the 'grouping' and 'mon_grouping' tests.
2529         Reported by Jim Meyering.
2530
2531 2012-09-30  Bruno Haible  <bruno@clisp.org>
2532
2533         havelib: Follow libtool developments.
2534         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2535         Suggested by Simon Josefsson.
2536
2537 2012-09-29  Jim Meyering  <meyering@redhat.com>
2538
2539         fstatat.c: fix a compile-impeding typo
2540         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2541         Introduced in commit v0.0-7636-gd202279.
2542         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2543
2544 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2545
2546         extern-inline: provide a -Wundef safe config.h
2547         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2548         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2549         to produce a -Wundef warning free config.h.
2550
2551 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         hash-pjw: relax license to LGPLv2+
2554         * modules/hash-pjw (License): Relax, with consent of author.
2555
2556 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2557
2558         maint.mk: fix strict vs. lazy variable issues with RELEASE
2559         * top/maint.mk (_equal): New function.
2560         (member_check): Strip the result to avoid spurious spaces.
2561         (url_dir_list): Do not use ifeq, which is strict, as it will
2562         require RELEASE_TYPE to be defined.
2563         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2564         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2565         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2566         (announcement_Cc_beta,announcement_mail_headers_beta)
2567         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2568         (release): Do not depend on $(release-type), as it forces its
2569         evaluation.  Bounce to it.
2570
2571 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2572
2573         maint.mk: formatting changes
2574         * top/maint.mk: Indent bodies of if's.
2575
2576 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2577
2578         maint.mk: factor the validation of RELEASE_TYPE
2579         With help from Jim Meyering.
2580         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2581         * top/maint.mk (_empty, _sp): Move their definition earlier.
2582         (member-check, release-type): New.
2583         Use the latter instead of $(RELEASE_TYPE).
2584         Remove now useless local checks.
2585
2586 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2587
2588         maint.mk: provide "make upload" to ease uploading
2589         See
2590         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2591         Do not depend simply on the current $(VERSION), as there may have been
2592         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2593         as "make release-commit" already does.
2594
2595         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2596         "make TYPE".
2597
2598         * top/maint.mk (upload_command, upload, release): New.
2599         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2600         (VERSION): first word of $(RELEASE) is always right.
2601         (emit_upload_commands): Adjust.
2602         * top/README-release: Update.
2603
2604 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2605
2606         maint.mk: silent rules
2607         With help from Stefano Lattarini.
2608         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2609         (announcement): Use $(AM_V_at).
2610
2611 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2612
2613         localename: port gl_locale_name_thread_unsafe to FreeBSD
2614         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2615         and use the simpler FreeBSD implementation on Mac OS X as well.
2616         Original idea suggested by Ed Maste in
2617         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2618
2619 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2620
2621         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2622         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2623         * lib/mbuiter.c, lib/xsize.c: New files.
2624         * lib/binary-io.h (BINARY_IO_INLINE):
2625         * lib/eealloc.h (EEALLOC_INLINE):
2626         * lib/mbfile.h (MBFILE_INLINE):
2627         * lib/mbiter.h (MBITER_INLINE):
2628         * lib/mbuiter.h (MBUITER_INLINE):
2629         * lib/xsize.h (XSIZE_INLINE):
2630         New macros.
2631         Replace all uses of 'static inline' with them.
2632         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2633         * m4/eealloc.m4 (gl_EEALLOC):
2634         * m4/mbfile.m4 (gl_MBFILE):
2635         * m4/mbiter.m4 (gl_MBITER):
2636         * m4/xsize.m4 (gl_XSIZE):
2637         Do not require AC_C_INLINE.
2638         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2639         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2640         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2641         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2642         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2643         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2644         * modules/binary-io, modules/eealloc, modules/mbfile:
2645         * modules/mbiter, modules/mbuiter:
2646         (Depends-on): Add extern-inline.
2647
2648         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2649         * lib/pipe-filter-aux.c: New file.
2650         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2651         Replace all uses of 'static inline' with it.
2652         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2653         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2654         (filter_retcode): No real need for inline here.
2655         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2656         (Files): Add lib/pipe-filter-aux.c.
2657         (Depends-on): Add extern-inline.
2658         (configure.ac): Do not require AC_C_INLINE.
2659         (lib_SOURCES): Add pipe-filter-aux.c.
2660
2661         fdutimensat: omit unnecessary AC_C_INLINE
2662         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2663
2664         fchmodat, fchownat, fstatat: use extern-inline
2665         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2666         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2667         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2668         New macros.
2669         * lib/openat.h:
2670         Replace all uses of 'static inline' with them.
2671         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2672         * modules/fchmodat, modules/fchownat, modules/fstatat:
2673         * modules/openat-h:
2674         (Depends-on):
2675         Add extern-inline.
2676         (configure.ac): Remove AC_C_INLINE.
2677
2678         acl, mbchar, priv-set: use extern-inline
2679         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2680         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2681         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2682         New macros.
2683         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2684         Replace all uses of 'static inline' with it.
2685         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2686         * m4/acl.m4 (gl_FUNC_ACL):
2687         * m4/mbchar.m4 (gl_MBCHAR):
2688         * m4/priv-set.m4 (gl_PRIV_SET):
2689         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2690         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2691         Add extern-inline.
2692
2693         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2694         * m4/sockets.m4 (gl_SOCKETS):
2695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2696         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2697         environments where it's already guaranteed to work, so we needn't
2698         check for it at 'configure'-time.
2699
2700         tls-tests: omit unnecessary 'inline'
2701         * tests/test-tls.c (perhaps_yield): No longer inline.
2702         Simplicity and portability trump efficiency in test cases.
2703
2704         utimens-tests: avoid unnecessary 'inline'
2705         * modules/fdutimensat-tests (configure.ac):
2706         * modules/futimens-tests (configure.ac):
2707         * modules/utimens-tests (configure.ac):
2708         * modules/utimensat-tests (configure.ac):
2709         Remove AC_C_INLINE.
2710         * tests/test-utimens-common.h (ctime_compare):
2711         No longer inline.  Simplicity and portability trump efficiency here.
2712
2713         misc: don't limit commentary to inline functions
2714         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2715         * lib/xalloc-oversized.h, lib/xsize.h:
2716         Contrast macros to functions in general, not just to inline functions,
2717         when the commentary does not apply only to inline functions.
2718
2719 2012-09-20  Jim Meyering  <meyering@redhat.com>
2720
2721         non-recursive-gnulib-prefix-hack: new module
2722         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2723         the file that originated in Bison.
2724         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2725         largely copied from a snippet that resided in bison's configure.ac.
2726         * modules/non-recursive-gnulib-prefix-hack: New file.
2727         * MODULES.html.sh (Support for maintaining and releasing projects):
2728         Add it.
2729
2730 2012-09-18  Jim Meyering  <meyering@redhat.com>
2731
2732         maint.mk: generalize _gl_tight_scope for non-recursive make
2733         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2734         that *.h would describe additional .h files in the directory
2735         specified by $(_gl_TS_dir).  I.e., add this...
2736         (_gl_TS_other_headers): New variable.
2737
2738         maint.mk: exempt trailing blanks found in "binary" files
2739         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2740         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2741         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2742
2743 2012-09-17  Jim Meyering  <meyering@redhat.com>
2744
2745         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2746         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2747         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2748         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2749
2750 2012-09-17  Jim Meyering  <meyering@redhat.com>
2751
2752         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2753         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2754         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2755         It is not in the same category as "exit (0)" or "exit (1)", and
2756         besides, I know of no symbolic name for that 77.  Reported by
2757         Richard W.M. Jones in
2758         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2759
2760 2012-09-17  Jim Meyering  <meyering@redhat.com>
2761
2762         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2763         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2764         all uses of #define, not just those that start in column 1.
2765         Richard W.M. Jones reported a false positive in
2766         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2767
2768 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2769
2770         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2771         * lib/localcharset.c (locale_charset) [DARWIN7]:
2772         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2773         as these two values are incompatible.  Problem reported by Max Horn.
2774         For more discussion, please see
2775         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2776
2777         doc: document sticky-EOF issue
2778         * doc/posix-functions/fgetc.texi (fgetc):
2779         * doc/posix-functions/fgets.texi (fgets):
2780         * doc/posix-functions/fread.texi (fread):
2781         * doc/posix-functions/fscanf.texi (fscanf):
2782         * doc/posix-functions/getc.texi (getc):
2783         * doc/posix-functions/getchar.texi (getchar):
2784         * doc/posix-functions/scanf.texi (scanf):
2785         Mention that glibc and default Solaris do not conform to
2786         C99 and POSIX-2001 or later, with respect to how getchar
2787         etc. behave when feof reports nonzero.
2788
2789 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2790
2791         poll: fix poll(0, NULL, msec)
2792         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2793         but nfd is 0.  In that case poll should behave like select.
2794
2795 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2796             Paolo Bonzini <bonzini@gnu.org>
2797
2798         poll: fix for systems that can't recv() on a non-socket
2799         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2800         is readable.  In this case POLLHUP will not be supported.
2801         * doc/posix-functions/poll.texi: Document this.
2802
2803 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2804
2805         poll/select: document portability problems not fixed by Gnulib.
2806         * doc/posix-functions/poll.texi: poll does not work well on
2807         pipes under Windows.  It has the same limitations as select on
2808         BeOS.
2809         * doc/posix-functions/select.texi: select does not work well
2810         on pipes under Windows.
2811
2812 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2813
2814         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2815         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2816         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2817         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2818
2819 2012-09-06  Eric Blake  <eblake@redhat.com>
2820
2821         net_if: give more details about the bug being fixed
2822         * doc/posix-headers/net_if.texi: Add clarification.
2823
2824 2012-09-05  Eric Blake  <eblake@redhat.com>
2825
2826         net_if: new module
2827         * modules/net_if: New module, borrowing ideas from netinet_in.
2828         * m4/net_if_h.m4: New file.
2829         * lib/net_if.in.h: Likewise.
2830         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2831         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2832         * tests/test-net_if.c: Make function checks conditional.
2833         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2834
2835 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2836
2837         readutmp: fix non-portable UT_PID use
2838         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2839         Use `UT_PID (u) > 0' as absolute condition.
2840
2841 2012-09-04  Jim Meyering  <meyering@redhat.com>
2842
2843         fts: reduce two or more trailing spaces to just one, usually
2844         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2845         or more slashes, trim all but the final one.  But if a name consists
2846         solely of two slashes, don't modify it.  If it consists solely of
2847         three or more slashes, strip all but one.
2848
2849         This is part of the solution to a minor problem with rm:
2850         it would print a bogus ELOOP diagnostic when failing to remove
2851         the slash-decorated name of a symlink-to-directory:
2852
2853             $ mkdir d && ln -s d s && env rm -r s/
2854             rm: cannot remove 's': Too many levels of symbolic links
2855
2856         With the change below and a trivial don't-trim-trailing-slashes
2857         adjustment to remove.c, it does this:
2858
2859             $ env rm -r s/
2860             rm: cannot remove 's/': Not a directory
2861
2862         Improved by: Eric Blake
2863
2864         fts: when there is no risk of overlap, use memcpy, not memmove
2865         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2866
2867 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2868
2869         stdbool: be more compatible with mixed C/C++ compiles
2870         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2871         Define to bool, true, false, respectively, as GCC's builtin
2872         stdbool.h does.  Problem reported by Michael Goffioul in
2873         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2874
2875 2012-08-28  Jim Meyering  <meyering@redhat.com>
2876
2877         revert last change: it was not needed
2878         * tests/test-vc-list-files-git.sh: There's already a test for
2879         a working git, just below.
2880
2881 2012-08-28  Jim Meyering  <meyering@redhat.com>
2882
2883         tests: test-vc-list-files-git.sh: skip if git is not available
2884         * tests/test-vc-list-files-git.sh: Skip this test when git is
2885         not available.
2886
2887 2012-08-26  Bruno Haible  <bruno@clisp.org>
2888
2889         gnulib-tool: Remove no-op option --no-changelog.
2890         * gnulib-tool (func_usage): Don't mention --no-changelog.
2891         (do_changelog): Remove variable.
2892         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2893
2894 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2895
2896         doc: remove fdl-1.2.texi
2897         It is no longer used or maintained, and its use of @acronym
2898         is problematic.  See the thread containing
2899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2900         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2901         * doc/old-licenses/fdl-1.2.texi: Remove.
2902
2903         execinfo: port to FreeBSD
2904         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2905         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2906         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2907         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2908
2909 2012-08-23  Jim Meyering  <meyering@redhat.com>
2910
2911         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2912         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2913         to placate gcc's -Wold-style-declaration.
2914
2915 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2916
2917         doc: do not use @acronym
2918         * doc/inet_ntoa.texi (inet_ntoa):
2919         * doc/parse-datetime.texi (Seconds since the Epoch)
2920         (Specifying time zone rules):
2921         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2922         Don't use @acronym.  Problem reported by John Darlington in
2923         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2924
2925 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2926
2927         stdnoreturn: port to newer GCCs
2928         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2929         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2930         Problem reported by Jim Meyering in
2931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2932         Also, rename the 'test' function to a void a clash with the
2933         already-supplied 'main' function; this fixes a bug that incorrectly
2934         rejected GCC 4.7.1's <stdnoreturn.h>.
2935         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2936         Document GCC problem.
2937
2938 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2939
2940         pipe-filter: fix comment typo
2941         * lib/pipe-filter.h: Mention correct function.
2942
2943 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2944
2945         execinfo: new module
2946         This is for Emacs.  Currently, it provides a no-effect stub
2947         on all platforms where it does not already work.
2948         It already works on glibc-based systems, and on Solaris 11.
2949         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2950         New files.
2951         * doc/glibc-headers/execinfo.texi (execinfo.h):
2952         * MODULES.html.sh (Misc): Document it.
2953
2954 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         extern-inline: support old GCC 'inline'
2957         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2958         if available.  This applies to GCC versions 2.7 through 4.2, or
2959         when newer GCC is using -fgnu89-inline.  The goal is to address
2960         some of the performance issues mentioned by Bruno Haible in
2961         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2962
2963 2012-08-20  Eric Blake  <eblake@redhat.com>
2964
2965         maint.mk: avoid redundant file name in message
2966         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2967         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2968         (sc_makefile_path_separator_check): Remove bogus $(ME).
2969
2970 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2971
2972         timer-time: fix link order when static linking on glibc
2973         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2974         _after_ -lrt so that it's significant.
2975
2976 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         timespec: omit unnecessary AC_C_INLINE
2979         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2980
2981         stat-time: omit unnecessary AC_C_INLINE
2982         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2983         Do not require AC_C_INLINE.
2984
2985         ignore-value: omit unnecessary AC_C_INLINE
2986         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2987
2988         sys_select: avoid 'static inline'
2989         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2990
2991         mktime: avoid 'static inline'
2992         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2993         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2994
2995 2012-08-19  Bruno Haible  <bruno@clisp.org>
2996
2997         gnulib-tool: Improve coding style.
2998         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2999         func_emit_lib_Makefile_am.
3000         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3001
3002 2012-08-19  Bruno Haible  <bruno@clisp.org>
3003
3004         gnulib-tool: Fix indentation.
3005         * gnulib-tool (func_import): Fix indentation.
3006
3007 2012-08-19  Bruno Haible  <bruno@clisp.org>
3008
3009         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3010         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3011         on the list of removed files.
3012
3013 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3014
3015         test-parse-datetime: avoid glibc leap-second glitch
3016         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3017         with the 2012 rules.  Problem reported by Bruce Dubbs in
3018         <http://bugs.gnu.org/12206>.
3019
3020 2012-08-14  Bruno Haible  <bruno@clisp.org>
3021
3022         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3023         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3024         from argument.
3025         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3026
3027 2012-08-14  Eric Blake  <eblake@redhat.com>
3028
3029         ldexp: relax license
3030         * modules/ldexp (License): Trivial relax, since the module only
3031         provides a permissively licensed m4 file.
3032
3033 2012-08-13  Bruno Haible  <bruno@clisp.org>
3034
3035         gnulib-tool: Fix persistence of --witness-c-macro option.
3036         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3037         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3038
3039 2012-08-11  Eric Blake  <eblake@redhat.com>
3040
3041         count-leading-zeros: use a lookup table on non-gcc compilers
3042         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3043         alternate implementation, suggested by Jim Meyering.
3044
3045 2012-08-10  Eric Blake  <eblake@redhat.com>
3046
3047         count-leading-zeros: new module
3048         * modules/count-leading-zeros: New module.
3049         * m4/count-leading-zeros.m4: New file.
3050         * lib/count-leading-zeros.h: Likewise.
3051         * modules/count-leading-zeros-tests: New test.
3052         * tests/test-count-leading-zeros.c: New file.
3053         * MODULES.html.sh (Integer arithmetic functions): Document it.
3054
3055 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3056             Jim Meyering  <meyering@redhat.com>
3057
3058         maintainer-makefile: Fix syntax error with dash.
3059         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3060         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3061
3062 2012-08-05  Jim Meyering  <meyering@redhat.com>
3063
3064         extern-inline: also ignore -Wmissing-declarations
3065         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3066         required with gcc-4.8.0-to-be.
3067
3068         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3069         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3070         for /error ?([^,]*)/.  This avoids false-positives for strings like
3071         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3072
3073 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3074
3075         gnumakefile: better interaction with Automake-NG
3076         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3077         Automake-NG always contain a definition of VPATH, even in non-VPATH
3078         builds (its value being simply '.' in that case).  So, in the
3079         'clean-GNUmakefile' rule, to determine whether running under a
3080         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3081         '$(VPATH)' expands to the empty string.
3082
3083 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3084
3085         base64: Use extern C scope in header file, for C++.
3086         * lib/base64.h: Add C++ namespace protection.
3087
3088 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         stat-time, timespec, u64: support naive out-of-dir builds
3091         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3092         Use '#include "foo.h"', not '#include <foo.h>', when including
3093         one's own interface.  This works better when configuring with
3094         out-of-directory builds, since packages need not add an
3095         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3096
3097 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3098
3099         utimens: use extern-inline
3100         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3101         * lib/utimens.h: Add copyright notice, since this is now large enough
3102         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3103         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3104         * modules/utimens (Depends-on): Add extern-inline.
3105
3106         u64: use extern-inline
3107         * lib/u64.c: New file.
3108         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3109         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3110         * modules/u64 (Files): Add lib/u64.c.
3111         (Depends-on): Add extern-inline.
3112         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3113         does that now.
3114         (lib_SOURCES): Add u64.c.
3115
3116         timespec: use extern-inline
3117         * lib/timespec.c: New file.
3118         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3119         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3120         * modules/timespec (Files): Add lib/timespec.c.
3121         (Depends-on): Add extern-inline.
3122         (lib_SOURCES): Add timespec.c.
3123
3124         stat-time: use extern-inline
3125         * lib/stat-time.c: New file.
3126         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3127         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3128         * modules/stat-time (Files): Add lib/stat-time.c.
3129         (Depends-on): Add extern-inline.
3130         (lib_SOURCES): Add stat-time.c.
3131
3132         extern-inline: new module
3133         * modules/extern-inline, m4/extern-inline.m4: New files.
3134         This is for better support of 'extern inline' a la ISO C99,
3135         with a portable alternative on compilers that do not support
3136         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3137         of the Emacs executable, when compiled with debugging disabled,
3138         which is a typical way that Emacs is built while developing.
3139
3140 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3141
3142         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3143         * build-aux/do-release-commit-and-tag: Move variable definitions
3144         together.
3145         ($branch): Instead of defaulting to "master", default to the current
3146         branch (as gnu-web-doc-update does).
3147         (help): Display the current values of the option arguments.
3148         * top/maint.mk (release-commit): New.
3149         * top/README-release: Simplify the corresponding step.
3150
3151 2012-07-30  Eric Blake  <eblake@redhat.com>
3152
3153         passfd: fix comment on recvfd
3154         * lib/passfd.c (recvfd): Fix comment.
3155         Reported by Jann Horn <jannhorn@googlemail.com>.
3156
3157 2012-07-30  Jim Meyering  <meyering@redhat.com>
3158
3159         maint.mk: avoid a sub-shell
3160         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3161
3162 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3163
3164         maint.mk: use silent-rules support from Automake
3165         * top/maint.mk (news-check, vc-diff-check, announcement)
3166         (no-submodule-changes, alpha beta stable, release-prep)
3167         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3168
3169 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3170
3171         maint.mk: provide a web-manual-update target
3172         * top/maint.mk: here.
3173         * top/README-release: Use it to simplify the web manual update step.
3174
3175 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3176
3177         README-release: shorten the circuit to post a news
3178         * top/README-release: Point directly to the news submission form.
3179
3180 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3181
3182         gnu-web-doc-update: fix --help
3183         * build-aux/gnu-web-doc-update: The information "top level" was written
3184         twice.
3185
3186 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3187
3188         maint.mk: absolute VPATH issue
3189         * top/maint.mk (release-prep): Help Git find .git/.
3190         From Jim Meyering.
3191
3192 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3193
3194         gitlog-to-changelog: fix previous change
3195         * build-aux/gitlog-to-changelog: Fix condition.
3196         Add missing ";".
3197
3198 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3199
3200         gitlog-to-changelog: don't expect .git to be in $srcdir
3201         Reported by Bruno Haible.
3202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3203         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3204         Use it.
3205
3206 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3207
3208         maint.mk: absolute VPATH build fix
3209         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3210         $(srcdir) is not a parent of $(builddir).
3211
3212 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3213
3214         clean-temp: Fix memory leak.
3215         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3216         'files' members of tmpdir.
3217
3218 2012-07-27  Jim Meyering  <meyering@redhat.com>
3219
3220         maint.mk: new rule: refresh-gnulib-patches
3221         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3222         Use this rule to refresh them.
3223         * top/maint.mk (refresh-gnulib-patches): New rule.
3224
3225 2012-07-24  Bruno Haible  <bruno@clisp.org>
3226
3227         gnulib-tool: Fix handling of inctests variable.
3228         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3229         Reported by Nick Bowler <nbowler@elliptictech.com>.
3230
3231 2012-07-22  Bruno Haible  <bruno@clisp.org>
3232
3233         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3234         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3235         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3236         Remove exemption for getpass.h.
3237         Suggested by Eric Blake.
3238
3239 2012-07-20  Eric Blake  <eblake@redhat.com>
3240
3241         verify: document conflict with -Wnested-externs
3242         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3243
3244         maint.mk: forbid exit(-1)
3245         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3246
3247 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3248
3249         fsusage: port back to Solaris
3250         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3251         error (fsd not declared) on Solaris 10.  Reported privately by
3252         Andrew Borodin.
3253
3254 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3255
3256         gnu-web-doc-update: fix error messages
3257         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3258
3259         gnu-web-doc-update: check the requirements.
3260         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3261         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3262         * build-aux/bootstrap (find_tool): Comment change.
3263
3264 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3265
3266         maint.mk: minor simplication.
3267         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3268         for default values.
3269
3270 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3271
3272         gitlog-to-changelog: VPATH build issues
3273         If builddir is not a subdirectory of srcdir, running git from it will
3274         fail.
3275         * build-aux/gitlog-to-changelog (--srcdir): New option.
3276
3277 2012-07-15  Bruno Haible  <bruno@clisp.org>
3278
3279         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3280         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3281         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3282         Remove exemption for fpending.h.
3283         Suggested by Eric Blake.
3284
3285 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3286
3287         pthread_sigmask: fix bug on FreeBSD 9
3288         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3289         Include string.h.
3290         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3291         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3292         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3293         but pthread_sigmask (1729, NULL, NULL) returns zero.
3294         See <http://bugs.gnu.org/11884>.
3295         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3296         by inspecting whether the main call changed the old mask.
3297
3298 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3299
3300         README-release: make it more legible
3301         * top/README-release: Improve typography slightly.
3302
3303 2012-07-15  Jim Meyering  <meyering@redhat.com>
3304
3305         maint: require that each sc_... command start with "@"
3306         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3307         "make sc_maint" helps us avoid this nit.
3308
3309 2012-07-15  Jim Meyering  <meyering@redhat.com>
3310
3311         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3312         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3313
3314 2012-07-13  Eric Blake  <eblake@redhat.com>
3315
3316         maint.mk: new syntax check for HAVE_DECL checks
3317         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3318         * cfg.mk
3319         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3320         Exempt some false positives.
3321         Based on a report by Karel Zak.
3322
3323         argp: make HAVE_DECL usage consistent
3324         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3325         macros, not whether they are defined.
3326         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3327         convention with other declaration checks.
3328         Reported by Karel Zak, with suggestions from Paul Eggert.
3329
3330         stat-time: relax license to LGPLv2+
3331         * modules/stat-time (License): Relax, with consent of all authors.
3332
3333         strndup: fix m4 usage error
3334         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3335         defined, to either 0 or 1.
3336         Reported by Karel Zak.
3337
3338 2012-07-11  Jim Meyering  <meyering@redhat.com>
3339
3340         maint: enable the sc_avoid_if_before_free syntax-check rule
3341         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3342         (if_before_free_offenders_): Define.
3343         (if_before_free_basename_re_): Define.
3344         Exempt current files with useless if-before-free.
3345
3346 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3347
3348         gettext: do not assume '#define ... defined ...' behavior
3349         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3350         Do not use '#define FOO ... defined BAR ...', as the C standard says
3351         it's not portable to expect that this works after macro expansion.
3352         Problem reported for gzip by Steven M. Schweda in
3353         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3354
3355 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         getloadavg: clean out old Emacs and Autoconf cruft
3358         See Glenn Morris in <http://bugs.gnu.org/11905>.
3359         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3360         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3361         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3362         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3363
3364 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3365
3366         bootstrap: let warn be like tests/init.sh's warn_
3367         Reported by Jim Meyering.
3368         * build-aux/bootstrap (warn): Remove, replaced by...
3369         (warnf_, warn_): these.
3370         Adjust callers.
3371         Shorten messages that no longer fit in 80 columns.
3372
3373 2012-07-09  Bruno Haible  <bruno@clisp.org>
3374
3375         getopt: Simplify after Emacs changed.
3376         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3377         (gl_GETOPT_IFELSE): Remove macro.
3378
3379 2012-07-09  Jim Meyering  <meyering@redhat.com>
3380
3381         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3382         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3383
3384         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3385         Bugs in both of those conspired to make the
3386         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3387         _sc_search_regexp's handling of non-empty $in_files would filter
3388         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3389         choice of in_files value meant there would be no match in most
3390         projects, due to the presence of two or more Makefile.in files.
3391         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3392         Fix a bug in how a non-empty $$in_files was processed:
3393         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3394         in spite of the name, it's a regexp, not a list of file names.
3395
3396 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3397
3398         getloadavg, getopt: fix commentary re configure.in
3399         Autoconf is deprecating the name 'configure.in', so change it to
3400         to the new name 'configure.ac' in a couple of places.
3401         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3402         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3403         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3404         Emacs has renamed it to configure.ac, and it no longer refers
3405         to these macros anyway.
3406
3407         timespec: mark functions with const attributes
3408         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3409         Mark with _GL_ATTRIBUTE_CONST.
3410
3411 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3412
3413         canonicalize[-lgpl]: handle "guessing" values when cross-building
3414         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3415         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3416         matches "*yes" instead of just "yes".  Regression introduced in commit
3417         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3418
3419 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3420             Bruno Haible  <bruno@clisp.org>
3421
3422         canonicalize: make the right guess when cross-compiling to GNU
3423         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3424         determine whether cross-compiling to glibc systems, so as to
3425         include GNU/Hurd.
3426
3427 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3428
3429         timespec-sub: avoid duplicate include
3430         * lib/timespec-sub.c: Do not include <config.h> twice.
3431         Reported by Juanma Barranquero.
3432
3433 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3434
3435         bootstrap: use a more consistent error reporting scheme
3436         * build-aux/bootstrap (warn, die): New.
3437         Use them.
3438
3439 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3440
3441         sys_time: allow too-wide tv_sec
3442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3443         timeval even if tv_sec is wider than time_t.  This allows
3444         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3445         as without this patch gnulib replaces struct timeval
3446         and OpenBSD futimes therefore has a type mismatch.
3447         * doc/posix-headers/sys_time.texi: Mention this.
3448
3449         pthread: check for both pthread_create and pthread_join
3450         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3451         alter the check so that it tests for both pthread_create and
3452         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3453         Suggested by Bruno Haible and Richard Yao in
3454         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3455
3456         parse-datetime: doc tuneup
3457         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3458         spacing issues.
3459
3460 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3461
3462         do-release-commit-and-tag: fix the previous commit
3463         * build-aux/do-release-commit-and-tag: Actually the test was right,
3464         but the comment and the error message were misleading.
3465         Fix comment, and improve error message.
3466         Perform check first, so that NEWS is not modified uselessly.
3467
3468         do-release-commit-and-tag: fix typo
3469         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3470         _not_ start with a stub.
3471
3472 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         pthread: check for pthread_create, not pthread_join
3475         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3476         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3477         pthread_join in libc.  I hope this removes the need for all the
3478         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3479         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3480
3481 2012-07-04  Jim Meyering  <meyering@redhat.com>
3482
3483         parse-datetime: fix failure to diagnose invalid input
3484         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3485         rather than diagnosing the invalid input.  Now it reports this:
3486         date: invalid date '\260'
3487         * lib/parse-datetime.y (to_uchar): Define.
3488         (yylex): Don't sign-extend "other" bytes.
3489         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3490         Thanks to Bruno Haible for the patch to this file.
3491         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3492         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3493
3494 2012-07-03  Jim Meyering  <meyering@redhat.com>
3495
3496         bootstrap: do not require now-removed build-aux/missing
3497         Now that build-aux/missing is, er, missing, bootstrap would
3498         silently fail.
3499         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3500         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3501         no longer part of gnulib.
3502         Diagnose the failure.
3503
3504 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3505
3506         alloca: add support for HP NonStop TNS/E native
3507         * lib/alloca.in.h (alloca): Support the new host.
3508         From a suggestion by Joachim Schmitz in
3509         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3510
3511 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3512
3513         fsusage: remove code not needed on non GNU/Linux systems.
3514
3515         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3516         Don't include headers no longer needed in this case.
3517         * lib/fsusage.c [STAT_STATVFS &&
3518         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3519         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3520
3521 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3522
3523         fsusage: include files needed for glibc 2.6 fallback
3524         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3525         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3526         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3527         Problem reported by Ludovic Courtès in
3528         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3529
3530         fsusage: avoid needless check on GNU/Linux
3531         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3532         on GNU/Linux systems, since it can't possibly work.
3533
3534 2012-07-01  Bruno Haible  <bruno@clisp.org>
3535
3536         log: Fix an autoconf >= 2.64 warning.
3537         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3538         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3539
3540 2012-06-28  Bruno Haible  <bruno@clisp.org>
3541
3542         log10f: Fix possible configuration problem.
3543         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3544         $LOGF_LIBM.
3545         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3546
3547 2012-06-28  Bruno Haible  <bruno@clisp.org>
3548
3549         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3550         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3551         not gl_cv_func_unlink_works.
3552         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3553
3554 2012-06-27  Eric Blake  <eblake@redhat.com>
3555
3556         config: drop scripts that automake says are not independent
3557         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3558         * build-aux/elisp-comp: Delete.
3559         * build-aux/missing: Likewise.
3560         * build-aux/ylwrap: Likewise.
3561         * modules/elisp-comp: Likewise.
3562         * MODULES.html.sh: Drop mention of elisp-comp.
3563         * NEWS: Mention this.
3564
3565 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         root-uid: new module
3568         This is for portability to Tandem's NonStop Kernel.
3569         * lib/root-uid.h, modules/root-uid: New files.
3570         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3571         * lib/write-any-file.c, tests/test-sethostname2.c:
3572         Include "root-uid.h".
3573         * lib/euidaccess.c (euidaccess):
3574         * lib/pt_chown.c (main):
3575         * lib/unlinkdir.c (cannot_unlink_dir):
3576         * lib/write-any-file.c (can_write_any_file):
3577         * m4/mknod.m4 (gl_FUNC_MKNOD):
3578         * tests/test-sethostname2.c (geteuid, main):
3579         Don't assume ROOT_UID == 0.
3580         * modules/euidaccess (Depends-on):
3581         * modules/pt_chown (Depends-on):
3582         * modules/sethostname-tests (Depends-on):
3583         * modules/unlinkdir (Depends-on):
3584         * modules/write-any-file (Depends-on):
3585         Add root-uid.
3586
3587         regex: use locale-independent comparison for codeset name
3588         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3589         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3590         for codeset name.
3591         * lib/regex_internal.h: Do not include <strings.h>, since we
3592         no longer use strcasecmp.
3593         * modules/regex (Depends-on): Remove strcase.
3594
3595 2012-06-23  Bruno Haible  <bruno@clisp.org>
3596
3597         getopt-posix: No longer guarantee that option processing is resettable.
3598         * doc/posix-functions/getopt.texi: Drop description of problem with
3599         internal state. Fix info about mingw and msvc9.
3600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3601         option processing by getopt(). Run three test programs instead of one.
3602         Simplify cross-compilation guess.
3603         * NEWS: Mention the change.
3604         Reported by Rich Felker <dalias@aerifal.cx>.
3605
3606 2012-06-26  Bruno Haible  <bruno@clisp.org>
3607
3608         argp, regex: Ensure strcasecmp gets declared.
3609         * lib/argp-help.c: Include <strings.h>.
3610         * lib/regex_internal.h: Likewise.
3611         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3612
3613 2012-06-24  Bruno Haible  <bruno@clisp.org>
3614
3615         ptsname_r: Make it consistent with ptsname on AIX.
3616         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3617         implementation as for OSF/1.
3618         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3619         a pty master.
3620
3621         ptsname_r: Make it consistent with ptsname on OSF/1.
3622         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3623         OSF/1.
3624
3625 2012-06-24  Bruno Haible  <bruno@clisp.org>
3626
3627         ttyname_r: Fix result on OSF/1, Solaris.
3628         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3629
3630 2012-06-24  Bruno Haible  <bruno@clisp.org>
3631
3632         ptsname_r: Add support for Solaris.
3633         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3634         Solaris.
3635
3636         ptsname_r: Fix test failure on native Windows.
3637         * modules/ptsname_r (Depends-on): Add isatty.
3638
3639         ptsname_r: Fix test failures on IRIX, Solaris.
3640         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3641         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3642         accordingly.
3643         * lib/ptsname_r.c: Include <fcntl.h>.
3644         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3645         set errno if fd is invalid.
3646         * tests/test-isatty.c (main): Update comments.
3647
3648 2012-06-24  Bruno Haible  <bruno@clisp.org>
3649
3650         ptsname test: Extend test.
3651         * tests/test-ptsname.c: Include <errno.h>.
3652         (main): Test behaviour with invalid file descriptor.
3653
3654 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3655
3656         time: fix obsolete comment
3657         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3658         reference to HAVE_STRUCT_TIMESPEC in comment.
3659
3660 2012-06-23  Bruno Haible  <bruno@clisp.org>
3661
3662         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3664         does not handle abbreviated long options with equivalent
3665         disambiguations, set gl_replace_getopt to yes.
3666         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3667
3668 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3669
3670         time_r: fix typo that always overrode localtime_r decl
3671         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3672         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3673         not in a standard include.
3674
3675 2012-06-22  Bruno Haible  <bruno@clisp.org>
3676
3677         Write "Mac OS X" instead of "MacOS X".
3678         * README: Write "Mac OS X" instead of "MacOS X".
3679         * build-aux/bootstrap: Likewise.
3680         * build-aux/install-reloc: Likewise.
3681         * lib/acl-internal.h: Likewise.
3682         * lib/acl_entries.c: Likewise.
3683         * lib/argp-ba.c: Likewise.
3684         * lib/argp-pv.c: Likewise.
3685         * lib/config.charset: Likewise.
3686         * lib/copy-acl.c: Likewise.
3687         * lib/csharpexec.c: Likewise.
3688         * lib/euidaccess.c: Likewise.
3689         * lib/fbufmode.c: Likewise.
3690         * lib/fflush.c: Likewise.
3691         * lib/file-has-acl.c: Likewise.
3692         * lib/filemode.h: Likewise.
3693         * lib/fpurge.c: Likewise.
3694         * lib/freadable.c: Likewise.
3695         * lib/freadahead.c: Likewise.
3696         * lib/freading.c: Likewise.
3697         * lib/freadptr.c: Likewise.
3698         * lib/freadseek.c: Likewise.
3699         * lib/fseeko.c: Likewise.
3700         * lib/fseterr.c: Likewise.
3701         * lib/fsusage.c: Likewise.
3702         * lib/fwritable.c: Likewise.
3703         * lib/fwriting.c: Likewise.
3704         * lib/get-rusage-as.c: Likewise.
3705         * lib/get-rusage-data.c: Likewise.
3706         * lib/getdomainname.c: Likewise.
3707         * lib/idpriv-drop.c: Likewise.
3708         * lib/idpriv-droptemp.c: Likewise.
3709         * lib/localcharset.c: Likewise.
3710         * lib/locale.in.h: Likewise.
3711         * lib/localename.c: Likewise.
3712         * lib/mbsrtowcs-state.c: Likewise.
3713         * lib/nproc.c: Likewise.
3714         * lib/passfd.c: Likewise.
3715         * lib/posix_openpt.c: Likewise.
3716         * lib/printf-parse.c: Likewise.
3717         * lib/progreloc.c: Likewise.
3718         * lib/safe-read.h: Likewise.
3719         * lib/safe-write.h: Likewise.
3720         * lib/sched.in.h: Likewise.
3721         * lib/set-mode-acl.c: Likewise.
3722         * lib/signal.in.h: Likewise.
3723         * lib/stdint.in.h: Likewise.
3724         * lib/stdio-impl.h: Likewise.
3725         * lib/stdlib.in.h: Likewise.
3726         * lib/strtod.c: Likewise.
3727         * lib/sys_select.in.h: Likewise.
3728         * lib/tcgetsid.c: Likewise.
3729         * lib/unistd.in.h: Likewise.
3730         * lib/unlockpt.c: Likewise.
3731         * lib/vasnprintf.c: Likewise.
3732         * lib/vma-iter.c: Likewise.
3733         * lib/wcsrtombs-state.c: Likewise.
3734         * m4/acl.m4: Likewise.
3735         * m4/acosl.m4: Likewise.
3736         * m4/asinl.m4: Likewise.
3737         * m4/atanl.m4: Likewise.
3738         * m4/c-stack.m4: Likewise.
3739         * m4/cosl.m4: Likewise.
3740         * m4/expl.m4: Likewise.
3741         * m4/extensions.m4: Likewise.
3742         * m4/fdatasync.m4: Likewise.
3743         * m4/fmal.m4: Likewise.
3744         * m4/frexp.m4: Likewise.
3745         * m4/frexpf.m4: Likewise.
3746         * m4/frexpl.m4: Likewise.
3747         * m4/fsusage.m4: Likewise.
3748         * m4/getdomainname.m4: Likewise.
3749         * m4/getloadavg.m4: Likewise.
3750         * m4/getopt.m4: Likewise.
3751         * m4/gettext.m4: Likewise.
3752         * m4/gnulib-common.m4: Likewise.
3753         * m4/intdiv0.m4: Likewise.
3754         * m4/intlmacosx.m4: Likewise.
3755         * m4/largefile.m4: Likewise.
3756         * m4/ldexpl.m4: Likewise.
3757         * m4/link-follow.m4: Likewise.
3758         * m4/locale-ar.m4: Likewise.
3759         * m4/locale-fr.m4: Likewise.
3760         * m4/locale-ja.m4: Likewise.
3761         * m4/locale-tr.m4: Likewise.
3762         * m4/locale-zh.m4: Likewise.
3763         * m4/locale_h.m4: Likewise.
3764         * m4/lock.m4: Likewise.
3765         * m4/logl.m4: Likewise.
3766         * m4/mathfunc.m4: Likewise.
3767         * m4/minus-zero.m4: Likewise.
3768         * m4/mktime.m4: Likewise.
3769         * m4/mmap-anon.m4: Likewise.
3770         * m4/multiarch.m4: Likewise.
3771         * m4/nanosleep.m4: Likewise.
3772         * m4/nocrash.m4: Likewise.
3773         * m4/poll.m4: Likewise.
3774         * m4/printf-frexpl.m4: Likewise.
3775         * m4/printf.m4: Likewise.
3776         * m4/signbit.m4: Likewise.
3777         * m4/sinl.m4: Likewise.
3778         * m4/sqrtl.m4: Likewise.
3779         * m4/strerror_r.m4: Likewise.
3780         * m4/tanl.m4: Likewise.
3781         * m4/threadlib.m4: Likewise.
3782         * m4/ttyname_r.m4: Likewise.
3783         * m4/unlink.m4: Likewise.
3784         * m4/visibility.m4: Likewise.
3785         * m4/wcwidth.m4: Likewise.
3786         * tests/minus-zero.h: Likewise.
3787         * tests/test-alloca-opt.c: Likewise.
3788         * tests/test-copy-acl.sh: Likewise.
3789         * tests/test-copy-file.sh: Likewise.
3790         * tests/test-fdatasync.c: Likewise.
3791         * tests/test-file-has-acl.sh: Likewise.
3792         * tests/test-flock.c: Likewise.
3793         * tests/test-fsync.c: Likewise.
3794         * tests/test-localename.c: Likewise.
3795         * tests/test-malloca.c: Likewise.
3796         * tests/test-nonblocking-pipe.h: Likewise.
3797         * tests/test-nonblocking-socket.h: Likewise.
3798         * tests/test-openpty.c: Likewise.
3799         * tests/test-posix_openpt.c: Likewise.
3800         * tests/test-ptsname.c: Likewise.
3801         * tests/test-ptsname_r.c: Likewise.
3802         * tests/test-sameacls.c: Likewise.
3803         * tests/test-select.h: Likewise.
3804         * tests/test-set-mode-acl.sh: Likewise.
3805         * tests/test-snprintf-posix.h: Likewise.
3806         * tests/test-sprintf-posix.h: Likewise.
3807         * tests/test-strtod.c: Likewise.
3808         * tests/test-time.c: Likewise.
3809         * tests/test-vasnprintf-posix.c: Likewise.
3810         * tests/test-vasprintf-posix.c: Likewise.
3811         * doc/acl-resources.txt: Likewise.
3812         * doc/**/*.texi: Likewise.
3813         Reported by Max Horn <max@quendi.de>.
3814
3815 2012-06-22  Bruno Haible  <bruno@clisp.org>
3816
3817         grantpt: Relax requirement regarding invalid file descriptors.
3818         * lib/grantpt.c: Don't include <fcntl.h>.
3819         (grantpt): Don't verify the validity of the file descriptor.
3820         * modules/grantpt (Depends-on): Remove fcntl-h.
3821         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3822         file descriptors.
3823         * doc/posix-functions/grantpt.texi: Document more platforms on which
3824         grantpt succeeds for invalid file descriptors.
3825         Reported by Rich Felker <dalias@aerifal.cx>.
3826
3827 2012-06-22  Bruno Haible  <bruno@clisp.org>
3828
3829         fbufmode test: Don't test unportable behaviour.
3830         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3831         (main): Invoke it three times.
3832         Reported by Szabolcs Nagy <nsz@port70.net>
3833         and Rich Felker <dalias@aerifal.cx>.
3834
3835 2012-06-21  Bruno Haible  <bruno@clisp.org>
3836
3837         gnulib-tool: Refactor inctests variable.
3838         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3839         (func_modules_transitive_closure,
3840         func_modules_transitive_closure_separately,
3841         func_import, func_create_testdir): Update.
3842
3843         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3844         * gnulib-tool: Accept option --without-tests.
3845         (func_usage): Document --without-tests option. Rearrange.
3846         (inctests): Normalize according to the mode.
3847         * NEWS: Mention the change.
3848         Suggested by Simon Josefsson.
3849
3850 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3851
3852         parse-duration test: Avoid spurious output.
3853         * tests/test-parse-duration.sh: Reindent with leading tabs.
3854
3855 2012-06-21  Jim Meyering  <meyering@redhat.com>
3856
3857         maint: disable the strncpy prohibition
3858         * cfg.mk: Do not prohibit strncpy here.
3859
3860 2012-06-21  Bruno Haible  <bruno@clisp.org>
3861
3862         nonblocking: Avoid compilation error on mingw64.
3863         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3864         fscanf.
3865         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3866         * modules/vfscanf (configure.ac): Likewise.
3867         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3868         definition only if stdio.h has prepared it.
3869         Reported by Daniel P. Berrange <berrange@redhat.com>.
3870
3871 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3872
3873         gnulib-tool: Use readlink if it is available.
3874         * gnulib-tool (func_readlink): Choose function more appropriately.
3875
3876 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3877
3878         posixtm-tests: port to buggy compiler
3879         Problem reported by Simon Josefsson in
3880         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3881         * modules/posixtm-tests (Depends-on): Add stdint.
3882         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3883         Now of type int_least64_t, not int64_t, both because that's
3884         what INT64_C returns and because int_least64_t works even
3885         on 72-bit hosts.
3886         (T): Use INT64_C on constants outside the traditional int range,
3887         to work around compiler bug noted by Simon.
3888
3889         mktime: fix integer overflow in 'configure'-time test
3890         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3891         after integer overflow.  Problem reported by Rich Felker in
3892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3893         Also, don't look for further instances of a bug if we've already
3894         found one instance; this helps 'configure' run faster.
3895
3896 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3897
3898         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3899         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3900         GetVersionEx correctly.
3901         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3902
3903 2012-06-20  Bruno Haible  <bruno@clisp.org>
3904
3905         fdopen: Allow implementations that don't reject invalid fd arguments.
3906         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3907         succeeds.
3908         Reported by Rich Felker <dalias@aerifal.cx>.
3909
3910 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3911
3912         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3913         bring in LIBINTL.
3914
3915 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3916
3917         init.sh: do not rely on autoupated PWD
3918         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3919         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3920         Although Nelson's bug was not necessarily fixed by this patch,
3921         it seems wise to make the change for safety.
3922         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3923         automagically after 'cd'; this is not reliable on older shells.
3924         (setup_): Fail if we cannot cd to temporary directory.
3925
3926 2012-06-19  Bruno Haible  <bruno@clisp.org>
3927
3928         stat, fstat: Avoid warnings on mingw64.
3929         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3930         redefining.
3931         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3932         Reported by Daniel P. Berrange <berrange@redhat.com>.
3933
3934 2012-06-19  Bruno Haible  <bruno@clisp.org>
3935
3936         stdioext: Add support for musl libc.
3937
3938         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3939         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3940
3941         * m4/fseterr.m4: New file.
3942         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3943         function exists.
3944         * modules/fseterr (Files): Add m4/fseterr.m4.
3945         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3946         __fseterr does not exist.
3947         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3948
3949         * lib/freadable.h: Update comment.
3950
3951         * lib/fwritable.h: Update comment.
3952
3953         * lib/freading.h: Update comment.
3954
3955         * lib/fwriting.h: Update comment.
3956
3957         * m4/freadahead.m4: New file.
3958         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3959         that function exists.
3960         * modules/freadahead (Files): Add m4/freadahead.m4.
3961         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3962         __freadahead does not exist.
3963         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3964
3965         * m4/freadptr.m4: New file.
3966         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3967         function exists.
3968         * modules/freadptr (Files): Add m4/freadptr.m4.
3969         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3970         __freadptr does not exist.
3971         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3972
3973         * m4/freadseek.m4: New file.
3974         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3975         exists.
3976         * modules/freadseek (Files): Add m4/freadseek.m4.
3977         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3978
3979         * lib/fpurge.c (fpurge): Update comment.
3980
3981         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3982
3983 2012-06-19  Bruno Haible  <bruno@clisp.org>
3984
3985         *printf-posix: Put more info into config.log.
3986         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3987         exit code into config.log.
3988
3989 2012-06-19  Bruno Haible  <bruno@clisp.org>
3990
3991         getopt-gnu: Fix exit code overflow in autoconf test.
3992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3993         to keep them below < 128.
3994
3995 2012-06-17  Jim Meyering  <meyering@redhat.com>
3996
3997         maint.mk: fix typo in code to derive GPG key at release time
3998         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3999
4000 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         regex: avoid warning when pointers are not long
4003         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4004         and uintptr_t, not long, for portability to hosts where pointers and
4005         long have different sizes.  Issue noted by Daniel P. Berrange in
4006         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4007         and fix suggested by Bruno Haible in
4008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4009
4010 2012-06-17  Bruno Haible  <bruno@clisp.org>
4011
4012         dummy: Relicense into the public domain.
4013         * modules/dummy (License): Set to "public domain".
4014         Suggested by Reuben Thomas.
4015
4016 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4017
4018         announce-gen: VPATH issues
4019         * build-aux/announce-gen (--srcdir): New option, used to trim the
4020         $srcdir part of the path from $builddir to NEWS.
4021         * top/maint.mk (announcement): Adjust.
4022
4023 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4024
4025         gnu-web-doc-update: VPATH builds
4026         * build-aux/gnu-web-doc-update (--builddir): New option.
4027         Revamp the handling of options.
4028         Prefer $(...) to `...`.
4029         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4030         the template, and it is GNU mktemp specific.
4031         Prefer set -e to long series of &&.
4032         Restore the initial git branch, not "master".
4033         Properly initialize submodules (don't rely only on bootstrap).
4034         Do not reconfigure blindly, use config.status.
4035         * top/README-release: Update instructions for gnu-web-doc-update.
4036
4037 2012-06-11  Jim Meyering  <meyering@redhat.com>
4038
4039         maint.mk: revert most of the previous change re "all these"
4040         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4041         For rationale, see the discussion at
4042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4043
4044 2012-06-10  Karl Berry  <karl@gnu.org>
4045
4046         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4047
4048         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4049
4050 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4051
4052         parse-duration: Relicense under LGPLv2+.
4053         * modules/parse-duration (License): Change to LGPLv2+.
4054
4055 2012-06-10  Jim Meyering  <meyering@redhat.com>
4056
4057         maint.mk: prohibit common grammar error: "all these"
4058         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4059         the list of prohibited word sequences.  It should be "all of these".
4060         * lib/tempname.c (__gen_tempname): Fix one of them.
4061
4062 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4063
4064         do-release-commit-and-tag: support VPATH builds
4065         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4066         (noteworthy): Defined earlier to factor its value.
4067         (noteworthy_stub): New.
4068         Use it to factor.
4069         (help_version): Split into...
4070         (help, version): these.
4071         Adjust the option processing part.
4072         Support "--option=value" in addition to "--option value".
4073         (builddir): New.
4074         (--builddir): New option.
4075         * top/README-release: Document this.
4076         Reword slightly so that the reader cannot understand that he
4077         has to do these steps before calling do-release-commit-and-tag.
4078
4079 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4080
4081         readme-release: also require announce-gen and maintainer-makefile
4082         * modules/readme-release (Depends-on): here.
4083         * modules/announce-gen, modules/do-release-commit-and-tag,
4084         modules/gnu-web-doc-update, modules/maintainer-makefile
4085         (Description): Point to readme-release.
4086
4087 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4088
4089         maint.mk: fix VPATH issues.
4090         * top/maint.mk (news-check): GNU Make understand $< very well.
4091         (release-prep): NEWS is in $(srcdir).
4092
4093 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4094
4095         readme-release: require the promoted modules.
4096         * modules/readme-release (Depends-on): Add
4097         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4098         in this text.
4099
4100 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4101             Bruno Haible  <bruno@clisp.org>
4102
4103         error, strerror-override: Support mingw64 from Fedora 17.
4104         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4105         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4106         EINPROGRESS.
4107         * lib/strerror-override.h (strerror_override): Test it.
4108         * lib/strerror-override.c (strerror_override): Likewise.
4109         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4110
4111 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4112             Bruno Haible  <bruno@clisp.org>
4113
4114         error, strerror-override: Support mingw64 from Fedora 17.
4115         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4116         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4117         * lib/strerror-override.h (strerror_override): Test it.
4118         * lib/strerror-override.c (strerror_override): Likewise.
4119
4120 2012-06-03  Bruno Haible  <bruno@clisp.org>
4121
4122         error, strerror-override: Support new errno values from POSIX:2008.
4123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4124         ENOTRECOVERABLE.
4125         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4126         platforms.
4127         * lib/strerror-override.c (strerror_override): Conditionalize the
4128         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4129         * lib/strerror-override.h (strerror_override): Declare also if
4130         GNULIB_defined_EOWNERDEAD is defined.
4131         * tests/test-errno.c (e130, e131): New variables.
4132         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4133         ENOTRECOVERABLE.
4134         Reported by Paolo Bonzini.
4135
4136 2012-05-31  Jim Meyering  <meyering@redhat.com>
4137
4138         savewd: add missing dependency on sys_wait module
4139         * modules/savewd (Depends-on): Add sys_wait, needed at least
4140         for MSVC.  Report and suggested change by Michael Goffioul.
4141
4142 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4143
4144         system-quote-tests: port to CentOS 5
4145         Problem reported by Tom G. Christensen in
4146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4147         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4148
4149 2012-05-29  Jim Meyering  <meyering@redhat.com>
4150
4151         maint: fix typos in comments and ChangeLog
4152         Culprits identified and fixed mostly automatically using these commands:
4153         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4154         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4155         using http://github.com/lyda/misspell-check
4156         * ChangeLog: Fix typos.
4157         * doc/solaris-versions: Likewise.
4158         * lib/regexec.c (re_search_stub): Likewise.
4159         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4160
4161 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4162
4163         manywarnings: remove duplicate -Wmultichar entry
4164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4165         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4166         so keep the entry marked as documented.
4167
4168 2012-05-27  Karl Berry  <karl@gnu.org>
4169
4170         * config/srclist.txt (mktime.c): remove last libc sync,
4171         perhaps just temporarily.
4172
4173 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4174
4175         regex: don't assume uint64_t or uint32_t
4176         * lib/regcomp.c (init_word_char): Don't assume that the types
4177         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4178         them, and on some 32-bit compilers there is no uint64_t.
4179         Problem reported by Gianluigi Tiesi in
4180         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4181
4182 2012-05-25  Jim Meyering  <meyering@redhat.com>
4183
4184         maint.mk: add strncpy-prohibiting syntax-check rule
4185         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4186
4187 2012-05-24  Jim Meyering  <meyering@redhat.com>
4188
4189         maint.mk: compute $(gpg_key_ID) more portably
4190         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4191         That use of sed is not portable to some fringe systems.
4192         Reported by Paul Eggert in
4193         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4194
4195 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4196
4197         mktime: sync from glibc
4198         * config/srclist.txt: Uncomment mktime.c.
4199         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4200         First, indent with tabs, since glibc uses tabs and doesn't want to
4201         change and we'd rather be identical to glibc.  Also, two small
4202         coding changes:
4203         (isdst_differ): Use &&, not &, as && is the usual style.
4204         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4205         for clarity.
4206
4207 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4208
4209         announce-gen: du -h is more portable than du --human
4210         * build-aux/announce-gen (sizes): Invoke du with -h instead
4211         of --human.  Accept leading white space in its output.
4212
4213 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4214
4215         announce-gen: Improve diagnostics.
4216         * build-aux/announce-gen: When parsing command line options,
4217         prefer "announce-gen: option --release-type requires an argument"
4218         to "Option release-type requires an argument".
4219
4220 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4221
4222         maint.mk: gpg_key_ID: use sed more portably
4223         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4224         the closing brace.
4225         (refresh-po): Fuse two sed invocations into one.
4226
4227 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4228
4229         gitlog-to-changelog: support the log message format used in Bison.
4230         * build-aux/gitlog-to-changelog: Support --strip-tab and
4231         --strip-cherry-picked.
4232
4233 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4234
4235         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4236         the rest of the current time slice to another thread in the current
4237         process. So if the thread that feeds the file decscriptor we're
4238         polling is not in the current process, we get busy-waiting.
4239         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4240         Patch from Theodore Leblond.
4241         * lib/select.c: Split polling out of the loop that sets the output
4242         fd_sets.  Check for zero result and loop if the wait timeout is
4243         infinite.
4244
4245 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4246
4247         select: Fix build error on IRIX 6.5.
4248         * lib/select.c: Include stddef.h for NULL.
4249
4250 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4251
4252         gc: fix libgcrypt detection on older machines.
4253         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4254         copyright years because the file has been distributed every year
4255         since it was created.
4256
4257 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4258
4259         crypto: fix bug in large buffer handling
4260         Problem reported by Serge Belyshev for glibc in
4261         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4262         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4263         * lib/md4.c (md4_process_block):
4264         * lib/md5.c (md5_process_block):
4265         * lib/sha1.c (sha1_process_block):
4266         * lib/sha256.c (sha256_process_block):
4267         Don't assume the buffer length is less than 2**32.
4268         * lib/sha512.c (sha512_process_block): Likewise.
4269         Here, the bug is present only in the rare case where the host does
4270         not support uint64_t or where size_t is wider than 64 bits.
4271         Use u64size to work around the problems.
4272         * lib/u64.h (u64size): New macro.
4273
4274 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4275
4276         fsusage: fix block size returned on older Linux 2.6
4277
4278         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4279         which is available since Linux 2.6.
4280         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4281         when the member is available so it can be used as a fallback.
4282         * doc/posix-functions/statvfs.texi: Mention the hang issue
4283         on Linux < 2.6.36.
4284
4285 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         bootstrap: suppress stderr chatter
4288         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4289         Omit unnecessary chatter to stderr.  The main program chatter
4290         was there only inadvertantly.
4291
4292         bootstrap: .gitignore files created by autopoint, libtool
4293         I ran into this problem when bootstrapping the latest diffutils.
4294         After './bootstrap', 'git status' reported lots of untracked files
4295         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4296         autopoint and do not need to be version-controlled.
4297         * build-aux/bootstrap: Put into .gitignore the files that
4298         autopoint and libtool create, by keeping track of files that exist
4299         after but not before these programs are run.
4300         (version_controlled_file): Move up.  2nd arg is now full file
4301         name, not base name; this is more convenient.  Put CVS at the end,
4302         as it's now somewhat deprecated.
4303
4304 2012-05-14  Jim Meyering  <meyering@redhat.com>
4305
4306         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4307         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4308         definition.  Reported by Bruno Haible.
4309
4310 2012-05-13  Bruno Haible  <bruno@clisp.org>
4311             Paul Eggert  <eggert@cs.ucla.edu>
4312
4313         binary-io: Define set_binary_mode function.
4314         * lib/binary-io.h (set_binary_mode): New function.
4315         (SET_BINARY): Define in terms of set_binary_mode.
4316         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4317         * tests/test-binary-io.c (main): Accept an argument, and test either
4318         set_binary_mode or SET_BINARY depending on the argument.
4319         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4320         argument. Clean up also t-bin-out0.tmp.
4321
4322 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4323
4324         bootstrap: take advantage of POSIX shell features
4325
4326         The 'bootstrap' script offered by Gnulib script already uses POSIX
4327         shell features (like $((...)) arithmetic expansions) that are not
4328         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4329         means that bootstrap must already be run using a proper POSIX shell,
4330         which will thus provide more features, like ${var#pattern} parameter
4331         expansion or inversion of a command exit status with '!'.  We can
4332         thus use these features to improve the clarity and the performances
4333         of the bootstrap script.
4334
4335         Suggested by Eric Blake.
4336
4337         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4338         of sed/expr plus command substitutions, to save some forks.  While
4339         we are at it, prefer the POSIX $(...) form of command substitution,
4340         rather than the legacy form `...` (since the former is visually
4341         clearer and interacts better with quoting), and prefer the idiom:
4342           "if ! CMD; then ACTION ..."
4343         over the idiom:
4344           "if CMD; then :; else ACTION ..."
4345         which was required by legacy Bourne shells not supporting '!'.
4346
4347 2012-05-12  Bruno Haible  <bruno@clisp.org>
4348
4349         system-quote: Add more comments.
4350         * lib/system-quote.h: Add more comments about wilcards and limitations.
4351         Suggested by Eli Zaretskii <eliz@gnu.org>.
4352
4353         sh-quote, system-quote: Add comments about wildcards.
4354         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4355         * lib/system-quote.h: Likewise.
4356         Reported by Eli Zaretskii <eliz@gnu.org>.
4357
4358 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4359
4360         fsusage: check for GNU/Linux statvfs problem dynamically
4361         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4362         Define STAT_STATFS2_BSIZE too, since in this case the code now
4363         checks dynamically whether statvfs is reliable, falling back on
4364         Linux-style statfs otherwise.
4365         (statvfs_works): New function, for dynamically testing statvfs.
4366         (get_fs_usage) [STAT_STATVFS]: Use it.
4367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4368         statvfs on GNU/Linux hosts, since it's now done dynamically.
4369
4370 2012-05-10  Bruno Haible  <bruno@clisp.org>
4371
4372         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4373         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4374         '?' character.
4375         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4376         * tests/test-system-quote-main.c (check_all): Check also strings like
4377         "??????????".
4378         Reported by Eli Zaretskii <eliz@gnu.org>.
4379
4380 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4381
4382         _Noreturn: port config.h to gcc -Wundef
4383         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4384         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4385         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4386
4387 2012-05-10  Bruno Haible  <bruno@clisp.org>
4388
4389         system-quote: Refactor.
4390         * lib/system-quote.h (system_quote_copy): Fix comment.
4391         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4392         New functions, extracted from system_quote_copy.
4393         (system_quote_length, system_quote_copy): Use these functions.
4394         Reported by Paul Eggert.
4395
4396 2012-05-08  Bruno Haible  <bruno@clisp.org>
4397
4398         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4399         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4400
4401 2012-05-08  Bruno Haible  <bruno@clisp.org>
4402
4403         Tests for module 'system-quote'.
4404         * modules/system-quote-tests: New file.
4405         * tests/test-system-quote.sh: New file.
4406         * tests/test-system-quote-main.c: New file.
4407         * tests/test-system-quote-child.c: New file.
4408
4409         New module 'system-quote'.
4410         * lib/system-quote.h: New file.
4411         * lib/system-quote.c: New file.
4412         * modules/system-quote: New file.
4413
4414 2012-05-08  Bruno Haible  <bruno@clisp.org>
4415
4416         sh-quote: Make C++ safe and allow multiple inclusion.
4417         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4418         declarations in extern "C".
4419
4420 2012-05-08  Bruno Haible  <bruno@clisp.org>
4421
4422         sh-quote tests: Make tests stricter.
4423         * tests/test-sh-quote.c (check_one): Check the return value of
4424         shell_quote_copy.
4425         (main): Check a string with a CR character. Check a string that
4426         contains UCHAR_MAX.
4427
4428 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4429
4430         warnings.m4: provide a means to specify the program to compile.
4431         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4432         (gl_WARN_ADD): here.
4433         Use gl_AS_VAR_APPEND.
4434         Support an argument to specify the program to compile.
4435         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4436         AC_SUBST the WARN_CFLAGS when they are used.
4437         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4438         leave this to gl_WARN_ADD.
4439
4440 2012-05-08  Eric Blake  <eblake@redhat.com>
4441
4442         doc: recommendations on gettext version
4443         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4444         choice between versions.
4445         * DEPENDENCIES (gettext): Cover both approaches.
4446
4447 2012-05-08  Jim Meyering  <meyering@redhat.com>
4448
4449         init.sh: explain why EXEEXT support uses aliases rather than functions
4450         * tests/init.sh: Add a comment.
4451
4452         init.sh: don't let bash aliases interfere with tests
4453         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4454         is bash.  This avoids problems for those who alias standard commands to
4455         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4456         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4457
4458 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4459
4460         stdint: be more consistent with glibc, SunOS libc
4461         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4462         (gl_int_fast16_t, gl_uint_fast16_t)
4463         (gl_int_fast32_t, gl_uint_fast32_t)
4464         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4465         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4466         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4467         Be consistent with glibc by default, and with SunOS 5.10 and later
4468         if __sun is defined.  This lessens the likelihood of clashes if
4469         code compiled for older hosts is combined with code compiled for
4470         newer ones.  Problem reported by Niels Möller in
4471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4472
4473 2012-05-07  Eric Blake  <eblake@redhat.com>
4474
4475         isatty: relax license to LGPLv2+
4476         * modules/isatty (License): Relax license.
4477
4478 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         stat-size: comment fix
4481         * lib/stat-size.h: Remove obsolete comment about indenting.
4482
4483 2012-05-06  Bruno Haible  <bruno@clisp.org>
4484
4485         Tests for module 'sh-quote'.
4486         * modules/sh-quote-tests: New file.
4487         * tests/test-sh-quote.c: New file.
4488
4489 2012-05-06  Bruno Haible  <bruno@clisp.org>
4490
4491         sh-quote: Improve shell_quote_argv's signature.
4492         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4493         * lib/sh-quote.c (shell_quote_argv): Likewise.
4494
4495 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4496
4497         stdint: document issues with int_fast8_t etc.
4498         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4499         stdint.h substitutes may define these types differently.  See
4500         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4501
4502 2012-05-05  Bruno Haible  <bruno@clisp.org>
4503
4504         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4506         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4507         or 'guessing no (mishandles large arguments)'.
4508
4509 2012-05-05  Bruno Haible  <bruno@clisp.org>
4510
4511         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4512         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4513         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4514         set gl_cv_func_link_follows_symlink to "guessing no".
4515
4516 2012-05-05  Bruno Haible  <bruno@clisp.org>
4517
4518         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4519         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4520         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4521         "guessing no".
4522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4523
4524 2012-05-05  Bruno Haible  <bruno@clisp.org>
4525
4526         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4527         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4528         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4529         set gl_cv_struct_dirent_d_ino to "guessing yes".
4530
4531 2012-05-05  Bruno Haible  <bruno@clisp.org>
4532
4533         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4534         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4535         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4536         "guessing yes".
4537
4538 2012-05-05  Bruno Haible  <bruno@clisp.org>
4539
4540         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4541         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4542         compiling to a glibc system, set gl_cv_func_signbit and
4543         gl_cv_func_signbit_gcc to "guessing yes".
4544
4545 2012-05-05  Bruno Haible  <bruno@clisp.org>
4546
4547         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4548         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4549         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4550         to "guessing yes".
4551         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4552         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4553
4554 2012-05-05  Bruno Haible  <bruno@clisp.org>
4555
4556         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4557         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4558         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4559         gl_cv_func_realpath_works to "guessing yes".
4560
4561 2012-05-05  Bruno Haible  <bruno@clisp.org>
4562
4563         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4565         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4566
4567 2012-05-04  Bruno Haible  <bruno@clisp.org>
4568
4569         Tweak last commit.
4570         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4571         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4572
4573 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4574
4575         unistd_h: make it easier to avoid sys_types_h
4576         This is useful for Emacs, which has its own method of porting to
4577         Windows, and which therefore does not need the sys_types_h module.
4578         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4579         code moved here from gl_SYS_TYPES_H.
4580         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4581         using the code directly.
4582         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4583         gl_SYS_TYPES_H.
4584         * modules/sys_types (Files):
4585         * modules/unistd (Files): Add m4/off_t.m4.
4586
4587 2012-05-03  Bruno Haible  <bruno@clisp.org>
4588
4589         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4590         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4591         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4592         "guessing yes" or "guessing no".
4593         (gl_FUNC_LSTAT): Update.
4594         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4595         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4596         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4597
4598 2012-05-03  Bruno Haible  <bruno@clisp.org>
4599
4600         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4601         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4602         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4603         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4604         cross-compiling, choose the first alternative on glibc systems.
4605         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4606
4607 2012-05-03  Bruno Haible  <bruno@clisp.org>
4608
4609         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4610         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4611         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4612
4613 2012-05-03  Bruno Haible  <bruno@clisp.org>
4614
4615         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4616         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4617
4618 2012-05-03  Bruno Haible  <bruno@clisp.org>
4619
4620         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4621         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4622         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4623         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4624         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4625         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4626         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4627         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4628         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4629         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4630         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4631         gl_cv_func_chown_ctime_works to "guessing yes".
4632         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4633         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4634         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4635         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4636         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4638         compiling to glibc systems, set gl_cv_func_open_directory_works to
4639         "guessing yes".
4640         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4642         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4643         "guessing yes".
4644         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4645         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4646         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4647         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4648         "guessing yes".
4649         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4650         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4651         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4652         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4653         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4654         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4656         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4657         "guessing yes".
4658         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4659         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4660         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4661         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4662         "guessing yes".
4663         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4664         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4665         "guessing yes".
4666         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4667         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4668         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4669         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4670         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4671         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4672         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4673         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4674         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4675         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4676         "guessing yes".
4677         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4678         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4679         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4680         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4681         "guessing yes".
4682         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4683         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4684         "guessing yes".
4685         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4686         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4687         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4688         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4689         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4690         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4691         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4692         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4693         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4694         "guessing yes".
4695         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4696         compiling to glibc systems, set gl_cv_func_mknod_works to
4697         "guessing yes".
4698         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4699         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4700         "guessing yes".
4701         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4702         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4703         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4704         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4705         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4706         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4707         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4708         compiling to glibc systems, set gl_cv_func_svid_putenv to
4709         "guessing yes".
4710         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4711         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4712         "guessing yes".
4713         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4714         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4715         "guessing yes".
4716         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4717         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4718         to "guessing yes".
4719         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4720         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4721         to "guessing yes".
4722         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4723         compiling to glibc systems, set gl_cv_func_rmdir_works to
4724         "guessing yes".
4725         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4726         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4727         gl_cv_func_unlink_parent_fails to "guessing yes".
4728         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4729         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4730         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4731         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4732         gl_cv_func_rename_dest_works to "guessing yes".
4733         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4734         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4736         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4737         "guessing yes".
4738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4739         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4740         "guessing yes".
4741         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4742         compiling to glibc systems, set gl_cv_func_setenv_works to
4743         "guessing yes".
4744         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4745         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4746         "guessing yes".
4747         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4748         compiling to glibc systems, set gl_cv_func_sleep_works to
4749         "guessing yes".
4750         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4751         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4752         "guessing yes".
4753         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4754         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4755         "guessing yes".
4756         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4757         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4759         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4760         "guessing yes".
4761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4762         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4763         "guessing yes".
4764         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4765         compiling to glibc systems, set gl_cv_func_usleep_works to
4766         "guessing yes".
4767         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4768         compiling to glibc systems, set gl_cv_func_futimesat_works to
4769         "guessing yes".
4770
4771 2012-05-03  Bruno Haible  <bruno@clisp.org>
4772
4773         Say "guessing yes" or "guessing no" when cross-compiling.
4774         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4775         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4776         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4777         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4778         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4779         am_cv_func_working_getline to "guessing yes" or "guessing no".
4780         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4781         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4782         (gl_FUNC_MEMMEM): When cross-compiling, set
4783         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4785         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4787         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4788         "guessing no".
4789         (gl_FUNC_STRCASESTR): When cross-compiling, set
4790         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4791         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4792         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4793         (gl_FUNC_STRSTR): When cross-compiling, set
4794         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4795         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4796         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4797         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4798         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4799
4800 2012-05-01  Bruno Haible  <bruno@clisp.org>
4801
4802         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4803         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4804         * build-aux/reloc-ldflags: Likewise.
4805         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4806
4807 2012-05-01  Bruno Haible  <bruno@clisp.org>
4808
4809         gnulib-tool: Remove transitional code.
4810         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4811         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4812
4813 2012-05-01  Bruno Haible  <bruno@clisp.org>
4814
4815         getcwd: Fix misindentation.
4816         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4817
4818 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4819
4820         exclude: process exclude and include directives in order
4821         This restores the pre-2009 behavior, and is part of a fix of a
4822         grep bug reported by Quentin Arce in
4823         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4824         * lib/exclude.c (struct exclude): Remove 'tail' member.
4825         (new_exclude_segment): Prepend the new segment instead of appending.
4826         Return void, since that's now more convenient.
4827         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4828         (file_name_matches): Renamed from excluded_file_name_p.
4829         (file_pattern_matches, file_name_matches):
4830         Return true if the pattern matches, not if it excludes.
4831         All callers changed.
4832         (excluded_file_name): Process the list in reverse order;
4833         since the list is now reversed this restores the pre-2009 behavior.
4834         (add_exclude): Adjust to new reversed-order list.  Use local var
4835         rather than macro, for clarity.
4836         * tests/test-exclude7.sh: Adjust to corrected behavior.
4837
4838         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4839         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4840         it's not possible here.  Handle the case of \ at end of pattern
4841         without dumping core.
4842         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4843
4844         _Noreturn: future-proof non-GNU and non-MSVC compilers
4845         * build-aux/snippet/_Noreturn.h (_Noreturn):
4846         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4847         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4848         C11 or later.  This is more likely to work with random future C
4849         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4850         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4851
4852         exclude: handle wildcards with FNM_EXTMATCH
4853         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4854         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4855         comment that "has wildcards" really means "has or may have
4856         wildcards".  Simplify by avoiding the need to call strcspn.
4857
4858 2012-04-29  Bruno Haible  <bruno@clisp.org>
4859
4860         gnulib-tool: Fix list of authors.
4861         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4862
4863 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4864
4865         bootstrap: support Automake-NG in $buildreq
4866         * bootstrap (check_versions): Handle automake and aclocal from
4867         Automake-NG specially.  They can be specified as respectively
4868         the "automake-ng" and "aclocal-ng" requirements.
4869
4870 2012-04-25  Eric Blake  <eblake@redhat.com>
4871
4872         bootstrap: only force latest Makefile.in.in for gettext module
4873         * build-aux/bootstrap (with_gettext): Only install latest
4874         Makefile.in.in for projects requesting bleeding edge gettext.
4875
4876 2012-04-22  Bruno Haible  <bruno@clisp.org>
4877
4878         doc: Mention reason for replacement on glibc/Linux systems.
4879         * doc/posix-functions/dprintf.texi: Mention the problem with special
4880         'long double' values.
4881         * doc/posix-functions/fprintf.texi: Likewise.
4882         * doc/posix-functions/printf.texi: Likewise.
4883         * doc/posix-functions/snprintf.texi: Likewise.
4884         * doc/posix-functions/sprintf.texi: Likewise.
4885         * doc/posix-functions/vdprintf.texi: Likewise.
4886         * doc/posix-functions/vfprintf.texi: Likewise.
4887         * doc/posix-functions/vprintf.texi: Likewise.
4888         * doc/posix-functions/vsnprintf.texi: Likewise.
4889         * doc/posix-functions/vsprintf.texi: Likewise.
4890         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4891         platforms with F_DUPFD_CLOEXEC problems.
4892         * doc/posix-functions/glob.texi: Mention which platforms are affected
4893         by the problem with symbolic links.
4894         * doc/posix-functions/linkat.texi: Mention the problem with
4895         AT_SYMLINK_FOLLOW on Linux.
4896
4897 2012-04-22  Bruno Haible  <bruno@clisp.org>
4898
4899         pwrite: Don't replace on all platforms.
4900         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4901
4902 2012-04-22  Bruno Haible  <bruno@clisp.org>
4903
4904         rint* tests: Avoid gcc warnings.
4905         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4906         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4907         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4908
4909 2012-04-21  Bruno Haible  <bruno@clisp.org>
4910
4911         users.txt: Update.
4912         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4913         switched from CVS to git, bzr, or svn.
4914
4915 2012-04-21  Bruno Haible  <bruno@clisp.org>
4916
4917         Large File Support for native Windows platforms.
4918
4919         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4920         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4921
4922         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4923         type.
4924         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4925         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4926         * doc/posix-headers/sys_types.texi: Mention the effect of the
4927         'largefile' module.
4928
4929         * lib/fcntl.in.h: Add comments about off_t.
4930         * modules/fcntl-h (Depends-on): Add sys_types.
4931
4932         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4933         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4934         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4935         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4936         * modules/unistd (Depends-on): Add sys_types.
4937         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4938
4939         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4940         instead of lseek.
4941         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4942         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4943         * modules/lseek (Depends-on): Add sys_types.
4944
4945         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4946         msvc-nothrow.h.
4947         (SetFileSize): New function.
4948         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4949         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4950         if Large File Support is requested.
4951         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4952         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4953
4954         * lib/stdio.in.h: Add comments about off_t.
4955         * modules/stdio (Depends-on): Add sys_types.
4956
4957         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4958         instead of ftello.
4959         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4960         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4961         (gl_PREREQ_FTELLO): New macro.
4962         * modules/ftello (Depends-on): Add sys_types.
4963         (configure.ac): Incoke gl_PREREQ_FTELLO.
4964
4965         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4966         instead of fseeko.
4967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4968         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4969         (gl_PREREQ_FSEEKO): New macro.
4970         * modules/fseeko (Depends-on): Add sys_types.
4971         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4972
4973         * lib/sys_stat.in.h: Add comments about off_t.
4974         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4975         64-bit integer for st_size in 'struct stat'.
4976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4977         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4978         * modules/sys_stat (Depends-on): Add sys_types.
4979         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4980
4981         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4982         instead of stat or _stat.
4983
4984         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4985         'struct _stati64' instead of fstat and 'struct stat'.
4986         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4987         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4988
4989         Reported by Ray Satiro <raysatiro@yahoo.com>.
4990
4991 2012-04-19  Eric Blake  <eblake@redhat.com>
4992
4993         bootstrap: accommodate older libtool
4994         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4995         Reported by Daniel P. Berrange.
4996
4997 2012-04-19  Jim Meyering  <meyering@redhat.com>
4998
4999         announce-gen: avoid failure due to lack of Digest::SHA1
5000         Even with the preferred Digest::SHA available, this script
5001         would fail when the backup module, Digest::SHA1, was not installed.
5002         * build-aux/announce-gen: Quote the conditional use of "use".
5003         Reported by Reuben Thomas in:
5004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5005
5006         bootstrap: don't let a user's CDPATH setting affect this script
5007         When CDPATH is set, cd will sometimes generate output.
5008         When "cd" is run in a subshell whose output matters, that
5009         surprising-to-some output can cause malfunction.
5010         Unsetting CDPATH turns off this shell "feature."
5011         * build-aux/bootstrap (CDPATH): Unset.
5012         Reported by Reuben Thomas in:
5013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5014         and inspired by his patch here:
5015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5016
5017 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5018         and Jim Meyering  <meyering@redhat.com>
5019
5020         maint.mk: catch "see @xref{}" and similar
5021         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5022         prohibit "See also @xref{", "Also see @pxref{", and similar.
5023
5024 2012-04-16  Jim Meyering  <meyering@redhat.com>
5025
5026         bootstrap: really use gnulib's po/Makefile.in.in
5027         * build-aux/bootstrap: Correct the source file name in previous change.
5028         Reported by Akim Demaille.
5029
5030         configmake: correct minor inconsistency in Makefile rule
5031         * modules/configmake (Makefile.am): All other rules like this one
5032         run the final "mv -f ..." in the same backslash-continued command
5033         as the one that does everything else.  This one put the mv -f ...
5034         command on a separate, non-backslash-continued line.
5035         Make it like the others.
5036
5037         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5038         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5039         the one from gettext.  Reported by Akim Demaille.
5040
5041 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5042
5043         Fix recursion of install-* into po directories.
5044         Bison's install-pdf bug reported by Hans Aberg at
5045         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5046         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5047         (install-info, install-pdf, install-ps): New targets.
5048
5049 2012-04-16  Jim Meyering  <meyering@redhat.com>
5050
5051         maint: avoid spurious "make sc_maint" failure
5052         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5053         exempt all *.class file names, for lib/javaversion.class.
5054
5055 2012-04-15  Bruno Haible  <bruno@clisp.org>
5056
5057         lseek: Make configure test independent of environment.
5058         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5059         Windows, we know that lseek() on pipes is broken; skip the runtime
5060         test.
5061
5062 2012-04-14  Bruno Haible  <bruno@clisp.org>
5063
5064         stat: Bypass buggy override in mingw64.
5065         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5066         * lib/stat.c (stat) [mingw64]: Define to _stat.
5067         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5068
5069 2012-04-14  Bruno Haible  <bruno@clisp.org>
5070
5071         pathmax: Fix compilation error on MSVC 9.
5072         * modules/pathmax (Depends-on): Add unistd.
5073
5074 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         README: document pointer comparison assumption
5077         * README (Portability guidelines): Document assumption about
5078         pointer comparisons, in response to a recent bug-gnulib comment by
5079         Jeffrey Kegler.
5080
5081 2012-04-12  Bruno Haible  <bruno@clisp.org>
5082
5083         Tests for module 'getrusage'.
5084         * modules/getrusage-tests: New file.
5085         * tests/test-getrusage.c: New file.
5086
5087         New module 'getrusage'.
5088         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5089         warn-on-use.h.
5090         (getrusage): New declaration.
5091         * lib/getrusage.c: New file.
5092         * m4/getrusage.m4: New file.
5093         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5094         is declared.
5095         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5096         HAVE_GETRUSAGE.
5097         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5098         snippet/c++defs, snippet/warn-on-use.
5099         (Makefile.am): Update generation of sys/resource.h. Substitute
5100         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5101         * modules/getrusage: New file.
5102         * doc/posix-functions/getrusage.texi: Mention the new module.
5103
5104 2012-04-12  Bruno Haible  <bruno@clisp.org>
5105
5106         Tests for module 'sys_resource'.
5107         * modules/sys_resource-tests: New file.
5108         * tests/test-sys_resource.c: New file.
5109
5110         New module 'sys_resource'.
5111         * lib/sys_resource.in.h: New file.
5112         * m4/sys_resource_h.m4: New file.
5113         * modules/sys_resource: New file.
5114         * doc/posix-headers/sys_resource.texi: Mention the new module.
5115
5116 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5117
5118         ioctl: Fix compilation error on mingw.
5119         * lib/ioctl.c: Include <windows.h>.
5120         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5121
5122 2012-04-04  Jim Meyering  <meyering@redhat.com>
5123
5124         regex: correct #pragma guard expression
5125         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5126         not 4.3.  Correct its cpp guard expression.
5127
5128 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5129
5130         regex: remove unnecessary type punning
5131         Problem reported by Vladimir Serbinenko in
5132         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5133         * lib/regex.h (struct re_pattern_buffer): Change the type of
5134         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5135         Fix comment to match code.
5136         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5137         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5138         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5139         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5140         (set_regs):
5141         Omit no-longer-necessary casts.
5142
5143 2012-04-03  Bruno Haible  <bruno@clisp.org>
5144
5145         Tests for module 'ilogbl'.
5146         * modules/ilogbl-tests: New file.
5147         * tests/test-ilogbl.c: New file.
5148
5149         New module 'ilogbl'.
5150         * lib/math.in.h (ilogbl): New declaration.
5151         * lib/ilogbl.c: New file.
5152         * m4/ilogbl.m4: New file.
5153         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5155         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5156         Split sed invocation, to avoid the limit of 100 substitutions of
5157         HP-UX 'sed'.
5158         * modules/ilogbl: New file.
5159         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5160         * doc/posix-functions/ilogbl.texi: Mention the new module.
5161
5162 2012-04-03  Bruno Haible  <bruno@clisp.org>
5163
5164         Tests for module 'ilogbf'.
5165         * modules/ilogbf-tests: New file.
5166         * tests/test-ilogbf.c: New file.
5167
5168         New module 'ilogbf'.
5169         * lib/math.in.h (ilogbf): New declaration.
5170         * lib/ilogbf.c: New file.
5171         * m4/ilogbf.m4: New file.
5172         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5174         REPLACE_ILOGBF.
5175         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5176         REPLACE_ILOGBF.
5177         * modules/ilogbf: New file.
5178         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5179         * doc/posix-functions/ilogbf.texi: Mention the new module.
5180
5181 2012-04-03  Bruno Haible  <bruno@clisp.org>
5182
5183         Tests for module 'ilogb'.
5184         * modules/ilogb-tests: New file.
5185         * tests/test-ilogb.c: New file.
5186         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5187         tests/test-logb-ieee.h.
5188
5189         New module 'ilogb'.
5190         * lib/math.in.h (ilogb): New declaration.
5191         * lib/ilogb.c: New file.
5192         * m4/ilogb.m4: New file.
5193         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5195         REPLACE_ILOGB.
5196         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5197         REPLACE_ILOGB.
5198         * modules/ilogb: New file.
5199         * tests/test-math-c++.cc: Check the declaration of ilogb.
5200         * doc/posix-functions/ilogb.texi: Mention the new module.
5201
5202 2012-04-03  Bruno Haible  <bruno@clisp.org>
5203
5204         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5205         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5206         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5207         (main): Check their values.
5208         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5209         problem.
5210
5211 2012-04-03  Bruno Haible  <bruno@clisp.org>
5212
5213         Tests for module 'logbl-ieee'.
5214         * modules/logbl-ieee-tests: New file.
5215         * tests/test-logbl-ieee.c: New file.
5216
5217         New module 'logbl-ieee'.
5218         * modules/logbl-ieee: New file.
5219
5220         Tests for module 'logb-ieee'.
5221         * modules/logb-ieee-tests: New file.
5222         * tests/test-logb-ieee.c: New file.
5223
5224         New module 'logb-ieee'.
5225         * modules/logb-ieee: New file.
5226
5227         Tests for module 'logbf-ieee'.
5228         * modules/logbf-ieee-tests: New file.
5229         * tests/test-logbf-ieee.c: New file.
5230         * tests/test-logb-ieee.h: New file.
5231
5232         New module 'logbf-ieee'.
5233         * modules/logbf-ieee: New file.
5234
5235 2012-04-03  Bruno Haible  <bruno@clisp.org>
5236
5237         Tests for module 'logbl'.
5238         * modules/logbl-tests: New file.
5239         * tests/test-logbl.c: New file.
5240
5241         New module 'logbl'.
5242         * lib/math.in.h (logbl): New declaration.
5243         * lib/logbl.c: New file.
5244         * m4/logbl.m4: New file.
5245         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5247         REPLACE_LOGBL.
5248         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5249         REPLACE_LOGBL.
5250         * modules/logbl: New file.
5251         * tests/test-math-c++.cc: Check the declaration of logbl.
5252         * doc/posix-functions/logbl.texi: Mention the new module.
5253
5254 2012-04-02  Bruno Haible  <bruno@clisp.org>
5255
5256         Tests for module 'logbf'.
5257         * modules/logbf-tests: New file.
5258         * tests/test-logbf.c: New file.
5259
5260         New module 'logbf'.
5261         * lib/math.in.h (logbf): New declaration.
5262         * lib/logbf.c: New file.
5263         * m4/logbf.m4: New file.
5264         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5266         REPLACE_LOGBF.
5267         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5268         REPLACE_LOGBF.
5269         * modules/logbf: New file.
5270         * tests/test-math-c++.cc: Check the declaration of logbf.
5271         * doc/posix-functions/logbf.texi: Mention the new module.
5272
5273 2012-04-02  Bruno Haible  <bruno@clisp.org>
5274
5275         logb tests: More tests.
5276         * tests/test-logb.h: New file, based on tests/test-logb.c and
5277         tests/test-frexp.h.
5278         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5279         (main): Just invoke test_function.
5280         * modules/logb-tests (Files): Add tests/test-logb.h,
5281         tests/minus-zero.h, tests/randomd.c.
5282         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5283
5284         logb: Provide replacement and workarounds.
5285         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5286         is 1.
5287         * lib/logb.c: New file.
5288         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5289         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5291         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5292         * modules/logb (Files): Add lib/logb.c.
5293         (Depends-on): Add isfinite, frexp, isnand.
5294         (configure.ac): Compile the replacement code logb.c if needed.
5295         * tests/test-math-c++.cc: Check the declaration of logb.
5296         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5297         with subnormal numbers.
5298
5299 2012-04-02  Bruno Haible  <bruno@clisp.org>
5300
5301         log10* tests: Speed up.
5302         * tests/test-log10.h (test_function): Reduce amount of random numbers
5303         to test.
5304
5305 2012-04-01  Bruno Haible  <bruno@clisp.org>
5306
5307         logf-ieee: Fix test whether logf works.
5308         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5309
5310 2012-04-01  Bruno Haible  <bruno@clisp.org>
5311
5312         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5313         * lib/log10l.c: Include <float.h>
5314         (log10l): On IRIX, normalize the +Infinity value.
5315         * modules/log10l (Depends-on): Add 'float'.
5316         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5317         +Infinity.
5318
5319         log10f-ieee: Work around test failure on NetBSD 5.1.
5320         * m4/log10f-ieee.m4: New file.
5321         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5322         test whether log10f works with a negative argument. Replace it if not.
5323         * lib/log10f.c (log10f): For negative arguments, return NaN.
5324         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5325         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5326         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5327
5328         log10f-ieee: Work around test failure on Solaris 9.
5329         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5330         (configure.ac): Require gl_FUNC_LOG10F.
5331
5332         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5333         * m4/log10-ieee.m4: New file.
5334         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5335         whether log10 works with a negative argument. Replace it if not.
5336         * lib/log10.c (log10): For negative arguments, return NaN.
5337         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5338         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5339         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5340
5341         Tests for module 'log10l-ieee'.
5342         * modules/log10l-ieee-tests: New file.
5343         * tests/test-log10l-ieee.c: New file.
5344
5345         New module 'log10l-ieee'.
5346         * modules/log10l-ieee: New file.
5347
5348         Tests for module 'log10-ieee'.
5349         * modules/log10-ieee-tests: New file.
5350         * tests/test-log10-ieee.c: New file.
5351
5352         New module 'log10-ieee'.
5353         * modules/log10-ieee: New file.
5354
5355         Tests for module 'log10f-ieee'.
5356         * modules/log10f-ieee-tests: New file.
5357         * tests/test-log10f-ieee.c: New file.
5358         * tests/test-log10-ieee.h: New file.
5359
5360         New module 'log10f-ieee'.
5361         * modules/log10f-ieee: New file.
5362
5363 2012-04-01  Bruno Haible  <bruno@clisp.org>
5364
5365         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5366         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5367         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5368         workaround.
5369         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5370         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5372         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5373         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5374         (Depends-on): Update conditions.
5375         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5376         IRIX 6.5, OSF/1 5.1 problems.
5377
5378 2012-04-01  Bruno Haible  <bruno@clisp.org>
5379
5380         log10f: Work around OSF/1 5.1 bug.
5381         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5382         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5383         workaround.
5384         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5385         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5387         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5388         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5389         (Depends-on): Update conditions.
5390         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5391
5392 2012-04-01  Bruno Haible  <bruno@clisp.org>
5393
5394         log10: Work around OSF/1 5.1 bug.
5395         * lib/math.in.h (log10): New declaration.
5396         * lib/log10.c: New file.
5397         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5398         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5399         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5401         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5402         * modules/log10 (Files): Add lib/log10.c.
5403         (Depends-on): Add math.
5404         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5405         * tests/test-math-c++.cc: Check the declaration of log10.
5406         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5407
5408 2012-03-31  Bruno Haible  <bruno@clisp.org>
5409
5410         log10l tests: More tests.
5411         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5412         tests/minus-zero.h, tests/randoml.c.
5413         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5414         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5415         (main): Invoke test_function.
5416
5417         log10f tests: More tests.
5418         * modules/log10f-tests (Files): Add tests/test-log10.h,
5419         tests/minus-zero.h, tests/randomf.c.
5420         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5421         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5422         (main): Invoke test_function.
5423
5424         log10 tests: More tests.
5425         * tests/test-log10.h: New file.
5426         * modules/log10-tests (Files): Add tests/test-log10.h,
5427         tests/minus-zero.h, tests/randomd.c.
5428         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5429         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5430         (main): Invoke test_function.
5431
5432 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5433
5434         fflush: Fix syntax error.
5435         * lib/fflush.c: Include unused-parameter.h, needed for
5436         _GL_UNUSED_PARAMETER.
5437         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5438
5439 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5440
5441         regex: pacify GCC when compiling GRUB
5442         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5443         a diagnostic.  Reported by Vladimir Serbinenko in
5444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5445
5446 2012-03-29  Eric Blake  <eblake@redhat.com>
5447
5448         stdio: don't assume gets any more
5449         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5450         support.
5451         * modules/stdio (Makefile.am): Likewise.
5452         * lib/stdio-read.c (gets): Likewise.
5453         * tests/test-stdio-c++.cc: Likewise.
5454         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5455         * lib/stdio.in.h (gets): Make warning occur in more places.
5456         * doc/posix-functions/gets.texi (gets): Update documentation.
5457         Reported by Christer Solskogen.
5458
5459         maint.mk: fix syntax checks without exclusions
5460         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5461         Reported by Daniel P. Berrange.
5462
5463         strerror_r: avoid compiler warning
5464         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5465         level.
5466
5467         fflush: avoid compiler warning
5468         * lib/fflush.c (update_fpos_cache): Mark variables that are
5469         potentially unused.
5470
5471 2012-03-25  Bruno Haible  <bruno@clisp.org>
5472
5473         Tests for module 'localeconv'.
5474         * modules/localeconv-tests: New file.
5475         * tests/test-localeconv.c: New file.
5476
5477         New module 'localeconv'.
5478         * lib/locale.in.h (localeconv): New declaration.
5479         * lib/localeconv.c: New file.
5480         * m4/localeconv.m4: New file.
5481         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5482         REPLACE_LOCALECONV.
5483         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5484         REPLACE_LOCALECONV.
5485         * modules/localeconv: New file.
5486         * modules/nl_langinfo (Depends-on): Add localeconv.
5487         * modules/human (Depends-on): Likewise.
5488         * doc/posix-functions/localeconv.texi: Mention the new module.
5489
5490 2012-03-25  Bruno Haible  <bruno@clisp.org>
5491
5492         locale: Provide a complete 'struct lconv'.
5493         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5494         'struct lconv' does not contain int_p_cs_precedes.
5495         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5496         * doc/posix-headers/locale.texi: Update.
5497
5498         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5499         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5500         * doc/posix-headers/locale.texi: Update.
5501
5502         locale: Provide a working 'struct lconv'.
5503         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5504         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5505         'struct lconv' does not even contain decimal_point.
5506         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5507         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5508         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5509         * doc/posix-headers/locale.texi: Mention the problems with
5510         'struct lconv'.
5511         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5512
5513 2012-03-24  Bruno Haible  <bruno@clisp.org>
5514
5515         Enable common subexpression optimization in GCC.
5516         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5517         macros.
5518         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5519         GCC attribute 'const'.
5520         (uc_locale_language): Declare with GCC attribute 'pure'.
5521         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5522         with GCC attribute 'const'.
5523         * lib/unictype.in.h (uc_is_general_category_withtable,
5524         uc_combining_class, uc_combining_class_name,
5525         uc_combining_class_long_name, uc_bidi_class_name,
5526         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5527         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5528         uc_decimal_value, uc_digit_value, uc_numeric_value,
5529         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5530         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5531         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5532         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5533         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5534         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5535         Declare with GCC attribute 'const'.
5536         (uc_general_category_name, uc_general_category_long_name,
5537         uc_general_category_byname, uc_general_category,
5538         uc_is_general_category, uc_combining_class_byname,
5539         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5540         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5541         Declare with GCC attribute 'pure'.
5542         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5543         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5544         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5545         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5546         with GCC attribute 'pure'.
5547         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5548         'const'.
5549         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5550         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5551         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5552         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5553         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5554         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5555         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5556         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5557         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5558         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5559         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5560         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5561         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5562         GCC attribute 'pure'.
5563         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5564         'const'.
5565         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5566         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5567         u32_strwidth): Declare with GCC attribute 'pure'.
5568
5569         Enable common subexpression optimization in GCC.
5570         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5571         (alphasort): Declare with GCC attribute 'pure'.
5572         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5573         (atoll): Declare with GCC attribute 'pure'.
5574         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5575         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5576         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5577         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5578         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5579         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5580         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5581
5582 2012-03-24  Bruno Haible  <bruno@clisp.org>
5583
5584         gnulib-tool: Avoid unintended error output from 'cmp'.
5585         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5586         "cmp -s", not "cmp > /dev/null".
5587
5588 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5589
5590         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5591
5592         It's not just Automake versions < 1.9b that creates an empty
5593         pkgdatadir at installation time if pkgdata_DATA is specified
5594         to empty; modern automake versions do this as well, at least
5595         until automake 1.11.4 (not yet released at the moment of writing,
5596         but soon to appear).  That behaviour was generally considered a
5597         feature rather than a bug, at least until this discussion:
5598         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5599
5600         See also automake bugs #10997 and #11030.
5601
5602         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5603         reference to relevant automake bug numbers.
5604         (func_emit_tests_Makefile_am): Likewise.
5605
5606 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5607
5608         announce-gen: use Digest::SHA when possible
5609         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5610         back to Digest::SHA1 if necessary.
5611
5612 2012-03-20  Jim Meyering  <meyering@redhat.com>
5613
5614         tests: avoid gcc warnings about argv vs. const initializers
5615         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5616         warnings about discarding 'const' qualifier from pointer target type.
5617         * tests/test-posix_spawn2.c (main): Likewise.
5618
5619 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5620
5621         README-release: simplify slightly
5622         * top/README-release: Run "git checkout master" only once.
5623
5624 2012-03-15  Mark Wielaard  <mark@klomp.org>
5625
5626         git-merge-changelog: add specific example on how to use with hg.
5627         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5628
5629 2012-03-18  Mark Wielaard  <mark@klomp.org>
5630
5631         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5632
5633 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5634
5635         git-version-gen: don't let "prefix" envvar cause trouble
5636         * build-aux/git-version-gen (prefix): Initialize properly,
5637         so as not to use a value specified via the environment.
5638         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5639
5640 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         regex: diagnose too-large repeat counts in EREs
5643         Previously, the code did not diagnose the too-large repeat count
5644         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5645         as if it were 'b\{1000000000}', which is unexpected.
5646         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5647         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5648         is a reasonable one for this problem.  Another option would be to
5649         create a new REG_OVERFLOW error for repeat counts that are too large.
5650         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5651         count is too large, so that the caller can distinguish the two cases.
5652         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5653         "Too large" return code, and that repeat counts are one example of this.
5654
5655 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5656
5657         doc: some glibc x32 integer width issues
5658         * doc/posix-headers/sys_types.texi (sys/types.h):
5659         * doc/posix-headers/time.texi (time.h):
5660         Mention that glibc x32 does not conform to POSIX in a couple of
5661         areas related to integer widths.
5662
5663 2012-03-15  Bruno Haible  <bruno@clisp.org>
5664
5665         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5666         * lib/fma.c (VOLATILE): New macro.
5667         (FUNC): Use it to work around a GCC compiler bug.
5668
5669 2012-03-13  Bruno Haible  <bruno@clisp.org>
5670
5671         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5672         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5673         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5674         REPLACE_HYPOTL to 1.
5675         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5676
5677 2012-03-13  Bruno Haible  <bruno@clisp.org>
5678
5679         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5680         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5681         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5682         REPLACE_REMAINDERL to 1.
5683         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5684         bug.
5685
5686 2012-03-13  Bruno Haible  <bruno@clisp.org>
5687
5688         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5689         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5690         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5691         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5692         too big rounding errors.
5693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5694         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5695         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5696         (Depends-on): Update conditions.
5697         * tests/test-sqrtl.c (my_ldexpl): New function.
5698         (main): Add test of a particular value.
5699         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5700
5701 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5702
5703         doc: Update timer_* platform portability notes.
5704         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5705         that always return ENOSYS.
5706         * doc/posix-functions/timer_delete.texi: Likewise.
5707         * doc/posix-functions/timer_gettime.texi: Likewise.
5708         * doc/posix-functions/timer_settime.texi: Likewise.
5709
5710 2012-03-13  Bruno Haible  <bruno@clisp.org>
5711
5712         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5713         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5714         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5715         REPLACE_CBRTL to 1.
5716         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5717
5718 2012-03-13  Bruno Haible  <bruno@clisp.org>
5719
5720         remainderl: Avoid compilation error on AIX >= 5.2.
5721         * lib/math.in.h (remainderl): Undefine macro from the system header.
5722
5723 2012-03-13  Bruno Haible  <bruno@clisp.org>
5724
5725         Avoid compilation errors with MSVC option -fp:strict.
5726         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5727         * lib/cbrtf.c: Likewise.
5728         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5729
5730 2012-03-12  Bruno Haible  <bruno@clisp.org>
5731
5732         uninorm: Don't crash in out-of-memory conditions.
5733         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5734         gracefully.
5735         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5736         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5737
5738 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5739
5740         quote: fix syntax-check
5741         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5742         also exports quote_quoting_options.
5743
5744 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5745
5746         Collapse list of copyright years to ranges.  See
5747         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5748         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5749         build-aux/csharpexec.sh.in, build-aux/gnupload,
5750         build-aux/install-reloc, build-aux/javacomp.sh.in,
5751         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5752         build-aux/move-if-change, build-aux/reloc-ldflags,
5753         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5754
5755 2012-03-11  Bruno Haible  <bruno@clisp.org>
5756
5757         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5758         * m4/log2f-ieee.m4: New file.
5759         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5760         whether log2f works with a minus zero argument. Replace it if not.
5761         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5762         (Depends-on): Add log2-ieee.
5763         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5764         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5765
5766         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5767         * m4/log2-ieee.m4: New file.
5768         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5769         whether log2 works with a minus zero argument. Replace it if not.
5770         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5771         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5772         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5773
5774         Tests for module 'log2l-ieee'.
5775         * modules/log2l-ieee-tests: New file.
5776         * tests/test-log2l-ieee.c: New file.
5777
5778         New module 'log2l-ieee'.
5779         * modules/log2l-ieee: New file.
5780
5781         Tests for module 'log2-ieee'.
5782         * modules/log2-ieee-tests: New file.
5783         * tests/test-log2-ieee.c: New file.
5784
5785         New module 'log2-ieee'.
5786         * modules/log2-ieee: New file.
5787
5788         Tests for module 'log2f-ieee'.
5789         * modules/log2f-ieee-tests: New file.
5790         * tests/test-log2f-ieee.c: New file.
5791         * tests/test-log2-ieee.h: New file.
5792
5793         New module 'log2f-ieee'.
5794         * modules/log2f-ieee: New file.
5795
5796 2012-03-11  Bruno Haible  <bruno@clisp.org>
5797
5798         Tests for module 'log2l'.
5799         * modules/log2l-tests: New file.
5800         * tests/test-log2l.c: New file.
5801
5802         New module 'log2l'.
5803         * lib/math.in.h (log2l): New declaration.
5804         * lib/log2l.c: New file.
5805         * m4/log2l.m4: New file.
5806         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5808         REPLACE_LOG2L.
5809         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5810         REPLACE_LOG2L.
5811         * modules/log2l: New file.
5812         * tests/test-math-c++.cc: Check the declaration of log2l.
5813         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5814         and OSF/1 problems.
5815
5816 2012-03-11  Bruno Haible  <bruno@clisp.org>
5817
5818         Tests for module 'log2f'.
5819         * modules/log2f-tests: New file.
5820         * tests/test-log2f.c: New file.
5821
5822         New module 'log2f'.
5823         * lib/math.in.h (log2f): New declaration.
5824         * lib/log2f.c: New file.
5825         * m4/log2f.m4: New file.
5826         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5828         REPLACE_LOG2F.
5829         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5830         REPLACE_LOG2F.
5831         * modules/log2f: New file.
5832         * tests/test-math-c++.cc: Check the declaration of log2f.
5833         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5834         and OSF/1 and Cygwin problems.
5835
5836 2012-03-11  Bruno Haible  <bruno@clisp.org>
5837
5838         Tests for module 'log2'.
5839         * modules/log2-tests: New file.
5840         * tests/test-log2.c: New file.
5841         * tests/test-log2.h: New file.
5842
5843         New module 'log2'.
5844         * lib/math.in.h (log2): New declaration.
5845         * lib/log2.c: New file.
5846         * m4/log2.m4: New file.
5847         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5849         REPLACE_LOG2.
5850         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5851         REPLACE_LOG2.
5852         * modules/log2: New file.
5853         * tests/test-math-c++.cc: Check the declaration of log2.
5854         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5855         and OSF/1 and Cygwin problems.
5856
5857 2012-03-11  Bruno Haible  <bruno@clisp.org>
5858
5859         exp2* tests: More tests.
5860         * tests/test-exp2.h (test_function): Test all integral arguments that
5861         don't need to overflow or denormalized numbers.
5862         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5863         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5864         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5865
5866 2012-03-10  Bruno Haible  <bruno@clisp.org>
5867
5868         log1pl-ieee: Work around test failure on AIX 7.1.
5869         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5870
5871         log1pl-ieee: Work around test failure on IRIX 6.5.
5872         * m4/log1pl-ieee.m4: New file.
5873         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5874         test whether log1pl works with a minus zero argument. Replace it if
5875         not.
5876         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5878         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5879         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5880         (Depends-on): Update conditions.
5881         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5882         m4/signbit.m4.
5883         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5884         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5885
5886         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5887         * m4/log1pf-ieee.m4: New file.
5888         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5889         test whether log1pf works with a minus zero argument. Replace it if
5890         not.
5891         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5892         m4/signbit.m4.
5893         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5894         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5895
5896         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5897         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5898         (configure.ac): Require gl_FUNC_LOG1PF.
5899
5900         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5901         * m4/log1p-ieee.m4: New file.
5902         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5903         whether log1p works with a minus zero argument. Replace it if not.
5904         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5906         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5907         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5908         (Depends-on): Update conditions.
5909         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5910         m4/signbit.m4.
5911         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5912         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5913
5914         Tests for module 'log1pl-ieee'.
5915         * modules/log1pl-ieee-tests: New file.
5916         * tests/test-log1pl-ieee.c: New file.
5917
5918         New module 'log1pl-ieee'.
5919         * modules/log1pl-ieee: New file.
5920
5921         Tests for module 'log1p-ieee'.
5922         * modules/log1p-ieee-tests: New file.
5923         * tests/test-log1p-ieee.c: New file.
5924
5925         New module 'log1p-ieee'.
5926         * modules/log1p-ieee: New file.
5927
5928         Tests for module 'log1pf-ieee'.
5929         * modules/log1pf-ieee-tests: New file.
5930         * tests/test-log1pf-ieee.c: New file.
5931         * tests/test-log1p-ieee.h: New file.
5932
5933         New module 'log1pf-ieee'.
5934         * modules/log1pf-ieee: New file.
5935
5936 2012-03-10  Bruno Haible  <bruno@clisp.org>
5937
5938         Tests for module 'log1pl'.
5939         * modules/log1pl-tests: New file.
5940         * tests/test-log1pl.c: New file.
5941
5942         New module 'log1pl'.
5943         * lib/math.in.h (log1pl): New declaration.
5944         * lib/log1pl.c: New file.
5945         * m4/log1pl.m4: New file.
5946         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5948         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5949         * modules/log1pl: New file.
5950         * tests/test-math-c++.cc: Check the declaration of log1pl.
5951         * doc/posix-functions/log1pl.texi: Mention the new module.
5952
5953 2012-03-10  Bruno Haible  <bruno@clisp.org>
5954
5955         Tests for module 'log1pf'.
5956         * modules/log1pf-tests: New file.
5957         * tests/test-log1pf.c: New file.
5958
5959         New module 'log1pf'.
5960         * lib/math.in.h (log1pf): New declaration.
5961         * lib/log1pf.c: New file.
5962         * m4/log1pf.m4: New file.
5963         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5965         REPLACE_LOG1PF.
5966         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5967         REPLACE_LOG1PF.
5968         * modules/log1pf: New file.
5969         * tests/test-math-c++.cc: Check the declaration of log1pf.
5970         * doc/posix-functions/log1pf.texi: Mention the new module.
5971
5972 2012-03-10  Bruno Haible  <bruno@clisp.org>
5973
5974         log1p tests: More tests.
5975         * tests/test-log1p.h: New file.
5976         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5977         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5978         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5979         (main): Invoke test_function.
5980
5981         log1p: Provide replacement for Minix and MSVC.
5982         * lib/math.in.h (log1p): New declaration.
5983         * lib/log1p.c: New file.
5984         * m4/log1p.m4: New file.
5985         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5987         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5988         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5989         (Depends-on): Add math, isnand, log, round.
5990         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5991         HAVE_LOG1P is 0.
5992         * tests/test-math-c++.cc: Check the declaration of log1p.
5993         * doc/posix-functions/log1p.texi: Mention the replacement.
5994
5995 2012-03-10  Bruno Haible  <bruno@clisp.org>
5996
5997         math tests: Small simplification.
5998         * tests/test-exp.h (test_function): Use the same err_bound for
5999         'double' on platforms with sizeof (long double) == sizeof (double)
6000         than on platforms with sizeof (long double) > sizeof (double).
6001         * tests/test-exp2.h (test_function): Likewise.
6002         * tests/test-expm1.h (test_function): Likewise.
6003         * tests/test-log.h (test_function): Likewise.
6004
6005 2012-03-10  Bruno Haible  <bruno@clisp.org>
6006
6007         Fix some comments.
6008         * lib/expl.c: Fix an ambiguous comment.
6009         * lib/expm1.c: Likewise.
6010         * lib/expm1l.c: Likewise.
6011         * lib/exp2.c: Likewise.
6012         * lib/exp2l.c: Likewise.
6013
6014 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6015
6016         regex: allow inclusion of <regex.h> before <limits.h>
6017         Without this patch, portable programs had to include <limits.h> before
6018         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6019         I ran into this problem with a test version of GNU grep on Solaris 8.
6020         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6021         This is done conditionally so that this change can be merged
6022         back to glibc.
6023         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6024         using the included regex.
6025
6026         fts: depend on fdopendir
6027         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6028         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6029         problem was introduced when fdopendir was split out.
6030
6031 2012-03-10  Bruno Haible  <bruno@clisp.org>
6032
6033         Remove unused variables.
6034         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6035         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6036
6037 2012-03-10  Bruno Haible  <bruno@clisp.org>
6038
6039         isnanf-nolibm: Fix last commit.
6040         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6041
6042         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6043         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6044
6045 2012-03-10  Bruno Haible  <bruno@clisp.org>
6046
6047         logf-ieee: Work around test failure on NetBSD 5.1.
6048         * m4/logf-ieee.m4: New file.
6049         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6050         whether logf works with a negative argument. Replace it if not.
6051         * lib/logf.c (logf): For negative arguments, return NaN.
6052         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6053         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6054         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6055
6056         logf-ieee: Work around test failure on Solaris 9.
6057         * modules/logf-ieee (Depends-on): Add log-ieee.
6058         (configure.ac): Require gl_FUNC_LOGF.
6059
6060         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6061         * m4/log-ieee.m4: New file.
6062         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6063         log works with a negative argument. Replace it if not.
6064         * lib/log.c (log): For negative arguments, return NaN.
6065         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6066         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6067         * doc/posix-functions/log.texi: Mention the log-ieee module.
6068
6069         Tests for module 'logl-ieee'.
6070         * modules/logl-ieee-tests: New file.
6071         * tests/test-logl-ieee.c: New file.
6072
6073         New module 'logl-ieee'.
6074         * modules/logl-ieee: New file.
6075
6076         Tests for module 'log-ieee'.
6077         * modules/log-ieee-tests: New file.
6078         * tests/test-log-ieee.c: New file.
6079
6080         New module 'log-ieee'.
6081         * modules/log-ieee: New file.
6082
6083         Tests for module 'logf-ieee'.
6084         * modules/logf-ieee-tests: New file.
6085         * tests/test-logf-ieee.c: New file.
6086         * tests/test-log-ieee.h: New file.
6087
6088         New module 'logf-ieee'.
6089         * modules/logf-ieee: New file.
6090
6091 2012-03-10  Bruno Haible  <bruno@clisp.org>
6092
6093         log: Fix bug introduced on 2012-03-09.
6094         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6095
6096 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6097
6098         timer-time: link explicitly with pthreads on glibc
6099         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6100         to support static linking, when newer glibc is
6101         detected, as that contains pthread emulation of
6102         POSIX timer functions where required.
6103         * modules/timer-time: Depend on threadlib to
6104         pull in the appropriate library to link.
6105
6106 2012-03-10  Bruno Haible  <bruno@clisp.org>
6107
6108         log* tests: More tests.
6109         * tests/test-log.h: New file.
6110         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6111         (main): Invoke test_function.
6112         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6113         (main): Invoke test_function.
6114         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6115         (main): Invoke test_function.
6116         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6117         tests/randomd.c.
6118         (Makefile.am): Add randomd.c to test_log_SOURCES.
6119         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6120         tests/randomf.c.
6121         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6122         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6123         tests/randoml.c.
6124         (Depends-on): Add 'float'.
6125         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6126
6127 2012-03-09  Bruno Haible  <bruno@clisp.org>
6128
6129         logl: Work around OSF/1 5.1 bug.
6130         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6131         * lib/logl.c (logl): If logl exists, use it and provide just the
6132         workaround.
6133         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6134         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6136         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6137         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6138         (Depends-on): Update conditions.
6139         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6140
6141 2012-03-09  Bruno Haible  <bruno@clisp.org>
6142
6143         logf: Work around OSF/1 5.1 bug.
6144         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6145         * lib/logf.c (logf): If logf exists, use it and provide just the
6146         workaround.
6147         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6148         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6150         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6151         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6152         (Depends-on): Update conditions.
6153         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6154
6155 2012-03-09  Bruno Haible  <bruno@clisp.org>
6156
6157         log: Work around OSF/1 5.1 bug.
6158         * lib/math.in.h (log): New declaration.
6159         * lib/log.c: New file.
6160         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6161         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6162         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6164         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6165         * modules/log (Files): Add lib/log.c.
6166         (Depends-on): Add math.
6167         (configure.ac): If REPLACE_LOG is 1, compile an override.
6168         * tests/test-math-c++.cc: Check the declaration of log.
6169         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6170
6171 2012-03-09  Jim Meyering  <meyering@redhat.com>
6172
6173         readtokens.c: adjust wording in a comment
6174         * lib/readtokens.c: Insert omitted "that" in a comment.
6175
6176 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6177
6178         modechange: add notations +40, 00440, etc.
6179         * lib/modechange.c (mode_compile): Support new notations
6180         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6181
6182 2012-03-08  Bruno Haible  <bruno@clisp.org>
6183
6184         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6185         * m4/exp2l-ieee.m4: New file.
6186         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6187         test whether exp2l works with a NaN argument and with a negative
6188         infinity argument. Replace it if not.
6189         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6191         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6192         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6193         (Depends-on): Update conditions.
6194         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6195         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6196         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6197
6198         Tests for module 'exp2l-ieee'.
6199         * modules/exp2l-ieee-tests: New file.
6200         * tests/test-exp2l-ieee.c: New file.
6201
6202         New module 'exp2l-ieee'.
6203         * modules/exp2l-ieee: New file.
6204
6205         Tests for module 'exp2-ieee'.
6206         * modules/exp2-ieee-tests: New file.
6207         * tests/test-exp2-ieee.c: New file.
6208
6209         New module 'exp2-ieee'.
6210         * modules/exp2-ieee: New file.
6211
6212         Tests for module 'exp2f-ieee'.
6213         * modules/exp2f-ieee-tests: New file.
6214         * tests/test-exp2f-ieee.c: New file.
6215         * tests/test-exp2-ieee.h: New file.
6216
6217         New module 'exp2f-ieee'.
6218         * modules/exp2f-ieee: New file.
6219
6220 2012-03-08  Bruno Haible  <bruno@clisp.org>
6221
6222         Tests for module 'exp2l'.
6223         * modules/exp2l-tests: New file.
6224         * tests/test-exp2l.c: New file.
6225
6226         New module 'exp2l'.
6227         * lib/math.in.h (exp2l): New declaration.
6228         * lib/exp2l.c: New file.
6229         * lib/expl-table.c: New file, extracted from lib/expl.c.
6230         * lib/expl.c (gl_expl_table): New declaration.
6231         (expl): Remove expl_table. Update reference.
6232         * m4/exp2l.m4: New file.
6233         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6235         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6236         * modules/exp2l: New file.
6237         * modules/expl (Files): Add lib/expl-table.c.
6238         (configure.ac): Compile also expl-table.c.
6239         * tests/test-math-c++.cc: Check the declaration of exp2l.
6240         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6241         problem.
6242
6243 2012-03-08  Bruno Haible  <bruno@clisp.org>
6244
6245         Tests for module 'exp2f'.
6246         * modules/exp2f-tests: New file.
6247         * tests/test-exp2f.c: New file.
6248
6249         New module 'exp2f'.
6250         * lib/math.in.h (exp2f): New declaration.
6251         * lib/exp2f.c: New file.
6252         * m4/exp2f.m4: New file.
6253         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6255         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6256         * modules/exp2f: New file.
6257         * tests/test-math-c++.cc: Check the declaration of exp2f.
6258         * doc/posix-functions/exp2f.texi: Mention the new module and the
6259         IRIX problem.
6260
6261 2012-03-08  Bruno Haible  <bruno@clisp.org>
6262
6263         Tests for module 'exp2'.
6264         * modules/exp2-tests: New file.
6265         * tests/test-exp2.c: New file.
6266         * tests/test-exp2.h: New file.
6267
6268         New module 'exp2'.
6269         * lib/math.in.h (exp2): New declaration.
6270         * lib/exp2.c: New file.
6271         * m4/exp2.m4: New file.
6272         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6274         REPLACE_EXP2.
6275         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6276         REPLACE_EXP2.
6277         * modules/exp2: New file.
6278         * tests/test-math-c++.cc: Check the declaration of exp2.
6279         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6280         and OpenBSD problems.
6281
6282 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         savedir: fix comment typo
6285         * lib/savedir.c (savedirstream): Fix typo in comment.
6286
6287 2012-03-08  Bruno Haible  <bruno@clisp.org>
6288
6289         test-readtokens.c: use const; remove unwarranted cast
6290         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6291
6292 2012-03-08  Bruno Haible  <bruno@clisp.org>
6293
6294         fmal: Avoid compilation error on AIX.
6295         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6296         AIX 5.2..7.1.
6297
6298 2012-03-08  Bruno Haible  <bruno@clisp.org>
6299
6300         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6301         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6302         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6303         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6304         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6305         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6306         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6307
6308 2012-03-08  Bruno Haible  <bruno@clisp.org>
6309
6310         remainderf: Override buggy system function on IRIX 6.5.
6311         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6312         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6313         when it exists.
6314         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6315
6316 2012-03-08  Jim Meyering  <meyering@redhat.com>
6317
6318         test-readtokens.c: avoid const-related compilation warnings
6319         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6320
6321 2012-03-07  Jim Meyering  <meyering@redhat.com>
6322             Bruno Haible  <bruno@clisp.org>
6323
6324         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6325         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6326         tests/randomd.c.
6327         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6328         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6329         tests/randoml.c.
6330         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6331
6332 2012-03-07  Bruno Haible  <bruno@clisp.org>
6333
6334         expm1l: Avoid compilation error on AIX.
6335         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6336         AIX 5.2..7.1.
6337
6338 2012-03-07  Bruno Haible  <bruno@clisp.org>
6339
6340         expm1l: Don't override undeclared system function on IRIX 6.5.
6341         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6342         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6343         it exists. Set HAVE_DECL_EXPM1L.
6344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6345         HAVE_EXPM1L.
6346         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6347         HAVE_EXPM1L.
6348         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6349
6350 2012-03-07  Bruno Haible  <bruno@clisp.org>
6351
6352         remainderl: Don't override undeclared system function on IRIX 6.5.
6353         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6354         HAVE_REMAINDERL.
6355         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6356         declared when it exists. Set HAVE_DECL_REMAINDERL.
6357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6358         not HAVE_REMAINDERL.
6359         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6360         HAVE_REMAINDERL.
6361         * doc/posix-functions/remainderl.texi: Mention missing declaration
6362         problem.
6363
6364 2012-03-07  Bruno Haible  <bruno@clisp.org>
6365
6366         rintf: Don't override undeclared system function on IRIX 6.5.
6367         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6368         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6369         exists. Set HAVE_DECL_RINTF.
6370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6371         HAVE_RINTF.
6372         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6373         HAVE_RINTF.
6374         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6375
6376 2012-03-07  Bruno Haible  <bruno@clisp.org>
6377
6378         roundl: Avoid compilation error on AIX.
6379         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6380         AIX 5.2..7.1.
6381
6382 2012-03-07  Bruno Haible  <bruno@clisp.org>
6383
6384         roundl: Don't override undeclared system function on IRIX 6.5.
6385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6386         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6387         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6388         * modules/roundl (configure.ac): For replacement code, test
6389         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6390         (Depends-on): Update conditions.
6391         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6392
6393 2012-03-07  Bruno Haible  <bruno@clisp.org>
6394
6395         roundf: Don't override undeclared system function on IRIX 6.5.
6396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6397         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6398         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6399         * modules/roundf (configure.ac): For replacement code, test
6400         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6401         (Depends-on): Update conditions.
6402         * modules/roundf-ieee (Depends-on): Update conditions.
6403         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6404
6405 2012-03-07  Bruno Haible  <bruno@clisp.org>
6406
6407         round: Don't override undeclared system function on IRIX 6.5.
6408         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6409         argument.
6410         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6411         also when it is not declared. Set HAVE_ROUND. For replacement code,
6412         test HAVE_ROUND, not HAVE_DECL_ROUND.
6413         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6414         not HAVE_DECL_ROUND.
6415         (Depends-on): Update conditions.
6416         * modules/round-ieee (Depends-on): Update conditions.
6417         * doc/posix-functions/round.texi: Mention the IRIX problem.
6418
6419 2012-03-07  Bruno Haible  <bruno@clisp.org>
6420
6421         copysignf: Don't override undeclared system function on IRIX 6.5.
6422         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6423         HAVE_COPYSIGNF.
6424         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6425         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6427         not HAVE_COPYSIGNF.
6428         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6429         HAVE_COPYSIGNF.
6430         * doc/posix-functions/copysignf.texi: Mention missing declaration
6431         problem.
6432
6433 2012-03-07  Jim Meyering  <meyering@redhat.com>
6434
6435         readtokens: add tests
6436         * modules/readtokens-tests: New file.
6437         * tests/test-readtokens.c: New file.
6438
6439 2012-03-07  Jim Meyering  <meyering@redhat.com>
6440
6441         quotearg: the module must now include quote.h
6442         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6443         So must the module.
6444         * modules/quotearg (Files): Add quote.h.
6445
6446 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6447
6448         readtokens: avoid core dumps with unusual calling patterns
6449         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6450         * lib/readtokens.c: Include limits.h.
6451         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6452         (readtoken): Don't cache the delimiters; the cache code was buggy
6453         if !delim && saved_delim, or if the new n_delim differs from the old.
6454         Also, it wasn't thread-safe.
6455
6456 2012-03-07  Bruno Haible  <bruno@clisp.org>
6457
6458         quote: Adhere to common module description layout.
6459         * modules/quote (Makefile.am): Add back empty section.
6460
6461 2012-03-06  Akim Demaille  <demaille@gostai.com>
6462
6463         quote: fuse into quotearg
6464         This patch is made for the benefit of Bison.
6465         quote does not leave the choice of the quoting style to the user.
6466         quoting_style provides poor customizability, yet quoting_options,
6467         which is very rich, is hidden inside quotearg.c.  So in order to
6468         allow quote customization, move its implementation to quotearg.c.
6469         * lib/quote.c: Remove.
6470         * modules/quote: Adjust.
6471         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6472         warning: provide all the members of literal structs.
6473         (quote_quoting_options): New.
6474         (quote, quote_n): Import implementation from quote.c.
6475         * lib/quote.h: Import the comments from quote.c.
6476         (quote_quoting_options): New.
6477
6478 2012-03-06  Bruno Haible  <bruno@clisp.org>
6479
6480         Tests for module 'expm1l-ieee'.
6481         * modules/expm1l-ieee-tests: New file.
6482         * tests/test-expm1l-ieee.c: New file.
6483
6484         New module 'expm1l-ieee'.
6485         * modules/expm1l-ieee: New file.
6486
6487         Tests for module 'expm1f-ieee'.
6488         * modules/expm1f-ieee-tests: New file.
6489         * tests/test-expm1f-ieee.c: New file.
6490
6491         New module 'expm1f-ieee'.
6492         * modules/expm1f-ieee: New file.
6493
6494         Tests for module 'expm1-ieee'.
6495         * modules/expm1-ieee-tests: New file.
6496         * tests/test-expm1-ieee.c: New file.
6497         * tests/test-expm1-ieee.h: New file.
6498
6499         New module 'expm1-ieee'.
6500         * modules/expm1-ieee: New file.
6501         * m4/expm1-ieee.m4: New file.
6502         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6503         whether expm1 works with a minus zero argument. Replace it if not.
6504         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6506         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6507         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6508         (Depends-on): Update conditions.
6509         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6510         AIX problem.
6511
6512 2012-03-06  Bruno Haible  <bruno@clisp.org>
6513
6514         Work around expm1f bug on IRIX 6.5.
6515         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6516         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6517         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6518         not work.
6519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6520         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6521         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6522         (Depends-on): Update conditions.
6523         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6524
6525 2012-03-06  Bruno Haible  <bruno@clisp.org>
6526
6527         Tests for module 'expm1l'.
6528         * modules/expm1l-tests: New file.
6529         * tests/test-expm1l.c: New file.
6530
6531         New module 'expm1l'.
6532         * lib/math.in.h (expm1l): New declaration.
6533         * lib/expm1l.c: New file.
6534         * m4/expm1l.m4: New file.
6535         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6537         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6538         * modules/expm1l: New file.
6539         * tests/test-math-c++.cc: Check the declaration of expm1l.
6540         * doc/posix-functions/expm1l.texi: Mention the new module.
6541
6542 2012-03-06  Bruno Haible  <bruno@clisp.org>
6543
6544         Tests for module 'expm1f'.
6545         * modules/expm1f-tests: New file.
6546         * tests/test-expm1f.c: New file.
6547
6548         New module 'expm1f'.
6549         * lib/math.in.h (expm1f): New declaration.
6550         * lib/expm1f.c: New file.
6551         * m4/expm1f.m4: New file.
6552         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6554         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6555         * modules/expm1f: New file.
6556         * tests/test-math-c++.cc: Check the declaration of expm1f.
6557         * doc/posix-functions/expm1f.texi: Mention the new module.
6558
6559 2012-03-06  Bruno Haible  <bruno@clisp.org>
6560
6561         Tests for module 'expm1'.
6562         * modules/expm1-tests: New file.
6563         * tests/test-expm1.c: New file.
6564         * tests/test-expm1.h: New file.
6565
6566         New module 'expm1'.
6567         * lib/math.in.h (expm1): New declaration.
6568         * lib/expm1.c: New file.
6569         * m4/expm1.m4: New file.
6570         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6572         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6573         * modules/expm1: New file.
6574         * tests/test-math-c++.cc: Check the declaration of expm1.
6575         * doc/posix-functions/expm1.texi: Mention the new module.
6576
6577 2012-03-06  Bruno Haible  <bruno@clisp.org>
6578
6579         math: Ensure declarations of math functions.
6580         * modules/acosf (Depends-on): Add 'extensions'.
6581         * modules/asinf (Depends-on): Likewise.
6582         * modules/atan2f (Depends-on): Likewise.
6583         * modules/atanf (Depends-on): Likewise.
6584         * modules/cbrt (Depends-on): Likewise.
6585         * modules/cbrtf (Depends-on): Likewise.
6586         * modules/cbrtl (Depends-on): Likewise.
6587         * modules/copysignf (Depends-on): Likewise.
6588         * modules/copysignl (Depends-on): Likewise.
6589         * modules/cosf (Depends-on): Likewise.
6590         * modules/coshf (Depends-on): Likewise.
6591         * modules/expf (Depends-on): Likewise.
6592         * modules/fabsf (Depends-on): Likewise.
6593         * modules/fabsl (Depends-on): Likewise.
6594         * modules/fmaf (Depends-on): Likewise.
6595         * modules/fmal (Depends-on): Likewise.
6596         * modules/fmodf (Depends-on): Likewise.
6597         * modules/fmodl (Depends-on): Likewise.
6598         * modules/frexpf (Depends-on): Likewise.
6599         * modules/frexpl (Depends-on): Likewise.
6600         * modules/hypot (Depends-on): Likewise.
6601         * modules/hypotf (Depends-on): Likewise.
6602         * modules/hypotl (Depends-on): Likewise.
6603         * modules/ldexpf (Depends-on): Likewise.
6604         * modules/ldexpl (Depends-on): Likewise.
6605         * modules/log10f (Depends-on): Likewise.
6606         * modules/log10l (Depends-on): Likewise.
6607         * modules/log1p (Depends-on): Likewise.
6608         * modules/logb (Depends-on): Likewise.
6609         * modules/logf (Depends-on): Likewise.
6610         * modules/modff (Depends-on): Likewise.
6611         * modules/modfl (Depends-on): Likewise.
6612         * modules/powf (Depends-on): Likewise.
6613         * modules/remainderf (Depends-on): Likewise.
6614         * modules/remainderl (Depends-on): Likewise.
6615         * modules/rintf (Depends-on): Likewise.
6616         * modules/rintl (Depends-on): Likewise.
6617         * modules/sinf (Depends-on): Likewise.
6618         * modules/sinhf (Depends-on): Likewise.
6619         * modules/sqrtf (Depends-on): Likewise.
6620         * modules/tanf (Depends-on): Likewise.
6621         * modules/tanhf (Depends-on): Likewise.
6622         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6623         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6624         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6625         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6626         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6627         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6628         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6629         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6630         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6631         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6632         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6633         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6634         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6635         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6636         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6637         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6638         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6639         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6640         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6641         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6642         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6643         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6644         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6645         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6647         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6648         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6649         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6650         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6651         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6652         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6653         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6654         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6655         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6656         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6657         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6658         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6659         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6660         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6661         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6662         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6663
6664 2012-03-06  Bruno Haible  <bruno@clisp.org>
6665
6666         math: Update module names in warnings.
6667         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6668         tanl): Use specific module name in warn-on-use warning.
6669
6670 2012-03-06  Bruno Haible  <bruno@clisp.org>
6671
6672         expl: Simplify computation.
6673         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6674
6675 2012-03-05  Bruno Haible  <bruno@clisp.org>
6676
6677         exp* tests: More tests.
6678         * tests/test-exp.h: New file.
6679         * tests/test-exp.c: Include <float.h> and test-exp.h.
6680         (main): Invoke test_function.
6681         * tests/test-expf.c: Include <float.h> and test-exp.h.
6682         (main): Invoke test_function.
6683         * tests/test-expl.c: Include <float.h> and test-exp.h.
6684         (main): Invoke test_function.
6685         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6686         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6687         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6688         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6689         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6690         (Depends-on): Add 'float'.
6691         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6692
6693         expl: Fix precision of computed result.
6694         * lib/expl.c: Completely rewritten.
6695         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6696         (Maintainer): Add me.
6697         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6698
6699 2012-03-05  Bruno Haible  <bruno@clisp.org>
6700
6701         cbrt* tests: More tests.
6702         * tests/test-cbrt.h: New file.
6703         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6704         (main): Invoke test_function.
6705         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6706         (main): Invoke test_function.
6707         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6708         (main): Invoke test_function.
6709         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6710         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6711         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6712         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6713         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6714         (Depends-on): Add 'float'.
6715         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6716
6717 2012-03-05  Bruno Haible  <bruno@clisp.org>
6718
6719         hypot* tests: More tests.
6720         * tests/test-hypot.h: New file, partially extracted from
6721         tests/test-hypotl.c.
6722         * tests/test-hypot.c: Include test-hypot.h.
6723         (main): Invoke test_function.
6724         * tests/test-hypotf.c: Include test-hypot.h.
6725         (main): Invoke test_function.
6726         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6727         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6728         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6729         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6730         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6731         tests/randomf.c.
6732         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6733         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6734         tests/randoml.c.
6735         (Depends-on): Add 'fpucw', 'float'.
6736         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6737
6738 2012-03-05  Bruno Haible  <bruno@clisp.org>
6739
6740         fpucw: Doc about FreeBSD.
6741         * lib/fpucw.h: Mention FreeBSD in comments.
6742
6743 2012-03-04  Bruno Haible  <bruno@clisp.org>
6744
6745         sqrt* tests: More tests.
6746         * tests/test-sqrt.h: New file.
6747         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6748         (main): Invoke test_function.
6749         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6750         (main): Invoke test_function.
6751         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6752         (main): Invoke test_function.
6753         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6754         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6755         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6756         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6757         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6758         (Depends-on): Add 'float'.
6759         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6760
6761 2012-03-04  Bruno Haible  <bruno@clisp.org>
6762
6763         remainder* tests: More tests.
6764         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6765         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6766         (main): Invoke test_function.
6767         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6768         (main): Invoke test_function.
6769         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6770         (main): Invoke test_function.
6771         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6772         tests/randomd.c.
6773         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6774         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6775         tests/randomf.c.
6776         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6777         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6778         tests/randoml.c.
6779         (Depends-on): Add 'float'.
6780         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6781
6782 2012-03-04  Bruno Haible  <bruno@clisp.org>
6783
6784         remainder, remainderf, remainderl: Fix computation for large quotients.
6785         * lib/remainder.c: Completely rewritten.
6786         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6787         USE_FLOAT.
6788         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6789         USE_LONG_DOUBLE.
6790         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6791         isnand, isinf. Remove round, fma.
6792         * modules/remainderf (Files): Add lib/remainder.c.
6793         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6794         Remove roundf, fmaf.
6795         * modules/remainderl (Files): Add lib/remainder.c.
6796         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6797         isinf. Remove roundl, fmal.
6798         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6799         REMAINDER_LIBM.
6800         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6801         REMAINDERF_LIBM.
6802         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6803         REMAINDERL_LIBM.
6804
6805 2012-03-04  Bruno Haible  <bruno@clisp.org>
6806
6807         fmod* tests: More tests.
6808         * tests/test-fmod.h (my_ldexp): New function.
6809         (test_function): Reduce amount of random numbers to test. Add tests
6810         of very large quotients x / y.
6811         * tests/test-fmod.c (MAX_EXP): New macro.
6812         * tests/test-fmodf.c (MAX_EXP): Likewise.
6813         * tests/test-fmodl.c (MAX_EXP): Likewise.
6814
6815 2012-03-04  Bruno Haible  <bruno@clisp.org>
6816
6817         fmod, fmodl: Fix computation for large quotients x / y.
6818         * lib/fmod.c: Completely rewritten.
6819         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6820         USE_LONG_DOUBLE.
6821         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6822         isnand. Remove fma.
6823         * modules/fmodl (Files): Add lib/fmod.c.
6824         (Depends-on): Add float, isfinite, signbit, fabsl,
6825         frexpl, ldexpl, isnanl. Remove fma.
6826         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6827         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6828
6829 2012-03-03  Bruno Haible  <bruno@clisp.org>
6830
6831         fmod* tests: More tests.
6832         * tests/test-fmod.h: New file.
6833         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6834         (main): Invoke test_function.
6835         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6836         (main): Invoke test_function.
6837         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6838         (main): Invoke test_function.
6839         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6840         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6841         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6842         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6843         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6844         (Depends-on): Add 'float'.
6845         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6846
6847 2012-03-03  Bruno Haible  <bruno@clisp.org>
6848
6849         rint* tests: More tests.
6850         * tests/test-rint.h: New file, partially extracted from
6851         tests/test-rintl.c.
6852         * tests/test-rint.c: Include test-rint.h.
6853         (main): Invoke test_function.
6854         * tests/test-rintf.c: Include test-rint.h.
6855         (main): Invoke test_function.
6856         * tests/test-rintl.c: Include test-rint.h.
6857         (main): Invoke test_function.
6858         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6859         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6860         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6861         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6862         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6863         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6864
6865 2012-03-03  Bruno Haible  <bruno@clisp.org>
6866
6867         modf* tests: More tests.
6868         * tests/test-modf.h: New file.
6869         * tests/test-modf.c: Include <float.h> and test-modf.h.
6870         (main): Invoke test_function.
6871         * tests/test-modff.c: Include <float.h> and test-modf.h.
6872         (main): Invoke test_function.
6873         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6874         (main): Invoke test_function.
6875         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6876         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6877         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6878         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6879         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6880         (Depends-on): Add 'float'.
6881         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6882
6883 2012-03-03  Bruno Haible  <bruno@clisp.org>
6884
6885         fabs* tests: More tests.
6886         * tests/test-fabs.h: New file, partially extracted from
6887         tests/test-fabsl.c.
6888         * tests/test-fabs.c (RANDOM): New macro.
6889         * tests/test-fabsf.c (RANDOM): New macro.
6890         * tests/test-fabsl.c (RANDOM): New macro.
6891         * modules/fabs-tests (Files): Add tests/randomd.c.
6892         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6893         * modules/fabsf-tests (Files): Add tests/randomf.c.
6894         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6895         * modules/fabsl-tests (Files): Add tests/randoml.c.
6896         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6897
6898 2012-03-03  Bruno Haible  <bruno@clisp.org>
6899
6900         ldexp* tests: More tests.
6901         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6902         * tests/test-ldexp.c (RANDOM): New macro.
6903         * tests/test-ldexpf.c (RANDOM): New macro.
6904         * tests/test-ldexpl.c (RANDOM): New macro.
6905         * modules/ldexp-tests (Files): Add tests/randomd.c.
6906         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6907         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6908         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6909         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6910         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6911
6912 2012-03-03  Bruno Haible  <bruno@clisp.org>
6913
6914         frexp* tests: More tests.
6915         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6916         * tests/test-frexp.c (RANDOM): New macro.
6917         * tests/test-frexpf.c (RANDOM): New macro.
6918         * tests/test-frexpl.c (RANDOM): New macro.
6919         * modules/frexp-tests (Files): Add tests/randomd.c.
6920         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6921         * modules/frexpf-tests (Files): Add tests/randomf.c.
6922         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6923         * modules/frexpl-tests (Files): Add tests/randoml.c.
6924         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6925
6926 2012-03-03  Bruno Haible  <bruno@clisp.org>
6927
6928         Support for pseudo-random numbers in tests.
6929         * tests/randomf.c: New file.
6930         * tests/randomd.c: New file.
6931         * tests/randoml.c: New file.
6932         * tests/macros.h (randomf, randomd, randoml): New declarations.
6933
6934 2012-03-03  Bruno Haible  <bruno@clisp.org>
6935
6936         frexp* tests: Refactor.
6937         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6938         * tests/test-frexp.c: Include and use it.
6939         * tests/test-frexpf.c: Likewise.
6940         * tests/test-frexpl.c: Likewise.
6941         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6942         * modules/frexpf-tests (Files): Likewise.
6943         * modules/frexpl-tests (Files): Likewise.
6944
6945 2012-03-02  Jim Meyering  <meyering@redhat.com>
6946
6947         maint: don't specify XZ_OPT=-9ev in dist-related rule
6948         Using xz's -9 option is warranted only if you have a very large
6949         tarball (see xz's documentation for the sizes vs. presets), and
6950         requires 64MiB of memory at decompression time.
6951         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6952         Automake's default of just "-e" is fine.  Override on a
6953         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6954
6955 2012-03-01  Eric Blake  <eblake@redhat.com>
6956
6957         maint.mk: allow announcement for non-gnulib project
6958         * maint.mk (announcement): Skip gnulib version if not used.
6959
6960 2012-03-01  Jim Meyering  <meyering@redhat.com>
6961
6962         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6963         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6964         envvar settings cannot interfere.  Otherwise, setting envvars like
6965         prohibit=foo require=bar, etc. would cause spurious test failures.
6966
6967 2012-03-01  Eric Blake  <eblake@redhat.com>
6968
6969         maint.mk: add per-line exclusions to prohibitions
6970         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6971         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6972         (sc_const_long_option): Use it.
6973
6974 2012-03-01  Bruno Haible  <bruno@clisp.org>
6975
6976         Tests for module 'expl-ieee'.
6977         * modules/expl-ieee-tests: New file.
6978         * tests/test-expl-ieee.c: New file.
6979
6980         New module 'expl-ieee'.
6981         * modules/expl-ieee: New file.
6982
6983         Tests for module 'exp-ieee'.
6984         * modules/exp-ieee-tests: New file.
6985         * tests/test-exp-ieee.c: New file.
6986
6987         New module 'exp-ieee'.
6988         * modules/exp-ieee: New file.
6989
6990         Tests for module 'expf-ieee'.
6991         * modules/expf-ieee-tests: New file.
6992         * tests/test-expf-ieee.c: New file.
6993         * tests/test-exp-ieee.h: New file.
6994
6995         New module 'expf-ieee'.
6996         * modules/expf-ieee: New file.
6997
6998 2012-02-29  Bruno Haible  <bruno@clisp.org>
6999
7000         cbrtl-ieee: Work around test failure on IRIX 6.5.
7001         * m4/cbrtl-ieee.m4: New file.
7002         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7003         test whether cbrtl works with a minus zero argument. Replace it if not.
7004         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7006         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7007         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7008         (Depends-on): Update conditions.
7009         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7010         m4/signbit.m4.
7011         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7012         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7013         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7014
7015         Tests for module 'cbrtl-ieee'.
7016         * modules/cbrtl-ieee-tests: New file.
7017         * tests/test-cbrtl-ieee.c: New file.
7018
7019         New module 'cbrtl-ieee'.
7020         * modules/cbrtl-ieee: New file.
7021
7022         Tests for module 'cbrt-ieee'.
7023         * modules/cbrt-ieee-tests: New file.
7024         * tests/test-cbrt-ieee.c: New file.
7025
7026         New module 'cbrt-ieee'.
7027         * modules/cbrt-ieee: New file.
7028
7029         Tests for module 'cbrtf-ieee'.
7030         * modules/cbrtf-ieee-tests: New file.
7031         * tests/test-cbrtf-ieee.c: New file.
7032         * tests/test-cbrt-ieee.h: New file.
7033
7034         New module 'cbrtf-ieee'.
7035         * modules/cbrtf-ieee: New file.
7036
7037 2012-02-29  Bruno Haible  <bruno@clisp.org>
7038
7039         cbrtf: Work around bug in IRIX 6.5 system function.
7040         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7041         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7042         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7043         work.
7044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7045         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7046         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7047         (Depends-on): Update conditions.
7048         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7049
7050 2012-02-29  Bruno Haible  <bruno@clisp.org>
7051
7052         Tests for module 'cbrtl'.
7053         * modules/cbrtl-tests: New file.
7054         * tests/test-cbrtl.c: New file.
7055
7056         New module 'cbrtl'.
7057         * lib/math.in.h (cbrtl): New declaration.
7058         * lib/cbrtl.c: New file.
7059         * m4/cbrtl.m4: New file.
7060         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7062         HAVE_DECL_CBRTL.
7063         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7064         HAVE_DECL_CBRTL.
7065         * modules/cbrtl: New file.
7066         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7067         * doc/posix-functions/cbrtl.texi: Mention the new module.
7068
7069 2012-02-29  Bruno Haible  <bruno@clisp.org>
7070
7071         Tests for module 'cbrtf'.
7072         * modules/cbrtf-tests: New file.
7073         * tests/test-cbrtf.c: New file.
7074
7075         New module 'cbrtf'.
7076         * lib/math.in.h (cbrtf): New declaration.
7077         * lib/cbrtf.c: New file.
7078         * m4/cbrtf.m4: New file.
7079         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7081         HAVE_DECL_CBRTF.
7082         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7083         HAVE_DECL_CBRTF.
7084         * modules/cbrtf: New file.
7085         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7086         * doc/posix-functions/cbrtf.texi: Mention the new module.
7087
7088 2012-02-29  Bruno Haible  <bruno@clisp.org>
7089
7090         cbrt: Provide replacement on MSVC and Minix.
7091         * lib/math.in.h (cbrt): New declaration.
7092         * lib/cbrt.c: New file.
7093         * m4/cbrt.m4: New file.
7094         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7096         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7097         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7098         (Depends-on): Add dependencies.
7099         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7100         * tests/test-math-c++.cc: Check the declaration of cbrt.
7101         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7102         replacement.
7103
7104 2012-02-29  Bruno Haible  <bruno@clisp.org>
7105
7106         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7107         * m4/hypotl-ieee.m4: New file.
7108         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7109         test whether hypotl works with mixed NaN and Infinity arguments.
7110         Replace it if not.
7111         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7113         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7114         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7115         (Depends-on): Update conditions.
7116         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7117         (Depends-on): Add hypot-ieee.
7118         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7119         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7120
7121         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7122         * m4/hypotf-ieee.m4: New file.
7123         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7124         test whether hypotf works with mixed NaN and Infinity arguments.
7125         Replace it if not.
7126         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7127         (Depends-on): Add hypot-ieee.
7128         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7129         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7130
7131         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7132         * lib/math.in.h (hypot): New declaration.
7133         * lib/hypot.c: New file.
7134         * m4/hypot-ieee.m4: New file.
7135         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7136         whether hypot works with mixed NaN and Infinity arguments. Replace it
7137         if not.
7138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7139         REPLACE_HYPOT.
7140         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7141         * modules/hypot (Files): Add lib/hypot.c.
7142         (Depends-on): Add dependencies.
7143         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7144         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7145         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7146         * tests/test-math-c++.cc: Check the declaration of hypot.
7147         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7148
7149         Tests for module 'hypotl-ieee'.
7150         * modules/hypotl-ieee-tests: New file.
7151         * tests/test-hypotl-ieee.c: New file.
7152
7153         New module 'hypotl-ieee'.
7154         * modules/hypotl-ieee: New file.
7155
7156         Tests for module 'hypot-ieee'.
7157         * modules/hypot-ieee-tests: New file.
7158         * tests/test-hypot-ieee.c: New file.
7159
7160         New module 'hypot-ieee'.
7161         * modules/hypot-ieee: New file.
7162
7163         Tests for module 'hypotf-ieee'.
7164         * modules/hypotf-ieee-tests: New file.
7165         * tests/test-hypotf-ieee.c: New file.
7166         * tests/test-hypot-ieee.h: New file.
7167
7168         New module 'hypotf-ieee'.
7169         * modules/hypotf-ieee: New file.
7170
7171 2012-02-29  Bruno Haible  <bruno@clisp.org>
7172
7173         Remove unused variables.
7174         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7175         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7176         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7177         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7178
7179 2012-02-29  Eric Blake  <eblake@redhat.com>
7180
7181         termios: fix pid_t always, not just for tcgetsid
7182         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7183         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7184         just when building tcgetsid.
7185
7186 2012-02-29  Bruno Haible  <bruno@clisp.org>
7187
7188         Tests for module 'hypotl'.
7189         * modules/hypotl-tests: New file.
7190         * tests/test-hypotl.c: New file.
7191
7192         New module 'hypotl'.
7193         * lib/math.in.h (hypotl): New declaration.
7194         * lib/hypotl.c: New file.
7195         * m4/hypotl.m4: New file.
7196         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7198         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7199         * modules/hypotl: New file.
7200         * tests/test-math-c++.cc: Check the hypotl declaration.
7201         * doc/posix-functions/hypotl.texi: Mention the new module.
7202
7203 2012-02-29  Eric Blake  <eblake@redhat.com>
7204
7205         tcgetsid: fix cygwin header bug
7206         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7207
7208         docs: update cygwin progress
7209         * doc/posix-functions/llround.texi (llround): Added in cygwin
7210         1.7.8.
7211         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7212         * doc/glibc-functions/program_invocation_name.texi
7213         (program_invocation_name): Likewise.
7214         * doc/glibc-functions/program_invocation_short_name.texi
7215         (program_invocation_short_name): Likewise.
7216         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7217         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7218         Likewise.
7219         * doc/posix-functions/pthread_spin_destroy.texi
7220         (pthread_spin_destroy): Added in cygwin 1.7.10.
7221         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7222         Likewise.
7223         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7224         Likewise.
7225         * doc/posix-functions/pthread_spin_trylock.texi
7226         (pthread_spin_trylock): Likewise.
7227         * doc/posix-functions/pthread_spin_unlock.texi
7228         (pthread_spin_unlock): Likewise.
7229         * doc/posix-functions/pthread_setschedprio.texi
7230         (pthread_setschedprio): Likewise.
7231         * doc/posix-functions/pthread_attr_getstack.texi
7232         (pthread_attr_getstack): Likewise.
7233         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7234         (pthread_attr_getstackaddr): Likewise.
7235         * doc/glibc-functions/pthread_getattr_np.texi
7236         (pthread_getattr_np): Likewise.
7237         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7238         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7239         * doc/posix-functions/clock_settime.texi (clock_settime):
7240         Likewise.
7241         * doc/posix-functions/pthread_attr_getguardsize.texi
7242         (pthread_attr_getguardsize): Likewise.
7243         * doc/posix-functions/pthread_attr_setguardsize.texi
7244         (pthread_attr_setguardsize): Likewise.
7245         * doc/posix-functions/pthread_attr_setstack.texi
7246         (pthread_attr_setstack): Likewise.
7247         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7248         (pthread_attr_setstackaddr): Likewise.
7249         * doc/posix-functions/clock_getcpuclockid.texi
7250         (clock_getcpuclockid): Likewise.
7251         * doc/posix-functions/pthread_getcpuclockid.texi
7252         (pthread_getcpuclockid): Likewise.
7253         * doc/glibc-functions/error.texi (error): Likewise.
7254         * doc/glibc-functions/error_at_line.texi (error_at_line):
7255         Likewise.
7256         * doc/glibc-functions/error_message_count.texi
7257         (error_message_count): Likewise.
7258         * doc/glibc-functions/error_one_per_line.texi
7259         (error_one_per_line): Likewise.
7260         * doc/glibc-functions/error_print_progname.texi
7261         (error_print_progname): Likewise.
7262         * doc/posix-functions/pthread_condattr_getclock.texi
7263         (pthread_condattr_getclock): Likewise.
7264         * doc/posix-functions/pthread_condattr_setclock.texi
7265         (pthread_condattr_setclock): Likewise.
7266         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7267         Likewise.
7268         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7269         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7270         * doc/glibc-functions/get_current_dir_name.texi
7271         (get_current_dir_name): Likewise.
7272         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7273         Likewise.
7274         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7275         wrong return type.
7276         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7277         1.7.11.
7278
7279 2012-02-29  Bruno Haible  <bruno@clisp.org>
7280
7281         Tests for module 'hypotf'.
7282         * modules/hypotf-tests: New file.
7283         * tests/test-hypotf.c: New file.
7284
7285         New module 'hypotf'.
7286         * lib/math.in.h (hypotf): New declaration.
7287         * lib/hypotf.c: New file.
7288         * m4/hypotf.m4: New file.
7289         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7291         REPLACE_HYPOTF.
7292         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7293         REPLACE_HYPOTF.
7294         * modules/hypotf: New file.
7295         * tests/test-math-c++.cc: Check the hypotf declaration.
7296         * doc/posix-functions/hypotf.texi: Mention the new module.
7297
7298         hypot: Prepare for hypotf module.
7299         * m4/hypot.m4: New file.
7300         * modules/hypot (Files): Add m4/hypot.m4.
7301         (configure.ac): Invoke gl_FUNC_HYPOT.
7302
7303 2012-02-29  Bruno Haible  <bruno@clisp.org>
7304
7305         hypot tests: More tests.
7306         * tests/test-hypot.c: Include <float.h>.
7307         (main): Add tests about overflow and underflow.
7308
7309 2012-02-29  Bruno Haible  <bruno@clisp.org>
7310
7311         math code: Add comments.
7312         * lib/acosl.c: Add comment about related glibc source files.
7313         * lib/asinl.c: Likewise.
7314         * lib/atanl.c: Likewise.
7315         * lib/expl.c: Likewise.
7316         * lib/logl.c: Likewise.
7317         * lib/sincosl.c: Likewise.
7318         * lib/sinl.c: Likewise.
7319         * lib/tanl.c: Likewise.
7320         * lib/trigl.c: Likewise.
7321         * lib/cosl.c: Likewise. Fix comments.
7322
7323 2012-02-28  Bruno Haible  <bruno@clisp.org>
7324
7325         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7326         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7327         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7328         HUGE_VALL are defined.
7329         (numeric_equald): Renamed from numeric_equal.
7330         (numeric_equalf, numeric_equall): New functions.
7331         (main): Check also HUGE_VALF, HUGE_VALL.
7332         * modules/math-tests (Files): Add tests/macros.h.
7333         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7334         HUGE_VALL.
7335
7336 2012-02-28  Bruno Haible  <bruno@clisp.org>
7337
7338         doc: Move ISO C11 feature notes into POSIX chapters.
7339         * doc/posix-functions/aligned_alloc.texi: Renamed from
7340         doc/glibc-functions/aligned_alloc.texi.
7341         * doc/posix-functions/quick_exit.texi: Renamed from
7342         doc/glibc-functions/quick_exit.texi.
7343         * doc/posix-headers/uchar.texi: Renamed from
7344         doc/glibc-headers/uchar.texi.
7345         * doc/posix-functions/c16rtomb.texi: Renamed from
7346         doc/glibc-functions/c16rtomb.texi.
7347         * doc/posix-functions/c32rtomb.texi: Renamed from
7348         doc/glibc-functions/c32rtomb.texi.
7349         * doc/posix-functions/mbrtoc16.texi: Renamed from
7350         doc/glibc-functions/mbrtoc16.texi.
7351         * doc/posix-functions/mbrtoc32.texi: Renamed from
7352         doc/glibc-functions/mbrtoc32.texi.
7353         * doc/gnulib.texi: Update.
7354         (Glibc uchar.h): Remove section.
7355         Suggested by Eric Blake.
7356
7357 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7358
7359         stdnoreturn: port to MSVC better
7360         MSVC standard headers use __declspec(noreturn), so #define noreturn
7361         to empty on that platform.  Reported by Bruno Haible in
7362         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7363         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7364         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7365
7366 2012-02-28  Bruno Haible  <bruno@clisp.org>
7367
7368         doc: Mention new glibc headers and functions.
7369         * doc/glibc-headers/uchar.texi: New file.
7370         * doc/glibc-functions/aligned_alloc.texi: New file.
7371         * doc/glibc-functions/c16rtomb.texi: New file.
7372         * doc/glibc-functions/c32rtomb.texi: New file.
7373         * doc/glibc-functions/clock_adjtime.texi: New file.
7374         * doc/glibc-functions/fanotify_init.texi: New file.
7375         * doc/glibc-functions/fanotify_mark.texi: New file.
7376         * doc/glibc-functions/inet6_opt_append.texi: New file.
7377         * doc/glibc-functions/inet6_opt_find.texi: New file.
7378         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7379         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7380         * doc/glibc-functions/inet6_opt_init.texi: New file.
7381         * doc/glibc-functions/inet6_opt_next.texi: New file.
7382         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7383         * doc/glibc-functions/inet6_rth_add.texi: New file.
7384         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7385         * doc/glibc-functions/inet6_rth_init.texi: New file.
7386         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7387         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7388         * doc/glibc-functions/inet6_rth_space.texi: New file.
7389         * doc/glibc-functions/login.texi: New file.
7390         * doc/glibc-functions/mbrtoc16.texi: New file.
7391         * doc/glibc-functions/mbrtoc32.texi: New file.
7392         * doc/glibc-functions/name_to_handle_at.texi: New file.
7393         * doc/glibc-functions/ntp_gettimex.texi: New file.
7394         * doc/glibc-functions/open_by_handle_at.texi: New file.
7395         * doc/glibc-functions/prlimit.texi: New file.
7396         * doc/glibc-functions/process_vm_readv.texi: New file.
7397         * doc/glibc-functions/process_vm_writev.texi: New file.
7398         * doc/glibc-functions/recvmmsg.texi: New file.
7399         * doc/glibc-functions/scandirat.texi: New file.
7400         * doc/glibc-functions/sendmmsg.texi: New file.
7401         * doc/glibc-functions/setns.texi: New file.
7402         * doc/glibc-functions/timespec_get.texi: New file.
7403         * doc/gnulib.texi: Include them.
7404         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7405         sections.
7406         Reported by Eric Blake.
7407
7408 2012-02-28  Bruno Haible  <bruno@clisp.org>
7409
7410         Avoid compilation errors with MSVC option -fp:strict.
7411         * lib/floor.c: Use MSVC specific pragma fenv_access.
7412         * lib/ceil.c: Likewise.
7413         * lib/trunc.c: Likewise.
7414         * lib/round.c: Likewise.
7415         * lib/rint.c: Likewise.
7416         * lib/fma.c: Likewise.
7417         * lib/integer_length.c: Likewise.
7418         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7419         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7420         * tests/test-floor2.c: Likewise.
7421         * tests/test-floorf2.c: Likewise.
7422         * tests/test-ceil2.c: Likewise.
7423         * tests/test-ceilf2.c: Likewise.
7424         * tests/test-trunc2.c: Likewise.
7425         * tests/test-truncf2.c: Likewise.
7426         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7427
7428 2012-02-27  Bruno Haible  <bruno@clisp.org>
7429
7430         Tests for module 'sqrtl-ieee'.
7431         * modules/sqrtl-ieee-tests: New file.
7432         * tests/test-sqrtl-ieee.c: New file.
7433
7434         New module 'sqrtl-ieee'.
7435         * modules/sqrtl-ieee: New file.
7436
7437         Tests for module 'sqrt-ieee'.
7438         * modules/sqrt-ieee-tests: New file.
7439         * tests/test-sqrt-ieee.c: New file.
7440
7441         New module 'sqrt-ieee'.
7442         * modules/sqrt-ieee: New file.
7443
7444         Tests for module 'sqrtf-ieee'.
7445         * modules/sqrtf-ieee-tests: New file.
7446         * tests/test-sqrtf-ieee.c: New file.
7447         * tests/test-sqrt-ieee.h: New file.
7448
7449         New module 'sqrtf-ieee'.
7450         * modules/sqrtf-ieee: New file.
7451
7452 2012-02-27  Bruno Haible  <bruno@clisp.org>
7453
7454         remainderl-ieee: Work around test failure on OSF/1.
7455         * m4/remainderl-ieee.m4: New file.
7456         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7457         present, test whether remainderl works with a zero second argument.
7458         Replace it if not.
7459         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7461         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7462         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7463         (Depends-on): Update conditions.
7464         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7465         (Depends-on): Add remainder-ieee.
7466         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7467         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7468         module.
7469
7470         remainderf-ieee: Work around test failure on OSF/1.
7471         * m4/remainderf-ieee.m4: New file.
7472         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7473         present, test whether remainderf works with a zero second argument.
7474         Replace it if not.
7475         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7477         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7478         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7479         (Depends-on): Update conditions.
7480         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7481         (Depends-on): Add remainder-ieee.
7482         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7483         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7484         module.
7485
7486         remainder-ieee: Work around test failure on OSF/1.
7487         * m4/remainder-ieee.m4: New file.
7488         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7489         present, test whether remainder works with a zero second argument.
7490         Replace it if not.
7491         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7493         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7494         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7495         (Depends-on): Update dependencies.
7496         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7497         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7498         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7499
7500         Tests for module 'remainderl-ieee'.
7501         * modules/remainderl-ieee-tests: New file.
7502         * tests/test-remainderl-ieee.c: New file.
7503
7504         New module 'remainderl-ieee'.
7505         * modules/remainderl-ieee: New file.
7506
7507         Tests for module 'remainder-ieee'.
7508         * modules/remainder-ieee-tests: New file.
7509         * tests/test-remainder-ieee.c: New file.
7510
7511         New module 'remainder-ieee'.
7512         * modules/remainder-ieee: New file.
7513
7514         Tests for module 'remainderf-ieee'.
7515         * modules/remainderf-ieee-tests: New file.
7516         * tests/test-remainderf-ieee.c: New file.
7517         * tests/test-remainder-ieee.h: New file.
7518
7519         New module 'remainderf-ieee'.
7520         * modules/remainderf-ieee: New file.
7521
7522 2012-02-27  Bruno Haible  <bruno@clisp.org>
7523
7524         modff, modfl: Fix configure syntax error.
7525         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7526         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7527
7528 2012-02-27  Bruno Haible  <bruno@clisp.org>
7529
7530         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7531         * m4/fmodl-ieee.m4: New file.
7532         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7533         whether fmodl works with zero arguments. Replace it if not.
7534         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7535         (Depends-on): Add fmod-ieee.
7536         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7537         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7538
7539         fmodf-ieee: Work around test failure on OSF/1.
7540         * m4/fmodf-ieee.m4: New file.
7541         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7542         whether fmodf works with zero arguments. Replace it if not.
7543         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7545         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7546         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7547         (Depends-on): Update dependencies.
7548         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7549         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7550         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7551
7552         fmodf-ieee: Work around test failure on MSVC 9.
7553         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7554         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7555
7556         fmod-ieee: Work around test failures on OSF/1, mingw.
7557         * m4/fmod-ieee.m4: New file.
7558         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7559         whether fmod works with zero arguments. Replace it if not.
7560         * lib/math.in.h (fmod): New declaration.
7561         * lib/fmod.c: New file.
7562         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7564         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7565         * modules/fmod (Files): Add lib/fmod.c.
7566         (Depends-on): Add math, isinf, trunc, fma.
7567         (configure.ac): Arrange to compile lib/fmod.c if needed.
7568         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7569         m4/signbit.m4.
7570         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7571         * tests/test-math-c++.cc: Check the declaration of fmod.
7572         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7573
7574         fmodl-ieee: Fix test failures.
7575         * lib/fmodl.c (fmodl): Treat Inf specially.
7576         * modules/fmodl (Depends-on): Add isinf.
7577
7578         Tests for module 'fmodl-ieee'.
7579         * modules/fmodl-ieee-tests: New file.
7580         * tests/test-fmodl-ieee.c: New file.
7581
7582         New module 'fmodl-ieee'.
7583         * modules/fmodl-ieee: New file.
7584
7585         Tests for module 'fmod-ieee'.
7586         * modules/fmod-ieee-tests: New file.
7587         * tests/test-fmod-ieee.c: New file.
7588
7589         New module 'fmod-ieee'.
7590         * modules/fmod-ieee: New file.
7591
7592         Tests for module 'fmodf-ieee'.
7593         * modules/fmodf-ieee-tests: New file.
7594         * tests/test-fmodf-ieee.c: New file.
7595         * tests/test-fmod-ieee.h: New file.
7596
7597         New module 'fmodf-ieee'.
7598         * modules/fmodf-ieee: New file.
7599
7600 2012-02-27  Bruno Haible  <bruno@clisp.org>
7601
7602         Tests for module 'rintl-ieee'.
7603         * modules/rintl-ieee-tests: New file.
7604         * tests/test-rintl-ieee.c: New file.
7605
7606         New module 'rintl-ieee'.
7607         * modules/rintl-ieee: New file.
7608
7609         Tests for module 'rint-ieee'.
7610         * modules/rint-ieee-tests: New file.
7611         * tests/test-rint-ieee.c: New file.
7612
7613         New module 'rint-ieee'.
7614         * modules/rint-ieee: New file.
7615
7616         Tests for module 'rintf-ieee'.
7617         * modules/rintf-ieee-tests: New file.
7618         * tests/test-rintf-ieee.c: New file.
7619         * tests/test-rint-ieee.h: New file.
7620
7621         New module 'rintf-ieee'.
7622         * modules/rintf-ieee: New file.
7623
7624 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7625
7626         regex: re_search etc. should return -2 when memory exhausted
7627         This bug was uncovered when testing 'grep'.  Without the fix,
7628         re_search and friends return -1 when memory is exhausted, but -1
7629         means no match, and this causes grep to falsely report no-match
7630         instead of memory-exhaustion.  See
7631         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7632         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7633         trouble; this can occur if re_search_internal ran out of memory.
7634
7635 2012-02-26  Bruno Haible  <bruno@clisp.org>
7636
7637         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7638         * m4/modfl-ieee.m4: New file.
7639         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7640         whether modfl works with Inf. Replace it if not.
7641         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7643         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7644         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7645         (Depends-on): Update dependencies.
7646         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7647         m4/signbit.m4.
7648         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7649         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7650
7651         modfl-ieee: Fix dependencies.
7652         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7653
7654         modfl-ieee: Fix test failures.
7655         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7656         * modules/modfl (Depends-on): Add isfinite, isinf.
7657
7658         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7659         * m4/modff-ieee.m4: New file.
7660         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7661         whether modff works with NaN and Inf. Replace it if not.
7662         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7664         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7665         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7666         (Depends-on): Update dependencies.
7667         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7668         m4/signbit.m4.
7669         (Depends-on): Add modf-ieee.
7670         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7671         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7672
7673         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7674         * m4/modf-ieee.m4: New file.
7675         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7676         whether modf works with NaN and Inf. Replace it if not.
7677         * lib/math.in.h (modf): New declaration.
7678         * lib/modf.c: New file.
7679         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7681         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7682         * modules/modf (Files): Add lib/modf.c.
7683         (Depends-on): Add math, isfinite, trunc, isinf.
7684         (configure.ac): Addrange to compile lib/modf.c if needed.
7685         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7686         m4/signbit.m4.
7687         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7688         * tests/test-math-c++.cc: Check the declaration of modf.
7689         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7690
7691         Tests for module 'modfl-ieee'.
7692         * modules/modfl-ieee-tests: New file.
7693         * tests/test-modfl-ieee.c: New file.
7694
7695         New module 'modfl-ieee'.
7696         * modules/modfl-ieee: New file.
7697
7698         Tests for module 'modf-ieee'.
7699         * modules/modf-ieee-tests: New file.
7700         * tests/test-modf-ieee.c: New file.
7701
7702         New module 'modf-ieee'.
7703         * modules/modf-ieee: New file.
7704
7705         Tests for module 'modff-ieee'.
7706         * modules/modff-ieee-tests: New file.
7707         * tests/test-modff-ieee.c: New file.
7708         * tests/test-modf-ieee.h: New file.
7709
7710         New module 'modff-ieee'.
7711         * modules/modff-ieee: New file.
7712
7713 2012-02-26  Bruno Haible  <bruno@clisp.org>
7714
7715         Tests for module 'fabsl-ieee'.
7716         * modules/fabsl-ieee-tests: New file.
7717         * tests/test-fabsl-ieee.c: New file.
7718
7719         New module 'fabsl-ieee'.
7720         * modules/fabsl-ieee: New file.
7721
7722         Tests for module 'fabs-ieee'.
7723         * modules/fabs-ieee-tests: New file.
7724         * tests/test-fabs-ieee.c: New file.
7725
7726         New module 'fabs-ieee'.
7727         * modules/fabs-ieee: New file.
7728
7729         Tests for module 'fabsf-ieee'.
7730         * modules/fabsf-ieee-tests: New file.
7731         * tests/test-fabsf-ieee.c: New file.
7732         * tests/test-fabs-ieee.h: New file.
7733
7734         New module 'fabsf-ieee'.
7735         * modules/fabsf-ieee: New file.
7736
7737 2012-02-26  Bruno Haible  <bruno@clisp.org>
7738
7739         Tests for module 'fmal-ieee'.
7740         * modules/fmal-ieee-tests: New file.
7741         * tests/test-fmal-ieee.c: New file.
7742
7743         New module 'fmal-ieee'.
7744         * modules/fmal-ieee: New file.
7745
7746         Tests for module 'fma-ieee'.
7747         * modules/fma-ieee-tests: New file.
7748         * tests/test-fma-ieee.c: New file.
7749
7750         New module 'fma-ieee'.
7751         * modules/fma-ieee: New file.
7752
7753         Tests for module 'fmaf-ieee'.
7754         * modules/fmaf-ieee-tests: New file.
7755         * tests/test-fmaf-ieee.c: New file.
7756         * tests/test-fma-ieee.h: New file.
7757
7758         New module 'fmaf-ieee'.
7759         * modules/fmaf-ieee: New file.
7760
7761 2012-02-26  Bruno Haible  <bruno@clisp.org>
7762
7763         Tests for module 'ldexpl-ieee'.
7764         * modules/ldexpl-ieee-tests: New file.
7765         * tests/test-ldexpl-ieee.c: New file.
7766
7767         New module 'ldexpl-ieee'.
7768         * modules/ldexpl-ieee: New file.
7769
7770         Tests for module 'ldexp-ieee'.
7771         * modules/ldexp-ieee-tests: New file.
7772         * tests/test-ldexp-ieee.c: New file.
7773
7774         New module 'ldexp-ieee'.
7775         * modules/ldexp-ieee: New file.
7776
7777         Tests for module 'ldexpf-ieee'.
7778         * modules/ldexpf-ieee-tests: New file.
7779         * tests/test-ldexpf-ieee.c: New file.
7780         * tests/test-ldexp-ieee.h: New file.
7781
7782         New module 'ldexpf-ieee'.
7783         * modules/ldexpf-ieee: New file.
7784
7785 2012-02-26  Bruno Haible  <bruno@clisp.org>
7786
7787         Refactor frexp*-ieee tests.
7788         * tests/test-frexp-ieee.h: New file.
7789         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7790         (main): Just call test_function.
7791         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7792         (main): Just call test_function.
7793         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7794         (main): Just call test_function.
7795         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7796         * modules/frexp-ieee-tests (Files): Likewise.
7797         * modules/frexpl-ieee-tests (Files): Likewise.
7798
7799         Tests for module 'frexpl-ieee'.
7800         * modules/frexpl-ieee-tests: New file.
7801         * tests/test-frexpl-ieee.c: New file.
7802
7803         New module 'frexpl-ieee'.
7804         * modules/frexpl-ieee: New file.
7805
7806         Tests for module 'frexp-ieee'.
7807         * modules/frexp-ieee-tests: New file.
7808         * tests/test-frexp-ieee.c: New file.
7809
7810         New module 'frexp-ieee'.
7811         * modules/frexp-ieee: New file.
7812
7813         Tests for module 'frexpf-ieee'.
7814         * modules/frexpf-ieee-tests: New file.
7815         * tests/test-frexpf-ieee.c: New file.
7816
7817         New module 'frexpf-ieee'.
7818         * modules/frexpf-ieee: New file.
7819
7820 2012-02-26  Bruno Haible  <bruno@clisp.org>
7821
7822         roundl-ieee tests: More tests.
7823         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7824         (main): Add tests for [MX] shaded specification in POSIX.
7825         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7826         (Depends-on): Add isnanl-nolibm.
7827
7828         round-ieee tests: More tests.
7829         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7830         (main): Add tests for [MX] shaded specification in POSIX.
7831         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7832         (Depends-on): Add isnand-nolibm.
7833
7834         roundf-ieee tests: More tests.
7835         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7836         (main): Add tests for [MX] shaded specification in POSIX.
7837         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7838         (Depends-on): Add isnanf-nolibm.
7839
7840         truncl-ieee tests: More tests.
7841         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7842         (main): Add tests for [MX] shaded specification in POSIX.
7843         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7844         (Depends-on): Add isnanl-nolibm.
7845
7846         trunc-ieee tests: More tests.
7847         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7848         (main): Add tests for [MX] shaded specification in POSIX.
7849         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7850         (Depends-on): Add isnand-nolibm.
7851
7852         truncf-ieee tests: More tests.
7853         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7854         (main): Add tests for [MX] shaded specification in POSIX.
7855         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7856         (Depends-on): Add isnanf-nolibm.
7857
7858         ceill-ieee tests: More tests.
7859         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7860         (main): Add tests for [MX] shaded specification in POSIX.
7861         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7862         (Depends-on): Add isnanl-nolibm.
7863
7864         ceil-ieee tests: More tests.
7865         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7866         (main): Add tests for [MX] shaded specification in POSIX.
7867         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7868         (Depends-on): Add isnand-nolibm.
7869
7870         ceilf-ieee tests: More tests.
7871         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7872         (main): Add tests for [MX] shaded specification in POSIX.
7873         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7874         (Depends-on): Add isnanf-nolibm.
7875
7876         floorl-ieee tests: More tests.
7877         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7878         (main): Add tests for [MX] shaded specification in POSIX.
7879         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7880         (Depends-on): Add isnanl-nolibm.
7881
7882         floor-ieee tests: More tests.
7883         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7884         (main): Add tests for [MX] shaded specification in POSIX.
7885         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7886         (Depends-on): Add isnand-nolibm.
7887
7888         floorf-ieee tests: More tests.
7889         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7890         (main): Add tests for [MX] shaded specification in POSIX.
7891         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7892         (Depends-on): Add isnanf-nolibm.
7893
7894 2012-02-26  Bruno Haible  <bruno@clisp.org>
7895
7896         fpieee: More comments.
7897         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7898
7899 2012-02-25  Bruno Haible  <bruno@clisp.org>
7900
7901         Tests for module 'log10l'.
7902         * modules/log10l-tests: New file.
7903         * tests/test-log10l.c: New file.
7904         * tests/test-math-c++.cc: Check the declaration of log10l.
7905
7906         New module 'log10l'.
7907         * lib/math.in.h (log10l): New declaration.
7908         * lib/log10l.c: New file.
7909         * m4/log10l.m4: New file.
7910         * modules/log10l: New file.
7911         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7913         HAVE_DECL_LOG10L.
7914         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7915         HAVE_DECL_LOG10L.
7916         * doc/posix-functions/log10l.texi: Mention the new module.
7917
7918 2012-02-25  Bruno Haible  <bruno@clisp.org>
7919
7920         fmodl, remainder*: Avoid wrong results due to rounding errors.
7921         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7922         expected bounds.
7923         * lib/remainderf.c (remainderf): Likewise.
7924         * lib/remainder.c (remainder): Likewise.
7925         * lib/remainderl.c (remainderl): Likewise.
7926
7927 2012-02-25  Bruno Haible  <bruno@clisp.org>
7928
7929         Tests for module 'remainderl'.
7930         * modules/remainderl-tests: New file.
7931         * tests/test-remainderl.c: New file.
7932         * tests/test-math-c++.cc: Check the declaration of remainderl.
7933
7934         New module 'remainderl'.
7935         * lib/math.in.h (remainderl): New declaration.
7936         * lib/remainderl.c: New file.
7937         * m4/remainderl.m4: New file.
7938         * modules/remainderl: New file.
7939         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7941         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7942         HAVE_REMAINDERL.
7943         * doc/posix-functions/remainderl.texi: Mention the new module.
7944
7945 2012-02-25  Bruno Haible  <bruno@clisp.org>
7946
7947         Tests for module 'remainderf'.
7948         * modules/remainderf-tests: New file.
7949         * tests/test-remainderf.c: New file.
7950         * tests/test-math-c++.cc: Check the declaration of remainderf.
7951
7952         New module 'remainderf'.
7953         * lib/math.in.h (remainderf): New declaration.
7954         * lib/remainderf.c: New file.
7955         * m4/remainderf.m4: New file.
7956         * modules/remainderf: New file.
7957         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7959         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7960         HAVE_REMAINDERF.
7961         * doc/posix-functions/remainderf.texi: Mention the new module.
7962
7963 2012-02-25  Bruno Haible  <bruno@clisp.org>
7964
7965         remainder: Support for MSVC.
7966         * lib/math.in.h (remainder): New declaration.
7967         * lib/remainder.c: New file.
7968         * m4/remainder.m4: New file.
7969         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7970         (Depends-on): Add math, round, fma.
7971         (configure.ac): Use results of gl_FUNC_REMAINDER.
7972         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7974         HAVE_DECL_REMAINDER.
7975         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7976         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7977         * tests/test-math-c++.cc: Check the declaration of remainder.
7978         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7979         problems are fixed.
7980
7981 2012-02-25  Bruno Haible  <bruno@clisp.org>
7982
7983         Tests for module 'fmodl'.
7984         * modules/fmodl-tests: New file.
7985         * tests/test-fmodl.c: New file.
7986         * tests/test-math-c++.cc: Check the declaration of fmodl.
7987
7988         New module 'fmodl'.
7989         * lib/math.in.h (fmodl): New declaration.
7990         * lib/fmodl.c: New file.
7991         * m4/fmodl.m4: New file.
7992         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7994         REPLACE_FMODL.
7995         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7996         REPLACE_FMODL.
7997         * modules/fmodl: New file.
7998         * doc/posix-functions/fmodl.texi: Mention the new module.
7999
8000 2012-02-25  Bruno Haible  <bruno@clisp.org>
8001
8002         Tests for module 'modfl'.
8003         * modules/modfl-tests: New file.
8004         * tests/test-modfl.c: New file.
8005         * tests/test-math-c++.cc: Check the declaration of modfl.
8006
8007         New module 'modfl'.
8008         * lib/math.in.h (modfl): New declaration.
8009         * lib/modfl.c: New file.
8010         * m4/modfl.m4: New file.
8011         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8013         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8014         * modules/modfl: New file.
8015         * doc/posix-functions/modfl.texi: Mention the new module.
8016
8017 2012-02-25  Bruno Haible  <bruno@clisp.org>
8018
8019         Tests for module 'fabsl'.
8020         * modules/fabsl-tests: New file.
8021         * tests/test-fabsl.c: New file.
8022         * tests/test-math-c++.cc: Check the declaration of fabsl.
8023
8024         New module 'fabsl'.
8025         * lib/math.in.h (fabsl): New declaration.
8026         * lib/fabsl.c: New file.
8027         * m4/fabsl.m4: New file.
8028         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8030         REPLACE_FABSL.
8031         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8032         REPLACE_FABSL.
8033         * modules/fabsl: New file.
8034         * doc/posix-functions/fabsl.texi: Mention the new module.
8035
8036 2012-02-25  Bruno Haible  <bruno@clisp.org>
8037
8038         fabs tests: More tests.
8039         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8040         (zero): New variable.
8041         (main): Add tests for signed zero.
8042         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8043
8044         fabsf tests: More tests.
8045         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8046         (zero): New variable.
8047         (main): Add tests for signed zero.
8048         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8049
8050 2012-02-24  Bruno Haible  <bruno@clisp.org>
8051
8052         atanl: Provide function definition on MSVC.
8053         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8054         function pointer.
8055         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8056
8057 2012-02-24  Bruno Haible  <bruno@clisp.org>
8058
8059         acosl: Provide function definition on MSVC.
8060         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8061         function pointer.
8062         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8063
8064 2012-02-24  Bruno Haible  <bruno@clisp.org>
8065
8066         asinl: Provide function definition on MSVC.
8067         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8068         function pointer.
8069         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8070
8071 2012-02-24  Bruno Haible  <bruno@clisp.org>
8072
8073         tanl: Provide function definition on MSVC.
8074         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8075         function pointer.
8076         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8077
8078 2012-02-24  Bruno Haible  <bruno@clisp.org>
8079
8080         cosl: Provide function definition on MSVC.
8081         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8082         function pointer.
8083         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8084
8085 2012-02-24  Bruno Haible  <bruno@clisp.org>
8086
8087         sinl: Provide function definition on MSVC.
8088         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8089         function pointer.
8090         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8091
8092 2012-02-24  Bruno Haible  <bruno@clisp.org>
8093
8094         logl: Provide function definition on MSVC.
8095         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8096         function pointer.
8097         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8098
8099 2012-02-24  Bruno Haible  <bruno@clisp.org>
8100
8101         expl: Provide function definition on MSVC.
8102         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8103         function pointer.
8104         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8105
8106 2012-02-24  Bruno Haible  <bruno@clisp.org>
8107
8108         sqrtl: Provide function definition on MSVC.
8109         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8110         a function pointer.
8111         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8112
8113 2012-02-24  Bruno Haible  <bruno@clisp.org>
8114
8115         ceill: Provide function definition on MSVC.
8116         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8117         used as a function pointer.
8118         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8119
8120 2012-02-24  Bruno Haible  <bruno@clisp.org>
8121
8122         floorl: Provide function definition on MSVC.
8123         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8124         used as a function pointer.
8125         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8126
8127 2012-02-24  Bruno Haible  <bruno@clisp.org>
8128
8129         ceilf: Provide function definition on MSVC.
8130         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8131         used as a function pointer.
8132         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8133
8134 2012-02-24  Bruno Haible  <bruno@clisp.org>
8135
8136         floorf: Provide function definition on MSVC.
8137         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8138         used as a function pointer.
8139         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8140
8141 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         stdnoreturn: new module
8144         This implements a replacement for C11's <stdnoreturn.h>.
8145         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8146         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8147         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8148         * tests/test-stdnoreturn.c: New files.
8149
8150 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8151
8152         regex: fix false multibyte matches in some regular expressions
8153         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8154         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8155         * lib/regex_internal.c (re_string_skip_chars):
8156         Fix miscomputation of remain_len that may cause incomplete
8157         multi-byte character and false match.
8158
8159 2012-02-24  Jim Meyering  <meyering@redhat.com>
8160
8161         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8162         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8163         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8164         Remove now-unnecessary str''cmp obfuscation.
8165         Suggested by Akim Demaille.
8166
8167 2012-02-24  Bruno Haible  <bruno@clisp.org>
8168
8169         streq: Rename macro.
8170         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8171         * NEWS: Mention the change.
8172         * lib/mbrtowc.c (mbrtowc): Update.
8173         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8174         * lib/wcwidth.c (wcwidth): Update.
8175         Suggested by Akim Demaille and Jim Meyering.
8176
8177 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8178
8179         regex: fix typo in definition of MIN
8180         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8181         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8182
8183 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8184             Bruno Haible  <bruno@clisp.org>
8185
8186         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8187         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8188         entries into a stack-allocated buffer directly.
8189         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8190
8191 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8192             Bruno Haible  <bruno@clisp.org>
8193
8194         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8195
8196          - There were several instances of this pattern:
8197
8198              for (;;) {
8199                n = acl (f, GETACLCNT, 0, NULL);
8200                [ allocate an array A of size N ]
8201                if (acl (f, GETACL, n, a) == n)
8202                  break;
8203              }
8204
8205            This loop might never terminate if some other process is constantly
8206            manipulating the file's ACL.  The loop should be rewritten to
8207            terminate.
8208
8209          - The acl (... GETACLNT ...) call is merely an optimization; its value
8210            is merely a hint as to how big to make the array.  A better
8211            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8212            and just guess a reasonably-big size, growing the size and trying
8213            again if it's not large enough.  This guarantees termination, and
8214            saves a system call.
8215
8216         * lib/acl-internal.h: Include <limits.h>.
8217         (MIN, SIZE_MAX): New macros.
8218         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8219         a stack-allocated buffer, and use malloc if it does not fit. Don't
8220         use GETACLCNT.
8221         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8222
8223 2012-02-19  Bruno Haible  <bruno@clisp.org>
8224
8225         acl: Fix endless loop on Solaris with vxfs.
8226         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8227         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8228         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8229         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8230         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8231         Reported by Bill Jones in
8232         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8233
8234 2012-02-19  Bruno Haible  <bruno@clisp.org>
8235
8236         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8237         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8238         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8239         that this function returns 0 in some more cases.
8240
8241 2012-02-19  Bruno Haible  <bruno@clisp.org>
8242
8243         acl: Update doc references.
8244         * doc/acl-resources.txt: Update links to Solaris documentation.
8245
8246 2012-02-19  Bruno Haible  <bruno@clisp.org>
8247
8248         Fix test failure in many locales on Solaris 11.
8249         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8250         'tr' arguments.
8251         * tests/test-pipe-filter-ii1.c (main): Likewise.
8252         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8253         expressions in the C locale.
8254         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8255         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8256
8257 2012-02-19  Bruno Haible  <bruno@clisp.org>
8258
8259         gnulib-tool: Improve usage message.
8260         * gnulib-tool (func_usage): Move doc of --help and --version to the
8261         section "Operation modes".
8262
8263 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8264
8265         README-release: make it easier to execute commands
8266         * top/README-release: break commands out on to separate lines.
8267
8268 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8269
8270         GNUmakefile: simplify detection of unconfigured trees
8271         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8272         whether the tree make is being run from is already configured or
8273         not.  Related simplifications.
8274
8275 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8276
8277         * gnulib-tool (func_usage): Document --help and --version.
8278
8279 2012-02-11  Jim Meyering  <meyering@redhat.com>
8280
8281         bootstrap: don't exit 0 upon gnulib-tool failure
8282         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8283         its exit status, not 0.
8284
8285 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8286
8287         README-release: various improvements
8288         * top/README-release: Give a command to push changes for the
8289         release.  Add "distcheck" to list of other pre-release checks.
8290         Fix instance of "make stable" which should be "make TYPE".
8291
8292 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8293
8294         maint: replace FSF snail-mail addresses with URLs
8295         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8296         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8297         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8298         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8299         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8300         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8301         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8302         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8303         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8304         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8305         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8306         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8307         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8308         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8309         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8310         * lib/glthread/thread.c, lib/glthread/thread.h:
8311         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8312         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8313         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8314         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8315         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8316         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8317         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8318         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8319         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8320         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8321         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8322         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8323         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8324         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8325         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8326         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8327         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8328         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8329         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8330         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8331         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8332         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8333         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8334         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8335         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8336         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8337         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8338         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8339         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8340         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8341         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8342         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8343         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8344         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8345         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8346         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8347         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8348         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8349         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8350         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8351         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8352         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8353         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8354         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8355         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8356         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8357         * tests/test-poll.c, tests/test-quotearg-simple.c:
8358         * tests/test-quotearg.c, tests/test-quotearg.h:
8359         * tests/test-round-ieee.c, tests/test-round1.c:
8360         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8361         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8362         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8363         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8364         * tests/test-strerror.c, tests/test-strerror_r.c:
8365         * tests/test-strsignal.c, tests/test-strverscmp.c:
8366         * tests/test-xmemdup0.c:
8367         Replace FSF snail mail addresses with URLs, as per GNU coding
8368         standards.  See glibc bug
8369         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8370
8371 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8372
8373         README-release: capitalize a word and split a line
8374         * top/README-release: Fix punctuation and spacing.
8375
8376 2012-02-08  Akim Demaille  <demaille@gostai.com>
8377
8378         fatal-signal: use C prototypes (with explicit void).
8379         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8380         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8381
8382 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8383
8384         regex: spelling fix
8385         * lib/regexec.c: spelling fix
8386
8387         regex: rely on stdint.h for SIZE_MAX
8388         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8389
8390 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8391
8392         regex: merge glibc changes
8393
8394         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8395         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8396         (init_word_char): Work even if bitset words are not exactly 32 or
8397         64 bits wide.  Don't assume there are no padding bits.
8398         * lib/regex.c [_LIBC]: Do not include <config.h>.
8399         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8400         and -Wtype-limits.
8401         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8402         needless disagreement with glibc.  All uses changed.  Define it to
8403         1 only if _GNU_SOURCE, to match glibc.
8404         (_REG_RM_NAME): Remove; no longer needed, since the names in
8405         question are now all protected by __USE_GNU.
8406         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8407         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8408         * lib/regex_internal.h (MIN): New macro.
8409
8410         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8411         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8412
8413         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8414         * lib/regex_internal.c (re_string_fetch_byte_case):
8415         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8416         is miscompiled, and it turns out it is because of an incorrect
8417         attribute on re_string_fetch_byte_case.  Unlike
8418         re_string_peek_byte_case, this one is really not pure, it modifies
8419         memory (increments pstr->cur_idx), and with the pure attribute GCC
8420         assumed it doesn't and it cached the presumed value of
8421         regexp->cur_idx in a variable across the
8422          for (;; ++i)
8423            {
8424              if (i >= BRACKET_NAME_BUF_SIZE)
8425                return REG_EBRACK;
8426              if (token->type == OP_OPEN_CHAR_CLASS)
8427                ch = re_string_fetch_byte_case (regexp);
8428              else
8429                ch = re_string_fetch_byte (regexp);
8430              if (re_string_eoi(regexp))
8431                return REG_EBRACK;
8432              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8433                break;
8434              elem->opr.name[i] = ch;
8435            }
8436
8437         2011-11-29 Andreas Schwab <schwab@redhat.com>
8438         * lib/regcomp.c (build_equiv_class):
8439         Fix access after end of search string in regex matcher.
8440
8441         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8442         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8443
8444         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8445         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8446
8447         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8448         * lib/regcomp.c (parse_branch, parse_sub_exp):
8449         More regex memory leak fixes and tests.
8450         (parse_sub_exp, parse_bracket_exp):
8451         Fix memory leak for some invalid regular expressions.
8452
8453         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8454         * lib/regex_internal.c, lib/regexec.c:
8455         Fix unnecessary overallocation due to incomplete character.  When
8456         incomplete characters are found at the end of a string the code
8457         ran amok and allocated lots of memory.  Stricter limits are now in
8458         place.
8459
8460         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8461         * lib/regex.h: Update documentation.
8462
8463         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8464         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8465
8466         2010-05-05 Andreas Schwab <schwab@redhat.com>
8467         * lib/regexec.c (find_collation_sequence_value):
8468         Fix lookup of collation sequence value during regexp matching.
8469
8470         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8471         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8472
8473         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8474         * lib/regex.h: Cleanup namespace.
8475
8476         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8477         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8478
8479         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8480         * lib/regex_internal.h: Prevent some declarations and definitions
8481         to be seen when used in tests.
8482
8483         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8484         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8485         __libc_lock_* macros if not _LIBC.
8486         (struct re_dfa_t): Add lock.
8487
8488 2012-02-07  Eric Blake  <eblake@redhat.com>
8489
8490         maint.mk: also prohibit lower-case @var@
8491         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8492         lower case, like @top_srcdir@.
8493
8494 2012-02-04  Eric Blake  <eblake@redhat.com>
8495
8496         canonicalize: avoid uninitialized memory use
8497         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8498         random '/' left in dest.
8499         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8500
8501 2012-02-04  Bruno Haible  <bruno@clisp.org>
8502
8503         isatty: Fix test failure of ptsname_r on native Windows.
8504         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8505         and don't set errno.
8506         (isatty): Test first whether fd is valid. Set errno when returning 0.
8507
8508 2012-02-04  Bruno Haible  <bruno@clisp.org>
8509
8510         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8511         * tests/test-spawn-pipe-main.c: Include progname.h.
8512         (main): Invoke set_program_name.
8513         * modules/spawn-pipe-tests (Depends-on): Add progname.
8514
8515         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8516         * tests/test-nonblocking-socket-main.c: Include progname.h.
8517         (main): Invoke set_program_name.
8518         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8519
8520         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8521         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8522         (main): Invoke set_program_name.
8523         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8524
8525 2012-02-04  Eric Blake  <eblake@redhat.com>
8526
8527         canonicalize-lgpl: fix // handling
8528         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8529
8530         canonicalize: fix // handling
8531         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8532         /// to //, since only // is special.
8533
8534 2012-02-04  Bruno Haible  <bruno@clisp.org>
8535
8536         ioctl: Fix test failure on native Windows.
8537         * lib/ioctl.c: Include msvc-nothrow.h.
8538         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8539
8540 2012-02-04  Bruno Haible  <bruno@clisp.org>
8541
8542         fsync: Avoid test failure on native Windows.
8543         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8544         read-only.
8545
8546 2012-02-04  Bruno Haible  <bruno@clisp.org>
8547
8548         sys_select: Avoid syntax error on OpenBSD 5.0.
8549         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8550         currently being included, just include the system's <sys/select.h>.
8551
8552 2012-02-04  Bruno Haible  <bruno@clisp.org>
8553
8554         sys_select: Avoid syntax error on OpenBSD 5.0.
8555         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8556         <sys/select.h>, not before.
8557         Reported by Jiri B <jirib@devio.us>.
8558
8559 2012-02-04  Bruno Haible  <bruno@clisp.org>
8560
8561         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8562         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8563         global variables.
8564         * tests/test-get-rusage-data.c (main): Likewise.
8565         Reported by Jim Meyering.
8566
8567 2012-02-04  Bruno Haible  <bruno@clisp.org>
8568
8569         stdioext: Fix last commit.
8570         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8571
8572 2012-02-03  Bruno Haible  <bruno@clisp.org>
8573
8574         stdioext: Add tentative support for Plan9.
8575         * lib/stdio-impl.h: Include <errno.h>.
8576         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8577         * lib/freadable.c (freadable): Likewise.
8578         * lib/fwritable.c (fwritable): Likewise.
8579         * lib/fbufmode.c (fbufmode): Likewise.
8580         * lib/freading.c (freading): Likewise.
8581         * lib/fwriting.c (fwriting): Likewise.
8582         * lib/freadptr.c (freadptr): Likewise.
8583         * lib/freadseek.c (freadptrinc): Likewise.
8584         * lib/freadahead.c (freadahead): Likewise.
8585         * lib/fpurge.c (fpurge): Likewise.
8586         * lib/fseeko.c (rpl_fseeko): Likewise.
8587         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8588         Reported by Jens Staal <staal1978@gmail.com>.
8589
8590 2012-02-02  Jim Meyering  <meyering@redhat.com>
8591
8592         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8593         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8594         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8595         not even to try to add the attribute.  Instead, add a pragma to suppress
8596         the suggestion/warning.
8597
8598 2012-01-31  Karl Berry  <karl@gnu.org>
8599
8600         setstate doc: typo.
8601         * doc/posix-functions/setstate.texi (setstate): { not (.
8602
8603 2012-01-31  Bruno Haible  <bruno@clisp.org>
8604
8605         popen: Make more robust on Windows.
8606         * lib/popen.c: On native Windows, use the _popen based code even if
8607         HAVE_POPEN is set.
8608         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8609         environment variable on native Windows.
8610
8611 2012-01-30  Bruno Haible  <bruno@clisp.org>
8612
8613         pclose: Fix typo.
8614         * lib/stdio.in.h (pclose): Fix typo in warning message.
8615
8616 2012-01-30  Bruno Haible  <bruno@clisp.org>
8617
8618         doc about getlogin_r, setstate.
8619         * doc/posix-functions/getlogin_r.texi: List the incompatible
8620         declaration problem under "not fixed by gnulib".
8621         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8622         problem on Solaris 11 and other platforms.
8623
8624 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8625             Bruno Haible  <bruno@clisp.org>
8626
8627         poll tests: Make test more robust.
8628         * tests/test-poll.c: Include macros.h.
8629         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8630         return value of various I/O operations.
8631         * modules/poll-tests (Files): Add tests/macros.h.
8632
8633 2012-01-30  Bruno Haible  <bruno@clisp.org>
8634
8635         sys_stat: Fix support for mingw64 and MSVC.
8636         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8637         header files already do it.
8638         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8639         stat itself.
8640         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8641
8642 2012-01-30  Bruno Haible  <bruno@clisp.org>
8643
8644         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8646         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8647
8648 2012-01-29  Bruno Haible  <bruno@clisp.org>
8649
8650         quotearg: Fix test failure on MacOS X 10.5.
8651         * tests/test-quotearg-simple.c: Include localcharset.h.
8652         (main): If the locale encoding is not ASCII, bypass the tests of
8653         locale_quoting_style and clocale_quoting_style.
8654         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8655
8656 2012-01-29  Jim Meyering  <meyering@redhat.com>
8657
8658         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8659         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8660         detect uses of canonicalize_file_name.
8661
8662 2012-01-28  Bruno Haible  <bruno@clisp.org>
8663
8664         test-framework-sh: Fix test failure with AIX 7.1 diff.
8665         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8666         in column 1, like 'diff -c' does.
8667         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8668         whether 'diff -u' is used. Instead, test whether the output contains
8669         some '@' character.
8670
8671 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8672
8673         strtoimax: eliminate need for stdint.h, inttypes.h checks
8674         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8675         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8676         the prerequisites for a recently-introduced strtoimax test.
8677         I guess this might cause strtoimax to be replaced when not
8678         strictly necessary on older hosts, but this shouldn't introduce
8679         any bugs and it should make Emacs 'configure' faster on typical
8680         modern hosts.  Problem discovered when importing the latest gnulib
8681         to an Emacs test version.
8682         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8683
8684 2012-01-28  Bruno Haible  <bruno@clisp.org>
8685
8686         sys_time: Override 'struct timeval' on some native Windows platforms.
8687         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8688         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8689         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8690         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8691         needs to be overridden.
8692         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8693         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8694         * tests/test-sys_select.c: Check that the tv_sec member has the same
8695         size as a 'time_t'.
8696         * tests/test-sys_time.c: Likewise.
8697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8698         is set, set also REPLACE_GETTIMEOFDAY.
8699         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8700         convert the resulting 'struct timeval' before returning.
8701         * lib/select.c: Include <sys/time.h>.
8702         (select, timeval): Undefine at the right place.
8703         * modules/select (Depends-on): Add sys_time.
8704         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8705         some Windows platforms.
8706         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8707
8708 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8709
8710         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8711         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8712         an integer.
8713         * lib/fcntl.c (dupfd): Likewise.
8714         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8715
8716 2012-01-28  Bruno Haible  <bruno@clisp.org>
8717
8718         fcntl: Avoid compilation error on native Windows.
8719         * modules/fcntl (Depends-on): Add 'close'.
8720
8721 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8722
8723         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8724         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8725         pointer to an integer.
8726         * lib/poll.c (IsConsoleHandle): Likewise.
8727         * lib/isatty.c (IsConsoleHandle): Likewise.
8728
8729 2012-01-28  Jim Meyering  <meyering@redhat.com>
8730
8731         doc: clarify README-release
8732         * top/README-release: Clarify: you should make a point to have
8733         the latest stable versions of build tools in your PATH, and the
8734         reference to buildreq is solely for its list of tool names, not
8735         for its minimal-functional version numbers.
8736         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8737
8738         maint.mk: use more readable (yet functionally equivalent) quoting
8739         It is common to quote a single quote in a single quoted string like
8740         this:  '...'\''...'.  Unless you know the idiom, that looks like
8741         gibberish, so prefer to double-quote the string when possible.
8742         Then you can use a more readable, lone single quote: "...'..."
8743         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8744         "don't" is more readable than the equivalent 'don'\''t'.
8745         (sc_cast_of_x_alloc_return_value): Likewise.
8746         (sc_cast_of_alloca_return_value): Likewise.
8747         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8748         rather than '\'':'\''.
8749
8750 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         stdalign: relax _Alignof and tighten _Alignas test
8753         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8754         as it was too strict: alignof must divide offsetof, but it need
8755         not equal offsetof.  Inspired by Joseph S. Myers's comment
8756         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8757         Conversely, tighten the _Alignas test a bit, as the resulting
8758         alignment must be exactly 8.
8759
8760 2012-01-27  Bruno Haible  <bruno@clisp.org>
8761
8762         stdalign: Document the last change.
8763         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8764
8765 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8766
8767         stdalign: check that alignof and offsetof are consistent
8768         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8769         Problem reported for gnulib by Richard W.M. Jones in
8770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8771
8772 2012-01-27  Jim Meyering  <meyering@redhat.com>
8773
8774         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8775         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8776         convert a sequence with gaps to the minimal containing range.
8777         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8778         * tests/test-update-copyright.sh: Test for this.
8779         The FSF confirmed it is ok to do this, assuming there is at
8780         least one significant change per year in the affected range:
8781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8782
8783 2012-01-26  Bruno Haible  <bruno@clisp.org>
8784
8785         pipe2: refine doc about thread-safety
8786         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8787         multithread-safety problem.
8788         * doc/glibc-functions/accept4.texi: Likewise.
8789
8790 2012-01-26  Bruno Haible  <bruno@clisp.org>
8791
8792         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8793         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8794         In the test program, include <fcntl.h>, for O_RDONLY.
8795
8796 2012-01-26  Eric Blake  <eblake@redhat.com>
8797
8798         pipe2: document lack of thread-safety in replacement
8799         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8800         issue in replacement.
8801         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8802         Based on a report by Eric Wong.
8803
8804 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8805             Bruno Haible  <bruno@clisp.org>
8806
8807         malloca: Avoid warnings on x86_64 mingw64.
8808         * lib/malloca.c: Include <stdint.h>.
8809         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8810         * modules/malloca (Depends-on): Add stdint.
8811         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8812
8813 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8814
8815         obstack: remove __STDC__ conditionals
8816         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8817         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8818         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8819         m4/include_next.m4 as the only gnulib-maintained places that still
8820         refer to __STDC__.
8821
8822 2012-01-24  Bruno Haible  <bruno@clisp.org>
8823
8824         havelib: Modern quoting.
8825         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8826         the recent change to the GNU coding standards.
8827
8828 2012-01-24  Bruno Haible  <bruno@clisp.org>
8829
8830         stdint: Improve support for Android.
8831         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8832         Reported by Simon Josefsson <simon@josefsson.org>.
8833
8834 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8835
8836         doc: omit trailing empty lines from INSTALL etc.
8837         * doc/Makefile (INSTALL): Omit trailing empty lines.
8838         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8839         omit trailing empty lines.  This simplifies the build procedure.
8840
8841 2012-01-23  Jim Meyering  <meyering@redhat.com>
8842
8843         tests: avoid spurious warnings about gl_sockets_startup
8844         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8845         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8846         reporting a "statement with no effect".
8847         * tests/test-accept.c (main): Mark as "(void)".
8848         * tests/test-accept4.c (main): Likewise.
8849         * tests/test-bind.c (main): Likewise.
8850         * tests/test-connect.c (main): Likewise.
8851         * tests/test-getpeername.c (main): Likewise.
8852         * tests/test-getsockname.c (main): Likewise.
8853         * tests/test-getsockopt.c (main): Likewise.
8854         * tests/test-listen.c (main): Likewise.
8855         * tests/test-recv.c (main): Likewise.
8856         * tests/test-recvfrom.c (main): Likewise.
8857         * tests/test-send.c (main): Likewise.
8858         * tests/test-sendto.c (main): Likewise.
8859         * tests/test-setsockopt.c (main): Likewise.
8860         * tests/test-shutdown.c (main): Likewise.
8861
8862 2012-01-21  Bruno Haible  <bruno@clisp.org>
8863
8864         locale-fr.m4: Fix for Android.
8865         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8866         failure of the test program on Bionic libc.
8867
8868 2012-01-21  Jim Meyering  <meyering@redhat.com>
8869
8870         bootstrap: fail when bootstrap_post_import_hook fails
8871         Otherwise, it's far too easy to miss diagnostics emitted
8872         between gnulib-tool's output and that of running configure.
8873         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8874
8875 2012-01-17  Jim Meyering  <meyering@redhat.com>
8876
8877         maint: enable sc_trailing_blank
8878         * build-aux/pmccabe.css: Remove trailing blanks.
8879         * doc/acl-cygwin.txt: Likewise.
8880         * doc/gnu-oids.texi: Likewise
8881         * cfg.mk: Enable sc_trailing_blank.
8882         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8883
8884 2012-01-17  Jim Meyering  <meyering@redhat.com>
8885
8886         maint: enable sc_prohibit_openat_without_use
8887         * cfg.mk: Enable sc_prohibit_openat_without_use.
8888         Exempt lib/selinux-at.c.
8889
8890 2012-01-17  Jim Meyering  <meyering@redhat.com>
8891
8892         maint: enable sc_prohibit_cloexec_without_use
8893         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8894         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8895
8896 2012-01-17  Jim Meyering  <meyering@redhat.com>
8897
8898         maint: enable sc_prohibit_intprops_without_use
8899         * cfg.mk: Enable sc_prohibit_intprops_without_use
8900         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8901
8902 2012-01-17  Jim Meyering  <meyering@redhat.com>
8903
8904         maint: enable sc_prohibit_hash_pjw_without_use
8905         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8906         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8907         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8908         following " (".
8909
8910 2012-01-17  Jim Meyering  <meyering@redhat.com>
8911
8912         maint: enable double-word-prohibiting rule
8913         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8914         Exempt three files.
8915
8916 2012-01-17  Jim Meyering  <meyering@redhat.com>
8917
8918         maint: remove empty lines at EOF, but excluding modules/*
8919         Apply syntax rules at home as well as abroad.  Most changes
8920         were induced by running this:
8921           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8922             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8923             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8924         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8925         Exempt modules/* and two binary files.
8926         Also exempt doc/INSTALL*, per request from Bruno Haible.
8927         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8928         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8929         * doc/Copyright/request-assign.future: Likewise.
8930         * doc/Copyright/request-disclaim.changes: Likewise.
8931         * doc/INSTALL: Likewise.
8932         * doc/INSTALL.ISO: Likewise.
8933         * doc/INSTALL.UTF-8: Likewise.
8934         * doc/acl-cygwin.txt: Likewise.
8935         * doc/acl-resources.txt: Likewise.
8936         * doc/fdl-1.2.texi: Likewise.
8937         * doc/fdl-1.3.texi: Likewise.
8938         * doc/fdl.texi: Likewise.
8939         * lib/argp-pin.c: Likewise.
8940         * lib/round.c: Likewise.
8941         * lib/unicase/u16-totitle.c: Likewise.
8942         * lib/unictype/block_test.c: Likewise.
8943         * lib/uninorm/canonical-decomposition.c: Likewise.
8944         * m4/README: Likewise.
8945         * m4/relocatable-lib.m4: Likewise.
8946         * tests/test-isnand-nolibm.c: Likewise.
8947         * tests/test-isnand.c: Likewise.
8948         * tests/uninorm/NormalizationTest.txt: Likewise.
8949
8950 2012-01-17  Jim Meyering  <meyering@redhat.com>
8951
8952         maint: add framework to run syntax-check rules against gnulib sources
8953         * cfg.mk: New file, to disable all currently-failing tests.
8954         We'll enable them one by one, as they are made to pass.
8955         * Makefile (sc_maint): New rule.
8956
8957 2012-01-21  Bruno Haible  <bruno@clisp.org>
8958
8959         stdint: Add support for Android.
8960         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8961         include the system's <stdint.h>.
8962         Reported by Simon Josefsson <simon@josefsson.org>.
8963
8964 2012-01-19  Jim Meyering  <meyering@redhat.com>
8965
8966         bootstrap: add bootstrap_post_import_hook
8967         Bison does still need something like the gnulib_mk_hook whose
8968         invocation I had to remove along with slurp in commit 767ccd40.
8969         Technically, we could get along without it, but doing so would
8970         have required living with a warning and a mandatory post-bootstrap
8971         automake rerun.
8972         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8973         (bootstrap_post_import_hook): New function.
8974         Invoke it after gnulib-tool --import and before autoreconf.
8975
8976 2012-01-18  Jim Meyering  <meyering@redhat.com>
8977
8978         gitlog-to-changelog: don't use "no_"-prefixed variable name
8979         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8980         to enable both --cluster and --no-cluster.  Change variable name,
8981         s/\$no_cluster/$cluster/, and reverse usage to match.
8982
8983         gitlog-to-changelog: use "||", not "or" in expressions
8984         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8985         expressions.
8986
8987 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8988
8989         gitlog-to-changelog: new option --no-cluster
8990         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8991         clustering of adjacent commit messages.
8992
8993 2012-01-17  Jim Meyering  <meyering@redhat.com>
8994
8995         maint: spell file systems with two words, not one
8996         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8997         two words, not one.
8998
8999 2012-01-16  Jim Meyering  <meyering@redhat.com>
9000
9001         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9002         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9003
9004 2012-01-16  Eric Blake  <eblake@redhat.com>
9005
9006         bootstrap: cater to autoconf 2.59
9007         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9008         is not available.
9009
9010         bootstrap: properly check for libtool
9011         * build-aux/bootstrap (libtoolize): Also run libtool when older
9012         usage is detected.
9013
9014 2012-01-15  Bruno Haible  <bruno@clisp.org>
9015
9016         Improve support for MSVC 9.
9017         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9018         clashes on MSVC.
9019         * lib/fcntl.in.h: Likewise.
9020         * lib/stdlib.in.h: Likewise.
9021         * lib/sys_stat.in.h: Likewise.
9022
9023 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9024
9025         gnupload: we hold the master copy of this script now
9026         For motivation and more information, see:
9027         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9028         * build-aux/gnupload: Make it clear in the heading comments that the
9029         master copy of this file is maintained by gnulib.  Since we are at
9030         it, bump its copyright year and ...
9031         ($scriptversion): ... the date in its version.
9032         ($usage): Patches and bug reports should be sent to the gnulib list,
9033         not the automake one.
9034         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9035         anymore.
9036
9037 2012-01-15  Bruno Haible  <bruno@clisp.org>
9038
9039         Fix module 'random'.
9040         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9041         initstate, setstate are declared.
9042
9043 2012-01-14  Bruno Haible  <bruno@clisp.org>
9044
9045         Tests for module 'random'.
9046         * modules/random-tests: New file.
9047         * tests/test-random.c: New file, based on tests/test-random_r.c.
9048
9049         New module 'random'.
9050         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9051         declarations.
9052         * lib/random.c: New file, based on glibc/stdlib/random.c.
9053         * m4/random.m4: New file.
9054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9055         HAVE_RANDOM.
9056         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9057         * modules/random: New file.
9058         * config/srclist.txt: Add an entry for random.c.
9059         * doc/posix-functions/random.texi: Mention the 'random' module.
9060         * doc/posix-functions/initstate.texi: Likewise.
9061         * doc/posix-functions/setstate.texi: Likewise.
9062         * doc/posix-functions/srandom.texi: Likewise.
9063
9064 2012-01-12  Bruno Haible  <bruno@clisp.org>
9065
9066         random_r: Use common idioms.
9067         * lib/random_r.c: Include <stdlib.h> first.
9068
9069         random_r: Override incompatible API on AIX, OSF/1.
9070         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9071         Override the system function if REPLACE_RANDOM_R is 1.
9072         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9073         and OSF/1, set REPLACE_RANDOM_R.
9074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9075         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9076         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9077         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9078         * doc/glibc-functions/random_r.texi: Likewise.
9079         * doc/glibc-functions/setstate_r.texi: Likewise.
9080
9081         random_r: Support for MSVC 9.
9082         * lib/random_r.c: Include stdint.h, not inttypes.h.
9083
9084 2012-01-12  Eric Blake  <eblake@redhat.com>
9085
9086         inet_ntop: guard extra work by IF_LINT
9087         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9088         better code generation when not checking for warnings.
9089         Suggested by Paul Eggert and Jim Meyering.
9090
9091         strptime: fix regression on mingw
9092         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9093         Fix regression.  Reported by Bruno Haible.
9094
9095 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9096             Bruno Haible  <bruno@clisp.org>
9097
9098         copy-file: add error-code-returning variant.
9099         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9100         (qcopy_file_preserving): New declaration.
9101         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9102         copy_file_preserving. Change return type to 'int'. Don't emit an error
9103         message here.
9104         (copy_file_preserving): New function.
9105         * tests/test-copy-file.c: Include <stdlib.h>.
9106         (main): Test qcopy_file_preserving if the environment variable
9107         NO_STDERR_OUTPUT is set.
9108         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9109         with NO_STDERR_OUTPUT
9110         * tests/test-copy-file-2.sh: Likewise.
9111
9112 2012-01-10  Bruno Haible  <bruno@clisp.org>
9113
9114         copy-file: Use 'quote' module consistently.
9115         * lib/copy-file.c (copy_file_preserving): Use quote().
9116
9117         copy-file: Refactor.
9118         * lib/copy-file.c: Include quote.h.
9119         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9120         message here.
9121         * modules/copy-file (Depends-on): Add quote.
9122
9123         acl: Export qcopy_acl.
9124         * lib/acl.h (qcopy_acl): New declaration.
9125         * lib/copy-acl.c (qcopy_acl): Make non-static.
9126
9127         acl: Rename a local variable.
9128         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9129
9130         acl: Align return values of copy_acl and qcopy_acl.
9131         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9132         maybe < -1.
9133
9134 2012-01-11  Eric Blake  <eblake@redhat.com>
9135
9136         strptime: silence gcc warnings
9137         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9138         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9139         Reported by Daniel P. Berrange.
9140
9141         inet_ntop: silence gcc warning
9142         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9143         Reported by Daniel P. Berrange.
9144
9145 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9146
9147         getloadavg test: skip the test on GNU/Linux without /proc mounted
9148         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9149         file.  When /proc is not mounted, it always fails with ENOENT.
9150         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9151         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9152
9153 2012-01-10  Bruno Haible  <bruno@clisp.org>
9154
9155         regex: Avoid link error on MSVC 9.
9156         * modules/regex (Depends-on): Add wctype.
9157
9158 2012-01-10  Bruno Haible  <bruno@clisp.org>
9159
9160         doc: Mention --with-tests option.
9161         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9162         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9163         --with-tests.
9164         Reported by Reuben Thomas.
9165
9166 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9167
9168         users.txt: order package names lexicographically.
9169         * users.txt: Order package names lexicographically.
9170
9171 2012-01-10  Jim Meyering  <meyering@redhat.com>
9172
9173         maint.mk: fix description in comment
9174         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9175
9176         ignore-value: remove deprecated ignore_ptr function
9177         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9178         * NEWS: Note this.
9179
9180 2012-01-09  Jim Meyering  <meyering@redhat.com>
9181
9182         test-init.sh: avoid a subshell
9183         * tests/test-init.sh: Remove protective subshell.
9184         Suggested by Bernhard Voelker.  While a subshell is normally
9185         required to protect against older shells (Solaris, FreeBSD) that
9186         warn about a missing program before performing redirection, the
9187         shell-selection tests performed by init.sh probably exclude any
9188         offending shell.
9189
9190 2012-01-08  Bruno Haible  <bruno@clisp.org>
9191
9192         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9193         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9194         variable.
9195
9196 2012-01-08  Bruno Haible  <bruno@clisp.org>
9197
9198         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9199         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9201         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9202         macro.
9203         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9205         * lib/spawn_faction_addopen.c: Add workaround implementation if
9206         HAVE_WORKING_POSIX_SPAWN.
9207         * modules/spawn (Makefile): Substitute
9208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9209         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9210         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9212         (Depends-on): Update conditions.
9213         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9214         the Solaris 11 bug.
9215
9216 2012-01-08  Bruno Haible  <bruno@clisp.org>
9217
9218         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9219         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9220         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9221         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9222         macro.
9223         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9225         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9226         HAVE_WORKING_POSIX_SPAWN.
9227         * modules/spawn (Makefile): Substitute
9228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9229         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9230         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9231         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9232         (Depends-on): Update conditions.
9233         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9234         the Solaris 11 bug.
9235
9236 2012-01-08  Bruno Haible  <bruno@clisp.org>
9237
9238         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9239         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9240         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9242         HAVE_WORKING_POSIX_SPAWN.
9243         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9244         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9245         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9246         * lib/spawn_faction_addclose.c: Add workaround implementation if
9247         HAVE_WORKING_POSIX_SPAWN.
9248         * modules/spawn (Makefile): Substitute
9249         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9250         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9251         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9252         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9253         (Depends-on): Update conditions.
9254         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9255         the Solaris 11 bug.
9256
9257 2012-01-08  Bruno Haible  <bruno@clisp.org>
9258
9259         doc: Update for Solaris 11 2011-11.
9260         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9261         * m4/printf.m4: Update comments.
9262
9263 2012-01-08  Bruno Haible  <bruno@clisp.org>
9264
9265         mktime: Avoid compilation error on Solaris 11.
9266         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9267
9268 2012-01-08  Bruno Haible  <bruno@clisp.org>
9269
9270         doc: Small fix.
9271         * doc/posix-headers/nl_types.texi: Correct platforms list.
9272
9273 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9274
9275         Add lgpl-3.0 module.
9276         * MODULES.html.sh (Support for building documentation): Add
9277         lgpl-3.0.
9278         * modules/lgpl-3.0: New file.
9279
9280 2012-01-08  Jim Meyering  <meyering@redhat.com>
9281
9282         select.c: indent with spaces, not TABs
9283         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9284
9285 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9286
9287         quotearg: do not use grave accent for left quote
9288         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9289         locale_quoting_style.
9290         (quotearg_buffer_restyled): Fix example.
9291         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9292
9293 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9294
9295         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9296         Most programs do not have translation catalogs for English and much
9297         less separate catalogs for British and American English.  Drop the
9298         suggestion to translators about these two, and provide it
9299         automatically for Unicode locales.  Like most programs, even those
9300         using American English, we use single quotation marks.  This conflicts
9301         with the American typographic convention, but works better when you
9302         cite the entire error message within double quotes.  It also tries not
9303         to clash with established practice and with what non-gnulib programs
9304         will usually do.
9305         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9306         using an UTF-8 or GB-18030 locale.  The list of other locales with
9307         quotes was provided by Bruno Haible.
9308         (quotearg_buffer_restyled): Adjust instructions to translators.
9309         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9310         text, since this would be wrong when using Unicode.
9311         * modules/quotearg: Depend on c-strcaseeq.
9312
9313 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9314
9315         quotearg: fix Wikipedia link
9316         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9317
9318 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9319
9320         Fix for mingw with MSVC9.
9321         * m4/ld-version-script.m4: Check that compiler rejects version
9322         scripts with syntax errors.  Reported by Bruno Haible
9323         <bruno@clisp.org>.
9324
9325 2012-01-06  Bruno Haible  <bruno@clisp.org>
9326
9327         Talk about "native Windows API", not "Woe32".
9328         * lib/accept4.c: Update comments to mention native Windows.
9329         * lib/execute.c: Likewise.
9330         * lib/fatal-signal.c: Likewise.
9331         * lib/localcharset.c: Likewise.
9332         * lib/nanosleep.c: Likewise.
9333         * lib/nl_langinfo.c: Likewise.
9334         * lib/pclose.c: Likewise.
9335         * lib/pipe-filter-gi.c: Likewise.
9336         * lib/pipe-filter-ii.c: Likewise.
9337         * lib/pipe.c: Likewise.
9338         * lib/pipe2.c: Likewise.
9339         * lib/popen.c: Likewise.
9340         * lib/progreloc.c: Likewise.
9341         * lib/relocatable.c: Likewise.
9342         * lib/sigaction.c: Likewise.
9343         * lib/sigprocmask.c: Likewise.
9344         * lib/spawn-pipe.h: Likewise.
9345         * lib/spawn-pipe.c: Likewise.
9346         * lib/spawni.c: Likewise.
9347         * lib/stat-time.h: Likewise.
9348         * lib/w32spawn.h: Likewise.
9349         * tests/test-isatty.c: Likewise.
9350         * lib/config.charset: More comments.
9351         * doc/gnulib-intro.texi: Mention native Windows.
9352         * doc/posix-functions/_Exit_C99.texi: Likewise.
9353         * doc/posix-headers/fcntl.texi: Likewise.
9354
9355 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9356
9357         argp: Avoid crash if translator uses % characters in a translation.
9358         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9359         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9360
9361 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9362
9363         doc: C11 and C++11 are now official
9364         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9365         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9366         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9367         * modules/stdalign:
9368         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9369
9370 2012-01-06  Bruno Haible  <bruno@clisp.org>
9371
9372         uc-is-grapheme-break tests: Tweak.
9373         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9374         message.
9375
9376 2012-01-06  Bruno Haible  <bruno@clisp.org>
9377
9378         test-init.sh: correct the test for diff -u
9379         * tests/test-init.sh: Also redirect stdout to /dev/null.
9380
9381 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9382
9383         Use ', not `, for quoting output.
9384         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9385         (print_changelog_deltas, get_tool_versions, main program):
9386         * build-aux/git-version-gen:
9387         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9388         * build-aux/move-if-change (help):
9389         * build-aux/useless-if-before-free (usage, main program):
9390         * check-module (parse_module_file, usage)
9391         (find_included_lib_files, check_module):
9392         * lib/argmatch.c (main) [TEST]:
9393         * lib/argp-help.c (_help):
9394         * lib/getopt1.c (main) [TEST]:
9395         * lib/git-merge-changelog.c (usage):
9396         * lib/xstrtol-error.c (xstrtol_error):
9397         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9398         * m4/argz.m4 (gl_FUNC_ARGZ):
9399         * m4/bison.m4 (gl_BISON):
9400         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9401         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9402         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9403         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9404         * m4/gc-random.m4 (gl_GC_RANDOM):
9405         * m4/intl.m4 (gt_CHECK_DECL):
9406         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9408         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9409         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9410         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9411         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9412         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9413         * tests/test-dirname.c (main):
9414         * tests/test-getpass.c (main):
9415         * tests/test-iconvme.c (main):
9416         * tests/test-parse-datetime.c (LOG):
9417         * tests/test-xstrtoimax.sh:
9418         * tests/test-xstrtol.sh:
9419         * tests/test-xstrtoll.sh:
9420         * tests/test-xstrtoumax.sh:
9421         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9422         * top/GNUmakefile (abort-due-to-no-makefile):
9423         Quote 'like this', not `like this', as per the recent change to
9424         the GNU coding standards.
9425
9426 2012-01-05  Bruno Haible  <bruno@clisp.org>
9427
9428         strtoimax: Don't force a replacement on systems where intmax_t is int.
9429         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9430         'intmax_t' is not larger than 'int'.
9431         Reported by Pádraig Brady <P@draigBrady.com>.
9432
9433 2012-01-05  Bruno Haible  <bruno@clisp.org>
9434
9435         doc: Mention NetBSD bugs.
9436         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9437         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9438
9439 2012-01-05  Bruno Haible  <bruno@clisp.org>
9440
9441         strtoumax tests: Enhance tests.
9442         * tests/test-strtoumax.c (main): Add tests for large values.
9443
9444 2012-01-05  Bruno Haible  <bruno@clisp.org>
9445
9446         strtoimax: Work around AIX 5.1 bug.
9447         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9448         definition.
9449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9450         Set HAVE_STRTOIMAX.
9451         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9452         REPLACE_STRTOIMAX.
9453         * modules/inttypes-incomplete (Makefile.am): Substitute
9454         REPLACE_STRTOIMAX.
9455         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9456         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9457         (Depends-on): Update conditions.
9458         * tests/test-strtoimax.c (main): Add tests for large values.
9459         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9460
9461 2012-01-05  Bruno Haible  <bruno@clisp.org>
9462
9463         inttypes: Modernize.
9464         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9465         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9466         (Makefile.am): Update inttypes.h rule.
9467
9468 2012-01-05  Jim Meyering  <meyering@redhat.com>
9469
9470         init.sh: don't waste a subshell just to redirect stderr
9471         * tests/init.sh: In testing for diff -u and diff -c, use a
9472         stderr-redirecting exec inside `...` rather than a subshell.
9473
9474         test-init.sh: avoid failure on HP-UX 11.00
9475         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9476         resolves to diff -c or cmp.  Reported by Bruno Haible.
9477
9478 2012-01-05  Bruno Haible  <bruno@clisp.org>
9479
9480         Tests for module 'strtoull'.
9481         * modules/strtoull-tests: New file.
9482         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9483
9484 2012-01-05  Bruno Haible  <bruno@clisp.org>
9485
9486         Tests for module 'strtoll'.
9487         * modules/strtoll-tests: New file.
9488         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9489
9490 2012-01-05  Bruno Haible  <bruno@clisp.org>
9491
9492         Tests for module 'strtoul'.
9493         * modules/strtoul-tests: New file.
9494         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9495
9496 2012-01-05  Bruno Haible  <bruno@clisp.org>
9497
9498         Tests for module 'strtol'.
9499         * modules/strtol-tests: New file.
9500         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9501
9502 2012-01-04  Jim Meyering  <meyering@redhat.com>
9503
9504         test-init.sh: accommodate Solaris 5.10's different diff -u output
9505         * tests/test-init.sh: Also exempt @@ lines from the comparison
9506         of diff output, since Solaris 5.10 and GNU diff formats differ.
9507         Reported by Stefano Lattarini.
9508
9509 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9510
9511         test-posixtm: don't assume signed integer wraparound
9512         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9513         after signed integer overflow.  Inspired by (though it may not
9514         fix) Bruno Haible's bug report in
9515         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9516
9517         Spell out "Windows 9x" and "Windows XP".
9518         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9519         "Windows 9x" and "WinXP" with "Windows XP".
9520
9521 2012-01-04  Jim Meyering  <meyering@redhat.com>
9522
9523         test-vc-list-files-cvs.sh: remove obsolete comment
9524         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9525         double exit.  Now that's all encapsulated via skip_ and Exit.
9526
9527 2012-01-04  Bruno Haible  <bruno@clisp.org>
9528
9529         Talk about "native Windows API", not "Win32".
9530         * lib/classpath.c: Update comments to mention native Windows.
9531         * lib/csharpexec.c: Likewise.
9532         * lib/dup2.c: Likewise.
9533         * lib/error.c: Likewise.
9534         * lib/fcntl.c: Likewise.
9535         * lib/filename.h: Likewise.
9536         * lib/findprog.c: Likewise.
9537         * lib/get-rusage-as.c: Likewise.
9538         * lib/get-rusage-data.c: Likewise.
9539         * lib/getpagesize.c: Likewise.
9540         * lib/javaexec.c: Likewise.
9541         * lib/msvc-inval.c: Likewise.
9542         * lib/msvc-nothrow.c: Likewise.
9543         * lib/nanosleep.c: Likewise.
9544         * lib/nonblocking.c: Likewise.
9545         * lib/printf-parse.c: Likewise.
9546         * lib/setlocale.c: Likewise.
9547         * lib/sigaction.c: Likewise.
9548         * lib/strerror_r.c: Likewise.
9549         * lib/tmpdir.c: Likewise.
9550         * lib/vasnprintf.c: Likewise.
9551         * lib/w32spawn.h: Likewise.
9552         * lib/waitpid.c: Likewise.
9553         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9554         * m4/locale-ar.m4: Likewise.
9555         * m4/locale-fr.m4: Likewise.
9556         * m4/locale-ja.m4: Likewise.
9557         * m4/locale-tr.m4: Likewise.
9558         * m4/locale-zh.m4: Likewise.
9559         * m4/printf.m4: Likewise.
9560         * tests/test-cloexec.c: Likewise.
9561         * tests/test-copy-acl.sh: Likewise.
9562         * tests/test-copy-file.sh: Likewise.
9563         * tests/test-file-has-acl.sh: Likewise.
9564         * tests/test-set-mode-acl.sh: Likewise.
9565         * tests/test-dup-safer.c: Likewise.
9566         * tests/test-dup2.c: Likewise.
9567         * tests/test-dup3.c: Likewise.
9568         * tests/test-fcntl.c: Likewise.
9569         * tests/test-nonblocking-pipe.h: Likewise.
9570         * tests/test-nonblocking-socket.h: Likewise.
9571         * tests/test-pipe.c: Likewise.
9572         * tests/test-pipe2.c: Likewise.
9573         * tests/test-spawn-pipe-child.c: Likewise.
9574         * doc/acl-resources.txt: Likewise.
9575         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9576         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9577         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9578         * lib/localcharset.c: Update comments to mention native Windows.
9579         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9580         * lib/localename.c: Likewise.
9581         * lib/progreloc.c: Likewise.
9582         * lib/relocatable.c: Likewise.
9583         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9584         (windows_compute_revents): Renamed from win32_compute_revents.
9585         (windows_compute_revents_socket): Renamed from
9586         win32_compute_revents_socket.
9587         * lib/select.c: Update comments to mention native Windows.
9588         (windows_poll_handle): Renamed from win32_poll_handle.
9589         * m4/threadlib.m4: Update comments to mention native Windows.
9590         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9591         --enable-threads=windows instead of --enable-threads=win32. Set
9592         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9593         * lib/glthread/lock.h: Update comments to mention native Windows.
9594         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9595         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9596         USE_WIN32_THREADS.
9597         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9598         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9599         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9600         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9601         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9602         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9603         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9604         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9605         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9606         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9607         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9608         * tests/test-tls.c: Likewise.
9609         Rationale:
9610         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9611         on both 32-bit and 64-bit Windows systems.
9612         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9613         line of distinction is between "native Windows" on one side and Unix/
9614         POSIX systems on the other side. More details in
9615         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9616         Suggested by Paul Eggert.
9617
9618 2012-01-03  Bruno Haible  <bruno@clisp.org>
9619
9620         isatty: Support for MSVC 9.
9621         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9622         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9623         (_isatty_nothrow): New function.
9624         (isatty): Use it instead of _isatty.
9625         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9626         * lib/poll.c (IsConsoleHandle): Likewise.
9627         * lib/select.c (IsConsoleHandle): Likewise.
9628         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9629         (gl_PREREQ_ISATTY): New macro.
9630         * modules/isatty (Depends-on): Add msvc-inval.
9631         (configure.ac): Invoke gl_PREREQ_ISATTY.
9632
9633 2012-01-03  Jim Meyering  <meyering@redhat.com>
9634
9635         maint.mk: remove temporary transition aid from over 1.5 years ago
9636         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9637         purpose was to aid in the transition (avoiding silent malfunction)
9638         from that old name to the new _sc_search_regexp.  This shim was
9639         added by commit 219c504b.
9640
9641         init.sh: do not try to accommodate compare arguments starting with "-"
9642         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9643         compare arguments that start with "-".  Besides, we do not worry
9644         about this when invoking diff or cmp; why start now with sed?
9645         Using "--" to separate options from argument would trigger sed
9646         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9647         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9648
9649 2012-01-02  Bruno Haible  <bruno@clisp.org>
9650
9651         Enhance tests for module 'isatty'.
9652         * modules/isatty-tests (Depends-on): Add pipe-posix.
9653         * tests/test-isatty.c: Include <fcntl.h>.
9654         (DEV_NULL): New macro.
9655         (main): Test the resut of isatty() also on regular files, pipes, and
9656         /dev/null.
9657
9658         New module 'isatty'.
9659         * lib/unistd.in.h (isatty): New declaration.
9660         * lib/isatty.c: New file, based on an idea of
9661         Bastien Roucariès <roucaries.bastien@gmail.com>.
9662         * m4/isatty.m4: New file.
9663         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9664         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9665         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9666         REPLACE_ISATTY.
9667         * modules/isatty: New file.
9668         * doc/posix-functions/isatty.texi: Mention the new module.
9669         Suggested by Paolo Bonzini.
9670
9671 2012-01-02  Bruno Haible  <bruno@clisp.org>
9672
9673         canonicalize: Tweak 2011-12-29 commit.
9674         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9675         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9676
9677 2012-01-02  Jim Meyering  <meyering@redhat.com>
9678
9679         gitlog-to-changelog: describe input syntax in --help output
9680         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9681
9682         gitlog-to-changelog: fix typo in --help: show backslash before email @
9683         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9684         in sources, but not in actual output.
9685
9686 2011-12-30  Jim Meyering  <meyering@redhat.com>
9687
9688         gitlog-to-changelog: don't malfunction when name contains %-directive
9689         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9690         in a name string cause trouble.  E.g., with a user name of "%s",
9691         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9692
9693 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9694
9695         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9696         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9697         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9698         the "  (tiny change)" notation that is appended to the standard
9699         ChangeLog "date  name  email" header line.
9700
9701 2012-01-01  Jim Meyering  <meyering@redhat.com>
9702
9703         test-framework-sh: init.sh: fix "make dist" failure
9704         When using gnulib-tool's --with-tests option and any module that
9705         depends on test-framework-sh, "make dist" would fail due to the
9706         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9707         in the gltests directory, and not in the gllib/ directory.
9708         One way to work around that is to move the EXTRA_DIST += init.sh
9709         from the primary module to the -tests one:
9710         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9711         * modules/test-framework-sh (Makefile.am): ...not here.
9712         Reported by Tom G. Christensen in
9713         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9714
9715         version-etc: update copyright year reported by --version
9716         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9717
9718 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9719
9720         canonicalize: only stat() if required
9721         * lib/canonicalize.c (canonicalize_filename_mode):
9722         Avoid calling l?stat() when both CAN_MISSING,
9723         and CAN_NOLINKS are set, as we neither need
9724         to resolve symlinks or test component existence.
9725
9726 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9727
9728         doc: cover st_ino issues once; add OpenVMS etc.
9729         * doc/posix-functions/stat.texi (stat):
9730         * doc/posix-functions/lstat.texi (lstat):
9731         * doc/posix-functions/fstatat.texi (fstatat):
9732         * doc/posix-functions/fstat.texi (fstat):
9733         Move general 'struct stat' stuff to sys_stat.texi,
9734         leaving behind a pointer.
9735         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9736         Merge duplicate info about 'struct stat' problems into here.
9737         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9738         and suggest partial workarounds.
9739
9740         same-inode: port to OpenVMS
9741         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9742         three st_ino values.
9743
9744 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9745
9746         canonicalize: fix references to stat() and lstat()
9747         * lib/canonicalize.c (canonicalize_filename_mode):
9748         Ensure references always resolve to a replacement
9749         function if required (even via a macro).
9750
9751 2011-12-30  Jim Meyering  <meyering@redhat.com>
9752
9753         gitlog-to-changelog: remove a little duplication
9754         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9755         rather than twice.
9756
9757 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9758
9759         canonicalize: add support for not resolving symlinks
9760         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9761         indicate we don't want to follow symlinks.  Also
9762         provide CAN_MODE_MASK to aid setting these existing
9763         mutually exclusive values.
9764         * lib/canonicalize.c (canonicalize_filename_mode):
9765         Extract the flags from can_mode parameter, which
9766         are currently just used to select between stat()
9767         and lstat().  Also ensure that mutually exclusive
9768         values are flagged immediately as invalid.
9769         * tests/test-canonicalize.c: Verify symlinks are
9770         not followed, and that invalid flag combinations
9771         are diagnosed.
9772
9773 2011-12-25  Jim Meyering  <meyering@redhat.com>
9774
9775         gitlog-to-changelog: do not clump multi-paragraph entries
9776         Identical header lines (date,name,email+coauthors) are suppressed,
9777         thus putting all entries with those same characteristics under
9778         a single header.  However, when a log entry consists of two or
9779         more paragraphs, it may not be clear where it starts and ends.
9780         This change makes it so that such an entry is always separated
9781         from others by a header line, even when that header would
9782         otherwise be suppressed.
9783         * build-aux/gitlog-to-changelog: Implement the above.
9784         Inspired by a related request from Stefano Lattarini in
9785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9786
9787 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9788
9789         announce-gen: fix `cmd' typo in diagnostic
9790         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9791         diagnostic: a missing '$' meant that the command was not output.
9792
9793 2011-12-23  Jim Meyering  <meyering@redhat.com>
9794
9795         test-framework-sh: distribute init.sh
9796         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9797         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9798         fail due to the lack of init.sh.
9799
9800         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9801         * modules/atexit-tests: Rather than listing tests/init.sh,
9802         now that there's a module for it, simply depend on that new module.
9803         * modules/closein-tests: Likewise.
9804         * modules/exclude-tests: Likewise.
9805         * modules/getcwd-tests: Likewise.
9806         * modules/perror-tests: Likewise.
9807         * modules/pread-tests: Likewise.
9808         * modules/pwrite-tests: Likewise.
9809         * modules/vc-list-files-tests: Likewise.
9810         * modules/verify-tests: Likewise.
9811         * modules/xalloc-die-tests: Likewise.
9812         * modules/xstrtoimax-tests: Likewise.
9813         * modules/xstrtol-tests: Likewise.
9814         * modules/xstrtoll-tests: Likewise.
9815         * modules/xstrtoumax-tests: Likewise.
9816         * modules/yesno-tests: Likewise.
9817
9818 2011-12-22  Jim Meyering  <meyering@redhat.com>
9819
9820         test-framework-sh: add minimal tests of init.sh's compare function
9821         * modules/test-framework-sh-tests: New file.
9822         * tests/test-init.sh: New file.
9823
9824         test-framework-sh: new module
9825         * modules/test-framework-sh: New file.
9826         * MODULES.html.sh (Support for maintaining and releasing projects):
9827         List it.
9828
9829         init.sh: do not emit simulated diff output to stderr
9830         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9831
9832 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9833
9834         .gitignore: ignore gnulib.dvi and regex.info
9835         * doc/.gitignore:add gnulib.dvi and regex.info
9836
9837 2011-12-22  Jim Meyering  <meyering@redhat.com>
9838
9839         init.sh: correct previous change
9840         * tests/init.sh (compare): My previous change was wrong.
9841         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9842
9843         init.sh: avoid unwarranted test failure when using "set -e"
9844         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9845         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9846         a use like "compare exp out" would get evoke an unconditional failure.
9847
9848 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9849
9850         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9851         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9852         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9853         autoreconf that did not.
9854         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9855         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9856
9857 2011-12-17  Jim Meyering  <meyering@redhat.com>
9858
9859         bootstrap: remove some now-unneeded code
9860         This script arose back when gnulib-tool was young.
9861         Since then, it has seen improvements that render much of this
9862         script unnecessary.  In particular, it can now make symlinks
9863         to the files it uses.  Also, I no longer see as much value in
9864         marking files as read-only via comments.
9865         If you relied on the symlink-creation feature of the preceding
9866         version of this script, you can get most of that functionality
9867         by adding the --symlink option to the definition of
9868         gnulib_tool_option_extras in your bootstrap.conf file.
9869         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9870         Run autopoint and libtoolize *before* gnulib-tool.
9871         After it, run an abbreviated autoreconf, rather than a loop around
9872         all tools.
9873         (slirp, bt_mark_as_generated): Remove functions.
9874
9875 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9876
9877         ftoastr: fix typo
9878         * lib/ftoastr.h: Fix misspelling in comment.
9879
9880 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9881
9882         * top/README-release: fix punctuation.
9883
9884 2011-12-17  Jim Meyering  <meyering@redhat.com>
9885
9886         bootstrap: correct the recent buildreq change
9887         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9888         had no effect.
9889         * build-aux/bootstrap (buildreq): Bracket each search term with
9890         "*...*", so that the shell "case" statement works as intended.
9891         Add comments.
9892
9893 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9894
9895         build: let bootstrap resort to wget when downloading .po files
9896         * build-aux/bootstrap (download_po_files): Fallback to wget when
9897         downloading the .po files via rsync fails.  This is necessary to
9898         bootstrap from behind a strict firewall.
9899
9900 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9901
9902         stdint: don't assume C++11 when compiling with g++
9903         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9905         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9906         work also in C++ before C++11, as that improperly inhibits
9907         generating a substitute stdint.h for that case.
9908
9909 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9910
9911         alloca: protect comment from gnulib-tool
9912         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9913         that gnulib-tool doesn't think it's a license, and munge it to
9914         say "GCC version 3".
9915
9916 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9917
9918         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9919         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9920         $(abs_top_builddir) instead of $(top_builddir).
9921
9922 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9923
9924         strftime-tests: also test nanoseconds
9925         * tests/test-strftime.c (T): Add a test of %N.
9926
9927 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         inttypes, stdint: add C++11 support
9930         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9931         when including inttypes.h and stdint.h.  Support this change to
9932         the standard.
9933         * doc/posix-headers/inttypes.texi (inttypes.h):
9934         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9935         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9936         Define if not defined already, for the benefit of pre-C++11 hosts.
9937         Define the standard format macros (e.g., PRId8) always.
9938         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9939         Likewise, if __cpluspus.  Define the standard constant and limit
9940         macros (e.g., INT8_C, INT8_MAX) always.
9941         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9942         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9943         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9944         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9945         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9946         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9947         Likewise.
9948
9949 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9950
9951         nonblocking tests: Fix test failure on Linux/PPC.
9952         Suggested by Prerna Saxena in
9953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9954         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9955         Set to 1100000.
9956
9957 2011-12-12  Jim Meyering  <meyering@redhat.com>
9958
9959         argmatch: don't hard-code `' when listing valid option arguments
9960         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9961         use the quote function to add quotes.  Use fputs rather than
9962         fprintf for the format string with no format directive.
9963
9964 2011-12-07  Eric Blake  <eblake@redhat.com>
9965
9966         bootstrap: detect tools required by gnulib-tool
9967         * build-aux/bootstrap (buildreq): Provide minimum implicit
9968         dependencies.
9969         * DEPENDENCIES: Mention patch as a prereq.
9970
9971 2011-12-04  Bruno Haible  <bruno@clisp.org>
9972
9973         sethostname: Port to Windows platforms.
9974         * lib/sethostname.c: Provide an alternate implementation for Windows
9975         platforms.
9976         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9977         (main): Skip the test if sethostname() fails with EPERM. On Windows
9978         platforms, don't check the result of gethostname().
9979
9980 2011-12-04  Bruno Haible  <bruno@clisp.org>
9981             Jim Meyering  <meyering@redhat.com>
9982
9983         tests: Avoid spurious error message on platforms without mktemp program.
9984         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9985
9986 2011-12-04  Bruno Haible  <bruno@clisp.org>
9987
9988         sethostname: Fix documentation.
9989         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9990         "not fixed" section.
9991
9992 2011-12-03  Bruno Haible  <bruno@clisp.org>
9993
9994         gnulib-tool: Verify that the License field is present and non-empty.
9995         * gnulib-tool (func_get_license_raw): New function, extracted from
9996         func_get_license.
9997         (func_get_license): Use it. Warn if the module is not a test module and
9998         has no license.
9999         Suggested by Jim Meyering.
10000
10001 2011-12-03  Bruno Haible  <bruno@clisp.org>
10002
10003         sethostname tests: Fix link error on mingw.
10004         * tests/test-sethostname1.c: New file, extracted from
10005         tests/test-sethostname.c.
10006         * tests/test-sethostname2.c: New file, extracted from
10007         tests/test-sethostname.c.
10008         * tests/test-sethostname.c: Remove file.
10009         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10010         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10011         (Depends-on): Add gethostname.
10012         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10013         Link the latter with $(GETHOSTNAME_LIB).
10014
10015         sethostname tests: Fix compilation error on mingw.
10016         * tests/test-sethostname.c: Don't include <sys/types.h>.
10017         (geteuid): Use a dummy value without uid_t.
10018         * modules/sethostname-tests (Depends-on): Remove sys_types.
10019
10020         sethostname tests: Avoid a gcc warning.
10021         * tests/test-sethostname.c (main): Remove an unused variable.
10022
10023         Tweak last commit.
10024         * modules/sethostname-tests (Files): Sort by decreasing importance.
10025         (configure.ac): Check for geteuid.
10026         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10027         the test when there's nothing to test. Drop an unnecessary cast.
10028         Improve an error message. Verify that the final sethostname() call
10029         succeeds.
10030
10031 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10032
10033         Add a test suite for the sethostname module.
10034         * modules/sethostname-tests: New file.  A test program
10035         for the sethostname module.
10036         * tests/test-sethostname.c: Likewise.
10037
10038 2011-12-03  Bruno Haible  <bruno@clisp.org>
10039
10040         Tweak last commit.
10041         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10042         Fix preprocessor directives indentation. Fix typos.
10043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10044         * modules/unistd (Makefile): Likewise.
10045
10046 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10047
10048         Integrate the sethostname module into unistd.
10049         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10050         into the unistd.h header.
10051         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10052         preprocessor directives.
10053         * modules/unistd: Setup the Makefile substitutions of the
10054         SETHOSTNAME preprocessor directives.
10055
10056 2011-12-03  Bruno Haible  <bruno@clisp.org>
10057
10058         Tweak last commit.
10059         * lib/sethostname.c: Don't include <string.h>.
10060         (sethostname): No need to copy the argument string to the stack. Don't
10061         call clearerr. Preserve errno when fprintf failed.
10062         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10063         Don't invoke AC_REPLACE_FUNCS.
10064         * modules/sethostname (Link): Remove empty section.
10065         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10066         failure problem.
10067
10068 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10069
10070         New module 'sethostname'.
10071         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10072         for systems that lack it.
10073         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10074         sethostname declaration and function.
10075         * modules/sethostname: New file.  Define the sethostname module.
10076
10077 2011-12-03  Bruno Haible  <bruno@clisp.org>
10078
10079         Tweak last commit.
10080         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10081
10082 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10083
10084         Split the HOST_NAME_MAX detection into a separate m4 macro.
10085         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10086         macro so it can be used by the pending sethostname module.
10087
10088 2011-12-03  Bruno Haible  <bruno@clisp.org>
10089
10090         Fix module descriptions syntax.
10091         * modules/argv-iter (License): Fix syntax.
10092         * modules/di-set (License): Likewise.
10093         * modules/ino-map (License): Likewise.
10094         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10095
10096 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10097
10098         stdalign: port to Clang 3.0
10099         Problem reported by Simon Josefsson in
10100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10101         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10102         which has <stdalign.h> but which does not define alignof.
10103         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10104
10105 2011-12-01  Eric Blake  <eblake@redhat.com>
10106
10107         mktempd: silence dd usage
10108         * build-aux/mktempd (rand_bytes): Silence dd.
10109
10110 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10111
10112         manywarnings: Don't mention gcc version in docstring.
10113         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10114         Jim Meyering <meyering@redhat.com>.
10115
10116 2011-11-30  Jim Meyering  <meyering@redhat.com>
10117
10118         hash: mark a few floating point constants with "f" suffix
10119         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10120         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10121         floating point constants with "f", since they're destined to be
10122         saved/used as "float"s.
10123
10124 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10125
10126         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10127         * tests/test-float.c (test_long_double): Correct and re-enable the
10128         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10129
10130 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10131
10132         Avoid subtracting two pointers that don't point into the same block.
10133         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10134         only pointers into the same memory block are subtracted. We cannot
10135         assume that sizeof (ptrdiff_t) == sizeof (void *).
10136
10137 2011-11-29  Eric Blake  <eblake@redhat.com>
10138
10139         maint.mk: add syntax check for use of compare from init.sh
10140         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10141         moved here from coreutils.
10142
10143         manywarnings: drop -Wunsuffixed-float-constants
10144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10145         '1.0D', which is the only way to silence this warning for 'double'.
10146
10147 2011-11-29  Jim Meyering  <meyering@redhat.com>
10148
10149         hash: mark compute_bucket_size with the pure attribute
10150         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10151
10152         quotearg, propername: correct pragma guard expression
10153         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10154         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10155
10156 2011-11-28  Jim Meyering  <meyering@redhat.com>
10157
10158         propername: do not mark proper_name with the const attribute
10159         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10160         since it examines data pointed to by its parameter.
10161         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10162         the suggestion from -Wsuggest-attribute=const.
10163
10164         propername: mark one more function as const
10165         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10166
10167 2011-11-27  Jim Meyering  <meyering@redhat.com>
10168
10169         mark functions with const and pure attributes
10170
10171         Mark functions per suggestions from gcc-4.6 when using these options:
10172         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10173         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10174         Follow these guidelines: when possible, apply the attribute to
10175         an extern declaration, not to its definition.  Apply it to the
10176         definition only when the definition is static.
10177         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10178         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10179         * lib/base64.h (isbase64): Likewise.
10180         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10181         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10182         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10183         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10184         (c_tolower, c_toupper): Likewise.
10185         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10186         * lib/chdir-long.c (find_non_slash): Likewise.
10187         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10188         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10189         * lib/file-type.h (file_type): Likewise.
10190         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10191         * lib/filevercmp.c (verrevcmp): Likewise.
10192         * lib/freadahead.h (freadahead): Likewise.
10193         * lib/fts.c (fts_maxarglen): Likewise.
10194         * lib/hash-pjw.h (hash_pjw): Likewise.
10195         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10196         * lib/hash.c (is_prime, next_prime): Likewise.
10197         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10198         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10199         (hash_table_ok, hash_get_first, hash_string): Likewise.
10200         (compute_bucket_size): Likewise.
10201         * lib/i-ring.h (i_ring_empty): Likewise.
10202         * lib/isnan.c (isnanl): Likewise.
10203         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10204         * lib/memcasecmp.h (memcasecmp): Likewise.
10205         * lib/memchr2.h (memchr2): Likewise.
10206         * lib/memcmp2.h (memcmp2): Likewise.
10207         * lib/parse-datetime.y (lookup_zone): Likewise.
10208         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10209         [!WINDOWS_SOCKETS]: Likewise.
10210         * lib/strnlen1.h (strnlen1): Likewise.
10211         * lib/uniwidth.in.h (uc_width): Likewise.
10212         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10213         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10214         (quoting_options_from_style): Add a comment.
10215         * lib/propername.h (proper_name): Add a comment.
10216
10217 2011-11-27  Bruno Haible  <bruno@clisp.org>
10218
10219         Remove unused macros from !_LIBC code in glibc-borrowed files.
10220         * lib/fnmatch.c (STRCOLL): Remove macro.
10221         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10222         * lib/glob.c (__stat, __readdir64): Remove macros.
10223         * lib/tempname.c (__open64, __xstat64): Remove macros.
10224         Suggested by Paul Eggert.
10225
10226 2011-11-27  Bruno Haible  <bruno@clisp.org>
10227
10228         getcwd: Fix link error on MSVC 9.
10229         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10230
10231 2011-11-27  Bruno Haible  <bruno@clisp.org>
10232
10233         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10234         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10235         HAVE_OPENDIR is 0.
10236         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10237         HAVE_CLOSEDIR is 0.
10238         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10239         is 0.
10240         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10241
10242 2011-11-27  Bruno Haible  <bruno@clisp.org>
10243
10244         getcwd: Fix bug from 2011-08-17.
10245         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10246         platforms that need it.
10247         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10248         code of 4 to be a failure, not a success. This ensures that
10249         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10250
10251 2011-11-27  Bruno Haible  <bruno@clisp.org>
10252
10253         binary-io tests: Avoid test failure on mingw when libtool is used.
10254         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10255         Don't verify the size of t-bin-out1.tmp here.
10256         * tests/test-binary-io.sh: Verify it here.
10257         Reported by Simon Josefsson.
10258
10259 2011-11-26  Bruno Haible  <bruno@clisp.org>
10260
10261         Fix conflict between two instantiations of module 'unistd'.
10262         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10263         ${include_guard_prefix} also in the autoconf snippet.
10264         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10266         GNULIB_UNISTD_H_GETOPT.
10267         * modules/getopt-posix (configure.ac): Set the
10268         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10269         * modules/getopt-gnu (configure.ac): Likewise.
10270         * modules/unistd (Makefile.am): Change the substitution value of
10271         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10272         Reported by Simon Josefsson.
10273
10274 2011-11-25  Bruno Haible  <bruno@clisp.org>
10275
10276         pagealign_alloc: Doc and comments.
10277         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10278         module.
10279         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10280
10281 2011-11-25  Jim Meyering  <meyering@redhat.com>
10282
10283         test-update-copyright.sh: avoid false-positive failure
10284         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10285         around false positive failure on Cygwin/Windows.  The latter was
10286         matching erroneously-created files with names like
10287         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10288
10289 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10290
10291         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10292         * m4/valgrind-tests.m4: Check that the parameters that will be
10293         used works, not just a subset of them.  Reported by Bruno Haible
10294         <bruno@clisp.org>.
10295
10296 2011-11-24  Jim Meyering  <meyering@redhat.com>
10297
10298         test-stdalign.c: comment out long double tests
10299         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10300         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10301         error: '_Alignas' specifiers cannot reduce alignment of \
10302         'static_longdouble_alignas'.
10303
10304 2011-11-22  Jim Meyering  <meyering@redhat.com>
10305
10306         init.sh: make "compare /dev/null FILE" output more readable
10307         * tests/init.sh (compare_): Document the preferred order of arguments.
10308         (emit_diff_u_header_): New function.
10309         (compare_dev_null_): Emit a simulated diff, rather than just the
10310         contents of the unexpected file.  Suggestion from Bruno Haible.
10311
10312 2011-11-21  Jim Meyering  <meyering@redhat.com>
10313             Eric Blake  <eblake@redhat.com>
10314
10315         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10316         * tests/init.sh: Make our compare function slightly more portable.
10317         Reported by Bruno Haible in
10318         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10319
10320 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10321
10322         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10323         before using it, in code that ends up in config.h.
10324
10325 2011-11-20  Bruno Haible  <bruno@clisp.org>
10326
10327         getcwd: Work around getcwd bug on AIX 5..7.
10328         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10329         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10330         Use a different value for gl_cv_func_getcwd_path_max. Move the
10331         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10332         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10333         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10334         Define HAVE_MINIMALLY_WORKING_GETCWD.
10335         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10336         where it is not even minimally working, that is, on AIX.
10337         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10338         m4/getcwd-path-max.m4.
10339         (main): Update exit code computation.
10340         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10341         getcwd does not handle long file names.
10342
10343 2011-11-20  Bruno Haible  <bruno@clisp.org>
10344
10345         getcwd: Fix bug from 2009-09-10.
10346         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10347         like "no".
10348
10349 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10350
10351         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10352
10353 2011-11-20  Bruno Haible  <bruno@clisp.org>
10354
10355         fma tests: Avoid shadowing local variables.
10356         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10357         expected.
10358
10359 2011-11-20  Bruno Haible  <bruno@clisp.org>
10360
10361         copysignf tests: Fix.
10362         * tests/test-copysignf.c: Fix signature check.
10363
10364 2011-11-20  Bruno Haible  <bruno@clisp.org>
10365
10366         fma: Remove unused code.
10367         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10368         unused macros.
10369
10370 2011-11-20  Bruno Haible  <bruno@clisp.org>
10371
10372         sethostname: Fix doc about AIX.
10373         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10374         sethostname; it has it.
10375
10376         sethostname: Mention more portability problems.
10377         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10378         problem.
10379         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10380
10381 2011-11-19  Bruno Haible  <bruno@clisp.org>
10382
10383         Depend on module fcntl-h when AT_FDCWD is used.
10384         * modules/utimens (Depends-on): Add fcntl-h.
10385         * modules/areadlinkat (Depends-on): Likewise.
10386         * modules/areadlinkat-with-size (Depends-on): Likewise.
10387         * modules/faccessat (Depends-on): Likewise.
10388         * modules/fchmodat (Depends-on): Likewise.
10389         * modules/fchownat (Depends-on): Likewise.
10390         * modules/getcwd (Depends-on): Likewise.
10391         * modules/mkdirat (Depends-on): Likewise.
10392         * modules/mkfifoat (Depends-on): Likewise.
10393         * modules/readlinkat (Depends-on): Likewise.
10394         * modules/symlinkat (Depends-on): Likewise.
10395         * modules/dup2-tests (Depends-on): Likewise.
10396         * modules/fdutimensat-tests (Depends-on): Likewise.
10397         * modules/futimens-tests (Depends-on): Likewise.
10398
10399 2011-11-19  Bruno Haible  <bruno@clisp.org>
10400
10401         euidaccess: Update a comment.
10402         * lib/euidaccess.c: Update comment about platforms with faccessat.
10403
10404 2011-11-19  Bruno Haible  <bruno@clisp.org>
10405
10406         openat: Fix file list.
10407         * modules/openat (Files): Remove lib/at-func.c.
10408
10409 2011-11-19  Bruno Haible  <bruno@clisp.org>
10410
10411         fstatat: Simplify.
10412         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10413         gnulib should define rpl_fstatat, there is a
10414         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10415
10416 2011-11-19  Bruno Haible  <bruno@clisp.org>
10417
10418         Ensure 'inline' can be used in tests/test-utimens-common.h.
10419         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10420         * modules/futimens-tests (configure.ac): Likewise.
10421         * modules/utimens-tests (configure.ac): Likewise.
10422         * modules/utimensat-tests (configure.ac): Likewise.
10423
10424 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10425
10426         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10427         not hash_insert0.
10428         (hash_insert_if_absent): Doc fix.
10429
10430 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10431
10432         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10433
10434 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10435
10436         test-getcwd: disambiguate exit status
10437         * tests/test-getcwd.c (test_long_name): Return 0..7.
10438         (main): Exit with an unambiguous exit status.  The old
10439         code yielded a mysterious mixture of two failure codes.
10440
10441         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10442         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10443         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10444         rpl_fstatat or fstatat.  This should fix the other problem
10445         reported by Kai Habel in
10446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10447         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10449         and I reproduced it on a Solaris 8 host we still have in production.
10450
10451 2011-11-18  Jim Meyering  <meyering@redhat.com>
10452
10453         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10454         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10455         Add a sentence to the comment.
10456         (hash_insert0): New function that simply calls hash_insert_if_absent.
10457         * lib/hash.h (hash_insert_if_absent): Declare it.
10458         (hash_insert0): Add deprecation attribute.
10459         (_GL_ATTRIBUTE_DEPRECATED): Define.
10460         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10461         not hash_insert0.
10462         * NEWS: Mention it, even though it's not really an incompatible change.
10463
10464 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10465
10466         openat: avoid compilation failure due to lack of <errno.h> inclusion
10467         * lib/openat.c: Include <errno.h>.
10468
10469 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         * modules/getcwd (Depends-on): Add fdopendir.
10472         This fixes one of the two problems reported by Kai Habel in
10473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10474
10475         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10476         stdalign problem reported by Ian Beckwith in
10477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10478         * modules/crypto/gc-arcfour (Depends-on):
10479         Depend conditionally on crypto/arcfour.
10480         * modules/crypto/gc-arctwo (Depends-on):
10481         Depend conditionally on crypto/arctwo.
10482         * modules/crypto/gc-des (Depends-on):
10483         Depend conditionally on crypto/des.
10484         * modules/crypto/gc-hmac-md5 (Depends-on):
10485         Depend conditionally on crypto/hmac-md5.
10486         * modules/crypto/gc-hmac-sha1 (Depends-on):
10487         Depend conditionally on crypto/hmac-sha1.
10488         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10489         * modules/crypto/gc-md4 (Depends-on):
10490         Depend conditionally on crypto/md4.
10491         * modules/crypto/gc-md5 (Depends-on):
10492         Depend conditionally on crypto/md5.
10493         * modules/crypto/gc-rijndael (Depends-on):
10494         Depend conditionally on crypto/rijndael.
10495         * modules/crypto/gc-sha1 (Depends-on):
10496         Depend conditionally on crypto/sha1.
10497         * modules/crypto/gc-arcfour:
10498         * modules/crypto/gc-arctwo:
10499         * modules/crypto/gc-des:
10500         * modules/crypto/gc-hmac-md5:
10501         * modules/crypto/gc-hmac-sha1:
10502         * modules/crypto/gc-md2:
10503         * modules/crypto/gc-md4:
10504         * modules/crypto/gc-md5:
10505         * modules/crypto/gc-rijndael:
10506         * modules/crypto/gc-sha1:
10507         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10508         now that the conditional dependencies do the work for us.
10509
10510 2011-11-17  Jim Meyering  <meyering@redhat.com>
10511
10512         tests: factor st_ctime-comparison out of two headers
10513         * tests/test-utimens-common.h (ctime_compare): Define.
10514         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10515         * tests/test-lutimens.h (test_lutimens): Likewise.
10516         * tests/test-utimens.h (test_utimens): Likewise.
10517
10518         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10519         Invoke the test program via an init.sh-using wrapper.
10520         * tests/test-getcwd.sh: New file.
10521         * modules/getcwd-tests (Files): Add it.
10522         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10523
10524 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10525
10526         gitlog-to-changelog: support multi-author commits.
10527         The FSF cares about keeping track of all authors of patches to its
10528         projects, but Git doesn't provide obvious support for multi-author
10529         changesets. Consensus seems to be forming around the use of extra
10530         Signed-off-by inspired lines in the log message formatted as
10531         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10532         multi-author commits between version control systems.
10533         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10534         log message and output in standard ChangeLog multi-author format.
10535         Reported by Peter Rosin <peda@lysator.liu.se>
10536
10537 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10538             Bruno Haible  <bruno@clisp.org>
10539
10540         Fix some modules' file list.
10541         * modules/fstatat (Files): Add m4/lstat.m4.
10542         * modules/openat (Files): Likewise.
10543         * modules/unlinkat (Files): Likewise.
10544
10545 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10546
10547         maint.mk: fix tight-scope.mk generation in VPATH builds.
10548         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10549         reference with $(srcdir) so that the file is found correctly even
10550         when running `make syntax-check' in a VPATH build.
10551
10552 2011-11-13  Bruno Haible  <bruno@clisp.org>
10553             Jim Meyering  <meyering@redhat.com>
10554
10555         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10556         * tests/init.sh (compare): Remove "No differences encountered" or
10557         synonymous output from the 'diff' program.
10558
10559 2011-11-13  Bruno Haible  <bruno@clisp.org>
10560
10561         Makefile: Tweak indentation.
10562         * Makefile: Use tab as first character in every line that contains rule
10563         commands.
10564
10565 2011-11-13  Bruno Haible  <bruno@clisp.org>
10566
10567         Syntax check for copyright statements.
10568         * check-copyright: New file.
10569         * Makefile (sc_check_copyright): New rule.
10570
10571 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10572
10573         * build-aux/git-version-gen: Add --prefix to configure the tag
10574         match string.
10575
10576 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10577
10578         * build-aux/git-version-gen: Add --help and --version.
10579
10580 2011-11-12  Jim Meyering  <meyering@redhat.com>
10581
10582         revamp the other test-exclude?.sh scripts to use init.sh, too
10583         * tests/test-exclude1.sh: Use init.sh.
10584         * tests/test-exclude2.sh: Likewise.
10585         * tests/test-exclude3.sh: Likewise.
10586         * tests/test-exclude4.sh: Likewise.
10587         * tests/test-exclude5.sh: Likewise.
10588         * tests/test-exclude6.sh: Likewise.
10589         * tests/test-exclude7.sh: Likewise.
10590         * tests/test-exclude8.sh: Likewise.
10591         * modules/exclude-tests (Files): List init.sh.
10592
10593         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10594         These shell scripts ignored failure of the binary test-exclude,
10595         so making the latter return 77 didn't cause them to be skipped.
10596         * tests/test-exclude5.sh: Exit with test-exclude's error status
10597         when that program fails.  Revamp to use init.sh.
10598         * tests/test-exclude2.sh: Likewise.
10599
10600         test-exclude: fix a typo
10601         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10602
10603 2011-11-11  Bruno Haible  <bruno@clisp.org>
10604
10605         obstack: Fix compilation error on MSVC 9.
10606         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10607
10608 2011-11-11  Jim Meyering  <meyering@redhat.com>
10609
10610         test-exclude: skip tests rather than failing on deficient systems
10611         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10612         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10613         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10614         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10615
10616 2011-11-10  Bruno Haible  <bruno@clisp.org>
10617
10618         ptsname_r test: Avoid gcc warning on glibc systems.
10619         * tests/test-ptsname_r.c (null_ptr): New function.
10620         (test_errors): Use it.
10621
10622 2011-11-10  Bruno Haible  <bruno@clisp.org>
10623
10624         ptsname_r: Avoid compilation error on OSF/1 5.1.
10625         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10627         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10628         function is not declared or incompatibly declared.
10629         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10630         * modules/ptsname_r (Depends-on, configure.ac): Update.
10631         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10632
10633 2011-11-10  Bruno Haible  <bruno@clisp.org>
10634
10635         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10636         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10637         When cross-compiling, guess yes on all platforms except AIX.
10638         Reported by Ludovic Courtès <ludo@gnu.org>.
10639
10640 2011-11-09  Bruno Haible  <bruno@clisp.org>
10641
10642         ptsname_r tests: Fix bugs.
10643         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10644         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10645
10646 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10647
10648         fstatat: work with cross-compilation
10649         Problem reported by Ludovic Courtès in
10650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10651         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10652         "cross-compiling" and assume the bug is present.  Replace
10653         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10654         an inverted sense, to be more conservative about our assumptions.
10655         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10656
10657 2011-11-09  Bruno Haible  <bruno@clisp.org>
10658
10659         Improve MODULES.html output.
10660         * modules/mkfifoat (Description): Use the word "function".
10661         * modules/readlinkat (Description): Likewise.
10662         * modules/symlinkat (Description): Likewise.
10663
10664 2011-11-09  Eric Blake  <eblake@redhat.com>
10665
10666         ptsname_r-tests: new test module
10667         * modules/ptsname_r-tests: New module.
10668         * tests/test-ptsname_r.c: New file.
10669
10670         ptsname_r: new module
10671         * modules/ptsname_r: New module.
10672         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10673         * lib/ptsname.c (__ptsname_r): Split...
10674         * lib/ptsname_r.c: ...into new file.
10675         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10676         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10677         * modules/stdlib (Makefile.am): Substitute witnesses.
10678         * lib/stdlib.in.h (ptsname_r): Declare it.
10679         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10680         * MODULES.html.sh (Misc): Likewise.
10681         * modules/ptsname (Depends-on): Alter dependency.
10682         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10683
10684 2011-11-09  Jim Meyering  <meyering@redhat.com>
10685
10686         announce-gen: be more concise when there's only one URL+tarball
10687         * build-aux/announce-gen (get_tool_versions): When you distribute
10688         only one type of tarball, combine the first two "Here are..."
10689         sections and make the key-checking grammar independent of
10690         how many tarballs there are.
10691
10692 2011-11-09  Eric Blake  <eblake@redhat.com>
10693
10694         openpty: provide a stub on mingw
10695         * lib/pty.in.h (includes): Provide forward declarations.
10696         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10697
10698         raise: fix mingw handling of SIGPIPE
10699         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10700
10701 2011-11-08  Bruno Haible  <bruno@clisp.org>
10702
10703         More conditional dependencies.
10704         * modules/faccessat (Depends-on): Add conditions.
10705         * modules/fchmodat (Depends-on): Likewise.
10706         * modules/fchownat (Depends-on): Likewise.
10707         * modules/fstatat (Depends-on): Likewise.
10708         * modules/mkfifoat (Depends-on): Likewise.
10709         * modules/readlinkat (Depends-on): Likewise.
10710         * modules/symlinkat (Depends-on): Likewise.
10711         * modules/unlinkat (Depends-on): Likewise.
10712         * modules/utimensat (Depends-on): Likewise.
10713         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10714         * modules/linkat (Depends-on): Refine the conditions.
10715         * modules/renameat (Depends-on): Likewise.
10716
10717 2011-11-08  Bruno Haible  <bruno@clisp.org>
10718
10719         faccessat: Move AC_LIBOBJ invocation to module description.
10720         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10721         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10722         invocation from here...
10723         * modules/faccessat (configure.ac): ... to here. Invoke
10724         gl_PREREQ_FACCESSAT.
10725
10726 2011-11-08  Bruno Haible  <bruno@clisp.org>
10727
10728         faccessat: Simplify autoconf macro.
10729         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10730         gl_FUNC_EUIDACCESS.
10731
10732 2011-11-08  Bruno Haible  <bruno@clisp.org>
10733
10734         renameat: Fix dependencies.
10735         * modules/renameat (Depends-on): Add stdbool.
10736
10737 2011-11-08  Bruno Haible  <bruno@clisp.org>
10738
10739         mkfifoat: Fix module description.
10740         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10741         not gl_UNISTD_MODULE_INDICATOR.
10742
10743 2011-11-08  Bruno Haible  <bruno@clisp.org>
10744
10745         fstatat: Remove unused dependency.
10746         * modules/fstatat (Depends-on): Remove fstat.
10747
10748 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10749
10750         GNUmakefile: behave when Makefile is missing.
10751         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10752
10753 2011-11-08  Bruno Haible  <bruno@clisp.org>
10754
10755         openat: Conditionalize dependencies.
10756         * lib/openat.c: Reduce the scope of some #includes.
10757         * modules/openat (Depends-on): Add conditions.
10758
10759 2011-11-07  Jim Meyering  <meyering@redhat.com>
10760
10761         maint.mk: extract GPG key ID without using a temporary file
10762         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10763         without using a temporary file.  Based on a suggestion from Werner Koch
10764         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10765
10766 2011-11-07  Eric Blake  <eblake@redhat.com>
10767
10768         grantpt: fix typo
10769         * lib/stdlib.in.h (grantpt): Check correct function.
10770
10771         maint.mk: silence new syntax check
10772         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10773
10774 2011-11-06  Bruno Haible  <bruno@clisp.org>
10775
10776         Doc about floating-point and math API.
10777         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10778         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10779
10780 2011-11-06  Bruno Haible  <bruno@clisp.org>
10781
10782         stdalign tests: Skip the test when compiled by Sun C.
10783         * tests/test-stdalign.c (main): Skip the test on Sun C.
10784
10785 2011-11-06  Bruno Haible  <bruno@clisp.org>
10786
10787         ansi-c++-opt: Complete the 2011-06-05 change.
10788         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10789         does not support namespaces, set the variable to "no", not to ":".
10790
10791 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10794
10795 2011-11-06  Bruno Haible  <bruno@clisp.org>
10796
10797         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10798         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10799         (minus_zerol) [HP-UX]: New macro.
10800         (unary_minus) [HP-UX]: New function.
10801         (copysignl) [HP-UX]: Use unary_minus function.
10802
10803 2011-11-06  Bruno Haible  <bruno@clisp.org>
10804
10805         ldexp, ldexpf, ldexpl: Enhance tests.
10806         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10807         and tests/test-ldexpl.c.
10808         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10809         LDEXP, MIN_EXP, MAX_EXP): New macros.
10810         Include test-ldexp.h.
10811         (main): Just call test_function.
10812         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10813         infinity.h, nan.h.
10814         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10815         MAX_EXP): New macros.
10816         Include test-ldexp.h.
10817         (x, y): Remove variables.
10818         (main): Just call test_function.
10819         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10820         infinity.h, nan.h.
10821         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10822         MAX_EXP): New macros.
10823         Include test-ldexp.h.
10824         (x, y): Remove variables.
10825         (main): Just call test_function.
10826         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10827         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10828         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10829         (Depends-on): Add isnand-nolibm, signbit, float.
10830         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10831         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10832         (Depends-on): Add isnanf-nolibm, signbit, float.
10833
10834 2011-11-06  Bruno Haible  <bruno@clisp.org>
10835
10836         math tests: Cosmetics.
10837         * tests/test-math-c++.cc: Reorder declarations.
10838
10839 2011-11-05  Bruno Haible  <bruno@clisp.org>
10840
10841         fma*: Simplify test.
10842         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10843         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10844
10845         Tests for module 'fmal'.
10846         * modules/fmal-tests: New file.
10847         * tests/test-fmal1.c: New file.
10848         * tests/test-fmal2.c: New file.
10849
10850         New module 'fmal'.
10851         * lib/math.in.h (fmal): New declaration.
10852         * lib/fmal.c: New file.
10853         * m4/fmal.m4: New file.
10854         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10856         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10857         REPLACE_FMAL.
10858         * modules/fmal: New file.
10859         * doc/posix-functions/fmal.texi: Mention the new module and the various
10860         bugs.
10861
10862         Tests for module 'fmaf'.
10863         * modules/fmaf-tests: New file.
10864         * tests/test-fmaf1.c: New file.
10865         * tests/test-fmaf2.c: New file.
10866
10867         New module 'fmaf'.
10868         * lib/math.in.h (fmaf): New declaration.
10869         * lib/fmaf.c: New file.
10870         * m4/fmaf.m4: New file.
10871         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10873         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10874         REPLACE_FMAF.
10875         * modules/fmaf: New file.
10876         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10877         bugs.
10878
10879         Tests for module 'fma'.
10880         * modules/fma-tests: New file.
10881         * tests/test-fma1.c: New file.
10882         * tests/test-fma1.h: New file.
10883         * tests/test-fma2.c: New file.
10884         * tests/test-fma2.h: New file.
10885
10886         New module 'fma'.
10887         * lib/math.in.h (fma): New declaration.
10888         * lib/fma.c: New file.
10889         * m4/fma.m4: New file.
10890         * m4/fegetround.m4: New file.
10891         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10893         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10894         REPLACE_FMA.
10895         * modules/fma: New file.
10896         * doc/posix-functions/fma.texi: Mention the new module and the various
10897         bugs.
10898
10899         Extend gl_MATHFUNC.
10900         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10901         Support 'void' as argument type.
10902         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10903
10904 2011-11-05  Jim Meyering  <meyering@redhat.com>
10905
10906         maint.mk: also prohibit inclusion of dirent.h without use
10907         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10908
10909 2011-11-05  Bruno Haible  <bruno@clisp.org>
10910
10911         ldexpl tests: Avoid test failure on MSVC 9.
10912         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10913         value. Needed in order to enforce the conversion from a value greater
10914         than LDBL_MAX to Infinity.
10915
10916 2011-11-05  Bruno Haible  <bruno@clisp.org>
10917
10918         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10919         * modules/at-internal: New file, extracted from modules/openat.
10920         * modules/openat-h: New file.
10921         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10922         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10923         * modules/openat (Description): Add reference to POSIX function.
10924         (Files): Remove lib/openat.h, lib/openat-proc.c.
10925         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10926         intprops, unistd.
10927         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10928         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10929         gl_FCNTL_MODULE_INDICATOR.
10930         (Include): Remove unistd.h, openat.h.
10931         * modules/areadlinkat (Files): Add lib/at-func.c.
10932         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10933         openat-die, openat-h, save-cwd.
10934         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10935         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10936         openat-die, openat-h, save-cwd, unistd.
10937         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10938         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10939         openat-h, save-cwd. Remove fcntl-h, openat.
10940         * modules/fchmodat (Files): Remove lib/openat.h.
10941         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10942         openat, stdbool, unistd.
10943         * modules/fchownat (Files): Remove lib/openat.h.
10944         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10945         openat, stdbool, sys_stat.
10946         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10947         lib/openat-proc.c.
10948         (Depends-on): Add at-internal.
10949         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10950         * modules/fstatat (Files): Remove lib/openat.h.
10951         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10952         stdbool, unistd.
10953         * modules/fts (Depends-on): Add openat-h.
10954         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10955         openat.
10956         * modules/mkdirat (Files): Remove lib/openat.h.
10957         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10958         openat, stdbool, sys_stat.
10959         * modules/mkfifoat (Files): Add lib/at-func.c.
10960         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10961         openat-h, save-cwd. Remove fcntl-h, openat.
10962         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10963         * modules/readlinkat (Files): Add lib/at-func.c.
10964         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10965         openat-h, save-cwd. Remove fcntl-h, openat.
10966         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10967         openat.
10968         * modules/selinux-at (Files): Add lib/at-func.c.
10969         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10970         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10971         * modules/symlinkat (Files): Add lib/at-func.c.
10972         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10973         openat-h, save-cwd. Remove fcntl-h, openat.
10974         * modules/unlinkat (Files): Remove lib/openat.h.
10975         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10976         stdbool.
10977         * modules/utimensat (Files): Add lib/at-func.c.
10978         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10979         openat-die, openat-h, save-cwd.
10980         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10981         * modules/fdutimensat-tests (Depends-on): Add openat.
10982         * modules/fstatat-tests (Depends-on): Add openat-h.
10983         * modules/readlinkat-tests (Depends-on): Add openat.
10984         * modules/symlinkat-tests (Depends-on): Add openat.
10985
10986 2011-11-05  Bruno Haible  <bruno@clisp.org>
10987
10988         openat: Include <stdbool.h>.
10989         * lib/openat.c: Include <stdbool.h>.
10990
10991 2011-11-04  Bruno Haible  <bruno@clisp.org>
10992
10993         fchownat, renameat, unlinkat: Fix dependencies.
10994         * modules/fchownat (Depends-on): Add fstatat.
10995         * modules/renameat (Depends-on): Likewise.
10996         * modules/unlinkat (Depends-on): Likewise.
10997
10998 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10999
11000         openat: remove direct dependency on dirent
11001         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11002         and hasn't been needed ever since fdopendir was split into its own
11003         module on 2009-08-31.
11004         * modules/openat (Depends-on): Remove dirent.
11005
11006 2011-11-04  Bruno Haible  <bruno@clisp.org>
11007
11008         renameat: Optimize code size.
11009         * modules/renameat (configure.ac): Don't compile at-func2.c if
11010         REPLACE_RENAMEAT is 1.
11011
11012 2011-11-04  Bruno Haible  <bruno@clisp.org>
11013
11014         openat tests: Fix file list.
11015         * modules/openat-tests (Files): Add tests/test-open.h.
11016
11017 2011-11-04  Bruno Haible  <bruno@clisp.org>
11018
11019         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11020         * modules/fchmodat (Depends-on): Add openat-die.
11021         * modules/fchownat (Depends-on): Likewise.
11022         * modules/linkat (Depends-on): Likewise.
11023         * modules/renameat (Depends-on): Likewise.
11024         * modules/openat (Depends-on): Add dirent.
11025
11026 2011-11-04  Jim Meyering  <meyering@redhat.com>
11027
11028         at-func*.c: fix comments
11029         * lib/at-func2.c: Correct/improve first-line comment.
11030         * lib/at-func.c: Correct grammar in first-line comment.
11031
11032 2011-11-04  Bruno Haible  <bruno@clisp.org>
11033
11034         New module 'mkdirat', split off from module 'openat'.
11035         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11036         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11037         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11038         * modules/mkdirat: New file, extracted from modules/openat.
11039         * modules/openat (Files): Remove lib/mkdirat.c.
11040         (Depends-on): Remove mkdir.
11041         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11042         (Include): Remove <sys/stat.h>.
11043         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11044         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11045         tests/test-mkdir.h.
11046         (Depends-on): Remove ignore-value.
11047         (Makefile.am): Remove rules for test-mkdirat.
11048         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11049         of module 'openat'.
11050         * NEWS: Mention the change.
11051
11052 2011-11-04  Bruno Haible  <bruno@clisp.org>
11053
11054         closedir: Avoid warning on mingw.
11055         * lib/closedir.c: Include <unistd.h>.
11056
11057 2011-11-04  Bruno Haible  <bruno@clisp.org>
11058
11059         New module 'fstatat', split off from module 'openat'.
11060         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11061         defined.
11062         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11063         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11064         gl_FUNC_FSTATAT.
11065         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11066         * modules/fstatat: New file, extracted from modules/openat.
11067         * modules/openat (Files): Remove lib/fstatat.c.
11068         (Depends-on): Remove lstat.
11069         (configure.ac): Remove AC_LIBOBJ of fstatat.
11070         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11071         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11072         tests/test-lstat.h, tests/test-stat.h.
11073         (Depends-on): Remove getcwd-lgpl.
11074         (Makefile.am): Remove rules for test-fstatat.
11075         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11076         of module 'openat'.
11077         * NEWS: Mention the change.
11078         * modules/getcwd (Depends-on): Add fstatat.
11079         * modules/linkat (Depends-on): Likewise.
11080         * modules/mkfifoat-tests (Depends-on): Likewise.
11081         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11082
11083 2011-11-03  Bruno Haible  <bruno@clisp.org>
11084
11085         New module 'unlinkat', split off from module 'openat'.
11086         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11087         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11088         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11089         * modules/unlinkat: New file, extracted from modules/openat. Correct
11090         the dependency conditions.
11091         * modules/openat (Files): Remove lib/unlinkat.c.
11092         (Depends-on): Remove rmdir, unlink.
11093         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11094         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11095         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11096         tests/test-rmdir.h, tests/test-unlink.h.
11097         (Depends-on): Remove unlinkdir.
11098         (Makefile.am): Remove rules for test-unlinkat.
11099         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11100         of module 'openat'.
11101         * NEWS: Mention the change.
11102         * modules/linkat-tests (Depends-on): Add unlinkat.
11103         * modules/mkfifoat-tests (Depends-on): Likewise.
11104         * modules/readlinkat-tests (Depends-on): Likewise.
11105
11106 2011-11-02  Bruno Haible  <bruno@clisp.org>
11107
11108         New module 'fchmodat', split off from module 'openat'.
11109         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11110         defined.
11111         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11112         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11113         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11114         * modules/fchmodat: New file, extracted from modules/openat.
11115         * modules/openat (Files): Remove lib/fchmodat.c.
11116         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11117         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11118         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11119         (Makefile.am): Remove rules for test-fchmodat.
11120         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11121         of module 'openat'.
11122         * NEWS: Mention the change.
11123
11124 2011-11-02  Jim Meyering  <meyering@redhat.com>
11125
11126         putenv: indent #definition of "environ" to placate cppi
11127         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11128
11129         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11130         Git logs are often treated as immutable, because editing them
11131         changes the SHA1 checksums of all descendants.  Thus, errors in
11132         git logs tend to stay there forever.  However, when we generate
11133         a ChangeLog file -- typically for distribution -- from that git log,
11134         we can actually make corrections in the generated file.  The key
11135         lies in recording in machine-readable/applicable form the desired
11136         corrections.  See --help for description and an example.
11137         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11138         (usage): Describe it; alphabetize option descriptions.
11139         (main): Honor the new option, carefully.
11140
11141 2011-11-01  Jim Meyering  <meyering@redhat.com>
11142
11143         gitlog-to-changelog: avoid an infloop
11144         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11145         that ends up being empty.
11146
11147 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11148
11149         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11150         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11151         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11152         contains (possibly-quoted) backslashes.  This should avoid
11153         all-too-common shell bugs if COMPLICATED contains backslashes in
11154         the "wrong" places.  Reported by David Evans in
11155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11156         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11157         because we want ASCII ranges.  Is there some reason we don't use
11158         the C locale everywhere in this script?
11159         (func_module, top level): Avoid unwanted pathname expansion when
11160         $repo_url_prefix or $repo_url_suffix_repl contain shell
11161         metacharacters like '?' and '*'.
11162
11163 2011-11-01  Bruno Haible  <bruno@clisp.org>
11164
11165         fchownat: Improve description.
11166         * modules/fchownat (Description): Add link to function.
11167
11168 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11169
11170         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11171         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11173         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11174
11175 2011-11-01  Bruno Haible  <bruno@clisp.org>
11176
11177         alignof: Avoid collision with stdalign module.
11178         * lib/alignof.h (alignof): Remove macro.
11179         * NEWS: Mention the change.
11180         Reported by Paul Eggert.
11181
11182 2011-11-01  Bruno Haible  <bruno@clisp.org>
11183
11184         New module 'fchownat', split off from module 'openat'.
11185         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11186         defined.
11187         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11188         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11189         invoke gl_FUNC_FCHOWNAT.
11190         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11191         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11192         * modules/fchownat: New file, extracted from modules/openat.
11193         * modules/openat (Files): Remove lib/fchownat.c.
11194         (Depends-on): Remove lchown.
11195         (configure.ac): Remove AC_LIBOBJ of fchownat.
11196         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11197         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11198         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11199         (Depends-on): Remove mgetgroups, usleep, stat-time.
11200         (configure.ac): Remove test for getegid.
11201         (Makefile.am): Remove rules for test-fchownat.
11202         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11203         of module 'openat'.
11204         * NEWS: Mention the change.
11205
11206 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11207
11208         stdalign: port better to MSVC and to Sun C 5.11
11209         This fixes some of the problems reported by Bruno Haible in
11210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11211         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11212         shortcomings of MSVC and of Sun C 5.11.
11213         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11214         around __declspec arg.
11215         * modules/stdalign-tests (Files): Add tests/macros.h.
11216         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11217         Include macros.h, for ASSERT.
11218         (DECLARE_ALIGNED): Remove.
11219         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11220         to catch bug), and to 1 if not (simplifies the rest of the code).
11221         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11222         (CHECK_AUTO): Remove.
11223         (CHECK_ALIGNED): Check only the alignment of the static vars,
11224         since auto var alignment isn't supported by Sun C 5.11.
11225         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11226         ASSERT failures are easier to diagnose.
11227
11228 2011-10-31  Bruno Haible  <bruno@clisp.org>
11229
11230         doc about some IRIX 5.3 problems.
11231         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11232         on IRIX 5.3.
11233         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11234         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11235         5.3.
11236         * doc/posix-functions/grantpt.texi: Likewise.
11237         * doc/posix-functions/unlockpt.texi: Likewise.
11238         * doc/posix-functions/lgamma.texi: Likewise.
11239         * doc/posix-functions/nextafter.texi: Likewise.
11240         * doc/posix-functions/remainder.texi: Likewise.
11241         * doc/posix-functions/select.texi: Mention misplaced declaration on
11242         IRIX 5.3.
11243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11244
11245 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11246
11247         gitlog-to-changelog: fix git-log invocation.
11248         git-log mishandles date strings before 1970-01-01 UTC, and there is
11249         no use to specify --since=1970-01-01 by default anyway.
11250         * build-aux/gitlog-to-changelog: By default, when no --since option
11251         was given, do not specify explicit --since option to git-log.
11252
11253 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11254
11255         gitlog-to-changelog: new option --append-dot.
11256         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11257         first non-blank line of each commit message terminated with a dot.
11258
11259 2011-10-30  Bruno Haible  <bruno@clisp.org>
11260
11261         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11262         * lib/ffsl.h: Include <config.h>.
11263         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11264
11265 2011-10-30  Jim Meyering  <meyering@redhat.com>
11266
11267         GNUmakefile: reenable "make syntax-check" for most projects
11268         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11269         build-aux variable", "syntax-check" would do nothing but succeed with
11270         the "No version control files detected..." diagnostic (unless you
11271         happened to override _build-aux via cfg.mk).
11272         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11273         to precede inclusion of maint.mk.  Otherwise, these variables would
11274         be used undefined in any project that does not override the default.
11275
11276 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11277
11278         gitlog-to-changelog: treat a message with only blank lines as empty.
11279         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11280         trailing blank lines before the code that issues a warning about an
11281         empty commit message.
11282
11283 2011-10-30  Jim Meyering  <meyering@redhat.com>
11284
11285         test-parse-datetime.c: avoid new DST-related false positive test failure
11286         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11287         based on the time/date we'll convert, not the current time.
11288         Otherwise, the moment we cross a DST boundary like today's in
11289         Europe, (CEST to CET), that offset ends up being one hour off.
11290
11291 2011-10-27  Bruno Haible  <bruno@clisp.org>
11292
11293         fstat: Tweak documentation.
11294         * modules/fstat (Description): More precise description.
11295
11296 2011-10-27  Bruno Haible  <bruno@clisp.org>
11297
11298         Update documentation regarding 'largefile' module.
11299         * doc/posix-functions/fstat.texi: Tweak wording.
11300         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11301         problems with huge directories and/or small ino_t types.
11302         * doc/posix-functions/readdir.texi: Likewise.
11303         * doc/posix-functions/rewinddir.texi: Likewise.
11304
11305 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11306
11307         maint.mk: don't maintain a second build-aux variable.
11308         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11309         depends on GNUmakefile, which already maintains a cfg.mk
11310         overridable $(_build-aux) for projects with a non-standard
11311         build-aux directory location, although without the $(srcdir)
11312         prefix.  Use that variable consistently instead of introducing a
11313         second one.  Adjust all call sites.
11314
11315 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11316
11317         Add stdalign module and use it in other modules.
11318         This is based on a previous proposal by Bruno Haible
11319         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11320
11321         stdalign: new module
11322         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11323         * modules/stdalign: New files.
11324         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11325         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11326
11327         stdalign-tests: new module
11328         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11329
11330         argp: use stdalign
11331         * lib/argp-parse.c: Include <stdalign.h>.
11332         (alignof): Remove.
11333         * modules/argp (Depends-on): Add stdalign.
11334
11335         crypto libraries: use stdalign
11336         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11337         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11338         Do not include <stdlib.h> twice, in md4.c.
11339         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11340         because we are accessing a pointer's bit-pattern, not a size.
11341         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11342         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11343         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11344         * modules/crypto/sha512: Likewise.
11345
11346         sys_socket: use stdalign, not alignof
11347         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11348         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11349
11350 2011-10-27  Bruno Haible  <bruno@clisp.org>
11351
11352         raise test: Avoid a test failure on Linux/MIPS.
11353         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11354         because 99 is a valid signal on Linux/MIPS.
11355
11356 2011-10-27  Bruno Haible  <bruno@clisp.org>
11357
11358         nonblocking tests: Fix test failure on Linux/MIPS.
11359         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11360         Set to 270000.
11361
11362 2011-10-27  Bruno Haible  <bruno@clisp.org>
11363
11364         utimensat: Work around problem on Linux/hppa.
11365         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11366         values.
11367         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11368
11369 2011-10-25  Jim Meyering  <meyering@redhat.com>
11370
11371         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11372         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11373         after symbols like NULL, size_t, etc.
11374         Reported by Alfred M. Szmidt.
11375
11376         maint.mk: exempt ENODATA from a syntax-check rule
11377         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11378         from the sc_prohibit_always-defined_macros syntax-check rule.
11379         Add a comment.  See this for more details:
11380         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11381
11382 2011-10-23  Jim Meyering  <meyering@redhat.com>
11383
11384         fts: close parent dir FD before returning from post-traversal fts_read
11385         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11386         unlink A, even though an FD open on A remained.  This is suboptimal
11387         (holding a file descriptor open longer than needed), but otherwise not
11388         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11389         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11390         that represents a real problem: it causes the removal of A to fail
11391         with e.g., "rm: cannot remove `A': Device or resource busy"
11392
11393         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11394         directory file descriptors.  After completing the final, FTS_DP,
11395         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11396         cache, but then proceeded to add a new FD to it via the subsequent
11397         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11398         final file descriptor would be closed only via fts_close's call to
11399         fd_ring_clear.  Now, it is usually closed earlier, via the final
11400         FTS_DP-returning fts_read call.
11401         * lib/fts.c (restore_initial_cwd): New function, converted from
11402         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11403         Update callers.
11404         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11405         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11406
11407 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11408             Bruno Haible  <bruno@clisp.org>
11409             Jim Meyering  <jim@meyering.net>
11410
11411         readme-release: improve safety of release prep instructions.
11412         * README-release: Don't git pull all branches when only master
11413         is needed for the release process.
11414         Run make maintainer-clean before changing trees and merging.
11415         Don't try to run ./configure right after git pull in case files
11416         that influence the bootstrap process have changed, move the
11417         ./configure step to after running ./bootstrap.
11418         Don't bootstrap "one last time"... it's the first time!
11419
11420 2011-10-22  Bruno Haible  <bruno@clisp.org>
11421
11422         errno, strerror-override: Support for MSVC 10.
11423         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11424         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11425         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11426         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11427         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11428         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11429         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11430         Assign values compatible with MSVC 10.
11431         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11432         New macros.
11433         (GNULIB_defined_EWINSOCK): New macro.
11434         * lib/strerror-override.c (strerror_override): Update accordingly.
11435         * lib/strerror-override.h: Likewise.
11436         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11437         longer equal to the corresponding errno value.
11438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11439
11440 2011-10-22  Bruno Haible  <bruno@clisp.org>
11441
11442         perror: Recognize when test program crashes.
11443         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11444         strerror, set gl_cv_func_perror_works to no.
11445         Reported by Daniel Richard G. <skunk@iskunk.org>.
11446
11447         perror: Fix indentation.
11448         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11449
11450 2011-10-22  Bruno Haible  <bruno@clisp.org>
11451
11452         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11453         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11454         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11455         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11456         functions, not as a macro.
11457         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11458         macros.
11459         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11460         absence of macro.
11461         Suggested by Eric Blake.
11462         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11463
11464 2011-10-21  Bruno Haible  <bruno@clisp.org>
11465
11466         relocatable-prog-wrapper: Don't leave object files behind.
11467         * build-aux/install-reloc: Re-synchronize list of .o files to be
11468         removed with list of compilation units.
11469
11470 2011-10-20  Bruno Haible  <bruno@clisp.org>
11471
11472         openpty, posix_openpt: Remove code duplication.
11473         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11474         * lib/openpty.c: Include <stdlib.h>.
11475         (openpty): Use posix_openpt on all platforms except IRIX.
11476         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11477
11478 2011-10-20  Bruno Haible  <bruno@clisp.org>
11479
11480         unlockpt: Detect invalid argument.
11481         * lib/unlockpt.c: Include <fcntl.h>.
11482         (unlockpt): Check whether fd is valid, using fcntl().
11483         * modules/unlockpt (Depends-on): Add fcntl-h.
11484
11485 2011-10-20  Bruno Haible  <bruno@clisp.org>
11486
11487         openpty: Avoid compilation error on AIX 6.1.
11488         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11489
11490 2011-10-20  Bruno Haible  <bruno@clisp.org>
11491
11492         posix_openpt: Support for OpenBSD.
11493         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11494         (posix_openpt) [OpenBSD]: New code.
11495         * lib/grantpt.c: Include <fcntl.h>.
11496         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11497         * modules/grantpt (Depends-on): Add fcntl-h.
11498
11499 2011-10-20  Bruno Haible  <bruno@clisp.org>
11500
11501         posix_openpt test: Coding style.
11502         * tests/test-posix_openpt.c: Use GNU coding style.
11503
11504 2011-10-20  Bruno Haible  <bruno@clisp.org>
11505
11506         grantpt: Support --avoid=pt_chown.
11507         * modules/grantpt (Files): Add lib/pty-private.h.
11508
11509 2011-10-20  Bruno Haible  <bruno@clisp.org>
11510
11511         posix_openpt: Fix autoconf macro.
11512         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11513         unneeded check for _getpty.
11514
11515 2011-10-20  Bruno Haible  <bruno@clisp.org>
11516
11517         openpty: Update comments.
11518         * lib/openpty.c: Add comments about Minix.
11519
11520 2011-10-19  Eric Blake  <eblake@redhat.com>
11521
11522         openpty: relax license
11523         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11524
11525         pt_chown: use configmake to simplify build
11526         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11527
11528         ptsname and others: relax license
11529         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11530         * modules/unlockpt (License): Likewise.
11531         * modules/pt_chown (License): Likewise.
11532         * modules/ptsname (License): Likewise.
11533         * modules/ttyname_r (License): Likewise.
11534
11535 2011-10-19  Jim Meyering  <meyering@redhat.com>
11536
11537         posix_openpt: remove spurious #endif
11538         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11539
11540 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11541
11542         maint.mk: Respect $(build_aux) in web-manual rule.
11543         * top/maint.mk (web-manual): Find gen-announce script in user's
11544         $(build_aux) directory instead of hard-coding 'build-aux'.
11545
11546 2011-10-19  Bruno Haible  <bruno@clisp.org>
11547
11548         posix_openpt: Fix compilation error.
11549         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11550         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11551         Mention the openpty module as an alternative.
11552
11553 2011-10-19  Bruno Haible  <bruno@clisp.org>
11554
11555         Support for old NeXTstep 3.3 frexp().
11556         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11557         execution time of the test to 5 seconds.
11558         Reported by Daniel Richard G. <skunk@iskunk.org>.
11559
11560 2011-10-19  Bruno Haible  <bruno@clisp.org>
11561
11562         Support for old NeXTstep 3.3 sed.
11563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11564         part, use /.../, not \|...|. Escape periods in the header file name.
11565         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11566         Reported by Daniel Richard G. <skunk@iskunk.org>.
11567
11568 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11569
11570         Support for old NeXTstep 3.3 gcc.
11571         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11572         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11573         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11574         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11575         * lib/regex.h (_Restrict_arr_): Likewise.
11576         * lib/regex_internal.h (re_token_t): Likewise.
11577         * lib/regexec.c (check_node_accept_bytes): Likewise.
11578         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11579
11580 2011-10-18  Eric Blake  <eblake@redhat.com>
11581
11582         posix_openpt: new module
11583         * modules/posix_openpt: New module.
11584         * m4/posix_openpt.m4: New file.
11585         * lib/posix_openpt.c: Likewise.
11586         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11587         (gl_STDLIB_H_DEFAULTS): Set defaults.
11588         * modules/stdlib (Makefile.am): Substitute macros.
11589         * lib/stdlib.in.h (posix_openpt): Declare.
11590         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11591         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11592         * modules/posix_openpt-tests: New test module.
11593         * tests/test-posix_openpt.c: New test.
11594
11595 2011-10-15  Bruno Haible  <bruno@clisp.org>
11596
11597         xstrtoll: Fix compilation failure.
11598         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11599         from lib/strtol.c.
11600         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11601         some platforms.
11602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11603
11604 2011-10-15  Bruno Haible  <bruno@clisp.org>
11605
11606         vasnprintf: Optimize bit search operation.
11607         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11609         gl_DOUBLE_EXPONENT_LOCATION.
11610         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11611         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11612         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11613         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11614         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11615         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11616         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11617         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11618         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11619
11620 2011-10-15  Bruno Haible  <bruno@clisp.org>
11621
11622         vasnprintf: Fix comments.
11623         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11624
11625 2011-10-14  Bruno Haible  <bruno@clisp.org>
11626
11627         Tests for module 'integer_length_ll'.
11628         * modules/integer_length_ll-tests: New file.
11629         * tests/test-integer_length_ll.c: New file.
11630
11631         New module 'integer_length_ll'.
11632         * lib/integer_length_ll.c: New file.
11633         * modules/integer_length_ll: New file.
11634
11635 2011-10-14  Bruno Haible  <bruno@clisp.org>
11636
11637         Tests for module 'integer_length_l'.
11638         * modules/integer_length_l-tests: New file.
11639         * tests/test-integer_length_l.c: New file.
11640
11641         New module 'integer_length_l'.
11642         * lib/integer_length_l.c: New file.
11643         * modules/integer_length_l: New file.
11644
11645 2011-10-14  Bruno Haible  <bruno@clisp.org>
11646
11647         Tests for module 'integer_length'.
11648         * modules/integer_length-tests: New file.
11649         * tests/test-integer_length.c: New file.
11650
11651         New module 'integer_length'.
11652         * lib/integer_length.h: New file.
11653         * lib/integer_length.c: New file.
11654         * modules/integer_length: New file.
11655
11656 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11657
11658         popen: Fix dependency conditions.
11659         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11660
11661 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11662
11663         perror: Fix autoconf test.
11664         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11665         <stdlib.h> and <string.h>.
11666
11667 2011-10-14  Bruno Haible  <bruno@clisp.org>
11668
11669         ffsl: Optimize on 64-bit platforms.
11670         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11671         unrolling.
11672
11673 2011-10-13  Bruno Haible  <bruno@clisp.org>
11674
11675         ffsl: Optimize on 32-bit platforms.
11676         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11677         use ffs() without a loop.
11678
11679         ffsl, ffsll: Optimize for GCC.
11680         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11681         * lib/ffsl.c (GCC_BUILTIN): New macro.
11682         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11683
11684 2011-10-13  Bruno Haible  <bruno@clisp.org>
11685
11686         ffs, bcopy, memset: Support symbol renaming via config.h.
11687         * lib/ffs.c: Include <config.h>.
11688         * lib/bcopy.c: Likewise.
11689         * lib/memset.c: Likewise.
11690
11691 2011-10-10  Bruno Haible  <bruno@clisp.org>
11692
11693         atanl: Simplify for platforms where 'long double' == 'double'.
11694         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11695         alternative implementation.
11696         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11697         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11698         * modules/atanl (Depends-on): Add atan. Update conditions.
11699
11700 2011-10-10  Bruno Haible  <bruno@clisp.org>
11701
11702         acosl: Simplify for platforms where 'long double' == 'double'.
11703         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11704         alternative implementation.
11705         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11706         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11707         * modules/acosl (Depends-on): Add acos. Update conditions.
11708
11709 2011-10-10  Bruno Haible  <bruno@clisp.org>
11710
11711         asinl: Simplify for platforms where 'long double' == 'double'.
11712         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11713         alternative implementation.
11714         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11715         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11716         * modules/asinl (Depends-on): Add asin. Update conditions.
11717
11718 2011-10-10  Bruno Haible  <bruno@clisp.org>
11719
11720         tanl: Simplify for platforms where 'long double' == 'double'.
11721         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11722         implementation.
11723         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11724         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11725         * modules/tanl (Depends-on): Add tan. Update conditions.
11726         (configure.ac): Don't compile trigl.c if
11727         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11728
11729 2011-10-10  Bruno Haible  <bruno@clisp.org>
11730
11731         cosl: Simplify for platforms where 'long double' == 'double'.
11732         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11733         implementation.
11734         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11735         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11736         * modules/cosl (Depends-on): Add cos. Update conditions.
11737         (configure.ac): Don't compile sincosl.c and trigl.c if
11738         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11739
11740 2011-10-10  Bruno Haible  <bruno@clisp.org>
11741
11742         sinl: Simplify for platforms where 'long double' == 'double'.
11743         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11744         implementation.
11745         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11746         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11747         * modules/sinl (Depends-on): Add sin. Update conditions.
11748         (configure.ac): Don't compile sincosl.c and trigl.c if
11749         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11750
11751 2011-10-10  Bruno Haible  <bruno@clisp.org>
11752
11753         logl: Simplify for platforms where 'long double' == 'double'.
11754         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11755         implementation.
11756         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11757         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11758         * modules/logl (Depends-on): Add log. Update conditions.
11759
11760 2011-10-10  Bruno Haible  <bruno@clisp.org>
11761
11762         expl: Simplify for platforms where 'long double' == 'double'.
11763         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11764         implementation.
11765         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11766         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11767         * modules/expl (Depends-on): Add exp. Update conditions.
11768
11769 2011-10-10  Bruno Haible  <bruno@clisp.org>
11770
11771         sqrtl: Simplify for platforms where 'long double' == 'double'.
11772         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11773         alternative implementation.
11774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11775         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11776         * modules/sqrtl (Depends-on): Update conditions.
11777
11778 2011-10-10  Bruno Haible  <bruno@clisp.org>
11779
11780         ldexpl: Simplify for platforms where 'long double' == 'double'.
11781         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11782         alternative implementation.
11783         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11784         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11785         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11786
11787 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11788
11789         ffsll: set correct witness
11790         * modules/ffsll (configure.ac): Fix typo.
11791
11792 2011-10-10  Bruno Haible  <bruno@clisp.org>
11793
11794         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11795         * lib/printf-frexpl.c: Include <config.h>.
11796         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11797         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11798         second time.
11799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11800         gl_LONG_DOUBLE_VS_DOUBLE.
11801         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11802         conditions.
11803
11804 2011-10-10  Bruno Haible  <bruno@clisp.org>
11805
11806         frexpl: Simplify for platforms where 'long double' == 'double'.
11807         * lib/frexpl.c: Include <config.h>.
11808         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11809         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11810         time.
11811         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11812         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11813         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11814         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11815         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11816         conditions.
11817
11818 2011-10-10  Jim Meyering  <meyering@redhat.com>
11819
11820         test-renameat: don't leave behind a temporary file
11821         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11822           ERROR: files left in build directory after distclean:
11823           ./gltests/test-renameat.too
11824           make[1]: *** [distcleancheck] Error 1
11825         Reported by Tom G. Christensen.
11826
11827 2011-10-09  Bruno Haible  <bruno@clisp.org>
11828
11829         rint: Determine RINT_LIBM correctly on AIX 7.
11830         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11831         directly, not only through a function pointer. Also accept an optional
11832         4th argument with extra code.
11833         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11834         rintf() call by gcc when optimizing.
11835
11836         mathfunc.m4: Refactor.
11837         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11838         m4 variable.
11839
11840 2011-10-09  Bruno Haible  <bruno@clisp.org>
11841
11842         rintl: Simplify for platforms where 'long double' == 'double'.
11843         * lib/rintl.c: Include <config.h>.
11844         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11845         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11846         time.
11847         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11848         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11849         * modules/rintl (Depends-on): Add rint. Update conditions.
11850
11851 2011-10-09  Bruno Haible  <bruno@clisp.org>
11852
11853         roundl: Simplify for platforms where 'long double' == 'double'.
11854         * lib/roundl.c: Include <config.h>.
11855         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11856         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11857         time.
11858         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11859         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11860         * modules/roundl (Depends-on): Add round. Update conditions.
11861
11862 2011-10-09  Bruno Haible  <bruno@clisp.org>
11863
11864         truncl: Simplify for platforms where 'long double' == 'double'.
11865         * lib/truncl.c: Include <config.h>.
11866         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11867         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11868         time.
11869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11870         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11871         * modules/truncl (Depends-on): Add trunc. Update conditions.
11872
11873 2011-10-09  Bruno Haible  <bruno@clisp.org>
11874
11875         ceill: Simplify for platforms where 'long double' == 'double'.
11876         * lib/ceill.c: Include <config.h>.
11877         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11878         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11879         time.
11880         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11881         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11882         * modules/ceill (Depends-on): Add ceil. Update conditions.
11883
11884 2011-10-09  Bruno Haible  <bruno@clisp.org>
11885
11886         floorl: Simplify for platforms where 'long double' == 'double'.
11887         * lib/floorl.c: Include <config.h>.
11888         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11889         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11890         time.
11891         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11892         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11893         * modules/floorl (Depends-on): Add floor. Update conditions.
11894
11895 2011-10-09  Bruno Haible  <bruno@clisp.org>
11896
11897         rint: Fix ordering constraints.
11898         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11899         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11900         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11901
11902 2011-10-09  Bruno Haible  <bruno@clisp.org>
11903
11904         copysignl: Simplify for platforms where 'long double' == 'double'.
11905         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11906         alternative.
11907         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11908         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11909         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11910
11911 2011-10-09  Bruno Haible  <bruno@clisp.org>
11912
11913         Tests for module 'rintl'.
11914         * modules/rintl-tests: New file.
11915         * tests/test-rintl.c: New file.
11916
11917         New module 'rintl'.
11918         * lib/math.in.h (rintl): New declaration.
11919         * lib/rintl.c: New file.
11920         * m4/rintl.m4: New file.
11921         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11923         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11924         * modules/rintl: New file.
11925         * tests/test-math-c++.cc: Check the declaration of rintl.
11926         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11927         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11928         * doc/posix-functions/rintl.texi: Mention the new module.
11929
11930 2011-10-09  Bruno Haible  <bruno@clisp.org>
11931
11932         Tests for module 'rintf'.
11933         * modules/rintf-tests: New file.
11934         * tests/test-rintf.c: New file.
11935
11936         New module 'rintf'.
11937         * lib/math.in.h (rintf): New declaration.
11938         * lib/rintf.c: New file.
11939         * m4/rintf.m4: New file.
11940         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11942         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11943         * modules/rintf: New file.
11944         * tests/test-math-c++.cc: Check the declaration of rintf.
11945         * doc/posix-functions/rintf.texi: Mention the new module.
11946
11947 2011-10-09  Bruno Haible  <bruno@clisp.org>
11948
11949         rint: Support for MSVC.
11950         * lib/math.in.h (rint): New declaration.
11951         * lib/rint.c: New file.
11952         * m4/rint.m4: New file.
11953         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11955         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11956         * modules/rint (Description): Fix.
11957         (Files): Add lib/rint.c, m4/rint.m4.
11958         (Depends-on): Add math.
11959         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11960         gl_MATH_MODULE_INDICATOR.
11961         * tests/test-math-c++.cc: Check the declaration of rint.
11962         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11963         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11964         * doc/posix-functions/rint.texi: Mention the replacement provided by
11965         the module.
11966
11967         rint tests: More tests.
11968         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11969         minus-zero.h, infinity.h, nan.h.
11970         (main): Skip the test if the current rounding mode is not standard. Add
11971         tests for negative numbers, minus zero, infinity, NaN.
11972         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11973         tests/nan.h.
11974         (Depends-on): Add isnand-nolibm.
11975
11976 2011-10-09  Bruno Haible  <bruno@clisp.org>
11977
11978         Tests for module 'copysignl'.
11979         * modules/copysignl-tests: New file.
11980         * tests/test-copysignl.c: New file.
11981
11982         New module 'copysignl'.
11983         * lib/math.in.h (copysignl): New declaration.
11984         * lib/copysignl.c: New file.
11985         * m4/copysignl.m4: New file.
11986         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11988         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11989         HAVE_COPYSIGNL.
11990         * modules/copysignl: New file.
11991         * tests/test-math-c++.cc: Check the declaration of copysignl.
11992         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11993         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11994         * doc/posix-functions/copysignl.texi: Mention the new module.
11995
11996 2011-10-09  Bruno Haible  <bruno@clisp.org>
11997
11998         Tests for module 'copysignf'.
11999         * modules/copysignf-tests: New file.
12000         * tests/test-copysignf.c: New file.
12001
12002         New module 'copysignf'.
12003         * lib/math.in.h (copysignf): New declaration.
12004         * lib/copysignf.c: New file.
12005         * m4/copysignf.m4: New file.
12006         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12008         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12009         HAVE_COPYSIGNF.
12010         * modules/copysignf: New file.
12011         * tests/test-math-c++.cc: Check the declaration of copysignf.
12012         * doc/posix-functions/copysignf.texi: Mention the new module.
12013
12014 2011-10-09  Bruno Haible  <bruno@clisp.org>
12015
12016         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12018         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12019         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12020         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12021         gl_SIGNAL_H_DEFAULTS.
12022
12023 2011-10-09  Bruno Haible  <bruno@clisp.org>
12024
12025         poll: Make macro safer.
12026         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12027         ac_cv_header_poll_h is not set.
12028
12029 2011-10-09  Bruno Haible  <bruno@clisp.org>
12030
12031         copysign: Provide replacement.
12032         * lib/math.in.h (copysign): New declaration.
12033         * lib/copysign.c: New file.
12034         * m4/copysign.m4: New file.
12035         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12037         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12038         HAVE_COPYSIGN.
12039         * modules/copysign (Description): Clarify.
12040         (Files): Add lib/copysign.c, m4/copysign.m4.
12041         (Depends-on): Add math, signbit.
12042         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12043         gl_MATH_MODULE_INDICATOR.
12044         * tests/test-math-c++.cc: Check the declaration of copysign.
12045         * doc/posix-functions/copysign.texi: Mention the effects of the module
12046         on Minix and MSVC.
12047
12048 2011-10-09  Bruno Haible  <bruno@clisp.org>
12049
12050         isinf: Ensure macro on AIX 5.1.
12051         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12052         macro.
12053         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12054
12055 2011-10-09  Bruno Haible  <bruno@clisp.org>
12056
12057         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12058         * modules/snprintf-posix-tests (configure.ac): Require
12059         gl_LONG_DOUBLE_VS_DOUBLE.
12060         * modules/sprintf-posix-tests (configure.ac): Likewise.
12061         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12062         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12063         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12064         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12065         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12066         tests on platforms where 'long double' is the same as 'double'.
12067         * tests/test-sprintf-posix.h (test_function): Likewise.
12068         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12069         * tests/test-vasprintf-posix.c (test_function): Likewise.
12070
12071         *printf: Fix for platforms where 'long double' == 'double'.
12072         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12073         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12074         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12075         * modules/fprintf-posix (Files): Likewise.
12076         * modules/obstack-printf-posix (Files): Likewise.
12077         * modules/snprintf-posix (Files): Likewise.
12078         * modules/sprintf-posix (Files): Likewise.
12079         * modules/vasnprintf (Files): Likewise.
12080         * modules/vasnprintf-posix (Files): Likewise.
12081         * modules/vasprintf-posix (Files): Likewise.
12082         * modules/vdprintf-posix (Files): Likewise.
12083         * modules/vfprintf-posix (Files): Likewise.
12084         * modules/vsnprintf-posix (Files): Likewise.
12085         * modules/vsprintf-posix (Files): Likewise.
12086         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12087         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12088         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12089         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12090         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12091         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12092         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12093
12094         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12095         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12096         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12097         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12098         'long double'.
12099         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12100
12101         isinf: Fix for platforms where 'long double' == 'double'.
12102         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12103         Don't blindly assume 80-bit 'long double'.
12104
12105         isfinite: Fix for platforms where 'long double' == 'double'.
12106         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12107         Don't blindly assume 80-bit 'long double'.
12108
12109         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12110         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12111         * modules/isfinite-tests (configure.ac): Require
12112         gl_LONG_DOUBLE_VS_DOUBLE.
12113         * modules/isinf-tests (configure.ac): Likewise.
12114         * modules/isnan-tests (configure.ac): Likewise.
12115         * modules/isnanl-tests (configure.ac): Likewise.
12116         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12117         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12118         tests on platforms where 'long double' is the same as 'double'.
12119         * tests/test-isinf.c (test_isinfl): Likewise.
12120         * tests/test-isnan.c (test_long_double): Likewise.
12121         * tests/test-isnanl.h (main): Likewise.
12122
12123 2011-10-08  Bruno Haible  <bruno@clisp.org>
12124
12125         Tests for module 'tanhf'.
12126         * modules/tanhf-tests: New file.
12127         * tests/test-tanhf.c: New file.
12128
12129         New module 'tanhf'.
12130         * lib/math.in.h (tanhf): New declaration.
12131         * lib/tanhf.c: New file.
12132         * m4/tanhf.m4: New file.
12133         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12135         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12136         * modules/tanhf: New file.
12137         * tests/test-math-c++.cc: Check the declaration of tanhf.
12138         * doc/posix-functions/tanhf.texi: Mention the new module.
12139
12140         tanh: Use a .m4 file.
12141         * m4/tanh.m4: New file.
12142         * modules/tanh (Files): Add it.
12143         (configure.ac): Just invoke gl_FUNC_TANH.
12144
12145 2011-10-08  Bruno Haible  <bruno@clisp.org>
12146
12147         Tests for module 'coshf'.
12148         * modules/coshf-tests: New file.
12149         * tests/test-coshf.c: New file.
12150
12151         New module 'coshf'.
12152         * lib/math.in.h (coshf): New declaration.
12153         * lib/coshf.c: New file.
12154         * m4/coshf.m4: New file.
12155         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12157         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12158         * modules/coshf: New file.
12159         * tests/test-math-c++.cc: Check the declaration of coshf.
12160         * doc/posix-functions/coshf.texi: Mention the new module.
12161
12162         cosh: Use a .m4 file.
12163         * m4/cosh.m4: New file.
12164         * modules/cosh (Files): Add it.
12165         (configure.ac): Just invoke gl_FUNC_COSH.
12166
12167 2011-10-08  Bruno Haible  <bruno@clisp.org>
12168
12169         Tests for module 'sinhf'.
12170         * modules/sinhf-tests: New file.
12171         * tests/test-sinhf.c: New file.
12172
12173         New module 'sinhf'.
12174         * lib/math.in.h (sinhf): New declaration.
12175         * lib/sinhf.c: New file.
12176         * m4/sinhf.m4: New file.
12177         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12179         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12180         * modules/sinhf: New file.
12181         * tests/test-math-c++.cc: Check the declaration of sinhf.
12182         * doc/posix-functions/sinhf.texi: Mention the new module.
12183
12184         sinh: Use a .m4 file.
12185         * m4/sinh.m4: New file.
12186         * modules/sinh (Files): Add it.
12187         (configure.ac): Just invoke gl_FUNC_SINH.
12188
12189 2011-10-08  Bruno Haible  <bruno@clisp.org>
12190
12191         Tests for module 'atan2f'.
12192         * modules/atan2f-tests: New file.
12193         * tests/test-atan2f.c: New file.
12194
12195         New module 'atan2f'.
12196         * lib/math.in.h (atan2f): New declaration.
12197         * lib/atan2f.c: New file.
12198         * m4/atan2f.m4: New file.
12199         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12201         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12202         * modules/atan2f: New file.
12203         * tests/test-math-c++.cc: Check the declaration of atan2f.
12204         * doc/posix-functions/atan2f.texi: Mention the new module.
12205
12206         atan2: Use a .m4 file.
12207         * m4/atan2.m4: New file.
12208         * modules/atan2 (Files): Add it.
12209         (configure.ac): Just invoke gl_FUNC_ATAN2.
12210
12211 2011-10-08  Bruno Haible  <bruno@clisp.org>
12212
12213         Tests for module 'atanf'.
12214         * modules/atanf-tests: New file.
12215         * tests/test-atanf.c: New file.
12216
12217         New module 'atanf'.
12218         * lib/math.in.h (atanf): New declaration.
12219         * lib/atanf.c: New file.
12220         * m4/atanf.m4: New file.
12221         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12223         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12224         * modules/atanf: New file.
12225         * tests/test-math-c++.cc: Check the declaration of atanf.
12226         * doc/posix-functions/atanf.texi: Mention the new module.
12227
12228         atan: Use a .m4 file.
12229         * m4/atan.m4: New file.
12230         * modules/atan (Files): Add it.
12231         (configure.ac): Just invoke gl_FUNC_ATAN.
12232
12233 2011-10-08  Bruno Haible  <bruno@clisp.org>
12234
12235         Tests for module 'acosf'.
12236         * modules/acosf-tests: New file.
12237         * tests/test-acosf.c: New file.
12238
12239         New module 'acosf'.
12240         * lib/math.in.h (acosf): New declaration.
12241         * lib/acosf.c: New file.
12242         * m4/acosf.m4: New file.
12243         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12245         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12246         * modules/acosf: New file.
12247         * tests/test-math-c++.cc: Check the declaration of acosf.
12248         * doc/posix-functions/acosf.texi: Mention the new module.
12249
12250         acos: Use a .m4 file.
12251         * m4/acos.m4: New file.
12252         * modules/acos (Files): Add it.
12253         (configure.ac): Just invoke gl_FUNC_ACOS.
12254
12255 2011-10-08  Bruno Haible  <bruno@clisp.org>
12256
12257         Tests for module 'asinf'.
12258         * modules/asinf-tests: New file.
12259         * tests/test-asinf.c: New file.
12260
12261         New module 'asinf'.
12262         * lib/math.in.h (asinf): New declaration.
12263         * lib/asinf.c: New file.
12264         * m4/asinf.m4: New file.
12265         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12267         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12268         * modules/asinf: New file.
12269         * tests/test-math-c++.cc: Check the declaration of asinf.
12270         * doc/posix-functions/asinf.texi: Mention the new module.
12271
12272         asin: Use a .m4 file.
12273         * m4/asin.m4: New file.
12274         * modules/asin (Files): Add it.
12275         (configure.ac): Just invoke gl_FUNC_ASIN.
12276
12277 2011-10-08  Bruno Haible  <bruno@clisp.org>
12278
12279         Tests for module 'tanf'.
12280         * modules/tanf-tests: New file.
12281         * tests/test-tanf.c: New file.
12282
12283         New module 'tanf'.
12284         * lib/math.in.h (tanf): New declaration.
12285         * lib/tanf.c: New file.
12286         * m4/tanf.m4: New file.
12287         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12289         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12290         * modules/tanf: New file.
12291         * tests/test-math-c++.cc: Check the declaration of tanf.
12292         * doc/posix-functions/tanf.texi: Mention the new module.
12293
12294         tan: Use a .m4 file.
12295         * m4/tan.m4: New file.
12296         * modules/tan (Files): Add it.
12297         (configure.ac): Just invoke gl_FUNC_TAN.
12298
12299 2011-10-08  Bruno Haible  <bruno@clisp.org>
12300
12301         Tests for module 'cosf'.
12302         * modules/cosf-tests: New file.
12303         * tests/test-cosf.c: New file.
12304
12305         New module 'cosf'.
12306         * lib/math.in.h (cosf): New declaration.
12307         * lib/cosf.c: New file.
12308         * m4/cosf.m4: New file.
12309         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12311         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12312         * modules/cosf: New file.
12313         * tests/test-math-c++.cc: Check the declaration of cosf.
12314         * doc/posix-functions/cosf.texi: Mention the new module.
12315
12316         cos: Use a .m4 file.
12317         * m4/cos.m4: New file.
12318         * modules/cos (Files): Add it.
12319         (configure.ac): Just invoke gl_FUNC_COS.
12320
12321 2011-10-08  Bruno Haible  <bruno@clisp.org>
12322
12323         Tests for module 'sinf'.
12324         * modules/sinf-tests: New file.
12325         * tests/test-sinf.c: New file.
12326
12327         New module 'sinf'.
12328         * lib/math.in.h (sinf): New declaration.
12329         * lib/sinf.c: New file.
12330         * m4/sinf.m4: New file.
12331         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12333         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12334         * modules/sinf: New file.
12335         * tests/test-math-c++.cc: Check the declaration of sinf.
12336         * doc/posix-functions/sinf.texi: Mention the new module.
12337
12338         sin: Use a .m4 file.
12339         * m4/sin.m4: New file.
12340         * modules/sin (Files): Add it.
12341         (configure.ac): Just invoke gl_FUNC_SIN.
12342
12343 2011-10-08  Bruno Haible  <bruno@clisp.org>
12344
12345         Tests for module 'powf'.
12346         * modules/powf-tests: New file.
12347         * tests/test-powf.c: New file.
12348
12349         New module 'powf'.
12350         * lib/math.in.h (powf): New declaration.
12351         * lib/powf.c: New file.
12352         * m4/powf.m4: New file.
12353         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12355         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12356         * modules/powf: New file.
12357         * tests/test-math-c++.cc: Check the declaration of powf.
12358         * doc/posix-functions/powf.texi: Mention the new module.
12359
12360         pow: Use a .m4 file.
12361         * m4/pow.m4: New file.
12362         * modules/pow (Files): Add it.
12363         (configure.ac): Just invoke gl_FUNC_POW.
12364
12365 2011-10-08  Bruno Haible  <bruno@clisp.org>
12366
12367         Tests for module 'log10f'.
12368         * modules/log10f-tests: New file.
12369         * tests/test-log10f.c: New file.
12370
12371         New module 'log10f'.
12372         * lib/math.in.h (log10f): New declaration.
12373         * lib/log10f.c: New file.
12374         * m4/log10f.m4: New file.
12375         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12377         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12378         * modules/log10f: New file.
12379         * tests/test-math-c++.cc: Check the declaration of log10f.
12380         * doc/posix-functions/log10f.texi: Mention the new module.
12381
12382         log10: Use a .m4 file.
12383         * m4/log10.m4: New file.
12384         * modules/log10 (Files): Add it.
12385         (configure.ac): Just invoke gl_FUNC_LOG10.
12386
12387 2011-10-08  Bruno Haible  <bruno@clisp.org>
12388
12389         Tests for module 'logf'.
12390         * modules/logf-tests: New file.
12391         * tests/test-logf.c: New file.
12392
12393         New module 'logf'.
12394         * lib/math.in.h (logf): New declaration.
12395         * lib/logf.c: New file.
12396         * m4/logf.m4: New file.
12397         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12399         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12400         * modules/logf: New file.
12401         * tests/test-math-c++.cc: Check the declaration of logf.
12402         * doc/posix-functions/logf.texi: Mention the new module.
12403
12404         log: Use a .m4 file.
12405         * m4/log.m4: New file.
12406         * modules/log (Files): Add it.
12407         (configure.ac): Just invoke gl_FUNC_LOG.
12408
12409 2011-10-08  Bruno Haible  <bruno@clisp.org>
12410
12411         Tests for module 'expf'.
12412         * modules/expf-tests: New file.
12413         * tests/test-expf.c: New file.
12414
12415         New module 'expf'.
12416         * lib/math.in.h (expf): New declaration.
12417         * lib/expf.c: New file.
12418         * m4/expf.m4: New file.
12419         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12421         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12422         * modules/expf: New file.
12423         * tests/test-math-c++.cc: Check the declaration of expf.
12424         * doc/posix-functions/expf.texi: Mention the new module.
12425
12426         exp: Use a .m4 file.
12427         * m4/exp.m4: New file.
12428         * modules/exp (Files): Add it.
12429         (configure.ac): Just invoke gl_FUNC_EXP.
12430
12431 2011-10-08  Bruno Haible  <bruno@clisp.org>
12432
12433         Tests for module 'sqrtf'.
12434         * modules/sqrtf-tests: New file.
12435         * tests/test-sqrtf.c: New file.
12436
12437         New module 'sqrtf'.
12438         * lib/math.in.h (sqrtf): New declaration.
12439         * lib/sqrtf.c: New file.
12440         * m4/sqrtf.m4: New file.
12441         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12443         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12444         * modules/sqrtf: New file.
12445         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12446         * doc/posix-functions/sqrtf.texi: Mention the new module.
12447
12448 2011-10-08  Bruno Haible  <bruno@clisp.org>
12449
12450         Tests: Avoid link failures w.r.t. libintl.
12451         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12452         $(LIBINTL).
12453         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12454         $(LIBINTL).
12455         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12456         against $(LIBINTL).
12457         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12458         $(LIBINTL).
12459         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12460         $(LIBINTL).
12461         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12462
12463 2011-10-08  Bruno Haible  <bruno@clisp.org>
12464
12465         pow tests: Defeat compiler optimizations.
12466         * tests/test-pow.c (main): Assign arguments to x and y before use.
12467
12468 2011-10-08  Bruno Haible  <bruno@clisp.org>
12469
12470         gnulib-tool: Improve last commit.
12471         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12472         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12473         ignore dependencies that are not among the modules list.
12474
12475 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         gnulib-tool: don't follow dependencies to avoided modules
12478         This fixes a bug that is related to the previous one.
12479         * gnulib-tool (func_modules_transitive_closure)
12480         (func_emit_autoconf_snippets):
12481         Check whether a dependency is acceptable before using it.
12482         (--extract-dependencies): Report an error if --avoid is also used,
12483         since this combination of options is not yet supported.
12484
12485         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12486         Problem reported by Peter Dyballa in
12487         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12488         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12489         when echoing "$condition".
12490
12491 2011-10-07  Bruno Haible  <bruno@clisp.org>
12492
12493         Fix documentation about math functions on MacOS X.
12494         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12495         MacOS X 10.5.
12496         * doc/posix-functions/fdim.texi: Likewise.
12497         * doc/posix-functions/feclearexcept.texi: Likewise.
12498         * doc/posix-functions/fegetenv.texi: Likewise.
12499         * doc/posix-functions/fegetround.texi: Likewise.
12500         * doc/posix-functions/feholdexcept.texi: Likewise.
12501         * doc/posix-functions/feraiseexcept.texi: Likewise.
12502         * doc/posix-functions/fesetenv.texi: Likewise.
12503         * doc/posix-functions/fesetround.texi: Likewise.
12504         * doc/posix-functions/fetestexcept.texi: Likewise.
12505         * doc/posix-functions/feupdateenv.texi: Likewise.
12506         * doc/posix-functions/fmax.texi: Likewise.
12507         * doc/posix-functions/fmin.texi: Likewise.
12508         * doc/posix-functions/log2.texi: Likewise.
12509         * doc/posix-functions/modff.texi: Likewise.
12510         * doc/posix-functions/nan.texi: Likewise.
12511         * doc/posix-functions/nanf.texi: Likewise.
12512         * doc/posix-functions/nextafterf.texi: Likewise.
12513         * doc/posix-functions/remquo.texi: Likewise.
12514
12515 2011-10-07  Bruno Haible  <bruno@clisp.org>
12516
12517         modff: Drop assumption about library that defines modff.
12518         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12519         AC_CHECK_FUNCS.
12520         * modules/modff (Files): Add m4/mathfunc.m4.
12521
12522 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12523
12524         raise tests: Avoid a GCC warning.
12525         * tests/test-raise.c (handler): Use _Noreturn.
12526
12527 2011-10-07  Bruno Haible  <bruno@clisp.org>
12528
12529         Tests for module 'ldexpf'.
12530         * modules/ldexpf-tests: New file.
12531         * tests/test-ldexpf.c: New file.
12532
12533         New module 'ldexpf'.
12534         * lib/math.in.h (ldexpf): New declaration.
12535         * lib/ldexpf.c: New file.
12536         * m4/ldexpf.m4: New file.
12537         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12539         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12540         * modules/ldexpf: New file.
12541         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12542         * doc/posix-functions/ldexpf.texi: Mention the new module.
12543
12544 2011-10-06  Bruno Haible  <bruno@clisp.org>
12545
12546         frexpf: Work around problems on IRIX and mingw.
12547         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12549         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12550         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12551         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12552         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12553         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12554
12555 2011-10-06  Bruno Haible  <bruno@clisp.org>
12556
12557         fabsf: Drop assumption about library that defines fabsf.
12558         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12559         AC_CHECK_FUNCS.
12560         * modules/fabsf (Files): Add m4/mathfunc.m4.
12561
12562 2011-10-06  Bruno Haible  <bruno@clisp.org>
12563
12564         frexpf: Drop assumption about library that defines frexpf.
12565         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12566         'int *', 'float *', 'long double *', 'float', 'long double'.
12567         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12568         AC_CHECK_FUNCS.
12569         * modules/frexpf (Files): Add m4/mathfunc.m4.
12570
12571         Tests for module 'frexpf'.
12572         * modules/frexpf-tests: New file.
12573         * tests/test-frexpf.c: New file.
12574
12575         New module 'frexpf'.
12576         * lib/math.in.h (frexpf): New declaration.
12577         * lib/frexpf.c: New file.
12578         * m4/frexpf.m4: New file.
12579         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12581         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12582         * modules/frexpf: New file.
12583         * tests/test-math-c++.cc: Check the declaration of frexpf.
12584         * doc/posix-functions/frexpf.texi: Mention the new module.
12585
12586 2011-10-06  Bruno Haible  <bruno@clisp.org>
12587
12588         math: Sort function declarations of math.in.h.
12589         * lib/math.in.h (frexp, logb): Move declarations.
12590
12591 2011-10-05  Bruno Haible  <bruno@clisp.org>
12592
12593         Tests for module 'modff'.
12594         * modules/modff-tests: New file.
12595         * tests/test-modff.c: New file.
12596
12597         New module 'modff'.
12598         * lib/math.in.h (modff): New declaration.
12599         * lib/modff.c: New file.
12600         * m4/modff.m4: New file.
12601         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12603         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12604         * modules/modff: New file.
12605         * tests/test-math-c++.cc: Check the declaration of modff.
12606         * doc/posix-functions/modff.texi: Mention the new module.
12607
12608         modf tests: Make test sharper.
12609         * tests/test-modf.c (main): Strengthen upper bound.
12610
12611         modf: Use a .m4 file.
12612         * m4/modf.m4: New file.
12613         * modules/modf (Files): Add it.
12614         (configure.ac): Just invoke gl_FUNC_MODF.
12615
12616 2011-10-05  Bruno Haible  <bruno@clisp.org>
12617
12618         Tests for module 'fmodf'.
12619         * modules/fmodf-tests: New file.
12620         * tests/test-fmodf.c: New file.
12621
12622         New module 'fmodf'.
12623         * lib/math.in.h (fmodf): New declaration.
12624         * lib/fmodf.c: New file.
12625         * m4/fmodf.m4: New file.
12626         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12628         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12629         * modules/fmodf: New file.
12630         * tests/test-math-c++.cc: Check the declaration of fmodf.
12631         * doc/posix-functions/fmodf.texi: Mention the new module.
12632
12633         fmod: Use a .m4 file.
12634         * m4/fmod.m4: New file.
12635         * modules/fmod (Files): Add it.
12636         (configure.ac): Just invoke gl_FUNC_FMOD.
12637
12638 2011-10-05  Bruno Haible  <bruno@clisp.org>
12639
12640         Tests for module 'fabsf'.
12641         * modules/fabsf-tests: New file.
12642         * tests/test-fabsf.c: New file.
12643
12644         New module 'fabsf'.
12645         * lib/math.in.h (fabsf): New declaration.
12646         * lib/fabsf.c: New file.
12647         * m4/fabsf.m4: New file.
12648         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12650         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12651         * modules/fabsf: New file.
12652         * tests/test-math-c++.cc: Check the declaration of fabsf.
12653         * doc/posix-functions/fabsf.texi: Mention the new module.
12654
12655         fabs: Use a .m4 file.
12656         * m4/fabs.m4: New file.
12657         * modules/fabs (Files): Add it.
12658         (configure.ac): Just invoke gl_FUNC_FABS.
12659
12660 2011-10-05  Jim Meyering  <meyering@redhat.com>
12661
12662         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12663         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12664         ls -lL regression introduced in coreutils-8.12, it does so at the
12665         cost of an additional stat call in the common case.  Besides, now
12666         that the kernel change that prompted commit 95f7c57f has been reverted
12667         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12668         we have no use for commit 95f7c57f, "file-has-acl: use
12669         acl_extended_file_nofollow if available".
12670
12671 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12672
12673         file-has-acl: revert unintended change in behavior of ls -L
12674         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12675         derived from...
12676         (file_has_acl): ...code here.  Call it.
12677         This problem was introduced with 2011-07-22 commit 95f7c57f,
12678         "file-has-acl: use acl_extended_file_nofollow if available".
12679         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12680
12681 2011-10-03  Bruno Haible  <bruno@clisp.org>
12682
12683         poll: Avoid link errors on MSVC.
12684         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12685         * modules/poll (Depends-on): Add sockets.
12686         (Link): New section.
12687         * NEWS: Mention the change.
12688         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12689         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12690         $(LIB_POLL) instead of $(LIBSOCKET).
12691
12692 2011-10-03  Bruno Haible  <bruno@clisp.org>
12693
12694         sys_select tests: Fix link error on MSVC 9.
12695         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12696         with $(LIB_SELECT) instead of $(LIBSOCKET).
12697
12698 2011-10-03  Bruno Haible  <bruno@clisp.org>
12699
12700         sys_select: Fix compilation error on mingw.
12701         * lib/sys_select.in.h: On native Windows, include <io.h>.
12702
12703 2011-10-03  Bruno Haible  <bruno@clisp.org>
12704
12705         wmemset: Support for MSVC.
12706         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12707         whether wmemset() exists.
12708
12709 2011-10-03  Bruno Haible  <bruno@clisp.org>
12710
12711         wmemmove: Support for MSVC.
12712         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12713         whether wmemmove() exists.
12714
12715 2011-10-03  Bruno Haible  <bruno@clisp.org>
12716
12717         wmemcpy: Support for MSVC.
12718         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12719         whether wmemcpy() exists.
12720
12721 2011-10-03  Bruno Haible  <bruno@clisp.org>
12722
12723         wmemcmp: Support for MSVC.
12724         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12725         whether wmemcmp() exists.
12726
12727 2011-10-03  Bruno Haible  <bruno@clisp.org>
12728
12729         wmemchr: Support for MSVC.
12730         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12731         whether wmemchr() exists.
12732
12733 2011-10-03  Bruno Haible  <bruno@clisp.org>
12734
12735         glthread/*, strsignal: Support for MSVC.
12736         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12737         including <winsock.h> on MSVC 9.
12738         * lib/glthread/lock.h: Likewise.
12739         * lib/glthread/thread.h: Likewise.
12740         * lib/glthread/tls.h: Likewise.
12741         * lib/glthread/yield.h: Likewise.
12742         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12743         if HAVE_UNISTD_H is false.
12744         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12745
12746 2011-10-03  Bruno Haible  <bruno@clisp.org>
12747
12748         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12749         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12750         Set to 100000.
12751
12752 2011-10-03  Bruno Haible  <bruno@clisp.org>
12753
12754         acl: Fix specification.
12755         * lib/file-has-acl.c (file_has_acl): Fix specification.
12756
12757 2011-10-03  Bruno Haible  <bruno@clisp.org>
12758
12759         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12760         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12761         (compute_curr_prefix, shared_library_fullname,
12762         find_shared_library_fullname, get_shared_library_fullname, relocate):
12763         Use it together with PIC && INSTALLDIR.
12764         Reported by <jojelino@gmail.com>
12765         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12766
12767 2011-10-01  Jim Meyering  <meyering@redhat.com>
12768
12769         maint.mk: adjust a release-related rule not to require use of gzip
12770         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12771         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12772         projects that build only .tar.xz files.  Also fix an erroneous test.
12773
12774         test-linkat: don't leave behind a temporary file
12775         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12776         Otherwise, coreutils' "make distcheck" would fail with this:
12777           Only in /c/cu/tests/torture/coreutils/test/\
12778             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12779           make[2]: *** [my-distcheck] Error 1
12780
12781         float, math: add omitted file
12782         * lib/itold.c: Add file, required for yesterday's float change.
12783
12784 2011-10-01  Bruno Haible  <bruno@clisp.org>
12785
12786         isinf: Fix for OpenBSD/x86.
12787         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12788         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12789         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12790
12791 2011-10-01  Bruno Haible  <bruno@clisp.org>
12792
12793         isfinite: Fix syntax error in configure test.
12794         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12795
12796         isfinite: Fix typo.
12797         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12798         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12799
12800 2011-10-01  Bruno Haible  <bruno@clisp.org>
12801
12802         nonblocking tests: Fix test failure on Linux/IA-64.
12803         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12804         Set to 270000.
12805
12806 2011-10-01  Bruno Haible  <bruno@clisp.org>
12807
12808         mkfifoat tests: Fix a test failure on mingw.
12809         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12810         with error ENOSYS.
12811
12812 2011-09-30  Bruno Haible  <bruno@clisp.org>
12813
12814         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12815         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12816         'long double'. Set REPLACE_ITOLD.
12817         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12818         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12819         * lib/itold.c: New file.
12820         * modules/float (Files): Add lib/itold.c.
12821         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12822         (Makefile.am): Substitute REPLACE_ITOLD.
12823         * modules/math (Depends-on): Add float.
12824         (Makefile.am): Substitute REPLACE_ITOLD.
12825         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12826         * doc/posix-headers/math.texi: Likewise.
12827         * doc/posix-functions/logl.texi: Likewise.
12828
12829 2011-09-30  Bruno Haible  <bruno@clisp.org>
12830
12831         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12832         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12833         Set to 140000.
12834
12835 2011-09-30  Bruno Haible  <bruno@clisp.org>
12836
12837         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12838         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12839         invocation, say "right after AC_PROG_CC_STDC", not "right after
12840         AC_PROG_CC".
12841         Reported by Gary V. Vaughan <gary@gnu.org>.
12842
12843 2011-09-30  Bruno Haible  <bruno@clisp.org>
12844
12845         Centralize C99 requirement.
12846         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12847         * modules/stdarg (configure.ac-early): Invoke it instead of
12848         AC_PROG_CC_STDC.
12849         Reported by Gary V. Vaughan and Paul Eggert.
12850
12851 2011-09-29  Bruno Haible  <bruno@clisp.org>
12852
12853         float: Fix LDBL_MAX value on Linux/PowerPC.
12854         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12855         on Linux/PowerPC.
12856         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12857         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12858         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12859         platform.
12860         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12861
12862 2011-09-29  Bruno Haible  <bruno@clisp.org>
12863
12864         doc: Improve doc about gl_EARLY.
12865         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12866         AC_PROG_CC_STDC invocation.
12867         Reported by Gary V. Vaughan <gary@gnu.org>.
12868
12869 2011-09-28  Bruno Haible  <bruno@clisp.org>
12870
12871         fgetc, fputc, fread, fwrite tests: Fix link error.
12872         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12873         on non-MSVC platforms.
12874         * tests/test-fputc.c (main): Likewise.
12875         * tests/test-fread.c (main): Likewise.
12876         * tests/test-fwrite.c (main): Likewise.
12877         Reported by Jim Meyering.
12878
12879 2011-09-27  Bruno Haible  <bruno@clisp.org>
12880
12881         fputc, fwrite tests: Avoid test failure on MSVC.
12882         * tests/test-fgetc.c: Include msvc-inval.h.
12883         (main): Invoke gl_msvc_inval_ensure_handler.
12884         * tests/test-fputc.c: Include msvc-inval.h.
12885         (main): Invoke gl_msvc_inval_ensure_handler.
12886         * tests/test-fread.c: Include msvc-inval.h.
12887         (main): Invoke gl_msvc_inval_ensure_handler.
12888         * tests/test-fwrite.c: Include msvc-inval.h.
12889         (main): Invoke gl_msvc_inval_ensure_handler.
12890         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12891         * modules/fputc-tests (Depends-on): Likewise.
12892         * modules/fread-tests (Depends-on): Likewise.
12893         * modules/fwrite-tests (Depends-on): Likewise.
12894
12895 2011-09-27  Bruno Haible  <bruno@clisp.org>
12896
12897         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12898         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12899         (raise): Remove older, duplicated declaration.
12900         (_gl_raise_SIGPIPE): New declaration.
12901         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12902         (rpl_raise): Remove function.
12903         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12904         a gnulib-defined SIGPIPE here.
12905         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12906         'sigprocmask' has detected missing signal-blocking and the module
12907         'sigpipe' is enabled.
12908         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12909
12910 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12911
12912         base64-tests: avoid memory leak
12913         * tests/test-base64.c (main): Plug memory leak.
12914
12915         base32: new module
12916         * modules/base32: New module.
12917         * lib/base32.c: New file.
12918         * lib/base32.h: Likewise.
12919         * m4/base32.m4: Likewise.
12920         * modules/base32-tests: New test.
12921         * tests/test-base32.c: Likewise.
12922         * MODULES.html.sh (Misc): Mention it.
12923
12924 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12925
12926         gnulib: use more-standard license notice wording
12927         * gnulib-tool (func_emit_copyright_notice): When emitting a
12928         license notice into a file, use the standard wording as suggested
12929         by the current information for GNU maintainers, except say "file"
12930         rather than "program".  The new wording gives a license version
12931         number, which addresses an issue raised by Glenn Morris in
12932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12933         * m4/onceonly.m4: Use that same wording here, too.
12934
12935         dup2: minor simplification
12936         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12937         as lib/dup2.c no longer uses 'inline'.
12938
12939 2011-09-25  Bruno Haible  <bruno@clisp.org>
12940
12941         strings: Fix compilation error on MSVC.
12942         * lib/strings.in.h: Include <stddef.h> for size_t.
12943
12944 2011-09-25  Bruno Haible  <bruno@clisp.org>
12945
12946         fflush et al.: Document limitation on MSVC.
12947         * doc/posix-functions/fflush.texi: Document possible crash in handling
12948         mode other than DEFAULT_HANDLING.
12949         * doc/posix-functions/fgetc.texi: Likewise.
12950         * doc/posix-functions/fputc.texi: Likewise.
12951         * doc/posix-functions/fread.texi: Likewise.
12952         * doc/posix-functions/fwrite.texi: Likewise.
12953
12954 2011-09-25  Bruno Haible  <bruno@clisp.org>
12955
12956         msvc-inval: Allow three invalid parameter handling modes.
12957         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12958         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12959         macros.
12960         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12961         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12962         SANE_LIBRARY_HANDLING as a no-op.
12963         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12964         <stdlib.h>.
12965         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12966
12967 2011-09-25  Bruno Haible  <bruno@clisp.org>
12968
12969         msvc-inval: Make handler multithread-safe.
12970         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12971         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12972         declarations.
12973         (gl_msvc_inval_current): New declaration.
12974         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12975         Operate on the structure returned by gl_msvc_inval_current().
12976         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12977         Remove varaiables.
12978         (tls_index, tls_initialized): New variables.
12979         (not_per_thread): New variable.
12980         (gl_msvc_inval_current): New function.
12981         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12982         returned by gl_msvc_inval_current().
12983
12984 2011-09-25  Bruno Haible  <bruno@clisp.org>
12985
12986         msvc-inval: Install handler globally.
12987         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12988         !_MSC_VER.
12989         (gl_msvc_invalid_parameter_handler): Remove declaration.
12990         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12991         declarations.
12992         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12993         Install the handler globally, don't uninstall it.
12994         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12995         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12996         currently valid, call RaiseException instead.
12997         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12998         for !_MSC_VER.
12999
13000 2011-09-25  Bruno Haible  <bruno@clisp.org>
13001
13002         strerror_r-posix: Fix for MSVC 9.
13003         * lib/strerror_r.c (local_snprintf): New function.
13004         (snprintf): Define to local_snprintf, not to _snprintf.
13005
13006 2011-09-25  Bruno Haible  <bruno@clisp.org>
13007
13008         ftruncate: Support for MSVC 9.
13009         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13010         (chsize_nothrow): New function.
13011         (chsize): Redefine as a macro.
13012         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13013         * modules/ftruncate (Depends-on): Add msvc-inval.
13014
13015 2011-09-25  Bruno Haible  <bruno@clisp.org>
13016
13017         New module 'fstat'.
13018         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13019         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13020         * lib/fchdir.c (rpl_fstat): Remove function.
13021         * m4/fstat.m4: New file.
13022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13024         declared.
13025         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13026         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13027         * modules/fstat: New file.
13028         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13029         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13030         is set.
13031         * doc/posix-functions/fstat.texi: Mention the new module and the
13032         problem on MSVC.
13033         * NEWS: Mention the change.
13034         * modules/acl (Depends-on): Add fstat.
13035         * modules/chdir-safer (Depends-on): Likewise.
13036         * modules/chown (Depends-on): Likewise.
13037         * modules/copy-file (Depends-on): Likewise.
13038         * modules/fchdir (Depends-on): Likewise.
13039         * modules/fdopendir (Depends-on): Likewise.
13040         * modules/fopen (Depends-on): Likewise.
13041         * modules/fts (Depends-on): Likewise.
13042         * modules/getcwd (Depends-on): Likewise.
13043         * modules/isapipe (Depends-on): Likewise.
13044         * modules/linkat (Depends-on): Likewise.
13045         * modules/lseek (Depends-on): Likewise.
13046         * modules/mkdir-p (Depends-on): Likewise.
13047         * modules/open (Depends-on): Likewise.
13048         * modules/openat (Depends-on): Likewise.
13049         * modules/read-file (Depends-on): Likewise.
13050         * modules/renameat (Depends-on): Likewise.
13051         * modules/utimens (Depends-on): Likewise.
13052
13053 2011-09-25  Bruno Haible  <bruno@clisp.org>
13054
13055         linkat: Fix compilation on MSVC 9.
13056         * lib/linkat.c: Don't include <stdint.h>.
13057
13058 2011-09-25  Bruno Haible  <bruno@clisp.org>
13059
13060         fclose: Support for MSVC 9.
13061         * lib/fclose.c: Include msvc-inval.h.
13062         (fclose_nothrow): New function.
13063         (rpl_fclose): Use it.
13064         * modules/fclose (Depends-on): Add msvc-inval.
13065         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13066
13067 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13068
13069         dup2: minor simplifications
13070         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13071         that it's a performance win.
13072         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13073         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13074
13075 2011-09-24  Jim Meyering  <meyering@redhat.com>
13076
13077         test-futimens: avoid a warning from gcc -Wshadow
13078         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13079         to avoid a shadowing warning.
13080
13081 2011-09-24  Bruno Haible  <bruno@clisp.org>
13082
13083         fdopen: Support for MSVC 9.
13084         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13085         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13086         * lib/fdopen.c: Include msvc-inval.h.
13087         (fdopen_nothrow): New function.
13088         (rpl_fdopen): Use it.
13089         * modules/fdopen (Depends-on): Add msvc-inval.
13090         * modules/fclose-tests (Depends-on): Add fdopen.
13091         * modules/fflush-tests (Depends-on): Likewise.
13092         * modules/fgetc-tests (Depends-on): Likewise.
13093         * modules/fputc-tests (Depends-on): Likewise.
13094         * modules/fread-tests (Depends-on): Likewise.
13095         * modules/freopen-tests (Depends-on): Likewise.
13096         * modules/fseeko-tests (Depends-on): Likewise.
13097         * modules/ftello-tests (Depends-on): Likewise.
13098         * modules/fwrite-tests  (Depends-on): Likewise.
13099         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13100
13101 2011-09-24  Bruno Haible  <bruno@clisp.org>
13102
13103         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13104         * modules/fgetc-tests (Depends-on): Add unistd.
13105         * modules/fputc-tests (Depends-on): Likewise.
13106         * modules/fread-tests (Depends-on): Likewise.
13107         * modules/fwrite-tests (Depends-on): Likewise.
13108
13109 2011-09-24  Bruno Haible  <bruno@clisp.org>
13110
13111         dup: Simplify autoconf test.
13112         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13113         on gl_MSVC_INVAL's result.
13114
13115 2011-09-24  Bruno Haible  <bruno@clisp.org>
13116
13117         Tests for function fwrite().
13118         * modules/fwrite-tests: New file.
13119         * tests/test-fwrite.c: New file.
13120         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13121
13122         Tests for function fread().
13123         * modules/fread-tests: New file.
13124         * tests/test-fread.c: New file.
13125         * modules/stdio-tests (Depends-on): Add fread-tests.
13126
13127         Activate fputc tests.
13128         * modules/stdio-tests (Depends-on): Add fputc-tests.
13129
13130         Enhance fgetc, fputc tests.
13131         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13132         * tests/test-fputc.c (main): Likewise.
13133
13134 2011-09-24  Bruno Haible  <bruno@clisp.org>
13135
13136         write: Support for MSVC 9.
13137         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13138         is not 1.
13139         * lib/write.c (write_nothrow): New function.
13140         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13141         not 1. Use write_nothrow.
13142         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13143         invalid parameter handler.
13144         (gl_PREREQ_WRITE): New macro.
13145         * modules/write (Depends-on): Add msvc-inval.
13146         (configure.ac): Invoke gl_PREREQ_WRITE.
13147         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13148
13149 2011-09-24  Bruno Haible  <bruno@clisp.org>
13150
13151         read: Fix last commit.
13152         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13153
13154 2011-09-24  Bruno Haible  <bruno@clisp.org>
13155
13156         dup2: Fix last commit.
13157         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13158         (rpl_dup2): Disable fcntl workaround on native Windows.
13159
13160         sigprocmask: Make code safer.
13161         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13162         section that changes macro definitions for this compilation unit.
13163
13164 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13165
13166         dup2: clarify by coalescing Windows-specific material
13167         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13168         "msvc-nothrow.h"' to the Windows-specific section, so that the
13169         Emacs source need not contain these include files.
13170         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13171         Windows-specific fixes into this function rather than just the
13172         nothrow fix, as this shortens and clarifies the code.  Always
13173         define as a function, as that's a bit cleaner than having it be
13174         sometimes a function and sometimes a macro.
13175         (rpl_dup2): Move the Windows-specific stuff out of here and into
13176         ms_windows_dup2.  Don't protect the Haiku-related fix with
13177         "#if !defined __linux__", as the same code also works around
13178         a Linux kernel bug, and it doesn't add any system calls on any
13179         platform.  Add comment about FreeBSD 6.1.
13180
13181         sigprocmask: move #include directive
13182         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13183         Windows-specific section, so that the Emacs source need not
13184         contain msvc-inval.h.
13185
13186 2011-09-23  Bruno Haible  <bruno@clisp.org>
13187
13188         read: Support for MSVC 9.
13189         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13190         is not 1.
13191         * lib/read.c (read_nothrow): New function.
13192         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13193         read_nothrow.
13194         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13195         invalid parameter handler.
13196         (gl_PREREQ_READ): New macro.
13197         * modules/read (Depends-on): Add msvc-inval.
13198         (configure.ac): Invoke gl_PREREQ_READ.
13199         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13200
13201 2011-09-23  Bruno Haible  <bruno@clisp.org>
13202
13203         close: Support for MSVC 9.
13204         * lib/close.c: Include <errno.h>, msvc-inval.h.
13205         (close_nothrow): New function.
13206         (rpl_close): Use it.
13207         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13208         invalid parameter handler.
13209         * modules/close (Depends-on): Add msvc-inval.
13210         * modules/dup2-tests (Depends-on): Add close.
13211         * modules/dup3-tests (Depends-on): Likewise.
13212         * modules/fcntl-tests (Depends-on): Likewise.
13213         * modules/spawn-pipe-tests (Depends-on): Likewise.
13214         * modules/unistd-safer-tests (Depends-on): Likewise.
13215         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13216
13217 2011-09-23  Bruno Haible  <bruno@clisp.org>
13218
13219         New module 'dup'.
13220         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13221         Allow replacement.
13222         * lib/dup.c: New file.
13223         * lib/fchdir.c (rpl_dup): Remove function.
13224         * m4/dup.m4: New file.
13225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13226         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13227         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13228         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13229         * modules/dup: New file.
13230         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13231         'dup' module is in use.
13232         * modules/fdopendir (Depends-on): Add dup.
13233         * modules/fdutimensat-tests (Depends-on): Likewise.
13234         * modules/fts (Depends-on): Likewise.
13235         * modules/futimens-tests (Depends-on): Likewise.
13236         * modules/posix_spawnp-tests (Depends-on): Likewise.
13237         * modules/unistd-safer-tests (Depends-on): Likewise.
13238         * modules/utimens-tests (Depends-on): Likewise.
13239         * doc/posix-functions/dup.texi: Mention the new module and the problem
13240         on MSVC.
13241
13242 2011-09-23  Bruno Haible  <bruno@clisp.org>
13243
13244         getdtablesize: Support for MSVC 9.
13245         * lib/getdtablesize.c: Include msvc-inval.h.
13246         (_setmaxstdio_nothrow): New function.
13247         (_setmaxstdio): Redefine it.
13248         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13249         * modules/getdtablesize (Depends-on): Add msvc-inval.
13250         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13251
13252 2011-09-23  Bruno Haible  <bruno@clisp.org>
13253
13254         signal-h: Rename from signal.
13255         * modules/signal-h: Renamed from modules/signal.
13256         * modules/pthread_sigmask (Depends-on): Update.
13257         * modules/raise (Depends-on): Likewise.
13258         * modules/sigaction (Depends-on): Likewise.
13259         * modules/sigpipe (Depends-on): Likewise.
13260         * modules/sigprocmask (Depends-on): Likewise.
13261         * modules/sys_select (Depends-on): Likewise.
13262         * modules/signal-h-tests: Renamed from modules/signal-tests.
13263         (Files, Depends-on, Makefile.am): Update.
13264         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13265         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13266         (Files, Makefile.am): Update.
13267         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13268         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13269         * modules/signal: New placeholder file.
13270         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13271         * doc/posix-headers/signal.texi: Update.
13272         * NEWS: Mention the change.
13273
13274 2011-09-23  Bruno Haible  <bruno@clisp.org>
13275
13276         sigprocmask: Avoid crashes through signal() on MSVC 9.
13277         * lib/sigprocmask.c: Include msvc-inval.h.
13278         (signal_nothrow): New function.
13279         (signal): Redefine it.
13280         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13281         * modules/sigprocmask (Depends-on): Add msvc-inval.
13282         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13283
13284 2011-09-23  Bruno Haible  <bruno@clisp.org>
13285
13286         Tests for module 'raise'.
13287         * modules/raise-tests: New file.
13288         * tests/test-raise.c: New file.
13289
13290         raise: Support for MSVC.
13291         * lib/signal.in.h (raise): New declaration.
13292         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13293         for native Windows platforms.
13294         * m4/raise.m4: New file.
13295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13296         HAVE_RAISE, REPLACE_RAISE.
13297         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13298         REPLACE_RAISE.
13299         * modules/raise (Status, Notice): Remove fields.
13300         (Files): Add m4/raise.m4.
13301         (Depends-on): Add signal, msvc-inval.
13302         (configure.ac): Use the common idioms.
13303         (Maintainer): Add me.
13304         * tests/test-signal-c++.cc: Check the signature of raise.
13305         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13306
13307 2011-09-23  Bruno Haible  <bruno@clisp.org>
13308
13309         pipe2: Fix compilation on pre-C99 compilers.
13310         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13311
13312 2011-09-23  Bruno Haible  <bruno@clisp.org>
13313
13314         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13315         * lib/msvc-nothrow.h: New file.
13316         * lib/msvc-nothrow.c: New file.
13317         * m4/msvc-nothrow.m4: New file.
13318         * modules/msvc-nothrow: New file.
13319         * lib/dup2.c: Include msvc-nothrow.h.
13320         (rpl_dup2): No need to protect _get_osfhandle call here.
13321         * lib/accept4.c: Include msvc-nothrow.h.
13322         * lib/error.c: Likewise.
13323         * lib/fcntl.c: Likewise.
13324         * lib/lseek.c: Likewise.
13325         * lib/nonblocking.c: Likewise.
13326         * lib/poll.c: Likewise.
13327         * lib/read.c: Likewise.
13328         * lib/select.c: Likewise.
13329         * lib/sockets.h: Likewise.
13330         * lib/sockets.c: Likewise.
13331         * lib/stdio-read.c: Likewise.
13332         * lib/stdio-write.c: Likewise.
13333         * lib/write.c: Likewise.
13334         * lib/w32sock.h: Likewise.
13335         * lib/w32spawn.h: Likewise.
13336         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13337         * lib/fsync.c: Likewise.
13338         * lib/isapipe.c: Likewise.
13339         * modules/dup2 (Depends-on): Add msvc-nothrow.
13340         * modules/accept4 (Depends-on): Likewise.
13341         * modules/error (Depends-on): Likewise.
13342         * modules/fcntl (Depends-on): Likewise.
13343         * modules/lseek (Depends-on): Likewise.
13344         * modules/nonblocking (Depends-on): Likewise.
13345         * modules/poll (Depends-on): Likewise.
13346         * modules/read (Depends-on): Likewise.
13347         * modules/select (Depends-on): Likewise.
13348         * modules/sockets (Depends-on): Likewise.
13349         * modules/sigpipe (Depends-on): Likewise.
13350         * modules/write (Depends-on): Likewise.
13351         * modules/accept (Depends-on): Likewise.
13352         * modules/bind (Depends-on): Likewise.
13353         * modules/connect (Depends-on): Likewise.
13354         * modules/gethostname (Depends-on): Likewise.
13355         * modules/getpeername (Depends-on): Likewise.
13356         * modules/getsockname (Depends-on): Likewise.
13357         * modules/getsockopt (Depends-on): Likewise.
13358         * modules/ioctl (Depends-on): Likewise.
13359         * modules/listen (Depends-on): Likewise.
13360         * modules/recv (Depends-on): Likewise.
13361         * modules/recvfrom (Depends-on): Likewise.
13362         * modules/send (Depends-on): Likewise.
13363         * modules/sendto (Depends-on): Likewise.
13364         * modules/setsockopt (Depends-on): Likewise.
13365         * modules/shutdown (Depends-on): Likewise.
13366         * modules/socket (Depends-on): Likewise.
13367         * modules/execute (Depends-on): Likewise.
13368         * modules/spawn-pipe (Depends-on): Likewise.
13369         * modules/flock (Depends-on): Likewise.
13370         * modules/fsync (Depends-on): Likewise.
13371         * modules/isapipe (Depends-on): Likewise.
13372         * tests/test-cloexec.c: Include msvc-nothrow.h.
13373         * tests/test-dup-safer.c: Likewise.
13374         * tests/test-dup2.c: Likewise.
13375         * tests/test-dup3.c: Likewise.
13376         * tests/test-fcntl.c: Likewise.
13377         * tests/test-pipe.c: Likewise.
13378         * tests/test-pipe2.c: Likewise.
13379         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13380         * modules/unistd-safer-tests (Depends-on): Likewise.
13381         * modules/dup2-tests (Depends-on): Likewise.
13382         * modules/dup3-tests (Depends-on): Likewise.
13383         * modules/fcntl-tests (Depends-on): Likewise.
13384         * modules/pipe-posix-tests (Depends-on): Likewise.
13385         * modules/pipe2-tests (Depends-on): Likewise.
13386
13387 2011-09-23  Bruno Haible  <bruno@clisp.org>
13388
13389         dup2: Make code more maintainable.
13390         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13391         (rpl_dup2): Use it.
13392         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13393         * modules/dup2 (configure.ac): Invoke it.
13394         Reported by Paul Eggert.
13395
13396 2011-09-23  Bruno Haible  <bruno@clisp.org>
13397
13398         msvc-inval: Fix compilation error.
13399         * lib/msvc-inval.h: Include <excpt.h>.
13400
13401 2011-09-23  Bruno Haible  <bruno@clisp.org>
13402
13403         mkdir: Tweak for MSVC 9.
13404         * lib/sys_stat.in.h: Update comments.
13405         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13406
13407         Tests for module 'chdir'.
13408         * modules/chdir-tests: New file.
13409         * tests/test-chdir.c: New file.
13410
13411         New module 'chdir'.
13412         * modules/chdir: New file.
13413         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13414         (chdir): New declaration.
13415         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13417         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13418         * tests/test-unistd-c++.cc: Check signature of chdir.
13419         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13420         * modules/chdir-long (Depends-on): Add chdir.
13421         * modules/fchdir (Depends-on): Likewise.
13422         * modules/rename (Depends-on): Likewise.
13423         * modules/savewd (Depends-on): Likewise.
13424
13425         rmdir: Support for mingw, MSVC 9.
13426         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13427         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13428
13429         getcwd: Tweak for MSVC 9.
13430         * lib/unistd.in.h: Update comments.
13431         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13432
13433 2011-09-22  Bruno Haible  <bruno@clisp.org>
13434
13435         strerror_r-posix: Avoid a link error on MSVC.
13436         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13437         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13438
13439 2011-09-22  Bruno Haible  <bruno@clisp.org>
13440
13441         select: Avoid link errors on MSVC.
13442         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13443         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13444         * modules/pselect (Link): Likewise.
13445         * NEWS: Mention the change.
13446         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13447         test-select-stdin against $(LIB_SELECT).
13448         * modules/pselect-tests (Makefile.am): Link test-pselect against
13449         $(LIB_SELECT).
13450
13451 2011-09-22  Bruno Haible  <bruno@clisp.org>
13452
13453         select: Avoid compilation error on MSVC.
13454         * lib/select.c: Don't include <stdbool.h>.
13455
13456 2011-09-21  Bruno Haible  <bruno@clisp.org>
13457
13458         Consolidate all uses of PATH_MAX in *.m4 files.
13459         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13460         macros.
13461         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13462         and gl_PATHMAX_SNIPPET.
13463         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13465         * modules/chdir-long (Files): Add m4/pathmax.m4.
13466         * modules/getcwd (Files): Likewise.
13467
13468 2011-09-21  Bruno Haible  <bruno@clisp.org>
13469
13470         ftruncate: Un-deprecate, concentrate on Win32 support.
13471         * modules/ftruncate (Status, Notice): Remove sections.
13472         (Depends-on): Add largefile.
13473         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13474         non-mingw platforms.
13475         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13476         include <io.h>.
13477         * modules/perror-tests (Depends-on): Add ftruncate.
13478         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13479         'ftruncate' module.
13480
13481 2011-09-21  Bruno Haible  <bruno@clisp.org>
13482
13483         Add dependencies to new dirent related modules.
13484         * modules/opendir (Depends-on): Add closedir.
13485         * modules/getcwd (Depends-on): Add opendir, closedir.
13486         * modules/dirent-safer-tests (Depends-on): Likewise.
13487         * modules/fdopendir-tests (Depends-on): Likewise.
13488         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13489         * modules/renameat-tests (Depends-on): Likewise.
13490
13491 2011-09-21  Bruno Haible  <bruno@clisp.org>
13492
13493         opendir: Avoid compilation error on mingw.
13494         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13495         * modules/opendir (Depends-on): Add unistd.
13496
13497 2011-09-21  Bruno Haible  <bruno@clisp.org>
13498
13499         ftruncate tests: Avoid a test failure on mingw.
13500         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13501
13502 2011-09-21  Bruno Haible  <bruno@clisp.org>
13503
13504         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13505         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13506         native Windows.
13507
13508 2011-09-21  Bruno Haible  <bruno@clisp.org>
13509
13510         New module 'fdopen'.
13511         * lib/stdio.in.h (fdopen): New declaration.
13512         * lib/fdopen.c: New file.
13513         * m4/fdopen.m4: New file.
13514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13515         REPLACE_FDOPEN.
13516         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13517         REPLACE_FDOPEN.
13518         * modules/fdopen: New file.
13519         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13520         * tests/test-stdio-c++.cc: Check signature of fdopen.
13521         * doc/posix-functions/fdopen.texi: Mention the new module.
13522
13523 2011-09-21  Bruno Haible  <bruno@clisp.org>
13524
13525         unlockpt tests: Avoid test failure on NetBSD 5.1.
13526         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13527         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13528
13529 2011-09-21  Bruno Haible  <bruno@clisp.org>
13530
13531         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13532         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13533         * tests/test-getlogin_r.c (main): Likewise.
13534
13535 2011-09-20  Bruno Haible  <bruno@clisp.org>
13536
13537         time tests: Don't require pid_t.
13538         * doc/posix-headers/time.texi: Revert last change.
13539         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13540         * tests/test-time.c: Comment out the check for pid_t.
13541
13542 2011-09-20  Bruno Haible  <bruno@clisp.org>
13543
13544         fsync tests: Avoid a test failure on mingw.
13545         * tests/test-fsync.c (main): Allow a failure with EIO.
13546
13547 2011-09-20  Bruno Haible  <bruno@clisp.org>
13548
13549         euidaccess: Update comments.
13550         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13551
13552 2011-09-20  Bruno Haible  <bruno@clisp.org>
13553
13554         Ensure EBADF returns for socket functions on mingw.
13555         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13556         descriptor is invalid.
13557         * lib/bind.c (rpl_bind): Likewise.
13558         * lib/connect.c (rpl_connect): Likewise.
13559         * lib/getpeername.c (rpl_getpeername): Likewise.
13560         * lib/getsockname.c (rpl_getsockname): Likewise.
13561         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13562         * lib/listen.c (rpl_listen): Likewise.
13563         * lib/recv.c (rpl_recv): Likewise.
13564         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13565         * lib/send.c (rpl_send): Likewise.
13566         * lib/sendto.c (rpl_sendto): Likewise.
13567         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13568         * lib/shutdown.c (rpl_shutdown): Likewise.
13569
13570 2011-09-20  Bruno Haible  <bruno@clisp.org>
13571
13572         select tests: EBADF tests.
13573         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13574         test_bad_fd): New functions.
13575         (test_function): Invoke also test_bad_fd.
13576
13577 2011-09-20  Bruno Haible  <bruno@clisp.org>
13578
13579         Tests for module 'posix_spawn_file_actions_addopen.
13580         * modules/posix_spawn_file_actions_addopen-tests: New file.
13581         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13582
13583         Tests for module 'posix_spawn_file_actions_adddup2'.
13584         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13585         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13586
13587         Tests for module 'posix_spawn_file_actions_addclose'.
13588         * modules/posix_spawn_file_actions_addclose-tests: New file.
13589         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13590
13591 2011-09-20  Bruno Haible  <bruno@clisp.org>
13592
13593         Tests for module 'unlockpt'.
13594         * modules/unlockpt-tests: New file.
13595         * tests/test-unlockpt.c: New file.
13596         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13597
13598         Tests for module 'grantpt'.
13599         * modules/grantpt-tests: New file.
13600         * tests/test-grantpt.c: New file.
13601         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13602
13603 2011-09-20  Bruno Haible  <bruno@clisp.org>
13604
13605         freopen tests: EBADF tests.
13606         * tests/test-freopen.c: Include errno.h, unistd.h.
13607         (main): Add tests for EBADF, commented out for the moment.
13608
13609         fclose tests: EBADF tests.
13610         * tests/test-fclose.c (main): Add tests for EBADF.
13611
13612         fflush tests: EBADF tests.
13613         * tests/test-fflush.c: Include errno.h, macros.h.
13614         (main): Add tests for EBADF.
13615
13616         ftello tests: EBADF tests.
13617         * tests/test-ftello4.sh: New file.
13618         * tests/test-ftello4.c: New file.
13619         * modules/ftello-tests (Files): Add them.
13620         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13621
13622         fseeko tests: EBADF tests.
13623         * tests/test-fseeko4.sh: New file.
13624         * tests/test-fseeko4.c: New file.
13625         * modules/fseeko-tests (Files): Add them.
13626         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13627
13628         Tests for function fputc().
13629         * modules/fputc-tests: New file.
13630         * tests/test-fputc.c: New file.
13631         * modules/stdio-tests (Depends-on): Add fputc-tests.
13632
13633         Tests for function fgetc().
13634         * modules/fgetc-tests: New file.
13635         * tests/test-fgetc.c: New file.
13636         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13637
13638         Tests for function fdopen().
13639         * modules/fdopen-tests: New file.
13640         * tests/test-fdopen.c: New file.
13641         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13642
13643         Tests for module 'vdprintf'.
13644         * modules/vdprintf-tests: New file.
13645         * tests/test-vdprintf.c: New file.
13646
13647         Tests for module 'dprintf'.
13648         * modules/dprintf-tests: New file.
13649         * tests/test-dprintf.c: New file.
13650
13651 2011-09-20  Bruno Haible  <bruno@clisp.org>
13652
13653         Tests for module 'ioctl'.
13654         * modules/ioctl-tests: New file.
13655         * tests/test-ioctl.c: New file.
13656
13657 2011-09-20  Bruno Haible  <bruno@clisp.org>
13658
13659         fcntl tests: EBADF tests.
13660         * tests/test-fcntl.c (main): Add more tests for EBADF.
13661
13662 2011-09-20  Bruno Haible  <bruno@clisp.org>
13663
13664         utimensat tests: EBADF tests.
13665         * tests/test-utimensat.c (main): Add tests for EBADF.
13666
13667         renameat tests: EBADF tests.
13668         * tests/test-renameat.c (main): Add tests for EBADF.
13669
13670         mkfifoat tests: EBADF tests.
13671         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13672
13673         readlinkat tests: EBADF tests.
13674         * tests/test-readlinkat.c (main): Add tests for EBADF.
13675
13676         symlinkat tests: EBADF tests.
13677         * tests/test-symlinkat.c (main): Add tests for EBADF.
13678
13679         linkat tests: EBADF tests.
13680         * tests/test-linkat.c (main): Add tests for EBADF.
13681
13682         Tests for module 'faccessat'.
13683         * modules/faccessat-tests: New file.
13684         * tests/test-faccessat.c: New file.
13685
13686         fdopendir tests: EBADF tests.
13687         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13688
13689         openat tests: EBADF tests.
13690         * tests/test-fchownat.c (main): Add tests for EBADF.
13691         * tests/test-fstatat.c (main): Likewise.
13692         * tests/test-mkdirat.c (main): Likewise.
13693         * tests/test-openat.c (main): Likewise.
13694         * tests/test-unlinkat.c (main): Likewise.
13695         * tests/test-fchmodat.c: New file.
13696         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13697         (Makefile.am): Also run 'test-fchmodat'.
13698
13699 2011-09-20  Bruno Haible  <bruno@clisp.org>
13700
13701         utimens, futimens, fdutimensat tests: EBADF tests.
13702         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13703
13704         Tests for function fstat().
13705         * modules/fstat-tests: New file.
13706         * tests/test-fstat.c: New file.
13707         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13708
13709 2011-09-20  Bruno Haible  <bruno@clisp.org>
13710
13711         test-ttyname_r tests: EBADF tests.
13712         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13713
13714         Tests for module 'isatty'.
13715         * modules/isatty-tests: New file.
13716         * tests/test-isatty.c: New file.
13717
13718         Tests for module 'write'.
13719         * modules/write-tests: New file.
13720         * tests/test-write.c: New file.
13721
13722         Tests for module 'read'.
13723         * modules/read-tests: New file.
13724         * tests/test-read.c: New file.
13725
13726         pwrite tests: EBADF tests.
13727         * tests/test-pwrite.c (main): Add tests for EBADF.
13728
13729         pread tests: EBADF tests.
13730         * tests/test-pread.c (main): Add tests for EBADF.
13731
13732         lseek tests: EBADF tests.
13733         * tests/test-lseek.c (main): Add more tests for EBADF.
13734
13735         Tests for module 'ftruncate'.
13736         * modules/ftruncate-tests: New file.
13737         * tests/test-ftruncate.sh: New file.
13738         * tests/test-ftruncate.c: New file.
13739
13740         fsync tests: EBADF tests.
13741         * tests/test-fsync.c (main): Add more tests for EBADF.
13742
13743         fdatasync tests: EBADF tests.
13744         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13745
13746         Tests for module 'fchown'.
13747         * modules/fchown-tests: New file.
13748         * tests/test-fchown.c: New file.
13749
13750         Tests for module 'fchmod'.
13751         * modules/fchmod-tests: New file.
13752         * tests/test-fchmod.c: New file.
13753
13754         fchdir tests: EBADF tests.
13755         * tests/test-fchdir.c (main): Add more tests for EBADF.
13756
13757         dup2 tests: EBADF tests.
13758         * tests/test-dup2.c (main): Add more tests for EBADF.
13759
13760         Tests for module 'dup'.
13761         * modules/dup-tests: New file.
13762         * tests/test-dup.c: New file.
13763
13764         Tests for module 'close'.
13765         * modules/close-tests: New file.
13766         * tests/test-close.c: New file.
13767
13768 2011-09-20  Bruno Haible  <bruno@clisp.org>
13769
13770         Tests for module 'shutdown'.
13771         * modules/shutdown-tests: New file.
13772         * tests/test-shutdown.c: New file.
13773
13774         Tests for module 'setsockopt'.
13775         * modules/setsockopt-tests: New file.
13776         * tests/test-setsockopt.c: New file.
13777
13778         Tests for module 'sendto'.
13779         * modules/sendto-tests: New file.
13780         * tests/test-sendto.c: New file.
13781
13782         Tests for module 'send'.
13783         * modules/send-tests: New file.
13784         * tests/test-send.c: New file.
13785
13786         Tests for module 'recvfrom'.
13787         * modules/recvfrom-tests: New file.
13788         * tests/test-recvfrom.c: New file.
13789
13790         Tests for module 'recv'.
13791         * modules/recv-tests: New file.
13792         * tests/test-recv.c: New file.
13793
13794         Tests for module 'listen'.
13795         * modules/listen-tests: New file.
13796         * tests/test-listen.c: New file.
13797
13798         Tests for module 'getsockopt'.
13799         * modules/getsockopt-tests: New file.
13800         * tests/test-getsockopt.c: New file.
13801
13802         Tests for module 'getsockname'.
13803         * modules/getsockname-tests: New file.
13804         * tests/test-getsockname.c: New file.
13805
13806         Tests for module 'getpeername'.
13807         * modules/getpeername-tests: New file.
13808         * tests/test-getpeername.c: New file.
13809
13810         Tests for module 'connect'.
13811         * modules/connect-tests: New file.
13812         * tests/test-connect.c: New file.
13813
13814         Tests for module 'bind'.
13815         * modules/bind-tests: New file.
13816         * tests/test-bind.c: New file.
13817
13818         accept4 tests: Fix for native Windows.
13819         * tests/test-accept4.c: Include sockets.h.
13820         (main): Invoke gl_sockets_startup.
13821         * modules/accept4-tests (Depends-on): Add sockets.
13822
13823         accept tests: Fix for native Windows.
13824         * tests/test-accept.c: Include sockets.h.
13825         (main): Invoke gl_sockets_startup.
13826         * modules/accept-tests (Depends-on): Add sockets.
13827
13828 2011-09-19  Bruno Haible  <bruno@clisp.org>
13829
13830         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13831         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13832         do...while(0).
13833         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13834         Suggested by Paul Eggert.
13835
13836 2011-09-19  Bruno Haible  <bruno@clisp.org>
13837
13838         sched: Ensure pid_t is defined.
13839         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13840         not define pid_t.
13841         * lib/sched.in.h: Include <sys/types.h>.
13842         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13844
13845 2011-09-19  Bruno Haible  <bruno@clisp.org>
13846
13847         msvc-inval: Ensure the entire expansion is a single statement.
13848         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13849         of braces.
13850
13851 2011-09-19  Jim Meyering  <meyering@redhat.com>
13852
13853         tests: use printf, not echo in init.sh's warn_ function
13854         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13855         misbehave when given strings containing a backslash or starting
13856         with e.g., -n.  James Youngman suggested setting IFS.
13857
13858 2011-09-19  Eric Blake  <eblake@redhat.com>
13859
13860         futimens: enhance test
13861         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13862         closed non-negative fd.
13863
13864         date: accept 'hence' as opposite of 'ago'
13865         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13866         * tests/test-parse-datetime.c (main): Enhance test.
13867         Suggested by Jesse Wilson.
13868
13869 2011-09-19  Jim Meyering  <meyering@redhat.com>
13870
13871         getcwd: don't fail in a deep directory on a system without openat
13872         Before this change, getcwd would fail when called from a directory
13873         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13874         the non-openat implementation used "..", "../..", "../../..", etc.
13875         to access ancestor directories.  With too many, that string would
13876         be longer than PATH_MAX.
13877         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13878         using gnulib's openat replacement.
13879         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13880         we're using the replacement function.
13881
13882 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13883
13884         maint.mk: avoid warnings from perl about missing files
13885         * top/maint.mk (def_sym_regex): Ignore files listed in
13886         $(gl_other_headers_) that do not exist, say because a project
13887         does not use a corresponding module.
13888
13889 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13890
13891         stat: use pathmax.h only if needed
13892         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13893         This is better for Emacs, which does not have a mingw port and
13894         therefore can avoid the pathmax module.
13895
13896         utimens: remove dependency on dup2
13897         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13898         to work around the Linux kernel bug.
13899         * modules/utimens (Depends-on): Remove dup2.
13900
13901 2011-09-18  Bruno Haible  <bruno@clisp.org>
13902
13903         inet_ntop, inet_pton: Look for it also in libresolv.
13904         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13905         libnsl, search for it in libresolv.
13906         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13907         Needed on Solaris 7.
13908
13909 2011-09-18  Bruno Haible  <bruno@clisp.org>
13910
13911         accept, accept4 tests: Avoid link error on Solaris.
13912         * modules/accept-tests (Makefile.am): Link test-accept against
13913         $(LIBSOCKET).
13914         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13915         $(LIBSOCKET).
13916
13917         accept4: Avoid link error on Solaris.
13918         * modules/accept4 (Link): New section.
13919
13920         socket functions: Avoid link errors on Solaris.
13921         * modules/accept (Depends-on): Add socketlib.
13922         (Link): New section.
13923         * modules/bind (Depends-on): Add socketlib.
13924         (Link): New section.
13925         * modules/connect (Depends-on): Add socketlib.
13926         (Link): New section.
13927         * modules/getpeername (Depends-on): Add socketlib.
13928         (Link): New section.
13929         * modules/getsockname (Depends-on): Add socketlib.
13930         (Link): New section.
13931         * modules/getsockopt (Depends-on): Add socketlib.
13932         (Link): New section.
13933         * modules/listen (Depends-on): Add socketlib.
13934         (Link): New section.
13935         * modules/recv (Depends-on): Add socketlib.
13936         (Link): New section.
13937         * modules/recvfrom (Depends-on): Add socketlib.
13938         (Link): New section.
13939         * modules/send (Depends-on): Add socketlib.
13940         (Link): New section.
13941         * modules/sendto (Depends-on): Add socketlib.
13942         (Link): New section.
13943         * modules/setsockopt (Depends-on): Add socketlib.
13944         (Link): New section.
13945         * modules/shutdown (Depends-on): Add socketlib.
13946         (Link): New section.
13947         * modules/socket (Depends-on): Add socketlib.
13948         (Link): New section.
13949
13950 2011-09-18  Bruno Haible  <bruno@clisp.org>
13951
13952         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13953         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13954         than 5 seconds.
13955         * modules/ptsname-tests (configure.ac): Test for alarm.
13956
13957 2011-09-18  Bruno Haible  <bruno@clisp.org>
13958
13959         posix_spawn_file_actions_add*: Fix module dependencies.
13960         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13961         posix_spawn_file_actions_init.
13962         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13963         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13964
13965 2011-09-18  Bruno Haible  <bruno@clisp.org>
13966
13967         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13968         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13969         * tests/test-renameat.c (main): Likewise.
13970
13971 2011-09-18  Bruno Haible  <bruno@clisp.org>
13972
13973         Tests for module 'accept4'.
13974         * modules/accept4-tests: New file.
13975         * tests/test-accept4.c: New file.
13976
13977 2011-09-18  Bruno Haible  <bruno@clisp.org>
13978
13979         Tests for module 'accept'.
13980         * modules/accept-tests: New file.
13981         * tests/test-accept.c: New file.
13982
13983 2011-09-18  Bruno Haible  <bruno@clisp.org>
13984
13985         dup2: Support for MSVC.
13986         * lib/dup2.c: Include msvc-inval.h.
13987         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13988         _get_osfhandle calls.
13989         * modules/dup2 (Depends-on): Add msvc-inval.
13990         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13991
13992         New module 'msvc-inval'.
13993         * lib/msvc-inval.h: New file.
13994         * lib/msvc-inval.c: New file.
13995         * m4/msvc-inval.m4: New file.
13996         * modules/msvc-inval: New file.
13997
13998 2011-09-17  Bruno Haible  <bruno@clisp.org>
13999
14000         Tests for module 'pclose'.
14001         * modules/pclose-tests: New file.
14002
14003         New module 'pclose'.
14004         * lib/stdio.in.h (pclose): New declaration.
14005         * lib/pclose.c: New file.
14006         * m4/pclose.m4: New file.
14007         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14008         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14009         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14010         * modules/pclose: New file.
14011         * modules/popen-tests (Depends-on): Add pclose.
14012         * modules/popen-safer-tests (Depends-on): Likewise.
14013         * doc/posix-functions/pclose.texi: Mention the new module.
14014
14015 2011-09-17  Bruno Haible  <bruno@clisp.org>
14016
14017         popen: Support for MSVC.
14018         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14019         * lib/popen.c (popen): Provide alternate definition for native Windows.
14020         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14022         * modules/popen (Depends-on, configure.ac): Update condition.
14023         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14024         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14025         fixed.
14026
14027 2011-09-17  Bruno Haible  <bruno@clisp.org>
14028
14029         isnanl, isnand, isnanf: Work around MSVC bug.
14030         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14031
14032 2011-09-17  Bruno Haible  <bruno@clisp.org>
14033
14034         sys_socket tests: Fix recent mistake.
14035         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14036
14037 2011-09-17  Bruno Haible  <bruno@clisp.org>
14038
14039         putenv: Support for MSVC.
14040         * modules/putenv (Depends-on): Add environ.
14041         * lib/putenv.c (environ): Disable declaration.
14042         * lib/unistd.in.h: Update comment.
14043
14044 2011-09-17  Bruno Haible  <bruno@clisp.org>
14045
14046         math: Avoid macro redefinition warnings on MSVC.
14047         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14048         Undefine before redefining.
14049
14050 2011-09-17  Bruno Haible  <bruno@clisp.org>
14051
14052         doc: Mention functions which are declared as macros.
14053         * doc/posix-functions/*[fl].texi: Mention that some functions are
14054         defined as macros with arguments only.
14055
14056 2011-09-17  Bruno Haible  <bruno@clisp.org>
14057
14058         Add dependencies to new dirent related modules.
14059         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14060         * modules/fts (Depends-on): Likewise.
14061         * modules/glob (Depends-on): Likewise.
14062         * modules/savedir (Depends-on): Likewise.
14063         * modules/scandir (Depends-on): Likewise.
14064         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14065         * modules/fdopendir (Depends-on): Add opendir.
14066
14067 2011-09-17  Bruno Haible  <bruno@clisp.org>
14068
14069         inet_pton: Support for MSVC on Windows Vista or newer.
14070         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14071         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14072         HAVE_DECL_INET_PTON is defined.
14073         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14074         On platforms with <winsock2.h>, test whether inet_pton is declared in
14075         <ws2tcpip.h>. If so, arrange to replace it.
14076         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14077         REPLACE_INET_PTON.
14078         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14079         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14080         (Depends-on, configure.ac): Update condition.
14081         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14082
14083 2011-09-17  Bruno Haible  <bruno@clisp.org>
14084
14085         inet_ntop: Support for MSVC on Windows Vista or newer.
14086         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14087         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14088         HAVE_DECL_INET_NTOP is defined.
14089         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14090         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14091         <ws2tcpip.h>. If so, arrange to replace it.
14092         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14093         REPLACE_INET_NTOP.
14094         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14095         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14096         (Depends-on, configure.ac): Update condition.
14097         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14098
14099 2011-09-16  Eric Blake  <eblake@redhat.com>
14100
14101         test-fsync: yet another enhancement
14102         * tests/test-fsync.c (main): Also test behavior on read-only text
14103         file.
14104
14105 2011-09-16  Bruno Haible  <bruno@clisp.org>
14106
14107         Enhance fsync, fdatasync tests.
14108         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14109         * tests/test-fdatasync.c (main): Likewise.
14110
14111 2011-09-16  Bruno Haible  <bruno@clisp.org>
14112
14113         Support for MSVC compiler: Ensure mode_t gets defined.
14114         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14115         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14117         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14118         * tests/test-fcntl-h.c: Check that mode_t is defined.
14119         * tests/test-sys_stat.c: Likewise.
14120         * tests/test-sys_types.c: Likewise.
14121         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14122         * doc/posix-headers/sys_stat.texi: Likewise.
14123         * doc/posix-headers/sys_types.texi: Likewise.
14124
14125 2011-09-16  Bruno Haible  <bruno@clisp.org>
14126
14127         sys_stat: Support for MSVC.
14128         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14129         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14130         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14131         MSVC.
14132
14133 2011-09-16  Bruno Haible  <bruno@clisp.org>
14134
14135         Support for MSVC compiler: Ensure off_t gets defined.
14136         * lib/unistd.in.h: Include <sys/types.h>.
14137         * tests/test-fcntl-h.c: Check that off_t is defined.
14138         * tests/test-sys_stat.c: Likewise.
14139         * tests/test-sys_types.c: Likewise.
14140
14141 2011-09-16  Eric Blake  <eblake@redhat.com>
14142
14143         fdatasync: port to Solaris
14144         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14145         * modules/fdatasync (Link): Document it.
14146         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14147
14148         fdatasync: port to MacOS X 10.7
14149         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14150         declared.
14151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14152         * modules/unistd (Makefile.am): Substitute it.
14153         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14154         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14155
14156         fdatasync: minor improvements
14157         * modules/fdatasync (Depends-on): Add condition for fsync.
14158         * lib/fdatasync.c (fdatasync): Add comment.
14159         * tests/test-unistd-c++.cc: Test fdatasync.
14160
14161         unistd: update refs to newer POSIX
14162         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14163         Suggested by Bruno Haible.
14164
14165         fdatasync: new module
14166         * modules/fsync (Description): Document difference to fdatasync.
14167         * modules/fdatasync: New module.
14168         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14169         * lib/fdatasync.c (fdatasync): Likewise.
14170         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14171         defaults.
14172         * modules/unistd (Makefile.am): Set witnesses.
14173         * lib/unistd.in.h (fdatasync): Declare.
14174         * MODULES.html.sh: Document it.
14175         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14176         * modules/fdatasync-tests: New test.
14177         * tests/test-fdatasync.c: Likewise.
14178
14179 2011-09-16  Eric Blake  <eblake@redhat.com>
14180
14181         test-fsync: enhance tests
14182         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14183         * tests/test-fsync.c (main): Enhance test.
14184
14185 2011-09-15  Bruno Haible  <bruno@clisp.org>
14186
14187         Support for MSVC compiler: Ensure ssize_t gets defined.
14188         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14189         * doc/posix-headers/stdio.texi: Likewise.
14190         * modules/stdio (Depends-on): Add ssize_t.
14191         * modules/sys_socket (Depends-on): Likewise.
14192         * modules/sys_types (Depends-on): Likewise.
14193         * modules/sys_uio (Depends-on): Likewise.
14194         * modules/unistd (Depends-on): Likewise.
14195         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14196         * tests/test-sys_types.c: Check that ssize_t is defined.
14197
14198 2011-09-14  Bruno Haible  <bruno@clisp.org>
14199
14200         Avoid using #, the m4 comment starter character, near brackets.
14201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14202         delimiter character in sed expressions.
14203         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14204         Suggested by Eric Blake.
14205
14206         Properly quote AC_CHECK_DECLS' 4th argument.
14207         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14208         argument.
14209         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14210         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14212         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14213         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14214         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14215         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14216         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14217         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14218         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14219         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14220         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14221         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14222         * m4/isinf.m4 (gl_ISINF): Likewise.
14223         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14224         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14225         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14226         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14229         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14230         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14231         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14232         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14233         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14236         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14238         Reported by Eric Blake.
14239
14240         Properly quote AC_CHECK_DECL's 4th argument.
14241         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14242         argument.
14243         * m4/argp.m4 (gl_ARGP): Likewise.
14244         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14245         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14246         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14247         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14248         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14249         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14250         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14251         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14252         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14253         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14254         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14255         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14256         Reported by Eric Blake.
14257
14258 2011-09-14  Eric Blake  <eblake@redhat.com>
14259
14260         opendir: avoid compile warning
14261         * lib/opendir.c (includes): Always include errno.h.
14262         Reported by Tatsuro MATSUOKA.
14263
14264 2011-09-14  Jim Meyering  <meyering@redhat.com>
14265
14266         maint.mk: sc_tight_scope: propagate failure from sub-make
14267         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14268         Reported by Martin von Gagern.
14269
14270 2011-09-13  Bruno Haible  <bruno@clisp.org>
14271
14272         tempname: Support for MSVC.
14273         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14274         MSVC.
14275         * modules/tempname (Depends-on): Add fcntl-h.
14276
14277 2011-09-13  Bruno Haible  <bruno@clisp.org>
14278
14279         sys_time: Support for MSVC.
14280         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14281         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14282         include <winsock2.h>.
14283         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14284         function declarations that collide with POSIX.
14285         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14286         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14287
14288 2011-09-13  Bruno Haible  <bruno@clisp.org>
14289
14290         stat: Support for MSVC.
14291         * lib/stat.c: Include pathmax.h.
14292         * modules/stat (Depends-on): Add pathmax.
14293
14294         pathmax: Support for native Windows.
14295         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14296
14297 2011-09-12  Bruno Haible  <bruno@clisp.org>
14298
14299         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14300         * lib/dirent.in.h (struct dirent): New type.
14301         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14302         DT_WHT): New macros.
14303         (DIR): New type.
14304         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14305         (readdir, rewinddir): New declarations.
14306         * lib/dirent-private.h: New file.
14307         * lib/opendir.c: New file.
14308         * lib/readdir.c: New file.
14309         * lib/rewinddir.c: New file.
14310         * lib/closedir.c: New file.
14311         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14312         * m4/opendir.m4: New file.
14313         * m4/readdir.m4: New file.
14314         * m4/rewinddir.m4: New file.
14315         * m4/closedir.m4: New file.
14316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14317         REPLACE_CLOSEDIR here.
14318         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14319         readdir, rewinddir are declared.
14320         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14321         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14322         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14323         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14324         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14325         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14326         * modules/opendir: New file.
14327         * modules/readdir: New file.
14328         * modules/rewinddir: New file.
14329         * modules/closedir: New file.
14330         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14331         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14332         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14333         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14334         * NEWS: Mention the 'fchdir' change.
14335
14336 2011-09-11  Bruno Haible  <bruno@clisp.org>
14337
14338         asm-underscore.m4: Support for MSVC.
14339         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14340         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14341
14342 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14343
14344         Doc about crypt functions.
14345         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14346         needing for _GNU_SOURCE to get crypt.
14347         * doc/posix-functions/encrypt.texi: Likewise.
14348         * doc/posix-functions/setkey.texi: Likewise.
14349
14350 2011-09-11  Bruno Haible  <bruno@clisp.org>
14351
14352         doc: Update regarding MSVC 9.
14353         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14354         tested".
14355         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14356         * doc/posix-headers/*.texi: Likewise.
14357         * doc/pastposix-functions/*.texi: Likewise.
14358         * doc/glibc-functions/*.texi: Likewise.
14359         * doc/glibc-headers/*.texi: Likewise.
14360
14361 2011-09-11  Bruno Haible  <bruno@clisp.org>
14362
14363         unistd et al.: Don't assume <unistd.h> exists.
14364         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14365         does not exist.
14366         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14367         exist. But include <stdlib.h>.
14368         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14369         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14370         symlink() does not exist.
14371         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14372         include <io.h> instead.
14373         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14374         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14375         include <direct.h> instead.
14376         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14377         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14378         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14379         <io.h> instead.
14380         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14381         correctly if the system does not have hard links.
14382         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14383         <direct.h> instead.
14384         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14385         it when looking for function declarations.
14386         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14387         <direct.h> and <io.h> instead.
14388         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14389
14390 2011-09-11  Bruno Haible  <bruno@clisp.org>
14391
14392         strcase: Support for MSVC.
14393         * modules/strcase (Status, Notice): Remove obsoletion mark.
14394         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14395         * doc/posix-functions/strncasecmp.texi: Likewise.
14396
14397         strings: Don't assume <strings.h> exists.
14398         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14399         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14400         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14401         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14402
14403 2011-09-11  Bruno Haible  <bruno@clisp.org>
14404
14405         dirent: Don't assume <dirent.h> exists.
14406         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14407         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14408         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14409         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14410
14411 2011-09-11  Bruno Haible  <bruno@clisp.org>
14412
14413         Fix wint_t on MSVC.
14414         * lib/wchar.in.h (wint_t): On MSVC, override it.
14415         * lib/wctype.in.h (wint_t): Likewise.
14416         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14417         MSVC.
14418         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14419         * doc/posix-headers/wctype.texi: Likewise.
14420
14421 2011-09-11  Bruno Haible  <bruno@clisp.org>
14422
14423         sys_types: Fix typo.
14424         * lib/sys_types.in.h: Fix typo in comment.
14425         Reported by Paul Eggert.
14426
14427         Support for MSVC compiler: Ensure size_t gets defined.
14428         * modules/strings (Depends-on): Add 'sys_types'.
14429         * modules/sys_uio (Depends-on): Likewise.
14430         * lib/sys_uio.in.h: Update comment.
14431
14432         C++ tests for module 'sys_types'.
14433         * modules/sys_types-c++-tests: New file.
14434         * tests/test-sys_types-c++.cc: New file.
14435
14436         Tests for module 'sys_types'.
14437         * modules/sys_types-tests: New file.
14438         * tests/test-sys_types.c: New file.
14439
14440         New module 'sys_types'.
14441         * lib/sys_types.in.h: New file.
14442         * m4/sys_types_h.m4: New file.
14443         * modules/sys_types: New file.
14444         * doc/posix-headers/sys_types.texi: Mention the new module and the
14445         size_t problem on MSVC 9.
14446
14447 2011-09-11  Bruno Haible  <bruno@clisp.org>
14448
14449         Support for MSVC compiler: Avoid division by a literal 0.
14450         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14452         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14453         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14454         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14455         * tests/infinity.h: New file.
14456         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14457         on MSVC.
14458         * tests/test-ceilf1.c: Include infinity.h.
14459         (main): Use Infinityf.
14460         * tests/test-ceil1.c: Include infinity.h.
14461         (main): Use Infinityd.
14462         * tests/test-ceill.c: Include infinity.h.
14463         (main): Use Infinityl.
14464         * tests/test-dprintf-posix.c: Include infinity.h.
14465         (test_function): Use Infinityd.
14466         * tests/test-floorf1.c: Include infinity.h.
14467         (main): Use Infinityf.
14468         * tests/test-floor1.c: Include infinity.h.
14469         (main): Use Infinityd.
14470         * tests/test-floorl.c: Include infinity.h.
14471         (main): Use Infinityl.
14472         * tests/test-fprintf-posix.c: Include infinity.h.
14473         (test_function): Use Infinityd.
14474         * tests/test-frexp.c: Include infinity.h.
14475         (main): Use Infinityd.
14476         * tests/test-frexpl.c: Include infinity.h.
14477         (main): Use Infinityl.
14478         * tests/test-isfinite.c: Include infinity.h.
14479         (test_isfinitef): Use Infinityf.
14480         (test_isfinited): Use Infinityd.
14481         (test_isfinitel): Use Infinityl.
14482         * tests/test-isinf.c: Include infinity.h.
14483         (test_isinff): Use Infinityf.
14484         (test_isinfd): Use Infinityd.
14485         (test_isinfl): Use Infinityl.
14486         * tests/test-isnan.c: Include infinity.h.
14487         (test_float): Use Infinityf.
14488         (test_double): Use Infinityd.
14489         (test_long_double): Use Infinityl.
14490         * tests/test-isnanf.h: Include infinity.h.
14491         (main): Use Infinityf.
14492         * tests/test-isnand.h: Include infinity.h.
14493         (main): Use Infinityd.
14494         * tests/test-isnanl.h: Include infinity.h.
14495         (main): Use Infinityl.
14496         * tests/test-ldexpl.c: Include infinity.h.
14497         (main): Use Infinityl.
14498         * tests/test-printf-posix.h: Include infinity.h.
14499         (test_function): Use Infinityd.
14500         * tests/test-roundf1.c: Include infinity.h.
14501         (main): Use Infinityf.
14502         * tests/test-round1.c: Include infinity.h.
14503         (main): Use Infinityd.
14504         * tests/test-roundl.c: Include infinity.h.
14505         (main): Use Infinityl.
14506         * tests/test-signbit.c: Include infinity.h.
14507         (test_signbitf): Use Infinityf.
14508         (test_signbitd): Use Infinityd.
14509         (test_signbitl): Use Infinityl.
14510         * tests/test-snprintf-posix.h: Include infinity.h.
14511         (test_function): Use Infinityd, Infinityl.
14512         * tests/test-sprintf-posix.h: Include infinity.h.
14513         (test_function): Use Infinityd, Infinityl.
14514         * tests/test-truncf1.c: Include infinity.h.
14515         (main): Use Infinityf.
14516         * tests/test-trunc1.c: Include infinity.h.
14517         (main): Use Infinityd.
14518         * tests/test-truncl.c: Include infinity.h.
14519         (main): Use Infinityl.
14520         * tests/test-vasnprintf-posix.c: Include infinity.h.
14521         (test_function): Use Infinityd, Infinityl.
14522         * tests/test-vasprintf-posix.c: Include infinity.h.
14523         (test_function): Use Infinityd, Infinityl.
14524         * modules/ceilf-tests (Files): Add tests/infinity.h.
14525         * modules/ceil-tests (Files): Likewise.
14526         * modules/ceill-tests (Files): Likewise.
14527         * modules/dprintf-posix-tests (Files): Likewise.
14528         * modules/floorf-tests (Files): Likewise.
14529         * modules/floor-tests (Files): Likewise.
14530         * modules/floorl-tests (Files): Likewise.
14531         * modules/fprintf-posix-tests (Files): Likewise.
14532         * modules/frexp-tests (Files): Likewise.
14533         * modules/frexp-nolibm-tests (Files): Likewise.
14534         * modules/frexpl-tests (Files): Likewise.
14535         * modules/frexpl-nolibm-tests (Files): Likewise.
14536         * modules/isfinite-tests (Files): Likewise.
14537         * modules/isinf-tests (Files): Likewise.
14538         * modules/isnan-tests (Files): Likewise.
14539         * modules/isnanf-tests (Files): Likewise.
14540         * modules/isnanf-nolibm-tests (Files): Likewise.
14541         * modules/isnand-tests (Files): Likewise.
14542         * modules/isnand-nolibm-tests (Files): Likewise.
14543         * modules/isnanl-tests (Files): Likewise.
14544         * modules/isnanl-nolibm-tests (Files): Likewise.
14545         * modules/ldexpl-tests (Files): Likewise.
14546         * modules/printf-posix-tests (Files): Likewise.
14547         * modules/roundf-tests (Files): Likewise.
14548         * modules/round-tests (Files): Likewise.
14549         * modules/roundl-tests (Files): Likewise.
14550         * modules/signbit-tests (Files): Likewise.
14551         * modules/snprintf-posix-tests (Files): Likewise.
14552         * modules/sprintf-posix-tests (Files): Likewise.
14553         * modules/truncf-tests (Files): Likewise.
14554         * modules/trunc-tests (Files): Likewise.
14555         * modules/truncl-tests (Files): Likewise.
14556         * modules/vasnprintf-posix-tests (Files): Likewise.
14557         * modules/vasprintf-posix-tests (Files): Likewise.
14558         * modules/vdprintf-posix-tests (Files): Likewise.
14559         * modules/vfprintf-posix-tests (Files): Likewise.
14560         * modules/vprintf-posix-tests (Files): Likewise.
14561         * modules/vsnprintf-posix-tests (Files): Likewise.
14562         * modules/vsprintf-posix-tests (Files): Likewise.
14563         * modules/xprintf-posix-tests (Files): Likewise.
14564
14565 2011-09-11  Bruno Haible  <bruno@clisp.org>
14566
14567         Ensure pid_t gets defined.
14568         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14569         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14570         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14571         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14572         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14573         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14574         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14575         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14576         * tests/test-fcntl-h.c: Check that pid_t is defined.
14577         * tests/test-sched.c: Likewise.
14578         * tests/test-termios.c: Likewise.
14579         * tests/test-time.c: Likewise.
14580         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14581         * doc/posix-headers/signal.texi: Likewise.
14582         * doc/posix-headers/sys_types.texi: Likewise.
14583         * doc/posix-headers/time.texi: Likewise.
14584
14585 2011-09-11  Bruno Haible  <bruno@clisp.org>
14586
14587         acl: Fix compilation on Solaris 10 (older version).
14588         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14589         of ACE_EVERYONE.
14590         * lib/set-mode-acl.c (qset_acl): Likewise.
14591         Reported by Christian Jullien <eligis@orange.fr>.
14592
14593 2011-09-10  Bruno Haible  <bruno@clisp.org>
14594
14595         iconv, unsetenv: Add support for MSVC compiler.
14596         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14597         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14598
14599 2011-09-10  Bruno Haible  <bruno@clisp.org>
14600
14601         *printf: Add support for MSVC compiler.
14602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14603         handles the exception caused by the %n directive. When cross-compiling,
14604         guess no on native Windows.
14605         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14606         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14607         emulate it through vsnprintf.
14608         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14609         * doc/posix-functions/dprintf.texi: Update documentation regarding
14610         MSVC 9.
14611         * doc/posix-functions/fprintf.texi: Likewise.
14612         * doc/posix-functions/printf.texi: Likewise.
14613         * doc/posix-functions/snprintf.texi: Likewise.
14614         * doc/posix-functions/sprintf.texi: Likewise.
14615         * doc/posix-functions/swprintf.texi: Likewise.
14616         * doc/posix-functions/vdprintf.texi: Likewise.
14617         * doc/posix-functions/vfprintf.texi: Likewise.
14618         * doc/posix-functions/vprintf.texi: Likewise.
14619         * doc/posix-functions/vsnprintf.texi: Likewise.
14620         * doc/posix-functions/vsprintf.texi: Likewise.
14621         * doc/glibc-functions/asprintf.texi: Likewise.
14622         * doc/glibc-functions/obstack_printf.texi: Likewise.
14623         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14624         * doc/glibc-functions/vasprintf.texi: Likewise.
14625
14626 2011-09-10  Bruno Haible  <bruno@clisp.org>
14627
14628         nocrash: Add support for native Windows.
14629         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14630
14631 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14632             Bruno Haible  <bruno@clisp.org>
14633
14634         absolute-header, include-next: Add support for MSVC compiler.
14635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14636         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14637         directory separator in #line directives.
14638         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14639         recognize also backslash as directory separator in #line directives.
14640
14641 2011-09-08  Jim Meyering  <meyering@redhat.com>
14642
14643         maint.mk: mark the post-release commit log with "maint: " prefix
14644         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14645         one-line commit-log summary.
14646
14647 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14648             Bruno Haible  <bruno@clisp.org>
14649
14650         Doc about crypt functions.
14651         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14652         systems.
14653         * doc/posix-functions/encrypt.texi: Likewise.
14654         * doc/posix-functions/setkey.texi: Likewise.
14655
14656 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14657
14658         * lib/gc.h: Fix copyright header.
14659
14660 2011-09-07  Bruno Haible  <bruno@clisp.org>
14661
14662         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14663         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14664         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14665
14666 2011-09-07  Bruno Haible  <bruno@clisp.org>
14667
14668         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14669         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14670         * lib/freopen.c: Likewise.
14671         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14672         * lib/lstat.c: Likewise.
14673         * lib/stat.c: Likewise.
14674         * lib/open.c: Use different syntax for include of <fcntl.h>.
14675         * lib/openat.c: Include fcntl.h again, explicitly.
14676
14677 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14678
14679         parse-datetime: document the newly accepted format
14680         * doc/parse-datetime.texi (Combined date and time of day items):
14681         New section.
14682
14683 2011-09-06  Bruno Haible  <bruno@clisp.org>
14684
14685         acl: Fix a test failure on newer Solaris 10 with ZFS.
14686         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14687         ENOSYS as no ACL.
14688         Reported by Jim Meyering.
14689
14690 2011-09-06  Bruno Haible  <bruno@clisp.org>
14691
14692         acl: Update for AIX >= 5.3 with NFS.
14693         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14694         ENOSYS as no ACL.
14695
14696         acl: Fix a test failure on AIX >= 5.3 with NFS.
14697         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14698         as no ACL.
14699
14700 2011-09-06  Bruno Haible  <bruno@clisp.org>
14701
14702         acl: Fix a test failure on IRIX 6.5 with NFS.
14703         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14704         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14705         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14706         * lib/copy-acl.c (qcopy_acl): Likewise.
14707
14708 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14709
14710         openat: port to AIX 7.1 with large files
14711         AIX 7.1 does a "#define openat open64at" if large files are in use,
14712         so we can't simply #undef openat.  Use the orig_openat trick (similar
14713         to orig_open in lib/open.c) to work around the problem.  Problem
14714         reported by Kevin Brott for GNU tar, in the thread containing
14715         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14716         * lib/openat.c (__need_system_fcntl_h): Define first.
14717         Include <fcntl.h> and <sys/types.h> before undefining.
14718         (orig_openat) [HAVE_OPENAT]: New inline function.
14719         (openat) [HAVE_OPENAT]: Do not undef.
14720         (rpl_openat): Use orig_openat, not openat.
14721
14722 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14723             Bruno Haible  <bruno@clisp.org>
14724
14725         acl: Avoid errors on NonStop Kernel.
14726         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14727         ENOTSUP errors.
14728
14729 2011-09-05  Bruno Haible  <bruno@clisp.org>
14730
14731         acl: Clean up Solaris code.
14732         * lib/acl-internal.h: Remove no-op #if.
14733         * lib/file-has-acl.c: Likewise.
14734         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14735         * lib/copy-acl.c (qcopy_acl): Likewise.
14736
14737 2011-09-05  Bruno Haible  <bruno@clisp.org>
14738
14739         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14740         binaries built on the original Solaris 10.
14741         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14742         trivial.
14743
14744 2011-09-05  Bruno Haible  <bruno@clisp.org>
14745
14746         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14747         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14748         10.
14749         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14750         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14751         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14752         instead of acl_get, facl_get, acl_set, facl_set.
14753
14754 2011-09-05  Bruno Haible  <bruno@clisp.org>
14755
14756         copy-file: Try unit tests on more file systems.
14757         * tests/test-copy-file-1.sh: New file.
14758         * tests/test-copy-file-2.sh: New file.
14759         * modules/copy-file-tests (Files): Add them.
14760         (Makefile.am): Add them to TESTS.
14761
14762         acl: Try unit tests on more file systems.
14763         * tests/test-file-has-acl-1.sh: New file.
14764         * tests/test-file-has-acl-2.sh: New file.
14765         * tests/test-set-mode-acl-1.sh: New file.
14766         * tests/test-set-mode-acl-2.sh: New file.
14767         * tests/test-copy-acl-1.sh: New file.
14768         * tests/test-copy-acl-2.sh: New file.
14769         * modules/acl-tests (Files): Add them.
14770         (Makefile.am): Add them to TESTS.
14771
14772 2011-09-04  Bruno Haible  <bruno@clisp.org>
14773
14774         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14775         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14776         10.
14777         (OLD_ALLOW, OLD_DENY): New macros.
14778         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14779         ACE_ACCESS_ALLOWED_ACE_TYPE.
14780         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14781         ACE_ACCESS_DENIED_ACE_TYPE.
14782         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14783         (NEW_ACE_EXECUTE): Fix value.
14784         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14785         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14786         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14787         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14788         NEW_ACE_SYNCHRONIZE): New macros.
14789         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14790         instead of acl_fromtext, acl_set, facl_set.
14791         Fixes a coreutils/tests/cp/perm failure.
14792
14793 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14794
14795         openat: test for fstatat (..., 0) bug
14796         Further testing with tar suggests that fstatat (..., 0)
14797         does not work in general, on AIX 7.1; see
14798         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14799         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14800         replacement fstatat (which is what older AIX releases were using
14801         anyway).
14802         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14803         use is now changed to orig_fstatat.  This was probably the right
14804         thing to do anyway.
14805         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14806         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14807         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14808         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14809         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14810         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14811         if the bug is found.
14812
14813         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14814         This tests for another fstatat bug on AIX 7.1:
14815         fstatat (AT_FDCWD, ..., 0) does not work.  See
14816         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14817         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14818         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14819         (rpl_fstatat): Adjust so that it works around either (or both)
14820         bugs if present.
14821         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14822
14823 2011-09-03  Karl Berry  <karl@gnu.org>
14824
14825         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14826         in index entries.
14827
14828 2011-09-02  Bruno Haible  <bruno@clisp.org>
14829
14830         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14831         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14832         values of AR, ARFLAGS, RANLIB.
14833         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14834
14835 2011-09-02  Bruno Haible  <bruno@clisp.org>
14836
14837         Find 'ar' program that fits with --host argument.
14838         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14839
14840 2011-09-02  Bruno Haible  <bruno@clisp.org>
14841
14842         tests: init.sh: Support any non-GNU diff.
14843         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14844         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14845         Solaris 8.
14846
14847 2011-09-02  Bruno Haible  <bruno@clisp.org>
14848
14849         tests: init.sh: work also with any non-GNU diff that supports -u
14850         * tests/init.sh: Relax check for diff -u support.
14851         Rather than checking for GNU diff via --version, simply check
14852         for support for -u itself.  Useful at least on OpenBSD 4.9,
14853         AIX 7.1, IRIX 6.5, and Solaris 10.
14854
14855 2011-09-01  Bruno Haible  <bruno@clisp.org>
14856
14857         strtoimax, strtoumax: Document problem on HP-UX 11.
14858         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14859         * doc/posix-functions/strtoumax.texi: Likewise.
14860
14861 2011-09-01  Bruno Haible  <bruno@clisp.org>
14862
14863         strtoumax: Avoid link error on OSF/1 with DTK cc.
14864         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14865         defined as a function.
14866         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14867         strtoumax is defined, not whether it is declared.
14868
14869 2011-09-01  Bruno Haible  <bruno@clisp.org>
14870
14871         strtoimax: Avoid link error on OSF/1 with DTK cc.
14872         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14873         defined as a function.
14874         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14875         strtoimax is defined, not whether it is declared.
14876
14877 2011-09-01  Bruno Haible  <bruno@clisp.org>
14878
14879         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14880         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14881         as a function.
14882         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14883         whether it is declared.
14884
14885 2011-09-01  Bruno Haible  <bruno@clisp.org>
14886
14887         imaxabs: Avoid link error on OSF/1 with DTK cc.
14888         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14889         as a function.
14890         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14891         whether it is declared.
14892
14893 2011-09-01  Bruno Haible  <bruno@clisp.org>
14894
14895         Tests for module 'strtoumax'.
14896         * modules/strtoumax-tests: New file.
14897         * tests/test-strtoumax.c: New file.
14898
14899         Tests for module 'strtoimax'.
14900         * modules/strtoimax-tests: New file.
14901         * tests/test-strtoimax.c: New file.
14902
14903         Tests for module 'imaxdiv'.
14904         * modules/imaxdiv-tests: New file.
14905         * tests/test-imaxdiv.c: New file.
14906
14907         Tests for module 'imaxabs'.
14908         * modules/imaxabs-tests: New file.
14909         * tests/test-imaxabs.c: New file.
14910
14911 2011-09-01  Bruno Haible  <bruno@clisp.org>
14912
14913         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14914         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14915         pthread_create.
14916
14917 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14918
14919         openat: work around AIX 7.1 fstatat issue
14920         This should fix the problem that was not properly fixed
14921         in the previous change, dated 2011-08-30.
14922         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14923         __need_system_stat_h defined.
14924         (orig_fstatat) [HAVE_FSTATAT]: New function.
14925         (rpl_fstatat): Go back to the old way of doing things,
14926         except call orig_fstatat instead of fstatat.
14927         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14928         Remove unnecessary check whether fstatat fills in st_size etc.
14929
14930 2011-09-01  Bruno Haible  <bruno@clisp.org>
14931
14932         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14933         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14934         just include the system's header.
14935
14936 2011-08-31  Jim Meyering  <meyering@redhat.com>
14937
14938         tests: avoid spurious assertion failure in test-float.c on ppc64
14939         * tests/test-float.c (test_long_double): Comment out an assertion,
14940         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14941         with gcc-4.4.4.
14942
14943         maint: indent with spaces, not TABs
14944         I need to get in the habit of running gnulib's "make check".
14945         Both of these would have been caught.
14946         * m4/largefile.m4: Indent with spaces, not TABs.
14947         * lib/parse-datetime.y (iso_8601_time): Likewise.
14948         Spotted by Pádraig Brady.
14949
14950         test-parse-datetime.c: accommodate a relatively strict gcc warning
14951         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14952         to avoid a warning from gcc's -Werror=missing-declarations.
14953         Insert a few spaces-before-funcall-parenthesis.
14954
14955 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14956
14957         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14958         The parser now accepts ISO 8601 date-time strings with "T" as the
14959         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14960         with a space between the date and time strings.  Now it also parses
14961         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14962         variants like "2004-02-29T16:21:42.333-07:00"
14963         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14964         of day representation using the 'T' separator character.
14965         * doc/parse-datetime.texi (General date syntax): replace use of
14966         deprecated --iso-8601 option with --rfc-3339 in example of date
14967         command output formats that can be parsed.
14968         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14969         lib/parse-datetime.y.
14970         (gmt_offset): New function.
14971         (main): Add additional test cases to validate ISO8601 extended
14972         date and time of day parsing.
14973
14974 2011-08-31  Bruno Haible  <bruno@clisp.org>
14975
14976         freopen: Documentation.
14977         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14978         name.
14979         Reported by Claudio Bley <claudio.bley@gmail.com>.
14980
14981 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14982
14983         freopen: Don't crash if the filename argument is NULL.
14984         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14985         NULL.
14986
14987 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14988
14989         openat: work around AIX 7.1 fstatat bug
14990         Problem reported by Kevin Brott for GNU tar, in the thread containing
14991         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14992         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14993         FSTATAT_ST_SIZE_ETC_BROKEN.
14994         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14995         rpl_fstatat.
14996         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14997         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14998         AC_CHECK_FUNCS_ONCE for fstatat.
14999         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15000         fchmodat, mkdirat, openat and unlinkat.
15001
15002 2011-08-30  Bruno Haible  <bruno@clisp.org>
15003
15004         Avoid endless recursions if config.h includes some header files.
15005         * lib/fopen.c (__need_FILE): Define already before including config.h.
15006         * lib/freopen.c (__need_FILE): Likewise.
15007         * lib/open.c (__need_system_fcntl_h): Likewise.
15008         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15009         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15010         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15011
15012 2011-08-25  Karl Berry  <karl@gnu.org>
15013
15014         * config/srclist.txt (ylwrap): new try.
15015         * build-aux/ylwrap: new file.
15016
15017 2011-08-23  Bruno Haible  <bruno@clisp.org>
15018
15019         tmpdir: Use a good default directory on native Windows.
15020         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15021         (P_tmpdir): Default to _P_tmpdir on native Windows.
15022         (path_search): On native Windows, try the value returned by GetTempPath
15023         before trying P_tmpdir.
15024         * modules/tmpdir (Depends-on): Add pathmax.
15025         Suggested by John Darrington <john@darrington.wattle.id.au>.
15026
15027 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15028
15029         doc: fix typo in README-release
15030         * top/README-release: Capitalize first word of a sentence.
15031
15032 2011-08-19  Jim Meyering  <meyering@redhat.com>
15033
15034         fts: do not exhaust memory when processing million-entry directories
15035         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15036         directory would require about 256*N bytes of memory.  Thus, it was
15037         easy to construct a directory too large to be processed by any of
15038         those tools.  With this change, fts' maximum memory utilization is
15039         now limited to around 30MB.
15040         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15041         (fts_read): When we've processed the final entry (i.e., when
15042         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15043         using the parent entry to read any remaining entries.  Dispatch
15044         depending on what fts_build returns:
15045         - NULL+stop, aka failure: stop
15046         - NULL otherwise: move up in the dir hierarchy
15047         - non-NULL: handle this new entry
15048         (fts_build): Declare and use new local, continue_readdir.
15049         Prepare to be called from fts_read, when the entries
15050         from a partially-read directory have just been exhausted.
15051         In that case, we'll skip the opendir and instead use the parent's
15052         fts_dirp and derive dir_fd from that.
15053         Finally, in the readdir loop, if we read max_entries entries,
15054         exit the loop ensuring *not* to call closedir.  This is required
15055         so that fts_dirp can be reused on a subsequent call.
15056         Prompted by Ben England's report of memory exhaustion in find
15057         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15058
15059         maint: fts: move decl of `dp' down into while loop; split a long line
15060         * lib/fts.c (fts_build): No semantic change.
15061
15062         fts: add/use new struct member, fts_dirp
15063         We are about to use this to manage any directory with
15064         too many entries to read all of them into memory at once.
15065         To do that, we'll need to save the DIR* pointer in each
15066         affected FTSENT struct.
15067         * lib/fts_.h: Include <dirent.h>.
15068         (struct FTSENT) [fts_dirp]: New member.
15069         * lib/fts.c (closedir_and_clear): Define.
15070         Use it in place of closedir so that we are sure to
15071         clear the new fts_dirp member when done with it.
15072         (fts_alloc): Initialize the new member.
15073         (fts_lfree): Free, if needed.
15074
15075         maint: fts: give __opendir2 a new parameter and rename
15076         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15077         than surreptitiously using sole caller's "dir_fd".
15078         (fts_opendir): Rename from __opendir2.
15079
15080         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15081         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15082
15083         maint: fts.c: correct off-by-one indentation
15084         * lib/fts.c (fts_build): Correct indentation, change style
15085         of a couple of block comments, and bracing style.
15086
15087         maint: fts.c: move __opendir2 #define "up" out of function body
15088         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15089
15090         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15091         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15092         out for a long time and besides was useful only on BSD systems.
15093
15094 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15095
15096         regex: port to Stratus OpenVOS
15097         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15098         define to empty, rather than attempting nonportable optimizations.
15099         Problem reported by Paul Green in:
15100         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15101         and fix suggested by Eric Blake in:
15102         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15103
15104 2011-08-17  Eric Blake  <eblake@redhat.com>
15105
15106         getcwd: fix test failures on mingw
15107         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15108         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15109         test if long directory cannot be created, and allow mingw errno.
15110
15111         getcwd-lgpl: fix m4 to match relaxed test for BSD
15112         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15113         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15114         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15115         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15116         signature problem.
15117
15118         getcwd: fix compilation on mingw64
15119         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15120         getcwd.
15121         Reported by Marc-André Lureau.
15122
15123         pipe2: silence compiler warning
15124         * lib/pipe2.c (pipe2): Hide label if it is not used.
15125
15126 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15127
15128         relocatable-prog: fix link error
15129         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15130         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15131         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15132         into modules/relocatable-lib without noticing that
15133         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15134         also needs to build relocatable.c.
15135
15136 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15140         shell code: it contained a 'break' that was not in a loop.
15141         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15142         via a shell-language loop; this may have been true in old Autoconf
15143         versions, but it's not true in Autoconf 2.68.  I found this bug
15144         when testing coreutils git on Solaris 8, whose shell complains
15145         about the syntax error.
15146
15147 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15148
15149         * lib/base64.c: Fix comment to reference RFC 4648.
15150         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15151         <gvtulder@gmail.com>.
15152
15153 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15156
15157         po/Makefile.in.in: fix make -q problem
15158         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15159         rule, since there's no file named 'check-macro-version' and its
15160         use as a file breaks make -q.
15161         (all): Don't depend on check-macro-version.
15162         (CHECK_MACRO_VERSION): New macro.
15163         (stamp-po): Use it.
15164
15165         configmake: fix make -q problem
15166         * modules/configmake (configmake.h): Update configmake.h's time stamp
15167         even if the file does not change.  Otherwise, 'make -q' fails.
15168         Problem reported by Simon Josefsson in
15169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15170
15171 2011-08-11  Jim Meyering  <meyering@redhat.com>
15172
15173         git-version-gen: correct the advice in a comment
15174         * build-aux/git-version-gen: Correct comment.
15175         Don't recommend to list .tarball-version in .gitignore.
15176
15177 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15178
15179         base64: fix off-by-one buffer size bug
15180         Problem and (trivial) fix reported by Gijs van Tulder in
15181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15182         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15183         * tests/test-base64.c (main): Catch the bug.
15184
15185 2011-08-10  Eric Blake  <eblake@redhat.com>
15186
15187         closein: correct comments
15188         * lib/closein.c (close_stdin): Improve comments.
15189
15190 2011-08-09  Bruno Haible  <bruno@clisp.org>
15191
15192         More tests for 'fseeko'.
15193         * tests/test-fseeko3.c: New file, from Eric Blake.
15194         * tests/test-fseeko3.sh: New file.
15195         * modules/fseeko-tests (Files): Add them.
15196         (TESTS): Add test-fseeko3.sh.
15197         (check_PROGRAMS): Add test-fseeko3.
15198
15199 2011-08-09  Eric Blake  <eblake@redhat.com>
15200
15201         fseeko: remove unneeded hack
15202         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15203
15204         fseeko: fix bug on glibc
15205         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15206         Reported by John W. Eaton.
15207
15208 2011-08-08  Bruno Haible  <bruno@clisp.org>
15209
15210         unictype/base: Fix interoperability with preinstalled libunistring.
15211         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15212         Reported by Simon Josefsson.
15213
15214 2011-08-08  Bruno Haible  <bruno@clisp.org>
15215
15216         iswblank: Detect declaration correctly.
15217         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15218         AC_CHECK_DECLS invocation.
15219
15220 2011-08-08  Bruno Haible  <bruno@clisp.org>
15221
15222         tcgetsid: Detect declaration correctly.
15223         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15224         AC_CHECK_DECLS invocation.
15225         Reported by Simon Josefsson.
15226
15227 2011-08-08  Eric Blake  <eblake@redhat.com>
15228
15229         largefile: fix typo that regressed large file support
15230         * modules/largefile (configure.ac-early): Fix section name.
15231
15232 2011-08-06  Karl Berry  <karl@gnu.org>
15233
15234         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15235         a separate module.
15236
15237 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15238
15239         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15240         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15241         get prototype for free.
15242
15243 2011-08-04  Bruno Haible  <bruno@clisp.org>
15244
15245         Tests for module 'pathmax'.
15246         * modules/pathmax-tests: New file.
15247         * tests/test-pathmax.c: New file.
15248
15249         canonicalize-lgpl: Support larger filenames on the Hurd.
15250         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15251         Reported by Paul Eggert.
15252
15253         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15254         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15255         * lib/chdir-long.h: Include pathmax.h.
15256         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15257         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15258         (PATH_MAX): Remove code that is done by pathmax.h.
15259         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15260         * lib/tmpfile.c: Add a comment.
15261         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15262         * modules/chdir-long (Depends-on): Add pathmax.
15263         * modules/getcwd (Depends-on): Add pathmax.
15264         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15265         is not defined.
15266         * doc/posix-headers/limits.texi: Mention the pathmax module.
15267         * NEWS: Mention the change.
15268
15269 2011-08-02  Bruno Haible  <bruno@clisp.org>
15270
15271         pthread_sigmask: Actually use results of gl_THREADLIB.
15272         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15273         gl_THREADLIB, not gl_[]THREADLIB.
15274         Reported by Eric Blake.
15275
15276 2011-08-02  Jim Meyering  <meyering@redhat.com>
15277
15278         maint.mk: relax the default _gl_TS_function_match regexp
15279         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15280         space between function name and "(" in an "extern" declaration.
15281         That would fail to match a decl with no space there: extern void foo();
15282
15283 2011-07-31  Iain Nicol  <iain@thenicols.net>
15284
15285         git-version-gen: document that EXTRA_DIST must include .version
15286         * build-aux/git-version-gen: In the how-to-use comment, document
15287         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15288         will fail when run from an unpacked distribution tarball.
15289
15290 2011-08-01  Bruno Haible  <bruno@clisp.org>
15291
15292         wctype-h: Fix last change.
15293         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15294         REPLACE_TOWLOWER to 0.
15295         Reported by Sam Steingold <sds@gnu.org>.
15296
15297 2011-07-31  Bruno Haible  <bruno@clisp.org>
15298
15299         frexpl: Update autoconf test.
15300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15301         according to changes of 2011-06-20.
15302
15303 2011-07-31  Bruno Haible  <bruno@clisp.org>
15304
15305         sys_utsname: Add support for Minix.
15306         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15307         <sys/utsname.h>.
15308         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15309         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15310
15311 2011-07-31  Bruno Haible  <bruno@clisp.org>
15312
15313         strings: Add support for Minix.
15314         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15315         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15316         * doc/posix-headers/strings.texi: Document the Minix problem.
15317
15318 2011-07-31  Bruno Haible  <bruno@clisp.org>
15319
15320         wctype-h: Add support for Minix.
15321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15322         REPLACE_TOWLOWER.
15323         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15324         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15325         REPLACE_ISWCNTRL.
15326
15327 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15330         This is a performance improvement for 64-bit hosts: it causes the
15331         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15332
15333 2011-07-31  Bruno Haible  <bruno@clisp.org>
15334
15335         stdioext: Add support for Minix.
15336         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15337         * lib/fpurge.c (fpurge): Likewise.
15338         * lib/freadahead.c (freadahead): Likewise.
15339         * lib/freadable.c (freadable): Likewise.
15340         * lib/freading.c (freading): Likewise.
15341         * lib/freadptr.c (freadptr): Likewise.
15342         * lib/freadseek.c (freadptrinc): Likewise.
15343         * lib/fseeko.c (rpl_fseeko): Likewise.
15344         * lib/fseterr.c (fseterr): Likewise.
15345         * lib/fwritable.c (fwritable): Likewise.
15346         * lib/fwriting.c (fwriting): Likewise.
15347         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15348         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15349
15350 2011-07-31  Bruno Haible  <bruno@clisp.org>
15351
15352         errno: Port to Minix.
15353         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15354         ECONNABORTED are defined.
15355         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15356         GNULIB_defined_ECONNABORTED): New macros.
15357         * lib/strerror-override.h (strerror_override): Test also
15358         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15359         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15360         ECONNABORTED.
15361         * doc/posix-headers/errno.texi: Mention the Minix problem.
15362
15363 2011-07-31  Bruno Haible  <bruno@clisp.org>
15364
15365         Work around declaration collisions on Minix.
15366         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15367         defined, set REPLACE_MBSINIT.
15368         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15369         defined, set REPLACE_MBRTOWC.
15370         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15371         set REPLACE_MBRLEN.
15372         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15373         defined, set REPLACE_MBSRTOWCS.
15374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15375         defined, set REPLACE_WCRTOMB.
15376         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15377         defined, set REPLACE_WCSRTOMBS.
15378
15379 2011-07-31  Bruno Haible  <bruno@clisp.org>
15380
15381         Add support for Minix with ACK compiler.
15382         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15383         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15384         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15385
15386 2011-07-31  Bruno Haible  <bruno@clisp.org>
15387
15388         Documentation about Minix.
15389         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15390         * doc/glibc-headers/*.texi: Likewise.
15391         * doc/posix-functions/*.texi: Likewise.
15392         * doc/glibc-functions/*.texi: Likewise.
15393
15394 2011-07-31  Bruno Haible  <bruno@clisp.org>
15395
15396         snippet/warn-on-use: Fix indentation.
15397         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15398
15399 2011-07-25  Jim Meyering  <meyering@redhat.com>
15400
15401         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15402         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15403         commands.
15404
15405 2011-07-27  Jim Meyering  <meyering@redhat.com>
15406
15407         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15408         * top/maint.mk (gl_extract_significant_defines_): Now that
15409         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15410         gnulib/lib/signal.in.h, and now that we recommend to
15411         define-if-undefined those two symbols in application code,
15412         we must filter them out of the "significant" list.
15413         This avoids a "make syntax-check" failure in coreutils.
15414
15415 2011-07-26  Eric Blake  <eblake@redhat.com>
15416
15417         warnings: add comments about previous patch
15418         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15419         * m4/include_next.m4: Likewise.
15420         * m4/warn-on-use.m4: Likewise.
15421         * m4/warnings.m4: Likewise, and simplify use.
15422         Suggested by Stefano Lattarini.
15423
15424         include-next, warnings: support older autoconf
15425         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15426         AS_VAR_PUSHDEF in a way that works with older autoconf.
15427         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15428         Reported by Daniel P. Berrange.
15429
15430 2011-07-25  Bruno Haible  <bruno@clisp.org>
15431
15432         fseek, ftell: Fix doc.
15433         * doc/posix-functions/fseek.texi: Reword statement about
15434         AC_SYS_LARGEFILE.
15435         * doc/posix-functions/ftell.texi: Likewise.
15436
15437 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15438             Bruno Haible  <bruno@clisp.org>
15439
15440         Add dependencies to the 'largefile' module.
15441         * modules/fopen (Depends-on): Add 'largefile'.
15442         * modules/freopen (Depends-on): Likewise.
15443         * modules/fseeko (Depends-on): Likewise.
15444         * modules/ftello (Depends-on): Likewise.
15445         * modules/glob (Depends-on): Likewise.
15446         * modules/lseek (Depends-on): Likewise.
15447         * modules/lstat (Depends-on): Likewise.
15448         * modules/mkostemp (Depends-on): Likewise.
15449         * modules/mkostemps (Depends-on): Likewise.
15450         * modules/mkstemp (Depends-on): Likewise.
15451         * modules/mkstemps (Depends-on): Likewise.
15452         * modules/open (Depends-on): Likewise.
15453         * modules/openat (Depends-on): Likewise.
15454         * modules/pread (Depends-on): Likewise.
15455         * modules/pwrite (Depends-on): Likewise.
15456         * modules/scandir (Depends-on): Likewise.
15457         * modules/stat (Depends-on): Likewise.
15458         * modules/tmpfile (Depends-on): Likewise.
15459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15460         since the containing module now depends on the largefile module.
15461         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15462         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15463         off_t is fixed by gnulib.
15464         * doc/posix-functions/freopen.texi: Likewise.
15465         * doc/posix-functions/fseeko.texi: Likewise.
15466         * doc/posix-functions/fstatat.texi: Likewise.
15467         * doc/posix-functions/ftello.texi: Likewise.
15468         * doc/posix-functions/glob.texi: Likewise.
15469         * doc/posix-functions/lseek.texi: Likewise.
15470         * doc/posix-functions/lstat.texi: Likewise.
15471         * doc/posix-functions/mkstemp.texi: Likewise.
15472         * doc/posix-functions/open.texi: Likewise.
15473         * doc/posix-functions/openat.texi: Likewise.
15474         * doc/posix-functions/pread.texi: Likewise.
15475         * doc/posix-functions/pwrite.texi: Likewise.
15476         * doc/posix-functions/scandir.texi: Likewise.
15477         * doc/posix-functions/stat.texi: Likewise.
15478         * doc/posix-functions/tmpfile.texi: Likewise.
15479         * doc/glibc-functions/mkostemp.texi: Likewise.
15480         * doc/glibc-functions/mkostemps.texi: Likewise.
15481         * doc/glibc-functions/mkstemps.texi: Likewise.
15482
15483 2011-07-25  Bruno Haible  <bruno@clisp.org>
15484
15485         fcntl: Move AC_LIBOBJ invocation to module description.
15486         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15487         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15488
15489         fcntl: Remove call-in from fchdir.m4.
15490         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15492
15493         dup3: Remove potential call-in from fchdir.m4.
15494         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15496
15497         dup2: Move AC_LIBOBJ invocation to module description.
15498         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15499         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15500         Don't invoke AC_LIBOBJ.
15501         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15502
15503         dup2: Remove call-in from fchdir.m4.
15504         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15506
15507         fclose: Move AC_LIBOBJ invocation to module description.
15508         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15509         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15510         to 1.
15511         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15512
15513         fclose: Remove call-in from close.m4.
15514         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15515         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15516
15517         close: Move AC_LIBOBJ invocation to module description.
15518         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15519         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15520         1.
15521         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15522
15523         close: Remove call-in from fchdir.m4.
15524         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15526
15527         open: Move AC_LIBOBJ invocation to module description.
15528         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15529         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15530         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15531
15532         open: Remove call-in from fchdir.m4.
15533         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15535
15536         fchdir: Start to remove gl_REPLACE_* idiom.
15537         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15538         (gl_FUNC_FCHDIR): Invoke it.
15539
15540 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         * lib/ftell.c (ftell): Comment out cast.
15543
15544         close: use gl_REPLACE_FCLOSE only if defined
15545         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15546         is defined.  The close module doesn't depend on the fclose module
15547         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15549         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15550
15551 2011-07-24  Jim Meyering  <meyering@redhat.com>
15552
15553         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15554         * tests/test-select.h (test_function): Declare as "static".
15555
15556 2011-07-24  Bruno Haible  <bruno@clisp.org>
15557
15558         doc: Mention the effects of AC_SYS_LARGEFILE.
15559         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15560         on this function.
15561         * doc/posix-functions/aio_error.texi: Likewise.
15562         * doc/posix-functions/aio_fsync.texi: Likewise.
15563         * doc/posix-functions/aio_read.texi: Likewise.
15564         * doc/posix-functions/aio_return.texi: Likewise.
15565         * doc/posix-functions/aio_suspend.texi: Likewise.
15566         * doc/posix-functions/aio_write.texi: Likewise.
15567         * doc/posix-functions/fgetpos.texi: Likewise.
15568         * doc/posix-functions/fopen.texi: Likewise.
15569         * doc/posix-functions/freopen.texi: Likewise.
15570         * doc/posix-functions/fsetpos.texi: Likewise.
15571         * doc/posix-functions/fstatvfs.texi: Likewise.
15572         * doc/posix-functions/ftruncate.texi: Likewise.
15573         * doc/posix-functions/ftw.texi: Likewise.
15574         * doc/posix-functions/getrlimit.texi: Likewise.
15575         * doc/posix-functions/glob.texi: Likewise.
15576         * doc/posix-functions/lio_listio.texi: Likewise.
15577         * doc/posix-functions/lockf.texi: Likewise.
15578         * doc/posix-functions/mkstemp.texi: Likewise.
15579         * doc/posix-functions/mmap.texi: Likewise.
15580         * doc/posix-functions/nftw.texi: Likewise.
15581         * doc/posix-functions/openat.texi: Likewise.
15582         * doc/posix-functions/opendir.texi: Likewise.
15583         * doc/posix-functions/posix_fadvise.texi: Likewise.
15584         * doc/posix-functions/posix_fallocate.texi: Likewise.
15585         * doc/posix-functions/pread.texi: Likewise.
15586         * doc/posix-functions/pwrite.texi: Likewise.
15587         * doc/posix-functions/readdir.texi: Likewise.
15588         * doc/posix-functions/readdir_r.texi: Likewise.
15589         * doc/posix-functions/rewinddir.texi: Likewise.
15590         * doc/posix-functions/scandir.texi: Likewise.
15591         * doc/posix-functions/seekdir.texi: Likewise.
15592         * doc/posix-functions/setrlimit.texi: Likewise.
15593         * doc/posix-functions/statvfs.texi: Likewise.
15594         * doc/posix-functions/telldir.texi: Likewise.
15595         * doc/posix-functions/tmpfile.texi: Likewise.
15596         * doc/posix-functions/truncate.texi: Likewise.
15597         * doc/glibc-functions/fallocate.texi: Likewise.
15598         * doc/glibc-functions/fstatfs.texi: Likewise.
15599         * doc/glibc-functions/fts_children.texi: Likewise.
15600         * doc/glibc-functions/fts_read.texi: Likewise.
15601         * doc/glibc-functions/getdirentries.texi: Likewise.
15602         * doc/glibc-functions/mkostemp.texi: Likewise.
15603         * doc/glibc-functions/mkostemps.texi: Likewise.
15604         * doc/glibc-functions/mkstemps.texi: Likewise.
15605         * doc/glibc-functions/preadv.texi: Likewise.
15606         * doc/glibc-functions/pwritev.texi: Likewise.
15607         * doc/glibc-functions/sendfile.texi: Likewise.
15608         * doc/glibc-functions/statfs.texi: Likewise.
15609
15610 2011-07-24  Bruno Haible  <bruno@clisp.org>
15611
15612         doc: Fix typo.
15613         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15614
15615 2011-07-24  Bruno Haible  <bruno@clisp.org>
15616
15617         doc: Mention fsusage.
15618         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15619
15620 2011-07-24  Bruno Haible  <bruno@clisp.org>
15621
15622         doc: Mention new glibc headers and functions.
15623         * doc/glibc-headers/gshadow.texi: New file.
15624         * doc/glibc-functions/endsgent.texi: New file.
15625         * doc/glibc-functions/fgetsgent.texi: New file.
15626         * doc/glibc-functions/fgetsgent_r.texi: New file.
15627         * doc/glibc-functions/getsgent.texi: New file.
15628         * doc/glibc-functions/getsgent_r.texi: New file.
15629         * doc/glibc-functions/getsgnam.texi: New file.
15630         * doc/glibc-functions/getsgnam_r.texi: New file.
15631         * doc/glibc-functions/putsgent.texi: New file.
15632         * doc/glibc-functions/setsgent.texi: New file.
15633         * doc/glibc-functions/sgetsgent.texi: New file.
15634         * doc/glibc-functions/sgetsgent_r.texi: New file.
15635         * doc/glibc-functions/malloc_info.texi: New file.
15636         * doc/glibc-functions/preadv.texi: New file.
15637         * doc/glibc-functions/pwritev.texi: New file.
15638         * doc/glibc-functions/register_printf_modifier.texi: New file.
15639         * doc/glibc-functions/register_printf_specifier.texi: New file.
15640         * doc/glibc-functions/register_printf_type.texi: New file.
15641         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15642         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15643         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15644         * doc/glibc-functions/pthread_getname_np.texi: New file.
15645         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15646         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15647         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15648         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15649         * doc/glibc-functions/pthread_setname_np.texi: New file.
15650         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15651         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15652         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15653         * doc/glibc-functions/qsort_r.texi: New file.
15654         * doc/glibc-functions/quick_exit.texi: New file.
15655         * doc/glibc-functions/syncfs.texi: New file.
15656         * doc/gnulib.texi: Include them.
15657         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15658         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15659         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15660         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15661         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15662         * doc/glibc-functions/execvpe.texi: Likewise.
15663
15664 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         ftell: don't include <unistd.h>
15667         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15668         guaranteed to define off_t, and the ftell module depends on the
15669         stdio module.
15670
15671         ftell: do not assume wraparound signed arithmetic
15672         * lib/ftell.c: Include <limits.h>.
15673         (ftell): Don't assume wraparound signed arithmetic.
15674
15675 2011-07-24  Bruno Haible  <bruno@clisp.org>
15676
15677         close: No longer depend on module 'fclose'.
15678         * modules/close (Depends-on): Remove fclose.
15679         * NEWS: Mention the change.
15680         Suggested by Sam Steingold <sds@gnu.org>.
15681
15682 2011-07-24  Bruno Haible  <bruno@clisp.org>
15683
15684         fsusage: Enable large volume support on AIX >= 5.2.
15685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15686         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15687         instead of STAT_STATVFS.
15688         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15689
15690         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15692         f_blocks field only on MacOS X.
15693
15694         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15696         * modules/fsusage (Depends-on): Add largefile.
15697
15698 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         * README: Modernize discussion of signed integers.
15701         Assuming overflow wraparound is no longer safe.
15702         Mention ones' complement and signed magnitude.
15703
15704 2011-07-22  Bruno Haible  <bruno@clisp.org>
15705
15706         select tests, pselect tests: Refactor.
15707         * tests/test-select.h: New file, extracted from tests/test-select.c.
15708         (select_fn): New type.
15709         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15710         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15711         test_pipe): Add my_select argument.
15712         (test_function): Renamed from main. Add my_select argument.
15713         * tests/test-select.c: Move most code to tests/test-select.h. Include
15714         test-select.h.
15715         * modules/select-tests (Files): Add tests/test-select.h.
15716         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15717         (my_select, main): New functions.
15718         * modules/pselect-tests (Files): Add tests/test-select.h,
15719         tests/macros.h, tests/signature.h.
15720         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15721         (configure.ac): Check for <sys/wait.h>.
15722
15723 2011-07-22  Bruno Haible  <bruno@clisp.org>
15724
15725         sys_select tests: Check the signature of FD_*.
15726         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15727         signature tests from here...
15728         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15729         here.
15730         * modules/sys_select-tests (Files): Add tests/signature.h.
15731
15732 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15733
15734         largefile: new module, replacing large-inode
15735         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15736         * MODULES.html.sh: Add largefile, remove large-inode.
15737         * modules/largefile, m4/largefile.m4: New files.
15738         * modules/large-inode, m4/large-inode.m4: Remove.
15739
15740         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15742         implementations that use only 32 bits to count blocks.
15743         On typical hosts with 1024-byte blocks, this fails with file
15744         systems as small as 4 TiB.  Problem reported by Herb Wartens
15745         <http://debbugs.gnu.org/9140> and this should also fix a similar
15746         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15747
15748         large-inode: New module
15749         * MODULES.html.sh: Add it.
15750         * modules/large-inode, m4/large-inode.m4: New files.
15751
15752         extensions: Enable extensions on MacOS X 10.5 and later.
15753         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15754
15755 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15756
15757         file-has-acl: use acl_extended_file_nofollow if available
15758         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15759         (acl_extended_file): New macro.
15760         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15761         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15762
15763 2011-07-21  Bruno Haible  <bruno@clisp.org>
15764
15765         Declare system functions in a way that works with C++.
15766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15767         declare fdopendir as extern "C".
15768         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15769         declare frexpl as extern "C".
15770         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15771         declare gai_strerror as extern "C".
15772         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15773         programs, declare gai_strerror as extern "C".
15774         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15775         declare getlogin_r as extern "C".
15776         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15777         as extern "C".
15778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15779         declare ldexpl as extern "C".
15780         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15781         as extern "C".
15782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15783         program, declare getmntinfo as extern "C".
15784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15785         stpncpy as extern "C".
15786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15787         program, declare __xpg_strerror_r as extern "C".
15788         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15789         strndup as extern "C".
15790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15791         declare memset and bzero as extern "C".
15792         Reported by Sam Steingold <sds@gnu.org>.
15793
15794 2011-07-12  Jim Meyering  <meyering@redhat.com>
15795
15796         maint.mk: prohibit inclusion of "verify.h" without use
15797         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15798
15799 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15800
15801         timer-time: A new module to check for timer_settime()
15802         * m4/timer_time.m4: Check for the posix function.
15803         * modules/timer-time: Add the new module.
15804         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15805         Mention it.
15806
15807 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15808             Bruno Haible  <bruno@clisp.org>
15809
15810         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15811         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15812         not defined, assume POSIX threads and look for pthread_sigmask in
15813         $LIBS, without changing $CPPFLAGS.
15814
15815 2011-07-19  Bruno Haible  <bruno@clisp.org>
15816
15817         strstr: Update cross-compilation guess.
15818         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15819         CPUs, guess no, in view of glibc
15820         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15821         Suggested by Eric Blake. Reported by Reuben Thomas.
15822
15823 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15824
15825         getopt-gnu: suppress core dumps from detection code
15826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15827         to suppress core dumps that may well occur on glibc systems.
15828         * modules/getopt-gnu: Depend on nocrash.
15829
15830 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         pthread_sigmask: ensure usleep is declared
15833         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15834         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15835
15836 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15837
15838         doc: Document NonStop portability issues.
15839         * doc/posix-functions/sigaction.texi (sigaction):
15840         * doc/posix-headers/signal.texi (signal.h):
15841         Document NonStop.  See Joachim Schmitz in
15842         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15843
15844 2011-07-15  Bruno Haible  <bruno@clisp.org>
15845
15846         ffsl, ffsll: Avoid unportable behaviour.
15847         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15848
15849 2011-07-15  Bruno Haible  <bruno@clisp.org>
15850
15851         ffs: More tests.
15852         * tests/test-ffs.c (NBITS): New macro.
15853         (main): Add more tests.
15854         * tests/test-ffsl.c (NBITS): New macro.
15855         (main): Add more tests.
15856         * tests/test-ffsll.c (NBITS): New macro.
15857         (main): Add more tests.
15858
15859 2011-07-15  Eric Blake  <eblake@redhat.com>
15860
15861         ffsl, ffsll: new modules
15862         * modules/ffsl: New file.
15863         * modules/ffsll: Likewise.
15864         * m4/ffsl.m4: Likewise.
15865         * m4/ffsll.m4: Likewise.
15866         * lib/ffsl.c: Likewise.
15867         * lib/ffsl.h: Likewise.
15868         * lib/ffsll.c: Likewise.
15869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15870         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15871         * modules/string (Makefile.am): Substitute witnesses.
15872         * lib/strings.in.h (ffsl, ffsll): Declare.
15873         * modules/ffsl-tests: New test file.
15874         * modules/ffsll-tests: Likewise.
15875         * tests/test-ffsl.c: Likewise.
15876         * tests/test-ffsll.c: Likewise.
15877         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15878         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15879         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15880
15881         ffs: fix m4 prerequisite
15882         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15883
15884         ffs: avoid undefined behavior
15885         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15886         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15887         Reported by Bruno Haible.
15888
15889 2011-07-12  Bruno Haible  <bruno@clisp.org>
15890
15891         pthread_sigmask: Rely on module 'threadlib'.
15892         * modules/pthread_sigmask (Depends-on): Add threadlib.
15893         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15894         is defined.
15895
15896 2011-07-12  Bruno Haible  <bruno@clisp.org>
15897
15898         regex: Depend on module 'strcase'.
15899         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15900
15901 2011-07-12  Jim Meyering  <meyering@redhat.com>
15902
15903         warn-on-use: fix typo in file name
15904         * modules/snippet/warn-on-use (Files): Correct file name:
15905         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15906
15907 2011-07-12  Bruno Haible  <bruno@clisp.org>
15908
15909         strings: Document module.
15910         * doc/posix-headers/strings.texi: Mention module 'strings'.
15911
15912 2011-07-12  Bruno Haible  <bruno@clisp.org>
15913
15914         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15915         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15916         (Files, Makefile.am): Update.
15917         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15918         * modules/stdlib (Depends-on): Update.
15919
15920 2011-07-12  Bruno Haible  <bruno@clisp.org>
15921
15922         * NEWS: Mention the changes.
15923
15924         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15925         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15926         (Files, Makefile.am): Update.
15927         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15928         * modules/arpa_inet (Depends-on): Update.
15929         * modules/ctype (Depends-on): Update.
15930         * modules/dirent (Depends-on): Update.
15931         * modules/fcntl-h (Depends-on): Update.
15932         * modules/glob (Depends-on): Update.
15933         * modules/iconv-h (Depends-on): Update.
15934         * modules/inttypes-incomplete (Depends-on): Update.
15935         * modules/langinfo (Depends-on): Update.
15936         * modules/locale (Depends-on): Update.
15937         * modules/math (Depends-on): Update.
15938         * modules/netdb (Depends-on): Update.
15939         * modules/poll-h (Depends-on): Update.
15940         * modules/pty (Depends-on): Update.
15941         * modules/search (Depends-on): Update.
15942         * modules/signal (Depends-on): Update.
15943         * modules/spawn (Depends-on): Update.
15944         * modules/stdio (Depends-on): Update.
15945         * modules/stdlib (Depends-on): Update.
15946         * modules/string (Depends-on): Update.
15947         * modules/strings (Depends-on): Update.
15948         * modules/sys_file (Depends-on): Update.
15949         * modules/sys_ioctl (Depends-on): Update.
15950         * modules/sys_select (Depends-on): Update.
15951         * modules/sys_socket (Depends-on): Update.
15952         * modules/sys_stat (Depends-on): Update.
15953         * modules/sys_time (Depends-on): Update.
15954         * modules/sys_times (Depends-on): Update.
15955         * modules/sys_utsname (Depends-on): Update.
15956         * modules/sys_wait (Depends-on): Update.
15957         * modules/termios (Depends-on): Update.
15958         * modules/time (Depends-on): Update.
15959         * modules/unistd (Depends-on): Update.
15960         * modules/wchar (Depends-on): Update.
15961         * modules/wctype-h (Depends-on): Update.
15962         * MODULES.html.sh (Support for building libraries and executables):
15963         Update.
15964
15965         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15966         * modules/snippet/unused-parameter: Renamed from
15967         modules/unused-parameter.
15968         (Files, Makefile.am): Update.
15969         * build-aux/snippet/unused-parameter.h: Renamed from
15970         build-aux/unused-parameter.h.
15971         * modules/selinux-h (Depends-on): Update.
15972         * modules/unistr/base (Depends-on): Update.
15973         * MODULES.html.sh (Core language properties): Update.
15974
15975         Rename module 'link-warning' to 'snippet/link-warning'.
15976         * modules/snippet/link-warning: Renamed from modules/link-warning.
15977         (Files, Makefile.am): Update.
15978         * build-aux/snippet/link-warning.h: Renamed from
15979         build-aux/link-warning.h.
15980         * MODULES.html.sh (Support for building libraries and executables):
15981         Update.
15982
15983         Rename module 'c++defs' to 'snippet/c++defs'.
15984         * modules/snippet/c++defs: Renamed from modules/c++defs.
15985         (Files, Makefile.am): Update.
15986         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15987         * modules/arpa_inet (Depends-on): Update.
15988         * modules/ctype (Depends-on): Update.
15989         * modules/dirent (Depends-on): Update.
15990         * modules/fcntl-h (Depends-on): Update.
15991         * modules/glob (Depends-on): Update.
15992         * modules/iconv-h (Depends-on): Update.
15993         * modules/langinfo (Depends-on): Update.
15994         * modules/locale (Depends-on): Update.
15995         * modules/math (Depends-on): Update.
15996         * modules/netdb (Depends-on): Update.
15997         * modules/poll-h (Depends-on): Update.
15998         * modules/pty (Depends-on): Update.
15999         * modules/search (Depends-on): Update.
16000         * modules/signal (Depends-on): Update.
16001         * modules/spawn (Depends-on): Update.
16002         * modules/stdio (Depends-on): Update.
16003         * modules/stdlib (Depends-on): Update.
16004         * modules/string (Depends-on): Update.
16005         * modules/strings (Depends-on): Update.
16006         * modules/sys_ioctl (Depends-on): Update.
16007         * modules/sys_select (Depends-on): Update.
16008         * modules/sys_socket (Depends-on): Update.
16009         * modules/sys_stat (Depends-on): Update.
16010         * modules/sys_time (Depends-on): Update.
16011         * modules/sys_wait (Depends-on): Update.
16012         * modules/termios (Depends-on): Update.
16013         * modules/time (Depends-on): Update.
16014         * modules/unistd (Depends-on): Update.
16015         * modules/wchar (Depends-on): Update.
16016         * modules/wctype-h (Depends-on): Update.
16017
16018         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16019         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16020         (Files, Makefile.am): Update.
16021         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16022         * modules/argv-iter (Depends-on): Update.
16023         * modules/arpa_inet (Depends-on): Update.
16024         * modules/dirent (Depends-on): Update.
16025         * modules/fcntl-h (Depends-on): Update.
16026         * modules/fnmatch (Depends-on): Update.
16027         * modules/getopt-posix (Depends-on): Update.
16028         * modules/glob (Depends-on): Update.
16029         * modules/iconv-h (Depends-on): Update.
16030         * modules/inttypes-incomplete (Depends-on): Update.
16031         * modules/locale (Depends-on): Update.
16032         * modules/math (Depends-on): Update.
16033         * modules/netdb (Depends-on): Update.
16034         * modules/search (Depends-on): Update.
16035         * modules/signal (Depends-on): Update.
16036         * modules/spawn (Depends-on): Update.
16037         * modules/stdio (Depends-on): Update.
16038         * modules/stdlib (Depends-on): Update.
16039         * modules/string (Depends-on): Update.
16040         * modules/strings (Depends-on): Update.
16041         * modules/sys_socket (Depends-on): Update.
16042         * modules/sys_stat (Depends-on): Update.
16043         * modules/sys_time (Depends-on): Update.
16044         * modules/sys_times (Depends-on): Update.
16045         * modules/sys_utsname (Depends-on): Update.
16046         * modules/time (Depends-on): Update.
16047         * modules/unistd (Depends-on): Update.
16048         * modules/wchar (Depends-on): Update.
16049         * MODULES.html.sh (Support for building libraries and executables):
16050         Update.
16051
16052 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16053
16054         Improvements on _Noreturn and related modules.
16055
16056         modules/_Exit-tests: test _Noreturn too
16057         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16058         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16059         (main): Use them.
16060
16061         stdnoreturn, stdnoreturn-tests: remove modules
16062         They're not needed here and a bit premature for use elsewhere.  See
16063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16064         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16065         * tests/test-stdnoreturn.c: Remove files.
16066         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16067         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16068         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16069         and using noreturn.
16070         * modules/openat, modules/sigpipe-die, modules/xalloc:
16071         * modules/xmemdup0, modules/xstrtol:
16072         Remove dependency on stdnoreturn.
16073
16074         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16075         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16076         Reparenthesize to avoid GCC warning.
16077         Support Microsoft's syntax.
16078         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16079
16080         _Noreturn-tests: remove module
16081         * modules/_Noreturn-tests: Remove.
16082         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16083         * tests/test-_Noreturn.c: Remove.
16084         * tests/test-stdnoreturn.c: Merge from the old
16085         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16086
16087 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16088
16089         _Noreturn, stdnoreturn, and related modules.
16090
16091         * top/maint.mk: Adjust to new noreturn support.
16092         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16093         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16094
16095         xalloc: use stdnoreturn.h
16096         * lib/xalloc.h: Include <stdnoreturn.h>.
16097         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16098         * modules/xalloc (Depends-on): Add stdnoreturn.
16099
16100         xstrtol: use stdnoreturn.h
16101         * lib/xstrtol.h: Include <stdnoreturn.h>.
16102         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16103         * modules/xstrtol (Depends-on): Add stdnoreturn.
16104
16105         xmemdup0: use stdnoreturn.h
16106         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16107         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16108         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16109
16110         sigpipe-die: use stdnoreturn.h
16111         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16112         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16113         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16114
16115         openat: use stdnoreturn.h
16116         * lib/openat.h: Include <stdnoreturn.h>.
16117         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16118         * modules/openat (Depends-on): Add stdnoreturn.
16119
16120         * lib/openat-die.c (openat_save_fail): Modernize comment.
16121
16122         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16123
16124         * lib/glthread/thread.h: Modernize comment.
16125
16126         obstack: use _Noreturn
16127         * lib/obstack.c (__attribute__): Remove macro.
16128         (print_and_abort): Use _Noreturn.
16129
16130         c-stack: use _Noreturn
16131         * lib/c-stack.c (die, overflow_handler, segv_handler):
16132         Use _Noreturn rather than __attribute__((noreturn)).
16133
16134         argmatch-tests, exclude_tests: use _Noreturn
16135         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16136         Remove.
16137         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16138
16139         stdlib: use _Noreturn
16140         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16141         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16142         * modules/stdlib (Depends-on): Add _Noreturn.
16143         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16144
16145         stdnoreturn-tests: new module
16146         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16147
16148         stdnoreturn: new module
16149         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16150         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16151
16152         _Noreturn-tests: new module
16153         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16154
16155         _Noreturn: new module
16156         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16157         New section, mentioning it.
16158         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16159
16160         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16161
16162 2011-07-11  Eric Blake  <eblake@redhat.com>
16163
16164         ffs: new module
16165         * modules/ffs: New file.
16166         * m4/ffs.m4: Likewise.
16167         * lib/ffs.c: Likewise.
16168         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16169         * modules/strings (Makefile.am): Substitute witness.
16170         (Depends-on): Add c++defs.
16171         * lib/strings.in.h (ffs): Declare.
16172         * modules/ffs-tests: New test file.
16173         * tests/test-ffs.c: Test new module.
16174         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16175         * doc/posix-functions/ffs.texi (ffs): Likewise.
16176
16177         regex: avoid compiler warning
16178         * lib/regex.c (includes): Include <strings.h>, for use of
16179         strcasecmp in regcomp.c.
16180         Reported by Joachim Schmitz.
16181
16182 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16183
16184         stdint: respect system's intmax_t if INTMAX_MAX
16185         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16186         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16187         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16188         long but int64_t is long long, and where we will clash with the
16189         system intmax_t if we override it.  See
16190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16191         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16192         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16193         similarly for UINTMAX_C.
16194
16195 2011-07-08  Bruno Haible  <bruno@clisp.org>
16196
16197         pthread_sigmask tests: Avoid a compiler warning.
16198         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16199         non-zero.
16200
16201         sigprocmask tests: A better way to avoid a compiler warning.
16202         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16203         (main): Complain if system() returns non-zero.
16204         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16205
16206 2011-07-08  Bruno Haible  <bruno@clisp.org>
16207
16208         pthread_sigmask: Work around IRIX bug.
16209         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16210         bug.
16211         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16212         there may be unblocked pending signals.
16213         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16214
16215 2011-07-08  Bruno Haible  <bruno@clisp.org>
16216
16217         pthread_sigmask: Work around Cygwin bug.
16218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16219         bug.
16220         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16221         the system's pthread_sigmask function.
16222         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16223
16224 2011-07-08  Bruno Haible  <bruno@clisp.org>
16225
16226         pthread_sigmask: Work around bug in single-threaded implementation.
16227         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16228         FreeBSD, HP-UX, Solaris bug.
16229         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16230         * lib/pthread_sigmask.c: Include <stddef.h>.
16231         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16232         the system's pthread_sigmask function.
16233         * modules/pthread_sigmask (configure.ac): Invoke
16234         gl_PREREQ_PTHREAD_SIGMASK.
16235         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16236         HP-UX, Solaris.
16237
16238 2011-07-08  Eric Blake  <eblake@redhat.com>
16239
16240         test-sigprocmask: avoid compiler warning
16241         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16242         * tests/test-sigprocmask.c (main): Use it to silence warning.
16243         Reported by Jim Meyering.
16244
16245         test-snprintf: avoid compiler warning
16246         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16247         * tests/test-vsnprintf.c (main): Likewise.
16248         Reported by Jim Meyering.
16249
16250 2011-07-08  Bruno Haible  <bruno@clisp.org>
16251
16252         Tests for module 'pthread_sigmask'.
16253         * modules/pthread_sigmask-tests: New file.
16254         * tests/test-pthread_sigmask1.c: New file, based on
16255         tests/test-sigprocmask.c.
16256         * tests/test-pthread_sigmask2.c: New file.
16257
16258 2011-07-08  Jim Meyering  <meyering@redhat.com>
16259
16260         test-getopt.h: avoid warning about an unused variable
16261         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16262
16263 2011-07-07  Jim Meyering  <meyering@redhat.com>
16264
16265         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16266         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16267         now that it no longer contains leading TABs.
16268         Remove unused "url=FIXME" statement.
16269
16270 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16271
16272         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16273         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16274         When gl_THREADLIB is not in use, assume that the POSIX sematics
16275         are desired.  This is better for Emacs, which uses POSIX semantics
16276         on GNUish and/or POSIXish platforms, and does not use threads at
16277         all otherwise.
16278
16279         pthread_sigmask: fix typo when testing for libraries
16280         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16281         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16282
16283 2011-07-08  Eric Blake  <eblake@redhat.com>
16284
16285         fts: introduce FTS_NOATIME
16286         * lib/fts_.h (FTS_NOATIME): New bit flag.
16287         (FTS_OPTIONMASK): Adjust.
16288         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16289         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16290
16291 2011-07-08  Bruno Haible  <bruno@clisp.org>
16292
16293         Tests for module 'thread'.
16294         * modules/thread-tests: New file.
16295         * tests/test-thread_self.c: New file.
16296         * tests/test-thread_create.cc: New file.
16297
16298 2011-07-08  Bruno Haible  <bruno@clisp.org>
16299
16300         thread: Avoid gcc warnings when using gl_thread_self().
16301         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16302         'void *'.
16303         (gl_thread_self_pointer): Update.
16304
16305 2011-07-07  Bruno Haible  <bruno@clisp.org>
16306
16307         signal-c++-tests: Check declaration of pthread_sigmask.
16308         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16309         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16310         $(LIB_PTHREAD_SIGMASK).
16311
16312 2011-07-07  Bruno Haible  <bruno@clisp.org>
16313
16314         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16315         * lib/signal.in.h (pthread_sigmask): Override if
16316         REPLACE_PTHREAD_SIGMASK is 1.
16317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16318         REPLACE_PTHREAD_SIGMASK.
16319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16320         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16321         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16322         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16323         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16324
16325 2011-07-07  Bruno Haible  <bruno@clisp.org>
16326
16327         pthread_sigmask: Ensure declaration in <signal.h>.
16328         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16329         include <pthread.h>.
16330         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16331         problem.
16332
16333 2011-07-07  Bruno Haible  <bruno@clisp.org>
16334
16335         pthread_sigmask: Document the module.
16336         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16337
16338 2011-07-07  Bruno Haible  <bruno@clisp.org>
16339
16340         pthread_sigmask: Follow gnulib conventions.
16341         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16342         gl_PTHREAD_SIGMASK.
16343         * modules/pthread_sigmask (configure.ac): Update.
16344
16345 2011-07-07  Bruno Haible  <bruno@clisp.org>
16346
16347         pthread_sigmask: Make declaration C++ safe.
16348         * lib/signal.in.h: In two special conditions, just do an #include_next.
16349         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16350         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16351         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16352         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16353         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16354         not REPLACE_PTHREAD_MASK.
16355         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16356         not REPLACE_PTHREAD_MASK.
16357         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16358
16359 2011-07-07  Bruno Haible  <bruno@clisp.org>
16360
16361         pthread_sigmask: Fix return value.
16362         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16363         * lib/pthread_sigmask.c: New file.
16364         * modules/pthread_sigmask (Files): Add it.
16365         (configure.ac): Invoke AC_LIBOBJ.
16366
16367 2011-07-07  Eric Blake  <eblake@redhat.com>
16368
16369         getopt: more portable argv creation
16370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16371         const, use char arrays rather than strings.
16372         Suggested by Paul Eggert.
16373
16374 2011-07-07  Bruno Haible  <bruno@clisp.org>
16375
16376         Tests for module 'sigprocmask'.
16377         * modules/sigprocmask-tests: New file.
16378         * tests/test-sigprocmask.c: New file.
16379
16380 2011-07-07  Bruno Haible  <bruno@clisp.org>
16381
16382         float tests: Tweak.
16383         * tests/test-float.c (main): Tweak skip message.
16384
16385 2011-07-07  Eric Blake  <eblake@redhat.com>
16386
16387         getopt: avoid compiler warning during configure
16388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16389         assigning string literals to non-const pointer.
16390
16391         getopt-gnu: avoid crash in glibc getopt
16392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16393         * tests/test-getopt.h (test_getopt): Enhance test.
16394         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16395         * doc/posix-functions/getopt.texi (getopt): Document it.
16396         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16397         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16398         Likewise.
16399
16400 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16401
16402         getopt: handle W; without long options in getopt [BZ #12922]
16403         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16404         but no long options are defined, just return 'W'.
16405
16406 2011-07-07  Bruno Haible  <bruno@clisp.org>
16407
16408         Avoid literal tabs.
16409         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16410         variable containing a tab instead of a literal tab.
16411         Reported by Jim Meyering.
16412
16413 2011-07-07  Bruno Haible  <bruno@clisp.org>
16414
16415         Comments.
16416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16417
16418 2011-07-06  Bruno Haible  <bruno@clisp.org>
16419
16420         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16421         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16422         <winsock2.h>.
16423         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16424         lib/sys_socket.in.h.
16425         (close, gethostname): Hide declarations from <winsock2.h>.
16426         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16427         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16428         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16429         (select): Don't override if gnulib's <sys/select.h> was already
16430         included.
16431         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16432         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16433         setsockopt, shutdown, select): Tweak indentation.
16434
16435 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16438         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16439         in an application that does not use the sys_select module.
16440
16441 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16442
16443         poll: do not return 0 on timeout=-1
16444         * lib/poll.c: Loop with yield if no events occurred.
16445
16446 2011-07-06  Eric Blake  <eblake@redhat.com>
16447
16448         pthread_sigmask: always replace when not using pthread
16449         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16450         replacement when using some threading other than pthread.  Fix
16451         logic bug.
16452
16453 2011-07-06  Bruno Haible  <bruno@clisp.org>
16454
16455         Comments.
16456         * m4/printf.m4: Update comments about mingw.
16457
16458 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16459
16460         sys_select: define sigset_t more portably
16461         * lib/sys_select.in.h: Always include <sys/types.h>, since
16462         we now need sigset_t and mingw defines it there.
16463         Include <signal.h> before split inclusion guard, to avoid
16464         mishaps on Solaris, whose <signal.h> eventually includes us.
16465         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16466         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16467         which come from ...
16468         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16469         gl_CHECK_TYPE_SIGSET_T.
16470         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16471         does the real work.
16472         * modules/sys_select (Depends-on): Add 'signal'.
16473
16474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16475         Suggested by Bruno Haible.
16476
16477         pselect: Use pthread_sigmask, not sigprocmask.
16478         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16479         multithreaded apps better than sigprocmask does.
16480         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16481         sigprocmask directly.
16482
16483 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16484
16485         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16486         Don't #undef,  since we don't need any underlying pselect.
16487         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16488         (Depends-on): Add select.
16489         (Link): Add $(LIBSOCKET).
16490         These changes suggested by Bruno Haible.
16491
16492         pselect: document better
16493         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16494         * doc/posix-functions/pselect.texi (pselect): Document new module.
16495
16496         pthread_sigmask: new module
16497         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16498         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16499         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16500         This is done only as a macro; I don't know how well that'll
16501         work for C++.  Move <sys/types.h> include before the include_next,
16502         to avoid mishap on Solaris.
16503         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16504         * modules/signal (Makefile.am): Substitute the check's results.
16505         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16506
16507         test-pselect: new module
16508         * modules/pselect-tests, tests/test-pselect.c: New files.
16509         * tests/test-select.c, tests/test-sys_select-c++.cc:
16510         If TEST_PSELECT is defined, test pselect instead of testing select.
16511
16512         * tests/test-sys_select.c (sigset_t): Test for it, too.
16513         Suggested by Bruno Haible.
16514
16515 2011-07-05  Eric Blake  <eblake@redhat.com>
16516
16517         snprintf: guarantee %1$d, for libintl
16518         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16519         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16520         * doc/posix-functions/snprintf.texi (snprintf): Update.
16521         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16522         * tests/test-snprintf.c (main): Enhance test.
16523         * tests/test-vsnprintf.c (main): Likewise.
16524
16525 2011-07-05  Jim Meyering  <meyering@redhat.com>
16526
16527         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16528         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16529         per Bruno's request, to accommodate this idiom (no space after "#")
16530         even when the function is inside an #if block:
16531         char *
16532         gets (char *s)
16533         #undef gets
16534         {
16535           ...
16536         }
16537
16538 2011-07-04  Jim Meyering  <meyering@redhat.com>
16539
16540         maint: indent with spaces, not TABs, and add a rule to check this
16541         * tests/test-userspec.c: Indent with spaces, not TABs.
16542         * tests/test-argp.c: Likewise.
16543         * tests/test-c-stack2.sh: Likewise.
16544         * tests/test-parse-duration.sh: Likewise
16545         * m4/strtod.m4: Likewise.
16546         * m4/alloca.m4: Likewise.
16547         * m4/pselect.m4: Likewise.
16548         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16549
16550 2011-07-03  Jim Meyering  <meyering@redhat.com>
16551
16552         maint.mk: correct omissions in prohibit_argmatch_without_use check
16553         This rule would mistakenly report that argmatch.h is included without
16554         use even when both the argmatch and invalid_arg macro were used.
16555         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16556         of argmatch and invalid_arg.
16557
16558 2011-07-03  Bruno Haible  <bruno@clisp.org>
16559
16560         Comments about EINTR.
16561         * lib/safe-read.h: Explain the purpose of this module.
16562         * lib/safe-write.h: Likewise.
16563         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16564         module.
16565         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16566         module.
16567         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16568
16569 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16570
16571         xnanosleep: Rewrite to use new dtotimespec module.
16572         It has the conversion code that used to be in xnanosleep.
16573         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16574         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16575         (TIME_T_MAX): Remove.
16576         (xnanosleep): Rewrite in terms of dtotimespec.
16577         * modules/xnanosleep (Depends-on): Add dtotimespec.
16578         Remove intprops, stdbool.
16579
16580         timespec-add, timespec-sub: new modules
16581         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16582         * lib/timespec-add.c, lib/timespec-sub.c:
16583         * modules/timespec-add, modules/timespec-sub: New files.
16584
16585         dtotimespec: new module
16586         * lib/timespec.h (dtotimespec): New decl.
16587         * lib/dtotimespec.c, modules/dtotimespec: New files.
16588
16589         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16590
16591         pselect: new module
16592         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16593         (pselect): New decls.
16594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16595         since the standard pselect decl uses 'restrict'.
16596         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16597         HAVE_PSELECT, REPLACE_PSELECT.
16598         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16599         HAVE_PSELECT, REPLACE_PSELECT.
16600         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16601
16602         sys_select: don't depend on sys_socket
16603         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16605         This fix works on GNU and GNU-like platforms, but has not been tested
16606         on native Windows.
16607         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16609         gl_HEADER_SYS_SOCKET.
16610         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16611         gl_PREREQ_SYS_H_WINSOCK2.
16612
16613 2011-06-29  Eric Blake  <eblake@redhat.com>
16614
16615         pipe2: fix C89 compile problem
16616         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16617         Reported by Bruno Haible.
16618
16619         pipe, pipe2: don't corrupt fd on error
16620         * lib/pipe.c (pipe): Leave fd unchanged on error.
16621         * lib/pipe2.c (pipe2): Likewise.
16622         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16623         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16624
16625 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16626
16627         mmap-anon: do not use regular expressions inadvertently
16628         * m4/mmap-anon.m4: Remove trailing period from strings sought
16629         in the output.
16630
16631 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16632
16633         nanosleep: fix integer overflow problem
16634         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16635         arithmetic wraps around on overflow.
16636
16637         nanosleep: simplify carrying
16638         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16639         first call to the underyling nanosleep, not for the last one.
16640         This doesn't fix any bugs, but it simplifies the computation of
16641         the remaining delay.  Found while auditing integer overflow issues.
16642
16643         dup2: remove test for existence of fcntl
16644         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16645         "#if HAVE_FCNTL", in the configure-time test program.
16646         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16647         and therefore speeds up "configure" a bit.  Found while
16648         adding the dup2 module to Emacs.
16649
16650 2011-06-24  Eric Blake  <eblake@redhat.com>
16651
16652         maint.mk: enhance useless header checks
16653         * top/maint.mk (_sc_header_without_use): Check both include
16654         styles.
16655         (sc_prohibit_assert_without_use)
16656         (sc_prohibit_close_stream_without_use)
16657         (sc_prohibit_getopt_without_use)
16658         (sc_prohibit_quotearg_without_use)
16659         (sc_prohibit_quote_without_use)
16660         (sc_prohibit_long_options_without_use)
16661         (sc_prohibit_inttostr_without_use)
16662         (sc_prohibit_ignore_value_without_use)
16663         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16664         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16665         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16666         (sc_prohibit_hash_pjw_without_use)
16667         (sc_prohibit_safe_read_without_use)
16668         (sc_prohibit_argmatch_without_use)
16669         (sc_prohibit_canonicalize_without_use)
16670         (sc_prohibit_root_dev_ino_without_use)
16671         (sc_prohibit_openat_without_use)
16672         (sc_prohibit_c_ctype_without_use)
16673         (sc_prohibit_signal_without_use)
16674         (sc_prohibit_stdio--_without_use)
16675         (sc_prohibit_stdio-safer_without_use)
16676         (sc_prohibit_strings_without_use)
16677         (sc_prohibit_intprops_without_use)
16678         (sc_prohibit_stddef_without_use)
16679         (sc_prohibit_xfreopen_without_use): Update clients.
16680
16681 2011-06-24  Jim Meyering  <meyering@redhat.com>
16682
16683         syntax-check: keep one maint.mk rule in sync with its header
16684         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16685         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16686         I prefer to avoid temporary files here, so use <(...), but that
16687         is not supported by /bin/sh, so...
16688         (SHELL): Define to /bin/bash.
16689
16690 2011-06-24  Eric Blake  <eblake@redhat.com>
16691
16692         maint.mk: update sc_prohibit_intprops_without_use
16693         * top/maint.mk (_intprops_names): Match recent changes.
16694
16695 2011-06-24  Bruno Haible  <bruno@clisp.org>
16696
16697         strerror-override: No-op tweak.
16698         * lib/strerror-override.h (strerror_override): Reorder conditions,
16699         for consistency with lib/strerror-override.c.
16700
16701 2011-06-23  Eric Blake  <eblake@redhat.com>
16702
16703         maint.mk: test further PATH_MAX issues
16704         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16705         (sc_prohibit_path_max_allocation): ...and also test alloca.
16706         Suggested by Jim Meyering.
16707
16708 2011-06-22  Eric Blake  <eblake@redhat.com>
16709
16710         maint.mk: add syntax-check to avoid char[PATH_MAX]
16711         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16712
16713         stat: be robust to PATH_MAX definition
16714         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16715         * modules/stat (Depends-on): Add verify.
16716
16717         link: work around IRIX bug
16718         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16719         * lib/link.c (rpl_link): Work around it.
16720         * tests/test-link.h (test_link): Enhance test.
16721         * doc/posix-functions/link.texi (link): Document the bug.
16722
16723         getopt: silence clang warning
16724         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16725         dereference.
16726         Reported by Gustavo Martin Domato.
16727
16728 2011-06-22  Jim Meyering  <meyering@redhat.com>
16729
16730         bootstrap: do not insert a blank line into each .gitignore file
16731         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16732
16733 2011-06-21  Eric Blake  <eblake@redhat.com>
16734
16735         perror: test for output mismatch
16736         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16737         perror on IRIX.
16738
16739         strerror_r: fix OpenBSD behavior on out-of-range
16740         * lib/strerror_r.c (strerror_r): Always use maximal string.
16741         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16742
16743         strerror_r: fix OpenBSD behavior on 0
16744         * lib/strerror-override.c (strerror_override): Also override 0
16745         when needed.
16746         * lib/strerror-override.h (strerror_override): Likewise.
16747         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16748         earlier.
16749         * lib/strerror_r.c (strerror_r): Likewise.
16750         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16751         behavior...
16752         (gl_FUNC_STRERROR_0): ...into new macro.
16753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16754         is overridden.
16755         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16756         * modules/strerror-override (Files): Add strerror.m4.
16757         (configure.ac): Also provide override for 0 when needed.
16758         * doc/posix-functions/strerror.texi (strerror): Document this.
16759         * doc/posix-functions/perror.texi (perror): Likewise.
16760
16761         perror: adjust array size
16762         * modules/perror (Depends-on): Add strerror-override.
16763         * lib/perror.c (perror): Use it to avoid magic number.
16764
16765         strerror-override: reduce size
16766         * lib/strerror-override.c (strerror_override): Use fewer lines.
16767
16768 2011-06-20  Bruno Haible  <bruno@clisp.org>
16769
16770         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16771         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16772
16773 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         alloca: port to compilers that can optimize like GCC 4.6.0
16776         * lib/alloca.c (find_stack_direction): New signature, taken from
16777         Autoconf git.  This works with GCC 4.6.0.  This code should never
16778         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16779         be used with other compilers that optimize as well as GCC 4.6.0 does.
16780         (alloca): Adjust to new signature.
16781         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16782         New macro, which patches Autoconf in a similar way.
16783
16784         c-stack: stop worrying about stack direction
16785         * lib/c-stack.c (find_stack_direction): Remove.
16786         (segv_handler): Don't worry about stack direction growth, as it's
16787         too much of a pain to configure this correctly, given how compilers
16788         are optimizing-away our stack-growth detection code.  Instead, assume
16789         that any access to just before or just after the stack is OK.
16790         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16791         Don't require AC_FUNC_ALLOCA; no longer needed.
16792
16793 2011-06-20  Eric Blake  <eblake@redhat.com>
16794
16795         test-stat: don't allocate PATH_MAX bytes
16796         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16797         PATH_MAX-sized buffer.
16798         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16799         * modules/stat-tests (Depends-on): Likewise.
16800         * tests/test-fstatat.c (includes): Drop pathmax.h.
16801         * tests/test-stat.c (includes): Likewise.
16802         Reported by Bruno Haible.
16803
16804 2011-06-20  Bruno Haible  <bruno@clisp.org>
16805
16806         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16807         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16808         * lib/float.c: New file.
16809         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16810         REPLACE_FLOAT_LDBL.
16811         * modules/float (Files): Add lib/float.c.
16812         (configure.ac): Invoke AC_LIBOBJ.
16813         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16814
16815 2011-06-20  Bruno Haible  <bruno@clisp.org>
16816
16817         Tests for module 'float'.
16818         * modules/float-tests: New file.
16819         * tests/test-float.c: New file.
16820
16821 2011-06-19  Bruno Haible  <bruno@clisp.org>
16822
16823         isinf: Coding style.
16824         * lib/isinf.c: Use GNU coding style.
16825
16826 2011-06-19  Bruno Haible  <bruno@clisp.org>
16827
16828         linkat test: Avoid test failure on AIX 7.1.
16829         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16830         * tests/test-link.h (test_link): Likewise.
16831
16832 2011-06-19  Bruno Haible  <bruno@clisp.org>
16833
16834         pread test: Avoid test failure on OpenBSD 4.9.
16835         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16836
16837 2011-06-19  Bruno Haible  <bruno@clisp.org>
16838
16839         sprintf-posix: Fix test failure on AIX 7.1.
16840         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16841         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16842         on AIX.
16843         * doc/posix-functions/fprintf.texi: Likewise.
16844         * doc/posix-functions/printf.texi: Likewise.
16845         * doc/posix-functions/snprintf.texi: Likewise.
16846         * doc/posix-functions/sprintf.texi: Likewise.
16847         * doc/posix-functions/vdprintf.texi: Likewise.
16848         * doc/posix-functions/vfprintf.texi: Likewise.
16849         * doc/posix-functions/vprintf.texi: Likewise.
16850         * doc/posix-functions/vsnprintf.texi: Likewise.
16851         * doc/posix-functions/vsprintf.texi: Likewise.
16852
16853 2011-06-19  Bruno Haible  <bruno@clisp.org>
16854
16855         roundl-ieee: Fix test failure on AIX 7.1.
16856         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16857         * doc/posix-functions/roundl.texi: Mention problem with negative
16858         arguments.
16859
16860 2011-06-19  Bruno Haible  <bruno@clisp.org>
16861
16862         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16863         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16864         * doc/posix-functions/round.texi: Mention problem with negative
16865         arguments.
16866         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16867
16868 2011-06-19  Bruno Haible  <bruno@clisp.org>
16869
16870         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16872         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16873         * doc/posix-functions/roundf.texi: Mention problem with negative
16874         arguments.
16875         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16876
16877 2011-06-19  Bruno Haible  <bruno@clisp.org>
16878
16879         ceilf-ieee: Work around bug on MacOS X 10.5.
16880         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16881
16882         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16883         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16884         IEEE compliant, avoid compiler optimizations.
16885         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16886         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16887         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16888         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16890         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16891         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16893         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16894         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16895
16896 2011-06-19  Bruno Haible  <bruno@clisp.org>
16897
16898         ceilf-ieee: Work around bug on AIX 7.1.
16899         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16900         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16901
16902 2011-06-19  Bruno Haible  <bruno@clisp.org>
16903
16904         ceil-ieee: Work around bug on AIX 7.1.
16905         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16906         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16907
16908 2011-06-18  Bruno Haible  <bruno@clisp.org>
16909
16910         fsync test: Avoid test failure on MacOS X and AIX.
16911         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16912         EINVAL.
16913
16914 2011-06-18  Bruno Haible  <bruno@clisp.org>
16915
16916         openat, fdopendir tests: Fix link errors.
16917         * modules/openat-tests (Depends-on): Add progname.
16918         * modules/fdopendir-tests (Depends-on): Likewise.
16919         * tests/test-fchownat.c: Include progname.h.
16920         (main): Call set_program_name.
16921         * tests/test-fstatat.c: Include progname.h.
16922         (main): Call set_program_name.
16923         * tests/test-mkdirat.c: Include progname.h.
16924         (main): Call set_program_name.
16925         * tests/test-openat.c: Include progname.h.
16926         (main): Call set_program_name.
16927         * tests/test-unlinkat.c: Include progname.h.
16928         (main): Call set_program_name.
16929         * tests/test-fdopendir.c: Include progname.h.
16930         (main): Call set_program_name.
16931
16932 2011-06-18  Bruno Haible  <bruno@clisp.org>
16933
16934         Doc update.
16935         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16936         HP-UX.
16937         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16938
16939 2011-06-18  Bruno Haible  <bruno@clisp.org>
16940
16941         getcwd tests: Avoid compilation error on HP-UX 11.31.
16942         * modules/getcwd-tests (Depends-on): Add pathmax.
16943         * tests/test-getcwd.c: Include pathmax.h.
16944
16945 2011-06-18  Bruno Haible  <bruno@clisp.org>
16946
16947         isfinite, isinf: Fix link error on AIX 6 and 7.
16948         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16949         needed, also test the macro with a 'float' argument.
16950         * m4/isinf.m4 (gl_ISINF): Likewise.
16951
16952 2011-06-18  Bruno Haible  <bruno@clisp.org>
16953
16954         getloadavg: Don't clobber LIBS. Regression from previous commit.
16955         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16956         AC_CHECK_LIB from here...
16957         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16958         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16959         gl_func_getloadavg_done.
16960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16961
16962 2011-06-18  Bruno Haible  <bruno@clisp.org>
16963
16964         clean-temp: Improve documentation.
16965         * lib/clean-temp.h: Explain better how to use this module.
16966         Reported by John Darrington <john@darrington.wattle.id.au>.
16967
16968 2011-06-17  Bruno Haible  <bruno@clisp.org>
16969
16970         pread, pwrite: Avoid cc warning on AIX.
16971         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16972         (pwrite): Likewise.
16973
16974 2011-06-17  Bruno Haible  <bruno@clisp.org>
16975
16976         spawn-pipe tests: Fix link error.
16977         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16979
16980 2011-06-17  Bruno Haible  <bruno@clisp.org>
16981
16982         Tests: Remove unnecessary dependency.
16983         * modules/canonicalize-tests (Depends-on): Remove progname.
16984         * modules/chown-tests (Depends-on): Likewise.
16985         * modules/dirname-tests (Depends-on): Likewise.
16986         * modules/fdopendir-tests (Depends-on): Likewise.
16987         * modules/fdutimensat-tests (Depends-on): Likewise.
16988         * modules/hash-tests (Depends-on): Likewise.
16989         * modules/lchown-tests (Depends-on): Likewise.
16990         * modules/linkat-tests (Depends-on): Likewise.
16991         * modules/renameat-tests (Depends-on): Likewise.
16992         * modules/spawn-pipe-tests (Depends-on): Likewise.
16993         * modules/utimensat-tests (Depends-on): Likewise.
16994
16995 2011-06-17  Bruno Haible  <bruno@clisp.org>
16996
16997         spawn-pipe tests: Fix link error.
16998         * tests/test-spawn-pipe-child.c: Undefine fflush.
16999
17000 2011-06-17  Bruno Haible  <bruno@clisp.org>
17001
17002         Fix tests link errors.
17003         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17004         * modules/chown-tests (Makefile.am): Don't link test-chown with
17005         LIBINTL.
17006         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17007         LIBINTL.
17008         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17009         LIBINTL.
17010         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17011         LIBINTL.
17012
17013 2011-06-16  Bruno Haible  <bruno@clisp.org>
17014
17015         crypto/gc-sha1: Fix recent regression.
17016         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17017         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17018
17019         crypto/gc-md5: Fix recent regression.
17020         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17021
17022         crypto/gc-md4: Fix recent regression.
17023         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17024         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17025
17026         crypto/gc-arctwo: Fix recent regression.
17027         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17028         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17029
17030         crypto/gc-rijndael: Fix recent regression.
17031         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17032         (configure.ac): Invoke AC_LIBOBJ here.
17033         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17035
17036         crypto/gc-hmac-sha1: Fix recent regression.
17037         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17038         (configure.ac): Invoke AC_LIBOBJ here.
17039         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17041
17042         crypto/gc-hmac-md5: Fix recent regression.
17043         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17044         (configure.ac): Invoke AC_LIBOBJ here.
17045         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17047
17048         crypto/gc-des: Fix recent regression.
17049         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17050         (configure.ac): Invoke AC_LIBOBJ here.
17051         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17053
17054         crypto/gc-arcfour: Fix recent regression.
17055         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17056         (configure.ac): Invoke AC_LIBOBJ here.
17057         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17059
17060 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17061
17062         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17063         After the 2011-05-21 change, this macro requires
17064         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17066
17067 2011-06-16  Bruno Haible  <bruno@clisp.org>
17068
17069         fprintftime: Move AC_LIBOBJ invocations to module description.
17070         * m4/fprintftime.m4: Remove file.
17071         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17072         (configure.ac): Remove gl_FPRINTFTIME call.
17073         (Makefile.am): Augment lib_SOURCES.
17074         Reported by Jim Meyering.
17075
17076 2011-06-16  Bruno Haible  <bruno@clisp.org>
17077
17078         tmpfile-safer: Finish 2011-05-23 commit.
17079         * m4/stdio-safer.m4: Really remove file.
17080         Reported by Jim Meyering.
17081
17082 2011-06-16  Bruno Haible  <bruno@clisp.org>
17083
17084         syntax-check: Fix typo.
17085         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17086         printf-posix.m4.
17087         Reported by Jim Meyering.
17088
17089 2011-06-13  Jim Meyering  <meyering@redhat.com>
17090
17091         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17092         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17093
17094 2011-05-23  Bruno Haible  <bruno@clisp.org>
17095
17096         yesno: Move AC_LIBOBJ invocations to module description.
17097         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17098         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17099
17100 2011-05-23  Bruno Haible  <bruno@clisp.org>
17101
17102         xstrtol: Move AC_LIBOBJ invocations to module description.
17103         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17104         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17105
17106 2011-05-23  Bruno Haible  <bruno@clisp.org>
17107
17108         xstrtold: Move AC_LIBOBJ invocations to module description.
17109         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17110         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17111
17112 2011-05-23  Bruno Haible  <bruno@clisp.org>
17113
17114         xstrtod: Move AC_LIBOBJ invocations to module description.
17115         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17116         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17117
17118 2011-05-23  Bruno Haible  <bruno@clisp.org>
17119
17120         xnanosleep: Move AC_LIBOBJ invocations to module description.
17121         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17122         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17123
17124 2011-05-23  Bruno Haible  <bruno@clisp.org>
17125
17126         xgetcwd: Move AC_LIBOBJ invocations to module description.
17127         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17128         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17129
17130 2011-05-23  Bruno Haible  <bruno@clisp.org>
17131
17132         xalloc: Move AC_LIBOBJ invocations to module description.
17133         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17134         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17135
17136 2011-05-23  Bruno Haible  <bruno@clisp.org>
17137
17138         write-any-file: Move AC_LIBOBJ invocations to module description.
17139         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17140         invocation.
17141         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17142
17143 2011-05-23  Bruno Haible  <bruno@clisp.org>
17144
17145         utimens: Move AC_LIBOBJ invocations to module description.
17146         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17147         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17148
17149 2011-05-23  Bruno Haible  <bruno@clisp.org>
17150
17151         utimecmp: Move AC_LIBOBJ invocations to module description.
17152         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17153         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17154
17155 2011-05-23  Bruno Haible  <bruno@clisp.org>
17156
17157         userspec: Move AC_LIBOBJ invocations to module description.
17158         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17159         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17160
17161 2011-05-23  Bruno Haible  <bruno@clisp.org>
17162
17163         unlinkdir: Move AC_LIBOBJ invocations to module description.
17164         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17165         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17166
17167 2011-05-23  Bruno Haible  <bruno@clisp.org>
17168
17169         unistd-safer: Move AC_LIBOBJ invocations to module description.
17170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17171         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17172
17173 2011-05-23  Bruno Haible  <bruno@clisp.org>
17174
17175         tempname: Move AC_LIBOBJ invocations to module description.
17176         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17177         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17178
17179 2011-05-23  Bruno Haible  <bruno@clisp.org>
17180
17181         strftime: Move AC_LIBOBJ invocations to module description.
17182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17183         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17184
17185 2011-05-23  Bruno Haible  <bruno@clisp.org>
17186
17187         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17188         * m4/stdlib-safer.m4: Remove file.
17189         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17190         (configure.ac): Remove gl_STDLIB_SAFER call.
17191         (Makefile.am): Augment lib_SOURCES.
17192
17193 2011-05-23  Bruno Haible  <bruno@clisp.org>
17194
17195         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17196         * m4/stdio-safer.m4: Remove file.
17197         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17198         (configure.ac): Remove gl_TMPFILE_SAFER call.
17199         (Makefile.am): Augment lib_SOURCES.
17200
17201 2011-05-23  Bruno Haible  <bruno@clisp.org>
17202
17203         popen-safer: Move AC_LIBOBJ invocations to module description.
17204         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17205         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17206         (configure.ac): Remove gl_POPEN_SAFER call.
17207         (Makefile.am): Augment lib_SOURCES.
17208
17209 2011-05-23  Bruno Haible  <bruno@clisp.org>
17210
17211         freopen-safer: Move AC_LIBOBJ invocations to module description.
17212         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17213         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17214         (configure.ac): Remove gl_FREOPEN_SAFER call.
17215         (Makefile.am): Augment lib_SOURCES.
17216
17217 2011-05-23  Bruno Haible  <bruno@clisp.org>
17218
17219         fopen-safer: Move AC_LIBOBJ invocations to module description.
17220         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17221         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17222         (configure.ac): Remove gl_FOPEN_SAFER call.
17223         (Makefile.am): Augment lib_SOURCES.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17228         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17229         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17230
17231 2011-05-23  Bruno Haible  <bruno@clisp.org>
17232
17233         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17234         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17235         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17236
17237 2011-05-23  Bruno Haible  <bruno@clisp.org>
17238
17239         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17240         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17241         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17242
17243 2011-05-23  Bruno Haible  <bruno@clisp.org>
17244
17245         settime: Move AC_LIBOBJ invocations to module description.
17246         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17247         * modules/settime (Makefile.am): Augment lib_SOURCES.
17248
17249 2011-05-23  Bruno Haible  <bruno@clisp.org>
17250
17251         savedir: Move AC_LIBOBJ invocations to module description.
17252         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17253         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17254
17255 2011-05-23  Bruno Haible  <bruno@clisp.org>
17256
17257         save-cwd: Move AC_LIBOBJ invocations to module description.
17258         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17259         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17260
17261 2011-05-23  Bruno Haible  <bruno@clisp.org>
17262
17263         same: Move AC_LIBOBJ invocations to module description.
17264         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17265         * modules/same (Makefile.am): Augment lib_SOURCES.
17266
17267 2011-05-23  Bruno Haible  <bruno@clisp.org>
17268
17269         safe-write: Move AC_LIBOBJ invocations to module description.
17270         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17271         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17272         instead of gl_SAFE_WRITE.
17273         (Makefile.am): Augment lib_SOURCES.
17274
17275 2011-05-23  Bruno Haible  <bruno@clisp.org>
17276
17277         safe-read: Move AC_LIBOBJ invocations to module description.
17278         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17279         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17280         of gl_SAFE_READ.
17281         (Makefile.am): Augment lib_SOURCES.
17282
17283 2011-05-23  Bruno Haible  <bruno@clisp.org>
17284
17285         safe-alloc: Move AC_LIBOBJ invocations to module description.
17286         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17287         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17288
17289 2011-05-23  Bruno Haible  <bruno@clisp.org>
17290
17291         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17292         * m4/rijndael.m4: Remove file.
17293         * modules/crypto/rijndael (Files): Remove it.
17294         (configure.ac): Remove gl_RIJNDAEL call.
17295         (Makefile.am): Augment lib_SOURCES.
17296
17297 2011-05-23  Bruno Haible  <bruno@clisp.org>
17298
17299         readtokens: Move AC_LIBOBJ invocations to module description.
17300         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17301         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17302
17303 2011-05-23  Bruno Haible  <bruno@clisp.org>
17304
17305         read-file: Move AC_LIBOBJ invocations to module description.
17306         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17307         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17308         of gl_FUNC_READ_FILE.
17309         (Makefile.am): Augment lib_SOURCES.
17310
17311 2011-05-23  Bruno Haible  <bruno@clisp.org>
17312
17313         quotearg: Move AC_LIBOBJ invocations to module description.
17314         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17315         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17316
17317 2011-05-23  Bruno Haible  <bruno@clisp.org>
17318
17319         quote: Move AC_LIBOBJ invocations to module description.
17320         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17321         * modules/quote (Makefile.am): Augment lib_SOURCES.
17322
17323 2011-05-23  Bruno Haible  <bruno@clisp.org>
17324
17325         posixver: Move AC_LIBOBJ invocations to module description.
17326         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17327         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17328
17329 2011-05-23  Bruno Haible  <bruno@clisp.org>
17330
17331         posixtm: Move AC_LIBOBJ invocations to module description.
17332         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17333         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17334
17335 2011-05-23  Bruno Haible  <bruno@clisp.org>
17336
17337         physmem: Move AC_LIBOBJ invocations to module description.
17338         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17339         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17340
17341 2011-05-23  Bruno Haible  <bruno@clisp.org>
17342
17343         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17344         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17345         invocation.
17346         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17347
17348 2011-05-23  Bruno Haible  <bruno@clisp.org>
17349
17350         mpsort: Move AC_LIBOBJ invocations to module description.
17351         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17352         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17353
17354 2011-05-23  Bruno Haible  <bruno@clisp.org>
17355
17356         modechange: Move AC_LIBOBJ invocations to module description.
17357         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17358         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17359
17360 2011-05-23  Bruno Haible  <bruno@clisp.org>
17361
17362         mkdir-p: Move AC_LIBOBJ invocations to module description.
17363         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17364         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17365
17366 2011-05-23  Bruno Haible  <bruno@clisp.org>
17367
17368         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17369         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17370         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17371
17372 2011-05-23  Bruno Haible  <bruno@clisp.org>
17373
17374         mgetgroups: Move AC_LIBOBJ invocations to module description.
17375         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17376         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17377
17378 2011-05-23  Bruno Haible  <bruno@clisp.org>
17379
17380         memxor: Move AC_LIBOBJ invocations to module description.
17381         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17382         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17383
17384 2011-05-23  Bruno Haible  <bruno@clisp.org>
17385
17386         memcoll: Move AC_LIBOBJ invocations to module description.
17387         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17388         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17389
17390 2011-05-23  Bruno Haible  <bruno@clisp.org>
17391
17392         memcasecmp: Move AC_LIBOBJ invocations to module description.
17393         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17394         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17395
17396 2011-05-23  Bruno Haible  <bruno@clisp.org>
17397
17398         crypto/md5: Move AC_LIBOBJ invocations to module description.
17399         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17400         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17401
17402 2011-05-23  Bruno Haible  <bruno@clisp.org>
17403
17404         crypto/md4: Move AC_LIBOBJ invocations to module description.
17405         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17406         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17407
17408 2011-05-23  Bruno Haible  <bruno@clisp.org>
17409
17410         crypto/md2: Move AC_LIBOBJ invocations to module description.
17411         * m4/md2.m4: Remove file.
17412         * modules/crypto/md2 (Files): Remove it.
17413         (configure.ac): Remove gl_MD2 call.
17414         (Makefile.am): Augment lib_SOURCES.
17415
17416 2011-05-23  Bruno Haible  <bruno@clisp.org>
17417
17418         long-options: Move AC_LIBOBJ invocations to module description.
17419         * m4/long-options.m4: Remove file.
17420         * modules/long-options (Files): Remove it.
17421         (configure.ac): Remove gl_LONG_OPTIONS call.
17422         (Makefile.am): Augment lib_SOURCES.
17423
17424 2011-05-23  Bruno Haible  <bruno@clisp.org>
17425
17426         i-ring: Move AC_LIBOBJ invocations to module description.
17427         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17428         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17429
17430 2011-05-23  Bruno Haible  <bruno@clisp.org>
17431
17432         idcache: Move AC_LIBOBJ invocations to module description.
17433         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17434         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17435
17436 2011-05-23  Bruno Haible  <bruno@clisp.org>
17437
17438         human: Move AC_LIBOBJ invocations to module description.
17439         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17440         * modules/human (Makefile.am): Augment lib_SOURCES.
17441
17442 2011-05-23  Bruno Haible  <bruno@clisp.org>
17443
17444         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17445         * m4/hmac-sha1.m4: Remove file.
17446         * modules/crypto/hmac-sha1 (Files): Remove it.
17447         (configure.ac): Remove gl_HMAC_SHA1 call.
17448         (Makefile.am): Augment lib_SOURCES.
17449
17450 2011-05-23  Bruno Haible  <bruno@clisp.org>
17451
17452         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17453         * m4/hmac-md5.m4: Remove file.
17454         * modules/crypto/hmac-md5 (Files): Remove it.
17455         (configure.ac): Remove gl_HMAC_MD5 call.
17456         (Makefile.am): Augment lib_SOURCES.
17457
17458 2011-05-23  Bruno Haible  <bruno@clisp.org>
17459
17460         hash: Move AC_LIBOBJ invocations to module description.
17461         * m4/hash.m4: Remove file.
17462         * modules/hash (Files): Remove it.
17463         (configure.ac): Remove gl_HASH call.
17464         (Makefile.am): Augment lib_SOURCES.
17465
17466 2011-05-23  Bruno Haible  <bruno@clisp.org>
17467
17468         hard-locale: Move AC_LIBOBJ invocations to module description.
17469         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17470         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17471
17472 2011-05-23  Bruno Haible  <bruno@clisp.org>
17473
17474         getugroups: Move AC_LIBOBJ invocations to module description.
17475         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17476         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17477
17478 2011-05-23  Bruno Haible  <bruno@clisp.org>
17479
17480         gettime: Move AC_LIBOBJ invocations to module description.
17481         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17482         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17483
17484 2011-05-23  Bruno Haible  <bruno@clisp.org>
17485
17486         getndelim2: Move AC_LIBOBJ invocations to module description.
17487         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17488         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17489
17490 2011-05-23  Bruno Haible  <bruno@clisp.org>
17491
17492         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17493         * m4/gc-pbkdf2-sha1.m4: Remove file.
17494         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17495         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17496         (Makefile.am): Augment lib_SOURCES.
17497
17498 2011-05-23  Bruno Haible  <bruno@clisp.org>
17499
17500         fts: Move AC_LIBOBJ invocations to module description.
17501         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17502         * modules/fts (configure.ac): ... to here.
17503
17504 2011-05-23  Bruno Haible  <bruno@clisp.org>
17505
17506         file-type: Move AC_LIBOBJ invocations to module description.
17507         * m4/file-type.m4: Remove file.
17508         * modules/file-type (Files): Remove it.
17509         (configure.ac): Remove gl_FILE_TYPE call.
17510         (Makefile.am): Augment lib_SOURCES.
17511
17512 2011-05-23  Bruno Haible  <bruno@clisp.org>
17513
17514         filenamecat*: Respect rules for use of AC_LIBOBJ.
17515         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17516         Remove AC_LIBOBJ invocation.
17517         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17518         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17519
17520 2011-05-23  Bruno Haible  <bruno@clisp.org>
17521
17522         filemode: Move AC_LIBOBJ invocations to module description.
17523         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17524         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17525
17526 2011-05-23  Bruno Haible  <bruno@clisp.org>
17527
17528         openat-safer: Move AC_LIBOBJ invocations to module description.
17529         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17530         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17531
17532 2011-05-23  Bruno Haible  <bruno@clisp.org>
17533
17534         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17536         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17537
17538 2011-05-23  Bruno Haible  <bruno@clisp.org>
17539
17540         exclude: Move AC_LIBOBJ invocations to module description.
17541         * m4/exclude.m4: Remove file.
17542         * modules/exclude (Files): Remove it.
17543         (configure.ac): Remove gl_EXCLUDE call.
17544         (Makefile.am): Augment lib_SOURCES.
17545
17546 2011-05-23  Bruno Haible  <bruno@clisp.org>
17547
17548         dirname*: Respect rules for use of AC_LIBOBJ.
17549         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17550         invocations.
17551         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17552         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17553
17554 2011-05-23  Bruno Haible  <bruno@clisp.org>
17555
17556         dirent-safer: Move AC_LIBOBJ invocations to module description.
17557         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17558         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17559
17560 2011-05-23  Bruno Haible  <bruno@clisp.org>
17561
17562         crypto/des: Move AC_LIBOBJ invocations to module description.
17563         * m4/des.m4: Remove file.
17564         * modules/crypto/des (Files): Remove it.
17565         (configure.ac): Remove gl_DES call.
17566         (Makefile.am): Augment lib_SOURCES.
17567
17568 2011-05-23  Bruno Haible  <bruno@clisp.org>
17569
17570         cycle-check: Move AC_LIBOBJ invocations to module description.
17571         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17572         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17573
17574 2011-05-23  Bruno Haible  <bruno@clisp.org>
17575
17576         c-strtold: Move AC_LIBOBJ invocations to module description.
17577         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17578         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17579
17580 2011-05-23  Bruno Haible  <bruno@clisp.org>
17581
17582         c-strtod: Move AC_LIBOBJ invocations to module description.
17583         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17584         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17585
17586 2011-05-23  Bruno Haible  <bruno@clisp.org>
17587
17588         crc: Move AC_LIBOBJ invocations to module description.
17589         * m4/crc.m4: Remove file.
17590         * modules/crc (Files): Remove it.
17591         (configure.ac): Remove gl_CRC call.
17592         (Makefile.am): Augment lib_SOURCES.
17593
17594 2011-05-23  Bruno Haible  <bruno@clisp.org>
17595
17596         close-stream: Move AC_LIBOBJ invocations to module description.
17597         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17598         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17599
17600 2011-05-23  Bruno Haible  <bruno@clisp.org>
17601
17602         closeout: Move AC_LIBOBJ invocations to module description.
17603         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17604         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17605
17606 2011-05-23  Bruno Haible  <bruno@clisp.org>
17607
17608         closein: Move AC_LIBOBJ invocations to module description.
17609         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17610         * modules/closein (Makefile.am): Augment lib_SOURCES.
17611
17612 2011-05-23  Bruno Haible  <bruno@clisp.org>
17613
17614         cloexec: Move AC_LIBOBJ invocations to module description.
17615         * m4/cloexec.m4: Remove file.
17616         * modules/cloexec (Files): Remove it.
17617         (configure.ac): Remove gl_CLOEXEC call.
17618         (Makefile.am): Augment lib_SOURCES.
17619
17620 2011-05-23  Bruno Haible  <bruno@clisp.org>
17621
17622         check-version: Move AC_LIBOBJ invocations to module description.
17623         * m4/check-version.m4: Remove file.
17624         * modules/check-version (Files): Remove it.
17625         (configure.ac): Remove gl_CHECK_VERSION call.
17626         (Makefile.am): Augment lib_SOURCES.
17627
17628 2011-05-23  Bruno Haible  <bruno@clisp.org>
17629
17630         chdir-safer: Move AC_LIBOBJ invocations to module description.
17631         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17632         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17633
17634 2011-05-23  Bruno Haible  <bruno@clisp.org>
17635
17636         canonicalize: Move AC_LIBOBJ invocations to module description.
17637         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17638         AC_LIBOBJ invocation.
17639         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17640
17641 2011-05-23  Bruno Haible  <bruno@clisp.org>
17642
17643         canon-host: Move AC_LIBOBJ invocations to module description.
17644         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17645         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17646         instead of gl_CANON_HOST.
17647         (Makefile.am): Augment lib_SOURCES.
17648
17649 2011-05-23  Bruno Haible  <bruno@clisp.org>
17650
17651         backupfile: Move AC_LIBOBJ invocations to module description.
17652         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17653         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17654
17655 2011-05-23  Bruno Haible  <bruno@clisp.org>
17656
17657         argmatch: Move AC_LIBOBJ invocations to module description.
17658         * m4/argmatch.m4: Remove file.
17659         * modules/argmatch (Files): Remove it.
17660         (configure.ac): Remove gl_ARGMATCH call.
17661         (Makefile.am): Augment lib_SOURCES.
17662
17663 2011-05-23  Bruno Haible  <bruno@clisp.org>
17664
17665         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17666         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17667         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17668
17669 2011-05-23  Bruno Haible  <bruno@clisp.org>
17670
17671         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17672         * m4/arcfour.m4: Remove file.
17673         * modules/crypto/arcfour (Files): Remove it.
17674         (configure.ac): Remove gl_ARCFOUR call.
17675         (Makefile.am): Augment lib_SOURCES.
17676
17677 2011-05-22  Bruno Haible  <bruno@clisp.org>
17678
17679         write: Move AC_LIBOBJ invocations to module description.
17680         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17681         * modules/write (configure.ac): ... to here.
17682
17683 2011-05-22  Bruno Haible  <bruno@clisp.org>
17684
17685         wmemset: Move AC_LIBOBJ invocations to module description.
17686         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17687         here...
17688         * modules/wmemset (configure.ac): ... to here.
17689
17690 2011-05-22  Bruno Haible  <bruno@clisp.org>
17691
17692         wmemmove: Move AC_LIBOBJ invocations to module description.
17693         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17694         here...
17695         * modules/wmemmove (configure.ac): ... to here.
17696
17697 2011-05-22  Bruno Haible  <bruno@clisp.org>
17698
17699         wmemcpy: Move AC_LIBOBJ invocations to module description.
17700         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17701         here...
17702         * modules/wmemcpy (configure.ac): ... to here.
17703
17704 2011-05-22  Bruno Haible  <bruno@clisp.org>
17705
17706         wmemcmp: Move AC_LIBOBJ invocations to module description.
17707         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17708         here...
17709         * modules/wmemcmp (configure.ac): ... to here.
17710
17711 2011-05-22  Bruno Haible  <bruno@clisp.org>
17712
17713         wmemchr: Move AC_LIBOBJ invocations to module description.
17714         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17715         here...
17716         * modules/wmemchr (configure.ac): ... to here.
17717
17718 2011-05-22  Bruno Haible  <bruno@clisp.org>
17719
17720         wcswidth: Move AC_LIBOBJ invocations to module description.
17721         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17722         here...
17723         * modules/wcswidth (configure.ac): ... to here.
17724
17725 2011-05-22  Bruno Haible  <bruno@clisp.org>
17726
17727         wcwidth: Respect rules for use of AC_LIBOBJ.
17728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17729         invocation from here...
17730         * modules/wcwidth (configure.ac): ... to here.
17731         (Depends-on): Update conditions.
17732
17733 2011-05-22  Bruno Haible  <bruno@clisp.org>
17734
17735         wctype: Move AC_LIBOBJ invocations to module description.
17736         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17737         invocation from here...
17738         * modules/wctype (configure.ac): ... to here.
17739         (Depends-on): Update conditions.
17740
17741 2011-05-22  Bruno Haible  <bruno@clisp.org>
17742
17743         wctrans: Move AC_LIBOBJ invocations to module description.
17744         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17745         invocation from here...
17746         * modules/wctrans (configure.ac): ... to here.
17747
17748 2011-05-22  Bruno Haible  <bruno@clisp.org>
17749
17750         wctomb: Move AC_LIBOBJ invocations to module description.
17751         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17752         invocations from here...
17753         * modules/wctomb (configure.ac): ... to here.
17754
17755 2011-05-22  Bruno Haible  <bruno@clisp.org>
17756
17757         wctob: Move AC_LIBOBJ invocations to module description.
17758         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17759         gl_PREREQ_WCTOB invocations from here...
17760         * modules/wctob (configure.ac): ... to here.
17761         (Depends-on): Update conditions.
17762
17763 2011-05-22  Bruno Haible  <bruno@clisp.org>
17764
17765         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17766         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17767         here...
17768         * modules/wcsxfrm (configure.ac): ... to here.
17769
17770 2011-05-22  Bruno Haible  <bruno@clisp.org>
17771
17772         wcstok: Move AC_LIBOBJ invocations to module description.
17773         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17774         * modules/wcstok (configure.ac): ... to here.
17775
17776 2011-05-22  Bruno Haible  <bruno@clisp.org>
17777
17778         wcsstr: Move AC_LIBOBJ invocations to module description.
17779         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17780         * modules/wcsstr (configure.ac): ... to here.
17781
17782 2011-05-22  Bruno Haible  <bruno@clisp.org>
17783
17784         wcsspn: Move AC_LIBOBJ invocations to module description.
17785         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17786         * modules/wcsspn (configure.ac): ... to here.
17787
17788 2011-05-22  Bruno Haible  <bruno@clisp.org>
17789
17790         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17791         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17792         gl_PREREQ_WCSRTOMBS invocations from here...
17793         * modules/wcsrtombs (configure.ac): ... to here.
17794
17795 2011-05-22  Bruno Haible  <bruno@clisp.org>
17796
17797         wcsrchr: Move AC_LIBOBJ invocations to module description.
17798         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17799         here...
17800         * modules/wcsrchr (configure.ac): ... to here.
17801
17802 2011-05-22  Bruno Haible  <bruno@clisp.org>
17803
17804         wcspbrk: Move AC_LIBOBJ invocations to module description.
17805         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17806         here...
17807         * modules/wcspbrk (configure.ac): ... to here.
17808
17809 2011-05-22  Bruno Haible  <bruno@clisp.org>
17810
17811         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17812         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17813         gl_PREREQ_WCSNRTOMBS invocations from here...
17814         * modules/wcsnrtombs (configure.ac): ... to here.
17815
17816 2011-05-22  Bruno Haible  <bruno@clisp.org>
17817
17818         wcsnlen: Move AC_LIBOBJ invocations to module description.
17819         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17820         here...
17821         * modules/wcsnlen (configure.ac): ... to here.
17822
17823 2011-05-22  Bruno Haible  <bruno@clisp.org>
17824
17825         wcsncpy: Move AC_LIBOBJ invocations to module description.
17826         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17827         here...
17828         * modules/wcsncpy (configure.ac): ... to here.
17829
17830 2011-05-22  Bruno Haible  <bruno@clisp.org>
17831
17832         wcsncmp: Move AC_LIBOBJ invocations to module description.
17833         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17834         here...
17835         * modules/wcsncmp (configure.ac): ... to here.
17836
17837 2011-05-22  Bruno Haible  <bruno@clisp.org>
17838
17839         wcsncat: Move AC_LIBOBJ invocations to module description.
17840         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17841         here...
17842         * modules/wcsncat (configure.ac): ... to here.
17843
17844 2011-05-22  Bruno Haible  <bruno@clisp.org>
17845
17846         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17847         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17848         from here...
17849         * modules/wcsncasecmp (configure.ac): ... to here.
17850
17851 2011-05-22  Bruno Haible  <bruno@clisp.org>
17852
17853         wcslen: Move AC_LIBOBJ invocations to module description.
17854         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17855         * modules/wcslen (configure.ac): ... to here.
17856
17857 2011-05-22  Bruno Haible  <bruno@clisp.org>
17858
17859         wcsdup: Move AC_LIBOBJ invocations to module description.
17860         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17861         * modules/wcsdup (configure.ac): ... to here.
17862
17863 2011-05-22  Bruno Haible  <bruno@clisp.org>
17864
17865         wcscspn: Move AC_LIBOBJ invocations to module description.
17866         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17867         here...
17868         * modules/wcscspn (configure.ac): ... to here.
17869
17870 2011-05-22  Bruno Haible  <bruno@clisp.org>
17871
17872         wcscpy: Move AC_LIBOBJ invocations to module description.
17873         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17874         * modules/wcscpy (configure.ac): ... to here.
17875
17876 2011-05-22  Bruno Haible  <bruno@clisp.org>
17877
17878         wcscoll: Move AC_LIBOBJ invocations to module description.
17879         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17880         here...
17881         * modules/wcscoll (configure.ac): ... to here.
17882
17883 2011-05-22  Bruno Haible  <bruno@clisp.org>
17884
17885         wcscmp: Move AC_LIBOBJ invocations to module description.
17886         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17887         * modules/wcscmp (configure.ac): ... to here.
17888
17889 2011-05-22  Bruno Haible  <bruno@clisp.org>
17890
17891         wcschr: Move AC_LIBOBJ invocations to module description.
17892         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17893         * modules/wcschr (configure.ac): ... to here.
17894
17895 2011-05-22  Bruno Haible  <bruno@clisp.org>
17896
17897         wcscat: Move AC_LIBOBJ invocations to module description.
17898         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17899         * modules/wcscat (configure.ac): ... to here.
17900
17901 2011-05-22  Bruno Haible  <bruno@clisp.org>
17902
17903         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17904         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17905         here...
17906         * modules/wcscasecmp (configure.ac): ... to here.
17907
17908 2011-05-22  Bruno Haible  <bruno@clisp.org>
17909
17910         wcrtomb: Move AC_LIBOBJ invocations to module description.
17911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17912         invocations from here...
17913         * modules/wcrtomb (configure.ac): ... to here.
17914
17915 2011-05-22  Bruno Haible  <bruno@clisp.org>
17916
17917         wcpncpy: Move AC_LIBOBJ invocations to module description.
17918         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17919         here...
17920         * modules/wcpncpy (configure.ac): ... to here.
17921
17922 2011-05-22  Bruno Haible  <bruno@clisp.org>
17923
17924         wcpcpy: Move AC_LIBOBJ invocations to module description.
17925         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17926         * modules/wcpcpy (configure.ac): ... to here.
17927
17928 2011-05-22  Bruno Haible  <bruno@clisp.org>
17929
17930         waitpid: Move AC_LIBOBJ invocations to module description.
17931         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17932         invocation from here...
17933         * modules/waitpid (configure.ac): ... to here.
17934
17935 2011-05-22  Bruno Haible  <bruno@clisp.org>
17936
17937         utimensat: Move AC_LIBOBJ invocations to module description.
17938         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17939         here...
17940         * modules/utimensat (configure.ac): ... to here.
17941
17942 2011-05-22  Bruno Haible  <bruno@clisp.org>
17943
17944         usleep: Move AC_LIBOBJ invocations to module description.
17945         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17946         here...
17947         * modules/usleep (configure.ac): ... to here.
17948
17949 2011-05-22  Bruno Haible  <bruno@clisp.org>
17950
17951         unlockpt: Move AC_LIBOBJ invocations to module description.
17952         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17953         gl_PREREQ_UNLOCKPT invocations from here...
17954         * modules/unlockpt (configure.ac): ... to here.
17955
17956 2011-05-22  Bruno Haible  <bruno@clisp.org>
17957
17958         unlink: Respect rules for use of AC_LIBOBJ.
17959         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17960         * modules/unlink (configure.ac): ... to here.
17961
17962 2011-05-22  Bruno Haible  <bruno@clisp.org>
17963
17964         uname: Move AC_LIBOBJ invocations to module description.
17965         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17967         here...
17968         * modules/uname (configure.ac): ... to here.
17969
17970 2011-05-22  Bruno Haible  <bruno@clisp.org>
17971
17972         ttyname_r: Move AC_LIBOBJ invocations to module description.
17973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17974         gl_PREREQ_TTYNAME_R invocations from here...
17975         * modules/ttyname_r (configure.ac): ... to here.
17976
17977 2011-05-22  Bruno Haible  <bruno@clisp.org>
17978
17979         tsearch: Move AC_LIBOBJ invocations to module description.
17980         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17981         invocations from here...
17982         * modules/tsearch (configure.ac): ... to here.
17983
17984 2011-05-22  Bruno Haible  <bruno@clisp.org>
17985
17986         towctrans: Move AC_LIBOBJ invocations to module description.
17987         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17988         AC_LIBOBJ invocation from here...
17989         * modules/towctrans (configure.ac): ... to here.
17990
17991 2011-05-22  Bruno Haible  <bruno@clisp.org>
17992
17993         tmpfile: Move AC_LIBOBJ invocations to module description.
17994         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17995         invocations from here...
17996         * modules/tmpfile (configure.ac): ... to here.
17997
17998 2011-05-22  Bruno Haible  <bruno@clisp.org>
17999
18000         times: Move AC_LIBOBJ invocations to module description.
18001         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18002         * modules/times (configure.ac): ... to here.
18003
18004 2011-05-22  Bruno Haible  <bruno@clisp.org>
18005
18006         time_r: Move AC_LIBOBJ invocations to module description.
18007         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18008         invocations from here...
18009         * modules/time_r (configure.ac): ... to here.
18010
18011 2011-05-22  Bruno Haible  <bruno@clisp.org>
18012
18013         timegm: Move AC_LIBOBJ invocations to module description.
18014         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18015         invocations from here...
18016         * modules/timegm (configure.ac): ... to here.
18017
18018 2011-05-22  Bruno Haible  <bruno@clisp.org>
18019
18020         tcgetsid: Move AC_LIBOBJ invocations to module description.
18021         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18022         and gl_PREREQ_TCGETSID invocations from here...
18023         * modules/tcgetsid (configure.ac): ... to here.
18024         (Depends-on): Update conditions.
18025
18026 2011-05-22  Bruno Haible  <bruno@clisp.org>
18027
18028         symlinkat: Move AC_LIBOBJ invocations to module description.
18029         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18030         here...
18031         * modules/symlinkat (configure.ac): ... to here.
18032
18033 2011-05-22  Bruno Haible  <bruno@clisp.org>
18034
18035         symlink: Move AC_LIBOBJ invocations to module description.
18036         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18037         here...
18038         * modules/symlink (configure.ac): ... to here.
18039
18040 2011-05-22  Bruno Haible  <bruno@clisp.org>
18041
18042         strverscmp: Move AC_LIBOBJ invocations to module description.
18043         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18045         from here...
18046         * modules/strverscmp (configure.ac): ... to here.
18047
18048 2011-05-22  Bruno Haible  <bruno@clisp.org>
18049
18050         strtok_r: Move AC_LIBOBJ invocations to module description.
18051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18052         and gl_PREREQ_STRTOK_R invocations from here...
18053         * modules/strtok_r (configure.ac): ... to here.
18054         (Depends-on): Update conditions.
18055
18056 2011-05-22  Bruno Haible  <bruno@clisp.org>
18057
18058         strtoumax: Move AC_LIBOBJ invocations to module description.
18059         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18061         from here...
18062         * modules/strtoumax (configure.ac): ... to here.
18063
18064 2011-05-22  Bruno Haible  <bruno@clisp.org>
18065
18066         strtoimax: Move AC_LIBOBJ invocations to module description.
18067         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18069         from here...
18070         * modules/strtoimax (configure.ac): ... to here.
18071
18072 2011-05-22  Bruno Haible  <bruno@clisp.org>
18073
18074         strtoull: Move AC_LIBOBJ invocations to module description.
18075         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18077         from here...
18078         * modules/strtoull (configure.ac): ... to here.
18079
18080 2011-05-22  Bruno Haible  <bruno@clisp.org>
18081
18082         strtoll: Move AC_LIBOBJ invocations to module description.
18083         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18085         here...
18086         * modules/strtoll (configure.ac): ... to here.
18087
18088 2011-05-22  Bruno Haible  <bruno@clisp.org>
18089
18090         strtoul: Move AC_LIBOBJ invocations to module description.
18091         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18092         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18093         * modules/strtoul (configure.ac): ... to here.
18094
18095 2011-05-22  Bruno Haible  <bruno@clisp.org>
18096
18097         strtol: Move AC_LIBOBJ invocations to module description.
18098         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18099         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18100         * modules/strtol (configure.ac): ... to here.
18101
18102 2011-05-22  Bruno Haible  <bruno@clisp.org>
18103
18104         strtod: Move AC_LIBOBJ invocations to module description.
18105         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18106         invocations from here...
18107         * modules/strtod (configure.ac): ... to here.
18108
18109 2011-05-22  Bruno Haible  <bruno@clisp.org>
18110
18111         strstr*: Move AC_LIBOBJ invocations to module description.
18112         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18113         invocations from here...
18114         * modules/strstr-simple (configure.ac): ... to here.
18115         * modules/strstr (configure.ac): ... and here.
18116
18117 2011-05-22  Bruno Haible  <bruno@clisp.org>
18118
18119         strsignal: Move AC_LIBOBJ invocations to module description.
18120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18121         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18122         * modules/strsignal (configure.ac): ... to here.
18123         (Depends-on): Update conditions.
18124
18125 2011-05-22  Bruno Haible  <bruno@clisp.org>
18126
18127         strsep: Move AC_LIBOBJ invocations to module description.
18128         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18130         here...
18131         * modules/strsep (configure.ac): ... to here.
18132
18133 2011-05-22  Bruno Haible  <bruno@clisp.org>
18134
18135         strptime: Move AC_LIBOBJ invocations to module description.
18136         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18137         gl_PREREQ_STRPTIME invocations from here...
18138         * modules/strptime (configure.ac): ... to here.
18139
18140 2011-05-22  Bruno Haible  <bruno@clisp.org>
18141
18142         strpbrk: Move AC_LIBOBJ invocations to module description.
18143         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18145         here...
18146         * modules/strpbrk (configure.ac): ... to here.
18147
18148 2011-05-22  Bruno Haible  <bruno@clisp.org>
18149
18150         strnlen: Move AC_LIBOBJ invocations to module description.
18151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18152         invocations from here...
18153         * modules/strnlen (configure.ac): ... to here.
18154
18155 2011-05-22  Bruno Haible  <bruno@clisp.org>
18156
18157         strndup: Move AC_LIBOBJ invocations to module description.
18158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18159         invocations from here...
18160         * modules/strndup (configure.ac): ... to here.
18161         (Depends-on): Update conditions.
18162
18163 2011-05-22  Bruno Haible  <bruno@clisp.org>
18164
18165         strncat: Move AC_LIBOBJ invocations to module description.
18166         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18167         invocations from here...
18168         * modules/strncat (configure.ac): ... to here.
18169
18170 2011-05-22  Bruno Haible  <bruno@clisp.org>
18171
18172         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18173         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18174         invocations from here...
18175         * modules/strdup (configure.ac): ... to here.
18176         * modules/strdup-posix (configure.ac): ... and here.
18177
18178 2011-05-22  Bruno Haible  <bruno@clisp.org>
18179
18180         strcspn: Move AC_LIBOBJ invocations to module description.
18181         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18183         here...
18184         * modules/strcspn (configure.ac): ... to here.
18185
18186 2011-05-22  Bruno Haible  <bruno@clisp.org>
18187
18188         strchrnul: Move AC_LIBOBJ invocations to module description.
18189         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18190         gl_PREREQ_STRCHRNUL invocations from here...
18191         * modules/strchrnul (configure.ac): ... to here.
18192
18193 2011-05-22  Bruno Haible  <bruno@clisp.org>
18194
18195         strcasestr*: Move AC_LIBOBJ invocations to module description.
18196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18197         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18198         * modules/strcasestr-simple (configure.ac): ... to here.
18199         * modules/strcasestr (configure.ac): ... and here.
18200
18201 2011-05-22  Bruno Haible  <bruno@clisp.org>
18202
18203         strcase: Move AC_LIBOBJ invocations to module description.
18204         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18205         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18206         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18207         gl_PREREQ_STRNCASECMP invocations from here...
18208         * modules/strcase (configure.ac): ... to here.
18209
18210 2011-05-22  Bruno Haible  <bruno@clisp.org>
18211
18212         stpncpy: Move AC_LIBOBJ invocations to module description.
18213         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18214         here...
18215         * modules/stpncpy (configure.ac): ... to here.
18216
18217 2011-05-22  Bruno Haible  <bruno@clisp.org>
18218
18219         stpcpy: Move AC_LIBOBJ invocations to module description.
18220         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18221         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18222         here...
18223         * modules/stpcpy (configure.ac): ... to here.
18224
18225 2011-05-21  Bruno Haible  <bruno@clisp.org>
18226
18227         stat: Move AC_LIBOBJ invocations to module description.
18228         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18229         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18230         here...
18231         * modules/stat (configure.ac): ... to here.
18232
18233 2011-05-21  Bruno Haible  <bruno@clisp.org>
18234
18235         sleep: Move AC_LIBOBJ invocations to module description.
18236         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18237         * modules/sleep (configure.ac): ... to here.
18238
18239 2011-05-21  Bruno Haible  <bruno@clisp.org>
18240
18241         signbit: Move AC_LIBOBJ invocations to module description.
18242         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18243         * modules/signbit (configure.ac): ... to here.
18244
18245 2011-05-21  Bruno Haible  <bruno@clisp.org>
18246
18247         sigprocmask: Move AC_LIBOBJ invocations to module description.
18248         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18249         gl_PREREQ_SIGPROMASK invocations from here...
18250         * modules/sigprocmask (configure.ac): ... to here.
18251
18252 2011-05-21  Bruno Haible  <bruno@clisp.org>
18253
18254         sigaction: Move AC_LIBOBJ invocations to module description.
18255         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18256         gl_PREREQ_SIGACTION invocations from here...
18257         * modules/sigaction (configure.ac): ... to here.
18258
18259 2011-05-21  Bruno Haible  <bruno@clisp.org>
18260
18261         sig2str: Move AC_LIBOBJ invocations to module description.
18262         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18264         here...
18265         * modules/sig2str (configure.ac): ... to here.
18266
18267 2011-05-21  Bruno Haible  <bruno@clisp.org>
18268
18269         setlocale: Move AC_LIBOBJ invocations to module description.
18270         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18271         gl_PREREQ_SETLOCALE invocations from here...
18272         * modules/setlocale (configure.ac): ... to here.
18273
18274 2011-05-21  Bruno Haible  <bruno@clisp.org>
18275
18276         unsetenv: Move AC_LIBOBJ invocations to module description.
18277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18278         and gl_PREREQ_UNSETENV invocations from here...
18279         * modules/unsetenv (configure.ac): ... to here.
18280         (Depends-on): Update.
18281
18282 2011-05-21  Bruno Haible  <bruno@clisp.org>
18283
18284         setenv: Move AC_LIBOBJ invocations to module description.
18285         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18286         here...
18287         * modules/setenv (configure.ac): ... to here.
18288
18289 2011-05-21  Bruno Haible  <bruno@clisp.org>
18290
18291         selinux-h: Move AC_LIBOBJ invocations to module description.
18292         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18293         AC_LIBOBJ invocation from here...
18294         * modules/selinux-h (configure.ac): ... to here.
18295
18296 2011-05-21  Bruno Haible  <bruno@clisp.org>
18297
18298         select: Respect rules for use of AC_LIBOBJ.
18299         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18300         here...
18301         * modules/select (configure.ac): ... to here.
18302
18303 2011-05-21  Bruno Haible  <bruno@clisp.org>
18304
18305         scandir: Move AC_LIBOBJ invocations to module description.
18306         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18307         invocations from here...
18308         * modules/scandir (configure.ac): ... to here.
18309
18310 2011-05-21  Bruno Haible  <bruno@clisp.org>
18311
18312         rpmatch: Move AC_LIBOBJ invocations to module description.
18313         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18314         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18315         here...
18316         * modules/rpmatch (configure.ac): ... to here.
18317
18318 2011-05-21  Bruno Haible  <bruno@clisp.org>
18319
18320         rmdir: Respect rules for use of AC_LIBOBJ.
18321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18322         * modules/rmdir (configure.ac): ... to here.
18323
18324 2011-05-21  Bruno Haible  <bruno@clisp.org>
18325
18326         renameat: Move AC_LIBOBJ invocations to module description.
18327         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18328         here...
18329         * modules/renameat (configure.ac): ... to here.
18330
18331 2011-05-21  Bruno Haible  <bruno@clisp.org>
18332
18333         rename: Respect rules for use of AC_LIBOBJ.
18334         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18335         here...
18336         * modules/rename (configure.ac): ... to here.
18337
18338 2011-05-21  Bruno Haible  <bruno@clisp.org>
18339
18340         remove: Move AC_LIBOBJ invocations to module description.
18341         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18342         here...
18343         * modules/remove (configure.ac): ... to here.
18344
18345 2011-05-21  Bruno Haible  <bruno@clisp.org>
18346
18347         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18348         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18349         macro.
18350         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18351         * modules/relocatable-lib (configure.ac): ... to here.
18352         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18353         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18354
18355 2011-05-21  Bruno Haible  <bruno@clisp.org>
18356
18357         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18358         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18359         here...
18360         * modules/relocatable-prog (configure.ac): ... to here.
18361
18362 2011-05-21  Bruno Haible  <bruno@clisp.org>
18363
18364         regex: Move AC_LIBOBJ invocations to module description.
18365         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18366         invocations from here...
18367         * modules/regex (configure.ac): ... to here.
18368
18369 2011-05-21  Bruno Haible  <bruno@clisp.org>
18370
18371         realloc-*: Move AC_LIBOBJ invocations to module description.
18372         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18373         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18374         AC_LIBOBJ invocations from here...
18375         * modules/realloc-gnu (configure.ac): ... to here.
18376         * modules/realloc-posix (configure.ac): ... and here.
18377
18378 2011-05-21  Bruno Haible  <bruno@clisp.org>
18379
18380         readutmp: Move AC_LIBOBJ invocations to module description.
18381         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18382         * modules/readutmp (configure.ac): ... to here.
18383
18384 2011-05-21  Bruno Haible  <bruno@clisp.org>
18385
18386         readlinkat: Move AC_LIBOBJ invocations to module description.
18387         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18388         here...
18389         * modules/readlinkat (configure.ac): ... to here.
18390
18391 2011-05-21  Bruno Haible  <bruno@clisp.org>
18392
18393         readlink: Move AC_LIBOBJ invocations to module description.
18394         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18395         gl_PREREQ_READLINK invocations from here...
18396         * modules/readlink (configure.ac): ... to here.
18397
18398 2011-05-21  Bruno Haible  <bruno@clisp.org>
18399
18400         readline: Move AC_LIBOBJ invocations to module description.
18401         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18402         gl_PREREQ_READLINE invocations from here...
18403         * modules/readline (configure.ac): ... to here.
18404
18405 2011-05-21  Bruno Haible  <bruno@clisp.org>
18406
18407         read: Move AC_LIBOBJ invocations to module description.
18408         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18409         * modules/read (configure.ac): ... to here.
18410
18411 2011-05-21  Bruno Haible  <bruno@clisp.org>
18412
18413         rawmemchr: Move AC_LIBOBJ invocations to module description.
18414         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18415         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18416         from here...
18417         * modules/rawmemchr (configure.ac): ... to here.
18418
18419 2011-05-21  Bruno Haible  <bruno@clisp.org>
18420
18421         random_r: Move AC_LIBOBJ invocations to module description.
18422         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18423         gl_PREREQ_RANDOM_R invocations from here...
18424         * modules/random_r (configure.ac): ... to here.
18425
18426 2011-05-21  Bruno Haible  <bruno@clisp.org>
18427
18428         pwrite: Move AC_LIBOBJ invocations to module description.
18429         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18430         * modules/pwrite (configure.ac): ... to here.
18431
18432 2011-05-21  Bruno Haible  <bruno@clisp.org>
18433
18434         putenv: Move AC_LIBOBJ invocations to module description.
18435         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18436         * modules/putenv (configure.ac): ... to here.
18437
18438 2011-05-21  Bruno Haible  <bruno@clisp.org>
18439
18440         login_tty: Move AC_LIBOBJ invocations to module description.
18441         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18442         * modules/login_tty (configure.ac): ... to here.
18443
18444 2011-05-21  Bruno Haible  <bruno@clisp.org>
18445
18446         openpty: Move AC_LIBOBJ invocations to module description.
18447         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18448         * modules/openpty (configure.ac): ... to here.
18449
18450 2011-05-21  Bruno Haible  <bruno@clisp.org>
18451
18452         forkpty: Move AC_LIBOBJ invocations to module description.
18453         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18454         * modules/forkpty (configure.ac): ... to here.
18455
18456 2011-05-21  Bruno Haible  <bruno@clisp.org>
18457
18458         ptsname: Move AC_LIBOBJ invocations to module description.
18459         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18460         invocations from here...
18461         * modules/ptsname (configure.ac): ... to here.
18462
18463 2011-05-21  Bruno Haible  <bruno@clisp.org>
18464
18465         pread: Move AC_LIBOBJ invocations to module description.
18466         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18467         * modules/pread (configure.ac): ... to here.
18468
18469 2011-05-21  Bruno Haible  <bruno@clisp.org>
18470
18471         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18472         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18473         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18474         * modules/posix_spawn (configure.ac): ... to here.
18475         * modules/posix_spawnp (configure.ac): ... and here.
18476
18477 2011-05-21  Bruno Haible  <bruno@clisp.org>
18478
18479         popen: Move AC_LIBOBJ invocations to module description.
18480         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18481         invocations from here...
18482         * modules/popen (configure.ac): ... to here.
18483
18484 2011-05-21  Bruno Haible  <bruno@clisp.org>
18485
18486         poll: Move AC_LIBOBJ invocations to module description.
18487         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18488         invocations from here...
18489         * modules/poll (configure.ac): ... to here.
18490
18491 2011-05-21  Bruno Haible  <bruno@clisp.org>
18492
18493         pipe-posix: Move AC_LIBOBJ invocations to module description.
18494         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18495         * modules/pipe-posix (configure.ac): ... to here.
18496
18497 2011-05-21  Bruno Haible  <bruno@clisp.org>
18498
18499         openat: Respect rules for use of AC_LIBOBJ.
18500         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18501         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18502         * modules/openat (configure.ac): ... to here.
18503
18504 2011-05-21  Bruno Haible  <bruno@clisp.org>
18505
18506         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18507         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18508         invocation from here...
18509         * modules/obstack-printf (configure.ac): ... to here.
18510         * modules/obstack-printf-posix (configure.ac): ... and here.
18511
18512 2011-05-21  Bruno Haible  <bruno@clisp.org>
18513
18514         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18515         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18516         from here...
18517         * modules/nl_langinfo (configure.ac): ... to here.
18518
18519 2011-05-21  Bruno Haible  <bruno@clisp.org>
18520
18521         nanosleep: Move AC_LIBOBJ invocations to module description.
18522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18523         gl_PREREQ_NANOSLEEP invocations from here...
18524         * modules/nanosleep (configure.ac): ... to here.
18525
18526 2011-05-21  Bruno Haible  <bruno@clisp.org>
18527
18528         mountlist: Move AC_LIBOBJ invocations to module description.
18529         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18530         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18531         * modules/mountlist (configure.ac): ... to here.
18532
18533 2011-05-21  Bruno Haible  <bruno@clisp.org>
18534
18535         mktime: Respect rules for use of AC_LIBOBJ.
18536         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18537         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18538         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18539         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18540         * modules/mktime (configure.ac): ... to here.
18541         * modules/mktime-internal (configure.ac): ... and here.
18542         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18543
18544 2011-05-21  Bruno Haible  <bruno@clisp.org>
18545
18546         mkstemps: Move AC_LIBOBJ invocations to module description.
18547         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18548         here...
18549         * modules/mkstemps (configure.ac): ... to here.
18550
18551 2011-05-21  Bruno Haible  <bruno@clisp.org>
18552
18553         mkstemp: Move AC_LIBOBJ invocations to module description.
18554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18555         gl_PREREQ_MKSTEMP invocations from here...
18556         * modules/mkstemp (configure.ac): ... to here.
18557
18558 2011-05-21  Bruno Haible  <bruno@clisp.org>
18559
18560         mkostemps: Move AC_LIBOBJ invocations to module description.
18561         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18562         here...
18563         * modules/mkostemps (configure.ac): ... to here.
18564
18565 2011-05-21  Bruno Haible  <bruno@clisp.org>
18566
18567         mkostemp: Move AC_LIBOBJ invocations to module description.
18568         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18569         gl_PREREQ_MKOSTEMP invocations from here...
18570         * modules/mkostemp (configure.ac): ... to here.
18571
18572 2011-05-21  Bruno Haible  <bruno@clisp.org>
18573
18574         mknod: Move AC_LIBOBJ invocations to module description.
18575         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18576         * modules/mknod (configure.ac): ... to here.
18577
18578 2011-05-21  Bruno Haible  <bruno@clisp.org>
18579
18580         mkfifoat: Move AC_LIBOBJ invocations to module description.
18581         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18582         here...
18583         * modules/mkfifoat (configure.ac): ... to here.
18584
18585 2011-05-21  Bruno Haible  <bruno@clisp.org>
18586
18587         mkfifo: Respect rules for use of AC_LIBOBJ.
18588         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18589         here...
18590         * modules/mkfifo (configure.ac): ... to here.
18591
18592 2011-05-21  Bruno Haible  <bruno@clisp.org>
18593
18594         mkdtemp: Move AC_LIBOBJ invocations to module description.
18595         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18596         invocations from here...
18597         * modules/mkdtemp (configure.ac): ... to here.
18598
18599 2011-05-21  Bruno Haible  <bruno@clisp.org>
18600
18601         mkdir: Move AC_LIBOBJ invocations to module description.
18602         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18603         * modules/mkdir (configure.ac): ... to here.
18604
18605 2011-05-21  Bruno Haible  <bruno@clisp.org>
18606
18607         memset: Move AC_LIBOBJ invocations to module description.
18608         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18610         here...
18611         * modules/memset (configure.ac): ... to here.
18612
18613 2011-05-21  Bruno Haible  <bruno@clisp.org>
18614
18615         memrchr: Move AC_LIBOBJ invocations to module description.
18616         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18618         here...
18619         * modules/memrchr (configure.ac): ... to here.
18620
18621 2011-05-21  Bruno Haible  <bruno@clisp.org>
18622
18623         mempcpy: Move AC_LIBOBJ invocations to module description.
18624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18626         here...
18627         * modules/mempcpy (configure.ac): ... to here.
18628
18629 2011-05-21  Bruno Haible  <bruno@clisp.org>
18630
18631         memmove: Move AC_LIBOBJ invocations to module description.
18632         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18634         here...
18635         * modules/memmove (configure.ac): ... to here.
18636
18637 2011-05-21  Bruno Haible  <bruno@clisp.org>
18638
18639         memmem*: Move AC_LIBOBJ invocations to module description.
18640         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18641         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18642         here...
18643         (gl_FUNC_MEMMEM): ... and here...
18644         * modules/memmem-simple (configure.ac): ... to here.
18645         * modules/memmem (configure.ac): ... and here.
18646
18647 2011-05-21  Bruno Haible  <bruno@clisp.org>
18648
18649         memcpy: Move AC_LIBOBJ invocations to module description.
18650         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18652         here...
18653         * modules/memcpy (configure.ac): ... to here.
18654
18655 2011-05-21  Bruno Haible  <bruno@clisp.org>
18656
18657         memcmp: Simplify autoconf macro.
18658         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18659         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18660         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18661
18662 2011-05-21  Bruno Haible  <bruno@clisp.org>
18663
18664         memcmp: Move AC_LIBOBJ invocations to module description.
18665         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18666         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18667         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18668         * modules/memcmp (configure.ac): ... to here.
18669         (Depends-on): Update conditions.
18670
18671 2011-05-21  Bruno Haible  <bruno@clisp.org>
18672
18673         memchr: Respect rules for use of AC_LIBOBJ.
18674         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18675         invocations from here...
18676         * modules/memchr (configure.ac): ... to here.
18677
18678 2011-05-21  Bruno Haible  <bruno@clisp.org>
18679
18680         mbtowc: Move AC_LIBOBJ invocations to module description.
18681         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18682         invocations from here...
18683         * modules/mbtowc (configure.ac): ... to here.
18684
18685 2011-05-21  Bruno Haible  <bruno@clisp.org>
18686
18687         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18688         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18689         gl_PREREQ_MBSRTOWCS invocations from here...
18690         * modules/mbsrtowcs (configure.ac): ... to here.
18691
18692 2011-05-21  Bruno Haible  <bruno@clisp.org>
18693
18694         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18695         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18696         gl_PREREQ_MBSNRTOWCS invocations from here...
18697         * modules/mbsnrtowcs (configure.ac): ... to here.
18698
18699 2011-05-21  Bruno Haible  <bruno@clisp.org>
18700
18701         mbsinit: Move AC_LIBOBJ invocations to module description.
18702         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18703         invocations from here...
18704         * modules/mbsinit (configure.ac): ... to here.
18705
18706 2011-05-21  Bruno Haible  <bruno@clisp.org>
18707
18708         mbrlen: Move AC_LIBOBJ invocations to module description.
18709         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18710         invocations from here...
18711         * modules/mbrlen (configure.ac): ... to here.
18712
18713 2011-05-21  Bruno Haible  <bruno@clisp.org>
18714
18715         mbrtowc: Respect rules for use of AC_LIBOBJ.
18716         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18717         invocations from here...
18718         * modules/mbrtowc (configure.ac): ... to here.
18719
18720 2011-05-21  Bruno Haible  <bruno@clisp.org>
18721
18722         malloc-*: Move AC_LIBOBJ invocations to module description.
18723         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18724         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18725         AC_LIBOBJ invocations from here...
18726         * modules/malloc-gnu (configure.ac): ... to here.
18727         * modules/malloc-posix (configure.ac): ... and here.
18728
18729 2011-05-21  Bruno Haible  <bruno@clisp.org>
18730
18731         lstat, openat: Respect rules for use of AC_LIBOBJ.
18732         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18733         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18734         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18735         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18736         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18737         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18738         here.
18739         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18740
18741 2011-05-21  Bruno Haible  <bruno@clisp.org>
18742
18743         lseek: Move AC_LIBOBJ invocations to module description.
18744         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18745         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18746         * modules/lseek (configure.ac): ... to here.
18747
18748 2011-05-21  Bruno Haible  <bruno@clisp.org>
18749
18750         linkat: Move AC_LIBOBJ invocations to module description.
18751         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18752         here...
18753         * modules/linkat (configure.ac): ... to here.
18754
18755 2011-05-21  Bruno Haible  <bruno@clisp.org>
18756
18757         link: Respect rules for use of AC_LIBOBJ.
18758         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18759         * modules/link (configure.ac): ... to here.
18760
18761 2011-05-21  Bruno Haible  <bruno@clisp.org>
18762
18763         lchown: Move AC_LIBOBJ invocations to module description.
18764         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18765         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18766         * modules/lchown (configure.ac): ... to here.
18767
18768 2011-05-21  Bruno Haible  <bruno@clisp.org>
18769
18770         iswctype: Move AC_LIBOBJ invocations to module description.
18771         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18772         here...
18773         * modules/iswctype (configure.ac): ... to here.
18774
18775 2011-05-21  Bruno Haible  <bruno@clisp.org>
18776
18777         iswblank: Move AC_LIBOBJ invocations to module description.
18778         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18779         here...
18780         * modules/iswblank (configure.ac): ... to here.
18781
18782 2011-05-21  Bruno Haible  <bruno@clisp.org>
18783
18784         atanl: Move AC_LIBOBJ invocations to module description.
18785         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18786         * modules/atanl (configure.ac): ... to here.
18787
18788 2011-05-21  Bruno Haible  <bruno@clisp.org>
18789
18790         acosl: Move AC_LIBOBJ invocations to module description.
18791         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18792         * modules/acosl (configure.ac): ... to here.
18793
18794 2011-05-21  Bruno Haible  <bruno@clisp.org>
18795
18796         asinl: Respect rules for use of AC_LIBOBJ.
18797         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18798         * modules/asinl (configure.ac): ... to here.
18799
18800 2011-05-21  Bruno Haible  <bruno@clisp.org>
18801
18802         tanl: Move AC_LIBOBJ invocations to module description.
18803         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18804         * modules/tanl (configure.ac): ... to here.
18805
18806 2011-05-21  Bruno Haible  <bruno@clisp.org>
18807
18808         cosl: Move AC_LIBOBJ invocations to module description.
18809         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18810         * modules/cosl (configure.ac): ... to here.
18811
18812 2011-05-21  Bruno Haible  <bruno@clisp.org>
18813
18814         sinl: Move AC_LIBOBJ invocations to module description.
18815         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18816         * modules/sinl (configure.ac): ... to here.
18817
18818 2011-05-21  Bruno Haible  <bruno@clisp.org>
18819
18820         logl: Move AC_LIBOBJ invocations to module description.
18821         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18822         * modules/logl (configure.ac): ... to here.
18823
18824 2011-05-21  Bruno Haible  <bruno@clisp.org>
18825
18826         expl: Move AC_LIBOBJ invocations to module description.
18827         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18828         * modules/expl (configure.ac): ... to here.
18829
18830 2011-05-21  Bruno Haible  <bruno@clisp.org>
18831
18832         roundl: Move AC_LIBOBJ invocations to module description.
18833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18834         * modules/roundl (configure.ac): ... to here.
18835
18836 2011-05-21  Bruno Haible  <bruno@clisp.org>
18837
18838         round: Move AC_LIBOBJ invocations to module description.
18839         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18840         * modules/round (configure.ac): ... to here.
18841
18842 2011-05-21  Bruno Haible  <bruno@clisp.org>
18843
18844         roundf: Move AC_LIBOBJ invocations to module description.
18845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18846         * modules/roundf (configure.ac): ... to here.
18847
18848 2011-05-21  Bruno Haible  <bruno@clisp.org>
18849
18850         truncl: Move AC_LIBOBJ invocations to module description.
18851         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18852         * modules/truncl (configure.ac): ... to here.
18853
18854 2011-05-21  Bruno Haible  <bruno@clisp.org>
18855
18856         trunc: Move AC_LIBOBJ invocations to module description.
18857         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18858         * modules/trunc (configure.ac): ... to here.
18859
18860 2011-05-21  Bruno Haible  <bruno@clisp.org>
18861
18862         truncf: Move AC_LIBOBJ invocations to module description.
18863         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18864         * modules/truncf (configure.ac): ... to here.
18865
18866 2011-05-21  Bruno Haible  <bruno@clisp.org>
18867
18868         ceill: Move AC_LIBOBJ invocations to module description.
18869         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18870         * modules/ceill (configure.ac): ... to here.
18871
18872 2011-05-21  Bruno Haible  <bruno@clisp.org>
18873
18874         ceil: Move AC_LIBOBJ invocations to module description.
18875         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18876         * modules/ceil (configure.ac): ... to here.
18877
18878 2011-05-21  Bruno Haible  <bruno@clisp.org>
18879
18880         ceilf: Move AC_LIBOBJ invocations to module description.
18881         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18882         * modules/ceilf (configure.ac): ... to here.
18883
18884 2011-05-21  Bruno Haible  <bruno@clisp.org>
18885
18886         floorl: Respect rules for use of AC_LIBOBJ.
18887         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18888         * modules/floorl (configure.ac): ... to here.
18889
18890 2011-05-21  Bruno Haible  <bruno@clisp.org>
18891
18892         floor: Respect rules for use of AC_LIBOBJ.
18893         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18894         * modules/floor (configure.ac): ... to here.
18895
18896 2011-05-21  Bruno Haible  <bruno@clisp.org>
18897
18898         floorf: Move AC_LIBOBJ invocations to module description.
18899         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18900         * modules/floorf (configure.ac): ... to here.
18901
18902 2011-05-20  Bruno Haible  <bruno@clisp.org>
18903
18904         sqrtl: Respect rules for use of AC_LIBOBJ.
18905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18906         * modules/sqrtl (configure.ac): ... to here.
18907
18908 2011-05-20  Bruno Haible  <bruno@clisp.org>
18909
18910         ldexpl: Respect rules for use of AC_LIBOBJ.
18911         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18912         * modules/ldexpl (configure.ac): ... to here.
18913
18914 2011-05-20  Bruno Haible  <bruno@clisp.org>
18915
18916         frexpl*: Respect rules for use of AC_LIBOBJ.
18917         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18918         invocation from here...
18919         * modules/frexpl (configure.ac): ... to here.
18920         * modules/frexpl-nolibm (configure.ac): ... and here.
18921
18922 2011-05-20  Bruno Haible  <bruno@clisp.org>
18923
18924         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18925         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18926         invocation from here...
18927         * modules/frexp (configure.ac): ... to here.
18928         * modules/frexp-nolibm (configure.ac): ... and here.
18929
18930 2011-05-20  Bruno Haible  <bruno@clisp.org>
18931
18932         isnan: Respect rules for use of AC_LIBOBJ.
18933         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18934         invocations here.
18935         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18936         REPLACE_ISNAN.
18937         * modules/isnand (configure.ac): Likewise.
18938         * modules/isnanl (configure.ac): Likewise.
18939
18940 2011-05-20  Bruno Haible  <bruno@clisp.org>
18941
18942         isnanl*: Respect rules for use of AC_LIBOBJ.
18943         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18944         invocation from here...
18945         * modules/isnanl (configure.ac): ... to here.
18946         * modules/isnanl-nolibm (configure.ac): ... and here.
18947
18948 2011-05-20  Bruno Haible  <bruno@clisp.org>
18949
18950         isnand*: Move AC_LIBOBJ invocations to module description.
18951         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18952         invocation from here...
18953         * modules/isnand (configure.ac): ... to here.
18954         * modules/isnand-nolibm (configure.ac): ... and here.
18955
18956 2011-05-20  Bruno Haible  <bruno@clisp.org>
18957
18958         isnanf*: Move AC_LIBOBJ invocations to module description.
18959         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18960         invocation from here...
18961         * modules/isnanf (configure.ac): ... to here.
18962         * modules/isnanf-nolibm (configure.ac): ... and here.
18963
18964 2011-05-20  Bruno Haible  <bruno@clisp.org>
18965
18966         isnan*: Separate the AC_LIBOBJ invocations.
18967         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18968         AC_LIBOBJ invocation.
18969         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18970         here.
18971         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18972         AC_LIBOBJ invocation.
18973         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18974         here.
18975         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18976         AC_LIBOBJ invocation.
18977         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18978         here.
18979         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18980
18981 2011-05-08  Bruno Haible  <bruno@clisp.org>
18982
18983         isinf: Move AC_LIBOBJ invocations to module description.
18984         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18985         * modules/isinf (configure.ac): ... to here.
18986
18987 2011-05-08  Bruno Haible  <bruno@clisp.org>
18988
18989         isfinite: Move AC_LIBOBJ invocations to module description.
18990         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18991         * modules/isfinite (configure.ac): ... to here.
18992
18993 2011-05-08  Bruno Haible  <bruno@clisp.org>
18994
18995         isblank: Move AC_LIBOBJ invocations to module description.
18996         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18997         here...
18998         * modules/isblank (configure.ac): ... to here.
18999
19000 2011-05-08  Bruno Haible  <bruno@clisp.org>
19001
19002         isapipe: Move AC_LIBOBJ invocations to module description.
19003         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19004         gl_PREREQ_ISAPIPE invocations from here...
19005         * modules/isapipe (configure.ac): ... to here.
19006         (Depends-on): Update condition.
19007
19008 2011-05-08  Bruno Haible  <bruno@clisp.org>
19009
19010         ioctl: Move AC_LIBOBJ invocations to module description.
19011         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19012         invocations from here...
19013         * modules/ioctl (configure.ac): ... to here.
19014         (Depends-on): Update condition.
19015
19016 2011-05-08  Bruno Haible  <bruno@clisp.org>
19017
19018         imaxdiv: Move AC_LIBOBJ invocations to module description.
19019         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19020         invocations from here...
19021         * modules/imaxdiv (configure.ac): ... to here.
19022
19023 2011-05-08  Bruno Haible  <bruno@clisp.org>
19024
19025         imaxabs: Move AC_LIBOBJ invocations to module description.
19026         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19027         invocations from here...
19028         * modules/imaxabs (configure.ac): ... to here.
19029
19030 2011-05-08  Bruno Haible  <bruno@clisp.org>
19031
19032         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19034         AC_LIBOBJ invocations from here...
19035         * modules/getaddrinfo (configure.ac): ... to here.
19036         (Depends-on): Add conditions.
19037
19038 2011-05-08  Bruno Haible  <bruno@clisp.org>
19039
19040         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19041         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19042         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19043         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19044         (gl_PREREQ_INET_PTON): ... from here.
19045         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19046         gl_PREREQ_INET_PTON here.
19047         (Depends-on): Update condition.
19048
19049 2011-05-08  Bruno Haible  <bruno@clisp.org>
19050
19051         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19052         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19053         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19054         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19055         (gl_PREREQ_INET_NTOP): ... from here.
19056         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19057         gl_PREREQ_INET_NTOP here.
19058         (Depends-on): Update condition.
19059
19060 2011-05-08  Bruno Haible  <bruno@clisp.org>
19061
19062         iconv_open: Move AC_LIBOBJ invocations to module description.
19063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19064         AC_LIBOBJ invocations from here...
19065         * modules/iconv_open (configure.ac): ... to here.
19066
19067 2011-05-08  Bruno Haible  <bruno@clisp.org>
19068
19069         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19070         If module 'iconv_open' is among the main modules and module
19071         'iconv_open-utf' is among the tests dependencies, then
19072         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19073         return the special iconv_t values. Therefore iconv() and iconv_close()
19074         must support these special iconv_t values, already in lib, not only in
19075         tests.
19076         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19077         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19078         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19079         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19080         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19081         (Depends-on): Add the dependencies of iconv_open-utf.
19082         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19083         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19084         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19085
19086 2011-05-08  Bruno Haible  <bruno@clisp.org>
19087
19088         group-member: Move AC_LIBOBJ invocations to module description.
19089         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19090         gl_PREREQ_GROUP_MEMBER invocations from here...
19091         * modules/group-member (configure.ac): ... to here.
19092
19093 2011-05-08  Bruno Haible  <bruno@clisp.org>
19094
19095         grantpt: Move AC_LIBOBJ invocations to module description.
19096         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19097         invocations from here...
19098         * modules/grantpt (configure.ac): ... to here.
19099
19100 2011-05-08  Bruno Haible  <bruno@clisp.org>
19101
19102         glob: Move AC_LIBOBJ invocations to module description.
19103         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19104         from here...
19105         * modules/glob (configure.ac): ... to here.
19106
19107 2011-05-08  Bruno Haible  <bruno@clisp.org>
19108
19109         getusershell: Move AC_LIBOBJ invocations to module description.
19110         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19111         Move AC_LIBOBJ invocation from here...
19112         * modules/getusershell (configure.ac): ... to here.
19113         (Depends-on): Update condition.
19114
19115 2011-05-08  Bruno Haible  <bruno@clisp.org>
19116
19117         gettimeofday: Move AC_LIBOBJ invocations to module description.
19118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19119         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19120         gl_PREREQ_GETTIMEOFDAY invocations from here...
19121         * modules/gettimeofday (configure.ac): ... to here.
19122
19123 2011-05-08  Bruno Haible  <bruno@clisp.org>
19124
19125         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19126         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19127         just gl_FUNC_TZSET.
19128         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19129         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19131         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19132
19133 2011-05-08  Bruno Haible  <bruno@clisp.org>
19134
19135         getsubopt: Move AC_LIBOBJ invocations to module description.
19136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19137         gl_PREREQ_GETSUBOPT invocations from here...
19138         * modules/getsubopt (configure.ac): ... to here.
19139
19140 2011-05-08  Bruno Haible  <bruno@clisp.org>
19141
19142         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19143         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19144         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19145         * modules/getpass-gnu (configure.ac): ... to here.
19146
19147 2011-05-08  Bruno Haible  <bruno@clisp.org>
19148
19149         getpass: Move AC_LIBOBJ invocations to module description.
19150         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19151         gl_PREREQ_GETPASS invocations from here...
19152         * modules/getpass (configure.ac): ... to here.
19153
19154 2011-05-08  Bruno Haible  <bruno@clisp.org>
19155
19156         getpagesize: Move AC_LIBOBJ invocations to module description.
19157         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19158         from here...
19159         * modules/getpagesize (configure.ac): ... to here.
19160
19161 2011-05-08  Bruno Haible  <bruno@clisp.org>
19162
19163         getopt: Move AC_LIBOBJ invocations to module description.
19164         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19165         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19166         invocations from here...
19167         * modules/getopt-gnu (configure.ac): ... to here.
19168         * modules/getopt-posix (configure.ac): ... and here.
19169         (Depends-on): Update condition.
19170
19171 2011-05-08  Bruno Haible  <bruno@clisp.org>
19172
19173         getopt, argp: Respect rules for use of AC_LIBOBJ.
19174         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19175         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19176         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19177         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19178
19179 2011-05-08  Bruno Haible  <bruno@clisp.org>
19180
19181         getlogin_r: Move AC_LIBOBJ invocations to module description.
19182         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19183         gl_PREREQ_GETLOGIN_R invocations from here...
19184         * modules/getlogin_r (configure.ac): ... to here.
19185
19186 2011-05-08  Bruno Haible  <bruno@clisp.org>
19187
19188         getlogin: Move AC_LIBOBJ invocations to module description.
19189         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19190         here...
19191         * modules/getlogin (configure.ac): ... to here.
19192
19193 2011-05-08  Bruno Haible  <bruno@clisp.org>
19194
19195         getloadavg: Move AC_LIBOBJ invocations to module description.
19196         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19197         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19198         * modules/getloadavg (configure.ac): ... to here.
19199
19200 2011-05-08  Bruno Haible  <bruno@clisp.org>
19201
19202         gethrxtime: Move AC_LIBOBJ invocations to module description.
19203         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19204         LIB_GETHRXTIME from here...
19205         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19206         invocations from here...
19207         * modules/gethrxtime (configure.ac): ... to here.
19208
19209 2011-05-08  Bruno Haible  <bruno@clisp.org>
19210
19211         gethostname: Move AC_LIBOBJ invocations to module description.
19212         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19213         gl_PREREQ_GETHOSTNAME invocations from here...
19214         * modules/gethostname (configure.ac): ... to here.
19215
19216 2011-05-08  Bruno Haible  <bruno@clisp.org>
19217
19218         getgroups: Move AC_LIBOBJ invocations to module description.
19219         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19220         here...
19221         * modules/getgroups (configure.ac): ... to here.
19222
19223 2011-05-08  Bruno Haible  <bruno@clisp.org>
19224
19225         getdtablesize: Move AC_LIBOBJ invocations to module description.
19226         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19227         invocation from here...
19228         * modules/getdtablesize (configure.ac): ... to here.
19229
19230 2011-05-08  Bruno Haible  <bruno@clisp.org>
19231
19232         getdomainname: Move AC_LIBOBJ invocations to module description.
19233         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19234         gl_PREREQ_GETDOMAINNAME invocations from here...
19235         * modules/getdomainname (configure.ac): ... to here.
19236
19237 2011-05-08  Bruno Haible  <bruno@clisp.org>
19238
19239         getline: Move AC_LIBOBJ invocations to module description.
19240         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19241         invocations from here...
19242         * modules/getline (configure.ac): ... to here.
19243
19244 2011-05-08  Bruno Haible  <bruno@clisp.org>
19245
19246         getline: Simplify.
19247         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19248         It's already handled through the module dependency.
19249
19250 2011-05-08  Bruno Haible  <bruno@clisp.org>
19251
19252         getdelim: Move AC_LIBOBJ invocations to module description.
19253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19254         and gl_PREREQ_GETDELIM invocations from here...
19255         * modules/getdelim (configure.ac): ... to here.
19256         (Depends-on): Fix condition.
19257
19258 2011-05-08  Bruno Haible  <bruno@clisp.org>
19259
19260         getcwd: Move AC_LIBOBJ invocations to module description.
19261         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19262         invocations from here...
19263         * modules/getcwd (configure.ac): ... to here.
19264
19265 2011-05-08  Bruno Haible  <bruno@clisp.org>
19266
19267         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19268         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19269         here...
19270         * modules/getcwd-lgpl (configure.ac): ... to here.
19271
19272 2011-05-07  Bruno Haible  <bruno@clisp.org>
19273
19274         crypto/gc: Move AC_LIBOBJ invocations to module description.
19275         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19276         * modules/crypto/gc (configure.ac): ... to here.
19277
19278 2011-05-07  Bruno Haible  <bruno@clisp.org>
19279
19280         fwriting: Move AC_LIBOBJ invocations to module description.
19281         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19282         here...
19283         * modules/fwriting (configure.ac): ... to here.
19284
19285 2011-05-07  Bruno Haible  <bruno@clisp.org>
19286
19287         fwritable: Move AC_LIBOBJ invocations to module description.
19288         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19289         here...
19290         * modules/fwritable (configure.ac): ... to here.
19291
19292 2011-05-07  Bruno Haible  <bruno@clisp.org>
19293
19294         futimens: Move AC_LIBOBJ invocations to module description.
19295         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19296         here...
19297         * modules/futimens (configure.ac): ... to here.
19298
19299 2011-05-07  Bruno Haible  <bruno@clisp.org>
19300
19301         ftruncate: Move AC_LIBOBJ invocations to module description.
19302         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19303         gl_PREREQ_FTRUNCATE invocations from here...
19304         * modules/ftruncate (configure.ac): ... to here.
19305
19306 2011-05-07  Bruno Haible  <bruno@clisp.org>
19307
19308         fsync: Move AC_LIBOBJ invocations to module description.
19309         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19310         invocations from here...
19311         * modules/fsync (configure.ac): ... to here.
19312
19313 2011-05-07  Bruno Haible  <bruno@clisp.org>
19314
19315         fsusage: Move AC_LIBOBJ invocations to module description.
19316         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19317         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19318         * modules/fsusage (configure.ac): ... to here.
19319
19320 2011-05-07  Bruno Haible  <bruno@clisp.org>
19321
19322         freopen: Move AC_LIBOBJ invocations to module description.
19323         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19324         invocations from here...
19325         * modules/freopen (configure.ac): ... to here.
19326
19327 2011-05-07  Bruno Haible  <bruno@clisp.org>
19328
19329         free: Move AC_LIBOBJ invocations to module description.
19330         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19331         invocations from here...
19332         * modules/free (configure.ac): ... to here.
19333
19334 2011-05-07  Bruno Haible  <bruno@clisp.org>
19335
19336         freadable: Move AC_LIBOBJ invocations to module description.
19337         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19338         here...
19339         * modules/freadable (configure.ac): ... to here.
19340
19341 2011-05-07  Bruno Haible  <bruno@clisp.org>
19342
19343         fpurge: Move AC_LIBOBJ invocations to module description.
19344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19345         invocations from here...
19346         * modules/fpurge (configure.ac): ... to here.
19347
19348 2011-05-07  Bruno Haible  <bruno@clisp.org>
19349
19350         fpending: Move AC_LIBOBJ invocations to module description.
19351         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19352         gl_FUNC_FPENDING.
19353         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19354         invocations from here...
19355         * modules/fpending (configure.ac): ... to here.
19356
19357 2011-05-07  Bruno Haible  <bruno@clisp.org>
19358
19359         fopen: Move AC_LIBOBJ invocations to module description.
19360         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19361         invocations from here...
19362         * modules/fopen (configure.ac): ... to here.
19363
19364 2011-05-07  Bruno Haible  <bruno@clisp.org>
19365
19366         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19367         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19368         gl_FUNC_FNMATCH_POSIX.
19369         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19370         invocations from here...
19371         * modules/fnmatch (configure.ac): ... to here.
19372         * modules/fnmatch-gnu (configure.ac): ... and here.
19373
19374 2011-05-07  Bruno Haible  <bruno@clisp.org>
19375
19376         flock: Move AC_LIBOBJ invocations to module description.
19377         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19378         invocations from here...
19379         * modules/flock (configure.ac): ... to here.
19380
19381 2011-05-07  Bruno Haible  <bruno@clisp.org>
19382
19383         fileblocks: Move AC_LIBOBJ invocations to module description.
19384         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19385         gl_PREREQ_FILEBLOCKS invocations from here...
19386         * modules/fileblocks (configure.ac): ... to here.
19387
19388 2011-05-06  Bruno Haible  <bruno@clisp.org>
19389
19390         fflush: Move AC_LIBOBJ invocations to module description.
19391         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19392         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19393         invocations from here...
19394         * modules/fflush (configure.ac): ... to here.
19395
19396 2011-05-06  Bruno Haible  <bruno@clisp.org>
19397
19398         fdopendir: Move AC_LIBOBJ invocations to module description.
19399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19400         here...
19401         * modules/fdopendir (configure.ac): ... to here.
19402         (Depends-on): Improve conditions.
19403
19404 2011-05-06  Bruno Haible  <bruno@clisp.org>
19405
19406         _Exit: Move AC_LIBOBJ invocations to module description.
19407         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19408         invocations from here...
19409         * modules/_Exit (configure.ac): ... to here.
19410
19411 2011-05-21  Bruno Haible  <bruno@clisp.org>
19412
19413         euidaccess: Respect rules for use of AC_LIBOBJ.
19414         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19415         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19416         from here...
19417         * modules/euidaccess (configure.ac): ... to here.
19418
19419 2011-05-06  Bruno Haible  <bruno@clisp.org>
19420
19421         error: Move AC_LIBOBJ invocations to module description.
19422         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19423         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19424         invocations from here...
19425         * modules/error (configure.ac): ... to here.
19426
19427 2011-05-06  Bruno Haible  <bruno@clisp.org>
19428
19429         duplocale: Move AC_LIBOBJ invocations to module description.
19430         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19431         gl_PREREQ_DUPLOCALE invocations from here...
19432         * modules/duplocale (configure.ac): ... to here.
19433
19434 2011-05-05  Bruno Haible  <bruno@clisp.org>
19435
19436         dirfd: Move AC_LIBOBJ invocations to module description.
19437         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19438         gl_FUNC_DIRFD.
19439         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19440         here...
19441         * modules/dirfd (configure.ac): ... to here.
19442         (Depends-on): Fix condition.
19443
19444 2011-05-05  Bruno Haible  <bruno@clisp.org>
19445
19446         chown: Respect rules for use of AC_LIBOBJ.
19447         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19448         * modules/chown (configure.ac): ... to here.
19449
19450 2011-05-05  Bruno Haible  <bruno@clisp.org>
19451
19452         chdir-long: Move AC_LIBOBJ invocations to module description.
19453         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19454         gl_PREREQ_CHDIR_LONG invocations from here...
19455         * modules/chdir-long (configure.ac): ... to here.
19456
19457 2011-05-05  Bruno Haible  <bruno@clisp.org>
19458
19459         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19461         from here...
19462         * modules/canonicalize-lgpl (configure.ac): ... to here.
19463
19464 2011-05-05  Bruno Haible  <bruno@clisp.org>
19465
19466         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19467         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19468         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19469         REPLACE_CALLOC.
19470         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19471         * modules/calloc-gnu (configure.ac): Likewise.
19472
19473 2011-05-05  Bruno Haible  <bruno@clisp.org>
19474
19475         btowc: Move AC_LIBOBJ invocations to module description.
19476         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19477         invocations from here...
19478         * modules/btowc (configure.ac): ... to here.
19479
19480 2011-05-21  Bruno Haible  <bruno@clisp.org>
19481
19482         atexit: Move AC_LIBOBJ invocations to module description.
19483         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19485         here...
19486         * modules/atexit (configure.ac): ... to here.
19487
19488 2011-05-05  Bruno Haible  <bruno@clisp.org>
19489
19490         atoll: Move AC_LIBOBJ invocations to module description.
19491         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19492         invocations from here...
19493         * modules/atoll (configure.ac): ... to here.
19494
19495 2011-05-05  Bruno Haible  <bruno@clisp.org>
19496
19497         argz: Move AC_LIBOBJ invocations to module description.
19498         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19499         * modules/argz (configure.ac): ... to here.
19500
19501 2011-05-05  Bruno Haible  <bruno@clisp.org>
19502
19503         alphasort: Move AC_LIBOBJ invocations to module description.
19504         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19505         gl_PREREQ_ALPHASORT invocations from here...
19506         * modules/alphasort (configure.ac): ... to here.
19507
19508 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         verify: new macro verify_expr; verify_true deprecated
19511         * NEWS: Mention this.
19512         * doc/verify.texi (Compile-time Assertions): Document this.
19513         * lib/verify.h (verify_true): Deprecate.
19514         (verify_expr): New macro.
19515         * tests/test-verify.c (function): Test verify_expr.
19516
19517 2011-06-14  Jim Meyering  <meyering@redhat.com>
19518
19519         init.sh: give more portable redirection-related advice in a comment
19520         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19521         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19522         for lots of discussion.  Stefano Lattarini suggested the solution
19523         of putting "9>&2" after the command.  Reported by Bruno Haible.
19524
19525 2011-06-13  Bruno Haible  <bruno@clisp.org>
19526
19527         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19528         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19529         'none'.
19530
19531 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19532
19533         ftoastr: use strtof only if HAVE_STRTOF
19534         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19536         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19537         * modules/ftoastr (configure.ac): Check for strtof.
19538
19539 2011-06-13  Bruno Haible  <bruno@clisp.org>
19540
19541         gnulib-tool: Addendum to 2011-06-08 commit.
19542         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19543         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19544
19545 2011-06-13  Bruno Haible  <bruno@clisp.org>
19546
19547         fseeko: Provide a non-inline replacement of fseek().
19548         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19549         * modules/fseeko (Depends-on): Add fseek.
19550         * modules/fseek (License): Change to LGPLv2+.
19551
19552 2011-06-13  Bruno Haible  <bruno@clisp.org>
19553
19554         ftello: Provide a non-inline replacement of ftell().
19555         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19556         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19557         not have ftello() (such as on mingw).
19558         * modules/ftello (Depends-on): Add ftell.
19559         * modules/ftell (License): Change to LGPLv2+.
19560
19561 2011-05-07  Bruno Haible  <bruno@clisp.org>
19562
19563         ftell: Move AC_LIBOBJ invocations to module description.
19564         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19565         * modules/ftell (configure.ac): ... to here.
19566
19567 2011-05-07  Bruno Haible  <bruno@clisp.org>
19568
19569         ftello: Respect rules for use of AC_LIBOBJ.
19570         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19571         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19572         here...
19573         * modules/ftello (configure.ac): ... to here.
19574
19575 2011-05-07  Bruno Haible  <bruno@clisp.org>
19576
19577         fseeko: Simplify.
19578         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19579         (gl_FUNC_FSEEKO): Inline it here.
19580
19581 2011-05-07  Bruno Haible  <bruno@clisp.org>
19582
19583         fseek: Move AC_LIBOBJ invocations to module description.
19584         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19585         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19586         * modules/fseek (configure.ac): ... to here.
19587
19588 2011-05-07  Bruno Haible  <bruno@clisp.org>
19589
19590         fseek: Respect rules for use of AC_LIBOBJ.
19591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19592         here...
19593         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19594
19595 2011-05-07  Bruno Haible  <bruno@clisp.org>
19596
19597         fseeko: Respect rules for use of AC_LIBOBJ.
19598         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19599         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19600         here...
19601         * modules/fseeko (configure.ac): ... to here.
19602
19603 2011-06-13  Bruno Haible  <bruno@clisp.org>
19604
19605         gnulib-tool: Allow comments in the 'Depends-on' section.
19606         * doc/gnulib.texi (Module description): Mention comment syntax in the
19607         Depends-on section.
19608         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19609
19610 2011-06-13  Bruno Haible  <bruno@clisp.org>
19611
19612         file-set.h: guard __attibute__ use, now that it's not always defined
19613         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19614         versions that support it.  This fixes a coreutils build failure with
19615         the vendor cc on HP-UX 11.31.
19616
19617 2011-06-12  Bruno Haible  <bruno@clisp.org>
19618
19619         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19620         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19621         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19622         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19623         (acl, aclsort): New declarations.
19624         (aclv_nontrivial): New declaration.
19625         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19626         (file_has_acl): Read also the second kind of HP-UX ACLs.
19627         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19628         kind of HP-UX ACLs if the first kind fails.
19629         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19630         second kind of HP-UX ACLs.
19631         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19632         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19633         agree.
19634         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19635         hpuxjfs.
19636         Handle hpuxjfs.
19637         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19638         hpuxjfs.
19639         Handle hpuxjfs.
19640         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19641         (func_test_same_acls): Use both lsacl and getacl.
19642         Handle hpuxjfs.
19643         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19644         (func_test_same_acls): Use both lsacl and getacl.
19645         Handle hpuxjfs.
19646
19647 2011-06-12  Bruno Haible  <bruno@clisp.org>
19648
19649         acl: Complete the 2010-08-10 fix.
19650         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19651         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19652         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19653         explicitly.
19654         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19655         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19656
19657 2011-06-12  Bruno Haible  <bruno@clisp.org>
19658
19659         spawn-pipe tests: Comments.
19660         * tests/test-spawn-pipe-child.c (main): Update comment.
19661         Reported by James Youngman <jay@gnu.org>.
19662
19663 2011-06-11  James Youngman  <jay@gnu.org>
19664
19665         New module 'stat-size'.
19666         * modules/stat-size: New module.  Provides macros for accessing
19667         file size information in instances of struct stat.  Depends on the
19668         fileblocks module because it calls st_blocks.
19669         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19670         * doc/gnulib.texi: Include stat-size.texi.
19671         * doc/stat-size.texi: Documentation for this module.
19672         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19673         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19674         AC_STRUCT_ST_BLOCKS.
19675
19676 2011-06-09  Bruno Haible  <bruno@clisp.org>
19677
19678         thread: Support pthreads-win32.
19679         * lib/glthread/thread.h (gl_thread_self): Define differently on
19680         pthreads-win32.
19681         (gl_null_thread): New declaration.
19682         (gl_thread_self_pointer): New macro.
19683         * lib/glthread/thread.c (gl_null_thread): New constant.
19684         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19685         gl_thread_self.
19686         * tests/test-tls.c: Likewise.
19687         Suggested by Paul Eggert. Reported by Eric Blake.
19688
19689 2011-06-09  Bruno Haible  <bruno@clisp.org>
19690
19691         thread: Fix confusion between NULL and 0.
19692         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19693         Reported by Paul Eggert.
19694
19695 2011-06-09  Bruno Haible  <bruno@clisp.org>
19696
19697         spawn-pipe tests: Avoid test failure on HP-UX 11.
19698         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19699         is closed.
19700
19701 2011-06-09  Bruno Haible  <bruno@clisp.org>
19702
19703         acl tests: Fix compilation error on HP-UX 11.
19704         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19705
19706 2011-06-09  Bruno Haible  <bruno@clisp.org>
19707
19708         rmdir: Avoid test failure on HP-UX 10.20.
19709         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19710         EEXIST.
19711
19712 2011-06-08  Eric Blake  <eblake@redhat.com>
19713
19714         perror: fix test on mingw
19715         * modules/perror-tests (Depends-on): Add dup2.
19716
19717         strerror_r-posix: fix on MacOS
19718         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19720         logic bug.
19721         * lib/strerror_r.c (strerror_r): Fix the bug.
19722         * lib/strerror.c (strerror): Likewise.
19723         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19724         problem.
19725         * doc/posix-functions/strerror.texi (strerror): Likewise.
19726         * doc/posix-functions/perror.texi (perror): Likewise.
19727         * tests/test-strerror.c (main): Enhance test.
19728         * tests/test-strerror_r.c (main): Likewise.
19729
19730 2011-06-08  Bruno Haible  <bruno@clisp.org>
19731
19732         gnulib-tool: Better isolation between different gnulib-tool invocations.
19733         * gnulib-tool: New option --witness-c-macro.
19734         (witness_c_macro): New variable.
19735         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19736         AM_CPPFLAGS define it as a C macro.
19737         (func_emit_tests_Makefile_am): Likewise.
19738         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19739         read it from there.
19740         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19741         m4_define, not AC_DEFUN.
19742         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19743         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19744         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19745         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19746         s|...|...|, to substitute the values of the GNULIB_* module indicator
19747         variables.
19748         * modules/dirent (Makefile.am): Likewise.
19749         * modules/fcntl-h (Makefile.am): Likewise.
19750         * modules/iconv-h (Makefile.am): Likewise.
19751         * modules/langinfo (Makefile.am): Likewise.
19752         * modules/locale (Makefile.am): Likewise.
19753         * modules/math (Makefile.am): Likewise.
19754         * modules/netdb (Makefile.am): Likewise.
19755         * modules/poll-h (Makefile.am): Likewise.
19756         * modules/pty (Makefile.am): Likewise.
19757         * modules/search (Makefile.am): Likewise.
19758         * modules/signal (Makefile.am): Likewise.
19759         * modules/spawn (Makefile.am): Likewise.
19760         * modules/stdio (Makefile.am): Likewise.
19761         * modules/stdlib (Makefile.am): Likewise.
19762         * modules/string (Makefile.am): Likewise.
19763         * modules/sys_ioctl (Makefile.am): Likewise.
19764         * modules/sys_select (Makefile.am): Likewise.
19765         * modules/sys_socket (Makefile.am): Likewise.
19766         * modules/sys_stat (Makefile.am): Likewise.
19767         * modules/sys_times (Makefile.am): Likewise.
19768         * modules/sys_utsname (Makefile.am): Likewise.
19769         * modules/sys_wait (Makefile.am): Likewise.
19770         * modules/termios (Makefile.am): Likewise.
19771         * modules/time (Makefile.am): Likewise.
19772         * modules/unistd (Makefile.am): Likewise.
19773         * modules/wchar (Makefile.am): Likewise.
19774
19775 2011-06-08  Eric Blake  <eblake@redhat.com>
19776
19777         strerror: simplify replacement
19778         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19779         * modules/strerror (configure.ac): No prereqs needed here...
19780         * modules/strerror-override (configure.ac): ...but this needs it.
19781         (Files): Add file for needed prereq macro.
19782
19783 2011-06-08  Bruno Haible  <bruno@clisp.org>
19784
19785         strerror_r-posix: Tweaks.
19786         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19787         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19789         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19790         (gl_FUNC_STRERROR_R): ... to here.
19791         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19792
19793 2011-06-07  Eric Blake  <eblake@redhat.com>
19794
19795         perror: document fixed bugs
19796         * doc/posix-functions/perror.texi (perror): Document recent
19797         patches.
19798
19799 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19800
19801         stat-time: get_stat_birthtime failure is better-defined
19802         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19803         return a timestamp whose tv_sec and tv_nsec values are both -1.
19804         Previously, the spec said only that the tv_nsec value was negative.
19805         This upward-compatible change simplifies GNU tar a bit.
19806
19807 2011-06-07  Eric Blake  <eblake@redhat.com>
19808
19809         strerror_r-posix: work around cygwin 1.7.9
19810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19811         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19812         bug without replacing strerror_r.
19813         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19814         strerror_r is buggy, but without requiring strerror_r compilation.
19815         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19816
19817         test-perror: relax test to ignore cygwin bug
19818         * tests/test-perror2.c (main): Relax test on requiring detection
19819         of stream errors, and use unbuffered stream.
19820         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19821         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19822         * doc/posix-functions/fputc.texi (fputc): Likewise.
19823         * doc/posix-functions/fputs.texi (fputs): Likewise.
19824         * doc/posix-functions/fputws.texi (fputws): Likewise.
19825         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19826         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19827         * doc/posix-functions/getopt.texi (getopt): Likewise.
19828         * doc/posix-functions/perror.texi (perror): Likewise.
19829         * doc/posix-functions/printf.texi (printf): Likewise.
19830         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19831         * doc/posix-functions/psignal.texi (psignal): Likewise.
19832         * doc/posix-functions/putc.texi (putc): Likewise.
19833         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19834         Likewise.
19835         * doc/posix-functions/putchar.texi (putchar): Likewise.
19836         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19837         Likewise.
19838         * doc/posix-functions/puts.texi (puts): Likewise.
19839         * doc/posix-functions/putwc.texi (putwc): Likewise.
19840         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19841         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19842         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19843         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19844         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19845         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19846         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19847         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19848
19849 2011-05-22  Bruno Haible  <bruno@clisp.org>
19850
19851         strerror: Move AC_LIBOBJ invocations to module description.
19852         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19853         gl_PREREQ_STRERROR invocations from here...
19854         * modules/strerror (configure.ac): ... to here.
19855
19856 2011-05-21  Bruno Haible  <bruno@clisp.org>
19857
19858         perror: Use common idiom.
19859         * modules/perror (configure.ac): Reorder statements.
19860
19861 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19862
19863         tests: fix usage message in 'mktempd_'
19864         * tests/init.sh (mktempd_): In the usage message, use literal
19865         'mktempd_', not '$ME' (which is even undefined), as the name of
19866         the subroutine.
19867
19868 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19869
19870         tests init: new function 'fatal_', for hard errors
19871         Before this patch, the only way offered by tests/init.sh to
19872         properly signal a hard error was the `framework_failure_'
19873         function.  But the error message issued by that function,
19874         as its name would suggest, refers to a set-up failure in the
19875         testsuite, while hard errors can obviously also be due to
19876         other reasons.  The best way to fix this inconsistency is to
19877         introduce a new function with a more general error message.
19878         * tests/init.sh (fatal_): New function.
19879
19880 2011-06-06  Eric Blake  <eblake@redhat.com>
19881
19882         canonicalize-lgpl: use common idiom
19883         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19884         over newer POSIX -Rf.
19885         Reported by Bruno Haible.
19886
19887         canonicalize-lgpl: work around AIX realpath bug
19888         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19889         * doc/posix-functions/realpath.texi (realpath): Document it.
19890         Reported by Bruno Haible.
19891
19892         strerror: work around FreeBSD bug
19893         * lib/strerror.c (strerror): Special case 0.
19894         Reported by Bruno Haible.
19895
19896         strerror-override: avoid bloating errno module
19897         * modules/errno (Files, configure.ac): Move replacement strings...
19898         * modules/strerror-override: ...to new module.
19899         * modules/strerror (Depends-on): Add strerror-override.
19900         * modules/strerror_r-posix (Depends-on): Likewise.
19901         * MODULES.html.sh: Document new module.
19902         Reported by Bruno Haible.
19903
19904 2011-06-06  Bruno Haible  <bruno@clisp.org>
19905
19906         spawn-pipe tests: Rename program.
19907         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19908         * tests/test-spawn-pipe-child.c: Update comment.
19909         * tests/test-spawn-pipe.sh: Update.
19910         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19911
19912         spawn-pipe tests: Link the child program only against libc.
19913         * tests/test-spawn-pipe-child.c: New file, extracted from
19914         tests/test-spawn-pipe.c.
19915         (main): Expect only one argument.
19916         (is_open): New function, copied from tests/test-pipe.c.
19917         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19918         (child_main): Remove function.
19919         (test_pipe): Pass only one argument to the child program.
19920         (main): Remove child process code. Expect the child program's name as
19921         first argument.
19922         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19923         argument.
19924         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19925         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19926         test-spawn-pipe-child against no libraries.
19927
19928 2011-06-06  Bruno Haible  <bruno@clisp.org>
19929
19930         careadlinkat: Avoid mismatch between ssize_t and int.
19931         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19932         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19933
19934 2011-06-06  Jim Meyering  <meyering@redhat.com>
19935
19936         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19937         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19938         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19939
19940 2011-06-05  Bruno Haible  <bruno@clisp.org>
19941
19942         ansi-c++-opt: Interoperability with libtool.
19943         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19944         set the variable to "no", not to ":".
19945         * NEWS: Mention the change.
19946
19947 2011-06-05  Bruno Haible  <bruno@clisp.org>
19948
19949         acl: Fix test failure on AIX 7.
19950         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19951         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19952
19953 2011-06-05  Bruno Haible  <bruno@clisp.org>
19954
19955         pipe-filter-ii: Fix test failure on AIX and IRIX.
19956         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19957         with EAGAIN, retry with a smaller buffer size.
19958
19959 2011-06-05  Bruno Haible  <bruno@clisp.org>
19960
19961         localename: Fix link dependencies.
19962         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19963         * modules/localename-tests (Makefile.am): Link test-localename with
19964         $(LIBTHREAD).
19965
19966 2011-06-05  Bruno Haible  <bruno@clisp.org>
19967
19968         error: Avoid gcc warning.
19969         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19970
19971 2011-06-05  Bruno Haible  <bruno@clisp.org>
19972
19973         unsetenv: Avoid gcc warning.
19974         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19975
19976 2011-06-05  Bruno Haible  <bruno@clisp.org>
19977
19978         setenv: Avoid gcc warning.
19979         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19980
19981 2011-06-05  Bruno Haible  <bruno@clisp.org>
19982
19983         sys_select: Ensure memset is declared also on AIX 7.
19984         * lib/sys_select.in.h: Include <string.h> also on AIX.
19985         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19986         self-contained also on AIX 7.1.
19987
19988 2011-06-04  Jim Meyering  <meyering@redhat.com>
19989
19990         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19991         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19992         function name, "error".
19993         (_gl_translatable_diag_func_re): New configurable variable.
19994
19995 2011-06-04  Bruno Haible  <bruno@clisp.org>
19996
19997         getopt: Avoid gcc warning.
19998         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19999
20000 2011-06-04  Bruno Haible  <bruno@clisp.org>
20001
20002         strerror_r: Fix comments.
20003         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20004         commit.
20005
20006 2011-06-04  Bruno Haible  <bruno@clisp.org>
20007
20008         perror: Fix compilation error.
20009         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20010         Undefine fprintf, not sprintf.
20011         * modules/perror (Depends-on): Remove intprops, verify.
20012
20013 2011-06-04  Bruno Haible  <bruno@clisp.org>
20014
20015         setlocale: Enable replacement on Cygwin 1.5.
20016         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20017         Cygwin 1.5.x.
20018         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20019         LC_CTYPE category also exists on Cygwin 1.5.x.
20020
20021 2011-06-04  Bruno Haible  <bruno@clisp.org>
20022
20023         strerror-override: Don't disable symbol renamings.
20024         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20025         * lib/strerror-override.c: Include config.h.
20026         (strerror_override): Don't undefine.
20027
20028 2011-06-03  Bruno Haible  <bruno@clisp.org>
20029
20030         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20031         * lib/localename.h: Update copyright header.
20032         * lib/localename.c: Likewise.
20033         * lib/relocatable.h: Likewise.
20034         * lib/relocatable.c: Likewise.
20035
20036 2011-06-02  Bruno Haible  <bruno@clisp.org>
20037
20038         doc: Fix a module name.
20039         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20040
20041 2011-06-02  Bruno Haible  <bruno@clisp.org>
20042
20043         pipe2: Remove dependency on 'nonblocking' module.
20044         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20045         O_NONBLOCK is defined by gnulib.
20046         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20047         is zero.
20048         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20049         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20050         defined by gnulib.
20051         (get_nonblocking_flag): New function.
20052         (main): Test O_NONBLOCK flag only if it is nonzero.
20053         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20054
20055 2011-06-03  Jim Meyering  <meyering@redhat.com>
20056
20057         maint: three new prohibit-header-without-use rules
20058         Prohibit use of cloexec.h, posixver.h, same.h without use.
20059         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20060         (sc_prohibit_posixver_without_use): Likewise.
20061         (sc_prohibit_same_without_use): Likewise.
20062
20063 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20064
20065         allocator: 'die' routine is now given requested size
20066         * lib/allocator.h (struct allocator.die): New size arg.
20067         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20068         If the actual problem is an ssize_t limitation, not a size_t or
20069         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20070
20071 2011-06-01  Eric Blake  <eblake@redhat.com>
20072
20073         strerror: drop strerror_r dependency
20074         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20075         * lib/strerror-override.c (strerror_override): ...to new file.
20076         * lib/strerror-override.h: Add prototype.
20077         * lib/strerror-impl.h: Delete.
20078         * lib/strerror.c (strerror): New implementation.
20079         * modules/errno (Files): Add new files.
20080         (configure.ac): Compile new file as appropriate.
20081         * modules/strerror (Files): Drop unused file.
20082         (Depends-on): Drop strerror_r-posix.
20083         * MODULES.html.sh: Document strerror_r-posix.
20084         Requested by Sam Steingold.
20085
20086         perror: call strerror_r directly
20087         * modules/perror (Files): Drop strerror-impl.h.
20088         * lib/perror.c (perror): Use our own stack buffer, rather than
20089         calling a wrapper that uses static storage.
20090         * doc/posix-functions/perror.texi (perror): Document a limitation
20091         of our replacement.
20092
20093         strerror_r: fix includes for FreeBSD
20094         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20095         since we use abort on some platforms.
20096         Reported by Matthias Bolte.
20097
20098 2011-05-31  Bruno Haible  <bruno@clisp.org>
20099
20100         Fix link errors in tests: openat-die uses gettext-h.
20101         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20102         against $(LIBINTL).
20103         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20104         against $(LIBINTL).
20105         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20106         $(LIBINTL).
20107         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20108         against $(LIBINTL).
20109         * modules/linkat-tests (Makefile.am): Link test-linkat against
20110         $(LIBINTL).
20111         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20112         $(LIBINTL).
20113         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20114         against $(LIBINTL).
20115         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20116         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20117         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20118         $(LIBINTL).
20119         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20120         $(LIBINTL).
20121         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20122         $(LIBINTL).
20123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20124
20125 2011-05-31  Bruno Haible  <bruno@clisp.org>
20126
20127         Fix link errors in tests: wait-process uses gettext-h.
20128         * modules/nonblocking-pipe-tests (Makefile.am): Set
20129         test_nonblocking_pipe_main_LDADD.
20130         * modules/nonblocking-socket-tests (Makefile.am): Link
20131         test-nonblocking-socket-main against $(LIBINTL).
20132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20133
20134 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20135
20136         assert-h: work around 'verify' incompatibility
20137         * lib/verify.h: Use @...@ directives, not ifdef.
20138         * modules/assert-h (assert.h): Implement the directives.
20139         (assert.h): Substitute the symbol-prefix more consistently.
20140
20141 2011-05-29  Jim Meyering  <meyering@redhat.com>
20142
20143         trim: remove three superfluous assignments
20144         * lib/trim.c (trim2): Remove three superfluous assignments
20145         and correct brace positioning.
20146
20147 2011-05-29  Bruno Haible  <bruno@clisp.org>
20148
20149         wctype-h: Avoid namespace pollution on Solaris 2.6.
20150         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20151         identifiers.
20152         * doc/posix-headers/wctype.texi: Mention the problem.
20153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20154
20155 2011-05-28  Jim Meyering  <meyering@redhat.com>
20156
20157         parse-datetime.y: accommodate -Wstrict-overflow
20158         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20159         placate -Wstrict-overflow.
20160
20161         trim: avoid a warning from -O2 -Wstrict-overflow
20162         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20163
20164 2011-05-29  Bruno Haible  <bruno@clisp.org>
20165
20166         gnulib-tool: Fix bug in yesterday's commit.
20167         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20168         twice.
20169
20170 2011-05-29  Bruno Haible  <bruno@clisp.org>
20171
20172         Allow multiple gnulib generated include files to be combined.
20173         * gnulib-tool (func_compute_include_guard_prefix): New function.
20174         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20175         ${gl_include_guard_prefix} references.
20176         (func_import, func_create_testdir): Invoke
20177         func_compute_include_guard_prefix.
20178         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20179         * lib/ctype.in.h: Likewise.
20180         * lib/dirent.in.h: Likewise.
20181         * lib/errno.in.h: Likewise.
20182         * lib/fcntl.in.h: Likewise.
20183         * lib/float.in.h: Likewise.
20184         * lib/getopt.in.h: Likewise.
20185         * lib/iconv.in.h: Likewise.
20186         * lib/langinfo.in.h: Likewise.
20187         * lib/locale.in.h: Likewise.
20188         * lib/math.in.h: Likewise.
20189         * lib/netdb.in.h: Likewise.
20190         * lib/netinet_in.in.h: Likewise.
20191         * lib/poll.in.h: Likewise.
20192         * lib/pthread.in.h: Likewise.
20193         * lib/pty.in.h: Likewise.
20194         * lib/sched.in.h: Likewise.
20195         * lib/se-selinux.in.h: Likewise.
20196         * lib/search.in.h: Likewise.
20197         * lib/signal.in.h: Likewise.
20198         * lib/spawn.in.h: Likewise.
20199         * lib/stdarg.in.h: Likewise.
20200         * lib/stddef.in.h: Likewise.
20201         * lib/stdint.in.h: Likewise.
20202         * lib/stdio.in.h: Likewise.
20203         * lib/stdlib.in.h: Likewise.
20204         * lib/string.in.h: Likewise.
20205         * lib/strings.in.h: Likewise.
20206         * lib/sys_file.in.h: Likewise.
20207         * lib/sys_ioctl.in.h: Likewise.
20208         * lib/sys_select.in.h: Likewise.
20209         * lib/sys_socket.in.h: Likewise.
20210         * lib/sys_stat.in.h: Likewise.
20211         * lib/sys_time.in.h: Likewise.
20212         * lib/sys_times.in.h: Likewise.
20213         * lib/sys_uio.in.h: Likewise.
20214         * lib/sys_utsname.in.h: Likewise.
20215         * lib/sys_wait.in.h: Likewise.
20216         * lib/sysexits.in.h: Likewise.
20217         * lib/termios.in.h: Likewise.
20218         * lib/time.in.h: Likewise.
20219         * lib/unistd.in.h: Likewise.
20220         * lib/wchar.in.h: Likewise.
20221         * lib/wctype.in.h: Likewise.
20222         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20223         * modules/ctype (Makefile.am): Likewise.
20224         * modules/dirent (Makefile.am): Likewise.
20225         * modules/errno (Makefile.am): Likewise.
20226         * modules/fcntl-h (Makefile.am): Likewise.
20227         * modules/float (Makefile.am): Likewise.
20228         * modules/getopt-posix (Makefile.am): Likewise.
20229         * modules/iconv-h (Makefile.am): Likewise.
20230         * modules/langinfo (Makefile.am): Likewise.
20231         * modules/locale (Makefile.am): Likewise.
20232         * modules/math (Makefile.am): Likewise.
20233         * modules/netdb (Makefile.am): Likewise.
20234         * modules/netinet_in (Makefile.am): Likewise.
20235         * modules/poll-h (Makefile.am): Likewise.
20236         * modules/pthread (Makefile.am): Likewise.
20237         * modules/pty (Makefile.am): Likewise.
20238         * modules/sched (Makefile.am): Likewise.
20239         * modules/search (Makefile.am): Likewise.
20240         * modules/selinux-h (Makefile.am): Likewise.
20241         * modules/signal (Makefile.am): Likewise.
20242         * modules/spawn (Makefile.am): Likewise.
20243         * modules/stdarg (Makefile.am): Likewise.
20244         * modules/stddef (Makefile.am): Likewise.
20245         * modules/stdint (Makefile.am): Likewise.
20246         * modules/stdio (Makefile.am): Likewise.
20247         * modules/stdlib (Makefile.am): Likewise.
20248         * modules/string (Makefile.am): Likewise.
20249         * modules/strings (Makefile.am): Likewise.
20250         * modules/sys_file (Makefile.am): Likewise.
20251         * modules/sys_ioctl (Makefile.am): Likewise.
20252         * modules/sys_select (Makefile.am): Likewise.
20253         * modules/sys_socket (Makefile.am): Likewise.
20254         * modules/sys_stat (Makefile.am): Likewise.
20255         * modules/sys_time (Makefile.am): Likewise.
20256         * modules/sys_times (Makefile.am): Likewise.
20257         * modules/sys_uio (Makefile.am): Likewise.
20258         * modules/sys_utsname (Makefile.am): Likewise.
20259         * modules/sys_wait (Makefile.am): Likewise.
20260         * modules/sysexits (Makefile.am): Likewise.
20261         * modules/termios (Makefile.am): Likewise.
20262         * modules/time (Makefile.am): Likewise.
20263         * modules/unistd (Makefile.am): Likewise.
20264         * modules/wchar (Makefile.am): Likewise.
20265         * modules/wctype-h (Makefile.am): Likewise.
20266         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20267
20268 2011-05-29  Bruno Haible  <bruno@clisp.org>
20269
20270         assert-h: Allow multiple gnulib generated replacements to coexist.
20271         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20272
20273 2011-05-29  Bruno Haible  <bruno@clisp.org>
20274
20275         argp: Allow coexistence with strerror_r-posix module.
20276         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20277         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20278         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20279         not the glibc signature.
20280
20281 2011-05-28  Bruno Haible  <bruno@clisp.org>
20282
20283         gnulib-tool: Alternative structure of testdirs, similar to --import.
20284         * gnulib-tool: New option --single-configure.
20285         (func_usage): Document it.
20286         (single_configure): New variable.
20287         (func_modules_transitive_closure_separately,
20288         func_modules_transitive_closure_separately,
20289         func_determine_use_libtests, func_modules_add_dummy_separately,
20290         func_modules_to_filelist_separately): New functions, extracted from
20291         func_import.
20292         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20293         (func_import): Use the new functions.
20294         (func_create_testdir): Set final_modules. Handle $single_configure =
20295         true case.
20296
20297 2011-05-28  Bruno Haible  <bruno@clisp.org>
20298
20299         getloadavg: Remove an unreliable safety check.
20300         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20301         getloadavg.c is in place.
20302         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20303         Reported by Sam Steingold <sds@gnu.org>.
20304
20305 2011-05-28  Bruno Haible  <bruno@clisp.org>
20306
20307         doc: Cleanup yet another file produced by texinfo.tex.
20308         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20309
20310 2011-05-28  Bruno Haible  <bruno@clisp.org>
20311
20312         Finish the conditional dependencies mechanism.
20313         * gnulib-tool: New option --no-conditional-dependencies.
20314         (func_usage): Document it. Don't mark --conditional-dependencies as
20315         experimental.
20316         (cond_dependencies): The possible values can now be true, false, empty.
20317         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20318         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20319         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20320
20321 2011-05-28  Bruno Haible  <bruno@clisp.org>
20322
20323         doc: Use a recent texinfo.tex.
20324         * doc/Makefile (tex_opts): New variable.
20325         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20326
20327 2011-05-28  Jim Meyering  <meyering@redhat.com>
20328
20329         intprops.h: adjust comment to match code change
20330         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20331         only once, it *may* have side effects.  Also fix an unrelated typo.
20332         (_GL_INT_SIGNED): Likewise.
20333
20334 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20335
20336         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20337
20338 2011-05-26  Bruno Haible  <bruno@clisp.org>
20339
20340         mbsrchr: Avoid collision with system function on Interix.
20341         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20342         Reported by Markus Duft <mduft@gentoo.org>.
20343
20344 2011-05-15  James Youngman  <jay@gnu.org>
20345
20346         getopt: for ambiguous options, enumerate the possibilities.
20347         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20348         the ambiguous options when an ambiguous prefix is given. This was
20349         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20350         glibc change was
20351         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20352
20353 2011-05-25  Eric Blake  <eblake@redhat.com>
20354
20355         getcwd: work around mingw bug
20356         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20357         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20358         Reported by Matthias Bolte.
20359
20360 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20361
20362         test-intprops: disable -Wtype-limits diagnostics
20363         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20364         diagnostics.  Otherwise, the integer overflow macros generate many
20365         diagnostics.  Reported by Jim Meyering in
20366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20367
20368         intprops: shorten, to pacify gcc -Woverlength-strings
20369         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20370         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20371         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20372         likely to run afoul of C compiler limits for string constant lengths.
20373         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20374
20375 2011-05-24  Eric Blake  <eblake@redhat.com>
20376
20377         docs: document recently fixed glibc printf bug
20378         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20379         * doc/posix-functions/printf.texi (printf): Likewise.
20380         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20381         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20382
20383         closein-tests: convert to init.sh
20384         * modules/closein-tests (Files): Add init.sh
20385         * tests/test-closein.sh Use it.
20386
20387         yesno-tests: convert to init.sh
20388         * modules/yesno-tests (Files): Add init.sh.
20389         * tests/test-yesno.sh: Use it.
20390
20391         atexit-tests: ensure reliable exit status
20392         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20393         Reported by Bruno Haible.
20394
20395 2011-05-24  Bruno Haible  <bruno@clisp.org>
20396
20397         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20398         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20399         gl_PREREQ_STRERROR_R invocations from here...
20400         * modules/strerror_r-posix (configure.ac): ... to here.
20401
20402 2011-05-24  Eric Blake  <eblake@redhat.com>
20403
20404         strerror_r: fix missing header
20405         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20406
20407         strerror_r: fix AIX test failures
20408         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20409         ERANGE failure.
20410
20411         strerror_r: fix Solaris test failures
20412         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20413         failures.
20414         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20415
20416         strerror_r: enforce POSIX recommendations
20417         * lib/strerror_r.c (safe_copy): New helper method.
20418         (strerror_r): Guarantee a non-empty string.
20419         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20420         recent POSIX rulings and to match our strerror guarantees.
20421         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20422
20423 2011-05-24  Jim Meyering  <meyering@redhat.com>
20424
20425         test-perror2.c: avoid warning about unused variable
20426         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20427
20428 2011-05-24  Eric Blake  <eblake@redhat.com>
20429
20430         perror: avoid spurious test failure on HP-UX
20431         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20432
20433         tests: fix logic bug in init.sh
20434         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20435         shell.
20436
20437 2011-05-24  Jim Meyering  <meyering@redhat.com>
20438
20439         utimensat: do not reference an out-of-scope buffer
20440         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20441         declared in an inner scope, yet "times" would be dereferenced outside
20442         the scope in which "ts" was valid.
20443         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20444         of ts[2] "out/up", so that the use of aliased "times" (via
20445         "times = ts;") does not end up referencing an out-of-scope "ts"
20446
20447         opendir-safer.c: don't clobber errno; don't close negative FD
20448         * lib/opendir-safer.c (opendir_safer):
20449         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20450         file descriptor, and more importantly, don't clobber the
20451         offending errno value with EINVAL.  Before, upon failure
20452         of dup_safer, we would pass the negative file descriptor to
20453         fdopendir, which would clobber errno.
20454
20455 2011-05-23  Bruno Haible  <bruno@clisp.org>
20456
20457         idcache: Fix module description.
20458         * modules/idcache (Include): Set to "idcache.h".
20459
20460 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20461
20462         gnulib-tool: fix portability problem with MacOS sed
20463         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20464         before the "}".  Problem reported by Leo in
20465         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20466         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20467         sed_extract_condition1, sed_extract_condition2.
20468
20469 2011-05-23  Bruno Haible  <bruno@clisp.org>
20470
20471         hash: Simplify autoconf macro.
20472         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20473
20474 2011-05-23  Bruno Haible  <bruno@clisp.org>
20475
20476         getugroups: Fix module description.
20477         * modules/getugroups (Include): Set to "getugroups.h".
20478
20479 2011-05-23  Bruno Haible  <bruno@clisp.org>
20480
20481         linkat: Simplify autoconf macro.
20482         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20483
20484 2011-05-23  Bruno Haible  <bruno@clisp.org>
20485             Eric Blake  <eblake@redhat.com>
20486
20487         linkat, renameat: Update dependencies.
20488         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20489         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20490         symlinkat.
20491
20492 2011-05-23  Jim Meyering  <meyering@redhat.com>
20493
20494         maint.mk: more tight_scope improvements
20495         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20496         (_gl_TS_headers): Define only in if-0'd block.
20497         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20498         sometimes we must *not* use it.  Adjust uses accordingly.
20499         (sc_tight_scope): Use much simpler grep-based test to determine
20500         whether we skip this rule.
20501
20502         maint.mk: generalize/improve the tight-scope rule
20503         * top/maint.mk: Emit a warning when the test is skipped.
20504         (_gl_TS_dir): Add $(srcdir)/ prefix.
20505         (_gl_TS_function_match): Simplify, rather than trying
20506         to enumerate common types.  Otherwise, it would fail to match an
20507         "extern unsigned char const *" declaration in idutils.
20508         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20509         a way to support use of that type of macro.
20510         (_gl_TS_var_match): Simplify regexp.
20511         (_gl_TS_obj_files): New configurable variable.
20512         (_gl_TS_headers): Likewise.
20513
20514 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         verify: fix bug when gnulib <assert.h> is also included
20517         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20518         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20519         Perhaps there's a better way, but this fixes the immediate problem.
20520         Problem reported by Bruno Haible in
20521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20522
20523 2011-05-22  Bruno Haible  <bruno@clisp.org>
20524
20525         xgetcwd: Simplify autoconf macro.
20526         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20527
20528 2011-05-22  Bruno Haible  <bruno@clisp.org>
20529
20530         New module 'mktime-internal'.
20531         * modules/mktime-internal: New file.
20532         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20533         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20534         mktime_internal as a C macro if libc has __mktime_internal.
20535         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20536         conditions.
20537         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20538
20539 2011-05-22  Bruno Haible  <bruno@clisp.org>
20540
20541         timegm: Correct mktime replacement statements.
20542         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20543         defining mktime as a C macro. This completes a 2009-07-28 commit.
20544
20545 2011-05-22  Bruno Haible  <bruno@clisp.org>
20546
20547         timegm: Simplify autoconf macro.
20548         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20549
20550 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20551
20552         clock-time: change to LGPLv2+.
20553         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20554         BSD-like but we have no mark for that; this is good enough for now.
20555
20556 2011-05-21  Bruno Haible  <bruno@clisp.org>
20557
20558         strerror_r: Fix comments.
20559         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20560
20561 2011-05-21  Bruno Haible  <bruno@clisp.org>
20562
20563         relocatable-prog-wrapper: Fix possible link error.
20564         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20565         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20566         (gl_FUNC_SETENV): ... to here.
20567         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20568         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20569
20570 2011-05-21  Bruno Haible  <bruno@clisp.org>
20571
20572         relocatable-prog-wrapper: Assume strerror() exists.
20573         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20574         m4/strerror.m4.
20575         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20576         * lib/relocwrapper.c: Remove mention of strerror module.
20577         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20578         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20579         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20580         C macro.
20581
20582 2011-05-21  Bruno Haible  <bruno@clisp.org>
20583
20584         select: Simplify replacement idiom.
20585         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20586         Win32 platforms.
20587         * lib/sys_select.in.h (select): Simplify accordingly.
20588         * modules/select (Depends-on): Likewise.
20589
20590 2011-05-21  Bruno Haible  <bruno@clisp.org>
20591
20592         mkdir-p: Simplify autoconf macro.
20593         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20594         gl_FUNC_LCHOWN.
20595
20596 2011-05-21  Eric Blake  <eblake@redhat.com>
20597
20598         strerror_r: avoid clobbering strerror on cygwin
20599         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20600         fall back instead to sys_errlist.
20601         * modules/strerror (configure.ac): Add witness.
20602         * tests/test-strerror_r.c (main): Enhance test.
20603         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20604         * tests/test-perror2.c (main): Free memory before exit.
20605
20606 2011-05-21  Bruno Haible  <bruno@clisp.org>
20607
20608         mkdtemp: Use gnulib naming conventions.
20609         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20610         * modules/mkdtemp (configure.ac): Update.
20611
20612 2011-05-20  Eric Blake  <eblake@redhat.com>
20613
20614         strerror_r: avoid corrupting errno on Solaris
20615         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20616         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20617
20618         strerror_r: avoid compiler warning
20619         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20620
20621         strerror_r: simplify AIX code
20622         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20623
20624         test-perror: avoid spurious failure on FreeBSD
20625         * modules/perror-tests (Depends-on): Add strerror, now that
20626         strerror_r no longer pulls it in.
20627
20628 2011-05-20  Bruno Haible  <bruno@clisp.org>
20629
20630         strerror_r-posix: Remove unused dependencies.
20631         * modules/strerror_r-posix (Depends-on): Remove strerror.
20632         Reported by Eric Blake.
20633
20634 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20635
20636         intprops: remove assumption about A|B representation
20637         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20638         is a valid integer if both A and B are.  Although this is true for
20639         all known practical hosts, the C standard doesn't guarantee it,
20640         and the code need not assume it.  Also, this change may work around
20641         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20643
20644 2011-05-20  Eric Blake  <eblake@redhat.com>
20645
20646         perror: work around FreeBSD bug
20647         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20648         is broken.  Move AC_LIBOBJ...
20649         * modules/perror (configure.ac): Here.
20650         * doc/posix-functions/perror.texi (perror): Document this.
20651         * tests/test-perror2.c (main): Enhance test.
20652
20653         test-perror: check for strerror interactions
20654         * tests/macros.h (STREQ): Add macro.
20655         * modules/perror-tests (Files): Add second test.
20656         * tests/test-perror2.c (main): New file.
20657         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20658
20659         test-perror: rewrite to use init script
20660         * modules/perror-tests (Files): Add init.sh.
20661         * tests/test-perror.sh: Use temporary directory.
20662
20663 2011-05-20  Jim Meyering  <meyering@redhat.com>
20664
20665         maint: replace misused "a" with "an"
20666         * doc/intprops.texi: "a integer"
20667         * doc/regex.texi: "a explanation"
20668         * lib/alignof.h: "a object"
20669         * lib/argmatch.h: "a explanation"
20670         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20671         * lib/stdint.in.h: "a integer"
20672         * lib/userspec.c: "a owner"
20673         * doc/gnulib.texi: Fix "a idea", and reword.
20674
20675 2011-05-19  Jim Meyering  <meyering@redhat.com>
20676
20677         maint: correct misuse of "a" and "an"
20678         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20679         * lib/argp-help.c: "an docum...": s/an/a/
20680         * lib/argp-parse.c: "An vector": s/An/A/
20681         * lib/execute.c: "an native": s/an/a/
20682         * lib/spawn-pipe.c: Likewise.
20683         * lib/gc.h: "an Gc_rc": s/an/a/
20684         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20685         * lib/fts.c: "an stat.st_dev": s/an/a/
20686
20687 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         intprops-tests: work around HP-UX 11.23 cc bug with constants
20690         * tests/test-intprops.c (VERIFY): New macro.
20691         (main): Use it, instead of verify, to work around the compiler bug; see
20692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20693
20694         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20695         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20696         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20697         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20698         (_GL_REMAINDER_OVERFLOW): Use it.
20699
20700         intprops-tests: revert unsigned part of previous change
20701         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20702         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20703         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20705
20706 2011-05-19  Bruno Haible  <bruno@clisp.org>
20707
20708         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20709         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20710         strerror_r() returned without filling the buffer.
20711         Reported by Eric Blake.
20712
20713 2011-05-19  Eric Blake  <eblake@redhat.com>
20714
20715         strerror_r: guarantee unchanged errno
20716         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20717         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20718         failure.
20719         * tests/test-strerror_r.c (main): Enhance test.
20720
20721 2011-05-19  Bruno Haible  <bruno@clisp.org>
20722
20723         strerror_r: Reorder #if blocks.
20724         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20725         for consistency with the previous commit.
20726
20727 2011-05-19  Bruno Haible  <bruno@clisp.org>
20728
20729         perror: Avoid clobbering the strerror buffer when possible.
20730         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20731         * lib/strerror.c: Include it.
20732         * modules/strerror (Files): Add lib/strerror-impl.h.
20733         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20734         (my_strerror): New function, defined through lib/strerror-impl.h.
20735         (perror): Use it instead of strerror.
20736         * modules/perror (Files): Add lib/strerror-impl.h.
20737         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20738
20739 2011-05-19  Eric Blake  <eblake@redhat.com>
20740
20741         strerror_r: fix on newer cygwin
20742         * lib/strerror_r.c (strerror_r): Cygwin now has
20743         __xpg_strerror_r, use it.
20744
20745 2011-05-19  Bruno Haible  <bruno@clisp.org>
20746
20747         strerror_r: Avoid clobbering the strerror buffer when possible.
20748         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20749         (sys_nerr, sys_errlist): New declarations.
20750         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20751         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20752         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20753
20754 2011-05-19  Bruno Haible  <bruno@clisp.org>
20755
20756         strerror_r: Fix test failure on mingw.
20757         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20758         EXTEND_STRERROR_R.
20759         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20760         macros from errno.in.h instead.
20761
20762 2011-05-19  Eric Blake  <eblake@redhat.com>
20763
20764         strerror: relax test for Solaris
20765         * tests/test-strerror.c (main): Permit Solaris behavior.
20766         * tests/test-strerror_r.c (main): Likewise.
20767
20768         strerror: enforce POSIX ruling on strerror(0)
20769         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20770         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20771         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20772         * doc/posix-functions/strerror.texi (strerror): Document it.
20773         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20774         * tests/test-strerror.c (main): Strengthen test.
20775         * tests/test-strerror_r.c (main): Likewise.
20776
20777 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         intprop-tests: port to older and more-pedantic compilers
20780         * modules/intprops-tests (Files): Add tests/macros.h.
20781         * tests/test-intprops.c: Include macros.h.
20782         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20783         it's no longer documented to expand to an integer constant expression.
20784         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20785         argument is floating point, as it's no longer documented to expand
20786         to an integer constant expression in that case.
20787         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20788         compiler bugs reported by Bruno Haible.  See
20789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20790         (U0, U1): New constants, to work around the same bugs.  Also,
20791         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20792
20793         intprops: work around C compiler bugs
20794         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20795         bug in Sun C 5.11 2010/08/13 and other compilers; see
20796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20797
20798         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20799         * doc/intprops.texi (Integer Type Determination): Fix
20800         documentation for TYPE_IS_INTEGER: it returns an constant
20801         expression, not an integer constant expression.  Fix doc for
20802         TYPE_SIGNED: it returns an integer constant expression only if its
20803         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20804         hardly worth documented that way....)
20805
20806 2011-05-18  Bruno Haible  <bruno@clisp.org>
20807
20808         strerror_r: Avoid clobbering the strerror buffer when possible.
20809         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20810         Handle gnulib defined errno values here. When strerror() returns NULL
20811         or an empty string, return EINVAL.
20812         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20813         gnulib defined errno values here.
20814         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20815
20816 2011-05-18  Eric Blake  <eblake@redhat.com>
20817
20818         fnmatch: avoid compiler warning
20819         * lib/fnmatch_loop.c (FCT): Use correct type.
20820         Reported by Matthias Bolte.
20821
20822 2011-05-13  Jim Meyering  <meyering@redhat.com>
20823
20824         maint.mk: three new prohibit_<HDR>_without_use rules
20825         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20826         (sc_prohibit_stdio-safer_without_use): Likewise.
20827         (sc_prohibit_xfreopen_without_use): Likewise.
20828
20829 2011-05-17  Jim Meyering  <meyering@redhat.com>
20830
20831         announce-gen: fail if the NEWS delta is empty
20832         If there's nothing noteworthy in NEWS, then either you forgot
20833         or you shouldn't be releasing.
20834         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20835
20836 2011-05-17  Pádraig Brady <P@draigBrady.com>
20837
20838         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20839         reserved symbols starting with double underscore from the check.
20840
20841 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20842
20843         intprops: add doc
20844         * doc/intprops.texi: New file, documenting intprops.
20845         * doc/gnulib.texi (Particular Modules): Include it.
20846
20847         verify: add doc to gnulib manual and fix example
20848         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20849         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20850         (Compile-time Assertions): Fix example so it can't overflow.
20851
20852 2011-05-17  Jim Meyering  <meyering@redhat.com>
20853
20854         warnings.m4: don't usurp save_CPPFLAGS variable name
20855         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20856
20857         doc: fix typo
20858         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20859
20860 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20861             Bruno Haible  <bruno@clisp.org>
20862
20863         doc: Tweak recent change.
20864         * README (Portability guidelines): Tweak new text.
20865         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20866         Interix 6.1.
20867
20868 2011-05-16  Eric Blake  <eblake@redhat.com>
20869
20870         inttypes: avoid autoconf warning
20871         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20872         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20873
20874 2011-05-16  Sam Steingold <sds@gnu.org>
20875         and Eric Blake  <eblake@redhat.com>
20876
20877         vc-list-files: accept multiple directory operands
20878         * build-aux/vc-list-files: Iterate over all remaining operands.
20879
20880 2011-05-16  Bruno Haible  <bruno@clisp.org>
20881
20882         Fix confusion regarding deprecated modules.
20883         * modules/calloc (Status, Notice): Mark module as deprecated, not
20884         obsolete.
20885         * modules/fnmatch-posix (Status, Notice): Likewise.
20886         * modules/getdate (Status, Notice): Likewise.
20887         * modules/getopt (Status, Notice): Likewise.
20888         * modules/malloc (Status, Notice): Likewise.
20889         * modules/pipe (Status, Notice): Likewise.
20890         * modules/realloc (Status, Notice): Likewise.
20891         * modules/rename-dest-slash (Status, Notice): Likewise.
20892         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20893         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20894         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20895         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20896         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20897
20898 2011-05-16  Bruno Haible  <bruno@clisp.org>
20899
20900         doc: List the target platforms.
20901         * doc/gnulib-intro.texi (Target Platforms): New section.
20902         * doc/gnulib.texi (Introduction): Update menu.
20903         * README (Portability guidelines): Refer to the new section. Update
20904         statement about oldest supported environment. Remove rationale why
20905         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20906         unportable C89 function.
20907         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20908         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20909
20910 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20911
20912         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20913
20914 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20915
20916         intprops-tests: new module
20917         * modules/intprops-tests, tests/test-intprops.c: New files.
20918
20919         intprops: add safe, portable integer overflow checking
20920         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20921         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20922         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20923         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20924         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20925         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20926         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20927         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20928         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20929         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20930         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20931
20932 2011-05-12  James Youngman  <jay@gnu.org>
20933
20934         Add a test for glibc's Bugzilla bug #12378.
20935         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20936         doesn't allow the literal matching of a lone "[" (which is
20937         required by POSIX).
20938         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20939
20940 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20941
20942         Sync glibc change fixing Bugzilla bug #12378.
20943         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20944         beginning and fall back to matching as normal character if the
20945         string ends before the matching ']' is found.  This is what POSIX
20946         requires.
20947
20948 2011-05-13  Eric Blake  <eblake@redhat.com>
20949
20950         getcwd-lgpl: relax test for FreeBSD
20951         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20952         issue.
20953         * tests/test-getcwd-lgpl.c (main): Relax test.
20954         Reported by Matthias Bolte.
20955
20956 2011-05-11  Eric Blake  <eblake@redhat.com>
20957
20958         test-fflush: silence compiler warning
20959         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20960
20961 2011-05-11  Bruno Haible  <bruno@clisp.org>
20962
20963         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20964         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20965         * modules/canonicalize (Depends-on): Add 'nocrash'.
20966         * modules/canonicalize-lgpl (Depends-on): Likewise.
20967         * doc/posix-functions/realpath.texi: Update platforms list.
20968         Reported by Ryan Schmidt <ryandesign@macports.org>.
20969
20970 2011-05-11  Bruno Haible  <bruno@clisp.org>
20971
20972         group-member: Declare function in <unistd.h>.
20973         * lib/unistd.in.h (group_member): New declaration.
20974         * lib/group-member.h: Remove file.
20975         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20976         * tests/test-unistd-c++.cc: Check signature of group_member.
20977         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20978         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20979         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20980         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20981         HAVE_GROUP_MEMBER.
20982         * modules/group-member (Files): Remove lib/group-member.h.
20983         (Depends-on): Add unistd. Specify conditions.
20984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20985         (Include): Change to <unistd.h>.
20986         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20987         HAVE_GROUP_MEMBER.
20988         * NEWS: Mention the change.
20989         * lib/euidaccess.c: Don't include group-member.h.
20990
20991 2011-05-11  Bruno Haible  <bruno@clisp.org>
20992
20993         group-member: Document module.
20994         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20995         module.
20996
20997 2011-05-11  Bruno Haible  <bruno@clisp.org>
20998
20999         fclose: Fix mistake earlier today.
21000         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21001
21002 2011-05-11  Eric Blake  <eblake@redhat.com>
21003
21004         fclose: preserve fflush errors
21005         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21006         Reported by Jim Meyering.
21007
21008         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21009         * build-aux/bootstrap (check_versions): When no specific version
21010         is required, merely check that the app produces an exit status
21011         that indicates its existence.
21012
21013         maint.mk: drop redundant check
21014         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21015         the same but better.
21016
21017 2011-05-11  Bruno Haible  <bruno@clisp.org>
21018
21019         fclose: Fix possible link error.
21020         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21021         unregister_shadow_fd. Improve comments.
21022         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21023         Eric Blake.
21024
21025 2011-05-11  Jim Meyering  <meyering@redhat.com>
21026
21027         maint.mk: improve "can not" detection and generalize rule name
21028         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21029         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21030         Use the same technique as in sc_prohibit_doubled_word, so that
21031         we recognize "can not" also when the words are separated by a newline.
21032         Suggested by Eric Blake.
21033         (perl_filename_lineno_text_): Define.  Factored out of...
21034         (prohibit_doubled_word_): ...here.  Use the new definition.
21035         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21036         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21037         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21038
21039 2011-05-10  Eric Blake  <eblake@redhat.com>
21040
21041         fclose: avoid double close race when possible
21042         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21043         all but WINDOWS_SOCKETS.
21044
21045 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21046
21047         openat: correct new comment
21048         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21049
21050 2011-05-10  Jim Meyering  <meyering@redhat.com>
21051
21052         openat: add comments
21053         * lib/openat-proc.c (openat_proc_name): Add comments,
21054         mostly from Eric Blake.
21055
21056 2011-05-09  Eric Blake  <eblake@redhat.com>
21057
21058         openat: reduce syscalls in first probe of /proc
21059         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21060         be a directory.  Simplify the probe for .. bugs.
21061         * modules/openat (Depends-on): Drop same-inode.
21062         Reported by Bastien ROUCARIES.
21063
21064 2011-05-09  Jim Meyering  <meyering@redhat.com>
21065
21066         maint.mk: change semantics/name of tight_scope variables
21067         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21068         Rename variables to align with semantics that make them more useful.
21069
21070         maint.mk: tweak new rule's name not to impinge
21071         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21072         (sc_tight_scope): Use new rule name rather than $@-0.
21073
21074         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21075         * top/maint.mk (sc_tight_scope): New rule.
21076         (sc_tight_scope-0): New rule, ifdef'd out.
21077         (_gl_TS_dir): Default.
21078         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21079         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21080
21081 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21082
21083         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21084         Haible <bruno@clisp.org>.
21085
21086 2011-05-08  Bruno Haible  <bruno@clisp.org>
21087
21088         Comments.
21089         * m4/isnanf.m4: Add comment.
21090         * m4/isnanl.m4: Likewise.
21091
21092 2011-05-08  Bruno Haible  <bruno@clisp.org>
21093
21094         glob: Remove obsolete macro.
21095         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21096
21097 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21098
21099         intprops: Sun C 5.11 supports __typeof__
21100         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21101         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21102         which is new.
21103         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21104
21105         intprops: switch to usual gnulib indenting and naming
21106         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21107         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21108
21109         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21110
21111 2011-05-08  Jim Meyering  <meyering@redhat.com>
21112
21113         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21114         * top/maint.mk (release-prep): Use make's --no-print-directory
21115         option when generating the announcement.  This eliminates the
21116         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21117         generated announcement template.
21118
21119 2011-05-08  Bruno Haible  <bruno@clisp.org>
21120
21121         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21122         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21123         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21124
21125 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21126
21127         ignore-value, verify: Omit include files from lib_SOURCES.
21128         * modules/ignore-value, modules/verify (Makefile.am):
21129         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21130         that leads Automake to duplicate use of am__objects_... variables
21131         in Makefile.in.  See
21132         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21133
21134 2011-05-07  Bruno Haible  <bruno@clisp.org>
21135
21136         fclose: Simplify autoconf macro.
21137         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21138         defined.
21139
21140 2011-05-07  Bruno Haible  <bruno@clisp.org>
21141
21142         canonicalize-lgpl: Fix autoconf macro ordering bug.
21143         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21144         gl_STDLIB_H_DEFAULTS.
21145
21146 2011-05-06  Eric Blake  <eblake@redhat.com>
21147
21148         maintainer-makefile: make sc_po_check easier to tune
21149         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21150         to probe for strings, such as an alternate location for gnulib.
21151
21152         fclose: guarantee behavior on seekable stdin
21153         * modules/fclose (Depends-on): Add fflush.
21154         * doc/posix-functions/fclose.texi (fclose): Document this.
21155         * tests/test-fclose.c (main): Make test for this unconditional.
21156
21157 2011-05-06  Bruno Haible  <bruno@clisp.org>
21158
21159         fflush, fpurge: Relicense under LGPLv2+.
21160         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21161         * modules/fpurge (License): Likewise.
21162         With permission from Eric Blake and Jim Meyering.
21163         Suggested by Eric Blake.
21164
21165 2011-05-06  Karl Berry  <karl@gnu.org>
21166
21167         * MODULES.html.sh (func_all_modules): remove exit.
21168
21169 2011-05-06  Jim Meyering  <meyering@redhat.com>
21170
21171         maint.mk: use info-gnu@ as the default only for a stable release
21172         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21173         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21174         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21176
21177 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         assert-h: new module, which supports C1X-style static_assert
21180         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21181         * lib/verify.h: Revamp so that this can be copied into assert.h,
21182         while retaining the ability to use it standalone as before.
21183         Rename private identifiers so as not to encroach on the
21184         standard C namespace, since this is now used by assert.h.
21185         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21186         the old verify_true.
21187         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21188         the old verify_true.  Use _GL_VERIFY_TYPE.
21189         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21190         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21191         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21192         defined when this file is copied into the replacement assert.h.
21193         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21194         and _Static_assert is not built in.
21195         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21196         defined, and use the new macros mentioned above.
21197         * doc/posix-headers/assert.texi: Document this.
21198
21199 2011-05-05  Bruno Haible  <bruno@clisp.org>
21200
21201         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21202         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21203         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21204         gl_REPLACE_FCLOSE here.
21205         * modules/fflush (Depends-on): Remove fclose.
21206         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21207         combination with module 'fclose'.
21208
21209 2011-05-05  Bruno Haible  <bruno@clisp.org>
21210
21211         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21212         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21213         gl_FUNC_FFLUSH.
21214         (gl_FUNC_FFLUSH): Use it.
21215         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21216         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21217         gl_REPLACE_FSEEKO here.
21218
21219 2011-05-05  Bruno Haible  <bruno@clisp.org>
21220
21221         tzset: Relicense under LGPL.
21222         * modules/tzset (License): Change to LGPL.
21223         No agreement needed; it's a no-op.
21224
21225         strtoimax, strtoumax: Relicense under LGPL.
21226         * modules/strtoimax (License): Change to LGPL.
21227         * modules/strtoumax (License): Likewise.
21228         With permission from Jim Meyering, Paul Eggert:
21229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21231
21232         getgroups: Relicense under LGPL.
21233         * modules/getgroups (License): Change to LGPL.
21234         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21238
21239         nanosleep: Relicense under LGPL.
21240         * modules/nanosleep (License): Change to LGPL.
21241         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21242         Haible:
21243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21247
21248         futimens: Relicense under LGPL.
21249         * modules/futimens (License): Change to LGPL.
21250         With permission from Eric Blake:
21251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21252
21253         fflush: Relicense under LGPL.
21254         * modules/fflush (License): Change to LGPL.
21255         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21259
21260         tmpfile: Relicense under LGPL.
21261         * modules/tmpfile (License): Change to LGPL.
21262         With permission from Ben Pfaff:
21263         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21264
21265         isfinite: Relicense under LGPL.
21266         * modules/isfinite (License): Change to LGPL.
21267         With permission from Ben Pfaff, Bruno Haible:
21268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21270
21271         acosl..tanl: Relicense under LGPL.
21272         * modules/acosl (License): Change to LGPL.
21273         * modules/asinl (License): Likewise.
21274         * modules/atanl (License): Likewise.
21275         * modules/cosl (License): Likewise.
21276         * modules/expl (License): Likewise.
21277         * modules/logl (License): Likewise.
21278         * modules/sinl (License): Likewise.
21279         * modules/sqrtl (License): Likewise.
21280         * modules/tanl (License): Likewise.
21281         Source code originally from glibc and Paolo Bonzini. Agreements:
21282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21284
21285 2011-05-05  Bruno Haible  <bruno@clisp.org>
21286
21287         signal: Define sighandler_t.
21288         * lib/signal.in.h (sighandler_t): New type.
21289         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21290         whether sighandler_t is defined.
21291         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21292         * modules/signal (Depends-on): Add extensions.
21293         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21294         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21295         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21296
21297 2011-05-05  Eric Blake  <eblake@redhat.com>
21298
21299         maint: remove useless REPLACE_*_H macros
21300         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21301         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21302         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21303         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21304         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21305         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21306         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21307         * m4/btowc.m4: Update callers.
21308         * m4/dirfd.m4: Likewise.
21309         * m4/duplocale.m4: Likewise.
21310         * m4/fchdir.m4: Likewise.
21311         * m4/fdopendir.m4: Likewise.
21312         * m4/inet_ntop.m4: Likewise.
21313         * m4/inet_pton.m4: Likewise.
21314         * m4/ioctl.m4: Likewise.
21315         * m4/mbrlen.m4: Likewise.
21316         * m4/mbrtowc.m4: Likewise.
21317         * m4/mbsinit.m4: Likewise.
21318         * m4/mbsnrtowcs.m4: Likewise.
21319         * m4/mbsrtowcs.m4: Likewise.
21320         * m4/poll.m4: Likewise.
21321         * m4/setlocale.m4: Likewise.
21322         * m4/wcrtomb.m4: Likewise.
21323         * m4/wcsnrtombs.m4: Likewise.
21324         * m4/wcsrtombs.m4: Likewise.
21325         * m4/wctob.m4: Likewise.
21326         * m4/wcwidth.m4: Likewise.
21327         * modules/posix_spawn: Likewise.
21328         * modules/posix_spawn_file_actions_addclose: Likewise.
21329         * modules/posix_spawn_file_actions_adddup2: Likewise.
21330         * modules/posix_spawn_file_actions_addopen: Likewise.
21331         * modules/posix_spawn_file_actions_destroy: Likewise.
21332         * modules/posix_spawn_file_actions_init: Likewise.
21333         * modules/posix_spawnattr_destroy: Likewise.
21334         * modules/posix_spawnattr_getflags: Likewise.
21335         * modules/posix_spawnattr_getpgroup: Likewise.
21336         * modules/posix_spawnattr_getschedparam: Likewise.
21337         * modules/posix_spawnattr_getschedpolicy: Likewise.
21338         * modules/posix_spawnattr_getsigdefault: Likewise.
21339         * modules/posix_spawnattr_getsigmask: Likewise.
21340         * modules/posix_spawnattr_init: Likewise.
21341         * modules/posix_spawnattr_setflags: Likewise.
21342         * modules/posix_spawnattr_setpgroup: Likewise.
21343         * modules/posix_spawnattr_setschedparam: Likewise.
21344         * modules/posix_spawnattr_setschedpolicy: Likewise.
21345         * modules/posix_spawnattr_setsigdefault: Likewise.
21346         * modules/posix_spawnattr_setsigmask: Likewise.
21347         * modules/posix_spawnp: Likewise.
21348
21349 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21350
21351         Add option to do-release-commit-and-tag to specify branch.
21352         * build-aux/do-release-commit-and-tag: Add --branch.
21353
21354 2011-05-03  Bruno Haible  <bruno@clisp.org>
21355
21356         Avoid unnecessary compilation units, through conditional dependencies.
21357         * modules/accept (Depends-on): Add conditions to the dependencies.
21358         * modules/acosl (Depends-on): Likewise.
21359         * modules/argz (Depends-on): Likewise.
21360         * modules/asinl (Depends-on): Likewise.
21361         * modules/atanl (Depends-on): Likewise.
21362         * modules/atoll (Depends-on): Likewise.
21363         * modules/bind (Depends-on): Likewise.
21364         * modules/btowc (Depends-on): Likewise.
21365         * modules/canonicalize-lgpl (Depends-on): Likewise.
21366         * modules/ceil (Depends-on): Likewise.
21367         * modules/ceilf (Depends-on): Likewise.
21368         * modules/ceill (Depends-on): Likewise.
21369         * modules/chdir-long (Depends-on): Likewise.
21370         * modules/chown (Depends-on): Likewise.
21371         * modules/close (Depends-on): Likewise.
21372         * modules/connect (Depends-on): Likewise.
21373         * modules/cosl (Depends-on): Likewise.
21374         * modules/dirfd (Depends-on): Likewise.
21375         * modules/dprintf (Depends-on): Likewise.
21376         * modules/dprintf-posix (Depends-on): Likewise.
21377         * modules/error (Depends-on): Likewise.
21378         * modules/euidaccess (Depends-on): Likewise.
21379         * modules/expl (Depends-on): Likewise.
21380         * modules/faccessat (Depends-on): Likewise.
21381         * modules/fchdir (Depends-on): Likewise.
21382         * modules/fclose (Depends-on): Likewise.
21383         * modules/fcntl (Depends-on): Likewise.
21384         * modules/fdopendir (Depends-on): Likewise.
21385         * modules/fflush (Depends-on): Likewise.
21386         * modules/floor (Depends-on): Likewise.
21387         * modules/floorf (Depends-on): Likewise.
21388         * modules/floorl (Depends-on): Likewise.
21389         * modules/fnmatch (Depends-on): Likewise.
21390         * modules/fopen (Depends-on): Likewise.
21391         * modules/fprintf-posix (Depends-on): Likewise.
21392         * modules/frexp (Depends-on): Likewise.
21393         * modules/frexp-nolibm (Depends-on): Likewise.
21394         * modules/frexpl (Depends-on): Likewise.
21395         * modules/frexpl-nolibm (Depends-on): Likewise.
21396         * modules/fseek (Depends-on): Likewise.
21397         * modules/fsusage (Depends-on): Likewise.
21398         * modules/ftell (Depends-on): Likewise.
21399         * modules/ftello (Depends-on): Likewise.
21400         * modules/futimens (Depends-on): Likewise.
21401         * modules/getcwd (Depends-on): Likewise.
21402         * modules/getcwd-lgpl (Depends-on): Likewise.
21403         * modules/getdelim (Depends-on): Likewise.
21404         * modules/getdomainname (Depends-on): Likewise.
21405         * modules/getgroups (Depends-on): Likewise.
21406         * modules/gethostname (Depends-on): Likewise.
21407         * modules/getline (Depends-on): Likewise.
21408         * modules/getlogin_r (Depends-on): Likewise.
21409         * modules/getopt-posix (Depends-on): Likewise.
21410         * modules/getpeername (Depends-on): Likewise.
21411         * modules/getsockname (Depends-on): Likewise.
21412         * modules/getsockopt (Depends-on): Likewise.
21413         * modules/getsubopt (Depends-on): Likewise.
21414         * modules/getusershell (Depends-on): Likewise.
21415         * modules/glob (Depends-on): Likewise.
21416         * modules/grantpt (Depends-on): Likewise.
21417         * modules/iconv_open (Depends-on): Likewise.
21418         * modules/iconv_open-utf (Depends-on): Likewise.
21419         * modules/inet_ntop (Depends-on): Likewise.
21420         * modules/inet_pton (Depends-on): Likewise.
21421         * modules/ioctl (Depends-on): Likewise.
21422         * modules/isapipe (Depends-on): Likewise.
21423         * modules/isfinite (Depends-on): Likewise.
21424         * modules/isinf (Depends-on): Likewise.
21425         * modules/lchown (Depends-on): Likewise.
21426         * modules/ldexpl (Depends-on): Likewise.
21427         * modules/link (Depends-on): Likewise.
21428         * modules/linkat (Depends-on): Likewise.
21429         * modules/listen (Depends-on): Likewise.
21430         * modules/logl (Depends-on): Likewise.
21431         * modules/lstat (Depends-on): Likewise.
21432         * modules/mbrlen (Depends-on): Likewise.
21433         * modules/mbrtowc (Depends-on): Likewise.
21434         * modules/mbsinit (Depends-on): Likewise.
21435         * modules/mbsnrtowcs (Depends-on): Likewise.
21436         * modules/mbsrtowcs (Depends-on): Likewise.
21437         * modules/mbtowc (Depends-on): Likewise.
21438         * modules/memcmp (Depends-on): Likewise.
21439         * modules/mkdir (Depends-on): Likewise.
21440         * modules/mkdtemp (Depends-on): Likewise.
21441         * modules/mkfifo (Depends-on): Likewise.
21442         * modules/mkfifoat (Depends-on): Likewise.
21443         * modules/mknod (Depends-on): Likewise.
21444         * modules/mkostemp (Depends-on): Likewise.
21445         * modules/mkostemps (Depends-on): Likewise.
21446         * modules/mkstemp (Depends-on): Likewise.
21447         * modules/mkstemps (Depends-on): Likewise.
21448         * modules/mktime (Depends-on): Likewise.
21449         * modules/nanosleep (Depends-on): Likewise.
21450         * modules/open (Depends-on): Likewise.
21451         * modules/openat (Depends-on): Likewise.
21452         * modules/perror (Depends-on): Likewise.
21453         * modules/poll (Depends-on): Likewise.
21454         * modules/popen (Depends-on): Likewise.
21455         * modules/posix_spawn (Depends-on): Likewise.
21456         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21457         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21458         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21459         * modules/posix_spawnp (Depends-on): Likewise.
21460         * modules/pread (Depends-on): Likewise.
21461         * modules/printf-posix (Depends-on): Likewise.
21462         * modules/ptsname (Depends-on): Likewise.
21463         * modules/putenv (Depends-on): Likewise.
21464         * modules/pwrite (Depends-on): Likewise.
21465         * modules/readline (Depends-on): Likewise.
21466         * modules/readlink (Depends-on): Likewise.
21467         * modules/readlinkat (Depends-on): Likewise.
21468         * modules/recv (Depends-on): Likewise.
21469         * modules/recvfrom (Depends-on): Likewise.
21470         * modules/regex (Depends-on): Likewise.
21471         * modules/remove (Depends-on): Likewise.
21472         * modules/rename (Depends-on): Likewise.
21473         * modules/renameat (Depends-on): Likewise.
21474         * modules/rmdir (Depends-on): Likewise.
21475         * modules/round (Depends-on): Likewise.
21476         * modules/roundf (Depends-on): Likewise.
21477         * modules/roundl (Depends-on): Likewise.
21478         * modules/rpmatch (Depends-on): Likewise.
21479         * modules/select (Depends-on): Likewise.
21480         * modules/send (Depends-on): Likewise.
21481         * modules/sendto (Depends-on): Likewise.
21482         * modules/setenv (Depends-on): Likewise.
21483         * modules/setlocale (Depends-on): Likewise.
21484         * modules/setsockopt (Depends-on): Likewise.
21485         * modules/shutdown (Depends-on): Likewise.
21486         * modules/sigaction (Depends-on): Likewise.
21487         * modules/signbit (Depends-on): Likewise.
21488         * modules/sigprocmask (Depends-on): Likewise.
21489         * modules/sinl (Depends-on): Likewise.
21490         * modules/sleep (Depends-on): Likewise.
21491         * modules/snprintf (Depends-on): Likewise.
21492         * modules/snprintf-posix (Depends-on): Likewise.
21493         * modules/socket (Depends-on): Likewise.
21494         * modules/sprintf-posix (Depends-on): Likewise.
21495         * modules/sqrtl (Depends-on): Likewise.
21496         * modules/stat (Depends-on): Likewise.
21497         * modules/strchrnul (Depends-on): Likewise.
21498         * modules/strdup-posix (Depends-on): Likewise.
21499         * modules/strerror (Depends-on): Likewise.
21500         * modules/strerror_r-posix (Depends-on): Likewise.
21501         * modules/strndup (Depends-on): Likewise.
21502         * modules/strnlen (Depends-on): Likewise.
21503         * modules/strptime (Depends-on): Likewise.
21504         * modules/strsep (Depends-on): Likewise.
21505         * modules/strsignal (Depends-on): Likewise.
21506         * modules/strstr-simple (Depends-on): Likewise.
21507         * modules/strtod (Depends-on): Likewise.
21508         * modules/strtoimax (Depends-on): Likewise.
21509         * modules/strtok_r (Depends-on): Likewise.
21510         * modules/strtoumax (Depends-on): Likewise.
21511         * modules/symlink (Depends-on): Likewise.
21512         * modules/symlinkat (Depends-on): Likewise.
21513         * modules/tanl (Depends-on): Likewise.
21514         * modules/tcgetsid (Depends-on): Likewise.
21515         * modules/tmpfile (Depends-on): Likewise.
21516         * modules/trunc (Depends-on): Likewise.
21517         * modules/truncf (Depends-on): Likewise.
21518         * modules/truncl (Depends-on): Likewise.
21519         * modules/uname (Depends-on): Likewise.
21520         * modules/unlink (Depends-on): Likewise.
21521         * modules/unlockpt (Depends-on): Likewise.
21522         * modules/unsetenv (Depends-on): Likewise.
21523         * modules/usleep (Depends-on): Likewise.
21524         * modules/utimensat (Depends-on): Likewise.
21525         * modules/vasprintf (Depends-on): Likewise.
21526         * modules/vdprintf (Depends-on): Likewise.
21527         * modules/vdprintf-posix (Depends-on): Likewise.
21528         * modules/vfprintf-posix (Depends-on): Likewise.
21529         * modules/vprintf-posix (Depends-on): Likewise.
21530         * modules/vsnprintf (Depends-on): Likewise.
21531         * modules/vsnprintf-posix (Depends-on): Likewise.
21532         * modules/vsprintf-posix (Depends-on): Likewise.
21533         * modules/wcrtomb (Depends-on): Likewise.
21534         * modules/wcscasecmp (Depends-on): Likewise.
21535         * modules/wcscspn (Depends-on): Likewise.
21536         * modules/wcsdup (Depends-on): Likewise.
21537         * modules/wcsncasecmp (Depends-on): Likewise.
21538         * modules/wcsnrtombs (Depends-on): Likewise.
21539         * modules/wcspbrk (Depends-on): Likewise.
21540         * modules/wcsrtombs (Depends-on): Likewise.
21541         * modules/wcsspn (Depends-on): Likewise.
21542         * modules/wcsstr (Depends-on): Likewise.
21543         * modules/wcstok (Depends-on): Likewise.
21544         * modules/wcswidth (Depends-on): Likewise.
21545         * modules/wctob (Depends-on): Likewise.
21546         * modules/wctomb (Depends-on): Likewise.
21547         * modules/wctype (Depends-on): Likewise.
21548         * modules/wcwidth (Depends-on): Likewise.
21549         * modules/write (Depends-on): Likewise.
21550
21551 2011-05-03  Bruno Haible  <bruno@clisp.org>
21552
21553         Support for conditional dependencies.
21554         * doc/gnulib.texi (Module description): Document the syntax of
21555         conditional dependencies.
21556         * gnulib-tool: New option --conditional-dependencies.
21557         (func_usage): Document it.
21558         (cond_dependencies): New variable.
21559         (func_get_automake_snippet_conditional,
21560         func_get_automake_snippet_unconditional): New functions, extracted from
21561         func_get_automake_snippet.
21562         (func_get_automake_snippet): Use them.
21563         (sed_first_32_chars): New variable.
21564         (func_module_shellfunc_name): New function.
21565         (func_module_shellvar_name): New function.
21566         (func_module_conditional_name): New function.
21567         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21568         func_cond_module_condition): New functions.
21569         (func_modules_transitive_closure): Add support for conditional
21570         dependencies.
21571         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21572         conditional automake snippet in an automake conditional.
21573         (func_emit_autoconf_snippets): Emit shell functions that contain the
21574         code for conditional modules.
21575         (func_import, func_create_testdir): Update specification.
21576
21577 2011-05-03  Eric Blake  <eblake@redhat.com>
21578
21579         test-getaddrinfo: report error information
21580         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21581
21582 2011-05-03  Jim Meyering  <meyering@redhat.com>
21583
21584         bootstrap: avoid build failure when $GZIP is set
21585         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21586         program name.  If defined at all, it is supposed to list gzip options.
21587         Reported by Alan Curry in http://debbugs.gnu.org/8609
21588
21589 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21590
21591         readme-release: new module with release instructions
21592         * modules/readme-release: New module.
21593         * top/README-release: New file, from coreutils, grep, diffutils.
21594         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21595
21596 2011-05-02  Eric Blake  <eblake@redhat.com>
21597
21598         fflush: also replace fclose when fixing fflush
21599         * modules/fflush (Depends-on): Add fclose.
21600         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21601         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21602         memstreams with no backing fd.
21603         * doc/posix-functions/fclose.texi (fclose): Document the use of
21604         fflush module to fix the bug.
21605         * tests/test-fclose.c (main): Relax test when fclose is used in
21606         isolation.
21607
21608         fclose: add some tests
21609         * modules/fclose-tests: New test module.
21610         * tests/test-fclose.c: New file.
21611         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21612
21613         fclose: reduced dependencies
21614         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21615         simpler lseek.
21616         * lib/fclose.c (rpl_fclose): Likewise.
21617         Reported by Simon Josefsson.
21618
21619         exit: drop remaining clients
21620         * modules/argmatch (Depends-on): Replace exit with stdlib.
21621         * modules/copy-file (Depends-on): Likewise.
21622         * modules/execute (Depends-on): Likewise.
21623         * modules/exitfail (Depends-on): Likewise.
21624         * modules/obstack (Depends-on): Likewise.
21625         * modules/pagealign_alloc (Depends-on): Likewise.
21626         * modules/pipe-filter-gi (Depends-on): Likewise.
21627         * modules/pipe-filter-ii (Depends-on): Likewise.
21628         * modules/savewd (Depends-on): Likewise.
21629         * modules/spawn-pipe (Depends-on): Likewise.
21630         * modules/wait-process (Depends-on): Likewise.
21631         * modules/xsetenv (Depends-on): Likewise.
21632         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21633         * modules/git-merge-changelog (Depends-on): Likewise.
21634         * modules/long-options (Depends-on): Likewise.
21635         * modules/pt_chown (Depends-on): Likewise.
21636         * modules/sysexits (Depends-on): Likewise.
21637
21638         freading: relax license from LGPLv3+ to LGPLv2+
21639         * modules/freading (License): Relax LGPL version.
21640
21641 2011-05-02  Bruno Haible  <bruno@clisp.org>
21642
21643         fchdir: Remove unused dependencies.
21644         * modules/fchdir (Depends-on): Remove include_next.
21645
21646 2011-05-02  Bruno Haible  <bruno@clisp.org>
21647
21648         gnulib-tool: Refactor.
21649         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21650         from func_emit_autoconf_snippets.
21651         (func_emit_autoconf_snippets): Use it.
21652
21653 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21654
21655         * NEWS: Document removal of 'exit'.
21656         * modules/exit: Remove file.
21657
21658 2011-05-01  Bruno Haible  <bruno@clisp.org>
21659
21660         Update DEPENDENCIES.
21661         * DEPENDENCIES (gettext): Recommend the newest release.
21662         Reported by Simon Josefsson.
21663
21664 2011-05-01  Bruno Haible  <bruno@clisp.org>
21665
21666         gnulib-tool: Reduce code duplication.
21667         * gnulib-tool (func_emit_autoconf_snippets): New function.
21668         (func_import, func_create_testdir): Use it.
21669
21670 2011-04-30  Eric Blake  <eblake@redhat.com>
21671
21672         fclose: don't fail on non-seekable input stream
21673         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21674         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21675         since fflush is allowed to fail in that case.
21676
21677 2011-04-30  Bruno Haible  <bruno@clisp.org>
21678
21679         dup3: cleanup
21680         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21681
21682 2011-04-30  Bruno Haible  <bruno@clisp.org>
21683
21684         netdb: Make it work in C++ mode.
21685         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21686         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21687         module.
21688         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21689         gl_MODULE_INDICATOR_FOR_TESTS.
21690         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21691         * modules/netdb-c++-tests: New file.
21692         * tests/test-netdb-c++.cc: New file.
21693
21694 2011-04-30  Bruno Haible  <bruno@clisp.org>
21695
21696         New modules 'vfscanf', 'vscanf'.
21697         * modules/vfscanf: New file.
21698         * modules/vscanf: New file.
21699         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21700         here.
21701         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21702         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21703
21704 2011-04-30  Bruno Haible  <bruno@clisp.org>
21705
21706         passfd: Add comments.
21707         * lib/passfd.c: Add comments about platforms.
21708
21709 2011-04-30  Bruno Haible  <bruno@clisp.org>
21710
21711         sys_uio: Make <sys/uio.h> self-contained.
21712         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21713         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21714
21715 2011-04-30  Bruno Haible  <bruno@clisp.org>
21716
21717         sys_socket: Ensure 'struct iovec' definition.
21718         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21719         <sys/socket.h>.
21720         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21721
21722 2011-04-30  Bruno Haible  <bruno@clisp.org>
21723
21724         sys_uio: Protect definition of 'struct iovec'.
21725         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21726         it as a C struct.
21727
21728 2011-04-30  Bruno Haible  <bruno@clisp.org>
21729
21730         manywarnings: fix indentation
21731         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21732
21733 2011-04-30  Pádraig Brady <P@draigBrady.com>
21734
21735         manywarnings: add -Wno-missing-field-initializers if needed.
21736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21737         option if it's needed to allow initialization with { 0, }
21738
21739 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21740
21741         announce-gen: cosmetic improvement
21742         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21743
21744 2011-04-29  Jim Meyering  <meyering@redhat.com>
21745
21746         vc-list-files: indent with spaces, not TABs
21747         * build-aux/vc-list-files: Convert leading TABs to spaces,
21748         to match the style of most other files in gnulib.
21749
21750         announce-gen: indent with spaces, not TABs
21751         * build-aux/announce-gen: Convert all TABs to spaces, to match
21752         the style of most other files in gnulib.
21753
21754 2011-04-29  Eric Blake  <eblake@redhat.com>
21755
21756         quotearg: avoid uninitialized variable use
21757         * lib/quotearg.c (quoting_options_from_style): Initialize
21758         remaining fields, and ensure that custom styles are only used via
21759         quoting_options rather than quoting_style.
21760
21761 2011-04-29  Jim Meyering  <meyering@redhat.com>
21762
21763         maint.mk: remove unused VC-tag variable
21764         * top/maint.mk (VC-tag): Remove unused variable.
21765
21766 2011-04-29  Bruno Haible  <bruno@clisp.org>
21767
21768         netdb: fix gai_strerror replacements
21769         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21770         * modules/netdb: Substitute it.
21771
21772 2011-04-29  Jim Meyering  <meyering@redhat.com>
21773
21774         test-getcwd.c: avoid new set-but-not-used warning
21775         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21776         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21777         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21778         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21779
21780         test-hash.c: avoid a new shadowing warning
21781         * tests/test-hash.c (main): Don't shadow "dup".
21782
21783 2011-04-28  Eric Blake  <eblake@redhat.com>
21784
21785         getaddrinfo: fix gai_strerror signature
21786         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21787         and work around mingw with UNICODE defined.
21788         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21789         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21790         * modules/netdb (Makefile.am): Substitute it.
21791         * lib/netdb.in.h (gai_strerror): Declare replacement.
21792         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21793         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21794         the fix.
21795
21796         getsockopt: avoid compiler warning
21797         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21798         Reported by Matthias Bolte.
21799
21800         tests: drop unused link dependency
21801         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21802         * modules/dirent-safer-tests (Makefile.am): Likewise.
21803         * modules/fdopendir-tests (Makefile.am): Likewise.
21804         * modules/mkfifoat-tests (Makefile.am): Likewise.
21805         * modules/openat-safer-tests (Makefile.am): Likewise.
21806         * modules/openat-tests (Makefile.am): Likewise.
21807         * modules/readlinkat-tests (Makefile.am): Likewise.
21808         * modules/symlinkat-tests (Makefile.am): Likewise.
21809         * modules/linkat-tests (Makefile.am): Likewise.
21810         (Depends-on): Switch to filenamecat-lgpl.
21811         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21812         LIBINTL.
21813         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21814         * tests/test-linkat.c (main): Don't require xalloc.
21815
21816         hash, mgetgroups: drop xalloc dependency
21817         * lib/hash.c (includes): Adjust includes.
21818         * lib/mgetgroups.c (includes): Likewise.
21819         (xgetgroups): Move...
21820         * lib/xgetgroups.c: ...to new file.
21821         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21822         * modules/xgetgroups: New file, split from...
21823         * modules/mgetgroups: ...here.
21824         (Depends-on): Add xalloc-oversized.
21825         * modules/hash (Depends-on): Likewise.
21826         * modules/hash-tests (Depends-on): Drop xalloc.
21827         (test_hash_LDADD): Drop unused library.
21828         * tests/test-hash.c (main): Break xalloc dependency.
21829         (includes): Drop unused include.
21830
21831         xalloc-oversized: new module
21832         * modules/xalloc-oversized: New module.
21833         * modules/xalloc (Depends-on): Add it.
21834         * lib/xalloc.h (xalloc_oversized): Move...
21835         * lib/xalloc-oversized.h: ...into new file.
21836
21837         utimecmp: drop dependency on xmalloc
21838         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21839         due to memory pressure.
21840         * modules/utimecmp (Depends-on): Drop xalloc.
21841
21842 2011-04-27  Eric Blake  <eblake@redhat.com>
21843
21844         getcwd: fix mingw bugs
21845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21846         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21847         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21848
21849 2011-04-27  Bruno Haible  <bruno@clisp.org>
21850
21851         mkstemps: Ensure declaration on MacOS X 10.5.
21852         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21853         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21854         MacOS X.
21855
21856 2011-04-27  Bruno Haible  <bruno@clisp.org>
21857
21858         mkstemp: More documentation.
21859         * doc/posix-functions/mkstemp.texi: Document header file problem on
21860         MacOS X.
21861
21862 2011-04-27  Bruno Haible  <bruno@clisp.org>
21863
21864         mkstemp: Tweak configure message when cross-compiling.
21865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21866         result as a guess.
21867
21868 2011-04-27  Bruno Haible  <bruno@clisp.org>
21869
21870         clean-temp: Clarify what it does.
21871         * lib/clean-temp.h: Add more comments.
21872         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21873         module.
21874         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21875         * doc/glibc-functions/mkstemps.texi: Likewise.
21876         * doc/glibc-functions/mkostemps.texi: Likewise.
21877
21878 2011-04-27  Eric Blake  <eblake@redhat.com>
21879
21880         fchdir: avoid extra chdir and fix test
21881         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21882         getcwd-lgpl.
21883         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21884         have to be canonical.
21885         (canonicalize_file_name): Drop unused macro.
21886         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21887
21888         filenamecat-lgpl: fix licence
21889         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21890         when it was first created.
21891
21892         linkat, renameat: add missing dependency
21893         * modules/linkat (Depends-on): Require getcwd-lgpl.
21894         * modules/renameat (Depends-on): Likewise.
21895
21896         tests: reduce dependencies
21897         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21898         * tests/test-renameat.c (main): Likewise.
21899         * modules/linkat-tests (Depends-on): Relax dependency.
21900         * modules/renameat-tests (Depends-on): Likewise.
21901         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21902         dependency explicit.
21903
21904         save-cwd: reduce default dependency
21905         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21906         * lib/save-cwd.c: Update comments.
21907         * NEWS: Document the semantic change.
21908
21909         getcwd: enhance tests
21910         * tests/test-getcwd-lgpl.c: New file, taken from...
21911         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21912         repeat long path stress tests from m4 probe.
21913         * modules/getcwd-lgpl-tests: New module.
21914         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21915         * m4/getcwd-abort-bug.m4: Update comment.
21916         * m4/getcwd-path-max.m4: Likewise.
21917
21918         getcwd-lgpl: new module
21919         * modules/getcwd-lgpl: New module.
21920         * lib/getcwd-lgpl.c: New file.
21921         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21922         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21923         * modules/getcwd (configure.ac): Set C witness.
21924         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21925
21926         getcwd: tweak comments
21927         * m4/getcwd-abort-bug.m4: Fix comments.
21928         * m4/getcwd-path-max.m4: Likewise.
21929         * m4/getcwd.m4: Likewise.
21930
21931 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21932         and Eric Blake  <eblake@redhat.com>
21933
21934         mkstemp: replace if system version uses wrong permissions
21935         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21936         read/write mode bits set in file created by mkstemp.
21937         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21938
21939 2011-04-27  Eric Blake  <eblake@redhat.com>
21940
21941         passfd: avoid compiler warning
21942         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21943         Reported by Laine Stump.
21944
21945 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21946
21947         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21948         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21949
21950 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21951         and Eric Blake  <eblake@redhat.com>
21952
21953         mkstemp: mention clean-temp module
21954         * lib/mkstemp.c: Add comment.
21955         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21956
21957 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         inttypes: also provide default values for 32-bit tests
21960         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21961         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21962
21963 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21964
21965         strtoumax: remove dependency on strtoimax
21966         This is like the strtoull change of yesterday.
21967         * modules/strtoumax (Files): Add lib/strtoimax.c.
21968         (Depends-on): Remove strtoimax and add verify.
21969
21970         inttypes-incomplete: new module
21971         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21972         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21973         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21974         of gl_INTTYPES_H.
21975         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21976         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21977         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21978         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21979         * modules/strtoumax, modules/xstrtol (Depends-on):
21980         Depend on inttypes-incomplete, not inttypes.
21981         * modules/inttypes-incomplete: New module, containing the contents
21982         of the old modules/inttypes module, except that the Files: section
21983         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21984         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21985         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21986         (Depends-on): Depend only on inttypes-incomplete.
21987         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21988
21989         inttypes: omit now-redundant strtoimax and strtoumax work
21990         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21991         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21992
21993         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21994         This supports apps that need pointers to strtoimax and strtoumax,
21995         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21996         nonexistent functions.  See
21997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21998         et seq.
21999         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22000         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22001         a macro.
22002         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22003
22004 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22005
22006         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22007
22008 2011-04-25  Bruno Haible  <bruno@clisp.org>
22009
22010         strtol, strtoul: Mark modules as obsolete.
22011         * modules/strtol (Status, Notice): New sections.
22012         * modules/strtoul (Status, Notice): New sections.
22013
22014 2011-04-25  Bruno Haible  <bruno@clisp.org>
22015
22016         strtod: Remove check for strtod, unless supporting old platforms.
22017         * modules/strtod-obsolete: New file.
22018         * m4/strtod-obsolete.m4: New file.
22019         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22020         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22021         * modules/strtod (Depends-on): Add strtod-obsolete.
22022         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22023
22024 2011-04-25  Bruno Haible  <bruno@clisp.org>
22025
22026         strcase: Make module obsolete.
22027         * modules/strcase (Status, Notice): New sections.
22028
22029 2011-04-25  Bruno Haible  <bruno@clisp.org>
22030
22031         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22032         * modules/dup2-obsolete: New file.
22033         * m4/dup2-obsolete.m4: New file.
22034         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22035         gl_FUNC_DUP2_OBSOLETE is not also defined.
22036         * modules/dup2 (Depends-on): Add dup2-obsolete.
22037         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22038
22039 2011-04-25  Bruno Haible  <bruno@clisp.org>
22040
22041         strnlen: Avoid memchr related link error on old obsolete platforms.
22042         * modules/memchr-obsolete: New file.
22043         * m4/memchr-obsolete.m4: New file.
22044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22045         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22046         * modules/memchr (Depends-on): Add memchr-obsolete.
22047         * modules/strnlen (Depends-on): Likewise.
22048         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22049
22050 2011-04-25  Jim Meyering  <meyering@redhat.com>
22051
22052         maint.mk: makefile_at_at_check extend and clean up
22053         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22054         in addition to */Makefile.am.
22055         Exempt legitimate uses of @VAR@ notation, e.g.,
22056         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22057         Remove obsolete coreutils-specific comment.
22058         Prompted by discussion here:
22059         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22060
22061 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22062
22063         strtoul: remove dependency on strtol
22064         This is so that 'configure' need not check for strtol merely because
22065         the application needs strtoul.
22066         * modules/strtoul (Files): Add lib/strtol.c.
22067         (Depends-on): Remove strtol.
22068
22069         strtoull: remove dependency on strtoul
22070         This is like the strtoll change.
22071         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22072         (Depends-on): Remove strtoul.
22073
22074         strtoll: remove dependency on strtol
22075         This is so that 'configure' need not check for strtol merely because
22076         the application needs strtoll.
22077         * modules/strtoll (Files): Add lib/strtol.c.
22078         (Depends-on): Remove strtol.
22079
22080 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22081
22082         inttypes: Move some configure check to module 'imaxdiv'.
22083         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22084         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22085         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22086
22087 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22088
22089         inttypes: Move some configure check to module 'imaxabs'.
22090         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22091         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22092         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22093
22094 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22095
22096         inttypes: Remove configure tests that are not needed since 2009-12-31.
22097         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22098         gl_cv_header_working_inttypes_h.
22099
22100 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22101
22102         * modules/strnlen (Depends-on): Remove memchr.
22103         The strnlen implementation doesn't need the memchr module's fixes; see
22104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22105
22106         strtol: remove dependency on wchar
22107         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22108         * modules/strtol (Depends-on): Remove wchar.
22109
22110 2011-04-21  Eric Blake  <eblake@redhat.com>
22111
22112         passfd: fix test regression on Linux
22113         * modules/passfd-tests (configure.ac): Correct socketpair check.
22114
22115         passfd: speed up configure and drop unused code
22116         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22117         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22118         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22119         Instead of probing at configure for unix_scm_rights_bsd44_way,
22120         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22121         check to a struct member probe.
22122         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22123         (sendfd, recvfd): Update preprocessor checks.
22124         * modules/passfd (Files): Reflect rename, and drop unused file.
22125         (Depends-on): Drop unused dependency.
22126
22127         passfd: allow compilation on mingw
22128         * modules/sys_socket (Depends-on): Add sys_uio.
22129         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22130         iovec and a minimal struct msghdr.
22131         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22132         * tests/test-sys_socket.c (main): Enhance test.
22133         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22134         guaranteed to provide what we need.
22135         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22136         * modules/passfd-tests (Depends-on): Add sys_wait.
22137         * tests/test-passfd.c (main): Skip test on mingw, for now.
22138         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22139         partial 'struct msghdr' implementation.
22140
22141         sys_uio: new module
22142         * modules/sys_uio: New module.
22143         * modules/sys_uio-tests: Likewise.
22144         * lib/sys_uio.in.h: New file.
22145         * m4/sys_uio_h.m4: Likewise.
22146         * tests/test-sys_uio.c: Likewise.
22147         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22148         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22149
22150 2011-04-20  Jim Meyering  <meyering@redhat.com>
22151
22152         useless-if-before-free: avoid false-positive
22153         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22154         disjunct so that it too requires a terminating ";".  Without that,
22155         this script would identify as useless one statement from gcc that
22156         was not:
22157           if (aligned_ptr)
22158             free (((void **) aligned_ptr) [-1]);
22159
22160 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22161
22162         doc: update users.txt.
22163         * users.txt: Add barcode.
22164
22165 2011-04-19  Bruno Haible  <bruno@clisp.org>
22166
22167         ioctl: Remove link dependency on native Windows.
22168         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22169         (gl_close_fn, gl_ioctl_fn): New types.
22170         (struct fd_hook): Renamed from struct close_hook. Change type of
22171         private_close_fn field. Add private_ioctl_fn field.
22172         (close_hook_fn): Add parameter for primary close method.
22173         (execute_close_hooks, execute_all_close_hooks): Likewise.
22174         (ioctl_hook_fn): New type.
22175         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22176         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22177         argument.
22178         (unregister_fd_hook): Renamed from unregister_close_hook.
22179         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22180         Don't include <unistd.h>.
22181         (close): Remove undef.
22182         (anchor): Update.
22183         (execute_close_hooks): Add argument for primary close method.
22184         (execute_all_close_hooks): Likewise.
22185         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22186         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22187         argument. Allow each argument to be NULL.
22188         (unregister_fd_hook): Renamed from unregister_close_hook.
22189         * lib/close.c (rpl_close): Pass 'close' function pointer to
22190         execute_all_close_hooks.
22191         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22192         (primary_ioctl): New function.
22193         (ioctl): Don't call ioctlsocket here. Instead, call
22194         execute_all_ioctl_hooks.
22195         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22196         close method.
22197         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22198         (fd_sockets_hook): Renamed from close_sockets_hook.
22199         (gl_sockets_startup, gl_sockets_cleanup): Update.
22200         * modules/fd-hook: Renamed from modules/close-hook. Update.
22201         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22202         * modules/sockets (Depends-on): Likewise.
22203         * modules/ioctl (Depends-on): Add fd-hook.
22204         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22205         GNULIB_SOCKET.
22206
22207 2011-04-19  Bruno Haible  <bruno@clisp.org>
22208
22209         Move the support of O_NONBLOCK in open() to the 'open' module.
22210         * modules/nonblocking (Depends-on): Remove 'open'.
22211         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22212         gl_cv_have_open_O_NONBLOCK.
22213         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22214         O_NONBLOCK support.
22215         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22216
22217 2011-04-17  Bruno Haible  <bruno@clisp.org>
22218
22219         pipe2: Simplify code.
22220         * lib/pipe2.c (pipe2): Reduce code duplication.
22221
22222 2011-04-17  Bruno Haible  <bruno@clisp.org>
22223
22224         nonblocking: Add comment.
22225         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22226
22227 2011-04-17  Bruno Haible  <bruno@clisp.org>
22228
22229         nonblocking: Add tests for sockets.
22230         * tests/test-nonblocking-socket.sh: New file.
22231         * tests/test-nonblocking-socket-main.c: New file.
22232         * tests/test-nonblocking-socket-child.c: New file.
22233         * tests/test-nonblocking-socket.h: New file.
22234         * tests/socket-server.h: New file.
22235         * tests/socket-client.h: New file.
22236         * modules/nonblocking-socket-tests: New file.
22237         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22238
22239 2011-04-17  Bruno Haible  <bruno@clisp.org>
22240
22241         nonblocking: Add tests for pipes.
22242         * tests/test-nonblocking-pipe.sh: New file.
22243         * tests/test-nonblocking-pipe-main.c: New file.
22244         * tests/test-nonblocking-pipe-child.c: New file.
22245         * tests/test-nonblocking-pipe.h: New file.
22246         * tests/test-nonblocking-writer.h: New file.
22247         * tests/test-nonblocking-reader.h: New file.
22248         * tests/test-nonblocking-misc.h: New file.
22249         * modules/nonblocking-pipe-tests: New file.
22250         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22251
22252 2011-04-16  Bruno Haible  <bruno@clisp.org>
22253
22254         gettext: Clarify the needed programmer actions.
22255         * modules/gettext (Notice): New field.
22256         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22257
22258 2011-04-16  Bruno Haible  <bruno@clisp.org>
22259
22260         strchrnul: Tweak last commit.
22261         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22262         bug.
22263         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22264         as in _GL_FUNCDECL_SYS.
22265         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22266         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22267
22268 2011-04-15  Eric Blake  <eblake@redhat.com>
22269
22270         strchrnul: work around cygwin bug
22271         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22272         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22274         * modules/string (Makefile.am): Substitute it.
22275         * lib/string.in.h (strchrnul): Use it.
22276
22277 2011-04-15  Bruno Haible  <bruno@clisp.org>
22278
22279         Don't require lib/stdio-write.c when only module 'stdio' is used.
22280         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22281         invocation.
22282         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22283
22284 2011-04-14  Bruno Haible  <bruno@clisp.org>
22285
22286         Support non-blocking pipe I/O in read() on native Windows.
22287         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22288         (read): New declaration.
22289         * lib/read.c: New file.
22290         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22291         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22292         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22293         vscanf): New declarations.
22294         * lib/stdio-read.c: New file.
22295         * m4/read.m4: New file.
22296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22297         REPLACE_READ.
22298         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22299         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22300         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22301         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22302         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22303         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22304         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22305         * modules/read: New file.
22306         * modules/nonblocking (Files): Add lib/stdio-read.c.
22307         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22308         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22309         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22310         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22311         * modules/pread (Depends-on): Add read.
22312         * modules/safe-read (Depends-on): Likewise.
22313         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22314         gets, scanf, vfscanf, vscanf): Verify signatures.
22315         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22316         problem with non-blocking pipes.
22317         * doc/posix-functions/fgetc.texi: Likewise.
22318         * doc/posix-functions/fgets.texi: Likewise.
22319         * doc/posix-functions/fread.texi: Likewise.
22320         * doc/posix-functions/fscanf.texi: Likewise.
22321         * doc/posix-functions/getc.texi: Likewise.
22322         * doc/posix-functions/getchar.texi: Likewise.
22323         * doc/posix-functions/gets.texi: Likewise.
22324         * doc/posix-functions/scanf.texi: Likewise.
22325         * doc/posix-functions/vfscanf.texi: Likewise.
22326         * doc/posix-functions/vscanf.texi: Likewise.
22327
22328 2011-04-14  Bruno Haible  <bruno@clisp.org>
22329
22330         Support non-blocking pipe I/O in write() on native Windows.
22331         * lib/write.c (rpl_write): Split a write request that failed merely
22332         because the byte count was larger than the pipe buffer's size.
22333         * doc/posix-functions/write.texi: Mention the problem with large byte
22334         counts.
22335
22336 2011-04-14  Bruno Haible  <bruno@clisp.org>
22337
22338         wchar: Ensure that wchar_t gets defined on uClibc.
22339         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22340         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22341
22342 2011-04-13  Bruno Haible  <bruno@clisp.org>
22343
22344         safe-write, full-read: Avoid unnecessary compilation units.
22345         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22346         (Depends-on): Remove safe-read. Add ssize_t.
22347         * modules/full-read (Files): Add lib/full-write.c.
22348         (Depends-on): Add full-write.
22349
22350 2011-04-13  Bruno Haible  <bruno@clisp.org>
22351
22352         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22353         * modules/pwrite (Depends-on): Add 'write'.
22354
22355 2011-04-13  Bruno Haible  <bruno@clisp.org>
22356
22357         Support non-blocking pipe I/O in write() on native Windows.
22358         * lib/unistd.in.h (write): Enable replacement also if
22359         GNULIB_UNISTD_H_NONBLOCKING is 1.
22360         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22361         (rpl_write): When failing to write on a non-blocking pipe, change
22362         errno from ENOSPC to EAGAIN.
22363         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22364         putchar, puts, vfprintf, vprintf): Enable replacement also if
22365         GNULIB_STDIO_H_NONBLOCKING is 1.
22366         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22367         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22368         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22369         CALL_WITH_SIGPIPE_EMULATION.
22370         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22371         * m4/nonblocking.m4: New file.
22372         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22373         for non-blocking I/O support.
22374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22375         GNULIB_UNISTD_H_NONBLOCKING.
22376         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22377         required for non-blocking I/O support.
22378         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22379         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22380         lib/stdio-write.c, m4/asm-underscore.m4.
22381         (Depends-on): Add stdio, unistd.
22382         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22383         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22384         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22385         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22386         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22387         problem with non-blocking pipes.
22388         * doc/posix-functions/fputc.texi: Likewise.
22389         * doc/posix-functions/fputs.texi: Likewise.
22390         * doc/posix-functions/fwrite.texi: Likewise.
22391         * doc/posix-functions/printf.texi: Likewise.
22392         * doc/posix-functions/putc.texi: Likewise.
22393         * doc/posix-functions/putchar.texi: Likewise.
22394         * doc/posix-functions/puts.texi: Likewise.
22395         * doc/posix-functions/vfprintf.texi: Likewise.
22396         * doc/posix-functions/vprintf.texi: Likewise.
22397         * doc/posix-functions/write.texi: Likewise.
22398
22399 2011-04-10  Jim Meyering  <meyering@redhat.com>
22400
22401         maint.mk: prohibit doubled words
22402         Detect them also when they're separated by a newline.
22403         There are 3 ways to customize it:
22404           - disable the test on a per file basis, as usual with rules using
22405             $(VC_LIST_EXCEPT)
22406           - replace the default doubled-word-selecting regexp (affects all files)
22407           - ignore a particular file-vs-doubled-word match
22408         I nearly used that last one to ignore the "is is" match in
22409         coreutils' NEWS file, since the text was "ls -is is ..."
22410         To do that, I would have added this line to cfg.mk:
22411           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22412         but it would have ignored any "is is" match in NEWS.
22413         Low probability, but still...
22414         Instead, I changed the text, slightly:
22415           -  ls -is is now consistent with ls -lis in ignoring values returned
22416           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22417         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22418         (prohibit_doubled_word_): Define.
22419         (sc_prohibit_doubled_word): New rule.
22420         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22421
22422 2011-04-10  Jim Meyering  <meyering@redhat.com>
22423
22424         maint: fix doubled-word typo in comment
22425         * m4/gethostname.m4: s/is is/it is/
22426         * m4/getdomainname.m4: Likewise.
22427
22428 2011-04-10  Jim Meyering  <meyering@redhat.com>
22429
22430         maint: remove doubled word: s/it it/it/
22431         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22432
22433 2011-04-10  Jim Meyering  <meyering@redhat.com>
22434
22435         maint.mk: remove useless semicolon and backslash
22436         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22437         semicolon and backslash.
22438
22439 2011-04-10  Bruno Haible  <bruno@clisp.org>
22440
22441         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22442         * modules/stdint-tests (Depends-on): Add wchar.
22443
22444 2011-04-10  Jim Meyering  <meyering@redhat.com>
22445
22446         maint: remove doubled words in comments, e.g., s/a a/a/
22447         * lib/strptime.c (day_of_the_week): s/the the/the/
22448         * tests/test-chown.h (test_chown): s/a a/a/
22449
22450         test-chown.h: correct a cast
22451         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22452         when the destination is a stat.st_gid.
22453
22454 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22455
22456         getaddrinfo: Fix test for sa_len member.
22457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22458         include <sys/types.h> before <sys/socket.h>.
22459
22460 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22461
22462         maint: change "can not" to "cannot"
22463         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22464         boundaries.
22465
22466 2011-04-09  Jim Meyering  <meyering@redhat.com>
22467
22468         maint: change "a a" to "a"
22469         * tests/test-lchown.h (test_lchown): s/a a/a/
22470
22471         maint.mk: prohibit \<the the\>
22472         * top/maint.mk (sc_prohibit_the_the): New rule.
22473
22474         maint: fix "the the" in comment
22475         * lib/count-one-bits.h: s/the the/the/
22476
22477         maint: change "can not" to "cannot"
22478         But do not change the occurrences in maintain.texi or in
22479         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22480         * doc/gnulib-tool.texi: s/can not/cannot/
22481         * doc/posix-functions/accept.texi (accept): Likewise.
22482         * doc/posix-functions/socket.texi (socket): Likewise.
22483         * lib/mbrtowc.c: Likewise.
22484
22485         maint.mk: prohibit use of "can not"
22486         * top/maint.mk (sc_prohibit_can_not): New rule.
22487         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22488
22489 2011-04-09  Bruno Haible  <bruno@clisp.org>
22490
22491         careadlinkat: Guard against misuse of careadlinkatcwd.
22492         * lib/careadlinkat.c: Include <stdlib.h>.
22493         (careadlinkatcwd): Check that the fd argument is as expected.
22494
22495 2011-04-09  Bruno Haible  <bruno@clisp.org>
22496
22497         careadlinkat: Use common coding style.
22498         * lib/careadlinkat.c: Move gnulib includes after system includes.
22499
22500 2011-04-09  Bruno Haible  <bruno@clisp.org>
22501
22502         careadlinkat: Clarify specification.
22503         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22504         (careadlinkatcwd): Add comment.
22505         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22506
22507 2011-04-09  Bruno Haible  <bruno@clisp.org>
22508
22509         areadlinkat: Avoid link error on many platforms.
22510         * modules/areadlinkat (Depends-on): Add areadlink.
22511
22512 2011-04-09  Bruno Haible  <bruno@clisp.org>
22513
22514         allocator, careadlinkat: Fix double-inclusion guard.
22515         * lib/allocator.h: Fix double-inclusion guard.
22516         * lib/careadlinkat.h: Likewise.
22517
22518 2011-04-09  Bruno Haible  <bruno@clisp.org>
22519
22520         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22521         * lib/relocwrapper.c: Update dependencies hierarchy.
22522         * build-aux/install-reloc: Update list of files to be compiled.
22523         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22524         lib/allocator.[hc].
22525
22526 2011-04-08  Eric Blake  <eblake@redhat.com>
22527
22528         strftime: silence gnulib-tool warning
22529         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22530
22531 2011-04-08  Bruno Haible  <bruno@clisp.org>
22532
22533         verify: Fix syntax error with GCC 4.6 in C++ mode.
22534         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22535         (HAVE_STATIC_ASSERT): New macro.
22536         (verify_true, verify): Use 'static_assert' if it is supported and
22537         '_Static_assert' is not supported.
22538
22539 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22540
22541         allocator: New module.
22542         * modules/allocator, lib/allocator.c: New files.
22543         * lib/allocator.h (stdlib_allocator): New decl.
22544         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22545         Remove.  Do not include <stdlib.h>.
22546         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22547         * modules/careadlinkat (Files): Remove lib/allocator.h.
22548         (Depends-on): Add allocator.
22549
22550         stdlib: let modules use system malloc, realloc
22551         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22552         if !_GL_USE_STDLIB_ALLOC.
22553         (malloc, realloc): Limit this change to a smaller scope.
22554
22555         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22556         (malloc, realloc): Don't #undef; no longer needed.
22557         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22558         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22559         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22560         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22561         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22562         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22563         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22564         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22565
22566         careadlinkat: rename members to avoid problem
22567         * lib/allocator.h (struct allocator): Rename members from
22568         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22569         and realloc are #define'd.  Reported by Eric Blake in
22570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22571         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22572
22573 2011-04-08  Eric Blake  <eblake@redhat.com>
22574
22575         nonblocking: reduce dependency
22576         * tests/test-nonblocking.c: Only test sockets when in use.
22577         * modules/nonblocking-tests (Depends-on): Drop socket.
22578         (Makefile.am): Link even if sockets are not present.
22579         * modules/pipe2-tests (Makefile.am): Likewise.
22580         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22581
22582         pipe2: fix O_NONBLOCK support on mingw
22583         * modules/pipe2 (Depends-on): Add nonblocking.
22584         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22585         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22586         * tests/test-nonblocking.c (main): Likewise.
22587         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22588
22589         fcntl-h: fix O_ACCMODE on cygwin
22590         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22591         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22592
22593         pipe-filter: drop O_NONBLOCK workarounds
22594         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22595         * modules/pipe-filter-ii (Depends-on): Likewise.
22596         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22597
22598         nonblocking: provide O_NONBLOCK for mingw
22599         * modules/nonblocking (Depends-on): Add open.
22600         (configure.ac): Set new witness macro.
22601         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22602         * modules/fcntl-h (Makefile.am): Substitute it.
22603         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22604         nonblocking module is in use.
22605         * lib/nonblocking.c: Adjust portability test.
22606         * lib/open.c (open): Don't let native open see gnulib flag.
22607         * tests/test-fcntl-h.c (main): Enhance test.
22608         * tests/test-open.h (test_open): Likewise.
22609         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22610
22611         careadlinkat: fix compilation error on mingw
22612         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22613         within struct allocator.
22614
22615 2011-04-06  Eric Blake  <eblake@redhat.com>
22616
22617         binary-io: relicense under LGPLv2+
22618         * modules/binary-io (License): Relax to LGPLv2+.
22619         Requested for libvirt, and required by pipe2.
22620
22621 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         verify: use _Static_assert if available
22624         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22625         (verify_true, verify): Use it if available.  This generates better
22626         diagnostics with GCC 4.6.0 and later.
22627
22628 2011-04-05  Bruno Haible  <bruno@clisp.org>
22629
22630         Remove leftover generated .h files after config.status changed.
22631
22632         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22633         GL_GENERATE_ALLOCA_H.
22634         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22635         GL_GENERATE_ALLOCA_H evaluates to false.
22636
22637         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22638         GL_GENERATE_ARGZ_H.
22639         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22640         evaluates to false.
22641
22642         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22643         GL_GENERATE_BYTESWAP_H.
22644         * modules/byteswap (Makefile.am): Remove byteswap.h if
22645         GL_GENERATE_BYTESWAP_H evaluates to false.
22646
22647         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22648         GL_GENERATE_ERRNO_H.
22649         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22650         evaluates to false.
22651
22652         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22653         GL_GENERATE_FLOAT_H.
22654         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22655         evaluates to false.
22656
22657         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22658         GL_GENERATE_FNMATCH_H.
22659         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22660         GL_GENERATE_FNMATCH_H evaluates to false.
22661
22662         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22663         GL_GENERATE_GLOB_H.
22664         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22665         evaluates to false.
22666
22667         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22668         automake conditional GL_GENERATE_ICONV_H.
22669         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22670         evaluates to false.
22671
22672         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22673         GL_GENERATE_NETINET_IN_H.
22674         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22675         GL_GENERATE_NETINET_IN_H evaluates to false.
22676
22677         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22678         conditional GL_GENERATE_PTHREAD_H.
22679         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22680         * modules/pthread (Makefile.am): Remove pthread.h if
22681         GL_GENERATE_PTHREAD_H evaluates to false.
22682
22683         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22684         GL_GENERATE_SCHED_H.
22685         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22686         evaluates to false.
22687
22688         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22689         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22690         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22691         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22692
22693         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22694         GL_GENERATE_STDARG_H.
22695         * modules/stdarg (Makefile.am): Remove stdarg.h if
22696         GL_GENERATE_STDARG_H evaluates to false.
22697
22698         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22699         GL_GENERATE_STDBOOL_H.
22700         * modules/stdbool (Makefile.am): Remove stdbool.h if
22701         GL_GENERATE_STDBOOL_H evaluates to false.
22702
22703         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22704         conditional GL_GENERATE_STDDEF_H.
22705         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22706         * modules/stddef (Makefile.am): Remove stddef.h if
22707         GL_GENERATE_STDDEF_H evaluates to false.
22708
22709         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22710         GL_GENERATE_STDINT_H.
22711         * modules/stdint (Makefile.am): Remove stdint.h if
22712         GL_GENERATE_STDINT_H evaluates to false.
22713
22714         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22715         GL_GENERATE_SYSEXITS_H.
22716         * modules/sysexits (Makefile.am): Remove sysexits.h if
22717         GL_GENERATE_SYSEXITS_H evaluates to false.
22718
22719         Reported by Karl Berry and Ralf Wildenhues.
22720
22721 2011-04-05  Bruno Haible  <bruno@clisp.org>
22722
22723         Ensure to rebuild generated .h files when config.status has changed.
22724         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22725         config.status.
22726         * modules/ctype (Makefile.am): Likewise.
22727         * modules/dirent (Makefile.am): Likewise.
22728         * modules/errno (Makefile.am): Likewise.
22729         * modules/fcntl-h (Makefile.am): Likewise.
22730         * modules/float (Makefile.am): Likewise.
22731         * modules/getopt-posix (Makefile.am): Likewise.
22732         * modules/glob (Makefile.am): Likewise.
22733         * modules/iconv-h (Makefile.am): Likewise.
22734         * modules/inttypes (Makefile.am): Likewise.
22735         * modules/langinfo (Makefile.am): Likewise.
22736         * modules/locale (Makefile.am): Likewise.
22737         * modules/math (Makefile.am): Likewise.
22738         * modules/netdb (Makefile.am): Likewise.
22739         * modules/netinet_in (Makefile.am): Likewise.
22740         * modules/poll-h (Makefile.am): Likewise.
22741         * modules/pthread (Makefile.am): Likewise.
22742         * modules/pty (Makefile.am): Likewise.
22743         * modules/sched (Makefile.am): Likewise.
22744         * modules/search (Makefile.am): Likewise.
22745         * modules/selinux-h (Makefile.am): Likewise.
22746         * modules/signal (Makefile.am): Likewise.
22747         * modules/spawn (Makefile.am): Likewise.
22748         * modules/stdarg (Makefile.am): Likewise.
22749         * modules/stdbool (Makefile.am): Likewise.
22750         * modules/stddef (Makefile.am): Likewise.
22751         * modules/stdint (Makefile.am): Likewise.
22752         * modules/stdio (Makefile.am): Likewise.
22753         * modules/stdlib (Makefile.am): Likewise.
22754         * modules/string (Makefile.am): Likewise.
22755         * modules/strings (Makefile.am): Likewise.
22756         * modules/sys_file (Makefile.am): Likewise.
22757         * modules/sys_ioctl (Makefile.am): Likewise.
22758         * modules/sys_select (Makefile.am): Likewise.
22759         * modules/sys_socket (Makefile.am): Likewise.
22760         * modules/sys_stat (Makefile.am): Likewise.
22761         * modules/sys_time (Makefile.am): Likewise.
22762         * modules/sys_times (Makefile.am): Likewise.
22763         * modules/sys_utsname (Makefile.am): Likewise.
22764         * modules/sys_wait (Makefile.am): Likewise.
22765         * modules/sysexits (Makefile.am): Likewise.
22766         * modules/termios (Makefile.am): Likewise.
22767         * modules/time (Makefile.am): Likewise.
22768         * modules/unistd (Makefile.am): Likewise.
22769         * modules/wchar (Makefile.am): Likewise.
22770         * modules/wctype-h (Makefile.am): Likewise.
22771         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22772
22773 2011-04-05  Bruno Haible  <bruno@clisp.org>
22774
22775         pipe2: Relicense under LGPLv2+.
22776         * modules/pipe2 (License): Change to LGPLv2+.
22777         Requested by Eric Blake, for libvirt.
22778
22779 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22780
22781         bootstrap: compute gnulib_extra_files after updating build_aux
22782         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22783         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22784
22785 2011-04-05  Eric Blake  <eblake@redhat.com>
22786
22787         bootstrap: preserve git whitelist item sorting
22788         * build-aux/bootstrap (sort_patterns): New function.
22789         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22790
22791 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22792
22793         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22794         sc_space_tab check.
22795
22796 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22797
22798         areadlink, areadlinkat: rewrite in terms of careadlinkat
22799         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22800         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22801         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22802         (malloc, realloc): Remove #undefs.
22803         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22804         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22805         readlink, ssize_t, stdint, unistd.
22806         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22807         areadlink, stdint.
22808
22809         careadlinkat: new module
22810         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22811         * modules/careadlinkat: New files, written by me with
22812         a review and feedback from Ben Pfaff in
22813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22814
22815 2011-04-01  Bruno Haible  <bruno@clisp.org>
22816
22817         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22818         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22819         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22820         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22821         Reported by Bruce Korb <bruce.korb@gmail.com>.
22822
22823 2011-04-01  Bruno Haible  <bruno@clisp.org>
22824
22825         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22826         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22827         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22828         * modules/wcpcpy (Depends-on): Add extensions.
22829         * modules/wcpncpy (Depends-on): Likewise.
22830         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22831         systems.
22832         * doc/posix-functions/wcpncpy.texi: Likewise.
22833         * doc/posix-functions/wcwidth.texi: Likewise.
22834
22835 2011-03-31  Eric Blake  <eblake@redhat.com>
22836
22837         nonblocking: fix mingw test failures
22838         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22839         non-blocking flag on regular file.
22840         (get_nonblocking_flag): Set errno on invalid fd.
22841         * tests/test-nonblocking.c (main): Avoid test failure on
22842         directories if fchdir is not active.
22843         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22844
22845 2011-03-31  Bruno Haible  <bruno@clisp.org>
22846
22847         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22848         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22849         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22850         Reported by Simon Josefsson <simon@josefsson.org>.
22851
22852 2011-03-31  Bruno Haible  <bruno@clisp.org>
22853         and Eric Blake  <eblake@redhat.com>
22854
22855         nonblocking: new module
22856         * modules/nonblocking: New module.
22857         * modules/nonblocking-tests: Likewise.
22858         * lib/nonblocking.h: New file.
22859         * lib/nonblocking.c: Likewise.
22860         * tests/test-nonblocking.c: New test.
22861         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22862
22863 2011-03-30  Bruno Haible  <bruno@clisp.org>
22864
22865         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22866         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22867         instead of 'printf' format for GCC >= 4.4.
22868         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22869         (fprintf, printf, vfprintf, vprintf): Declare with
22870         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22871         the system's vfprintf() function.
22872         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22873
22874 2011-03-30  Eric Blake  <eblake@redhat.com>
22875
22876         passfd: fix scoping bug
22877         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22878         before sendmsg/recvmsg.
22879
22880         passfd: standardize coding conventions
22881         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22882         can be learned at compile time.
22883         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22884         ifdefs.
22885         (sendfd, recvfd): Follow gnulib code conventions.
22886
22887         passfd: fix incorrect sendmsg arguments
22888         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22889         incorrect msg_controllen value.
22890         * modules/passfd-tests (Depends-on): Check for alarm.
22891         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22892         Reported by Bastien ROUCARIES.
22893
22894 2011-03-30  Bruno Haible  <bruno@clisp.org>
22895
22896         c-strcasestr: Relicense under LGPLv2+.
22897         * modules/c-strcasestr (License): Change to LGPLv2+.
22898         Requested by Eric Blake, for libvirt.
22899
22900 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22901
22902         * users.txt: Add libidn2.  Fix libtasn1 link.
22903
22904 2011-03-30  Jim Meyering  <meyering@redhat.com>
22905
22906         tests: readlink* ("",... fails with EINVAL on newer kernels
22907         readlink and readlinkat have typically failed with ENOENT for
22908         the invalid, empty file name,  "".  However, with the advent
22909         of linux-2.6.39, they fail with EINVAL.
22910         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22911         when operating on the empty file name.
22912         * tests/test-readlink.h (test_readlink): Likewise.
22913
22914 2011-03-29  Bruno Haible  <bruno@clisp.org>
22915
22916         Relicense some modules under LGPLv2+, for libidn2.
22917         * modules/array-mergesort (License): Change to LGPLv2+.
22918         * modules/c-strcaseeq (License): Likewise.
22919         * modules/striconveh (License): Likewise.
22920         * modules/striconveha (License): Likewise.
22921         * modules/uniconv/base (License): Likewise.
22922         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22923         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22924         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22925         * modules/unictype/base (License): Likewise.
22926         * modules/unictype/bidiclass-of (License): Likewise.
22927         * modules/unictype/category-M (License): Likewise.
22928         * modules/unictype/category-none (License): Likewise.
22929         * modules/unictype/category-of (License): Likewise.
22930         * modules/unictype/category-test (License): Likewise.
22931         * modules/unictype/category-test-withtable (License): Likewise.
22932         * modules/unictype/combining-class (License): Likewise.
22933         * modules/unictype/joiningtype-of (License): Likewise.
22934         * modules/unictype/scripts (License): Likewise.
22935         * modules/uninorm/base (License): Likewise.
22936         * modules/uninorm/canonical-decomposition (License): Likewise.
22937         * modules/uninorm/composition (License): Likewise.
22938         * modules/uninorm/decompose-internal (License): Likewise.
22939         * modules/uninorm/decomposition-table (License): Likewise.
22940         * modules/uninorm/nfc (License): Likewise.
22941         * modules/uninorm/nfd (License): Likewise.
22942         * modules/uninorm/u32-normalize (License): Likewise.
22943         * modules/unistr/base (License): Likewise.
22944         * modules/unistr/u32-cpy (License): Likewise.
22945         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22946         * modules/unistr/u32-to-u8 (License): Likewise.
22947         * modules/unistr/u32-uctomb (License): Likewise.
22948         * modules/unistr/u8-check (License): Likewise.
22949         * modules/unistr/u8-mblen (License): Likewise.
22950         * modules/unistr/u8-mbtouc (License): Likewise.
22951         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22952         * modules/unistr/u8-mbtoucr (License): Likewise.
22953         * modules/unistr/u8-prev (License): Likewise.
22954         * modules/unistr/u8-strlen (License): Likewise.
22955         * modules/unistr/u8-to-u32 (License): Likewise.
22956         * modules/unistr/u8-uctomb (License): Likewise.
22957         * modules/unitypes (License): Likewise.
22958         Requested by Simon Josefsson.
22959
22960 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22961
22962         lib-symbol-visibility: Add a notice.
22963         * modules/lib-symbol-visibility (Notice): New field.
22964
22965 2011-03-29  Bruno Haible  <bruno@clisp.org>
22966
22967         getaddrinfo: Doc fix.
22968         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22969         section "fixed in Gnulib".
22970
22971 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22972
22973         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22974         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22975
22976 2011-03-26  Bruno Haible  <bruno@clisp.org>
22977
22978         unictype/property-byname: Reduce the number of load-time relocations.
22979         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22980         (UC_PROPERTY_INDEX_*): New enumeration values.
22981         (uc_property_byname): Convert an index from the lookup table to an
22982         uc_property_t.
22983         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22984         values.
22985
22986 2011-03-26  Bruno Haible  <bruno@clisp.org>
22987
22988         unictype/property-byname: Allow omitted word separators and aliases.
22989         * lib/unictype/pr_byname.gperf: Add property names without word
22990         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22991         for 'space'.
22992
22993 2011-03-26  Bruno Haible  <bruno@clisp.org>
22994
22995         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22996         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22997         also hyphens to space.
22998         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22999         without spaces.
23000         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23001
23002 2011-03-26  Bruno Haible  <bruno@clisp.org>
23003
23004         unictype/joiningtype-byname: Recognize long names as well.
23005         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23006         a long name.
23007         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23008         unictype/joiningtype_byname.h.
23009         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23010         * lib/unictype/joiningtype_byname.gperf: New file.
23011         * modules/unictype/joiningtype-byname (Files): Add
23012         lib/unictype/joiningtype_byname.gperf.
23013         (Depends-on): Add gperf.
23014         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23015         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23016         long names.
23017
23018         Tests for module 'unictype/joiningtype-longname'.
23019         * modules/unictype/joiningtype-longname-tests: New file.
23020         * tests/unictype/test-joiningtype_longname.c: New file.
23021
23022         New module 'unictype/joiningtype-longname'.
23023         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23024         * lib/unictype/joiningtype_longname.c: New file.
23025         * modules/unictype/joiningtype-longname: New file.
23026         * modules/unictype/joiningtype-all (Depends-on): Add
23027         unictype/joiningtype-longname.
23028
23029 2011-03-26  Bruno Haible  <bruno@clisp.org>
23030
23031         unictype/bidiclass-byname: Recognize long names as well.
23032         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23033         name.
23034         * lib/unictype/bidi_byname.c: Include <string.h>,
23035         unictype/bidi_byname.h.
23036         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23037         * lib/unictype/bidi_byname.gperf: New file.
23038         * modules/unictype/bidiclass-byname (Files): Add
23039         lib/unictype/bidi_byname.gperf.
23040         (Depends-on): Add gperf.
23041         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23042         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23043         long names.
23044
23045         Tests for module 'unictype/bidiclass-longname'.
23046         * modules/unictype/bidiclass-longname-tests: New file.
23047         * tests/unictype/test-bidi_longname.c: New file.
23048
23049         New module 'unictype/bidiclass-longname'.
23050         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23051         * lib/unictype/bidi_longname.c: New file.
23052         * modules/unictype/bidiclass-longname: New file.
23053         * modules/unictype/bidiclass-all (Depends-on): Add
23054         unictype/bidiclass-longname.
23055
23056 2011-03-26  Bruno Haible  <bruno@clisp.org>
23057
23058         unictype/bidi*: Rename modules.
23059         * modules/unictype/bidiclass-all: Renamed from
23060         modules/unictype/bidicategory-all.
23061         * modules/unictype/bidiclass-name: Renamed from
23062         modules/unictype/bidiclass-name.
23063         (Description): Update.
23064         * modules/unictype/bidiclass-name-tests: Renamed from
23065         modules/unictype/bidicategory-name-tests.
23066         * modules/unictype/bidiclass-byname: Renamed from
23067         modules/unictype/bidicategory-byname.
23068         (Description): Update.
23069         * modules/unictype/bidiclass-byname-tests: Renamed from
23070         modules/unictype/bidicategory-byname-tests.
23071         * modules/unictype/bidiclass-of: Renamed from
23072         modules/unictype/bidicategory-of.
23073         (Description): Update.
23074         * modules/unictype/bidiclass-of-tests: Renamed from
23075         modules/unictype/bidicategory-of-tests.
23076         * modules/unictype/bidiclass-test: Renamed from
23077         modules/unictype/bidicategory-test.
23078         (Description): Update.
23079         * modules/unictype/bidiclass-test-tests: Renamed from
23080         modules/unictype/bidicategory-test-tests.
23081         * modules/unictype/bidicategory-all: New file, a simple redirection.
23082         * modules/unictype/bidicategory-name: Likewise.
23083         * modules/unictype/bidicategory-byname: Likewise.
23084         * modules/unictype/bidicategory-of: Likewise.
23085         * modules/unictype/bidicategory-test: Likewise.
23086         * modules/unictype/property-bidi-* (Dependencies): Update.
23087         * lib/unictype/bidi_*.c: Update comment.
23088
23089 2011-03-26  Bruno Haible  <bruno@clisp.org>
23090
23091         unictype/bidi*: Rename functions, part 2.
23092         * modules/unictype/bidicategory-name (configure.ac): Update required
23093         libunistring version.
23094         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23095
23096 2011-03-25  Bruno Haible  <bruno@clisp.org>
23097
23098         New module 'unictype/combining-class-all'.
23099         * modules/unictype/combining-class-all: New file.
23100
23101         Tests for module 'unictype/combining-class-byname'.
23102         * modules/unictype/combining-class-byname-tests: New file.
23103         * tests/unictype/test-combiningclass_byname.c: New file.
23104
23105         New module 'unictype/combining-class-byname'.
23106         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23107         * lib/unictype/combiningclass_byname.c: New file.
23108         * lib/unictype/combiningclass_byname.gperf: New file.
23109         * modules/unictype/combining-class-byname: New file.
23110
23111         Tests for module 'unictype/combining-class-longname'.
23112         * modules/unictype/combining-class-longname-tests: New file.
23113         * tests/unictype/test-combiningclass_longname.c: New file.
23114
23115         New module 'unictype/combining-class-longname'.
23116         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23117         * lib/unictype/combiningclass_longname.c: New file.
23118         * modules/unictype/combining-class-longname: New file.
23119
23120         Tests for module 'unictype/combining-class-name'.
23121         * modules/unictype/combining-class-name-tests: New file.
23122         * tests/unictype/test-combiningclass_name.c: New file.
23123
23124         New module 'unictype/combining-class-name'.
23125         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23126         * lib/unictype/combiningclass_name.c: New file.
23127         * modules/unictype/combining-class-name: New file.
23128
23129 2011-03-25  Bruno Haible  <bruno@clisp.org>
23130
23131         unictype/combining-class: Rename source files.
23132         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23133         of unictype/combining.h.
23134         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23135         Update.
23136         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23137         * modules/unictype/combining-class (Description): Fix.
23138         (Files, Makefile.am): Update.
23139         * tests/unictype/test-combiningclass.c: Renamed from
23140         tests/unictype/test-combining.c.
23141         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23142
23143 2011-03-25  Bruno Haible  <bruno@clisp.org>
23144
23145         unictype: Update list of canonical combining classes.
23146         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23147
23148 2011-03-25  Bruno Haible  <bruno@clisp.org>
23149
23150         unictype/category-byname: Recognize long names as well.
23151         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23152         a long name.
23153         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23154         unictype/categ_byname.h.
23155         (UC_CATEGORY_INDEX_*): New enumeration values.
23156         (uc_general_category_byname): Use uc_general_category_lookup and
23157         convert from index to value.
23158         * lib/unictype/categ_byname.gperf: New file.
23159         * modules/unictype/category-byname (Files): Add
23160         lib/unictype/categ_byname.gperf.
23161         (Depends-on): Add gperf.
23162         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23163         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23164         long names.
23165
23166         Tests for module 'unictype/category-longname'.
23167         * modules/unictype/category-longname-tests: New file.
23168         * tests/unictype/test-categ_longname.c: New file.
23169
23170         New module 'unictype/category-longname'.
23171         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23172         * lib/unictype/categ_longname.c: New file.
23173         * modules/unictype/category-longname: New file.
23174         * modules/unictype/category-all (Depends-on): Add it.
23175
23176 2011-03-25  Bruno Haible  <bruno@clisp.org>
23177
23178         Tests for module 'unictype/category-LC'.
23179         * modules/unictype/category-LC-tests: New file.
23180         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23181
23182         New module 'unictype/category-LC'.
23183         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23184         (UC_CATEGORY_LC): New declaration.
23185         (UC_CASED_LETTER): New macro.
23186         * lib/gen-uni-tables.c (is_category_LC): New function.
23187         (output_categories): Also handle category LC.
23188         (UC_CATEGORY_MASK_LC): New enumeration value.
23189         (general_category_byname): Also handle category LC.
23190         * lib/unictype/categ_LC.c: New file.
23191         * lib/unictype/categ_LC.h: New file, automatically generated.
23192         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23193         category LC.
23194         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23195         * modules/unictype/category-LC: New file.
23196         * modules/unictype/category-byname (Depends-on): Add
23197         unictype/category-LC.
23198         * modules/unictype/category-all (Depends-on): Likewise.
23199
23200 2011-03-25  Eric Blake  <eblake@redhat.com>
23201
23202         xmalloc: revert yesterday's regression
23203         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23204         realloc's underlying behavior (allowing allocation of zero-size
23205         objects, especially if malloc-gnu is also in use).
23206
23207 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23208
23209         maint.mk: add missing version to VC-tag
23210         * top/maint.mk: git tag was missing actual tag name; add it.
23211
23212         valgrind: do leak checking, and exit with code 1 on error (not 0)
23213         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23214         to VALGRIND.
23215
23216 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23217
23218         posix-modules: say what it does.
23219         * posix-modules: Add a line to the --help output saying what it does.
23220
23221 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         xmalloc: Do not leak if underlying realloc is C99 compatible.
23224         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23225         This avoids a leak on C99-based systems.  See
23226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23227
23228 2011-03-24  Eric Blake  <eblake@redhat.com>
23229
23230         realloc: document portability problem
23231         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23232         passing 0 size to realloc.
23233
23234 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23235
23236         doc: update users.txt
23237         * users.txt: Add cvsps, tmpwatch
23238
23239 2011-03-23  Matt Rice  <ratmice@gmail.com>
23240
23241         doc: update users.txt
23242         * users.txt: Add gdb.
23243
23244 2011-03-23  Jim Meyering  <meyering@redhat.com>
23245
23246         doc: update users.txt
23247         Looking through matches up to the following URL (there are still
23248         several more pages), I found several projects that use gnulib:
23249         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23250         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23251         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23252
23253 2011-03-22  Bruno Haible  <bruno@clisp.org>
23254
23255         unictype/bidi*: Rename functions.
23256         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23257         uc_bidi_class, uc_is_bidi_class): New declarations.
23258         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23259         uc_bidi_category_byname.
23260         (uc_bidi_category_byname): New function.
23261         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23262         u_bidi_category_name.
23263         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23264         (uc_bidi_category_name): New function.
23265         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23266         uc_bidi_category.
23267         (uc_bidi_category): New function.
23268         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23269         uc_is_bidi_category. Invoke uc_bidi_class.
23270         (uc_is_bidi_category): New function.
23271         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23272         instead of uc_bidi_category_byname.
23273         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23274         instead of uc_bidi_category_name.
23275         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23276         uc_bidi_category.
23277         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23278         instead of uc_is_bidi_category.
23279
23280 2011-03-21  Bruno Haible  <bruno@clisp.org>
23281
23282         New module 'unictype/joininggroup-all'.
23283         * modules/unictype/joininggroup-all: New file.
23284
23285         Tests for module 'unictype/joininggroup-of'.
23286         * modules/unictype/joininggroup-of-tests: New file.
23287         * tests/unictype/test-joininggroup_of.c: New file.
23288         * tests/unictype/test-joininggroup_of.h: New file, automatically
23289         generated by gen-uni-tables.
23290
23291         New module 'unictype/joininggroup-of'.
23292         * modules/unictype/joininggroup-of: New file.
23293         * lib/unictype/joininggroup_of.c: New file.
23294         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23295         gen-uni-tables.
23296
23297         Tests for module 'unictype/joininggroup-byname'.
23298         * modules/unictype/joininggroup-byname-tests: New file.
23299         * tests/unictype/test-joininggroup_byname.c: New file.
23300
23301         New module 'unictype/joininggroup-byname'.
23302         * modules/unictype/joininggroup-byname: New file.
23303         * lib/unictype/joininggroup_byname.c: New file.
23304         * lib/unictype/joininggroup_byname.gperf: New file.
23305
23306         Tests for module 'unictype/joininggroup-name'.
23307         * modules/unictype/joininggroup-name-tests: New file.
23308         * tests/unictype/test-joininggroup_name.c: New file.
23309
23310         New module 'unictype/joininggroup-name'.
23311         * modules/unictype/joininggroup-name: New file.
23312         * lib/unictype/joininggroup_name.c: New file.
23313         * lib/unictype/joininggroup_name.h: New file.
23314
23315         New module 'unictype/joiningtype-all'.
23316         * modules/unictype/joiningtype-all: New file.
23317
23318         Tests for module 'unictype/joiningtype-of'.
23319         * modules/unictype/joiningtype-of-tests: New file.
23320         * tests/unictype/test-joiningtype_of.c: New file.
23321         * tests/unictype/test-joiningtype_of.h: New file, automatically
23322         generated by gen-uni-tables.
23323
23324         New module 'unictype/joiningtype-of'.
23325         * modules/unictype/joiningtype-of: New file.
23326         * lib/unictype/joiningtype_of.c: New file.
23327         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23328         gen-uni-tables.
23329
23330         Tests for module 'unictype/joiningtype-byname'.
23331         * modules/unictype/joiningtype-byname-tests: New file.
23332         * tests/unictype/test-joiningtype_byname.c: New file.
23333
23334         New module 'unictype/joiningtype-byname'.
23335         * modules/unictype/joiningtype-byname: New file.
23336         * lib/unictype/joiningtype_byname.c: New file.
23337
23338         Tests for module 'unictype/joiningtype-name'.
23339         * modules/unictype/joiningtype-name-tests: New file.
23340         * tests/unictype/test-joiningtype_name.c: New file.
23341
23342         New module 'unictype/joiningtype-name'.
23343         * modules/unictype/joiningtype-name: New file.
23344         * lib/unictype/joiningtype_name.c: New file.
23345
23346         unictype: Add support for Arabic shaping properties.
23347         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23348         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23349         declarations.
23350         (UC_JOINING_GROUP_*): New enumeration values.
23351         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23352         declarations.
23353         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23354         (unicode_joining_type): New variable.
23355         (UC_JOINING_GROUP_*): New enumeration values.
23356         (unicode_joining_group): New variable.
23357         (fill_arabicshaping, joining_type_as_c_identifier,
23358         output_joining_type_test, output_joining_type,
23359         joining_group_as_c_identifier, output_joining_group_test,
23360         output_joining_group): New functions.
23361         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23362         fill_arabicshaping and output_joining_type_test, output_joining_type,
23363         output_joining_group_test, output_joining_group.
23364         Reported by Simon Josefsson.
23365
23366 2011-03-21  Jim Meyering  <meyering@redhat.com>
23367
23368         strftime: fix a bug in yesterday's change
23369         * lib/strftime.c (add): Accommodate width's initial value of -1.
23370         Otherwise, nstrftime would copy uninitialized data into
23371         the result buffer.
23372
23373 2011-03-21  Jim Meyering  <meyering@redhat.com>
23374
23375         tests: add strftime-tests module
23376         * tests/test-strftime.c: New file.
23377         * modules/strftime-tests: New module.
23378
23379 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23380
23381         strftime: don't assume a byte count fits in 'int'
23382         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23383         found this problem by static analysis, using gcc -Wstrict-overflow
23384         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23385         on an integer overflow having undefined behavior, but it turns out
23386         that the argument is a size, which might not fit in 'int' anyway,
23387
23388 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23389
23390         stdio: don't require ignore_value around fwrite
23391
23392         This patch works around libc bug 11959
23393         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23394         Without this patch, applications must often write
23395         ignore_value (fwrite (...)) even though the ignore_value is
23396         not helpful here.  It's common to write many objects, using
23397         fwrite/printf/etc., and then use ferror to detect output error.
23398
23399         I considered making this patch optional, but decided against it,
23400         because libc is obviously being inconsistent here: there is no
23401         reason libc should insist that user code must inspect fwrite
23402         return's value without also insisting that it inspect printf's,
23403         putchar's, etc.  If user code wants to have a strict style where
23404         all these functions' values are checked (so that ferror need not
23405         be checked), we could add support for that style in a new gnulib
23406         module, but in the meantime it's better to be consistent and to
23407         support common usage.
23408
23409         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23410         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23411         that we are compiling in checking mode, and if not C++, and
23412         if not already wrapping fwrite for some other reason.
23413         (fwrite): #define to rpl_fwrite if the latter is defined.
23414
23415 2011-03-20  Bruno Haible  <bruno@clisp.org>
23416
23417         verror: Fix compilation error introduced on 2011-02-13.
23418         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23419         instead of __attribute__.
23420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23421
23422 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23423             Bruno Haible  <bruno@clisp.org>
23424
23425         socklen: do not depend on sys_socket
23426         While trying to modify Emacs to use gnulib's socklen module,
23427         I discovered a circular dependency: socklen depends on sys_socket
23428         and vice versa.  Emacs can use socklen, but it does not need
23429         sys_socket because it has its own substitute for sys/socket.h.
23430         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23431         gl_TYPE_SOCKLEN_T.
23432         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23433         gl_PREREQ_SYS_H_SOCKET.
23434         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23435         gl_PREREQ_SYS_H_SOCKET.
23436         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23437         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23438         * modules/socklen (Depends-on): Do not depend on sys_socket.
23439         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23440
23441 2011-03-20  Jim Meyering  <meyering@redhat.com>
23442
23443         maint.mk: sort file names *after* new transformation
23444         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23445         prefix would have led to an unwarranted failure in GNU parted.
23446         Sort after that transformation.
23447
23448 2011-03-19  Jim Meyering  <meyering@redhat.com>
23449
23450         maint.mk: fix po-file syntax-check rule
23451         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23452         Patch by Bruno Haible.
23453
23454 2011-03-19  Bruno Haible  <bruno@clisp.org>
23455
23456         socklen: Update comment.
23457         * m4/socklen.m4: Update comment about platforms.
23458
23459 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23460             Bruno Haible  <bruno@clisp.org>
23461
23462         inet_ntop, inet_pton: Simplify.
23463         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23464         documented to provide socklen_t and we already depend on sys_socket.
23465         * modules/inet_pton (Depends-on): Likewise.
23466         * lib/arpa_inet.in.h: Adjust comment.
23467
23468 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23469             Bruno Haible  <bruno@clisp.org>
23470
23471         netdb: Simplify.
23472         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23473         documented to provide socklen_t and we already depend on sys_socket.
23474         * lib/netdb.in.h: Adjust comment.
23475
23476 2011-03-19  Bruno Haible  <bruno@clisp.org>
23477
23478         sys_socket, netdb: Document problem with socklen_t.
23479         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23480         platforms.
23481         * doc/posix-headers/netdb.texi: Likewise.
23482
23483 2011-03-18  Eric Blake  <eblake@redhat.com>
23484
23485         maint.mk: let po check work in VPATH build
23486         * top/maint.mk (po_file): Allow cfg.mk override.
23487         (sc_po_check): Allow VPATH use.
23488         Reported by Jiri Denemark.
23489
23490 2011-03-16  Jim Meyering  <meyering@redhat.com>
23491
23492         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23493         Before, you would have had to create one .x-sc_ file per rule in order
23494         to exempt offending files.  Now, you may instead use a Make variable --
23495         usually defined in cfg.mk -- whose name identifies the affected rule.
23496         * top/maint.mk (_sc_excl): Define.
23497         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23498         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23499
23500 2011-03-13  Bruno Haible  <bruno@clisp.org>
23501
23502         ignore-value tests: Avoid warnings.
23503         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23504         empty for gcc < 3.4.
23505
23506 2011-03-13  Bruno Haible  <bruno@clisp.org>
23507
23508         passfd: Fix link error on Solaris.
23509         * modules/passfd (Description): Correct.
23510         (Depends-on): Add socketlib.
23511         (Link): New section.
23512         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23513
23514 2011-03-13  Bruno Haible  <bruno@clisp.org>
23515
23516         passfd: Fix link error on AIX 5.2.
23517         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23518
23519 2011-03-13  Bruno Haible  <bruno@clisp.org>
23520
23521         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23522         * lib/sys_socket.in.h: Include <stddef.h>.
23523         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23524         CMSG_FIRSTHDR. Remove unused variable.
23525
23526 2011-03-13  Bruno Haible  <bruno@clisp.org>
23527
23528         passfd: Fix compilation error on OpenBSD.
23529         * lib/passfd.c: Include <sys/uio.h>.
23530
23531 2011-03-13  Bruno Haible  <bruno@clisp.org>
23532
23533         passfd test: Fix warnings.
23534         * tests/test-passfd.c: Include <sys/wait.h>.
23535         (main): Fix typo.
23536
23537 2011-03-13  Bruno Haible  <bruno@clisp.org>
23538
23539         passfd module, part 4, tweaks.
23540         * tests/test-passfd.c: Reorder includes.
23541         (main): Fix perror and printf calls.
23542
23543 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23544
23545         passfd module, part 4.
23546         * modules/passfd-tests: New file.
23547         * tests/test-passfd.c: New file.
23548
23549 2011-03-13  Jim Meyering  <meyering@redhat.com>
23550
23551         Makefile: rely on GNU make; derive syntax-check rule names
23552         Rather than requiring that each sc_ rule be listed as a dependent
23553         of "check", use features of GNU make to derive the list.
23554         * Makefile (syntax-check-rules): Define.
23555         (check): Depend on the new variable, not the hard-coded list.
23556
23557 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23558             Bruno Haible  <bruno@clisp.org>
23559
23560         passfd module, part 3.
23561         * lib/passfd.h (recvfd): Add a flags argument.
23562         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23563         (recvfd): Add a flags argument.
23564         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23565         exists.
23566         * modules/passfd (Depends-on): Add cloexec.
23567         Suggested by Eric Blake.
23568
23569 2011-03-13  Bruno Haible  <bruno@clisp.org>
23570
23571         passfd module, part 2, tweaks.
23572         * modules/passfd (Files): Reorder.
23573         (Depends-on): Remove errno.
23574         (Include): Remove <sys/socket.h>, <sys/un.h>.
23575         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23576         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23577         specification header. Include <sys/socket.h> always. Don't include
23578         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23579         (sendfd): Clarify that it sets errno when it fails.
23580         (recvfd): Fix specification.
23581
23582 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23583
23584         passfd module, part 2.
23585         * modules/passfd: New file.
23586         * lib/passfd.h: New file.
23587         * lib/passfd.c: New file.
23588
23589 2011-03-12  Bruno Haible  <bruno@clisp.org>
23590
23591         wcswidth, mbswidth: Avoid integer overflow.
23592         * lib/wcswidth.c: Include <limits.h>.
23593         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23594         * lib/mbswidth.c: Include <limits.h>.
23595         (mbsnwidth): Avoid 'int' overflow.
23596         Reported by Jim Meyering.
23597
23598 2011-03-12  Bruno Haible  <bruno@clisp.org>
23599
23600         futimens, utimensat: Avoid endless recursion on Solaris 10.
23601         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23602         Solaris.
23603         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23604         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23605
23606 2011-03-11  Jim Meyering  <meyering@redhat.com>
23607
23608         maint.mk: relax a regexp to accommodate other formatting styles
23609         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23610         between "ngettext" and the following "(".
23611
23612 2011-03-11  Pádraig Brady <P@draigBrady.com>
23613
23614         maint.mk: suppress a false positive warning
23615         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23616         diagnostics are marked with ngettext.
23617
23618 2011-03-10  Eric Blake  <eblake@redhat.com>
23619
23620         wchar: add explicit dependencies, for Tru64
23621         * modules/mbmemcasecoll (Depends-on): Add wchar.
23622         * modules/mbtowc (Depends-on): Likewise.
23623         * modules/vasnprintf (Depends-on): Likewise.
23624         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23625         * modules/wctomb (Depends-on): Likewise.
23626         Reported by Peter O'Gorman.
23627
23628 2011-03-08  Bruno Haible  <bruno@clisp.org>
23629
23630         passfd module, part 1, tweaks.
23631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23632         Improve indentation. Improve AC_MSG_CHECKING messages.
23633         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23634         gl_SOCKET_FAMILIES.
23635
23636 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23637
23638         passfd module, part 1.
23639         * m4/afunix.m4: New file.
23640         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23641         sockets.
23642
23643 2011-03-08  Bruno Haible  <bruno@clisp.org>
23644
23645         regex-quote: New API.
23646         * lib/regex-quote.h: Include <stdbool.h>.
23647         (struct regex_quote_spec): New type.
23648         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23649         New declarations.
23650         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23651         'const struct regex_quote_spec *' argument.
23652         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23653         (pcre_special): New constant.
23654         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23655         New functions.
23656         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23657         'const struct regex_quote_spec *' argument.
23658         * modules/regex-quote (Depends-on): Add stdbool.
23659         * tests/test-regex-quote.c (check): Update for new API. Add test for
23660         anchored results.
23661         * NEWS: Mention the API change.
23662         Reported by Reuben Thomas and Eric Blake.
23663
23664 2011-03-06  Bruno Haible  <bruno@clisp.org>
23665
23666         regex-quote: Fix creation of POSIX extended regular expressions.
23667         * lib/regex-quote.c (ere_special): Add grouping and alternation
23668         operators.
23669
23670 2011-03-05  Bruno Haible  <bruno@clisp.org>
23671
23672         doc: Improve doc regarding autopoint vs. gnulib.
23673         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23674         disable autopoint while running autoreconf.
23675         Suggested by Ralf Wildenhues.
23676
23677 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23678
23679         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23680         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23681
23682 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23683
23684         parse-duration: remove xalloc.h dependency
23685         * lib/parse-duration.c (parse_period): handle NULL return from
23686         strdup instead of calling xstrdup().
23687         * modules/parse-duration: remove "xalloc" dependency
23688
23689 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23690
23691         bootstrap: honor m4_base when running aclocal
23692         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23693
23694 2011-03-02  Jim Meyering  <meyering@redhat.com>
23695
23696         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23697         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23698         on request from Matt Booth.
23699
23700 2011-03-01  Eric Blake  <eblake@redhat.com>
23701
23702         test-link: work on Hurd
23703         * tests/test-link.h (test_link): Hurd rejects linking directories
23704         with EISDIR instead of the POSIX-mandated EPERM.
23705
23706 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23707
23708         stdio: simplify by moving files to printf-posix, sigpipe
23709         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23710         since this symbol is needed only if printf is replaced.
23711         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23712         Require gl_ASM_SYMBOL_PREFIX.
23713         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23714         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23715         (Depends-on): Add 'raise'.
23716         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23717         * modules/stdio (Files): Remove lib/stdio-write.c,
23718         m4/asm-underscore.m4.
23719         (Depends-on): Remove 'raise'.
23720
23721         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23722         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23723         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23724         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23725
23726 2011-02-28  Bruno Haible  <bruno@clisp.org>
23727
23728         localcharset: Assume ANSI C behaviour of free().
23729         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23730         calling free().
23731         Suggested by Simon Josefsson <simon@josefsson.org>.
23732
23733 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23734             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23735             Bruno Haible  <bruno@clisp.org>  (tiny change)
23736
23737         On Cygwin, use /proc file system instead of win32 API.
23738         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23739         Win32 file names.
23740         (DllMain): Simplify by removing Cygwin specific code.
23741         (find_shared_library_fullname): Use Linux specific implementation also
23742         for Cygwin.
23743         (get_shared_library_fullname): Update accordingly.
23744         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23745         Win32 file names.
23746         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23747         Cygwin specific code.
23748
23749 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23750             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23751
23752         Fix OpenMP flag detection for various Fortran compilers.
23753         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23754         OpenMP-conditional compilation construct, to force compile
23755         failure with missing OpenMP flag.
23756         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23757
23758 2011-02-25  Eric Blake  <eblake@redhat.com>
23759
23760         strstr: expand test coverage
23761         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23762         compilation.
23763         * tests/test-memmem.c (main): Duplicate tests.
23764         * tests/test-strcasestr.c (main): Likewise.
23765         * tests/test-c-strcasestr.c (main): Likewise.
23766
23767 2011-02-25  Jim Meyering  <meyering@redhat.com>
23768
23769         maint.mk: detect missing-NL-at-EOF, too
23770         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23771         it also detects when a file lacks a newline at EOF.
23772         (require_exactly_one_NL_at_EOF_): Renamed from
23773         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23774         since people may well have .x-sc_... file names tied to the
23775         existing name.  Suggested by Eric Blake.
23776
23777 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23778
23779         dirname: move m4/dos.m4 functionality into lib/dosname.h
23780
23781         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23782         extracts symbols from it, puts them into config.h; but it's much
23783         easier to use the symbols directly.  filename.h already does this,
23784         but it disagrees with dos.m4 in some respects.  This patch
23785         introduces a different include file dosname.h that packages up
23786         dos.m4, and then later we can work on merging filename.h and
23787         dosname.h.  Applications that need only the easy-to-configure
23788         symbols should consider including dosname.h rather than dirname.h.
23789         * NEWS: Mention incompatible changes.
23790         * m4/dos.m4: Remove.
23791         * lib/dosname.h, modules/dosname: New files.
23792         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23793         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23794         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23795         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23796         Include dosname.h, not dirname.h.
23797         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23798         Include dosname.h, for definitions of symbols like ISSLASH
23799         that used to be in config.h.
23800         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23801         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23802         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23803         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23804         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23805         * modules/rmdir (Files): Likewise.
23806         * modules/stat (Files): Likewise.
23807         * modules/unlink (Files): Likewise.
23808         * modules/dirname-lgpl (Depends-on): Add dosname.
23809         * modules/lstat (Depends-on): Likewise.
23810         * modules/openat (Depends-on): Likewise.
23811         * modules/rmdir (Depends-on): Likewise.
23812         * modules/savewd (Depends-on): Likewise.
23813         * modules/stat (Depends-on): Likewise.
23814         * modules/unlink (Depends-on): Likewise.
23815         * modules/openat (Depends-on): Remove dirname-lgpl.
23816         * modules/savewd (Depends-on): Likewise.
23817         * tests/test-dirname.c: Do not use removed symbols like
23818         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23819         the remaining symbols, e.g., ISSLASH ('\\').
23820
23821 2011-02-25  Eric Blake  <eblake@redhat.com>
23822
23823         strstr: revert patches that introduced bug and pessimization
23824         * lib/str-two-way.h: Add another reference.
23825         (two_way_short_needle, two_way_long_needle): Revert changes from
23826         2011-02-24; they pessimize search speed.
23827         (critical_factorization): Partially revert changes from
23828         2010-06-22; they violate the requirement that the left half of the
23829         needle be smaller than the period of the needle.
23830
23831 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         filenamecat: remove unnecessary dependency on dirname-lgpl
23834         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23835         is no direct dependency, just an indirect one via filenamecat-lgpl.
23836
23837         remove: remove unnecessary use of m4/dos.m4
23838         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23839         * modules/remove (FILES): Remove m4/dos.m4.
23840
23841         * lib/openat-proc.c: Don't include dirname.h; not needed.
23842
23843         backupfile: remove unnecessary use of m4/dos.m4
23844         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23845         of its symbols are used by the backupfile code.  backupfile.c does
23846         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23847         for the rare case of programs that want all their backup file
23848         names to live within 8+3 limits, and dos.m4 doesn't address that.
23849         * modules/backupfile (Files): Remove m4/dos.m4.
23850
23851 2011-02-24  Jim Meyering  <meyering@redhat.com>
23852
23853         strstr: fix a bug whereby strstr would mistakenly return NULL
23854         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23855         in period calculation.
23856         (two_way_long_needle): Likewise.
23857         The original problem was reported by Mike Stump in
23858         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23859         Ralf Wildenhues provided the short needle and haystack.
23860         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23861         Add a more involved test to trigger the bug in two_way_long_needle.
23862
23863 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23864
23865         gnulib-tool: remove use of bold display in help screen
23866         * gnulib-tool (func_usage): Do not use bold display anymore in the
23867         help screen.  That was just meant to be a temporary emphasis for a
23868         backward-incompatible change.
23869
23870 2011-02-23  Bruno Haible  <bruno@clisp.org>
23871
23872         Fix misindentation of preprocessor directives.
23873         * lib/argp-namefrob.h: Reindent preprocessor directives.
23874         * lib/getopt_int.h (struct _getopt_data): Likewise.
23875         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23876         * lib/vasnprintf.c (decode_long_double): Likewise.
23877         * tests/test-argmatch.c: Insert blank lines, for clarity.
23878         * tests/test-exclude.c: Likewise.
23879
23880 2011-02-22  Bruno Haible  <bruno@clisp.org>
23881
23882         ioctl: Fix for MacOS X in 64-bit mode.
23883         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23884         value.
23885         Suggested by Eric Blake.
23886         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23887
23888 2011-02-22  Jim Meyering  <meyering@redhat.com>
23889
23890         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23891         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23892         in lib/.
23893
23894 2011-02-22  Eric Blake  <eblake@redhat.com>
23895
23896         maint: avoid any CDPATH issue
23897         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23898
23899         maint: adjust cpp indentation for my modules, as well
23900         * Makefile (sc_cpp_indent_check): Add my name.
23901         * lib/fbufmode.c: Filter through cppi.
23902         * lib/fpurge.c: Likewise.
23903         * lib/freadable.c: Likewise.
23904         * lib/freading.c: Likewise.
23905         * lib/fwritable.c: Likewise.
23906         * lib/fwriting.c: Likewise.
23907         * lib/sigaction.c: Likewise.
23908
23909 2011-02-22  Jim Meyering  <meyering@redhat.com>
23910
23911         maint: adjust cpp indentation to reflect nesting depth
23912         I.e., in a block of code that begins with an unnested "#if",
23913         put one space between the "#" in column 1 and following token.
23914         For example,
23915         -#include <sys/vfs.h>
23916         +# include <sys/vfs.h>
23917         Do this only in .c files that are part of a module I maintain.
23918         * lib/linkat.c: Filter through cppi.
23919         * lib/nanosleep.c: Likewise.
23920         * lib/openat.c: Likewise.
23921         * lib/openat-die.c: Likewise.
23922         * lib/dup3.c: Likewise.
23923         * lib/fchownat.c: Likewise.
23924         * lib/flock.c: Likewise.
23925         * lib/fsync.c: Likewise.
23926         * lib/fts.c: Likewise.
23927         * lib/getpass.c: Likewise.
23928         * lib/gettimeofday.c: Likewise.
23929         * lib/userspec.c: Likewise.
23930         * Makefile (sc_cpp_indent_check): New rule, to check this.
23931
23932 2011-02-22  Bruno Haible  <bruno@clisp.org>
23933
23934         New module 'wctomb'.
23935         * lib/stdlib.in.h (wctomb): New declaration.
23936         * lib/wctomb.c: New file.
23937         * lib/wctomb-impl.h: New file.
23938         * m4/wctomb.m4: New file.
23939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23940         REPLACE_WCTOMB.
23941         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23942         REPLACE_WCTOMB.
23943         * modules/wctomb: New file.
23944         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23945         * doc/posix-functions/wctomb.texi: Mention the new module.
23946         * modules/wctob (Depends-on): Add wctomb.
23947
23948 2011-02-22  Bruno Haible  <bruno@clisp.org>
23949
23950         New module 'mbtowc'.
23951         * lib/stdlib.in.h (mbtowc): New declaration.
23952         * lib/mbtowc.c: New file.
23953         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23954         * m4/mbtowc.m4: New file.
23955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23956         REPLACE_MBTOWC.
23957         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23958         REPLACE_MBTOWC.
23959         * modules/mbtowc: New file.
23960         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23961         * doc/posix-functions/mbtowc.texi: Mention the new module.
23962         * modules/btowc (Depends-on): Add mbtowc.
23963
23964 2011-02-22  Bruno Haible  <bruno@clisp.org>
23965
23966         wcrtomb: Add more tests for native Windows platforms.
23967         * tests/test-wcrtomb-w32-1.sh: New file.
23968         * tests/test-wcrtomb-w32-2.sh: New file.
23969         * tests/test-wcrtomb-w32-3.sh: New file.
23970         * tests/test-wcrtomb-w32-4.sh: New file.
23971         * tests/test-wcrtomb-w32-5.sh: New file.
23972         * tests/test-wcrtomb-w32.c: New file.
23973         * modules/wcrtomb-tests (Files): Add them.
23974         (Makefile.am): Arrange to run these tests.
23975         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23976         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23977
23978 2011-02-20  Bruno Haible  <bruno@clisp.org>
23979
23980         wcrtomb: Enhance test.
23981         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23982
23983 2011-02-20  Bruno Haible  <bruno@clisp.org>
23984
23985         mbrtowc: Tiny optimization.
23986         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23987
23988 2011-02-20  Jim Meyering  <meyering@redhat.com>
23989
23990         test-exclude.c: remove unmatched #endif
23991         * tests/test-exclude.c: Remove stray #endif, left over from
23992         the change of a week ago.
23993
23994 2011-02-19  Jim Meyering  <meyering@redhat.com>
23995
23996         git-version-gen: skip "-dirty" check when appropriate
23997         * build-aux/git-version-gen: Don't run any git commands when the
23998         version string comes from .tarball-version.  Prior to this, we
23999         would run git update-index --refresh even from a just-unpacked
24000         tarball directory, and that could affect a .git/ directory in a
24001         parent of the build directory.  Reported by Mike Frysinger.
24002
24003 2011-02-19  Bruno Haible  <bruno@clisp.org>
24004
24005         unictype/property-byname: Reduce the size of the 'data' segment.
24006         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24007
24008 2011-02-19  Bruno Haible  <bruno@clisp.org>
24009
24010         unictype/scripts: Reduce the size of the 'data' segment.
24011         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24012         '%pic'.
24013         * lib/unictype/scripts_byname.gperf: Regenerated.
24014
24015 2011-02-19  Bruno Haible  <bruno@clisp.org>
24016
24017         stdint: Update documentation.
24018         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24019
24020 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         stdint: omit redundant check for wchar.h
24023         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24024         always tests whether wchar.h exists, so remove the now-redundant test.
24025
24026 2011-02-18  Bruno Haible  <bruno@clisp.org>
24027
24028         stdint: Cut dependency to module 'wchar'.
24029         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24030         include the necessary prerequisites.
24031         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24032         * modules/stdint (Depends-on): Remove wchar.
24033         (Makefile.am): Substitute HAVE_WCHAR_H.
24034         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24035
24036 2011-02-18  Eric Blake  <eblake@redhat.com>
24037
24038         longlong: skip, rather than fail, on cross-compilation
24039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24040         when cross-compiling; regression from 2011-02-16.
24041
24042 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24043
24044         * NEWS: Mention 2011-02-08 change to stdlib.
24045
24046 2011-02-17  Bruno Haible  <bruno@clisp.org>
24047
24048         getloadavg: Add comments about platforms.
24049         * m4/getloadavg.m4: Add comment.
24050         * lib/getloadavg.c: Likewise.
24051
24052 2011-02-17  Bruno Haible  <bruno@clisp.org>
24053
24054         getloadavg: Fix link error on Solaris 2.6.
24055         * modules/getloadavg (Link): New section.
24056         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24057         linking test-getloadavg.
24058         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24059         getloadavg.
24060
24061 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24062
24063         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24064         It was 'int', but this doesn't match the IRIX 6.5 manual.
24065         Suggested by Bruno Haible in
24066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24067
24068 2011-02-17  Bruno Haible  <bruno@clisp.org>
24069
24070         havelib: Fix comments.
24071         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24072         change.
24073
24074 2011-02-17  Bruno Haible  <bruno@clisp.org>
24075
24076         havelib: Update config.rpath.
24077         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24078
24079 2011-02-17  Bruno Haible  <bruno@clisp.org>
24080
24081         getloadavg test: Add some plausibility checks.
24082         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24083         is improbable.
24084
24085 2011-02-16  Eric Blake  <eblake@redhat.com>
24086
24087         maintainer-makefile: make syntax-check a no-op from tarballs
24088         * top/maint.mk (no-vc-detected): New rule.
24089         (local-checks-available): Use it to avoid hanging if someone tries
24090         'make syntax-check' from a tarball.  Also append to any non-syntax
24091         checks already defined in cfg.mk.
24092
24093 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24094
24095         longlong: tune, particularly for common case of c99
24096
24097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24098         or running anything if c99, or if unsigned long long int does not
24099         work.  In either case, we know the answer without further tests.
24100         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24101         it at most once, and use its results for both long long int and
24102         unsigned long long int.  This is more likely to be efficient in
24103         the common case where the program wants to check for both long
24104         long int and unsigned long long int.
24105         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24106         since the answer is already known.
24107
24108 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24109
24110         getloadavg: set errno
24111         * lib/getloadavg.c: Set errno when returning -1.  If no other
24112         error number looks appropriate, set it to ENOSYS if the getloadavg
24113         looks like it can't possibly ever work, ENOTSUP otherwise.
24114         Suggested by Bruno Haible in
24115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24116
24117         getloadavg: trim unused parts and speed up 'configure'
24118         * NEWS: Document this.
24119         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24120         always compiled if getloadavg is absent.
24121         Move test code to ...
24122         * tests/test-getloadavg.c: New file, containing previous
24123         contents of test from lib/getloadavg.c.  It also contains
24124         suggestions by Bruno Haible in
24125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24126         * modules/getloadavg-tests: New file.
24127         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24128         Do tests in the same order as they're needed for getloadavg.c.
24129         Omit setgid-related tests that generate symbols KMEM_GROUP,
24130         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24131         Do only the tests that are needed to see whether the system has
24132         getloadavg, moving the other tests into ...
24133         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24134         NLIST_NAME_UNION; nobody should be using it.  Do not define
24135         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24136         relevant, as the user of this module shouldn't care how getloadavg
24137         is implemented.
24138
24139         getloadavg: omit unused var
24140         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24141
24142 2011-02-15  Jim Meyering  <meyering@redhat.com>
24143
24144         doc: update users.txt
24145         * users.txt: Update iwhd's URL.
24146
24147 2011-02-13  Bruno Haible  <bruno@clisp.org>
24148
24149         Consistent macro naming for macros that use GCC __attribute__.
24150         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24151         _ATTRIBUTE_NONNULL_.
24152         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24153         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24154         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24155         ATTRIBUTE_DEPRECATED.
24156         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24157         ATTRIBUTE_NORETURN.
24158         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24159         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24160         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24161         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24162         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24163         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24164         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24165         ATTRIBUTE_SENTINEL.
24166         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24167         ATTRIBUTE_RETURN_CHECK.
24168         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24169         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24170         ATTRIBUTE_NORETURN.
24171         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24172         Reported by Paul Eggert.
24173
24174 2011-02-13  Bruno Haible  <bruno@clisp.org>
24175
24176         Don't interfere with a program's definition of __attribute__.
24177         * lib/argp.h (__attribute__): Remove definition.
24178         (_GL_ATTRIBUTE_FORMAT): New macro.
24179         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24180         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24181         (_GL_ATTRIBUTE_FORMAT): New macro.
24182         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24183         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24184         GCC 3 or newer.
24185         * lib/error.h (__attribute__): Remove definition.
24186         (_GL_ATTRIBUTE_FORMAT): New macro.
24187         (error, error_at_line): Use it.
24188         * lib/hash.h (__attribute__): Remove definition.
24189         (ATTRIBUTE_WUR): Update definition. Define always.
24190         * lib/openat.h (__attribute__): Remove definition.
24191         (ATTRIBUTE_NORETURN): Update definition. Define always.
24192         * lib/sigpipe-die.h (__attribute__): Remove definition.
24193         (ATTRIBUTE_NORETURN): Update definition. Define always.
24194         * lib/vasnprintf.h (__attribute__): Remove definition.
24195         (_GL_ATTRIBUTE_FORMAT): New macro.
24196         (asnprintf, vasnprintf): Use it.
24197         * lib/xalloc.h (__attribute__): Remove definition.
24198         (ATTRIBUTE_NORETURN): Update definition. Define always.
24199         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24200         * lib/xmemdup0.h (__attribute__): Remove definition.
24201         (ATTRIBUTE_NORETURN): Update definition. Define always.
24202         * lib/xprintf.h (__attribute__): Remove definition.
24203         (_GL_ATTRIBUTE_FORMAT): New macro.
24204         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24205         * lib/xstrtol.h (__attribute__): Remove definition.
24206         (ATTRIBUTE_NORETURN): Update definition. Define always.
24207         * lib/xvasprintf.h (__attribute__): Remove definition.
24208         (_GL_ATTRIBUTE_FORMAT): New macro.
24209         (xasprintf, xvasprintf): Use it.
24210         * tests/test-argmatch.c (__attribute__): Remove definition.
24211         (ATTRIBUTE_NORETURN): Update definition. Define always.
24212         * tests/test-exclude.c (__attribute__): Remove definition.
24213         (ATTRIBUTE_NORETURN): Update definition. Define always.
24214         Reported by Paul Eggert.
24215
24216 2011-02-13  Bruno Haible  <bruno@clisp.org>
24217
24218         mbrtowc: Add more tests for native Windows platforms.
24219         * tests/test-mbrtowc-w32-1.sh: New file.
24220         * tests/test-mbrtowc-w32-2.sh: New file.
24221         * tests/test-mbrtowc-w32-3.sh: New file.
24222         * tests/test-mbrtowc-w32-4.sh: New file.
24223         * tests/test-mbrtowc-w32-5.sh: New file.
24224         * tests/test-mbrtowc-w32.c: New file.
24225         * modules/mbrtowc-tests (Files): Add them.
24226         (Makefile.am): Arrange to run these tests.
24227         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24228         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24229
24230 2011-02-13  Bruno Haible  <bruno@clisp.org>
24231
24232         mbrtowc: Work around native Windows bug.
24233         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24234         guess when no suitable locale for testing was found.
24235         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24236
24237 2011-02-13  Bruno Haible  <bruno@clisp.org>
24238
24239         mbsinit: Work around mingw bug.
24240         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24241         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24242         Windows.
24243         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24244
24245 2011-02-13  Bruno Haible  <bruno@clisp.org>
24246
24247         mbsinit: Don't crash for a NULL argument.
24248         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24249         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24250
24251 2011-02-13  Bruno Haible  <bruno@clisp.org>
24252
24253         Don't interfere with a program's definition of __attribute__.
24254         * lib/stdio.in.h (__attribute__): Remove definition.
24255         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24256         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24257         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24258         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24259         * lib/string.in.h (__attribute__): Remove definition.
24260         Reported by Paul Eggert.
24261
24262 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24263
24264         stdlib: don't get in the way of non-GCC __attribute__
24265         See thread starting at
24266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24267         Revert previous stdlib change, installing the following instead:
24268         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24269         to get in the way of a non-GCC compiler that supports __attribute__.
24270         (_GL_ATTRIBUTE_RETURN): New macro.
24271         (_Exit): Use it instead of __attribute__.
24272
24273 2011-02-12  Bruno Haible  <bruno@clisp.org>
24274
24275         quotearg test: Avoid test failure on mingw.
24276         * tests/test-quotearg.sh: Convert the locale identifier from native
24277         Windows syntax to Unix syntax.
24278
24279 2011-02-12  Bruno Haible  <bruno@clisp.org>
24280
24281         setlocale: Prefer gnulib's override over libintl's override.
24282         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24283         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24284         GNULIB_defined_setlocale is set.
24285
24286 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24287
24288         stdlib: support non-GCC __attribute__
24289
24290         Fix a serious and tricky problem encountered when attempting to
24291         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24292         5.5, but it crashed due to memory corruption on Solaris 10 with
24293         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24294         bits that are otherwise zero.  This tagging is optional inside
24295         Emacs but is preferred and is used when __attribute__ ((__aligned
24296         (8))) works, as it does with both recent-enough GCC and with Sun C
24297         5.11.  However, Sun C 5.11 is not GCC and does not #define
24298         __GNUC__ and __GNUC_MINOR__.
24299
24300         When I added the getloadavg module to Emacs, it brought in
24301         stdlib.in.h, which contained this fragment:
24302
24303            #ifndef __attribute__
24304            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24305            #  define __attribute__(Spec)   /* empty */
24306            # endif
24307            #endif
24308
24309         When files that include <stdlib.h> were compiled with Sun C 5.11,
24310         the above code disabled __attribute__ ((__aligned (8))), which
24311         caused variables to not be properly aligned, which eventually led
24312         to the pointer corruption mentioned above.  (This was a bit hard
24313         to diagnose, unfortunately.)
24314
24315         Several "#define __attribute__(X) /* empty */" code snippets need
24316         to be eradicated from Gnulib to work with non-GCC compilers that
24317         support __attribute__.  The Autoconf way to do this is to test for
24318         each kind of attribute that we want support for, and selectively
24319         enable that in source code.
24320
24321         Fix this problem just for stdlib.h, by adding a test for the
24322         __noreturn__ attribute, and change stdlib.in.h to use that test
24323         when needed.  This technique can be easily generalized to the
24324         other *.in.h files and attributes, and a similar technique can be
24325         used for *.h and *.c files.  This patch is enough to solve the
24326         problem for Emacs + getloadavg, and I thought I'd publish it for
24327         feedback before undertaking further, similar fixes in other
24328         modules.
24329
24330         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24331         because it's not needed for stdlib.h.  It merely substitutes the
24332         value directly into stdlib.h.  We may well need to #define it, or
24333         similar symbols, for other modules, but it's nice to also have an
24334         option to not #define it for applications like Emacs that do not
24335         need it.
24336
24337         * lib/stdlib.in.h (__attribute__): Do not #define.
24338         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24339         be defined only if the _Exit module is also used.
24340         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24342         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24343         platforms.
24344         * modules/_Exit (Files): Add m4/attribute.m4.
24345         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24346         * m4/attribute.m4: New file.
24347
24348 2011-02-12  Bruno Haible  <bruno@clisp.org>
24349
24350         wcsrtombs: Work around bug on native Windows.
24351         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24352         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24353         instead of len.
24354         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24355
24356 2011-02-12  Bruno Haible  <bruno@clisp.org>
24357
24358         mbsrtowcs: Work around bug on native Windows.
24359         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24360         against mingw bug.
24361         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24362
24363 2011-02-12  Bruno Haible  <bruno@clisp.org>
24364
24365         Avoid setlocale bugs in tests.
24366         * modules/btowc (Dependencies): Add setlocale.
24367         * modules/c-strcase (Dependencies): Likewise.
24368         * modules/mbmemcasecmp (Dependencies): Likewise.
24369         * modules/mbmemcasecoll (Dependencies): Likewise.
24370         * modules/mbrtowc (Dependencies): Likewise.
24371         * modules/mbscasecmp (Dependencies): Likewise.
24372         * modules/mbscasestr (Dependencies): Likewise.
24373         * modules/mbschr (Dependencies): Likewise.
24374         * modules/mbscspn (Dependencies): Likewise.
24375         * modules/mbsinit (Dependencies): Likewise.
24376         * modules/mbsncasecmp (Dependencies): Likewise.
24377         * modules/mbsnrtowcs (Dependencies): Likewise.
24378         * modules/mbspbrk (Dependencies): Likewise.
24379         * modules/mbspcasecmp (Dependencies): Likewise.
24380         * modules/mbsrchr (Dependencies): Likewise.
24381         * modules/mbsrtowcs (Dependencies): Likewise.
24382         * modules/mbsspn (Dependencies): Likewise.
24383         * modules/mbsstr (Dependencies): Likewise.
24384         * modules/nl_langinfo (Dependencies): Likewise.
24385         * modules/quotearg (Dependencies): Likewise.
24386         * modules/unicase/locale-language (Dependencies): Likewise.
24387         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24388         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24389         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24390         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24391         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24392         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24393         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24394         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24395         * modules/vasnprintf-posix (Dependencies): Likewise.
24396         * modules/wcrtomb (Dependencies): Likewise.
24397         * modules/wcsnrtombs (Dependencies): Likewise.
24398         * modules/wcsrtombs (Dependencies): Likewise.
24399
24400 2011-02-12  Bruno Haible  <bruno@clisp.org>
24401
24402         setlocale: Workaround native Windows bug.
24403         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24404         succeeds but sets LC_CTYPE to "C", report a failure.
24405         * tests/test-setlocale2.sh: New file.
24406         * tests/test-setlocale2.c: New file.
24407         * modules/setlocale-tests (Files): Add the new files.
24408         (Makefile.am): Enable test-setlocale2.sh test.
24409         * doc/posix-functions/setlocale.texi: Mention workaround.
24410
24411 2011-02-11  Bruno Haible  <bruno@clisp.org>
24412
24413         Tests for module 'setlocale'.
24414         * modules/setlocale-tests: New file.
24415         * tests/test-setlocale1.sh: New file.
24416         * tests/test-setlocale1.c: New file.
24417
24418         New module 'setlocale'.
24419         * lib/locale.in.h (setlocale): New declaration.
24420         * lib/setlocale.c: New file, based on
24421         gettext/gettext-runtime/intl/setlocale.c.
24422         * m4/setlocale.m4: New file.
24423         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24424         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24425         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24426         REPLACE_SETLOCALE.
24427         * modules/setlocale: New file.
24428         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24429         * doc/posix-functions/setlocale.texi: Mention the new module.
24430
24431 2011-02-11  Bruno Haible  <bruno@clisp.org>
24432
24433         Prepare for locale dependent tests on mingw.
24434         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24435         because it has the wrong locale encoding.
24436         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24437         French_France.1252 instead of "fr".
24438         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24439         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24440         because it has the wrong locale encoding.
24441         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24442         native Windows, try Turkish_Turkey.65001.
24443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24444         Chinese_China.54936.
24445
24446         Prepare for locale dependent tests on mingw.
24447         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24448         differently.
24449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24450         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24453
24454 2011-02-11  Eric Blake  <eblake@redhat.com>
24455
24456         strptime: avoid compiler warnings
24457         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24458         compiler warnings about dead code.
24459         Reported by Daniel P. Berrange.
24460
24461 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24462
24463         doc: update users.txt
24464         * users.txt: Add rcs.
24465
24466 2011-02-10  John W. Eaton  <jwe@gnu.org>
24467
24468         doc: update users.txt
24469         * users.txt: Add octave.
24470
24471 2011-02-10  Jim Meyering  <meyering@redhat.com>
24472
24473         doc: update users.txt
24474         * users.txt: Add iwhd.
24475
24476 2011-02-09  Bruno Haible  <bruno@clisp.org>
24477
24478         gnulib-tool: Make copyright notice adjustment more robust.
24479         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24480         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24481         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24482         License".
24483         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24484
24485 2011-02-06  Bruno Haible  <bruno@clisp.org>
24486
24487         New module 'towctrans'.
24488         * modules/towctrans: New file.
24489         * lib/wctype.in.h (towctrans): New declaration.
24490         * lib/towctrans.c: New file.
24491         * lib/towctrans-impl.h: New file.
24492         * m4/towctrans.m4: New file.
24493         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24494         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24495         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24496         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24497         * doc/posix-functions/towctrans.texi: Mention the new module.
24498
24499 2011-02-06  Bruno Haible  <bruno@clisp.org>
24500
24501         New module 'wctrans'.
24502         * modules/wctrans: New file.
24503         * lib/wctype.in.h (wctrans): New declaration.
24504         * lib/wctrans.c: New file.
24505         * lib/wctrans-impl.h: New file.
24506         * m4/wctrans.m4: New file.
24507         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24508         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24509         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24510         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24511         * doc/posix-functions/wctrans.texi: Mention the new module.
24512
24513 2011-02-06  Bruno Haible  <bruno@clisp.org>
24514
24515         New module 'iswctype'.
24516         * modules/iswctype: New file.
24517         * lib/wctype.in.h (iswctype): New declaration.
24518         * lib/iswctype.c: New file.
24519         * lib/iswctype-impl.h: New file.
24520         * m4/iswctype.m4: New file.
24521         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24522         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24523         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24524         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24525         * doc/posix-functions/iswctype.texi: Mention the new module and the
24526         HP-UX 11.00 problem.
24527
24528 2011-02-06  Bruno Haible  <bruno@clisp.org>
24529
24530         New module 'wctype'.
24531         * modules/wctype: Change to represent the wctype() substitute.
24532         * lib/wctype.in.h (wctype): New declaration.
24533         * lib/wctype.c: New file.
24534         * lib/wctype-impl.h: New file.
24535         * m4/wctype.m4: New file.
24536         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24537         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24538         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24539         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24540         * doc/posix-functions/wctype.texi: Mention the new module and the
24541         HP-UX 11.00 problem.
24542
24543 2011-02-06  Bruno Haible  <bruno@clisp.org>
24544
24545         wctype-h: Ensure wctype_t and wctrans_t are defined.
24546         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24547         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24548         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24549         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24550         HAVE_WCTRANS_T.
24551         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24552
24553 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24554
24555         flock: fix license typo
24556
24557         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24558         omitted.
24559
24560 2011-02-08  Bruno Haible  <bruno@clisp.org>
24561
24562         Split large sed scripts, for HP-UX sed.
24563         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24564         to avoid HP-UX limit of 99 commands, in the near future.
24565         * modules/stdlib (Makefile.am): Likewise.
24566         * modules/unistd (Makefile.am): Likewise.
24567         * modules/wchar (Makefile.am): Likewise.
24568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24569         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24571
24572 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24573             Bruno Haible  <bruno@clisp.org>
24574
24575         stdlib: improve random_r modularization
24576         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24577         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24578         you also need the random_r module to get this material right.
24579         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24580         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24581         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24582
24583 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         stdlib: don't depend on stdint
24586         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24587         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24588         be independent of whether stdint.h is needed.
24589         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24590         here, instead of ...
24591         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24592         struct random_data should be using the random_r module, not just
24593         the stdlib module (which wouldn't make sense: what package needs
24594         just struct random_data without also needing random_r?).
24595         * modules/stdlib (Depends-on): Remove stdint.
24596
24597         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24598         See the thread rooted at
24599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24600         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24601         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24602         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24603         __VMS)); previously it was always included (via fcntl--.h).
24604         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24605         hand; this is good enough for load averages.  Also, do not use
24606         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24607         flags directly if available and don't bother otherwise.  (Packages
24608         that need the extra reliability should use the modules that define
24609         these flags on older platforms that lack them.)
24610         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24611         fcntl-safer.
24612
24613 2011-02-08  Jim Meyering  <meyering@redhat.com>
24614
24615         di-set.h, ino-map.h: add multiple-inclusion guard
24616         Technically, the guard is required only for ino-map.h, due to its
24617         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24618         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24619         * lib/ino-map.h: Likewise.
24620
24621 2011-02-06  Bruno Haible  <bruno@clisp.org>
24622
24623         iswblank: Ensure declaration on glibc systems.
24624         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24625         * modules/iswblank (Dependencies): Add 'extensions'.
24626         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24627
24628 2011-02-06  Bruno Haible  <bruno@clisp.org>
24629
24630         New module 'iswblank'.
24631         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24632         * modules/iswblank: New file.
24633         * modules/wctype-h (Files): Remove lib/iswblank.c.
24634         (Makefile.am): Substitute GNULIB_ISWBLANK.
24635         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24636         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24637         (gl_WCTYPE_H_DEFAULTS): New macro.
24638         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24639         * modules/iswblank-tests: New file.
24640         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24641         * tests/test-wctype-h.c (main): Remove iswblank tests.
24642         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24643         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24644         of 'wctype-h'.
24645         * NEWS: Mention the change.
24646         * modules/mbchar (Depends-on): Add iswblank.
24647
24648 2011-02-08  Bruno Haible  <bruno@clisp.org>
24649
24650         di-set tests: Refactor.
24651         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24652         unnecessary includes.
24653         (ASSERT): Remove macro.
24654         (main): Make C90 compliant by avoiding variable declaration after
24655         statement.
24656         * modules/di-set-tests (Files): Add tests/macros.h.
24657
24658 2011-02-08  Bruno Haible  <bruno@clisp.org>
24659
24660         ino-map tests: Refactor.
24661         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24662         unnecessary includes.
24663         (ASSERT): Remove macro.
24664         (main): Make C90 compliant by avoiding variable declaration after
24665         statement.
24666         * modules/ino-map-tests (Files): Add tests/macros.h.
24667
24668 2011-02-08  Jim Meyering  <meyering@redhat.com>
24669
24670         di-set: add "const" to a cast
24671         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24672         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24673
24674 2011-02-06  Bruno Haible  <bruno@clisp.org>
24675
24676         Rename module 'wctype' to 'wctype-h'.
24677         * modules/wctype-h: Renamed from modules/wctype.
24678         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24679         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24680         (Files, Depends-on, Makefile.am): Update.
24681         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24682         (Files, Makefile.am): Update.
24683         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24684         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24685         * doc/posix-headers/wctype.texi: Update.
24686         * doc/posix-functions/iswalnum.texi: Update.
24687         * doc/posix-functions/iswalpha.texi: Update.
24688         * doc/posix-functions/iswblank.texi: Update.
24689         * doc/posix-functions/iswcntrl.texi: Update.
24690         * doc/posix-functions/iswdigit.texi: Update.
24691         * doc/posix-functions/iswgraph.texi: Update.
24692         * doc/posix-functions/iswlower.texi: Update.
24693         * doc/posix-functions/iswprint.texi: Update.
24694         * doc/posix-functions/iswpunct.texi: Update.
24695         * doc/posix-functions/iswspace.texi: Update.
24696         * doc/posix-functions/iswupper.texi: Update.
24697         * doc/posix-functions/iswxdigit.texi: Update.
24698         * doc/posix-functions/towlower.texi: Update.
24699         * doc/posix-functions/towupper.texi: Update.
24700         * NEWS: Mention the change.
24701         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24702         * modules/mbchar (Dependencies): Likewise.
24703         * modules/mbswidth (Dependencies): Likewise.
24704         * modules/quotearg (Dependencies): Likewise.
24705         * modules/regex (Dependencies): Likewise.
24706         * modules/wcscasecmp (Dependencies): Likewise.
24707         * modules/wcsncasecmp (Dependencies): Likewise.
24708         * modules/wcwidth (Dependencies): Likewise.
24709
24710 2011-02-06  Bruno Haible  <bruno@clisp.org>
24711
24712         New module 'wcswidth'.
24713         * modules/wcswidth: New file.
24714         * lib/wchar.in.h (wcswidth): New declaration.
24715         * lib/wcswidth.c: New file.
24716         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24717         * m4/wcswidth.m4: New file.
24718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24720         REPLACE_WCSWIDTH.
24721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24722         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24723         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24724         * doc/posix-functions/wcswidth.texi: Mention the new module.
24725
24726 2011-02-06  Bruno Haible  <bruno@clisp.org>
24727
24728         New module 'wcstok'.
24729         * modules/wcstok: New file.
24730         * lib/wchar.in.h (wcstok): New declaration.
24731         * lib/wcstok.c: New file.
24732         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24733         * m4/wcstok.m4: New file.
24734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24737         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24738         * doc/posix-functions/wcstok.texi: Mention the new module.
24739
24740 2011-02-06  Bruno Haible  <bruno@clisp.org>
24741
24742         New module 'wcsstr'.
24743         * modules/wcsstr: New file.
24744         * lib/wchar.in.h (wcsstr): New declaration.
24745         * lib/wcsstr.c: New file.
24746         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24747         * m4/wcsstr.m4: New file.
24748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24751         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24752         * doc/posix-functions/wcsstr.texi: Mention the new module.
24753
24754 2011-02-06  Bruno Haible  <bruno@clisp.org>
24755
24756         New module 'wcspbrk'.
24757         * modules/wcspbrk: New file.
24758         * lib/wchar.in.h (wcspbrk): New declaration.
24759         * lib/wcspbrk.c: New file.
24760         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24761         * m4/wcspbrk.m4: New file.
24762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24765         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24766         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24767
24768 2011-02-06  Bruno Haible  <bruno@clisp.org>
24769
24770         New module 'wcsspn'.
24771         * modules/wcsspn: New file.
24772         * lib/wchar.in.h (wcsspn): New declaration.
24773         * lib/wcsspn.c: New file.
24774         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24775         * m4/wcsspn.m4: New file.
24776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24779         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24780         * doc/posix-functions/wcsspn.texi: Mention the new module.
24781
24782 2011-02-06  Bruno Haible  <bruno@clisp.org>
24783
24784         New module 'wcscspn'.
24785         * modules/wcscspn: New file.
24786         * lib/wchar.in.h (wcscspn): New declaration.
24787         * lib/wcscspn.c: New file.
24788         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24789         * m4/wcscspn.m4: New file.
24790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24793         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24794         * doc/posix-functions/wcscspn.texi: Mention the new module.
24795
24796 2011-02-06  Bruno Haible  <bruno@clisp.org>
24797
24798         New module 'wcsrchr'.
24799         * modules/wcsrchr: New file.
24800         * lib/wchar.in.h (wcsrchr): New declaration.
24801         * lib/wcsrchr.c: New file.
24802         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24803         * m4/wcsrchr.m4: New file.
24804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24807         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24808         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24809
24810 2011-02-06  Bruno Haible  <bruno@clisp.org>
24811
24812         New module 'wcschr'.
24813         * modules/wcschr: New file.
24814         * lib/wchar.in.h (wcschr): New declaration.
24815         * lib/wcschr.c: New file.
24816         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24817         * m4/wcschr.m4: New file.
24818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24821         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24822         * doc/posix-functions/wcschr.texi: Mention the new module.
24823
24824 2011-02-06  Bruno Haible  <bruno@clisp.org>
24825
24826         New module 'wcsdup'.
24827         * modules/wcsdup: New file.
24828         * lib/wchar.in.h (wcsdup): New declaration.
24829         * lib/wcsdup.c: New file.
24830         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24831         * m4/wcsdup.m4: New file.
24832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24835         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24836         * doc/posix-functions/wcsdup.texi: Mention the new module.
24837
24838 2011-02-06  Bruno Haible  <bruno@clisp.org>
24839
24840         New module 'wcsxfrm'.
24841         * modules/wcsxfrm: New file.
24842         * lib/wchar.in.h (wcsxfrm): New declaration.
24843         * lib/wcsxfrm.c: New file.
24844         * lib/wcsxfrm-impl.h: New file.
24845         * m4/wcsxfrm.m4: New file.
24846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24849         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24850         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24851
24852 2011-02-06  Bruno Haible  <bruno@clisp.org>
24853
24854         New module 'wcscoll'.
24855         * modules/wcscoll: New file.
24856         * lib/wchar.in.h (wcscoll): New declaration.
24857         * lib/wcscoll.c: New file.
24858         * lib/wcscoll-impl.h: New file.
24859         * m4/wcscoll.m4: New file.
24860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24863         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24864         * doc/posix-functions/wcscoll.texi: Mention the new module.
24865
24866 2011-02-06  Bruno Haible  <bruno@clisp.org>
24867
24868         New module 'wcsncasecmp'.
24869         * modules/wcsncasecmp: New file.
24870         * lib/wchar.in.h (wcsncasecmp): New declaration.
24871         * lib/wcsncasecmp.c: New file.
24872         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24873         * m4/wcsncasecmp.m4: New file.
24874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24877         HAVE_WCSNCASECMP.
24878         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24879         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24880
24881 2011-02-06  Bruno Haible  <bruno@clisp.org>
24882
24883         New module 'wcscasecmp'.
24884         * modules/wcscasecmp: New file.
24885         * lib/wchar.in.h (wcscasecmp): New declaration.
24886         * lib/wcscasecmp.c: New file.
24887         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24888         * m4/wcscasecmp.m4: New file.
24889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24892         HAVE_WCSCASECMP.
24893         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24894         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24895
24896 2011-02-05  Bruno Haible  <bruno@clisp.org>
24897
24898         New module 'wcsncmp'.
24899         * modules/wcsncmp: New file.
24900         * lib/wchar.in.h (wcsncmp): New declaration.
24901         * lib/wcsncmp.c: New file.
24902         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24903         * m4/wcsncmp.m4: New file.
24904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24907         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24908         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24909
24910 2011-02-05  Bruno Haible  <bruno@clisp.org>
24911
24912         New module 'wcscmp'.
24913         * modules/wcscmp: New file.
24914         * lib/wchar.in.h (wcscmp): New declaration.
24915         * lib/wcscmp.c: New file.
24916         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24917         * m4/wcscmp.m4: New file.
24918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24921         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24922         * doc/posix-functions/wcscmp.texi: Mention the new module.
24923
24924 2011-02-05  Bruno Haible  <bruno@clisp.org>
24925
24926         New module 'wcsncat'.
24927         * modules/wcsncat: New file.
24928         * lib/wchar.in.h (wcsncat): New declaration.
24929         * lib/wcsncat.c: New file.
24930         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24931         * m4/wcsncat.m4: New file.
24932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24935         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24936         * doc/posix-functions/wcsncat.texi: Mention the new module.
24937
24938 2011-02-05  Bruno Haible  <bruno@clisp.org>
24939
24940         New module 'wcscat'.
24941         * modules/wcscat: New file.
24942         * lib/wchar.in.h (wcscat): New declaration.
24943         * lib/wcscat.c: New file.
24944         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24945         * m4/wcscat.m4: New file.
24946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24949         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24950         * doc/posix-functions/wcscat.texi: Mention the new module.
24951
24952 2011-02-05  Bruno Haible  <bruno@clisp.org>
24953
24954         New module 'wcpncpy'.
24955         * modules/wcpncpy: New file.
24956         * lib/wchar.in.h (wcpncpy): New declaration.
24957         * lib/wcpncpy.c: New file.
24958         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24959         * m4/wcpncpy.m4: New file.
24960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24962         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24963         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24964         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24965
24966 2011-02-05  Bruno Haible  <bruno@clisp.org>
24967
24968         New module 'wcsncpy'.
24969         * modules/wcsncpy: New file.
24970         * lib/wchar.in.h (wcsncpy): New declaration.
24971         * lib/wcsncpy.c: New file.
24972         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24973         * m4/wcsncpy.m4: New file.
24974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24977         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24978         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24979
24980 2011-02-05  Bruno Haible  <bruno@clisp.org>
24981
24982         New module 'wcpcpy'.
24983         * modules/wcpcpy: New file.
24984         * lib/wchar.in.h (wcpcpy): New declaration.
24985         * lib/wcpcpy.c: New file.
24986         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24987         * m4/wcpcpy.m4: New file.
24988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24990         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24991         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24992         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24993
24994 2011-02-05  Bruno Haible  <bruno@clisp.org>
24995
24996         New module 'wcscpy'.
24997         * modules/wcscpy: New file.
24998         * lib/wchar.in.h (wcscpy): New declaration.
24999         * lib/wcscpy.c: New file.
25000         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25001         * m4/wcscpy.m4: New file.
25002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25005         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25006         * doc/posix-functions/wcscpy.texi: Mention the new module.
25007
25008 2011-02-05  Bruno Haible  <bruno@clisp.org>
25009
25010         New module 'wcsnlen'.
25011         * modules/wcsnlen: New file.
25012         * lib/wchar.in.h (wcsnlen): New declaration.
25013         * lib/wcsnlen.c: New file.
25014         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25015         * m4/wcsnlen.m4: New file.
25016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25019         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25020         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25021
25022 2011-02-05  Bruno Haible  <bruno@clisp.org>
25023
25024         New module 'wcslen'.
25025         * modules/wcslen: New file.
25026         * lib/wchar.in.h (wcslen): New declaration.
25027         * lib/wcslen.c: New file.
25028         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25029         * m4/wcslen.m4: New file.
25030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25033         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25034         * doc/posix-functions/wcslen.texi: Mention the new module.
25035
25036 2011-02-05  Bruno Haible  <bruno@clisp.org>
25037
25038         New module 'wmemset'.
25039         * modules/wmemset: New file.
25040         * lib/wchar.in.h (wmemset): New declaration.
25041         * lib/wmemset.c: New file.
25042         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25043         * m4/wmemset.m4: New file.
25044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25046         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25047         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25048         * doc/posix-functions/wmemset.texi: Mention the new module.
25049
25050 2011-02-05  Bruno Haible  <bruno@clisp.org>
25051
25052         New module 'wmemmove'.
25053         * modules/wmemmove: New file.
25054         * lib/wchar.in.h (wmemmove): New declaration.
25055         * lib/wmemmove.c: New file.
25056         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25057         * m4/wmemmove.m4: New file.
25058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25060         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25061         HAVE_WMEMMOVE.
25062         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25063         * doc/posix-functions/wmemmove.texi: Mention the new module.
25064
25065 2011-02-05  Bruno Haible  <bruno@clisp.org>
25066
25067         New module 'wmemcpy'.
25068         * modules/wmemcpy: New file.
25069         * lib/wchar.in.h (wmemcpy): New declaration.
25070         * lib/wmemcpy.c: New file.
25071         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25072         * m4/wmemcpy.m4: New file.
25073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25075         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25076         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25077         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25078
25079 2011-02-05  Bruno Haible  <bruno@clisp.org>
25080
25081         New module 'wmemcmp'.
25082         * modules/wmemcmp: New file.
25083         * lib/wchar.in.h (wmemcmp): New declaration.
25084         * lib/wmemcmp.c: New file.
25085         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25086         * m4/wmemcmp.m4: New file.
25087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25089         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25090         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25091         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25092
25093 2011-02-07  Jim Meyering  <meyering@redhat.com>
25094
25095         di-set, ino-map: new modules, from coreutils
25096         * lib/di-set.c: New file.
25097         * lib/di-set.h: Likewise.
25098         * lib/ino-map.c: Likewise.
25099         * lib/ino-map.h: Likewise.
25100         * modules/di-set: Likewise.
25101         * modules/di-set-tests: Likewise.
25102         * modules/ino-map: Likewise.
25103         * modules/ino-map-tests: Likewise.
25104         * tests/test-di-set.c: Likewise.
25105         * tests/test-ino-map.c: Likewise.
25106
25107 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25108
25109         getloadavg: merge minor changes from Emacs
25110
25111         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25112         (getloadavg): Use memset, not bzero.
25113
25114         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25115         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25116         clash (bug#86).
25117
25118 2010-11-14  Bruno Haible  <bruno@clisp.org>
25119
25120         Allow multiple gnulib generated replacements to coexist.
25121         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25122         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25123         * lib/langinfo.in.h (nl_item): Likewise.
25124         * lib/math.in.h (_NaN, NAN): Likewise.
25125         * lib/netdb.in.h (struct addrinfo): Likewise.
25126         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25127         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25128         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25129         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25130         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25131         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25132         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25133         pthread_mutexattr_init, pthread_mutexattr_settype,
25134         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25135         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25136         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25137         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25138         * lib/sched.in.h (struct sched_param): Likewise.
25139         * lib/se-selinux.in.h (security_class_t, security_context_t,
25140         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25141         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25142         lsetfilecon, fsetfilecon, security_check_context,
25143         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25144         Likewise.
25145         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25146         Likewise.
25147         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25148         _gl_function_taking_int_returning_void_t, union sigval,
25149         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25150         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25151         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25152         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25153         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25154         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25155         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25156         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25157         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25158         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25159         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25160         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25161         socklen_t, rpl_fd_isset): Likewise.
25162         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25163         * lib/sys_time.in.h (struct timeval): Likewise.
25164         * lib/sys_times.in.h (struct tms): Likewise.
25165         * lib/sys_utsname.in.h (struct utsname):
25166         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25167         * lib/unistd.in.h (getpagesize): Likewise.
25168         * lib/wchar.in.h (mbstate_t): Likewise.
25169         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25170         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25171         towlower, towupper): Likewise.
25172         Reported by Sam Steingold <sds@gnu.org>.
25173
25174 2011-02-05  Eric Blake  <eblake@redhat.com>
25175
25176         unsetenv: work around Haiku issues
25177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25178         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25179
25180 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25181
25182         libposix: avoid calling error() within libposix
25183         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25184         is defined.
25185
25186 2011-02-05  Eric Blake  <eblake@redhat.com>
25187
25188         strerror_r-posix: port to cygwin
25189         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25190         implementation.
25191         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25192         * tests/test-strerror_r.c (main): Fix test.
25193         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25194         issue.
25195
25196 2011-02-05  Bruno Haible  <bruno@clisp.org>
25197
25198         New module 'wmemchr'.
25199         * modules/wmemchr: New file.
25200         * lib/wchar.in.h (wmemchr): New declaration.
25201         * lib/wmemchr.c: New file.
25202         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25203         * m4/wmemchr.m4: New file.
25204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25206         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25207         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25208         * doc/posix-functions/wmemchr.texi: Mention the new module.
25209
25210 2011-02-04  Eric Blake  <eblake@redhat.com>
25211
25212         fdopendir: detect FreeBSD bug
25213         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25214         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25215
25216 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25217
25218         stdbool: do not define HAVE_STDBOOL_H
25219         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25220         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25221         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25222         imported from the latest Autoconf git.  It was motivated by Emacs,
25223         which uses gnulib but does not need HAVE_STDBOOL_H.
25224
25225 2011-02-04  Bruno Haible  <bruno@clisp.org>
25226
25227         wcsnrtombs: Prepare for new module wwcsnrtombs.
25228         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25229         * lib/wcsnrtombs.c: Include it.
25230         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25231
25232         wcsrtombs: Prepare for new module wwcsrtombs.
25233         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25234         * lib/wcsrtombs.c: Include it.
25235         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25236
25237         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25238         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25239         * lib/mbsnrtowcs.c: Include it.
25240         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25241
25242         mbsrtowcs: Prepare for new module mbsrtowwcs.
25243         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25244         * lib/mbsrtowcs.c: Include it.
25245         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25246
25247 2011-02-04  Bruno Haible  <bruno@clisp.org>
25248
25249         vasnprintf: Reduce use of malloc for small format strings.
25250         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25251         (arguments): Add room for the first 7 arguments.
25252         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25253         (char_directives, u8_directives, u16_directives, u32_directives): Add
25254         room for the first 7 directives.
25255         * lib/printf-parse.c: Include <string.h>.
25256         (PRINTF_PARSE): Change memory handling code so that it uses the first
25257         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25258         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25259         Reported by Pádraig Brady <P@draigbrady.com>.
25260
25261 2011-01-31  Eric Blake  <eblake@redhat.com>
25262
25263         dup2: work around Haiku bug
25264         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25265         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25266         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25267         * tests/test-dup2.c (main): Enhance test.
25268
25269 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25270
25271         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25272         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25273         declared by eglibc 2.11.2.
25274         * lib/stdio.in.h: Likewise.
25275
25276 2011-01-31  Eric Blake  <eblake@redhat.com>
25277
25278         ignore-value: add missing test dependency
25279         * tests/test-ignore-value.c: Revert previous change; stdio.h
25280         provides off_t.
25281         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25282
25283 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25284
25285         mktime: clarify long_int width checking
25286         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25287         the top level, to make it clearer that the assumption about
25288         long_int width is being checked.  See
25289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25290
25291 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25292
25293         ignore-value: Fix self-test.
25294         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25295
25296 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25297
25298         TYPE_MAXIMUM: avoid theoretically undefined behavior
25299         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25300         negative number, which the C Standard says has undefined behavior.
25301         In practice this is not a problem, but might as well do it by the book.
25302         Reported by Rich Felker and Eric Blake; see
25303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25304         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25305         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25307         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25308         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25309         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25310
25311         mktime: #undef mktime before #defining it
25312         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25313
25314         mktime: systematically normalize tm_isdst comparisons
25315         * lib/mktime.c (isdst_differ): New function.
25316         (__mktime_internal): Use it systematically for all isdst comparisons.
25317         This completes the fix for libc BZ #6723, and removes the need for
25318         normalizing tm_isdst.  See
25319         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25320         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25321
25322         mktime: fix some integer overflow issues and sidestep the rest
25323
25324         This was prompted by a bug report by Benjamin Lindner for MinGW
25325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25326         His bug is due to signed integer overflow (0 - INT_MIN), and I
25327         I scanned through mktime.c looking for other integer overflow
25328         problems, fixing all the bugs I found.
25329
25330         Although the C Standard says the resulting code is still not safe
25331         in the presence of integer overflow, in practice it should be good
25332         enough for all real-world two's-complement implementations, except
25333         for debugging environments that deliberately trap on integer
25334         overflow (e.g., gcc -ftrapv).
25335
25336         * lib/mktime.c (WRAPV): New macro.
25337         (SHR): Also check that long_int and time_t shift right in the
25338         usual way, before using the fast-but-unportable method.
25339         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25340         used.  The code already assumed two's complement, so there's
25341         no need to test for alternatives.  All uses removed.
25342         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25343         the C standard.  Problem reported by Rich Felker in
25344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25345         (twos_complement_arithmetic): Also check long_int and time_t.
25346         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25347         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25348         (__mktime_internal): Avoid integer overflow with unary subtraction
25349         in two instances where -1 - X is an adequate replacement for -X,
25350         since the calculations are approximate.
25351
25352 2011-01-29  Eric Blake  <eblake@redhat.com>
25353
25354         mktime: avoid infinite loop
25355         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25356         type; behavior is still undefined but portable to all known targets.
25357         Reported by Rich Felker.
25358
25359 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25360
25361         rename, unlink, same-inode: Relicense.
25362         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25363         * modules/unlink (License): Likewise.
25364         * modules/same-inode (License): Likewise.
25365
25366 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         mktime: avoid problems on NetBSD 5 / i386
25369         * lib/mktime.c (long_int): New type.  This works around a problem
25370         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25371         but time_t is 64 bits, and where I expect the existing code is
25372         wrong in some cases.
25373         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25374         (ydhms_diff): Bring back the compile-time check for wide-enough
25375         year and yday.
25376
25377         mktime: fix misspelling in comment
25378         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25379         This merges all recent glibc changes of importance.
25380
25381 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25382
25383         move-if-change: cope with concurrent mv of identical file.
25384         * build-aux/move-if-change (CMPPROG): Accept environment
25385         variable as an override for `cmp'.
25386         (usage): Document CMPPROG.
25387         Adjust comparison to drop stdout.  Cope with failure of mv if
25388         the target file exists and is identical to the source, for
25389         parallel builds.
25390         Report from H.J. Lu against binutils in PR binutils/12283.
25391
25392 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25393
25394         * users.txt: Mention sharutils.
25395
25396 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25397
25398         * users.txt: Mention OATH Toolkit.
25399
25400 2011-01-27  Bruno Haible  <bruno@clisp.org>
25401
25402         Prepare for supporting FreeBSD 10.
25403         * build-aux/config.libpath: Remove handling of freebsd1*.
25404
25405 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25406
25407         Prepare for supporting FreeBSD 10.
25408         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25409         match FreeBSD 10.0.
25410
25411 2011-01-27  Bruno Haible  <bruno@clisp.org>
25412
25413         vma-iter, get-rusage-as: Add OpenBSD support.
25414         * modules/vma-iter (configure.ac): Test for mquery.
25415         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25416         * lib/vma-iter.c: Include <sys/mman.h>.
25417         (vma_iterate): Add an implementation based on mquery().
25418         * lib/resource-ext.h (get_rusage_as): Update comments.
25419         * lib/get-rusage-as.c: Likewise.
25420         * lib/get-rusage-data.c: Likewise.
25421
25422 2011-01-26  Karl Berry  <karl@gnu.org>
25423
25424         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25425         variables to make it easier to override the makeinfo program used.
25426
25427 2011-01-26  Eric Blake  <eblake@redhat.com>
25428
25429         fcntl: work around Haiku F_DUPFD bugs
25430         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25431         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25432         cloexec bit on duplication.
25433         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25434
25435 2011-01-26  Bruno Haible  <bruno@clisp.org>
25436
25437         Enable memory leak tests on AIX.
25438         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25439         * tests/test-fprintf-posix3.c (main): Likewise.
25440
25441 2011-01-26  Bruno Haible  <bruno@clisp.org>
25442
25443         Tests for module 'get-rusage-data'.
25444         * modules/get-rusage-data-tests: New file.
25445         * tests/test-get-rusage-data.c: New file.
25446
25447         New module 'get-rusage-data'.
25448         * lib/resource-ext.h (get_rusage_data): New declaration.
25449         * lib/get-rusage-data.c: New file.
25450         * modules/get-rusage-data: New file.
25451
25452 2011-01-25  Bruno Haible  <bruno@clisp.org>
25453
25454         get-rusage-as: Allow for easier testing.
25455         * lib/resource-ext.h (get_rusage_as): Add comment.
25456         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25457         (main): New function for interactive testing.
25458
25459 2011-01-25  Bruno Haible  <bruno@clisp.org>
25460
25461         vma-iter: Treat Haiku like BeOS.
25462         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25463         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25464
25465 2011-01-25  Eric Blake  <eblake@redhat.com>
25466
25467         c-stack: fix regression on cygwin when libsigsegv is present
25468         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25469
25470 2011-01-24  Bruno Haible  <bruno@clisp.org>
25471
25472         vma-iter: Avoid empty intervals.
25473         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25474         on an empty interval.
25475
25476 2011-01-24  Jim Meyering  <meyering@redhat.com>
25477
25478         u64: remove unnecessary #include
25479         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25480
25481 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25482
25483         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25484         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25485
25486 2011-01-23  Bruno Haible  <bruno@clisp.org>
25487
25488         New module 'vma-iter'.
25489         * lib/vma-iter.h: New file.
25490         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25491         * modules/vma-iter: New file.
25492         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25493         for get_rusage_as_via_iterator.
25494         (vma_iterate_callback): New function.
25495         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25496         * modules/get-rusage-as (Depends-on): Add vma-iter.
25497
25498 2011-01-23  Bruno Haible  <bruno@clisp.org>
25499
25500         uninorm: Tweak includes.
25501         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25502         Reported by Jim Meyering.
25503
25504 2011-01-23  Bruno Haible  <bruno@clisp.org>
25505
25506         get-rusage-as: Improve on NetBSD.
25507         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25508         /proc, like on FreeBSD.
25509
25510 2011-01-23  Jim Meyering  <meyering@redhat.com>
25511
25512         xreadlink.h: remove unnecessary #include
25513         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25514
25515         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25516         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25517
25518 2011-01-23  Bruno Haible  <bruno@clisp.org>
25519
25520         get-rusage-as: Fix bug.
25521         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25522         original limit when aborting the first loop.
25523
25524 2011-01-23  Bruno Haible  <bruno@clisp.org>
25525
25526         wctype: Ensure valid C syntax.
25527         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25528         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25529
25530 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25531
25532         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25534         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25535         as they are needed only for configure's test case.
25536         This removes two unnecessary symbols from config.h.
25537
25538         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25539         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25541         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25542         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25543         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25545         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25546         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25547         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25548         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25550         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25552         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25553         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25554         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25555         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25556
25557 2011-01-21  Eric Blake  <eblake@redhat.com>
25558
25559         maintainer-makefile: work with older git for submodule check
25560         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25561         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25562         Reported by Matthias Bolte.
25563
25564         bootstrap: minor portability fixes
25565         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25566         (usage): Omit leading capital and trailing . on help phrases, per
25567         GNU Coding Standards.
25568         (check_versions, top level): Prefix messages with script name.
25569
25570 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25571
25572         bootstrap: support --no-git option
25573         * build-aux/bootstrap: Add --no-git option, to be used when
25574         --gnulib-srcdir points to the exact desired checkout.
25575
25576 2011-01-21  Eric Blake  <eblake@redhat.com>
25577
25578         strerror_r-posix: work with glibc 2.13
25579         * lib/strerror_r.c (strerror_r): Fix return type.
25580
25581 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25582             Bruno Haible  <bruno@clisp.org>
25583
25584         uN_strstr: New unit tests.
25585         * modules/unistr/u8-strstr-tests: New file.
25586         * modules/unistr/u16-strstr-tests: New file.
25587         * modules/unistr/u32-strstr-tests: New file.
25588         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25589         * tests/unistr/test-u8-strstr.c: New file.
25590         * tests/unistr/test-u16-strstr.c: New file.
25591         * tests/unistr/test-u32-strstr.c: New file.
25592
25593 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25594             Bruno Haible  <bruno@clisp.org>
25595
25596         Make uN_strstr functions O(n) worst-case.
25597         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25598         16-bit and 32-bit unit cases, use the unibyte algorithm from
25599         lib/mbsstr.c.
25600         * lib/unistr/u8-strstr.c: Include <string.h>.
25601         (UNIT_IS_UINT8_T): New macro.
25602         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25603         (U_STRLEN, U_STRNLEN): New macros.
25604         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25605         (U_STRLEN, U_STRNLEN): New macros.
25606         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25607         (configure.ac): Update required libunistring version.
25608         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25609         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25610         malloca.
25611         (configure.ac): Update required libunistring version.
25612         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25613         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25614         malloca.
25615         (configure.ac): Update required libunistring version.
25616
25617 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25618             Bruno Haible  <bruno@clisp.org>
25619
25620         Prepare for faster uN_strstr functions.
25621         * lib/str-kmp.h: Support definable UNITs.
25622         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25623         needle_len argument.
25624         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25625         * lib/mbscasestr.c (mbscasestr): Likewise.
25626
25627 2011-01-21  Pádraig Brady <P@draigBrady.com>
25628
25629         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25630         * tests/test-malloca.c (main): Unset the environment variable
25631         to greatly speed up the test.
25632         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25633         * modules/malloca-tests: Depend on unsetenv.
25634
25635 2011-01-21  Pádraig Brady <P@draigBrady.com>
25636
25637         ignore-value: remove stdint dependency
25638         * lib/ignore-value.h: Remove <stdint.h>
25639         * modules/ignore-value: Remove stdint dependency.
25640
25641 2011-01-21  Jim Meyering  <meyering@redhat.com>
25642
25643         maint.mk: adjust variable name to be consistent with other gl_ vars
25644         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25645         to be lower case.
25646
25647 2011-01-20  Jim Meyering  <meyering@redhat.com>
25648
25649         maint.mk: make "check" depend on public-submodule-commit by default
25650         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25651
25652 2011-01-20  Bruno Haible  <bruno@clisp.org>
25653
25654         mbfile, mbiter: Complete change from 2008-12-21.
25655         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25656         * m4/mbiter.m4 (gl_MBITER): Likewise.
25657
25658 2011-01-20  Jim Meyering  <meyering@redhat.com>
25659
25660         init.sh: insert space between each function name and "()"
25661         * tests/init.sh: Make it a little easier to see that a function's
25662         name is "warn_", and not "warn" when looking at the first part of
25663         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25664
25665 2011-01-20  Jim Meyering  <meyering@redhat.com>
25666
25667         mountlist: clean up code formatting
25668         * lib/mountlist.c (read_file_system_list): Split a long line,
25669         correct bracing style, use NULL in place of "(struct statfs *)0",
25670         don't parenthesize return value, add spaces around "=" and after
25671         ";-in-for-stmt".
25672
25673 2011-01-14  Markus Duft <mduft@gentoo.org>
25674
25675         mountlist: add support for Interix
25676         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25677         Apply statvfs to all entries of /dev/fs.
25678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25679         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25680
25681 2011-01-20  Jim Meyering  <meyering@redhat.com>
25682
25683         maint.mk: improve the public-submodule-commit rule
25684         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25685         to suppress printing of its commands... unless V=1.
25686         Add git submodule's --quiet option to suppress printing of e.g.,
25687         "Entering gnulib" output.
25688         "cd" into $(srcdir) before running git submodule.
25689
25690 2011-01-20  Bruno Haible  <bruno@clisp.org>
25691
25692         include_next: Fix bug introduced on 2011-01-18.
25693         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25694         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25695         ac_cv_header_... variable if the second argument is not 'check'.
25696         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25697         gl_NEXT_HEADERS_INTERNAL.
25698
25699 2011-01-20  Bruno Haible  <bruno@clisp.org>
25700
25701         Allow the user to avoid the GNULIB_TEST_* macros.
25702         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25703         Suggested by Paul Eggert.
25704
25705 2011-01-14  Jim Meyering  <meyering@redhat.com>
25706
25707         bootstrap: avoid failure when there is no .gitmodules file
25708         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25709         has been assigned to, even when its value is the empty string.
25710         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25711         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25712         Reported by John W. Eaton <jwe@gnu.org>.
25713
25714 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25715
25716         assume <ctype.h>, ..., <time.h> exist
25717         For years gnulib has been assuming the existence of the headers
25718         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25719         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25720         them, since they don't appear to be needed.
25721         * README (Portability guidelines): Document this.
25722         * lib/flock.c: Assume <fcntl.h> exists.
25723         * lib/regex_internal.h: Assume <locale.h> exists.
25724         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25725         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25726         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25727         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25728         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25729         * m4/regex.m4 (gl_REGEX): Likewise.
25730         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25731         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25732         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25733         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25734         * tests/test-argp.c: Likewise.
25735         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25736
25737         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25738         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25739         AA_APPLE_UNIVERSAL_BUILD.  See
25740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25741         * NEWS: Document this.
25742
25743 2011-01-19  Eric Blake  <eblake@redhat.com>
25744
25745         c-stack: assume stack overflow if SA_SIGINFO unsupported
25746         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25747         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25748         sigaction will work.
25749         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25750         behavior match Linux.
25751         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25752
25753         stdbool-tests: accommodate Haiku
25754         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25755
25756         binary-io: fix O_TEXT on Haiku
25757         * modules/binary-io (Depends-on): Add fcntl-h.
25758         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25759         than blindly undefining O_TEXT.
25760         Reported by Scott McCreary.
25761
25762 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25763
25764         include_next: do not check for standard headers like stddef.h
25765
25766         I found this problem when modifying Emacs to use gnulib.
25767         I noticed that it added HAVE_STDDEF_H to config.h, even though
25768         gnulib always assumes <stddef.h> exists as per README and this
25769         symbol is unnecessary.
25770         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25771         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25772         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25773         faster for headers like stddef.h that are known to exist.
25774         (gl_CHECK_NEXT_HEADERS): Use it.
25775         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25776         rather than gl_CHECK_NEXT_HEADERS.
25777         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25778         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25779
25780 2011-01-18  Eric Blake  <eblake@redhat.com>
25781
25782         ansi-c++-opt: skip C++ dependency style if C++ is unused
25783         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25784         tests when we know C++ compilation is not desired.
25785         Reported by Scott McCreary.
25786
25787 2011-01-18  Bruno Haible  <bruno@clisp.org>
25788
25789         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25790         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25791         (main): Perform test also when getrlimit and setrlimit don't exist or
25792         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25793         limiting the address space size using setrlimit, compare the address
25794         space size before and after the the test.
25795         * tests/test-dprintf-posix2.c: Likewise.
25796         * tests/test-fprintf-posix3.sh: Update skip messages.
25797         * tests/test-dprintf-posix2.sh: Likewise.
25798         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25799         * modules/dprintf-posix-tests (Depends-on): Likewise.
25800         Reported by Bruce Korb <bkorb@gnu.org> and
25801         Gary V. Vaughan <gary@gnu.org>.
25802
25803 2011-01-18  Bruno Haible  <bruno@clisp.org>
25804
25805         get-rusage-as: Improvement for Cygwin.
25806         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25807         areas that are merely reserved.
25808
25809 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25810
25811         strftime: remove dependencies on multibyte modules
25812
25813         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25814         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25815         only if __osf__ is defined, and I suspect OSF doesn't need these
25816         other modules.  If my guess is wrong, we'll need to come up with a
25817         variant of strftime that doesn't need the multibyte modules.
25818
25819         I discovered this problem when attempting modify Emacs to use the
25820         strftime module.  With the previous gnulib, this caused Emacs to
25821         need 31 new files, ranging from lib/config.charset to
25822         m4/wint_t.m4.  This was overkill and I expect would be offputting
25823         to the Emacs maintainers.  After this change, only 6 new files are
25824         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25825         stdbool.m4, and tm_gmtoff.m4.
25826
25827         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25828         Suggested by Bruno Haible in
25829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25830         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25831         and do not check for wchar.h.
25832         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25833         (Depends-on): Remove mbrlen, mbsinit, wchar.
25834
25835 2011-01-18  Bruno Haible  <bruno@clisp.org>
25836
25837         Tests for module 'get-rusage-as'.
25838         * modules/get-rusage-as-tests: New file.
25839         * tests/test-get-rusage-as.c: New file.
25840
25841         New module 'get-rusage-as'.
25842         * modules/get-rusage-as: New file.
25843         * lib/resource-ext.h: New file.
25844         * lib/get-rusage-as.c: New file.
25845
25846 2011-01-17  Eric Blake  <eblake@redhat.com>
25847
25848         sigaction: relax license from LGPLv3+ to LGPLv2+
25849         * modules/sigaction (License): Relax to LGPLv2+.
25850
25851 2011-01-14  Bruno Haible  <bruno@clisp.org>
25852
25853         filemode: Make function declarations usable in C++ mode.
25854         * lib/filemode.h: Enclose function declarations in extern "C" block.
25855         Reported by John W. Eaton <jwe@gnu.org>.
25856
25857 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25858
25859         save-cwd: no longer include "xgetcwd.h"
25860         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25861         This avoids a compilation failure in projects that use save-cwd
25862         without also using the xgetcwd module.
25863
25864 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25865
25866         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25867         This is so that a program like Emacs, which needs only dtoastr,
25868         does not have to bother with distributing and compiling ftoastr
25869         and ldtoastr.
25870         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25871         * modules/dtoastr, modules/ldtoastr: New files.
25872         * modules/ftoastr: Now works just for 'float'.
25873         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25874         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25875         dtoastr.c, ldtoastr.c.
25876
25877 2011-01-11  Jim Meyering  <meyering@redhat.com>
25878
25879         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25880         There is no need to work around the lack of the fchdir function,
25881         since gnulib can now provide a replacement when required.
25882         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25883         * modules/save-cwd (Depends-on): Add fchdir.
25884
25885 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25886
25887         openat, save-cwd: avoid xmalloc
25888
25889         This removes a direct (but undocumented) dependency of openat on
25890         xalloc, along with an indirect dependency via save-cwd.  It also
25891         removes a dependency of save-cwd on xgetcwd, and thereby
25892         indirectly on xalloc.  This change causes the openat substitute
25893         to fall back on save_cwd when memory is tight, and for save_cwd to
25894         fail instead of dying when memory is tight, but that's good enough.
25895         Problem and initial idea for fix reported by Bastien Roucaries in
25896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25897
25898         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25899         xalloc.h (for xmalloc).
25900         (openat_proc_name): Use malloc, not xmalloc.
25901         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25902         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25903
25904         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25905         This avoids heap allocation for file names whose lengths are in
25906         the range 512..1023, with the upper bound increasing to at most
25907         4031 depending on the platform's PATH_MAX.  (We do not want
25908         pathmax.h here as it might supply a non-constant PATH_MAX.)
25909         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25910         Perhaps they should be moved to malloca.h?
25911         (OPENAT_BUFFER_SIZE): Use them.
25912
25913 2011-01-10  Bruno Haible  <bruno@clisp.org>
25914
25915         doc: Update users.txt.
25916         * users.txt: Add recutils.
25917
25918 2011-01-09  Karl Berry  <karl@gnu.org>
25919
25920         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25921
25922         * doc/configmake.texi: New file.
25923         * doc/gnulib.texi: Include it.
25924         * modules/configmake: Move documentation from here.
25925
25926 2011-01-09  Bruno Haible  <bruno@clisp.org>
25927
25928         Update to Unicode 6.0.0.
25929         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25930         (get_lbp): Update for Unicode 6.0.0.
25931         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25932         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25933         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25934         U+11001, U+11038..U+11046. Remove U+06DE.
25935         (uc_width): Fix bounds of planes.
25936         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25937         lib/uniwidth/width.c.
25938         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25939         trailing whitespace removed.
25940         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25941         without comments, but with the original copyright notice.
25942         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25943         * lib/unicase/ignorable.h: Likewise.
25944         * lib/unicase/tocasefold.h: Likewise.
25945         * lib/unicase/tolower.h: Likewise.
25946         * lib/unicase/totitle.h: Likewise.
25947         * lib/unicase/toupper.h: Likewise.
25948         * lib/unictype/bidi_of.h: Likewise.
25949         * lib/unictype/blocks.h: Likewise.
25950         * lib/unictype/categ_C.h: Likewise.
25951         * lib/unictype/categ_Cn.h: Likewise.
25952         * lib/unictype/categ_L.h: Likewise.
25953         * lib/unictype/categ_Ll.h: Likewise.
25954         * lib/unictype/categ_Lm.h: Likewise.
25955         * lib/unictype/categ_Lo.h: Likewise.
25956         * lib/unictype/categ_Lu.h: Likewise.
25957         * lib/unictype/categ_M.h: Likewise.
25958         * lib/unictype/categ_Mc.h: Likewise.
25959         * lib/unictype/categ_Me.h: Likewise.
25960         * lib/unictype/categ_Mn.h: Likewise.
25961         * lib/unictype/categ_N.h: Likewise.
25962         * lib/unictype/categ_Nd.h: Likewise.
25963         * lib/unictype/categ_No.h: Likewise.
25964         * lib/unictype/categ_P.h: Likewise.
25965         * lib/unictype/categ_Po.h: Likewise.
25966         * lib/unictype/categ_S.h: Likewise.
25967         * lib/unictype/categ_Sc.h: Likewise.
25968         * lib/unictype/categ_Sk.h: Likewise.
25969         * lib/unictype/categ_Sm.h: Likewise.
25970         * lib/unictype/categ_So.h: Likewise.
25971         * lib/unictype/categ_of.h: Likewise.
25972         * lib/unictype/combining.h: Likewise.
25973         * lib/unictype/ctype_alnum.h: Likewise.
25974         * lib/unictype/ctype_alpha.h: Likewise.
25975         * lib/unictype/ctype_graph.h: Likewise.
25976         * lib/unictype/ctype_lower.h: Likewise.
25977         * lib/unictype/ctype_print.h: Likewise.
25978         * lib/unictype/ctype_punct.h: Likewise.
25979         * lib/unictype/ctype_upper.h: Likewise.
25980         * lib/unictype/decdigit.h: Likewise.
25981         * lib/unictype/digit.h: Likewise.
25982         * lib/unictype/numeric.h: Likewise.
25983         * lib/unictype/pr_alphabetic.h: Likewise.
25984         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25985         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25986         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25987         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25988         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25989         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25990         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25991         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25992         * lib/unictype/pr_case_ignorable.h: Likewise.
25993         * lib/unictype/pr_cased.h: Likewise.
25994         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25995         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25996         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25997         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25998         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25999         * lib/unictype/pr_combining.h: Likewise.
26000         * lib/unictype/pr_composite.h: Likewise.
26001         * lib/unictype/pr_currency_symbol.h: Likewise.
26002         * lib/unictype/pr_decimal_digit.h: Likewise.
26003         * lib/unictype/pr_deprecated.h: Likewise.
26004         * lib/unictype/pr_format_control.h: Likewise.
26005         * lib/unictype/pr_grapheme_base.h: Likewise.
26006         * lib/unictype/pr_grapheme_extend.h: Likewise.
26007         * lib/unictype/pr_grapheme_link.h: Likewise.
26008         * lib/unictype/pr_id_continue.h: Likewise.
26009         * lib/unictype/pr_id_start.h: Likewise.
26010         * lib/unictype/pr_ideographic.h: Likewise.
26011         * lib/unictype/pr_lowercase.h: Likewise.
26012         * lib/unictype/pr_math.h: Likewise.
26013         * lib/unictype/pr_numeric.h: Likewise.
26014         * lib/unictype/pr_other_alphabetic.h: Likewise.
26015         * lib/unictype/pr_other_id_continue.h: Likewise.
26016         * lib/unictype/pr_other_math.h: Likewise.
26017         * lib/unictype/pr_punctuation.h: Likewise.
26018         * lib/unictype/pr_sentence_terminal.h: Likewise.
26019         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26020         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26021         * lib/unictype/pr_unified_ideograph.h: Likewise.
26022         * lib/unictype/pr_uppercase.h: Likewise.
26023         * lib/unictype/pr_xid_continue.h: Likewise.
26024         * lib/unictype/pr_xid_start.h: Likewise.
26025         * lib/unictype/scripts.h: Likewise.
26026         * lib/unictype/scripts_byname.gperf: Likewise.
26027         * lib/unictype/sy_java_ident.h: Likewise.
26028         * lib/unigbrk/gbrkprop.h: Likewise.
26029         * lib/unilbrk/lbrkprop1.h: Likewise.
26030         * lib/unilbrk/lbrkprop2.h: Likewise.
26031         * lib/uninorm/decomposition-table2.h: Likewise.
26032         * lib/uniwbrk/wbrkprop.h: Likewise.
26033         * tests/unicase/test-cased.c: Likewise.
26034         * tests/unicase/test-ignorable.c: Likewise.
26035         * tests/unicase/test-uc_tolower.c: Likewise.
26036         * tests/unicase/test-uc_totitle.c: Likewise.
26037         * tests/unicase/test-uc_toupper.c: Likewise.
26038         * tests/unictype/test-categ_C.c: Likewise.
26039         * tests/unictype/test-categ_Cn.c: Likewise.
26040         * tests/unictype/test-categ_L.c: Likewise.
26041         * tests/unictype/test-categ_Ll.c: Likewise.
26042         * tests/unictype/test-categ_Lm.c: Likewise.
26043         * tests/unictype/test-categ_Lo.c: Likewise.
26044         * tests/unictype/test-categ_Lu.c: Likewise.
26045         * tests/unictype/test-categ_M.c: Likewise.
26046         * tests/unictype/test-categ_Mc.c: Likewise.
26047         * tests/unictype/test-categ_Me.c: Likewise.
26048         * tests/unictype/test-categ_Mn.c: Likewise.
26049         * tests/unictype/test-categ_N.c: Likewise.
26050         * tests/unictype/test-categ_Nd.c: Likewise.
26051         * tests/unictype/test-categ_No.c: Likewise.
26052         * tests/unictype/test-categ_P.c: Likewise.
26053         * tests/unictype/test-categ_Po.c: Likewise.
26054         * tests/unictype/test-categ_S.c: Likewise.
26055         * tests/unictype/test-categ_Sc.c: Likewise.
26056         * tests/unictype/test-categ_Sk.c: Likewise.
26057         * tests/unictype/test-categ_Sm.c: Likewise.
26058         * tests/unictype/test-categ_So.c: Likewise.
26059         * tests/unictype/test-ctype_alnum.c: Likewise.
26060         * tests/unictype/test-ctype_alpha.c: Likewise.
26061         * tests/unictype/test-ctype_graph.c: Likewise.
26062         * tests/unictype/test-ctype_lower.c: Likewise.
26063         * tests/unictype/test-ctype_print.c: Likewise.
26064         * tests/unictype/test-ctype_punct.c: Likewise.
26065         * tests/unictype/test-ctype_upper.c: Likewise.
26066         * tests/unictype/test-decdigit.h: Likewise.
26067         * tests/unictype/test-digit.h: Likewise.
26068         * tests/unictype/test-numeric.h: Likewise.
26069         * tests/unictype/test-pr_alphabetic.c: Likewise.
26070         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26071         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26072         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26073         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26074         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26075         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26076         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26077         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26078         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26079         * tests/unictype/test-pr_cased.c: Likewise.
26080         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26081         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26082         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26083         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26084         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26085         * tests/unictype/test-pr_combining.c: Likewise.
26086         * tests/unictype/test-pr_composite.c: Likewise.
26087         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26088         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26089         * tests/unictype/test-pr_deprecated.c: Likewise.
26090         * tests/unictype/test-pr_format_control.c: Likewise.
26091         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26092         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26093         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26094         * tests/unictype/test-pr_id_continue.c: Likewise.
26095         * tests/unictype/test-pr_id_start.c: Likewise.
26096         * tests/unictype/test-pr_ideographic.c: Likewise.
26097         * tests/unictype/test-pr_lowercase.c: Likewise.
26098         * tests/unictype/test-pr_math.c: Likewise.
26099         * tests/unictype/test-pr_numeric.c: Likewise.
26100         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26101         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26102         * tests/unictype/test-pr_other_math.c: Likewise.
26103         * tests/unictype/test-pr_punctuation.c: Likewise.
26104         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26105         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26106         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26107         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26108         * tests/unictype/test-pr_uppercase.c: Likewise.
26109         * tests/unictype/test-pr_xid_continue.c: Likewise.
26110         * tests/unictype/test-pr_xid_start.c: Likewise.
26111         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26112         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26113         changes.
26114         * lib/unictype/categ_Cc.h: Likewise.
26115         * lib/unictype/categ_Cf.h: Likewise.
26116         * lib/unictype/categ_Co.h: Likewise.
26117         * lib/unictype/categ_Cs.h: Likewise.
26118         * lib/unictype/categ_Lt.h: Likewise.
26119         * lib/unictype/categ_Nl.h: Likewise.
26120         * lib/unictype/categ_Pc.h: Likewise.
26121         * lib/unictype/categ_Pd.h: Likewise.
26122         * lib/unictype/categ_Pe.h: Likewise.
26123         * lib/unictype/categ_Pf.h: Likewise.
26124         * lib/unictype/categ_Pi.h: Likewise.
26125         * lib/unictype/categ_Ps.h: Likewise.
26126         * lib/unictype/categ_Z.h: Likewise.
26127         * lib/unictype/categ_Zl.h: Likewise.
26128         * lib/unictype/categ_Zp.h: Likewise.
26129         * lib/unictype/categ_Zs.h: Likewise.
26130         * lib/unictype/ctype_blank.h: Likewise.
26131         * lib/unictype/ctype_cntrl.h: Likewise.
26132         * lib/unictype/ctype_digit.h: Likewise.
26133         * lib/unictype/ctype_space.h: Likewise.
26134         * lib/unictype/ctype_xdigit.h: Likewise.
26135         * lib/unictype/mirror.h: Likewise.
26136         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26137         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26138         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26139         * lib/unictype/pr_bidi_control.h: Likewise.
26140         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26141         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26142         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26143         * lib/unictype/pr_bidi_pdf.h: Likewise.
26144         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26145         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26146         * lib/unictype/pr_dash.h: Likewise.
26147         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26148         * lib/unictype/pr_diacritic.h: Likewise.
26149         * lib/unictype/pr_extender.h: Likewise.
26150         * lib/unictype/pr_hex_digit.h: Likewise.
26151         * lib/unictype/pr_hyphen.h: Likewise.
26152         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26153         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26154         * lib/unictype/pr_ignorable_control.h: Likewise.
26155         * lib/unictype/pr_iso_control.h: Likewise.
26156         * lib/unictype/pr_join_control.h: Likewise.
26157         * lib/unictype/pr_left_of_pair.h: Likewise.
26158         * lib/unictype/pr_line_separator.h: Likewise.
26159         * lib/unictype/pr_logical_order_exception.h: Likewise.
26160         * lib/unictype/pr_non_break.h: Likewise.
26161         * lib/unictype/pr_not_a_character.h: Likewise.
26162         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26163         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26164         * lib/unictype/pr_other_id_start.h: Likewise.
26165         * lib/unictype/pr_other_lowercase.h: Likewise.
26166         * lib/unictype/pr_other_uppercase.h: Likewise.
26167         * lib/unictype/pr_paired_punctuation.h: Likewise.
26168         * lib/unictype/pr_paragraph_separator.h: Likewise.
26169         * lib/unictype/pr_pattern_syntax.h: Likewise.
26170         * lib/unictype/pr_pattern_white_space.h: Likewise.
26171         * lib/unictype/pr_private_use.h: Likewise.
26172         * lib/unictype/pr_quotation_mark.h: Likewise.
26173         * lib/unictype/pr_radical.h: Likewise.
26174         * lib/unictype/pr_soft_dotted.h: Likewise.
26175         * lib/unictype/pr_space.h: Likewise.
26176         * lib/unictype/pr_titlecase.h: Likewise.
26177         * lib/unictype/pr_variation_selector.h: Likewise.
26178         * lib/unictype/pr_white_space.h: Likewise.
26179         * lib/unictype/pr_zero_width.h: Likewise.
26180         * lib/unictype/sy_c_ident.h: Likewise.
26181         * lib/unictype/sy_c_whitespace.h: Likewise.
26182         * lib/unictype/sy_java_whitespace.h: Likewise.
26183         * lib/uninorm/composition-table.gperf: Likewise.
26184         * lib/uninorm/decomposition-table1.h: Likewise.
26185         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26186         LB8.
26187         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26188         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26189         * modules/unictype/*: Bump version number of expected libunistring
26190         version.
26191
26192 2011-01-09  Bruno Haible  <bruno@clisp.org>
26193
26194         Update to Unicode 5.2.0.
26195         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26196         trailing whitespace removed.
26197
26198 2011-01-09  Bruno Haible  <bruno@clisp.org>
26199
26200         New Unicode character properties, from Unicode 5.2.0.
26201         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26202         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26203         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26204         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26205         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26206         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26207         uc_is_property_cased, uc_is_property_case_ignorable,
26208         uc_is_property_changes_when_lowercased,
26209         uc_is_property_changes_when_uppercased,
26210         uc_is_property_changes_when_titlecased,
26211         uc_is_property_changes_when_casefolded,
26212         uc_is_property_changes_when_casemapped): New declarations.
26213         * lib/unictype/pr_byname.gperf: Add the new properties.
26214         * modules/unictype/property-byname (Depends-on): Depend on the new
26215         properties modules.
26216         * modules/unictype/property-all (Depends-on): Likewise.
26217         * MODULES.html.sh (Unicode string functions): Add
26218         unictype/property-case-ignorable, unictype/property-cased,
26219         unictype/property-changes-when-casefolded,
26220         unictype/property-changes-when-casemapped,
26221         unictype/property-changes-when-lowercased,
26222         unictype/property-changes-when-titlecased,
26223         unictype/property-changes-when-uppercased.
26224
26225         New module 'unictype/property-changes-when-casemapped'.
26226         * modules/unictype/property-changes-when-casemapped: New file.
26227         * lib/unictype/pr_changes_when_casemapped.c: New file.
26228         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26229         generated by gen-uni-tables.
26230         * modules/unictype/property-changes-when-casemapped-tests: New file.
26231         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26232         automatically generated by gen-uni-tables.
26233
26234         New module 'unictype/property-changes-when-casefolded'.
26235         * modules/unictype/property-changes-when-casefolded: New file.
26236         * lib/unictype/pr_changes_when_casefolded.c: New file.
26237         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26238         generated by gen-uni-tables.
26239         * modules/unictype/property-changes-when-casefolded-tests: New file.
26240         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26241         automatically generated by gen-uni-tables.
26242
26243         New module 'unictype/property-changes-when-titlecased'.
26244         * modules/unictype/property-changes-when-titlecased: New file.
26245         * lib/unictype/pr_changes_when_titlecased.c: New file.
26246         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26247         generated by gen-uni-tables.
26248         * modules/unictype/property-changes-when-titlecased-tests: New file.
26249         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26250         automatically generated by gen-uni-tables.
26251
26252         New module 'unictype/property-changes-when-uppercased'.
26253         * modules/unictype/property-changes-when-uppercased: New file.
26254         * lib/unictype/pr_changes_when_uppercased.c: New file.
26255         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26256         generated by gen-uni-tables.
26257         * modules/unictype/property-changes-when-uppercased-tests: New file.
26258         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26259         automatically generated by gen-uni-tables.
26260
26261         New module 'unictype/property-changes-when-lowercased'.
26262         * modules/unictype/property-changes-when-lowercased: New file.
26263         * lib/unictype/pr_changes_when_lowercased.c: New file.
26264         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26265         generated by gen-uni-tables.
26266         * modules/unictype/property-changes-when-lowercased-tests: New file.
26267         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26268         automatically generated by gen-uni-tables.
26269
26270         New module 'unictype/property-case-ignorable'.
26271         * modules/unictype/property-case-ignorable: New file.
26272         * lib/unictype/pr_case_ignorable.c: New file.
26273         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26274         by gen-uni-tables.
26275         * modules/unictype/property-case-ignorable-tests: New file.
26276         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26277         generated by gen-uni-tables.
26278
26279         New module 'unictype/property-cased'.
26280         * modules/unictype/property-cased: New file.
26281         * lib/unictype/pr_cased.c: New file.
26282         * lib/unictype/pr_cased.h: New file, automatically generated by
26283         gen-uni-tables.
26284         * modules/unictype/property-cased-tests: New file.
26285         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26286         gen-uni-tables.
26287
26288 2011-01-09  Bruno Haible  <bruno@clisp.org>
26289
26290         Update to Unicode 5.2.0.
26291         * lib/gen-uni-tables.c (output_predicate, output_category,
26292         output_combclass, output_bidi_category, output_decimal_digit_test,
26293         output_decimal_digit, output_digit_test, output_digit,
26294         output_numeric_test, output_numeric, output_mirror, output_scripts,
26295         output_scripts_byname, output_blocks, output_ident_category): Fix
26296         comment header.
26297         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26298         get_wbp.
26299         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26300         items.
26301         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26302         Changes_When_Lowercased, Changes_When_Uppercased,
26303         Changes_When_Titlecased, Changes_When_Casefolded,
26304         Changes_When_Casemapped.
26305         (is_property_alphabetic, is_property_default_ignorable_code_point):
26306         Update for Unicode 5.2.0.
26307         (is_property_cased, is_property_case_ignorable,
26308         is_property_changes_when_lowercased,
26309         is_property_changes_when_uppercased,
26310         is_property_changes_when_titlecased,
26311         is_property_changes_when_casefolded,
26312         is_property_changes_when_casemapped): New functions.
26313         (output_properties): Output also the properties cased, case_ignorable,
26314         changes_when_lowercased, changes_when_uppercased,
26315         changes_when_titlecased, changes_when_casefolded,
26316         changes_when_casemapped.
26317         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26318         Unicode TR#11 revision 17 -> 19.
26319         (LBP_CP): New enumeration value.
26320         (LBP_*): Adjust values accordingly.
26321         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26322         TR#14 revision 22 -> 24.
26323         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26324         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26325         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26326         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26327         is_WBP_MIDLETTER.
26328         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26329         the code1 and code2 of each composition rule.
26330         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26331         * lib/unicase/ignorable.h: Likewise.
26332         * lib/unicase/tocasefold.h: Likewise.
26333         * lib/unicase/tolower.h: Likewise.
26334         * lib/unicase/totitle.h: Likewise.
26335         * lib/unicase/toupper.h: Likewise.
26336         * lib/unictype/bidi_of.h: Likewise.
26337         * lib/unictype/blocks.h: Likewise.
26338         * lib/unictype/categ_C.h: Likewise.
26339         * lib/unictype/categ_Cf.h: Likewise.
26340         * lib/unictype/categ_Cn.h: Likewise.
26341         * lib/unictype/categ_L.h: Likewise.
26342         * lib/unictype/categ_Ll.h: Likewise.
26343         * lib/unictype/categ_Lm.h: Likewise.
26344         * lib/unictype/categ_Lo.h: Likewise.
26345         * lib/unictype/categ_Lu.h: Likewise.
26346         * lib/unictype/categ_M.h: Likewise.
26347         * lib/unictype/categ_Mc.h: Likewise.
26348         * lib/unictype/categ_Mn.h: Likewise.
26349         * lib/unictype/categ_N.h: Likewise.
26350         * lib/unictype/categ_Nd.h: Likewise.
26351         * lib/unictype/categ_Nl.h: Likewise.
26352         * lib/unictype/categ_No.h: Likewise.
26353         * lib/unictype/categ_P.h: Likewise.
26354         * lib/unictype/categ_Pd.h: Likewise.
26355         * lib/unictype/categ_Po.h: Likewise.
26356         * lib/unictype/categ_S.h: Likewise.
26357         * lib/unictype/categ_Sc.h: Likewise.
26358         * lib/unictype/categ_So.h: Likewise.
26359         * lib/unictype/categ_of.h: Likewise.
26360         * lib/unictype/combining.h: Likewise.
26361         * lib/unictype/ctype_alnum.h: Likewise.
26362         * lib/unictype/ctype_alpha.h: Likewise.
26363         * lib/unictype/ctype_graph.h: Likewise.
26364         * lib/unictype/ctype_lower.h: Likewise.
26365         * lib/unictype/ctype_print.h: Likewise.
26366         * lib/unictype/ctype_punct.h: Likewise.
26367         * lib/unictype/ctype_upper.h: Likewise.
26368         * lib/unictype/decdigit.h: Likewise.
26369         * lib/unictype/digit.h: Likewise.
26370         * lib/unictype/numeric.h: Likewise.
26371         * lib/unictype/pr_alphabetic.h: Likewise.
26372         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26373         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26374         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26375         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26376         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26377         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26378         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26379         * lib/unictype/pr_combining.h: Likewise.
26380         * lib/unictype/pr_composite.h: Likewise.
26381         * lib/unictype/pr_currency_symbol.h: Likewise.
26382         * lib/unictype/pr_dash.h: Likewise.
26383         * lib/unictype/pr_decimal_digit.h: Likewise.
26384         * lib/unictype/pr_deprecated.h: Likewise.
26385         * lib/unictype/pr_diacritic.h: Likewise.
26386         * lib/unictype/pr_extender.h: Likewise.
26387         * lib/unictype/pr_grapheme_base.h: Likewise.
26388         * lib/unictype/pr_grapheme_extend.h: Likewise.
26389         * lib/unictype/pr_grapheme_link.h: Likewise.
26390         * lib/unictype/pr_id_continue.h: Likewise.
26391         * lib/unictype/pr_id_start.h: Likewise.
26392         * lib/unictype/pr_ideographic.h: Likewise.
26393         * lib/unictype/pr_ignorable_control.h: Likewise.
26394         * lib/unictype/pr_logical_order_exception.h: Likewise.
26395         * lib/unictype/pr_lowercase.h: Likewise.
26396         * lib/unictype/pr_numeric.h: Likewise.
26397         * lib/unictype/pr_other_alphabetic.h: Likewise.
26398         * lib/unictype/pr_punctuation.h: Likewise.
26399         * lib/unictype/pr_sentence_terminal.h: Likewise.
26400         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26401         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26402         * lib/unictype/pr_unified_ideograph.h: Likewise.
26403         * lib/unictype/pr_uppercase.h: Likewise.
26404         * lib/unictype/pr_xid_continue.h: Likewise.
26405         * lib/unictype/pr_xid_start.h: Likewise.
26406         * lib/unictype/pr_zero_width.h: Likewise.
26407         * lib/unictype/scripts.h: Likewise.
26408         * lib/unictype/scripts_byname.gperf: Likewise.
26409         * lib/unictype/sy_java_ident.h: Likewise.
26410         * lib/unigbrk/gbrkprop.h: Likewise.
26411         * lib/unilbrk/lbrkprop1.h: Likewise.
26412         * lib/unilbrk/lbrkprop2.h: Likewise.
26413         * lib/unilbrk/lbrktables.h: Likewise.
26414         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26415         LBP_CP. Implement rule LB30.
26416         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26417         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26418         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26419         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26420         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26421         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26422         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26423         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26424         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26425         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26426         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26427         bits instead of 16 bits in the code1 and code2 of each composition
26428         rule.
26429         (uc_composition): Update for Unicode 5.2.0.
26430         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26431         * lib/uninorm/decomposition-table2.h: Likewise.
26432         * lib/uniwbrk/wbrkprop.h: Likewise.
26433         * tests/unicase/test-cased.c: Likewise.
26434         * tests/unicase/test-ignorable.c: Likewise.
26435         * tests/unicase/test-uc_tolower.c: Likewise.
26436         * tests/unicase/test-uc_totitle.c: Likewise.
26437         * tests/unicase/test-uc_toupper.c: Likewise.
26438         * tests/unictype/test-categ_C.c: Likewise.
26439         * tests/unictype/test-categ_Cf.c: Likewise.
26440         * tests/unictype/test-categ_Cn.c: Likewise.
26441         * tests/unictype/test-categ_L.c: Likewise.
26442         * tests/unictype/test-categ_Ll.c: Likewise.
26443         * tests/unictype/test-categ_Lm.c: Likewise.
26444         * tests/unictype/test-categ_Lo.c: Likewise.
26445         * tests/unictype/test-categ_Lu.c: Likewise.
26446         * tests/unictype/test-categ_M.c: Likewise.
26447         * tests/unictype/test-categ_Mc.c: Likewise.
26448         * tests/unictype/test-categ_Mn.c: Likewise.
26449         * tests/unictype/test-categ_N.c: Likewise.
26450         * tests/unictype/test-categ_Nd.c: Likewise.
26451         * tests/unictype/test-categ_Nl.c: Likewise.
26452         * tests/unictype/test-categ_No.c: Likewise.
26453         * tests/unictype/test-categ_P.c: Likewise.
26454         * tests/unictype/test-categ_Pd.c: Likewise.
26455         * tests/unictype/test-categ_Po.c: Likewise.
26456         * tests/unictype/test-categ_S.c: Likewise.
26457         * tests/unictype/test-categ_Sc.c: Likewise.
26458         * tests/unictype/test-categ_So.c: Likewise.
26459         * tests/unictype/test-ctype_alnum.c: Likewise.
26460         * tests/unictype/test-ctype_alpha.c: Likewise.
26461         * tests/unictype/test-ctype_graph.c: Likewise.
26462         * tests/unictype/test-ctype_lower.c: Likewise.
26463         * tests/unictype/test-ctype_print.c: Likewise.
26464         * tests/unictype/test-ctype_punct.c: Likewise.
26465         * tests/unictype/test-ctype_upper.c: Likewise.
26466         * tests/unictype/test-decdigit.h: Likewise.
26467         * tests/unictype/test-digit.h: Likewise.
26468         * tests/unictype/test-numeric.h: Likewise.
26469         * tests/unictype/test-pr_alphabetic.c: Likewise.
26470         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26471         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26472         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26473         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26474         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26475         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26476         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26477         * tests/unictype/test-pr_combining.c: Likewise.
26478         * tests/unictype/test-pr_composite.c: Likewise.
26479         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26480         * tests/unictype/test-pr_dash.c: Likewise.
26481         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26482         * tests/unictype/test-pr_deprecated.c: Likewise.
26483         * tests/unictype/test-pr_diacritic.c: Likewise.
26484         * tests/unictype/test-pr_extender.c: Likewise.
26485         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26486         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26487         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26488         * tests/unictype/test-pr_id_continue.c: Likewise.
26489         * tests/unictype/test-pr_id_start.c: Likewise.
26490         * tests/unictype/test-pr_ideographic.c: Likewise.
26491         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26492         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26493         * tests/unictype/test-pr_lowercase.c: Likewise.
26494         * tests/unictype/test-pr_numeric.c: Likewise.
26495         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26496         * tests/unictype/test-pr_punctuation.c: Likewise.
26497         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26498         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26499         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26500         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26501         * tests/unictype/test-pr_uppercase.c: Likewise.
26502         * tests/unictype/test-pr_xid_continue.c: Likewise.
26503         * tests/unictype/test-pr_xid_start.c: Likewise.
26504         * tests/unictype/test-pr_zero_width.c: Likewise.
26505         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26506         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26507         changed behaviour: line breaking is now disallowed between a letter
26508         or '=' and '('.
26509         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26510         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26511         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26512         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26513         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26514         lib/uniwidth/width.c.
26515         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26516         without comments, but with the original copyright notice.
26517         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26518         changes.
26519         * lib/unictype/categ_Cc.h: Likewise.
26520         * lib/unictype/categ_Co.h: Likewise.
26521         * lib/unictype/categ_Cs.h: Likewise.
26522         * lib/unictype/categ_Lt.h: Likewise.
26523         * lib/unictype/categ_Me.h: Likewise.
26524         * lib/unictype/categ_Pc.h: Likewise.
26525         * lib/unictype/categ_Pe.h: Likewise.
26526         * lib/unictype/categ_Pf.h: Likewise.
26527         * lib/unictype/categ_Pi.h: Likewise.
26528         * lib/unictype/categ_Ps.h: Likewise.
26529         * lib/unictype/categ_Sk.h: Likewise.
26530         * lib/unictype/categ_Sm.h: Likewise.
26531         * lib/unictype/categ_Z.h: Likewise.
26532         * lib/unictype/categ_Zl.h: Likewise.
26533         * lib/unictype/categ_Zp.h: Likewise.
26534         * lib/unictype/categ_Zs.h: Likewise.
26535         * lib/unictype/ctype_blank.h: Likewise.
26536         * lib/unictype/ctype_cntrl.h: Likewise.
26537         * lib/unictype/ctype_digit.h: Likewise.
26538         * lib/unictype/ctype_space.h: Likewise.
26539         * lib/unictype/ctype_xdigit.h: Likewise.
26540         * lib/unictype/mirror.h: Likewise.
26541         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26542         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26543         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26544         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26545         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26546         * lib/unictype/pr_bidi_control.h: Likewise.
26547         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26548         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26549         * lib/unictype/pr_bidi_pdf.h: Likewise.
26550         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26551         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26552         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26553         * lib/unictype/pr_format_control.h: Likewise.
26554         * lib/unictype/pr_hex_digit.h: Likewise.
26555         * lib/unictype/pr_hyphen.h: Likewise.
26556         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26557         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26558         * lib/unictype/pr_iso_control.h: Likewise.
26559         * lib/unictype/pr_join_control.h: Likewise.
26560         * lib/unictype/pr_left_of_pair.h: Likewise.
26561         * lib/unictype/pr_line_separator.h: Likewise.
26562         * lib/unictype/pr_math.h: Likewise.
26563         * lib/unictype/pr_non_break.h: Likewise.
26564         * lib/unictype/pr_not_a_character.h: Likewise.
26565         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26566         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26567         * lib/unictype/pr_other_id_continue.h: Likewise.
26568         * lib/unictype/pr_other_id_start.h: Likewise.
26569         * lib/unictype/pr_other_lowercase.h: Likewise.
26570         * lib/unictype/pr_other_math.h: Likewise.
26571         * lib/unictype/pr_other_uppercase.h: Likewise.
26572         * lib/unictype/pr_paired_punctuation.h: Likewise.
26573         * lib/unictype/pr_paragraph_separator.h: Likewise.
26574         * lib/unictype/pr_pattern_syntax.h: Likewise.
26575         * lib/unictype/pr_pattern_white_space.h: Likewise.
26576         * lib/unictype/pr_private_use.h: Likewise.
26577         * lib/unictype/pr_quotation_mark.h: Likewise.
26578         * lib/unictype/pr_radical.h: Likewise.
26579         * lib/unictype/pr_soft_dotted.h: Likewise.
26580         * lib/unictype/pr_space.h: Likewise.
26581         * lib/unictype/pr_titlecase.h: Likewise.
26582         * lib/unictype/pr_variation_selector.h: Likewise.
26583         * lib/unictype/pr_white_space.h: Likewise.
26584         * lib/unictype/sy_c_ident.h: Likewise.
26585         * lib/unictype/sy_c_whitespace.h: Likewise.
26586         * lib/unictype/sy_java_whitespace.h: Likewise.
26587         * modules/uni*/*: Bump version number of expected libunistring version.
26588         Reported by Simon Josefsson.
26589
26590 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26591
26592         useless-if-before-free: fix typo in --help and make the internal,
26593         automatic version date update process work once again.
26594         --help output contained a NUL character instead of the
26595         backslash-zero that was intended.  Also, the "must lie within
26596         the first 8 lines" line is on line 9, and hence not getting
26597         automatically updated.
26598         * build-aux/useless-if-before-free: Fix the former by adding a
26599         backslash, and the latter by condensing the three lines of what-it-does
26600         to a single line, leaving one line of slack for the future.
26601
26602 2011-01-09  Bruno Haible  <bruno@clisp.org>
26603
26604         uniwidth/width: Fix width of U+1D173..U+1D17A.
26605         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26606         symbolic_width, output_width_property_test): New functions.
26607         (main): Invoke output_nonspacing_property, output_width_property_test.
26608         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26609         U+1D173..U+1D17A.
26610         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26611         1.
26612         * modules/uniwidth/*: Bump version number of expected libunistring
26613         version.
26614         * modules/unilbrk/*: Likewise.
26615
26616 2011-01-08  Bruno Haible  <bruno@clisp.org>
26617
26618         uninorm tests: Preserve copyright of Unicode data file.
26619         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26620         Mention modifications.
26621
26622 2011-01-08  Bruno Haible  <bruno@clisp.org>
26623
26624         gen-uni-tables: Prepare for Unicode 5.2.0.
26625         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26626         (debug_output_lbp, output_lbp): Update.
26627
26628 2011-01-08  Bruno Haible  <bruno@clisp.org>
26629
26630         unilbrk: Clarify gen-uni-tables.c code.
26631         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26632         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26633         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26634
26635 2011-01-07  Bruno Haible  <bruno@clisp.org>
26636
26637         strtod: Restore errno when successfully parsing Infinity or NaN.
26638         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26639         restore the original errno.
26640
26641 2011-01-07  Bruno Haible  <bruno@clisp.org>
26642
26643         remove test: Avoid failure on HP-UX 11.
26644         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26645
26646 2011-01-07  Bruno Haible  <bruno@clisp.org>
26647
26648         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26649         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26650         error code.
26651
26652 2011-01-07  Pádraig Brady <P@draigBrady.com>
26653
26654         ignore-value: fixup comments, and add Eric Blake
26655         as an author since he rewrote the macros.
26656         * lib/ignore-value.h (ignore_value):  State that
26657         we now support aggregates.  Also specify exactly
26658         when the GCC warn_unused_result feature was added.
26659
26660 2011-01-06  Eric Blake  <eblake@redhat.com>
26661
26662         ignore-value: support aggregate types
26663         * lib/ignore-value.h (ignore_value): Provide separate gcc
26664         definition.
26665         * modules/ignore-value-tests: New test module.
26666         * tests/test-ignore-value.c: New test.
26667
26668         maint.mk: improve sc_prohibit_strcmp regex
26669         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26670         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26671         definition of STRNEQ.
26672
26673         signal: work around Haiku issue with SIGBUS
26674         * lib/siglist.h: Add comment.
26675         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26676         strsignal's favoring of SIGSEGV.
26677         * tests/test-signal.c (main): Avoid test failure.
26678         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26679         Reported by Scott McCreary.
26680
26681         maint.mk: add pre-release check to ensure submodule commits are public
26682         * top/maint.mk (public-submodule-commit): New rule.
26683         (submodule-checks): New variable.
26684         (alpha beta stable): Depend on the variable.
26685
26686 2011-01-05  Pádraig Brady <P@draigBrady.com>
26687         and Jim Meyering  <meyering@redhat.com>
26688
26689         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26690         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26691         (ATTRIBUTE_DEPRECATED): Define.
26692         (_ignore_case): New function.
26693         (ignore_value): New macro, to replace the old function.
26694         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26695         * modules/ignore-value (Depends-on): Add stdint.
26696
26697 2011-01-04  Eric Blake  <eblake@redhat.com>
26698
26699         doc: regenerate INSTALL
26700         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26701         @firstparagraphindent support, now that autoconf dropped it.
26702         (INSTALL_PRELUDE): Reinstate old macro.
26703         * doc/install.texi: Resync from autoconf.
26704         * doc/INSTALL: Reflect recent autoconf update.
26705         * doc/INSTALL.ISO: Likewise.
26706         * doc/INSTALL.UTF-8: Likewise.
26707         Reported by Karl Berry.
26708
26709 2011-01-04  Bruce Korb  <address@hidden>
26710
26711         git-version-gen: avoid a sub-shell
26712         * build-aux/git-version-gen: Redirect stderr in `...` via
26713         "exec 2>...", rather than via an added sub-shell.
26714
26715 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26716
26717         git-version-gen: use (...) rather than sh -c '...'
26718         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26719         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26720
26721 2011-01-03  Jim Meyering  <meyering@redhat.com>
26722
26723         git-version-gen: convert leading TABs to spaces
26724         * build-aux/git-version-gen: Expand leading TABs.
26725
26726         git-version-gen: handle failed "git rev-list"
26727         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26728         from git and proceeding as if it had succeeded but printed no SHA1
26729         checksums, suppress the diagnostic and handle the failure.
26730         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26731
26732         git-version-gen: include command name in one more diagnostic
26733         * build-aux/git-version-gen: When the required .tarball-version file
26734         was missing or unreadable, you might see the diagnostic from "cat",
26735         but no trace of the name of the invoking script.  Now, you still see
26736         the diagnostic from cat, but also get one from "git-version-gen: ".
26737         Inspired by a patch from Bruce Korb.
26738
26739         update-copyright: adjust test to match changed code
26740         * tests/test-update-copyright.sh: Change test's expected output
26741         to match new actual output.
26742
26743 2011-01-02  Bruno Haible  <bruno@clisp.org>
26744
26745         getlogin_r: Avoid test failure on HP-UX 11.
26746         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26747         ERANGE when the second argument is zero.
26748         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26749         portability problem.
26750
26751 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26752
26753         * build-aux/update-copyright: doc Simon's changes
26754
26755 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26756
26757         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26758         environment variable.
26759
26760 2011-01-02  Bruno Haible  <bruno@clisp.org>
26761
26762         unigbrk: Avoid gcc warnings.
26763         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26764         unused variable.
26765         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26766         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26767         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26768         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26769         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26770         Change type of first argument to 'const char *'.
26771         (main): Remove unused variable.
26772         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26773         type of first argument to 'const char *'.
26774         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26775         Likewise.
26776         (main): Change type of variable 's'.
26777         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26778         to 'int'.
26779
26780 2011-01-02  Bruno Haible  <bruno@clisp.org>
26781
26782         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26783         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26784         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26785         bug.
26786         * lib/pwrite.c: Undo 2010-12-31 patch.
26787         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26788
26789 2011-01-02  Bruno Haible  <bruno@clisp.org>
26790
26791         pread: Fix test whether it works.
26792         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26793
26794 2011-01-02  Bruno Haible  <bruno@clisp.org>
26795
26796         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26797         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26798         ends in "6". Don't require a specific month name. Try also the locale
26799         names found on HP-UX 11 and Solaris 7.
26800
26801 2011-01-02  Bruno Haible  <bruno@clisp.org>
26802
26803         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26804         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26805         C linkage.
26806         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26807
26808 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26809
26810         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26811         for consistency, since the "cluster" term is not used elsewhere.
26812         * lib/unigbrk.in.h: Update name.
26813         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26814         * lib/unigbrk/u16-grapheme-next.c: Update name.
26815         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26816         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26817         * lib/unigbrk/u32-grapheme-next.c: Update name.
26818         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26819         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26820         * lib/unigbrk/u8-grapheme-next.c: Update name.
26821         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26822         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26823         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26824         Suggested by Bruno Haible.
26825
26826 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26827
26828         Remove module 'u8-grapheme-len' as too redundant with
26829         'u8-grapheme-next'.
26830         * modules/unigbrk/u8-grapheme-len: Delete file.
26831         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26832         * lib/unigbrk.in.h: Remove prototype for deleted function.
26833         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26834         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26835
26836         Remove module 'u16-grapheme-len' as too redundant with
26837         'u16-grapheme-next'.
26838         * modules/unigbrk/u16-grapheme-len: Delete file.
26839         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26840         * lib/unigbrk.in.h: Remove prototype for deleted function.
26841         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26842         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26843
26844         Remove module 'u32-grapheme-len' as too redundant with
26845         'u32-grapheme-next'.
26846         * modules/unigbrk/u32-grapheme-len: Delete file.
26847         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26848         * lib/unigbrk.in.h: Remove prototype for deleted function.
26849         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26850         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26851
26852         Suggested by Bruno Haible.
26853
26854 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26855
26856         * unigbrk.in.h: Fix typo: "ben" => "been".
26857         Reported by Bruno Haible.
26858
26859 2011-01-01  Jim Meyering  <meyering@redhat.com>
26860
26861         maint: update almost all copyright ranges to include 2011
26862         Run the new "make update-copyright" rule.
26863
26864 2011-01-01  Jim Meyering  <meyering@redhat.com>
26865
26866         maint: update-copyright: exempt doc/INSTALL*
26867         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26868         since they are generated.  Suggested by Bruno Haible.
26869
26870 2011-01-01  Jim Meyering  <meyering@redhat.com>
26871
26872         maint: refine the update-copyright rule
26873         * Makefile (update-copyright): Also exclude any file that includes
26874         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26875         code that merely generates the comment.
26876
26877 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26878
26879         New module 'u8-grapheme-len'.
26880         * modules/unigbrk/u8-grapheme-len: New file.
26881         * modules/unigbrk/u8-grapheme-len-tests: New file.
26882         * lib/unigbrk.in.h: Add prototype for new function.
26883         * lib/unigbrk/u8-grapheme-len.c: New file.
26884         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26885
26886         New module 'u16-grapheme-len'.
26887         * modules/unigbrk/u16-grapheme-len: New file.
26888         * modules/unigbrk/u16-grapheme-len-tests: New file.
26889         * lib/unigbrk.in.h: Add prototype for new function.
26890         * lib/unigbrk/u16-grapheme-len.c: New file.
26891         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26892
26893         New module 'u32-grapheme-len'.
26894         * modules/unigbrk/u32-grapheme-len: New file.
26895         * modules/unigbrk/u32-grapheme-len-tests: New file.
26896         * lib/unigbrk.in.h: Add prototype for new function.
26897         * lib/unigbrk/u32-grapheme-len.c: New file.
26898         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26899
26900         New module 'u8-grapheme-next'.
26901         * modules/unigbrk/u8-grapheme-next: New file.
26902         * modules/unigbrk/u8-grapheme-next-tests: New file.
26903         * lib/unigbrk.in.h: Add prototype for new function.
26904         * lib/unigbrk/u8-grapheme-next.c: New file.
26905         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26906
26907         New module 'u16-grapheme-next'.
26908         * modules/unigbrk/u16-grapheme-next: New file.
26909         * modules/unigbrk/u16-grapheme-next-tests: New file.
26910         * lib/unigbrk.in.h: Add prototype for new function.
26911         * lib/unigbrk/u16-grapheme-next.c: New file.
26912         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26913
26914         New module 'u32-grapheme-next'.
26915         * modules/unigbrk/u32-grapheme-next: New file.
26916         * modules/unigbrk/u32-grapheme-next-tests: New file.
26917         * lib/unigbrk.in.h: Add prototype for new function.
26918         * lib/unigbrk/u32-grapheme-next.c: New file.
26919         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26920
26921         New module 'u8-grapheme-prev'.
26922         * modules/unigbrk/u8-grapheme-prev: New file.
26923         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26924         * lib/unigbrk.in.h: Add prototype for new function.
26925         * lib/unigbrk/u8-grapheme-prev.c: New file.
26926         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26927
26928         New module 'u16-grapheme-prev'.
26929         * modules/unigbrk/u16-grapheme-prev: New file.
26930         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26931         * lib/unigbrk.in.h: Add prototype for new function.
26932         * lib/unigbrk/u16-grapheme-prev.c: New file.
26933         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26934
26935         New module 'u32-grapheme-prev'.
26936         * modules/unigbrk/u32-grapheme-prev: New file.
26937         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26938         * lib/unigbrk.in.h: Add prototype for new function.
26939         * lib/unigbrk/u32-grapheme-prev.c: New file.
26940         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26941
26942         New module 'u8-grapheme-breaks'.
26943         * modules/unigbrk/u8-grapheme-breaks: New file.
26944         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26945         * lib/unigbrk.in.h: Add prototype for new function.
26946         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26947         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26948
26949         New module 'u16-grapheme-breaks'.
26950         * modules/unigbrk/u16-grapheme-breaks: New file.
26951         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26952         * lib/unigbrk.in.h: Add prototype for new function.
26953         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26954         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26955
26956         New module 'u32-grapheme-breaks'.
26957         * modules/unigbrk/u32-grapheme-breaks: New file.
26958         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26959         * lib/unigbrk.in.h: Add prototype for new function.
26960         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26961         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26962
26963         New module 'ulc-grapheme-breaks'.
26964         * modules/unigbrk/ulc-grapheme-breaks: New file.
26965         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26966         * m4/locale-ar.m4: New file.
26967         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26968         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26969         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26970
26971 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26972
26973         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26974         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26975         modified how this file was generated before I initially submitted
26976         the module, but failed to regenerate it.  This meant that several
26977         of the level2 entries were wrong.
26978         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26979         Remove the division-by-2 that is folded into the table now that
26980         gbrkprop.h has been regenerated properly.  Now -1 entries are
26981         handled correctly.
26982
26983         New module 'unigbrk/uc-gbrk-prop-tests'.
26984         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26985         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26986         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26987         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26988
26989 2011-01-01  Bruno Haible  <bruno@clisp.org>
26990
26991         Avoid use of hexadecimal escapes.
26992         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26993         instead of hexadecimal escapes.
26994
26995 2011-01-01  Jim Meyering  <meyering@redhat.com>
26996
26997         maint: new rule to update copyright year ranges
26998         * Makefile (update-copyright): New rule.
26999
27000         maint: indent with TABs in Makefile
27001         * Makefile: Expand leading sequences of spaces to TABs
27002
27003         version-etc: update the copyright year it reports
27004         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27005
27006 2010-12-31  Bruno Haible  <bruno@clisp.org>
27007
27008         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27009         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27010         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27011         zero.
27012
27013 2010-12-31  Bruno Haible  <bruno@clisp.org>
27014
27015         pwrite: Work around HP-UX 11.11 bug.
27016         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27017         works and set REPLACE_PWRITE if not.
27018         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27019         function.
27020         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27021
27022 2010-12-31  Bruno Haible  <bruno@clisp.org>
27023
27024         pread: Work around HP-UX 11 bugs.
27025         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27026         and set REPLACE_PREAD if not.
27027         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27028
27029 2010-12-31  Eric Blake  <eblake@redhat.com>
27030
27031         nl_langinfo: fix YESEXPR on Irix 6.5
27032         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27033         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27034         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27035         it.
27036
27037 2010-12-31  Bruno Haible  <bruno@clisp.org>
27038
27039         iconv: Document HP-UX 11 bug.
27040         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27041
27042 2010-12-31  Bruno Haible  <bruno@clisp.org>
27043
27044         ldexpl: Fix link error on HP-UX 11.
27045         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27046         LDEXPL_LIBM, using $ISNANL_LIBM.
27047
27048 2010-12-31  Eric Blake  <eblake@redhat.com>
27049
27050         ftello: avoid compilation failure with SunStudio c89
27051         * lib/ftello.c (ftello): Use lseek, not llseek.
27052
27053         tests: avoid failing coreutils tests on cygwin
27054         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27055         (create_exe_shims_): Return 0 when skipping.
27056
27057 2010-12-31  Bruno Haible  <bruno@clisp.org>
27058
27059         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27060         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27061
27062 2010-12-31  Bruno Haible  <bruno@clisp.org>
27063
27064         waitpid: Fix link error in C++ mode.
27065         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27066
27067 2010-12-31  Bruno Haible  <bruno@clisp.org>
27068
27069         isnan: Use GCC built-ins when possible.
27070         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27071         __builtin_isnan.
27072         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27073         (isnan): Define using GCC built-ins for GCC >= 4.0.
27074
27075 2010-12-31  Bruno Haible  <bruno@clisp.org>
27076
27077         isnand: Fix mistake.
27078         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27079         __builtin_isnand.
27080
27081 2010-12-31  Bruno Haible  <bruno@clisp.org>
27082
27083         open: Avoid C++ error on HP-UX 11.
27084         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27085
27086 2010-12-31  Bruno Haible  <bruno@clisp.org>
27087
27088         time_r: Add missing declarations on HP-UX 11.
27089         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27090         instead of HAVE_LOCALTIME_R.
27091         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27092         HAVE_LOCALTIME_R always.
27093         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27094         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27095         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27096         HAVE_LOCALTIME_R.
27097         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27098         * doc/posix-functions/localtime_r.texi: Likewise.
27099
27100 2010-12-29  Eric Blake  <eblake@redhat.com>
27101
27102         mountlist: tweak previous commit
27103         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27104         Reported by Paul Eggert.
27105
27106         mountlist: fix local drive detection on cygwin
27107         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27108         that works for cygwin.
27109
27110 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27111
27112         ftoastr, snprintf: ftoastr + snprintf module
27113         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27114         since the snprintf module now should be good enough here.
27115         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27116         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27117         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27118         GNULIB_SNPRINTF only for the test directory, and the latter
27119         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27120         seems to suffice by itself.
27121
27122 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         alloca: one step towards thread-safety
27125         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27126         need for a static variable.  All callers changed.  This does not
27127         make the alloca replacement thread-safe, but it's one step.
27128
27129         tests: minor indenting change
27130         * tests/init.sh: Sync from coreutils housekeeping patch
27131         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27132         to keep lines within 80 columns.
27133
27134 2010-12-28  Jim Meyering  <meyering@redhat.com>
27135
27136         regex: don't infloop on persistent failing calloc
27137         * lib/regexec.c (build_trtable): Return failure indication upon
27138         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27139         In glibc, this was fixed for version 2.13:
27140         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27141
27142 2010-12-28  Bruno Haible  <bruno@clisp.org>
27143             Paul Eggert <eggert@cs.ucla.edu>
27144
27145         linkat: Make implementation robust against system behaviour variations.
27146         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27147         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27148         way, and to -2 if it needs a generic runtime test.
27149         * lib/linkat.c (solaris_optimized_link_immediate,
27150         solaris_optimized_link_follow): New functions.
27151         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27152         (check_same_link): Use it.
27153
27154 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27155
27156         New module 'unigbrk/base'.
27157         * modules/unigbrk/base: New file.
27158         * lib/unigbrk.in.h: New file.
27159
27160         New module 'unigbrk/uc-gbrk-prop'.
27161         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27162         * modules/unigbrk/uc-gbrk-prop: New file.
27163         * lib/unigbrk/gbrkprop.h: New file.
27164         * lib/unigbrk/uc-gbrk-prop.c: New file.
27165
27166         New module 'unigbrk/uc-is-grapheme-break'.
27167         * modules/unigbrk/uc-is-grapheme-break: New file.
27168         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27169         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27170         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27171         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27172         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27173
27174         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27175
27176 2010-12-27  Bruno Haible  <bruno@clisp.org>
27177
27178         linkat test: Avoid failure on Solaris 11 2010-11.
27179         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27180
27181 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27182
27183         utimens: work around glibc rounding bug on more platforms
27184         * lib/utimens.c (fdutimens): Work around rounding bug even if
27185         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27187
27188 2010-12-27  Bruno Haible  <bruno@clisp.org>
27189
27190         select tests: Improve comments.
27191         * tests/test-select.c (do_select): Add comments.
27192
27193 2010-12-27  Bruno Haible  <bruno@clisp.org>
27194
27195         select tests: Safer way of handling timeout.
27196         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27197         at every invocation.
27198
27199 2010-12-27  Bruno Haible  <bruno@clisp.org>
27200
27201         select tests: Use 'bool' where appropriate.
27202         * tests/test-select.c (connect_to_socket): Change argument type to
27203         'bool'.
27204
27205 2010-12-27  Bruno Haible  <bruno@clisp.org>
27206
27207         select tests: Use existing modules.
27208         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27209         (configure.ac): Don't test for unistd.h.
27210         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27211         declared in <unistd.h>.
27212
27213 2010-12-27  Bruno Haible  <bruno@clisp.org>
27214
27215         mbrtowc: Work around a Solaris 7 bug.
27216         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27217         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27218         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27219         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27220         MBRTOWC_NULL_ARG1_BUG.
27221         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27222         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27223         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27224         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27225
27226 2010-12-27  Jim Meyering  <meyering@redhat.com>
27227
27228         read-file.c: tweak syntax
27229         * lib/read-file.c (fread_file): Remove space after "*" in function
27230         definitions.
27231
27232 2010-12-27  Bruno Haible  <bruno@clisp.org>
27233
27234         times test: Avoid gcc warnings on OSF/1.
27235         * tests/test-times.c (main): Cast printf arguments from clock_t to
27236         'long int'.
27237
27238 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27239
27240         utimens: work around glibc rounding bug on older Linux kernels
27241         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27242         on Linux with a glibc whose utimes might not work, then work
27243         around a longstanding glibc bug involving rounding rather than
27244         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27246
27247 2010-12-26  Bruno Haible  <bruno@clisp.org>
27248
27249         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27250         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27251         _GL_CXXALIAS_SYS.
27252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27253
27254 2010-12-26  Bruno Haible  <bruno@clisp.org>
27255
27256         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27257         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27258         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27259         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27260         looking for the declaration.
27261         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27262         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27263         problem.
27264         * doc/posix-functions/inet_pton.texi: Likewise.
27265
27266 2010-12-26  Bruno Haible  <bruno@clisp.org>
27267
27268         arpa_inet: Use the common idioms with C++ support.
27269         * lib/arpa_inet.in.h: Include c++defs.h.
27270         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27271         support.
27272         * modules/arpa_inet (Depends-on): Add c++defs.
27273         (Makefile.am): Substitute the contents of c++defs.h.
27274         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27275         * modules/arpa_inet-c++-tests: New file.
27276         * tests/test-arpa_inet-c++.cc: New file.
27277
27278 2010-12-25  Bruno Haible  <bruno@clisp.org>
27279
27280         Fix more C++ link errors on Solaris 8.
27281         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27282         $(LIB_EACCESS).
27283         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27284         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27285         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27286         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27287         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27288
27289 2010-12-25  Bruno Haible  <bruno@clisp.org>
27290
27291         printf-posix: Fix link error when a non-GCC compiler is used.
27292         * lib/stdio.in.h (printf): When not using GCC, override printf
27293         correctly.
27294         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27295
27296 2010-12-25  Bruno Haible  <bruno@clisp.org>
27297
27298         strerror_r-posix: Update doc.
27299         * doc/posix-functions/strerror_r.texi: Update doc about the return
27300         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27301
27302 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27303
27304         utimens: simplify the logic of the previous change
27305         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27306         This should not affect whether the test succeeds or fails.
27307
27308         utimens: configure better on hosts with NFS clock skew
27309         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27310         uses the clock of the local host.  It might use the clock of the
27311         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27313
27314 2010-12-25  Bruno Haible  <bruno@clisp.org>
27315
27316         ptsname test: Avoid failure on Solaris.
27317         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27318         open a pseudo-terminal; don't use BSD-style ptys.
27319         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27320
27321 2010-12-25  Bruno Haible  <bruno@clisp.org>
27322
27323         ptsname: Avoid ERANGE failure on some systems.
27324         * lib/ptsname.c (buffer): Increase size.
27325
27326 2010-12-25  Bruno Haible  <bruno@clisp.org>
27327
27328         rename, renameat: Avoid test failures at NFS mounted locations.
27329         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27330         so that subsequent mkdir calls succeed.
27331
27332 2010-12-25  Bruno Haible  <bruno@clisp.org>
27333
27334         iswblank: Fix C++ link error on Solaris 8.
27335         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27336         _GL_FUNCDECL_SYS.
27337
27338 2010-12-25  Bruno Haible  <bruno@clisp.org>
27339
27340         unistd: Fix C++ link error on Solaris 8.
27341         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27342
27343 2010-12-25  Bruno Haible  <bruno@clisp.org>
27344
27345         readlink doc: Mention an old glibc bug.
27346         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27347
27348 2010-12-25  Bruno Haible  <bruno@clisp.org>
27349
27350         fcntl-h: Fix for use of C++ on glibc systems.
27351         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27352         also on glibc systems in C++ mode.
27353         Reported by Gary V. Vaughan <gary@gnu.org>.
27354
27355 2010-12-25  Bruno Haible  <bruno@clisp.org>
27356
27357         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27358         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27359
27360 2010-12-25  Bruno Haible  <bruno@clisp.org>
27361
27362         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27363         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27364         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27365         test whether truncl works according to ISO C 99 with IEC 60559.
27366         * m4/truncl-ieee.m4: New file.
27367         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27368         m4/signbit.m4.
27369         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27370
27371 2010-12-25  Bruno Haible  <bruno@clisp.org>
27372
27373         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27374         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27375         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27376         test whether ceill works according to ISO C 99 with IEC 60559.
27377         * m4/ceill-ieee.m4: New file.
27378         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27379         m4/signbit.m4.
27380         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27381
27382 2010-12-25  Bruno Haible  <bruno@clisp.org>
27383
27384         Ensure all prerequisites of <wchar.h> are included.
27385         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27386         before <wchar.h>.
27387         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27388         gl_MBRLEN_NUL_RETVAL): Likewise.
27389         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27390         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27391         AC_FUNC_MBRTOWC): Likewise.
27392         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27393         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27395         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27396         Likewise.
27397         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27398         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27399         (gl_WCHAR_H): Improve comments.
27400         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27401
27402 2010-12-25  Bruno Haible  <bruno@clisp.org>
27403
27404         strtok_r: Fix C syntax error in autoconf macro.
27405         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27406         characters in test program.
27407
27408 2010-12-24  Bruno Haible  <bruno@clisp.org>
27409
27410         ceil, trunc, round: Fix gcc warnings.
27411         * lib/ceil.c (MIN): Undefine before redefining.
27412         * lib/trunc.c (MIN): Likewise.
27413         * lib/round.c (MIN): Likewise.
27414         Include <math.h> first.
27415
27416 2010-12-24  Bruno Haible  <bruno@clisp.org>
27417
27418         select tests: Avoid failures on OSF/1 5.1.
27419         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27420         failure of closing the last socket; it may fail with ECONNRESET.
27421
27422 2010-12-24  Eric Blake  <eblake@redhat.com>
27423
27424         stdint: avoid HP-UX 10.20 preprocessor bug
27425         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27426         than #if.
27427         * tests/test-floor2.c (main): Likewise.
27428         Reported by Peter O'Gorman.
27429
27430         pipe: make obsoletion transition easier
27431         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27432         * modules/pipe (Files): Include revived file.
27433         (Include): Drop reference, to mirror getdate's behavior.
27434
27435 2010-12-24  Bruno Haible  <bruno@clisp.org>
27436
27437         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27438         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27439         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27440         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27441
27442 2010-12-24  Bruno Haible  <bruno@clisp.org>
27443
27444         gethostname: Ensure declaration on NonStop Kernel.
27445         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27447
27448 2010-12-24  Bruno Haible  <bruno@clisp.org>
27449
27450         sys_select: Ensure all necessary types on NonStop Kernel.
27451         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27452         include <sys/time.h>.
27453         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27454         NonStop Kernel.
27455         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27456
27457 2010-12-24  Bruno Haible  <bruno@clisp.org>
27458
27459         sys_select: Remove unneeded include.
27460         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27461         have <sys/select.h>.
27462
27463 2010-12-24  Bruno Haible  <bruno@clisp.org>
27464
27465         gethostname: Provide a fallback for HOST_NAME_MAX.
27466         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27467         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27468         instead.
27469         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27470
27471 2010-12-24  Bruno Haible  <bruno@clisp.org>
27472
27473         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27474         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27475         (SA_RESTART): Likewise.
27476         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27477
27478 2010-12-24  Bruno Haible  <bruno@clisp.org>
27479
27480         signal: Define NSIG.
27481         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27482         * tests/test-signal.c (nsig): New variable.
27483         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27484
27485 2010-12-24  Bruno Haible  <bruno@clisp.org>
27486
27487         rename, renameat: Avoid test failures on OSF/1 5.1.
27488         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27489         alternative error codes.
27490         * tests/test-renameat.c (main): Likewise.
27491
27492 2010-12-24  Bruno Haible  <bruno@clisp.org>
27493
27494         *printf: Detect large precisions bug on Solaris 10/SPARC.
27495         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27496         by Paul Eggert.
27497         * tests/test-snprintf-posix.h (test_function): Add this test code here
27498         too.
27499         * tests/test-sprintf-posix.h (test_function): Likewise.
27500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27501         * tests/test-vasprintf-posix.c (test_function): Likewise.
27502         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27503         around by gnulib.
27504         * doc/posix-functions/printf.texi: Likewise.
27505         * doc/posix-functions/snprintf.texi: Likewise.
27506         * doc/posix-functions/sprintf.texi: Likewise.
27507         * doc/posix-functions/vfprintf.texi: Likewise.
27508         * doc/posix-functions/vprintf.texi: Likewise.
27509         * doc/posix-functions/vsnprintf.texi: Likewise.
27510         * doc/posix-functions/vsprintf.texi: Likewise.
27511         * doc/posix-functions/dprintf.texi: Undo last commit.
27512         * doc/posix-functions/vdprintf.texi: Likewise.
27513
27514 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27515
27516         tests: port test-fdutimensat.c to Solaris 8
27517         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27518         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27519         On Solaris 8, it fails with errno == ENOSYS, because there is no
27520         futimens (so it can't use the fd), and there is no lutimens (so it
27521         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27522
27523         vsnprintf: make more consistent with snprintf; doc fixes
27524
27525         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27526         the byte count return problem was promoted from the snprintf-posix
27527         to the snprintf module.
27528         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27530         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27531         * tests/test-snprintf.c (main): Check the byte count returned.
27532         * tests/test-vsnprintf.c (main): Likewise.
27533
27534 2010-12-23  Eric Blake  <eblake@redhat.com>
27535
27536         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27537         * modules/sigpipe (License): Relax license.
27538
27539 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27540
27541         doc: document Solaris printf bug with large float precisions
27542         * doc/posix-functions/dprintf.texi (dprintf):
27543         * doc/posix-functions/fprintf.texi (fprintf):
27544         * doc/posix-functions/printf.texi (printf):
27545         * doc/posix-functions/snprintf.texi (snprintf):
27546         * doc/posix-functions/sprintf.texi (sprintf):
27547         * doc/posix-functions/vdprintf.texi (vdprintf):
27548         * doc/posix-functions/vfprintf.texi (vfprintf):
27549         * doc/posix-functions/vprintf.texi (vprintf):
27550         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27551         * doc/posix-functions/vsprintf.texi (vsprintf):
27552         Mention that these functions mishandle large floating point
27553         precisions on Solaris 10.  The same bug is also present in Solaris
27554         8, and I assume earlier.  This causes "cd gnulib-tests; make
27555         check" to fail on Solaris 8 (and I assume, later) when building
27556         the latest coreutils, in test-vasprintf-posix's call to
27557         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27558         the wide flavors (e.g., wprintf) so this patch just updates the
27559         documentation for the narrow ones.
27560
27561         test-posixtm.c: add two tests
27562         * tests/test-posixtm.c: Add two tests, to highlight the
27563         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27564         around this bug; this is merely to document it.
27565
27566 2010-12-22  Bruno Haible  <bruno@clisp.org>
27567
27568         getlogin_r: Work around portability problem on OSF/1.
27569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27570         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27571         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27572         test for a truncated result.
27573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27574         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27575         * modules/getlogin_r (Depends-on): Add memchr.
27576         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27577
27578 2010-12-22  Bruno Haible  <bruno@clisp.org>
27579
27580         ptsname: Avoid test failure on OSF/1 5.1.
27581         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27582         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27583         (same_slave): New function.
27584         (main): Use it to compare ptsname's result with the expected file name.
27585
27586 2010-12-22  Bruno Haible  <bruno@clisp.org>
27587
27588         Port extended stdio modules to HP NonStop Kernel.
27589         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27590         macros.
27591         * lib/fbufmode.c: Update comments.
27592         * lib/fflush.c: Likewise.
27593         * lib/fpurge.c: Likewise.
27594         * lib/freadable.c: Likewise.
27595         * lib/freadahead.c: Likewise.
27596         * lib/freading.c: Likewise.
27597         * lib/freadptr.c: Likewise.
27598         * lib/freadseek.c: Likewise.
27599         * lib/fseeko.c: Likewise.
27600         * lib/fseterr.c: Likewise.
27601         * lib/fwritable.c: Likewise.
27602         * lib/fwriting.c: Likewise.
27603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27604
27605 2010-12-22  Bruno Haible  <bruno@clisp.org>
27606
27607         ttyname_r: Work around bug on OSF/1 5.1.
27608         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27610         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27611         present.
27612         * lib/ttyname_r.c (ttyname_r): Update comments.
27613
27614 2010-12-22  Bruno Haible  <bruno@clisp.org>
27615
27616         round: Implement result sign according to IEEE 754.
27617         * lib/round.c (MIN, MINUS_ZERO): New macros.
27618         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27619         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27620         * tests/test-round-ieee.c (main): Likewise.
27621         * tests/test-roundl-ieee.c (main): Likewise.
27622
27623         trunc: Implement result sign according to IEEE 754.
27624         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27625         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27626         * tests/test-trunc2.c: Include minus-zero.h.
27627         (MINUS_ZERO): New macro.
27628         (trunc_reference): Keep in sync with lib/trunc.c.
27629         * tests/test-truncf2.c: Include minus-zero.h.
27630         (MINUS_ZERO): New macro.
27631         (truncf_reference): Keep in sync with lib/trunc.c.
27632         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27633         * tests/test-trunc-ieee.c (main): Likewise.
27634         * tests/test-truncl-ieee.c (main): Likewise.
27635
27636         ceil: Implement result sign according to IEEE 754.
27637         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27638         (FUNC): Return -0.0 for -1 < x < 0.
27639         * tests/test-ceil2.c: Include minus-zero.h.
27640         (MINUS_ZERO): New macro.
27641         (ceil_reference): Keep in sync with lib/ceil.c.
27642         * tests/test-ceilf2.c: Include minus-zero.h.
27643         (MINUS_ZERO): New macro.
27644         (ceilf_reference): Keep in sync with lib/ceil.c.
27645         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27646         * tests/test-ceil-ieee.c (main): Likewise.
27647         * tests/test-ceill-ieee.c (main): Likewise.
27648
27649         floor: Implement result sign according to IEEE 754.
27650         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27651         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27652         * tests/test-floorf2.c (floorf_reference): Likewise.
27653         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27654         * tests/test-floor-ieee.c (main): Likewise.
27655         * tests/test-floorl-ieee.c (main): Likewise.
27656
27657 2010-12-22  Bruno Haible  <bruno@clisp.org>
27658
27659         getaddrinfo: Update doc.
27660         * doc/posix-functions/gai_strerror.texi: Return type is also different
27661         on AIX and HP-UX.
27662
27663 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         getaddrinfo, inet_ntop: Update doc for Solaris.
27666         * doc/posix-functions/gai_strerror.texi: Return type is also an
27667         issue on Solaris 9 and earlier.
27668         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27669         on Solaris 10 and earlier.
27670
27671 2010-12-21  Bruno Haible  <bruno@clisp.org>
27672
27673         New module 'roundl-ieee'.
27674         * modules/roundl-ieee: New file.
27675         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27676         test whether roundl works according to ISO C 99 with IEC 60559.
27677         * m4/roundl-ieee.m4: New file.
27678         * modules/roundl-ieee-tests: New file.
27679         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27680         * tests/test-roundl.c (main): Remove signbit tests.
27681         * modules/roundl-tests (Depends-on): Remove signbit.
27682         * doc/posix-functions/roundl.texi: Mention the new module.
27683
27684 2010-12-21  Bruno Haible  <bruno@clisp.org>
27685
27686         New module 'truncl-ieee'.
27687         * modules/truncl-ieee: New file.
27688         * modules/truncl-ieee-tests: New file.
27689         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27690         * tests/test-truncl.c (main): Remove signbit tests.
27691         * modules/truncl-tests (Depends-on): Remove signbit.
27692         * doc/posix-functions/truncl.texi: Mention the new module.
27693
27694 2010-12-21  Bruno Haible  <bruno@clisp.org>
27695
27696         New module 'ceill-ieee'.
27697         * modules/ceill-ieee: New file.
27698         * modules/ceill-ieee-tests: New file.
27699         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27700         * tests/test-ceill.c (main): Remove signbit tests.
27701         * modules/ceill-tests (Depends-on): Remove signbit.
27702         * doc/posix-functions/ceill.texi: Mention the new module.
27703
27704 2010-12-21  Bruno Haible  <bruno@clisp.org>
27705
27706         New module 'floorl-ieee'.
27707         * modules/floorl-ieee: New file.
27708         * modules/floorl-ieee-tests: New file.
27709         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27710         * tests/test-floorl.c (main): Remove signbit tests.
27711         * modules/floorl-tests (Depends-on): Remove signbit.
27712         * doc/posix-functions/floorl.texi: Mention the new module.
27713
27714 2010-12-21  Bruno Haible  <bruno@clisp.org>
27715
27716         New module 'round-ieee'.
27717         * modules/round-ieee: New file.
27718         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27719         whether round works according to ISO C 99 with IEC 60559.
27720         * m4/round-ieee.m4: New file.
27721         * modules/round-ieee-tests: New file.
27722         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27723         * tests/test-round1.c (main): Remove signbit tests.
27724         * modules/round-tests (Depends-on): Remove 'signbit'.
27725         * doc/posix-functions/round.texi: Mention the new module.
27726
27727 2010-12-21  Bruno Haible  <bruno@clisp.org>
27728
27729         New module 'trunc-ieee'.
27730         * modules/trunc-ieee: New file.
27731         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27732         whether trunc works according to ISO C 99 with IEC 60559.
27733         * m4/trunc-ieee.m4: New file.
27734         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27736         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27737         * modules/trunc-ieee-tests: New file.
27738         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27739         * tests/test-trunc1.c (main): Remove signbit tests.
27740         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27741         * doc/posix-functions/trunc.texi: Mention the new module.
27742
27743 2010-12-21  Bruno Haible  <bruno@clisp.org>
27744
27745         New module 'ceil-ieee'.
27746         * modules/ceil-ieee: New file.
27747         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27748         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27749         ISO C 99 with IEC 60559.
27750         * m4/ceil-ieee.m4: New file.
27751         * modules/ceil (Files): Add lib/ceil.c.
27752         (Depends-on): Add 'float'.
27753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27754         * lib/math.in.h (ceil): New declaration.
27755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27756         REPLACE_CEIL.
27757         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27758         * modules/ceil-ieee-tests: New file.
27759         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27760         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27761         * doc/posix-functions/ceil.texi: Mention the new module.
27762
27763 2010-12-21  Bruno Haible  <bruno@clisp.org>
27764
27765         New module 'floor-ieee'.
27766         * modules/floor-ieee: New file.
27767         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27768         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27769         ISO C 99 with IEC 60559.
27770         * m4/floor-ieee.m4: New file.
27771         * modules/floor (Files): Add lib/floor.c.
27772         (Depends-on): Add 'float'.
27773         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27774         * lib/math.in.h (floor): New declaration.
27775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27776         REPLACE_FLOOR.
27777         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27778         * modules/floor-ieee-tests: New file.
27779         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27780         * tests/test-math-c++.cc: Check the signature of 'floor'.
27781         * doc/posix-functions/floor.texi: Mention the new module.
27782
27783 2010-12-21  Bruno Haible  <bruno@clisp.org>
27784
27785         New module 'roundf-ieee'.
27786         * modules/roundf-ieee: New file.
27787         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27788         test whether roundf works according to ISO C 99 with IEC 60559.
27789         * m4/roundf-ieee.m4: New file.
27790         * modules/roundf-ieee-tests: New file.
27791         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27792         * tests/test-roundf1.c (main): Remove signbit tests.
27793         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27794         * doc/posix-functions/roundf.texi: Mention the new module.
27795
27796 2010-12-21  Bruno Haible  <bruno@clisp.org>
27797
27798         New module 'truncf-ieee'.
27799         * modules/truncf-ieee: New file.
27800         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27801         test whether truncf works according to ISO C 99 with IEC 60559.
27802         * m4/truncf-ieee.m4: New file.
27803         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27805         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27806         * modules/truncf-ieee-tests: New file.
27807         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27808         * tests/test-truncf1.c (main): Remove signbit tests.
27809         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27810         * doc/posix-functions/truncf.texi: Mention the new module.
27811
27812 2010-12-21  Bruno Haible  <bruno@clisp.org>
27813
27814         New module 'ceilf-ieee'.
27815         * modules/ceilf-ieee: New file.
27816         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27817         test whether ceilf works according to ISO C 99 with IEC 60559.
27818         * m4/ceilf-ieee.m4: New file.
27819         * modules/ceilf-ieee-tests: New file.
27820         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27821         * tests/test-ceilf1.c (main): Remove signbit tests.
27822         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27823         * doc/posix-functions/ceilf.texi: Mention the new module.
27824
27825 2010-12-21  Bruno Haible  <bruno@clisp.org>
27826
27827         New module 'floorf-ieee'.
27828         * modules/floorf-ieee: New file.
27829         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27830         test whether floorf works according to ISO C 99 with IEC 60559.
27831         * m4/floorf-ieee.m4: New file.
27832         * modules/floorf-ieee-tests: New file.
27833         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27834         * tests/test-floorf1.c (main): Remove signbit tests.
27835         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27836         * doc/posix-functions/floorf.texi: Mention the new module.
27837
27838 2010-12-21  Bruno Haible  <bruno@clisp.org>
27839
27840         Support for minus zero in autoconf macros.
27841         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27842         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27843         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27844         * tests/minus-zero.h: Update comments.
27845
27846 2010-12-21  Bruno Haible  <bruno@clisp.org>
27847
27848         Tests for module 'ceil'.
27849         * modules/ceil-tests: New file.
27850         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27851         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27852
27853 2010-12-21  Bruno Haible  <bruno@clisp.org>
27854
27855         Tests for module 'floor'.
27856         * modules/floor-tests: New file.
27857         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27858         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27859
27860 2010-12-21  Bruno Haible  <bruno@clisp.org>
27861
27862         math: Fix indentation.
27863         * lib/math.in.h (floorf): Fix indentation.
27864
27865 2010-12-21  Bruno Haible  <bruno@clisp.org>
27866
27867         Fix cross-compilation guesses on Solaris.
27868         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27869         not match "solaris2.10".
27870         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27871         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27872         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27873
27874 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27875
27876         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27877         This fixes a problem observed with the latest coreutils snapshot
27878         that caused a test to fail on Solaris 8.  src/csplit.c's call
27879         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27880         earlier, instead of returning the number of bytes that would have
27881         been generated; this causes csplit to incorrectly report memory
27882         exhaustion.
27883         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27884         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27885         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27886         comments to match.
27887         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27888         Fix typo in matching older versions of Solaris: "solaris2.10"
27889         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27890         only for guessing while cross-compiling.
27891         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27892
27893 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27894
27895         ftoastr: fix comment again
27896         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27897         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27898         Also, simplify example a bit by using flags = 0.
27899
27900 2010-12-20  Bruno Haible  <bruno@clisp.org>
27901
27902         round*, trunc*: Update documentation regarding glibc.
27903         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27904         * doc/posix-functions/round.texi: Likewise.
27905         * doc/posix-functions/roundl.texi: Likewise.
27906         * doc/posix-functions/truncf.texi: Likewise.
27907         * doc/posix-functions/trunc.texi: Likewise.
27908         * doc/posix-functions/truncl.texi: Likewise.
27909
27910 2010-12-20  Bruno Haible  <bruno@clisp.org>
27911
27912         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27913         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27914         * doc/posix-functions/round.texi: Likewise.
27915         * doc/posix-functions/roundl.texi: Likewise.
27916
27917 2010-12-20  Bruno Haible  <bruno@clisp.org>
27918
27919         ttyname_r: Add missing declaration on HP-UX 11.
27920         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27921         HAVE_TTYNAME_R.
27922         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27923         declared. Set HAVE_TTYNAME_R always.
27924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27925         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27926         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27927         HAVE_TTYNAME_R.
27928         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27929
27930 2010-12-20  Bruno Haible  <bruno@clisp.org>
27931
27932         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27933         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27934         * doc/posix-functions/getlogin_r.texi: Likewise.
27935         * tests/test-getlogin.c: Include <errno.h>.
27936         (main): Avoid test failure on HP-UX 11.11.
27937         * tests/test-getlogin_r.c (main): Likewise.
27938
27939 2010-12-20  Bruno Haible  <bruno@clisp.org>
27940
27941         getlogin_r: Add missing declaration on HP-UX 11.
27942         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27943         declared also when it exists as a function.
27944         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27945
27946 2010-12-20  Bruno Haible  <bruno@clisp.org>
27947
27948         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27949         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27950         through wcrtomb.
27951
27952 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27953
27954         ftoastr: fix comment
27955         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27957
27958 2010-12-19  Bruno Haible  <bruno@clisp.org>
27959
27960         isnan: Ensure it is a macro.
27961         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27962         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27963         Solaris.
27964
27965 2010-12-19  Bruno Haible  <bruno@clisp.org>
27966
27967         ldexpl test: Fix link error on OSF/1 5.1.
27968         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27969
27970 2010-12-19  Bruno Haible  <bruno@clisp.org>
27971
27972         wctype: Make it work in C++ mode on OSF/1 5.1.
27973         * lib/wctype.in.h (iswblank): Declare but not define here.
27974         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27975         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27976         * modules/wctype (Files): Add lib/iswblank.c.
27977
27978 2010-12-19  Bruno Haible  <bruno@clisp.org>
27979
27980         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27981         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27982         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27983
27984 2010-12-19  Bruno Haible  <bruno@clisp.org>
27985
27986         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27988         _POSIX_PII_SOCKET.
27989         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27990         * doc/posix-functions/recvfrom.texi: Likewise.
27991         * doc/posix-functions/send.texi: Likewise.
27992         * doc/posix-functions/sendto.texi: Likewise.
27993
27994 2010-12-19  Bruno Haible  <bruno@clisp.org>
27995
27996         tcgetsid: Add missing declaration on OSF/1 5.1.
27997         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27998         HAVE_TCGETSID.
27999         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28000         Don't set HAVE_TCGETSID.
28001         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28002         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28003         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28004         HAVE_TCGETSID.
28005         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28006
28007 2010-12-19  Bruno Haible  <bruno@clisp.org>
28008
28009         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28010         * lib/stdio.in.h: During the include_next statement, let recursive
28011         includes of this file include only the system header file.
28012
28013 2010-12-19  Bruno Haible  <bruno@clisp.org>
28014
28015         iconv_open: Fix regression from 2010-12-04.
28016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28017         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28018
28019 2010-12-19  Bruno Haible  <bruno@clisp.org>
28020
28021         stdbool test: Avoid a gcc warning.
28022         * tests/test-stdbool.c (main): Fail if e1 is false.
28023         Reported by Jim Meyering.
28024
28025 2010-12-19  Jim Meyering  <meyering@redhat.com>
28026
28027         setenv: restore to working order
28028         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28029         mistakenly removed.
28030         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28031         HAVE_SETENV.
28032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28033         HAVE_SETENV.
28034
28035 2010-12-19  Bruno Haible  <bruno@clisp.org>
28036
28037         Document some different function declarations on OSF/1 5.1.
28038         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28039         * doc/posix-functions/inet_ntop.texi: Likewise.
28040         * doc/posix-functions/gethostname.texi: Likewise.
28041         * lib/unistd.in.h (gethostname): Update comment.
28042
28043 2010-12-19  Bruno Haible  <bruno@clisp.org>
28044
28045         doc: Mention vasprintf-posix module.
28046         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28047         the 'vasprintf-posix' module.
28048         * doc/glibc-functions/vasprintf.texi: Likewise.
28049
28050 2010-12-19  Bruno Haible  <bruno@clisp.org>
28051
28052         unsetenv: Add missing declaration on OSF/1 5.1.
28053         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28054         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28055         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28057         not HAVE_UNSETENV.
28058         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28059         HAVE_UNSETENV.
28060         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28061
28062 2010-12-19  Bruno Haible  <bruno@clisp.org>
28063
28064         setenv: Add missing declaration on OSF/1 5.1.
28065         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28066         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28067         declared. Don't set HAVE_SETENV.
28068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28069         not HAVE_SETENV.
28070         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28071         HAVE_SETENV.
28072         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28073
28074 2010-12-19  Bruno Haible  <bruno@clisp.org>
28075
28076         nl_langinfo tests: Avoid gcc warning.
28077         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28078
28079 2010-12-19  Bruno Haible  <bruno@clisp.org>
28080
28081         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28082         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28083         _GL_CXXALIAS_SYS.
28084
28085 2010-12-19  Bruno Haible  <bruno@clisp.org>
28086
28087         stdbool: Relax test.
28088         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28089         address to 'bool' work in static initializer, for compilers other than
28090         GCC.
28091
28092 2010-12-19  Bruno Haible  <bruno@clisp.org>
28093
28094         ftello: Add missing declaration on OSF/1 5.1.
28095         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28096         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28098         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28099         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28100
28101 2010-12-19  Bruno Haible  <bruno@clisp.org>
28102
28103         fseeko: Add missing declaration on OSF/1 5.1.
28104         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28107         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28108         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28109
28110 2010-12-19  Bruno Haible  <bruno@clisp.org>
28111
28112         fchdir: Add missing declaration on OSF/1 5.1.
28113         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28116         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28117         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28118
28119 2010-12-19  Bruno Haible  <bruno@clisp.org>
28120
28121         relocatable-prog-wrapper: Separate from relocatable-prog.
28122         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28123         uninstall-relocwrapper rule here.
28124         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28125         Reported by Ian Beckwith <ianb@erislabs.net>.
28126
28127 2010-12-19  Bruno Haible  <bruno@clisp.org>
28128
28129         unistr/u8-mbsnlen: Add missing dependency.
28130         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28131         Reported by Ian Beckwith <ianb@erislabs.net>.
28132
28133 2010-12-19  Bruno Haible  <bruno@clisp.org>
28134
28135         iconv: Make it possible again to use this module without 'iconv-h'.
28136         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28137         if it is not defined.
28138         Reported by Ian Beckwith <ianb@erislabs.net>.
28139
28140 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28141
28142         acl: port to Solaris 8 when copying from tmpfs to ufs
28143         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28144         error number.  Problem observed on Solaris 8 with latest
28145         coreutils, with "mv A B", where A is on a tmpfs file system and B
28146         is on a ufs file system.  This caused coreutils' mv/part-symlink
28147         test to fail.
28148
28149         tests: set fail=0 at start
28150         * tests/init.sh (setup_): Move fail=0 initialization here ...
28151         (mktempd_): ... from here, so that tests can rely on fail being
28152         set to 0 initially.  This fixes a problem in coreutils; see:
28153         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28154
28155 2010-12-18  Bruno Haible  <bruno@clisp.org>
28156
28157         memmem-simple: Stylistic changes.
28158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28159         Fix preprocessor directive indentation.
28160
28161 2010-12-15  Pádraig Brady <P@draigBrady.com>
28162
28163         memmem, memmem-simple: reorganize and expand empty needle check
28164         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28165         functional checks to memmem-simple so that one has a fully functional
28166         memmem by using just this module.
28167         Restrict the performance only check to the memmem module.
28168         Also expand the empty needle check to ensure the correct
28169         pointer is returned, not just a non NULL pointer.
28170         * doc/glibc-functions/memmem.texi: Rearrange the portability
28171         documentation to correlate with the rearranged checks.
28172         Clarify exactly how the memmem and memmem-simple modules
28173         relate to each other.
28174
28175 2010-12-15  Pádraig Brady <P@draigBrady.com>
28176             Bruno Haible  <bruno@clisp.org>
28177
28178         Improve cross-compilation guesses for uClibc.
28179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28180         that uClibc does not have the glibc bug.
28181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28182         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28183
28184 2010-12-14  Eric Blake  <eblake@redhat.com>
28185
28186         configmake: provide fallbacks for oldest supported autotools
28187         * m4/configmake.m4: New file.
28188         * modules/configmake (Files): Ship it.
28189         (configure.ac): Use it to guarantee fallbacks.
28190
28191 2010-12-13  Pádraig Brady <P@draigBrady.com>
28192
28193         read-file: Improve handling of large files
28194         * lib/read-file.c (fread_file): Minimize realloc()s
28195         for regular files, and better manage sizes around SIZE_MAX.
28196
28197 2010-12-13  Eric Blake  <eblake@redhat.com>
28198
28199         cloexec, fcntl: relax license
28200         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28201         consent from all contributors.
28202         * modules/fcntl (License): Likewise.
28203
28204 2010-12-10  Bruno Haible  <bruno@clisp.org>
28205
28206         Tests for module 'pipe-posix'.
28207         * modules/pipe-posix-tests: New file.
28208         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28209
28210 2010-12-10  Bruno Haible  <bruno@clisp.org>
28211
28212         pipe-posix: Make it work in C++ mode.
28213         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28214         (pipe): Use common idiom, not a macro definition.
28215         * lib/pipe.c: New file.
28216         * m4/pipe.m4: New file.
28217         * modules/pipe-posix (Description): Enhance.
28218         (Files): Add lib/pipe.c, m4/pipe.m4.
28219         (configure.ac): Invoke gl_FUNC_PIPE.
28220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28221         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28222         * tests/test-unistd-c++.cc: Check the signature of pipe.
28223
28224 2010-12-10  Bruno Haible  <bruno@clisp.org>
28225
28226         Rename module 'pipe' to 'spawn-pipe'.
28227         * modules/spawn-pipe: New file, renamed from modules/pipe.
28228         (Files, configure.ac, Makefile.am): Update.
28229         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28230         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28231         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28232         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28233         "spawn-pipe.h" instead of "pipe.h".
28234         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28235         to gl_SPAWN_PIPE.
28236         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28237         (Files, Makefile.am): Update.
28238         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28239         Update.
28240         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28241         Include "spawn-pipe.h" instead of "pipe.h".
28242         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28243         * lib/javacomp.c: Likewise.
28244         * lib/javaversion.c: Likewise.
28245         * lib/pipe-filter-gi.c: Likewise.
28246         * lib/pipe-filter-ii.c: Likewise.
28247         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28248         * modules/javacomp (Depends-on): Likewise.
28249         * modules/javaversion (Depends-on): Likewise.
28250         * modules/pipe-filter-gi (Depends-on): Likewise.
28251         * modules/pipe-filter-ii (Depends-on): Likewise.
28252         * MODULES.html.sh (Executing programs): Update.
28253         * NEWS: Mention the change.
28254
28255 2010-12-10  Eric Blake  <eblake@redhat.com>
28256
28257         pipe-posix: new module
28258         * modules/pipe-posix: New file.
28259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28260         (gl_UNISTD_H): Check for declaration.
28261         * modules/unistd (Makefile.am): Substitute it.
28262         * lib/unistd.in.h (pipe): Provide it for mingw.
28263         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28264         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28265
28266 2010-12-07  Bruno Haible  <bruno@clisp.org>
28267
28268         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28269         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28270         u8_strcmp_gnu.
28271         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28272
28273 2010-12-06  Bruno Haible  <bruno@clisp.org>
28274
28275         Update internal documentation.
28276         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28277
28278 2010-12-04  Bruno Haible  <bruno@clisp.org>
28279
28280         Put more information about failed tests into the test return codes.
28281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28282         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28283         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28285         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28286         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28287         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28288         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28289         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28291         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28292         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28293         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28294         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28295         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28296         returns a bit mask.
28297         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28298         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28299         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28300         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28301         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28305         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28306         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28307         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28308         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28309         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28310         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28311         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28312         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28313         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28314         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28315         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28316         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28317         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28318         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28320         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28321         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28322         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28323         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28324         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28325         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28326         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28327         gl_PRINTF_PRECISION): Likewise.
28328         * m4/regex.m4 (gl_REGEX): Likewise.
28329         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28331         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28332         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28333         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28336         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28337         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28338         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28339         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28340         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28341         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28342         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28343         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28344         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28345         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28346         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28348         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28349         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28350         enumerated value.
28351         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28352
28353 2010-12-04  Bruno Haible  <bruno@clisp.org>
28354
28355         Update for Solaris 11 2010-11.
28356         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28357         Express, released in November 2010.
28358
28359 2010-12-04  Bruno Haible  <bruno@clisp.org>
28360
28361         nproc: Relax license.
28362         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28363         and Paul Eggert.
28364         Requested by Ludovic Courtès <ludo@gnu.org>.
28365
28366 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28367
28368         utimecmp: fine-grained src to nearby coarse-grained dest
28369
28370         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28371         and the source is on a file system with higher-resolution time
28372         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28373         not work, and the time stamps are close together, the algorithm to
28374         determine the exact resolution from the read-back mtime was buggy:
28375         it had a "!=" where it should have had an "==".  This bug has been
28376         in the code ever since it was introduced to gnulib.
28377         Problem reported by Dan Jacobson in
28378         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28379
28380 2010-11-30  Bruno Haible  <bruno@clisp.org>
28381
28382         strerror_r-posix: Fix autoconf test.
28383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28384
28385 2010-11-28  Bruno Haible  <bruno@clisp.org>
28386             Paul Eggert  <eggert@cs.ucla.edu>
28387
28388         Tests for module 'getdomainname'.
28389         * modules/getdomainname-tests: New file.
28390         * tests/test-getdomainname.c: New file, based on
28391         tests/test-gethostname.c.
28392
28393 2010-11-28  Bruno Haible  <bruno@clisp.org>
28394             Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         getdomainname: Use the system function when possible.
28397         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28398         (getdomainname): Replace if needed. Provide the declaration if it is
28399         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28400         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28401         (getdomainname): When the system has getdomainname, call the system
28402         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28403         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28404         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28405         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28406         the function if its second argument is of type 'int' or if it is found
28407         in libnsl.
28408         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28409         <sys/systeminfo.h> and sysinfo().
28410         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28412         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28413         HAVE_GETDOMAINNAME.
28414         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28415         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28416         * doc/glibc-functions/getdomainname.texi: Document the problems with
28417         the getdomainname declaration.
28418
28419 2010-11-28  Bruno Haible  <bruno@clisp.org>
28420
28421         sys_socket: Ensure ss_family field on AIX.
28422         * lib/sys_socket.in.h (ss_family): New macro definition.
28423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28424         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28425         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28426         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28427         * modules/sys_socket (Makefile.am): Substitute
28428         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28429         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28430
28431 2010-11-27  Bruno Haible  <bruno@clisp.org>
28432
28433         readline: Improve configure output.
28434         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28435         "checking for readline..." result understandable.
28436
28437 2010-11-27  Bruno Haible  <bruno@clisp.org>
28438
28439         *printf-posix: Detect a bug on Solaris 10/x86.
28440         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28441         for floating-point output.
28442         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28443         directive.
28444         * tests/test-snprintf-posix.h (test_function): Likewise.
28445         * tests/test-sprintf-posix.h (test_function): Likewise.
28446         * tests/test-vasprintf-posix.c (test_function): Likewise.
28447         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28448         * doc/posix-functions/printf.texi: Likewise.
28449         * doc/posix-functions/snprintf.texi: Likewise.
28450         * doc/posix-functions/sprintf.texi: Likewise.
28451         * doc/posix-functions/vfprintf.texi: Likewise.
28452         * doc/posix-functions/vprintf.texi: Likewise.
28453         * doc/posix-functions/vsnprintf.texi: Likewise.
28454         * doc/posix-functions/vsprintf.texi: Likewise.
28455         * doc/glibc-functions/obstack_printf.texi: Likewise.
28456         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28457
28458 2010-11-27  Bruno Haible  <bruno@clisp.org>
28459
28460         Fix link error when module libunistring-optional is in use.
28461         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28462         * modules/striconveha-tests (Makefile.am): Likewise.
28463
28464 2010-11-27  Bruno Haible  <bruno@clisp.org>
28465
28466         regex: Mention link dependencies.
28467         * modules/regex (Link): New section.
28468         * modules/rpmatch (Link): Likewise.
28469         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28470
28471 2010-11-27  Bruno Haible  <bruno@clisp.org>
28472
28473         ftoastr: Fix compilation error on Solaris.
28474         * lib/ftoastr.c: Include <config.h>.
28475
28476 2010-11-27  Bruno Haible  <bruno@clisp.org>
28477
28478         getloadavg: Update documentation.
28479         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28480
28481 2010-11-27  Bruno Haible  <bruno@clisp.org>
28482
28483         sys_socket: Fix test whether the functions are declared.
28484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28485         not <sys/select.h>.
28486
28487 2010-11-27  Bruno Haible  <bruno@clisp.org>
28488
28489         getpass: Make sure to get system declaration on some platforms.
28490         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28491         gl_USE_SYSTEM_EXTENSIONS.
28492         * modules/getpass (Depends-on): Add extensions.
28493
28494 2010-11-26  Bruno Haible  <bruno@clisp.org>
28495
28496         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28497         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28498         'iconv' module is present.
28499         (ICONV_CONST): New macro.
28500         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28501         ICONV_CONST.
28502         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28503         set ICONV_CONST.
28504         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28505         here.
28506         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28507         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28508         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28509         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28510         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28511         present.
28512
28513 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28514
28515         ftoastr: comment fix
28516         * lib/ftoastr.c: "little" -> "little or no" in comment
28517
28518 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28519
28520         stdint: port to GCC 4.3 + OSX + Octave
28521         On this platform, stdint.h is buggy and defines int64_t to long
28522         long int.  The replacement defined it to long int, causing
28523         problems with C++ style name mangling.  Instead, trust the system
28524         definition if INT64_MAX is defined, and likewise for the unsigned
28525         variant.   Problem reported by Jarno Rajahalme in
28526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28527         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28528         and don't mess with int64_t and INT64_MAX in this case.
28529         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28530
28531 2010-11-24  Bruno Haible  <bruno@clisp.org>
28532
28533         doc: Corrections regarding MacOS X 10.4 and 10.5.
28534         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28535         MacOS X.
28536         Reported by Simon Josefsson.
28537
28538 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28539
28540         Uninstall ".bin" files installed by relocwrapper.
28541         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28542         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28543         unless it is already there.
28544
28545 2010-11-21  Bruno Haible  <bruno@clisp.org>
28546
28547         Update for NetBSD 5.0.
28548         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28549         NetBSD; the test fails on NetBSD 5.0.
28550         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28551         about NetBSD.
28552
28553 2010-11-21  Bruno Haible  <bruno@clisp.org>
28554
28555         Update for HP-UX 11.23 and HP-UX 11.31.
28556         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28557         HP-UX.
28558
28559 2010-11-21  Bruno Haible  <bruno@clisp.org>
28560
28561         Update for MacOS X 10.5.
28562         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28563         MacOS X; the test fails on MacOS X 10.5.8.
28564         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28565         about MacOS X.
28566
28567 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28568
28569         bootstrap: add bootstrap_sync option.
28570         See discussion at
28571         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28573         * build-aux/bootstrap: Accept --bootstrap-sync to update
28574         bootstrap if it is not identical to the local gnulib's
28575         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28576         enable this by default.  Accept --no-bootstrap-sync to disable
28577         it.
28578
28579 2010-11-20  Bruno Haible  <bruno@clisp.org>
28580
28581         Ensure that <features.h> is included before __GLIBC__ is tested.
28582         * lib/printf-parse.h: Include <features.h>.
28583         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28584         Reported by Mike Frysinger <vapier@gentoo.org>.
28585
28586         Ensure that <features.h> is included before __GLIBC__ is tested.
28587         * lib/wchar.in.h: Include <features.h>.
28588         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28589         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28590         Reported by Mike Frysinger <vapier@gentoo.org>.
28591
28592         Ensure that <features.h> is included before __GLIBC__ is tested.
28593         * lib/arpa_inet.in.h: Include <features.h>.
28594         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28595         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28596         Reported by Mike Frysinger <vapier@gentoo.org>.
28597
28598         Ensure that <features.h> is included before __GLIBC__ is tested.
28599         * build-aux/link-warning.h: Include <features.h>.
28600         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28601         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28602         Reported by Mike Frysinger <vapier@gentoo.org>.
28603
28604         Ensure that <features.h> is included before __GLIBC__ is tested.
28605         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28606         Reported by Mike Frysinger <vapier@gentoo.org>.
28607
28608 2010-11-20  Bruno Haible  <bruno@clisp.org>
28609
28610         memmem: Fix autoconf test.
28611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28612
28613 2010-11-20  Bruno Haible  <bruno@clisp.org>
28614
28615         Port to uClibc.
28616         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28617         * lib/fcntl.in.h: Likewise.
28618         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28619         * lib/mbrtowc.c (mbrtowc): Likewise.
28620         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28621         * lib/strerror_r.c: Likewise.
28622         * lib/unistr/u8-strnlen.c: Likewise.
28623         * lib/vasnprintf.c (decimal_point_char): Likewise.
28624         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28625         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28627         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28628         * tests/test-sigaction.c (handler, main): Likewise.
28629         * lib/freading.h: Treat uClibc like a non-glibc platform.
28630         * lib/freading.c: Likewise.
28631         * lib/gettext.h: Likewise.
28632         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28633         Likewise.
28634         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28635         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28636         * lib/propername.c (proper_name_utf8): Likewise.
28637         * lib/spawn.in.h: Likewise.
28638         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28639         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28640         mem_cd_iconveh_internal): Likewise.
28641         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28642         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28643         strstr, strcasestr): Likewise.
28644         * lib/unicodeio.c (unicode_to_mb): Likewise.
28645         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28646         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28647         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28648         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28649         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28650         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28651         * lib/unistr/u8-stpncpy.c: Likewise.
28652         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28653         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28654         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28655         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28656         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28657         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28661         Likewise.
28662         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28663         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28664         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28665         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28666         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28667         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28668         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28669         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28670         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28671         * tests/test-striconveha.c (main): Likewise.
28672         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28673         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28674         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28675         * doc/posix-functions/getline.texi: Likewise.
28676         Reported by Mike Frysinger <vapier@gentoo.org>.
28677
28678 2010-11-20  Bruno Haible  <bruno@clisp.org>
28679
28680         nproc: Fix condition.
28681         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28682         HAVE_PTHREAD_AFFINITY_NP.
28683
28684 2010-11-20  Bruno Haible  <bruno@clisp.org>
28685
28686         Fix a comment.
28687         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28688
28689 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28690
28691         ftoastr: don't assume snprintf
28692         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28693         Implement a subset of snprintf here, by using sprintf safely.
28694         * modules/ftoastr (Depends-on): Remove snprintf.
28695
28696 2010-11-19  Jim Meyering  <meyering@redhat.com>
28697
28698         test-rename.h: fix compilation failure
28699         * tests/test-rename.h (test_rename): Add omitted "}".
28700
28701 2010-11-17  Jim Meyering  <meyering@redhat.com>
28702
28703         maint.mk: add a URL discussing the no-@acronym policy
28704         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28705
28706 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28707
28708         ftoastr: depend on snprintf, improve comments
28709         * lib/ftoastr.c: Also mention Loitsch's draft.
28710         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28711         needed in the current implementation, but it might simplify
28712         speeding up the code later.
28713         * modules/ftoastr: Depend on snprintf; this improves portability.
28714         Suggested by Bruno Haible in the same email.
28715
28716         ftoastr: port to hosts lacking strtof and strtold
28717         Problem reported by Bruno Haible in
28718         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28719         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28720         environment and strtold (and presumably strtof) are not available.
28721         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28722         (configure.ac): Require gl_C99_STRTOLD.
28723
28724 2010-11-18  Bruno Haible  <bruno@clisp.org>
28725
28726         c-strtold: Avoid link error on AIX 7.
28727         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28728         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28729         (gl_C_STRTOLD): Test whether strtold_l exists.
28730         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28731
28732 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28733
28734         intprops: new macro INT_BITS_STRLEN_BOUND
28735         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28736         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28737         not exposed.  Also, it uses a slightly tighter bound than before;
28738         though this makes no practical difference, we might as well be as
28739         tight as we easily can.
28740
28741         ftoastr: new module, for lossless conversion of floats to short strings
28742         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28743         * modules/ftoastr: New files.
28744
28745 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28746
28747         bootstrap: port to Solaris sed
28748         * build-aux/bootstrap (get_version): Port to Solaris sed.
28749         See Ralf Wildenhues's note in
28750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28751
28752 2010-11-14  Jim Meyering  <meyering@redhat.com>
28753
28754         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28755         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28756         and move definition closer to sole use.
28757
28758 2010-11-13  Jim Meyering  <meyering@redhat.com>
28759
28760         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28761         Now we require at least autoconf-2.59, which means the work-around
28762         is no longer needed.
28763         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28765         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28766         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28767         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28768
28769 2010-11-13  Bruno Haible  <bruno@clisp.org>
28770
28771         rename, renameat: Avoid test failures at NFS mounted locations.
28772         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28773         functions.
28774         (test_rename): Use assert_nonexistent.
28775         * tests/test-rename.c: Include <dirent.h>.
28776         * tests/test-renameat.c: Likewise.
28777         Reported by Gary V. Vaughan <gary@gnu.org>.
28778
28779         rename, renameat: Document Linux bug with NFS
28780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28781         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28782         * doc/posix-functions/renameat.texi: Likewise.
28783         Suggested by Eric Blake.
28784
28785 2010-11-13  Bruno Haible  <bruno@clisp.org>
28786
28787         rename test: Add comments.
28788         * tests/test-rename.h (test_rename): Add structure and comments.
28789
28790 2010-11-13  Eric Blake  <eblake@redhat.com>
28791
28792         maintainer-makefile: cover a few more files
28793         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28794         scripts generated within C files, for libvirt.
28795
28796 2010-11-13  Bruno Haible  <bruno@clisp.org>
28797
28798         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28799         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28800         character, return the number of bytes that belong together, not always
28801         1.
28802         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28803         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28804         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28805         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28806         number of bytes of an invalid character.
28807         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28808         (main): Invoke it.
28809         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28810         results.
28811         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28812         malformed byte sequences.
28813         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28814         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28815         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28816         Reported by Ben Pfaff and Paolo Bonzini.
28817
28818 2010-11-13  Bruno Haible  <bruno@clisp.org>
28819
28820         openat: Work around glibc bug with fchownat() and empty file names.
28821         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28822         (gl_FUNC_FCHOWNAT): Invoke it.
28823         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28824         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28825         Reported by Gary V. Vaughan <gary@gnu.org>.
28826
28827 2010-11-13  Bruno Haible  <bruno@clisp.org>
28828
28829         openat: Ensure autoconf macro ordering.
28830         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28831         gl_USE_SYSTEM_EXTENSIONS.
28832         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28833
28834 2010-11-13  Bruno Haible  <bruno@clisp.org>
28835
28836         Update comments.
28837         * lib/unistr/u8-check.c: Update file name in comments.
28838         * lib/unistr/u8-mblen.c: Likewise.
28839         * lib/unistr/u8-prev.c: Likewise.
28840         * lib/unistr/u8-strmblen.c: Likewise.
28841         * lib/unistr/u8-strmbtouc.c: Likewise.
28842
28843 2010-11-13  Jim Meyering  <meyering@redhat.com>
28844
28845         tests: avoid test failure on Solaris 10 due to lack of PATH export
28846         * tests/test-update-copyright.sh: Don't forget to export PATH.
28847
28848         init.sh: ensure that IFS is defined, just in case...
28849         * tests/init.sh (setup_): Ensure that IFS is defined,
28850         so that saving and restoring it works as expected.  This
28851         appears to be useful at least for an old version of dash
28852         from a long time ago (RH 6).  See here for details:
28853         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28854
28855         maint.mk: tighten "test a == b" check
28856         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28857         test to files that contain something like #!/bin/sh.
28858         Without this, coreutils would get two false positives in
28859         the comments of C source files.
28860
28861 2010-11-12  Eric Blake  <eblake@redhat.com>
28862
28863         bootstrap: fix typo in previous attempt
28864         * build-aux/bootstrap (buildreq): Correct the grouping.
28865         Reported by Paul Eggert.
28866
28867         maintainer-makefile: prohibit test x == x
28868         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28869         Based on a report by Matthias Bolte.
28870
28871         bootstrap: allow FreeBSD gzip
28872         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28873         which has no '.' and goes to stderr.
28874         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28875         Reported by Matthias Bolte.
28876
28877         maintainer-makefile: check for i18n setup
28878         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28879         will likely work.
28880
28881 2010-11-12  Bruno Haible  <bruno@clisp.org>
28882
28883         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28884         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28885         * lib/nanosleep.c (nanosleep): Likewise.
28886
28887 2010-11-11  Bruno Haible  <bruno@clisp.org>
28888
28889         fcntl-h: Fix for use of C++ on glibc systems.
28890         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28891         also on glibc systems in C++ mode.
28892         Reported by Gary V. Vaughan <gary@gnu.org>.
28893
28894 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28895
28896         mknod: avoid false failure with dash
28897         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28898
28899 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28900
28901         unlink: Fix "is it should" typo in diagnostic.
28902         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28903         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28904
28905 2010-11-11  Bruno Haible  <bruno@clisp.org>
28906
28907         Tests for module 'strerror_r-posix'.
28908         * modules/strerror_r-posix-tests: New file.
28909         * tests/test-strerror_r.c: New file.
28910         * tests/test-string-c++.cc: Check the signature of strerror_r.
28911
28912         New module 'strerror_r-posix'.
28913         * lib/string.in.h (strerror_r): New declaration.
28914         * lib/strerror_r.c: New file.
28915         * m4/strerror_r.m4: New file.
28916         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28917         of strerror_r.
28918         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28919         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28920         * modules/strerror_r-posix: New file.
28921         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28922         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28923         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28924         portability problems.
28925
28926 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28927
28928         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28929         line is also considered for output. Quoted function name in shell
28930         command, so temporary files for functions like MyClass::operator()
28931         are removed correctly without errors.
28932
28933 2010-11-09  Bruno Haible  <bruno@clisp.org>
28934
28935         * doc/posix-functions/strerror.texi: List more failing platforms.
28936
28937         * doc/posix-functions/strerror.texi: Add a comment.
28938
28939 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28940
28941         fdopendir: fix bug on MacOS X when low on file descriptors
28942
28943         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28944         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28945         All callers changed.
28946         (fdopendir): Invoke save_cwd at the top level, not after using
28947         multiple dup() calls to use up file descriptors.  Then retry
28948         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28949         less than the maximum number of open file descriptors, because
28950         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28951         on Mac OS X 10.6.4 for tar 1.24
28952         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28953         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28954         and for tar 1.25
28955         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28956
28957 2010-11-07  Bruno Haible  <bruno@clisp.org>
28958
28959         vasnprintf: Support I flag on glibc systems.
28960         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28961         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28962         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28963         snprintf function.
28964         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28965         glibc systems.
28966         * tests/test-vasnprintf-posix3.c: New file.
28967         * modules/vasnprintf-posix-tests (Files): Add it.
28968         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28969
28970 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28971
28972         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28973         * MODULES.html.sh: For compiler warnings, use name
28974         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28975
28976 2010-11-05  Eric Blake  <eblake@redhat.com>
28977
28978         ceil, floor: avoid spurious failure with icc
28979         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28980         [denormals-as-zero] when optimizing without -mieee-fp option.
28981         * tests/test-floorf2.c (floorf_reference): Likewise.
28982         * tests/test-ceilf1.c (dummy): New function.
28983         (main): Use it to outsmart icc's optimization.
28984         * tests/test-floorf1.c (dummy, main): Likewise.
28985
28986         tests: require working signbit
28987         * modules/ceilf-tests (Depends-on): Add signbit.
28988         * modules/ceill-tests (Depends-on): Likewise.
28989         * modules/floorf-tests (Depends-on): Likewise.
28990         * modules/floorl-tests (Depends-on): Likewise.
28991         * modules/round-tests (Depends-on): Likewise.
28992         * modules/roundf-tests (Depends-on): Likewise.
28993         * modules/roundl-tests (Depends-on): Likewise.
28994         * modules/trunc-tests (Depends-on): Likewise.
28995         * modules/truncf-tests (Depends-on): Likewise.
28996         * modules/truncl-tests (Depends-on): Likewise.
28997
28998         strtod: work around icc bug
28999         * lib/strtod.c (minus_zero): Define to working value.
29000         (strtod): Use it to avoid icc bug.
29001
29002         copysign: enhance tests
29003         * modules/copysign-tests (Files): Add minus-zero.h.
29004         * tests/test-copysign.c (main): Also test zeros.
29005
29006 2010-11-04  Eric Blake  <eblake@redhat.com>
29007
29008         ceil, floor, round, trunc: enhance tests of -0
29009         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29010         * tests/test-ceill.c (main): Likewise.
29011         * tests/test-floorf1.c (main): Likewise.
29012         * tests/test-floorl.c (main): Likewise.
29013         * tests/test-round1.c (main): Likewise.
29014         * tests/test-roundf1.c (main): Likewise.
29015         * tests/test-roundl.c (main): Likewise.
29016         * tests/test-trunc1.c (main): Likewise.
29017         * tests/test-truncf1.c (main): Likewise.
29018         * tests/test-truncl.c (main): Likewise.
29019
29020 2010-11-04  Eric Blake  <eblake@redhat.com>
29021
29022         frexp, tests: work around ICC bug with -zero
29023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29024         works with more compilers.
29025         * tests/minus-zero.h: New file.
29026         * modules/ceilf-tests (Files): Include it.
29027         * modules/ceill-tests (Files): Likewise.
29028         * modules/floorf-tests (Files): Likewise.
29029         * modules/floorl-tests (Files): Likewise.
29030         * modules/frexp-nolibm-tests (Files): Likewise.
29031         * modules/frexp-tests (Files): Likewise.
29032         * modules/frexpl-nolibm-tests (Files): Likewise.
29033         * modules/frexpl-tests (Files): Likewise.
29034         * modules/isnan-tests (Files): Likewise.
29035         * modules/isnand-nolibm-tests (Files): Likewise.
29036         * modules/isnand-tests (Files): Likewise.
29037         * modules/isnanf-nolibm-tests (Files): Likewise.
29038         * modules/isnanf-tests (Files): Likewise.
29039         * modules/isnanl-nolibm-tests (Files): Likewise.
29040         * modules/isnanl-tests (Files): Likewise.
29041         * modules/round-tests (Files): Likewise.
29042         * modules/roundf-tests (Files): Likewise.
29043         * modules/roundl-tests (Files): Likewise.
29044         * modules/ldexpl-tests (Files): Likewise.
29045         * modules/signbit-tests (Files): Likewise.
29046         * modules/snprintf-posix-tests (Files): Likewise.
29047         * modules/sprintf-posix-tests (Files): Likewise.
29048         * modules/strtod-tests (Files): Likewise.
29049         * modules/trunc-tests (Files): Likewise.
29050         * modules/truncf-tests (Files): Likewise.
29051         * modules/truncl-tests (Files): Likewise.
29052         * modules/vsnprintf-posix-tests (Files): Likewise.
29053         * modules/vsprintf-posix-tests (Files): Likewise.
29054         * modules/vasnprintf-posix-tests (Files): Likewise.
29055         * modules/vasprintf-posix-tests (Files): Likewise.
29056         * tests/test-ceilf1.c (main): Use it.
29057         * tests/test-ceill.c (main): Likewise.
29058         * tests/test-floorf1.c (main): Likewise.
29059         * tests/test-floorl.c (main): Likewise.
29060         * tests/test-frexp.c (main): Likewise.
29061         * tests/test-frexpl.c (main): Likewise.
29062         * tests/test-isnan.c (main): Likewise.
29063         * tests/test-isnand.h (main): Likewise.
29064         * tests/test-isnanf.h (main): Likewise.
29065         * tests/test-isnanl.h (main): Likewise.
29066         * tests/test-ldexpl.c (main): Likewise.
29067         * tests/test-round.c (main): Likewise.
29068         * tests/test-roundf.c (main): Likewise.
29069         * tests/test-roundl.c (main): Likewise.
29070         * tests/test-signbit.c (test_signbitf, test_signbitd)
29071         (test_signbitl): Likewise.
29072         * tests/test-snprintf-posix.h (test_function): Likewise.
29073         * tests/test-sprintf-posix.h (test_function): Likewise.
29074         * tests/test-strtod.c (main): Likewise.
29075         * tests/test-trunc1.c (main): Likewise.
29076         * tests/test-truncf1.c (main): Likewise.
29077         * tests/test-truncl.c (main): Likewise.
29078
29079         isnanl: work around icc bug
29080         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29081
29082 2010-11-03  Eric Blake  <eblake@redhat.com>
29083
29084         tests: fix compiler warnings
29085         * tests/test-getopt.h (test_getopt): Fix condition.
29086         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29087         * tests/test-pipe2.c (main): Likewise.
29088         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29089
29090         utimens: fix broken m4 test
29091         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29092
29093 2010-10-28  Bruno Haible  <bruno@clisp.org>
29094
29095         posix_spawn*, getdtablesize: Relax license.
29096         * modules/posix_spawn (License): Change to LGPLv2+.
29097         * modules/posix_spawnp (License): Likewise.
29098         * modules/posix_spawn-internal (License): Likewise.
29099         * modules/posix_spawnattr_init (License): Likewise.
29100         * modules/posix_spawnattr_getflags (License): Likewise.
29101         * modules/posix_spawnattr_setflags (License): Likewise.
29102         * modules/posix_spawnattr_getpgroup (License): Likewise.
29103         * modules/posix_spawnattr_setpgroup (License): Likewise.
29104         * modules/posix_spawnattr_getschedparam (License): Likewise.
29105         * modules/posix_spawnattr_setschedparam (License): Likewise.
29106         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29107         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29108         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29109         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29110         * modules/posix_spawnattr_getsigmask (License): Likewise.
29111         * modules/posix_spawnattr_setsigmask (License): Likewise.
29112         * modules/posix_spawnattr_destroy (License): Likewise.
29113         * modules/posix_spawn_file_actions_init (License): Likewise.
29114         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29115         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29116         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29117         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29118         * modules/getdtablesize (License): Likewise.
29119         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29120
29121 2010-10-26  Bruno Haible  <bruno@clisp.org>
29122
29123         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29124         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29125         Cygwin and mingw.
29126         Suggested by Eric Blake.
29127
29128 2010-10-26  Bruno Haible  <bruno@clisp.org>
29129
29130         stdio: Work around compilation error due to renameat() on Solaris 10.
29131         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29132         * lib/renameat.c: Don't include <unistd.h> here.
29133         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29134         Reported by Paul Eggert and Eric Blake.
29135
29136 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         renameat: port to Solaris 10, which declares renameat in unistd.h
29139
29140         * lib/renameat.c: Include unistd.h before stdio.h, because
29141         Solaris 10 declares renameat in unistd.h.  Problem encountered
29142         when building GNU tar 1.24 on Solaris 10.
29143
29144 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29145
29146         fdopendir: fix C89 compilation
29147         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29148         compilers.
29149
29150 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29151
29152         inttostr: simplify by removing unnecessary redundancy
29153         * lib/anytostr.c: Don't include verify.h.
29154         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29155         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29156         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29157         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29158         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29159         Likewise.
29160         * modules/inttostr (Depends-on): Remove 'verify'.
29161
29162 2010-10-23  Bruno Haible  <bruno@clisp.org>
29163
29164         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29165         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29166         Reported by Eric Blake.
29167
29168 2010-10-23  Bruno Haible  <bruno@clisp.org>
29169
29170         Tests: Fix LOCALE_JA on MirBSD 10.
29171         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29172         to an UTF-8 locale.
29173         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29175         Reported by Eric Blake.
29176
29177 2010-10-21  Bruno Haible  <bruno@clisp.org>
29178
29179         nl_langinfo test: Avoid test failure on NetBSD 5.
29180         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29181         Reported by Eric Blake.
29182
29183 2010-10-21  Eric Blake  <eblake@redhat.com>
29184
29185         c-stack: work around libsigsegv 2.8 bug
29186         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29187         overflow on at least PowerPC64.
29188
29189 2010-10-17  Bruno Haible  <bruno@clisp.org>
29190
29191         userspec: Drop redundant file.
29192         * modules/userspec (Files): Remove lib/inttostr.h.
29193
29194 2010-10-17  Bruno Haible  <bruno@clisp.org>
29195
29196         nl_langinfo tests: Silence some warnings.
29197         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29198         Reported by Jim Meyering.
29199
29200 2010-10-17  Bruno Haible  <bruno@clisp.org>
29201
29202         Make use of GCC's attribute __alloc_size__.
29203         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29204         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29205         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29206         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29207         __alloc_size__.
29208         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29209         Suggested by Jim Meyering.
29210
29211 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29212
29213         bootstrap: anchor .gitignore entries.
29214         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29215         with...
29216         (insert_vc_ignore): ... this new function, which prepends `/' to
29217         all .gitignore entries before passing them to
29218         insert_sorted_if_absent.
29219
29220 2010-10-16  Bruno Haible  <bruno@clisp.org>
29221
29222         nextafter: Fix configure check.
29223         * modules/nextafter (configure.ac): Correct expected prototype.
29224
29225 2010-10-16  Bruno Haible  <bruno@clisp.org>
29226
29227         termios: Update documentation.
29228         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29229
29230 2010-10-16  Bruno Haible  <bruno@clisp.org>
29231
29232         tests: Make them compile with TinyCC.
29233         * tests/test-strstr.c (main): Remove parentheses around array
29234         initializer.
29235
29236 2010-10-15  Eric Blake  <eblake@redhat.com>
29237
29238         ignore-value: make header idempotent
29239         * lib/ignore-value.h: Add double-inclusion guards.
29240         Reported by Stefan Berger.
29241
29242 2010-10-15  Jim Meyering  <meyering@redhat.com>
29243
29244         GNUmakefile: handle "stable" target, not "major"
29245         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29246         lists in maint.mk and announce-gen.  Without this, "make stable"
29247         would fail to ensure that $(VERSION) is up to date.
29248
29249 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29250
29251         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29252         & co.
29253
29254 2010-10-14  Bruno Haible  <bruno@clisp.org>
29255
29256         vasnprintf: Don't set errno to 0.
29257         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29258         block that sets it to 0.
29259         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29260
29261 2010-10-14  Bruno Haible  <bruno@clisp.org>
29262
29263         socketlib: Fix.
29264         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29265         gl_PREREQ_SYS_H_WINSOCK2.
29266         Reported by Ian Beckwith <ianb@erislabs.net>.
29267
29268 2010-10-13  Jim Meyering  <meyering@redhat.com>
29269
29270         test-select-stdin.c: avoid warn_unused_result warnings
29271         * tests/test-select-stdin.c: Include "macros.h".
29272         ASSERT that read and fflush succeed.
29273
29274 2010-10-13  Jim Meyering  <meyering@redhat.com>
29275
29276         git-version-gen: do require git-VC'd files in cwd
29277         * build-aux/git-version-gen: Reject a git version string
29278         if there are no commits associated with the current directory.
29279         This avoids an unlikely false-positive (unrelated dir whose parent
29280         repository also contains a tag matching v*), as pointed out
29281         by Giuseppe Scrivano in
29282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29283
29284 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29285
29286         argv-iter: omit nonconforming declaration
29287         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29288         enum arg_iter_err declaration, which doesn't conform to C99.
29289         Solaris 10 cc warns about this.
29290
29291 2010-10-13  Eric Blake  <eblake@redhat.com>
29292
29293         termios: fix compilation on mingw
29294         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29295         (gl_TERMIOS_H): Adjust it on mingw.
29296         * modules/termios (Makefile.am): Substitute new key.
29297         * lib/termios.in.h (includes): Make include_next conditional.
29298         * doc/posix-headers/termios.texi (termios.h): Update
29299         documentation.
29300         Reported by Daniel P. Berrange.
29301
29302 2010-10-13  Jim Meyering  <meyering@redhat.com>
29303
29304         git-version-gen: don't require that .git/ be in the current dir
29305         * build-aux/git-version-gen: Adjust this script so that it works
29306         when run from any working directory beneath the top-level .git/-
29307         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29309
29310         test-select: avoid warn_unused_result warnings
29311         * tests/test-select.c: Include "macros.h".
29312         ASSERT that each call to read, write, and pipe succeeds.
29313         While not technically required, also check each "close".
29314         * modules/select-tests (Files): Add tests/macros.h.
29315
29316         test-symlinkat: remove declaration of unused local
29317         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29318
29319         test-inttostr: avoid shadowing warnings
29320         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29321         and use malloc rather than the stack for the same reason as
29322         mentioned in the comment justifying the other allocation.
29323
29324 2010-10-11  Bruno Haible  <bruno@clisp.org>
29325
29326         stdlib: Allow multiple gnulib generated replacements to coexist.
29327         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29328         Reported by Sam Steingold <sds@gnu.org>.
29329
29330 2010-10-11  Jim Meyering  <meyering@redhat.com>
29331
29332         fix a documentation typo
29333         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29334
29335 2010-10-11  Eric Blake  <eblake@redhat.com>
29336
29337         futimens: work around Solaris 11 bug
29338         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29339         * tests/test-futimens.h (test_futimens): Enhance, rather than
29340         weaken test.
29341         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29342
29343 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29344
29345         Indentation.
29346         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29347         higher-level operators more to the left.
29348
29349 2010-10-11  Jim Meyering  <meyering@redhat.com>
29350
29351         test-futimens: avoid unwarranted test failure on Solaris 5.11
29352         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29353         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29354         because it tries to dereference the NULL name argument.
29355
29356 2010-10-11  Bruno Haible  <bruno@clisp.org>
29357
29358         Indentation.
29359         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29360         indentation.
29361
29362 2010-10-11  Jim Meyering  <meyering@redhat.com>
29363
29364         spawn.in.h: make indentation consistent with parentheses
29365         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29366         Make indentation consistent with parentheses.
29367
29368 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29369
29370         Fix mismatched parens in previous commit
29371         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29372         parens.
29373
29374 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29375
29376         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29377
29378         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29379         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29380         * lib/malloca.c: Include "verify.h".
29381         (verify1): Remove, replacing with a verify call.
29382         * lib/relocwrapper.c (verify1): Likewise.
29383         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29384         Likewise.
29385         * modules/malloca (Depends-on): Add 'verify'.
29386         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29387         * modules/vasnprintf (Depends-on): Add 'verify'.
29388         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29389         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29395
29396         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29397
29398         Formerly the style was sometimes 2*X - 1, because the C standard
29399         was wrongly thought to disallow ?: in integral constant expressions.
29400         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29401         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29402         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29403         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29404         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29405         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29406         verify that time_t cannot be floating.
29407
29408 2010-10-08  Eric Blake  <eblake@redhat.com>
29409
29410         time: enforce recent POSIX ruling that time_t is integral
29411         * lib/time.in.h (__time_t_must_be_integral): Detect any
29412         problematic systems, allowing the rest of gnulib to assume POSIX.
29413
29414 2010-10-08  Jim Meyering  <meyering@redhat.com>
29415
29416         fdopendir: fix a bug on systems lacking openat and /proc support
29417         OpenBSD 4.7 is one such system.  The most noticeable effect was
29418         failure of any application making nontrivial use of fts: rm, du,
29419         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29420           ./rm: traversal failed: `a': Bad file descriptor
29421         Debugging that, you see that even though FD 6 was closed just
29422         prior to the opendir call in fd_clone_opendir, its resulting
29423         dir->dd_fd was 8, rather than the expected value of 6:
29424
29425         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29426         93                close (fd);
29427         (gdb) n
29428         94                dir = fd_clone_opendir (dupfd);
29429         (gdb) n
29430         95                saved_errno = errno;
29431         (gdb) p dir->dd_fd
29432         $11 = 8
29433
29434         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29435         The problem is that on OpenBSD, fd_clone_opendir has to resort
29436         to using the old-style save/restore CWD mechanism, due to its
29437         lack of openat/proc support, and *that* would steal the FD (6)
29438         that opendir was supposed to use.
29439
29440         The fix is to squirrel away the desired FD so that save_cwd uses a
29441         different one, and then free the dest FD right before calling opendir.
29442         That guarantees opendir will use the required file descriptor.
29443
29444         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29445
29446 2010-10-08  Bruno Haible  <bruno@clisp.org>
29447
29448         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29449         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29450
29451 2010-10-08  Bruno Haible  <bruno@clisp.org>
29452
29453         nanosleep: Make replacement POSIX compliant.
29454         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29455         is out of range.
29456         Reported by Jim Meyering.
29457
29458 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29459
29460         bootstrap: add hook for altering gnulib.mk, for Bison
29461         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29462         the Bison bootstrapping process can rewrite file names and variables
29463         in this file before later parts of 'bootstrap' use the file.
29464         Bison wants to include lib/gnulib.mk from the top-level makefile,
29465         so it needs the file names in this file to be relative to the top
29466         level, not relative to lib; plus it needs variable names to be
29467         rewritten.
29468         (slurp): Use the new function.
29469
29470         bootstrap: reformat for readability
29471         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29472
29473 2010-10-08  Eric Blake  <eblake@redhat.com>
29474
29475         docs: update cygwin progress
29476         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29477         1.7.7.
29478         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29479         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29480         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29481         * doc/posix-functions/carg.texi (carg): Likewise.
29482         * doc/posix-functions/cargf.texi (cargf): Likewise.
29483         * doc/posix-functions/casin.texi (casin): Likewise.
29484         * doc/posix-functions/casinf.texi (casinf): Likewise.
29485         * doc/posix-functions/casinh.texi (casinh): Likewise.
29486         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29487         * doc/posix-functions/catan.texi (catan): Likewise.
29488         * doc/posix-functions/catanf.texi (catanf): Likewise.
29489         * doc/posix-functions/catanh.texi (catanh): Likewise.
29490         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29491         * doc/posix-functions/ccos.texi (ccos): Likewise.
29492         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29493         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29494         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29495         * doc/posix-functions/cexp.texi (cexp): Likewise.
29496         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29497         * doc/posix-functions/cimag.texi (cimag): Likewise.
29498         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29499         * doc/posix-functions/clog.texi (clog): Likewise.
29500         * doc/posix-functions/clogf.texi (clogf): Likewise.
29501         * doc/posix-functions/conj.texi (conj): Likewise.
29502         * doc/posix-functions/conjf.texi (conjf): Likewise.
29503         * doc/posix-functions/cpow.texi (cpow): Likewise.
29504         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29505         * doc/posix-functions/cproj.texi (cproj): Likewise.
29506         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29507         * doc/posix-functions/creal.texi (creal): Likewise.
29508         * doc/posix-functions/crealf.texi (crealf): Likewise.
29509         * doc/posix-functions/csin.texi (csin): Likewise.
29510         * doc/posix-functions/csinf.texi (csinf): Likewise.
29511         * doc/posix-functions/csinh.texi (csinh): Likewise.
29512         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29513         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29514         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29515         * doc/posix-functions/ctan.texi (ctan): Likewise.
29516         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29517         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29518         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29519         * doc/posix-headers/complex.texi (complex.h): Likewise.
29520
29521 2010-10-07  Jim Meyering  <meyering@redhat.com>
29522
29523         parse-datetime: avoid compilation failure on OpenBSD 4.7
29524         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29525         This works around a compilation failure on OpenBSD 4.7:
29526         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29527
29528 2010-10-07  Eric Blake  <eblake@redhat.com>
29529
29530         docs: update cygwin progress
29531         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29532         1.7.6.
29533         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29534         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29535         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29536         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29537         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29538         Likewise.
29539         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29540         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29541         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29542         Likewise.
29543         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29544         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29545         Likewise.
29546         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29547         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29548         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29549         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29550         Likewise.
29551         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29552         Likewise.
29553         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29554
29555         docs: update parse-datetime history
29556         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29557         documentation of this function's history and alternatives.
29558
29559         cygwin: use more robust version check
29560         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29561         exclude an eventual cygwin 1.9.1.
29562         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29564         (gl_FUNC_STRCASESTR): Likewise.
29565         Reported by Bruno Haible.
29566
29567 2010-10-06  Bruno Haible  <bruno@clisp.org>
29568
29569         string, sys_select: Avoid #including large headers unless necessary.
29570         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29571         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29572         OSF/1, BeOS, Haiku.
29573         Reported by Jim Meyering.
29574
29575 2010-10-05  Eric Blake  <eblake@redhat.com>
29576
29577         memmem, strstr, strcasestr: fix bug with long periodic needle
29578         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29579         periodic needle having false positive.
29580         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29581         and cygwin 1.7.7.
29582         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29584         (gl_FUNC_STRCASESTR): Likewise.
29585         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29586         * tests/test-memmem.c (main): Expose the bug.
29587         * tests/test-strcasestr.c (main): Likewise.
29588         * tests/test-strstr.c (main): Likewise.
29589         * tests/test-c-strcasestr.c (main): Likewise.
29590         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29591         * doc/posix-functions/strstr.texi (strstr): Likewise.
29592         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29593         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29594
29595 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29596
29597         parse-datetime: do some more renaming
29598         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29599         parse_datetime, not get_date.  Mention the renaming.
29600         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29601         in comments.
29602         * m4/bison.m4: Likewise.
29603
29604 2010-10-05  Eric Blake  <eblake@redhat.com>
29605
29606         parse-datetime: better name than get_date
29607         * NEWS: Reword the deprecation notice.
29608         * modules/get_date: Rename to modules/parse-datetime.
29609         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29610         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29611         * lib/get_date.y: Rename to lib/parse-datetime.y.
29612         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29613         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29614         * doc/getdate.texi: Provide fallback wrapper.
29615         * lib/getdate.h: Move guts, and wrap...
29616         * lib/parse-datetime.h: ...new file.
29617         * lib/parse-datetime.y (get_date): Rename...
29618         (parse_datetime): ...to this.
29619         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29620         (gl_PARSE_DATETIME): ...to this.
29621         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29622         documentation.
29623         * modules/getdate (Files): Provide fallback docs and header.
29624         (Notice, Depends-on): Update references.
29625         * tests/test-parse-datetime.c: Likewise.
29626         * DEPENDENCIES: Likewise.
29627         * MODULES.html.sh (Date and time <time.h>): Likewise.
29628         * doc/parse-datetime.texi (Date input formats)
29629         (Authors of parse_datetime): Likewise.
29630         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29631         (Include): Likewise.
29632         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29633         * gnulib-tool: Likewise.
29634         * m4/bison.m4 (gl_BISON): Likewise.
29635         Suggested by Bruno Haible.
29636
29637 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29638
29639         more ports to Solaris tr, which needs [] around ranges
29640         * gnulib-tool: Solaris tr needs [] around ranges.
29641         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29642         * tests/test-pipe-filter-gi1.c (main): Likewise.
29643         * tests/test-pipe-filter-ii1.c (main): Likewise.
29644
29645 2010-10-05  Eric Blake  <eblake@redhat.com>
29646
29647         bootstrap: fix Solaris regression
29648         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29649         around ranges.
29650         Reported by Pádraig Brady.
29651
29652         bootstrap: work with pkg-config
29653         * build-aux/bootstrap (check_versions): Also transliterate - in
29654         prerequisite name.
29655         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29656         prerequisites that were already found, to avoid confusion.
29657         Reported by Justin Clift.
29658
29659         faccessat: remove unused wrappers
29660         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29661         presence of these wrappers dragged in -lgen on Solaris.
29662         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29663
29664 2010-10-05  Jim Meyering  <meyering@redhat.com>
29665
29666         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29667         * Makefile (sc_pragma_columns): New syntax-check rule.
29668
29669 2010-10-04  Bruno Haible  <bruno@clisp.org>
29670
29671         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29672         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29673         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29674         Reported by Bruce Korb and Eric Blake.
29675
29676 2010-10-04  Bruno Haible  <bruno@clisp.org>
29677
29678         threadlib: Make option --with-libpth-prefix work.
29679         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29680         use $LIBPTH, not just -lpth.
29681
29682 2010-10-04  Bruno Haible  <bruno@clisp.org>
29683
29684         Avoid line length limitation from HP NonStop system header files.
29685         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29686         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29687         * lib/ctype.in.h: Likewise.
29688         * lib/dirent.in.h: Likewise.
29689         * lib/errno.in.h: Likewise.
29690         * lib/fcntl.in.h: Likewise.
29691         * lib/float.in.h: Likewise.
29692         * lib/getopt.in.h: Likewise.
29693         * lib/iconv.in.h: Likewise.
29694         * lib/inttypes.in.h: Likewise.
29695         * lib/langinfo.in.h: Likewise.
29696         * lib/locale.in.h: Likewise.
29697         * lib/math.in.h: Likewise.
29698         * lib/netdb.in.h: Likewise.
29699         * lib/netinet_in.in.h: Likewise.
29700         * lib/poll.in.h: Likewise.
29701         * lib/pthread.in.h: Likewise.
29702         * lib/pty.in.h: Likewise.
29703         * lib/sched.in.h: Likewise.
29704         * lib/se-selinux.in.h: Likewise.
29705         * lib/search.in.h: Likewise.
29706         * lib/signal.in.h: Likewise.
29707         * lib/spawn.in.h: Likewise.
29708         * lib/stdarg.in.h: Likewise.
29709         * lib/stddef.in.h: Likewise.
29710         * lib/stdint.in.h: Likewise.
29711         * lib/stdio.in.h: Likewise.
29712         * lib/stdlib.in.h: Likewise.
29713         * lib/string.in.h: Likewise.
29714         * lib/strings.in.h: Likewise.
29715         * lib/sys_file.in.h: Likewise.
29716         * lib/sys_ioctl.in.h: Likewise.
29717         * lib/sys_select.in.h: Likewise.
29718         * lib/sys_socket.in.h: Likewise.
29719         * lib/sys_stat.in.h: Likewise.
29720         * lib/sys_time.in.h: Likewise.
29721         * lib/sys_times.in.h: Likewise.
29722         * lib/sys_utsname.in.h: Likewise.
29723         * lib/sys_wait.in.h: Likewise.
29724         * lib/sysexits.in.h: Likewise.
29725         * lib/termios.in.h: Likewise.
29726         * lib/time.in.h: Likewise.
29727         * lib/unistd.in.h: Likewise.
29728         * lib/wchar.in.h: Likewise.
29729         * lib/wctype.in.h: Likewise.
29730         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29731         * modules/ctype (Makefile.am): Likewise.
29732         * modules/dirent (Makefile.am): Likewise.
29733         * modules/errno (Makefile.am): Likewise.
29734         * modules/fcntl-h (Makefile.am): Likewise.
29735         * modules/float (Makefile.am): Likewise.
29736         * modules/getopt-posix (Makefile.am): Likewise.
29737         * modules/iconv-h (Makefile.am): Likewise.
29738         * modules/inttypes (Makefile.am): Likewise.
29739         * modules/langinfo (Makefile.am): Likewise.
29740         * modules/locale (Makefile.am): Likewise.
29741         * modules/math (Makefile.am): Likewise.
29742         * modules/netdb (Makefile.am): Likewise.
29743         * modules/netinet_in (Makefile.am): Likewise.
29744         * modules/poll-h (Makefile.am): Likewise.
29745         * modules/pthread (Makefile.am): Likewise.
29746         * modules/pty (Makefile.am): Likewise.
29747         * modules/sched (Makefile.am): Likewise.
29748         * modules/search (Makefile.am): Likewise.
29749         * modules/selinux-h (Makefile.am): Likewise.
29750         * modules/signal (Makefile.am): Likewise.
29751         * modules/spawn (Makefile.am): Likewise.
29752         * modules/stdarg (Makefile.am): Likewise.
29753         * modules/stddef (Makefile.am): Likewise.
29754         * modules/stdint (Makefile.am): Likewise.
29755         * modules/stdio (Makefile.am): Likewise.
29756         * modules/stdlib (Makefile.am): Likewise.
29757         * modules/string (Makefile.am): Likewise.
29758         * modules/strings (Makefile.am): Likewise.
29759         * modules/sys_file (Makefile.am): Likewise.
29760         * modules/sys_ioctl (Makefile.am): Likewise.
29761         * modules/sys_select (Makefile.am): Likewise.
29762         * modules/sys_socket (Makefile.am): Likewise.
29763         * modules/sys_stat (Makefile.am): Likewise.
29764         * modules/sys_time (Makefile.am): Likewise.
29765         * modules/sys_times (Makefile.am): Likewise.
29766         * modules/sys_utsname (Makefile.am): Likewise.
29767         * modules/sys_wait (Makefile.am): Likewise.
29768         * modules/sysexits (Makefile.am): Likewise.
29769         * modules/termios (Makefile.am): Likewise.
29770         * modules/time (Makefile.am): Likewise.
29771         * modules/unistd (Makefile.am): Likewise.
29772         * modules/wchar (Makefile.am): Likewise.
29773         * modules/wctype (Makefile.am): Likewise.
29774
29775 2010-10-04  Bruno Haible  <bruno@clisp.org>
29776
29777         read-file tests: Avoid a test failure on NonStop Kernel.
29778         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29779         a regular file.
29780         Reported by Joachim Schmitz <schmitz@hp.com>.
29781
29782 2010-10-03  Bruno Haible  <bruno@clisp.org>
29783
29784         gnulib-tool: Fixes for --create-testdir with --libtool.
29785         * gnulib-tool (func_get_automake_snippet): Don't augment
29786         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29787         an executable.
29788         (func_create_testdir): Handle module 'alloca' like func_import.
29789         Reported by Bruce Korb <bruce.korb@gmail.com>.
29790
29791 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29792
29793         Avoid some lines longer than 80 characters.
29794         * lib/stdint.in.h: Break long comment lines.
29795         * lib/math.in.h: Likewise.
29796         (_GL_NUM_UINT_WORDS): New macro, for readability.
29797         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29798         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29799         * lib/stdlib.in.h: Likewise.
29800         * lib/spawn.in.h: Likewise.
29801         * lib/sys_socket.in.h: Update an URL.
29802         * lib/sys_stat.in.h: Break long line.
29803
29804 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29805
29806         Improve pmccabe2html.
29807         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29808         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29809         when the sources change. Remove the line in the HTML about "Used
29810         ranges" (which implied that there might be other unused ranges),
29811         rename "Resume" to "Summary" (easier to understand for more users).
29812         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29813         styles, and some unnecessary blank lines.
29814
29815 2010-10-03  Bruno Haible  <bruno@clisp.org>
29816             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29817
29818         acl: Add support for ACLs on NonStop Kernel.
29819         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29820         Check whether the function aclsort() exists.
29821         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29822         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29823         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29824         (acl_nontrivial [HAVE_ACLSORT]: New function.
29825         (file_has_acl): Implement for NonStop Kernel.
29826         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29827         (qset_acl): Implement for NonStop Kernel.
29828         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29829         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29830         (main): Implement for NonStop Kernel.
29831         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29832         Kernel. Handle this flavor.
29833         * tests/test-set-mode-acl.sh: Likewise.
29834         * tests/test-copy-acl.sh: Likewise.
29835         * tests/test-copy-file.sh: Likewise.
29836
29837 2010-10-03  Bruno Haible  <bruno@clisp.org>
29838
29839         Info about ACLs on NonStop Kernel.
29840         * doc/acl-resources.txt: Add info about NonStop Kernel.
29841         References by Joachim Schmitz <schmitz@hp.com>.
29842
29843 2010-10-02  Bruno Haible  <bruno@clisp.org>
29844
29845         Define missing EDQUOT on NonStop Kernel.
29846         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29847         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29849         missing.
29850         * doc/posix-headers/errno.texi: Mention the NSK bug.
29851         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29852         Reported by Joachim Schmitz <schmitz@hp.com>.
29853
29854 2010-10-02  Bruno Haible  <bruno@clisp.org>
29855
29856         Update doc for POSIX:2008.
29857         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29858         Update URL of POSIX specification.
29859
29860 2010-10-02  Bruno Haible  <bruno@clisp.org>
29861
29862         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29863         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29864         from gnulib, not from Automake.
29865
29866 2010-10-02  Bruno Haible  <bruno@clisp.org>
29867
29868         New module 'system-posix'.
29869         * modules/system-posix: New file.
29870         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29871         module is present.
29872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29873         GNULIB_SYSTEM_POSIX.
29874         * modules/stdlib (Depends-on): Remove sys_wait.
29875         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29876         * doc/posix-functions/system.texi: Mention the new module.
29877         * doc/posix-headers/stdlib.texi: Likewise.
29878         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29879         define test_sys_wait_macros to a no-op.
29880         Reported by Sam Steingold <sds@gnu.org>.
29881
29882 2010-09-30  Bruno Haible  <bruno@clisp.org>
29883
29884         More renaming from 'getdate' to 'get_date'.
29885         * doc/get_date.texi: Renamed from doc/getdate.texi.
29886         * modules/get_date (Files): Update.
29887         * MODULES.html.sh (Date and time <time.h>): Update.
29888         * DEPENDENCIES: Update.
29889         * gnulib-tool: Update comment.
29890         * m4/bison.m4 (gl_BISON): Likewise.
29891         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29892
29893 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29894
29895         bootstrap: support ACLOCAL_FLAGS during aclocal
29896         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29897         can add additional -I dir for third-party .m4 files.
29898
29899 2010-09-30  Eric Blake  <eblake@redhat.com>
29900
29901         bootstrap: use glibtoolize on MacOS
29902         * build-aux/bootstrap (check_versions): Convert libtool into
29903         libtoolize.
29904         (tool search): Move libtool check earlier, and look for
29905         glibtoolize for MacOS.
29906         (gnulib_tool_options): Auto-add --libtool when appropriate.
29907         Reported by Justin Clift.
29908
29909         poll: fix typo that broke test on MacOS
29910         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29911         Reported by Justin Clift.
29912
29913         getdate: rename to get_date
29914         Note: getdate.h is not renamed, to minimize client impact.
29915         * modules/getdate: Mark obsolete.  Move old contents...
29916         * modules/get_date: ...to new module name.
29917         * modules/getdate-tests: Move...
29918         * modules/get_date-tests: ...here.
29919         * m4/getdate.m4: Move...
29920         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29921         * lib/getdate.y: Move...
29922         * lib/get_date.y: ...here.
29923         * tests/test-getdate.c: Move...
29924         * tests/test-get_date.c: ...here.
29925         * doc/posix-functions/getdate.texi (getdate): Update name.
29926         * NEWS: Mention the change.
29927
29928 2010-09-29  Bruno Haible  <bruno@clisp.org>
29929
29930         Separate the module 'waitpid' from the module 'sys_wait'.
29931         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29932         present.
29933         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29934         gl_MODULE_INDICATOR_FOR_TESTS.
29935         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29936         * modules/sys_wait (Depends-on): Remove waitpid.
29937         (Makefile.am): Substitute GNULIB_WAITPID.
29938         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29939         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29940         signature only if the 'waitpid' module is present.
29941         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29942         * NEWS: Mention the change.
29943         * modules/grantpt (Depends-on): Add waitpid.
29944         * modules/wait-process (Depends-on): Likewise.
29945
29946 2010-09-29  Bruno Haible  <bruno@clisp.org>
29947
29948         More tests for module 'sys_wait'.
29949         * modules/sys_wait-c++-tests: New file.
29950         * tests/test-sys_wait-c++.cc: New file.
29951         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29952         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29953
29954 2010-09-29  Bruno Haible  <bruno@clisp.org>
29955
29956         New module 'waitpid'.
29957         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29958         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29959         Don't include <process.h>.
29960         (waitpid): Declare only, using modern idiom.
29961         * m4/waitpid.m4: New file.
29962         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29963         * modules/waitpid: New file.
29964         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29965         (Makefile.am): Update.
29966         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29967
29968 2010-09-28  Bruno Haible  <bruno@clisp.org>
29969
29970         poll: Assume ANSI C.
29971         * lib/poll.c (poll): Use an ANSI C declaration.
29972
29973 2010-09-28  Bruno Haible  <bruno@clisp.org>
29974
29975         poll-h: Create poll.h on all platforms.
29976         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29977         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29978         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29979         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29980         (gl_REPLACE_POLL_H): Don't set POLL_H.
29981         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29982         * modules/poll-h (Depends-on): Add include_next.
29983         (Makefile.am): Create poll.h unconditionally. Substitute also
29984         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29985
29986 2010-09-28  Bruno Haible  <bruno@clisp.org>
29987
29988         Tests for module 'poll-h'.
29989         * modules/poll-h-c++-tests: New file.
29990         * tests/test-poll-h-c++.cc: New file.
29991
29992         Tests for module 'poll-h'.
29993         * modules/poll-h-tests: New file.
29994         * tests/test-poll-h.c: New file.
29995
29996 2010-09-28  Bruno Haible  <bruno@clisp.org>
29997
29998         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29999         * modules/poll-h (Depends-on): Add 'extensions'.
30000
30001 2010-09-28  Bruno Haible  <bruno@clisp.org>
30002
30003         New module 'poll-h'.
30004         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30005         (poll): Use modern idiom.
30006         * modules/poll-h: New file.
30007         * modules/poll (Files): Remove lib/poll.in.h.
30008         (Depends-on): Add poll-h.
30009         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30010         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30011         * m4/poll_h.m4: New file.
30012         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30013         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30014         and invoke gl_REPLACE_POLL_H.
30015         * lib/poll.c: Use common idiom.
30016         * tests/test-poll.c: Likewise.
30017         * doc/posix-headers/poll.texi: Mention the poll-h module.
30018         Suggested by Eric Blake.
30019
30020 2010-09-26  Bruno Haible  <bruno@clisp.org>
30021
30022         sys_wait: Implement WSTOPSIG.
30023         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30024         Reported by Simon Josefsson.
30025
30026 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30027
30028         stdlib, sys_wait: Avoid compilation error on mingw.
30029         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30030
30031 2010-09-26  Bruno Haible  <bruno@clisp.org>
30032
30033         stdlib tests: Avoid code duplication.
30034         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30035         * modules/sys_wait-tests (Files): Likewise.
30036         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30037         * tests/test-stdlib.c: Include test-sys_wait.h.
30038         (main): Invoke test_sys_wait_macros.
30039         * tests/test-sys_wait.c: Include test-sys_wait.h.
30040         (main): Invoke test_sys_wait_macros.
30041
30042 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30043
30044         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30045         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30046         sure Windows sockets are working before calling getaddrinfo.
30047         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30048         * doc/gnulib.texi (Windows sockets): Fix typo.
30049
30050 2010-09-25  Bruno Haible  <bruno@clisp.org>
30051
30052         Tests for module 'regex-quote'.
30053         * modules/regex-quote-tests: New file.
30054         * tests/test-regex-quote.c: New file.
30055
30056         New module 'regex-quote'.
30057         * lib/regex-quote.h: New file.
30058         * lib/regex-quote.c: New file.
30059         * modules/regex-quote: New file.
30060         Suggested by Reuben Thomas <rrt@sc3d.org>.
30061
30062 2010-09-24  Bruno Haible  <bruno@clisp.org>
30063
30064         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30065         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30066
30067 2010-09-23  Bruno Haible  <bruno@clisp.org>
30068
30069         setenv: Relax license.
30070         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30071         Blake.
30072         Requested by Eric Blake.
30073
30074 2010-09-22  Bruno Haible  <bruno@clisp.org>
30075
30076         termios: Relax license.
30077         * modules/termios (License): Change to LGPLv2+.
30078         Requested by Eric Blake.
30079
30080 2010-09-22  Bruno Haible  <bruno@clisp.org>
30081
30082         threadlib: Allow the package to change the default to 'no'.
30083         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30084         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30085         Reported by Paul Eggert.
30086
30087 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30088             Bruno Haible  <bruno@clisp.org>
30089
30090         Fix endless loop in mbmemcasecoll.
30091         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30092         byte.
30093         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30094
30095 2010-09-22  Bruno Haible  <bruno@clisp.org>
30096
30097         Tests for module 'memcoll'.
30098         * modules/memcoll-tests: New file.
30099         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30100
30101         memcoll, xmemcoll: Clarify size vs. length.
30102         * modules/memcoll.c (memcoll0): Clarify specification.
30103         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30104         passed to collate_error.
30105
30106 2010-09-22  Bruno Haible  <bruno@clisp.org>
30107
30108         Tests for module 'memcasecmp'.
30109         * modules/memcasecmp-tests: New file.
30110         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30111
30112 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30113
30114         * lib/pthread.in.h: Add split double-inclusion guard, and include
30115         system <pthread.h> if there is one.  Use @@-style as in other
30116         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30117         pthread.h doesn't.
30118         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30119         (pthread_mutexattr_settype, pthread_mutex_trylock):
30120         New static inline functions, if there's no system <pthread.h>.
30121         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30122         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30123         Approximate with mutexes if the system lacks spinlocks, as in
30124         MacOS.
30125         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30126         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30127         @@-style.  Check for spinlocks separately.
30128         (gl_PTHREAD_DEFAULTS): New macro.
30129         * modules/pthread: Redo to use a more typical style for in.h files.
30130
30131 2010-09-21  Eric Blake  <eblake@redhat.com>
30132
30133         net_if: enhance tests
30134         * tests/test-net_if.c (main): Move signature checks earlier.
30135         Print failures to stderr.
30136         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30137         Document the bug that we do not yet fix.
30138
30139 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30140
30141         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30142         about gnulib, not GSS.
30143
30144 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30145
30146         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30147         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30148         for Emacs.
30149         * build-aux/pmccabe2html: Make Makefile.am example code more
30150         cut-and-paste friendly.
30151
30152 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30153
30154         * tests/test-net_if.c: New file.
30155         * modules/net_if-tests: New file.
30156
30157 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         pthread: add pthread_spin_destroy
30160         * lib/pthread.in.h (pthread_spin_destroy): New function.
30161
30162 2010-09-19  Bruno Haible  <bruno@clisp.org>
30163
30164         gnulib-tool: Fix --help output.
30165         * gnulib-tool (func_usage): Fix help message.
30166         Reported by Reuben Thomas <rrt@sc3d.org>.
30167
30168 2010-09-18  Jim Meyering  <meyering@redhat.com>
30169
30170         maint.mk: avoid unexpanded \n in two diagnostics
30171         * top/maint.mk (sc_prohibit_always_true_header_tests):
30172         Don't use a literal \n in a halt=... assignment.  It would not be
30173         expanded, and the two \n bytes would appear in the diagnostic output
30174         rather than the desired newline.  Use halt=$$(printf ... instead.
30175         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30176
30177 2010-09-18  Bruno Haible  <bruno@clisp.org>
30178
30179         netinet_in: Doc tweak.
30180         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30181         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30182
30183 2010-09-18  Jim Meyering  <meyering@redhat.com>
30184
30185         init.sh: correct an outdated comment
30186         * tests/init.sh (create_exe_shims_):  s/function/alias/
30187
30188         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30189         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30190         a file named "*.exe" is removed between the glob expansion and the
30191         processing of that oddly named file.
30192
30193 2010-09-17  Eric Blake  <eblake@redhat.com>
30194
30195         mirbsd: add some more support
30196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30197         in BSD family.
30198         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30199         devices as OpenBSD.
30200         * m4/host-os.m4 (mirbsd): Add MirBSD.
30201
30202         tests: fix unportable assumption on sys/wait.h
30203         * tests/test-sys_wait.c (main): Relax test.
30204         * tests/test-stdlib.c (main): Likewise.
30205
30206         init.sh: accommodate directory with no .exes
30207         * tests/init.sh: Accomodate directory containing only scripts.
30208
30209         tests: avoid compiler warning
30210         * tests/test-stdlib.c (main): Use the variable.
30211
30212         fdutimens, fdutimensat: update signature, again
30213         * lib/utimens.h (gl_futimens): Delete, and move signature...
30214         (fdutimens): ...here.
30215         (fdutimensat): Rearrange signature.
30216         (lutimensat): Rename variable for clarity.
30217         * lib/fdutimensat.c (fdutimensat): Update signature.
30218         * lib/utimens.c (fdutimens): Likewise.
30219         (gl_futimens): Delete.
30220         (utimens, lutimens): Update callers.
30221         * lib/futimens.c (futimens): Likewise.
30222         * tests/test-fdutimensat.c: Likewise.
30223         * tests/test-utimens.c: Likewise.
30224         * tests/test-futimens.h: Update comment.
30225         * NEWS: Mention this.
30226         Suggested by Paul Eggert.
30227
30228 2010-09-17  Bruno Haible  <bruno@clisp.org>
30229
30230         Take over the maintenance of some older macros from Autoconf.
30231         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30232         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30233         GNU Autoconf.
30234         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30235         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30236
30237 2010-09-17  Eric Blake  <eblake@redhat.com>
30238
30239         fdutimensat: drop atflag validation
30240         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30241         with valid fd, to close a race scenario where futimens is
30242         unsupported and FILE was replaced by a symlink.
30243         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30244         accordingly.
30245         Suggested by Paul Eggert.
30246
30247 2010-09-16  Bruno Haible  <bruno@clisp.org>
30248
30249         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30250         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30251
30252 2010-09-16  Bruno Haible  <bruno@clisp.org>
30253
30254         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30255         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30256         login_tty exists.
30257         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30258
30259 2010-09-16  Bruno Haible  <bruno@clisp.org>
30260
30261         login_tty: Make the replacement code work on BSD systems.
30262         * lib/login_tty.c: Include <sys/ioctl.h>.
30263         (login_tty): Use ioctl TIOCSCTTY when available.
30264         * modules/login_tty (Depends-on): Add sys_ioctl.
30265         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30266
30267 2010-09-16  Bruno Haible  <bruno@clisp.org>
30268
30269         login_tty: Stricter unit test.
30270         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30271         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30272         and tcgetsid() after login_tty.
30273         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30274
30275 2010-09-16  Bruno Haible  <bruno@clisp.org>
30276
30277         New module 'tcgetsid'.
30278         * lib/tcgetsid.c: New file.
30279         * m4/tcgetsid.m4: New file.
30280         * modules/tcgetsid: New file.
30281         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30282         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30283         GNULIB_TCGETSID, HAVE_TCGETSID.
30284         * lib/termios.in.h: Include <sys/types.h>.
30285         (tcgetsid): New declaration.
30286         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30287         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30288         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30289         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30290
30291 2010-09-16  Bruno Haible  <bruno@clisp.org>
30292
30293         Tests for module 'termios'.
30294         * modules/termios-c++-tests: New file.
30295         * modules/termios-tests: New file.
30296         * tests/test-termios-c++.cc: New file.
30297         * tests/test-termios.c: New file.
30298
30299         New module 'termios'.
30300         * modules/termios: New file.
30301         * lib/termios.in.h: New file.
30302         * m4/termios_h.m4: New file.
30303         * doc/posix-headers/termios.texi: Mention the new module.
30304
30305 2010-09-16  Eric Blake  <eblake@redhat.com>
30306
30307         fdutimensat: add an atflag parameter
30308         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30309         * lib/utimens.h (fdutimensat): Update prototype.
30310         * tests/test-fdutimensat.c: Adjust test to match.
30311         * NEWS: Document the change.
30312         Suggested by Paul Eggert.
30313
30314 2010-09-16  Bruno Haible  <bruno@clisp.org>
30315
30316         Fix typos in comments.
30317         * lib/striconveh.h: Fix typo in comment.
30318         * lib/login_tty.c (login_tty): Likewise.
30319
30320 2010-09-15  Bruno Haible  <bruno@clisp.org>
30321
30322         stdlib: clarify MirBSD WEXITSTATUS bug
30323         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30324         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30325
30326 2010-09-15  Eric Blake  <eblake@redhat.com>
30327
30328         stdlib: work around MirBSD WEXITSTATUS bug
30329         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30330         * modules/stdlib (Depends-on): Add sys_wait.
30331         * tests/test-sys_wait.c (main): Enhance test.
30332         * tests/test-stdlib.c (main): Likewise.
30333         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30334
30335         docs: mention MacOS issue with WEXITSTATUS(constant)
30336         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30337         issue.
30338         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30339
30340         strnlen: add tests
30341         * modules/strnlen-tests: New file.
30342         * tests/test-strnlen.c: Likewise.
30343
30344 2010-09-14  Bruno Haible  <bruno@clisp.org>
30345
30346         unistr/base: Avoid link errors when module 'libunistring' is also used.
30347         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30348         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30349         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30350         Declare also when HAVE_LIBUNISTRING is set.
30351         Reported by Pádraig Brady <P@draigbrady.com>.
30352
30353 2010-09-14  Eric Blake  <eblake@redhat.com>
30354
30355         test-rawmemchr: make more robust
30356         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30357         (Depends-on, configure.ac): Add needed prerequisites to use it.
30358         * modules/memchr-tests (Files, Depends-on, configure.ac):
30359         Likewise, to avoid implicit reliance on memchr module prereqs.
30360         * tests/test-memchr.c (main): Ensure proper masking.
30361         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30362         reads.
30363
30364         memchr: detect glibc Alpha bug
30365         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30366         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30367         Alpha.
30368         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30369         * tests/test-memchr.c (main): Enhance test.
30370         Reported by Nelson H. F. Beebe.
30371
30372 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30373
30374         fts, getcwd, glob: audit for dirfd returning -1
30375         * lib/fts.c (opendir): Remove #define; no longer used.
30376         (opendirat): New arg PDIR_FD.  All callers changed.
30377         (fts_build, _opendir2): Use new opendirat to avoid the need for
30378         dirfd, or for checking whether dirfd returns a negative value.
30379         Don't use opendir; always use openat followed by fdopendir.
30380         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30381         it.
30382         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30383         returns -1 here.
30384         * modules/fts (Depends-on): Remove dirfd.
30385         * modules/getcwd (Depends-on): Likewise.
30386
30387 2010-09-13  Eric Blake  <eblake@redhat.com>
30388
30389         float: fix broken MirBSD header
30390         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30391         * doc/posix-headers/float.texi (float.h): Document it.
30392
30393 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30394
30395         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30396         * lib/fts.c (opendirat): New arg extra_flags.
30397         (__opendir2): Use it to avoid following symlinks when opening
30398         a directory, if symlinks are not supposed to be followed.  See
30399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30400
30401         fdopendir: preserve argument fd before returning
30402         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30403         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30404         (fdopendir): Use them, arranging for FD to be open to the same
30405         directory that it was when it started.  (It might be temporarily
30406         closed while fdopendir is running, so this not thread- or
30407         signal-safe.)  Be careful to do the right thing even when file
30408         descriptors are scarce and dup fails with errno == EMFILE.  See
30409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30410
30411 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30412
30413         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30414         * NEWS: Document change.
30415         * m4/regex.m4: Disable test for regoff_t size.
30416
30417 2010-09-13  Jim Meyering  <meyering@redhat.com>
30418
30419         fts: don't operate on an invalid file descriptor after failed dup
30420         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30421         negative file descriptor.
30422
30423 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30424
30425         savedir: add streamsavedir, deprecate fdsavedir
30426         * NEWS: Mention deprecation of fdsavedir.
30427         * lib/savedir.c (streamsavedir): New extern function, whose name
30428         ends in "savedir" to be consistent with the others.  This differs
30429         from savedirstream in that it doesn't close its argument.  The
30430         next version of GNU tar will use this instead of fdsavedir, to
30431         avoid some race conditions and conserve file descriptors.
30432         (savedirstream): Reimplement as a wrapper around streamsavedir.
30433         (fdsavedir): Add a comment deprecating this function.  As far as
30434         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30435         * lib/savedir.h (streamsavedir): New decl.
30436         (fdsavedir): Add a comment deprecating this.
30437
30438 2010-09-10  Bruno Haible  <bruno@clisp.org>
30439
30440         langinfo: Fix last commit.
30441         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30442         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30444
30445 2010-09-10  Bruno Haible  <bruno@clisp.org>
30446
30447         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30448         * lib/progreloc.c (O_EXEC): Define fallback.
30449
30450 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30451
30452         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30453         * NEWS: Document recent changes to fcntl-h.
30454         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30455         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30456         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30457         Similarly for O_SEARCH; this last was already true, but not documented.
30458         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30459         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30460         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30461         Likewise.
30462         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30463         is zero, not whether it is defined.
30464         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30465         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30466         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30467
30468 2010-09-10  Bruno Haible  <bruno@clisp.org>
30469
30470         langinfo, nl_langinfo: Fix for IRIX 5.3.
30471         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30472         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30473         HAVE_LANGINFO_YESEXPR.
30474         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30475         HAVE_LANGINFO_YESEXPR.
30476         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30477         HAVE_LANGINFO_T_FMT_AMPM is 0.
30478         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30479         HAVE_LANGINFO_YESEXPR is 0.
30480         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30481         NOEXPR.
30482         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30483         * doc/posix-functions/nl_langinfo.texi: Likewise.
30484         Reported by Eric Blake.
30485
30486 2010-09-10  Bruno Haible  <bruno@clisp.org>
30487
30488         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30489         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30490         on FreeBSD 8.0 and OpenBSD 4.6.
30491         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30492         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30493         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30494         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30495         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30496         ac_includes_default.
30497         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30498
30499 2010-09-09  Eric Blake  <eblake@redhat.com>
30500
30501         strsignal: work around NetBSD bug
30502         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30503         * lib/string.in.h (includes): Likewise.
30504         * doc/posix-functions/strsignal.texi (strsignal): Document the
30505         bug.
30506         Reported by Nelson H. F. Beebe.
30507
30508         gnulib-tool: work with NetBSD /bin/sh
30509         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30510         (func_get_description, func_get_comment, func_get_status)
30511         (func_get_notice, func_get_applicability, func_get_filelist)
30512         (func_get_dependencies, func_get_autoconf_early_snippet)
30513         (func_get_autoconf_snippet, func_get_automake_snippet)
30514         (func_get_include_directive, func_get_link_directive)
30515         (func_get_license, func_get_maintainer, func_import): Avoid
30516         shell syntax errors from parsing syntax extensions.
30517
30518 2010-09-09  Bruno Haible  <bruno@clisp.org>
30519
30520         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30521         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30522         a reliable way to determine whether the 'alias' command works.
30523
30524 2010-09-08  Jim Meyering  <meyering@redhat.com>
30525
30526         init.sh: penalize a set-x-impaired shell; don't disqualify it
30527         * tests/init.sh: Too many shells corrupt application stderr when
30528         you set -x, so we can't afford to disqualify them, since at least
30529         on Irix-6.5, that would disqualify all bourne shells.
30530         Instead, use a two-pass approach.
30531         On the first pass, try to find a shell that meets the stricter
30532         condition that set -x does not corrupt stderr.
30533         If no shell meets the stricter condition, retest each candidate
30534         shell, but without that extra condition.  Finally, when
30535         VERBOSE=yes is requested and set -x might cause trouble, simply
30536         issue a warning and refrain from enabling debug output.
30537
30538 2010-09-08  Eric Blake  <eblake@redhat.com>
30539
30540         unsetenv: fix OpenBSD bug
30541         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30542         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30543         documentation.
30544         Reported by Jim Meyering.
30545
30546         strtod: work around IRIX 6.5 bug
30547         * lib/strtod.c (strtod): Reparse number on shorter string if
30548         exponent parse was invalid.
30549         * tests/test-strtod.c (main): Add check for "0x1p 2".
30550         Reported by Tom G. Christensen.
30551
30552         getopt: optimize previous patch
30553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30554         empty variable.  Speed up awk script.
30555         Reported by Paolo Bonzini.
30556
30557 2010-09-08  Jim Meyering  <meyering@redhat.com>
30558
30559         test.sh: disqualify shells for which set -x corrupts stderr
30560         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30561         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30562         appear in stderr output.  For example, this command:
30563             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30564         prints "P=1" on those two systems:
30565
30566 2010-09-08  Bruno Haible  <bruno@clisp.org>
30567
30568         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30569         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30570         commands, because some shells ignore redirections when there is an
30571         error in the command lookup.
30572         Reported by Eric Blake.
30573
30574 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30575
30576         * lib/regex.h: Fix a mention of `regex_compile' (should be
30577         `re_compile_pattern').
30578         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30579         (re_set_registers): Correct name of parameter in comment.
30580
30581         * doc/regex.texi: Add documentation for missing syntax flags.
30582         Remove commented-out documentation of defunct syntax option
30583         RE_NO_EMPTY_ALTS.
30584         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30585         Add documentation of re_set_registers.
30586         Document trick to re-use a pattern buffer by setting fastmap manually.
30587         Update documentation of struct re_pattern_buffer per public members.
30588         Uncomment documentation of equivalence class operators and
30589         collating symbol operators, since they are now implemented,
30590         Explain leftmost-longest matching in relation to alternatives.
30591         Tidy documentation of substring matching.
30592         Remove POSIX documentation, which is done better in
30593         glibc, and refer the reader there. Keep BSD API documentation, as
30594         that is not readily available elsewhere.
30595
30596 2010-09-07  Eric Blake  <eblake@redhat.com>
30597
30598         getopt: handle POSIXLY_CORRECT set but not exported
30599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30600         export state of POSIXLY_CORRECT, due to bash set -o posix.
30601         Reported by Dustin J. Mitchell.
30602
30603 2010-09-05  Bruno Haible  <bruno@clisp.org>
30604
30605         gnulib-tool: Highlight the changed options.
30606         * gnulib-tool (func_usage): Display the --import, --add-import,
30607         --remove-import explanations in bold font.
30608
30609 2010-09-06  Karl Berry  <karl@gnu.org>
30610
30611         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30612
30613 2010-09-05  Bruno Haible  <bruno@clisp.org>
30614
30615         uniwidth/width: Update comment.
30616         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30617         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30618
30619 2010-09-05  Bruno Haible  <bruno@clisp.org>
30620
30621         isinf, isnan: Relax license.
30622         * modules/isinf (License): Change from GPL to LGPL, with consent from
30623         Ben Pfaff.
30624         * modules/isnan (License): Likewise.
30625         Requested by Ludovic Courtès.
30626
30627 2010-09-04  Bruno Haible  <bruno@clisp.org>
30628
30629         gnulib-tool: Help migration from --import to --add-import or --update.
30630         * gnulib-tool: Emit a verbose error message when --import is used
30631         without any module name.
30632
30633 2010-09-04  Bruno Haible  <bruno@clisp.org>
30634
30635         Update doc about gnulib-tool.
30636         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30637         'gnulib-tool --update' in more detail.
30638         Reported by Eric Blake.
30639
30640 2010-09-04  Bruno Haible  <bruno@clisp.org>
30641
30642         gnulib-tool: Change --import. New options --add/remove-import.
30643         * gnulib-tool: New options --add-import, --remove-import.
30644         (func_usage): Document them.
30645         (have_associative): Define always.
30646         (func_import): In import mode, don't merge the specified settings with
30647         the cached settings. Implement remove-import mode.
30648         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30649         Explain when to use them versus --import.
30650         (Simple update): Use --add-import instead of --import.
30651         * NEWS: Mention the change.
30652
30653 2010-09-04  Bruno Haible  <bruno@clisp.org>
30654
30655         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30656         separate gnulib.mk.
30657
30658 2010-09-04  Bruno Haible  <bruno@clisp.org>
30659
30660         gnulib-tool: Don't talk about CVS any more.
30661         * gnulib-tool (func_usage, func_import): Write "version control"
30662         instead of CVS.
30663
30664 2010-09-04  Jim Meyering  <meyering@redhat.com>
30665
30666         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30667         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30668         false positives (whose names may be ill-chosen) when searching
30669         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30670         would cause a false-positive.
30671
30672         avoid coreutils "make distcheck" failure
30673         Coreutils tests with an absolute build directory name that contains
30674         a space.  Not quoting this directory name caused a failure.
30675         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30676         * tests/test-vc-list-files-cvs.sh: Likewise.
30677
30678 2010-09-04  Bruno Haible  <bruno@clisp.org>
30679
30680         gnulib-tool: Avoid error when run in a package without Makefile.am.
30681         * gnulib-tool: When collecting the m4dirs in a package that does not
30682         have a Makefile.am, eliminate those directories that contain no
30683         gnulib-cache.m4. Fix expression that counts these directories.
30684
30685 2010-09-04  Bruno Haible  <bruno@clisp.org>
30686
30687         update-copyright test: Improve output when perl is missing or too old.
30688         * tests/test-update-copyright.sh: Move test of Perl version down after
30689         the test whether Perl exists. Provide an explanation relating Perl's
30690         error message to Automake's SKIP: message.
30691
30692 2010-09-04  Bruno Haible  <bruno@clisp.org>
30693
30694         Don't augment PATH in TESTS_ENVIRONMENT.
30695         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30696         set abs_aux_dir instead of augmenting PATH.
30697         * modules/vc-list-files-tests (Makefile.am): Likewise.
30698         * tests/test-update-copyright.sh: Augment PATH here.
30699         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30700         path_prepend_.
30701         * tests/test-vc-list-files-git.sh: Likewise.
30702
30703 2010-09-04  Jim Meyering  <meyering@redhat.com>
30704
30705         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30706         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30707
30708 2010-09-04  Bruno Haible  <bruno@clisp.org>
30709
30710         strdup: Fix compilation error in C++ mode.
30711         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30712         the macro.
30713
30714 2010-09-04  Bruno Haible  <bruno@clisp.org>
30715
30716         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30717         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30718         macro into a function.
30719         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30720
30721 2010-09-04  Bruno Haible  <bruno@clisp.org>
30722
30723         Set PATH_SEPARATOR the same way autoconf does.
30724         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30725         the value of PATH_SEPARATOR the same way autoconf-generated configure
30726         scripts do.
30727         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30728         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30729
30730 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30731
30732         Set PATH_SEPARATOR the same way autoconf does.
30733         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30734         the same way autoconf-generated configure scripts do.
30735         * posix-modules: Likewise.
30736
30737 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30738
30739         hash: fix safe_hasher const typo
30740         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30741         const; otherwise, there is a type error later.
30742
30743 2010-09-02  Jim Meyering  <meyering@redhat.com>
30744
30745         test-update-copyright.sh: require perl 5.8.0
30746         * tests/test-update-copyright.sh: Require 5.8.0,
30747         which Tom G. Christensen has confirmed is adequate,
30748         while 5.6.1 is not.
30749
30750 2010-09-02  Eric Blake  <eblake@redhat.com>
30751
30752         tests: init.sh improvements for re-exec'ing with zsh
30753         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30754         -vx through shell re-exec.
30755         Reported by Tom G. Christensen.
30756
30757         wctype: fix typo in previous commit
30758         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30759         Reported by Ludovic Courtès.
30760
30761 2010-09-02  Jim Meyering  <meyering@redhat.com>
30762
30763         test-update-copyright.sh: skip test if Perl is too old
30764         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30765         Reported by Tom G. Christensen.
30766
30767 2010-09-02  Bruno Haible  <bruno@clisp.org>
30768
30769         wctype: Avoid compilation error on IRIX 6.5.30.
30770         * lib/wctype.in.h (iswblank): Declare with a replacement if
30771         REPLACE_ISWBLANK is set.
30772         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30773         declared. Set REPLACE_ISWBLANK.
30774         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30775         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30776         * doc/posix-headers/wctype.texi: Likewise.
30777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30778
30779 2010-09-01  Bruno Haible  <bruno@clisp.org>
30780
30781         New module 'socketlib'.
30782         * modules/socketlib: New file.
30783         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30784         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30785         * modules/sockets (Depends-on): Add socketlib.
30786         Suggested by Sam Steingold <sds@gnu.org>.
30787
30788 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30789
30790         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30791
30792         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30793         when one needs search access to a directory but not read access.
30794         On systems where it is available, it works in some cases where
30795         O_RDONLY does not, namely on directories that are searchable but
30796         not readable, and which need only to be searchable.  If O_SEARCH
30797         is not available, fall back to the traditional method of using
30798         O_RDONLY.
30799
30800         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30801         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30802         when opening a directory that needs only to be searchable.
30803         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30804         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30805         * lib/openat-proc.c (openat_proc_name): Likewise.
30806         * lib/openat.c (openat_needs_fchdir): Likewise.
30807         * lib/save-cwd.c (save_cwd): Likewise.
30808         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30809
30810 2010-08-28  Bruno Haible  <bruno@clisp.org>
30811
30812         New module 'host-cpu-c-abi'.
30813         * modules/host-cpu-c-abi: New file.
30814         * m4/host-cpu-c-abi.m4: New file, based on part of
30815         clisp/src/m4/general.m4.
30816         Requested by Sam Steingold <sds@gnu.org>.
30817
30818 2010-08-31  Eric Blake  <eblake@redhat.com>
30819         and Jim Meyering  <meyering@redhat.com>
30820
30821         hash: factor, and guard against misbehaving hasher function
30822         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30823         of table->hasher's return value.  Also protect against a hash value
30824         so large that adding it to table->bucket results in a NULL pointer.
30825         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30826         Use it in place of open-coded check-and-abort.
30827
30828 2010-08-30  Bruno Haible  <bruno@clisp.org>
30829
30830         hash: silence spurious clang warning
30831         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30832         Reported by Eric Blake.
30833
30834 2010-08-30  Eric Blake  <eblake@redhat.com>
30835
30836         strstr, memmem, strcasestr: avoid leaked shell message
30837         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30838         FreeBSD.
30839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30841
30842         tests: silence clang warning
30843         * tests/test-malloca.c (do_allocation): Avoid dead store.
30844
30845 2010-08-29  Bruno Haible  <bruno@clisp.org>
30846
30847         gettext: Fix recent mistake.
30848         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30849
30850 2010-08-29  Bruno Haible  <bruno@clisp.org>
30851
30852         selinux-h: Offer a --without-selinux option.
30853         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30854         --without-selinux was specified, skip all tests and define
30855         HAVE_SELINUX_SELINUX_H to 0.
30856         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30857         set LIB_SELINUX to empty.
30858         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30859         gl_LIBSELINUX. If --without-selinux was specified, replace
30860         selinux/context.h.
30861         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30862
30863 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30864             Bruno Haible  <bruno@clisp.org>
30865
30866         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30867         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30868         of HAVE_REALLOC.
30869         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30870         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30871         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30872         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30873
30874 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30875             Bruno Haible  <bruno@clisp.org>
30876
30877         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30878         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30879         HAVE_CALLOC.
30880         * lib/xmalloc.c: Update accordingly.
30881         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30882         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30883         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30884
30885 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30886             Bruno Haible  <bruno@clisp.org>
30887
30888         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30889         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30890         HAVE_MALLOC.
30891         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30892         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30893         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30894
30895 2010-08-29  Bruno Haible  <bruno@clisp.org>
30896
30897         Update modules list.
30898         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30899         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30900         (String handling <string.h>): Add astrxfrm.
30901         (File system functions): Add readlinkat.
30902
30903 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30904
30905         Tests for module 'realloc-gnu'.
30906         * modules/realloc-gnu-tests: New file.
30907         * tests/test-realloc-gnu.c: New file.
30908
30909         Tests for module 'calloc-gnu'.
30910         * modules/calloc-gnu-tests: New file.
30911         * tests/test-calloc-gnu.c: New file.
30912
30913         Tests for module 'malloc-gnu'.
30914         * modules/malloc-gnu-tests: New file.
30915         * tests/test-malloc-gnu.c: New file.
30916
30917 2010-08-28  Bruno Haible  <bruno@clisp.org>
30918
30919         Rename module 'realloc' -> 'realloc-gnu'.
30920         * modules/realloc-gnu: New file, copied from modules/realloc.
30921         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30922         obsolete.
30923         * modules/mgetgroups (Depends-on): Update.
30924         * doc/posix-functions/realloc.texi: Update.
30925         * NEWS: Mention the change.
30926
30927         Rename module 'calloc' -> 'calloc-gnu'.
30928         * modules/calloc-gnu: New file, copied from modules/calloc.
30929         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30930         obsolete.
30931         * doc/posix-functions/calloc.texi: Update.
30932         * NEWS: Mention the change.
30933
30934         Rename module 'malloc' -> 'malloc-gnu'.
30935         * modules/malloc-gnu: New file, copied from modules/malloc.
30936         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30937         obsolete.
30938         * modules/argp (Depends-on): Update.
30939         * modules/regex (Depends-on): Update.
30940         * doc/posix-functions/malloc.texi: Update.
30941         * NEWS: Mention the change.
30942
30943 2010-08-28  Eric Blake  <eblake@redhat.com>
30944
30945         pread, pwrite: add missing dependency
30946         * modules/pread (Depends-on): Add extensions.
30947         * modules/pwrite (Depends-on): Likewise.
30948
30949 2010-08-28  Bruno Haible  <bruno@clisp.org>
30950
30951         unistr/u*-strchr: Fix tests dependencies.
30952         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30953         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30954         Reported by Ian Beckwith <ianb@erislabs.net>.
30955
30956 2010-08-28  Bruno Haible  <bruno@clisp.org>
30957
30958         read-file: Don't occupy too much unused memory.
30959         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30960
30961 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30962             Eric Blake  <eblake@redhat.com>
30963             Bruno Haible  <bruno@clisp.org>
30964
30965         read-file: Avoid memory reallocations with regular files.
30966         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30967         (fread_file): With regular files, use the remaining length as the
30968         initial buffer size.  Check against overflow.
30969         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30970         sys_stat.
30971
30972 2010-08-28  Bruno Haible  <bruno@clisp.org>
30973
30974         ftello: Relax license.
30975         * modules/ftello (License): Relax to LGPLv2+.
30976         Reported by Eric Blake.
30977
30978 2010-08-28  Bruno Haible  <bruno@clisp.org>
30979
30980         Avoid relocwrapper link errors due to gnulib replacement functions.
30981         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30982         function.
30983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30984
30985 2010-08-28  Bruno Haible  <bruno@clisp.org>
30986
30987         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30988         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30989         defined.
30990         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30991         Suggested by Eric Blake.
30992
30993 2010-08-28  Bruno Haible  <bruno@clisp.org>
30994
30995         sys_socket, netdb: Ensure socklen_t gets defined.
30996         * modules/sys_socket (Depends-on): Add socklen.
30997         * modules/netdb (Depends-on): Likewise.
30998         * modules/getaddrinfo (Depends-on): Remove socklen.
30999         * modules/getsockopt (Depends-on): Likewise.
31000         * modules/setsockopt (Depends-on): Likewise.
31001         * tests/test-sys_socket.c: Check that socklen_t is defined.
31002         * tests/test-netdb.c: Likewise.
31003         * m4/socklen.m4: Update comments.
31004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31005
31006 2010-08-27  Eric Blake  <eblake@redhat.com>
31007
31008         login_tty: add missing dependency
31009         * modules/login_tty (Depends-on): Add pty.
31010
31011 2010-08-26  Eric Blake  <eblake@redhat.com>
31012
31013         lib-symbol-versions: fix m4 quoting
31014         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31015         format for AC_LINK_IFELSE.
31016
31017         glob: fix compile test
31018         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31019
31020         btowc: fix missing file
31021         * modules/btowc (Files): Also ship locale-fr.m4.
31022
31023         lseek: fix link test
31024         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31025         AC_LINK_IFELSE.
31026
31027         include_next: silence autoconf 2.68 warning
31028         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31029         AC_COMPILE_IFELSE as special.
31030         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31031         autoconf < 2.68.
31032
31033         acl: fix compilation test
31034         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31035         AC_COMPILE_IFELSE.
31036
31037 2010-08-26  Bruno Haible  <bruno@clisp.org>
31038
31039         Modernize AC_TRY_RUN invocations.
31040         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31041         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31042         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31043         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31044         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31045         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31048         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31049         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31050         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31051         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31052         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31053         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31055         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31056         gl_MBRLEN_NUL_RETVAL): Likewise.
31057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31058         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31059         Likewise.
31060         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31061         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31062         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31063         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31064         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31065         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31066         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31067         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31068         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31069         Likewise.
31070         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31071         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31073         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31074         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31075         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31076         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31077         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31078         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31080
31081 2010-08-26  Bruno Haible  <bruno@clisp.org>
31082
31083         Modernize AC_TRY_LINK invocations.
31084         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31085         AC_TRY_LINK.
31086         * m4/argp.m4 (gl_ARGP): Likewise.
31087         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31088         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31089         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31090         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31091         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31092         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31093         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31094         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31095         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31096         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31097         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31098         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31099         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31100         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31101         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31102         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31103         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31104         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31105         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31106         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31107         Likewise.
31108         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31109         Likewise.
31110         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31111         Likewise.
31112         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31114         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31115         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31116         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31117         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31118         * m4/servent.m4 (gl_SERVENT): Likewise.
31119         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31120         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31121         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31122         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31123         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31124         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31125         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31126         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31127         * modules/tsearch-tests (configure.ac): Likewise.
31128
31129 2010-08-26  Bruno Haible  <bruno@clisp.org>
31130
31131         Modernize AC_TRY_COMPILE invocations.
31132         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31133         AC_TRY_COMPILE.
31134         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31135         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31136         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31137         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31138         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31139         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31140         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31141         * m4/lock.m4 (gl_LOCK): Likewise.
31142         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31144         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31145         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31146         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31147         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31148         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31150         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31151         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31152         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31153         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31154         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31155         extraneous semicolon.
31156
31157 2010-08-26  Jim Meyering  <meyering@redhat.com>
31158
31159         stat-time: relax license LGPL
31160         * modules/stat-time (License): Change from GPL to LGPL,
31161         with consent from all contributors, for use in libguile.
31162         Requested by Ludovic Courtès.
31163
31164 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31165
31166         poll: return immediately on POLLHUP.
31167         * lib/poll.c (poll): Always set timeout before wait_timeout is
31168         computed.
31169
31170 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31171
31172         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31173         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31174         rmdir ("dir/.//"), unlinkat.
31175
31176 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31177
31178         stdbool: avoid spurious failure with modern xlc
31179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31180
31181 2010-08-24  Bruno Haible  <bruno@clisp.org>
31182
31183         getloadavg: simplify code
31184         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31185         gl_have_func. Update comments.
31186
31187 2010-08-24  Eric Blake  <eblake@redhat.com>
31188
31189         getloadavg: don't define SVR4 on cygwin
31190         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31191         only define SVR4 when -lkvm is required.
31192         Reported by Yaakov Selkowitz.
31193
31194 2010-08-24  Bruno Haible  <bruno@clisp.org>
31195
31196         priv-set: fix comment
31197         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31198
31199 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31200
31201         priv-set: fix comments
31202         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31203         to match code, as suggested by David Bartley in:
31204         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31205
31206 2010-08-23  Eric Blake  <eblake@redhat.com>
31207
31208         stdbool: avoid rejecting clang
31209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31210         * tests/test-stdbool.c: Enable more tests if using the system
31211         <stdbool.h> instead of the gnulib replacement.
31212         (main): Move xlc bug test to a runtime test for all compilers.
31213         Reported by Anders Kaseorg.
31214
31215         argz: fix shell quoting issue
31216         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31217         Reported by Charles Wilson.
31218
31219 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31220             Erik Faye-Lund <kusmabite@gmail.com>
31221
31222         poll, select: handle ERROR_BROKEN_PIPE.
31223         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31224         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31225         * lib/select.c (win32_compute_revents): Do not mark a pipe
31226         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31227
31228 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31229
31230         fts: allow compilation with C++
31231         * lib/fts_.h: Specify extern "C" linkage with C++.
31232
31233 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31234
31235         Fix gnulib-tool sed script de-commentation for AIX sed.
31236         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31237         sed.
31238
31239 2010-08-17  Eric Blake  <eblake@redhat.com>
31240
31241         test-stddef: test for (some) offsetof bugs
31242         * tests/test-stddef.c: Enhance test to ensure correct type of
31243         offsetof.
31244         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31245         that we are not fixing at this time.
31246
31247 2010-08-15  Bruno Haible  <bruno@clisp.org>
31248
31249         stpncpy: Allow stpncpy to be defined as a macro.
31250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31251         if it's already correctly declared.
31252         * lib/string.in.h (stpncpy): Undefine before redefining.
31253         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31254
31255 2010-08-14  Bruno Haible  <bruno@clisp.org>
31256
31257         Rename module 'memxfrm' to 'amemxfrm'.
31258         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31259         (amemxfrm): Renamed from memxfrm.
31260         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31261         (amemxfrm): Renamed from memxfrm.
31262         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31263         * NEWS: Mention the change.
31264         * MODULES.html.sh (String handling <string.h>): Update.
31265         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31266         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31267         * lib/unicase/u16-casexfrm.c: Likewise.
31268         * lib/unicase/u32-casexfrm.c: Likewise.
31269         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31270         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31271         * lib/uninorm/u16-normxfrm.c: Likewise.
31272         * lib/uninorm/u32-normxfrm.c: Likewise.
31273         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31274         memxfrm.
31275         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31276         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31277         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31278         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31279         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31280         Suggested by Paul Eggert.
31281
31282 2010-08-14  Bruno Haible  <bruno@clisp.org>
31283
31284         Tests for module 'astrxfrm'.
31285         * modules/astrxfrm-tests: New file.
31286         * tests/test-astrxfrm.c: New file.
31287
31288         New module 'astrxfrm'.
31289         * lib/astrxfrm.h: New file.
31290         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31291         * modules/astrxfrm: New file.
31292
31293 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31294
31295         regex: Tweak doc.
31296         * doc/regex.texi (Overview): Don't mention regex.c.
31297         (GNU Regular Expression Compiling): Likewise.
31298         (Match-end-of-line Operator): Mention 'not_eol'.
31299
31300 2010-08-14  Brian Gough  <bjg@gnu.org>
31301             Bruno Haible  <bruno@clisp.org>
31302
31303         git-merge-changelog: add doc relating to use with bzr and hg.
31304         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31305
31306 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31307
31308         pthread: fix pthread.h creation for srcdir != builddir
31309         * modules/pthread (Makefile.am): Fix the rule to work also in a
31310         non-srcdir build.
31311
31312 2010-08-13  Karl Berry  <karl@gnu.org>
31313
31314         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31315         * doc/posix-*/*: force line break before @url of POSIX
31316         specifications.
31317         Suggested by Werner Lemberg.
31318
31319 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31320
31321         strtod: fix const diagnostic
31322         * lib/strtod.c (strtod): Don't assign const char * to char *,
31323         as this elicits a warning from GCC when warnings are enabled.
31324
31325 2010-08-10  Pádraig Brady <P@draigbrady.com>
31326         and Eric Blake  <eblake@redhat.com>
31327
31328         copy-acl: ignore ENOTSUP on HP-UX
31329         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31330         so that it is available for HP-UX.
31331         * lib/copy-acl.c (qcopy_acl): Use it.
31332         Reported by Patrick M. Callahan.
31333
31334 2010-08-10  Eric Blake  <eblake@redhat.com>
31335
31336         open, chown: relax license
31337         * modules/open (License): Change to LGPLv2+, with consent by all
31338         authors, for use in augeas.
31339         * modules/chown (License): Likewise.
31340         * modules/lchown (Likewise): Likewise.
31341         Requested by Adam Stokes.
31342
31343 2010-08-09  Karl Berry  <karl@gnu.org>
31344
31345         * build-aux/ar-lib: new file, import from Automake.
31346         * config/srclist.txt: autocheck for updates.
31347
31348 2010-08-09  Eric Blake  <eblake@redhat.com>
31349
31350         readlinkat: adjust client modules
31351         * modules/areadlinkat (Depends-on): Use readlinkat, not
31352         symlinkat.
31353         * modules/areadlinkat-with-size (Depends-on): Likewise.
31354
31355         mknod: be more vocal about danger of running tests as root
31356         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31357         root, since that is just asking for problems.
31358         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31359
31360         readlinkat: split into its own module
31361         * modules/symlinkat: Split readlinkat...
31362         * modules/readlinkat: ...into separate module.
31363         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31364         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31365         * lib/symlinkat.c (readlinkat): Move...
31366         * lib/readlinkat.c: ...into new file.
31367         * modules/symlinkat-tests: Split readlinkat test...
31368         * modules/readlinkat-tests: ...into separate module.
31369         * tests/test-symlinkat.c: Split...
31370         * tests/test-readlinkat.c: ...into new file.
31371         * NEWS: Document the split.
31372         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31373         * lib/unistd.in.h (readlinkat): Likewise.
31374         Suggested by Bruno Haible.
31375
31376 2010-08-08  Bruno Haible  <bruno@clisp.org>
31377
31378         memxfrm: Speed up.
31379         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31380         that usually only one call to strxfrm is necessary for each string
31381         part.
31382         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31383
31384 2010-08-07  Karl Berry  <karl@gnu.org>
31385
31386         * doc/posix-headers/limits.texi,
31387         * doc/posix-functions/malloc.texi,
31388         * doc/posix-functions/strsignal.texi: missing @item.
31389         * doc/ld-version-script.texi: spurious leading i.
31390         * doc/regex.texi (Interval Operators): no commas inside @var.
31391
31392 2010-08-01  Bruno Haible  <bruno@clisp.org>
31393
31394         Integrate the regex documentation.
31395         * doc/gnulib.texi: Define 'cn' index.
31396         (Regular expressions): New a chapter that includes regex.texi and
31397         regexprops-generic.texi.
31398         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31399         syntax.
31400
31401         Whitespace cleanup.
31402         * doc/regex.texi: Remove trailing spaces.
31403
31404         Add regex documentation.
31405         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31406         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31407         Written by Kathy A. Hargreaves and Karl Berry.
31408
31409 2010-08-01  Bruno Haible  <bruno@clisp.org>
31410
31411         link: Update documentation.
31412         * doc/posix-functions/link.texi: Update regarding Solaris.
31413
31414 2010-07-31  Bruno Haible  <bruno@clisp.org>
31415
31416         Update modules list.
31417         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31418         (String handling <string.h>): Add memcmp2, memxfrm.
31419         (Container data structures): Add xlist, xsublist, xoset.
31420         (Core language properties): Add alignof, unused-parameter.
31421         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31422         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31423         (Unibyte characters <ctype.h>): New section.
31424         (String handling <string.h>): New section.
31425         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31426         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31427         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31428         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31429         tan, tanh, tanl, y0, y1, yn.
31430         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31431         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31432         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31433         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31434         unlockpt, vdprintf, vdprintf-posix.
31435         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31436         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31437         xconcat-filename.
31438         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31439         getdtablesize, pipe2, pipe2-safer.
31440         (Security): New section.
31441         (Networking functions): Add accept4.
31442         (Signal handling): Add sigpipe.
31443         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31444         mbmemcasecoll.
31445         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31446         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31447         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31448         pipe-filter-ii.
31449         (Misc): Add argp-version-etc, login_tty, parse-duration.
31450
31451 2010-07-31  Bruno Haible  <bruno@clisp.org>
31452
31453         Improve doc in MODULES.html.
31454         * modules/linkat (Description): Add the word "function".
31455         * modules/mkfifo (Description): Likewise.
31456         * modules/mknod (Description): Likewise.
31457         * modules/remove (Description): Likewise.
31458         * modules/renameat (Description): Likewise.
31459         * modules/stat (Description): Likewise.
31460         * modules/symlink (Description): Likewise.
31461         * modules/unlink (Description): Likewise.
31462
31463 2010-07-31  Bruno Haible  <bruno@clisp.org>
31464
31465         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31466         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31467         option --enable/disable-c++ instead of --enable/disable-cxx.
31468         * NEWS: Mention the change.
31469
31470 2010-07-31  Bruno Haible  <bruno@clisp.org>
31471
31472         readlink, areadlink: Relax test a bit.
31473         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31474         alternative to ENOTDIR.
31475         * tests/test-areadlink.h (test_areadlink): Likewise.
31476         Reported by Rainer Tammer.
31477
31478 2010-07-31  Bruno Haible  <bruno@clisp.org>
31479
31480         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31481         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31482         character, perform the search using U_STRCHR.
31483         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31484         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31485         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31486         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31487         Suggested by Paolo Bonzini.
31488
31489 2010-07-31  Bruno Haible  <bruno@clisp.org>
31490
31491         unistr/u*-strstr: Fix dependencies.
31492         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31493         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31494         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31495
31496 2010-07-31  Bruno Haible  <bruno@clisp.org>
31497
31498         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31499         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31500         the beginning of the loop.
31501         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31502         cases in 'switch' statement.
31503
31504         unistr/u8-strchr: Fix several bugs.
31505         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31506         the string. When not found, return NULL, not a pointer near the end.
31507
31508         More tests for unistr/u8-strchr.
31509         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31510         that the function does not read past the first occurrence of the byte
31511         being searched.
31512         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31513         * tests/unistr/test-u16-strchr.c (main): New function.
31514         * tests/unistr/test-u32-strchr.c (main): New function.
31515
31516 2010-07-31  Bruno Haible  <bruno@clisp.org>
31517
31518         posix-modules: Ignore backup files of documentation files.
31519         * posix-modules: grep only through files named *.texi.
31520
31521 2010-07-31  Bruno Haible  <bruno@clisp.org>
31522
31523         symlinkat: Fix documentation.
31524         * doc/posix-functions/readlinkat.texi: Fix module name.
31525
31526 2010-07-31  Bruno Haible  <bruno@clisp.org>
31527
31528         fchownat: Replace also when chown has the trailing slash bug.
31529         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31530         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31531         introduced on 2010-04-10.
31532         Reported by Rainer Tammer.
31533
31534 2010-07-31  Bruno Haible  <bruno@clisp.org>
31535
31536         linkat: Work around AIX 7.1 bug.
31537         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31538         whether linkat handles trailing slash correctly. If not, replace linkat
31539         and define LINKAT_TRAILING_SLASH_BUG.
31540         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31541         check whether (fd1,file1) points to a directory if file1 or file2 ends
31542         in a slash. Code taken from lib/link.c.
31543         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31544         Reported by Rainer Tammer.
31545
31546 2010-07-31  Bruno Haible  <bruno@clisp.org>
31547
31548         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31549         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31550         This disables an xlc optimization that was causing wrong test results.
31551         Reported by Rainer Tammer.
31552
31553 2010-07-31  Bruno Haible  <bruno@clisp.org>
31554
31555         iconv: Work around AIX 6.1..7.1 bug.
31556         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31557         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31558         cross-compiling, guess no on all versions of AIX.
31559         Reported by Rainer Tammer.
31560
31561 2010-07-31  Bruno Haible  <bruno@clisp.org>
31562
31563         readlink: Relax test a bit.
31564         * tests/test-readlink.h (test_readlink): Allow different errno value
31565         when readlink is called with a file name that ends in / and refers to
31566         a file.
31567         Suggested by Eric Blake.
31568         Reported by Rainer Tammer.
31569
31570 2010-07-31  Bruno Haible  <bruno@clisp.org>
31571
31572         copysign: Does not require -lm on glibc systems.
31573         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31574         gl_COMMON_DOUBLE_MATHFUNC.
31575         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31576
31577 2010-07-31  Bruno Haible  <bruno@clisp.org>
31578
31579         duplocale: Work around AIX 7.1 bug.
31580         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31581         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31582         * lib/duplocale.c (rpl_duplocale): Update comment.
31583         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31584         Reported by Rainer Tammer.
31585
31586 2010-07-30  Bruno Haible  <bruno@clisp.org>
31587
31588         dirfd: Avoid link error on AIX 7.1.
31589         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31590         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31591         exist, set REPLACE_DIRFD.
31592         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31593         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31594         * doc/posix-functions/dirfd.texi: Update.
31595         Reported by Rainer Tammer.
31596
31597 2010-07-30  Eric Blake  <eblake@redhat.com>
31598
31599         strtod: next round of AIX fixes
31600         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31601         exponent.
31602         * tests/test-strtod.c (main): Enhance tests.
31603         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31604         Reported by Rainer Tammer.
31605
31606         futimens: fix configure check
31607         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31608         Reported by Bruno Haible.
31609
31610 2010-07-30  Bruno Haible  <bruno@clisp.org>
31611
31612         getline: Update regarding AIX.
31613         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31614         Reported by Rainer Tammer.
31615
31616 2010-07-30  Bruno Haible  <bruno@clisp.org>
31617
31618         wcwidth: Drop replacement on AIX 7.
31619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31620         AIX 7.
31621         Reported by Rainer Tammer.
31622
31623 2010-07-30  Bruno Haible  <bruno@clisp.org>
31624
31625         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31626         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31627         a 'char *'.
31628         Reported by Rainer Tammer.
31629
31630 2010-07-30  Bruno Haible  <bruno@clisp.org>
31631
31632         unlink: Update regarding AIX.
31633         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31634         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31635         Reported by Rainer Tammer.
31636
31637 2010-07-30  Bruno Haible  <bruno@clisp.org>
31638
31639         symlink: Update regarding AIX.
31640         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31641         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31642         Reported by Rainer Tammer.
31643
31644 2010-07-30  Bruno Haible  <bruno@clisp.org>
31645
31646         strndup: Update regarding AIX.
31647         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31648         AIX 7.
31649         Reported by Rainer Tammer.
31650
31651 2010-07-30  Bruno Haible  <bruno@clisp.org>
31652
31653         stat: Update regarding AIX.
31654         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31655         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31656         Reported by Rainer Tammer.
31657
31658 2010-07-30  Bruno Haible  <bruno@clisp.org>
31659
31660         truncl: Fix autoconf test.
31661         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31662         whether truncl works.
31663         Reported by Rainer Tammer.
31664
31665 2010-07-30  Bruno Haible  <bruno@clisp.org>
31666
31667         round: Update regarding AIX.
31668         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31669         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31670         Reported by Rainer Tammer.
31671
31672 2010-07-30  Bruno Haible  <bruno@clisp.org>
31673
31674         rename: Update regarding AIX.
31675         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31676         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31677         Reported by Rainer Tammer.
31678
31679 2010-07-30  Bruno Haible  <bruno@clisp.org>
31680
31681         printf.m4: Update regarding AIX.
31682         * m4/printf.m4: Update comments regarding AIX.
31683         Reported by Rainer Tammer.
31684
31685 2010-07-30  Bruno Haible  <bruno@clisp.org>
31686
31687         iconv: Update regarding AIX.
31688         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31689         AIX 7.
31690         Reported by Rainer Tammer.
31691
31692 2010-07-30  Bruno Haible  <bruno@clisp.org>
31693
31694         getopt: Update regarding AIX.
31695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31696         no on AIX.
31697         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31698         Reported by Rainer Tammer.
31699
31700 2010-07-30  Bruno Haible  <bruno@clisp.org>
31701
31702         ldexpl; Update regarding AIX.
31703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31704         on AIX 7.
31705         Reported by Rainer Tammer.
31706
31707 2010-07-30  Bruno Haible  <bruno@clisp.org>
31708
31709         frexpl: Update regarding AIX.
31710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31711         on AIX 7.
31712         Reported by Rainer Tammer.
31713
31714 2010-07-30  Bruno Haible  <bruno@clisp.org>
31715
31716         open, fopen: Update regarding AIX.
31717         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31718         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31719         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31720         * doc/posix-functions/fopen.texi: Likewise.
31721         Reported by Rainer Tammer.
31722
31723 2010-07-30  Bruno Haible  <bruno@clisp.org>
31724
31725         chown: Update doc regarding AIX.
31726         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31727         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31728         Reported by Rainer Tammer.
31729
31730 2010-07-30  Eric Blake  <eblake@redhat.com>
31731
31732         strtod: fix bug in replacement function on AIX
31733         * lib/strtod.c (strtod): Special case broken "0x" parse in
31734         underlying strtod.
31735         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31736         * doc/posix-functions/strtod.texi (strtod): Likewise.
31737         Reported by Rainer Tammer.
31738
31739 2010-07-30  Bruno Haible  <bruno@clisp.org>
31740
31741         mbrlen: Fix cross-compilation guess for AIX.
31742         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31743         guess. Leftover from 2008-12-22.
31744
31745 2010-07-30  Bruno Haible  <bruno@clisp.org>
31746
31747         mbrtowc: Fix cross-compilation guess for AIX.
31748         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31749         guess. Leftover from 2008-12-21.
31750
31751 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31752
31753         init.sh: work around trap limitation of some shells
31754         * tests/init.sh (setup_): Move exit trap outside of shell function.
31755
31756 2010-07-29  Eric Blake  <eblake@redhat.com>
31757
31758         strtod: aid debugging
31759         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31760         understanding why strtod is rejected.
31761
31762 2010-07-28  Bruno Haible  <bruno@clisp.org>
31763
31764         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31765         * lib/unistr/u8-chr.c: Include <string.h>.
31766         * tests/unistr/test-u8-chr.c: Likewise.
31767         * tests/unistr/test-u16-chr.c: Likewise.
31768         * tests/unistr/test-u32-chr.c: Likewise.
31769         * tests/unistr/test-u8-strchr.c: Likewise.
31770         * tests/unistr/test-u16-strchr.c: Likewise.
31771         * tests/unistr/test-u32-strchr.c: Likewise.
31772         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31773         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31774         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31775         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31776
31777 2010-07-28  Bruno Haible  <bruno@clisp.org>
31778
31779         Use spaces for indentation, not tabs.
31780         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31781
31782 2010-07-27  Bruno Haible  <bruno@clisp.org>
31783
31784         mbspcasecmp: Fix function specification.
31785         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31786         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31787         Reported by Eric Blake <eblake@redhat.com>.
31788
31789 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31790
31791         timespec: use cast and not conditional, as truncation isn't possible
31792         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31793         instead of a conditional.  Comment about the situation in more detail.
31794         This undoes most of the 2009-10-29 patch.
31795
31796 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31797
31798         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31799         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31800         * lib/unistr/u8-strchr.c: Likewise.
31801         * modules/unistr/u8-chr: Depend on memchr.
31802
31803         unistr/u*-strchr: add tests
31804         * modules/unistr/u8-strchr-tests: New file.
31805         * modules/unistr/u16-strchr-tests: New file.
31806         * modules/unistr/u32-strchr-tests: New file.
31807         * tests/unistr/test-strchr.h: New file.
31808         * tests/unistr/test-u8-strchr.c: New file.
31809         * tests/unistr/test-u16-strchr.c: New file.
31810         * tests/unistr/test-u32-strchr.c: New file.
31811
31812         unistr/u*-chr: test multibyte sequences more
31813         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31814         test vector.
31815         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31816         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31817         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31818
31819         unistr/u*-chr: test multibyte sequences
31820         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31821
31822         unistr/u*-chr: prepare for multibyte tests
31823         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31824         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31825         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31826         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31827         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31828         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31829
31830 2010-07-18  Bruno Haible  <bruno@clisp.org>
31831
31832         unistr/u8-strchr: Optimize non-ASCII argument case.
31833         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31834         because the first byte often matches anyway.
31835         Reported by Pádraig Brady <P@draigbrady.com>.
31836
31837 2010-07-15  Karl Berry  <karl@gnu.org>
31838
31839         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31840
31841 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31842
31843         getcwd: on Solaris, work better if ancestors are inaccessible
31844         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31845         buffer and size, try again with a large buffer.  This works better
31846         on Solaris, since its getcwd succeeds even if the path to the root
31847         is inaccessible, and this is helpful in common cases such as .zfs
31848         hidden directories.  Problem reported by J Chapman Flack in
31849         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31850         Use system getcwd if it's declared, not merely if it's partly
31851         working; use the partly-working test only to avoid needless effort
31852         if the system getcwd fails.
31853         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31854         comment that was already obsolete and is now even more obsolete.
31855         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31856         now might call strdup.
31857
31858 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31859
31860         pthread: Add enough so that coreutils/src/sort.c compiles.
31861         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31862         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31863         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31864         Include <sys/types.h>, in case it defines pthread_t.
31865         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31866         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31867         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31868         (pthread_rwlockattr_t, pthread_spinlock_t):
31869         New typedefs, if HAVE_PTHREAD_T is not defined.
31870         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31871         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31872         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31873         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31874         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31875         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31876         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31877         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31878         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31879         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31880         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31881         New macros.
31882         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31883         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31884         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31885         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31886         (pthread_spin_unlock): New dummy functions.
31887         (pthread_create): Return EAGAIN; don't set errno.
31888         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31889         require AC_C_INLINE.
31890         * modules/pthread (Depends-on): Add sched, time.
31891         (pthread.h): Use AM_V_GEN.
31892
31893 2010-07-13  Bruno Haible  <bruno@clisp.org>
31894
31895         striconveh: Don't malloc memory if the result buffer is sufficient.
31896         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31897         buffer if its size is sufficient.
31898         Reported by Ludovic Courtès <ludo@gnu.org>.
31899
31900 2010-07-13  Bruno Haible  <bruno@clisp.org>
31901
31902         strtod: Add safety check.
31903         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31904
31905 2010-07-12  Bruno Haible  <bruno@clisp.org>
31906
31907         Unify tests that set gl_cv_func_ldexpl_no_libm.
31908         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31909         gl_FUNC_LDEXPL.
31910         (gl_FUNC_LDEXPL): Invoke it.
31911         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31912
31913 2010-07-12  Bruno Haible  <bruno@clisp.org>
31914
31915         Unify tests that set gl_cv_func_ldexp_no_libm.
31916         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31917         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31918         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31919         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31920         * modules/strtod (Files): Add m4/ldexp.m4.
31921
31922 2010-07-12  Bruno Haible  <bruno@clisp.org>
31923
31924         Unify tests that set gl_cv_func_frexpl_no_libm.
31925         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31926         gl_FUNC_FREXPL_NO_LIBM.
31927         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31929
31930 2010-07-12  Bruno Haible  <bruno@clisp.org>
31931
31932         Unify tests that set gl_cv_func_frexp_no_libm.
31933         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31934         gl_FUNC_FREXP_NO_LIBM.
31935         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31936         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31937
31938 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31939
31940         memcoll: clarify sizes versus lengths, document better, and tweak perf
31941         * lib/memcoll.c (strcoll_loop, memcoll0):
31942         Improve quality of descriptive comments.  Name variables
31943         consistently as to whether they are lengths (which do not include
31944         terminating null) versus sizes (which do).
31945         * lib/xmemcoll.c (xmemcoll0): Likewise.
31946         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31947         returned when s1size == 0; this is easier to compile and saves
31948         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31949
31950 2010-07-12  Bruno Haible  <bruno@clisp.org>
31951
31952         Tests for module '_Exit'.
31953         * modules/_Exit-tests: New file.
31954         * tests/test-_Exit.sh: New file.
31955         * tests/test-_Exit.c: New file.
31956
31957         New module '_Exit'.
31958         * lib/stdlib.in.h (__attribute__): New macro.
31959         (_Exit): New declaration.
31960         * lib/_Exit.c: New file.
31961         * m4/_Exit.m4: New file.
31962         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31963         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31964         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31965         * modules/_Exit: New file.
31966         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31967         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31968
31969 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31970
31971         strtod: make it more-accurate typically, and don't require libm
31972         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31973         Include limits.h.  Don't include string.h.
31974         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31975         (locale_isspace): New function, so that no casts are needed to
31976         check whether *s is a space.
31977         (ldexp): Provide an unused dummy if not available.
31978         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31979         (strtod): Use them.  This implementation prefers to use the
31980         underlying strtod if available, falling back on our own code
31981         only to fix known bugs.  This is more likely to produce an
31982         accurate result.  Also, it avoids the use of libm functions.
31983         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31984         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31985         was absent, but it caused a test failure with coreutils.
31986         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31987         with libm.
31988         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31989         * modules/strtod-tests (Makefile.am): Likewise.
31990
31991 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31992             Bruno Haible  <bruno@clisp.org>
31993
31994         unistr/u8-strchr: Optimize ASCII argument case.
31995         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31996
31997 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31998
31999         (x)memcoll: minor tweaks
32000         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32001         is after the type that it qualifies.
32002         (memcoll0): Likewise.
32003         * lib/memcoll.h (memcoll0): Likewise.
32004         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32005         * lib/xmemcoll.h (xmemcoll0): Likewise.
32006         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32007         differs from memcoll in that the NUL byte is part of the argument.
32008         Omit the abort-checks, as performance is a real issue here.  Plus,
32009         the checks were wrong anyway (an off-by-one error).  Omit local
32010         variable 'diff', as it's a bit clearer that way.
32011         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32012         no longer needed.
32013
32014 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32015
32016         (x)memcoll: speedup when input is known to be NUL delimited
32017         * lib/memcoll.c: Include stdlib.
32018         (memcoll0): New function.
32019         (strcoll_loop): New function, refactored for use in both memcoll
32020         and memcoll0.
32021         * lib/memcoll.h (memcoll0): Add prototype.
32022         * lib/xmemcoll.c (xmemcoll0): New function.
32023         (collate_error): New function, refactored for use in both xmemcoll
32024         and xmemcoll0.
32025         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32026         * m4/memcoll.m4: add inline invocation.
32027
32028 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32029
32030         * build-aux/bootstrap: Remove any local translations
32031         from the translation project synchronization directory,
32032         so that local only translations are not distributed.
32033
32034 2010-07-04  Bruno Haible  <bruno@clisp.org>
32035
32036         fsusage: Clarify which code applies to which platforms.
32037         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32038         platform.
32039         * lib/fsusage.c (get_fs_usage): Likewise.
32040
32041 2010-07-04  Bruno Haible  <bruno@clisp.org>
32042
32043         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32044         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32045         Reported by Martin Lambers <marlam@marlam.de>.
32046
32047 2010-07-04  Jim Meyering  <meyering@redhat.com>
32048
32049         hash: once again explicitly disallow insertion of NULL
32050         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32051         inserting a NULL pointer cannot work with these functions.
32052         Add a comment with details.
32053         This reverts part of the 2010-07-01 commit, 5bef1a35
32054         "hash: extend module to deal with non-pointer keys".
32055
32056 2010-07-01  Bruno Haible  <bruno@clisp.org>
32057
32058         stdbool: Update doc.
32059         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32060         Info from Christian Weisgerber <naddy@mips.inka.de>.
32061
32062 2010-07-01  Jim Meyering  <meyering@redhat.com>
32063
32064         hash: extend module to deal with non-pointer keys
32065         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32066         but that allows insertion of non-pointer entries.
32067         Do not disallow an ENTRY value of NULL.
32068         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32069         * lib/hash.h (hash_insert0): Declare.
32070
32071 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32072
32073         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32074         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32075         not present (i.e. with autoconf 2.59 and when using gettextize, not
32076         gnulib), require AC_GNU_SOURCE instead.
32077
32078 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32079
32080         idpriv-drop: Fix tests.
32081         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32082         not to the test-idpriv-droptemp program.
32083
32084 2010-06-29  Bruno Haible  <bruno@clisp.org>
32085
32086         string: Fix syntax error with g++ 2.96.
32087         * lib/string.in.h (__pure__): Remove definition.
32088         (_GL_ATTRIBUTE_PURE): New macro.
32089         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32090         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32091         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32092
32093 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32094
32095         unitypes: Fix bug introduced on 2010-05-18.
32096         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32097
32098 2010-06-22  Eric Blake  <eblake@redhat.com>
32099
32100         memmem: slight optimization
32101         * lib/str-two-way.h (critical_factorization): Update comments.
32102         Reduce work during factorization phase.
32103         Reported by Carlos Bueno <carlos@bueno.org>.
32104
32105 2010-06-21  Bruno Haible  <bruno@clisp.org>
32106
32107         Fix HAVE_CALLOC_POSIX misnomer.
32108         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32109         !HAVE_CALLOC_POSIX.
32110         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32111         HAVE_CALLOC_POSIX.
32112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32113         instead of HAVE_CALLOC_POSIX.
32114         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32115         HAVE_CALLOC_POSIX.
32116
32117         Use modern idiom for calloc() replacement.
32118         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32119         AC_FUNC_CALLOC.
32120         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32121         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32122         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32123         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32124         (gl_REPLACE_CALLOC): New macro.
32125
32126 2010-06-21  Bruno Haible  <bruno@clisp.org>
32127
32128         Fix HAVE_REALLOC_POSIX misnomer.
32129         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32130         !HAVE_REALLOC_POSIX.
32131         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32132         HAVE_REALLOC_POSIX.
32133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32134         instead of HAVE_REALLOC_POSIX.
32135         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32136         HAVE_REALLOC_POSIX.
32137
32138         Use modern idiom for realloc() replacement.
32139         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32140         AC_FUNC_REALLOC.
32141         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32142         Autoconf's AC_FUNC_REALLOC.
32143         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32144         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32145         (gl_REPLACE_REALLOC): New macro.
32146         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32147
32148 2010-06-21  Bruno Haible  <bruno@clisp.org>
32149
32150         Fix HAVE_MALLOC_POSIX misnomer.
32151         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32152         !HAVE_MALLOC_POSIX.
32153         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32154         HAVE_MALLOC_POSIX.
32155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32156         instead of HAVE_MALLOC_POSIX.
32157         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32158         HAVE_MALLOC_POSIX.
32159
32160         Use modern idiom for malloc() replacement.
32161         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32162         AC_FUNC_MALLOC.
32163         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32164         Autoconf's AC_FUNC_MALLOC.
32165         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32166         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32167         (gl_REPLACE_MALLOC): New macro.
32168         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32169
32170 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32171
32172         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32173         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32174         This macro takes 3 arguments, not 4.
32175
32176 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32177
32178         ipv6: fix detection under mingw
32179         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32180         in6_addr.
32181
32182 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32183
32184         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32185         that strtod() works when cross-compiling to a glibc version known
32186         to work.
32187
32188 2010-06-15  Bruno Haible  <bruno@clisp.org>
32189
32190         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32191
32192 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32193
32194         select: Correct timeout.
32195         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32196
32197 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32198
32199         git-version-gen: init shell var to avoid env var influence
32200         * build-aux/git-version-gen (v): Init shell var to empty.
32201
32202 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         priv-set: Don't assume that priv.h exists merely because getppriv does.
32205         See Jan Andersen's bug report about AIX 5L in
32206         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32207         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32208         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32209         * lib/priv-set.h: Likewise.
32210         * tests/test-priv-set.c: Likewise.
32211
32212 2010-06-13  Bruno Haible  <bruno@clisp.org>
32213
32214         relocatable: Make it easier to test whether to install wrappers.
32215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32216         RELOCATABLE_VIA_WRAPPER.
32217
32218 2010-06-13  Bruno Haible  <bruno@clisp.org>
32219
32220         gnulib-tool: Display specified modules and dependencies differently.
32221         * gnulib-tool (func_show_module_list): New function.
32222         (func_import, func_create_testdir): Invoke it.
32223         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32224
32225 2010-06-13  Bruno Haible  <bruno@clisp.org>
32226
32227         gnulib-tool: Align code of func_import and func_create_testdir.
32228         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32229         specified_modules.
32230
32231 2010-06-12  Jim Meyering  <meyering@redhat.com>
32232
32233         test-inttostr: avoid spurious failure on Solaris 9
32234         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32235         to accept "%ju".  Reported by Bruno Haible.
32236
32237 2010-06-11  Jim Meyering  <meyering@redhat.com>
32238
32239         test-sys_socket: mark variables as used more readably
32240         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32241         as "used" explicitly via (void) statement casts.  This is more
32242         readable than using them in an artificial return expression.
32243         Suggestion from Bruno Haible.
32244
32245 2010-06-11  Bruno Haible  <bruno@clisp.org>
32246
32247         Avoid some more warnings from "gcc -Wwrite-strings".
32248         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32249         to 'const char *'.
32250         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32251         * tests/test-c-strcasestr.c (main): Likewise.
32252         * tests/test-mbscasestr1.c (main): Likewise.
32253         * tests/test-mbscasestr2.c (main): Likewise.
32254         * tests/test-memmem.c (main): Likewise.
32255         * tests/test-strstr.c (main): Likewise.
32256         * tests/test-strcasestr.c (main): Likewise.
32257
32258 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32259
32260         init.sh: change framework_failure_ to fail with status 99, not 1
32261         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32262         automake's parallel-tests rule that this is an unexpected failure,
32263         even if the test is listed in XFAIL_TESTS.
32264
32265 2010-06-11  Jim Meyering  <meyering@redhat.com>
32266
32267         test-inttostr: avoid warnings about 4-6KB literal strings
32268         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32269         Include "macros.h", for its definition of ASSERT.
32270         (CK): s/assert/ASSERT/
32271         * modules/inttostr-tests (Files): Add macros.h.
32272
32273         init.sh: don't use $ME_ or skip_ before they are defined
32274         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32275         their first uses.  Also hoist their companions: warn_, fail_,
32276         framework_failure_, $stderr_fileno.  Prompted by a patch from
32277         Stefano Lattarini.
32278
32279         test-sys_socket: avoid set-but-not-used warnings from gcc
32280         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32281         avoid warning about set-but-not-used variables.
32282
32283         test-xvasprintf: avoid 'const' discard warnings
32284         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32285         "const" when assigning from literal strings.
32286         (test_xasprintf): Add "void" in function argument list to placate
32287         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32288
32289         tests: avoid compilation warnings in argmatch and exclude tests...
32290         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32291         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32292         Since it always exits, declare with the "noreturn" attribute.
32293         * tests/test-argmatch.c: Likewise.
32294
32295         tests: avoid 'const' discard warnings in mbsstr tests
32296         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32297         * tests/test-mbsstr2.c (main): Likewise.
32298
32299         test-verify: avoid warning from gcc's -Wmissing-declarations
32300         * tests/test-verify.c (function): Declare to be static.
32301
32302         test-inttostr.c: include <string.h> for use of strcmp
32303         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32304
32305         test-linkat: avoid failed assertion on "other" architectures
32306         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32307         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32308         sparc: https://bugs.launchpad.net/bugs/591968
32309
32310 2010-06-11  Jim Meyering  <meyering@redhat.com>
32311
32312         printf.m4: avoid autoconf's "Expanded Before Required" warning
32313         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32314         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32315         autoconf warning.
32316
32317 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32318
32319         Replacement header templates are now named with ".in", not "_".
32320         * doc/gnulib-intro.texi: Correct.
32321
32322 2010-06-10  Jim Meyering  <meyering@redhat.com>
32323
32324         inttostr-tests: depend on snprintf, not snprintf-posix
32325         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32326         snprintf-posix, to avoid this aclocal failure:
32327           missing file gnulib-tests/vasnprintf.c
32328           configure.ac:45: error: expected source file, required through \
32329           AC_LIBSOURCES, not found
32330
32331 2010-06-10  Jim Meyering  <meyering@redhat.com>
32332
32333         inttostr: add a new function, inttostr, and tests
32334         The namesake function was not available.  The existence of the
32335         template file, inttostr.c makes its addition nontrivial.
32336         * lib/anytostr.c: Rename from inttostr.c.
32337         (anytostr): Rename from inttostr.
32338         * lib/inttostr.c: New file.
32339         * modules/inttostr (Files): Add anytostr.c.
32340         (Makefile.am): Set lib_SOURCES instead of ...
32341         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32342         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32343         * lib/offtostr.c: Likewise.
32344         * lib/uinttostr.c: Likewise.
32345         * lib/umaxtostr.c: Likewise.
32346         * modules/inttostr-tests: New file.
32347         * tests/test-inttostr.c: New file.  Test these functions.
32348
32349 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32350             Bruno Haible  <bruno@clisp.org>
32351
32352         Add "Extending Gnulib" chapter to manual.
32353         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32354         chapter.
32355         (Extending Gnulib): New chapter.
32356         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32357         chapter.
32358
32359 2010-06-09  Bruno Haible  <bruno@clisp.org>
32360
32361         Avoid relocwrapper link errors due to gnulib replacement functions.
32362         * lib/areadlink.c: Use the system's malloc, realloc functions.
32363         (areadlink): Set errno to ENOMEM explicitly.
32364         * modules/areadlink (Depends-on): Remove malloc-posix.
32365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32366
32367 2010-06-09  Bruno Haible  <bruno@clisp.org>
32368
32369         Avoid relocwrapper link errors due to gnulib replacement functions.
32370         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32371         * lib/malloca.c: Likewise.
32372         * lib/relocatable.c: Likewise.
32373         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32374         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32375         * lib/setenv.c: Use the system's malloc, realloc functions.
32376         * lib/strerror.c: Use the system's sprintf function.
32377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32378
32379 2010-06-04  Bruno Haible  <bruno@clisp.org>
32380
32381         Prefer documented low-level autoconf macro names.
32382         * m4/lib-link.m4: Use m4_translit instead of translit.
32383         * m4/environ.m4: Likewise.
32384         * m4/mathfunc.m4: Likewise.
32385         * m4/onceonly.m4: Likewise.
32386         * m4/stdint.m4: Likewise.
32387         Suggested by Eric Blake.
32388
32389 2010-06-04  Martin Lambers  <marlam@marlam.de>
32390             Bruno Haible  <bruno@clisp.org>
32391
32392         havelib: Allow library names with '+' characters.
32393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32394         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32395
32396 2010-06-09  Bruno Haible  <bruno@clisp.org>
32397
32398         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32399         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32400         realloc failed.
32401
32402 2010-06-08  Peter Simons  <simons@cryp.to>
32403
32404         maint.mk: make the news-check rule more configurable
32405         * top/maint.mk (news-check-lines-spec): New variable.
32406         (news-check): Use "sed -n 1,10p" in place of "head".
32407
32408 2010-06-07  Jim Meyering  <meyering@redhat.com>
32409
32410         do-release-commit-and-tag: fix typo in --help
32411         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32412
32413         regex: avoid new dead-code warning with gcc-4.6.0
32414         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32415         if-block containing a while-loop.  It's been unused for at least
32416         5 years.
32417
32418 2010-06-05  Bruno Haible  <bruno@clisp.org>
32419
32420         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32421         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32422
32423 2010-06-04  Bruno Haible  <bruno@clisp.org>
32424
32425         Update to GNU gettext 0.18.1.
32426         * modules/gettext (configure.ac): Require gettext infrastructure from
32427         version 0.18.1.
32428
32429 2010-06-03  Bruno Haible  <bruno@clisp.org>
32430
32431         Don't use AC_LIBOBJ with file names in subdirectories.
32432         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32433         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32434         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32435         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32436         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32437         gl_LIBUNISTRING_LIBSOURCE.
32438         (Makefile.am): Augment lib_SOURCES here, conditionally.
32439         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32440
32441 2010-06-03  Bruno Haible  <bruno@clisp.org>
32442
32443         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32444         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32445         expansion does not end with a newline.
32446         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32447         unnecessary newline.
32448
32449 2010-06-03  Bruno Haible  <bruno@clisp.org>
32450
32451         Reduce dependencies.
32452         * tests/test-quotearg.h: New file, extracted from
32453         tests/test-quotearg.c.
32454         * tests/test-quotearg-simple.c: New file, extracted from
32455         tests/test-quotearg.c.
32456         * tests/test-quotearg.c: Don't include <ctype.h>.
32457         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32458         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32459         use_quote_double_quotes, use_quotearg_colon): Moved to
32460         tests/test-quotearg.h.
32461         (results_g, flag_results, custom_quotes, custom_results): Moved
32462         to tests/test-quotearg-simple.c.
32463         (main): Moved the part that does not depend on gettext to
32464         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32465         performed.
32466         * modules/quotearg-simple: New file.
32467         * modules/quotearg-simple-tests: New file.
32468         * modules/quotearg (Depends-on): Add quotearg-simple.
32469         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32470         (Files): Add tests/test-quotearg.h.
32471         Reported by Paolo Bonzini.
32472
32473 2010-06-03  Bruno Haible  <bruno@clisp.org>
32474
32475         Reduce dependencies.
32476         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32477
32478 2010-06-03  Bruno Haible  <bruno@clisp.org>
32479
32480         time: Undefine more broken macros.
32481         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32482         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32483         Reported by Eric Blake.
32484
32485 2010-06-03  Bruno Haible  <bruno@clisp.org>
32486
32487         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32488         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32489         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32490         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32491         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32492         Reported by Ludovic Courtès <ludo@gnu.org>.
32493
32494 2010-06-02  Eric Blake  <eblake@redhat.com>
32495
32496         time: work with mingw + pthreads-win32 library
32497         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32498         if timespec is defined only in pthread.h.
32499         * modules/time (Makefile.am): Substitute it.
32500         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32501         <pthread.h>, when needed.
32502         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32503         from the library.
32504
32505 2010-05-31  Bruno Haible  <bruno@clisp.org>
32506
32507         Avoid expanding two macros in the wrong order.
32508         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32509         gl_LIBUNISTRING if it is defined.
32510         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32511         autoconf >= 2.64.
32512         Reported by Ludovic Courtès <ludo@gnu.org>.
32513
32514 2010-05-27  Jim Meyering  <meyering@redhat.com>
32515
32516         maint.mk: also prohibit "#undef" of always-defined symbols
32517         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32518         Allow more than one space before the symbol name.
32519         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32520         the regexp uses alternation.
32521
32522 2010-05-26  Eric Blake  <eblake@redhat.com>
32523
32524         maint.mk: avoid echo -e
32525         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32526         Convert all uses of echo -* to printf.
32527         Reported by Matthias Bolte.
32528
32529 2010-05-25  Bruno Haible  <bruno@clisp.org>
32530
32531         Update to GNU gettext 0.18, part 2.
32532         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32533         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32534
32535 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32536
32537         Add missing include in test-pwrite.c.
32538         * tests/test-pwrite.c: Include string.h, for strcmp.
32539
32540 2010-05-24  Bruno Haible  <bruno@clisp.org>
32541
32542         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32543
32544 2010-05-24  Bruno Haible  <bruno@clisp.org>
32545
32546         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32547         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32548         iconveh_error argument.
32549         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32550         U_STRCONV_TO_LOCALE.
32551         * lib/unistr/u16-strcoll.c: Likewise.
32552         * lib/unistr/u32-strcoll.c: Likewise.
32553         * modules/unistr/u8-strcoll (Depends-on): Add
32554         uniconv/u8-strconv-to-enc, localcharset. Remove
32555         uniconv/u8-strconv-to-locale.
32556         (configure.ac): Bump version number.
32557         * modules/unistr/u16-strcoll (Depends-on): Add
32558         uniconv/u16-strconv-to-enc, localcharset. Remove
32559         uniconv/u16-strconv-to-locale.
32560         (configure.ac): Bump version number.
32561         * modules/unistr/u32-strcoll (Depends-on): Add
32562         uniconv/u32-strconv-to-enc, localcharset. Remove
32563         uniconv/u32-strconv-to-locale.
32564         (configure.ac): Bump version number.
32565
32566 2010-05-24  Bruno Haible  <bruno@clisp.org>
32567
32568         Avoid a test failure on NetBSD 5.0.
32569         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32570         an iconv() bug.
32571
32572 2010-05-24  Bruno Haible  <bruno@clisp.org>
32573
32574         Adjust #include directive style.
32575         * modules/regex (Includes): Recommend to write <regex.h>.
32576
32577 2010-05-24  Bruno Haible  <bruno@clisp.org>
32578
32579         regex: Don't require alloca.
32580         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32581         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32582         only inside if (0).
32583
32584 2010-05-23  Jim Meyering  <meyering@redhat.com>
32585
32586         test-renameat.c: include <sys/stat.h>
32587         * tests/test-renameat.c: Include <sys/stat.h>; required for
32588         definition of S_IS* macros.
32589
32590 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32591
32592         Update maintainer documentation for 'relocatable-prog' module.
32593         * doc/relocatable-maint.texi: Update.
32594         Comments by Bruno Haible.
32595
32596 2010-05-23  Bruno Haible  <bruno@clisp.org>
32597
32598         git-merge-changelog: Enable --split-merged-entry by default.
32599         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32600         (usage): Don't mention this option any more.
32601         Reported by Ralf Wildenhues.
32602
32603 2010-05-23  Jim Meyering  <meyering@redhat.com>
32604
32605         test-pwrite: do not leave behind a test file named "out"
32606         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32607         The trivial-looking use of init.sh is really necessary.
32608         It ensures that the temporary file, "out", is created in
32609         a temporary directory, and removed upon termination.
32610         * tests/test-pwrite.sh: Re-add file.
32611         * modules/pwrite-tests: Reference it.
32612
32613 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32614
32615         Fix output redirection buglet in init.sh.
32616         * tests/init.sh: Fix redirection of stderr.
32617
32618 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32619
32620         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32621
32622 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32623
32624         * modules/valgrind-tests: New file.
32625         * m4/valgrind-tests.m4: New file.
32626         * doc/valgrind-tests.texi: New file.
32627         * doc/gnulib.texi (Running self-tests under valgrind): New
32628         section.
32629
32630 2010-05-19  Bruno Haible  <bruno@clisp.org>
32631
32632         Clean up dead code in recent commit.
32633         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32634         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32635         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32636         Suggested by Paolo Bonzini.
32637
32638 2010-05-19  Bruno Haible  <bruno@clisp.org>
32639
32640         Avoid valgrind error reports from libunistring.
32641         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32642         * modules/libunistring (Files): Add it.
32643         * modules/libunistring-optional (Files): Likewise.
32644
32645 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32646             Bruno Haible  <bruno@clisp.org>
32647
32648         New module 'libunistring-optional'.
32649         * modules/libunistring-optional: New file.
32650         * m4/libunistring-base.m4: New file.
32651         * m4/libunistring-optional.m4: New file.
32652         * lib/unicase.in.h: Renamed from lib/unicase.h.
32653         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32654         * lib/unictype.in.h: Renamed from lib/unictype.h.
32655         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32656         * lib/uniname.in.h: Renamed from lib/uniname.h.
32657         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32658         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32659         * lib/unistr.in.h: Renamed from lib/unistr.h.
32660         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32661         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32662         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32663         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32664         gl_LIBUNISTRING. If the library was found, determine the installed
32665         version and set LIBUNISTRING_VERSION.
32666         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32667         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32668         handle a configuration option --with-included-libunistring.
32669         * modules/libunistring (Files): Add m4/absolute-header.m4.
32670         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32671         Add m4/libunistring-base.m4.
32672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32673         (Makefile.am): Build unicase.h from unicase.in.h.
32674         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32675         Add m4/libunistring-base.m4.
32676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32677         (Makefile.am): Build uniconv.h from uniconv.in.h.
32678         * modules/unictype/base (Files): Use unictype.in.h instead of
32679         unictype.h. Add m4/libunistring-base.m4.
32680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32681         (Makefile.am): Build unictype.h from unictype.in.h.
32682         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32683         Add m4/libunistring-base.m4.
32684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32685         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32686         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32687         Add m4/libunistring-base.m4.
32688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32689         (Makefile.am): Build uniname.h from uniname.in.h.
32690         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32691         Add m4/libunistring-base.m4.
32692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32693         (Makefile.am): Build uninorm.h from uninorm.in.h.
32694         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32695         unistdio.h. Add m4/libunistring-base.m4.
32696         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32697         (Makefile.am): Build unistdio.h from unistdio.in.h.
32698         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32699         Add m4/libunistring-base.m4.
32700         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32701         (Makefile.am): Build unistr.h from unistr.in.h.
32702         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32703         Add m4/libunistring-base.m4.
32704         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32705         (Makefile.am): Build unitypes.h from unitypes.in.h.
32706         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32707         Add m4/libunistring-base.m4.
32708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32709         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32710         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32711         uniwidth.h. Add m4/libunistring-base.m4.
32712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32713         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32714         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32715         instead of augmenting lib_SOURCES.
32716         * modules/unicase/empty-suffix-context: Likewise.
32717         * modules/unicase/locale-language: Likewise.
32718         * modules/unicase/tolower: Likewise.
32719         * modules/unicase/totitle: Likewise.
32720         * modules/unicase/toupper: Likewise.
32721         * modules/unicase/u8-casecmp: Likewise.
32722         * modules/unicase/u8-casecoll: Likewise.
32723         * modules/unicase/u8-casefold: Likewise.
32724         * modules/unicase/u8-casexfrm: Likewise.
32725         * modules/unicase/u8-ct-casefold: Likewise.
32726         * modules/unicase/u8-ct-tolower: Likewise.
32727         * modules/unicase/u8-ct-totitle: Likewise.
32728         * modules/unicase/u8-ct-toupper: Likewise.
32729         * modules/unicase/u8-is-cased: Likewise.
32730         * modules/unicase/u8-is-casefolded: Likewise.
32731         * modules/unicase/u8-is-lowercase: Likewise.
32732         * modules/unicase/u8-is-titlecase: Likewise.
32733         * modules/unicase/u8-is-uppercase: Likewise.
32734         * modules/unicase/u8-prefix-context: Likewise.
32735         * modules/unicase/u8-suffix-context: Likewise.
32736         * modules/unicase/u8-tolower: Likewise.
32737         * modules/unicase/u8-totitle: Likewise.
32738         * modules/unicase/u8-toupper: Likewise.
32739         * modules/unicase/u16-casecmp: Likewise.
32740         * modules/unicase/u16-casecoll: Likewise.
32741         * modules/unicase/u16-casefold: Likewise.
32742         * modules/unicase/u16-casexfrm: Likewise.
32743         * modules/unicase/u16-ct-casefold: Likewise.
32744         * modules/unicase/u16-ct-tolower: Likewise.
32745         * modules/unicase/u16-ct-totitle: Likewise.
32746         * modules/unicase/u16-ct-toupper: Likewise.
32747         * modules/unicase/u16-is-cased: Likewise.
32748         * modules/unicase/u16-is-casefolded: Likewise.
32749         * modules/unicase/u16-is-lowercase: Likewise.
32750         * modules/unicase/u16-is-titlecase: Likewise.
32751         * modules/unicase/u16-is-uppercase: Likewise.
32752         * modules/unicase/u16-prefix-context: Likewise.
32753         * modules/unicase/u16-suffix-context: Likewise.
32754         * modules/unicase/u16-tolower: Likewise.
32755         * modules/unicase/u16-totitle: Likewise.
32756         * modules/unicase/u16-toupper: Likewise.
32757         * modules/unicase/u32-casecmp: Likewise.
32758         * modules/unicase/u32-casecoll: Likewise.
32759         * modules/unicase/u32-casefold: Likewise.
32760         * modules/unicase/u32-casexfrm: Likewise.
32761         * modules/unicase/u32-ct-casefold: Likewise.
32762         * modules/unicase/u32-ct-tolower: Likewise.
32763         * modules/unicase/u32-ct-totitle: Likewise.
32764         * modules/unicase/u32-ct-toupper: Likewise.
32765         * modules/unicase/u32-is-cased: Likewise.
32766         * modules/unicase/u32-is-casefolded: Likewise.
32767         * modules/unicase/u32-is-lowercase: Likewise.
32768         * modules/unicase/u32-is-titlecase: Likewise.
32769         * modules/unicase/u32-is-uppercase: Likewise.
32770         * modules/unicase/u32-prefix-context: Likewise.
32771         * modules/unicase/u32-suffix-context: Likewise.
32772         * modules/unicase/u32-tolower: Likewise.
32773         * modules/unicase/u32-totitle: Likewise.
32774         * modules/unicase/u32-toupper: Likewise.
32775         * modules/unicase/ulc-casecmp: Likewise.
32776         * modules/unicase/ulc-casecoll: Likewise.
32777         * modules/unicase/ulc-casexfrm: Likewise.
32778         * modules/uniconv/u8-conv-from-enc: Likewise.
32779         * modules/uniconv/u8-conv-to-enc: Likewise.
32780         * modules/uniconv/u8-strconv-from-enc: Likewise.
32781         * modules/uniconv/u8-strconv-from-locale: Likewise.
32782         * modules/uniconv/u8-strconv-to-enc: Likewise.
32783         * modules/uniconv/u8-strconv-to-locale: Likewise.
32784         * modules/uniconv/u16-conv-from-enc: Likewise.
32785         * modules/uniconv/u16-conv-to-enc: Likewise.
32786         * modules/uniconv/u16-strconv-from-enc: Likewise.
32787         * modules/uniconv/u16-strconv-from-locale: Likewise.
32788         * modules/uniconv/u16-strconv-to-enc: Likewise.
32789         * modules/uniconv/u16-strconv-to-locale: Likewise.
32790         * modules/uniconv/u32-conv-from-enc: Likewise.
32791         * modules/uniconv/u32-conv-to-enc: Likewise.
32792         * modules/uniconv/u32-strconv-from-enc: Likewise.
32793         * modules/uniconv/u32-strconv-from-locale: Likewise.
32794         * modules/uniconv/u32-strconv-to-enc: Likewise.
32795         * modules/uniconv/u32-strconv-to-locale: Likewise.
32796         * modules/unictype/bidicategory-byname: Likewise.
32797         * modules/unictype/bidicategory-name: Likewise.
32798         * modules/unictype/bidicategory-of: Likewise.
32799         * modules/unictype/bidicategory-test: Likewise.
32800         * modules/unictype/block-list: Likewise.
32801         * modules/unictype/block-test: Likewise.
32802         * modules/unictype/category-C: Likewise.
32803         * modules/unictype/category-Cc: Likewise.
32804         * modules/unictype/category-Cf: Likewise.
32805         * modules/unictype/category-Cn: Likewise.
32806         * modules/unictype/category-Co: Likewise.
32807         * modules/unictype/category-Cs: Likewise.
32808         * modules/unictype/category-L: Likewise.
32809         * modules/unictype/category-Ll: Likewise.
32810         * modules/unictype/category-Lm: Likewise.
32811         * modules/unictype/category-Lo: Likewise.
32812         * modules/unictype/category-Lt: Likewise.
32813         * modules/unictype/category-Lu: Likewise.
32814         * modules/unictype/category-M: Likewise.
32815         * modules/unictype/category-Mc: Likewise.
32816         * modules/unictype/category-Me: Likewise.
32817         * modules/unictype/category-Mn: Likewise.
32818         * modules/unictype/category-N: Likewise.
32819         * modules/unictype/category-Nd: Likewise.
32820         * modules/unictype/category-Nl: Likewise.
32821         * modules/unictype/category-No: Likewise.
32822         * modules/unictype/category-P: Likewise.
32823         * modules/unictype/category-Pc: Likewise.
32824         * modules/unictype/category-Pd: Likewise.
32825         * modules/unictype/category-Pe: Likewise.
32826         * modules/unictype/category-Pf: Likewise.
32827         * modules/unictype/category-Pi: Likewise.
32828         * modules/unictype/category-Po: Likewise.
32829         * modules/unictype/category-Ps: Likewise.
32830         * modules/unictype/category-S: Likewise.
32831         * modules/unictype/category-Sc: Likewise.
32832         * modules/unictype/category-Sk: Likewise.
32833         * modules/unictype/category-Sm: Likewise.
32834         * modules/unictype/category-So: Likewise.
32835         * modules/unictype/category-Z: Likewise.
32836         * modules/unictype/category-Zl: Likewise.
32837         * modules/unictype/category-Zp: Likewise.
32838         * modules/unictype/category-Zs: Likewise.
32839         * modules/unictype/category-and: Likewise.
32840         * modules/unictype/category-and-not: Likewise.
32841         * modules/unictype/category-byname: Likewise.
32842         * modules/unictype/category-name: Likewise.
32843         * modules/unictype/category-none: Likewise.
32844         * modules/unictype/category-of: Likewise.
32845         * modules/unictype/category-or: Likewise.
32846         * modules/unictype/category-test: Likewise.
32847         * modules/unictype/combining-class: Likewise.
32848         * modules/unictype/ctype-alnum: Likewise.
32849         * modules/unictype/ctype-alpha: Likewise.
32850         * modules/unictype/ctype-blank: Likewise.
32851         * modules/unictype/ctype-cntrl: Likewise.
32852         * modules/unictype/ctype-digit: Likewise.
32853         * modules/unictype/ctype-graph: Likewise.
32854         * modules/unictype/ctype-lower: Likewise.
32855         * modules/unictype/ctype-print: Likewise.
32856         * modules/unictype/ctype-punct: Likewise.
32857         * modules/unictype/ctype-space: Likewise.
32858         * modules/unictype/ctype-upper: Likewise.
32859         * modules/unictype/ctype-xdigit: Likewise.
32860         * modules/unictype/decimal-digit: Likewise.
32861         * modules/unictype/digit: Likewise.
32862         * modules/unictype/mirror: Likewise.
32863         * modules/unictype/numeric: Likewise.
32864         * modules/unictype/property-alphabetic: Likewise.
32865         * modules/unictype/property-ascii-hex-digit: Likewise.
32866         * modules/unictype/property-bidi-arabic-digit: Likewise.
32867         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32868         * modules/unictype/property-bidi-block-separator: Likewise.
32869         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32870         * modules/unictype/property-bidi-common-separator: Likewise.
32871         * modules/unictype/property-bidi-control: Likewise.
32872         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32873         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32874         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32875         * modules/unictype/property-bidi-european-digit: Likewise.
32876         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32877         * modules/unictype/property-bidi-left-to-right: Likewise.
32878         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32879         * modules/unictype/property-bidi-other-neutral: Likewise.
32880         * modules/unictype/property-bidi-pdf: Likewise.
32881         * modules/unictype/property-bidi-segment-separator: Likewise.
32882         * modules/unictype/property-bidi-whitespace: Likewise.
32883         * modules/unictype/property-byname: Likewise.
32884         * modules/unictype/property-combining: Likewise.
32885         * modules/unictype/property-composite: Likewise.
32886         * modules/unictype/property-currency-symbol: Likewise.
32887         * modules/unictype/property-dash: Likewise.
32888         * modules/unictype/property-decimal-digit: Likewise.
32889         * modules/unictype/property-default-ignorable-code-point: Likewise.
32890         * modules/unictype/property-deprecated: Likewise.
32891         * modules/unictype/property-diacritic: Likewise.
32892         * modules/unictype/property-extender: Likewise.
32893         * modules/unictype/property-format-control: Likewise.
32894         * modules/unictype/property-grapheme-base: Likewise.
32895         * modules/unictype/property-grapheme-extend: Likewise.
32896         * modules/unictype/property-grapheme-link: Likewise.
32897         * modules/unictype/property-hex-digit: Likewise.
32898         * modules/unictype/property-hyphen: Likewise.
32899         * modules/unictype/property-id-continue: Likewise.
32900         * modules/unictype/property-id-start: Likewise.
32901         * modules/unictype/property-ideographic: Likewise.
32902         * modules/unictype/property-ids-binary-operator: Likewise.
32903         * modules/unictype/property-ids-trinary-operator: Likewise.
32904         * modules/unictype/property-ignorable-control: Likewise.
32905         * modules/unictype/property-iso-control: Likewise.
32906         * modules/unictype/property-join-control: Likewise.
32907         * modules/unictype/property-left-of-pair: Likewise.
32908         * modules/unictype/property-line-separator: Likewise.
32909         * modules/unictype/property-logical-order-exception: Likewise.
32910         * modules/unictype/property-lowercase: Likewise.
32911         * modules/unictype/property-math: Likewise.
32912         * modules/unictype/property-non-break: Likewise.
32913         * modules/unictype/property-not-a-character: Likewise.
32914         * modules/unictype/property-numeric: Likewise.
32915         * modules/unictype/property-other-alphabetic: Likewise.
32916         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32917         * modules/unictype/property-other-grapheme-extend: Likewise.
32918         * modules/unictype/property-other-id-continue: Likewise.
32919         * modules/unictype/property-other-id-start: Likewise.
32920         * modules/unictype/property-other-lowercase: Likewise.
32921         * modules/unictype/property-other-math: Likewise.
32922         * modules/unictype/property-other-uppercase: Likewise.
32923         * modules/unictype/property-paired-punctuation: Likewise.
32924         * modules/unictype/property-paragraph-separator: Likewise.
32925         * modules/unictype/property-pattern-syntax: Likewise.
32926         * modules/unictype/property-pattern-white-space: Likewise.
32927         * modules/unictype/property-private-use: Likewise.
32928         * modules/unictype/property-punctuation: Likewise.
32929         * modules/unictype/property-quotation-mark: Likewise.
32930         * modules/unictype/property-radical: Likewise.
32931         * modules/unictype/property-sentence-terminal: Likewise.
32932         * modules/unictype/property-soft-dotted: Likewise.
32933         * modules/unictype/property-space: Likewise.
32934         * modules/unictype/property-terminal-punctuation: Likewise.
32935         * modules/unictype/property-test: Likewise.
32936         * modules/unictype/property-titlecase: Likewise.
32937         * modules/unictype/property-unassigned-code-value: Likewise.
32938         * modules/unictype/property-unified-ideograph: Likewise.
32939         * modules/unictype/property-uppercase: Likewise.
32940         * modules/unictype/property-variation-selector: Likewise.
32941         * modules/unictype/property-white-space: Likewise.
32942         * modules/unictype/property-xid-continue: Likewise.
32943         * modules/unictype/property-xid-start: Likewise.
32944         * modules/unictype/property-zero-width: Likewise.
32945         * modules/unictype/scripts: Likewise.
32946         * modules/unictype/syntax-c-ident: Likewise.
32947         * modules/unictype/syntax-c-whitespace: Likewise.
32948         * modules/unictype/syntax-java-ident: Likewise.
32949         * modules/unictype/syntax-java-whitespace: Likewise.
32950         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32951         * modules/unilbrk/u8-width-linebreaks: Likewise.
32952         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32953         * modules/unilbrk/u16-width-linebreaks: Likewise.
32954         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32955         * modules/unilbrk/u32-width-linebreaks: Likewise.
32956         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32957         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32958         * modules/uniname/uniname: Likewise.
32959         * modules/uninorm/canonical-decomposition: Likewise.
32960         * modules/uninorm/composition: Likewise.
32961         * modules/uninorm/decomposing-form: Likewise.
32962         * modules/uninorm/decomposition: Likewise.
32963         * modules/uninorm/filter: Likewise.
32964         * modules/uninorm/nfc: Likewise.
32965         * modules/uninorm/nfd: Likewise.
32966         * modules/uninorm/nfkc: Likewise.
32967         * modules/uninorm/nfkd: Likewise.
32968         * modules/uninorm/u8-normalize: Likewise.
32969         * modules/uninorm/u8-normcmp: Likewise.
32970         * modules/uninorm/u8-normcoll: Likewise.
32971         * modules/uninorm/u8-normxfrm: Likewise.
32972         * modules/uninorm/u16-normalize: Likewise.
32973         * modules/uninorm/u16-normcmp: Likewise.
32974         * modules/uninorm/u16-normcoll: Likewise.
32975         * modules/uninorm/u16-normxfrm: Likewise.
32976         * modules/uninorm/u32-normalize: Likewise.
32977         * modules/uninorm/u32-normcmp: Likewise.
32978         * modules/uninorm/u32-normcoll: Likewise.
32979         * modules/uninorm/u32-normxfrm: Likewise.
32980         * modules/unistdio/u8-asnprintf: Likewise.
32981         * modules/unistdio/u8-asprintf: Likewise.
32982         * modules/unistdio/u8-snprintf: Likewise.
32983         * modules/unistdio/u8-sprintf: Likewise.
32984         * modules/unistdio/u8-u8-asnprintf: Likewise.
32985         * modules/unistdio/u8-u8-asprintf: Likewise.
32986         * modules/unistdio/u8-u8-snprintf: Likewise.
32987         * modules/unistdio/u8-u8-sprintf: Likewise.
32988         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32989         * modules/unistdio/u8-u8-vasprintf: Likewise.
32990         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32991         * modules/unistdio/u8-u8-vsprintf: Likewise.
32992         * modules/unistdio/u8-vasnprintf: Likewise.
32993         * modules/unistdio/u8-vasprintf: Likewise.
32994         * modules/unistdio/u8-vsnprintf: Likewise.
32995         * modules/unistdio/u8-vsprintf: Likewise.
32996         * modules/unistdio/u16-asnprintf: Likewise.
32997         * modules/unistdio/u16-asprintf: Likewise.
32998         * modules/unistdio/u16-snprintf: Likewise.
32999         * modules/unistdio/u16-sprintf: Likewise.
33000         * modules/unistdio/u16-u16-asnprintf: Likewise.
33001         * modules/unistdio/u16-u16-asprintf: Likewise.
33002         * modules/unistdio/u16-u16-snprintf: Likewise.
33003         * modules/unistdio/u16-u16-sprintf: Likewise.
33004         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33005         * modules/unistdio/u16-u16-vasprintf: Likewise.
33006         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33007         * modules/unistdio/u16-u16-vsprintf: Likewise.
33008         * modules/unistdio/u16-vasnprintf: Likewise.
33009         * modules/unistdio/u16-vasprintf: Likewise.
33010         * modules/unistdio/u16-vsnprintf: Likewise.
33011         * modules/unistdio/u16-vsprintf: Likewise.
33012         * modules/unistdio/u32-asnprintf: Likewise.
33013         * modules/unistdio/u32-asprintf: Likewise.
33014         * modules/unistdio/u32-snprintf: Likewise.
33015         * modules/unistdio/u32-sprintf: Likewise.
33016         * modules/unistdio/u32-u32-asnprintf: Likewise.
33017         * modules/unistdio/u32-u32-asprintf: Likewise.
33018         * modules/unistdio/u32-u32-snprintf: Likewise.
33019         * modules/unistdio/u32-u32-sprintf: Likewise.
33020         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33021         * modules/unistdio/u32-u32-vasprintf: Likewise.
33022         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33023         * modules/unistdio/u32-u32-vsprintf: Likewise.
33024         * modules/unistdio/u32-vasnprintf: Likewise.
33025         * modules/unistdio/u32-vasprintf: Likewise.
33026         * modules/unistdio/u32-vsnprintf: Likewise.
33027         * modules/unistdio/u32-vsprintf: Likewise.
33028         * modules/unistdio/ulc-asnprintf: Likewise.
33029         * modules/unistdio/ulc-asprintf: Likewise.
33030         * modules/unistdio/ulc-fprintf: Likewise.
33031         * modules/unistdio/ulc-snprintf: Likewise.
33032         * modules/unistdio/ulc-sprintf: Likewise.
33033         * modules/unistdio/ulc-vasnprintf: Likewise.
33034         * modules/unistdio/ulc-vasprintf: Likewise.
33035         * modules/unistdio/ulc-vfprintf: Likewise.
33036         * modules/unistdio/ulc-vsnprintf: Likewise.
33037         * modules/unistdio/ulc-vsprintf: Likewise.
33038         * modules/unistr/u8-check: Likewise.
33039         * modules/unistr/u8-chr: Likewise.
33040         * modules/unistr/u8-cmp: Likewise.
33041         * modules/unistr/u8-cmp2: Likewise.
33042         * modules/unistr/u8-cpy: Likewise.
33043         * modules/unistr/u8-cpy-alloc: Likewise.
33044         * modules/unistr/u8-endswith: Likewise.
33045         * modules/unistr/u8-mblen: Likewise.
33046         * modules/unistr/u8-mbsnlen: Likewise.
33047         * modules/unistr/u8-mbtouc: Likewise.
33048         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33049         * modules/unistr/u8-mbtoucr: Likewise.
33050         * modules/unistr/u8-move: Likewise.
33051         * modules/unistr/u8-next: Likewise.
33052         * modules/unistr/u8-prev: Likewise.
33053         * modules/unistr/u8-set: Likewise.
33054         * modules/unistr/u8-startswith: Likewise.
33055         * modules/unistr/u8-stpcpy: Likewise.
33056         * modules/unistr/u8-stpncpy: Likewise.
33057         * modules/unistr/u8-strcat: Likewise.
33058         * modules/unistr/u8-strchr: Likewise.
33059         * modules/unistr/u8-strcmp: Likewise.
33060         * modules/unistr/u8-strcoll: Likewise.
33061         * modules/unistr/u8-strcpy: Likewise.
33062         * modules/unistr/u8-strcspn: Likewise.
33063         * modules/unistr/u8-strdup: Likewise.
33064         * modules/unistr/u8-strlen: Likewise.
33065         * modules/unistr/u8-strmblen: Likewise.
33066         * modules/unistr/u8-strmbtouc: Likewise.
33067         * modules/unistr/u8-strncat: Likewise.
33068         * modules/unistr/u8-strncmp: Likewise.
33069         * modules/unistr/u8-strncpy: Likewise.
33070         * modules/unistr/u8-strnlen: Likewise.
33071         * modules/unistr/u8-strpbrk: Likewise.
33072         * modules/unistr/u8-strrchr: Likewise.
33073         * modules/unistr/u8-strspn: Likewise.
33074         * modules/unistr/u8-strstr: Likewise.
33075         * modules/unistr/u8-strtok: Likewise.
33076         * modules/unistr/u8-to-u16: Likewise.
33077         * modules/unistr/u8-to-u32: Likewise.
33078         * modules/unistr/u8-uctomb: Likewise.
33079         * modules/unistr/u16-check: Likewise.
33080         * modules/unistr/u16-chr: Likewise.
33081         * modules/unistr/u16-cmp: Likewise.
33082         * modules/unistr/u16-cmp2: Likewise.
33083         * modules/unistr/u16-cpy: Likewise.
33084         * modules/unistr/u16-cpy-alloc: Likewise.
33085         * modules/unistr/u16-endswith: Likewise.
33086         * modules/unistr/u16-mblen: Likewise.
33087         * modules/unistr/u16-mbsnlen: Likewise.
33088         * modules/unistr/u16-mbtouc: Likewise.
33089         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33090         * modules/unistr/u16-mbtoucr: Likewise.
33091         * modules/unistr/u16-move: Likewise.
33092         * modules/unistr/u16-next: Likewise.
33093         * modules/unistr/u16-prev: Likewise.
33094         * modules/unistr/u16-set: Likewise.
33095         * modules/unistr/u16-startswith: Likewise.
33096         * modules/unistr/u16-stpcpy: Likewise.
33097         * modules/unistr/u16-stpncpy: Likewise.
33098         * modules/unistr/u16-strcat: Likewise.
33099         * modules/unistr/u16-strchr: Likewise.
33100         * modules/unistr/u16-strcmp: Likewise.
33101         * modules/unistr/u16-strcoll: Likewise.
33102         * modules/unistr/u16-strcpy: Likewise.
33103         * modules/unistr/u16-strcspn: Likewise.
33104         * modules/unistr/u16-strdup: Likewise.
33105         * modules/unistr/u16-strlen: Likewise.
33106         * modules/unistr/u16-strmblen: Likewise.
33107         * modules/unistr/u16-strmbtouc: Likewise.
33108         * modules/unistr/u16-strncat: Likewise.
33109         * modules/unistr/u16-strncmp: Likewise.
33110         * modules/unistr/u16-strncpy: Likewise.
33111         * modules/unistr/u16-strnlen: Likewise.
33112         * modules/unistr/u16-strpbrk: Likewise.
33113         * modules/unistr/u16-strrchr: Likewise.
33114         * modules/unistr/u16-strspn: Likewise.
33115         * modules/unistr/u16-strstr: Likewise.
33116         * modules/unistr/u16-strtok: Likewise.
33117         * modules/unistr/u16-to-u32: Likewise.
33118         * modules/unistr/u16-to-u8: Likewise.
33119         * modules/unistr/u16-uctomb: Likewise.
33120         * modules/unistr/u32-check: Likewise.
33121         * modules/unistr/u32-chr: Likewise.
33122         * modules/unistr/u32-cmp: Likewise.
33123         * modules/unistr/u32-cmp2: Likewise.
33124         * modules/unistr/u32-cpy: Likewise.
33125         * modules/unistr/u32-cpy-alloc: Likewise.
33126         * modules/unistr/u32-endswith: Likewise.
33127         * modules/unistr/u32-mblen: Likewise.
33128         * modules/unistr/u32-mbsnlen: Likewise.
33129         * modules/unistr/u32-mbtouc: Likewise.
33130         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33131         * modules/unistr/u32-mbtoucr: Likewise.
33132         * modules/unistr/u32-move: Likewise.
33133         * modules/unistr/u32-next: Likewise.
33134         * modules/unistr/u32-prev: Likewise.
33135         * modules/unistr/u32-set: Likewise.
33136         * modules/unistr/u32-startswith: Likewise.
33137         * modules/unistr/u32-stpcpy: Likewise.
33138         * modules/unistr/u32-stpncpy: Likewise.
33139         * modules/unistr/u32-strcat: Likewise.
33140         * modules/unistr/u32-strchr: Likewise.
33141         * modules/unistr/u32-strcmp: Likewise.
33142         * modules/unistr/u32-strcoll: Likewise.
33143         * modules/unistr/u32-strcpy: Likewise.
33144         * modules/unistr/u32-strcspn: Likewise.
33145         * modules/unistr/u32-strdup: Likewise.
33146         * modules/unistr/u32-strlen: Likewise.
33147         * modules/unistr/u32-strmblen: Likewise.
33148         * modules/unistr/u32-strmbtouc: Likewise.
33149         * modules/unistr/u32-strncat: Likewise.
33150         * modules/unistr/u32-strncmp: Likewise.
33151         * modules/unistr/u32-strncpy: Likewise.
33152         * modules/unistr/u32-strnlen: Likewise.
33153         * modules/unistr/u32-strpbrk: Likewise.
33154         * modules/unistr/u32-strrchr: Likewise.
33155         * modules/unistr/u32-strspn: Likewise.
33156         * modules/unistr/u32-strstr: Likewise.
33157         * modules/unistr/u32-strtok: Likewise.
33158         * modules/unistr/u32-to-u16: Likewise.
33159         * modules/unistr/u32-to-u8: Likewise.
33160         * modules/unistr/u32-uctomb: Likewise.
33161         * modules/uniwbrk/u8-wordbreaks: Likewise.
33162         * modules/uniwbrk/u16-wordbreaks: Likewise.
33163         * modules/uniwbrk/u32-wordbreaks: Likewise.
33164         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33165         * modules/uniwbrk/wordbreak-property: Likewise.
33166         * modules/uniwidth/u8-strwidth: Likewise.
33167         * modules/uniwidth/u8-width: Likewise.
33168         * modules/uniwidth/u16-strwidth: Likewise.
33169         * modules/uniwidth/u16-width: Likewise.
33170         * modules/uniwidth/u32-strwidth: Likewise.
33171         * modules/uniwidth/u32-width: Likewise.
33172         * modules/uniwidth/width: Likewise.
33173         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33174         with $(LIBUNISTRING).
33175         * modules/unicase/ignorable-tests: Likewise.
33176         * modules/unicase/locale-language-tests: Likewise.
33177         * modules/unicase/tolower-tests: Likewise.
33178         * modules/unicase/totitle-tests: Likewise.
33179         * modules/unicase/toupper-tests: Likewise.
33180         * modules/unicase/u8-casecmp-tests: Likewise.
33181         * modules/unicase/u8-casecoll-tests: Likewise.
33182         * modules/unicase/u8-casefold-tests: Likewise.
33183         * modules/unicase/u8-is-cased-tests: Likewise.
33184         * modules/unicase/u8-is-casefolded-tests: Likewise.
33185         * modules/unicase/u8-is-lowercase-tests: Likewise.
33186         * modules/unicase/u8-is-titlecase-tests: Likewise.
33187         * modules/unicase/u8-is-uppercase-tests: Likewise.
33188         * modules/unicase/u8-tolower-tests: Likewise.
33189         * modules/unicase/u8-totitle-tests: Likewise.
33190         * modules/unicase/u8-toupper-tests: Likewise.
33191         * modules/unicase/u16-casecmp-tests: Likewise.
33192         * modules/unicase/u16-casecoll-tests: Likewise.
33193         * modules/unicase/u16-casefold-tests: Likewise.
33194         * modules/unicase/u16-is-cased-tests: Likewise.
33195         * modules/unicase/u16-is-casefolded-tests: Likewise.
33196         * modules/unicase/u16-is-lowercase-tests: Likewise.
33197         * modules/unicase/u16-is-titlecase-tests: Likewise.
33198         * modules/unicase/u16-is-uppercase-tests: Likewise.
33199         * modules/unicase/u16-tolower-tests: Likewise.
33200         * modules/unicase/u16-totitle-tests: Likewise.
33201         * modules/unicase/u16-toupper-tests: Likewise.
33202         * modules/unicase/u32-casecmp-tests: Likewise.
33203         * modules/unicase/u32-casecoll-tests: Likewise.
33204         * modules/unicase/u32-casefold-tests: Likewise.
33205         * modules/unicase/u32-is-cased-tests: Likewise.
33206         * modules/unicase/u32-is-casefolded-tests: Likewise.
33207         * modules/unicase/u32-is-lowercase-tests: Likewise.
33208         * modules/unicase/u32-is-titlecase-tests: Likewise.
33209         * modules/unicase/u32-is-uppercase-tests: Likewise.
33210         * modules/unicase/u32-tolower-tests: Likewise.
33211         * modules/unicase/u32-totitle-tests: Likewise.
33212         * modules/unicase/u32-toupper-tests: Likewise.
33213         * modules/unicase/ulc-casecmp-tests: Likewise.
33214         * modules/unicase/ulc-casecoll-tests: Likewise.
33215         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33216         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33217         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33218         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33219         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33220         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33221         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33222         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33223         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33224         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33225         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33226         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33227         * modules/unictype/bidicategory-byname-tests: Likewise.
33228         * modules/unictype/bidicategory-name-tests: Likewise.
33229         * modules/unictype/bidicategory-of-tests: Likewise.
33230         * modules/unictype/bidicategory-test-tests: Likewise.
33231         * modules/unictype/block-list-tests: Likewise.
33232         * modules/unictype/block-of-tests: Likewise.
33233         * modules/unictype/block-test-tests: Likewise.
33234         * modules/unictype/category-C-tests: Likewise.
33235         * modules/unictype/category-Cc-tests: Likewise.
33236         * modules/unictype/category-Cf-tests: Likewise.
33237         * modules/unictype/category-Cn-tests: Likewise.
33238         * modules/unictype/category-Co-tests: Likewise.
33239         * modules/unictype/category-Cs-tests: Likewise.
33240         * modules/unictype/category-L-tests: Likewise.
33241         * modules/unictype/category-Ll-tests: Likewise.
33242         * modules/unictype/category-Lm-tests: Likewise.
33243         * modules/unictype/category-Lo-tests: Likewise.
33244         * modules/unictype/category-Lt-tests: Likewise.
33245         * modules/unictype/category-Lu-tests: Likewise.
33246         * modules/unictype/category-M-tests: Likewise.
33247         * modules/unictype/category-Mc-tests: Likewise.
33248         * modules/unictype/category-Me-tests: Likewise.
33249         * modules/unictype/category-Mn-tests: Likewise.
33250         * modules/unictype/category-N-tests: Likewise.
33251         * modules/unictype/category-Nd-tests: Likewise.
33252         * modules/unictype/category-Nl-tests: Likewise.
33253         * modules/unictype/category-No-tests: Likewise.
33254         * modules/unictype/category-P-tests: Likewise.
33255         * modules/unictype/category-Pc-tests: Likewise.
33256         * modules/unictype/category-Pd-tests: Likewise.
33257         * modules/unictype/category-Pe-tests: Likewise.
33258         * modules/unictype/category-Pf-tests: Likewise.
33259         * modules/unictype/category-Pi-tests: Likewise.
33260         * modules/unictype/category-Po-tests: Likewise.
33261         * modules/unictype/category-Ps-tests: Likewise.
33262         * modules/unictype/category-S-tests: Likewise.
33263         * modules/unictype/category-Sc-tests: Likewise.
33264         * modules/unictype/category-Sk-tests: Likewise.
33265         * modules/unictype/category-Sm-tests: Likewise.
33266         * modules/unictype/category-So-tests: Likewise.
33267         * modules/unictype/category-Z-tests: Likewise.
33268         * modules/unictype/category-Zl-tests: Likewise.
33269         * modules/unictype/category-Zp-tests: Likewise.
33270         * modules/unictype/category-Zs-tests: Likewise.
33271         * modules/unictype/category-and-not-tests: Likewise.
33272         * modules/unictype/category-and-tests: Likewise.
33273         * modules/unictype/category-byname-tests: Likewise.
33274         * modules/unictype/category-name-tests: Likewise.
33275         * modules/unictype/category-none-tests: Likewise.
33276         * modules/unictype/category-of-tests: Likewise.
33277         * modules/unictype/category-or-tests: Likewise.
33278         * modules/unictype/category-test-withtable-tests: Likewise.
33279         * modules/unictype/combining-class-tests: Likewise.
33280         * modules/unictype/ctype-alnum-tests: Likewise.
33281         * modules/unictype/ctype-alpha-tests: Likewise.
33282         * modules/unictype/ctype-blank-tests: Likewise.
33283         * modules/unictype/ctype-cntrl-tests: Likewise.
33284         * modules/unictype/ctype-digit-tests: Likewise.
33285         * modules/unictype/ctype-graph-tests: Likewise.
33286         * modules/unictype/ctype-lower-tests: Likewise.
33287         * modules/unictype/ctype-print-tests: Likewise.
33288         * modules/unictype/ctype-punct-tests: Likewise.
33289         * modules/unictype/ctype-space-tests: Likewise.
33290         * modules/unictype/ctype-upper-tests: Likewise.
33291         * modules/unictype/ctype-xdigit-tests: Likewise.
33292         * modules/unictype/decimal-digit-tests: Likewise.
33293         * modules/unictype/digit-tests: Likewise.
33294         * modules/unictype/mirror-tests: Likewise.
33295         * modules/unictype/numeric-tests: Likewise.
33296         * modules/unictype/property-alphabetic-tests: Likewise.
33297         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33298         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33299         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33300         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33301         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33302         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33303         * modules/unictype/property-bidi-control-tests: Likewise.
33304         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33305         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33306         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33307         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33308         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33309         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33310         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33311         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33312         * modules/unictype/property-bidi-pdf-tests: Likewise.
33313         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33314         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33315         * modules/unictype/property-byname-tests: Likewise.
33316         * modules/unictype/property-combining-tests: Likewise.
33317         * modules/unictype/property-composite-tests: Likewise.
33318         * modules/unictype/property-currency-symbol-tests: Likewise.
33319         * modules/unictype/property-dash-tests: Likewise.
33320         * modules/unictype/property-decimal-digit-tests: Likewise.
33321         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33322         * modules/unictype/property-deprecated-tests: Likewise.
33323         * modules/unictype/property-diacritic-tests: Likewise.
33324         * modules/unictype/property-extender-tests: Likewise.
33325         * modules/unictype/property-format-control-tests: Likewise.
33326         * modules/unictype/property-grapheme-base-tests: Likewise.
33327         * modules/unictype/property-grapheme-extend-tests: Likewise.
33328         * modules/unictype/property-grapheme-link-tests: Likewise.
33329         * modules/unictype/property-hex-digit-tests: Likewise.
33330         * modules/unictype/property-hyphen-tests: Likewise.
33331         * modules/unictype/property-id-continue-tests: Likewise.
33332         * modules/unictype/property-id-start-tests: Likewise.
33333         * modules/unictype/property-ideographic-tests: Likewise.
33334         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33335         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33336         * modules/unictype/property-ignorable-control-tests: Likewise.
33337         * modules/unictype/property-iso-control-tests: Likewise.
33338         * modules/unictype/property-join-control-tests: Likewise.
33339         * modules/unictype/property-left-of-pair-tests: Likewise.
33340         * modules/unictype/property-line-separator-tests: Likewise.
33341         * modules/unictype/property-logical-order-exception-tests: Likewise.
33342         * modules/unictype/property-lowercase-tests: Likewise.
33343         * modules/unictype/property-math-tests: Likewise.
33344         * modules/unictype/property-non-break-tests: Likewise.
33345         * modules/unictype/property-not-a-character-tests: Likewise.
33346         * modules/unictype/property-numeric-tests: Likewise.
33347         * modules/unictype/property-other-alphabetic-tests: Likewise.
33348         * modules/unictype/property-other-default-ignorable-code-point-tests:
33349         Likewise.
33350         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33351         * modules/unictype/property-other-id-continue-tests: Likewise.
33352         * modules/unictype/property-other-id-start-tests: Likewise.
33353         * modules/unictype/property-other-lowercase-tests: Likewise.
33354         * modules/unictype/property-other-math-tests: Likewise.
33355         * modules/unictype/property-other-uppercase-tests: Likewise.
33356         * modules/unictype/property-paired-punctuation-tests: Likewise.
33357         * modules/unictype/property-paragraph-separator-tests: Likewise.
33358         * modules/unictype/property-pattern-syntax-tests: Likewise.
33359         * modules/unictype/property-pattern-white-space-tests: Likewise.
33360         * modules/unictype/property-private-use-tests: Likewise.
33361         * modules/unictype/property-punctuation-tests: Likewise.
33362         * modules/unictype/property-quotation-mark-tests: Likewise.
33363         * modules/unictype/property-radical-tests: Likewise.
33364         * modules/unictype/property-sentence-terminal-tests: Likewise.
33365         * modules/unictype/property-soft-dotted-tests: Likewise.
33366         * modules/unictype/property-space-tests: Likewise.
33367         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33368         * modules/unictype/property-test-tests: Likewise.
33369         * modules/unictype/property-titlecase-tests: Likewise.
33370         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33371         * modules/unictype/property-unified-ideograph-tests: Likewise.
33372         * modules/unictype/property-uppercase-tests: Likewise.
33373         * modules/unictype/property-variation-selector-tests: Likewise.
33374         * modules/unictype/property-white-space-tests: Likewise.
33375         * modules/unictype/property-xid-continue-tests: Likewise.
33376         * modules/unictype/property-xid-start-tests: Likewise.
33377         * modules/unictype/property-zero-width-tests: Likewise.
33378         * modules/unictype/scripts-tests: Likewise.
33379         * modules/unictype/syntax-c-ident-tests: Likewise.
33380         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33381         * modules/unictype/syntax-java-ident-tests: Likewise.
33382         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33383         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33384         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33385         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33386         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33387         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33388         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33389         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33390         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33391         * modules/uniname/uniname-tests: Likewise.
33392         * modules/uninorm/canonical-decomposition-tests: Likewise.
33393         * modules/uninorm/compat-decomposition-tests: Likewise.
33394         * modules/uninorm/composition-tests: Likewise.
33395         * modules/uninorm/decomposing-form-tests: Likewise.
33396         * modules/uninorm/decomposition-tests: Likewise.
33397         * modules/uninorm/filter-tests: Likewise.
33398         * modules/uninorm/nfc-tests: Likewise.
33399         * modules/uninorm/nfd-tests: Likewise.
33400         * modules/uninorm/nfkc-tests: Likewise.
33401         * modules/uninorm/nfkd-tests: Likewise.
33402         * modules/uninorm/u8-normcmp-tests: Likewise.
33403         * modules/uninorm/u8-normcoll-tests: Likewise.
33404         * modules/uninorm/u16-normcmp-tests: Likewise.
33405         * modules/uninorm/u16-normcoll-tests: Likewise.
33406         * modules/uninorm/u32-normcmp-tests: Likewise.
33407         * modules/uninorm/u32-normcoll-tests: Likewise.
33408         * modules/unistdio/u8-asnprintf-tests: Likewise.
33409         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33410         * modules/unistdio/u8-vasprintf-tests: Likewise.
33411         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33412         * modules/unistdio/u8-vsprintf-tests: Likewise.
33413         * modules/unistdio/u16-asnprintf-tests: Likewise.
33414         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33415         * modules/unistdio/u16-vasprintf-tests: Likewise.
33416         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33417         * modules/unistdio/u16-vsprintf-tests: Likewise.
33418         * modules/unistdio/u32-asnprintf-tests: Likewise.
33419         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33420         * modules/unistdio/u32-vasprintf-tests: Likewise.
33421         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33422         * modules/unistdio/u32-vsprintf-tests: Likewise.
33423         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33424         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33425         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33426         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33427         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33428         * modules/unistr/u8-check-tests: Likewise.
33429         * modules/unistr/u8-chr-tests: Likewise.
33430         * modules/unistr/u8-cmp-tests: Likewise.
33431         * modules/unistr/u8-cmp2-tests: Likewise.
33432         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33433         * modules/unistr/u8-cpy-tests: Likewise.
33434         * modules/unistr/u8-mblen-tests: Likewise.
33435         * modules/unistr/u8-mbsnlen-tests: Likewise.
33436         * modules/unistr/u8-mbtouc-tests: Likewise.
33437         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33438         * modules/unistr/u8-mbtoucr-tests: Likewise.
33439         * modules/unistr/u8-move-tests: Likewise.
33440         * modules/unistr/u8-next-tests: Likewise.
33441         * modules/unistr/u8-prev-tests: Likewise.
33442         * modules/unistr/u8-set-tests: Likewise.
33443         * modules/unistr/u8-stpcpy-tests: Likewise.
33444         * modules/unistr/u8-stpncpy-tests: Likewise.
33445         * modules/unistr/u8-strcat-tests: Likewise.
33446         * modules/unistr/u8-strcmp-tests: Likewise.
33447         * modules/unistr/u8-strcoll-tests: Likewise.
33448         * modules/unistr/u8-strcpy-tests: Likewise.
33449         * modules/unistr/u8-strdup-tests: Likewise.
33450         * modules/unistr/u8-strlen-tests: Likewise.
33451         * modules/unistr/u8-strmblen-tests: Likewise.
33452         * modules/unistr/u8-strmbtouc-tests: Likewise.
33453         * modules/unistr/u8-strncat-tests: Likewise.
33454         * modules/unistr/u8-strncmp-tests: Likewise.
33455         * modules/unistr/u8-strncpy-tests: Likewise.
33456         * modules/unistr/u8-strnlen-tests: Likewise.
33457         * modules/unistr/u8-to-u16-tests: Likewise.
33458         * modules/unistr/u8-to-u32-tests: Likewise.
33459         * modules/unistr/u8-uctomb-tests: Likewise.
33460         * modules/unistr/u16-check-tests: Likewise.
33461         * modules/unistr/u16-chr-tests: Likewise.
33462         * modules/unistr/u16-cmp-tests: Likewise.
33463         * modules/unistr/u16-cmp2-tests: Likewise.
33464         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33465         * modules/unistr/u16-cpy-tests: Likewise.
33466         * modules/unistr/u16-mblen-tests: Likewise.
33467         * modules/unistr/u16-mbsnlen-tests: Likewise.
33468         * modules/unistr/u16-mbtouc-tests: Likewise.
33469         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33470         * modules/unistr/u16-mbtoucr-tests: Likewise.
33471         * modules/unistr/u16-move-tests: Likewise.
33472         * modules/unistr/u16-next-tests: Likewise.
33473         * modules/unistr/u16-prev-tests: Likewise.
33474         * modules/unistr/u16-set-tests: Likewise.
33475         * modules/unistr/u16-stpcpy-tests: Likewise.
33476         * modules/unistr/u16-stpncpy-tests: Likewise.
33477         * modules/unistr/u16-strcat-tests: Likewise.
33478         * modules/unistr/u16-strcmp-tests: Likewise.
33479         * modules/unistr/u16-strcoll-tests: Likewise.
33480         * modules/unistr/u16-strcpy-tests: Likewise.
33481         * modules/unistr/u16-strdup-tests: Likewise.
33482         * modules/unistr/u16-strlen-tests: Likewise.
33483         * modules/unistr/u16-strmblen-tests: Likewise.
33484         * modules/unistr/u16-strmbtouc-tests: Likewise.
33485         * modules/unistr/u16-strncat-tests: Likewise.
33486         * modules/unistr/u16-strncmp-tests: Likewise.
33487         * modules/unistr/u16-strncpy-tests: Likewise.
33488         * modules/unistr/u16-strnlen-tests: Likewise.
33489         * modules/unistr/u16-to-u32-tests: Likewise.
33490         * modules/unistr/u16-to-u8-tests: Likewise.
33491         * modules/unistr/u16-uctomb-tests: Likewise.
33492         * modules/unistr/u32-check-tests: Likewise.
33493         * modules/unistr/u32-chr-tests: Likewise.
33494         * modules/unistr/u32-cmp-tests: Likewise.
33495         * modules/unistr/u32-cmp2-tests: Likewise.
33496         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33497         * modules/unistr/u32-cpy-tests: Likewise.
33498         * modules/unistr/u32-mblen-tests: Likewise.
33499         * modules/unistr/u32-mbsnlen-tests: Likewise.
33500         * modules/unistr/u32-mbtouc-tests: Likewise.
33501         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33502         * modules/unistr/u32-mbtoucr-tests: Likewise.
33503         * modules/unistr/u32-move-tests: Likewise.
33504         * modules/unistr/u32-next-tests: Likewise.
33505         * modules/unistr/u32-prev-tests: Likewise.
33506         * modules/unistr/u32-set-tests: Likewise.
33507         * modules/unistr/u32-stpcpy-tests: Likewise.
33508         * modules/unistr/u32-stpncpy-tests: Likewise.
33509         * modules/unistr/u32-strcat-tests: Likewise.
33510         * modules/unistr/u32-strcmp-tests: Likewise.
33511         * modules/unistr/u32-strcoll-tests: Likewise.
33512         * modules/unistr/u32-strcpy-tests: Likewise.
33513         * modules/unistr/u32-strdup-tests: Likewise.
33514         * modules/unistr/u32-strlen-tests: Likewise.
33515         * modules/unistr/u32-strmblen-tests: Likewise.
33516         * modules/unistr/u32-strmbtouc-tests: Likewise.
33517         * modules/unistr/u32-strncat-tests: Likewise.
33518         * modules/unistr/u32-strncmp-tests: Likewise.
33519         * modules/unistr/u32-strncpy-tests: Likewise.
33520         * modules/unistr/u32-strnlen-tests: Likewise.
33521         * modules/unistr/u32-to-u16-tests: Likewise.
33522         * modules/unistr/u32-to-u8-tests: Likewise.
33523         * modules/unistr/u32-uctomb-tests: Likewise.
33524         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33525         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33526         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33527         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33528         * modules/uniwidth/u8-strwidth-tests: Likewise.
33529         * modules/uniwidth/u8-width-tests: Likewise.
33530         * modules/uniwidth/u16-strwidth-tests: Likewise.
33531         * modules/uniwidth/u16-width-tests: Likewise.
33532         * modules/uniwidth/u32-strwidth-tests: Likewise.
33533         * modules/uniwidth/u32-width-tests: Likewise.
33534         * modules/uniwidth/width-tests: Likewise.
33535
33536 2010-05-18  Richard Jones  <rjones@redhat.com>
33537
33538         doc: users.txt: list hivex
33539         * users.txt: Add hivex.
33540
33541 2010-05-18  Richard Jones  <rjones@redhat.com>
33542
33543         doc: users.txt: list febootstrap
33544         * users.txt: Add febootstrap.
33545
33546 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33547
33548         bootstrap: fix an error when gnulib is not used as a git submodule
33549         * build-aux/bootstrap (gnulib_path): If its length is zero then
33550         assign "gnulib" to it.
33551         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33552
33553 2010-05-16  Bruno Haible  <bruno@clisp.org>
33554
33555         Avoid autoconf warnings about AM_ICONV.
33556         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33557         2.64.
33558
33559 2010-05-16  Bruno Haible  <bruno@clisp.org>
33560
33561         absolute-header: Make the macro usable in more situations.
33562         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33563         from gl_ABSOLUTE_HEADER.
33564         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33565
33566 2010-05-16  James Youngman  <jay@gnu.org>
33567
33568         doc: update users.txt
33569         * users.txt: Add CSSC.
33570
33571 2010-05-16  Jim Meyering  <meyering@redhat.com>
33572
33573         init.sh: fix an error in the previous change; add more comments
33574         * tests/init.sh: Compare exit code in loop against 9, not 2.
33575         Patch by Bruno Haible.
33576         Make the two tests more similar by adding an empty "then" clause.
33577         Add comments.
33578
33579         init.sh: avoid unnecessary shell re-exec
33580         * tests/init.sh: Improve the re-exec-required check to first test the
33581         current shell.  If it passes the test, do not search for a shell that
33582         does pass, and do not re-exec.  This test is particularly contorted to
33583         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33584         of $(...) evokes a syntax error and causes immediate shell exit with
33585         status 2.  Bruno Haible reported that the re-exec made it impossible
33586         to single-step through any init.sh-using script.
33587
33588 2010-05-16  Bruno Haible  <bruno@clisp.org>
33589
33590         Fix collision between gnulib's and libintl's printf replacements.
33591         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33592         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33593         (printf): When using GNU C, map the __printf__ function to rpl_printf
33594         via __asm__. When not using GNU C, define rpl_printf instead of
33595         __printf__.
33596         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33597         commit.
33598         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33599         commit.
33600         * m4/asm-underscore.m4: New file.
33601         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33602         * modules/stdio (Files): Add m4/asm-underscore.m4.
33603         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33604         Reported by Ben Pfaff.
33605
33606 2010-05-16  Bruno Haible  <bruno@clisp.org>
33607
33608         verify: Avoid skipping the test on openSUSE 11.0.
33609         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33610
33611 2010-05-13  Bruno Haible  <bruno@clisp.org>
33612
33613         Avoid useless warnings from G++.
33614         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33615         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33616         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33617
33618 2010-05-11  Jim Meyering  <meyering@redhat.com>
33619
33620         maint.mk: tweak preceding change
33621         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33622         regexps tighter by anchoring at EOL, and make the new group "shy"
33623         for slightly decreased overhead.
33624
33625 2010-05-11  Eric Blake  <eblake@redhat.com>
33626
33627         maint.mk: gnulib doesn't guarantee NSIG
33628         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33629
33630 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33631
33632         test-pwrite.c: Remove unused variable declaration.
33633         * tests/test-pwrite.c (main): Remove read_buf declaration.
33634
33635         Remove useless test-pwrite.sh file.
33636         * tests/test-pwrite.sh: Delete file.
33637         * modules/pwrite-tests: Remove references.
33638         Reported by Bruno Haible.
33639
33640 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33641
33642         init.sh: fix a typo
33643         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33644
33645 2010-05-10  Jim Meyering  <meyering@redhat.com>
33646
33647         maint.mk: avoid using a temporary file in the always-defined-macros check
33648         * top/maint.mk (.re-defmac): Remove rule.
33649         (gl_trap_): Remove definition.
33650         (sc_prohibit_always-defined_macros): Rewrite not to create and
33651         depend on a temporary file.  Instead, depend on GNU grep's ability
33652         to read a list of regular expressions from stdin when given "-f -".
33653
33654 2010-05-09  Bruno Haible  <bruno@clisp.org>
33655
33656         Update to GNU gettext 0.18, part 1.
33657         * m4/gettext.m4: Update to GNU gettext 0.18.
33658         * m4/intl.m4: Likewise.
33659         * m4/po.m4: Likewise.
33660         * modules/gettext (Files): Add m4/fcntl-o.m4.
33661         (configure.ac): Require gettext infrastructure from version 0.18.
33662
33663 2010-05-09  Jim Meyering  <meyering@redhat.com>
33664
33665         init.sh: enable MALLOC_PERTURB_
33666         * tests/init.sh: Enable glibc's malloc-perturbing option.
33667
33668         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33669         With my recent change in init.sh from the two-line form:
33670             -#   : ${srcdir=.}
33671             -#   . "$srcdir/init.sh"; path_prepend_ .
33672             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33673         I noticed that using the one-line form would cause this test
33674         to fail with a false-positive, or to stop working altogether,
33675         depending on whether help-version changed or all the tests did.
33676         * top/maint.mk (_hv_regex): Remove this definition.
33677         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33678         (_hv_regex_strong): Use a stronger regex to check for conformance.
33679         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33680         Give a separate diagnostic for lack of conforming use.
33681
33682         maint.mk: prohibit definition of symbols defined by gnulib
33683         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33684         definition of symbols defined by gnulib.
33685
33686 2010-05-09  Bruno Haible  <bruno@clisp.org>
33687
33688         acl: Avoid test failure on Cygwin-hosted mingw.
33689         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33690
33691 2010-05-09  Bruno Haible  <bruno@clisp.org>
33692
33693         error: Use system's fcntl function.
33694         * lib/error.c (fcntl): Undefine.
33695
33696 2010-05-09  Jim Meyering  <meyering@redhat.com>
33697
33698         verify: adjust formatting to be more consistent
33699         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33700         argument-list '('s, and after one comma.
33701
33702 2010-05-09  Bruno Haible  <bruno@clisp.org>
33703
33704         error: More reliable output on mingw.
33705         * lib/error.c: Include <windows.h>.
33706         (is_open): New function.
33707         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33708         defined.
33709
33710 2010-05-09  Bruno Haible  <bruno@clisp.org>
33711
33712         vasnprintf: Fix syntax errors in libintl build on mingw.
33713         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33714         pad_ourselves and prec_ourselves after use.
33715
33716 2010-05-08  Bruno Haible  <bruno@clisp.org>
33717
33718         * lib/config.charset: Update comments for Cygwin 1.7.
33719         * lib/localcharset.c: Likewise.
33720
33721 2010-05-07  Jim Meyering  <meyering@redhat.com>
33722
33723         init.sh: improve comments
33724         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33725         . "${srcdir=.}/init.sh"; path_prepend_ .
33726         Add a note about path_prepend_ and the alternative of using
33727         TESTS_ENVIRONMENT.
33728
33729 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33730
33731         exclude: Unescape hashed patterns in wildcard mode.
33732         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33733         to the hash list.
33734         * tests/test-exclude8.sh: New test case.
33735         * modules/exclude-tests: Add new test.
33736
33737 2010-05-05  Eric Blake  <eblake@redhat.com>
33738
33739         verify: automate tests
33740         * modules/verify-tests: New module.
33741         * tests/test-verify.sh: New file.
33742         * tests/test-verify.c: Guard each negative test with a unique id.
33743         Also avoid warning about unused left hand of comma expressions.
33744
33745 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33746
33747         Further improvements to verify.h, suggested by Eric Blake.
33748         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33749         the GL_* versions, to avoid collision with OpenGL.
33750         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33751         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33752         than testing merely whether it's defined.
33753
33754         Modify verify.h to pacify gcc -Wredundant_decls.
33755         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33756         These use the prefix "GL_" since they're likely to be useful elsewhere.
33757         We may need to break them out into a different .h file.
33758         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33759         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33760         of verify_function__.
33761
33762 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33763
33764         Tests for module pwrite.
33765         * modules/pwrite-tests: New file.
33766         * tests/test-pwrite.sh: New file.
33767         * tests/test-pwrite.c: New file.
33768
33769         New module pwrite.
33770         * lib/unistd.in.h (pwrite): New declaration.
33771         * lib/pwrite.c: New file, from glibc with modifications.
33772         * m4/pwrite.m4: New file.
33773         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33774         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33775         REPLACE_PWRITE.
33776         * modules/pwrite: New file.
33777         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33778         REPLACE_PWRITE.
33779         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33780         * doc/posix-functions/pwrite.texi: Mention the new module.
33781
33782 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33783
33784         pread: Update documentation.
33785         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33786
33787 2010-05-04  Eric Blake  <eblake@redhat.com>
33788
33789         docs: update cygwin progress
33790         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33791         this bug.
33792         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33793         Added in cygwin 1.7.2.
33794         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33795         Likewise.
33796         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33797         Likewise.
33798         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33799         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33800         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33801         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33802         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33803         Mention nproc module.
33804         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33805         bug in cygwin 1.7.5 addition.
33806         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33807         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33808         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33809         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33810         1.7.5.
33811         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33812         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33813         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33814         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33815         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33816         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33817         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33818         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33819         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33820         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33821         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33822         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33823         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33824         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33825         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33826         Likewise.
33827         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33828         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33829         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33830         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33831         Likewise.
33832         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33833         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33834         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33835         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33836         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33837         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33838         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33839         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33840         Likewise.
33841         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33842         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33843         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33844         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33845         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33846         Likewise.
33847         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33848         Likewise.
33849         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33850         Likewise.
33851         * doc/glibc-functions/xdrrec_endofrecord.texi
33852         (xdrrec_endofrecord): Likewise.
33853         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33854         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33855         Likewise.
33856         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33857         Likewise.
33858
33859 2010-05-04  Jim Meyering  <meyering@redhat.com>
33860
33861         gendocs.sh: make its "-s FILE" option more useful
33862         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33863         $PACKAGE to reflect the probably-different basename of "FILE".
33864
33865 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33866
33867         bootstrap: don't ignore download_po_files failure
33868         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33869         failure.
33870
33871 2010-05-03  Jim Meyering  <meyering@redhat.com>
33872
33873         maint.mk: allow to pass options to gendocs.sh
33874         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33875         (gendocs_options_): New overridable variable.
33876
33877         gnu-web-doc-update: don't ignore configure or build failure
33878         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33879
33880         announce-gen: backslash-escape '@'s in --help output
33881         * build-aux/announce-gen: Fix syntax errors.
33882
33883         maint.mk, announce-gen: allow project-specific announcement mail headers
33884         * top/maint.mk (translation_project_): Define default.
33885         (announcement_Cc_, announcement_mail_headers_): Likewise.
33886         (announcement): Invoke announce-gen with new --mail-headers option.
33887         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33888
33889         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33890         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33891         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33892         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33893         line in the "err2" output file when running "make check" in verbose
33894         mode (i.e., with set -x enabled).
33895
33896 2010-05-03  Bruno Haible  <bruno@clisp.org>
33897
33898         wctob: Fix for weird platforms.
33899         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33900         argument value.
33901
33902 2010-05-03  Jim Meyering  <meyering@redhat.com>
33903
33904         maint.mk: prohibit unwarranted use of <strings.h>
33905         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33906         strings.h in a file that does not also use strcasecmp, strncasecmp,
33907         ffs or ffsll.
33908
33909         maint.mk: remove obsolete comments
33910         * top/maint.mk: Remove stale, commented-out rules.
33911
33912 2010-05-02  Bruno Haible  <bruno@clisp.org>
33913
33914         wcwidth: Declare also when it's aliased.
33915         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33916         macro.
33917
33918 2010-05-02  Bruno Haible  <bruno@clisp.org>
33919
33920         Fix regression from 2010-04-25.
33921         * gnulib-tool (func_modules_transitive_closure): Check the status of
33922         all modules, not only of the tests that are of the form foo-tests where
33923         foo is a module.
33924
33925 2010-05-02  Bruno Haible  <bruno@clisp.org>
33926
33927         wctob: Work around nasty Cygwin 1.7.2 bug.
33928         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33929         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33930
33931 2010-05-01  Bruno Haible  <bruno@clisp.org>
33932
33933         fpurge: Sharper test.
33934         * tests/test-fpurge.c (main): Add one more ftell check.
33935         * modules/fpurge-tests (Depends-on): Add ftell.
33936         Suggested by Eric Blake.
33937
33938 2010-05-01  Bruno Haible  <bruno@clisp.org>
33939
33940         ftello: Another test.
33941         * tests/test-ftello3.c: New file.
33942         * modules/ftello-tests (Files): Add it.
33943         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33944         MOSTLYCLEANFILES.
33945
33946         ftell: Another test.
33947         * tests/test-ftell3.c: New file.
33948         * modules/ftell-tests (Files): Add it.
33949         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33950         MOSTLYCLEANFILES.
33951
33952 2010-05-01  Bruno Haible  <bruno@clisp.org>
33953
33954         ftell, ftello: Work around Solaris bug.
33955         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33956         * lib/ftello.c: Include stdio-impl.h.
33957         (ftello): On Solaris, when _IOWRT is set, compute the result without
33958         looking at _IOREAD.
33959         * modules/ftello (Files): Add lib/stdio-impl.h.
33960         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33961         * doc/posix-functions/ftello.texi: Likewise.
33962         Reported by Eric Blake.
33963
33964 2010-05-01  Bruno Haible  <bruno@clisp.org>
33965
33966         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33967         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33968         the _IOWRT flag is also set.
33969
33970 2010-05-01  Bruno Haible  <bruno@clisp.org>
33971
33972         Fix doc about a HP-UX stdio bug.
33973         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33974         * doc/posix-functions/ftello.texi: Likewise.
33975
33976 2010-05-01  Bruno Haible  <bruno@clisp.org>
33977
33978         lseek test: Fix failure on Solaris.
33979         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33980         output.
33981
33982 2010-04-30  Jim Meyering  <meyering@redhat.com>
33983
33984         bootstrap: don't ignore failure to generate po*/Makevars
33985         * build-aux/bootstrap (with_gettext): Don't ignore failure
33986         to create po/Makevars or runtime-po/Makevars.
33987
33988 2010-04-29  Eric Blake  <eblake@redhat.com>
33989
33990         headers: relax license to LGPLv2+
33991         * modules/fcntl-h (License): Relax license.
33992         * modules/getopt-posix (License): Likewise.
33993         * modules/locale (License): Likewise.
33994         * modules/math (License): Likewise.
33995         * modules/pty (License): Likewise.
33996         * modules/sched (License): Likewise.
33997         * modules/search (License): Likewise.
33998         * modules/spawn (License): Likewise.
33999         * modules/stdarg (License): Likewise.
34000         * modules/sysexits (License): Likewise.
34001
34002 2010-04-29  Jim Meyering  <meyering@redhat.com>
34003
34004         inttypes: relax license to LGPLv2+
34005         * modules/inttypes (License): Relax license.
34006
34007 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34008
34009         * top/maint.mk (indent): Run twice to produce idempotent results.
34010
34011 2010-04-28  Bruno Haible  <bruno@clisp.org>
34012
34013         getdate: Generate getdate.c in the source directory.
34014         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34015         MOSTLYCLEANFILES.
34016         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34017
34018 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34019
34020         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34021         is not declared as a const *; avoid warnings in that case.
34022
34023 2010-04-28  Eric Blake  <eblake@redhat.com>
34024
34025         canonicalize-lgpl: avoid compiler warning
34026         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34027         declaration' / 'extraneous semicolon' warning with some compilers.
34028         Reported by Andreas Gruenbacher.
34029
34030 2010-04-28  Jim Meyering  <meyering@redhat.com>
34031
34032         init.sh: ensure a more reliable exit status when exiting via trap
34033         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34034         Inspired by patches from Dmitry V. Levin.
34035         Also trap on signal 3 (SIGQUIT).
34036
34037 2010-04-27  Bruno Haible  <bruno@clisp.org>
34038
34039         Update doc about utimes().
34040         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34041         'utimens' module.
34042         Reported by Andreas Gruenbacher <agruen@suse.de>.
34043
34044 2010-04-27  Eric Blake  <eblake@redhat.com>
34045
34046         full-read, full-write: relax license
34047         * modules/full-read (License): Drop to LGPLv2+.
34048         * modules/full-write (License): Likewise.
34049         * modules/safe-read (License): Likewise.
34050         * modules/safe-write (License): Likewise.
34051
34052         pthread: mention library for linking
34053         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34054
34055 2010-04-27  Jim Meyering  <meyering@redhat.com>
34056
34057         maint.mk: fix a bug introduced in last change
34058         * top/maint.mk (gl_assured_headers_): Now that all names are on
34059         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34060         is not anchored to end of word, it should be adequate.
34061
34062         maint.mk: avoid side-effect in latest syntax-check
34063         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34064         to run commands via $(shell...), and hence to incur cost only when
34065         the new rule is actually run.
34066
34067         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34068         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34069         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34070         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34071         (gl_assured_headers_, az_, AZ_): Define.
34072         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34073
34074 2010-04-26  Jim Meyering  <jim@meyering.net>
34075             Bruno Haible  <bruno@clisp.org>
34076
34077         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34078         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34079         Prompted by an exchange with Gilles Espinasse.
34080
34081 2010-04-26  Jim Meyering  <meyering@redhat.com>
34082
34083         git-version-gen: aesthetic tweak
34084         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34085         so that the command remains on a single line.
34086
34087 2010-04-26  Eric Blake  <eblake@redhat.com>
34088
34089         git-version-gen: allow use on EBCDIC hosts
34090         * build-aux/git-version-gen (dirty): Use literal rather than tying
34091         ourselves to ascii.
34092         Reported by Steve Goetze.
34093
34094 2010-04-25  Bruno Haible  <bruno@clisp.org>
34095
34096         netdb: Add support for GNULIB_POSIXCHECK.
34097         * lib/netdb.in.h: Include warn-on-use.h.
34098         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34099         functions are used when GNULIB_POSIXCHECK is defined and the
34100         getaddrinfo module is not in use.
34101         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34102         freeaddrinfo, gai_strerror, getnameinfo are declared.
34103         * modules/netdb (Depends-on): Add warn-on-use.
34104         (Makefile.am): Include warn-on-use.h in netdb.h.
34105
34106 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34107
34108         build: avoid "make check" failure without .git/ directory
34109         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34110         there is no .git/ directory.
34111
34112 2010-04-25  Bruno Haible  <bruno@clisp.org>
34113
34114         ptsname: Fix misuse of ttyname_r.
34115         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34116         of errno.
34117
34118 2010-04-25  Bruno Haible  <bruno@clisp.org>
34119
34120         ttyname_r: Make it work on Solaris 10.
34121         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34122         if the system function has the POSIX declaration. Test whether the
34123         function fails if the buffer is less than 128 bytes large.
34124         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34125         system's ttyname_r function. Provide a reasonably large buffer.
34126         * modules/ttyname_r (Depends-on): Add extensions.
34127         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34128
34129 2010-04-25  Bruno Haible  <bruno@clisp.org>
34130
34131         Use the 'extensions' module for some more functions on Solaris.
34132         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34133         module.
34134         * doc/posix-functions/ctime_r.texi: Likewise.
34135         * doc/posix-functions/getgrgid_r.texi: Likewise.
34136         * doc/posix-functions/getgrnam_r.texi: Likewise.
34137         * doc/posix-functions/getpwnam_r.texi: Likewise.
34138         * doc/posix-functions/getpwuid_r.texi: Likewise.
34139         * doc/posix-functions/readdir_r.texi: Likewise.
34140         * doc/posix-functions/sigwait.texi: Likewise.
34141         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34142         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34143
34144 2010-04-25  Bruno Haible  <bruno@clisp.org>
34145
34146         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34147         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34148         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34149         * lib/ttyname_r.c: Include <limits.h>.
34150         (ttyname_r): Define using the system's ttyname_r function, if it exists
34151         and not on Solaris.
34152         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34153         set.
34154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34155         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34156         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34157         Reported by Simon Josefsson.
34158
34159 2010-04-25  Bruno Haible  <bruno@clisp.org>
34160
34161         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34162         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34163         * doc/posix-functions/ctime_r.texi: Likewise.
34164         * doc/posix-functions/getgrgid_r.texi: Likewise.
34165         * doc/posix-functions/getgrnam_r.texi: Likewise.
34166         * doc/posix-functions/getlogin_r.texi: Likewise.
34167         * doc/posix-functions/getpwnam_r.texi: Likewise.
34168         * doc/posix-functions/getpwuid_r.texi: Likewise.
34169         * doc/posix-functions/readdir_r.texi: Likewise.
34170         * doc/posix-functions/sigwait.texi: Likewise.
34171         * doc/posix-functions/ttyname_r.texi: Likewise.
34172         Reported by Simon Josefsson.
34173
34174 2010-04-25  Bruno Haible  <bruno@clisp.org>
34175
34176         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34177         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34178         also to --create-testdir.
34179         (func_acceptable): Don't consider the status of *-tests modules here.
34180         (func_modules_transitive_closure): Consider it here, before including a
34181         test module.
34182         (func_import, func_create_testdir): Set inc_all_direct_tests,
34183         inc_all_indirect_tests.
34184         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34185         --create-testdir and --create-megatestdir.
34186
34187 2010-04-25  Bruno Haible  <bruno@clisp.org>
34188
34189         gnulib-tool: Add --without-*-tests options.
34190         * gnulib-tool (func_usage): Document the --without-*-tests options.
34191         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34192         excl_unportable_tests): New variables.
34193         Fail if they are specified with --import or --update.
34194         (func_acceptable): Respect the excl_*_tests variables.
34195         (func_import): Set the excl_*_tests variables to empty.
34196
34197 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34198             Bruno Haible  <bruno@clisp.org>
34199
34200         Work around a MacOS X 10.4 bug with openpty.
34201         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34202         * tests/test-openpty.c (main): Close the master side explicitly.
34203
34204 2010-04-25  Bruno Haible  <bruno@clisp.org>
34205
34206         strnlen: Fix a C++ test error on MacOS X and Solaris.
34207         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34208         the function is not declared.
34209         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34210         Simon Josefsson.
34211
34212 2010-04-24  Bruno Haible  <bruno@clisp.org>
34213
34214         Avoid a gcc warning.
34215         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34216         of correct type for %08lx directive.
34217         Reported by Eric Blake.
34218
34219 2010-04-24  Bruno Haible  <bruno@clisp.org>
34220
34221         vasnprintf: Correct errno value in case of out-of-memory.
34222         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34223         or sprintf. Use the errno value from SNPRINTF or sprintf.
34224         Reported by Ian Beckwith <ianb@erislabs.net>.
34225
34226 2010-04-24  Bruno Haible  <bruno@clisp.org>
34227
34228         ansi-c++-opt: Find correct compiler when cross-compiling.
34229         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34230         AC_CHECK_PROGS.
34231         Reported by Simon Josefsson.
34232
34233 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34234
34235         vc-list-files: Add support for subversion
34236         * build-aux/vc-list-files: Use "svn list" to generate the list of
34237         files controlled by subversion.
34238
34239 2010-04-23  Jim Meyering  <meyering@redhat.com>
34240
34241         vc-list-files tests: convert to use init.sh
34242         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34243         path_prepend_.
34244         Use Exit, not exit.
34245         Use skip_ rather than open coding it.
34246         Remove trap set-up and compare definitions.
34247         * tests/test-vc-list-files-git.sh: Likewise.
34248         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34249
34250 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34251
34252         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34253         backup files.
34254
34255 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34256
34257         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34258
34259 2010-04-20  Eric Blake  <eblake@redhat.com>
34260
34261         tests: be robust to ignored SIGPIPE
34262         * tests/test-select-in.sh: Consume all output.
34263         * tests/test-lseek.sh: Check correct exit status, while avoiding
34264         EPIPE.
34265
34266 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34267             Bruno Haible  <bruno@clisp.org>
34268
34269         visibility: Don't use -fvisibility if it leads to a warning.
34270         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34271         yes, don't pretend that visibility works if it leads to a warning.
34272         Reported by Mike Gran <spk121@yahoo.com>.
34273
34274 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34275
34276         * build-aux/bootstrap: Use "git -h" for testing for supported options
34277         instead of "git --help".  The short-form option only shows a summary,
34278         and doesn't layout the full man page.  Grep for the full option name
34279         in the summary, too.
34280
34281 2010-04-19  Bruno Haible  <bruno@clisp.org>
34282
34283         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34284         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34285         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34286         mention of RELOCATABLE_STRIP.
34287         Reported by Sylvain Beucler <beuc@beuc.net>.
34288
34289 2010-04-19  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/diffseq.h: Fix typo in comment.
34292         Reported by Eric Blake.
34293
34294 2010-04-19  Bruno Haible  <bruno@clisp.org>
34295
34296         ioctl: Move autoconf macro to a .m4 file.
34297         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34298         * modules/ioctl (Files): Add it.
34299         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34300         Reported by Ian Beckwith <ianb@erislabs.net>.
34301
34302 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34303             Bruno Haible  <bruno@clisp.org>
34304
34305         diffseq: Accommodate use-case with abstract arrays.
34306         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34307         is not defined.
34308         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34309         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34310
34311 2010-04-18  Bruno Haible  <bruno@clisp.org>
34312
34313         * doc/posix-headers/stdbool.texi: More precise wording.
34314
34315 2010-04-17  Jim Meyering  <meyering@redhat.com>
34316
34317         maint.mk: use gnu-style indentation in an embedded perl script
34318         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34319         Rename variable: s/two/last_two_bytes/
34320
34321 2010-04-16  Eric Blake  <eblake@redhat.com>
34322
34323         test-stdbool: skip test that fails with Solaris CC
34324         * tests/test-stdbool.c (f): Skip test that causes compilation
34325         error under buggy C++ compiler.
34326         * lib/stdbool.in.h: Document the limitation.
34327         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34328
34329         setenv: allow compilation with C++
34330         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34331         register keyword.
34332
34333         stdint: allow test to pass with C++
34334         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34335
34336         getopt: allow compilation with C++
34337         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34338         struct.
34339         * lib/getopt.c (_getopt_internal_r): Use correct type.
34340         Reported by Dagobert Michelson, via Joel E. Denny.
34341
34342 2010-04-16  Bruno Haible  <bruno@clisp.org>
34343
34344         Override netdb.h always.
34345         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34346         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34347         Reported by Ludovic Courtès <ludo@gnu.org>.
34348
34349 2010-04-15  Bruno Haible  <bruno@clisp.org>
34350
34351         openpty: Fix mistake from 2010-03-21.
34352         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34353         Reported by Simon Josefsson.
34354
34355 2010-04-15  Eric Blake  <eblake@redhat.com>
34356
34357         test-forkpty: fix expected signature
34358         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34359         Reported by Simon Josefsson.
34360
34361 2010-04-15  Jim Meyering  <meyering@redhat.com>
34362
34363         maint.mk: texinfo_suffix_re_: correct the default regexp
34364         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34365
34366         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34367         make it configurable via texinfo_suffix_re_.
34368
34369 2010-04-14  Eric Blake  <eblake@redhat.com>
34370
34371         strtok_r: relax license to LGPLv2+
34372         * modules/strtok_r (License): Relax license.
34373         Reported by Matthias Bolte.
34374
34375 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34376
34377         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34378         version 1.4.4 by default instead of requiring the libgcrypt
34379         version used during build.  This makes it possible to use the
34380         application with older but still binary compatible libgcrypt
34381         versions.
34382
34383 2010-04-13  Eric Blake  <eblake@redhat.com>
34384
34385         getopt-gnu: match recent glibc fixes and posix ruling
34386         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34387         '+' handling, when requesting extensions.
34388         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34389         'W;' handling.
34390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34391         * doc/posix-functions/getopt.texi (getopt): Document this.
34392         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34393         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34394         Likewise.
34395
34396         getopt: merge bug fixes from glibc
34397         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34398         diagnostics.  Honor '+:' correctly.  Reject ';'.
34399
34400         getopt-posix: detect MacOS bug
34401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34402         optind when missing a required argument.
34403         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34404         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34406         Likewise.
34407
34408         getopt-posix: avoid spurious failure on Solaris
34409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34410         an indicator that setting optind=1 is sufficient for reset.
34411
34412         getopt-posix: avoid spurious failure on FreeBSD
34413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34414         in POSIX mode, since the m4 test uses it.
34415
34416         gnulib-tool: silence warning on BSD sh
34417         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34418
34419 2010-04-13  Jim Meyering  <meyering@redhat.com>
34420
34421         doc: users.txt: GNU patch now uses gnulib
34422         * users.txt: Add patch.
34423
34424 2010-04-12  Jim Meyering  <meyering@redhat.com>
34425
34426         maint.mk: generate more concise timing data for syntax-check rules
34427         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34428         " done" from each line that reports a syntax-check test duration.
34429
34430 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34431
34432         git-version-gen: use "git update-index..." rather than "git status"
34433         * build-aux/git-version-gen: Use git update-index --refresh, not
34434         "git status".  With some versions of git, "git status" would fail
34435         to update the index and result in an unwarranted "-dirty" suffix.
34436
34437 2010-04-11  Jim Meyering  <meyering@redhat.com>
34438
34439         openat: correct formatting (no semantic change)
34440         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34441         Suggested by Bruno Haible.
34442
34443 2010-04-11  Bruno Haible  <bruno@clisp.org>
34444
34445         Stricter declaration checking in testdirs.
34446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34447         If for_tests is true, augment AM_CPPFLAGS to define
34448         GNULIB_STRICT_CHECKING.
34449         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34450         GNULIB_STRICT_CHECKING is defined, verify that the function is
34451         declared.
34452
34453 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34454             Bruno Haible  <bruno@clisp.org>
34455
34456         libunistring: Improve configure output.
34457         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34458         Don't say "consider installing GNU libunistring" when checking again
34459         with libiconv.
34460
34461 2010-04-11  Bruno Haible  <bruno@clisp.org>
34462
34463         libunistring: Correct value of $LTLIBUNISTRING.
34464         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34465         correct the value of $LTLIBUNISTRING.
34466
34467 2010-04-11  Bruno Haible  <bruno@clisp.org>
34468
34469         havelib: Add static libraries to LIBS in the right order.
34470         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34471         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34472
34473 2010-04-11  Bruno Haible  <bruno@clisp.org>
34474
34475         libunistring: Detect libunistring also when it depends on libiconv.
34476         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34477         the second AC_LIB_HAVE_LINKFLAGS invocation.
34478
34479 2010-04-11  James Youngman  <jay@gnu.org>
34480
34481         close-stream: declare local scalars to be "const"
34482         * lib/close-stream.c (close_stream): Make boolean variables const
34483         to document the fact that we set but do not change them.
34484
34485 2010-04-11  Bruno Haible  <bruno@clisp.org>
34486
34487         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34488
34489 2010-04-11  Jim Meyering  <meyering@redhat.com>
34490
34491         maint.mk: don't include dist-check.mk
34492         * top/maint.mk: Remove bogus include directive.
34493
34494         maint.mk: improve empty-line-at-EOF check
34495         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34496         solution, rather than tail+Perl-based one.  The latter would read
34497         a few kilobytes from the end of each file, and did not handle empty
34498         files properly.
34499
34500         maint.mk: print the elapsed time for each syntax-check rule
34501         * top/maint.mk (sc_m_rules_): Save start time in a file.
34502         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34503         (local-check): Interpose the .z rules
34504
34505 2010-04-11  Jim Meyering  <meyering@redhat.com>
34506
34507         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34508         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34509         empty file with one that ends in an empty line.
34510
34511 2010-04-10  Bruno Haible  <bruno@clisp.org>
34512
34513         mkdir: Make it work on mingw64.
34514         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34515         * lib/mkdir.c: Update comment.
34516         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34517
34518 2010-04-10  Bruno Haible  <bruno@clisp.org>
34519
34520         Don't override improved macro from newer autoconf.
34521         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34522         autoconf >= 2.62.
34523         Reported by Joel E. Denny <jdenny@clemson.edu>.
34524
34525 2010-04-10  Jim Meyering  <meyering@redhat.com>
34526
34527         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34528         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34529
34530         maint.mk: correct a diagnostic
34531         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34532         in diagnostic; now use $prohibit.
34533
34534 2010-04-10  Bruno Haible  <address@hidden>
34535
34536         fchownat: Fix a C++ test error on Solaris 8.
34537         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34538         the function does not exist.
34539
34540 2010-04-10  Bruno Haible  <bruno@clisp.org>
34541
34542         vasnprintf: Add more tests.
34543         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34544         (test_function): Test converting an invalid wide string.
34545
34546         vasnprintf: Correct handling of unconvertible wide string arguments.
34547         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34548         VASNPRINTF.
34549         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34550         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34551         smaller than the expected maximum need for the directive. Set errno to
34552         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34553         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34555         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34556         * modules/vasnprintf (Files): Add m4/printf.m4.
34557         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34558
34559 2010-04-10  Bruno Haible  <bruno@clisp.org>
34560
34561         vasnprintf: Fix crash in %ls directive.
34562         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34563         string is passed as argument to %ls, with no precision and no width.
34564         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34565
34566 2010-04-10  Bruno Haible  <bruno@clisp.org>
34567
34568         vasnprintf: Fix multiple test failures on mingw.
34569         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34570         _snprintf, or snwprintf, not _snwprintf.
34571
34572 2010-04-10  Bruno Haible  <bruno@clisp.org>
34573
34574         write: Fix a C++ test error on mingw.
34575         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34576
34577 2010-04-10  Bruno Haible  <bruno@clisp.org>
34578
34579         vasnprintf test: Reduce code duplication.
34580         * tests/test-vasnprintf.c (test_function): New function, extracted from
34581         test_vasnprintf.
34582         (test_vasnprintf, test_asnprintf): Invoke it.
34583
34584 2010-04-10  Bruno Haible  <bruno@clisp.org>
34585
34586         strnlen: Fix warning in C++ mode on MacOS X.
34587         * lib/string.in.h (strnlen): Use the modern idiom.
34588         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34589         defining strnlen as a macro already in <config.h>.
34590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34591         REPLACE_STRNLEN.
34592         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34593         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34594
34595 2010-04-08  James Youngman  <jay@gnu.org>
34596
34597         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34598         the example.
34599
34600 2010-04-09  Jim Meyering  <meyering@redhat.com>
34601
34602         maint.mk: print better diagnostic when there is no $(_hv_file)
34603         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34604         announce that when $(_hv_file) (aka help-version) does not exist.
34605
34606         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34607         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34608         not try to interpret its random input bytes.  Jarno Rajahalme reported
34609         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34610         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34611         (mktempd_): Likewise, just in case.
34612
34613         ftruncate: add two years to projected module removal date: 2012
34614         * m4/ftruncate.m4: Adjust comments.
34615
34616         ftruncate: mark module as obsolete; even MinGW provides it, now
34617         * modules/ftruncate (Status): Obsolete.
34618         (Notice): Say that.
34619         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34621
34622 2010-04-08  Bruno Haible  <bruno@clisp.org>
34623
34624         Fix side effects from tests-related modules.
34625         * modules/dprintf-posix (Comment): New section.
34626         * modules/fprintf-posix (Comment): Likewise.
34627         * modules/obstack-printf-posix (Comment): Likewise.
34628         * modules/printf-posix (Comment): Likewise.
34629         * modules/snprintf-posix (Comment): Likewise.
34630         * modules/sprintf-posix (Comment): Likewise.
34631         * modules/vasnprintf-posix (Comment): Likewise.
34632         * modules/vasprintf-posix (Comment): Likewise.
34633         * modules/vdprintf-posix (Comment): Likewise.
34634         * modules/vfprintf-posix (Comment): Likewise.
34635         * modules/vprintf-posix (Comment): Likewise.
34636         * modules/vsnprintf-posix (Comment): Likewise.
34637         * modules/vsprintf-posix (Comment): Likewise.
34638         * modules/xprintf-posix (Comment): Likewise.
34639         * modules/xvasprintf-posix (Comment): Likewise.
34640         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34641         * modules/floorf-tests (Depends-on): Likewise.
34642         * modules/round-tests (Depends-on): Likewise.
34643         * modules/roundf-tests (Depends-on): Likewise.
34644         * modules/trunc-tests (Depends-on): Likewise.
34645         * modules/truncf-tests (Depends-on): Likewise.
34646         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34647         'fprintf-posix' module is not present.
34648         * tests/test-floorf2.c (check): Likewise.
34649         * tests/test-trunc2.c (check): Likewise.
34650         * tests/test-truncf2.c (check): Likewise.
34651         * tests/test-round2.c (equal): Likewise.
34652         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34653
34654 2010-04-07  Karl Berry  <karl@gnu.org>
34655
34656         * config/srclist.txt,
34657         * config/srclistvars.sh,
34658         * config/srclist-update: doc fixes.
34659
34660 2010-04-07  Jim Meyering  <meyering@redhat.com>
34661
34662         maint.mk: add a PATH crosschecking syntax-check rule
34663         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34664         Useful if you use a test like the one in help-version (coreutils,
34665         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34666         printed by prog --version.
34667
34668 2010-04-06  Bruno Haible  <bruno@clisp.org>
34669
34670         Fix link error on mingw.
34671         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34672         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34673
34674 2010-04-06  Bruno Haible  <bruno@clisp.org>
34675
34676         Assume rmdir exists.
34677         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34678
34679 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34680
34681         doc: update users.txt
34682         * users.txt: Add gcal.
34683
34684 2010-04-06  Jim Meyering  <meyering@redhat.com>
34685
34686         init.sh: simply unset TMPDIR rather than risking env -i
34687         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34688         although it probably works fine on all Unix-based systems, some
34689         systems (Cygwin?) cannot tolerate a totally cleared environment.
34690         Suggestion from Eric Blake.
34691
34692 2010-04-06  Jim Meyering  <meyering@redhat.com>
34693
34694         init.sh: portability fix: use env's POSIX-specified -i option not -u
34695         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34696         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34697
34698 2010-04-05  Bruno Haible  <bruno@clisp.org>
34699
34700         btowc: Work around Cygwin 1.7.2 bug.
34701         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34702         does not map NUL to 0.
34703         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34704
34705 2010-04-05  Bruno Haible  <bruno@clisp.org>
34706
34707         Make the multithread modules work on Cygwin 1.7.2.
34708         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34709         imported symbols can be declared weak, so that it returns "no" on
34710         Cygwin 1.7.2.
34711
34712 2010-04-05  Bruno Haible  <bruno@clisp.org>
34713
34714         Use the module 'strncat'.
34715         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34716
34717         Tests for module 'strncat'.
34718         * modules/strncat-tests: New file.
34719         * tests/test-strncat.c: New file.
34720
34721         New module 'strncat'.
34722         * lib/string.in.h (strncat): New declaration.
34723         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34724         * m4/strncat.m4: New file, based on m4/memchr.m4.
34725         * modules/strncat: New file.
34726         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34727         is declared.
34728         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34729         REPLACE_STRNCAT.
34730         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34731         REPLACE_STRNCAT.
34732         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34733         module.
34734         * tests/test-string-c++.cc: Check signature of strncat.
34735
34736 2010-04-05  Jim Meyering  <meyering@redhat.com>
34737
34738         xstrtoumax-tests: convert to use init.sh
34739         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34740         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34741         Use Exit, not exit.
34742         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34743
34744         xstrtoimax-tests: convert to use init.sh
34745         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34746         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34747         Use Exit, not exit.
34748         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34749
34750 2010-04-05  Bruno Haible  <bruno@clisp.org>
34751
34752         sys_socket: Avoid #define replacements in C++ mode.
34753         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34754         warning to the function if possible, rather than #defining the symbol
34755         to a dysfunctional alias.
34756
34757 2010-04-05  Bruno Haible  <bruno@clisp.org>
34758
34759         fseeko: Fix C++ test error on mingw.
34760         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34761         gl_FUNC_FSEEKO.
34762         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34763         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34764         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34765         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34766
34767 2010-04-05  Bruno Haible  <bruno@clisp.org>
34768
34769         duplocale: Improve test output.
34770         * tests/test-duplocale.c (main): Print reason for skipped test.
34771
34772 2010-04-05  Bruno Haible  <bruno@clisp.org>
34773
34774         Assume rmdir exists.
34775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34776         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34777
34778 2010-04-05  Bruno Haible  <bruno@clisp.org>
34779
34780         Fix link error on Solaris 8 with cc.
34781         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34782
34783 2010-04-05  Bruno Haible  <bruno@clisp.org>
34784
34785         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34786         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34787
34788 2010-04-05  Bruno Haible  <bruno@clisp.org>
34789
34790         vasprintf: Update documentation.
34791         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34792
34793 2010-04-05  Bruno Haible  <bruno@clisp.org>
34794
34795         ptsname: Improve test.
34796         * tests/test-ptsname.c (main): Also try the various master names of BSD
34797         systems.
34798
34799 2010-04-05  Bruno Haible  <bruno@clisp.org>
34800
34801         memchr: Avoid a possible C++ test error.
34802         * lib/string.in.h (memchr): Provide declaration if function is missing.
34803         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34804         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34806         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34807
34808 2010-04-05  Bruno Haible  <bruno@clisp.org>
34809
34810         strtok_r: Improve idiom.
34811         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34812         AC_LIBOBJ is used.
34813
34814 2010-04-05  Bruno Haible  <bruno@clisp.org>
34815
34816         strdup: Improve idiom.
34817         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34818         AC_LIBOBJ is used.
34819         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34820         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34821         when AC_LIBOBJ is used.
34822
34823 2010-04-05  Bruno Haible  <bruno@clisp.org>
34824
34825         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34826         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34827         don't set REPLACE_MBSINIT to 1.
34828         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34829         don't set REPLACE_MBRTOWC to 1.
34830         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34831         exist, don't set REPLACE_MBSRTOWCS to 1.
34832         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34833         exist, don't set REPLACE_MBSNRTOWCS to 1.
34834         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34835         don't set REPLACE_WCRTOMB to 1.
34836         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34837         exist, don't set REPLACE_WCSRTOMBS to 1.
34838         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34839         exist, don't set REPLACE_WCSNRTOMBS to 1.
34840
34841 2010-04-05  Bruno Haible  <bruno@clisp.org>
34842
34843         ldexpl: Improve idiom.
34844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34845         make sure to set HAVE_DECL_LDEXPL to 0.
34846
34847 2010-04-05  Jim Meyering  <meyering@redhat.com>
34848
34849         xstrtol-tests: convert to use init.sh
34850         * modules/xstrtol-tests (Files): Add tests/init.sh.
34851         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34852         Use Exit, not exit.
34853         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34854
34855         atexit-tests: convert to use init.sh
34856         * modules/atexit-tests (Files): Add tests/init.sh.
34857         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34858         Use Exit, not exit.
34859         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34860
34861         init.sh: fix typo
34862         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34863
34864         init.sh: make it easier for a test script to write to the tty, ...
34865         when using automake's parallel-tests mode.
34866         * tests/init.sh (stderr_fileno_): Define overridable variable.
34867         (warn_): New function, to use it.
34868         (fail_, skip_, framework_failure_): Use warn_.
34869
34870 2010-04-04  Bruno Haible  <bruno@clisp.org>
34871
34872         btowc: Avoid warning.
34873         * lib/btowc.c: Include <stdlib.h>.
34874         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34875
34876 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34877             Bruno Haible  <bruno@clisp.org>
34878
34879         wchar: Port to NetBSD 1.5.
34880         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34881         * lib/wctype.in.h (WEOF): Likewise.
34882
34883 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34884             Bruno Haible  <bruno@clisp.org>
34885
34886         Port extended stdio to NetBSD 1.5.
34887         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34888         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34889         older.
34890
34891 2010-04-04  Bruno Haible  <bruno@clisp.org>
34892
34893         string: Remove unused substitution.
34894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34895         HAVE_DECL_STRERROR.
34896         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34897
34898 2010-04-04  Bruno Haible  <bruno@clisp.org>
34899
34900         strtod: Avoid a possible C++ test error.
34901         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34902         set REPLACE_STRTOD.
34903
34904 2010-04-04  Bruno Haible  <bruno@clisp.org>
34905
34906         strerror: Update documentation.
34907         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34908
34909 2010-04-04  Bruno Haible  <bruno@clisp.org>
34910
34911         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34912         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34913         _GL_CXXALIAS_SYS_CAST.
34914
34915 2010-04-04  Bruno Haible  <bruno@clisp.org>
34916
34917         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34918         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34919         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34920         REPLACE_FREXPL to 1.
34921         * doc/posix-functions/frexpl.texi: Update documentation.
34922
34923 2010-04-04  Bruno Haible  <bruno@clisp.org>
34924
34925         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34926         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34927
34928 2010-04-04  Bruno Haible  <bruno@clisp.org>
34929
34930         Implement nanosleep for native Windows.
34931         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34932
34933 2010-04-04  Bruno Haible  <bruno@clisp.org>
34934
34935         math: Fix some C++ test errors on Solaris 8.
34936         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34937
34938 2010-04-04  Bruno Haible  <bruno@clisp.org>
34939
34940         math: Fix some C++ test errors on Cygwin.
34941         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34942         truncl): Provide declaration if the system does not have it.
34943         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34944         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34945         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34946         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34947         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34948         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34949         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34950         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34951         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34952         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34953         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34954         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34955         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34956         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34957         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34958         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34960         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34961         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34962         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34963         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34964         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34965
34966 2010-04-04  Bruno Haible  <bruno@clisp.org>
34967
34968         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34969         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34970         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34971         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34972         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34973         * m4/isinf.m4 (gl_ISINF): Likewise.
34974         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34975
34976 2010-04-04  Bruno Haible  <bruno@clisp.org>
34977
34978         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34979         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34980
34981 2010-04-04  Bruno Haible  <bruno@clisp.org>
34982
34983         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34984         * modules/tmpfile (configure.ac): Update.
34985
34986         tmpfile: Fix C++ test error on mingw.
34987         * lib/stdio.in.h (tmpfile): New declaration.
34988         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34989         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34990         * modules/tmpfile (Depends-on): Add stdio.
34991         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34992         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34993         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34994         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34995         REPLACE_TMPFILE.
34996         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34997
34998 2010-04-04  Bruno Haible  <bruno@clisp.org>
34999
35000         ioctl: Fix C++ test error on mingw.
35001         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35002         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35003         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35004
35005 2010-04-03  Bruno Haible  <bruno@clisp.org>
35006
35007         wcwidth: Fix C++ test error on mingw.
35008         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35010         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35011
35012 2010-04-03  Bruno Haible  <bruno@clisp.org>
35013
35014         nanosleep: Fix C++ test error on mingw.
35015         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35016         * lib/time.in.h (nanosleep): Use modern idiom.
35017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35018         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35019         REPLACE_NANOSLEEP to 1.
35020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35021         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35022
35023 2010-04-03  Bruno Haible  <bruno@clisp.org>
35024
35025         strptime: Fix C++ test error on mingw.
35026         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35027         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35028         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35029         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35030         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35031         not REPLACE_STRPTIME.
35032         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35033         REPLACE_STRPTIME.
35034
35035 2010-04-03  Bruno Haible  <bruno@clisp.org>
35036
35037         timegm: Fix C++ test error on mingw.
35038         * lib/time.in.h (timegm): Use modern idiom.
35039         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35040         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35041         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35042         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35043
35044 2010-04-03  Bruno Haible  <bruno@clisp.org>
35045
35046         timegm: Assume declaration if function exists.
35047         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35048         if it exists. Don't clobber ac_cv_func_timegm.
35049
35050 2010-04-03  Bruno Haible  <bruno@clisp.org>
35051
35052         time_r: Fix C++ test error on mingw.
35053         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35054         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35055         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35057         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35058
35059 2010-04-03  Bruno Haible  <bruno@clisp.org>
35060
35061         time_r: Minor updates.
35062         * modules/time_r (Description): Mention the provided functions.
35063         * lib/time_r.c: Don't include <string.h>.
35064         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35065         * doc/posix-functions/localtime_r.texi: Likewise.
35066
35067 2010-04-03  Bruno Haible  <bruno@clisp.org>
35068
35069         time: Fix regression introduced on 2010-03-08.
35070         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35071         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35072
35073 2010-04-03  Jim Meyering  <meyering@redhat.com>
35074
35075         maint.mk: don't silently disable project-specific syntax-check rules
35076         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35077         that they need to convert their project-specific syntax-check rules
35078         to use the new _sc_search_regexp.
35079
35080 2010-04-03  Bruno Haible  <bruno@clisp.org>
35081
35082         fchdir: Fix regression introduced on 2010-03-08.
35083         * lib/unistd.in.h (fchdir): Fix declaration.
35084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35086         REPLACE_FCHDIR.
35087         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35088         REPLACE_FCHDIR.
35089
35090 2010-04-03  Bruno Haible  <bruno@clisp.org>
35091
35092         getpagesize: Fix C++ test error on mingw.
35093         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35094         system does not declare the function.
35095         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35096         declared.
35097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35098         HAVE_DECL_GETPAGESIZE.
35099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35100
35101 2010-04-03  Bruno Haible  <bruno@clisp.org>
35102
35103         stdio: Make C++ tests work on mingw.
35104         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35105         does not declare the function.
35106
35107 2010-04-03  Bruno Haible  <bruno@clisp.org>
35108
35109         ftello: Fix C++ test error on mingw.
35110         * lib/stdio.in.h (ftello): Use modern idiom.
35111         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35112         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35113         is missing and that it needs to be replaced.
35114         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35116         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35117
35118 2010-04-03  Bruno Haible  <bruno@clisp.org>
35119
35120         fseeko: Fix C++ test error on mingw.
35121         * lib/stdio.in.h (fseeko): Use modern idiom.
35122         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35124         is missing and that it needs to be replaced.
35125         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35127         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35128
35129 2010-04-03  Bruno Haible  <bruno@clisp.org>
35130
35131         mkstemp: Fix C++ test error on mingw.
35132         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35134         function is missing and that it needs to be replaced.
35135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35136         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35137
35138 2010-04-03  Bruno Haible  <bruno@clisp.org>
35139
35140         stpncpy: Fix C++ test error on mingw.
35141         * lib/string.in.h (stpncpy): Use modern idiom.
35142         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35143         function is missing and that it needs to be replaced.
35144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35145         REPLACE_STPNCPY.
35146         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35147
35148 2010-04-03  Bruno Haible  <bruno@clisp.org>
35149
35150         sys_stat: Fix C++ test error on mingw.
35151         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35152         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35153
35154 2010-04-03  Bruno Haible  <bruno@clisp.org>
35155
35156         pty: Update doc.
35157         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35158
35159 2010-04-03  Bruno Haible  <bruno@clisp.org>
35160
35161         unistd: Fix C++ test error on mingw.
35162         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35163
35164 2010-04-03  Bruno Haible  <bruno@clisp.org>
35165
35166         Update doc regarding mingw.
35167         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35168         * doc/glibc-functions/login_tty.texi: Likewise.
35169         * doc/glibc-functions/forkpty.texi: Likewise.
35170
35171 2010-04-03  Bruno Haible  <bruno@clisp.org>
35172
35173         stdlib: Avoid compilation failure of c-strtold on mingw.
35174         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35175
35176 2010-04-03  Bruno Haible  <bruno@clisp.org>
35177
35178         locale: Make C++ tests work on Cygwin and mingw.
35179         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35180         cannot provide the function.
35181         Reported by Simon Josefsson.
35182
35183 2010-04-03  Bruno Haible  <bruno@clisp.org>
35184
35185         localename: Port to MacOS X 10.6.
35186         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35187         memory layout of the locales in MacOS X 10.6 as well.
35188         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35189
35190 2010-04-02  Bruno Haible  <bruno@clisp.org>
35191
35192         gnulib-tool: Ensure that long-running tests are executed last.
35193         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35194         running tests after the one for the other tests.
35195
35196 2010-04-02  Bruno Haible  <bruno@clisp.org>
35197
35198         gnulib-tool: Ensure the tests in the main directory are executed first.
35199         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35200         start with the current directory.
35201
35202 2010-04-02  Bruno Haible  <bruno@clisp.org>
35203
35204         Tests for module 'havelib', moved here from GNU gettext.
35205         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35206         modifications.
35207         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35208         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35209         with modifications.
35210         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35211         modifications.
35212         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35213         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35214         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35215         with modifications.
35216         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35217         with modifications.
35218         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35219         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35220         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35221         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35222         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35223         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35224         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35225         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35226         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35227         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35228         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35229         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35230         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35231         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35232         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35233         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35234         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35235         with modifications.
35236         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35237         with modifications.
35238         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35239         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35240         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35241         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35242         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35243         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35244         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35245         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35246         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35247         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35248         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35249         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35250         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35251         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35252         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35253         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35254         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35255         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35256         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35257         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35258         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35259         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35260         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35261         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35262         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35263         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35264         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35265         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35266         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35267         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35268         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35269         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35270         * tests/havelib/rpathx/rpathx.c: New file, from
35271         gettext/autoconf-lib-link.
35272         * tests/havelib/rpathx/Makefile.am: New file, from
35273         gettext/autoconf-lib-link.
35274         * tests/havelib/rpathx/configure.ac: New file, from
35275         gettext/autoconf-lib-link with modifications.
35276         * tests/havelib/rpathy/rpathy.c: New file, from
35277         gettext/autoconf-lib-link.
35278         * tests/havelib/rpathy/Makefile.am: New file, from
35279         gettext/autoconf-lib-link.
35280         * tests/havelib/rpathy/configure.ac: New file, from
35281         gettext/autoconf-lib-link with modifications.
35282         * tests/havelib/rpathz/rpathz.c: New file, from
35283         gettext/autoconf-lib-link.
35284         * tests/havelib/rpathz/Makefile.am: New file, from
35285         gettext/autoconf-lib-link.
35286         * tests/havelib/rpathz/configure.ac: New file, from
35287         gettext/autoconf-lib-link with modifications.
35288         * tests/havelib/rpathlx/usex.c: New file, from
35289         gettext/autoconf-lib-link.
35290         * tests/havelib/rpathlx/Makefile.am: New file, from
35291         gettext/autoconf-lib-link.
35292         * tests/havelib/rpathlx/configure.ac: New file, from
35293         gettext/autoconf-lib-link with modifications.
35294         * tests/havelib/rpathly/usey.c: New file, from
35295         gettext/autoconf-lib-link.
35296         * tests/havelib/rpathly/Makefile.am: New file, from
35297         gettext/autoconf-lib-link.
35298         * tests/havelib/rpathly/configure.ac: New file, from
35299         gettext/autoconf-lib-link with modifications.
35300         * tests/havelib/rpathlz/usez.c: New file, from
35301         gettext/autoconf-lib-link.
35302         * tests/havelib/rpathlz/Makefile.am: New file, from
35303         gettext/autoconf-lib-link.
35304         * tests/havelib/rpathlz/configure.ac: New file, from
35305         gettext/autoconf-lib-link with modifications.
35306         * tests/havelib/rpathlyx/usey.c: New file, from
35307         gettext/autoconf-lib-link.
35308         * tests/havelib/rpathlyx/Makefile.am: New file, from
35309         gettext/autoconf-lib-link.
35310         * tests/havelib/rpathlyx/configure.ac: New file, from
35311         gettext/autoconf-lib-link with modifications.
35312         * tests/havelib/rpathlzyx/usez.c: New file, from
35313         gettext/autoconf-lib-link.
35314         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35315         gettext/autoconf-lib-link.
35316         * tests/havelib/rpathlzyx/configure.ac: New file, from
35317         gettext/autoconf-lib-link with modifications.
35318         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35319         with modifications.
35320
35321 2010-04-02  Bruno Haible  <bruno@clisp.org>
35322
35323         gnulib-tool: Create distributed built sources also for the tests.
35324         * gnulib-tool (func_create_testdir): Also generate distributed built
35325         sources in the tests directory.
35326
35327 2010-04-02  Bruno Haible  <bruno@clisp.org>
35328
35329         gnulib-tool: Obey user's environment variables.
35330         * gnulib-tool (func_create_testdir): When creating built sources,
35331         respect the environment variables for autoconf, automake, etc. given by
35332         the user.
35333
35334 2010-04-02  Bruno Haible  <bruno@clisp.org>
35335
35336         gnulib-tool: Provide the value of --m4-base to modules.
35337         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35338         of gl_m4_base.
35339
35340 2010-04-02  Eric Blake  <eblake@redhat.com>
35341
35342         maint.mk: fix some fallout
35343         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35344         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35345
35346 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35347
35348         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35349         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35350         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35351         (sc_cast_of_x_alloc_return_value): Likewise.
35352         (sc_cast_of_alloca_return_value): Likewise.
35353         (sc_space_tab): Likewise.
35354         (sc_prohibit_atoi_atof): Likewise.
35355         (sc_prohibit_magic_number_exit): Likewise.
35356         (sc_error_exit_success): Likewise.
35357         (sc_file_system): Likewise.
35358         (sc_prohibit_have_config_h): Likewise.
35359         (sc_require_config_h): Likewise.
35360         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35361         (sc_obsolete_symbols): Likewise.
35362         (sc_changelog): Likewise.
35363         (sc_program_name): Likewise.
35364         (sc_the_the): Likewise.
35365         (sc_trailing_blank): Likewise.
35366         (sc_two_space_separator_in_usage): Likewise.
35367         (sc_useless_cpp_parens): Likewise.
35368         (sc_GPL_version): Likewise.
35369         (sc_GFDL_version): Likewise.
35370         (sc_texinfo_acronym): Likewise.
35371         (sc_prohibit_cvs_keyword): Likewise.
35372         (sc_prohibit_stat_st_blocks): Likewise.
35373         (sc_prohibit_S_IS_definition): Likewise.
35374         (sc_redundant_const): Likewise.
35375         (sc_makefile_TAB_only_indentation): Likewise.
35376         (sc_m4_quote_check): Likewise.
35377         (sc_makefile_path_separator_check): Likewise.
35378         (sc_copyright_check): Likewise.
35379         (sc_Wundef_boolean): Likewise.
35380         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35381
35382         maint.mk: match 0 or more whitespace-before-function-call '('
35383         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35384         that have zero or two-and-more spaces between the function name
35385         and the open parenthesis.
35386         (sc_error_message_warn_fatal): Likewise.
35387         (sc_error_message_uppercase): Likewise.
35388         (sc_error_message_period): Likewise.
35389
35390 2010-03-31  Eric Blake  <eblake@redhat.com>
35391
35392         maint.mk: check for [ as well as test
35393         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35394         Based on a libvirt report by Matthias Bolte.
35395
35396         gnumakefile: don't squelch _version output
35397         * top/GNUmakefile (_version): Create one-shot dependency rather
35398         than using $(shell) when version must be regenerated.
35399         (_autoreconf): Run verbosely, by default.
35400
35401         sys_time: avoid compiler warnings
35402         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35403         unconditional, fixing regression from 2010-03-29.
35404         Reported by Simon Josefsson.
35405
35406 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35407
35408         maint.mk: s/_header_without_use/_sc_header_without_use/
35409         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35410         (sc_prohibit_assert_without_use): Use the new name.
35411         (sc_prohibit_close_stream_without_use): Likewise.
35412         (sc_prohibit_getopt_without_use): Likewise.
35413         (sc_prohibit_quotearg_without_use): Likewise.
35414         (sc_prohibit_quote_without_use): Likewise.
35415         (sc_prohibit_long_options_without_use): Likewise.
35416         (sc_prohibit_inttostr_without_use): Likewise.
35417         (sc_prohibit_ignore_value_without_use): Likewise.
35418         (sc_prohibit_error_without_use): Likewise.
35419         (sc_prohibit_xalloc_without_use): Likewise.
35420         (sc_prohibit_hash_without_use): Likewise.
35421         (sc_prohibit_hash_pjw_without_use): Likewise.
35422         (sc_prohibit_safe_read_without_use): Likewise.
35423         (sc_prohibit_argmatch_without_use): Likewise.
35424         (sc_prohibit_canonicalize_without_use): Likewise.
35425         (sc_prohibit_root_dev_ino_without_use): Likewise.
35426         (sc_prohibit_openat_without_use): Likewise.
35427         (sc_prohibit_c_ctype_without_use): Likewise.
35428         (sc_prohibit_signal_without_use): Likewise.
35429         (sc_prohibit_intprops_without_use): Likewise.
35430
35431 2010-03-30  Eric Blake  <eblake@redhat.com>
35432
35433         maint: improve module indicators
35434         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35435         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35436         columns, and avoid extra macro expansion.
35437
35438         fdopendir: work around FreeBSD bug
35439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35440         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35441         * modules/dirent (Makefile.am): Substitute it.
35442         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35443         declaration.
35444         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35445         fix.
35446         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35447
35448 2010-03-29  Bruno Haible  <bruno@clisp.org>
35449
35450         Emit #pragma system_header after the inclusion guard, not before.
35451         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35452         guard that spans the entire file, not before. This enables an
35453         optimization in GCC's preprocessor.
35454         * lib/ctype.in.h: Likewise.
35455         * lib/dirent.in.h: Likewise.
35456         * lib/errno.in.h: Likewise.
35457         * lib/float.in.h: Likewise.
35458         * lib/getopt.in.h: Likewise.
35459         * lib/iconv.in.h: Likewise.
35460         * lib/langinfo.in.h: Likewise.
35461         * lib/locale.in.h: Likewise.
35462         * lib/math.in.h: Likewise.
35463         * lib/netdb.in.h: Likewise.
35464         * lib/netinet_in.in.h: Likewise.
35465         * lib/pty.in.h: Likewise.
35466         * lib/sched.in.h: Likewise.
35467         * lib/se-selinux.in.h: Likewise.
35468         * lib/search.in.h: Likewise.
35469         * lib/spawn.in.h: Likewise.
35470         * lib/stdarg.in.h: Likewise.
35471         * lib/stdint.in.h: Likewise.
35472         * lib/string.in.h: Likewise.
35473         * lib/strings.in.h: Likewise.
35474         * lib/sys_file.in.h: Likewise.
35475         * lib/sys_ioctl.in.h: Likewise.
35476         * lib/sys_time.in.h: Likewise.
35477         * lib/sys_times.in.h: Likewise.
35478         * lib/sys_utsname.in.h: Likewise.
35479         * lib/sys_wait.in.h: Likewise.
35480         * lib/sysexits.in.h: Likewise.
35481         * lib/wctype.in.h: Likewise.
35482
35483 2010-03-28  James Youngman  <jay@gnu.org>
35484
35485         save-cwd: don't leak a file descriptor when the caller execs.
35486         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35487         saved file descriptor.
35488         * modules/save-cwd (Depends-on): Depend on cloexec.
35489
35490 2010-03-29  Bruno Haible  <bruno@clisp.org>
35491
35492         Remove vestiges of fts-lgpl module.
35493         * lib/fts_.h: Assume GNULIB_FTS is 1.
35494         * lib/fts.c: Likewise.
35495         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35496
35497 2010-03-28  Bruno Haible  <bruno@clisp.org>
35498
35499         Fix definition of tests witness macro.
35500         * gnulib-tool (func_import): Fix definition of witness macro.
35501
35502 2010-03-28  Bruno Haible  <bruno@clisp.org>
35503
35504         Fix ioctl's protoype on glibc systems.
35505         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35506         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35507         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35508         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35509         signature. If not, arrange to replace the ioctl function.
35510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35511         REPLACE_IOCTL.
35512         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35513         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35514         Reported by Ludovic Courtès <ludo@gnu.org>.
35515
35516 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35517
35518         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35519         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35520         made it so grep -r --include=GLOB* ... did not work.
35521
35522 2010-03-26  Jim Meyering  <meyering@redhat.com>
35523             Eric Blake  <eblake@redhat.com>
35524
35525         maint.mk: prohibit use of test's -o and -a operators
35526         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35527
35528 2010-03-28  Bruno Haible  <bruno@clisp.org>
35529
35530         Remove unused GNULIB_XYZ macro definitions.
35531         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35532         invocation.
35533
35534 2010-03-28  Bruno Haible  <bruno@clisp.org>
35535
35536         Mark privileged tests modules.
35537         * modules/idpriv-drop-tests (Status): New section.
35538         * modules/idpriv-droptemp-tests (Status): New section.
35539
35540 2010-03-28  Bruno Haible  <bruno@clisp.org>
35541
35542         Split C++ tests into separate tests modules.
35543         * modules/dirent-c++-tests: New file, extracted from
35544         modules/dirent-tests.
35545         * modules/dirent-tests: Depend on it.
35546         * modules/fcntl-h-c++-tests: New file, extracted from
35547         modules/fcntl-h-tests.
35548         * modules/fcntl-h-tests: Depend on it.
35549         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35550         * modules/glob-tests: Depend on it.
35551         * modules/iconv-h-c++-tests: New file, extracted from
35552         modules/iconv-h-tests.
35553         * modules/iconv-h-tests: Depend on it.
35554         * modules/langinfo-c++-tests: New file, extracted from
35555         modules/langinfo-tests.
35556         * modules/langinfo-tests: Depend on it.
35557         * modules/locale-c++-tests: New file, extracted from
35558         modules/locale-tests.
35559         * modules/locale-tests: Depend on it.
35560         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35561         * modules/math-tests: Depend on it.
35562         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35563         * modules/pty-tests: Depend on it.
35564         * modules/search-c++-tests: New file, extracted from
35565         modules/search-tests.
35566         * modules/search-tests: Depend on it.
35567         * modules/signal-c++-tests: New file, extracted from
35568         modules/signal-tests.
35569         * modules/signal-tests: Depend on it.
35570         * modules/spawn-c++-tests: New file, extracted from
35571         modules/spawn-tests.
35572         * modules/spawn-tests: Depend on it.
35573         * modules/stdio-c++-tests: New file, extracted from
35574         modules/stdio-tests.
35575         * modules/stdio-tests: Depend on it.
35576         * modules/stdlib-c++-tests: New file, extracted from
35577         modules/stdlib-tests.
35578         * modules/stdlib-tests: Depend on it.
35579         * modules/string-c++-tests: New file, extracted from
35580         modules/string-tests.
35581         * modules/string-tests: Depend on it.
35582         * modules/sys_ioctl-c++-tests: New file, extracted from
35583         modules/sys_ioctl-tests.
35584         * modules/sys_ioctl-tests: Depend on it.
35585         * modules/sys_select-c++-tests: New file, extracted from
35586         modules/sys_select-tests.
35587         * modules/sys_select-tests: Depend on it.
35588         * modules/sys_socket-c++-tests: New file, extracted from
35589         modules/sys_socket-tests.
35590         * modules/sys_socket-tests: Depend on it.
35591         * modules/sys_stat-c++-tests: New file, extracted from
35592         modules/sys_stat-tests.
35593         * modules/sys_stat-tests: Depend on it.
35594         * modules/sys_time-c++-tests: New file, extracted from
35595         modules/sys_time-tests.
35596         * modules/sys_time-tests: Depend on it.
35597         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35598         * modules/time-tests: Depend on it.
35599         * modules/unistd-c++-tests: New file, extracted from
35600         modules/unistd-tests.
35601         * modules/unistd-tests: Depend on it.
35602         * modules/wchar-c++-tests: New file, extracted from
35603         modules/wchar-tests.
35604         * modules/wchar-tests: Depend on it.
35605         * modules/wctype-c++-tests: New file, extracted from
35606         modules/wctype-tests.
35607         * modules/wctype-tests: Depend on it.
35608         Reported by Simon Josefsson.
35609
35610 2010-03-28  Bruno Haible  <bruno@clisp.org>
35611
35612         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35613         * gnulib-tool (func_exists_module): New function, extracted from
35614         func_verify_module.
35615         (func_verify_module): Use it.
35616         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35617         'foo' only if 'foo' exists.
35618         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35619         module.
35620
35621 2010-03-28  Bruno Haible  <bruno@clisp.org>
35622
35623         gnulib-tool: Add support for special categories of tests.
35624         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35625         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35626         (func_usage): Document them.
35627         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35628         inc_unportable_tests, inc_all_tests): New variables.
35629         (func_acceptable): Consider these variables.
35630         (func_modules_transitive_closure): Make it work when the 'Status' field
35631         consists of multiple words.
35632         (func_import): Store and restore the values of inc_cxx_tests,
35633         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35634         inc_all_tests in gnulib-comp.m4.
35635         (func_create_testdir): Set inc_all_tests to true.
35636         * doc/gnulib.texi (Extra tests modules): New section.
35637         Suggested by Jim Meyering.
35638
35639 2010-03-28  Bruno Haible  <bruno@clisp.org>
35640
35641         ansi-c++-opt: Allow turning off the C++ build by default.
35642         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35643         gl_CXX_CHOICE_DEFAULT_NO is defined.
35644         Requested by Eric Blake.
35645
35646 2010-03-28  Bruno Haible  <bruno@clisp.org>
35647
35648         unistd: Avoid #define replacements in C++ mode.
35649         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35650         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35651         setsockopt, shutdown, select): In C++, attach a warning to the function
35652         if possible, rather than #defining the symbol to a dysfunctional alias.
35653         Reported by John W. Eaton <jwe@gnu.org>.
35654
35655 2010-03-28  Bruno Haible  <bruno@clisp.org>
35656
35657         Fix link errors on mingw.
35658         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35659         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35660         $(LIBSOCKET).
35661         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35662         $(LIBSOCKET).
35663
35664 2010-03-28  Bruno Haible  <bruno@clisp.org>
35665             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35666
35667         lib-ignore: Determine different options for different compilers.
35668         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35669         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35670         Add comments.
35671         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35672         * NEWS: Mention the change.
35673
35674 2010-03-27  Bruno Haible  <bruno@clisp.org>
35675
35676         Remove unused GNULIB_XYZ macro definitions.
35677         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35678         * modules/fseek (configure.ac): Likewise.
35679         * modules/ioctl (configure.ac): Likewise.
35680         * modules/open (configure.ac): Likewise.
35681         * modules/stdlib-safer (configure.ac): Likewise.
35682
35683 2010-03-27  Bruno Haible  <bruno@clisp.org>
35684
35685         Add a remark about certain modules.
35686         * modules/malloc (Comment): New section.
35687         * modules/realloc (Comment): Likewise.
35688         * modules/sigpipe (Comment): Likewise.
35689
35690 2010-03-27  Bruno Haible  <bruno@clisp.org>
35691
35692         Resolve conflict between the two kinds of module indicators.
35693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35694         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35695         * modules/canonicalize (configure.ac): Invoke
35696         gl_MODULE_INDICATOR_FOR_TESTS.
35697         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35698         GNULIB_XYZ.
35699         * tests/test-dirent-c++.cc: Likewise.
35700         * tests/test-dirent-safer.c: Likewise.
35701         * tests/test-dup2.c: Likewise.
35702         * tests/test-fchdir.c: Likewise.
35703         * tests/test-fcntl-h-c++.cc: Likewise.
35704         * tests/test-getopt.c: Likewise.
35705         * tests/test-getopt.h: Likewise.
35706         * tests/test-langinfo-c++.cc: Likewise.
35707         * tests/test-locale-c++.cc: Likewise.
35708         * tests/test-math-c++.cc: Likewise.
35709         * tests/test-pty-c++.cc: Likewise.
35710         * tests/test-search-c++.cc: Likewise.
35711         * tests/test-signal-c++.cc: Likewise.
35712         * tests/test-spawn-c++.cc: Likewise.
35713         * tests/test-stdio-c++.cc: Likewise.
35714         * tests/test-stdlib-c++.cc: Likewise.
35715         * tests/test-string-c++.cc: Likewise.
35716         * tests/test-sys_ioctl-c++.cc: Likewise.
35717         * tests/test-sys_select-c++.cc: Likewise.
35718         * tests/test-sys_socket-c++.cc: Likewise.
35719         * tests/test-sys_stat-c++.cc: Likewise.
35720         * tests/test-sys_time-c++.cc: Likewise.
35721         * tests/test-time-c++.cc: Likewise.
35722         * tests/test-unistd-c++.cc: Likewise.
35723         * tests/test-wchar-c++.cc: Likewise.
35724         * tests/uninorm/test-u8-nfc.c: Likewise.
35725         * tests/uninorm/test-u8-nfd.c: Likewise.
35726         * tests/uninorm/test-u8-nfkc.c: Likewise.
35727         * tests/uninorm/test-u8-nfkd.c: Likewise.
35728         * tests/uninorm/test-u16-nfc.c: Likewise.
35729         * tests/uninorm/test-u16-nfd.c: Likewise.
35730         * tests/uninorm/test-u16-nfkc.c: Likewise.
35731         * tests/uninorm/test-u16-nfkd.c: Likewise.
35732         * tests/uninorm/test-u32-nfc.c: Likewise.
35733         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35734         * tests/uninorm/test-u32-nfd.c: Likewise.
35735         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35736         * tests/uninorm/test-u32-nfkc.c: Likewise.
35737         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35738         * tests/uninorm/test-u32-nfkd.c: Likewise.
35739         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35740         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35741
35742 2010-03-27  Bruno Haible  <bruno@clisp.org>
35743
35744         Distinguish two kinds of module indicators.
35745         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35746         gl_MODULE_INDICATOR.
35747         (gl_MODULE_INDICATOR): New macro.
35748         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35749         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35750         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35751         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35752         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35753         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35754         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35755         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35756         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35757         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35758         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35759         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35760         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35761         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35762         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35763         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35764         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35765         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35766         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35767         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35768         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35769         * modules/cloexec (configure.ac): Likewise.
35770         * modules/getopt-gnu (configure.ac): Likewise.
35771         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35772         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35773         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35774         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35775
35776 2010-03-27  Bruno Haible  <bruno@clisp.org>
35777
35778         New module description field 'Comment'.
35779         * gnulib-tool: New option --extract-comment.
35780         (func_usage): Document it.
35781         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35782         (func_get_comment): New function.
35783         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35784
35785 2010-03-27  Bruno Haible  <bruno@clisp.org>
35786
35787         Addendum to 2010-02-07 commit.
35788         * gnulib-tool (func_usage): Document --extract-applicability option.
35789
35790 2010-03-27  Bruno Haible  <bruno@clisp.org>
35791
35792         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35793         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35794         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35795         rather than link errors.
35796
35797 2010-03-27  Bruno Haible  <bruno@clisp.org>
35798
35799         Avoid side effects from tests-related modules on the compilation of lib.
35800         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35801         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35802         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35803         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35804         macro.
35805         (func_import): Define a witness macro. Assign it a value that depends
35806         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35807         tests-related modules.
35808         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35809         Reported by Jim Meyering.
35810
35811 2010-03-27  Bruno Haible  <bruno@clisp.org>
35812
35813         Factorize common .m4 code.
35814         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35815         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35816         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35817         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35818         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35819         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35820         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35821         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35822         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35823         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35824         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35825         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35826         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35827         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35828         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35829         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35830         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35831         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35833         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35834         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35835         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35836         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35837         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35838         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35839         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35840         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35841         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35842         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35843         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35844         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35845         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35846
35847 2010-03-27  Bruno Haible  <bruno@clisp.org>
35848
35849         Fix a compilation error on Cygwin with g++ >= 4.3.
35850         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35851         if it is undefined or if we alias it to chmod.
35852         (lstat): Don't warn about the use of this function if it is undefined
35853         or if we alias it to stat.
35854         Reported by Simon Josefsson.
35855
35856 2010-03-27  Bruno Haible  <bruno@clisp.org>
35857
35858         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35859         * modules/getlogin (configure.ac): Update.
35860
35861         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35862         * modules/getlogin_r (configure.ac): Update.
35863
35864         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35866         * modules/inet_ntop (configure.ac): Update.
35867
35868         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35869         * modules/inet_pton (configure.ac): Update.
35870
35871         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35872         * modules/mbslen (configure.ac): Update.
35873
35874         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35875         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35876         * modules/forkpty (configure.ac): Update.
35877         * modules/openpty (configure.ac): Update.
35878
35879 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35880
35881         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35882         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35883
35884 2010-03-25  Eric Blake  <eblake@redhat.com>
35885
35886         maint: use pragma consistently across replacement headers
35887         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35888         * lib/dirent.in.h (system_header): Likewise.
35889         * lib/errno.in.h (system_header): Likewise.
35890         * lib/float.in.h (system_header): Likewise.
35891         * lib/getopt.in.h (system_header): Likewise.
35892         * lib/iconv.in.h (system_header): Likewise.
35893         * lib/inttypes.in.h (system_header): Likewise.
35894         * lib/langinfo.in.h (system_header): Likewise.
35895         * lib/locale.in.h (system_header): Likewise.
35896         * lib/math.in.h (system_header): Likewise.
35897         * lib/netdb.in.h (system_header): Likewise.
35898         * lib/netinet_in.in.h (system_header): Likewise.
35899         * lib/pty.in.h (system_header): Likewise.
35900         * lib/sched.in.h (system_header): Likewise.
35901         * lib/se-selinux.in.h (system_header): Likewise.
35902         * lib/search.in.h (system_header): Likewise.
35903         * lib/spawn.in.h (system_header): Likewise.
35904         * lib/stdarg.in.h (system_header): Likewise.
35905         * lib/stdint.in.h (system_header): Likewise.
35906         * lib/string.in.h (system_header): Likewise.
35907         * lib/strings.in.h (system_header): Likewise.
35908         * lib/sys_file.in.h (system_header): Likewise.
35909         * lib/sys_ioctl.in.h (system_header): Likewise.
35910         * lib/sys_socket.in.h (system_header): Likewise.
35911         * lib/sys_times.in.h (system_header): Likewise.
35912         * lib/sys_utsname.in.h (system_header): Likewise.
35913         * lib/sys_wait.in.h (system_header): Likewise.
35914         * lib/sysexits.in.h (system_header): Likewise.
35915         * lib/unistd.in.h (system_header): Likewise.
35916         * lib/wctype.in.h (system_header): Likewise.
35917
35918         arpa/inet: fix mingw compilation warning
35919         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35920         Reported by Matthew Bolte.
35921
35922 2010-03-25  Bruno Haible  <bruno@clisp.org>
35923
35924         Avoid collision between gnulib wrapper and libintl wrapper.
35925         * lib/printf.c (printf): Don't define if a printf wrapper is already
35926         defined in intl/printf.c.
35927         Reported by Michel Boaventura <michel@michelboaventura.com>.
35928
35929 2010-03-25  Bruno Haible  <bruno@clisp.org>
35930
35931         Use ANSI C.
35932         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35933
35934 2010-03-25  Bruno Haible  <bruno@clisp.org>
35935
35936         Minor formatting changes.
35937         * lib/acosl.c: Insert space before function argument list.
35938         * lib/argz.c: Likewise.
35939         * lib/asinl.c: Likewise.
35940         * lib/expl.c: Likewise.
35941         * lib/gen-uni-tables.c: Likewise.
35942         * lib/gettext.h: Likewise.
35943         * lib/glthread/lock.h: Likewise.
35944         * lib/tanl.c: Likewise.
35945         * lib/uniname/uniname.c: Likewise.
35946         * tests/test-idpriv-drop.c: Likewise.
35947         * tests/test-idpriv-droptemp.c: Likewise.
35948         * tests/test-lock.c: Likewise.
35949         * tests/test-tls.c: Likewise.
35950         * lib/argp-help.c: Insert space before function-like macro argument
35951         list.
35952         * lib/memcmp.c: Likewise.
35953         * tests/test-base64.c: Likewise.
35954         * lib/localename.c: Insert space before sizeof's argument list.
35955         * lib/safe-alloc.h: Likewise.
35956         * lib/file-set.h: Insert space before macro argument list.
35957         * tests/test-argp.c: Likewise.
35958         * lib/argp-namefrob.h: Insert space before function parameter list.
35959         * lib/getaddrinfo.c: Likewise.
35960         * lib/netdb.in.h: Likewise.
35961         * lib/parse-duration.h: Likewise.
35962         * lib/parse-duration.c: Likewise.
35963         * lib/poll.c: Likewise.
35964         * lib/select.c: Likewise.
35965         * lib/trim.h: Likewise.
35966         * tests/test-usleep.c: Likewise.
35967         * lib/ldexpl.c: Insert space before function parameter list and before
35968         function argument list.
35969         * lib/logl.c: Likewise.
35970         * lib/sqrtl.c: Likewise.
35971         * lib/trim.c: Likewise.
35972         * lib/cosl.c: Use GNU style indentation. Insert space before function
35973         argument list.
35974         * lib/sinl.c: Likewise.
35975         * lib/tsearch.c: Insert space after 'for'.
35976         Reported by Jim Meyering.
35977
35978 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35979
35980         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35981         config header before grepping, as it's not present before
35982         autoreconf/configure are run.  Reported by Simon Josefsson.
35983
35984 2010-03-23  Bruno Haible  <bruno@clisp.org>
35985
35986         pt_chown: Make it work with automake < 1.11.
35987         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35988         Reported by Simon Josefsson.
35989
35990 2010-03-23  Bruno Haible  <bruno@clisp.org>
35991
35992         pt_chown: Don't depend on GPLed modules.
35993         * lib/pt_chown.c: Don't include idpriv.h.
35994         (main): Don't drop privileges.
35995         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35996         Reported by Simon Josefsson.
35997
35998 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35999
36000         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36001         suggestions from karl@freefriends.org (Karl Berry).
36002
36003 2010-03-22  Eric Blake  <eblake@redhat.com>
36004
36005         gethostname: further tweaks
36006         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36007         are overriding gethostname.
36008         Suggested by Bruno Haible.
36009
36010 2010-03-21  Bruno Haible  <bruno@clisp.org>
36011
36012         Fix comments.
36013         * lib/forkpty.c (rpl_forkpty): Fix comment.
36014         * lib/openpty.c (rpl_openpty): Likewise.
36015         Reported by Eric Blake.
36016
36017 2010-03-22  Eric Blake  <eblake@redhat.com>
36018
36019         gethostname: fix build on mingw
36020         * lib/unistd.in.h (includes): Work around fact that mingw
36021         <winsock2.h> re-includes <unistd.h>, by avoiding any
36022         redeclarations if we are being included by <winsock2.h>.
36023         Reported by Matthias Bolte.
36024
36025 2010-03-21  Bruno Haible  <bruno@clisp.org>
36026
36027         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36028         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36029         modifications.
36030         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36031         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36032         provide the replacement.
36033         * modules/forkpty (Depends-on): Add openpty, login_tty.
36034         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36035         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36036         * doc/glibc-functions/forkpty.texi: More supported platforms.
36037         * config/srclist.txt: Add forkpty.c (commented).
36038
36039 2010-03-21  Bruno Haible  <bruno@clisp.org>
36040
36041         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36042         (Makefile.am): Verify that PTY_LIB is defined.
36043
36044         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36045
36046 2010-03-21  Bruno Haible  <bruno@clisp.org>
36047
36048         Tests for module 'login_tty'.
36049         * modules/login_tty-tests: New file.
36050         * tests/test-login_tty.c: New file.
36051
36052         New module 'login_tty'.
36053         * lib/login_tty.c: New file.
36054         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36055         * modules/login_tty: New file.
36056         * doc/glibc-functions/login_tty.texi: Mention the new module.
36057
36058 2010-03-21  Bruno Haible  <bruno@clisp.org>
36059
36060         login_tty: Documentation.
36061         * doc/glibc-functions/login_tty.texi: New file.
36062         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36063
36064 2010-03-21  Bruno Haible  <bruno@clisp.org>
36065
36066         pty: Consistent macro naming.
36067         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36068         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36069         * modules/pty (configure.ac): Update.
36070
36071 2010-03-21  Bruno Haible  <bruno@clisp.org>
36072
36073         Tests for openpty: Make stricter.
36074         * tests/test-openpty.c (main): Add test of canonical processing and
36075         erase.
36076         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36077
36078         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36079         * lib/openpty.c (openpty): New replacement function.
36080         * lib/pty.in.h: Include <termios.h>.
36081         (openpty): Update declaration. Add comments.
36082         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36083         is not declared, arrange to provide the replacement. Check for _getpty
36084         and posix_openpt.
36085         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36086         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36087         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36088         * modules/pty-tests (test_pty_c___LDADD): New variable.
36089         * doc/glibc-functions/openpty.texi: More supported platforms.
36090
36091 2010-03-21  Bruno Haible  <bruno@clisp.org>
36092
36093         setenv: Tweaks.
36094         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36095         the test program.
36096         * doc/posix-functions/setenv.texi: Update platforms list.
36097
36098 2010-03-21  Bruno Haible  <bruno@clisp.org>
36099
36100         New module 'unlockpt'.
36101         * lib/unlockpt.c: New file, from glibc with modifications.
36102         * m4/unlockpt.m4: New file.
36103         * modules/unlockpt: New file.
36104         * lib/stdlib.in.h (unlockpt): New declaration.
36105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36106         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36107         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36108         HAVE_UNLOCKPT.
36109         * doc/posix-functions/unlockpt.texi: Mention the new module.
36110         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36111         * config/srclist.txt: Add unlockpt.c (commented).
36112
36113 2010-03-21  Jim Meyering  <meyering@redhat.com>
36114
36115         maint.mk: prohibit inclusion of "intprops.h" without use
36116         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36117
36118 2010-03-21  Bruno Haible  <bruno@clisp.org>
36119
36120         New module 'grantpt'.
36121         * lib/grantpt.c: New file, from glibc with modifications.
36122         * m4/grantpt.m4: New file.
36123         * modules/grantpt: New file.
36124         * lib/stdlib.in.h (grantpt): New declaration.
36125         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36126         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36127         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36128         HAVE_GRANTPT.
36129         * doc/posix-functions/grantpt.texi: Mention the new module.
36130         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36131         * config/srclist.txt: Add grantpt.c (commented).
36132
36133 2010-03-21  Bruno Haible  <bruno@clisp.org>
36134
36135         New module 'pt_chown'.
36136         * lib/pt_chown.c: New file, from glibc with modifications.
36137         * lib/pty-private.h: New file, from glibc with modifications.
36138         * modules/pt_chown: New file.
36139         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36140
36141 2010-03-21  Bruno Haible  <bruno@clisp.org>
36142
36143         Tests for module 'ptsname'.
36144         * modules/ptsname-tests: New file.
36145         * tests/test-ptsname.c: New file.
36146
36147         New module 'ptsname'.
36148         * lib/ptsname.c: New file, from glibc with modifications.
36149         * m4/ptsname.m4: New file.
36150         * modules/ptsname: New file.
36151         * lib/stdlib.in.h (ptsname): New declaration.
36152         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36153         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36154         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36155         HAVE_PTSNAME.
36156         * doc/posix-functions/ptsname.texi: Mention the new module.
36157         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36158         * config/srclist.txt: Add ptsname.c (commented).
36159
36160 2010-03-21  Bruno Haible  <bruno@clisp.org>
36161
36162         Tests for module 'ttyname_r'.
36163         * modules/ttyname_r-tests: New file.
36164         * tests/test-ttyname_r.c: New file.
36165
36166         New module 'ttyname_r'.
36167         * lib/ttyname_r.c: New file.
36168         * m4/ttyname_r.m4: New file.
36169         * modules/ttyname_r: New file.
36170         * lib/unistd.in.h (ttyname_r): New declaration.
36171         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36172         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36173         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36174         HAVE_TTYNAME_R.
36175         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36176         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36177
36178 2010-03-20  Bruno Haible  <bruno@clisp.org>
36179
36180         signal: Undefine macro definitions in C++ mode.
36181         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36182         sigfillset): Undefine macro definitions from the system header in C++
36183         mode.
36184         Reported by John W. Eaton <jwe@gnu.org>.
36185
36186 2010-03-20  Bruno Haible  <bruno@clisp.org>
36187
36188         Ensure no #include statements inside extern "C" { ... }.
36189         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36190         contain #include statements.
36191         * lib/time.in.h: Likewise.
36192
36193 2010-03-20  Bruno Haible  <bruno@clisp.org>
36194
36195         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36196         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36197         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36198         Reported by John W. Eaton <jwe@gnu.org>.
36199
36200 2010-03-20  Bruno Haible  <bruno@clisp.org>
36201
36202         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36203         Reported by Jim Meyering.
36204
36205 2010-03-20  Bruno Haible  <bruno@clisp.org>
36206
36207         pipe: Set errno upon failure.
36208         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36209         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36210         errno value in error message.
36211
36212 2010-03-20  Bruno Haible  <bruno@clisp.org>
36213             Jim Meyering  <meyering@redhat.com>
36214
36215         lchown: Avoid "unused variable" warning.
36216         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36217
36218 2010-03-20  Bruno Haible  <bruno@clisp.org>
36219
36220         Work around unlink() bug on MacOS X 10.5.6.
36221         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36222         attempting to unlink a parent directory.
36223         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36224         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36225         activate for the replacement function.
36226         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36227
36228 2010-03-20  Bruno Haible  <bruno@clisp.org>
36229
36230         Fix link errors on Solaris 8.
36231         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36232         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36233
36234 2010-03-19  Jim Meyering  <meyering@redhat.com>
36235
36236         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36237         The _LIBC implementation of build_range_exp correctly honors the
36238         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36239         However, the non-_LIBC implementation would ignore that syntax-bit
36240         flag and return REG_ERANGE unconditionally.
36241         This change makes it honor that flag.
36242         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36243         Make two pointer parameters "const".
36244         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36245         (parse_bracket_exp): Update caller.
36246
36247         regex.m4: correct the reversed range endpoint ([b-a]) test
36248         * m4/regex.m4: When requiring that [b-a] evoke failure,
36249         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36250         test pass once again for x86-based systems.
36251
36252 2010-03-19  Bruno Haible  <bruno@clisp.org>
36253
36254         scandir: Fix link error on Solaris 8.
36255         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36256         macros.
36257
36258 2010-03-19  Bruno Haible  <bruno@clisp.org>
36259
36260         getusershell: Fix documentation.
36261         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36262         module.
36263         * doc/glibc-functions/setusershell.texi: Likewise.
36264
36265         getusershell: Provide declaration, missing on Solaris 9.
36266         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36267         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36268         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36269         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36271         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36272         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36273         HAVE_GETUSERSHELL.
36274         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36275
36276 2010-03-19  Bruno Haible  <bruno@clisp.org>
36277
36278         wctype: Provide iswblank function.
36279         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36280         exists and is fine.
36281         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36282         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36283         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36284         * doc/posix-functions/iswblank.texi: Update.
36285
36286 2010-03-19  Bruno Haible  <bruno@clisp.org>
36287
36288         Tests of module 'pty' in C++ mode.
36289         * modules/pty-tests: New file.
36290         * tests/test-pty-c++.cc: New file.
36291         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36292
36293 2010-03-19  Eric Blake  <eblake@redhat.com>
36294
36295         logb: fix documentation
36296         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36297         1.5 declaration bug.
36298
36299         forkpty, openpty: prefer glibc's const-safe prototype
36300         * lib/forkpty.c (rpl_forkpty): New file.
36301         * lib/openpty.c (rpl_openpty): Likewise.
36302         * modules/forkpty (Files): Distribute it.
36303         * modules/openpty (Files): Likewise.
36304         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36305         check...
36306         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36307         replacement for for non-const BSD signature.
36308         * modules/pty (Makefile.am): Substitute witnesses.
36309         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36310         * tests/test-forkpty.c: Update signature check.
36311         * tests/test-openpty.c: Likewise.
36312         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36313         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36314
36315         forkpty, openpty: split functions into new modules
36316         * modules/pty (Makefile.am): Substitute new witnesses.
36317         (Libraries): Move library detection...
36318         * modules/forkpty: ...into new module.
36319         * modules/openpty: Another new module.
36320         * modules/pty-tests: Rename and split...
36321         * modules/forkpty-tests: ...to this...
36322         * modules/openpty-tests: ...and this.
36323         * tests/test-pty.c: Rename and split...
36324         * tests/test-forkpty.c: ...to this...
36325         * tests/test-openpty.c: ...and this.
36326         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36327         (gl_PTY): Split library searching...
36328         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36329         (gl_FORKPTY, gl_OPENPTY): New macros.
36330         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36331         * NEWS: Mention the split.
36332         * MODULES.html.sh (Misc): Document the modules.
36333         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36334         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36335
36336         pty: improve replacement header
36337         * lib/pty.in.h: New file.
36338         * modules/pty (Files): Ship it.
36339         (Makefile.am): Always build replacement.
36340         * m4/pty.m4: Rename...
36341         * m4/pty_h.m4: ...to this.
36342         (gl_PTY): Modernize setting of witness macros; update check of
36343         forkpty to take proper advantage of cache.
36344         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36345
36346         getopt: avoid compiler warning
36347         * lib/getopt.c (attribute_hidden): Remove unused macro.
36348
36349 2010-03-18  Bruno Haible  <bruno@clisp.org>
36350
36351         Fix link errors on Solaris 8.
36352         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36353         * modules/search-tests (test_search_c___LDADD): Likewise.
36354         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36355         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36356         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36357         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36358         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36359         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36360         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36361
36362 2010-03-18  Bruno Haible  <bruno@clisp.org>
36363
36364         Fix bug introduced on 2010-03-14.
36365         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36366         (gl_SPAWN_H): Require it.
36367         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36368         Reported by Simon Josefsson.
36369
36370 2010-03-18  Bruno Haible  <bruno@clisp.org>
36371
36372         Fix typo introduced on 2009-12-31.
36373         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36374         posix_spawn_file_actions_adddup2.
36375
36376 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36377         and Eric Blake  <eblake@redhat.com>
36378
36379         test-vc-list-files-git: make more robust
36380         * tests/test-vc-list-files-git.sh: Unset problematic environment
36381         variables.  Chain commands together.
36382
36383 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36384
36385         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36386         `AC_CHECK_DECL' invocation.
36387
36388 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36389
36390         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36391         appears before executable statements. Suggested by Petr Sumbera
36392         <Petr.Sumbera@Sun.COM>.
36393
36394 2010-03-14  Bruno Haible  <bruno@clisp.org>
36395
36396         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36397         portability problems. Instead use a simpler test.
36398         (main): Check that invalid arguments are rejected only on Linux.
36399
36400 2010-03-14  Bruno Haible  <bruno@clisp.org>
36401
36402         Fix bug introduced on 2009-12-31.
36403         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36404         gl_PREREQ_SYS_H_WINSOCK2 always.
36405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36406         SYS_SOCKET_H variable.
36407         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36408         Update comments.
36409         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36410         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36411         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36412         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36413         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36414
36415 2010-03-14  Bruno Haible  <bruno@clisp.org>
36416
36417         Fix values returned by sinl, cosl.
36418         * lib/trigl.h: Add specification comments.
36419         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36420         that combines the values from the precomputed table with the values of
36421         the Chebyshev polynomials.
36422
36423 2010-03-14  Bruno Haible  <bruno@clisp.org>
36424
36425         Fix compilation error when modules 'posix_spawn[p]' are not used.
36426         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36427         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36428
36429 2010-03-14  Bruno Haible  <bruno@clisp.org>
36430
36431         Fix compilation error on mingw when module 'time_r' is not used.
36432         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36433         is 1.
36434         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36435         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36436         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36437         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36438
36439 2010-03-14  Bruno Haible  <bruno@clisp.org>
36440
36441         Fix compilation error with Sun C.
36442         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36443         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36444         instead of GCC specific ULONG_LONG_MAX.
36445         * lib/xstrtoll.c: Likewise.
36446         * lib/xstrtoull.c: Likewise.
36447
36448 2010-03-13  Bruno Haible  <bruno@clisp.org>
36449
36450         Allow the user to disable C++ code and tests.
36451         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36452         (gl_PROG_ANSI_CXX): Require it.
36453
36454 2010-03-13  Bruno Haible  <bruno@clisp.org>
36455
36456         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36457         cases.
36458
36459 2010-03-13  Bruno Haible  <bruno@clisp.org>
36460
36461         Test that gnulib does not break the standard C++ headers.
36462         * tests/test-locale-c++2.cc: New file.
36463         * modules/locale-tests (Files): Add it.
36464         (Makefile.am): Compile it for test-locale-c++.
36465         * tests/test-math-c++2.cc: New file.
36466         * modules/math-tests (Files): Add it.
36467         (Makefile.am): Compile it for test-math-c++.
36468         * tests/test-signal-c++2.cc: New file.
36469         * modules/signal-tests (Files): Add it.
36470         (Makefile.am): Compile it for test-signal-c++.
36471         * tests/test-stdio-c++2.cc: New file.
36472         * modules/stdio-tests (Files): Add it.
36473         (Makefile.am): Compile it for test-stdio-c++.
36474         * tests/test-stdlib-c++2.cc: New file.
36475         * modules/stdlib-tests (Files): Add it.
36476         (Makefile.am): Compile it for test-stdlib-c++.
36477         * tests/test-string-c++2.cc: New file.
36478         * modules/string-tests (Files): Add it.
36479         (Makefile.am): Compile it for test-string-c++.
36480         * tests/test-time-c++2.cc: New file.
36481         * modules/time-tests (Files): Add it.
36482         (Makefile.am): Compile it for test-time-c++.
36483         Reported by John W. Eaton <jwe@gnu.org>.
36484
36485 2010-03-13  Bruno Haible  <bruno@clisp.org>
36486
36487         * gnulib-tool (func_usage): Clarify which options are available for
36488         --create-testdir and --create-megatestdir.
36489
36490 2010-03-13  Bruno Haible  <bruno@clisp.org>
36491
36492         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36493         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36494         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36495         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36496         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36497         when appropriate.
36498         Reported by Jim Meyering.
36499
36500 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36501
36502         * gnulib-tool (func_import): Explain origin of code.
36503
36504 2010-03-12  Bruno Haible  <bruno@clisp.org>
36505
36506         Fix problem with automake's definition of CXXLINK.
36507         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36508         Reported by Simon Josefsson and Ludovic Courtès.
36509
36510 2010-03-12  Bruno Haible  <bruno@clisp.org>
36511
36512         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36513         stable releases.
36514
36515 2010-03-11  Bruno Haible  <bruno@clisp.org>
36516
36517         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36518         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36519         whether the system provides one variant or multiple variants of the
36520         function.
36521         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36522         C++ compilers.
36523         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36524         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36525         Reported by Jim Meyering.
36526
36527 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36528
36529         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36530
36531 2010-03-08  Bruno Haible  <bruno@clisp.org>
36532
36533         gnulib-tool: Add support for --libtool in --create-testdir.
36534         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36535         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36536
36537 2010-03-08  Eric Blake  <eblake@redhat.com>
36538
36539         gnulib-tool.texi: mention possibility of git submodule
36540         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36541         submodules.
36542         * doc/.gitignore: Ignore another generated file.
36543
36544 2010-03-08  Karl Berry  <karl@gnu.org>
36545
36546         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36547         of committing gnulib files while skipping others.
36548
36549 2010-03-07  Bruno Haible  <bruno@clisp.org>
36550
36551         Tests of module 'wctype' in C++ mode.
36552         * tests/test-wctype-c++.cc: New file.
36553         * modules/wctype-tests (Files): Add it and tests/signature.h.
36554         (Depends-on): Add ansi-c++-opt.
36555         (Makefile.am): Arrange to compile and run test-wctype-c++.
36556
36557         Tests of module 'wchar' in C++ mode.
36558         * tests/test-wchar-c++.cc: New file.
36559         * modules/wchar-tests (Files): Add it and tests/signature.h.
36560         (Depends-on): Add ansi-c++-opt.
36561         (Makefile.am): Arrange to compile and run test-wchar-c++.
36562         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36563         gl_MODULE_INDICATOR.
36564
36565         Tests of module 'unistd' in C++ mode.
36566         * tests/test-unistd-c++.cc: New file.
36567         * modules/unistd-tests (Files): Add it and tests/signature.h.
36568         (Depends-on): Add ansi-c++-opt.
36569         (Makefile.am): Arrange to compile and run test-unistd-c++.
36570         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36571         gl_MODULE_INDICATOR.
36572
36573         Tests of module 'time' in C++ mode.
36574         * tests/test-time-c++.cc: New file.
36575         * modules/time-tests (Files): Add it and tests/signature.h.
36576         (Depends-on): Add ansi-c++-opt.
36577         (Makefile.am): Arrange to compile and run test-time-c++.
36578         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36579
36580         Tests of module 'sys_time' in C++ mode.
36581         * tests/test-sys_time-c++.cc: New file.
36582         * modules/sys_time-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_time-c++.
36585         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36586         gl_MODULE_INDICATOR.
36587
36588         Tests of module 'sys_stat' in C++ mode.
36589         * tests/test-sys_stat-c++.cc: New file.
36590         * modules/sys_stat-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_stat-c++.
36593         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36594         gl_MODULE_INDICATOR.
36595
36596         Tests of module 'sys_socket' in C++ mode.
36597         * tests/test-sys_socket-c++.cc: New file.
36598         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36599         (Depends-on): Add ansi-c++-opt.
36600         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36602         gl_MODULE_INDICATOR.
36603
36604         Tests of module 'sys_select' in C++ mode.
36605         * tests/test-sys_select-c++.cc: New file.
36606         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36607         (Depends-on): Add ansi-c++-opt.
36608         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36609         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36610         gl_MODULE_INDICATOR.
36611
36612         Tests of module 'sys_ioctl' in C++ mode.
36613         * tests/test-sys_ioctl-c++.cc: New file.
36614         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36615         (Depends-on): Add ansi-c++-opt.
36616         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36618         gl_MODULE_INDICATOR.
36619
36620         Tests of module 'string' in C++ mode.
36621         * tests/test-string-c++.cc: New file.
36622         * modules/string-tests (Files): Add it and tests/signature.h.
36623         (Depends-on): Add ansi-c++-opt.
36624         (Makefile.am): Arrange to compile and run test-string-c++.
36625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36626         gl_MODULE_INDICATOR.
36627
36628         Tests of module 'stdlib' in C++ mode.
36629         * tests/test-stdlib-c++.cc: New file.
36630         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36631         (Depends-on): Add ansi-c++-opt.
36632         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36633         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36634         gl_MODULE_INDICATOR.
36635
36636         Tests of module 'stdio' in C++ mode.
36637         * tests/test-stdio-c++.cc: New file.
36638         * modules/stdio-tests (Files): Add it and tests/signature.h.
36639         (Depends-on): Add ansi-c++-opt.
36640         (Makefile.am): Arrange to compile and run test-stdio-c++.
36641         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36642         gl_MODULE_INDICATOR.
36643
36644         Tests of module 'spawn' in C++ mode.
36645         * tests/test-spawn-c++.cc: New file.
36646         * modules/spawn-tests (Files): Add it and tests/signature.h.
36647         (Depends-on): Add ansi-c++-opt.
36648         (Makefile.am): Arrange to compile and run test-spawn-c++.
36649         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36650         gl_MODULE_INDICATOR.
36651
36652         Tests of module 'signal' in C++ mode.
36653         * tests/test-signal-c++.cc: New file.
36654         * modules/signal-tests (Files): Add it and tests/signature.h.
36655         (Depends-on): Add ansi-c++-opt.
36656         (Makefile.am): Arrange to compile and run test-signal-c++.
36657         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36658         gl_MODULE_INDICATOR.
36659
36660         Tests of module 'search' in C++ mode.
36661         * tests/test-search-c++.cc: New file.
36662         * modules/search-tests (Files): Add it and tests/signature.h.
36663         (Depends-on): Add ansi-c++-opt.
36664         (Makefile.am): Arrange to compile and run test-search-c++.
36665         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36666         gl_MODULE_INDICATOR.
36667
36668         Tests of module 'math' in C++ mode.
36669         * tests/test-math-c++.cc: New file.
36670         * modules/math-tests (Files): Add it and tests/signature.h.
36671         (Depends-on): Add ansi-c++-opt.
36672         (Makefile.am): Arrange to compile and run test-math-c++.
36673         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36674
36675         Tests of module 'locale' in C++ mode.
36676         * tests/test-locale-c++.cc: New file.
36677         * modules/locale-tests (Files): Add it and tests/signature.h.
36678         (Depends-on): Add ansi-c++-opt.
36679         (Makefile.am): Arrange to compile and run test-locale-c++.
36680         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36681         gl_MODULE_INDICATOR.
36682
36683         Tests of module 'langinfo' in C++ mode.
36684         * tests/test-langinfo-c++.cc: New file.
36685         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36686         (Depends-on): Add ansi-c++-opt.
36687         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36688         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36689         gl_MODULE_INDICATOR.
36690
36691         Tests of module 'iconv-h' in C++ mode.
36692         * tests/test-iconv-h-c++.cc: New file.
36693         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36694         (Depends-on): Add ansi-c++-opt.
36695         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36696
36697         Tests of module 'glob' in C++ mode.
36698         * tests/test-glob-c++.cc: New file.
36699         * modules/glob-tests (Files): Add it.
36700         (Depends-on): Add ansi-c++-opt.
36701         (Makefile.am): Arrange to compile and run test-glob-c++.
36702
36703         Tests of module 'fcntl-h' in C++ mode.
36704         * tests/test-fcntl-h-c++.cc: New file.
36705         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36706         (Depends-on): Add ansi-c++-opt.
36707         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36708         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36709         gl_MODULE_INDICATOR.
36710
36711         Tests of module 'dirent' in C++ mode.
36712         * tests/test-dirent-c++.cc: New file.
36713         * modules/dirent-tests (Files): Add it and tests/signature.h.
36714         (Depends-on): Add ansi-c++-opt.
36715         (Makefile.am): Arrange to compile and run test-dirent-c++.
36716         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36717         gl_MODULE_INDICATOR.
36718
36719         New module 'ansi-c++-opt'.
36720         * modules/ansi-c++-opt: New file.
36721         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36722
36723         Document C++ namespace mode.
36724         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36725
36726         wctype: Avoid #define replacements in C++ mode.
36727         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36728         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36729         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36730         In C++, define a namespaced alias symbol.
36731         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36732         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36733         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36734         rule.
36735
36736         wchar: Avoid #define replacements in C++ mode.
36737         * lib/wchar.in.h: Include c++defs.h.
36738         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36739         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36740         symbol.
36741         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36742         * modules/wchar (Depends-on): Add c++defs.
36743         (Makefile.am): Update wchar.h rule.
36744
36745         unistd: Avoid #define replacements in C++ mode.
36746         * lib/unistd.in.h: Include c++defs.h.
36747         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36748         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36749         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36750         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36751         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36752         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36753         symbol.
36754         (environ): Update.
36755         * modules/unistd (Depends-on): Add c++defs.
36756         (Makefile.am): Update unistd.h rule.
36757
36758         time: Avoid #define replacements in C++ mode.
36759         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36760         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36761         define a namespaced alias symbol.
36762         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36763         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36764         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36765         * modules/time (Depends-on): Add c++defs, warn-on-use.
36766         (Makefile.am): Update time.h rule.
36767         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36768         * modules/nanosleep (configure.ac): Likewise.
36769         * modules/strptime (configure.ac): Likewise.
36770         * modules/timegm (configure.ac): Likewise.
36771
36772         sys_time: Avoid #define replacements in C++ mode.
36773         * lib/sys_time.in.h: Include c++defs.h.
36774         (gettimeofday): In C++, define a namespaced alias symbol.
36775         * modules/sys_time (Depends-on): Add c++defs.
36776         (Makefile.am): Update sys/time.h rule.
36777
36778         sys_stat: Avoid #define replacements in C++ mode.
36779         * lib/sys_stat.in.h: Include c++defs.h.
36780         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36781         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36782         namespaced alias symbol.
36783         In C++, define a namespaced alias symbol.
36784         * modules/sys_stat (Depends-on): Add c++defs.
36785         (Makefile.am): Update sys/stat.h rule.
36786
36787         sys_socket: Avoid #define replacements in C++ mode.
36788         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36789         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36790         definitions also when the system has a <sys/socket.h>.
36791         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36792         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36793         In C++, define a namespaced alias symbol.
36794         * modules/sys_socket (Depends-on): Add c++defs.
36795         (Makefile.am): Update sys/socket.h rule.
36796
36797         sys_select: Avoid #define replacements in C++ mode.
36798         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36799         definitions also when the system has a <sys/select.h>.
36800         (select): In C++, define a namespaced alias symbol.
36801         * modules/sys_select (Depends-on): Add c++defs.
36802         (Makefile.am): Update sys/select.h rule.
36803
36804         sys_ioctl: Avoid #define replacements in C++ mode.
36805         * lib/sys_ioctl.in.h: Include c++defs.h.
36806         (ioctl): In C++, define a namespaced alias symbol.
36807         * modules/sys_ioctl (Depends-on): Add c++defs.
36808         (Makefile.am): Update sys/ioctl.h rule.
36809
36810         string: Avoid #define replacements in C++ mode.
36811         * lib/string.in.h: Include c++defs.h.
36812         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36813         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36814         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36815         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36816         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36817         * modules/string (Depends-on): Add c++defs.
36818         (Makefile.am): Update string.h rule.
36819
36820         stdlib: Avoid #define replacements in C++ mode.
36821         * lib/stdlib.in.h: Include c++defs.h.
36822         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36823         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36824         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36825         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36826         symbol.
36827         * modules/stdlib (Depends-on): Add c++defs.
36828         (Makefile.am): Update stdlib.h rule.
36829
36830         stdio: Avoid #define replacements in C++ mode.
36831         * lib/stdio.in.h: Include c++defs.h.
36832         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36833         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36834         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36835         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36836         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36837         namespaced alias symbol.
36838         * modules/stdio (Depends-on): Add c++defs.
36839         (Makefile.am): Update stdio.h rule.
36840
36841         spawn: Avoid #define replacements in C++ mode.
36842         * lib/spawn.in.h: Include c++defs.h.
36843         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36844         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36845         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36846         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36847         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36848         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36849         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36850         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36851         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36852         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36853         In C++, define a namespaced alias symbol.
36854         * modules/spawn (Depends-on): Add c++defs.
36855         (Makefile.am): Update spawn.h rule.
36856
36857         signal: Avoid #define replacements in C++ mode.
36858         * lib/signal.in.h: Include c++defs.h.
36859         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36860         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36861         namespaced alias symbol.
36862         * modules/signal (Depends-on): Add c++defs.
36863         (Makefile.am): Update signal.h rule.
36864
36865         search: Avoid #define replacements in C++ mode.
36866         * lib/search.in.h: Include c++defs.h.
36867         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36868         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36869         symbol.
36870         * modules/search (Depends-on): Add c++defs.
36871         (Makefile.am): Update search.h rule.
36872
36873         math: Avoid #define replacements in C++ mode.
36874         * lib/math.in.h: Include c++defs.h.
36875         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36876         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36877         trunc, truncl): In C++, define a namespaced alias symbol.
36878         * modules/math (Depends-on): Add c++defs.
36879         (Makefile.am): Update math.h rule.
36880
36881         locale: Avoid #define replacements in C++ mode.
36882         * lib/locale.in.h: Include c++defs.h.
36883         (duplocale): In C++, define a namespaced alias symbol.
36884         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36885         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36886         * modules/locale (Depends-on): Add c++defs.
36887         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36888
36889         langinfo: Avoid #define replacements in C++ mode.
36890         * lib/langinfo.in.h: Include c++defs.h.
36891         (nl_langinfo): In C++, define a namespaced alias symbol.
36892         * modules/langinfo (Depends-on): Add c++defs.
36893         (Makefile.am): Update langinfo.h rule.
36894
36895         iconv-h: Avoid #define replacements in C++ mode.
36896         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36897         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36898         symbol.
36899         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36900         whenever iconv is present.
36901         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36902         (Makefile.am): Update iconv.h rule.
36903
36904         glob: Avoid #define replacements in C++ mode.
36905         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36906         (_gl_glob_errfunc_fn): New type.
36907         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36908         symbol.
36909         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36910         (Makefile.am): Update glob.h rule.
36911
36912         fcntl-h: Avoid #define replacements in C++ mode.
36913         * lib/fcntl.in.h: Include c++defs.h.
36914         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36915         * modules/fcntl-h (Depends-on): Add c++defs.
36916         (Makefile.am): Update fcntl.h rule.
36917
36918         dirent: Avoid #define replacements in C++ mode.
36919         * lib/dirent.in.h: Include c++defs.h.
36920         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36921         namespaced alias symbol.
36922         (dirfd): Update declaration.
36923         * modules/dirent (Depends-on): Add c++defs.
36924         (Makefile.am): Update dirent.h rule.
36925
36926         ctype: Make it usable in C++ code.
36927         * lib/ctype.in.h: Include c++defs.h.
36928         (isblank): Declare as extern "C".
36929         * modules/ctype (Depends-on): Add c++defs.
36930         (Makefile.am): Update ctype.h rule.
36931
36932         New module 'c++defs'.
36933         * modules/c++defs: New file.
36934         * build-aux/c++defs.h: New file.
36935         Reported by John W. Eaton <jwe@gnu.org>.
36936
36937 2010-03-07  Bruno Haible  <bruno@clisp.org>
36938
36939         logb: Provide missing declaration for Cygwin.
36940         * lib/math.in.h (logb): New declaration.
36941         * m4/logb.m4: New file.
36942         * modules/logb (Files): Add m4/logb.m4.
36943         (Depends-on): Add math.
36944         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36945         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36947         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36948         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36949
36950 2010-03-07  Bruno Haible  <bruno@clisp.org>
36951
36952         Fix test-cond link error.
36953         * tests/test-cond.c: Include <stdio.h>.
36954
36955 2010-03-07  Bruno Haible  <bruno@clisp.org>
36956
36957         Fix test-dirent-safer link error.
36958         * modules/dirent-safer-tests (Makefile.am): Define
36959         test_dirent_safer_LDADD.
36960
36961 2010-03-07  Bruno Haible  <bruno@clisp.org>
36962
36963         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36964         among default module list.
36965
36966 2010-03-07  Bruno Haible  <bruno@clisp.org>
36967
36968         Fix link error on platforms with GNU libiconv.
36969         * modules/unistr/u8-strcoll-tests (Makefile): Define
36970         test_u8_strcoll_LDADD.
36971         * modules/unistr/u16-strcoll-tests (Makefile): Define
36972         test_u16_strcoll_LDADD.
36973         * modules/unistr/u32-strcoll-tests (Makefile): Define
36974         test_u32_strcoll_LDADD.
36975
36976 2010-03-07  Bruno Haible  <bruno@clisp.org>
36977
36978         Use POSIX declarations for socket functions.
36979         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36980         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36981         rpl_sendto): Change declaration to match POSIX.
36982         * lib/connect.c (rpl_connect): Likewise.
36983         * lib/accept.c (rpl_accept): Likewise.
36984         * lib/bind.c (rpl_bind): Likewise.
36985         * lib/getpeername.c (rpl_getpeername): Likewise.
36986         * lib/getsockname.c (rpl_getsockname): Likewise.
36987         * lib/recv.c (rpl_recv): Likewise.
36988         * lib/send.c (rpl_send): Likewise.
36989         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36990         * lib/sendto.c (rpl_sendto): Likewise.
36991
36992 2010-03-06  Bruno Haible  <bruno@clisp.org>
36993
36994         Clarify access, euidaccess, faccessat.
36995         * doc/posix-functions/faccessat.texi: Mention security problem under
36996         "Other problems", not "Portability problems".
36997         * doc/posix-functions/access.texi: Likewise. Mention a related security
36998         problem.
36999         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37000         * lib/euidaccess.c: Add comments about platforms.
37001         * lib/unistd.in.h (access, euidaccess): Add warnings.
37002
37003 2010-03-07  Bruno Haible  <bruno@clisp.org>
37004
37005         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37006         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37007         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37008         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37009         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37010         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37011         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37012         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37013         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37014         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37015         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37016         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37017         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37018         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37019         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37020         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37021         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37022         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37023         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37024         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37025         Likewise.
37026         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37027         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37028         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37029         Likewise.
37030         * tests/test-spawn.c (main): Make it work when
37031         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37032
37033 2010-03-07  Bruno Haible  <bruno@clisp.org>
37034
37035         Fix incorrect Makefile.am generation in German locale.
37036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37037         Execute sed command with character range in C locale.
37038
37039 2010-03-06  Bruno Haible  <bruno@clisp.org>
37040
37041         Tests for module 'iconv-h'.
37042         * modules/iconv-h-tests: New file.
37043         * tests/test-iconv-h.c: New file.
37044
37045         New module 'iconv-h'.
37046         * modules/iconv-h: New file.
37047         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37048         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37049         (configure.ac): Remove gl_ICONV_H.
37050         (Makefile.am): Remove rule for iconv.h.
37051
37052 2010-03-06  Bruno Haible  <bruno@clisp.org>
37053
37054         More consistent naming of *.m4 files.
37055         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37056         * modules/wctype (Files): Update.
37057
37058         More consistent naming of *.m4 files.
37059         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37060         * modules/wchar (Files): Update.
37061
37062 2010-03-06  Jim Meyering  <meyering@redhat.com>
37063
37064         euidaccess: relax license to LGPLv2+
37065         * modules/euidaccess (License): Relax to LGPLv2+.
37066
37067 2010-03-06  Bruno Haible  <bruno@clisp.org>
37068
37069         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37070         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37071         (Makefile.am): Augment lib_SOURCES instead.
37072
37073 2010-03-04  Jim Meyering  <meyering@redhat.com>
37074
37075         utime: remove obsolete module
37076         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37077         unnecessary for years, and has been marked as obsolete for 10 months.
37078         * modules/utime: Remove file.
37079         * lib/utime.c: Remove file.
37080         * m4/utime.m4: Remove file.
37081         * m4/utimes-null.m4: Remove file.
37082         * doc/posix-functions/utime.texi (utime): Remove reference to
37083         the module.  Move the sole "fixed by gnulib" item into the
37084         "problems not fixed by Gnulib" list.
37085         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37086
37087 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37088
37089         * modules/exit (License): Relax license to LGPLv2+.
37090         (Status): Mark as obsolete.
37091         * NEWS: Mention deprecated 'exit' module.
37092         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37093         of now obsolete 'exit'.
37094
37095 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37096
37097         fts-lgpl: remove unused module
37098         * modules/fts-lgpl: Remove.
37099         * MODULES.html.sh (func_all_modules): Adjust.
37100         * check-module (find_included_lib_files): Adjust.
37101         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37102
37103 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37104
37105         copy-acl: enhance Solaris ACL error handling
37106         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37107         * lib/set-mode-acl.c (qset_acl): Likewise.
37108
37109 2010-03-02  Bruno Haible  <bruno@clisp.org>
37110
37111         spawn: Don't override the system defined values on FreeBSD 8.
37112         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37113         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37114         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37115         if HAVE_POSIX_SPAWN is 1.
37116         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37117
37118 2010-03-01  Bruno Haible  <bruno@clisp.org>
37119
37120         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37121         regarding Automake.
37122
37123 2010-02-25  Bruno Haible  <bruno@clisp.org>
37124
37125         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37126         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37127         setting, not afterwards.
37128         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37129
37130 2010-02-24  Eric Blake  <eblake@redhat.com>
37131
37132         bootstrap, git-version-gen: use timestamp
37133         * build-aux/git-version-gen (scriptversion): Force UTC.
37134         * build-aux/bootstrap (scriptversion): New variable.
37135
37136         bootstrap: allow older git
37137         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37138         older than 1.6.4.  Requested by the libvirt project.
37139
37140 2010-02-23  Eric Blake  <eblake@redhat.com>
37141
37142         warn-on-use: work with old autoconf
37143         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37144         AS_VAR semantics of autoconf 2.60.
37145         Reported by Bruno Haible.
37146
37147         bootstrap: improve some comments
37148         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37149         clarification comments.
37150
37151         gettimeofday: provide correct function
37152         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37153         when replacement is declared, otherwise provide gettimeofday.
37154         Reported by Michael Goffioul.
37155
37156 2010-02-23  Jim Meyering  <meyering@redhat.com>
37157
37158         lib-ignore: relax license to "unlimited", not LGPLv2+
37159         * modules/lib-ignore (License): Relax to "unlimited".
37160
37161 2010-02-23  Jim Meyering  <meyering@redhat.com>
37162
37163         lib-ignore: relax license to LGPLv2+
37164         * modules/lib-ignore (License): Relax to LGPLv2+.
37165
37166 2010-02-22  Eric Blake  <eblake@redhat.com>
37167
37168         lseek: avoid bash 3.2 broken pipe bug
37169         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37170         warning from bash 3.2.
37171         Reported by Ben Pfaff, with analysis from Bruno Haible.
37172
37173         bootstrap: support non-FSF copyright holder
37174         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37175         bootstrap.conf override of COPYRIGHT_HOLDER.
37176         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37177
37178         bootstrap: interoperate with gettext 0.14.1
37179         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37180
37181         bootstrap: allow for alternate submodule location
37182         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37183         hardcoding submodule location.
37184         (gnulib_mk): Allow direct use of Makefile.am.
37185
37186         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37187         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37188         rather than reconfiguring where the submodule points.
37189
37190         gettimeofday: restore support for platforms that lack function
37191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37192         replacement if function is missing.
37193         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37194         * modules/sys_time (Makefile.am): Substitute it.
37195         * lib/sys_time.in.h (gettimeofday): Check it.
37196         Reported by Michael Goffioul.
37197
37198 2010-02-21  Bruno Haible  <bruno@clisp.org>
37199
37200         * lib/stdio.in.h (obstack_printf): Fix typo.
37201
37202 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37203
37204         vc-list-files: use bzr ls's -R option
37205         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37206         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37207
37208 2010-02-21  Jim Meyering  <meyering@redhat.com>
37209
37210         init.sh: fix EXEEXT shims to work also for names like test-prog
37211         * tests/init.sh: Re-exec a better shell, when needed.
37212         If the current shell lacks support for posix $(...), an init.sh-using
37213         test will now try to find a shell that supports that.  If EXEEXT is
37214         nonempty, we also require support for hyphen-in-alias-name and shell
37215         substitutions like ${var#glob}.  Failure to find such a shell results
37216         in a skipped test.
37217
37218 2010-02-21  Bruno Haible  <bruno@clisp.org>
37219
37220         Really work around around "broken pipe" error message from bash 3.2.
37221         * gnulib-tool (func_reset_sigpipe): Remove function.
37222         (echo): In bash 3.2, define to a function that uses printf.
37223         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37224
37225 2010-02-20  Bruno Haible  <bruno@clisp.org>
37226
37227         Restore support for automake 1.9.6 with autoconf 2.61.
37228         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37229         Reported by James Youngman <jay@gnu.org>.
37230
37231 2010-02-20  Bruno Haible  <bruno@clisp.org>
37232
37233         Improve *printf warning condition.
37234         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37235         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37236         and the function is overridden due to SIGPIPE emulation.
37237
37238 2010-02-20  Bruno Haible  <bruno@clisp.org>
37239
37240         * lib/stdio.in.h: Tweak comments.
37241
37242 2010-02-19  Bruno Haible  <bruno@clisp.org>
37243
37244         Make it easier to find modules. New gnulib-tool option '--find'.
37245         * gnulib-tool: New option --find.
37246         (func_usage): Document it.
37247         (func_sanitize_modulelist): New function, extracted from
37248         func_all_modules.
37249         (func_all_modules): Invoke it.
37250         * doc/gnulib-tool.texi (Which modules?): New node.
37251
37252 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37253
37254         * lib/sys_select.in.h: Provide select replacement even if
37255         sys/select.h exists on a system, for Interix.
37256
37257 2010-02-18  Jim Meyering  <meyering@redhat.com>
37258
37259         init.sh: don't use $(...) just yet
37260         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37261         to accommodate e.g., Solaris' /bin/sh.
37262
37263 2010-02-17  Bruno Haible  <bruno@clisp.org>
37264
37265         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37266         Reported by Ludovic Courtès <ludo@gnu.org>.
37267
37268 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37269
37270         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37271         linking with -lintl.
37272
37273 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37274
37275         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37276         if not provided by the system's netdb.h.  Reported by
37277         ludo@gnu.org (Ludovic Courtès).
37278
37279 2010-02-15  Jim Meyering  <meyering@redhat.com>
37280
37281         init.sh: improve portability and efficiency
37282         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37283         "dummy" in a for loop.
37284         Use '!', not '^' to select the complement of a character set used
37285         in a "case" statement.
37286         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37287         Suggestions from Eric Blake.
37288
37289         init.sh: automatically accommodate programs with the .exe suffix
37290         Automatically arrange for an invocation of "prog" to execute the
37291         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37292         may use the simpler "prog", yet still work when built on a system
37293         that requires specifying the added suffix.
37294         Do this by constructing a function named "prog" that invokes
37295         "prog.exe" for each .exe file in selected directories.
37296         * tests/init.sh (find_exe_basenames_): New function.
37297         (create_exe_shim_functions_): New function.
37298         (path_prepend_): Use it.
37299
37300         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37301         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37302         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37303
37304 2010-02-14  Jim Meyering  <meyering@redhat.com>
37305
37306         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37307         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37308         (sc_prohibit_hash_pjw_without_use): New rule.
37309
37310         maint.mk: allow the default upload destination dir to be overridden
37311         * top/maint.mk (upload_dest_dir_): Define with a default that
37312         preserves the status quo.
37313         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37314         Reported by Peter Simons.
37315
37316         maint.mk: prohibit inclusion of "hash.h" without_use
37317         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37318
37319 2010-02-10  Jim Meyering  <meyering@redhat.com>
37320
37321         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37322         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37323
37324 2010-02-09  Eric Blake  <ebb9@byu.net>
37325         and Bruno Haible  <bruno@clisp.org>
37326
37327         obstack-printf-posix: ensure declaration
37328         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37329         extracted from gl_FUNC_OBSTACK_PRINTF.
37330         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37331         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37332         Likewise.
37333         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37334         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37335         0.
37336
37337 2010-02-08  Bruno Haible  <bruno@clisp.org>
37338
37339         gnulib-tool: Fix typo in 2010-02-07 commit.
37340         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37341         Reported by Eric Blake.
37342
37343 2010-02-07  Bruno Haible  <bruno@clisp.org>
37344
37345         gnulib-tool: Fix up caching patches.
37346         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37347         option --no-cache. Use associative arrays when supported by the shell.
37348         (sed_comments): New variable.
37349         (modcache): Renamed from do_cache.
37350         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37351         abbreviate unnecessarily.
37352         (have_associative): New variable.
37353         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37354         way also for ksh and zsh.
37355         (func_init_sed_convert_to_cache_statements): New function, extracted
37356         from func_cache_lookup_module. Add support for associative arrays.
37357         Don't set the c_MODULE_cached variable here. Ignore all lines before
37358         the first field header. Remove only the final newline, not all trailing
37359         newlines. Support empty fields correctly. Limit the use of 'eval' to
37360         assignments.
37361         (func_get_description, func_get_status, func_get_notice,
37362         func_get_applicability, func_get_filelist, func_get_dependencies,
37363         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37364         func_get_automake_snippet, func_get_include_directive,
37365         func_get_link_directive, func_get_license, func_get_maintainer):
37366         Update documentation. List the unoptimized code first. Add support for
37367         associative arrays. Limit the use of 'eval' to assignments.
37368         (func_get_applicability): Undo stylistic pessimisations.
37369         (func_get_automake_snippet, func_get_include_directive): Reduce code
37370         duplication.
37371         (func_modules_transitive_closure, func_modules_add_dummy,
37372         func_modules_notice, func_modules_to_filelist, func_add_file,
37373         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37374         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37375         func_create_testdir, func_create_megatestdir): Update documentation.
37376
37377 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37378
37379         * gnulib-tool (func_cache_lookup_module): Store the module name
37380         belonging to the cache variable; error out if two different
37381         module names map to the same cache variable name.
37382
37383 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37384
37385         gnulib-tool: Make caching optional.
37386         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37387         Update matching short versions of --no-changelog.
37388         (func_usage): Update.
37389         (sed_extract_cache_prog): Renamed from ...
37390         (sed_extract_prog): ... this; revert to old extraction script.
37391         (func_get_description, func_get_status)
37392         (func_get_notice, func_get_applicability, func_get_filelist)
37393         (func_get_dependencies, func_get_autoconf_early_snippet)
37394         (func_get_autoconf_snippet, func_get_automake_snippet)
37395         (func_get_include_directive, func_get_link_directive)
37396         (func_get_license, func_get_maintainer): If $do_cache is false,
37397         use old, non-caching extraction scripts.
37398         Suggestion by Bruno Haible.
37399
37400 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37401
37402         gnulib-tool: cache module metainformation.
37403         * gnulib-tool (sed_extract_prog): Match newline before each
37404         header, and rewrite header to a shell variable suffix.
37405         (func_cache_var, func_cache_lookup_module): New functions,
37406         to turn a module name into a cache variable prefix, and to
37407         look up and cache module metainformation.
37408         (func_get_description, func_get_status)
37409         (func_get_notice, func_get_applicability, func_get_filelist)
37410         (func_get_dependencies, func_get_autoconf_early_snippet)
37411         (func_get_autoconf_snippet, func_get_automake_snippet)
37412         (func_get_include_directive, func_get_link_directive)
37413         (func_get_license, func_get_maintainer): Use
37414         func_cache_lookup_module.
37415
37416 2010-02-07  Bruno Haible  <bruno@clisp.org>
37417
37418         fnctl: Fix missing dependency.
37419         * modules/fcntl (Depends-on): Add getdtablesize.
37420         Reported by John W. Eaton <jwe@gnu.org>.
37421
37422 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37423
37424         Argp: fix recognition of short alias options.
37425
37426         * lib/argp-parse.c (convert_options): Fix improper use of
37427         `|' between character values.
37428         * tests/test-argp.c (group1_option): New alias option
37429         --read (-r).
37430         (group1_parser): Special handling for 'r'.
37431         (test15): New test case.
37432         (test_fun): Add test15.
37433         * tests/test-argp-2.sh: Update expected --help and --usage
37434         outputs.
37435
37436 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37437
37438         * tests/test-argp.c: Fix indentation.
37439
37440 2010-02-04  Eric Blake  <ebb9@byu.net>
37441
37442         gettimeofday: expose type of second argument
37443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37444         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37445         * tests/test-gettimeofday.c: Use it to silence warning.
37446         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37447         the issue.
37448
37449 2010-02-03  Jim Meyering  <meyering@redhat.com>
37450
37451         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37452         * lib/regcomp.c (TYPE_SIGNED): Define.
37453         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37454
37455         regcomp.c: avoid a new -Wshadow warning
37456         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37457
37458 2010-02-01  Jim Meyering  <meyering@redhat.com>
37459
37460         removing useless parentheses in cpp #define directives
37461         For motivation, see commit c0221df4, "define STREQ(a,b)
37462         consistently, removing useless parentheses"
37463         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37464         * lib/mountlist.c (MNT_IGNORE): Likewise.
37465         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37466
37467 2010-02-01  Eric Blake  <ebb9@byu.net>
37468
37469         sys_time: use link-warning
37470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37471         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37472         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37473         * modules/sys_time (Depends-on): Add warn-on-use.
37474         (Makefile.am): Always build replacement.
37475         (configure.ac): Update substitutions.
37476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37477         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37478         bother with SYS_TIME_H.
37479         * modules/gettimeofday (configure.ac): Declare indicator.
37480         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37481         in use.
37482
37483         closein-tests: silence compiler warning
37484         * tests/test-closein.c (main): Ignore fread result.
37485         * modules/closein-tests (Depends-on): Add ignore-value.
37486
37487         tests: silence warning about system return
37488         * tests/test-areadlink-with-size.c (main): Ignore system result.
37489         * tests/test-areadlink.c (main): Likewise.
37490         * tests/test-areadlinkat-with-size.c (main): Likewise.
37491         * tests/test-areadlinkat.c (main): Likewise.
37492         * tests/test-canonicalize-lgpl.c (main): Likewise.
37493         * tests/test-canonicalize.c (main): Likewise.
37494         * tests/test-chown.c (main): Likewise.
37495         * tests/test-fchownat.c (main): Likewise.
37496         * tests/test-fdutimensat.c (main): Likewise.
37497         * tests/test-fstatat.c (main): Likewise.
37498         * tests/test-futimens.c (main): Likewise.
37499         * tests/test-lchown.c (main): Likewise.
37500         * tests/test-link.c (main): Likewise.
37501         * tests/test-linkat.c (main): Likewise.
37502         * tests/test-lstat.c (main): Likewise.
37503         * tests/test-mkdir.c (main): Likewise.
37504         * tests/test-mkdirat.c (main): Likewise.
37505         * tests/test-mkfifo.c (main): Likewise.
37506         * tests/test-mkfifoat.c (main): Likewise.
37507         * tests/test-mknod.c (main): Likewise.
37508         * tests/test-readlink.c (main): Likewise.
37509         * tests/test-remove.c (main): Likewise.
37510         * tests/test-rename.c (main): Likewise.
37511         * tests/test-renameat.c (main): Likewise.
37512         * tests/test-rmdir.c (main): Likewise.
37513         * tests/test-symlink.c (main): Likewise.
37514         * tests/test-symlinkat.c (main): Likewise.
37515         * tests/test-unlink.c (main): Likewise.
37516         * tests/test-unlinkat.c (main): Likewise.
37517         * tests/test-utimens.c (main): Likewise.
37518         * tests/test-utimensat.c (main): Likewise.
37519         * modules/areadlink-tests (Depends-on): Add ignore-value.
37520         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37521         * modules/areadlinkat-tests (Depends-on): Likewise.
37522         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37523         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37524         * modules/canonicalize-tests (Depends-on): Likewise.
37525         * modules/chown-tests (Depends-on): Likewise.
37526         * modules/fdutimensat-tests (Depends-on): Likewise.
37527         * modules/futimens-tests (Depends-on): Likewise.
37528         * modules/lchown-tests (Depends-on): Likewise.
37529         * modules/link-tests (Depends-on): Likewise.
37530         * modules/linkat-tests (Depends-on): Likewise.
37531         * modules/lstat-tests (Depends-on): Likewise.
37532         * modules/mkdir-tests (Depends-on): Likewise.
37533         * modules/mkfifo-tests (Depends-on): Likewise.
37534         * modules/mkfifoat-tests (Depends-on): Likewise.
37535         * modules/mknod-tests (Depends-on): Likewise.
37536         * modules/openat-tests (Depends-on): Likewise.
37537         * modules/readlink-tests (Depends-on): Likewise.
37538         * modules/remove-tests (Depends-on): Likewise.
37539         * modules/rename-tests (Depends-on): Likewise.
37540         * modules/renameat-tests (Depends-on): Likewise.
37541         * modules/rmdir-tests (Depends-on): Likewise.
37542         * modules/symlink-tests (Depends-on): Likewise.
37543         * modules/symlinkat-tests (Depends-on): Likewise.
37544         * modules/unlink-tests (Depends-on): Likewise.
37545         * modules/utimens-tests (Depends-on): Likewise.
37546         * modules/utimensat-tests (Depends-on): Likewise.
37547
37548 2010-01-31  Bruno Haible  <bruno@clisp.org>
37549
37550         Perform the same test for many <math.h> functions.
37551         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37552         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37553         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37554         of gl_MATHFUNC.
37555         * modules/acos (configure.ac): Likewise.
37556         * modules/asin (configure.ac): Likewise.
37557         * modules/atan (configure.ac): Likewise.
37558         * modules/atan2 (configure.ac): Likewise.
37559         * modules/cbrt (configure.ac): Likewise.
37560         * modules/copysign (configure.ac): Likewise.
37561         * modules/cos (configure.ac): Likewise.
37562         * modules/cosh (configure.ac): Likewise.
37563         * modules/erf (configure.ac): Likewise.
37564         * modules/erfc (configure.ac): Likewise.
37565         * modules/exp (configure.ac): Likewise.
37566         * modules/fmod (configure.ac): Likewise.
37567         * modules/hypot (configure.ac): Likewise.
37568         * modules/j0 (configure.ac): Likewise.
37569         * modules/j1 (configure.ac): Likewise.
37570         * modules/jn (configure.ac): Likewise.
37571         * modules/lgamma (configure.ac): Likewise.
37572         * modules/log (configure.ac): Likewise.
37573         * modules/log10 (configure.ac): Likewise.
37574         * modules/log1p (configure.ac): Likewise.
37575         * modules/pow (configure.ac): Likewise.
37576         * modules/remainder (configure.ac): Likewise.
37577         * modules/sin (configure.ac): Likewise.
37578         * modules/sinh (configure.ac): Likewise.
37579         * modules/tan (configure.ac): Likewise.
37580         * modules/tanh (configure.ac): Likewise.
37581         * modules/y0 (configure.ac): Likewise.
37582         * modules/y1 (configure.ac): Likewise.
37583         * modules/yn (configure.ac): Likewise.
37584         Suggested by Paolo Bonzini.
37585
37586 2010-01-31  Bruno Haible  <bruno@clisp.org>
37587
37588         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37589
37590 2010-01-31  Bruno Haible  <bruno@clisp.org>
37591
37592         Work around getdelim() bug on FreeBSD 8.0.
37593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37594         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37595         not work.
37596         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37597         is 1.
37598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37599         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37600         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37601         a non-zero size.
37602         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37603
37604 2010-01-31  Bruno Haible  <bruno@clisp.org>
37605
37606         Work around getline() bug on FreeBSD 8.0.
37607         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37608         and a non-zero size.
37609         * tests/test-getline.c (main): Likewise.
37610         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37611         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37612
37613 2010-01-28  Eric Blake  <ebb9@byu.net>
37614
37615         regex: fix build failure
37616         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37617         platforms.
37618
37619 2010-01-28  Jim Meyering  <meyering@redhat.com>
37620
37621         regex: do not ignore memory allocation failure
37622         * lib/regex_internal.c (create_cd_newstate): Detect
37623         re_node_set_init_copy failure.   Extracted from glibc commit
37624         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37625
37626         regex: sync more white-space changes from libc
37627         * lib/regex_internal.c: White-space only changes.
37628         * lib/regexec.c: Likewise.
37629
37630         regex: add many uses of __attribute_warn_unused_result__
37631         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37632         * lib/regexec.c: Likewise.
37633         Extracted from a messy glibc commit.
37634
37635         regcomp.c: spelling and merge-artifact from glibc
37636         * lib/regcomp.c: Merge remainder of glibc's
37637         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37638
37639         regcomp.c: sync white-space changes from glibc
37640         * lib/regcomp.c: Merge to accommodate white space
37641         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37642
37643         regcomp.c: do not ignore internal return values
37644         * lib/regcomp.c: Do not ignore internal return values.
37645         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37646         but without its white-space changes and spelling fixes.
37647
37648         regex_internal.h: define __attribute_warn_unused_result__
37649         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37650
37651         maint: add a syntax-check rule to check for vulnerable Makefile.in
37652         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37653
37654 2010-01-27  Jim Meyering  <meyering@redhat.com>
37655
37656         ncftpput-ftp: clean up spaces
37657         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37658         Remove trailing blanks.
37659
37660 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37661
37662         * build-aux/git-version-gen: Fix copyright statement.
37663         * build-aux/gnupload: Likewise.
37664         * tests/test-arcfour.c: Likewise.
37665         * tests/test-arctwo.c: Likewise.
37666         * tests/test-count-one-bits.c: Likewise.
37667         * tests/test-crc.c: Likewise.
37668         * tests/test-des.c: Likewise.
37669         * tests/test-gc-arcfour.c: Likewise.
37670         * tests/test-gc-arctwo.c: Likewise.
37671         * tests/test-gc-des.c: Likewise.
37672         * tests/test-gc-hmac-md5.c: Likewise.
37673         * tests/test-gc-hmac-sha1.c: Likewise.
37674         * tests/test-gc-md2.c: Likewise.
37675         * tests/test-gc-md4.c: Likewise.
37676         * tests/test-gc-md5.c: Likewise.
37677         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37678         * tests/test-gc-rijndael.c: Likewise.
37679         * tests/test-gc-sha1.c: Likewise.
37680         * tests/test-gc.c: Likewise.
37681         * tests/test-gethostname.c: Likewise.
37682         * tests/test-gettimeofday.c: Likewise.
37683         * tests/test-hash.c: Likewise.
37684         * tests/test-hmac-md5.c: Likewise.
37685         * tests/test-hmac-sha1.c: Likewise.
37686         * tests/test-md2.c: Likewise.
37687         * tests/test-md4.c: Likewise.
37688         * tests/test-md5.c: Likewise.
37689         * tests/test-memchr.c: Likewise.
37690         * tests/test-memchr2.c: Likewise.
37691         * tests/test-memcmp.c: Likewise.
37692         * tests/test-memmem.c: Likewise.
37693         * tests/test-memrchr.c: Likewise.
37694         * tests/test-rawmemchr.c: Likewise.
37695         * tests/test-read-file.c: Likewise.
37696         * tests/test-rijndael.c: Likewise.
37697         * tests/test-sockets.c: Likewise.
37698         * tests/test-strchrnul.c: Likewise.
37699         * tests/test-strstr.c: Likewise.
37700         * tests/test-strtod.c: Likewise.
37701         * build-aux/ncftpput-ftp: Likewise.
37702
37703 2010-01-26  Eric Blake  <ebb9@byu.net>
37704
37705         ignore-value: update recommended header name
37706         * modules/ignore-value (Include): Only use <> for headers that
37707         exist in glibc.
37708
37709 2010-01-26  Jim Meyering  <meyering@redhat.com>
37710
37711         test-userspec.c: avoid compiler warnings
37712         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37713         and "initialization discards qualifiers..." warnings.
37714         Put the first "uid" in its own scope, and make char* members "const".
37715
37716 2010-01-25  Bruno Haible  <bruno@clisp.org>
37717
37718         gnulib-tool: Make warning diagnostics consistent.
37719         * gnulib-tool (func_warning): New function.
37720         Use it everywhere where gnulib-tool produces output to stderr and it is
37721         not a fatal error.
37722
37723 2010-01-25  Bruno Haible  <bruno@clisp.org>
37724
37725         Fix test dependencies.
37726         * modules/xstrtol-tests (Depends-on): Add inttypes.
37727         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37728
37729 2010-01-25 Pádraig Brady <P@draigBrady.com>
37730
37731         syntax-check: detect incorrect boolean macro values in config.h
37732         * modules/maintainer-makefile (configure.ac): Parameterize the location
37733         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37734         The logic is from Eric Blake and the location indicated by Jim Meyering.
37735         Note the more natural CONFIG_HEADER name is prohibited by automake
37736         for backwards compatibility reasons.
37737         * top/maint.mk (sc_Wundef_boolean): New rule.
37738
37739 2010-01-25  Jim Meyering  <meyering@redhat.com>
37740
37741         bootstrap: detect MacOS 10.6's shasum, too
37742         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37743         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37744
37745 2010-01-23  Jim Meyering  <meyering@redhat.com>
37746
37747         xstrtoll: new module
37748         * modules/xstrtoll: New file.
37749         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37750         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37751         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37752         ./configure fails if you use this module and lack "long long".
37753         * modules/xstrtoll-tests: New module.
37754         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37755         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37756         new init.sh-based test framework.
37757
37758 2010-01-24  Bruno Haible  <bruno@clisp.org>
37759
37760         Tests for module 'yn'.
37761         * modules/yn-tests: New file.
37762         * tests/test-yn.c: New file.
37763
37764         Tests for module 'y1'.
37765         * modules/y1-tests: New file.
37766         * tests/test-y1.c: New file.
37767
37768         Tests for module 'y0'.
37769         * modules/y0-tests: New file.
37770         * tests/test-y0.c: New file.
37771
37772         Tests for module 'tanh'.
37773         * modules/tanh-tests: New file.
37774         * tests/test-tanh.c: New file.
37775
37776         Tests for module 'tan'.
37777         * modules/tan-tests: New file.
37778         * tests/test-tan.c: New file.
37779
37780         Tests for module 'sqrt'.
37781         * modules/sqrt-tests: New file.
37782         * tests/test-sqrt.c: New file.
37783
37784         Tests for module 'sinh'.
37785         * modules/sinh-tests: New file.
37786         * tests/test-sinh.c: New file.
37787
37788         Tests for module 'sin'.
37789         * modules/sin-tests: New file.
37790         * tests/test-sin.c: New file.
37791
37792         Tests for module 'rint'.
37793         * modules/rint-tests: New file.
37794         * tests/test-rint.c: New file.
37795
37796         Tests for module 'remainder'.
37797         * modules/remainder-tests: New file.
37798         * tests/test-remainder.c: New file.
37799
37800         Tests for module 'pow'.
37801         * modules/pow-tests: New file.
37802         * tests/test-pow.c: New file.
37803
37804         Tests for module 'nextafter'.
37805         * modules/nextafter-tests: New file.
37806         * tests/test-nextafter.c: New file.
37807
37808         Tests for module 'modf'.
37809         * modules/modf-tests: New file.
37810         * tests/test-modf.c: New file.
37811
37812         Tests for module 'logb'.
37813         * modules/logb-tests: New file.
37814         * tests/test-logb.c: New file.
37815
37816         Tests for module 'log1p'.
37817         * modules/log1p-tests: New file.
37818         * tests/test-log1p.c: New file.
37819
37820         Tests for module 'log10'.
37821         * modules/log10-tests: New file.
37822         * tests/test-log10.c: New file.
37823
37824         Tests for module 'log'.
37825         * modules/log-tests: New file.
37826         * tests/test-log.c: New file.
37827
37828         Tests for module 'lgamma'.
37829         * modules/lgamma-tests: New file.
37830         * tests/test-lgamma.c: New file.
37831
37832         Tests for module 'ldexp'.
37833         * modules/ldexp-tests: New file.
37834         * tests/test-ldexp.c: New file.
37835
37836         Tests for module 'jn'.
37837         * modules/jn-tests: New file.
37838         * tests/test-jn.c: New file.
37839
37840         Tests for module 'j1'.
37841         * modules/j1-tests: New file.
37842         * tests/test-j1.c: New file.
37843
37844         Tests for module 'j0'.
37845         * modules/j0-tests: New file.
37846         * tests/test-j0.c: New file.
37847
37848         Tests for module 'hypot'.
37849         * modules/hypot-tests: New file.
37850         * tests/test-hypot.c: New file.
37851
37852         Tests for module 'fmod'.
37853         * modules/fmod-tests: New file.
37854         * tests/test-fmod.c: New file.
37855
37856         Tests for module 'fabs'.
37857         * modules/fabs-tests: New file.
37858         * tests/test-fabs.c: New file.
37859
37860         Tests for module 'exp'.
37861         * modules/exp-tests: New file.
37862         * tests/test-exp.c: New file.
37863
37864         Tests for module 'erfc'.
37865         * modules/erfc-tests: New file.
37866         * tests/test-erfc.c: New file.
37867
37868         Tests for module 'erf'.
37869         * modules/erf-tests: New file.
37870         * tests/test-erf.c: New file.
37871
37872         Tests for module 'cosh'.
37873         * modules/cosh-tests: New file.
37874         * tests/test-cosh.c: New file.
37875
37876         Tests for module 'cos'.
37877         * modules/cos-tests: New file.
37878         * tests/test-cos.c: New file.
37879
37880         Tests for module 'copysign'.
37881         * modules/copysign-tests: New file.
37882         * tests/test-copysign.c: New file.
37883
37884         Tests for module 'cbrt'.
37885         * modules/cbrt-tests: New file.
37886         * tests/test-cbrt.c: New file.
37887
37888         Tests for module 'atan2'.
37889         * modules/atan2-tests: New file.
37890         * tests/test-atan2.c: New file.
37891
37892         Tests for module 'atan'.
37893         * modules/atan-tests: New file.
37894         * tests/test-atan.c: New file.
37895
37896         Tests for module 'asin'.
37897         * modules/asin-tests: New file.
37898         * tests/test-asin.c: New file.
37899
37900         Tests for module 'acos'.
37901         * modules/acos-tests: New file.
37902         * tests/test-acos.c: New file.
37903
37904 2010-01-24  Bruno Haible  <bruno@clisp.org>
37905
37906         Fix tests for common <math.h> functions.
37907         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37908         code snippet that references the function pointer, rather than merely
37909         calling the function. Substitute the FUNC_LIBM variable.
37910         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37911         * modules/acos (configure.ac): Likewise.
37912         * modules/asin (configure.ac): Likewise.
37913         * modules/atan (configure.ac): Likewise.
37914         * modules/atan2 (configure.ac): Likewise.
37915         * modules/cbrt (configure.ac): Likewise.
37916         * modules/copysign (configure.ac): Likewise.
37917         * modules/cos (configure.ac): Likewise.
37918         * modules/cosh (configure.ac): Likewise.
37919         * modules/erf (configure.ac): Likewise.
37920         * modules/erfc (configure.ac): Likewise.
37921         * modules/exp (configure.ac): Likewise.
37922         * modules/fabs (configure.ac): Likewise.
37923         * modules/fmod (configure.ac): Likewise.
37924         * modules/hypot (configure.ac): Likewise.
37925         * modules/j0 (configure.ac): Likewise.
37926         * modules/j1 (configure.ac): Likewise.
37927         * modules/jn (configure.ac): Likewise.
37928         * modules/ldexp (configure.ac): Likewise.
37929         * modules/lgamma (configure.ac): Likewise.
37930         * modules/log (configure.ac): Likewise.
37931         * modules/log10 (configure.ac): Likewise.
37932         * modules/log1p (configure.ac): Likewise.
37933         * modules/logb (configure.ac): Likewise.
37934         * modules/modf (configure.ac): Likewise.
37935         * modules/nextafter (configure.ac): Likewise.
37936         * modules/pow (configure.ac): Likewise.
37937         * modules/remainder (configure.ac): Likewise.
37938         * modules/rint (configure.ac): Likewise.
37939         * modules/sin (configure.ac): Likewise.
37940         * modules/sinh (configure.ac): Likewise.
37941         * modules/tan (configure.ac): Likewise.
37942         * modules/tanh (configure.ac): Likewise.
37943         * modules/y0 (configure.ac): Likewise.
37944         * modules/y1 (configure.ac): Likewise.
37945         * modules/yn (configure.ac): Likewise.
37946
37947 2010-01-24  Bruno Haible  <bruno@clisp.org>
37948
37949         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37950         * tests/test-acosl.c (x): New variable.
37951         (main): Store argument in x and fetch it from x.
37952         * tests/test-asinl.c (x): New variable.
37953         (main): Store argument in x and fetch it from x.
37954         * tests/test-atanl.c (x): New variable.
37955         (main): Store argument in x and fetch it from x.
37956         * tests/test-cosl.c (x): New variable.
37957         (main): Store argument in x and fetch it from x.
37958         * tests/test-expl.c (x): New variable.
37959         (main): Store argument in x and fetch it from x.
37960         * tests/test-logl.c (x): New variable.
37961         (main): Store argument in x and fetch it from x.
37962         * tests/test-sinl.c (x): New variable.
37963         (main): Store argument in x and fetch it from x.
37964         * tests/test-sqrtl.c (x): New variable.
37965         (main): Store argument in x and fetch it from x.
37966         * tests/test-tanl.c (x): New variable.
37967         (main): Store argument in x and fetch it from x.
37968
37969 2010-01-24  Bruno Haible  <bruno@clisp.org>
37970
37971         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37972         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37973         assignments to the initial TESTS_ENVIRONMENT.
37974         * doc/gnulib.texi (Unit test modules): Document it.
37975         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37976         TESTS_ENVIRONMENT.
37977         * modules/btowc-tests (Makefile.am): Likewise.
37978         * modules/c-stack-tests (Makefile.am): Likewise.
37979         * modules/c-strcase-tests (Makefile.am): Likewise.
37980         * modules/copy-file-tests (Makefile.am): Likewise.
37981         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37982         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37983         * modules/mbrtowc-tests (Makefile.am): Likewise.
37984         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37985         * modules/mbscasestr-tests (Makefile.am): Likewise.
37986         * modules/mbschr-tests (Makefile.am): Likewise.
37987         * modules/mbscspn-tests (Makefile.am): Likewise.
37988         * modules/mbsinit-tests (Makefile.am): Likewise.
37989         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37990         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37991         * modules/mbspbrk-tests (Makefile.am): Likewise.
37992         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37993         * modules/mbsrchr-tests (Makefile.am): Likewise.
37994         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37995         * modules/mbsspn-tests (Makefile.am): Likewise.
37996         * modules/mbsstr-tests (Makefile.am): Likewise.
37997         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37998         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37999         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38000         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38001         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38002         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38003         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38004         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38005         * modules/wcrtomb-tests (Makefile.am): Likewise.
38006         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38007         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38008         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38009         assignments from TESTS_ENVIRONMENT.
38010         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38011         augmentation.
38012         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38013         * modules/atexit-tests (Makefile.am): Likewise.
38014         * modules/binary-io-tests (Makefile.am): Likewise.
38015         * modules/closein-tests (Makefile.am): Likewise.
38016         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38017         * modules/exclude-tests (Makefile.am): Likewise.
38018         * modules/fflush-tests (Makefile.am): Likewise.
38019         * modules/fpending-tests (Makefile.am): Likewise.
38020         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38021         * modules/freadahead-tests (Makefile.am): Likewise.
38022         * modules/freadptr-tests (Makefile.am): Likewise.
38023         * modules/freadseek-tests (Makefile.am): Likewise.
38024         * modules/fseek-tests (Makefile.am): Likewise.
38025         * modules/fseeko-tests (Makefile.am): Likewise.
38026         * modules/ftell-tests (Makefile.am): Likewise.
38027         * modules/ftello-tests (Makefile.am): Likewise.
38028         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38029         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38030         * modules/lseek-tests (Makefile.am): Likewise.
38031         * modules/parse-duration-tests (Makefile.am): Likewise.
38032         * modules/perror-tests (Makefile.am): Likewise.
38033         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38034         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38035         * modules/pipe-tests (Makefile.am): Likewise.
38036         * modules/pread-tests (Makefile.am): Likewise.
38037         * modules/printf-posix-tests (Makefile.am): Likewise.
38038         * modules/select-tests (Makefile.am): Likewise.
38039         * modules/sigpipe-tests (Makefile.am): Likewise.
38040         * modules/tsearch-tests (Makefile.am): Likewise.
38041         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38042         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38043         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38044         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38045         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38046         * modules/version-etc-tests (Makefile.am): Likewise.
38047         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38048         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38049         * modules/xalloc-die-tests (Makefile.am): Likewise.
38050         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38051         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38052         * modules/xstrtol-tests (Makefile.am): Likewise.
38053         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38054         * modules/yesno-tests (Makefile.am): Likewise.
38055         Suggested by Jim Meyering.
38056
38057 2010-01-24  Bruno Haible  <bruno@clisp.org>
38058
38059         More documentation.
38060         * doc/gnulib.texi (Writing modules): New chapter.
38061         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38062         the new chapter.
38063
38064 2010-01-24  Jim Meyering  <meyering@redhat.com>
38065
38066         maint.mk: do not prepend "./" after filtering
38067         * top/maint.mk (_prepend_srcdir_prefix): New variable
38068         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38069         "./" when $(srcdir) is ".".
38070
38071         define STREQ(a,b) consistently, removing useless parentheses
38072         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38073         since the only risk is that "a" or "b" contains an unparenthesized
38074         comma, but if either did that, STREQ would have 3 or more arguments.
38075         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38076         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38077         * lib/hash-triple.c (STREQ): Likewise.
38078         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38079         * lib/getugroups.c (STREQ): Likewise.
38080
38081 2010-01-23  Jim Meyering  <meyering@redhat.com>
38082
38083         maint.mk: fix syntax-check in a non-srcdir build directory
38084         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38085         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38086
38087 2010-01-22  Jim Meyering  <meyering@redhat.com>
38088
38089         userspec: add unit tests
38090         * tests/test-userspec.c: New file.
38091         * modules/userspec-tests: Likewise.
38092
38093 2010-01-21  Jim Meyering  <meyering@redhat.com>
38094
38095         maint.mk: handle source file names containing "." robustly
38096         * top/maint.mk (_dot_escaped_srcdir): Define.
38097         (VC_LIST): Use it in LHS of sed substitution.
38098
38099 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38100
38101         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38102         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38103         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38104         from a non-srcdir build.
38105
38106 2010-01-20  Eric Blake  <ebb9@byu.net>
38107
38108         warn-on-use: use instead of link-warning
38109         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38110         * modules/unistd (Depends-on, Makefile.am): Likewise.
38111         * modules/arpa_inet (Depends-on): Replace link-warning with
38112         warn-on-use.
38113         (Makefile.am): Update rules accordingly.
38114         * modules/ctype (Depends-on, Makefile.am): Likewise.
38115         * modules/dirent (Depends-on, Makefile.am): Likewise.
38116         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38117         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38118         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38119         * modules/locale (Depends-on, Makefile.am): Likewise.
38120         * modules/math (Depends-on, Makefile.am): Likewise.
38121         * modules/search (Depends-on, Makefile.am): Likewise.
38122         * modules/signal (Depends-on, Makefile.am): Likewise.
38123         * modules/spawn (Depends-on, Makefile.am): Likewise.
38124         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38125         * modules/string (Depends-on, Makefile.am): Likewise.
38126         * modules/strings (Depends-on, Makefile.am): Likewise.
38127         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38128         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38129         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38130         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38131         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38132         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38133         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38134         * modules/wchar (Depends-on, Makefile.am): Likewise.
38135         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38136         should be poisoned.
38137         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38138         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38139         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38140         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38141         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38142         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38143         * m4/math_h.m4 (gl_MATH_H): Likewise.
38144         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38145         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38146         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38147         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38148         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38149         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38150         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38151         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38156         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38157         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38158         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38159         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38160         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38161         GL_LINK_WARNING.
38162         * lib/ctype.in.h: Likewise.
38163         * lib/dirent.in.h: Likewise.
38164         * lib/fcntl.in.h: Likewise.
38165         * lib/inttypes.in.h: Likewise.
38166         * lib/langinfo.in.h: Likewise.
38167         * lib/locale.in.h: Likewise.
38168         * lib/math.in.h: Likewise.
38169         * lib/search.in.h: Likewise.
38170         * lib/signal.in.h: Likewise.
38171         * lib/spawn.in.h: Likewise.
38172         * lib/stdio.in.h: Likewise.
38173         * lib/stdlib.in.h: Likewise.
38174         * lib/string.in.h: Likewise.
38175         * lib/strings.in.h: Likewise.
38176         * lib/sys_file.in.h: Likewise.
38177         * lib/sys_ioctl.in.h: Likewise.
38178         * lib/sys_select.in.h: Likewise.
38179         * lib/sys_socket.in.h: Likewise.
38180         * lib/sys_stat.in.h: Likewise.
38181         * lib/sys_times.in.h: Likewise.
38182         * lib/sys_utsname.in.h: Likewise.
38183         * lib/unistd.in.h: Likewise.
38184         * lib/wchar.in.h: Likewise.
38185
38186 2010-01-20  Bruno Haible  <bruno@clisp.org>
38187
38188         Avoid duplicate -lm.
38189         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38190         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38191         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38192         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38193         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38194         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38195         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38196         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38197         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38198         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38199         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38200         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38201         Reported by Paolo Bonzini.
38202
38203 2010-01-19  Bruno Haible  <bruno@clisp.org>
38204
38205         langinfo, nl_langinfo: Relicense under LGPLv2+.
38206         * modules/langinfo (License): Change to LGPLv2+.
38207         * modules/nl_langinfo (License): Likewise.
38208         Patch by David Lutterkort <lutter@redhat.com>.
38209
38210 2010-01-19  Bruno Haible  <bruno@clisp.org>
38211
38212         Avoid compilation error with cc on OSF/1 5.1.
38213         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38214         statement, not before.
38215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38216
38217 2010-01-18  Bruno Haible  <bruno@clisp.org>
38218
38219         Avoid a link error due to the __printf__ symbol.
38220         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38221         and 2.6.x.
38222         (__format__, __printf__): Remove definitions.
38223         * lib/argp-fmtstream.h: Likewise.
38224         * lib/argp.h: Likewise.
38225         * lib/error.h: Likewise.
38226         * lib/vasnprintf.h: Likewise.
38227         * lib/xprintf.h: Likewise.
38228         * lib/xvasprintf.h: Likewise.
38229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38230
38231 2010-01-18  Bruno Haible  <bruno@clisp.org>
38232
38233         Tests for module 'tanl'.
38234         * modules/tanl-tests: New file.
38235         * tests/test-tanl.c: New file.
38236
38237         Tests for module 'sqrtl'.
38238         * modules/sqrtl-tests: New file.
38239         * tests/test-sqrtl.c: New file.
38240
38241         Tests for module 'sinl'.
38242         * modules/sinl-tests: New file.
38243         * tests/test-sinl.c: New file.
38244
38245         Tests for module 'logl'.
38246         * modules/logl-tests: New file.
38247         * tests/test-logl.c: New file.
38248
38249         Tests for module 'expl'.
38250         * modules/expl-tests: New file.
38251         * tests/test-expl.c: New file.
38252
38253         Tests for module 'cosl'.
38254         * modules/cosl-tests: New file.
38255         * tests/test-cosl.c: New file.
38256
38257         Tests for module 'atanl'.
38258         * modules/atanl-tests: New file.
38259         * tests/test-atanl.c: New file.
38260
38261         Tests for module 'asinl'.
38262         * modules/asinl-tests: New file.
38263         * tests/test-asinl.c: New file.
38264
38265         Tests for module 'acosl'.
38266         * modules/acosl-tests: New file.
38267         * tests/test-acosl.c: New file.
38268
38269         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38270         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38271         tanl): Use the standard gnulib idiom.
38272         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38273         * lib/sinl.c: Likewise.
38274         * lib/tanl.c: Don't include trigl.c.
38275         (kernel_tanl): Make static.
38276         * lib/sincosl.c: Include trigl.h first.
38277         * lib/trigl.c: Likewise.
38278         * m4/acosl.m4: New file.
38279         * m4/asinl.m4: New file.
38280         * m4/atanl.m4: New file.
38281         * m4/cosl.m4: New file.
38282         * m4/expl.m4: New file.
38283         * m4/logl.m4: New file.
38284         * m4/sinl.m4: New file.
38285         * m4/sqrtl.m4: New file.
38286         * m4/tanl.m4: New file.
38287         * m4/mathl.m4: Remove file.
38288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38289         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38290         Don't initialize GNULIB_MATHL.
38291         * modules/acosl: New file.
38292         * modules/asinl: New file.
38293         * modules/atanl: New file.
38294         * modules/cosl: New file.
38295         * modules/expl: New file.
38296         * modules/logl: New file.
38297         * modules/sinl: New file.
38298         * modules/sqrtl: New file.
38299         * modules/tanl: New file.
38300         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38301         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38302         substitute GNULIB_MATHL.
38303         * modules/mathl: Rewritten.
38304         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38305         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38306         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38307         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38308         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38309         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38310         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38311         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38312         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38313
38314 2010-01-18  Bruno Haible  <bruno@clisp.org>
38315
38316         sqrt: Make gl_FUNC_SQRT requirable.
38317         * m4/sqrt.m4: New file.
38318         * modules/sqrt (Files): Add it.
38319         (configure.ac): Invoke gl_FUNC_SQRT.
38320
38321 2010-01-18  Bruno Haible  <bruno@clisp.org>
38322
38323         New modules for common <math.h> functions.
38324         * m4/mathfunc.m4: New file.
38325         * modules/acos: New file.
38326         * modules/asin: New file.
38327         * modules/atan: New file.
38328         * modules/atan2: New file.
38329         * modules/cbrt: New file.
38330         * modules/copysign: New file.
38331         * modules/cos: New file.
38332         * modules/cosh: New file.
38333         * modules/erf: New file.
38334         * modules/erfc: New file.
38335         * modules/exp: New file.
38336         * modules/fabs: New file.
38337         * modules/fmod: New file.
38338         * modules/hypot: New file.
38339         * modules/j0: New file.
38340         * modules/j1: New file.
38341         * modules/jn: New file.
38342         * modules/ldexp: New file.
38343         * modules/lgamma: New file.
38344         * modules/log: New file.
38345         * modules/log10: New file.
38346         * modules/log1p: New file.
38347         * modules/logb: New file.
38348         * modules/modf: New file.
38349         * modules/nextafter: New file.
38350         * modules/pow: New file.
38351         * modules/remainder: New file.
38352         * modules/rint: New file.
38353         * modules/sin: New file.
38354         * modules/sinh: New file.
38355         * modules/sqrt: New file.
38356         * modules/tan: New file.
38357         * modules/tanh: New file.
38358         * modules/y0: New file.
38359         * modules/y1: New file.
38360         * modules/yn: New file.
38361         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38362         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38363         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38364         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38365         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38366         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38367         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38368         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38369         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38370         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38371         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38372         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38373         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38374         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38375         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38376         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38377         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38378         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38379         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38380         * doc/posix-functions/log.texi: Mention the 'log' module.
38381         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38382         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38383         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38384         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38385         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38386         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38387         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38388         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38389         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38390         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38391         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38392         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38393         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38394         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38395         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38396         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38397
38398 2010-01-18  Jim Meyering  <meyering@redhat.com>
38399
38400         ignore-value: relax license to LGPLv2+
38401         * modules/ignore-value (License): Relax to LGPLv2+.
38402
38403         getdate: don't leak when TZ contains two or more '"'s
38404         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38405         double quote in TZ after the first one.
38406
38407         readtokens: do not leak internal token_lengths buffer
38408         * lib/readtokens.c (readtokens): Free the local, lengths,
38409         when the supplied "token_lengths" parameter is NULL.
38410
38411 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38412
38413         Fix a couple of missing LIBTHREAD link failures on AIX.
38414         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38415         $(LIBTHREAD).
38416         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38417
38418         Link test-poll against INET_PTON_LIB.
38419         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38420         for inet_pton on Solaris 10.
38421
38422 2010-01-17  Bruno Haible  <bruno@clisp.org>
38423
38424         unistdio/*-sprintf: Fix typo in module description.
38425         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38426         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38427         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38428         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38429         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38430         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38431         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38433
38434 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38435
38436         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38437         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38438         variables in shell case patterns, for AIX and HP-UX ksh.
38439
38440         Split large sed scripts, for HP-UX sed.
38441         * modules/stdio: Split sed scripts around 50 sed commands,
38442         to avoid HP-UX limit of 99 commands, in the near future.
38443         * modules/string: Likewise.
38444         * modules/unistd: Likewise.
38445
38446         gnulib-tool: avoid writing in the current directory.
38447         * gnulib-tool (func_emit_lib_Makefile_am)
38448         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38449         not in the current directory, so concurrent gnulib-tool
38450         instances do not interfere.
38451
38452 2010-01-16  Jim Meyering  <meyering@redhat.com>
38453
38454         doc: update users.txt
38455         * users.txt: Add grep.
38456         (diffutils, gzip): Update URLs.
38457
38458 2010-01-12  Bruno Haible  <bruno@clisp.org>
38459
38460         posix_spawn: Avoid test failure on Cygwin.
38461         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38462         characters.
38463         Reported by Simon Josefsson.
38464
38465 2010-01-12  Bruno Haible  <bruno@clisp.org>
38466
38467         * tests/test-cond.c (main): When skipping the test, show the reason.
38468
38469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38470
38471         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38472
38473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38474
38475         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38476         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38477
38478 2010-01-12  Eric Blake  <ebb9@byu.net>
38479
38480         build: guarantee AS_VAR_IF
38481         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38482         (gl_AS_VAR_IF): Move...
38483         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38484         Reported by Simon Josefsson.
38485
38486 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38487
38488         * lib/stdio.in.h: Fix typo.
38489
38490 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38491
38492         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38493         libgpg-error.
38494
38495 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38496
38497         * tests/test-xalloc-die.sh: Use $EXEEXT.
38498
38499 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38500             Bruno Haible  <bruno@clisp.org>
38501
38502         getlogin, getlogin_r: Avoid test failure.
38503         * tests/test-getlogin.c: Include <stdio.h>.
38504         (main): Skip the test when the function fails because stdin is not a
38505         tty.
38506         * tests/test-getlogin_r.c: Include <stdio.h>.
38507         (main): Skip the test when the function fails because stdin is not a
38508         tty.
38509
38510 2010-01-11  Eric Blake  <ebb9@byu.net>
38511
38512         tests: avoid more large file warnings
38513         * tests/test-fflush.c: Avoid warning about ftell use.
38514         * tests/test-fseek.c: Avoid warning about fseek use.
38515
38516 2010-01-10  Bruno Haible  <bruno@clisp.org>
38517
38518         nproc: Work better on Linux when /proc and /sys are not mounted.
38519         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38520         as lower bound when, on glibc/Linux systems,
38521         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38522         Suggested by Pádraig Brady <P@draigbrady.com>.
38523         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38524
38525         nproc: Refactor.
38526         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38527         extracted from num_processors.
38528         (num_processors): Call it.
38529
38530 2010-01-11  Jim Meyering  <meyering@redhat.com>
38531
38532         utimecmp: avoid new warning from upcoming gcc-4.5.0
38533         * lib/utimecmp.c (BILLION): Define using #define rather than an
38534         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38535
38536 2010-01-11  Eric Blake  <ebb9@byu.net>
38537
38538         math: add portability warnings for classification macros
38539         * modules/math (Depends-on): Add warn-on-use.
38540         (Makefile.am): Provide new substitutions.
38541         * m4/math_h.m4 (gl_MATH_H): Require inline.
38542         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38543         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38544         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38545         implement warnings.
38546
38547         unistd: warn on use of environ without module
38548         * modules/unistd (Depends-on): Add warn-on-use.
38549         (Makefile.am): Provide new substitutions.
38550         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38551         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38552
38553         stdio: warn on suspicious uses
38554         * modules/stdio (Depends-on): Add warn-on-use.
38555         (Makefile.am): Provide new substitutions.
38556         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38557         fseeko.
38558         * lib/stdio.in.h (gets): Always warn on use.
38559         (fseek, ftell): Adjust when warnings are issued, and honor
38560         _GL_NO_LARGE_FILES as a way to silence the warning.
38561         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38562         any warning about large file offsets.
38563         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38564         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38565         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38566         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38567         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38568         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38569         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38570         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38571
38572         warn-on-use: new module
38573         * modules/warn-on-use: New file.
38574         * build-aux/warn-on-use.h: Likewise.
38575         * m4/warn-on-use.m4: Likewise.
38576         * MODULES.html.sh (Support for building): Mention it.
38577
38578 2010-01-10  Bruno Haible  <bruno@clisp.org>
38579
38580         Tests for module 'unistr/u32-strdup'.
38581         * modules/unistr/u32-strdup-tests: New file.
38582         * tests/unistr/test-u32-strdup.c: New file.
38583
38584         Tests for module 'unistr/u16-strdup'.
38585         * modules/unistr/u16-strdup-tests: New file.
38586         * tests/unistr/test-u16-strdup.c: New file.
38587
38588         Tests for module 'unistr/u8-strdup'.
38589         * modules/unistr/u8-strdup-tests: New file.
38590         * tests/unistr/test-u8-strdup.c: New file.
38591         * tests/unistr/test-strdup.h: New file.
38592
38593         Tests for module 'unistr/u32-strncmp'.
38594         * modules/unistr/u32-strncmp-tests: New file.
38595         * tests/unistr/test-u32-strncmp.c: New file.
38596
38597         Tests for module 'unistr/u16-strncmp'.
38598         * modules/unistr/u16-strncmp-tests: New file.
38599         * tests/unistr/test-u16-strncmp.c: New file.
38600
38601         Tests for module 'unistr/u8-strncmp'.
38602         * modules/unistr/u8-strncmp-tests: New file.
38603         * tests/unistr/test-u8-strncmp.c: New file.
38604         * tests/unistr/test-strncmp.h: New file.
38605
38606         Tests for module 'unistr/u32-strcoll'.
38607         * modules/unistr/u32-strcoll-tests: New file.
38608         * tests/unistr/test-u32-strcoll.c: New file.
38609
38610         Tests for module 'unistr/u16-strcoll'.
38611         * modules/unistr/u16-strcoll-tests: New file.
38612         * tests/unistr/test-u16-strcoll.c: New file.
38613
38614         Tests for module 'unistr/u8-strcoll'.
38615         * modules/unistr/u8-strcoll-tests: New file.
38616         * tests/unistr/test-u8-strcoll.c: New file.
38617
38618         Tests for module 'unistr/u32-strcmp'.
38619         * modules/unistr/u32-strcmp-tests: New file.
38620         * tests/unistr/test-u32-strcmp.c: New file.
38621         * tests/unistr/test-u32-strcmp.h: New file.
38622
38623         Tests for module 'unistr/u16-strcmp'.
38624         * modules/unistr/u16-strcmp-tests: New file.
38625         * tests/unistr/test-u16-strcmp.c: New file.
38626         * tests/unistr/test-u16-strcmp.h: New file.
38627
38628         Tests for module 'unistr/u8-strcmp'.
38629         * modules/unistr/u8-strcmp-tests: New file.
38630         * tests/unistr/test-u8-strcmp.c: New file.
38631         * tests/unistr/test-u8-strcmp.h: New file.
38632         * tests/unistr/test-strcmp.h: New file.
38633
38634         Tests for module 'unistr/u32-strncat'.
38635         * modules/unistr/u32-strncat-tests: New file.
38636         * tests/unistr/test-u32-strncat.c: New file.
38637
38638         Tests for module 'unistr/u16-strncat'.
38639         * modules/unistr/u16-strncat-tests: New file.
38640         * tests/unistr/test-u16-strncat.c: New file.
38641
38642         Tests for module 'unistr/u8-strncat'.
38643         * modules/unistr/u8-strncat-tests: New file.
38644         * tests/unistr/test-u8-strncat.c: New file.
38645         * tests/unistr/test-strncat.h: New file.
38646
38647         Tests for module 'unistr/u32-strcat'.
38648         * modules/unistr/u32-strcat-tests: New file.
38649         * tests/unistr/test-u32-strcat.c: New file.
38650
38651         Tests for module 'unistr/u16-strcat'.
38652         * modules/unistr/u16-strcat-tests: New file.
38653         * tests/unistr/test-u16-strcat.c: New file.
38654
38655         Tests for module 'unistr/u8-strcat'.
38656         * modules/unistr/u8-strcat-tests: New file.
38657         * tests/unistr/test-u8-strcat.c: New file.
38658         * tests/unistr/test-strcat.h: New file.
38659
38660         Tests for module 'unistr/u32-stpncpy'.
38661         * modules/unistr/u32-stpncpy-tests: New file.
38662         * tests/unistr/test-u32-stpncpy.c: New file.
38663
38664         Tests for module 'unistr/u16-stpncpy'.
38665         * modules/unistr/u16-stpncpy-tests: New file.
38666         * tests/unistr/test-u16-stpncpy.c: New file.
38667
38668         Tests for module 'unistr/u8-stpncpy'.
38669         * modules/unistr/u8-stpncpy-tests: New file.
38670         * tests/unistr/test-u8-stpncpy.c: New file.
38671         * tests/unistr/test-stpncpy.h: New file.
38672
38673         Tests for module 'unistr/u32-strncpy'.
38674         * modules/unistr/u32-strncpy-tests: New file.
38675         * tests/unistr/test-u32-strncpy.c: New file.
38676
38677         Tests for module 'unistr/u16-strncpy'.
38678         * modules/unistr/u16-strncpy-tests: New file.
38679         * tests/unistr/test-u16-strncpy.c: New file.
38680
38681         Tests for module 'unistr/u8-strncpy'.
38682         * modules/unistr/u8-strncpy-tests: New file.
38683         * tests/unistr/test-u8-strncpy.c: New file.
38684         * tests/unistr/test-strncpy.h: New file.
38685
38686         Tests for module 'unistr/u32-stpcpy'.
38687         * modules/unistr/u32-stpcpy-tests: New file.
38688         * tests/unistr/test-u32-stpcpy.c: New file.
38689
38690         Tests for module 'unistr/u16-stpcpy'.
38691         * modules/unistr/u16-stpcpy-tests: New file.
38692         * tests/unistr/test-u16-stpcpy.c: New file.
38693
38694         Tests for module 'unistr/u8-stpcpy'.
38695         * modules/unistr/u8-stpcpy-tests: New file.
38696         * tests/unistr/test-u8-stpcpy.c: New file.
38697         * tests/unistr/test-stpcpy.h: New file.
38698
38699         Tests for module 'unistr/u32-strcpy'.
38700         * modules/unistr/u32-strcpy-tests: New file.
38701         * tests/unistr/test-u32-strcpy.c: New file.
38702
38703         Tests for module 'unistr/u16-strcpy'.
38704         * modules/unistr/u16-strcpy-tests: New file.
38705         * tests/unistr/test-u16-strcpy.c: New file.
38706
38707         Tests for module 'unistr/u8-strcpy'.
38708         * modules/unistr/u8-strcpy-tests: New file.
38709         * tests/unistr/test-u8-strcpy.c: New file.
38710         * tests/unistr/test-strcpy.h: New file.
38711
38712         Tests for module 'unistr/u32-strnlen'.
38713         * modules/unistr/u32-strnlen-tests: New file.
38714         * tests/unistr/test-u32-strnlen.c: New file.
38715
38716         Tests for module 'unistr/u16-strnlen'.
38717         * modules/unistr/u16-strnlen-tests: New file.
38718         * tests/unistr/test-u16-strnlen.c: New file.
38719
38720         Tests for module 'unistr/u8-strnlen'.
38721         * modules/unistr/u8-strnlen-tests: New file.
38722         * tests/unistr/test-u8-strnlen.c: New file.
38723         * tests/unistr/test-strnlen.h: New file.
38724
38725         Tests for module 'unistr/u32-strlen'.
38726         * modules/unistr/u32-strlen-tests: New file.
38727         * tests/unistr/test-u32-strlen.c: New file.
38728
38729         Tests for module 'unistr/u16-strlen'.
38730         * modules/unistr/u16-strlen-tests: New file.
38731         * tests/unistr/test-u16-strlen.c: New file.
38732
38733         Tests for module 'unistr/u8-strlen'.
38734         * modules/unistr/u8-strlen-tests: New file.
38735         * tests/unistr/test-u8-strlen.c: New file.
38736
38737         Tests for module 'unistr/u32-prev'.
38738         * modules/unistr/u32-prev-tests: New file.
38739         * tests/unistr/test-u32-prev.c: New file.
38740
38741         Tests for module 'unistr/u16-prev'.
38742         * modules/unistr/u16-prev-tests: New file.
38743         * tests/unistr/test-u16-prev.c: New file.
38744
38745         Tests for module 'unistr/u8-prev'.
38746         * modules/unistr/u8-prev-tests: New file.
38747         * tests/unistr/test-u8-prev.c: New file.
38748
38749         Tests for module 'unistr/u32-next'.
38750         * modules/unistr/u32-next-tests: New file.
38751         * tests/unistr/test-u32-next.c: New file.
38752
38753         Tests for module 'unistr/u16-next'.
38754         * modules/unistr/u16-next-tests: New file.
38755         * tests/unistr/test-u16-next.c: New file.
38756
38757         Tests for module 'unistr/u8-next'.
38758         * modules/unistr/u8-next-tests: New file.
38759         * tests/unistr/test-u8-next.c: New file.
38760
38761         Tests for module 'unistr/u32-strmbtouc'.
38762         * modules/unistr/u32-strmbtouc-tests: New file.
38763         * tests/unistr/test-u32-strmbtouc.c: New file.
38764
38765         Tests for module 'unistr/u16-strmbtouc'.
38766         * modules/unistr/u16-strmbtouc-tests: New file.
38767         * tests/unistr/test-u16-strmbtouc.c: New file.
38768
38769         Tests for module 'unistr/u8-strmbtouc'.
38770         * modules/unistr/u8-strmbtouc-tests: New file.
38771         * tests/unistr/test-u8-strmbtouc.c: New file.
38772
38773         Tests for module 'unistr/u32-strmblen'.
38774         * modules/unistr/u32-strmblen-tests: New file.
38775         * tests/unistr/test-u32-strmblen.c: New file.
38776
38777         Tests for module 'unistr/u16-strmblen'.
38778         * modules/unistr/u16-strmblen-tests: New file.
38779         * tests/unistr/test-u16-strmblen.c: New file.
38780
38781         Tests for module 'unistr/u8-strmblen'.
38782         * modules/unistr/u8-strmblen-tests: New file.
38783         * tests/unistr/test-u8-strmblen.c: New file.
38784
38785         Tests for module 'unistr/u32-cpy-alloc'.
38786         * modules/unistr/u32-cpy-alloc-tests: New file.
38787         * tests/unistr/test-u32-cpy-alloc.c: New file.
38788
38789         Tests for module 'unistr/u16-cpy-alloc'.
38790         * modules/unistr/u16-cpy-alloc-tests: New file.
38791         * tests/unistr/test-u16-cpy-alloc.c: New file.
38792
38793         Tests for module 'unistr/u8-cpy-alloc'.
38794         * modules/unistr/u8-cpy-alloc-tests: New file.
38795         * tests/unistr/test-u8-cpy-alloc.c: New file.
38796         * tests/unistr/test-cpy-alloc.h: New file.
38797
38798         Tests for module 'unistr/u32-mbsnlen'.
38799         * modules/unistr/u32-mbsnlen-tests: New file.
38800         * tests/unistr/test-u32-mbsnlen.c: New file.
38801
38802         Tests for module 'unistr/u16-mbsnlen'.
38803         * modules/unistr/u16-mbsnlen-tests: New file.
38804         * tests/unistr/test-u16-mbsnlen.c: New file.
38805
38806         Tests for module 'unistr/u8-mbsnlen'.
38807         * modules/unistr/u8-mbsnlen-tests: New file.
38808         * tests/unistr/test-u8-mbsnlen.c: New file.
38809
38810         Tests for module 'unistr/u32-chr'.
38811         * modules/unistr/u32-chr-tests: New file.
38812         * tests/unistr/test-u32-chr.c: New file.
38813
38814         Tests for module 'unistr/u16-chr'.
38815         * modules/unistr/u16-chr-tests: New file.
38816         * tests/unistr/test-u16-chr.c: New file.
38817
38818         Tests for module 'unistr/u8-chr'.
38819         * modules/unistr/u8-chr-tests: New file.
38820         * tests/unistr/test-u8-chr.c: New file.
38821         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38822
38823         Tests for module 'unistr/u32-cmp2'.
38824         * modules/unistr/u32-cmp2-tests: New file.
38825         * tests/unistr/test-u32-cmp2.c: New file.
38826
38827         Tests for module 'unistr/u16-cmp2'.
38828         * modules/unistr/u16-cmp2-tests: New file.
38829         * tests/unistr/test-u16-cmp2.c: New file.
38830
38831         Tests for module 'unistr/u8-cmp2'.
38832         * modules/unistr/u8-cmp2-tests: New file.
38833         * tests/unistr/test-u8-cmp2.c: New file.
38834         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38835
38836         Tests for module 'unistr/u32-cmp'.
38837         * modules/unistr/u32-cmp-tests: New file.
38838         * tests/unistr/test-u32-cmp.c: New file.
38839
38840         Tests for module 'unistr/u16-cmp'.
38841         * modules/unistr/u16-cmp-tests: New file.
38842         * tests/unistr/test-u16-cmp.c: New file.
38843
38844         Tests for module 'unistr/u8-cmp'.
38845         * modules/unistr/u8-cmp-tests: New file.
38846         * tests/unistr/test-u8-cmp.c: New file.
38847         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38848
38849         Tests for module 'unistr/u32-set'.
38850         * modules/unistr/u32-set-tests: New file.
38851         * tests/unistr/test-u32-set.c: New file.
38852
38853         Tests for module 'unistr/u16-set'.
38854         * modules/unistr/u16-set-tests: New file.
38855         * tests/unistr/test-u16-set.c: New file.
38856
38857         Tests for module 'unistr/u8-set'.
38858         * modules/unistr/u8-set-tests: New file.
38859         * tests/unistr/test-u8-set.c: New file.
38860         * tests/unistr/test-set.h: New file.
38861
38862         Tests for module 'unistr/u32-move'.
38863         * modules/unistr/u32-move-tests: New file.
38864         * tests/unistr/test-u32-move.c: New file.
38865
38866         Tests for module 'unistr/u16-move'.
38867         * modules/unistr/u16-move-tests: New file.
38868         * tests/unistr/test-u16-move.c: New file.
38869
38870         Tests for module 'unistr/u8-move'.
38871         * modules/unistr/u8-move-tests: New file.
38872         * tests/unistr/test-u8-move.c: New file.
38873         * tests/unistr/test-move.h: New file.
38874
38875         Tests for module 'unistr/u32-cpy'.
38876         * modules/unistr/u32-cpy-tests: New file.
38877         * tests/unistr/test-u32-cpy.c: New file.
38878
38879         Tests for module 'unistr/u16-cpy'.
38880         * modules/unistr/u16-cpy-tests: New file.
38881         * tests/unistr/test-u16-cpy.c: New file.
38882
38883         Tests for module 'unistr/u8-cpy'.
38884         * modules/unistr/u8-cpy-tests: New file.
38885         * tests/unistr/test-u8-cpy.c: New file.
38886         * tests/unistr/test-cpy.h: New file.
38887
38888 2010-01-09  Bruno Haible  <bruno@clisp.org>
38889
38890         Tests for module 'unistr/u32-uctomb'.
38891         * modules/unistr/u32-uctomb-tests: New file.
38892         * tests/unistr/test-u32-uctomb.c: New file.
38893
38894         Tests for module 'unistr/u16-uctomb'.
38895         * modules/unistr/u16-uctomb-tests: New file.
38896         * tests/unistr/test-u16-uctomb.c: New file.
38897
38898         Tests for module 'unistr/u8-uctomb'.
38899         * modules/unistr/u8-uctomb-tests: New file.
38900         * tests/unistr/test-u8-uctomb.c: New file.
38901
38902         Tests for module 'unistr/u32-mbtoucr'.
38903         * modules/unistr/u32-mbtoucr-tests: New file.
38904         * tests/unistr/test-u32-mbtoucr.c: New file.
38905
38906         Tests for module 'unistr/u16-mbtoucr'.
38907         * modules/unistr/u16-mbtoucr-tests: New file.
38908         * tests/unistr/test-u16-mbtoucr.c: New file.
38909
38910         Tests for module 'unistr/u8-mbtoucr'.
38911         * modules/unistr/u8-mbtoucr-tests: New file.
38912         * tests/unistr/test-u8-mbtoucr.c: New file.
38913
38914         Tests for module 'unistr/u32-mbtouc'.
38915         * modules/unistr/u32-mbtouc-tests: New file.
38916         * tests/unistr/test-u32-mbtouc.c: New file.
38917
38918         Tests for module 'unistr/u16-mbtouc'.
38919         * modules/unistr/u16-mbtouc-tests: New file.
38920         * tests/unistr/test-u16-mbtouc.c: New file.
38921
38922         Tests for module 'unistr/u8-mbtouc'.
38923         * modules/unistr/u8-mbtouc-tests: New file.
38924         * tests/unistr/test-u8-mbtouc.c: New file.
38925
38926         Tests for module 'unistr/u32-mbtouc-unsafe'.
38927         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38928         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38929         * tests/unistr/test-u32-mbtouc.h: New file.
38930
38931         Tests for module 'unistr/u16-mbtouc-unsafe'.
38932         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38933         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38934         * tests/unistr/test-u16-mbtouc.h: New file.
38935
38936         Tests for module 'unistr/u8-mbtouc-unsafe'.
38937         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38938         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38939         * tests/unistr/test-u8-mbtouc.h: New file.
38940
38941         Tests for module 'unistr/u32-mblen'.
38942         * modules/unistr/u32-mblen-tests: New file.
38943         * tests/unistr/test-u32-mblen.c: New file.
38944
38945         Tests for module 'unistr/u16-mblen'.
38946         * modules/unistr/u16-mblen-tests: New file.
38947         * tests/unistr/test-u16-mblen.c: New file.
38948
38949         Tests for module 'unistr/u8-mblen'.
38950         * modules/unistr/u8-mblen-tests: New file.
38951         * tests/unistr/test-u8-mblen.c: New file.
38952
38953         Tests for module 'unistr/u32-to-u16'.
38954         * modules/unistr/u32-to-u16-tests: New file.
38955         * tests/unistr/test-u32-to-u16.c: New file.
38956
38957         Tests for module 'unistr/u32-to-u8'.
38958         * modules/unistr/u32-to-u8-tests: New file.
38959         * tests/unistr/test-u32-to-u8.c: New file.
38960
38961         Tests for module 'unistr/u16-to-u32'.
38962         * modules/unistr/u16-to-u32-tests: New file.
38963         * tests/unistr/test-u16-to-u32.c: New file.
38964
38965         Tests for module 'unistr/u16-to-u8'.
38966         * modules/unistr/u16-to-u8-tests: New file.
38967         * tests/unistr/test-u16-to-u8.c: New file.
38968
38969         Tests for module 'unistr/u8-to-u32'.
38970         * modules/unistr/u8-to-u32-tests: New file.
38971         * tests/unistr/test-u8-to-u32.c: New file.
38972
38973         Tests for module 'unistr/u8-to-u16'.
38974         * modules/unistr/u8-to-u16-tests: New file.
38975         * tests/unistr/test-u8-to-u16.c: New file.
38976
38977         Tests for module 'unistr/u32-check'.
38978         * modules/unistr/u32-check-tests: New file.
38979         * tests/unistr/test-u32-check.c: New file.
38980
38981         Tests for module 'unistr/u16-check'.
38982         * modules/unistr/u16-check-tests: New file.
38983         * tests/unistr/test-u16-check.c: New file.
38984
38985         Tests for module 'unistr/u8-check'.
38986         * modules/unistr/u8-check-tests: New file.
38987         * tests/unistr/test-u8-check.c: New file.
38988
38989         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38990         (category_equals): New function.
38991         (main): Add more tests.
38992         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38993
38994         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38995
38996 2010-01-10  Bruno Haible  <bruno@clisp.org>
38997
38998         unistr/u*-strcoll: Try harder to distinguish different strings.
38999         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39000         compare s1 and s2 to see if they are different.
39001
39002 2010-01-10  Bruno Haible  <bruno@clisp.org>
39003
39004         unistr/u*-stpncpy: Fix the return value.
39005         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39006         description of the return value consistent with stpncpy in glibc.
39007         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39008         written non-NUL unit.
39009
39010 2010-01-10  Bruno Haible  <bruno@clisp.org>
39011
39012         unistr/u*-next: Add missing dependencies.
39013         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39014         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39015         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39016
39017 2010-01-10  Bruno Haible  <bruno@clisp.org>
39018
39019         unistr/u8-mbsnlen: Fix return value for incomplete character.
39020         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39021         u8_mblen.
39022         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39023         Remove unistr/u8-mblen.
39024         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39025         u16_mblen.
39026         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39027         Remove unistr/u16-mblen.
39028
39029 2010-01-10  Bruno Haible  <bruno@clisp.org>
39030
39031         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39032         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39033         Reported by Brian Gough <bjg@gnu.org> and
39034         Chris Clayton <chris2553@googlemail.com> via
39035         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39036
39037 2010-01-09  Bruno Haible  <bruno@clisp.org>
39038
39039         unistr/u16-to-u32: Reject invalid input.
39040         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39041         u16_mbtouc.
39042         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39043         Remove unistr/u16-mbtouc.
39044
39045         unistr/u16-to-u8: Reject invalid input.
39046         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39047         u16_mbtouc.
39048         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39049         Remove unistr/u16-mbtouc.
39050
39051         unistr/u8-to-u32: Reject invalid input.
39052         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39053         u8_mbtouc.
39054         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39055         Remove unistr/u8-mbtouc.
39056
39057         unistr/u8-to-u16: Reject invalid input.
39058         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39059         u8_mbtouc.
39060         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39061         Remove unistr/u8-mbtouc.
39062
39063 2010-01-09  Bruno Haible  <bruno@clisp.org>
39064
39065         Tests for module 'getlogin'.
39066         * modules/getlogin-tests: New file.
39067         * tests/test-getlogin.c: New file.
39068
39069         New module 'getlogin'.
39070         * lib/unistd.in.h (getlogin): New declaration.
39071         * lib/getlogin.c: New file.
39072         * m4/getlogin.m4: New file.
39073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39074         HAVE_GETLOGIN.
39075         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39076         HAVE_GETLOGIN.
39077         * modules/getlogin: New file.
39078         * doc/posix-functions/getlogin.texi: Mention the new module.
39079         Reported by John W. Eaton <jwe@gnu.org>.
39080
39081 2010-01-09  Bruno Haible  <bruno@clisp.org>
39082
39083         getlogin_r: Support for native Windows.
39084         * lib/getlogin_r.c: Include <windows.h>
39085         (getlogin_r): Implement for native Windows.
39086         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39087         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39088         via John W. Eaton <jwe@gnu.org>.
39089
39090 2010-01-09  Bruno Haible  <bruno@clisp.org>
39091
39092         getlogin_r: Small fixes.
39093         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39094         succeeds.
39095         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39096         before testing whether getlogin_r is declared. No need to set
39097         HAVE_DECL_GETLOGIN_R to 1.
39098         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39099
39100 2010-01-09  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/unistd.in.h (getlogin_r): Add comment.
39103
39104 2010-01-09  Bruno Haible  <bruno@clisp.org>
39105
39106         Tests for module 'getlogin_r'.
39107         * modules/getlogin_r-tests: New file.
39108         * tests/test-getlogin_r.c: New file.
39109
39110 2010-01-09  Jim Meyering  <meyering@redhat.com>
39111
39112         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39113         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39114         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39115
39116 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39117
39118         * lib/dup2.c (rpl_dup2): Improve comment.
39119
39120 2010-01-08  Eric Blake  <ebb9@byu.net>
39121
39122         maint.mk: allow packages to add makefile @@ exceptions
39123         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39124         (sc_makefile_check): Rename...
39125         (sc_makefile_at_at_check): ...to this, and use hook.
39126
39127         dup2: work around mingw bug
39128         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39129         Reported by Simon Josefsson.
39130
39131 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39132
39133         glob: Fix C++ compilation.
39134         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39135         C++.
39136
39137 2010-01-07  Bruno Haible  <bruno@clisp.org>
39138
39139         Fix indentation of wctype.in.h, broken since 2007-01-06.
39140         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39141
39142 2010-01-07  Bruno Haible  <bruno@clisp.org>
39143
39144         mbslen: Avoid collision with system function.
39145         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39146         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39147         * m4/mbslen.m4: New file.
39148         * modules/mbslen (Files): Add it.
39149         (configure.ac): Invoke gl_MBSLEN.
39150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39151         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39153         via Ian Beckwith <ianb@erislabs.net>.
39154
39155 2010-01-07  Bruno Haible  <bruno@clisp.org>
39156
39157         dirent: Document the last fix.
39158         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39159
39160 2010-01-07  Bruno Haible  <bruno@clisp.org>
39161
39162         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39163         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39164         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39165         va_list are defined.
39166         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39167         Reported by Eric Blake.
39168
39169 2010-01-07  Bruno Haible  <bruno@clisp.org>
39170
39171         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39172         * modules/xlist (Depends-on): Add 'list',
39173         * modules/xoset (Depends-on): Add 'oset'.
39174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39175
39176 2010-01-07  Bruno Haible  <bruno@clisp.org>
39177
39178         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39179         * doc/posix-functions/strncasecmp.texi: Likewise.
39180
39181 2010-01-07  Bruno Haible  <bruno@clisp.org>
39182
39183         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39184
39185 2010-01-07  John W. Eaton  <jwe@octave.org>
39186
39187         wctype: allow C++ use
39188         * lib/wctype.in.h: Add extern "C" block for C++.
39189
39190 2010-01-06  Eric Blake  <ebb9@byu.net>
39191
39192         maint.mk: detect incorrect GFDL usage
39193         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39194
39195 2010-01-06  Jim Meyering  <meyering@redhat.com>
39196         and Eric Blake  <ebb9@byu.net>
39197
39198         maint.mk: ignore multi-line copyright in NEWS
39199         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39200
39201 2010-01-06  Eric Blake  <ebb9@byu.net>
39202
39203         select: add missing dependency
39204         * modules/select-tests (Depends-on): Move sockets dependency...
39205         * modules/select (Depends-on): ...here.
39206         Reported by Ian Beckwith.
39207
39208         doc: regenerate INSTALL
39209         * doc/INSTALL: Reflect recent autoconf update.
39210         * doc/INSTALL.ISO: Likewise.
39211         * doc/INSTALL.UTF-8: Likewise.
39212
39213         pread: fix compilation on glibc
39214         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39215         Reported by Ralf Wildenhues.
39216
39217         dirent: fix test failure
39218         * lib/dirent.in.h (includes): Guarantee ino_t.
39219         Reported by Ralf Wildenhues.
39220
39221 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39222
39223         linkat, renameat: avoid bad free
39224         * lib/at-func2.c (at_func2): Fix typo.
39225         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39226
39227 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39228
39229         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39230         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39231         to avoid failure of symlink test later.
39232
39233 2010-01-06  Eric Blake  <ebb9@byu.net>
39234
39235         stdio, unistd: guarantee ssize_t
39236         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39237         2008 are exposed when needed.
39238         * lib/stdio.in.h (includes): Likewise.
39239         Reported by Ralf Wildenhues.
39240
39241 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39242
39243         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39244         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39245         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39246
39247 2010-01-06  Jim Meyering  <meyering@redhat.com>
39248
39249         readtokens: this module *does* require xalloc.h
39250         It uses only functions that were omitted by the old syntax-check rule.
39251         * lib/readtokens.c: Include "xalloc.h" once again.
39252         * modules/readtokens (Depends-on): Add xalloc.
39253         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39254
39255 2010-01-05  Eric Blake  <ebb9@byu.net>
39256
39257         maint: support 'make announcement' from a VPATH build
39258         * top/maint.mk (announcement): Look for correct NEWS file.
39259
39260 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39261
39262         utimens (fdutimens): ignore a negative FD, per contract
39263         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39264         when we have a valid file descriptor.  Otherwise, using a brand
39265         new glibc (with just-patched futimens that now fails with EBADF)
39266         would cause this function to fail with ENOSYS.
39267         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39268         See also http://bugzilla.redhat.com/552320.
39269
39270 2010-01-05  Eric Blake  <ebb9@byu.net>
39271
39272         strcase: document what it provides
39273         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39274         gnulib module.
39275         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39276         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39277
39278 2010-01-05  Jim Meyering  <meyering@redhat.com>
39279
39280         maint: remove useless inclusions of "xalloc.h"
39281         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39282         * lib/readtokens.c: Likewise.
39283         * lib/same.c: Likewise.
39284         * modules/getloadavg (Depends-on): Remove xalloc.
39285         * modules/readtokens: Likewise.
39286         * modules/same: Likewise.
39287
39288         maint.mk: include 4 more function names in alloca.h-checking regexp
39289         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39290         regexp.  Before, we would give a false-positive (saying alloca.h
39291         is included unnecessarily) when the only uses involved omitted symbols.
39292
39293         xalloc.h: use consistent formatting
39294         * lib/xalloc.h: Move declarations to start in the first column.
39295
39296 2010-01-05  Eric Blake  <ebb9@byu.net>
39297
39298         mkdir: avoid xalloc
39299         * lib/mkdir.c (includes): Drop unused header.
39300         Reported by John W. Eaton.
39301
39302 2010-01-04  Jim Meyering  <meyering@redhat.com>
39303
39304         nl_langinfo: avoid configure-time syntax error
39305         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39306         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39307         the empty string.  Don't let that provoke a shell syntax error.
39308
39309         regcomp, regexec, fnmatch: avoid array bounds read error
39310         * lib/regcomp.c (build_equiv_class): From glibc:
39311         Use only the low 24 bits of a findidx return value as an index
39312         into the weights array.  Patch by Ulrich Drepper:
39313         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39314         * lib/regexec.c (check_node_accept_bytes): Likewise.
39315         * lib/fnmatch_loop.c (FCT): Likewise.
39316
39317         regcomp: skip collseq lookup when there are no rules
39318         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39319         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39320
39321         regcomp: recognize ill-formed { } expressions
39322         * lib/regcomp.c (parse_dup_op): From glibc:
39323         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39324
39325         regcomp: fix typo in comment
39326         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39327         s/satisfy/satisfies/.
39328
39329         regcomp: sync from glibc: remove dead store
39330         * lib/regcomp.c (duplicate_node_closure): Remove useless
39331         search_duplicated_node call and dead store.
39332
39333         regcomp: sync from glibc; always use nl_langinfo
39334         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39335         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39336         * modules/regex (Depends-on): Add nl_langinfo.
39337
39338 2010-01-04  Eric Blake  <ebb9@byu.net>
39339
39340         fdopendir: fix configure test
39341         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39342
39343 2010-01-01  Bruno Haible  <bruno@clisp.org>
39344
39345         wchar: Remove unused configure check.
39346         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39347
39348 2010-01-01  Eric Blake  <ebb9@byu.net>
39349
39350         headers: make check of system header explicit
39351         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39352         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39353         ourselves.
39354         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39355         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39356         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39357         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39358         internals.
39359         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39360         missing.
39361         Suggested by Bruno Haible.
39362
39363 2010-01-01  Jim Meyering  <meyering@redhat.com>
39364
39365         ChangeLog: tweak to eliminate unnecessary copyright line
39366         * ChangeLog: Remove a copyright line that was mistakenly updated
39367         by today's update-copyright run.  Reported by Eric Blake.
39368
39369         test-update-copyright: don't let envvar setting cause test failure
39370         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39371
39372 2010-01-01  Bruno Haible  <bruno@clisp.org>
39373
39374         localename: Avoid gcc warning.
39375         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39376         function if it is not used.
39377
39378 2010-01-01  Jim Meyering  <meyering@redhat.com>
39379
39380         update nearly all FSF copyright year lists to include 2010
39381         Use the same procedure as for 2009, outlined in
39382         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39383
39384         version-etc: set COPYRIGHT_YEAR to 2010
39385         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39386
39387 2009-12-31  Eric Blake  <ebb9@byu.net>
39388
39389         doc: correct availability of cygwin 1.5.x getopt
39390         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39391         variables.
39392         * doc/posix-functions/opterr.texi (opterr): Likewise.
39393         * doc/posix-functions/optind.texi (optind): Likewise.
39394         * doc/posix-functions/optopt.texi (optopt): Likewise.
39395         * doc/posix-functions/tzname.texi (tzname): Likewise.
39396
39397         openat: update maintainer
39398         * modules/openat (Maintainer): Add myself.
39399
39400         utimens: avoid shadowing warning
39401         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39402         buffers into one, to avoid shadowing, as well as avoiding a
39403         redundant stat.
39404         Reported by Jim Meyering.
39405
39406         test-dup2: avoid compiler warning
39407         * tests/test-dup2.c (is_inheritable): Only define if used.
39408
39409 2010-01-01  Bruno Haible  <bruno@clisp.org>
39410
39411         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39412         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39413         defined, use wctomb instead of wcrtomb.
39414
39415 2010-01-01  Bruno Haible  <bruno@clisp.org>
39416
39417         iconv: Reject native Solaris iconv.
39418         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39419         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39420
39421 2009-12-31  Bruno Haible  <bruno@clisp.org>
39422
39423         * tests/test-signal.c (main): Remove test of 'SIG'.
39424
39425 2009-12-31  Bruno Haible  <bruno@clisp.org>
39426
39427         spawn: Fix incomplete fix.
39428         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39429         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39430         warnings for GNULIB_POSIXCHECK again.
39431         Reported by Eric Blake.
39432
39433 2009-12-31  Bruno Haible  <bruno@clisp.org>
39434
39435         Avoid namespace pollution on glibc systems.
39436         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39437         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39438         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39439         glibc systems.
39440
39441 2009-12-31  Bruno Haible  <bruno@clisp.org>
39442
39443         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39444         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39445         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39446         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39447         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39448         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39449         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39450
39451 2009-12-31  Bruno Haible  <bruno@clisp.org>
39452
39453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39454         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39455         afterwards.
39456
39457 2009-12-31  Bruno Haible  <bruno@clisp.org>
39458
39459         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39460         SYS_UTSNAME_H.
39461
39462 2009-12-31  Bruno Haible  <bruno@clisp.org>
39463
39464         spawn: Fix misapplied patch.
39465         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39466         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39467         warnings for GNULIB_POSIXCHECK.
39468
39469 2009-12-31  Bruno Haible  <bruno@clisp.org>
39470
39471         times: Update after sys_times changed.
39472         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39473         * modules/times (Files): Add it.
39474         (configure.ac): Invoke gl_FUNC_TIMES.
39475
39476 2009-12-31  Bruno Haible  <bruno@clisp.org>
39477
39478         Use AC_C_INLINE where necessary.
39479         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39481         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39482         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39483         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39484         * m4/mbiter.m4 (gl_MBITER): Likewise.
39485         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39486         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39487         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39488         * modules/u64 (configure.ac): Likewise.
39489
39490 2009-12-31  Bruno Haible  <bruno@clisp.org>
39491
39492         Use AC_C_INLINE instead of module 'inline' where possible.
39493         * modules/inline (Description): Clarify purpose.
39494         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39495         * modules/count-one-bits (Depends-on): Remove inline.
39496         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39497         * modules/openat (Depends-on): Remove inline.
39498         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39499         instead of depending on module 'inline'.
39500         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39501         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39502         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39503         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39504         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39505         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39506         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39507         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39508         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39509         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39510         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39511         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39512         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39513         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39514         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39515         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39516         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39517         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39518         Likewise.
39519         * modules/unictype/property-ascii-hex-digit (Depends-on,
39520         configure.ac): Likewise.
39521         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39522         configure.ac): Likewise.
39523         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39524         configure.ac): Likewise.
39525         * modules/unictype/property-bidi-block-separator (Depends-on,
39526         configure.ac): Likewise.
39527         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39528         configure.ac): Likewise.
39529         * modules/unictype/property-bidi-common-separator (Depends-on,
39530         configure.ac): Likewise.
39531         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39532         Likewise.
39533         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39534         configure.ac): Likewise.
39535         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39536         configure.ac): Likewise.
39537         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39538         configure.ac): Likewise.
39539         * modules/unictype/property-bidi-european-digit (Depends-on,
39540         configure.ac): Likewise.
39541         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39542         configure.ac): Likewise.
39543         * modules/unictype/property-bidi-left-to-right (Depends-on,
39544         configure.ac): Likewise.
39545         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39546         configure.ac): Likewise.
39547         * modules/unictype/property-bidi-other-neutral (Depends-on,
39548         configure.ac): Likewise.
39549         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39550         Likewise.
39551         * modules/unictype/property-bidi-segment-separator (Depends-on,
39552         configure.ac): Likewise.
39553         * modules/unictype/property-bidi-whitespace (Depends-on,
39554         configure.ac): Likewise.
39555         * modules/unictype/property-combining (Depends-on, configure.ac):
39556         Likewise.
39557         * modules/unictype/property-composite (Depends-on, configure.ac):
39558         Likewise.
39559         * modules/unictype/property-currency-symbol (Depends-on,
39560         configure.ac): Likewise.
39561         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39562         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39563         Likewise.
39564         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39565         configure.ac): Likewise.
39566         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39567         Likewise.
39568         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39569         Likewise.
39570         * modules/unictype/property-extender (Depends-on, configure.ac):
39571         Likewise.
39572         * modules/unictype/property-format-control (Depends-on, configure.ac):
39573         Likewise.
39574         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39575         Likewise.
39576         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39577         Likewise.
39578         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39579         Likewise.
39580         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39581         Likewise.
39582         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39583         Likewise.
39584         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39585         Likewise.
39586         * modules/unictype/property-id-start (Depends-on, configure.ac):
39587         Likewise.
39588         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39589         Likewise.
39590         * modules/unictype/property-ids-binary-operator (Depends-on,
39591         configure.ac): Likewise.
39592         * modules/unictype/property-ids-trinary-operator (Depends-on,
39593         configure.ac): Likewise.
39594         * modules/unictype/property-ignorable-control (Depends-on,
39595         configure.ac): Likewise.
39596         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39597         Likewise.
39598         * modules/unictype/property-join-control (Depends-on, configure.ac):
39599         Likewise.
39600         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39601         Likewise.
39602         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39603         Likewise.
39604         * modules/unictype/property-logical-order-exception (Depends-on,
39605         configure.ac): Likewise.
39606         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39607         Likewise.
39608         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39609         * modules/unictype/property-non-break (Depends-on, configure.ac):
39610         Likewise.
39611         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39612         Likewise.
39613         * modules/unictype/property-numeric (Depends-on, configure.ac):
39614         Likewise.
39615         * modules/unictype/property-other-alphabetic (Depends-on,
39616         configure.ac): Likewise.
39617         * modules/unictype/property-other-default-ignorable-code-point
39618         (Depends-on, configure.ac): Likewise.
39619         * modules/unictype/property-other-grapheme-extend (Depends-on,
39620         configure.ac): Likewise.
39621         * modules/unictype/property-other-id-continue (Depends-on,
39622         configure.ac): Likewise.
39623         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39624         Likewise.
39625         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39626         Likewise.
39627         * modules/unictype/property-other-math (Depends-on, configure.ac):
39628         Likewise.
39629         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39630         Likewise.
39631         * modules/unictype/property-paired-punctuation (Depends-on,
39632         configure.ac): Likewise.
39633         * modules/unictype/property-paragraph-separator (Depends-on,
39634         configure.ac): Likewise.
39635         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39636         Likewise.
39637         * modules/unictype/property-pattern-white-space (Depends-on,
39638         configure.ac): Likewise.
39639         * modules/unictype/property-private-use (Depends-on, configure.ac):
39640         Likewise.
39641         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39642         Likewise.
39643         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39644         Likewise.
39645         * modules/unictype/property-radical (Depends-on, configure.ac):
39646         Likewise.
39647         * modules/unictype/property-sentence-terminal (Depends-on,
39648         configure.ac): Likewise.
39649         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39650         Likewise.
39651         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39652         * modules/unictype/property-terminal-punctuation (Depends-on,
39653         configure.ac): Likewise.
39654         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39655         Likewise.
39656         * modules/unictype/property-unassigned-code-value (Depends-on,
39657         configure.ac): Likewise.
39658         * modules/unictype/property-unified-ideograph (Depends-on,
39659         configure.ac): Likewise.
39660         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39661         Likewise.
39662         * modules/unictype/property-variation-selector (Depends-on,
39663         configure.ac): Likewise.
39664         * modules/unictype/property-white-space (Depends-on, configure.ac):
39665         Likewise.
39666         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39667         Likewise.
39668         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39669         Likewise.
39670         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39671         Likewise.
39672         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39673         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39674         Likewise.
39675
39676 2009-12-31  Bruno Haible  <bruno@clisp.org>
39677
39678         Remove unnecessary AC_C_INLINE invocation.
39679         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39680         since 2009-08-21.
39681
39682 2009-12-31  Jim Meyering  <meyering@redhat.com>
39683
39684         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39685         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39686         With this change, we can all remove the gpg_key_ID = ... definition
39687         from our respective cfg.mk files.
39688
39689         maint.mk: create announcement template in ~/, not in /tmp
39690         * top/maint.mk (emit_upload_commands): Adjust.
39691         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39692         Remove temporary file, .ci-msg.
39693
39694 2009-12-31  Eric Blake  <ebb9@byu.net>
39695
39696         link-warning: always build headers with link warnings
39697         * modules/arpa_inet (Makefile.am): Always build replacement
39698         header.
39699         * modules/ctype (Makefile.am): Likewise.
39700         * modules/dirent (Makefile.am): Likewise.
39701         * modules/inttypes (Makefile.am): Likewise.
39702         * modules/langinfo (Makefile.am): Likewise.
39703         * modules/locale (Makefile.am): Likewise.
39704         * modules/spawn (Makefile.am): Likewise.
39705         * modules/sys_file (Makefile.am): Likewise.
39706         * modules/sys_ioctl (Makefile.am): Likewise.
39707         * modules/sys_select (Makefile.am): Likewise.
39708         * modules/sys_socket (Makefile.am): Likewise.
39709         * modules/sys_times (Makefile.am): Likewise.
39710         * modules/sys_utsname (Makefile.am): Likewise.
39711         * modules/sys_wait (Makefile.am): Likewise.
39712         * modules/wchar (Makefile.am): Likewise.
39713         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39714         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39715         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39716         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39717         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39718         Likewise.
39719         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39721         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39722         Likewise.
39723         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39724         Likewise.
39725         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39726         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39727         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39729         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39730         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39731         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39732         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39733         (gl_WCHAR_H_DEFAULTS): Likewise.
39734
39735 2009-12-31  Eric Blake  <ebb9@byu.net>
39736
39737         signal, spawn: use link warnings
39738         * lib/signal.in.h (sigset_t): Make unconditional.
39739         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39740         (sigpending, sigprocmask, sigaction): Add link warnings.
39741         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39742         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39743         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39744         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39745         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39746         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39747         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39748         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39749         (posix_spawn_file_actions_destroy)
39750         (posix_spawn_file_actions_addopen)
39751         (posix_spawn_file_actions_addclose)
39752         (posix_spawn_file_actions_adddup2): Likewise.
39753         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39754         * tests/test-signal.c (main): Enhance test.
39755
39756         spawn: improve wrapper support
39757         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39758         (gl_SPAWN_H_DEFAULTS): New defaults.
39759         * modules/spawn (Makefile.am): Substitute them.
39760         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39761         Only declare if missing or broken.
39762
39763         sys_times, sys_utsname: use include_next
39764         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39765         header.
39766         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39767         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39768         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39769         * modules/sys_times (Depends-on): Add include_next.
39770         (Makefile.am): Substitute additional values.
39771         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39772         * lib/sys_times.in.h (includes): Include native header, if
39773         available.
39774         * lib/sys_utsname.in.h (includes): Likewise.
39775         * tests/test-sys_times.c (main): Enhance test.
39776
39777         fdutimensat: revert prior patch
39778         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39779         utimens.h.
39780         Reported by Bruno Haible.
39781
39782 2009-12-30  Eric Blake  <ebb9@byu.net>
39783
39784         sys_wait: drop link-warning dependency
39785         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39786         link-warning efforts.
39787         * lib/sys_wait.in.h: Likewise.
39788
39789         fdutimensat: remove bogus dependency
39790         * modules/fdutimensat (Depends-on): Drop inline.
39791
39792         unistd: fix typo
39793         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39794
39795 2009-12-30  Bruno Haible  <bruno@clisp.org>
39796
39797         Fix compilation error with Solaris cc.
39798         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39799         * lib/unicase/u16-is-invariant.c: Likewise.
39800         * lib/unicase/u32-is-invariant.c: Likewise.
39801         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39802
39803 2009-12-30  Bruno Haible  <bruno@clisp.org>
39804
39805         Fix test crash.
39806         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39807         locales.
39808         Reported by Simon Josefsson <simon@josefsson.org>.
39809
39810 2009-12-30  Bruno Haible  <bruno@clisp.org>
39811
39812         Fix compilation error on most platforms.
39813         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39814         Reported by Simon Josefsson <simon@josefsson.org>
39815         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39816
39817 2009-12-30  Eric Blake  <ebb9@byu.net>
39818
39819         futimens, utimensat: work around ntfs-3g bug
39820         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39821         a ctime bug is present, and expand workaround to cover ntfs-3g.
39822         * lib/utimens.c (fdutimens, lutimens): Likewise.
39823         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39824         (validate_timespec): Adjust return value.
39825         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39826         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39827         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39828
39829 2009-12-29  Eric Blake  <ebb9@byu.net>
39830
39831         link-warning: make usage consistent
39832         * modules/ctype (Depends-on): Add link-warning.
39833         (Makefile.am): Update rules accordingly.
39834         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39835         * modules/locale (Depends-on, Makefile.am): Likewise.
39836         * modules/sys_file (Makefile.am): Likewise.
39837         * modules/getopt-posix (Makefile.am): Delete unused link warning
39838         efforts.
39839         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39840         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39841         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39842         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39843
39844         stdio: remove unused variables
39845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39847         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39848
39849         tests: test more substitute headers
39850         * modules/ctype-tests: New file.
39851         * modules/dirent-tests: Likewise.
39852         * modules/spawn-tests: Likewise.
39853         * modules/sys_file-tests: Likewise.
39854         * modules/sys_ioctl-tests: Likewise.
39855         * modules/sys_wait-tests: Likewise.
39856         * tests/test-ctype.c: Likewise.
39857         * tests/test-dirent.c: Likewise.
39858         * tests/test-spawn.c: Likewise.
39859         * tests/test-sys_file.c: Likewise.
39860         * tests/test-sys_ioctl.c: Likewise.
39861         * tests/test-sys_wait.c: Likewise.
39862         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39863         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39864         whether or not flock is in use.
39865
39866         tests: remove License section from module
39867         * modules/arpa_inet-tests: Remove unneeded section.
39868         * modules/byteswap-tests: Likewise.
39869         * modules/ceilf-tests: Likewise.
39870         * modules/ceill-tests: Likewise.
39871         * modules/crypto/des-tests: Likewise.
39872         * modules/crypto/gc-arcfour-tests: Likewise.
39873         * modules/crypto/gc-arctwo-tests: Likewise.
39874         * modules/crypto/gc-des-tests: Likewise.
39875         * modules/crypto/gc-hmac-md5-tests: Likewise.
39876         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39877         * modules/crypto/gc-md2-tests: Likewise.
39878         * modules/crypto/gc-md4-tests: Likewise.
39879         * modules/crypto/gc-md5-tests: Likewise.
39880         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39881         * modules/crypto/gc-rijndael-tests: Likewise.
39882         * modules/crypto/gc-sha1-tests: Likewise.
39883         * modules/crypto/gc-tests: Likewise.
39884         * modules/crypto/md2-tests: Likewise.
39885         * modules/crypto/md4-tests: Likewise.
39886         * modules/fcntl-h-tests: Likewise.
39887         * modules/floorf-tests: Likewise.
39888         * modules/floorl-tests: Likewise.
39889         * modules/frexp-nolibm-tests: Likewise.
39890         * modules/frexp-tests: Likewise.
39891         * modules/frexpl-nolibm-tests: Likewise.
39892         * modules/frexpl-tests: Likewise.
39893         * modules/getaddrinfo-tests: Likewise.
39894         * modules/inttypes-tests: Likewise.
39895         * modules/isfinite-tests: Likewise.
39896         * modules/isinf-tests: Likewise.
39897         * modules/ldexpl-tests: Likewise.
39898         * modules/locale-tests: Likewise.
39899         * modules/math-tests: Likewise.
39900         * modules/netdb-tests: Likewise.
39901         * modules/netinet_in-tests: Likewise.
39902         * modules/printf-frexp-tests: Likewise.
39903         * modules/printf-frexpl-tests: Likewise.
39904         * modules/priv-set-tests: Likewise.
39905         * modules/random_r-tests: Likewise.
39906         * modules/round-tests: Likewise.
39907         * modules/roundf-tests: Likewise.
39908         * modules/roundl-tests: Likewise.
39909         * modules/search-tests: Likewise.
39910         * modules/select-tests: Likewise.
39911         * modules/signal-tests: Likewise.
39912         * modules/stdbool-tests: Likewise.
39913         * modules/stddef-tests: Likewise.
39914         * modules/stdint-tests: Likewise.
39915         * modules/stdio-tests: Likewise.
39916         * modules/stdlib-tests: Likewise.
39917         * modules/string-tests: Likewise.
39918         * modules/strings-tests: Likewise.
39919         * modules/sys_select-tests: Likewise.
39920         * modules/sys_socket-tests: Likewise.
39921         * modules/sys_stat-tests: Likewise.
39922         * modules/sys_time-tests: Likewise.
39923         * modules/sys_utsname-tests: Likewise.
39924         * modules/sysexits-tests: Likewise.
39925         * modules/time-tests: Likewise.
39926         * modules/trunc-tests: Likewise.
39927         * modules/truncf-tests: Likewise.
39928         * modules/truncl-tests: Likewise.
39929         * modules/tsearch-tests: Likewise.
39930         * modules/unistd-tests: Likewise.
39931         * modules/wchar-tests: Likewise.
39932         * modules/wctype-tests: Likewise.
39933
39934         tests: fix license on several tests
39935         * tests/test-des.c: Update to GPLv3+.
39936         * tests/test-flock.c: Likewise.
39937         * tests/test-fsync.c: Likewise.
39938         * tests/test-futimens.h: Likewise.
39939         * tests/test-gc-arcfour.c: Likewise.
39940         * tests/test-gc-arctwo.c: Likewise.
39941         * tests/test-gc-des.c: Likewise.
39942         * tests/test-gc-hmac-md5.c: Likewise.
39943         * tests/test-gc-hmac-sha1.c: Likewise.
39944         * tests/test-gc-md2.c: Likewise.
39945         * tests/test-gc-md4.c: Likewise.
39946         * tests/test-gc-md5.c: Likewise.
39947         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39948         * tests/test-gc-rijndael.c: Likewise.
39949         * tests/test-gc-sha1.c: Likewise.
39950         * tests/test-gc.c: Likewise.
39951         * tests/test-getcwd.c: Likewise.
39952         * tests/test-link.c: Likewise.
39953         * tests/test-link.h: Likewise.
39954         * tests/test-lutimens.h: Likewise.
39955         * tests/test-md2.c: Likewise.
39956         * tests/test-md4.c: Likewise.
39957         * tests/test-mkdir.h: Likewise.
39958         * tests/test-rename.c: Likewise.
39959         * tests/test-rename.h: Likewise.
39960         * tests/test-safe-alloc.c: Likewise.
39961         * tests/test-utimens-common.h: Likewise.
39962         * tests/test-utimens.h: Likewise.
39963
39964         maint: sync license texts
39965         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39966         * doc/gpl-3.0.texi: Revert copyright year update.
39967         * doc/lgpl-3.0.texi: Likewise.
39968
39969 2009-12-29  Jim Meyering  <meyering@redhat.com>
39970
39971         update nearly all FSF copyright year lists to include 2009
39972         The files named by the following are exempted:
39973             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39974               test -f "$dst" && { echo "$dst"; continue; }
39975               test -d "$dst" || continue
39976               echo "$dst"/$(basename "$src")
39977             done > exempt
39978             git ls-files tests/unictype >> exempt
39979         In the remaining files, convert to all-interval notation if
39980         - there is already at least one year interval like 2000-2003
39981         - the file is maintained by me
39982         - the file is in lib/uni*/, where that style already prevails
39983         Otherwise, use update-copyright's default.
39984
39985 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39986         and Eric Blake  <ebb9@byu.net>
39987
39988         tests: don't require debug system() to pass
39989         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39990         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39991         * tests/test-unlink.h (test_unlink_func): Likewise.
39992         * tests/test-fstatat.c (main): ...into callers.
39993         * tests/test-lstat.c (main): Likewise.
39994         * tests/test-rmdir.c (main): Likewise.
39995         * tests/test-unlink.c (main): Likewise.
39996         * tests/test-unlinkat.c (main): Likewise.
39997         * tests/test-areadlink-with-size.c (main): Don't require a
39998         debug-only system call to pass, aiding cross-testing to mingw.
39999         * tests/test-areadlink.c (main): Likewise.
40000         * tests/test-areadlinkat-with-size.c (main): Likewise.
40001         * tests/test-areadlinkat.c (main): Likewise.
40002         * tests/test-canonicalize-lgpl.c (main): Likewise.
40003         * tests/test-canonicalize.c (main): Likewise.
40004         * tests/test-chown.c (main): Likewise.
40005         * tests/test-fchownat.c (main): Likewise.
40006         * tests/test-lchown.c (main): Likewise.
40007         * tests/test-fdutimensat.c (main): Likewise.
40008         * tests/test-futimens.c (main): Likewise.
40009         * tests/test-link.c (main): Likewise.
40010         * tests/test-linkat.c (main): Likewise.
40011         * tests/test-mkdir.c (main): Likewise.
40012         * tests/test-mkdirat.c (main): Likewise.
40013         * tests/test-mkfifo.c (main): Likewise.
40014         * tests/test-mkfifoat.c (main): Likewise.
40015         * tests/test-mknod.c (main): Likewise.
40016         * tests/test-readlink.c (main): Likewise.
40017         * tests/test-remove.c (main): Likewise.
40018         * tests/test-rename.c (main): Likewise.
40019         * tests/test-renameat.c (main): Likewise.
40020         * tests/test-symlink.c (main): Likewise.
40021         * tests/test-symlinkat.c (main): Likewise.
40022         * tests/test-utimens.c (main): Likewise.
40023         * tests/test-utimensat.c (main): Likewise.
40024
40025 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40026
40027         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40028         on $(UNUSED_PARAMETER_H) to avoid build failure.
40029
40030 2009-12-28  Jim Meyering  <meyering@redhat.com>
40031
40032         update-copyright: you may specify a max. line length other than 72
40033         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40034
40035         maint: use consistent FSF copyright line syntax
40036         * lib/posixtm.c: Add missing comma in FSF copyright line.
40037         * lib/posixtm.h: Likewise.
40038         * lib/getugroups.c: Add missing ", Inc.".
40039
40040         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40041         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40042         FSF copyright line.  Remove trailing blanks.
40043
40044 2009-12-28  Eric Blake  <ebb9@byu.net>
40045
40046         test-dup2: reduce dependencies
40047         * modules/cloexec (Configure.ac): Set witness.
40048         * modules/dup2-tests (Depends-on): Drop cloexec.
40049         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40050         not present.
40051         Suggested by Bruno Haible.
40052
40053 2009-12-26  Bruno Haible  <bruno@clisp.org>
40054
40055         Remove an unneeded dependency.
40056         * modules/fseterr (Depends-on): Remove dup2.
40057
40058 2009-12-26  Eric Blake  <ebb9@byu.net>
40059
40060         tests: use macros.h in more places
40061         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40062         (ASSERT_STREAM): Provide default of stderr.
40063         * tests/test-dirent-safer.c: Include macros.h, using alternate
40064         stream for assertions.
40065         * tests/test-dup-safer.c: Likewise.
40066         * tests/test-freopen-safer.c: Likewise.
40067         * tests/test-getopt.c: Likewise.
40068         * tests/test-openat-safer.c: Likewise.
40069         * tests/test-pipe.c: Likewise.
40070         * tests/test-popen-safer.c: Likewise.
40071         * modules/dirent-safer-tests (Files): Include macros.h.
40072         * modules/unistd-safer-tests (Files): Likewise.
40073         * modules/freopen-safer-tests (Files): Likewise.
40074         * modules/getopt-posix-tests (Files): Likewise.
40075         * modules/openat-safer-tests (Files): Likewise.
40076         * modules/pipe-tests (Files): Likewise.
40077
40078 2009-12-26  Bruno Haible  <bruno@clisp.org>
40079
40080         javacomp: Portability fix.
40081         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40082         that it also works on Solaris.
40083
40084 2009-12-26  Bruno Haible  <bruno@clisp.org>
40085
40086         localename: Fix storage allocation of gl_locale_name_thread's result.
40087         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40088         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40089         all platforms that have 'uselocale'.
40090         (gl_locale_name_thread_unsafe): New function, extracted from
40091         gl_locale_name_thread.
40092         (gl_locale_name_thread): Call struniq on all platforms that have
40093         'uselocale'.
40094         * tests/test-localename.c (test_locale_name_thread): Check that the
40095         resulting strings are permanently allocated.
40096         * modules/localename-tests (Depends-on): Add strdup.
40097
40098 2009-12-26  Bruno Haible  <bruno@clisp.org>
40099
40100         * tests/test-localename.c (categories): Fill in the strings.
40101
40102 2009-12-26  Jim Meyering  <meyering@redhat.com>
40103
40104         isdir: complete the removal of m4/isdir.m4
40105         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40106
40107         isdir: clean up, since at least grep still uses it
40108         * lib/isdir.c: Include "isdir.h".
40109         (S_ISDIR): Remove now-unneeded definition.
40110         * modules/isdir (Files): Add lib/isdir.h.
40111         * lib/isdir.h: New file, with declaration.
40112         * m4/isdir.m4: Remove file -- unneeded.
40113
40114 2009-12-25  Bruno Haible  <bruno@clisp.org>
40115
40116         selinux-h: Make generated .h files standalone.
40117         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40118         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40119         * lib/se-selinux.in.h: Likewise.
40120         * modules/selinux-h (Depends-on): Add unused-parameter.
40121         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40122         selinux/selinux.h and selinux/context.h.
40123         Suggested by Eric Blake.
40124
40125 2009-12-25  Bruno Haible  <bruno@clisp.org>
40126
40127         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40128         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40129         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40130         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40131         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40132
40133 2009-12-24  Bruno Haible  <bruno@clisp.org>
40134
40135         openat: Fix warning.
40136         * lib/openat-proc.c: Include <unistd.h>.
40137
40138 2009-12-24  Bruno Haible  <bruno@clisp.org>
40139
40140         New module 'unused-parameter'.
40141         * build-aux/unused-parameter.h: New file, extracted from earlier
40142         gnulib-common.m4.
40143         * modules/unused-parameter: New file.
40144         * lib/unistr.h: Include unused-parameter.h.
40145         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40146         _GL_UNUSED.
40147         * modules/unistr/base (Depends-on): Add unused-parameter.
40148
40149 2009-12-24  Bruno Haible  <bruno@clisp.org>
40150
40151         Add missing dependencies to 'extensions' module.
40152         * m4/extensions.m4: Add comment.
40153         * modules/accept4 (Depends-on): Add extensions.
40154         * modules/dup3 (Depends-on): Likewise.
40155         * modules/fcntl (Depends-on): Likewise.
40156         * modules/futimens (Depends-on): Likewise.
40157         * modules/mknod (Depends-on): Likewise.
40158         * modules/pipe2 (Depends-on): Likewise.
40159         * modules/stat-time (Depends-on): Likewise.
40160         * modules/strcasestr-simple (Depends-on): Likewise.
40161         * modules/strsignal (Depends-on): Likewise.
40162         * modules/utimensat (Depends-on): Likewise.
40163         * modules/localcharset (Depends-on): Likewise. Needed because of
40164         gl_FCNTL_O_FLAGS.
40165         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40166         AC_TYPE_MBSTATE_T.
40167         * modules/wcsnrtombs (Depends-on): Likewise.
40168         * modules/wcsrtombs (Depends-on): Likewise.
40169
40170 2009-12-24  Bruno Haible  <bruno@clisp.org>
40171
40172         binary-io: Avoid gcc warning due to SET_BINARY.
40173         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40174         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40175
40176 2009-12-24  Bruno Haible  <bruno@clisp.org>
40177
40178         Avoid future namespace pollution on glibc systems.
40179         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40180         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40181         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40182         glibc systems.
40183
40184 2009-12-24  Bruno Haible  <bruno@clisp.org>
40185
40186         Refactor common macros used in tests.
40187         * tests/macros.h: New file.
40188         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40189         and/or <stdlib.h>, if appropriate.
40190         (ASSERT, SIZEOF): Remove macros.
40191         * tests/test-areadlink-with-size.c: Likewise.
40192         * tests/test-areadlinkat.c: Likewise.
40193         * tests/test-areadlinkat-with-size.c: Likewise.
40194         * tests/test-argmatch.c: Likewise.
40195         * tests/test-argv-iter.c: Likewise.
40196         * tests/test-array-mergesort.c: Likewise.
40197         * tests/test-array_list.c: Likewise.
40198         * tests/test-array_oset.c: Likewise.
40199         * tests/test-avltree_list.c: Likewise.
40200         * tests/test-avltree_oset.c: Likewise.
40201         * tests/test-avltreehash_list.c: Likewise.
40202         * tests/test-base64.c: Likewise.
40203         * tests/test-binary-io.c: Likewise.
40204         * tests/test-bitrotate.c: Likewise.
40205         * tests/test-btowc.c: Likewise.
40206         * tests/test-byteswap.c: Likewise.
40207         * tests/test-c-ctype.c: Likewise.
40208         * tests/test-c-stack.c: Likewise.
40209         * tests/test-c-strcasecmp.c: Likewise.
40210         * tests/test-c-strcasestr.c: Likewise.
40211         * tests/test-c-strncasecmp.c: Likewise.
40212         * tests/test-c-strstr.c: Likewise.
40213         * tests/test-canonicalize-lgpl.c: Likewise.
40214         * tests/test-canonicalize.c: Likewise.
40215         * tests/test-carray_list.c: Likewise.
40216         * tests/test-ceilf1.c: Likewise.
40217         * tests/test-ceilf2.c: Likewise.
40218         * tests/test-ceill.c: Likewise.
40219         * tests/test-chown.c: Likewise.
40220         * tests/test-cloexec.c: Likewise.
40221         * tests/test-copy-acl.c: Likewise.
40222         * tests/test-copy-file.c: Likewise.
40223         * tests/test-count-one-bits.c: Likewise.
40224         * tests/test-dprintf-posix.c: Likewise.
40225         * tests/test-dup2.c: Likewise.
40226         * tests/test-dup3.c: Likewise.
40227         * tests/test-duplocale.c: Likewise.
40228         * tests/test-fbufmode.c: Likewise.
40229         * tests/test-fchdir.c: Likewise.
40230         * tests/test-fchownat.c: Likewise.
40231         * tests/test-fcntl-safer.c: Likewise.
40232         * tests/test-fcntl.c: Likewise.
40233         * tests/test-fdopendir.c: Likewise.
40234         * tests/test-fdutimensat.c: Likewise.
40235         * tests/test-fflush2.c: Likewise.
40236         * tests/test-file-has-acl.c: Likewise.
40237         * tests/test-filevercmp.c: Likewise.
40238         * tests/test-flock.c: Likewise.
40239         * tests/test-floorf1.c: Likewise.
40240         * tests/test-floorf2.c: Likewise.
40241         * tests/test-floorl.c: Likewise.
40242         * tests/test-fnmatch.c: Likewise.
40243         * tests/test-fopen.h: Likewise.
40244         * tests/test-fpending.c: Likewise.
40245         * tests/test-fprintf-posix.c: Likewise.
40246         * tests/test-fpurge.c: Likewise.
40247         * tests/test-freadable.c: Likewise.
40248         * tests/test-freadahead.c: Likewise.
40249         * tests/test-freading.c: Likewise.
40250         * tests/test-freadptr.c: Likewise.
40251         * tests/test-freadptr2.c: Likewise.
40252         * tests/test-freadseek.c: Likewise.
40253         * tests/test-freopen.c: Likewise.
40254         * tests/test-frexp.c: Likewise.
40255         * tests/test-frexpl.c: Likewise.
40256         * tests/test-fseek.c: Likewise.
40257         * tests/test-fseeko.c: Likewise.
40258         * tests/test-fstatat.c: Likewise.
40259         * tests/test-fstrcmp.c: Likewise.
40260         * tests/test-fsync.c: Likewise.
40261         * tests/test-ftell.c: Likewise.
40262         * tests/test-ftello.c: Likewise.
40263         * tests/test-func.c: Likewise.
40264         * tests/test-futimens.c: Likewise.
40265         * tests/test-fwritable.c: Likewise.
40266         * tests/test-fwriting.c: Likewise.
40267         * tests/test-getcwd.c: Likewise.
40268         * tests/test-getdate.c: Likewise.
40269         * tests/test-getdelim.c: Likewise.
40270         * tests/test-getdtablesize.c: Likewise.
40271         * tests/test-getgroups.c: Likewise.
40272         * tests/test-getline.c: Likewise.
40273         * tests/test-getndelim2.c: Likewise.
40274         * tests/test-glob.c: Likewise.
40275         * tests/test-hash.c: Likewise.
40276         * tests/test-i-ring.c: Likewise.
40277         * tests/test-iconv-utf.c: Likewise.
40278         * tests/test-iconv.c: Likewise.
40279         * tests/test-idpriv-drop.c: Likewise.
40280         * tests/test-idpriv-droptemp.c: Likewise.
40281         * tests/test-inet_ntop.c: Likewise.
40282         * tests/test-inet_pton.c: Likewise.
40283         * tests/test-isblank.c: Likewise.
40284         * tests/test-isfinite.c: Likewise.
40285         * tests/test-isinf.c: Likewise.
40286         * tests/test-isnan.c: Likewise.
40287         * tests/test-isnand.h: Likewise.
40288         * tests/test-isnanf.h: Likewise.
40289         * tests/test-isnanl.h: Likewise.
40290         * tests/test-lchown.c: Likewise.
40291         * tests/test-ldexpl.c: Likewise.
40292         * tests/test-link.c: Likewise.
40293         * tests/test-linkat.c: Likewise.
40294         * tests/test-linked_list.c: Likewise.
40295         * tests/test-linkedhash_list.c: Likewise.
40296         * tests/test-localename.c: Likewise.
40297         * tests/test-lseek.c: Likewise.
40298         * tests/test-lstat.c: Likewise.
40299         * tests/test-mbmemcasecmp.c: Likewise.
40300         * tests/test-mbmemcasecoll.c: Likewise.
40301         * tests/test-mbrtowc.c: Likewise.
40302         * tests/test-mbscasecmp.c: Likewise.
40303         * tests/test-mbscasestr1.c: Likewise.
40304         * tests/test-mbscasestr2.c: Likewise.
40305         * tests/test-mbscasestr3.c: Likewise.
40306         * tests/test-mbscasestr4.c: Likewise.
40307         * tests/test-mbschr.c: Likewise.
40308         * tests/test-mbscspn.c: Likewise.
40309         * tests/test-mbsinit.c: Likewise.
40310         * tests/test-mbsncasecmp.c: Likewise.
40311         * tests/test-mbsnrtowcs.c: Likewise.
40312         * tests/test-mbspbrk.c: Likewise.
40313         * tests/test-mbspcasecmp.c: Likewise.
40314         * tests/test-mbsrchr.c: Likewise.
40315         * tests/test-mbsrtowcs.c: Likewise.
40316         * tests/test-mbsspn.c: Likewise.
40317         * tests/test-mbsstr1.c: Likewise.
40318         * tests/test-mbsstr2.c: Likewise.
40319         * tests/test-mbsstr3.c: Likewise.
40320         * tests/test-memchr.c: Likewise.
40321         * tests/test-memchr2.c: Likewise.
40322         * tests/test-memcmp.c: Likewise.
40323         * tests/test-memmem.c: Likewise.
40324         * tests/test-memrchr.c: Likewise.
40325         * tests/test-mkdir.c: Likewise.
40326         * tests/test-mkdirat.c: Likewise.
40327         * tests/test-mkfifo.c: Likewise.
40328         * tests/test-mkfifoat.c: Likewise.
40329         * tests/test-mknod.c: Likewise.
40330         * tests/test-nanosleep.c: Likewise.
40331         * tests/test-nl_langinfo.c: Likewise.
40332         * tests/test-obstack-printf.c: Likewise.
40333         * tests/test-open.c: Likewise.
40334         * tests/test-openat.c: Likewise.
40335         * tests/test-pipe-filter-gi1.c: Likewise.
40336         * tests/test-pipe-filter-gi2-main.c: Likewise.
40337         * tests/test-pipe-filter-ii1.c: Likewise.
40338         * tests/test-pipe-filter-ii2-main.c: Likewise.
40339         * tests/test-pipe2.c: Likewise.
40340         * tests/test-popen.h: Likewise.
40341         * tests/test-posixtm.c: Likewise.
40342         * tests/test-pread.c: Likewise.
40343         * tests/test-printf-frexp.c: Likewise.
40344         * tests/test-printf-frexpl.c: Likewise.
40345         * tests/test-printf-posix.c: Likewise.
40346         * tests/test-priv-set.c: Likewise.
40347         * tests/test-quotearg.c: Likewise.
40348         * tests/test-random_r.c: Likewise.
40349         * tests/test-rawmemchr.c: Likewise.
40350         * tests/test-rbtree_list.c: Likewise.
40351         * tests/test-rbtree_oset.c: Likewise.
40352         * tests/test-rbtreehash_list.c: Likewise.
40353         * tests/test-readlink.c: Likewise.
40354         * tests/test-remove.c: Likewise.
40355         * tests/test-rename.c: Likewise.
40356         * tests/test-renameat.c: Likewise.
40357         * tests/test-rmdir.c: Likewise.
40358         * tests/test-round1.c: Likewise.
40359         * tests/test-roundf1.c: Likewise.
40360         * tests/test-roundl.c: Likewise.
40361         * tests/test-safe-alloc.c: Likewise.
40362         * tests/test-sameacls.c: Likewise.
40363         * tests/test-set-mode-acl.c: Likewise.
40364         * tests/test-setenv.c: Likewise.
40365         * tests/test-sigaction.c: Likewise.
40366         * tests/test-signbit.c: Likewise.
40367         * tests/test-sleep.c: Likewise.
40368         * tests/test-snprintf-posix.c: Likewise.
40369         * tests/test-snprintf.c: Likewise.
40370         * tests/test-sprintf-posix.c: Likewise.
40371         * tests/test-stat-time.c: Likewise.
40372         * tests/test-stat.c: Likewise.
40373         * tests/test-strcasestr.c: Likewise.
40374         * tests/test-strchrnul.c: Likewise.
40375         * tests/test-strerror.c: Likewise.
40376         * tests/test-striconv.c: Likewise.
40377         * tests/test-striconveh.c: Likewise.
40378         * tests/test-striconveha.c: Likewise.
40379         * tests/test-strsignal.c: Likewise.
40380         * tests/test-strstr.c: Likewise.
40381         * tests/test-strtod.c: Likewise.
40382         * tests/test-strverscmp.c: Likewise.
40383         * tests/test-symlink.c: Likewise.
40384         * tests/test-symlinkat.c: Likewise.
40385         * tests/test-trunc1.c: Likewise.
40386         * tests/test-trunc2.c: Likewise.
40387         * tests/test-truncf1.c: Likewise.
40388         * tests/test-truncf2.c: Likewise.
40389         * tests/test-truncl.c: Likewise.
40390         * tests/test-uname.c: Likewise.
40391         * tests/test-unlink.c: Likewise.
40392         * tests/test-unlinkat.c: Likewise.
40393         * tests/test-unsetenv.c: Likewise.
40394         * tests/test-usleep.c: Likewise.
40395         * tests/test-utimens.c: Likewise.
40396         * tests/test-utimensat.c: Likewise.
40397         * tests/test-vasnprintf-posix.c: Likewise.
40398         * tests/test-vasnprintf-posix2.c: Likewise.
40399         * tests/test-vasnprintf.c: Likewise.
40400         * tests/test-vasprintf-posix.c: Likewise.
40401         * tests/test-vasprintf.c: Likewise.
40402         * tests/test-vdprintf-posix.c: Likewise.
40403         * tests/test-vfprintf-posix.c: Likewise.
40404         * tests/test-vprintf-posix.c: Likewise.
40405         * tests/test-vsnprintf-posix.c: Likewise.
40406         * tests/test-vsnprintf.c: Likewise.
40407         * tests/test-vsprintf-posix.c: Likewise.
40408         * tests/test-wcrtomb.c: Likewise.
40409         * tests/test-wcsnrtombs.c: Likewise.
40410         * tests/test-wcsrtombs.c: Likewise.
40411         * tests/test-wctype.c: Likewise.
40412         * tests/test-wcwidth.c: Likewise.
40413         * tests/test-xfprintf-posix.c: Likewise.
40414         * tests/test-xmemdup0.c: Likewise.
40415         * tests/test-xprintf-posix.c: Likewise.
40416         * tests/test-xvasprintf.c: Likewise.
40417         * tests/unicase/test-locale-language.c: Likewise.
40418         * tests/unicase/test-mapping-part1.h: Likewise.
40419         * tests/unicase/test-predicate-part1.h: Likewise.
40420         * tests/unicase/test-u8-casecmp.c: Likewise.
40421         * tests/unicase/test-u8-casecoll.c: Likewise.
40422         * tests/unicase/test-u8-casefold.c: Likewise.
40423         * tests/unicase/test-u8-is-cased.c: Likewise.
40424         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40425         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40426         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40427         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40428         * tests/unicase/test-u8-tolower.c: Likewise.
40429         * tests/unicase/test-u8-totitle.c: Likewise.
40430         * tests/unicase/test-u8-toupper.c: Likewise.
40431         * tests/unicase/test-u16-casecmp.c: Likewise.
40432         * tests/unicase/test-u16-casecoll.c: Likewise.
40433         * tests/unicase/test-u16-casefold.c: Likewise.
40434         * tests/unicase/test-u16-is-cased.c: Likewise.
40435         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40436         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40437         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40438         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40439         * tests/unicase/test-u16-tolower.c: Likewise.
40440         * tests/unicase/test-u16-totitle.c: Likewise.
40441         * tests/unicase/test-u16-toupper.c: Likewise.
40442         * tests/unicase/test-u32-casecmp.c: Likewise.
40443         * tests/unicase/test-u32-casecoll.c: Likewise.
40444         * tests/unicase/test-u32-casefold.c: Likewise.
40445         * tests/unicase/test-u32-is-cased.c: Likewise.
40446         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40447         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40448         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40449         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40450         * tests/unicase/test-u32-tolower.c: Likewise.
40451         * tests/unicase/test-u32-totitle.c: Likewise.
40452         * tests/unicase/test-u32-toupper.c: Likewise.
40453         * tests/unicase/test-ulc-casecmp.c: Likewise.
40454         * tests/unicase/test-ulc-casecoll.c: Likewise.
40455         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40456         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40457         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40458         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40459         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40460         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40461         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40462         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40463         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40464         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40465         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40466         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40467         * tests/unictype/test-bidi_byname.c: Likewise.
40468         * tests/unictype/test-bidi_name.c: Likewise.
40469         * tests/unictype/test-bidi_of.c: Likewise.
40470         * tests/unictype/test-bidi_test.c: Likewise.
40471         * tests/unictype/test-block_list.c: Likewise.
40472         * tests/unictype/test-block_of.c: Likewise.
40473         * tests/unictype/test-block_test.c: Likewise.
40474         * tests/unictype/test-categ_and.c: Likewise.
40475         * tests/unictype/test-categ_and_not.c: Likewise.
40476         * tests/unictype/test-categ_byname.c: Likewise.
40477         * tests/unictype/test-categ_name.c: Likewise.
40478         * tests/unictype/test-categ_none.c: Likewise.
40479         * tests/unictype/test-categ_of.c: Likewise.
40480         * tests/unictype/test-categ_or.c: Likewise.
40481         * tests/unictype/test-categ_test_withtable.c: Likewise.
40482         * tests/unictype/test-combining.c: Likewise.
40483         * tests/unictype/test-decdigit.c: Likewise.
40484         * tests/unictype/test-digit.c: Likewise.
40485         * tests/unictype/test-mirror.c: Likewise.
40486         * tests/unictype/test-numeric.c: Likewise.
40487         * tests/unictype/test-pr_byname.c: Likewise.
40488         * tests/unictype/test-pr_test.c: Likewise.
40489         * tests/unictype/test-predicate-part1.h: Likewise.
40490         * tests/unictype/test-scripts.c: Likewise.
40491         * tests/unictype/test-sy_c_ident.c: Likewise.
40492         * tests/unictype/test-sy_java_ident.c: Likewise.
40493         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40494         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40495         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40496         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40497         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40498         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40499         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40500         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40501         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40502         * tests/uninorm/test-compat-decomposition.c: Likewise.
40503         * tests/uninorm/test-composition.c: Likewise.
40504         * tests/uninorm/test-decomposing-form.c: Likewise.
40505         * tests/uninorm/test-decomposition.c: Likewise.
40506         * tests/uninorm/test-u8-nfc.c: Likewise.
40507         * tests/uninorm/test-u8-nfd.c: Likewise.
40508         * tests/uninorm/test-u8-nfkc.c: Likewise.
40509         * tests/uninorm/test-u8-nfkd.c: Likewise.
40510         * tests/uninorm/test-u8-normcmp.c: Likewise.
40511         * tests/uninorm/test-u8-normcoll.c: Likewise.
40512         * tests/uninorm/test-u16-nfc.c: Likewise.
40513         * tests/uninorm/test-u16-nfd.c: Likewise.
40514         * tests/uninorm/test-u16-nfkc.c: Likewise.
40515         * tests/uninorm/test-u16-nfkd.c: Likewise.
40516         * tests/uninorm/test-u16-normcmp.c: Likewise.
40517         * tests/uninorm/test-u16-normcoll.c: Likewise.
40518         * tests/uninorm/test-u32-nfc.c: Likewise.
40519         * tests/uninorm/test-u32-nfd.c: Likewise.
40520         * tests/uninorm/test-u32-nfkc.c: Likewise.
40521         * tests/uninorm/test-u32-nfkd.c: Likewise.
40522         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40523         * tests/uninorm/test-u32-normcmp.c: Likewise.
40524         * tests/uninorm/test-u32-normcoll.c: Likewise.
40525         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40526         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40527         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40528         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40529         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40530         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40531         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40532         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40533         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40534         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40535         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40536         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40537         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40538         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40539         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40540         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40541         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40542         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40543         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40544         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40545         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40546         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40547         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40548         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40549         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40550         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40551         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40552         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40553         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40554         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40555         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40556         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40557         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40558         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40559         * tests/uniwidth/test-u8-width.c: Likewise.
40560         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40561         * tests/uniwidth/test-u16-width.c: Likewise.
40562         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40563         * tests/uniwidth/test-u32-width.c: Likewise.
40564         * tests/uniwidth/test-uc_width.c: Likewise.
40565         * tests/uniwidth/test-uc_width2.c: Likewise.
40566         * modules/acl-tests (Files): Add tests/macros.h.
40567         * modules/areadlink-tests (Files): Likewise.
40568         * modules/areadlink-with-size-tests (Files): Likewise.
40569         * modules/areadlinkat-tests (Files): Likewise.
40570         * modules/areadlinkat-with-size-tests (Files): Likewise.
40571         * modules/argmatch-tests (Files): Likewise.
40572         * modules/argv-iter-tests (Files): Likewise.
40573         * modules/array-list-tests (Files): Likewise.
40574         * modules/array-mergesort-tests (Files): Likewise.
40575         * modules/array-oset-tests (Files): Likewise.
40576         * modules/avltree-list-tests (Files): Likewise.
40577         * modules/avltree-oset-tests (Files): Likewise.
40578         * modules/avltreehash-list-tests (Files): Likewise.
40579         * modules/base64-tests (Files): Likewise.
40580         * modules/binary-io-tests (Files): Likewise.
40581         * modules/bitrotate-tests (Files): Likewise.
40582         * modules/btowc-tests (Files): Likewise.
40583         * modules/byteswap-tests (Files): Likewise.
40584         * modules/c-ctype-tests (Files): Likewise.
40585         * modules/c-stack-tests (Files): Likewise.
40586         * modules/c-strcase-tests (Files): Likewise.
40587         * modules/c-strcasestr-tests (Files): Likewise.
40588         * modules/c-strstr-tests (Files): Likewise.
40589         * modules/canonicalize-lgpl-tests (Files): Likewise.
40590         * modules/canonicalize-tests (Files): Likewise.
40591         * modules/carray-list-tests (Files): Likewise.
40592         * modules/ceilf-tests (Files): Likewise.
40593         * modules/ceill-tests (Files): Likewise.
40594         * modules/chown-tests (Files): Likewise.
40595         * modules/cloexec-tests (Files): Likewise.
40596         * modules/copy-file-tests (Files): Likewise.
40597         * modules/count-one-bits-tests (Files): Likewise.
40598         * modules/dprintf-posix-tests (Files): Likewise.
40599         * modules/dup2-tests (Files): Likewise.
40600         * modules/dup3-tests (Files): Likewise.
40601         * modules/duplocale-tests (Files): Likewise.
40602         * modules/fbufmode-tests (Files): Likewise.
40603         * modules/fchdir-tests (Files): Likewise.
40604         * modules/fcntl-safer-tests (Files): Likewise.
40605         * modules/fcntl-tests (Files): Likewise.
40606         * modules/fdopendir-tests (Files): Likewise.
40607         * modules/fdutimensat-tests (Files): Likewise.
40608         * modules/fflush-tests (Files): Likewise.
40609         * modules/filevercmp-tests (Files): Likewise.
40610         * modules/flock-tests (Files): Likewise.
40611         * modules/floorf-tests (Files): Likewise.
40612         * modules/floorl-tests (Files): Likewise.
40613         * modules/fnmatch-tests (Files): Likewise.
40614         * modules/fopen-safer-tests (Files): Likewise.
40615         * modules/fopen-tests (Files): Likewise.
40616         * modules/fpending-tests (Files): Likewise.
40617         * modules/fprintf-posix-tests (Files): Likewise.
40618         * modules/fpurge-tests (Files): Likewise.
40619         * modules/freadable-tests (Files): Likewise.
40620         * modules/freadahead-tests (Files): Likewise.
40621         * modules/freading-tests (Files): Likewise.
40622         * modules/freadptr-tests (Files): Likewise.
40623         * modules/freadseek-tests (Files): Likewise.
40624         * modules/freopen-tests (Files): Likewise.
40625         * modules/frexp-nolibm-tests (Files): Likewise.
40626         * modules/frexp-tests (Files): Likewise.
40627         * modules/frexpl-nolibm-tests (Files): Likewise.
40628         * modules/frexpl-tests (Files): Likewise.
40629         * modules/fseek-tests (Files): Likewise.
40630         * modules/fseeko-tests (Files): Likewise.
40631         * modules/fstrcmp-tests (Files): Likewise.
40632         * modules/fsync-tests (Files): Likewise.
40633         * modules/ftell-tests (Files): Likewise.
40634         * modules/ftello-tests (Files): Likewise.
40635         * modules/func-tests (Files): Likewise.
40636         * modules/futimens-tests (Files): Likewise.
40637         * modules/fwritable-tests (Files): Likewise.
40638         * modules/fwriting-tests (Files): Likewise.
40639         * modules/getcwd-tests (Files): Likewise.
40640         * modules/getdate-tests (Files): Likewise.
40641         * modules/getdelim-tests (Files): Likewise.
40642         * modules/getdtablesize-tests (Files): Likewise.
40643         * modules/getgroups-tests (Files): Likewise.
40644         * modules/getline-tests (Files): Likewise.
40645         * modules/getndelim2-tests (Files): Likewise.
40646         * modules/glob-tests (Files): Likewise.
40647         * modules/hash-tests (Files): Likewise.
40648         * modules/i-ring-tests (Files): Likewise.
40649         * modules/iconv-tests (Files): Likewise.
40650         * modules/iconv_open-utf-tests (Files): Likewise.
40651         * modules/idpriv-drop-tests (Files): Likewise.
40652         * modules/idpriv-droptemp-tests (Files): Likewise.
40653         * modules/inet_ntop-tests (Files): Likewise.
40654         * modules/inet_pton-tests (Files): Likewise.
40655         * modules/isblank-tests (Files): Likewise.
40656         * modules/isfinite-tests (Files): Likewise.
40657         * modules/isinf-tests (Files): Likewise.
40658         * modules/isnan-tests (Files): Likewise.
40659         * modules/isnand-nolibm-tests (Files): Likewise.
40660         * modules/isnand-tests (Files): Likewise.
40661         * modules/isnanf-nolibm-tests (Files): Likewise.
40662         * modules/isnanf-tests (Files): Likewise.
40663         * modules/isnanl-nolibm-tests (Files): Likewise.
40664         * modules/isnanl-tests (Files): Likewise.
40665         * modules/lchown-tests (Files): Likewise.
40666         * modules/ldexpl-tests (Files): Likewise.
40667         * modules/link-tests (Files): Likewise.
40668         * modules/linkat-tests (Files): Likewise.
40669         * modules/linked-list-tests (Files): Likewise.
40670         * modules/linkedhash-list-tests (Files): Likewise.
40671         * modules/localename-tests (Files): Likewise.
40672         * modules/lseek-tests (Files): Likewise.
40673         * modules/lstat-tests (Files): Likewise.
40674         * modules/mbmemcasecmp-tests (Files): Likewise.
40675         * modules/mbmemcasecoll-tests (Files): Likewise.
40676         * modules/mbrtowc-tests (Files): Likewise.
40677         * modules/mbscasecmp-tests (Files): Likewise.
40678         * modules/mbscasestr-tests (Files): Likewise.
40679         * modules/mbschr-tests (Files): Likewise.
40680         * modules/mbscspn-tests (Files): Likewise.
40681         * modules/mbsinit-tests (Files): Likewise.
40682         * modules/mbsncasecmp-tests (Files): Likewise.
40683         * modules/mbsnrtowcs-tests (Files): Likewise.
40684         * modules/mbspbrk-tests (Files): Likewise.
40685         * modules/mbspcasecmp-tests (Files): Likewise.
40686         * modules/mbsrchr-tests (Files): Likewise.
40687         * modules/mbsrtowcs-tests (Files): Likewise.
40688         * modules/mbsspn-tests (Files): Likewise.
40689         * modules/mbsstr-tests (Files): Likewise.
40690         * modules/memchr-tests (Files): Likewise.
40691         * modules/memchr2-tests (Files): Likewise.
40692         * modules/memcmp-tests (Files): Likewise.
40693         * modules/memmem-tests (Files): Likewise.
40694         * modules/memrchr-tests (Files): Likewise.
40695         * modules/mkdir-tests (Files): Likewise.
40696         * modules/mkfifo-tests (Files): Likewise.
40697         * modules/mkfifoat-tests (Files): Likewise.
40698         * modules/mknod-tests (Files): Likewise.
40699         * modules/nanosleep-tests (Files): Likewise.
40700         * modules/nl_langinfo-tests (Files): Likewise.
40701         * modules/obstack-printf-tests (Files): Likewise.
40702         * modules/open-tests (Files): Likewise.
40703         * modules/openat-tests (Files): Likewise.
40704         * modules/pipe-filter-gi-tests (Files): Likewise.
40705         * modules/pipe-filter-ii-tests (Files): Likewise.
40706         * modules/pipe2-tests (Files): Likewise.
40707         * modules/popen-safer-tests (Files): Likewise.
40708         * modules/popen-tests (Files): Likewise.
40709         * modules/posixtm-tests (Files): Likewise.
40710         * modules/pread-tests (Files): Likewise.
40711         * modules/printf-frexp-tests (Files): Likewise.
40712         * modules/printf-frexpl-tests (Files): Likewise.
40713         * modules/printf-posix-tests (Files): Likewise.
40714         * modules/priv-set-tests (Files): Likewise.
40715         * modules/quotearg-tests (Files): Likewise.
40716         * modules/random_r-tests (Files): Likewise.
40717         * modules/rawmemchr-tests (Files): Likewise.
40718         * modules/rbtree-list-tests (Files): Likewise.
40719         * modules/rbtree-oset-tests (Files): Likewise.
40720         * modules/rbtreehash-list-tests (Files): Likewise.
40721         * modules/readlink-tests (Files): Likewise.
40722         * modules/remove-tests (Files): Likewise.
40723         * modules/rename-tests (Files): Likewise.
40724         * modules/renameat-tests (Files): Likewise.
40725         * modules/rmdir-tests (Files): Likewise.
40726         * modules/round-tests (Files): Likewise.
40727         * modules/roundf-tests (Files): Likewise.
40728         * modules/roundl-tests (Files): Likewise.
40729         * modules/safe-alloc-tests (Files): Likewise.
40730         * modules/setenv-tests (Files): Likewise.
40731         * modules/sigaction-tests (Files): Likewise.
40732         * modules/signbit-tests (Files): Likewise.
40733         * modules/sleep-tests (Files): Likewise.
40734         * modules/snprintf-posix-tests (Files): Likewise.
40735         * modules/snprintf-tests (Files): Likewise.
40736         * modules/sprintf-posix-tests (Files): Likewise.
40737         * modules/stat-tests (Files): Likewise.
40738         * modules/stat-time-tests (Files): Likewise.
40739         * modules/strcasestr-tests (Files): Likewise.
40740         * modules/strchrnul-tests (Files): Likewise.
40741         * modules/strerror-tests (Files): Likewise.
40742         * modules/striconv-tests (Files): Likewise.
40743         * modules/striconveh-tests (Files): Likewise.
40744         * modules/striconveha-tests (Files): Likewise.
40745         * modules/strsignal-tests (Files): Likewise.
40746         * modules/strstr-tests (Files): Likewise.
40747         * modules/strtod-tests (Files): Likewise.
40748         * modules/strverscmp-tests (Files): Likewise.
40749         * modules/symlink-tests (Files): Likewise.
40750         * modules/symlinkat-tests (Files): Likewise.
40751         * modules/trunc-tests (Files): Likewise.
40752         * modules/truncf-tests (Files): Likewise.
40753         * modules/truncl-tests (Files): Likewise.
40754         * modules/uname-tests (Files): Likewise.
40755         * modules/unicase/cased-tests (Files): Likewise.
40756         * modules/unicase/ignorable-tests (Files): Likewise.
40757         * modules/unicase/locale-language-tests (Files): Likewise.
40758         * modules/unicase/tolower-tests (Files): Likewise.
40759         * modules/unicase/totitle-tests (Files): Likewise.
40760         * modules/unicase/toupper-tests (Files): Likewise.
40761         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40762         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40763         * modules/unicase/u8-casefold-tests (Files): Likewise.
40764         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40765         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40766         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40767         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40768         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40769         * modules/unicase/u8-tolower-tests (Files): Likewise.
40770         * modules/unicase/u8-totitle-tests (Files): Likewise.
40771         * modules/unicase/u8-toupper-tests (Files): Likewise.
40772         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40773         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40774         * modules/unicase/u16-casefold-tests (Files): Likewise.
40775         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40776         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40777         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40778         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40779         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40780         * modules/unicase/u16-tolower-tests (Files): Likewise.
40781         * modules/unicase/u16-totitle-tests (Files): Likewise.
40782         * modules/unicase/u16-toupper-tests (Files): Likewise.
40783         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40784         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40785         * modules/unicase/u32-casefold-tests (Files): Likewise.
40786         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40787         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40788         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40789         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40790         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40791         * modules/unicase/u32-tolower-tests (Files): Likewise.
40792         * modules/unicase/u32-totitle-tests (Files): Likewise.
40793         * modules/unicase/u32-toupper-tests (Files): Likewise.
40794         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40795         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40796         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40797         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40798         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40799         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40800         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40801         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40802         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40803         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40804         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40805         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40806         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40807         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40808         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40809         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40810         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40811         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40812         * modules/unictype/block-list-tests (Files): Likewise.
40813         * modules/unictype/block-of-tests (Files): Likewise.
40814         * modules/unictype/block-test-tests (Files): Likewise.
40815         * modules/unictype/category-C-tests (Files): Likewise.
40816         * modules/unictype/category-Cc-tests (Files): Likewise.
40817         * modules/unictype/category-Cf-tests (Files): Likewise.
40818         * modules/unictype/category-Cn-tests (Files): Likewise.
40819         * modules/unictype/category-Co-tests (Files): Likewise.
40820         * modules/unictype/category-Cs-tests (Files): Likewise.
40821         * modules/unictype/category-L-tests (Files): Likewise.
40822         * modules/unictype/category-Ll-tests (Files): Likewise.
40823         * modules/unictype/category-Lm-tests (Files): Likewise.
40824         * modules/unictype/category-Lo-tests (Files): Likewise.
40825         * modules/unictype/category-Lt-tests (Files): Likewise.
40826         * modules/unictype/category-Lu-tests (Files): Likewise.
40827         * modules/unictype/category-M-tests (Files): Likewise.
40828         * modules/unictype/category-Mc-tests (Files): Likewise.
40829         * modules/unictype/category-Me-tests (Files): Likewise.
40830         * modules/unictype/category-Mn-tests (Files): Likewise.
40831         * modules/unictype/category-N-tests (Files): Likewise.
40832         * modules/unictype/category-Nd-tests (Files): Likewise.
40833         * modules/unictype/category-Nl-tests (Files): Likewise.
40834         * modules/unictype/category-No-tests (Files): Likewise.
40835         * modules/unictype/category-P-tests (Files): Likewise.
40836         * modules/unictype/category-Pc-tests (Files): Likewise.
40837         * modules/unictype/category-Pd-tests (Files): Likewise.
40838         * modules/unictype/category-Pe-tests (Files): Likewise.
40839         * modules/unictype/category-Pf-tests (Files): Likewise.
40840         * modules/unictype/category-Pi-tests (Files): Likewise.
40841         * modules/unictype/category-Po-tests (Files): Likewise.
40842         * modules/unictype/category-Ps-tests (Files): Likewise.
40843         * modules/unictype/category-S-tests (Files): Likewise.
40844         * modules/unictype/category-Sc-tests (Files): Likewise.
40845         * modules/unictype/category-Sk-tests (Files): Likewise.
40846         * modules/unictype/category-Sm-tests (Files): Likewise.
40847         * modules/unictype/category-So-tests (Files): Likewise.
40848         * modules/unictype/category-Z-tests (Files): Likewise.
40849         * modules/unictype/category-Zl-tests (Files): Likewise.
40850         * modules/unictype/category-Zp-tests (Files): Likewise.
40851         * modules/unictype/category-Zs-tests (Files): Likewise.
40852         * modules/unictype/category-and-not-tests (Files): Likewise.
40853         * modules/unictype/category-and-tests (Files): Likewise.
40854         * modules/unictype/category-byname-tests (Files): Likewise.
40855         * modules/unictype/category-name-tests (Files): Likewise.
40856         * modules/unictype/category-none-tests (Files): Likewise.
40857         * modules/unictype/category-of-tests (Files): Likewise.
40858         * modules/unictype/category-or-tests (Files): Likewise.
40859         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40860         * modules/unictype/combining-class-tests (Files): Likewise.
40861         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40862         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40863         * modules/unictype/ctype-blank-tests (Files): Likewise.
40864         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40865         * modules/unictype/ctype-digit-tests (Files): Likewise.
40866         * modules/unictype/ctype-graph-tests (Files): Likewise.
40867         * modules/unictype/ctype-lower-tests (Files): Likewise.
40868         * modules/unictype/ctype-print-tests (Files): Likewise.
40869         * modules/unictype/ctype-punct-tests (Files): Likewise.
40870         * modules/unictype/ctype-space-tests (Files): Likewise.
40871         * modules/unictype/ctype-upper-tests (Files): Likewise.
40872         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40873         * modules/unictype/decimal-digit-tests (Files): Likewise.
40874         * modules/unictype/digit-tests (Files): Likewise.
40875         * modules/unictype/mirror-tests (Files): Likewise.
40876         * modules/unictype/numeric-tests (Files): Likewise.
40877         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40878         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40879         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40880         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40881         Likewise.
40882         * modules/unictype/property-bidi-block-separator-tests (Files):
40883         Likewise.
40884         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40885         Likewise.
40886         * modules/unictype/property-bidi-common-separator-tests (Files):
40887         Likewise.
40888         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40889         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40890         Likewise.
40891         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40892         Likewise.
40893         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40894         Likewise.
40895         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40896         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40897         Likewise.
40898         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40899         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40900         Likewise.
40901         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40902         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40903         * modules/unictype/property-bidi-segment-separator-tests (Files):
40904         Likewise.
40905         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40906         * modules/unictype/property-byname-tests (Files): Likewise.
40907         * modules/unictype/property-combining-tests (Files): Likewise.
40908         * modules/unictype/property-composite-tests (Files): Likewise.
40909         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40910         * modules/unictype/property-dash-tests (Files): Likewise.
40911         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40912         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40913         Likewise.
40914         * modules/unictype/property-deprecated-tests (Files): Likewise.
40915         * modules/unictype/property-diacritic-tests (Files): Likewise.
40916         * modules/unictype/property-extender-tests (Files): Likewise.
40917         * modules/unictype/property-format-control-tests (Files): Likewise.
40918         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40919         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40920         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40921         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40922         * modules/unictype/property-hyphen-tests (Files): Likewise.
40923         * modules/unictype/property-id-continue-tests (Files): Likewise.
40924         * modules/unictype/property-id-start-tests (Files): Likewise.
40925         * modules/unictype/property-ideographic-tests (Files): Likewise.
40926         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40927         * modules/unictype/property-ids-trinary-operator-tests (Files):
40928         Likewise.
40929         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40930         * modules/unictype/property-iso-control-tests (Files): Likewise.
40931         * modules/unictype/property-join-control-tests (Files): Likewise.
40932         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40933         * modules/unictype/property-line-separator-tests (Files): Likewise.
40934         * modules/unictype/property-logical-order-exception-tests (Files):
40935         Likewise.
40936         * modules/unictype/property-lowercase-tests (Files): Likewise.
40937         * modules/unictype/property-math-tests (Files): Likewise.
40938         * modules/unictype/property-non-break-tests (Files): Likewise.
40939         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40940         * modules/unictype/property-numeric-tests (Files): Likewise.
40941         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40942         * modules/unictype/property-other-default-ignorable-code-point-tests
40943         (Files): Likewise.
40944         * modules/unictype/property-other-grapheme-extend-tests (Files):
40945         Likewise.
40946         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40947         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40948         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40949         * modules/unictype/property-other-math-tests (Files): Likewise.
40950         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40951         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40952         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40953         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40954         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40955         * modules/unictype/property-private-use-tests (Files): Likewise.
40956         * modules/unictype/property-punctuation-tests (Files): Likewise.
40957         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40958         * modules/unictype/property-radical-tests (Files): Likewise.
40959         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40960         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40961         * modules/unictype/property-space-tests (Files): Likewise.
40962         * modules/unictype/property-terminal-punctuation-tests (Files):
40963         Likewise.
40964         * modules/unictype/property-test-tests (Files): Likewise.
40965         * modules/unictype/property-titlecase-tests (Files): Likewise.
40966         * modules/unictype/property-unassigned-code-value-tests (Files):
40967         Likewise.
40968         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40969         * modules/unictype/property-uppercase-tests (Files): Likewise.
40970         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40971         * modules/unictype/property-white-space-tests (Files): Likewise.
40972         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40973         * modules/unictype/property-xid-start-tests (Files): Likewise.
40974         * modules/unictype/property-zero-width-tests (Files): Likewise.
40975         * modules/unictype/scripts-tests (Files): Likewise.
40976         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40977         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40978         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40979         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40980         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40981         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40982         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40983         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40984         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40985         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40986         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40987         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40988         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40989         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40990         * modules/uninorm/composition-tests (Files): Likewise.
40991         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40992         * modules/uninorm/decomposition-tests (Files): Likewise.
40993         * modules/uninorm/filter-tests (Files): Likewise.
40994         * modules/uninorm/nfc-tests (Files): Likewise.
40995         * modules/uninorm/nfd-tests (Files): Likewise.
40996         * modules/uninorm/nfkc-tests (Files): Likewise.
40997         * modules/uninorm/nfkd-tests (Files): Likewise.
40998         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40999         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41000         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41001         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41002         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41003         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41004         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41005         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41006         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41007         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41008         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41009         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41010         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41011         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41012         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41013         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41014         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41015         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41016         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41017         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41018         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41019         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41020         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41021         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41022         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41023         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41024         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41025         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41026         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41027         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41028         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41029         * modules/uniwidth/u8-width-tests (Files): Likewise.
41030         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41031         * modules/uniwidth/u16-width-tests (Files): Likewise.
41032         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41033         * modules/uniwidth/u32-width-tests (Files): Likewise.
41034         * modules/uniwidth/width-tests (Files): Likewise.
41035         * modules/unlink-tests (Files): Likewise.
41036         * modules/unsetenv-tests (Files): Likewise.
41037         * modules/usleep-tests (Files): Likewise.
41038         * modules/utimens-tests (Files): Likewise.
41039         * modules/utimensat-tests (Files): Likewise.
41040         * modules/vasnprintf-posix-tests (Files): Likewise.
41041         * modules/vasnprintf-tests (Files): Likewise.
41042         * modules/vasprintf-posix-tests (Files): Likewise.
41043         * modules/vasprintf-tests (Files): Likewise.
41044         * modules/vdprintf-posix-tests (Files): Likewise.
41045         * modules/vfprintf-posix-tests (Files): Likewise.
41046         * modules/vprintf-posix-tests (Files): Likewise.
41047         * modules/vsnprintf-posix-tests (Files): Likewise.
41048         * modules/vsnprintf-tests (Files): Likewise.
41049         * modules/vsprintf-posix-tests (Files): Likewise.
41050         * modules/wcrtomb-tests (Files): Likewise.
41051         * modules/wcsnrtombs-tests (Files): Likewise.
41052         * modules/wcsrtombs-tests (Files): Likewise.
41053         * modules/wctype-tests (Files): Likewise.
41054         * modules/wcwidth-tests (Files): Likewise.
41055         * modules/xmemdup0-tests (Files): Likewise.
41056         * modules/xprintf-posix-tests (Files): Likewise.
41057         * modules/xvasprintf-tests (Files): Likewise.
41058
41059 2009-12-24  Eric Blake  <ebb9@byu.net>
41060
41061         test-nanosleep: fix typo
41062         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41063         patch.
41064         Reported by Bruno Haible.
41065
41066 2009-12-24  Bruno Haible  <bruno@clisp.org>
41067
41068         Reduce namespace pollution on glibc systems.
41069         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41070         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41071         systems.
41072         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41073         <getopt.h> on glibc systems.
41074         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41075         systems.
41076         * lib/fcntl.c: Include <unistd.h> here instead.
41077
41078 2009-12-24  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41081
41082 2009-12-24  Eric Blake  <ebb9@byu.net>
41083
41084         tests: add signature checks
41085         * tests/signature.h (SIGNATURE_CHECK): New file.
41086         * modules/atexit-tests (Files): Use it.
41087         * modules/btowc-tests (Files): Likewise.
41088         * modules/canonicalize-lgpl-tests (Files): Likewise.
41089         * modules/ceilf-tests (Files): Likewise.
41090         * modules/ceill-tests (Files): Likewise.
41091         * modules/chown-tests (Files): Likewise.
41092         * modules/dprintf-posix-tests (Files): Likewise.
41093         * modules/dup2-tests (Files): Likewise.
41094         * modules/dup3-tests (Files): Likewise.
41095         * modules/duplocale-tests (Files): Likewise.
41096         * modules/fchdir-tests (Files): Likewise.
41097         * modules/fcntl-tests (Files): Likewise.
41098         * modules/fdopendir-tests (Files): Likewise.
41099         * modules/fflush-tests (Files): Likewise.
41100         * modules/flock-tests (Files): Likewise.
41101         * modules/floorf-tests (Files): Likewise.
41102         * modules/floorl-tests (Files): Likewise.
41103         * modules/fnmatch-tests (Files): Likewise.
41104         * modules/fopen-tests (Files): Likewise.
41105         * modules/fprintf-posix-tests (Files): Likewise.
41106         * modules/freopen-tests (Files): Likewise.
41107         * modules/frexp-nolibm-tests (Files): Likewise.
41108         * modules/frexp-tests (Files): Likewise.
41109         * modules/frexpl-nolibm-tests (Files): Likewise.
41110         * modules/frexpl-tests (Files): Likewise.
41111         * modules/fseek-tests (Files): Likewise.
41112         * modules/fseeko-tests (Files): Likewise.
41113         * modules/fsync-tests (Files): Likewise.
41114         * modules/ftell-tests (Files): Likewise.
41115         * modules/ftello-tests (Files): Likewise.
41116         * modules/futimens-tests (Files): Likewise.
41117         * modules/getaddrinfo-tests (Files): Likewise.
41118         * modules/getcwd-tests (Files): Likewise.
41119         * modules/getdelim-tests (Files): Likewise.
41120         * modules/getdtablesize-tests (Files): Likewise.
41121         * modules/getgroups-tests (Files): Likewise.
41122         * modules/gethostname-tests (Files): Likewise.
41123         * modules/getline-tests (Files): Likewise.
41124         * modules/getopt-posix-tests (Files): Likewise.
41125         * modules/gettimeofday-tests (Files): Likewise.
41126         * modules/glob-tests (Files): Likewise.
41127         * modules/iconv-tests (Files): Likewise.
41128         * modules/inet_ntop-tests (Files): Likewise.
41129         * modules/inet_pton-tests (Files): Likewise.
41130         * modules/isblank-tests (Files): Likewise.
41131         * modules/lchown-tests (Files): Likewise.
41132         * modules/ldexpl-tests (Files): Likewise.
41133         * modules/link-tests (Files): Likewise.
41134         * modules/linkat-tests (Files): Likewise.
41135         * modules/lseek-tests (Files): Likewise.
41136         * modules/lstat-tests (Files): Likewise.
41137         * modules/mbrtowc-tests (Files): Likewise.
41138         * modules/mbsinit-tests (Files): Likewise.
41139         * modules/mbsnrtowcs-tests (Files): Likewise.
41140         * modules/mbsrtowcs-tests (Files): Likewise.
41141         * modules/memchr-tests (Files): Likewise.
41142         * modules/memcmp-tests (Files): Likewise.
41143         * modules/memmem-tests (Files): Likewise.
41144         * modules/memrchr-tests (Files): Likewise.
41145         * modules/mkdir-tests (Files): Likewise.
41146         * modules/mkfifo-tests (Files): Likewise.
41147         * modules/mkfifoat-tests (Files): Likewise.
41148         * modules/mknod-tests (Files): Likewise.
41149         * modules/nanosleep-tests (Files): Likewise.
41150         * modules/nl_langinfo-tests (Files): Likewise.
41151         * modules/obstack-printf-tests (Files): Likewise.
41152         * modules/open-tests (Files): Likewise.
41153         * modules/openat-tests (Files): Likewise.
41154         * modules/perror-tests (Files): Likewise.
41155         * modules/pipe2-tests (Files): Likewise.
41156         * modules/poll-tests (Files): Likewise.
41157         * modules/popen-tests (Files): Likewise.
41158         * modules/posix_spawn-tests (Files): Likewise.
41159         * modules/posix_spawnp-tests (Files): Likewise.
41160         * modules/pread-tests (Files): Likewise.
41161         * modules/printf-posix-tests (Files): Likewise.
41162         * modules/pty-tests (Files): Likewise.
41163         * modules/random_r-tests (Files): Likewise.
41164         * modules/rawmemchr-tests (Files): Likewise.
41165         * modules/readlink-tests (Files): Likewise.
41166         * modules/remove-tests (Files): Likewise.
41167         * modules/rename-tests (Files): Likewise.
41168         * modules/renameat-tests (Files): Likewise.
41169         * modules/rmdir-tests (Files): Likewise.
41170         * modules/round-tests (Files): Likewise.
41171         * modules/roundf-tests (Files): Likewise.
41172         * modules/roundl-tests (Files): Likewise.
41173         * modules/select-tests (Files): Likewise.
41174         * modules/setenv-tests (Files): Likewise.
41175         * modules/sigaction-tests (Files): Likewise.
41176         * modules/sleep-tests (Files): Likewise.
41177         * modules/snprintf-posix-tests (Files): Likewise.
41178         * modules/snprintf-tests (Files): Likewise.
41179         * modules/sprintf-posix-tests (Files): Likewise.
41180         * modules/stat-tests (Files): Likewise.
41181         * modules/strcasestr-tests (Files): Likewise.
41182         * modules/strchrnul-tests (Files): Likewise.
41183         * modules/strerror-tests (Files): Likewise.
41184         * modules/strsignal-tests (Files): Likewise.
41185         * modules/strstr-tests (Files): Likewise.
41186         * modules/strtod-tests (Files): Likewise.
41187         * modules/strverscmp-tests (Files): Likewise.
41188         * modules/symlink-tests (Files): Likewise.
41189         * modules/symlinkat-tests (Files): Likewise.
41190         * modules/times-tests (Files): Likewise.
41191         * modules/trunc-tests (Files): Likewise.
41192         * modules/truncf-tests (Files): Likewise.
41193         * modules/truncl-tests (Files): Likewise.
41194         * modules/tsearch-tests (Files): Likewise.
41195         * modules/uname-tests (Files): Likewise.
41196         * modules/unlink-tests (Files): Likewise.
41197         * modules/unsetenv-tests (Files): Likewise.
41198         * modules/usleep-tests (Files): Likewise.
41199         * modules/utimensat-tests (Files): Likewise.
41200         * modules/vasprintf-tests (Files): Likewise.
41201         * modules/vdprintf-posix-tests (Files): Likewise.
41202         * modules/vfprintf-posix-tests (Files): Likewise.
41203         * modules/vprintf-posix-tests (Files): Likewise.
41204         * modules/vsnprintf-posix-tests (Files): Likewise.
41205         * modules/vsnprintf-tests (Files): Likewise.
41206         * modules/vsprintf-posix-tests (Files): Likewise.
41207         * modules/wcrtomb-tests (Files): Likewise.
41208         * modules/wcsnrtombs-tests (Files): Likewise.
41209         * modules/wcsrtombs-tests (Files): Likewise.
41210         * modules/wcwidth-tests (Files): Likewise.
41211         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41212         * tests/test-isinf.c (isinf): Likewise.
41213         * tests/test-isnan.c (isnan): Likewise.
41214         * tests/test-signbit.c (signbit): Likewise.
41215         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41216         declaration, either as macro or with correct signature.
41217         (select): Ensure function under test is declared with correct
41218         signature in correct header.
41219         * tests/test-atexit.c (atexit): Likewise.
41220         * tests/test-btowc.c (btowc): Likewise.
41221         * tests/test-canonicalize-lgpl.c (realpath)
41222         (canonicalize_file_name): Likewise.
41223         * tests/test-ceilf1.c (ceilf): Likewise.
41224         * tests/test-ceill.c (ceill): Likewise.
41225         * tests/test-chown.c (chown): Likewise.
41226         * tests/test-dprintf-posix.c (dprintf): Likewise.
41227         * tests/test-dup2.c (dup2): Likewise.
41228         * tests/test-dup3.c (dup3): Likewise.
41229         * tests/test-duplocale.c (duplocale): Likewise.
41230         * tests/test-fchdir.c (fchdir): Likewise.
41231         * tests/test-fchownat.c (fchownat): Likewise.
41232         * tests/test-fcntl.c (fcntl): Likewise.
41233         * tests/test-fdopendir.c (fdopendir): Likewise.
41234         * tests/test-fflush.c (fflush): Likewise.
41235         * tests/test-flock.c (flock): Likewise.
41236         * tests/test-floorf1.c (floorf): Likewise.
41237         * tests/test-floorl.c (floorl): Likewise.
41238         * tests/test-fnmatch.c (fnmatch): Likewise.
41239         * tests/test-fopen.c (fopen): Likewise.
41240         * tests/test-fprintf-posix.c (fprintf): Likewise.
41241         * tests/test-freopen.c (freopen): Likewise.
41242         * tests/test-frexp.c (frexp): Likewise.
41243         * tests/test-frexpl.c (frexpl): Likewise.
41244         * tests/test-fseek.c (fseek): Likewise.
41245         * tests/test-fseeko.c (fseeko): Likewise.
41246         * tests/test-fstatat.c (fstatat): Likewise.
41247         * tests/test-fsync.c (fsync): Likewise.
41248         * tests/test-ftell.c (ftell): Likewise.
41249         * tests/test-ftello.c (ftello): Likewise.
41250         * tests/test-futimens.c (futimens): Likewise.
41251         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41252         (gai_strerror): Likewise.
41253         * tests/test-getcwd.c (getcwd): Likewise.
41254         * tests/test-getdelim.c (getdelim): Likewise.
41255         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41256         * tests/test-getgroups.c (getgroups): Likewise.
41257         * tests/test-gethostname.c (gethostname): Likewise.
41258         * tests/test-getline.c (getline): Likewise.
41259         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41260         Likewise.
41261         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41262         * tests/test-glob.c (glob, globfree): Likewise.
41263         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41264         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41265         * tests/test-inet_pton.c (inet_pton): Likewise.
41266         * tests/test-isblank.c (isblank): Likewise.
41267         * tests/test-lchown.c (lchown): Likewise.
41268         * tests/test-ldexpl.c (ldexpl): Likewise.
41269         * tests/test-link.c (link): Likewise.
41270         * tests/test-linkat.c (linkat): Likewise.
41271         * tests/test-lseek.c (lseek): Likewise.
41272         * tests/test-lstat.c (lstat): Likewise.
41273         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41274         * tests/test-mbsinit.c (mbsinit): Likewise.
41275         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41276         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41277         * tests/test-memchr.c (memchr): Likewise.
41278         * tests/test-memcmp.c (memcmp): Likewise.
41279         * tests/test-memmem.c (memmem): Likewise.
41280         * tests/test-memrchr.c (memrchr): Likewise.
41281         * tests/test-mkdir.c (mkdir): Likewise.
41282         * tests/test-mkdirat.c (mkdirat): Likewise.
41283         * tests/test-mkfifo.c (mkfifo): Likewise.
41284         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41285         * tests/test-mknod.c (mknod): Likewise.
41286         * tests/test-nanosleep.c (nanosleep): Likewise.
41287         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41288         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41289         Likewise.
41290         * tests/test-open.c (open): Likewise.
41291         * tests/test-openat.c (openat): Likewise.
41292         * tests/test-perror.c (perror): Likewise.
41293         * tests/test-pipe2.c (pipe2): Likewise.
41294         * tests/test-poll.c (poll): Likewise.
41295         * tests/test-popen.c (popen, pclose): Likewise.
41296         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41297         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41298         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41299         (posix_spawn_file_actions_destroy)
41300         (posix_spawn_file_actions_addclose)
41301         (posix_spawn_file_actions_addopen)
41302         (posix_spawn_file_actions_adddup2): Likewise.
41303         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41304         * tests/test-pread.c (pread): Likewise.
41305         * tests/test-printf-posix.c (printf): Likewise.
41306         * tests/test-pty.c (openpty, forkpty): Likewise.
41307         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41308         (random_r): Likewise.
41309         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41310         * tests/test-readlink.c (readlink): Likewise.
41311         * tests/test-remove.c (remove): Likewise.
41312         * tests/test-rename.c (rename): Likewise.
41313         * tests/test-renameat.c (renameat): Likewise.
41314         * tests/test-rmdir.c (rmdir): Likewise.
41315         * tests/test-round1.c (round): Likewise.
41316         * tests/test-roundf1.c (roundf): Likewise.
41317         * tests/test-roundl.c (roundl): Likewise.
41318         * tests/test-setenv.c (setenv): Likewise.
41319         * tests/test-sigaction.c (sigaction): Likewise.
41320         * tests/test-sleep.c (sleep): Likewise.
41321         * tests/test-snprintf.c (snprintf): Likewise.
41322         * tests/test-sprintf-posix.c (sprintf): Likewise.
41323         * tests/test-stat.c (stat): Likewise.
41324         * tests/test-stpncpy.c (stpncpy): Likewise.
41325         * tests/test-strcasestr.c (strcasestr): Likewise.
41326         * tests/test-strchrnul.c (strchrnul): Likewise.
41327         * tests/test-strerror.c (strerror): Likewise.
41328         * tests/test-strsignal.c (strsignal): Likewise.
41329         * tests/test-strstr.c (strstr): Likewise.
41330         * tests/test-strtod.c (strtod): Likewise.
41331         * tests/test-strverscmp.c (strverscmp): Likewise.
41332         * tests/test-symlink.c (symlink): Likewise.
41333         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41334         * tests/test-times.c (times): Likewise.
41335         * tests/test-trunc1.c (trunc): Likewise.
41336         * tests/test-truncf1.c (truncf): Likewise.
41337         * tests/test-truncl.c (truncl): Likewise.
41338         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41339         Likewise.
41340         * tests/test-uname.c (uname): Likewise.
41341         * tests/test-unlink.c (unlink): Likewise.
41342         * tests/test-unlinkat.c (unlinkat): Likewise.
41343         * tests/test-unsetenv.c (unsetenv): Likewise.
41344         * tests/test-usleep.c (usleep): Likewise.
41345         * tests/test-utimensat.c (utimensat): Likewise.
41346         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41347         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41348         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41349         * tests/test-vprintf-posix.c (vprintf): Likewise.
41350         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41351         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41352         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41353         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41354         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41355         * tests/test-wcwidth.c (wcwidth): Likewise.
41356
41357         build: pull in conditional headers during GNULIB_POSIXCHECK
41358         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41359         definitions from any conditionally-included headers.
41360         * lib/stdlib.in.h (includes): Likewise.
41361         * lib/unistd.in.h (includes): Likewise.
41362
41363 2009-12-24  Bruno Haible  <bruno@clisp.org>
41364
41365         * tests/test-argv-iter.c: Include header file being tested immediately
41366         after config.h.
41367         * tests/test-base64.c: Likewise.
41368         * tests/test-flock.c: Likewise.
41369         * tests/test-fsync.c: Likewise.
41370         * tests/test-getdate.c: Likewise.
41371         * tests/test-getndelim2.c: Likewise.
41372         * tests/test-isfinite.c: Likewise.
41373         * tests/test-isinf.c: Likewise.
41374         * tests/test-strerror.c: Likewise.
41375         * tests/test-strsignal.c: Likewise.
41376
41377 2009-12-23  Eric Blake  <ebb9@byu.net>
41378
41379         unistd: work around cygwin bug
41380         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41381         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41382         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41383
41384 2009-12-23  Bruno Haible  <bruno@clisp.org>
41385
41386         localename: More tests.
41387         * tests/test-localename.c (SIZEOF): New macro.
41388         (categories): New variable.
41389         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41390         test_locale_name_default): Add test w.r.t. thread locale.
41391         (test_locale_name_thread): New function.
41392         (main): Invoke it.
41393
41394         localename: Make aware of thread locale.
41395         * lib/localename.h (gl_locale_name_thread): New declaration.
41396         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41397         behaviour with respect to thread locale.
41398         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41399         <langinfo.h>, glthread/lock.h.
41400         (SIZE_BITS): New macro.
41401         (string_hash): New function.
41402         (struct hash_node): New type.
41403         (HASH_TABLE_SIZE): New macro.
41404         (struniq_hash_table, struniq_lock): New variables.
41405         (struniq): New function.
41406         (gl_locale_name_thread): New function.
41407         (gl_locale_name): Invoke it.
41408         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41409         * modules/localename (Depends-on): Add lock.
41410         Reported by Mike Gran <spk121@yahoo.com>.
41411
41412 2009-12-23  Eric Blake  <ebb9@byu.net>
41413
41414         va-args: new module
41415         * modules/va-args: New file.
41416         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41417         * MODULES.html.sh (Core language properties): Mention it.
41418
41419         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41420         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41421         named alias for __attribute__((__unused__)).
41422         * lib/chown.c: Update client.
41423         * lib/fchmodat.c: Likewise.
41424         * lib/fts.c: Likewise.
41425         * lib/getdate.y: Likewise.
41426         * lib/getgroups.c: Likewise.
41427         * lib/getopt.c: Likewise.
41428         * lib/getugroups.c: Likewise.
41429         * lib/mkdir.c: Likewise.
41430         * lib/mkfifo.c: Likewise.
41431         * lib/mkfifoat.c: Likewise.
41432         * lib/mknod.c: Likewise.
41433         * lib/mknodat.c: Likewise.
41434         * lib/readlink.c: Likewise.
41435         * lib/se-context.in.h: Likewise.
41436         * lib/se-selinux.in.h: Likewise.
41437         * lib/sockets.c: Likewise.
41438         * lib/symlink.c: Likewise.
41439         * lib/symlinkat.c: Likewise.
41440         * lib/unicodeio.c: Likewise.
41441         * lib/unistr.h: Likewise.
41442         * tests/test-areadlink.c: Likewise.
41443         * tests/test-areadlinkat.c: Likewise.
41444         * tests/test-filenamecat.c: Likewise.
41445         * tests/test-fseeko.c: Likewise.
41446         * tests/test-ftello.c: Likewise.
41447         * tests/test-getdate.c: Likewise.
41448         * tests/test-getgroups.c: Likewise.
41449         * tests/test-gethostname.c: Likewise.
41450         * tests/test-quotearg.c: Likewise.
41451         * tests/test-version-etc.c: Likewise.
41452         * tests/test-xalloc-die.c: Likewise.
41453         * tests/test-xfprintf-posix.c: Likewise.
41454         * tests/test-xprintf-posix.c: Likewise.
41455         * tests/test-xvasprintf.c: Likewise.
41456
41457         tests: avoid compiler warnings
41458         * tests/test-fcntl.c (main): Delete unused parameters.
41459         * tests/test-freopen-safer.c (main): Likewise.
41460         * tests/test-xalloc-die.c (main): Mark unused parameters.
41461         * tests/test-fseeko.c (main): Likewise.
41462         * tests/test-ftello.c (main): Likewise.
41463         * tests/test-nanosleep.c (main): Avoid declaration warning.
41464         * tests/test-sleep.c (main): Likewise.
41465         * tests/test-unsetenv.c (main): Silence warning about string
41466         literal.
41467         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41468
41469 2009-12-23  Bruno Haible  <bruno@clisp.org>
41470
41471         * tests/test-localename.c (test_locale_name): New function, extracted
41472         from main. Also test mixed situations.
41473         (test_locale_name_posix, test_locale_name_environ,
41474         test_locale_name_default): New functions.
41475         (main): Invoke them all.
41476         * modules/localename-tests (configure.ac): Test for newlocale.
41477
41478 2009-12-23  Bruno Haible  <bruno@clisp.org>
41479
41480         unistd: Ensure getcwd gets declared before being overridden.
41481         * lib/unistd.in.h: Conditionally include <io.h>.
41482
41483 2009-12-22  Bruno Haible  <bruno@clisp.org>
41484
41485         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41486         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41487         (gl_WCHAR_H): Invoke it.
41488         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41489         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41490         Reported by Karl Berry <karl@freefriends.org>.
41491
41492 2009-12-22  Eric Blake  <ebb9@byu.net>
41493
41494         math, unistd: avoid redundant includes
41495         * lib/math.in.h (isnan): No need to re-include <math.h>.
41496         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41497
41498         getsubopt: work around cygwin bug
41499         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41500         avoid conflicting with system getsubopt.
41501         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41502         bug.
41503
41504         getopt: synchronize from glibc
41505         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41506         parameter order.  Adjust all callers.
41507         (_getopt_internal_r, main): Adjust quoting in error messages.
41508         Drop considerations for outdated POSIX 1003.2 error message.
41509         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41510         callers.
41511         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41512
41513         test-getopt: test stderr behavior
41514         * modules/getopt-posix-tests (Depends-on): Add dup2.
41515         * tests/test-getopt.c (ASSERT): Avoid stderr.
41516         (main): Move stderr to a temporary file.
41517         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41518         Instead, add parameter to inform caller if output occurred.
41519         (test_getopt): Adjust all existing tests to expect silence, and
41520         add new tests of leading ":".
41521         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41522         glibc shortcomings with leading "-:" or "+:" in optstring.
41523         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41524         Likewise.
41525         * doc/posix-functions/getopt.texi (getopt): Likewise.
41526
41527         test-getopt: enhance test
41528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41529         supports optind=0.
41530         * tests/test-getopt.c (OPTIND_MIN): Move...
41531         * tests/test-getopt.h (OPTIND_MIN): ...here.
41532         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41533         Require that optind=0 works, since modern BSD supports it in
41534         addition to optreset, and since coreutils expects it.
41535         (test_getopt_long_only): New test.
41536         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41537         glibc shortcomings with 'W;', and enforcement of optind=0.
41538         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41539         Likewise.
41540
41541 2009-12-21  Bruno Haible  <bruno@clisp.org>
41542
41543         localename: Improvements for MacOS X and Cygwin.
41544         * lib/localename.h (gl_locale_name_environ): New declaration.
41545         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41546         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41547         (gl_locale_name_posix): Invoke it.
41548         (gl_locale_name_default): Add comments. Use Windows native API also on
41549         Cygwin.
41550
41551 2009-12-21  Bruno Haible  <bruno@clisp.org>
41552
41553         Update list of Win32 locale ids.
41554         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41555         (LANG_SAMI): Renamed from LANG_SAAMI.
41556         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41557         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41558         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41559         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41560         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41561         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41562         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41563         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41564         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41565         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41566         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41567         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41568         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41569         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41570         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41571         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41572         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41573         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41574         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41575         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41576         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41577         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41578         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41579         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41580         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41581         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41582         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41583         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41584         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41585         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41586         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41587         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41588         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41589         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41590         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41591         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41592         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41593         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41594         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41595         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41596         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41597         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41598         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41599         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41600         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41601         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41602         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41603         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41604         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41605         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41606         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41607         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41608         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41609         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41610         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41611         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41612         Add more languages and countries for Sami, Sorbian. Add more countries
41613         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41614         for Pashto. Change country for Syriac, Tswana.
41615
41616 2009-12-21  Eric Blake  <ebb9@byu.net>
41617
41618         test-utimens: avoid spurious failure
41619         * tests/test-chown.h (nap): Factor...
41620         * tests/nap.h: ...into new file.
41621         * tests/test-lchown.h (nap): Avoid duplication.
41622         * tests/test-utimens-common.h (nap): Use shared implementation,
41623         necessary on file systems with 1-second resolution.
41624         * modules/chown-tests (Files): Include new file.
41625         * modules/fdutimensat-tests (Files): Likewise.
41626         * modules/futimens-tests (Files): Likewise.
41627         * modules/lchown-tests (Files): Likewise.
41628         * modules/openat-tests (Files): Likewise.
41629         * modules/utimens-tests (Files): Likewise.
41630         * modules/utimensat-tests (Files): Likewise.
41631
41632 2009-12-19  Eric Blake  <ebb9@byu.net>
41633
41634         futimens, utimensat: work around Linux bug
41635         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41636         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41637         * lib/utimensat.c (rpl_utimensat): Work around it.
41638         * lib/futimens.c (rpl_futimens): Adjust comment.
41639
41640         utimens: work around Linux ctime bug
41641         * lib/utimens.c (detect_ctime_bug): New helper function.
41642         (update_timespec): Differentiate between workaround needed for
41643         this bug vs. what is needed for systems that lack utimensat.
41644         (fdutimens, lutimens): Work around bug.
41645
41646         utimens: check for ctime update
41647         * tests/test-utimens-common.h (check_ctime): Define.
41648         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41649         * tests/test-futimens.h (test_futimens): Likewise.
41650         * tests/test-lutimens.h (test_lutimens): Likewise.
41651         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41652         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41653
41654 2009-12-19  Bruno Haible  <bruno@clisp.org>
41655
41656         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41657         * tests/test-dprintf-posix2.sh: New file.
41658         * tests/test-dprintf-posix2.c: New file.
41659         * modules/dprintf-posix-tests (Files): Add them.
41660         (configure.ac): Check for getrlimit and setrlimit.
41661         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41662
41663 2009-12-19  Bruno Haible  <bruno@clisp.org>
41664
41665         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41666         * tests/test-fprintf-posix3.sh: New file.
41667         * tests/test-fprintf-posix3.c: New file.
41668         * modules/fprintf-posix-tests (Files): Add them.
41669         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41670
41671 2009-12-19  Eric Blake  <ebb9@byu.net>
41672
41673         dirfd: fix prototype
41674         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41675         * lib/dirfd.c (dirfd): Likewise.
41676
41677         canonicalize: reduce memory usage
41678         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41679         allocation to size.
41680         Reported by Solar Designer <solar@openwall.com>.
41681
41682 2009-12-19  Bruno Haible  <bruno@clisp.org>
41683
41684         New module attribute 'Applicability'.
41685         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41686         * gnulib-tool: New option --extract-applicability.
41687         (func_usage): Document it.
41688         (sed_extract_prog): Recognize it.
41689         (func_get_applicability): New function.
41690         (func_import): Generalize handling of 'link-warning' module.
41691         * modules/link-warning (Applicability): New section.
41692         * modules/arg-nonnull (Applicability): New section.
41693         Repoted by Simon Josefsson <simon@josefsson.org>.
41694
41695 2009-12-19  Bruno Haible  <bruno@clisp.org>
41696
41697         fflush: tweak
41698         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41699         * lib/fseeko.c (rpl_fseeko): Likewise.
41700
41701 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41702
41703         * lib/gl_list.h: Fix typo in comment.
41704
41705 2009-12-16  Eric Blake  <ebb9@byu.net>
41706
41707         fcntl: use to simplify other modules
41708         * modules/cloexec (Depends-on): Add fcntl.
41709         * modules/fchdir (Depends-on): Likewise.
41710         * modules/fd-safer-flag (Depends-on): Likewise.
41711         * modules/unistd-safer (Depends-on): Likewise.
41712         * modules/dup3 (configure.ac): Set module indicator.
41713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41714         missing.
41715         * lib/fchdir.c (_gl_register_dup): Fix comment.
41716         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41717         * lib/dup-safer.c (dup_safer): Likewise.
41718         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41719         * lib/dup3.c (dup3): Likewise.
41720         * tests/test-fchdir.c (main): Enhance test.
41721         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41722
41723         fcntl: port portions of fcntl to mingw
41724         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41725         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41726         replacement for mingw.
41727         * modules/fcntl (Description): Update.
41728         (Depends-on): Add dup2.
41729         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41730         * modules/fcntl-h (Makefile.am): Substitute it.
41731         * lib/fcntl.in.h (fcntl): Update declaration.
41732         (F_DUPFD, F_GETFD): New macros, when needed.
41733         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41734         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41735         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41736         we now guarantee.
41737
41738         fcntl: work around cygwin bug in F_DUPFD
41739         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41740         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41741         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41742         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41743         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41744
41745         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41746         * modules/fcntl (Files): List new files.
41747         (configure.ac): Run a test.
41748         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41749         * lib/fcntl.c (rpl_fcntl): Likewise.
41750         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41751         (gl_FCNTL_H): Always replace fcntl.h.
41752         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41753         * lib/fcntl.in.h (fcntl): Declare replacement.
41754         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41755         needed, plus a witness.
41756         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41757         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41758         * tests/test-fcntl.c: New file.
41759         * modules/fcntl-tests: Likewise.
41760
41761         binary-io: avoid potential compilation warning
41762         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41763         directives.
41764
41765         fflush: avoid compilation error on NetBSD
41766         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41767         between off_t and fpos_t, since the latter is sometimes a struct.
41768         * lib/fseeko.c (rpl_fseeko): Likewise.
41769         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41770
41771 2009-12-15  Eric Blake  <ebb9@byu.net>
41772
41773         fcntl-h, stdio, sys_ioctl: fix declarations
41774         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41775         function must not take arguments.
41776         * lib/sys_ioctl.in.h (ioctl): Likewise.
41777         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41778         (open): Add a link warning.
41779
41780 2009-12-15  Jim Meyering  <meyering@redhat.com>
41781
41782         areadlink, areadlink-with-size: relax license to LGPLv2+
41783         * modules/areadlink (License): Relax to LGPLv2+.
41784         * modules/areadlink-with-size (License): Likewise.
41785
41786 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41787             Bruno Haible  <bruno@clisp.org>
41788
41789         *printf: Fix memory leak.
41790         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41791         * lib/vfprintf.c (vfprintf): Likewise.
41792         * lib/dprintf.c (dprintf): Likewise.
41793         * lib/vdprintf.c (vdprintf): Likewise.
41794
41795 2009-12-14  Eric Blake  <ebb9@byu.net>
41796
41797         accept4: adjust module dependencies
41798         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41799
41800         utimens: one more try at avoiding compiler warning
41801         * lib/utimens.c (lutimens): Lower scope of result.
41802
41803 2009-12-13  Bruno Haible  <bruno@clisp.org>
41804
41805         Move the malloc checking from module 'list' to new module 'xlist'.
41806         * modules/xlist: New file.
41807         * lib/gl_xlist.h: New file.
41808         * lib/gl_xlist.c: New file.
41809         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41810         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41811         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41812         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41813         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41814         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41815         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41816         gl_sortedlist_nx_add): New declarations.
41817         (struct gl_list_implementation): Rename and change methods accordingly.
41818         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41819         (gl_list_nx_create): Renamed from gl_list_create.
41820         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41821         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41822         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41823         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41824         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41825         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41826         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41827         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41828         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41829         gl_list_create_empty.
41830         (gl_list_nx_create): Renamed from gl_list_create.
41831         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41832         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41833         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41834         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41835         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41836         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41837         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41838         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41839         * lib/gl_array_list.c: Don't include xalloc.h.
41840         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41841         NULL upon out-of-memory.
41842         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41843         out-of-memory.
41844         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41845         Change return type to 'int'.
41846         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41847         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41848         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41849         upon out-of-memory.
41850         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41851         upon out-of-memory.
41852         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41853         upon out-of-memory.
41854         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41855         upon out-of-memory.
41856         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41857         out-of-memory.
41858         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41859         Update.
41860         (gl_array_list_implementation): Update.
41861         * lib/gl_carray_list.c: Don't include xalloc.h.
41862         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41863         Return NULL upon out-of-memory.
41864         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41865         out-of-memory.
41866         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41867         Change return type to 'int'.
41868         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41869         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41870         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41871         upon out-of-memory.
41872         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41873         upon out-of-memory.
41874         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41875         out-of-memory.
41876         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41877         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41878         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41879         Update.
41880         (gl_carray_list_implementation): Update.
41881         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41882         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41883         gl_linked_create_empty. Return NULL upon out-of-memory.
41884         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41885         out-of-memory.
41886         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41887         Change return type to 'int'. Return -1 upon out-of-memory.
41888         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41889         out-of-memory.
41890         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41891         upon out-of-memory.
41892         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41893         upon out-of-memory.
41894         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41895         NULL upon out-of-memory.
41896         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41897         upon out-of-memory.
41898         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41899         out-of-memory.
41900         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41901         Update.
41902         * lib/gl_linked_list.c: Don't include xalloc.h.
41903         (gl_linked_list_implementation): Update.
41904         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41905         (add_to_bucket): Change return type to 'int'.
41906         (gl_linkedhash_list_implementation): Update.
41907         * lib/gl_anytree_list1.h (free_subtree): New function.
41908         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41909         gl_tree_create_empty. Return NULL upon out-of-memory.
41910         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41911         Change return type to 'int'. Return -1 upon out-of-memory.
41912         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41913         out-of-memory.
41914         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41915         (gl_tree_remove_node): New function, moved here from
41916         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41917         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41918         Update.
41919         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41920         malloc, not xmalloc. Return NULL upon out-of-memory.
41921         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41922         out-of-memory.
41923         (gl_tree_remove_node_from_tree): New function, extracted from
41924         gl_tree_remove_node.
41925         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41926         upon out-of-memory.
41927         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41928         out-of-memory.
41929         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41930         upon out-of-memory.
41931         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41932         upon out-of-memory.
41933         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41934         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41935         not xmalloc. Return NULL upon out-of-memory.
41936         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41937         out-of-memory.
41938         (gl_tree_remove_node_from_tree): New function, extracted from
41939         gl_tree_remove_node.
41940         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41941         upon out-of-memory.
41942         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41943         out-of-memory.
41944         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41945         upon out-of-memory.
41946         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41947         upon out-of-memory.
41948         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41949         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41950         gl_anytree_list1.h before gl_anyavltree_list2.h.
41951         (gl_avltree_list_implementation): Update.
41952         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41953         gl_anytree_list1.h before gl_anyavltree_list2.h.
41954         (gl_rbtree_list_implementation): Update.
41955         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41956         Change return type to 'int'. Return -1 upon out-of-memory. Use
41957         __builtin_expect.
41958         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41959         (gl_avltreehash_list_implementation): Update.
41960         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41961         (gl_rbtreehash_list_implementation): Update.
41962         * modules/array-list (Depends-on): Remove xalloc.
41963         * modules/carray-list (Depends-on): Likewise.
41964         * modules/linked-list (Depends-on): Likewise.
41965         * modules/linkedhash-list (Depends-on): Likewise.
41966         * modules/avltree-list (Depends-on): Likewise.
41967         * modules/rbtree-list (Depends-on): Likewise.
41968         * modules/avltreehash-list (Depends-on): Likewise.
41969         * modules/rbtreehash-list (Depends-on): Likewise.
41970
41971         * modules/xsublist: New file.
41972         * lib/gl_xsublist.h: New file.
41973         * lib/gl_xsublist.c: New file.
41974         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41975         (gl_sublist_nx_create): New declaration.
41976         * lib/gl_sublist.c: Don't include xalloc.h.
41977         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41978         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41979         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41980         Change return type to 'int'. Return -1 upon out-of-memory.
41981         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41982         upon out-of-memory.
41983         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41984         NULL upon out-of-memory.
41985         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41986         upon out-of-memory.
41987         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41988         NULL upon out-of-memory.
41989         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41990         NULL upon out-of-memory.
41991         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41992         upon out-of-memory.
41993         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41994         (gl_sublist_list_implementation): Update.
41995         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41996         upon out-of-memory.
41997         * modules/sublist (Depends-on): Remove xalloc.
41998
41999         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42000         * tests/test-carray_list.c: Likewise.
42001         * tests/test-linked_list.c: Likewise.
42002         * tests/test-linkedhash_list.c: Likewise.
42003         * tests/test-avltree_list.c: Likewise.
42004         * tests/test-rbtree_list.c: Likewise.
42005         * tests/test-avltreehash_list.c: Likewise.
42006         * tests/test-rbtreehash_list.c: Likewise.
42007         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42008         * modules/carray-list-tests (Makefile.am): Likewise.
42009         * modules/linked-list-tests (Makefile.am): Likewise.
42010         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42011         * modules/avltree-list-tests (Makefile.am): Likewise.
42012         * modules/rbtree-list-tests (Makefile.am): Likewise.
42013         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42014         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42015
42016         * NEWS: Mention the changes.
42017
42018         * lib/clean-temp.c: Include gl_xlist.h.
42019         * modules/clean-temp (Depends-on): Add xlist.
42020
42021         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42022         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42023
42024         * tests/test-array_oset.c: Include gl_xlist.h.
42025         * modules/array-oset-tests (Depends-on): Add xlist.
42026
42027         Reported by José E. Marchesi <jemarch@gnu.org>.
42028
42029 2009-12-13  Bruno Haible  <bruno@clisp.org>
42030
42031         Move the malloc checking from module 'oset' to new module 'xoset'.
42032         * modules/xoset: New file.
42033         * lib/gl_xoset.h: New file.
42034         * lib/gl_xoset.c: New file.
42035         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42036         declarations.
42037         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42038         (struct gl_oset_implementation): Rename and change methods accordingly.
42039         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42040         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42041         'int'. Mark as __warn_unused_result__.
42042         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42043         gl_oset_create_empty.
42044         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42045         'int'.
42046         * lib/gl_array_oset.c: Don't include xalloc.h.
42047         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42048         malloc, not xmalloc.
42049         (grow): Change return type to 'int'. Don't call xalloc_die.
42050         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42051         to 'int'.
42052         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42053         'int'.
42054         (gl_array_oset_implementation): Update.
42055         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42056         gl_tree_create_empty.
42057         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42058         'int'.
42059         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42060         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42061         xmalloc.
42062         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42063         not xmalloc.
42064         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42065         xmalloc.
42066         (gl_avltree_oset_implementation): Update.
42067         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42068         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42069         xmalloc.
42070         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42071         not xmalloc.
42072         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42073         xmalloc.
42074         (gl_rbtree_oset_implementation): Update.
42075         * modules/array-oset (Depends-on): Remove xalloc.
42076         * modules/avltree-oset (Depends-on): Likewise.
42077         * modules/rbtree-oset (Depends-on): Likewise.
42078         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42079         * tests/test-avltree_oset.c: Likewise.
42080         * tests/test-rbtree_oset.c: Likewise.
42081         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42082         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42083         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42084         * NEWS: Mention the change.
42085
42086 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42087
42088         maint.mk: allow a project to override release-prep commands
42089         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42090         commands into a new rule.
42091         (release-prep): New rule.
42092         (release-prep-hook): New overridable variable.
42093
42094 2009-12-13  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42097
42098 2009-12-13  Jim Meyering  <meyering@redhat.com>
42099
42100         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42101         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42102
42103 2009-12-12  Bruno Haible  <bruno@clisp.org>
42104
42105         duplocale: Tweak.
42106         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42107
42108 2009-12-12  Karl Berry  <karl@gnu.org>
42109
42110         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42111
42112 2009-12-12  Bruno Haible  <bruno@clisp.org>
42113
42114         * m4/po.m4: Undo incorrect untabification.
42115
42116 2009-12-12  Bruno Haible  <bruno@clisp.org>
42117
42118         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42119         * modules/c-strtod (Depends-on): Add locale.
42120         * modules/c-strtold (Depends-on): Likewise.
42121
42122 2009-12-12  Bruno Haible  <bruno@clisp.org>
42123
42124         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42125
42126 2009-12-11  Eric Blake  <ebb9@byu.net>
42127
42128         setenv: relax requirement in light of POSIX ruling
42129         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42130         not NULL.
42131         * tests/test-setenv.c (main): Relax test.
42132         * tests/test-unsetenv.c (main): Likewise.
42133         * doc/posix-functions/setenv.texi (setenv): Document this.
42134         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42135
42136 2009-12-11  Bruno Haible  <bruno@clisp.org>
42137
42138         New module 'fd-safer-flag'.
42139         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42140         * lib/dup-safer.c (dup_safer_flag): Remove function.
42141         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42142         * lib/fd-safer.c (fd_safer_flag): Remove function.
42143         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42144         * modules/cloexec (configure.ac): Drop indicator macro.
42145         * modules/fd-safer-flag: New file.
42146         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42147         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42148         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42149
42150 2009-12-11  Bruno Haible  <bruno@clisp.org>
42151
42152         Tests for module 'nl_langinfo'.
42153         * modules/nl_langinfo-tests: New file.
42154         * tests/test-nl_langinfo.sh: New file.
42155         * tests/test-nl_langinfo.c: New file.
42156
42157         New module 'nl_langinfo'.
42158         * lib/nl_langinfo.c: New file.
42159         * m4/nl_langinfo.m4: New file.
42160         * modules/nl_langinfo: New file.
42161         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42162
42163 2009-12-11  Bruno Haible  <bruno@clisp.org>
42164
42165         Tests for module 'langinfo'.
42166         * modules/langinfo-tests: New file.
42167         * tests/test-langinfo.c: New file.
42168
42169         New module 'langinfo'.
42170         * lib/langinfo.in.h: New file.
42171         * m4/langinfo_h.m4: New file.
42172         * modules/langinfo: New file.
42173         * doc/posix-headers/langinfo.texi: Mention the new module.
42174
42175 2009-12-11  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/config.charset: Untabify.
42178
42179 2009-12-11  Bruno Haible  <bruno@clisp.org>
42180
42181         * modules/unistd-safer (configure.ac): Drop indicator macro.
42182
42183 2009-12-11  Bruno Haible  <bruno@clisp.org>
42184
42185         Move pipe2-safer code to its own file.
42186         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42187         * lib/pipe-safer.c (pipe2_safer): Remove function.
42188         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42189         (Makefile.am): Add it to lib_SOURCES.
42190
42191 2009-12-10  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42194
42195 2009-12-10  Bruno Haible  <bruno@clisp.org>
42196
42197         Declare which arguments expect non-NULL values, for GCC and clang.
42198         * build-aux/arg-nonnull.h: New file.
42199         * modules/arg-nonnull: New file.
42200         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42201         (inet_ntop, inet_pton): Use it.
42202         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42203         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42204         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42205         (open, openat): Use it.
42206         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42207         (fnmatch): Use it.
42208         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42209         (getopt, getopt_long, getopt_long_only): Use it.
42210         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42211         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42212         Use it.
42213         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42214         (iconv_open): Use it.
42215         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42216         (strtoimax, strtoumax): Use it.
42217         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42218         (duplocale): Use it.
42219         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42220         (frexp, frexpl): Use it.
42221         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42222         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42223         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42224         (tsearch, tfind, tdelete, twalk): Use it.
42225         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42226         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42227         sigpending): Use it.
42228         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42229         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42230         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42231         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42232         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42233         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42234         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42235         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42236         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42237         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42238         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42239         Use it.
42240         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42241         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42242         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42243         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42244         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42245         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42246         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42247         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42248         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42249         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42250         strtoull, unsetenv): Use it.
42251         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42252         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42253         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42254         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42255         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42256         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42257         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42258         (strcasecmp, strncasecmp): Use it.
42259         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42260         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42261         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42262         rpl_setsockopt): Use it.
42263         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42264         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42265         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42266         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42267         (gettimeofday): Use it.
42268         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42269         (times): Use it.
42270         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42271         (uname): Use it.
42272         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42273         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42274         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42275         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42276         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42277         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42278         unlinkat, write): Use it.
42279         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42280         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42281         * lib/argv-iter.h: Include arg-nonnull.h.
42282         (_ATTRIBUTE_NONNULL_): Remove macro.
42283         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42284         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42285         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42286         optimization.
42287         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42288         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42289         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42290         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42291         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42292         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42293         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42294         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42295         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42296         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42297         * modules/dirent (Depends-on): Add arg-nonnull.
42298         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42299         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42300         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42301         * modules/fnmatch (Depends-on): Add arg-nonnull.
42302         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42303         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42304         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42305         * modules/glob (Depends-on): Add arg-nonnull.
42306         (Makefile.am): Insert arg-nonnull.h into glob.h.
42307         * modules/iconv_open (Depends-on): Add arg-nonnull.
42308         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42309         * modules/inttypes (Depends-on): Add arg-nonnull.
42310         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42311         * modules/locale (Depends-on): Add arg-nonnull.
42312         (Makefile.am): Insert arg-nonnull.h into locale.h.
42313         * modules/math (Depends-on): Add arg-nonnull.
42314         (Makefile.am): Insert arg-nonnull.h into math.h.
42315         * modules/netdb (Depends-on): Add arg-nonnull.
42316         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42317         * modules/search (Depends-on): Add arg-nonnull.
42318         (Makefile.am): Insert arg-nonnull.h into search.h.
42319         * modules/signal (Depends-on): Add arg-nonnull.
42320         (Makefile.am): Insert arg-nonnull.h into signal.h.
42321         * modules/spawn (Depends-on): Add arg-nonnull.
42322         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42323         * modules/stdio (Depends-on): Add arg-nonnull.
42324         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42325         * modules/stdlib (Depends-on): Add arg-nonnull.
42326         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42327         * modules/string (Depends-on): Add arg-nonnull.
42328         (Makefile.am): Insert arg-nonnull.h into string.h.
42329         * modules/strings (Depends-on): Add arg-nonnull.
42330         (Makefile.am): Insert arg-nonnull.h into strings.h.
42331         * modules/sys_socket (Depends-on): Add arg-nonnull.
42332         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42333         * modules/sys_stat (Depends-on): Add arg-nonnull.
42334         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42335         * modules/sys_time (Depends-on): Add arg-nonnull.
42336         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42337         * modules/sys_times (Depends-on): Add arg-nonnull.
42338         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42339         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42340         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42341         * modules/time (Depends-on): Add arg-nonnull.
42342         (Makefile.am): Insert arg-nonnull.h into time.h.
42343         * modules/unistd (Depends-on): Add arg-nonnull.
42344         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42345         * modules/wchar (Depends-on): Add arg-nonnull.
42346         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42347         * modules/argv-iter (Depends-on): Add arg-nonnull.
42348         * tests/test-canonicalize.c (null_ptr): New function.
42349         (main): Use it.
42350         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42351         (main): Use it.
42352         * tests/test-memmem.c (null_ptr): New function.
42353         (main): Use it.
42354         Reported by Jim Meyering.
42355
42356 2009-12-10  Bruno Haible  <bruno@clisp.org>
42357
42358         Use spaces for indentation, not tabs.
42359         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42360         * m4/*.m4: Untabify.
42361         * build-aux/*.h: Untabify.
42362         * tests/**/*.[hc]: Untabify.
42363         * README: New section "Indent with spaces, not TABs", based on
42364         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42365         * NEWS: Mention the change.
42366
42367 2009-12-10  Bruno Haible  <bruno@clisp.org>
42368
42369         pty test: Fix link error.
42370         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42371         test_pty_LDADD.
42372
42373 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42374
42375         * modules/pty: New file.
42376         * modules/pty-tests: New file.
42377         * m4/pty.m4: New file.
42378         * tests/test-pty.c: New file.
42379         * doc/glibc-headers/pty.texi: Modified.
42380         * doc/glibc-functions/forkpty.texi: Modified.
42381         * doc/glibc-functions/openpty.texi: Modified.
42382
42383 2009-12-10  Bruno Haible  <bruno@clisp.org>
42384
42385         Avoid syntax error in C++ mode.
42386         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42387
42388 2009-12-10  Bruno Haible  <bruno@clisp.org>
42389
42390         Use sed with option -e.
42391         * gnulib-tool (func_version, func_emit_copyright_notice,
42392         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42393         option -e to sed.
42394         * modules/link-warning (Makefile.am): Likewise.
42395
42396 2009-12-10  Jim Meyering  <meyering@redhat.com>
42397
42398         mgetgroups: do not write bytes beyond end of malloc'd buffer
42399         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42400         username, we call getgroups with a one-element-shorter buffer,
42401         but still told it the length was original, max_n_groups.
42402
42403 2009-12-09  Eric Blake  <ebb9@byu.net>
42404
42405         cloexec: relax license
42406         * modules/cloexec (Maintainer): Add myself.
42407         (License): Use LGPL, not GPL.
42408
42409         link-warning: optimize generation
42410         * modules/link-warning (Makefile.am): Reduce process usage.
42411
42412 2009-12-09  Bruno Haible  <bruno@clisp.org>
42413
42414         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42415         workaround was added on 2009-11-17.
42416
42417 2009-12-09  Jim Meyering  <meyering@redhat.com>
42418             Bruno Haible  <bruno@clisp.org>
42419
42420         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42421         * modules/link-warning (Makefile.am): Make the comment-removing sed
42422         command more robust in the face of bootstrap-prepended comment lines.
42423
42424 2009-12-09  Bruno Haible  <bruno@clisp.org>
42425
42426         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42427         most one group.
42428
42429 2009-12-09  Simon Josefsson <simon@josefsson.org>
42430             Bruno Haible  <bruno@clisp.org>
42431
42432         * build-aux/link-warning.h: Add copyright notice.
42433         * modules/link-warning (Makefile.am): Generate link-warning.h from
42434         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42435         * NEWS: Mention change in link-warning module.
42436         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42437         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42438         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42439         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42440         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42441         * modules/math (Makefile.am): Add dependency to math.h.
42442         * modules/search (Makefile.am): Add dependency to search.h.
42443         * modules/signal (Makefile.am): Add dependency to signal.h.
42444         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42445         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42446         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42447         * modules/string (Makefile.am): Add dependency to string.h.
42448         * modules/strings (Makefile.am): Add dependency to strings.h.
42449         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42450         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42451         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42452         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42453         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42454         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42455         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42456         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42457         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42458
42459 2009-12-09  Bruno Haible  <bruno@clisp.org>
42460
42461         fchdir: Optimize away rpl_fstat when possible.
42462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42463         REPLACE_OPEN_DIRECTORY.
42464         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42465
42466 2009-12-09  Bruno Haible  <bruno@clisp.org>
42467
42468         * lib/fchdir.c: Update comment.
42469
42470 2009-12-09  Bruno Haible  <bruno@clisp.org>
42471
42472         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42473
42474 2009-12-08  Eric Blake  <ebb9@byu.net>
42475
42476         fchdir: avoid memory leak on re-registration.
42477         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42478
42479 2009-12-08  Jim Meyering  <meyering@redhat.com>
42480
42481         init.sh: avoid Solaris 10 /bin/sh portability problem
42482         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42483         sourced script:
42484           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42485           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42486           bar
42487         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42488         and two tests used that idiom.
42489         * tests/init.sh: Update suggested usage comments.
42490         (path_prepend_): New function, to be used in place
42491         of the --src-path=DIR option.
42492         (setup_): Move PATH-prepending code into path_prepend_.
42493         * tests/test-pread.sh: Adapt to new usage.
42494         * tests/test-xalloc-die.sh: Likewise.
42495
42496 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42497
42498         * doc/gnulib.texi (Glibc pty.h): Add.
42499         * doc/glibc-functions/forkpty.texi: Add.
42500         * doc/glibc-functions/openpty.texi: Add.
42501         Suggested by Bruno Haible.
42502
42503 2009-12-08  Eric Blake  <ebb9@byu.net>
42504
42505         fchdir: fix logic bugs
42506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42507         * tests/test-fchdir.c (main): Enhance test.
42508         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42509         is in use.
42510
42511         dup2: fix logic bugs
42512         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42513         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42514         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42515         exists.
42516         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42517
42518 2009-12-07  Eric Blake  <ebb9@byu.net>
42519
42520         unlink: fix m4 detection
42521         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42522
42523         unistd-safer: add unit test
42524         * modules/unistd-safer-tests: New file.
42525         * tests/test-dup-safer.c: Likewise.
42526         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42527         * tests/test-dup2.c (setmode): Likewise.
42528         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42529
42530         cloexec: preserve text vs. binary across dup_cloexec
42531         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42532         mode.
42533         * modules/dup2-tests (Depends-on): Add binary-io.
42534         * modules/cloexec-tests (Depends-on): Likewise.
42535         * tests/test-dup2.c (setmode, is_mode): New helpers.
42536         (main): Add tests that translation mode is preserved.
42537         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42538         Reported by Bruno Haible.
42539
42540         mgetgroups: reduce duplicate listings
42541         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42542         resulting array.
42543         * tests/test-chown.h (test_chown): Simplify client.
42544         * tests/test-lchown.h (test_lchown): Likewise.
42545
42546 2009-12-06  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42549         value.
42550
42551 2009-12-06  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/progname.c: Include stdio.h, stdlib.h.
42554         (set_program_name): Reject a NULL argument.
42555
42556 2009-12-05  Eric Blake  <ebb9@byu.net>
42557
42558         pipe2-safer: new module
42559         * modules/pipe2-safer: New file.
42560         * lib/unistd-safer.h (pipe2_safer): New prototype.
42561         * lib/unistd--.h (pipe2): New wrapper.
42562         * lib/pipe-safer.c (pipe2_safer): New function.
42563         * modules/pipe (Depends-on): Add pipe2-safer.
42564         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42565
42566         stdlib-safer: preserve cloexec flag for mkostemp[s]
42567         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42568         fd_safer_flag.
42569
42570         unistd-safer: allow preservation of cloexec status via flag
42571         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42572         prototypes.
42573         * lib/dup-safer.c (dup_safer_flag): New function.
42574         * lib/fd-safer.c (fd_safer_flag): Likewise.
42575         * modules/cloexec (configure.ac): Set witness.
42576
42577         test-dup2: enhance test
42578         * modules/dup2-tests (Depends-on): Add cloexec.
42579         * tests/test-dup2.c (main): Enhance test.
42580
42581         cloexec: add dup_cloexec
42582         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42583         header and comments.
42584         * lib/cloexec.c (set_cloexec_flag): Add comments.
42585         (dup_cloexec): New function, with mingw implementation borrowed
42586         from...
42587         * lib/w32spawn.h (dup_noinherit): ...here.
42588         * modules/execute (Depends-on): Add cloexec.
42589         * modules/pipe (Depends-on): Likewise.
42590         * modules/cloexec (Depends-on): Add dup2.
42591         * modules/cloexec-tests (Files): New file.
42592         * tests/test-cloexec.c: Likewise.
42593
42594         test-xalloc-die: fix test for mingw
42595         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42596         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42597         directory and .exe suffix off argv[0] output.
42598
42599         test-fseeko: fix test for mingw
42600         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42601         than undefining fseek, so test will pass on mingw.
42602
42603 2009-12-05  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/progname.h (set_program_name): Clarify specification.
42606         * lib/progname.c (set_program_name): Likewise.
42607         Reported by Jim Meyering.
42608
42609 2009-12-05  Jim Meyering  <meyering@redhat.com>
42610
42611         maint.mk: backslash-escape parens in default regexp
42612         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42613         backslash-escape the literal parentheses.
42614
42615         maint.mk: news-date-check: use grep -E
42616         * top/maint.mk (today): Define a Make variable, not a...
42617         (news-date-check): ...shell variable.
42618         (news-date-regexp): Use the Make variable.
42619         Use grep's -E option.  Change the failing diagnostic to mention
42620         the variable, $(news-date-regexp).
42621
42622 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42623
42624         maintainer-makefile: allow customization of NEWS entry format
42625         * top/maint.mk (news-date-regexp): New overridable variable.
42626         (news-date-check): Use it.
42627
42628 2009-12-04  Eric Blake  <ebb9@byu.net>
42629
42630         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42631         * lib/mgetgroups.h (xgetgroups): New prototype.
42632         * lib/mgetgroups.c (xgetgroups): New wrapper.
42633         (mgetgroups): Handle ENOSYS.
42634         * modules/mgetgroups (Depends-on): Add realloc.
42635         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42636
42637         mgetgroups: avoid argument promotion issues with -1
42638         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42639         for invalid gid_t.
42640         * tests/test-chown.h (getegid, test_chown): Likewise.
42641         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42642
42643 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42644
42645         exclude: Fix header file problems.
42646         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42647
42648 2009-12-01  Jim Meyering  <meyering@redhat.com>
42649
42650         fts: fts_open: do not let an empty string cause immediate failure
42651         This is required in support of GNU rm, for which the command
42652         "rm A '' B" must process and remove both A and B, in spite of
42653         the empty string argument.
42654         * lib/fts.c (fts_open): Do not let the presence of an empty string
42655         cause fts_open to fail immediately.  Most fts-using tools must be
42656         able to process all arguments, in order, and can be expected to
42657         diagnose such arguments themselves.
42658
42659 2009-11-30  Eric Blake  <ebb9@byu.net>
42660
42661         utimens: fix compilation error
42662         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42663         Declare variable at right scope.
42664
42665 2009-11-29  Jim Meyering  <meyering@redhat.com>
42666
42667         bootstrap: handle perl-5.11's changed --version output
42668         * build-aux/bootstrap (get_version): Handle perl separately,
42669         since perl-5.11's --version output is different.
42670
42671 2009-11-28  Jim Meyering  <meyering@redhat.com>
42672
42673         userspec: depend on the inttostr module, too
42674         * modules/userspec (Depends-on): Add inttostr.
42675
42676         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42677         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42678         number of MAXUID when it evaluates to (uid_t) -1.
42679         Likewise for group ID.  Reported by Matt McCutchen in
42680         <http://savannah.gnu.org/bugs/?28113>
42681
42682         userspec: reformat to use spaces, not TABs
42683         * lib/userspec.c: Expand TABs to spaces.
42684         Add Emacs' "indent-tabs-mode: nil" hint.
42685
42686 2009-11-27  Eric Blake  <ebb9@byu.net>
42687
42688         getopt-gnu: flush out another BSD bug
42689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42690         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42691         flush out BSD bug.
42692         * tests/test-getopt.h (test_getopt): End lists with NULL.
42693         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42694         (test_getopt_long_posix): Enhance test.
42695         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42696         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42697         getopt-gnu.
42698         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42699         Likewise.
42700
42701 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42702
42703         * modules/idpriv-droptemp-tests (Notice): Fix text.
42704
42705 2009-11-27  Jim Meyering  <meyering@redhat.com>
42706
42707         test-xalloc-die: avoid spurious failure due to libtool argv difference
42708         In a libtool-enabled project, this test would fail due to a difference
42709         in the emitted program name, e.g.,
42710         -test-xalloc-die: memory exhausted
42711         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42712         Use program to avoid that.
42713         * modules/xalloc-die-tests (Depends-on): Add progname.
42714         * tests/test-xalloc-die.c: Include progname.h".
42715         (program_name): Remove decl.
42716         (main): Call set_program_name.
42717         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42718
42719 2009-11-26  Richard Jones  <rjones@redhat.com>
42720
42721         w32sock: leave win32 error in place.
42722         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42723
42724 2009-11-26  Eric Blake  <ebb9@byu.net>
42725
42726         init.sh: suggest to use skip_ and fail_ functions in comments
42727         * tests/init.sh: Add a sentence.
42728
42729 2009-11-25  Bruno Haible  <bruno@clisp.org>
42730
42731         init.sh: add documentation in comments
42732         * tests/init.sh: Add some developer and user documentation.
42733
42734 2009-11-26  Jim Meyering  <meyering@redhat.com>
42735
42736         init.sh: accommodate even those who specify bogus srcdir manually
42737         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42738         configure-time tests to be sanitized, so that there is no need to
42739         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42740         (with no double quotes) suffices.  However, since tests may be
42741         invoked manually, and since you may explicitly set srcdir to the
42742         name of a directory containing spaces, do quote its uses here.
42743         * tests/test-pread.sh: Likewise.
42744         Suggested by Bruno Haible.
42745
42746         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42747         * tests/test-pread.sh: Write no data into the pipe, because
42748         test-pread actually reads none.  This avoids a diagnostic,
42749         "bash: echo: write error: Broken pipe", that arises in the unusual
42750         event something is ignoring SIGPIPE, and might be interpreted
42751         as some sort of failure.  Reported by Bruno Haible.
42752
42753 2009-11-25  Jim Meyering  <meyering@redhat.com>
42754
42755         test-pread: cover failure with ESPIPE and EINVAL
42756         * tests/test-pread.c (main): Test for failure, too.
42757         * tests/test-pread.sh: Invoke with stdin on a pipe.
42758         Suggested by Eric Blake.
42759
42760         pread: improvement and fix
42761         * modules/pread (Depends-on): Depend on lseek, for portability to
42762         e.g., mingw.  Suggested by Eric Blake.
42763         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42764
42765         unistd.in.h: correct declaration of pread
42766         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42767         Reported by Richard W.M. Jones.
42768
42769         test-pread.sh: distribute the test script
42770         * modules/pread-tests (Files): Include test-pread.sh.
42771
42772         test-pread.sh: clean up
42773         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42774         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42775         That is unnecessary, since it's always ".".
42776         Suggestion from Eric Blake.
42777
42778         test-pread.sh: make executable
42779         * tests/test-pread.sh: Set executable bit.
42780         Reported by Eric Blake.
42781
42782         correct typo in test-pread.sh
42783         * tests/test-pread.sh: Add #! line.
42784
42785         test pread
42786         * tests/test-pread.c: New file.
42787         * tests/test-pread.sh: Likewise.
42788         * modules/pread-tests: Likewise.
42789
42790         pread: new module
42791         * modules/pread: New file.
42792         * lib/unistd.in.h (pread): Define/declare.
42793         * lib/pread.c (pread): New file.
42794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42795         * modules/unistd (Makefile.am): Substitute witnesses.
42796         * doc/posix-functions/pread.texi (pread): Update.
42797         * MODULES.html.sh: Add pread.
42798
42799 2009-11-25  Jim Meyering  <meyering@redhat.com>
42800
42801         tests/init.sh: new file to be used via most *.sh tests
42802         * tests/init.sh: New file.
42803
42804 2009-11-25  Eric Blake  <ebb9@byu.net>
42805
42806         utimens: work around older Linux failure with symlinks
42807         * lib/utimens.c (lutimensat_works_really): New variable.
42808         (fdutimens, lutimens): Use it to manage kernels that support
42809         nanosecond times on files, but not on symlinks.
42810         Reported by Ondřej Vašík.
42811
42812         utimes: fix configure grammar
42813         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42814
42815 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42816
42817         regex: Fix fastmap for multibyte character ranges.
42818         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42819         characters when a multibyte character range is included.
42820
42821 2009-11-22  Andy Wingo  <wingo@pobox.com>
42822
42823         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42824         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42825
42826 2009-11-24  Bruno Haible  <bruno@clisp.org>
42827
42828         doc: Most *_l functions exist in MacOS X 10.5.
42829         * doc/posix-functions/duplocale.texi: Update platforms list.
42830         * doc/posix-functions/freelocale.texi: Likewise.
42831         * doc/posix-functions/newlocale.texi: Likewise.
42832         * doc/posix-functions/uselocale.texi: Likewise.
42833         * doc/posix-functions/isalnum_l.texi: Likewise.
42834         * doc/posix-functions/isalpha_l.texi: Likewise.
42835         * doc/posix-functions/isblank_l.texi: Likewise.
42836         * doc/posix-functions/iscntrl_l.texi: Likewise.
42837         * doc/posix-functions/isdigit_l.texi: Likewise.
42838         * doc/posix-functions/isgraph_l.texi: Likewise.
42839         * doc/posix-functions/islower_l.texi: Likewise.
42840         * doc/posix-functions/isprint_l.texi: Likewise.
42841         * doc/posix-functions/ispunct_l.texi: Likewise.
42842         * doc/posix-functions/isspace_l.texi: Likewise.
42843         * doc/posix-functions/isupper_l.texi: Likewise.
42844         * doc/posix-functions/iswalnum_l.texi: Likewise.
42845         * doc/posix-functions/iswalpha_l.texi: Likewise.
42846         * doc/posix-functions/iswblank_l.texi: Likewise.
42847         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42848         * doc/posix-functions/iswctype_l.texi: Likewise.
42849         * doc/posix-functions/iswdigit_l.texi: Likewise.
42850         * doc/posix-functions/iswgraph_l.texi: Likewise.
42851         * doc/posix-functions/iswlower_l.texi: Likewise.
42852         * doc/posix-functions/iswprint_l.texi: Likewise.
42853         * doc/posix-functions/iswpunct_l.texi: Likewise.
42854         * doc/posix-functions/iswspace_l.texi: Likewise.
42855         * doc/posix-functions/iswupper_l.texi: Likewise.
42856         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42857         * doc/posix-functions/isxdigit_l.texi: Likewise.
42858         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42859         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42860         * doc/posix-functions/strcoll_l.texi: Likewise.
42861         * doc/posix-functions/strfmon_l.texi: Likewise.
42862         * doc/posix-functions/strftime_l.texi: Likewise.
42863         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42864         * doc/posix-functions/strxfrm_l.texi: Likewise.
42865         * doc/posix-functions/tolower_l.texi: Likewise.
42866         * doc/posix-functions/toupper_l.texi: Likewise.
42867         * doc/posix-functions/towctrans_l.texi: Likewise.
42868         * doc/posix-functions/towlower_l.texi: Likewise.
42869         * doc/posix-functions/towupper_l.texi: Likewise.
42870         * doc/posix-functions/wcscoll_l.texi: Likewise.
42871         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42872         * doc/posix-functions/wctrans_l.texi: Likewise.
42873         * doc/posix-functions/wctype_l.texi: Likewise.
42874         * doc/glibc-functions/strptime_l.texi: Likewise.
42875         * doc/glibc-functions/strtod_l.texi: Likewise.
42876         * doc/glibc-functions/strtof_l.texi: Likewise.
42877         * doc/glibc-functions/strtol_l.texi: Likewise.
42878         * doc/glibc-functions/strtold_l.texi: Likewise.
42879         * doc/glibc-functions/strtoll_l.texi: Likewise.
42880         * doc/glibc-functions/strtoul_l.texi: Likewise.
42881         * doc/glibc-functions/strtoull_l.texi: Likewise.
42882         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42883         * doc/glibc-functions/wcstod_l.texi: Likewise.
42884         * doc/glibc-functions/wcstof_l.texi: Likewise.
42885         * doc/glibc-functions/wcstol_l.texi: Likewise.
42886         * doc/glibc-functions/wcstold_l.texi: Likewise.
42887         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42888         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42889         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42890
42891 2009-11-24  Bruno Haible  <bruno@clisp.org>
42892
42893         duplocale: Fix logic bug.
42894         * lib/duplocale.c: Don't include <langinfo.h>.
42895         (_NL_LOCALE_NAME): Remove macro.
42896         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42897         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42898
42899 2009-11-23  Jim Meyering  <meyering@redhat.com>
42900
42901         test-update-copyright: don't hard-code /usr/bin/perl
42902         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42903         perl to print the current year.  Gilles Espinasse reported that
42904         the replaced use of perl was hard-coded as /usr/bin/perl.
42905
42906 2009-11-23  Bruno Haible  <bruno@clisp.org>
42907
42908         duplocale: Add support for glibc 2.3.x.
42909         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42910
42911 2009-11-22  Bruno Haible  <bruno@clisp.org>
42912
42913         vasnprintf: Tiny optimization.
42914         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42915         MacOS X.
42916
42917 2009-11-22  Bruno Haible  <bruno@clisp.org>
42918
42919         Tests for module 'duplocale'.
42920         * modules/duplocale-tests: New file.
42921         * tests/test-duplocale.c: New file.
42922
42923         New module 'duplocale'.
42924         * m4/duplocale.m4: New file.
42925         * lib/locale.in.h (duplocale): New declaration.
42926         * lib/duplocale.c: New file.
42927         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42928         gl_LOCALE_H_DEFAULTS): New macros.
42929         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42930         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42931         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42932         REPLACE_DUPLOCALE.
42933         * modules/duplocale: New file.
42934         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42935
42936 2009-11-22  Bruno Haible  <bruno@clisp.org>
42937
42938         * modules/locale-tests (configure.ac): Test for newlocale function.
42939         * tests/test-locale.c: When the system has extended locale functions,
42940         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42941
42942         locale: Make locale_t available when possible.
42943         * lib/locale.in.h: Include <xlocale.h> when it exists.
42944         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42945         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42946         * modules/locale (Depends-on): Add extensions.
42947         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42948         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42949
42950 2009-11-22  Bruno Haible  <bruno@clisp.org>
42951
42952         Add comments.
42953         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42954         invocation.
42955         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42956         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42957         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42958
42959 2009-11-22  Bruno Haible  <bruno@clisp.org>
42960
42961         error: account for the possibility of freopen (stdout).
42962         * lib/error.c: Include <unistd.h>.
42963         (flush_stdout): New function, extracted from error and error_at_line.
42964         Determine stdout's fd dynamically.
42965         (error, error_at_line): Invoke flush_stdout.
42966         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42967         * modules/error (Depends-on): Add unistd.
42968
42969 2009-11-22  Bruno Haible  <bruno@clisp.org>
42970
42971         diffseq: Add comment.
42972         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42973
42974 2009-11-22  Jim Meyering  <meyering@redhat.com>
42975
42976         c-stack: avoid defining an unused static function
42977         * lib/c-stack.c (find_stack_direction): Do not define this function
42978         when it will not be used.
42979
42980         diffseq: avoid spurious gcc warnings
42981         * lib/diffseq.h (IF_LINT2): Define.
42982         (compareseq): Use it to initialize two members of "part".
42983         This avoids two used-uninitialized warnings.
42984
42985 2009-11-21  Jim Meyering  <meyering@redhat.com>
42986
42987         c-stack: avoid "ignoring return value of `write'" warning
42988         * lib/c-stack.c: Include "ignore-value.h".
42989         (die): Explicitly ignore each write return value.
42990         * modules/c-stack (Depends-on): Add ignore-value.
42991
42992 2009-11-21  Bruno Haible  <bruno@clisp.org>
42993
42994         diffseq: reduce scope of variable 'best'.
42995         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42996         variable, earlier used for two different purposes.
42997
42998 2009-11-21  Jim Meyering  <meyering@redhat.com>
42999
43000         diffseq: remove useless assignment to "best"
43001         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43002         assignment.  At that point "best" is already guaranteed to be zero.
43003
43004 2009-11-20  Eric Blake  <ebb9@byu.net>
43005
43006         build: mention ftp redirector in release announcements
43007         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43008         values that used to come from cfg.mk; mention FTP redirect URL.
43009         * build-aux/announce-gen: Mention the mirror list.
43010         Suggested by Karl Berry.
43011
43012         nanosleep: improve port to mingw
43013         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43015         LIB_NANOSLEEP, but only when needed.
43016         * modules/select (Link): Document LIBSOCKET.
43017         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43018         enough.
43019
43020         nanosleep: work around cygwin bug
43021         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43022         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43023         bug.
43024         (getnow): Delete, not needed.
43025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43026         LIB_CLOCK_GETTIME.
43027         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43028         clock-time, gettime.
43029         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43030         bug.
43031         * modules/nanosleep-tests: New test.
43032         * tests/test-nanosleep.c: New file.
43033
43034         sleep: work around cygwin bug
43035         * lib/sleep.c (rpl_sleep): Work around the bug.
43036         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43037         (gl_PREREQ_SLEEP): Delete unused macro.
43038         * modules/sleep (Depends-on): Add verify.
43039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43040         * modules/unistd (Makefile.am): Substitute witness.
43041         * lib/unistd.in.h (sleep): Update prototype.
43042         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43043         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43044         * modules/sleep-tests (Depends-on): Check for alarm.
43045
43046 2009-11-20  Jim Meyering  <meyering@redhat.com>
43047
43048         maint.mk: improve sc_prohibit_magic_number_exit
43049         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43050         so it does not match uses like System.exit(1).
43051         Add comments showing how to correct all offenders.
43052
43053 2009-11-19  Eric Blake  <ebb9@byu.net>
43054
43055         xalloc-die-tests: add missing library
43056         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43057
43058         test-xvasprintf: silence compiler warnings
43059         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43060         empty string from gcc.
43061
43062 2009-11-19  Jim Meyering  <meyering@redhat.com>
43063
43064         xfreopen: new module, from coreutils
43065         * modules/xfreopen: New module.
43066         * lib/xfreopen.c: New file.
43067         * lib/xfreopen.h: New file.
43068         * MODULES.html.sh (File stream based Input/Output"): Add it.
43069
43070 2009-11-19  Eric Blake  <ebb9@byu.net>
43071
43072         manywarnings: depend on warnings
43073         * modules/manywarnings (Depends-on): Add warnings.
43074
43075         build: avoid compiler warnings
43076         * lib/select.c (rpl_select): Delete unused variable.
43077         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43078
43079 2009-11-18  Eric Blake  <ebb9@byu.net>
43080
43081         tests: avoid false negative with --with-packager
43082         * tests/test-version-etc.sh: Discard packager information.
43083         * tests/test-argp-version-etc-1.sh: Likewise.
43084         Reported by Mike Frysinger.
43085
43086         utimens: fix regression on Solaris
43087         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43088         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43089         can only change fd timestamps via futimesat.  Instead, use an
43090         additional witness macro to avoid BSD bug.
43091         Reported by Jim Meyering.
43092
43093 2009-11-17  Eric Blake  <ebb9@byu.net>
43094
43095         usleep: use it to simplify tests
43096         * modules/stat-time-tests (Depends-on): Add usleep.
43097         (configure.ac): Drop usleep check.
43098         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43099         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43100         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43101         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43102         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43103         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43104         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43105         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43106         Likewise.
43107         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43108         * tests/test-lchown.h (nap): Likewise.
43109         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43110         * tests/test-stat-time.c (nap): Likewise.
43111         * tests/test-utimens-common.h (nap): Update comments.
43112
43113         usleep: new module
43114         * modules/usleep: New file.
43115         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43116         * lib/usleep.c (usleep): Likewise.
43117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43118         * modules/unistd (Makefile.am): Substitute witnesses.
43119         * lib/unistd.in.h (usleep): Add declaration.
43120         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43121         * MODULES.html.sh (Date and time): Likewise.
43122         * modules/usleep-tests (Depends-on): New test.
43123         * tests/test-usleep.c: New file.
43124
43125         chown: work around OpenBSD bug
43126         * lib/chown.c (rpl_chown): Work around the bug.
43127         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43128         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43129         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43130         * modules/chown (Depends-on): Add stdbool.
43131         * modules/lchown (Depends-on): Likewise.
43132         * doc/posix-functions/chown.texi (chown): Document the bug.
43133         * doc/posix-functions/lchown.texi (lchown): Likewise.
43134         * tests/test-lchown.h (test_chown): Relax test.
43135
43136         mkstemp: avoid conflict with C++ keyword template
43137         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43138         * lib/mkostemp.c (mkostemp): Likewise.
43139         * lib/mkostemps.c (mkostemps): Likewise.
43140         * lib/mkstemp.c (mkstemp): Likewise.
43141         * lib/mkstemps.c (mkstemps): Likewise.
43142
43143         xalloc-die-tests: optimize
43144         * tests/test-xalloc-die.sh: Reduce number of processes.
43145
43146 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43147
43148         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43149         patch from ludo@gnu.org (Ludovic Courtès).
43150
43151 2009-11-17  Jim Meyering  <meyering@redhat.com>
43152
43153         version-etc: use proper license string
43154         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43155         * modules/version-etc-fsf: Likewise.
43156
43157 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43158
43159         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43160         printed to stdout.  Deal with EOL differences.
43161
43162 2009-11-17  Eric Blake  <ebb9@byu.net>
43163
43164         unsetenv: work around Solaris bug
43165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43166         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43167         Reported by Jim Meyering.
43168
43169         vasnprintf: avoid compiler warnings
43170         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43171         variables.
43172         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43173
43174 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43175
43176         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43177         settings since xalloc-die is no longer the self test,
43178         xalloc-die.sh is.
43179
43180 2009-11-17  Jim Meyering  <meyering@redhat.com>
43181
43182         test-xalloc-die.sh: make the code agree with the commit log
43183         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43184         at the end, just in case you happen to have a test-xalloc-die
43185         program in some other PATH directory.
43186
43187         test-xalloc-die.sh: fix a portability bug
43188         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43189         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43190         Otherwise, argv[0] (as often seen in diagnostics) would be too
43191         system-dependent, sometimes with, and sometimes without the leading "./".
43192
43193         version-etc-fsf: relax license to LGPLv3+
43194         * modules/version-etc-fsf (License): Relax license.
43195
43196 2009-11-16  Eric Blake  <ebb9@byu.net>
43197
43198         xalloc-die-tests: avoid printing null pointer
43199         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43200         shell script.
43201         * tests/test-xalloc-die.c (program_name): Declare.
43202         * tests/test-xalloc-die.sh (tmpfiles): New file.
43203
43204         setenv, unsetenv: work around various bugs
43205         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43206         (setenv) [HAVE_SETENV]: Work around bugs.
43207         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43209         for bugs.
43210         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43211         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43213         * modules/stdlib (Makefile.am): Update substitutions.
43214         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43215         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43216         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43217         * modules/setenv-tests: New test.
43218         * modules/unsetenv-tests: Likewise.
43219         * tests/test-setenv.c: New file.
43220         * tests/test-unsetenv.c: Likewise.
43221
43222 2009-11-16  Jim Meyering  <meyering@redhat.com>
43223
43224         version-etc: relax license to LGPLv3+
43225         * modules/version-etc (License): Relax license.
43226
43227         better AC_REQUIRE expanded-before-required-warning avoidance
43228         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43229         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43230         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43231         which is no longer needed.
43232
43233 2009-11-16  Eric Blake  <ebb9@byu.net>
43234
43235         test-freading: clean up temporary file
43236         * tests/test-freading.c (main): Remove file on success, and use
43237         ASSERT more liberally.
43238         Reported by Jim Meyering.
43239
43240 2009-11-16  Jim Meyering  <meyering@redhat.com>
43241
43242         avoid new AC_REQUIRE expanded-before-required warnings
43243         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43244         merely using it.
43245         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43246         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43247
43248 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43249
43250         * tests/test-xalloc-die.c: New file.
43251         * modules/xalloc-die-tests: New file.
43252         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43253         XFAIL_TESTS so it can be appended by modules.
43254
43255 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43256
43257         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43258         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43259
43260 2009-11-14  Eric Blake  <ebb9@byu.net>
43261
43262         fnmatch: avoid compiler warning
43263         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43264         to silence compiler warning about mismatch signedness in ?:.
43265         Reported by Robert Millan.
43266
43267         intprops: add double-inclusion guard
43268         * lib/intprops.h: Allow idempotent includes.
43269         Suggested by Bruce Korb.
43270
43271         openat: detect Solaris fchownat bug
43272         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43273         penalizing glibc chownat when only lchownat is broken.
43274         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43275         trailing slash bugs.
43276         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43277         * modules/openat-tests (Files): Include more files.
43278         (Depends-on): Add mgetgroups, sleep, stat-time.
43279         (configure.ac): Add additional checks.
43280         (Makefile.am): Build new test.
43281         * tests/test-fchownat.c: New file.
43282
43283         lchown: detect Solaris and FreeBSD bug
43284         * lib/lchown.c (rpl_lchown): Work around bug.
43285         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43287         * modules/unistd (Makefile.am): Populate it.
43288         * lib/unistd.in.h (lchown): Update declaration.
43289         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43290         * modules/lchown-tests: New file.
43291         * tests/test-lchown.h (test_lchown): Likewise.
43292         * tests/test-lchown.c (main): Likewise.
43293
43294         chown: detect Solaris and FreeBSD bug
43295         * lib/chown.c (rpl_chown): Work around bug.
43296         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43297         (gl_PREREQ_CHOWN): Delete.
43298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43299         * modules/unistd (Makefile.am): Populate it.
43300         * lib/unistd.in.h (chown): Update declaration.
43301         * lib/lchown.c (chown): Update client.
43302         * modules/lchown (Depends-on): Add lstat.
43303         * doc/posix-functions/chown.texi (chown): Document the bug.
43304         * doc/posix-functions/getgroups.texi (getgroups): Document
43305         getgroups pitfall.
43306         * modules/chown-tests: New file.
43307         * tests/test-chown.h (test_chown): Likewise.
43308         * tests/test-chown.c (main): Likewise.
43309
43310 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43311
43312         gnulib-tool: correctly detect absence of m4 directories
43313         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43314
43315 2009-11-14  Jim Meyering  <meyering@redhat.com>
43316
43317         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43318         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43319
43320 2009-11-14  John W. Eaton  <jwe@gnu.org>
43321
43322         strftime.h: wrap function declaration in extern "C" block
43323         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43324
43325 2009-11-13  Eric Blake  <ebb9@byu.net>
43326
43327         getgroups: avoid compiler warning
43328         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43329
43330         getgroups: work around FreeBSD bug
43331         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43332         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43333         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43334         * tests/test-getgroups.c (main): Fix buffer overrun.
43335
43336         getgroups: avoid compilation failure
43337         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43338         * modules/getgroups (Depends-on): Add stdint.
43339
43340 2009-11-13  Jim Meyering  <meyering@redhat.com>
43341
43342         test-getgroups: avoid compilation failure
43343         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43344
43345 2009-11-13  Eric Blake  <ebb9@byu.net>
43346
43347         mgetgroups: new module, taken from coreutils
43348         * modules/mgetgroups: New file.
43349         * lib/mgetgroups.h: Likewise.
43350         * lib/mgetgroups.c (mgetgroups): Likewise.
43351         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43352         * MODULES.html.sh (Users and groups): Mention it.
43353
43354         getgroups: don't expose GETGROUPS_T to user
43355         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43356         an element at a time if GETGROUPS_T is wrong size.
43357         * lib/getugroups.h (getugroups): Change signature.
43358         * lib/unistd.in.h (getgroups): Likewise.
43359         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43360         signature needs fixing.
43361         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43362         AC_TYPE_GETGROUPS.
43363         * modules/group-member (Depends-on): Add getgroups.
43364         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43365         (group_member): Rely on getgroups replacement.
43366         * lib/getugroups.c (getugroups): Use gid_t.
43367         * tests/test-getgroups.c (main): Likewise.
43368         * NEWS: Mention the signature change.
43369         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43370         problem with signature.
43371         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43372         GETGROUPS_T is still useful for setgroups.
43373
43374         getgroups, getugroups: provide stubs for mingw
43375         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43376         * lib/getugroups.c (getugroups): Likewise.
43377         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43378         function.  Modernize replacement scheme.
43379         (gl_PREREQ_GETGROUPS): Delete.
43380         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43381         * modules/getgroups (configure.ac): Declare witness.
43382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43383         * modules/unistd (Depends-on): Substitute witness.
43384         * lib/unistd.in.h (getgroups): Declare replacement.
43385
43386         getgroups: avoid calling exit
43387         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43388         drop xalloc.
43389         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43390         dependencies.
43391         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43392         exiting, in the rare case of malloc failure.
43393
43394         getgroups: fix logic error
43395         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43396         has more than 20 groups.
43397         * modules/getgroups-tests: New test.
43398         * tests/test-getgroups.c: New file.
43399
43400 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43401
43402         * tests/test-base64.c: Improve.
43403
43404 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43405
43406         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43407         Blake <ebb9@byu.net>.
43408
43409 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43410
43411         * tests/test-xvasprintf.c: Add %s%s related checks.
43412
43413 2009-11-12  Eric Blake  <ebb9@byu.net>
43414
43415         version-etc: match standards.texi style
43416         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43417         and use <> only for URLs.
43418
43419 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43420
43421         fts: do not fail on a submount during traversal
43422         * lib/fts.c (fts_build): Read the stat info again after opening
43423         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43424         Original report at http://bugzilla.redhat.com/501848.
43425
43426 2009-11-12  Jim Meyering  <meyering@redhat.com>
43427
43428         bootstrap: sync from coreutils
43429         * build-aux/bootstrap (bootstrap_epilogue): New function.
43430         Use git_modules_config in one more place.  This make bootstrap's
43431         --gnulib-srcdir option more useful for testing.
43432
43433         bootstrap: generalize autoheader check
43434         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43435         AC_CONFIG_HEADERS.
43436
43437 2009-11-11  Eric Blake  <ebb9@byu.net>
43438
43439         mkfifoat: use new modules for Solaris and BSD bugs
43440         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43441         * lib/mkfifoat.c (mknodat): Split...
43442         * lib/mknodat.c (mknodat): ...into new file.
43443         * modules/mkfifoat (Files): Ship new file.
43444         (Depends-on): Add mkfifo, mknod.
43445         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43446         (Depends-on): Add symlink.
43447         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43448         redundant with test_mkfifo.h.
43449         (do_mkfifoat, do_mknodat): New helpers.
43450
43451         mknod: new module
43452         * modules/mknod: New file.
43453         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43454         * lib/mknod.c (mknod): Likewise.
43455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43456         defaults.
43457         * modules/sys_stat (Makefile.am): Substitute them.
43458         * lib/sys_stat.in.h (mknod): Declare replacement.
43459         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43460         Document it.
43461         * doc/posix-functions/mknod.texi (mknod): Likewise.
43462         * modules/mknod-tests: New test.
43463         * tests/test-mknod.c: Likewise.
43464
43465         mkfifo: new module
43466         * modules/mkfifo: New file.
43467         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43468         * lib/mkfifo.c (mkfifo): Likewise.
43469         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43470         defaults.
43471         * modules/sys_stat (Makefile.am): Substitute them.
43472         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43473         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43474         Document it.
43475         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43476         * modules/mkfifo-tests: New test.
43477         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43478         from test-mkfifoat.c.
43479         * tests/test-mkfifo.c: New file.
43480
43481         readlink: detect FreeBSD bug
43482         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43483         slash on symlink.
43484         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43485         * tests/test-readlink.h (test_readlink): Enhance test.
43486
43487         symlink: detect FreeBSD bug
43488         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43489         slash on symlink.
43490         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43491         * tests/test-symlink.h (test_symlink): Enhance test.
43492
43493 2009-11-10  Eric Blake  <ebb9@byu.net>
43494
43495         link: detect FreeBSD bug
43496         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43497         symlink.
43498         * doc/posix-functions/link.texi (link): Document the bug.
43499         * tests/test-link.h (test_link): Enhance test.
43500         * tests/test-linkat.c (main): Update caller.
43501
43502         unlink, remove: detect FreeBSD bug
43503         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43504         slash on symlink.
43505         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43506         * doc/posix-functions/remove.texi (remove): Likewise.
43507         * tests/test-unlink.h (test_unlink): Enhance test.
43508         * tests/test-remove.c (main): Likewise.
43509
43510 2009-11-09  Eric Blake  <ebb9@byu.net>
43511
43512         rename: detect FreeBSD bug
43513         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43514         slash on symlink.
43515         * modules/renameat-tests (Depends-on): Add filenamecat.
43516         * tests/test-rename.h (test_rename): Allow one more errno.
43517         * tests/test-renameat.c (main): Likewise.
43518         * doc/posix-functions/rename.texi (rename): Document the bug.
43519
43520         open: detect FreeBSD bug
43521         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43522         symlink.
43523         * doc/posix-functions/open.texi (open): Document the bug.
43524         * doc/posix-functions/utimes.texi (utimes): Likewise.
43525         * tests/test-open.h (test_open): Add parameters, and test symlink
43526         handling.
43527         * tests/test-open.c (main): Adjust caller.
43528         * tests/test-fcntl-safer.c (main): Likewise.
43529         * modules/open-tests (Depends-on): Add stdbool, symlink.
43530         * modules/fcntl-safer-tests (Depends-on): Likewise.
43531         * tests/test-openat.c (main): Add test-open tests.
43532
43533         stat: detect FreeBSD bug
43534         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43535         symlink.
43536         * doc/posix-functions/stat.texi (stat): Document the bug.
43537         * tests/test-stat.h (test_stat_func): Add argument.
43538         * tests/test-stat.c (main): Adjust caller.
43539         * tests/test-fstatat.c (main): Likewise.
43540         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43541         Reported by Jim Meyering.
43542
43543 2009-11-09  James Youngman  <jay@gnu.org>
43544
43545         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43546         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43547
43548 2009-11-08  Jim Meyering  <meyering@redhat.com>
43549
43550         utimens: remove invalid futimesat call
43551         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43552         It used the file descriptor of the target file as the DIR_FD
43553         parameter and NULL as the file name.  That caused failure with
43554         errno == EFAULT on FreeBSD-8.0-rc2
43555
43556 2009-11-07  Eric Blake  <ebb9@byu.net>
43557
43558         fflush, freadseek: use fseeko, not fseek
43559         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43560         (clear_ungetc_buffer): Avoid potential problems on large files.
43561         * lib/freadseek.c (freadseek): Likewise.
43562         * modules/freadseek (Depends-on): Add fseeko.
43563         * modules/fseek (configure.ac): Set a witness.
43564         * tests/test-fflush.c (main): Use fseeko.
43565         * tests/test-fpurge.c (fseek): Disable link warning.
43566         * tests/test-freadable.c (fseek): Likewise.
43567         * tests/test-freading.c (fseek): Likewise.
43568         * tests/test-fseeko.c (fseek): Likewise.
43569         * tests/test-ftell.c (fseek): Likewise.
43570         * tests/test-ftello.c (fseek): Likewise.
43571         * tests/test-fwritable.c (fseek): Likewise.
43572         * tests/test-fwriting.c (fseek): Likewise.
43573
43574 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43575
43576         * modules/memchr (Depends-on): Drop getpagesize dependency.
43577
43578 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43579
43580         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43581         Reported by Ludovic Courtès.
43582         * build-aux/pmccabe2html: Improve example usage.
43583         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43584
43585 2009-11-06  Jim Meyering  <meyering@redhat.com>
43586
43587         do-release-commit-and-tag: New module.
43588         Automate the release-commit and tag process.
43589         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43590         * modules/do-release-commit-and-tag: New file.
43591         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43592
43593 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43594
43595         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43596         because test-select.c uses inet_pton.
43597
43598 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43599
43600         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43601         GETADDRINFO_LIB.  Bump serial number.
43602         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43603         Suggested by Eric Blake <ebb9@byu.net>.
43604
43605 2009-11-05  Eric Blake  <ebb9@byu.net>
43606
43607         strtod: detect darwin bug
43608         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43609         Reported by Leo Davis.
43610
43611         freopen-safer: new module
43612         * modules/freopen-safer: New module.
43613         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43614         * lib/freopen-safer.c (freopen_safer): New file.
43615         * lib/stdio-safer.h (freopen_safer): New declaration.
43616         * lib/stdio--.h (freopen): New override.
43617         * MODULES.html.sh (File stream based Input/Output): Mention it.
43618         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43619         freopen-safer module.
43620         * doc/posix-functions/stderr.texi (stderr): Likewise.
43621         * doc/posix-functions/stdin.texi (stdin): Likewise.
43622         * doc/posix-functions/stdout.texi (stdout): Likewise.
43623         * modules/freopen-safer-tests: New test.
43624         * tests/test-reopen-safer.c: New file.
43625
43626 2009-11-05  Jim Meyering  <meyering@redhat.com>
43627
43628         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43629         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43630
43631 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43632
43633         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43634
43635 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43636
43637         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43638
43639 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43640
43641         Fix link error.
43642         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43643         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43644
43645 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43646
43647         * tests/test-func.c: Also test value of __func__.
43648
43649 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43650
43651         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43652         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43653
43654 2009-11-05  Bruno Haible  <bruno@clisp.org>
43655
43656         Fix link error.
43657         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43658         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43659         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43660
43661 2009-11-05  Bruno Haible  <bruno@clisp.org>
43662
43663         Tests for module 'inet_pton'.
43664         * modules/inet_pton-tests: New file.
43665         * tests/test-inet_pton.c: New file.
43666
43667 2009-11-05  Bruno Haible  <bruno@clisp.org>
43668
43669         Tests for module 'inet_ntop'.
43670         * modules/inet_ntop-tests: New file.
43671         * tests/test-inet_ntop.c: New file.
43672
43673 2009-11-04  Eric Blake  <ebb9@byu.net>
43674
43675         stdlib-safer: wrap all mkstemp variants
43676         * modules/mkostemp (configure.ac): Set witness.
43677         * modules/mkostemps (configure.ac): Likewise.
43678         * modules/mkstemps (configure.ac): Likewise.
43679         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43680         (mkstemps_safer): Wrap more functions.
43681         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43682         wrapping.
43683         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43684         (mkstemps_safer): Implement the wrappers.
43685
43686         mkstemps, mkostemps: new modules
43687         * modules/mkostemps: New module.
43688         * modules/mkstemps: Likewise.
43689         * lib/mkostemps.c (mkostemps): New file.
43690         * lib/mkstemps.c (mkstemps): Likewise.
43691         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43692         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43694         * modules/stdlib (Makefile.am): Substitute them.
43695         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43696         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43697         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43698         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43699         * MODULES.html.sh (File system functions): Mention them.
43700
43701         tempname: resync from glibc
43702         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43703         same values for __GT_FILE as glibc.  Abort even when assertions
43704         are disabled.
43705         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43706         match its value otherwise.  Allow idempotent inclusion.
43707         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43708         * lib/mkostemp.c (mkostemp): Likewise.
43709         * lib/mkstemp.c (mkstemp): Likewise.
43710         * lib/tmpfile.c (tmpfile): Likewise.
43711         * NEWS: Document this.
43712
43713         utimens: fix use of futimens on older Linux
43714         * lib/utimens.c (fdutimens): Use updated, rather than original,
43715         timespec to avoid bug in older Linux kernel.
43716         Reported by Simon Josefsson.
43717
43718 2009-11-04  Bruno Haible  <bruno@clisp.org>
43719
43720         Make num_processors more flexible and consistent.
43721         * lib/nproc.h (enum nproc_query): New type.
43722         (num_processors): Add a 'query' argument.
43723         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43724         (num_processors): Add a 'query' argument. Test the value of the
43725         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43726         mingw, count the number of CPUs available for the current process.
43727         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43728         Check for sched_getaffinity and sched_getaffinity_np.
43729         * modules/nproc (Depends-on): Add c-ctype, extensions.
43730         * NEWS: Mention the change.
43731
43732 2009-11-03  Bruno Haible  <bruno@clisp.org>
43733
43734         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43735
43736 2009-11-03  Jim Meyering  <meyering@redhat.com>
43737
43738         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43739         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43740         if it is defined.
43741
43742 2009-11-02  Eric Blake  <ebb9@byu.net>
43743
43744         mktime, timegm: share common declaration
43745         * lib/mktime-internal.h: New file.
43746         * lib/mktime.c: Use it rather than open-coding a declaration.
43747         * lib/timegm.c: Likewise.
43748         * modules/mktime (Files): Ship it.
43749         * modules/timegm (Files): Likewise.
43750         Suggested by Bruno Haible.
43751
43752         test-update-copyright: update test to match script changes
43753         * tests/test-update-copyright.sh: Avoid hard-coding perl
43754         location.  Don't update *.bak created by earlier runs.
43755
43756 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43757             Simon Josefsson  <simon@josefsson.org>
43758             Bruno Haible  <bruno@clisp.org>
43759
43760         Fix link error on Solaris 8.
43761         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43762         also in libnsl. Define also INET_PTON_LIB.
43763         * modules/inet_pton (Link): New section.
43764
43765 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43766             Bruno Haible  <bruno@clisp.org>
43767
43768         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43769         * modules/inet_ntop (Link): New section.
43770         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43771
43772 2009-11-02  Eric Blake  <ebb9@byu.net>
43773
43774         maint: avoid compiler warnings in m4 macros
43775         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43776         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43777
43778 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43779
43780         * m4/pmccabe2html.m4: Remove file.
43781         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43782         function.  Change maintainer.
43783         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43784         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43785         Courtès).
43786
43787 2009-10-31  Eric Blake  <ebb9@byu.net>
43788
43789         fseeko: fix m4 regression
43790         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43791         regression from 2009-10-27.
43792         Reported by Ralf Wildenhues.
43793
43794 2009-10-31  Jim Meyering  <meyering@redhat.com>
43795
43796         inttostr: aesthetics and improved (compile-time) safety
43797         Define inttype_is_signed rather than inttype_is_unsigned,
43798         since the sole use is via "#if inttype_is_signed".
43799         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43800         inttype_is_unsigned.
43801         * lib/offtostr.c (inttype_is_signed): Likewise.
43802         * lib/uinttostr.c (inttype_is_signed): Likewise.
43803         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43804         * lib/inttostr.c (inttostr): Use verify to cross-check the
43805         inttype_is_signed value and the signedness of the actual type.
43806         * modules/inttostr (Depends-on): Add verify.
43807
43808 2009-10-30  Eric Blake  <ebb9@byu.net>
43809
43810         build: avoid compiler warnings
43811         * lib/fchmodat.c (lchmod): Mark unused variables.
43812         * lib/getopt.c (_getopt_initialize): Likewise.
43813         * lib/mktime.c (__mktime_internal): Provide prototype.
43814         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43815         older gcc that do not understand #pragma GCC diagnostic.
43816         * lib/uinttostr.c (inttype_is_unsigned): Define.
43817         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43818
43819 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43820
43821         stat: fix compilation on AIX
43822         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43823         only see struct stat64.
43824
43825 2009-10-30  Eric Blake  <ebb9@byu.net>
43826
43827         exclude: make more robust
43828         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43829         rather than masking a coding bug.
43830         Suggested by Bruno Haible.
43831
43832 2009-10-30  Jim Meyering  <meyering@redhat.com>
43833
43834         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43835         Rather than putting #!/usr/bin/perl on the first line,
43836         start with a variant of what's recommended by "man perlrun" that
43837         invokes the first "perl" program from your shell's search path.
43838         * build-aux/gitlog-to-changelog: Replace #!... as above.
43839         Add a "Local Variables" perl mode setting.
43840         Prompted by a patch from Ludovic Courtès.
43841         Improved by Eric Blake.
43842         * build-aux/useless-if-before-free: Likewise.
43843         * build-aux/announce-gen: Likewise.
43844         * build-aux/update-copyright: Likewise.
43845
43846 2009-10-29  Eric Blake  <ebb9@byu.net>
43847
43848         filenamecat-lgpl: adjust clients
43849         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43850         filenamecat.
43851         * modules/renameat (Depends-on): Likewise.
43852
43853         filenamecat: split into filenamecat-lgpl
43854         * modules/filenamecat-lgpl: New module.
43855         * modules/filenamecat (Files): Move library-safe files into
43856         filenamecat-lgpl.
43857         (Depends-on): Add filenamecat-lgpl.
43858         (configure.ac): Declare witness.
43859         * lib/filenamecat.h (file_name_concat): Only declare when using
43860         GPL module.
43861         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43862         Move...
43863         * lib/filenamecat-lgpl.c: ...into new file.
43864         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43865         (gl_FILE_NAME_CONCAT): Use it.
43866         * MODULES.html.sh (File system functions): Mention new module.
43867
43868         argp: avoid memory leak
43869         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43870         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43871         base_name, since the latter malloc()s and can call exit().
43872         Leak introduced 2006-07-03.
43873
43874         dirname-lgpl: adjust clients that don't need full dirname
43875         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43876         * modules/filenamecat (Depends-on): Likewise.
43877         * modules/linkat (Depends-on): Likewise.
43878         * modules/mkancesdirs (Depends-on): Likewise.
43879         * modules/mkdir (Depends-on): Likewise.
43880         * modules/openat (Depends-on): Likewise.
43881         * modules/savewd (Depends-on): Likewise.
43882         * modules/rename (Depends-on): Likewise.
43883         (License): Relax license.
43884         * modules/mkdir-tests (Depends-on): Drop progname.
43885         (Makefile.am): Delete unneeded LDADD.
43886         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43887
43888         dirname: split into dirname-lgpl
43889         * modules/dirname-lgpl: New module.
43890         * modules/dirname (Files): Move library-safe files into
43891         dirname-lgpl.
43892         (Depends-on): Add dirname-lgpl.
43893         (configure.ac): Declare witness.
43894         * modules/double-slash-root (License): Relax license.
43895         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43896         module.
43897         * lib/dirname.c (dir_len, mdir_name): Move...
43898         * lib/dirname-lgpl.c: ...into new file.
43899         * lib/basename.c (last_component, base_len): Move...
43900         * lib/basename-lgpl.c: ...into new file.
43901         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43902         (gl_DIRNAME): Use it.
43903         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43904         Mention new module.
43905         * modules/dirname-tests (Depends-on): Add progname.
43906         * tests/test-dirname.c (program_name): Delete.
43907
43908         mkdir: make safe for libraries
43909         * modules/mkdir (Depends-on): Drop xalloc.
43910         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43911         exit.
43912
43913         tests: avoid some compiler warnings
43914         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43915         literals.
43916         * tests/test-memchr.c (main): Avoid type mismatch.
43917         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43918         * tests/test-base64.c (main): Likewise.
43919         * tests/test-getdelim.c (main): Likewise.
43920         * tests/test-gethostname.c (main): Likewise.
43921         * tests/test-getline.c (main): Likewise.
43922         * tests/test-netinet_in.c (main): Likewise.
43923         * tests/test-select.c (open_server_socket, main): Likewise.
43924         * tests/test-select-stdin.c (main): Likewise.
43925         * tests/test-sockets.c (main): Likewise.
43926         * tests/test-strsignal.c (main): Likewise.
43927         * tests/test-sys_select.c (main): Likewise.
43928         * tests/test-sys_socket.c (main): Likewise.
43929         * tests/test-u64.c (main): Likewise.
43930         * tests/test-xfprintf-posix.c (main): Likewise.
43931         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43932
43933         sockets: avoid compiler warning
43934         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43935
43936         maint: detect usage(1) and other suspicious exits
43937         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43938
43939 2009-10-29  Jim Meyering  <meyering@redhat.com>
43940
43941         timespec: long-to-int truncation could make timespec_cmp malfunction
43942         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43943         a multiple of 2^32 nanoseconds as no difference.
43944
43945 2009-10-28  Jim Meyering  <meyering@redhat.com>
43946
43947         fprintftime: wrap macro code argument in "do {...} while(0)"
43948         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43949         cpy macro must be a statement that can be followed by a semicolon.
43950         Now that the else clause contains a comment and is hence longer
43951         than one line, I require curly braces.  That in turn requires
43952         that we wrap this code block in the standard do...while(0).
43953
43954         fprintftime: remove stray semicolon from previous change
43955         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43956
43957         fprintftime: avoid a warning about ignored fwrite return value
43958         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43959         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43960         that is unsafe.
43961         * modules/fprintftime (Depends-on): Add ignore-value.
43962
43963         exclude: avoid an unwarranted warning
43964         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43965
43966 2009-10-27  Eric Blake  <ebb9@byu.net>
43967
43968         fseek: avoid compilation failure when fflush is replaced
43969         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43970         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43971         module is in use.
43972         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43973         module is not in use; since REPLACE_FSEEK worked otherwise.
43974         (GNULIB_FTELLO): Likewise for ftell.
43975         Reported by Ian Beckwith and others.
43976
43977 2009-10-27  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43980         Reported by Jim Meyering.
43981
43982 2009-10-27  Jim Meyering  <jim@meyering.net>
43983             Bruno Haible  <bruno@clisp.org>
43984
43985         Avoid warning despite dropping the return value of fwrite.
43986         * lib/unicodeio.c: Include ignore-value.h.
43987         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43988         * modules/unicodeio (Depends-on): Add ignore-value.
43989
43990 2009-10-26  Eric Blake  <ebb9@byu.net>
43991
43992         areadlinkat: fix fallback path
43993         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43994         pointer and zero.
43995
43996 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43997
43998         Use a better IO block size for modern systems
43999         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44000         * lib/md2.c: Likewise.
44001         * lib/md4.c: Likewise.
44002         * lib/md5.c: Likewise.
44003         * lib/sha1.c: Likewise.
44004         * lib/sha256.c: Likewise.
44005         * lib/sha512.c: Likewise.
44006
44007 2009-10-22  Eric Blake  <ebb9@byu.net>
44008
44009         tests: avoid several compiler warnings
44010         * tests/test-getcwd.c (main): Avoid buffer underflow.
44011         * tests/test-getdate.c (main): String literals are not safe with
44012         putenv, so use setenv.  Declare unused argument.
44013         * modules/getdate-tests (Depends-on): Add setenv.
44014         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44015         problems with string literals in char *.
44016         * tests/test-hash.c (main): Avoid shadowing declaration.
44017         (insert_new): Treat string literals as char const *.
44018         * tests/test-getopt.h (test_getopt): Likewise.
44019         (getopt_loop): Alter types to minimize casting elsewhere.
44020         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44021         (test_getopt_long_posix): Likewise.
44022         (do_getopt_long): Add wrapper to minimize casting.
44023         * tests/test-atexit.c (clear_temp_file): Use void.
44024         * tests/test-areadlink-with-size.c (main): Declare unused
44025         arguments.
44026         * tests/test-areadlink.c (main): Likewise.
44027         * tests/test-areadlinkat-with-size.c (main): Likewise.
44028         * tests/test-areadlinkat.c (main): Likewise.
44029         * tests/test-canonicalize-lgpl.c (main): Likewise.
44030         * tests/test-canonicalize.c (main): Likewise.
44031         * tests/test-dirent-safer.c (main): Likewise.
44032         * tests/test-dirname.c (main): Likewise.
44033         * tests/test-dup2.c (main): Likewise.
44034         * tests/test-fchdir.c (main): Likewise.
44035         * tests/test-fcntl-h.c (main): Likewise.
44036         * tests/test-fcntl-safer.c (main): Likewise.
44037         * tests/test-fdopendir.c (main): Likewise.
44038         * tests/test-fdutimensat.c (main): Likewise.
44039         * tests/test-fflush.c (main): Likewise.
44040         * tests/test-filenamecat.c (main): Likewise.
44041         * tests/test-filevercmp.c (main): Likewise.
44042         * tests/test-fopen-safer.c (main): Likewise.
44043         * tests/test-fopen.c (main): Likewise.
44044         * tests/test-fpending.c (main): Likewise.
44045         * tests/test-fpurge.c (main): Likewise.
44046         * tests/test-freading.c (main): Likewise.
44047         * tests/test-fstatat.c (main): Likewise.
44048         * tests/test-fsync.c (main): Likewise.
44049         * tests/test-futimens.c (main): Likewise.
44050         * tests/test-getndelim2.c (main): Likewise.
44051         * tests/test-gettimeofday.c (main): Likewise.
44052         * tests/test-getopt.c (main): Likewise.
44053         * tests/test-i-ring.c (main): Likewise.
44054         * tests/test-inttypes.c (main): Likewise.
44055         * tests/test-link.c (main): Likewise.
44056         * tests/test-lstat.c (main): Likewise.
44057         * tests/test-math.c (main): Likewise.
44058         * tests/test-md5.c (main): Likewise.
44059         * tests/test-memchr2.c (main): Likewise.
44060         * tests/test-memrchr.c (main): Likewise.
44061         * tests/test-mkdir.c (main): Likewise.
44062         * tests/test-mkdirat.c (main): Likewise.
44063         * tests/test-mkfifoat.c (main): Likewise.
44064         * tests/test-open.c (main): Likewise.
44065         * tests/test-openat-safer.c (main): Likewise.
44066         * tests/test-openat.c (main): Likewise.
44067         * tests/test-quotearg.c (main): Likewise.
44068         * tests/test-rawmemchr.c (main): Likewise.
44069         * tests/test-readlink.c (main): Likewise.
44070         * tests/test-remove.c (main): Likewise.
44071         * tests/test-rename.c (main): Likewise.
44072         * tests/test-renameat.c (main): Likewise.
44073         * tests/test-rmdir.c (main): Likewise.
44074         * tests/test-sha1.c (main): Likewise.
44075         * tests/test-signal.c (main): Likewise.
44076         * tests/test-sigaction.c (main): Likewise.
44077         * tests/test-stat.c (main): Likewise.
44078         * tests/test-stat-time.c (main): Likewise.
44079         * tests/test-stddef.c (main): Likewise.
44080         * tests/test-stdint.c (main): Likewise.
44081         * tests/test-stdio.c (main): Likewise.
44082         * tests/test-stdlib.c (main): Likewise.
44083         * tests/test-strchrnul.c (main): Likewise.
44084         * tests/test-strerror.c (main): Likewise.
44085         * tests/test-string.c (main): Likewise.
44086         * tests/test-strtod.c (main): Likewise.
44087         * tests/test-strverscmp.c (main): Likewise.
44088         * tests/test-symlink.c (main): Likewise.
44089         * tests/test-symlinkat.c (main): Likewise.
44090         * tests/test-sys_stat.c (main): Likewise.
44091         * tests/test-sys_time.c (main): Likewise.
44092         * tests/test-time.c (main): Likewise.
44093         * tests/test-unistd.c (main): Likewise.
44094         * tests/test-unlink.c (main): Likewise.
44095         * tests/test-unlinkat.c (main): Likewise.
44096         * tests/test-utimens.c (main): Likewise.
44097         * tests/test-utimensat.c (main): Likewise.
44098         * tests/test-version-etc.c (main): Likewise.
44099         * tests/test-wchar.c (main): Likewise.
44100         * tests/test-wctype.c (main): Likewise.
44101         * tests/test-xprintf-posix.c (main): Likewise.
44102         * tests/test-posixtm.c (main): Likewise.
44103         (STREQ): Delete unused macro.
44104         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44105         shadowed variables.
44106         * tests/test-memchr.c (main): Likewise.
44107
44108 2009-10-21  Eric Blake  <ebb9@byu.net>
44109
44110         areadlinkat: avoid failure on older glibc
44111         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44112         rather than mis-comparing 0 against FUNC_RESULT of char*.
44113
44114 2009-10-21  Bruno Haible  <bruno@clisp.org>
44115
44116         * modules/stpncpy (License): Relicense under LGPLv2+.
44117         Reported by David Lutterkort <lutter@redhat.com>.
44118
44119 2009-10-20  Eric Blake  <ebb9@byu.net>
44120
44121         utimensat: work around Solaris 9 bug
44122         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44123         has trailing slash bugs.
44124         * tests/test-lutimens.h (test_lutimens): Enhance test.
44125         * tests/test-utimens.h (test_utimens): Likewise.
44126         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44127         * doc/posix-functions/utimes.texi (utimes): Likewise.
44128         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44129         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44130         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44131         * doc/posix-functions/futimens.texi (futimens): Likewise.
44132
44133         fdutimensat: new module
44134         * modules/fdutimensat: New file.
44135         * lib/fdutimensat.c (fdutimensat): Likewise.
44136         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44137         * MODULES.html.sh (File system functions): Mention module.
44138         * modules/fdutimensat-tests: New test.
44139         * tests/test-fdutimensat.c: Likewise.
44140
44141         doc: regenerate INSTALL
44142         * doc/INSTALL: Reflect recent autoconf update.
44143         * doc/INSTALL.ISO: Likewise.
44144         * doc/INSTALL.UTF-8: Likewise.
44145
44146 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44147
44148         acl: warn if ACL support is not detected
44149         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44150
44151 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44152
44153         * lib/nproc.h: Add extern "C" block for C++.
44154
44155 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44156             Bruno Haible  <bruno@clisp.org>
44157
44158         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44159         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44160         * doc/posix-functions/isalpha.texi: Likewise.
44161         * doc/posix-functions/isblank.texi: Likewise.
44162         * doc/posix-functions/iscntrl.texi: Likewise.
44163         * doc/posix-functions/isdigit.texi: Likewise.
44164         * doc/posix-functions/isgraph.texi: Likewise.
44165         * doc/posix-functions/islower.texi: Likewise.
44166         * doc/posix-functions/isprint.texi: Likewise.
44167         * doc/posix-functions/ispunct.texi: Likewise.
44168         * doc/posix-functions/isspace.texi: Likewise.
44169         * doc/posix-functions/isupper.texi: Likewise.
44170         * doc/posix-functions/isxdigit.texi: Likewise.
44171
44172 2009-10-18  Bruno Haible  <bruno@clisp.org>
44173
44174         Tests for module 'isblank'.
44175         * modules/isblank-tests: New file.
44176         * tests/test-isblank.c: New file.
44177
44178         New module 'isblank'.
44179         * lib/isblank.c: New file.
44180         * m4/isblank.m4: New file.
44181         * modules/isblank: New file.
44182         * doc/posix-functions/isblank.texi: Mention the new module.
44183
44184 2009-10-18  Bruno Haible  <bruno@clisp.org>
44185
44186         New module 'ctype'.
44187         * lib/ctype.in.h: New file.
44188         * m4/ctype.m4: New file.
44189         * modules/ctype: New file.
44190         * doc/posix-headers/ctype.texi: Mention the new module.
44191
44192 2009-10-18  Jim Meyering  <meyering@redhat.com>
44193
44194         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44195         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44196         right after its initialization, rather than farther down.
44197         Keeping these in close proximity makes it easier to ensure
44198         that each such variable is initialized.  E.g.,
44199
44200             LIB_CLOCK_GETTIME=
44201             AC_SUBST([LIB_CLOCK_GETTIME])
44202
44203         This change also increments these serial numbers.
44204         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44205         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44207
44208 2009-10-18  Bruno Haible  <bruno@clisp.org>
44209
44210         Don't let environment variables perturb build.
44211         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44212         (gl_PREREQ_GETHRXTIME): ... not here.
44213
44214 2009-10-18  Bruno Haible  <bruno@clisp.org>
44215
44216         Avoid symlink attack in localcharset module.
44217         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44218         (O_NOFOLLOW): Define fallback.
44219         (get_charset_aliases): Don't open the file if it is a symbolic link.
44220         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44221         gl_FCNTL_H.
44222         (gl_FCNTL_H): Require it.
44223         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44224         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44225         Reported by Fergal Glynn <fglynn@veracode.com>.
44226
44227 2009-10-18  Bruno Haible  <bruno@clisp.org>
44228
44229         Implement nproc for mingw.
44230         * lib/nproc.c: Include <windows.h>
44231         (num_processors): On native Windows platforms, try GetSystemInfo.
44232
44233 2009-10-18  Bruno Haible  <bruno@clisp.org>
44234
44235         Implement nproc for IRIX.
44236         * lib/nproc.c: Include <sys/sysmp.h>.
44237         (num_processors): On IRIX systems, try sysmp.
44238         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44239
44240 2009-10-18  Bruno Haible  <bruno@clisp.org>
44241
44242         Implement nproc for HP-UX.
44243         * lib/nproc.c: Include <sys/pstat.h>
44244         (num_processors): On HP-UX systems, try pstat_getdynamic.
44245         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44246         pstat_getdynamic.
44247
44248 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44249             Bruno Haible  <bruno@clisp.org>
44250
44251         Implement nproc for NetBSD, OpenBSD.
44252         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44253         (ARRAY_SIZE): New macro.
44254         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44255         * m4/nproc.m4: New file.
44256         * modules/nproc (Files): Add m4/nproc.m4.
44257         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44258         (Makefile.am): Instead, augment lib_SOURCES.
44259
44260 2009-10-18  Bruno Haible  <bruno@clisp.org>
44261
44262         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44263         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44264         sys/param.h.
44265
44266 2009-10-16  Eric Blake  <ebb9@byu.net>
44267
44268         utimensat: new module
44269         * modules/utimensat: New file.
44270         * lib/utimensat.c (utimensat): Likewise.
44271         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44272         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44273         so we can work around Linux bugs.
44274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44275         * modules/sys_stat (Makefile.am): Substitute them.
44276         * lib/sys_stat.in.h (utimensat): Declare it.
44277         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44278         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44279         * modules/utimensat-tests: New test.
44280         * tests/test-utimensat.c: Likewise.
44281
44282         utimens: let lutimens work on non-symlinks
44283         * lib/utimens.c (lutimens): Fall back to utimens rather than
44284         failing with ENOSYS, when file is not a symlink.
44285         (utimens): Reduce redirection.
44286         * tests/test-lutimens.h (test_lutimens): Update test to cover
44287         non-symlinks.
44288         * tests/test-utimens.h (test_utimens): Update test to cover
44289         symlinks.
44290         * tests/test-utimens.c (main): Update caller.
44291
44292         utimens: cache whether utimensat syscall works
44293         * lib/utimens.c (utimensat_works_really): New cache variable.
44294         (fdutimens, lutimens): Use it to avoid failing syscall.
44295
44296         test-stat-time, test-utimens: improve portability
44297         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44298         ext4 on alpha, and for cygwin.
44299         * tests/test-utimens-common.h: New file.
44300         (nap): Factor delays into single function.
44301         * tests/test-lutimens.h (test_lutimens): Use new header.
44302         * tests/test-futimens.h (test_futimens): Likewise.
44303         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44304         timestamps to occur from same machine, as was done previously for
44305         test_utimens.
44306         * modules/utimens-tests (Files): Ship new file.
44307         * modules/futimens-tests (Files): Likewise.
44308         Reported in part by Jim Meyering.
44309
44310         sys_stat: sort replacement declarations
44311         * lib/sys_stat.in.h: Sort declarations.
44312         * lib/futimens.c (futimens): Fix typo.
44313
44314 2009-10-15  Jim Meyering  <meyering@redhat.com>
44315
44316         don't let environment settings perturb build
44317         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44318         could cause a configure-time and/or build-time malfunction.
44319         Typically, a configure-time function-in-library test is performed
44320         via code like this:
44321
44322           LIB_VAR=
44323           AC_SUBST([LIB_VAR])
44324           prefix_saved_LIBS=$LIBS
44325             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44326                        [test "$ac_cv_search_FUNC" = "none required" ||
44327                         LIB_VAR=$ac_cv_search_FUNC])
44328           LIBS=$prefix_saved_LIBS
44329
44330         However, in each of the files affected by this change, the LIB_VAR=
44331         initialization was omitted.  Thus, when set in the environment, its
44332         value would propagate into generated Makefiles when FUNC is not found
44333         in LIB_NAME.
44334         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44335         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44337
44338 2009-10-14  Eric Blake  <ebb9@byu.net>
44339
44340         fchdir: avoid infinite recursion in mingw
44341         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44342         recursing.
44343
44344         test-stat-time: port to mingw
44345         * tests/test-stat-time.c (force_unlink): Return a value.
44346         (test_ctime) [W32]: Fix compilation error.
44347         (nap): Don't call usleep with too large an argument.  Use
44348         force_unlink.
44349         * doc/pastposix-functions/usleep.texi (usleep): Document the
44350         portability issue.
44351
44352 2009-10-13  Jim Meyering  <meyering@redhat.com>
44353
44354         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44355         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44356         * modules/pipe-filter-ii: Likewise.
44357         * modules/sys_socket-tests: Likewise.
44358         * modules/tsearch-tests: Likewise.
44359         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44360         (check): Depend on it.
44361
44362 2009-10-12  Eric Blake  <ebb9@byu.net>
44363
44364         utimens-tests: port to NFS file systems
44365         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44366         comparisons to avoid spurious failures from timestamp drift
44367         between NFS machines.
44368
44369 2009-10-12  Eric Blake  <ebb9@byu.net>
44370
44371         stat-time-tests: minor cleanups
44372         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44373         * tests/test-stat-time.c (nap): Separate assignment from call.
44374         Suggested by Paolo Bonzini and Bruno Haible.
44375
44376         sys_stat: guarantee struct timespec
44377         * lib/sys_stat.in.h (includes): Always include <time.h>
44378         * modules/sys_stat (Depends-on): Add time.
44379         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44380         mode_t permission values.
44381         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44382         get at subsecond timestamps.
44383
44384 2009-10-10  Eric Blake  <ebb9@byu.net>
44385
44386         futimens: new module
44387         * modules/futimens: New file.
44388         * lib/futimens.c (futimens): Likewise.
44389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44390         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44391         we can work around Linux bugs.
44392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44393         * modules/sys_stat (Makefile.am): Substitute them.
44394         * lib/sys_stat.in.h (futimens): Declare it.
44395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44396         * doc/posix-functions/futimens.texi (futimens): Likewise.
44397         * modules/futimens-tests: New test.
44398         * tests/test-futimens.c: Likewise.
44399
44400         utimens: introduce fdutimens
44401         * lib/utimens.h (fdutimens): New prototype.
44402         * lib/utimens.c (gl_futimens): Move guts...
44403         (fdutimens): ...to new interface.
44404         * tests/test-utimens.c (do_fdutimens): Use it.
44405
44406         utimens: add UTIME_NOW and UTIME_OMIT support
44407         * lib/utimens.c (validate_timespec, update_timespec): New helper
44408         functions.
44409         (gl_futimens, lutimens): Use them.
44410         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44411         stdbool, sys_stat.
44412         (Link): Mention resulting library dependency.
44413         * modules/utimecmp (Link): Likewise.
44414         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44415         (Makefile.am): Pick up library dependency.
44416         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44417         definition.
44418         * tests/test-sys_stat.c: Test the definitions.
44419         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44420         * NEWS: Document library dependency.
44421
44422         utimecmp: support symlink timestamps
44423         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44424         hashing when possible.  Use pathconf when available.
44425         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44426         * modules/utimecmp (Depends-on): Add lstat.
44427
44428         utimens: add lutimens interface
44429         * lib/utimens.c (lutimens): New function.
44430         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44431         * lib/utimens.h (lutimens): Declare new interface.
44432         * tests/test-utimens.c (main): Enhance test.
44433         * tests/test-lutimens.h (test_lutimens): New file.
44434         * modules/utimens-tests (Files): Distribute it.
44435         (Depends-on): Add symlink.
44436         (configure.ac): Check for usleep.
44437
44438         utimens: validate futimens usage
44439         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44440         fewer syscalls on failure later on.  Avoid compiler warning on
44441         mingw.
44442         * modules/utimens (Depends-on): Add dup2.
44443
44444         utimens: add test
44445         * modules/utimens-tests: New test.
44446         * tests/test-utimens.h: New file.
44447         * tests/test-futimens.h: Likewise.
44448         * tests/test-utimens.c: Likewise.
44449
44450         doc: mention timestamp portability issues
44451         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44452         instead.
44453         * doc/posix-functions/utime.texi (utime): Likewise.
44454         * doc/posix-functions/utimes.texi (utimes): Likewise.
44455         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44456         instead.
44457         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44458         module.
44459         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44460         Mention weakness with symlink timestamps.
44461         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44462         to utimensat/futimens instead.
44463         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44464
44465         test-dup2: enhance test
44466         * tests/test-dup2.c (main): Also check AT_FDCWD.
44467
44468         test-stat-time: avoid more spurious failures
44469         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44470         xfs; and avoid race if the two timestamps cross quantization edge.
44471
44472         relocatable: prefer 'file system' over 'filesystem'
44473         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44474         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44475         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44476         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44477         * lib/relocatable.c (compute_curr_prefix): Likewise.
44478
44479 2009-10-10  Jim Meyering  <meyering@redhat.com>
44480
44481         stat-time-tests: check for the usleep function
44482         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44483
44484 2009-10-10  Bruno Haible  <bruno@clisp.org>
44485
44486         * modules/xnanosleep: Put the Link section after the Include section.
44487
44488 2009-10-09  Eric Blake  <ebb9@byu.net>
44489
44490         dup2: work around FreeBSD 6.1 bug
44491         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44492         * doc/posix-functions/dup2.texi (dup2): Document it.
44493         Reported by Nelson H. F. Beebe and Jim Meyering.
44494
44495         test-stat-time: port to buggy NFS clients
44496         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44497         (test_ctime): Also skip test if mtime and ctime are skewed.
44498
44499         maint: prefer 'file system' over 'filesystem'
44500         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44501         * doc/posix-functions/lstat.texi (lstat): Likewise.
44502         * lib/file-has-acl.c (file_has_acl): Likewise.
44503         * lib/fwriteerror.c [TEST]: Likewise.
44504         * tests/test-areadlink.h (test_areadlink): Likewise.
44505         * tests/test-areadlinkat-with-size.c (main): Likewise.
44506         * tests/test-areadlinkat.c (main): Likewise.
44507         * tests/test-canonicalize-lgpl.c (main): Likewise.
44508         * tests/test-canonicalize.c (main): Likewise.
44509         * tests/test-fstatat.c (main): Likewise.
44510         * tests/test-linkat.c (main): Likewise.
44511         * tests/test-lstat.h (test_lstat_func): Likewise.
44512         * tests/test-mkdir.h (test_mkdir): Likewise.
44513         * tests/test-readlink.h (test_readlink): Likewise.
44514         * tests/test-remove.c (main): Likewise.
44515         * tests/test-rename.h (test_rename): Likewise.
44516         * tests/test-renameat.c (main): Likewise.
44517         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44518         * tests/test-symlink.h (test_symlink): Likewise.
44519         * tests/test-symlinkat.c (main): Likewise.
44520         * tests/test-unlink.h (test_unlink_func): Likewise.
44521         * tests/test-unlinkat.c (main): Likewise.
44522
44523         maint: make realtime library usage explicit
44524         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44525         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44526         * modules/settime (Link): Likewise.
44527         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44528
44529         test-stat-time: speed up execution
44530         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44531         warning on mingw.
44532         (nap): New helper function.
44533         (prepare_test): Use it to reduce sleep time.
44534         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44535         execution.
44536         * modules/stat-time-tests (configure.ac): Check for usleep.
44537
44538 2009-10-09  Jim Meyering  <meyering@redhat.com>
44539
44540         selinux-h: always use getfilecon wrappers
44541         * lib/getfilecon.c: New file.
44542         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44543         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44544         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44545         (fgetfilecon): Provide a stub.
44546         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44547         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44548         file unconditionally.
44549         When <selinux/selinux.h> is found, arrange to use wrappers.
44550         * modules/selinux-h (Files): Add getfilecon.c.
44551         (Makefile.am): Substitute include-next-related bits
44552         into the now-always-generated selinux/selinux.h file.
44553         * doc/glibc-functions/lgetfilecon.texi: New file.
44554         * doc/glibc-functions/fgetfilecon.texi: New file.
44555         * doc/glibc-functions/getfilecon.texi: New file.
44556         * doc/glibc-functions/getfilecon-desc.texi: New file.
44557         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44558         which to pull in the new files.
44559         * MODULES.html.sh (Misc): Add selinux-h.
44560
44561 2009-10-08  Jim Meyering  <meyering@redhat.com>
44562
44563         unistd: fix comment typo
44564         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44565
44566 2009-10-08  Eric Blake  <ebb9@byu.net>
44567
44568         areadlink: use SIZE_MAX consistently
44569         * modules/areadlink (Depends-on): Add stdint.
44570         * modules/areadlink-with-size (Depends-on): Likewise.
44571         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44572         gives NULL; drop sys/types, since unistd gives size_t; and add
44573         stdint for SIZE_MAX.
44574         (SIZE_MAX): Rely on headers.
44575         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44576         and add stdint.
44577         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44578         (SIZE_MAX): Likewise.
44579         (INITIAL_BUF_SIZE): Turn into enum.
44580         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44581
44582 2009-10-08  Jim Meyering  <meyering@redhat.com>
44583
44584         areadlinkat: avoid compilation failure
44585         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44586         Fix typo in comment.
44587
44588 2009-10-07  Eric Blake  <ebb9@byu.net>
44589
44590         areadlinkat-with-size: new module
44591         * modules/areadlinkat-with-size: New module.
44592         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44593         * lib/areadlink.h (areadlinkat): Declare it.
44594         * MODULES.html.sh (File system functions): Mention it.
44595         * modules/areadlinkat-with-size-tests: New test.
44596         * tests/test-areadlinkat-with-size.c: New file.
44597
44598         xreadlinkat: new module
44599         * modules/xreadlinkat: New module.
44600         * lib/xreadlinkat.c (xreadlinkat): New file.
44601         * lib/xreadlink.h (xreadlinkat): Declare it.
44602         * MODULES.html.sh (File system functions): Mention it.
44603
44604         areadlinkat: new module
44605         * lib/at-func.c (FUNC_FAIL): New define.
44606         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44607         * modules/areadlinkat: New module.
44608         * lib/linkat.c (areadlinkat): Move...
44609         * lib/areadlinkat.c (areadlinkat): ...to new file.
44610         * lib/areadlink.h (areadlinkat): Declare it.
44611         * modules/linkat (Depends-on): Add areadlinkat.
44612         * MODULES.html.sh (File system functions): Mention it.
44613         * modules/areadlinkat-tests: New test.
44614         * tests/test-areadlinkat.c: New file.
44615
44616         areadlink, areadlink-with-size: add tests
44617         * modules/areadlink-tests: New test.
44618         * modules/areadlink-with-size-tests: Likewise.
44619         * tests/test-areadlink.h: New file.
44620         * tests/test-areadlink.c: Likewise.
44621         * tests/test-areadlink-with-size.c: Likewise.
44622
44623         maint: minor cleanups
44624         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44625         _UNUSED_PARAMETER_ instead.
44626         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44627         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44628         * modules/linkat-tests (Files): Distribute test-link.h.
44629
44630         openat, utimens: whitespace cleanup
44631         * lib/openat.c: Prefer space throughout, rather than mix of 8
44632         spaces vs. tabs.
44633         * lib/at-func.c: Likewise.
44634         * lib/utimens.c: Likewise.
44635
44636         openat: avoid using wrong fd
44637         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44638         working directory chooses same fd.
44639         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44640
44641         mkdir, mkdirat: fix cygwin 1.5.x bug
44642         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44644         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44645         bug.
44646         (gl_PREREQ_MKDIR): Delete unused macro.
44647         * modules/mkdir (Files): Track file rename.
44648         (configure.ac): Update macro name.
44649         * modules/openat (Depends-on): Add mkdir.
44650         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44651
44652         mkdir, mkdirat: add tests
44653         * modules/mkdir-tests: New test.
44654         * tests/test-mkdir.h: New file.
44655         * tests/test-mkdir.c: Likewise.
44656         * tests/test-mkdirat.c: Likewise.
44657         * modules/openat-tests (Files): Add new files.
44658         (Makefile.am): Run new test.
44659
44660 2009-10-06  Eric Blake  <ebb9@byu.net>
44661
44662         doc: tweak *at function documentation
44663         * doc/posix-functions/faccessat.texi (faccessat): Mention
44664         known issue with replacement.
44665         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44666         * doc/posix-functions/linkat.texi (linkat): Likewise.
44667         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44668         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44669         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44670         * doc/posix-functions/renameat.texi (renameat): Likewise.
44671         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44672
44673         openat: fix GNU/Hurd bug in unlinkat
44674         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44675         broken.
44676         * doc/posix-functions/unlink.texi (unlink): Document this.
44677         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44678
44679         fdopendir: fix GNU/Hurd bug
44680         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44681         allowing non-directory fds.
44682         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44684         * modules/dirent (Makefile.am): Substitute it.
44685         * lib/dirent.in.h (fdopendir): Declare replacement.
44686         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44687         * tests/test-fdopendir.c (main): Test something other than
44688         /dev/null, since on Hurd that behaves like a directory.
44689
44690         test-symlink: port to GNU/Hurd
44691         * tests/test-symlink.h (test_symlink): Relax expected errno.
44692
44693         doc: tweak more cygwin information
44694         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44695         now compatible with glibc.
44696         * doc/posix-functions/getopt.texi (getopt): Likewise.
44697
44698         getopt-gnu: add another test
44699         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44700         guarantee behavior relied on by m4.
44701         * tests/test-getopt.c (main): Use it.
44702         * modules/getopt-posix-tests (Depends-on): Add setenv.
44703         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44704
44705         getopt: fix compilation on darwin
44706         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44707         include.
44708         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44709         Reported by Ludovic Courtès.
44710
44711 2009-10-06  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/size_max (Description): Discourage its use.
44714         Reported by Simon Josefsson.
44715
44716 2009-10-06  Jim Meyering  <meyering@redhat.com>
44717
44718         linkat: avoid compilation failure
44719         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44720
44721 2009-10-05  Eric Blake  <ebb9@byu.net>
44722
44723         linkat: support Linux 2.6.17
44724         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44725         linkat on Linux, but allow cache variable override.
44726         * lib/linkat.c (rpl_linkat): Define override.
44727         * modules/linkat (Depends-on): Add symlinkat.
44728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44729         * modules/unistd (Makefile.am): Substitute it.
44730         * lib/unistd.in.h (linkat): Declare replacement.
44731         Reported by Pádraig Brady.
44732
44733         quotearg: port test to systems with C.UTF-8 locale
44734         * tests/test-quotearg.c (struct result_strings): Add another
44735         member, differentiating between C.ASCII and C.UTF-8 handling.
44736         (compare_strings): Add parameter.
44737         (main): Adjust all callers.
44738
44739         getopt: avoid clash with FreeBSD _getopt_internal
44740         * lib/getopt.in.h (_getopt_internal): Override the name.
44741         * lib/getopt_int.h (includes): Pick up any overrides.
44742         Reported by Reuben Thomas.
44743
44744         hash: allow C89 compilation
44745         * lib/hash.c (check_tuning): Move declaration before statement.
44746         Reported by Reuben Thomas.
44747
44748 2009-10-05  Karl Berry  <karl@gnu.org>
44749
44750         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44751
44752 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44753             Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/uname.c (uname): Use a table-driven algorithm to compute
44756         Windows NT versions.
44757
44758 2009-10-04  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44761         program_invocation_short_name.
44762         * modules/progname (configure.ac): Test for presence of
44763         program_invocation_short_name.
44764         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44765
44766 2009-10-04  Bruno Haible  <bruno@clisp.org>
44767
44768         * lib/progname.c (set_program_name): Fix comment.
44769         Reported by Jim Meyering.
44770
44771 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44772             Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/uname.c: Include <string.h>.
44775         (uname): Do only one call to GetVersionEx in the common case.
44776
44777 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44778             Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44781         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44782         (uname): Add support for Windows CE and various non-x86 CPU types.
44783
44784 2009-10-03  Bruno Haible  <bruno@clisp.org>
44785
44786         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44787         invocation to tests/configure.ac.
44788         Reported by Ian Beckwith <ianb@erislabs.net>.
44789
44790 2009-10-02  Eric Blake  <ebb9@byu.net>
44791
44792         fchdir: avoid compiler warning
44793         * lib/fchdir.c (canonicalize_file_name)
44794         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44795
44796         test-open: support mingw errno values
44797         * tests/test-open.h (test_open): Relax test.
44798         * tests/test-fopen.h (test_fopen): Likewise.
44799         * tests/test-openat-safer.c (main): Likewise.
44800
44801         open: fix opening directory on mingw
44802         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44803
44804         test-open: on GNU/Hurd, /dev/null is a directory
44805         * tests/test-fopen.h (main): Rename...
44806         (test_fopen): ...to this.  Use a guaranteed non-directory when
44807         confirming open behavior on trailing slash.
44808         * tests/test-openat-safer.c (main): Likewise.
44809         * tests/test-open.h (main): Likewise....
44810         (test_open): ...to this.
44811         * tests/test-fopen.c (main): Adjust caller.
44812         * tests/test-fopen-safer.c (main): Likewise.
44813         * tests/test-open.c (main): Likewise.
44814         * tests/test-fcntl-safer.c (main): Likewise.
44815         Reported by Samuel Thibault.
44816
44817         rename, fchdir: don't ignore chdir failure
44818         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44819         * lib/rename.c (rpl_rename) [W32]: Likewise.
44820         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44821         an empty destination directory if source cannot be renamed,
44822         although there is still possibility for failure.
44823         * doc/posix-functions/rename.texi (rename): Document the race.
44824         Reported by Jim Meyering.
44825
44826         maint: cleanup whitespace in recent commits
44827         * lib/rename.c (rpl_rename): Remove tabs.
44828         * tests/test-link.h (test_link): Likewise.
44829         * lib/fchdir.c (get_name): Likewise.
44830         Reported by Jim Meyering.
44831
44832 2009-10-02  Ben Pfaff  <blp@gnu.org>
44833
44834         relocatable-prog-wrapper: Add missing dependency on
44835         double-slash-root.
44836         * modules/relocatable-prog-wrapper: Add dependency.
44837         Reported by Ian Beckwith <ianb@erislabs.net>.
44838
44839 2009-10-02  Eric Blake  <ebb9@byu.net>
44840
44841         renameat: fix Solaris bugs
44842         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44843         needed fixing.
44844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44845         * modules/stdio (Makefile.am): Substitute it.
44846         * lib/stdio.in.h (renameat): Declare replacement.
44847         * lib/renameat.c (rpl_renameat): Implement fix.
44848
44849         renameat: new module
44850         * modules/renameat: New file.
44851         * lib/renameat.c (renameat): Likewise.
44852         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44854         * modules/stdio (Makefile.am): Substitute them.
44855         * lib/stdio.in.h (renameat): Declare it.
44856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44857         * doc/posix-functions/renameat.texi (renameat): Likewise.
44858         * modules/renameat-tests: New test.
44859         * tests/test-renameat.c: Likewise.
44860
44861         rename: fix mingw bugs
44862         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44863         directory overwrite bugs.
44864
44865         rename: fix another cygwin 1.5 bug
44866         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44867         checks.
44868         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44869         unnecessary cygwin workarounds.  Also work around bug with moving
44870         full directory onto an empty one.
44871         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44872
44873         rename-dest-slash: merge into rename module
44874         * modules/rename-dest-slash (Status): Mark obsolete.
44875         (Depends-on): Add rename.
44876         (Files): Let rename do it all.
44877         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44878         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44879         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44880         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44881         * lib/rename.c (rpl_rename): Update comments.
44882
44883         rename: fix cygwin 1.5.x bugs
44884         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44885         * lib/rename.c (rpl_rename): Work around them.
44886         * modules/rename (Depends-on): Add same-inode.
44887
44888         rename: fix Solaris 10 bug
44889         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44890         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44891         was the only bug.
44892
44893         rename: fix Solaris 9 bug
44894         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44895         on non-directory.  Avoid calling exit.
44896         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44897         strdup.
44898         * modules/rename-tests (Depends-on): Drop lstat.
44899         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44900         (gl_PREREQ_RENAME): Delete unused macro.
44901
44902         rename-dest-slash: fix NetBSD bug
44903         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44904         links.
44905         * modules/rename-dest-slash (Depends-on): Add same-inode.
44906
44907         rename-tests: new test, exposes several platform bugs
44908         * modules/rename-tests: New file.
44909         * tests/test-rename.h: Likewise.
44910         * tests/test-rename.c: Likewise.
44911         * doc/posix-functions/rename.texi (rename): Improve documentation,
44912         including bugs that will eventually be fixed in gnulib.
44913
44914 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44915
44916         * lib/uname.c: Include <stdlib.h>
44917         (uname): Assume version info is available.
44918
44919 2009-10-02  Jim Meyering  <meyering@redhat.com>
44920
44921         gnu-web-doc-update: correct --help output
44922         * build-aux/gnu-web-doc-update: Make --help output relevant.
44923
44924         gnu-web-doc-update: add standard options
44925         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44926
44927         gnu-web-doc-update: New module.
44928         Use this script to automatically update the on-line web documentation
44929         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44930         * modules/gnu-web-doc-update: New file, from coreutils.
44931         * build-aux/gnu-web-doc-update: New script.
44932
44933 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44934
44935         link: LoadLibrary is not needed.
44936         * lib/link.c: Use GetModuleHandle.
44937
44938 2009-10-01  Eric Blake  <ebb9@byu.net>
44939
44940         getopt: bump serial number
44941         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44942         change.
44943
44944         tests: tighten link, rmdir, and remove tests
44945         * tests/test-link.h (includes): No need to use <config.h> here.
44946         Clean up if directory hard link was created, otherwise test for
44947         trailing '.'.
44948         * tests/test-linkat.c (main): Simplify.
44949         * tests/test-remove.c (main): Enhance test for trailing '.'.
44950         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44951
44952 2009-10-01  Jim Meyering  <meyering@redhat.com>
44953
44954         maint.mk: requiring "make major" was annoying, for a "minor" release.
44955         What is intended is "stable", to contrast with alpha and beta,
44956         so require "make stable", not "make major".
44957         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44958         (get_tool_versions): Likewise.
44959         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44960
44961 2009-09-30  Ben Pfaff  <blp@gnu.org>
44962
44963         Fix broken build of replacement for Windows tmpfile().
44964         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44965         flags argument added along with the 'mkostemp' module.
44966
44967 2009-09-28  Bruno Haible  <bruno@clisp.org>
44968
44969         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44970         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44971         to 'remove_elt'.
44972         (gl_list_remove): Update.
44973         * lib/gl_list.c (gl_list_remove): Update.
44974         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44975         to 'remove_elt'.
44976         (gl_oset_remove): Update.
44977         * lib/gl_list.c (gl_oset_remove): Update.
44978         Reported by Eric Blake.
44979
44980 2009-09-28  Eric Blake  <ebb9@byu.net>
44981
44982         doc: mention yet more cygwin 1.7 status
44983         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44984         cygwin.
44985         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44986         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44987
44988         argp: fix test failure
44989         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44990         that are not upper-case.  Pass correct range to tolower.
44991
44992 2009-09-27  Jim Meyering  <meyering@redhat.com>
44993
44994         test-yesno: work around sparc-dash here-document infelicity
44995         Without this change, the literal \177 byte in a here document
44996         would make dash 0.5.5.1-3 access uninitialized memory.
44997         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44998         Instead, use a marker, "@", and filter through tr to create the desired
44999         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45000
45001 2009-09-27  Bruno Haible  <bruno@clisp.org>
45002
45003         Disable untested support for new flavours of ACLs on AIX.
45004         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45005         progress.
45006         * lib/set-mode-acl.c (qset_acl): Likewise.
45007
45008 2008-12-07  Bruno Haible  <bruno@clisp.org>
45009
45010         Add support for new flavours of ACLs on AIX. (Untested.)
45011         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45012         (file_has_acl): Add support for newer AIX.
45013         * lib/set-mode-acl.c (qset_acl): Likewise.
45014         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45015         Rainer Tammer <tammer@tammer.net>.
45016
45017 2009-09-26  Eric Blake  <ebb9@byu.net>
45018
45019         argp: fix compilation of getopt
45020         * lib/getopt.in.h (includes): Use different guard than glibc.
45021         Reported by Sergey Poznyakoff.
45022
45023         doc: mention more cygwin 1.7 status
45024         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45025         bug.
45026         * doc/posix-functions/execl.texi (execl): Likewise.
45027         * doc/posix-functions/execle.texi (execle): Likewise.
45028         * doc/posix-functions/execlp.texi (execlp): Likewise.
45029         * doc/posix-functions/execv.texi (execv): Likewise.
45030         * doc/posix-functions/execve.texi (execve): Likewise.
45031         * doc/posix-functions/execvp.texi (execvp): Likewise.
45032         * doc/glibc-functions/canonicalize_file_name.texi
45033         (canonicalize_file_name): Cygwin 1.7 now provides this.
45034         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45035         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45036         on AT_SYMLINK_NOFOLLOW.
45037
45038 2009-09-24  Eric Blake  <ebb9@byu.net>
45039
45040         test-linkat: make test more robust
45041         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45042
45043         getopt: fix inclusion guards for cygwin
45044         * modules/getopt-posix (Depends-on): Add include-next.
45045         (Makefile.am): Substitute more items in replacement header.
45046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45047         <getopt.h>.
45048         * lib/getopt.in.h (includes): Use split inclusion guard, and
45049         prefer <getopt.h> over include <unistd.h> when one is present.
45050         (option): Also override name of 'struct option'.
45051
45052         same-inode: revert prior change; it is not yet ready
45053         * NEWS: Undo mention of this change.
45054         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45055         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45056         * lib/cycle-check.c (cycle_check): Likewise.
45057         * lib/same.c (same_name): Likewise.
45058         * lib/at-func2.c (at_func2): Likewise.
45059
45060 2009-09-23  Eric Blake  <ebb9@byu.net>
45061
45062         linkat: new module
45063         * modules/linkat: New file.
45064         * lib/at-func2.c (at_func2): Likewise.
45065         * lib/linkat.c (linkat): Likewise.
45066         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45067         * lib/openat-priv.h (at_func2): Add declaration.
45068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45069         * modules/unistd (Makefile.am): Substitute them.
45070         * lib/unistd.in.h (linkat): Declare it.
45071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45072         * doc/posix-functions/linkat.texi (linkat): Likewise.
45073         * doc/posix-functions/link.texi (link): Tweak wording.
45074         * tests/test-link.c (main): Move guts...
45075         * tests/test-link.h (test_link): ...into new file.
45076         * modules/linkat-tests: New test.
45077         * tests/test-linkat.c: Likewise.
45078         * modules/link-tests (Files): Ship new file.
45079         (Depends-on): Add stdbool.
45080
45081         dirname: add library-safe mdir_name
45082         * lib/dirname.h (mdir_name): New prototype.
45083         * lib/dirname.c (dir_name): Move guts...
45084         (mdir_name): ...to new function that avoids xalloc_die.
45085
45086         fchdir: another mingw fix
45087         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45088         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45089         on mingw (where it has not yet been ported), and make it optional
45090         elsewhere.
45091         (_gl_register_fd): Use it.
45092
45093         same-inode: make SAME_INODE tri-state, to port to mingw
45094         * NEWS: Mention this change.
45095         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45096         st_ino always being 0.
45097         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45098         * lib/cycle-check.c (cycle_check): Likewise.
45099         * lib/same.c (same_name): Likewise.
45100
45101         lstat: avoid mingw compilation error
45102         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45103         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45104         lstat ourselves.
45105         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45106         was adequate.
45107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45108         the checks for lstat.
45109         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45110
45111         link: fix test failure on Solaris 9
45112         * lib/link.c (rpl_link): Don't assume link will catch bogus
45113         trailing slash on source.
45114
45115         test-symlinkat: enhance test
45116         * tests/test-readlink.c (main): Move guts...
45117         * tests/test-readlink.h (test_readlink): ...into new file.
45118         * tests/test-symlink.c (main): Move guts...
45119         * tests/test-symlink.h (test_symlink): ...into new file.
45120         * tests/test-symlinkat.c (main): Use new files for further
45121         coverage.
45122         (do_symlink, do_readlink): New helper functions.
45123         * modules/symlink-tests (Files): Ship new file.
45124         (Depends-on): Add stdbool.
45125         * modules/readlink-tests (Files): Ship new file.
45126         (Depends-on): Add stdbool.
45127         * modules/symlinkat-tests (Files): Use new files.
45128
45129 2009-09-23  Eric Blake  <ebb9@byu.net>
45130
45131         readlink: document portability issue with symlink length
45132         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45133         systems have bogus st_size on symlinks, and mention the
45134         areadlink-with-size module.
45135         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45136         * doc/posix-functions/readlink.texi (readlink): Mention the
45137         areadlink module, and ERANGE failure.
45138         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45139         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45140
45141         readlink: fix Solaris 9 bug with trailing slash
45142         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45143         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45144         * doc/posix-functions/readlink.texi (readlink): Document this.
45145         * modules/readlink-tests: New test.
45146         * tests/test-readlink.c: Likewise.
45147
45148         readlink: fix cygwin 1.5.x bug with return type
45149         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45150         * lib/unistd.in.h (readlink): Use ssize_t.
45151         * lib/readlink.c (readlink): Likewise.
45152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45153         * modules/unistd (Makefile.am): Substitute it.
45154         * lib/unistd.in.h (readlink): Declare replacement.
45155         * doc/posix-functions/readlink.texi (readlink): Document this.
45156
45157         symlink: use throughout gnulib
45158         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45159         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45160         symlink is not used.
45161         * modules/symlinkat (Depends-on): Add symlink.
45162         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45163         * modules/canonicalize-tests (Depends-on): Likewise.
45164         * modules/lstat-tests (Depends-on): Likewise.
45165         * modules/openat-tests (Depends-on): Likewise.
45166         * modules/remove-tests (Depends-on): Likewise.
45167         * modules/rmdir-tests (Depends-on): Likewise.
45168         * modules/unlink-tests (Depends-on): Likewise.
45169         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45170         * tests/test-canonicalize.c (symlink): Likewise.
45171         * tests/test-fstatat.c (symlink): Likewise.
45172         * tests/test-lstat.c (symlink): Likewise.
45173         * tests/test-remove.c (symlink): Likewise.
45174         * tests/test-rmdir.c (symlink): Likewise.
45175         * tests/test-unlink.c (symlink): Likewise.
45176         * tests/test-unlinkat.c (symlink): Likewise.
45177
45178         symlink: new module, for Solaris 9 bug
45179         * modules/symlink: New file.
45180         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45181         * lib/symlink.c: Likewise.
45182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45183         * modules/unistd (Makefile.am): Substitute them.
45184         * lib/unistd.in.h (symlink): Declare replacement.
45185         * MODULES.html.sh (File system functions): Mention it.
45186         * doc/posix-functions/symlink.texi (symlink): Likewise.
45187         * modules/symlink-tests: New test.
45188         * tests/test-symlink.c: Likewise.
45189
45190 2009-09-23  Bruno Haible  <bruno@clisp.org>
45191
45192         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45193         when needed.
45194         Test case: gnulib-tool --import --with-tests atexit inttypes.
45195         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45196
45197 2009-09-23  Bruno Haible  <bruno@clisp.org>
45198
45199         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45200         subcommand, not in a subshell.
45201
45202 2009-09-22  Eric Blake  <ebb9@byu.net>
45203
45204         unistd: sort replacement declarations
45205         * lib/unistd.in.h: Sort declarations.
45206
45207         open, openat: minor optimization
45208         * lib/open.c (open): If open succeeded, len is non-zero.
45209         * lib/openat.c (rpl_openat): Likewise.
45210
45211         link-follow: ensure correct result
45212         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45213         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45214         distinguish between possible failures.
45215
45216 2009-09-21  Eric Blake  <ebb9@byu.net>
45217
45218         fts: avoid compiler warning
45219         * lib/fts.c (dirent_inode_sort_may_be_useful)
45220         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45221
45222 2009-09-19  Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/progreloc.c (canonicalize_file_name): New declaration.
45225
45226 2009-09-19  Eric Blake  <ebb9@byu.net>
45227
45228         link: fix quoting
45229         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45230
45231         openat: fix openat bugs on Solaris 9
45232         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45233         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45234         * modules/openat (Depends-on): Add open.
45235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45236         * modules/fcntl-h (Makefile.am): Substitute it.
45237         * lib/fcntl.in.h (openat): Declare replacement.
45238         * doc/posix-functions/openat.texi (openat): Document this.
45239
45240         openat: move fstatat and unlinkat into correct files
45241         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45242         compiled.
45243         * lib/openat.c (fstatat, unlinkat): Move...
45244         * lib/fstatat.c (fstatat): ...into correct files.
45245         * lib/unlinkat.c (unlinkat): Likewise.
45246
45247         openat: fix unlinkat bugs on Solaris 9
45248         * lib/unlinkat.c (unlinkat): New file.
45249         * modules/openat (Depends-on): Add unlink.
45250         (Files): Distribute it.
45251         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45252         trailing slash behavior is broken.
45253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45254         * modules/unistd (Makefile.am): Substitute it.
45255         * lib/unistd.in.h (unlinkat): Declare replacement.
45256         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45257
45258         openat: fix fstatat bugs on Solaris 9
45259         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45260         stat.
45261         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45262
45263         test-unlinkat: enhance test, to expose Solaris 9 bug
45264         * tests/test-unlink.c (main): Factor guts...
45265         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45266         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45267         * tests/test-rmdir.c (main): Adjust caller.
45268         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45269         (unlinker): New helper function.
45270         (rmdirat): Enhance check.
45271         * modules/rmdir-tests (Depends-on): Add stdbool.
45272         * modules/unlink-tests (Depends-on): Likewise.
45273         (Files): Add test-unlink.h.
45274         * modules/openat-tests (Files): Likewise.
45275         (Depends-on): Add unlinkdir.
45276
45277         test-fstatat: new test, to expose Solaris 9 bugs
45278         * tests/test-stat.c (main): Factor guts...
45279         * tests/test-stat.h (test_stat_func): ...into new file.
45280         * tests/test-lstat.c (main): Factor guts...
45281         * tests/test-lstat.h (test_lstat_func): ...into new file.
45282         * tests/test-fstatat.c: New file.
45283         * modules/stat-tests (Files): Add test-stat.h.
45284         * modules/lstat-tests (Files): Add test-lstat.h.
45285         (Depends-on): Add stdbool.
45286         * modules/openat-tests (Depends-on): Add pathmax.
45287         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45288         (Makefile.am): Run new test.
45289
45290         remove: new module, for mingw and Solaris 9 bugs
45291         * modules/remove: New file.
45292         * lib/remove.c: Likewise.
45293         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45295         * modules/stdio (Makefile.am): Use them.
45296         * lib/stdio.in.h (remove): Declare replacement.
45297         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45298         * doc/posix-functions/remove.texi (remove): Likewise.
45299         * modules/remove-tests: New test.
45300         * tests/test-remove.c: Likewise.
45301
45302         unlink: new module, for Solaris 9 bug
45303         * modules/unlink: New file.
45304         * lib/unlink.c: Likewise.
45305         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45307         * modules/unistd (Makefile.am): Use them.
45308         * lib/unistd.in.h (stat): Declare replacement.
45309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45310         * doc/posix-functions/unlink.texi (unlink): Likewise.
45311         * modules/unlink-tests: New test.
45312         * tests/test-unlink.c: Likewise.
45313
45314         lstat: fix Solaris 9 bug
45315         * lib/lstat.c (lstat): Also check for trailing slash on
45316         non-symlink, non-directories.  Use stat module to simplify logic.
45317         * doc/posix-functions/lstat.texi (lstat): Document it.
45318         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45319         (configure.ac): Check for symlink.
45320         * tests/test-lstat.c (main): Add more tests.
45321
45322         stat: add as dependency to other modules
45323         * modules/chown (Depends-on): Add stat.
45324         * modules/euidaccess (Depends-on): Likewise.
45325         * modules/fchdir (Depends-on): Likewise.
45326         * modules/isdir (Depends-on): Likewise.
45327         * modules/link (Depends-on): Likewise.
45328         * modules/lstat (Depends-on): Likewise.
45329         * modules/mkdir-p (Depends-on): Likewise.
45330         * modules/modechange (Depends-on): Likewise.
45331         * modules/open (Depends-on): Likewise.
45332         * modules/readlink (Depends-on): Likewise.
45333         * modules/same (Depends-on): Likewise.
45334
45335         stat: fix Solaris 9 bug
45336         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45337         slash.
45338         * lib/stat.c (rpl_stat): Work around it.
45339         * doc/posix-functions/stat.texi (stat): Update documentation.
45340
45341         stat: new module, for mingw bug
45342         * modules/stat: New file.
45343         * lib/stat.c: Likewise.
45344         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45346         * modules/sys_stat (Makefile.am): Use them.
45347         * lib/sys_stat.in.h (stat): Declare replacement.
45348         * lib/openat.c (fstatat): Deal with lstat and stat being function
45349         macros.
45350         * modules/openat (Depends-on): Add inline.
45351         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45352         * doc/posix-functions/stat.texi (stat): Likewise.
45353         * modules/stat-tests: New test.
45354         * tests/test-stat.c: Likewise.
45355
45356 2009-09-19  Jim Meyering  <meyering@redhat.com>
45357
45358         syntax-check: detect unnecessary inclusion of canonicalize.h
45359         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45360
45361 2009-09-19  Eric Blake  <ebb9@byu.net>
45362
45363         canonicalize-lgpl: adjust clients to use correct header
45364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45365         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45366         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45367         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45368         * lib/progreloc.c (includes): Likewise.
45369
45370 2009-09-19  Jim Meyering  <meyering@redhat.com>
45371
45372         test-posixtm.c: correct a comment
45373         * tests/test-posixtm.c: Correct first-line comment.
45374         Spotted by Eric Blake.
45375
45376 2009-09-16  Jim Meyering  <meyering@redhat.com>
45377
45378         posixtm-tests: make T const-correct; add a test case
45379         * tests/test-posixtm.c (T): Declare const.
45380         Add a test for -(2^31+1).
45381         Remove useless can-succeed-only-in-2002 test.
45382
45383         posixtm-tests: adjust the sole failing test
45384         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45385         expected output matches what mktime now produces.  Cross-checked via
45386         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45387
45388         posixtm: move #ifdef'd tests into a new module
45389         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45390         * tests/test-posixtm.c: ... this new file.
45391         * modules/posixtm-tests: New module.
45392
45393 2009-09-19  Eric Blake  <ebb9@byu.net>
45394
45395         openat: simplify use of at-func.c
45396         * lib/at-func.c (includes): Include prerequisites here, to
45397         simplify requirements on client files.
45398         * lib/openat-priv.h: Add double-inclusion guard.
45399         * lib/faccessat.c (includes): Simplify.
45400         * lib/fchmodat.c (includes): Likewise.
45401         * lib/fchownat.c (includes): Likewise.
45402         * lib/mkdirat.c (includes): Likewise.
45403         * lib/mkfifoat.c (includes): Likewise.
45404         * lib/symlinkat.c (includes): Likewise.
45405
45406         openat: allow return of fd 0
45407         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45408         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45409         unistd-safer.
45410         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45411         <fcntl.h>; this module does not leak fds.
45412         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45413         must be allowed to return 0, leaving openat_safer to add the
45414         safety.
45415         (openat_permissive): Avoid writing to just-opened fd 2 if
45416         restoring the current directory fails.
45417         * lib/openat-die.c (openat_restore_fail): Add comment.
45418         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45419         (save_cwd): Guarantee safe fd, but without use of open_safer.
45420         * tests/test-openat.c: New test.
45421         * modules/openat-tests (Files, Makefile.am): Distribute and build
45422         new file.
45423
45424         relocatable-prog-wrapper: fix build
45425         * modules/relocatable-prog-wrapper (Files): Update name of
45426         canonicalize m4 file, broken on 2009-09-17.
45427         Reported by emad hajjar <aleppos@hotmail.com>.
45428
45429 2009-09-19  Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45432         * lib/safe-alloc.c: Likewise.
45433         Reported by Ian Beckwith <ianb@erislabs.net>.
45434
45435 2009-09-18  Bruno Haible  <bruno@clisp.org>
45436
45437         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45438         Reported by <erobles@sensacd.com.mx>.
45439
45440 2009-09-17  Eric Blake  <ebb9@byu.net>
45441
45442         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45443         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45444         slashes when checking if last component is missing.
45445         * tests/test-canonicalize.c (main): Test this.
45446
45447         canonicalize, canonicalize-lgpl: honor // if distinct from /
45448         * modules/canonicalize (Files): Add double-slash-root.m4.
45449         * modules/canonicalize-lgpl (Files): Likewise.
45450         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45451         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45452         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45453         fallback definition.
45454         (canonicalize_filename_mode): Use it to protect //.
45455         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45456         (__realpath): Likewise.
45457         * tests/test-canonicalize.c (main): Test this.
45458         * tests/test-canonicalize-lgpl.c (main): Likewise.
45459         * modules/canonicalize-tests (Depends-on): Add same-inode.
45460         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45461
45462         canonicalize-lgpl: fix glibc bug with trailing slash
45463         * m4/canonicalize-lgpl.m4: Move contents...
45464         * m4/canonicalize.m4: ...here.
45465         (gl_CANONICALIZE_LGPL): Factor realpath check...
45466         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45467         glibc 2.3.5 bug, fixed 2005-04-27.
45468         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45469         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45470         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45471         * modules/canonicalize-lgpl (Files): Manage file rename.
45472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45473         * modules/stdlib (Makefile.am): Substitute witness.
45474         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45475         is needed.
45476         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45477         replacement is required.
45478         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45479         * doc/glibc-functions/canonicalize_file_name.texi
45480         (canonicalize_file_name): Document this.
45481         * doc/posix-functions/realpath.texi (realpath): Likewise.
45482
45483         canonicalize-lgpl: reject non-directory with trailing slash
45484         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45485         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45486         catches failures in glibc 2.3.5.
45487         * tests/test-canonicalize.c (main): Likewise.
45488
45489         canonicalize-lgpl: use native realpath if it works
45490         * lib/canonicalize-lgpl.c (realpath): Guard with
45491         FUNC_REALPATH_WORKS.
45492         * lib/stdlib.in.h (realpath): Make declaration optional based on
45493         HAVE_REALPATH.
45494         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45495         native realpath works.
45496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45497         * modules/stdlib (Makefile.am): Substitute witness.
45498
45499         canonicalize, canonicalize-lgpl: use <stdlib.h>
45500         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45501         (Include): Mention <stdlib.h>.
45502         (configure.ac): Mention functions we provide.
45503         * modules/canonicalize (configure.ac): Likewise.
45504         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45505         realpath if canonicalize_file_name is missing.
45506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45507         * modules/stdlib (Makefile.am): Substitute witnesses.
45508         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45509         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45510         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45511         * NEWS: Document this.
45512         * doc/glibc-functions/canonicalize_file_name.texi
45513         (canonicalize_file_name): Likewise.
45514         * doc/posix-functions/realpath.texi (realpath): Likewise.
45515         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45516
45517         test-canonicalize: consolidate into single C program
45518         * tests/test-canonicalize.sh: Delete; move setup into...
45519         * tests/test-canonicalize.c (main): ...the program, making it
45520         easier to run in debugger.  Add some tests.
45521         * modules/canonicalize-tests (Files): Remove unused file.
45522         (Depends-on): Add progname.
45523         (configure.ac, Makefile.am): Simplify.
45524
45525         test-canonicalize-lgpl: consolidate into single C program
45526         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45527         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45528         easier to run in debugger.  Add some tests.
45529         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45530         (configure.ac, Makefile.am): Simplify.
45531
45532         canonicalize: avoid resolvepath
45533         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45534         unnecessary checks.
45535         * lib/canonicalize.c (includes): Simplify.
45536         (canonicalize_file_name): Drop resolvepath implementation.
45537         * modules/canonicalize (Depends-on): Drop filenamecat.
45538
45539         canonicalize: don't lose errno
45540         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45541         over calls to free.
45542
45543         canonicalize: simplify errno handling
45544         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45545         assignment.
45546
45547         canonicalize, canonicalize-lgpl: update module dependencies
45548         * modules/canonicalize (Depends-on): Add extensions, lstat,
45549         pathmax, stdlib.
45550         (Files): Drop pathmax.h.
45551         (configure.ac): Adjust macro name.
45552         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45553         lstat, stdlib, sys_stat.
45554         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45555         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45556         extensions.
45557         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45558         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45559         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45560         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45561         declaration, if available.
45562         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45563         we can rely on the readlink module.
45564         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45565         (includes): Use <unistd.h> unconditionally.
45566
45567 2009-09-17  Eric Blake  <ebb9@byu.net>
45568
45569         maint: make Include sections of modules consistent
45570         * modules/alloca: Use only header name; no need to list #include.
45571         * modules/alloca-opt: Likewise.
45572         * modules/arpa_inet: Likewise.
45573         * modules/canon-host: Likewise.
45574         * modules/configmake: Likewise.
45575         * modules/dirent: Likewise.
45576         * modules/eealloc: Likewise.
45577         * modules/environ: Likewise.
45578         * modules/fchdir: Likewise.
45579         * modules/fcntl: Likewise.
45580         * modules/fcntl-h: Likewise.
45581         * modules/gethrxtime: Likewise.
45582         * modules/gettime: Likewise.
45583         * modules/ignore-value: Likewise.
45584         * modules/inet_ntop: Likewise.
45585         * modules/inet_pton: Likewise.
45586         * modules/inttypes: Likewise.
45587         * modules/isnand-nolibm: Likewise.
45588         * modules/isnanf-nolibm: Likewise.
45589         * modules/mbchar: Likewise.
45590         * modules/mbfile: Likewise.
45591         * modules/mbiter: Likewise.
45592         * modules/mbuiter: Likewise.
45593         * modules/netdb: Likewise.
45594         * modules/netinet_in: Likewise.
45595         * modules/nproc: Likewise.
45596         * modules/pagealign_alloc: Likewise.
45597         * modules/poll: Likewise.
45598         * modules/printf-frexp: Likewise.
45599         * modules/pthread: Likewise.
45600         * modules/putenv: Likewise.
45601         * modules/random_r: Likewise.
45602         * modules/relocatable-prog: Likewise.
45603         * modules/search: Likewise.
45604         * modules/select: Likewise.
45605         * modules/selinux-h: Likewise.
45606         * modules/settime: Likewise.
45607         * modules/signal: Likewise.
45608         * modules/size_max: Likewise.
45609         * modules/socklen: Likewise.
45610         * modules/ssize_t: Likewise.
45611         * modules/stdarg: Likewise.
45612         * modules/stdbool: Likewise.
45613         * modules/stddef: Likewise.
45614         * modules/stdint: Likewise.
45615         * modules/stdio: Likewise.
45616         * modules/stdlib: Likewise.
45617         * modules/string: Likewise.
45618         * modules/strings: Likewise.
45619         * modules/sys_file: Likewise.
45620         * modules/sys_ioctl: Likewise.
45621         * modules/sys_select: Likewise.
45622         * modules/sys_socket: Likewise.
45623         * modules/sys_stat: Likewise.
45624         * modules/sys_time: Likewise.
45625         * modules/sys_times: Likewise.
45626         * modules/sys_utsname: Likewise.
45627         * modules/sys_wait: Likewise.
45628         * modules/sysexits: Likewise.
45629         * modules/time: Likewise.
45630         * modules/times: Likewise.
45631         * modules/tmpfile: Likewise.
45632         * modules/trim: Likewise.
45633         * modules/unistd: Likewise.
45634         * modules/wchar: Likewise.
45635         * modules/wctype: Likewise.
45636
45637 2009-09-17  Bruno Haible  <bruno@clisp.org>
45638
45639         Make getdate.y compile on QNX and NetBSD 5 / i386.
45640         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45641         TIME_T_FITS_IN_LONG_INT.
45642         * lib/getdate.y (long_time_t): New type.
45643         (relative_time): Change type of 'seconds' field to long_time_t.
45644         (get_date): Update types of local variables. Check against overflow
45645         during conversion from long_time_t to time_t.
45646         Reported by Matt Kraai <kraai@ftbfs.org>
45647         and Hasso Tepper <hasso@netbsd.org>.
45648
45649 2009-09-17  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/COPYING: Update copyright years.
45652         * modules/README: Likeiwse.
45653         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45654         Reported by Ian Beckwith <ianb@erislabs.net>.
45655
45656 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45657
45658         * users.txt: Update references for gnuit package.
45659
45660 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45661
45662         * m4/getdelim.m4: Fix typo in copyright line.
45663
45664 2009-09-17  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/atoll.c: Use the standard header with GPL copyright.
45667         * lib/argz.in.h: Likewise.
45668         * lib/glob.c: Likewise.
45669         * lib/glob-libc.h: Likewise.
45670         * lib/random_r.c: Likewise.
45671         * lib/siglist.h: Likewise.
45672         * lib/strsignal.c: Likewise.
45673         Reported by Ian Beckwith <ianb@erislabs.net>.
45674
45675 2009-09-17  Eric Blake  <ebb9@byu.net>
45676
45677         rmdir: ensure correct dependency order
45678         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45679
45680 2009-09-17  Bruno Haible  <bruno@clisp.org>
45681
45682         Disable assertion that fails on NetBSD 5 / i386.
45683         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45684         Reported by Sam Steingold <sds@gnu.org>
45685         and Hasso Tepper <hasso@netbsd.org>.
45686
45687 2009-09-16  Eric Blake  <ebb9@byu.net>
45688
45689         unlinkdir: port to mingw
45690         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45691         on which no one can unlink a directory.
45692
45693         stdlib: sort witness names
45694         * modules/stdlib (Makefile.am): Sort replacements.
45695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45696         * lib/stdlib.in.h: Likewise.
45697
45698         parse-duration-tests: avoid link failure
45699         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45700         LIBINTL.
45701         Reported by Tom G. Christensen.
45702
45703         openat-tests: ensure unlinkat behaves like rmdir
45704         * tests/test-rmdir.c (main): Factor guts...
45705         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45706         * modules/rmdir-tests (Files): Ship new file.
45707         * modules/openat-tests: New test.
45708         * tests/test-unlinkat.c: Likewise.
45709
45710         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45711         * modules/rmdir-errno (Status, Notice): Now obsolete.
45712
45713         rmdir: work around cygwin 1.5.x and mingw bugs
45714         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45715         * lib/rmdir.c (rmdir): Work around it.
45716         * modules/rmdir (Status, Notice): No longer obsolete.
45717         (Files): Add dos.m4.
45718         (Depends-on): Add unistd.
45719         (configure.ac): Set witnesses.
45720         (License): Relax to LGPLv2+.
45721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45722         * modules/unistd (Makefile.am): Substitute witnesses.
45723         * lib/unistd.in.h (rmdir): Declare replacement.
45724         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45725         * modules/rmdir-tests: New tests.
45726         * tests/test-rmdir.c: Likewise.
45727
45728 2009-09-15  Eric Blake  <ebb9@byu.net>
45729
45730         fchdir: improve use of replacement functions
45731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45733         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45734         REPLACE_CLOSEDIR.
45735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45736         * modules/sys_stat (Makefile.am): Substitute correct witness.
45737         * modules/dirent (Makefile.am): Likewise.
45738         * modules/unistd (Makefile.am): Likewise.
45739         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45740         * lib/unistd.in.h (dup): Likewise.
45741         * lib/sys_stat.in.h (fstat): Likewise.
45742
45743         maint: ignore gnulib-tool temp files
45744         * .gitignore: Ignore files created during gnulib-tool --test.
45745
45746 2009-09-13  Jim Meyering  <meyering@redhat.com>
45747
45748         posixtm: don't reject a time that specify "60" as the number of seconds
45749         * lib/posixtm.c (posixtime): The code to reject invalid dates
45750         would also reject a time specified with the .60 suffix.
45751         But POSIX allows that, in order to accommodate leap seconds.
45752         So don't reject it.
45753         (main): Adjust tests accordingly.
45754         * modules/posixtm (Depends-on): Add stpcpy.
45755
45756 2009-09-11  Jim Meyering  <meyering@redhat.com>
45757
45758         announce-gen: include [$release_type] in emitted Subject:
45759         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45760         e.g., [stable] in the emitted Subject: line.
45761
45762 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45763
45764         Remove obsolete macros from several modules.
45765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45766         obsolete Autoconf macros with their modern counterparts.
45767         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45768         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45770         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45774         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45775         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45776         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45777         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45779         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45780         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45781         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45783         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45784         * m4/time_r.m4 (gl_TIME_R): Likewise.
45785         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45786         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45787         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45788
45789         Fix copyright header in build-aux scripts.
45790         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45791         recommendation.
45792         * build-aux/ncftpput-ftp: Likewise.
45793         * build-aux/update-copyright: Likewise.
45794
45795 2009-09-09  Eric Blake  <ebb9@byu.net>
45796
45797         test-link: allow Linux choice of errno
45798         * tests/test-link.c (main): Relax test for alternate error.
45799
45800         strndup: fix improper m4 caching
45801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45802         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45803         (gl_PREREQ_STRNDUP): Delete.
45804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45805         * modules/string (Makefile.am): Substitute it.
45806         * lib/string.in.h (strndup): Modernize prototype.
45807
45808         getcwd: port to mingw
45809         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45810         different from the POSIX assumptions made throughout the getcwd
45811         module; fortunately, the mingw getcwd does not need replacement.
45812         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45813         * modules/getcwd-tests: New test.
45814         * tests/test-getcwd.c: Likewise.
45815
45816         link: fix platform bugs
45817         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45818         * lib/link.c (link): Work around them.  Fix related mingw bug.
45819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45820         * modules/unistd (Makefile.am): Substitute it.
45821         * lib/unistd.in.h (link): Declare replacement.
45822         * doc/posix-functions/link.texi (link): Document this.
45823         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45824
45825         test-link: consolidate into single C program, test more cases
45826         * tests/test-link.sh: Delete.
45827         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45828         at least Cygwin and Solaris.
45829         * modules/link-tests (Files): Remove unused file.
45830         (Depends-on): Add errno, sys_stat.
45831         (Makefile.am): Simplify.
45832
45833 2009-09-08  Bruno Haible  <bruno@clisp.org>
45834
45835         Work around towlower, towupper bug on mingw.
45836         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45837         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45838         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45839         * doc/posix-functions/towupper.texi: Likewise.
45840         Reported by Eric Blake.
45841
45842 2009-09-08  Jim Meyering  <meyering@redhat.com>
45843
45844         build: don't try to run autoheader if we don't use it
45845         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45846         is not used in configure.ac.
45847
45848 2009-09-08  Eric Blake  <ebb9@byu.net>
45849
45850         euidaccess: fix compilation error
45851         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45852
45853         rawmemchr: relax license
45854         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45855         okay.
45856         Reported by Jim Meyering.
45857
45858         mkfifoat: new module
45859         * modules/mkfifoat: New file.
45860         * lib/mkfifoat.c: Likewise.
45861         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45863         * modules/sys_stat (Makefile.am): Use them.
45864         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45865         * MODULES.html.sh (File system functions): Mention module.
45866         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45867         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45868         * modules/mkfifoat-tests: New test.
45869         * tests/test-mkfifoat.c: Likewise.
45870
45871         strchrnul: relax license
45872         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45873         okay.
45874         Reported by Jim Meyering.
45875
45876 2009-09-08  Eric Blake  <ebb9@byu.net>
45877
45878         fstatat: fix compilation on Solaris
45879         * lib/fstatat.c (includes): Add fcntl.h.
45880         Reported by Pádraig Brady.
45881
45882 2009-09-07  Eric Blake  <ebb9@byu.net>
45883
45884         rename: modernize replacement
45885         * modules/rename (Depends-on): Add stdio.
45886         (configure.ac): Declare witness.
45887         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45888         stdio take care of replacement.
45889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45890         * modules/stdio (Makefile.am): Substitute them.
45891         * lib/stdio.in.h (rename): Declare replacement.
45892         * lib/rename.c (includes): Allow cross-compilation to non-windows
45893         machines.
45894         * doc/posix-functions/rename.texi (rename): Improve
45895         documentation.
45896
45897         stdio: sort witness names
45898         * modules/stdio (Makefile.am): Sort replacements.
45899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45900         * lib/stdio.in.h: Likewise.
45901
45902         getcwd: minor cleanups
45903         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45904         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45905
45906         openat: provide more convenience names
45907         * modules/faccessat (configure.ac): Add C witness.
45908         * lib/unistd.in.h (readlinkat): Fix typo.
45909         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45910         convenience wrappers.
45911         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45912         wrappers in syntax checks.
45913
45914 2009-09-06  Eric Blake  <ebb9@byu.net>
45915
45916         doc: fix comments in recent patches
45917         * lib/faccessat.c: Mention correct function.
45918         * lib/fchmodat.c: Likewise.
45919         * lib/fchownat.c: Likewise.
45920         * lib/symlinkat.c: Likewise.
45921         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45922         constants.
45923
45924         faccessat, symlinkat: continue cleanup of previous patch
45925         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45926         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45927         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45929         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45930         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45931         set.
45932
45933 2009-09-06  Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45936         (fstatat): Declare if GNULIB_FSTATAT is set.
45937         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45938         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45939         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45940         * modules/fcntl-h (Files): Remove m4/openat.m4.
45941         * modules/sys_stat (Files): Remove m4/openat.m4.
45942         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45943         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45944         * modules/unistd (Files): Remove m4/openat.m4.
45945         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45946         GNULIB_OPENAT.
45947         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45948         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45950         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45951         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45952         gl_OPENAT_DEFAULTS.
45953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45954         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45955         Don't require gl_OPENAT_DEFAULTS.
45956         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45957         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45958         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45959         (gl_OPENAT_DEFAULTS): Remove macro.
45960
45961 2009-09-06  Bruno Haible  <bruno@clisp.org>
45962
45963         * modules/openat (configure.ac): Remove unneeded witness.
45964
45965 2009-09-06  Bruno Haible  <bruno@clisp.org>
45966
45967         Set errno to ENOSYS when a function is entirely unsupported.
45968         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45969         EOPNOTSUPP.
45970         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45971         * modules/chown (Depends-on): Remove errno.
45972
45973 2009-09-06  Bruno Haible  <bruno@clisp.org>
45974
45975         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45976
45977 2009-09-06  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45980
45981 2009-09-06  Ben Pfaff  <blp@gnu.org>
45982             Bruno Haible  <bruno@clisp.org>
45983
45984         Work around a glibc bug in strtok_r.
45985         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45986         Undefine if UNDEFINE_STRTOK_R is set.
45987         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45989         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45990         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45991         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45992         UNDEFINE_STRTOK_R.
45993         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45994
45995 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45996
45997         exclude: minor fix
45998         * lib/exclude.c: Include wctype.h
45999
46000 2009-09-06  Akim Demaille  <demaille@gostai.com>
46001
46002         bootstrap: improve error message
46003         * build-aux/bootstrap (find_tool): Upon failure, report the list
46004         of candidates.
46005         Honor the initial value of the envvar.
46006
46007 2009-09-05  Eric Blake  <ebb9@byu.net>
46008
46009         symlinkat: new module
46010         * modules/symlinkat: New file.
46011         * lib/symlinkat.c: Likewise.
46012         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46014         * modules/unistd (Makefile.am): Use them.
46015         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46016         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46017         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46018         * MODULES.html.sh (File system functions): Mention module.
46019         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46020         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46021         * modules/symlinkat-tests: New test.
46022         * tests/test-symlinkat.c: Likewise.
46023
46024         test-openat-safer: add more checks
46025         * tests/test-openat-safer.c (main): Check more code paths.
46026
46027 2009-09-05  Jim Meyering  <meyering@redhat.com>
46028
46029         syntax-check: detect unnecessary inclusion of openat.h
46030         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46031
46032 2009-09-05  Bruno Haible  <bruno@clisp.org>
46033
46034         Support towlower, towupper.
46035         * doc/posix-functions/towlower.texi: Mention module wctype.
46036         * doc/posix-functions/towupper.texi: Likewise.
46037         * lib/wctype.in.h (towlower, towupper): New functions.
46038         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46039         (ASSERT): New macro.
46040         (e): New variable.
46041         (main): Test also towlower, towupper. Test WEOF argument.
46042         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46043
46044 2009-09-05  Bruno Haible  <bruno@clisp.org>
46045
46046         Fix conversion behaviour when the input is invalid.
46047         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46048         mark occurring in first pass of indirect conversion.
46049         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46050         input.
46051         Found by clang's static analyzer.
46052
46053 2009-09-05  Bruno Haible  <bruno@clisp.org>
46054
46055         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46056         where direct conversion is possible.
46057
46058 2009-09-04  Eric Blake  <ebb9@byu.net>
46059
46060         openat: fail with ENOENT on empty name
46061         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46062         buffer.
46063
46064         link-follow: fix logic bug in prior patch
46065         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46066         reversed sense of yes and no in prior patch.  Avoid confusing
46067         compilation failure with desired semantics.
46068
46069         link-follow: accommodate mingw and cross-compilation
46070         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46071         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46072         cross-compilation results to -1, to make linkat easier to
46073         implement when cross-compiling.  Trivially support mingw.
46074         * modules/link-follow (configure.ac): Call new name.
46075         * NEWS: Mention this.
46076
46077 2009-09-03  Eric Blake  <ebb9@byu.net>
46078
46079         faccessat: compile replacement
46080         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46081         needed.
46082
46083         fts: fix compilation error
46084         * lib/fts.c (includes): Re-add "openat.h", for
46085         openat_needs_fchdir.
46086
46087         faccessat: new module
46088         * modules/faccessat: New file.
46089         * lib/faccessat.c: Likewise.
46090         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46092         * modules/unistd (Makefile.am): Use it.
46093         * lib/unistd.in.h (faccessat): Declare it.
46094         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46095         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46096         * MODULES.html.sh (File system functions): Mention it.
46097         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46098         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46099
46100         euidaccess: prefer POSIX over non-standard implementation
46101         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46102         * lib/euidaccess.c (euidaccess): Use it if available.
46103
46104         openat: make template easier to use
46105         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46106         AT_FUNC_F2 to be undefined.
46107         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46108         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46109         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46110         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46111         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46112         Likewise.
46113         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46114         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46115         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46116         Likewise.
46117
46118         openat: declare in POSIX headers
46119         * NEWS: Mention this.
46120         * modules/openat (configure.ac): Declare witnesses.
46121         (Depends-on): Add fcntl-h, sys_stat, unistd.
46122         (Include): Mention correct headers.
46123         * modules/fcntl-h (Depends-on): Add link-warning.
46124         (Files): Add openat.m4.
46125         (Makefile.am): Substitute witnesses.
46126         * modules/sys_stat (Files, Makefile.am): Likewise.
46127         * modules/unistd (Files, Makefile.am): Likewise.
46128         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46129         (gl_OPENAT_DEFAULTS): New macro.
46130         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46133         (SYS_STAT_H): Remove unused variable.
46134         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46135         * lib/fcntl--.h (includes): Remove unneeded header.
46136         * lib/openat-safer.c (includes): Likewise.
46137         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46138         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46139         appropriate headers.
46140         (__OPENAT_PREFIX): Delete.
46141         * lib/fcntl.in.h (openat): Provide declaration.
46142         (AT_FDCWD): Fix Solaris bug.
46143         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46144         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46145         * lib/fchmodat.c (includes):  Adjust to find declaration.
46146         * lib/fchownat.c (includes): Likewise.
46147         * lib/mkdirat.c (includes): Likewise.
46148         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46149         still visible.
46150
46151 2009-09-02  Eric Blake  <ebb9@byu.net>
46152
46153         errno: use consistently
46154         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46155         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46156         * lib/canonicalize.c (ELOOP): Likewise.
46157         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46158         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46159         * lib/lchown.c (EOPNOTSUPP): Likewise.
46160         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46161         * lib/savewd.c (ESTALE): Likewise.
46162         * lib/settime.c (ENOSYS): Likewise.
46163         * lib/utimens.c (ENOSYS): Likewise.
46164         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46165         * lib/chdir-safer.c (ELOOP): Likewise.
46166         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46167         * modules/c-stack (Depends-on): Add errno.
46168         * modules/canonicalize (Depends-on): Likewise.
46169         * modules/chdir-safer (Depends-on): Likewise.
46170         * modules/fdopendir (Depends-on): Likewise.
46171         * modules/inet_ntop (Depends-on): Likewise.
46172         * modules/inet_pton (Depends-on): Likewise.
46173         * modules/lchown (Depends-on): Likewise.
46174         * modules/openat (Depends-on): Likewise.
46175         * modules/savewd (Depends-on): Likewise.
46176         * modules/settime (Depends-on): Likewise.
46177         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46178
46179         fts: avoid leaking fds
46180         * modules/fts (Depends-on): Add cloexec.
46181         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46182         flag.
46183
46184         fts: make directory fds more robust
46185         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46186         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46187
46188         backupfile, chdir-long, fts, savedir: make safer
46189         * lib/backupfile.c (includes): Use "dirent--.h", since
46190         numbered_backup can write to stderr during readdir.
46191         * lib/savedir.c (includes): Likewise.
46192         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46193         emulation can write to stderr on failure.
46194         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46195         * lib/getcwd.c: Document why opendir_safer is unused.
46196         * lib/glob.c: Likewise.
46197         * lib/scandir.c: Likewise.
46198         * lib/openat-proc.c: Likewise, for open_safer.
46199         * modules/backupfile (Depends-on): Add dirent-safer.
46200         * modules/savedir (Depends-on): Likewise.
46201         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46202         * modules/chdir-long (Depends-on): Add openat-safer.
46203
46204         openat-safer: new module
46205         * modules/openat-safer: New file.
46206         * lib/openat-safer.c: Likewise.
46207         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46208         * lib/fcntl-safer.h (openat_safer): Declare.
46209         * lib/fcntl--.h (openat): Override.
46210         * MODULES.html.sh (File descriptor based I/O): Mention it.
46211         * lib/openat.h: Add double-inclusion guards.
46212         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46213         "fcntl--.h", so we can implement openat.
46214         * modules/openat-safer-tests: New test.
46215         * tests/test-openat-safer.c: New file.
46216
46217         dirent-safer: new module
46218         * modules/dirent-safer: New file.
46219         * lib/dirent--.h: Likewise.
46220         * lib/dirent-safer.h: Likewise.
46221         * lib/opendir-safer.c: Likewise.
46222         * m4/dirent-safer.m4: Likewise.
46223         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46224         * modules/dirent-safer-tests: New test.
46225         * tests/test-dirent-safer.c: New file.
46226         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46227
46228         fdopendir: optimize on mingw
46229         * lib/unistd.in.h (_gl_directory_name): New prototype.
46230         * lib/fchdir.c (_gl_directory_name): Implement it.
46231         (fchdir): Use it to simplify implementation.
46232         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46233         fchdir, when available, to avoid calling [f]chdir().
46234
46235         fdopendir: split into its own module
46236         * lib/openat.c (fdopendir): Move...
46237         * lib/fdopendir.c: ...into new file.
46238         * modules/fdopendir: New module.
46239         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46240         * modules/openat (Depends-on): Add fdopendir.
46241         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46242         fdopendir here.
46243         * modules/savedir (Depends-on): Only need fdopendir, not full
46244         openat.
46245         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46246         * lib/openat.h (fdopendir): Drop prototype.
46247         * lib/dirent.in.h (fdopendir): Provide prototype.
46248         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46249         * modules/dirent (Makefile.am): Substitute them.
46250         * MODULES.html.sh (File system functions): Mention it.
46251         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46252         * modules/fdopendir-tests: New file.
46253         * tests/test-fdopendir.c: Likewise.
46254
46255         fchdir: use more consistent macro convention
46256         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46257         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46258         REPLACE_FCHDIR, rather than relying on config.h macros.
46259         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46260         inside a single make-time REPLACE_FCHDIR block, rather than using
46261         the config.h FCHDIR_REPLACEMENT.
46262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46263         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46264         Manage fstat replacement.
46265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46266         REPLACE_FCHDIR.
46267         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46268         (Makefile.am): Substitute REPLACE_FCHDIR.
46269         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46270         FCHDIR_REPLACEMENT.
46271         * lib/dup-safer.c (dup_safer): Likewise.
46272         * lib/dup2.c (rpl_dup2): Likewise.
46273         * lib/dup3.c (rpl_dup3): Likewise.
46274         * lib/open.c (rpl_open): Likewise.
46275
46276         fchdir: simplify error handling, and support dup3
46277         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46278         stdbool, malloc-posix, realloc-posix.
46279         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46280         (ensure_dirs_slot): Return false on allocation failure.
46281         (rpl_dup2): Delete.
46282         (_gl_register_dup): New function.
46283         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46284         (_gl_register_fd): Close fd on allocation failure.
46285         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46286         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46287         prototype.
46288         (rpl_dup2_fchdir): Delete prototype.
46289         * lib/open.c (open): Update caller.
46290         * lib/dup2.c (dup2): Track fchdir metadata.
46291         * lib/dup3.c (dup3): Likewise.
46292         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46294
46295 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46296
46297         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46298         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46299         don't pass arguments to AC_OUTPUT.
46300
46301 2009-09-02  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/mkdtemp (License): Relicense under LGPLv2+.
46304         Reported by Paolo Bonzini.
46305
46306 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46307
46308         Replace uses of obsolete autoconf macros in Jim's modules.
46309         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46310         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46311         can evoke a warning from autoconf when run with -Wobsolete
46312         enabled.  They were declared obsolete for good reasons (see
46313         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46314         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46315         should not continue using the deprecated macros.
46316         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46317         obsolete Autoconf macros with modern counterparts.
46318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46319         * m4/dos.m4 (gl_AC_DOS): Likewise.
46320         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46322         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46323         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46324         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46326         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46327         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46328         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46329         Likewise.
46330         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46331         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46332         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46333         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46334         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46335         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46336
46337 2009-09-01  Eric Blake  <ebb9@byu.net>
46338
46339         fchdir: fix off-by-one bug in previous patch
46340         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46341         (_gl_unregister_fd): Delete useless if.
46342
46343 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46344
46345         maint.mk: sort the list of syntax-check rules
46346         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46347         easier to get a sense of progress when the rules are run sequentially
46348         and take a long time.
46349
46350 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46351
46352         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46353         * modules/netinet_in: Likewise.
46354         * modules/sys_file: Likewise.
46355         * modules/sys_ioctl: Likewise.
46356         * modules/sys_select: Likewise.
46357         * modules/sys_socket: Likewise.
46358         * modules/sys_stat: Likewise.
46359         * modules/sys_time: Likewise.
46360         * modules/sys_times: Likewise.
46361         * modules/sys_utsname: Likewise.
46362         * modules/sys_wait: Likewise.
46363
46364 2009-09-01  Jim Meyering  <meyering@redhat.com>
46365
46366         fts: help ensure that return values are not ignored
46367         * lib/fts_.h (__GNUC_PREREQ): Define.
46368         (__attribute_warn_unused_result__): Define.
46369         (fts_children, fts_close, fts_open, fts_read): Declare with
46370         __attribute_warn_unused_result__.
46371
46372         fts: fts_close now fails also when closing a dir file descriptor fails
46373         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46374         and propagate to caller, along with errno.
46375
46376         announce-gen: correct formatting in --help output
46377         * build-aux/announce-gen (usage): Move the one-line description in
46378         --help output "up", to where it belongs, just after Usage:.
46379
46380 2009-08-31  Eric Blake  <ebb9@byu.net>
46381
46382         fchdir: port to mingw
46383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46384         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46385         opened, then use a substitute.
46386         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46387         replacement.
46388         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46389         (_gl_register_fd): No need to check stat if open already filters
46390         all directories.
46391         (fchdir): Fix error condition to match POSIX.
46392         * modules/fchdir (Depends-on): Add sys_stat.
46393         * doc/posix-functions/open.texi (open): Document the limitation.
46394         * modules/fchdir-tests: New file.
46395         * tests/test-fchdir.c: Likewise.
46396
46397         canonicalize: allow cross-testing from cygwin to mingw
46398         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46399         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46400         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46401         Likewise.
46402         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46403         target does not support symlinks.
46404         * tests/test-canonicalize-lgpl.sh: Likewise.
46405
46406         chown: avoid compilation warning on mingw
46407         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46408         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46409         mingw.
46410         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46411         * modules/chown (Depends-on): Add errno.
46412
46413 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46414
46415         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46416         command.
46417
46418 2009-08-31  Jim Meyering  <meyering@redhat.com>
46419
46420         canonicalize: remove useless initialization
46421         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46422         initialization of local, "end".
46423
46424 2009-08-30  Bruno Haible  <bruno@clisp.org>
46425
46426         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46427         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46428         ENOSYS.
46429
46430 2009-08-30  Bruno Haible  <bruno@clisp.org>
46431
46432         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46433         /usr/xpg4/bin/tr when it exists.
46434         * tests/test-pipe-filter-gi1.sh: Likewise.
46435
46436 2009-08-30  Bruno Haible  <bruno@clisp.org>
46437
46438         Work around deficient /usr/bin/id program on Solaris.
46439         * tests/test-file-has-acl.sh (ID): New variable.
46440         * tests/test-set-mode-acl.sh (ID): Likewise.
46441         * tests/test-copy-acl.sh (ID): Likewise.
46442         * tests/test-copy-file.sh (ID): Likewise.
46443
46444 2009-08-30  Bruno Haible  <bruno@clisp.org>
46445
46446         New module 'xstriconveh'.
46447         * lib/xstriconveh.h: New file.
46448         * lib/xstriconveh.c: New file.
46449         * modules/xstriconveh: New file.
46450
46451 2009-08-30  Bruno Haible  <bruno@clisp.org>
46452
46453         Make it easier to use mem_cd_iconveh.
46454         * lib/striconveh.h (iconveh_t): New type.
46455         (iconveh_open, iconveh_close): New declarations.
46456         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46457         with a single 'const iconveh_t *' argument.
46458         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46459         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46460         with a single 'const iconveh_t *' argument.
46461         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46462         * tests/test-striconveh.c (main): Update.
46463         * NEWS: Mention the change.
46464
46465 2009-08-30  Bruno Haible  <bruno@clisp.org>
46466
46467         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46468         problem.
46469
46470 2009-08-30  Bruno Haible  <bruno@clisp.org>
46471
46472         Work around iconv_open problem on Solaris.
46473         * lib/iconv_open-solaris.gperf: New file.
46474         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46475         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46476         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46477         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46478         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46479         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46480
46481 2009-08-29  Jim Meyering  <meyering@redhat.com>
46482
46483         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46484         * top/maint.mk (cvs-check): Remove target; it was just an alias
46485         to the better-named vc-diff-check.
46486         (maintainer-distcheck): Remove rule.  It was used only from
46487         the (alpha/beta/major) target, and all of its commands but one
46488         were coreutils-specific.
46489         (vc-dist): Remove rule.
46490         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46491         Run vc-diff-check, not vc-dist.
46492         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46493
46494 2009-08-27  Bruno Haible  <bruno@clisp.org>
46495
46496         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46497         of 0.
46498
46499 2009-08-27  Bruno Haible  <bruno@clisp.org>
46500
46501         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46502         compilers.
46503         * doc/func.texi: Document the SunPRO C bug.
46504
46505 2009-08-27  Bruno Haible  <bruno@clisp.org>
46506
46507         Fix link error on Solaris.
46508         * tests/test-parse-duration.c (xstrdup): Remove function.
46509
46510 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46511
46512         ignore-value: handle pointer types, too
46513         * lib/ignore-value.h (__attribute__): Remove definition.
46514         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46515         of a more concise and more-often effective "(void) i" statement.
46516         (ignore_ptr): New function to suppress warnings from functions that
46517         return pointers, and to make it explicit that one function doesn't
46518         handle all cases.
46519
46520 2009-08-25  Bruno Haible  <bruno@clisp.org>
46521
46522         dup2: work around a Linux bug.
46523         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46524         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46525         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46526         Reported by Simon Josefsson.
46527
46528 2009-08-25  Jim Meyering  <meyering@redhat.com>
46529
46530         libguestfs uses gnulib
46531         * users.txt: Add libguestfs.
46532
46533 2009-08-24  Eric Blake  <ebb9@byu.net>
46534
46535         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46536         * lib/pipe2.c (includes): Add binary-io.h.
46537         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46538
46539 2009-08-24  Bruno Haible  <bruno@clisp.org>
46540
46541         Tolerate declared but missing accept4 syscall.
46542         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46543         available.
46544         * lib/sys_socket.in.h (accept4): If the function is already present,
46545         override it.
46546         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46547         * modules/accept4 (Makefile.am): Compile accept4.c always.
46548         Reported by Paolo Bonzini and Eric Blake.
46549
46550 2009-08-23  Bruno Haible  <bruno@clisp.org>
46551
46552         New module 'accept4'.
46553         * lib/sys_socket.in.h (accept4): New declaration.
46554         * lib/accept4.c: New file.
46555         * m4/accept4.m4: New file.
46556         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46557         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46558         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46559         HAVE_ACCEPT4.
46560         * modules/accept4: New file.
46561         * doc/glibc-functions/accept4.texi: Mention the new module.
46562
46563 2009-08-24  Jim Meyering  <meyering@redhat.com>
46564
46565         progname: also set global program_invocation_name, when possible
46566         Before this change, a libtool-enabled program that calls glibc's
46567         error function would report the program name as
46568         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46569         * modules/progname (configure.ac): Check for a declaration of
46570         program_invocation_name.
46571         * lib/progname.c:  Include <errno.h>.
46572         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46573         Set program_invocation_name.
46574
46575 2009-08-23  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/dup3.c: Include <string.h>.
46578
46579 2009-08-23  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46582         * lib/pipe2.c (pipe2): Likewise.
46583         Suggested by Eric Blake.
46584
46585 2009-08-23  Bruno Haible  <bruno@clisp.org>
46586
46587         Tolerate declared but missing dup3 syscall.
46588         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46589         * lib/unistd.in.h (dup3): If the function is already present,
46590         override it.
46591         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46592         * modules/dup3 (Makefile.am): Compile dup3.c always.
46593         Reported by Paolo Bonzini.
46594
46595 2009-08-23  Bruno Haible  <bruno@clisp.org>
46596
46597         Tolerate declared but missing pipe2 syscall.
46598         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46599         available.
46600         * lib/unistd.in.h (pipe2): If the function is already present,
46601         override it.
46602         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46603         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46604         Reported by Paolo Bonzini.
46605
46606 2009-08-23  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/pipe2.c (pipe2): Move #ifs inside function.
46609
46610 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46611
46612         quotearg: document limitations of quote_these_too
46613         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46614         those limitations are created.
46615         * lib/quotearg.h (set_char_quoting): Document that digits and
46616         letters that are special after backslash are not permitted.
46617         (quotearg_char): Cross-reference set_char_quoting documentation.
46618
46619 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46620
46621         quotearg: implement custom_quoting_style
46622         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46623         right_quote fields.
46624         (set_custom_quoting): New public function.
46625         (quotearg_buffer_restyled): Add left_quote and right_quote
46626         arguments, handle them very much like locale quoting, and update
46627         all uses.
46628         (quotearg_n_custom): New public function.
46629         (quotearg_n_custom_mem): New public function.
46630         (quotearg_custom): New public function.
46631         (quotearg_custom_mem): New public function.
46632         * lib/quotearg.h: Prototype and document new public functions.
46633         (enum quoting_style): For escape_quoting_style and
46634         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46635         ignored even though they're otherwise like c_quoting_style.
46636         Add custom_quoting_style member and document with comparison to
46637         clocale_quoting_style.
46638         * tests/test-quotearg.c (custom_quotes): New array.
46639         (custom_results): New array.
46640         (main): Extend to test custom quoting.
46641
46642 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46643
46644         quotearg: fix right quote escaping when it's in quote_these_too
46645         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46646         quote, be sure to prepend only one backslash.
46647         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46648         (main): Test it.
46649
46650 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46651
46652         quotearg-tests: test escaping of embedded locale quotes
46653         * tests/test-quotearg.c (struct result_strings): Add member for
46654         new input.
46655         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46656         (inputs): Add new input.
46657         (results_g): Add expected results.
46658         (flag_results): Likewise.
46659         (locale_results): Likewise.
46660         (compare_strings): Check those.
46661
46662 2009-08-23  Bruno Haible  <bruno@clisp.org>
46663
46664         Tests for module 'dup3'.
46665         * modules/dup3-tests: New file.
46666         * tests/test-dup3.c: New file.
46667
46668         New module 'dup3'.
46669         * lib/unistd.in.h (dup3): New declaration.
46670         * lib/dup3.c: New file.
46671         * m4/dup3.m4: New file.
46672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46673         HAVE_DUP3.
46674         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46675         * modules/dup3: New file.
46676         * doc/glibc-functions/dup3.texi: Mention the new module.
46677
46678 2009-08-23  Bruno Haible  <bruno@clisp.org>
46679
46680         Tweak the dup2 test.
46681         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46682         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46683         the test file is still empty. Fix argument order of lseek.
46684
46685 2009-08-23  Bruno Haible  <bruno@clisp.org>
46686
46687         Avoid test link errors when the modules getopt-gnu, gettext are used.
46688         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46690
46691 2009-08-23  Bruno Haible  <bruno@clisp.org>
46692
46693         Fix getdtablesize() on mingw.
46694         * lib/getdtablesize.c (getdtablesize): Implement differently.
46695         * lib/unistd.in.h (getdtablesize): Improve comment.
46696
46697 2009-08-23  Bruno Haible  <bruno@clisp.org>
46698
46699         New module 'mkostemp'.
46700         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46701         * lib/stdlib.in.h (mksotemp): New declaration.
46702         * lib/mkostemp.c: New file, from glibc with modifications.
46703         * lib/tempname.h (GT_FILE): Remove outdated comment.
46704         (gen_tempname): Add flags argument.
46705         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46706         (__GT_FILE): Map to 1.
46707         (small_open, large_open): Remove macros.
46708         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46709         * lib/mkstemp.c (mkstemp): Update.
46710         * lib/mkdtemp.c (mkdtemp): Likewise.
46711         * m4/mkostemp.m4: New file.
46712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46713         HAVE_MKOSTEMP.
46714         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46715         HAVE_MKOSTEMP.
46716         * modules/mkostemp: New file, based on modules/mkstemp.
46717         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46718         * NEWS: Mention the change.
46719
46720 2009-08-23  Bruno Haible  <bruno@clisp.org>
46721
46722         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46723         Reported by Eric Blake.
46724
46725 2009-08-23  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46728         Reported by Eric Blake.
46729
46730 2009-08-23  Bruno Haible  <bruno@clisp.org>
46731
46732         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46733         * modules/pipe2 (Depends-on): Likewise.
46734
46735 2009-08-23  Eric Blake  <ebb9@byu.net>
46736
46737         fcntl-h: add O_TTY_INIT support
46738         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46739         * tests/test-fcntl-h.c (o): Test it.
46740         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46741
46742         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46743         * modules/fcntl: Move <fcntl.h> header replacement...
46744         * modules/fcntl-h: ...to new name, so as not to collide with
46745         like-named function.
46746         * tests/test-fcntl.c: Rename...
46747         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46748         * modules/fcntl-tests: Rename...
46749         * modules/fcntl-h-tests: ...to this.  Update test file name.
46750         * modules/chdir-long (Depends-on): Update clients.
46751         * modules/chdir-safer (Depends-on): Likewise.
46752         * modules/fcntl-safer (Depends-on): Likewise.
46753         * modules/fts (Depends-on): Likewise.
46754         * modules/mkancesdirs (Depends-on): Likewise.
46755         * modules/mkdir-p (Depends-on): Likewise.
46756         * modules/open (Depends-on): Likewise.
46757         * modules/savewd (Depends-on): Likewise.
46758         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46759         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46760
46761 2009-08-22  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/binary-io (License): Relicense under LGPL.
46764         * modules/pipe2 (License): Likewise.
46765
46766 2009-08-22  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46769         return value.
46770         * lib/pipe-filter-gi.c (filter_init): Likewise.
46771         Reported by Eric Blake.
46772
46773 2009-08-22  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46776         * modules/pipe (Depends-on): Add pipe2.
46777
46778 2009-08-22  Bruno Haible  <bruno@clisp.org>
46779
46780         Tests for module 'pipe2'.
46781         * modules/pipe2-tests: New file.
46782         * tests/test-pipe2.c: New file.
46783
46784         New module 'pipe2'.
46785         * lib/unistd.in.h (pipe2): New declaration.
46786         * lib/pipe2.c: New file.
46787         * m4/pipe2.m4: New file.
46788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46789         HAVE_PIPE2.
46790         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46791         * modules/pipe2: New file.
46792         * doc/glibc-functions/pipe2.texi: Mention the new module.
46793
46794 2009-08-22  Bruno Haible  <bruno@clisp.org>
46795
46796         Reference some new glibc functions.
46797         * doc/glibc-functions/accept4.texi: New file.
46798         * doc/glibc-functions/dup3.texi: New file.
46799         * doc/glibc-functions/mkostemp.texi: New file.
46800         * doc/glibc-functions/pipe2.texi: New file.
46801         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46802         (Glibc sys/socket.h): Refer to accept4.
46803         (Glibc unistd.h): Refer to dup3, pipe2.
46804         Reported by Eric Blake.
46805
46806 2009-08-22  Jim Meyering  <meyering@redhat.com>
46807             Bruno Haible  <bruno@clisp.org>
46808
46809         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46810         This makes it so packages using automake-1.11's silent-rules option
46811         can print e.g., a single "GEN    configmake.h" line, rather than
46812         the 30+ statements that perform the job.  If you want to see the
46813         actual commands, you can still run "make V=1".
46814         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46815         so that make output is abbreviated when those variables are defined
46816         appropriately.
46817         * modules/argz: Likewise.
46818         * modules/arpa_inet: Likewise.
46819         * modules/byteswap: Likewise.
46820         * modules/configmake: Likewise.
46821         * modules/dirent: Likewise.
46822         * modules/errno: Likewise.
46823         * modules/fcntl: Likewise.
46824         * modules/float: Likewise.
46825         * modules/fnmatch: Likewise.
46826         * modules/getopt-posix: Likewise.
46827         * modules/glob: Likewise.
46828         * modules/iconv_open: Likewise.
46829         * modules/inttypes: Likewise.
46830         * modules/localcharset: Likewise.
46831         * modules/locale: Likewise.
46832         * modules/math: Likewise.
46833         * modules/netdb: Likewise.
46834         * modules/netinet_in: Likewise.
46835         * modules/poll: Likewise.
46836         * modules/posix_spawnp-tests: Likewise.
46837         * modules/sched: Likewise.
46838         * modules/search: Likewise.
46839         * modules/selinux-h: Likewise.
46840         * modules/signal: Likewise.
46841         * modules/spawn: Likewise.
46842         * modules/stdarg: Likewise.
46843         * modules/stdbool: Likewise.
46844         * modules/stddef: Likewise.
46845         * modules/stdint: Likewise.
46846         * modules/stdio: Likewise.
46847         * modules/stdlib: Likewise.
46848         * modules/string: Likewise.
46849         * modules/strings: Likewise.
46850         * modules/sys_file: Likewise.
46851         * modules/sys_ioctl: Likewise.
46852         * modules/sys_select: Likewise.
46853         * modules/sys_socket: Likewise.
46854         * modules/sys_stat: Likewise.
46855         * modules/sys_time: Likewise.
46856         * modules/sys_times: Likewise.
46857         * modules/sys_utsname: Likewise.
46858         * modules/sys_wait: Likewise.
46859         * modules/sysexits: Likewise.
46860         * modules/time: Likewise.
46861         * modules/unistd: Likewise.
46862         * modules/wchar: Likewise.
46863         * modules/wctype: Likewise.
46864
46865 2009-08-22  Jim Meyering  <meyering@redhat.com>
46866
46867         announce-gen: detect write failure
46868         * build-aux/announce-gen: Add Coda at end.
46869         Remove equivalent-but-more-verbose block at top.
46870
46871 2009-08-19  Akim Demaille  <demaille@gostai.com>
46872
46873         bootstrap: --help to stdout.
46874         * bootstrap (usage): Don't send --help to stderr.
46875         Use a here doc instead of a long string.
46876
46877 2009-08-21  Eric Blake  <ebb9@byu.net>
46878
46879         test-popen-safer: split from test-popen
46880         * tests/test-popen.c (main): Move...
46881         * tests/test-popen.h: ...into new file.
46882         * tests/test-popen-safer2.c: New file.
46883         * modules/popen-tests (Files): Add test-popen.h.
46884         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46885         Suggested by Bruno Haible.
46886
46887         test-fcntl-safer: split from test-open
46888         * tests/test-open.c (main): Move...
46889         * tests/test-open.h: ...into new file.
46890         * tests/test-fcntl-safer.c: New file.
46891         * modules/open-tests (Files): Add test-open.h.
46892         * modules/fcntl-safer-tests: New file.
46893         Suggested by Bruno Haible.
46894
46895         test-fopen-safer: split from test-fopen
46896         * tests/test-fopen.c (main): Move...
46897         * tests/test-fopen.h: ...into new file.
46898         * tests/test-fopen-safer.c: New file.
46899         * modules/fopen-tests (Files): Add test-fopen.h.
46900         * modules/fopen-safer-tests: New file.
46901         Suggested by Bruno Haible.
46902
46903 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46904
46905         popen-safer: test O_CLOEXEC at run-time.
46906         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46907
46908 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46909
46910         fcntl: move more flags to the header
46911         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46912         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46913         * lib/fcntl.in.h: Do both things here.
46914
46915 2009-08-21  Jim Meyering  <meyering@redhat.com>
46916
46917         consistently remove $@-t before redirecting to it
46918         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46919         * modules/alloca-opt: Likewise.
46920         * modules/byteswap: Likewise.
46921         * modules/fnmatch: Likewise.
46922         * modules/getopt-posix: Likewise.
46923         * modules/glob: Likewise.
46924         * modules/poll: Likewise.
46925         * modules/posix_spawnp-tests: Likewise.
46926         * modules/sys_socket: Likewise.
46927         * modules/sysexits: Likewise.
46928
46929 2009-08-21  Eric Blake  <ebb9@byu.net>
46930
46931         popen: simplify access to original popen
46932         * lib/popen.c (rpl_popen): No need to worry about popen being a
46933         macro.
46934         Reported by Bruno Haible.
46935
46936 2009-08-20  Eric Blake  <ebb9@byu.net>
46937
46938         build: avoid some compiler warnings
46939         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46940         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46941         type.
46942         (new_exclude_segment, excluded_file_pattern_p)
46943         (excluded_file_name_p): Reduce scope.
46944         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46945         old-style declaration.
46946
46947 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46948
46949         * tests/test-exclude1.sh: Handle Windows EOL.
46950         * tests/test-exclude2.sh: Likewise.
46951         * tests/test-exclude3.sh: Likewise.
46952         * tests/test-exclude4.sh: Likewise.
46953         * tests/test-exclude5.sh: Likewise.
46954         * tests/test-exclude6.sh: Likewise.
46955         * tests/test-exclude7.sh: Likewise.
46956
46957 2009-08-19  Akim Demaille  <demaille@gostai.com>
46958
46959         bootstrap: find sha1sum when named gsha1sum.
46960         * bootstrap (find_tool): New.
46961         ($SHA1SUM): New.
46962         Use it.
46963
46964 2009-08-20  Jim Meyering  <meyering@redhat.com>
46965
46966         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46967         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46968         expression that converts "." in a file name to "\." in the resulting
46969         regexp.  Start with a dummy statement, so that prior shell variable
46970         definitions are expanded portably.  Reported by Simon Josefsson.
46971
46972 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46973
46974         Fix polling for writeability of a screen buffer.
46975         * lib/poll.c: Distinguish input and screen buffers for the
46976         Win32 implementation.
46977         * lib/select.c: Likewise.
46978
46979 2009-08-19  Eric Blake  <ebb9@byu.net>
46980
46981         popen-safer: prevent popen from clobbering std descriptors
46982         * modules/popen-safer: New file.
46983         * lib/popen-safer.c: Likewise.
46984         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46985         * lib/stdio--.h (popen): Provide override.
46986         * lib/stdio-safer.h (popen_safer): Provide declaration.
46987         * tests/test-popen.c (includes): Partially test this.
46988         * modules/popen-safer-tests: New file, for more tests.
46989         * tests/test-popen-safer.c: Likewise.
46990         * MODULES.html.sh (file stream based Input/Output): Mention it.
46991
46992         tests: test some of the *-safer modules
46993         * modules/fopen-safer (Depends-on): Add fopen.
46994         * modules/fcntl-safer (Depends-on): Add fcntl.
46995         * modules/stdlib-safer (Depends-on): Add stdlib.
46996         (configure.ac): Set indicator.
46997         * modules/unistd-safer (configure.ac): Likewise.
46998         * modules/tmpfile-safer (configure.ac): Likewise.
46999         (Depends-on): Add tmpfile.
47000         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47001         active.
47002         * tests/test-fopen.c (includes): Test safer versions when they are
47003         in use.
47004         * tests/test-open.c (includes): Likewise.
47005
47006         popen: fix cygwin 1.5 bug when stdin closed
47007         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47008         * modules/popen: New file.
47009         * modules/popen-tests: Likewise.
47010         * tests/test-popen.c: Likewise.
47011         * m4/popen.m4: Likewise.
47012         * lib/popen.c: Likewise.
47013         * lib/stdio.in.h (popen): New declaration.
47014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47015         * modules/stdio (Makefile.am): Likewise.
47016         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47017
47018 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47019
47020         maint.mk: give full control over update-copyright exclusions
47021         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47022         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47023         (update-copyright): Don't force inclusion of top-level
47024         ChangeLog.  Don't force exclusion of all COPYING files, but make
47025         them the default exclusion instead.
47026
47027 2009-08-16  Bruno Haible  <bruno@clisp.org>
47028
47029         Fix test failures on Solaris 10.
47030         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47031         tests when Solaris iconv() is used.
47032         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47033         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47034         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47035         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47036         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47037
47038 2009-08-16  Bruno Haible  <bruno@clisp.org>
47039
47040         Fix test failures on Solaris 10.
47041         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47042         'tr' program and pass it as first argument.
47043         * tests/test-pipe-filter-gi1.sh: Likewise.
47044         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47045         program as first argument.
47046         * tests/test-pipe-filter-gi1.c (main): Likewise.
47047
47048 2009-08-16  Eric Blake  <ebb9@byu.net>
47049
47050         fpurge: fix previous commits
47051         * modules/fpurge (Makefile.am): Make replacement conditional,
47052         partially reverting 2007-04-29 change; missed in previous
47053         attempt.
47054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47055         is missing.
47056
47057 2009-08-16  Bruno Haible  <bruno@clisp.org>
47058
47059         Clarify fpurge's effect on the file position.
47060         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47061         * tests/test-fpurge.c (main): Make a second pass for checking the file
47062         position.
47063
47064 2009-08-16  Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47067         declaration of fpurge is missing.
47068         * tests/test-fpurge.c (main): Check that the file has not more contents
47069         than expected. Close the file before removing it.
47070
47071 2009-08-15  Eric Blake  <ebb9@byu.net>
47072
47073         fpurge: don't wrap working cygwin implementation
47074         * lib/fpurge.c (fpurge): Fix comment typo.
47075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47076         1.7 to avoid replacement.
47077         * tests/test-fpurge.c (main): Enhance test.
47078
47079 2009-08-15  Eric Blake  <ebb9@byu.net>
47080         and Jim Meyering  <meyering@redhat.com>
47081
47082         test-update-copyright: skip if perl is insufficient
47083         * tests/test-update-copyright.sh: Failure to run maintainer tool
47084         should not cause testsuite failure on cygwin 1.5.
47085
47086 2009-08-14  Eric Blake  <ebb9@byu.net>
47087
47088         doc: mention more functions added in cygwin 1.7.0
47089         * doc/posix-headers/limits.texi (limits.h): Update for recent
47090         cygwin additions.
47091         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47092         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47093         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47094         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47095         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47096
47097 2009-08-14  Eric Blake  <ebb9@byu.net>
47098
47099         maint.mk: simplify update-copyright rule
47100         * top/maint.mk (update-copyright-local): Delete, and document how
47101         to do it in cfg.mk instead.
47102         (update-copyright-exclude-regexp): Delete, and document how to do
47103         it in .x-update-copyright instead.
47104         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47105         exclude ChangeLog.
47106
47107 2009-08-14  Bruno Haible  <bruno@clisp.org>
47108
47109         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47110
47111 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47112
47113         maint.mk: support update-copyright-env
47114         * top/maint.mk (update-copyright-env): Define place-holder.
47115         (update-copyright): Expand $(update-copyright-env) before
47116         invoking update-copyright.
47117
47118 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47119
47120         update-copyright: implement forced reformatting
47121         * build-aux/update-copyright: Implement and document
47122         UPDATE_COPYRIGHT_FORCE.
47123         * tests/test-update-copyright.sh: Test it.
47124
47125 2009-08-14  Eric Blake  <ebb9@byu.net>
47126         and Bruno Haible  <bruno@clisp.org>
47127
47128         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47129         * tests/test-locale.c: Revert previous patch related to NULL.
47130         * tests/test-stdio.c: Likewise.
47131         * tests/test-stdlib.c: Likewise.
47132         * tests/test-string.c: Likewise.
47133         * tests/test-unistd.c: Likewise.
47134         * modules/time-tests (Depends-on): Add verify.
47135         * modules/wchar-tests (Depends-on): Likewise.
47136         * tests/test-time.c: Test for NULL compliance.
47137         * tests/test-wchar.c: Likewise.
47138         * modules/locale (Depends-on): Add stddef.
47139         * modules/stdio (Depends-on): Likewise.
47140         * modules/stdlib (Depends-on): Likewise.
47141         * modules/string (Depends-on): Likewise.
47142         * modules/time (Depends-on): Likewise.
47143         * modules/unistd (Depends-on): Likewise.
47144         * modules/wchar (Depends-on): Likewise.
47145         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47146         * lib/stdlib.in.h (includes): Likewise.
47147         * lib/string.in.h (includes): Likewise.
47148         * lib/time.in.h (includes): Likewise.
47149         * lib/unistd.in.h (includes): Likewise.
47150         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47151         replaced.
47152         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47153         * m4/stddef_h.m4: New file.
47154         * modules/stddef: Likewise.
47155         * lib/stddef.in.h: Likewise.
47156         * modules/stddef-tests: Likewise.
47157         * tests/test-stddef.c: Likewise.
47158         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47159         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47160         * doc/posix-headers/locale.texi (locale.h): Likewise.
47161         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47162         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47163         * doc/posix-headers/string.texi (string.h): Likewise.
47164         * doc/posix-headers/time.texi (time.h): Likewise.
47165         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47166         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47167
47168 2009-08-14  Eric Blake  <ebb9@byu.net>
47169
47170         doc: improve git diff of texinfo files
47171         * .gitattributes: Add rule for *.texi files, with hint on how to
47172         use it.
47173         Copied from m4, and based on a report by Bruno Haible.
47174
47175 2009-08-14  Bruno Haible  <bruno@clisp.org>
47176
47177         Disable multithread support by default on Cygwin 1.5.x for real.
47178         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47179
47180 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47181
47182         update-copyright: much ado about intervals
47183         * build-aux/update-copyright: Implement and document
47184         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47185         of copyright year intervals.
47186         Also, document UPDATE_COPYRIGHT_YEAR.
47187         * tests/test-update-copyright.sh: Test it.
47188
47189         update-copyright: convert 2-digit to 4-digit years
47190         * build-aux/update-copyright: Implement and document.
47191         * tests/test-update-copyright.sh: Update.
47192
47193 2009-08-14  Jim Meyering  <meyering@redhat.com>
47194
47195         test-exclude: avoid coreutils "make check" failure
47196         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47197         just as in test-argmatch.c.
47198
47199 2009-08-13  Eric Blake  <ebb9@byu.net>
47200
47201         test-dup2: fix bad assumption
47202         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47203         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47204
47205         test-version-etc: fix CRLF portability issue
47206         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47207         recognize \r.
47208         * tests/test-argp-version-etc-1.sh: Likewise.
47209
47210         getopt: update client modules
47211         * modules/argp (Depends-on): Use getopt-gnu.
47212         * modules/git-merge-changelog (Depends-on): Likewise.
47213         * modules/long-options (Depends-on): Likewise.
47214         * modules/xstrtol (Depends-on): Likewise.
47215
47216 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47217
47218         * tests/test-version-etc.sh: Don't fail on different
47219         project/version.  Don't fail on CRLF differences.  Rewrite to use
47220         multiple -e instead of multiple sed forks, suggested by Eric Blake
47221         <ebb9@byu.net>.
47222         * tests/test-argp-version-etc-1.sh: Likewise.
47223
47224 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47225
47226         * tests/test-version-etc.sh: Don't fail on different
47227         project/version.
47228
47229 2009-08-12  Bruno Haible  <bruno@clisp.org>
47230
47231         Tests for modules 'getopt-posix', 'getopt-gnu'.
47232         * modules/getopt-posix-tests: New file.
47233         * tests/test-getopt.c: New file.
47234         * tests/test-getopt.h: New file.
47235         * tests/test-getopt_long.h: New file.
47236
47237         New modules 'getopt-posix', 'getopt-gnu'.
47238         * modules/getopt-gnu: New file, renamed from modules/getopt.
47239         * modules/getopt-posix: New file.
47240         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47241         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47242         (gl_GETOPT): Remove macro.
47243         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47244         Disable the test against BSD systems that declare optreset. Test
47245         against mingw bug. Test against lack of support of optional arguments
47246         on many platforms.
47247         * doc/glibc-headers/getopt.texi: Update module name and list of
47248         relevant platforms.
47249         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47250         'getopt-gnu' and more portability problems.
47251         * NEWS: Mention the changes.
47252
47253 2009-08-12  Bruno Haible  <bruno@clisp.org>
47254
47255         Ensure that optarg etc. get declared by <unistd.h>.
47256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47257         AC_USE_SYSTEM_EXTENSIONS.
47258         * modules/getopt (Depends-on): Add 'extensions'.
47259
47260 2009-08-12  Bruno Haible  <bruno@clisp.org>
47261
47262         Avoid test link errors.
47263         * modules/pipe-filter-ii-tests (Makefile.am): Define
47264         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47265         * modules/pipe-filter-gi-tests (Makefile.am): Define
47266         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47268
47269 2009-08-12  Bruno Haible  <bruno@clisp.org>
47270
47271         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47272         gl_GETOPT_SUBSTITUTE before.
47273         (gl_GETOPT): Use it.
47274         * m4/argp.m4 (gl_ARGP): Update.
47275         Reported by Sergey Poznyakoff.
47276
47277         * m4/getopt.m4: Reorder macros.
47278         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47279         (gl_GETOPT_SUBSTITUTE): Remove macro.
47280
47281 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47282
47283         Minor improvement in gitlog-to-changelog
47284
47285         * build-aux/gitlog-to-changelog: New option `--format' makes
47286         output format string configurable.
47287
47288 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47289
47290         Optimize exclude: use hash tables for non-wildcard patterns.
47291
47292         * lib/exclude.c: Include hash.h and mbuiter.h
47293         (struct exclude_pattern, exclude_segment): New data types.
47294         (struct exclude): Rewrite.
47295         (fnmatch_pattern_has_wildcards): New function.
47296         (new_exclude_segment, free_exclude_segment): New functions.
47297         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47298         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47299         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47300         * modules/exclude: Depend on hash and mbuiter.
47301
47302         * modules/exclude-tests: New file.
47303         * tests/test-exclude.c: New file.
47304         * tests/test-exclude1.sh: New file.
47305         * tests/test-exclude2.sh: New file.
47306         * tests/test-exclude3.sh: New file.
47307         * tests/test-exclude4.sh: New file.
47308         * tests/test-exclude5.sh: New file.
47309         * tests/test-exclude6.sh: New file.
47310         * tests/test-exclude7.sh: New file.
47311
47312 2009-08-12  Bruno Haible  <bruno@clisp.org>
47313
47314         Ensure that getopt() gets declared by <unistd.h>.
47315         * lib/unistd.in.h: Conditionally include getopt.h.
47316         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47317         Set GNULIB_UNISTD_H_GETOPT.
47318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47319         GNULIB_UNISTD_H_GETOPT.
47320         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47321
47322 2009-08-12  Bruno Haible  <bruno@clisp.org>
47323
47324         Clarify logic.
47325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47326         gl_replace_getopt instead of GETOPT_H.
47327
47328 2009-08-12  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/getopt.m4: Add comments.
47331
47332 2009-08-12  Bruno Haible  <bruno@clisp.org>
47333
47334         Disable multithread support by default on Cygwin 1.5.x.
47335         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47336         set gl_use_threads=no if not specified otherwise.
47337
47338 2009-08-11  Bruno Haible  <bruno@clisp.org>
47339
47340         Avoid compilation error on NetBSD 5.0.
47341         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47342         * tests/test-stdio.c: Likewise.
47343         * tests/test-stdlib.c: Likewise.
47344         * tests/test-string.c: Likewise.
47345         * tests/test-unistd.c: Likewise.
47346         Reported by Greg Troxel <gdt@ir.bbn.com>
47347         at <https://savannah.gnu.org/support/?106973>.
47348
47349 2009-08-11  Bruno Haible  <bruno@clisp.org>
47350
47351         * modules/dup2-tests (Depends-on): Remove close.
47352
47353         Undo 2009-07-19 commit.
47354         * modules/acl-tests (Depends-on): Remove close.
47355         * modules/binary-io-tests (Depends-on): Likewise.
47356         * modules/closein-tests (Depends-on): Likewise.
47357         * modules/flock-tests (Depends-on): Likewise.
47358         * modules/fsync-tests (Depends-on): Likewise.
47359         * modules/lseek-tests (Depends-on): Likewise.
47360         * modules/pipe-tests (Depends-on): Likewise.
47361         * modules/posix_spawn-tests (Depends-on): Likewise.
47362         * modules/posix_spawnp-tests (Depends-on): Likewise.
47363         * modules/stat-time-tests (Depends-on): Likewise.
47364         * modules/yesno-tests (Depends-on): Likewise.
47365
47366 2009-08-10  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47369
47370 2009-08-10  Bruno Haible  <bruno@clisp.org>
47371
47372         Fix a gcc warning.
47373         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47374
47375 2009-08-10  Bruno Haible  <bruno@clisp.org>
47376
47377         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47378         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47379         not only the first time.
47380         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47381         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47382         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47383         is 1, not only the the first time.
47384
47385 2009-08-10  Bruno Haible  <bruno@clisp.org>
47386
47387         Make it possible to use module 'gethostname' without module 'close'.
47388         * lib/unistd.in.h (close): Evoke a link error only if
47389         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47391         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47392         * modules/unistd (Makefile.am): Substitute
47393         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47394         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47395         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47397         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47398         * modules/sys_ioctl (Makefile.am): Substitute
47399         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47400         * modules/socket (configure.ac): On native Windows, set
47401         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47402         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47403         Reported by Sam Steingold <sds@gnu.org>.
47404
47405 2009-08-10  Bruno Haible  <bruno@clisp.org>
47406
47407         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47408         * modules/ioctl (configure.ac): Likewise.
47409
47410 2009-08-10  Bruno Haible  <bruno@clisp.org>
47411
47412         Avoid collision between gnulib wrapper and libintl wrapper.
47413         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47414         already defined in intl/printf.c.
47415         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47416         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47417
47418 2009-08-09  Bruno Haible  <bruno@clisp.org>
47419
47420         Make <sys/select.h> really self-contained, also on Solaris 10.
47421         * lib/sys_select.in.h: Include <string.h>.
47422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47423         Solaris 10 problem.
47424         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47425         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47426         Reported by Jim Meyering.
47427
47428 2009-08-09  Bruno Haible  <bruno@clisp.org>
47429
47430         Avoid warnings from 'aclocal' that are due to a use of macro name
47431         AM_XGETTEXT_OPTION that is not defined in automake.
47432         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47433         automake.
47434         * modules/error (configure.ac): Likewise.
47435         * modules/propername (configure.ac): Likewise.
47436         * modules/vasprintf (configure.ac): Likewise.
47437         * modules/verror (configure.ac): Likewise.
47438         * modules/xprintf (configure.ac): Likewise.
47439         * modules/xvasprintf (configure.ac): Likewise.
47440
47441 2009-08-08  Bruno Haible  <bruno@clisp.org>
47442
47443         Avoid compilation error in C++ mode.
47444         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47445         Reported by Sam Steingold <sds@gnu.org>.
47446
47447 2009-08-08  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47450         for the various Unix platforms.
47451         * doc/posix-headers/limits.texi: Update platforms list regarding
47452         HOST_NAME_MAX.
47453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47454
47455 2009-08-07  Jim Meyering  <meyering@redhat.com>
47456
47457         selinux-at: fix typo in a comment
47458         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47459         Spotted by Paolo Bonzini.
47460
47461         selinux-at: remove redundant m4 code, add documentation
47462         * modules/selinux-at (configure.ac): Remove redundant code.
47463         LIB_SELINUX is already set via the dependent module, selinux-h.
47464         (Include): Add quotes around selinux-at.h.
47465         * lib/selinux-at.h: Add documentation.
47466         Reported by Bruno Haible in
47467         http://marc.info/?l=gnulib-bug&m=124958988300749
47468
47469 2009-08-07  Bruno Haible  <bruno@clisp.org>
47470
47471         Avoid link error on MacOS X 10.3 and 10.4.
47472         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47473         on non-ELF systems.
47474         * lib/argp-pv.c (argp_program_version): Likewise.
47475         Reported by Simon Josefsson.
47476
47477 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47478
47479         * tests/test-version-etc.sh: Use $EXEEXT.
47480
47481 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47482
47483         update-copyright: update documentation to point to maint.mk
47484         * build-aux/update-copyright: Here.
47485
47486 2009-08-06  Jim Meyering  <meyering@redhat.com>
47487
47488         maint.mk: support update-copyright-local
47489         * top/maint.mk (update-copyright-local): Define place-holder.
47490         (update-copyright): Depend on $(update-copyright-local).
47491
47492 2009-08-06  Jim Meyering  <meyering@redhat.com>
47493
47494         selinux-at: new module
47495         Initially written for coreutils, this module will soon be
47496         used by findutils, too.
47497         * MODULES.html.sh [Misc]: Add selinux-at.
47498         * lib/selinux-at.h: New file, from coreutils.
47499         * lib/selinux-at.c: Likewise.
47500         * modules/selinux-at: Likewise.
47501         (License): Change from LGPL to GPL, since it depends
47502         on the GPL'd openat module.
47503
47504         doc: update README
47505         * README: Remove references to cogito.
47506         Remove cvs-repo-updating instructions from 2007.
47507         Don't imply that CVS is better if you have limited disk space.
47508
47509 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47510
47511         update-copyright: support C-style comments
47512         * build-aux/update-copyright: Implement and document.
47513         * tests/test-update-copyright.sh: Test.
47514
47515 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47516
47517         update-copyright: support omitted "(C)"
47518         * build-aux/update-copyright: Implement and document.  Also,
47519         allow variable whitespace before "(C)".
47520         * tests/test-update-copyright.sh: Test.
47521
47522 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47523
47524         update-copyright: don't trip on non-FSF copyright statements
47525         * build-aux/update-copyright: Fix so that the first correctly
47526         formatted FSF copyright statement is recognized no matter what
47527         appears before it.  Update documentation.
47528         * tests/test-update-copyright.sh: Test that.
47529
47530 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47531
47532         update-copyright: clean up code a little
47533         * build-aux/update-copyright: Append "_re" to the name of any
47534         variable holding a regular expression.
47535         Replace "old" and "new" with "stmt" in variable names.
47536         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47537         handled correctly.
47538         Format code more consistently.
47539
47540 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47541
47542         update-copyright-tests: improve portability
47543         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47544         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47545
47546 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47547
47548         update-copyright: support @copyright{} and &copy;
47549         * build-aux/update-copyright: Implement and document.
47550         * tests/test-update-copyright.sh: Test.
47551
47552 2009-08-04  Jim Meyering  <meyering@redhat.com>
47553
47554         update-copyright-tests: correctly test EOL=\r\n handling
47555         * tests/test-update-copyright.sh: Put \r at the end of some lines
47556         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47557
47558         maint.mk: make update-copyright exclusion list more configurable
47559         * top/maint.mk (update-copyright): Default to excluding COPYING,
47560         but allow an override, in case someone does want to update that file.
47561
47562         maint.mk: don't update copyright date in COPYING
47563         * top/maint.mk (update-copyright): Exclude COPYING.
47564
47565         maint.mk: add a copyright-updating rule
47566         * top/maint.mk (update-copyright): New rule.
47567         Derived from coreutils/Makefile.am.
47568
47569         update-copyright: rename some variables
47570         * build-aux/update-copyright: Rename a few variables for clarity.
47571         Tweak syntax.  List Joel E. Denny as coauthor.
47572
47573 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47574
47575         update-copyright: fix bug for 2-digit last year and add tests
47576         * build-aux/update-copyright: Fix bug.
47577         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47578         specified.
47579         * modules/update-copyright-tests: New
47580         * tests/test-update-copyright.sh: New.
47581
47582 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47583
47584         update-copyright: handle leading tabs in line prefix
47585         * build-aux/update-copyright: Count leading tabs as 8 spaces
47586         when computing margin.  This helps with the formatting of
47587         ChangeLogs, for example.
47588         Fix documentation a little.
47589
47590 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47591
47592         update-copyright: support EOL=\r\n
47593         * build-aux/update-copyright: Implement that.
47594
47595 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47596
47597         update-copyright: automatically format copyright statements
47598         * build-aux/update-copyright: Implement that.
47599         Also, be a little more predictable and safer by always failing
47600         when the full copyright format is not perfectly recognized as an
47601         unbroken whole.  Discussed at
47602         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47603         Rewrite documentation.
47604
47605 2009-08-03  Bruno Haible  <bruno@clisp.org>
47606
47607         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47608
47609 2009-08-02  Bruno Haible  <bruno@clisp.org>
47610
47611         Tests for module 'uname'.
47612         * modules/uname-tests: New file.
47613         * tests/test-uname.c: New file.
47614
47615         New module 'uname'.
47616         * lib/uname.c: New file.
47617         * m4/uname.m4: New file.
47618         * modules/uname: New file.
47619         * doc/posix-functions/uname.texi: Mention the new module.
47620
47621 2009-08-02  Bruno Haible  <bruno@clisp.org>
47622
47623         Tests for module 'sys_utsname'.
47624         * modules/sys_utsname-tests: New file.
47625         * tests/test-sys_utsname.c: New file.
47626
47627         New module 'sys_utsname'.
47628         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47629         * m4/sys_utsname_h.m4: New file.
47630         * modules/sys_utsname: New file.
47631         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47632
47633 2009-08-02  Bruno Haible  <bruno@clisp.org>
47634
47635         Implicitly initialize the sockets library.
47636         * lib/gethostname.c: Include sockets.h.
47637         (rpl_gethostname): Invoke gl_sockets_startup.
47638         * lib/socket.c: Include sockets.h.
47639         (rpl_socket): Invoke gl_sockets_startup.
47640         * modules/gethostname (Depends-on): Add sockets.
47641         * modules/socket (Depends-on): Likewise.
47642         * tests/test-poll.c: Don't include sockets.h.
47643         (main): Don't invoke gl_sockets_startup.
47644         * tests/test-select.c: Don't include sockets.h.
47645         (main): Don't invoke gl_sockets_startup.
47646
47647 2009-08-02  Bruno Haible  <bruno@clisp.org>
47648
47649         Allow multiple calls to gl_sockets_startup.
47650         * lib/sockets.c (initialized_sockets_version): New variable.
47651         (gl_sockets_startup): Do nothing if already called for this or a higher
47652         version.
47653         (gl_sockets_cleanup): Reset initialized_sockets_version.
47654
47655 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47656
47657         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47658         different project/version.
47659
47660 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47661             Bruno Haible  <bruno@clisp.org>
47662
47663         Tests for module 'pipe-filter-gi'.
47664         * modules/pipe-filter-gi-tests: New file.
47665         * tests/test-pipe-filter-gi1.sh: New file.
47666         * tests/test-pipe-filter-gi1.c: New file.
47667         * tests/test-pipe-filter-gi2.sh: New file.
47668         * tests/test-pipe-filter-gi2-main.c: New file.
47669         * tests/test-pipe-filter-gi2-child.c: New file.
47670
47671         New module 'pipe-filter-gi'.
47672         * lib/pipe-filter-gi.c: New file.
47673         * modules/pipe-filter-gi: New file.
47674
47675 2009-08-02  Bruno Haible  <bruno@clisp.org>
47676             Paolo Bonzini  <bonzini@gnu.org>
47677
47678         Tests for module 'pipe-filter-ii'.
47679         * modules/pipe-filter-ii-tests: New file.
47680         * tests/test-pipe-filter-ii1.sh: New file.
47681         * tests/test-pipe-filter-ii1.c: New file.
47682         * tests/test-pipe-filter-ii2.sh: New file.
47683         * tests/test-pipe-filter-ii2-main.c: New file.
47684         * tests/test-pipe-filter-ii2-child.c: New file.
47685
47686         New module 'pipe-filter-ii'.
47687         * lib/pipe-filter.h: New file.
47688         * lib/pipe-filter-ii.c: New file.
47689         * lib/pipe-filter-aux.h: New file.
47690         * modules/pipe-filter-ii: New file.
47691
47692 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47693
47694         * lib/gc-libgcrypt.c: Change copyright to FSF.
47695         * lib/gc-gnulib.c: Likewise.
47696
47697 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47698
47699         * lib/gethostname.c: Include limits.h.
47700
47701 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47702             Bruno Haible  <bruno@clisp.org>
47703
47704         Ensure HOST_NAME_MAX as part of the gethostname module.
47705         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47706         define also HOST_NAME_MAX.
47707         * tests/test-gethostname.c: Include <limits.h>.
47708         (main): Check also HOST_NAME_MAX.
47709         * doc/posix-headers/limits.texi: Document the mingw problem.
47710
47711 2009-08-02  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47714         Add comments.
47715
47716 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47717
47718         * lib/gethostname.c: Add Windows wrapper.
47719         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47720         * modules/gethostname: Depend on sys_socket & errno, for also
47721         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47722         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47723
47724 2009-07-31  Jim Meyering  <meyering@redhat.com>
47725
47726         getloadavg: fix symbol name in comment
47727         * lib/getloadavg.c: Correct a typo I introduced when adding
47728         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47729         Matt Kraai spotted the problem.
47730
47731 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47732
47733         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47734         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47735         code also if ! defined N_NAME_POINTER.
47736         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47737         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47738         but the n_name member is a 12-byte array.
47739
47740 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47741
47742         update-copyright: generalize comment handling
47743         * build-aux/update-copyright: Handle copyright statements
47744         within more comment styles.
47745         Document usage.
47746         Report any file with an external copyright holder or parse failure.
47747
47748 2009-07-29  Jim Meyering  <meyering@redhat.com>
47749
47750         mktime: correct setting of REPLACE_MKTIME
47751         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47752
47753         update-copyright: new module
47754         * modules/update-copyright: New file.
47755         * build-aux/update-copyright: New file.
47756         * MODULES.html.sh (maint+release support): Add update-copyright.
47757
47758 2009-07-27  Bruno Haible  <bruno@clisp.org>
47759
47760         Fix compilation error when <ctime> is used and mktime is replaced.
47761         * lib/time.in.h (mktime): New declaration.
47762         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47763         REPLACE_MKTIME instead of defining mktime in config.h.
47764         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47765         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47766         Reported by Ross McFarland <rwmcfa1@neces.com>.
47767
47768 2009-07-27  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47771         Reported by Matt Kraai <mkraai@beckman.com>.
47772
47773 2009-07-25  Jim Meyering  <meyering@redhat.com>
47774
47775         maint.mk: avoid warnings about missing files
47776         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47777         diagnostic when .prev-version does not exist.
47778         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47779         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47780         nonexistent cfg.mk.
47781         Suggestions from Simon Josefsson.
47782
47783 2009-07-25  Bruno Haible  <bruno@clisp.org>
47784
47785         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47786         defined as macros. Needed on QNX 6.4.1.
47787         Reported by Matt Kraai <mkraai@beckman.com>.
47788
47789 2009-07-23  Jim Meyering  <meyering@redhat.com>
47790
47791         maint.mk: invoke "make dist" with a working value of XZ_OPT
47792         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47793
47794 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47795
47796         Make fseeko.c compile on QNX.
47797         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47798
47799 2009-07-22  Peter Simons  <simons@cryp.to>
47800
47801         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47802         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47803         * lib/md4.h: Likewise.
47804         * lib/md5.h: Likewise.
47805         * lib/sha1.h: Likewise.
47806         * lib/sha256.h: Likewise.
47807         * lib/sha512.h: Likewise.
47808
47809         tests-sha1: don't assign literal string to 'char *' variable
47810         * tests/test-sha1.c (main): Declare locals with "const" to match
47811         attributes of the right hand side.
47812
47813 2009-07-21  Eric Blake  <ebb9@byu.net>
47814
47815         dup2: fix more mingw problems
47816         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47817         fd to itself.
47818         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47819         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47820         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47821         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47822         care of mingw bugs.
47823
47824 2009-07-21  Jim Meyering  <meyering@redhat.com>
47825
47826         vc-list-files: avoid failure when /bin/sh is dash
47827         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47828         On some Debian based systems, /bin/sh is a symlink to dash, and running
47829         this command would omit the "/" following each 'tests' prefix:
47830           dash -x build-aux/vc-list-files -C . tests
47831         That is because bash and dash work differently:
47832           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47833           bash ok
47834           dash odd
47835
47836 2009-07-21  Eric Blake  <ebb9@byu.net>
47837
47838         dup2-tests: test previous patch
47839         * modules/dup2-tests: New file.
47840         * tests/test-dup2.c: Likewise.
47841         * tests/test-open.c (main): Avoid unspecified behavior.
47842         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47843         test.
47844
47845         dup2: work around mingw and cygwin 1.5 bug
47846         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47848         * modules/unistd (Makefile.am): Substitute it.
47849         * lib/unistd.in.h (dup2): Declare the replacement.
47850         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47851         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47852         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47853         * modules/execute (Depends-on): Add dup2.
47854         * modules/fseterr (Depends-on): Likewise.
47855         * modules/pipe (Depends-on): Likewise.
47856         * modules/posix_spawn-internal (Depends-on): Likewise.
47857
47858 2009-07-21  Bruno Haible  <bruno@clisp.org>
47859
47860         * modules/.gitattributes: New file.
47861
47862 2009-07-20  Bruno Haible  <bruno@clisp.org>
47863
47864         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47865         (main): Use it.
47866
47867 2009-07-20  Eric Blake  <ebb9@byu.net>
47868
47869         test-pipe: make a bit more robust.
47870         * tests/test-pipe.c (myerr): Allow error messages regardless of
47871         what we do to stderr.
47872         (test_pipe): Rearrange to avoid deadlock.
47873         (child_main): Try a larger read, to ensure we avoided deadlock.
47874         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47875         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47876         if misused.
47877
47878 2009-07-19  Jim Meyering  <meyering@redhat.com>
47879
47880         fts: avoid false-positive cycle-detection
47881         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47882         for each new command line argument.
47883
47884 2009-07-19  Bruno Haible  <bruno@clisp.org>
47885
47886         Fix build error on mingw with the modules sys_select and unistd.
47887         * modules/acl-tests (Depends-on): Add close.
47888         * modules/binary-io-tests (Depends-on): Likewise.
47889         * modules/closein-tests (Depends-on): Likewise.
47890         * modules/flock-tests (Depends-on): Likewise.
47891         * modules/fsync-tests (Depends-on): Likewise.
47892         * modules/lseek-tests (Depends-on): Likewise.
47893         * modules/pipe-tests (Depends-on): Likewise.
47894         * modules/posix_spawn-tests (Depends-on): Likewise.
47895         * modules/posix_spawnp-tests (Depends-on): Likewise.
47896         * modules/stat-time-tests (Depends-on): Likewise.
47897         * modules/yesno-tests (Depends-on): Likewise.
47898
47899 2009-07-19  Bruno Haible  <bruno@clisp.org>
47900
47901         Unify conditionals.
47902         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47903         macros, not at the compiler macros.
47904         * lib/pipe.c: Likewise.
47905         * lib/execute.c: Likewise.
47906         * lib/spawni.c: Likewise.
47907
47908 2009-07-19  Bruno Haible  <bruno@clisp.org>
47909
47910         Fix handling of closed stdin/stdout/stderr on mingw.
47911         * lib/w32spawn.h: Include unistd.h.
47912         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47913         file descriptor with O_NOINHERIT flag.
47914         (fd_safer_noinherit): New function, based on fd-safer.c.
47915         (dup_safer_noinherit): New function, based on dup-safer.c.
47916         (undup_safer_noinherit): New function.
47917         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47918         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47919         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47920         instead of fd_safer.
47921         * tests/test-pipe.c: Include <windows.h>.
47922         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47923         result.
47924
47925         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47926         from main.
47927         (test_pipe): Pass an extra argument for disambiguation.
47928         (main): Invoke parent_main or child_main.
47929
47930         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47931         consistently.
47932
47933 2009-07-18  Eric Blake  <ebb9@byu.net>
47934
47935         test-pipe: fix mingw build
47936         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47937
47938 2009-07-18  Bruno Haible  <bruno@clisp.org>
47939
47940         * modules/pipe-tests (Makefile.am): Fix typo.
47941
47942 2009-07-18  Eric Blake  <ebb9@byu.net>
47943
47944         error: fix mingw build
47945         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47946         Reported by Bruno Haible.
47947
47948         error: avoid undefined use of stdout
47949         * lib/error.c (error, error_at_line): Check that fd 1 is open
47950         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47951         is handling faults and the close_stdout module wants to report the
47952         detection of closed stdout as an error.
47953
47954 2009-07-17  Eric Blake  <ebb9@byu.net>
47955
47956         pipe: be robust in face of closed fds
47957         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47958         should cause child to misbehave.
47959         * modules/pipe-tests: New module.
47960         * tests/test-pipe.c: New file.
47961         * tests/test-pipe.sh: New file.
47962         Reported by Akim Demaille.
47963
47964 2009-07-14  Bruno Haible  <bruno@clisp.org>
47965
47966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47967         Reported by anonymous kc.
47968
47969 2009-07-07  Jim Meyering  <meyering@redhat.com>
47970
47971         maint.mk: don't look for translatable strings in *.m4 or *.mk
47972         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47973         when searching for translatable strings.
47974
47975 2009-07-05  Jim Meyering  <meyering@redhat.com>
47976
47977         remove superfluous parentheses in STREQ definition
47978         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47979         * lib/getugroups.c (STREQ): Likewise.
47980         * lib/fnmatch.c (STREQ): Likewise.
47981         Spotted by Bruno Haible.
47982
47983 2009-07-04  Jim Meyering  <meyering@redhat.com>
47984
47985         argv-iter: new module
47986         * MODULES.html.sh: Add argv-iter.
47987         * lib/argv-iter.c, lib/argv-iter.h: New files.
47988         * modules/argv-iter: New file.
47989         * modules/argv-iter-tests: New file.
47990         * tests/test-argv-iter.c: Test it.
47991
47992 2009-07-04  Bruno Haible  <bruno@clisp.org>
47993
47994         Fix assertion.
47995         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47996         contains more exact copies of a given entry than file2, leave the extra
47997         copies unpaired rather than aborting.
47998         Reported by Eric Blake.
47999
48000 2009-07-02  Bruno Haible  <bruno@clisp.org>
48001
48002         Speedup git-merge-changelog for git cherry-pick.
48003         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48004         (entries_mapping_get): New function, extracted from compute_mapping.
48005         (entries_mapping_reverse_get): New function.
48006         (compute_mapping): Add a 'full' argument. Return the result in a
48007         'struct entries_mapping'.
48008         (main): Update. Access the mappings through entries_mapping_get.
48009         Reported by Eric Blake.
48010
48011 2009-07-02  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48014         best_i.
48015
48016 2009-07-02  Bruno Haible  <bruno@clisp.org>
48017
48018         Speed up approximate search for matching ChangeLog entries.
48019         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48020         argument. Call fstrcmp_bounded instead of fstrcmp.
48021         (compute_mapping, try_split_merged_entry, main): Update callers.
48022
48023 2009-07-02  Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48026
48027 2009-06-30  Bruno Haible  <bruno@clisp.org>
48028
48029         Reduce the number of uc_is_cased calls.
48030         * lib/unicase.h (casing_suffix_context_t): Add
48031         'first_char_except_ignorable' field.
48032         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48033         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48034         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48035         Update initializer.
48036         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48037         case-ignorable characters.
48038         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48039         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48040         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48041         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48042         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48043
48044 2009-06-30  Bruno Haible  <bruno@clisp.org>
48045
48046         Tests for module 'unicase/ignorable'.
48047         * modules/unicase/ignorable-tests: New file.
48048         * tests/unicase/test-ignorable.c: New file, generated by
48049         gen-uni-tables.
48050
48051         Tests for module 'unicase/cased'.
48052         * modules/unicase/cased-tests: New file.
48053         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48054         * tests/unicase/test-predicate-part1.h: New file, derived from
48055         tests/unictype/test-predicate-part1.h.
48056         * tests/unicase/test-predicate-part2.h: New file, same as
48057         tests/unictype/test-predicate-part2.h.
48058
48059         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48060         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48061         (output_casing_properties): New function.
48062         (main): Call it.
48063         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48064         * lib/unicase/cased.c: Include unictype/bitmap.h.
48065         (uc_is_cased): Define through a bitmap lookup.
48066         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48067         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48068         (uc_is_case_ignorable): Define through a bitmap lookup.
48069         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48070         lib/unictype/bitmap.h.
48071         (Depends-on): Add inline. Clean up.
48072         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48073         lib/unictype/bitmap.h.
48074         (Depends-on): Add inline. Clean up.
48075         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48076         recognition.
48077         * tests/unicase/test-u16-tolower.c (main): Likewise.
48078         * tests/unicase/test-u32-tolower.c (main): Likewise.
48079
48080 2009-06-30  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48083         * lib/unicase/u16-casemap.c: Likewise.
48084         * lib/unicase/u32-casemap.c: Likewise.
48085
48086 2009-06-29  Bruno Haible  <bruno@clisp.org>
48087
48088         Define u32_casefold as a wrapper around u32_ct_casefold.
48089         * lib/unicase/u32-casefold.c: Update.
48090         * modules/unicase/u32-casefold (Depends-on): Add
48091         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48092         unicase/empty-suffix-context. Clean up.
48093
48094         Define u16_casefold as a wrapper around u16_ct_casefold.
48095         * lib/unicase/u16-casefold.c: Update.
48096         * modules/unicase/u16-casefold (Depends-on): Add
48097         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48098         unicase/empty-suffix-context. Clean up.
48099
48100         Define u8_casefold as a wrapper around u8_ct_casefold.
48101         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48102         * lib/unicase/u8-casefold.c: Update.
48103         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48104         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48105
48106         Define u32_totitle as a wrapper around u32_ct_totitle.
48107         * lib/unicase/u32-totitle.c: Update.
48108         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48109         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48110
48111         Define u16_totitle as a wrapper around u16_ct_totitle.
48112         * lib/unicase/u16-totitle.c: Update.
48113         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48114         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48115
48116         Define u8_totitle as a wrapper around u8_ct_totitle.
48117         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48118         functions.
48119         (FUNC): Delegate to U_CT_TOTITLE.
48120         * lib/unicase/u8-totitle.c: Update.
48121         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48122         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48123
48124         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48125         invocation.
48126         * modules/unicase/u32-tolower (Depends-on): Add
48127         unicase/empty-prefix-context, unicase/empty-suffix-context.
48128
48129         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48130         invocation.
48131         * modules/unicase/u16-tolower (Depends-on): Add
48132         unicase/empty-prefix-context, unicase/empty-suffix-context.
48133
48134         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48135         * modules/unicase/u8-tolower (Depends-on): Add
48136         unicase/empty-prefix-context, unicase/empty-suffix-context.
48137
48138         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48139         invocation.
48140         * modules/unicase/u32-toupper (Depends-on): Add
48141         unicase/empty-prefix-context, unicase/empty-suffix-context.
48142
48143         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48144         invocation.
48145         * modules/unicase/u16-toupper (Depends-on): Add
48146         unicase/empty-prefix-context, unicase/empty-suffix-context.
48147
48148         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48149         * modules/unicase/u8-toupper (Depends-on): Add
48150         unicase/empty-prefix-context, unicase/empty-suffix-context.
48151
48152         New module 'unicase/u32-ct-casefold'.
48153         * lib/unicase/u32-ct-casefold.c: New file.
48154         * modules/unicase/u32-ct-casefold: New file.
48155
48156         New module 'unicase/u16-ct-casefold'.
48157         * lib/unicase/u16-ct-casefold.c: New file.
48158         * modules/unicase/u16-ct-casefold: New file.
48159
48160         New module 'unicase/u8-ct-casefold'.
48161         * lib/unicase/u8-ct-casefold.c: New file.
48162         * lib/unicase/u-ct-casefold.h: New file, derived from
48163         lib/unicase/u-casefold.h.
48164         * modules/unicase/u8-ct-casefold: New file.
48165
48166         New module 'unicase/u32-ct-totitle'.
48167         * lib/unicase/u32-ct-totitle.c: New file.
48168         * modules/unicase/u32-ct-totitle: New file.
48169
48170         New module 'unicase/u16-ct-totitle'.
48171         * lib/unicase/u16-ct-totitle.c: New file.
48172         * modules/unicase/u16-ct-totitle: New file.
48173
48174         New module 'unicase/u8-ct-totitle'.
48175         * lib/unicase/u8-ct-totitle.c: New file.
48176         * lib/unicase/u-ct-totitle.h: New file, derived from
48177         lib/unicase/u-totitle.h.
48178         * modules/unicase/u8-ct-totitle: New file.
48179
48180         New module 'unicase/u32-ct-tolower'.
48181         * lib/unicase/u32-ct-tolower.c: New file.
48182         * modules/unicase/u32-ct-tolower: New file.
48183
48184         New module 'unicase/u16-ct-tolower'.
48185         * lib/unicase/u16-ct-tolower.c: New file.
48186         * modules/unicase/u16-ct-tolower: New file.
48187
48188         New module 'unicase/u8-ct-tolower'.
48189         * lib/unicase/u8-ct-tolower.c: New file.
48190         * modules/unicase/u8-ct-tolower: New file.
48191
48192         New module 'unicase/u32-ct-toupper'.
48193         * lib/unicase/u32-ct-toupper.c: New file.
48194         * modules/unicase/u32-ct-toupper: New file.
48195
48196         New module 'unicase/u16-ct-toupper'.
48197         * lib/unicase/u16-ct-toupper.c: New file.
48198         * modules/unicase/u16-ct-toupper: New file.
48199
48200         New module 'unicase/u8-ct-toupper'.
48201         * lib/unicase/u8-ct-toupper.c: New file.
48202         * modules/unicase/u8-ct-toupper: New file.
48203
48204         Add context arguments to u*_casemap functions.
48205         * lib/unicase/unicasemap.h: Include unicase.h.
48206         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48207         suffix_context arguments.
48208         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48209         functions.
48210         (FUNC): Add prefix_context and suffix_context arguments. Use
48211         uc_is_cased and uc_is_case_ignorable.
48212         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48213         * lib/unicase/u16-casemap.c: Likewise.
48214         * lib/unicase/u32-casemap.c: Likewise.
48215         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48216         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48217         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48218         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48219         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48220         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48221
48222         New module 'unicase/u32-suffix-context'.
48223         * lib/unicase/u32-suffix-context.c: New file.
48224         * modules/unicase/u32-suffix-context: New file.
48225
48226         New module 'unicase/u16-suffix-context'.
48227         * lib/unicase/u16-suffix-context.c: New file.
48228         * modules/unicase/u16-suffix-context: New file.
48229
48230         New module 'unicase/u8-suffix-context'.
48231         * lib/unicase/u8-suffix-context.c: New file.
48232         * lib/unicase/u-suffix-context.h: New file.
48233         * modules/unicase/u8-suffix-context: New file.
48234
48235         New module 'unicase/empty-suffix-context'.
48236         * lib/unicase/empty-suffix-context.c: New file.
48237         * modules/unicase/empty-suffix-context: New file.
48238
48239         New module 'unicase/u32-prefix-context'.
48240         * lib/unicase/u32-prefix-context.c: New file.
48241         * modules/unicase/u32-prefix-context: New file.
48242
48243         New module 'unicase/u16-prefix-context'.
48244         * lib/unicase/u16-prefix-context.c: New file.
48245         * modules/unicase/u16-prefix-context: New file.
48246
48247         New module 'unicase/u8-prefix-context'.
48248         * lib/unicase/u8-prefix-context.c: New file.
48249         * lib/unicase/u-prefix-context.h: New file.
48250         * lib/unicase/context.h: New file.
48251         * modules/unicase/u8-prefix-context: New file.
48252
48253         New module 'unicase/empty-prefix-context'.
48254         * lib/unicase/empty-prefix-context.c: New file.
48255         * modules/unicase/empty-prefix-context: New file.
48256
48257         New module 'unicase/ignorable'.
48258         * lib/unicase/ignorable.c: New file.
48259         * modules/unicase/ignorable: New file.
48260
48261         New module 'unicase/cased'.
48262         * lib/unicase/caseprop.h: New file.
48263         * lib/unicase/cased.c: New file.
48264         * modules/unicase/cased: New file.
48265
48266         New functions for case mapping of substrings.
48267         * lib/unicase.h (casing_prefix_context_t): New type.
48268         (unicase_empty_prefix_context): New variable.
48269         (u8_casing_prefix_context, u16_casing_prefix_context,
48270         u32_casing_prefix_context, u8_casing_prefixes_context,
48271         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48272         declarations.
48273         (casing_suffix_context_t): New type.
48274         (unicase_empty_suffix_context): New variable.
48275         (u8_casing_suffix_context, u16_casing_suffix_context,
48276         u32_casing_suffix_context, u8_casing_suffixes_context,
48277         u16_casing_suffixes_context, u32_casing_suffixes_context,
48278         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48279         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48280         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48281         declarations.
48282
48283 2009-06-28  Jim Meyering  <meyering@redhat.com>
48284
48285         boostrap: indent only with spaces
48286         * build-aux/bootstrap: Indent only with spaces, never TABs.
48287
48288         bootstrap: split long lines
48289         * build-aux/bootstrap: Keep line length < 80.
48290
48291         bootstrap: sync from coreutils
48292         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48293         just as autoreconf does.  Verify a list of prerequisite
48294         package-name,version-number pairs if defined in bootstrap.conf.
48295         Refer to README-prereq, if prerequisites are not satisfied.
48296
48297 2009-06-27  Eric Blake  <ebb9@byu.net>
48298
48299         tests: add test for bogus NULL definition
48300         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48301         * tests/test-stdlib.c: Likewise.
48302         * tests/test-string.c: Likewise.
48303         * tests/test-locale.c: Likewise.
48304         * tests/test-unistd.c: Likewise.
48305         * modules/stdio-tests (Depends-on): Add verify.
48306         * modules/stdlib-tests (Depends-on): Likewise.
48307         * modules/string-tests (Depends-on): Likewise.
48308         * modules/locale-tests (Depends-on): Likewise.
48309         * modules/unistd-tests (Depends-on): Likewise.
48310
48311 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48312
48313         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48314         self-explaining comment.
48315         * m4/selinux-selinux-h: Update serial.
48316         (gl_LIBSELINUX): New macro, adding a warning for missing development
48317         packages to code extracted from...
48318         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48319         Add warning for missing development packages here, too.
48320
48321 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48322
48323         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48324
48325 2009-06-25  Eric Blake  <ebb9@byu.net>
48326
48327         version-etc: fix regression
48328         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48329         gcc.
48330         (version_etc): Use it, to catch bugs with trailing NULL.
48331         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48332         (version_etc_va): Fix logic bug.
48333         * modules/version-etc-tests: Add test.
48334         * tests/test-version-etc.c: New file.
48335         * tests/test-version-etc.sh: Likewise.
48336
48337 2009-06-25  Sam Steingold  <sds@gnu.org>
48338
48339         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48340         mbtowc declaration.
48341
48342 2009-06-25  Eric Blake  <ebb9@byu.net>
48343
48344         fpurge: migrate into <stdio.h>
48345         * lib/fpurge.h: Delete...
48346         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48347         * lib/fpurge.c (fpurge): Change declaring header.
48348         * modules/fpurge (Files): Drop deleted file.
48349         (Depends-on): Add stdio.
48350         (configure.ac): Set witness.
48351         * modules/stdio (Makefile.am): Support fpurge macros.
48352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48353         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48354         * lib/fflush.c: Update client.
48355         * tests/test-fpurge.c: Likewise.
48356         * NEWS: Mention the change.
48357
48358 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48359
48360         * lib/argp-version-etc.c (program_authors): Add const
48361         qualifier.
48362         * lib/version-etc.c: Fix typos in the comments.
48363         * modules/argp-version-etc: Depends on version-etc.
48364
48365 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48366
48367         argp-version-etc: new module.
48368
48369         * lib/argp-version-etc.c: New file.
48370         * lib/argp-version-etc.h: New file.
48371         * modules/argp-version-etc: New file.
48372         * modules/argp-version-etc-tests: New file.
48373         * tests/test-argp-version-etc.c: New test.
48374         * tests/test-argp-version-etc-1.sh: New test.
48375
48376 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48377
48378         Provide additional interfaces and documentation for version-etc
48379         module.
48380
48381         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48382         interfaces.
48383         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48384         prototypes.
48385
48386 2009-06-24  Bruno Haible  <bruno@clisp.org>
48387
48388         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48389         HAVE_LIB${NAME} macro.
48390         Reported by Sam Steingold <sds@gnu.org>.
48391
48392 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48393
48394         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48395         needed.
48396
48397 2009-06-21  Bruno Haible  <bruno@clisp.org>
48398
48399         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48400         work.
48401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48402         together with LIB${NAME}, LTLIB${NAME}.
48403         Reported by Sam Steingold <sds@gnu.org>.
48404
48405 2009-06-20  Jim Meyering  <meyering@redhat.com>
48406
48407         tests: make sc_require_test_exit_idiom more generic
48408         * top/maint.mk (Exit_witness_file): New overridable variable.
48409         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48410         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48411
48412 2009-06-19  Jim Meyering  <meyering@redhat.com>
48413
48414         hash: reverse order of src/dst parameters in an internal interface
48415         * lib/hash.c (transfer_entries): Reverse order of parameters to
48416         put DST before SRC.  Adjust callers.
48417
48418         tests: test-hash: avoid wholesale duplication
48419         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48420         Instead, use a loop and add a single conditional.
48421
48422         tests: test-hash: allow seed selection via a command line argument
48423         * tests/test-hash.c (get_seed): New function.
48424         (main): Use it.
48425
48426 2009-06-19  Eric Blake  <ebb9@byu.net>
48427
48428         hash: avoid memory leak on allocation failure
48429         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48430         failure.  Factor repeated algorithm...
48431         (transfer_entries): ...into new helper routine.
48432         (hash_delete): React to hash_rehash return value.
48433
48434         hash: reduce memory pressure in hash_rehash no-op case
48435         * lib/hash.c (next_prime): Avoid overflow.
48436         (hash_initialize): Factor bucket size computation...
48437         (compute_bucket_size): ...into new helper function.
48438         (hash_rehash): Use new function and open coding to reduce memory
48439         pressure, and avoid a memory leak in USE_OBSTACK code.
48440         Reported by Jim Meyering.
48441
48442 2009-06-18  Eric Blake  <ebb9@byu.net>
48443
48444         hash: make rotation more obvious
48445         * modules/hash (Depends-on): Add bitrotate and stdint.
48446         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48447         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48448         (SIZE_MAX): Rely on headers for definition.
48449         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48450         (raw_hasher): Use rotr_sz.
48451         Suggested by Jim Meyering.
48452
48453         hash: fix memory leak in last patch
48454         * lib/hash.c (hash_rehash): Avoid memory leak.
48455
48456         hash: avoid no-op rehashing
48457         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48458
48459         hash: provide default callback functions
48460         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48461         (hash_initialize): Use them as defaults.
48462         * tests/test-hash.c (main): Test this.
48463
48464         hash: minor optimization
48465         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48466         when possible.
48467         (hash_initialize): Document this promise.
48468         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48469         * tests/test-hash.c (hash_compare_strings): Test this.
48470
48471 2009-06-18  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48474         going to be replaced anyway.
48475
48476 2009-06-18  Bruno Haible  <bruno@clisp.org>
48477
48478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48479         in one place.
48480         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48481         be replaced anyway.
48482
48483 2009-06-18  Eric Blake  <ebb9@byu.net>
48484
48485         hash: check for resize before insertion
48486         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48487         threshold before insertion, so that a pathological hash_rehash
48488         that fills every bucket can still trigger another rehash.
48489
48490 2009-06-18  Jim Meyering  <meyering@redhat.com>
48491
48492         hash-tests: add a loop around the small tests
48493         * tests/test-hash.c (main): Repeat small tests with selected
48494         small initial table sizes.
48495
48496 2009-06-17  Eric Blake  <ebb9@byu.net>
48497
48498         hash: minor cleanups
48499         * lib/hash.h (hash_entry): Make opaque, by moving...
48500         * lib/hash.c (hash_entry): ...here.
48501         (hash_insert): Clarify restrictions on what can be inserted.
48502         (hash_get_next): Clarify when it is safe to remove an element
48503         during traversal.
48504         (check_tuning): Skip verification when tuning is known safe.
48505         (hash_initialize): Clarify restrictions on tuning.
48506
48507 2009-06-17  Jim Meyering  <jim@meyering.net>
48508         and Eric Blake  <ebb9@byu.net>
48509
48510         hash-tests: new module
48511         * modules/hash-tests: New file.
48512         * tests/test-hash.c: New file.
48513
48514 2009-06-17  Eric Blake  <ebb9@byu.net>
48515
48516         strstr-simple: document new module
48517         * MODULES.html.sh: Document new module.
48518
48519         strstr, strcasestr: replace on platforms with broken memchr
48520         * modules/strstr: Split into...
48521         * modules/strstr-simple: ...new module that does not care about
48522         performance, but does care about glibc bug.
48523         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48524         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48525         if platform memchr is broken, per Debian bug 521737.
48526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48527         memchr.
48528         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48529         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48530         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48531         * modules/mountlist (Depends-on): Add strstr-simple.
48532         * modules/gen-uni-tables (Depends-on): Likewise.
48533         * modules/argz (Depends-on): Add strstr.
48534
48535 2009-06-17  Bruno Haible  <bruno@clisp.org>
48536
48537         * modules/posix_spawn-internal (Depends-on): Add errno.
48538
48539 2009-06-17  Bruno Haible  <bruno@clisp.org>
48540
48541         Define missing ESTALE on Interix 3.5.
48542         * lib/errno.in.h (ESTALE): Assign a value if missing.
48543         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48545         missing.
48546         * doc/posix-headers/errno.texi: Mention the Interix bug.
48547         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48548
48549 2009-06-15  Eric Blake  <ebb9@byu.net>
48550
48551         memchr, memchr2: add valgrind exception
48552         * lib/memchr.valgrind: New file.
48553         * lib/memchr2.valgrind: New file.
48554         * modules/memchr (Files): Distribute valgrind file.
48555         * modules/memchr2 (Files): Likewise.
48556
48557         docs: memchr is no longer obsolete
48558         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48559         * lib/string.in.h (memchr): Simplify logic.
48560
48561 2009-06-14  Jim Meyering  <meyering@redhat.com>
48562
48563         link-follow: fix the "checking..." message to not mention trailing slash
48564         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48565         never considered trailing slashes.
48566
48567 2009-06-14  Bruno Haible  <bruno@clisp.org>
48568
48569         * m4/memchr.m4: Mention also the bug on IA-64.
48570         * doc/posix-functions/memchr.texi: Likewise.
48571
48572 2009-06-12  Eric Blake  <ebb9@byu.net>
48573
48574         memchr: detect broken x86_64 and alpha implementations
48575         * modules/memchr-tests (Depends-on): Move mmap detection...
48576         * modules/memchr (Depends-on): ...here.
48577         (configure.ac): Set indicator.
48578         * lib/string.in.h (memchr): Declare replacement.
48579         * modules/string (Makefile.am): Trigger replacement.
48580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48581         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48582         bugs.
48583         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48584         * modules/getpagesize (License): Relax license.
48585
48586 2009-06-11  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/idpriv.h: Add more references.
48589
48590 2009-06-08  Bruno Haible  <bruno@clisp.org>
48591
48592         Tests for module 'idpriv-droptemp'.
48593         * modules/idpriv-droptemp-tests: New file.
48594         * tests/test-idpriv-droptemp.sh: New file.
48595         * tests/test-idpriv-droptemp.su.sh: New file.
48596         * tests/test-idpriv-droptemp.c: New file.
48597
48598         New module 'idpriv-droptemp'.
48599         * lib/idpriv-droptemp.c: New file.
48600         * modules/idpriv-droptemp: New file.
48601
48602 2009-06-08  Bruno Haible  <bruno@clisp.org>
48603
48604         Tests for module 'idpriv-drop'.
48605         * modules/idpriv-drop-tests: New file.
48606         * tests/test-idpriv-drop.sh: New file.
48607         * tests/test-idpriv-drop.su.sh: New file.
48608         * tests/test-idpriv-drop.c: New file.
48609
48610         New module 'idpriv-drop'.
48611         * lib/idpriv.h: New file.
48612         * lib-idpriv-drop.c: New file.
48613         * m4/idpriv.m4: New file.
48614         * modules/idpriv-drop: New file.
48615
48616 2009-06-08  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48619         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48620         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48621         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48622         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48623         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48624         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48625
48626 2009-06-08  Eric Blake  <ebb9@byu.net>
48627
48628         test-strstr: use memory fence, when possible
48629         * tests/test-strstr.c (main): Use memory fence, in order to be
48630         more likely to trigger Debian bug 521737.
48631         * modules/strstr-tests (Files): Pull in additional files.
48632
48633         memchr: no longer obsolete, for wider field testing
48634         * modules/memchr (Status, Notice): Delete, this module is no
48635         longer obsolete.
48636         * modules/vasnprintf (Depends-on): Add memchr.
48637
48638 2009-06-07  Jim Meyering  <meyering@redhat.com>
48639
48640         hash: declare some functions with the warn_unused_result attribute
48641         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48642
48643 2009-06-07  Bruno Haible  <bruno@clisp.org>
48644
48645         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48646         Reported by Eric Blake.
48647
48648 2009-06-06  Eric Blake  <ebb9@byu.net>
48649
48650         test-alignof: fix typo with long double
48651         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48652         compiler error.
48653
48654 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48655
48656         Escape non-texinfo { and }s.
48657         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48658         markup error.
48659
48660 2009-06-04  Jim Meyering  <meyering@redhat.com>
48661
48662         gitlog-to-changelog: don't infloop on an empty commit log
48663         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48664         Reported by Boris Petersen <transacid@centerim.org>.
48665
48666 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48667
48668         version-etc: extend for packagers
48669         Add three new configure options, intended for packagers:
48670           --with-packager="packager name"
48671           --with-packager-version="packager-specific version"
48672           --with-packager-bug-reports="packager bug reporting"
48673         An example with coreutils:
48674           $ ./configure \
48675             --with-packager=Gentoo \
48676             --with-packager-bug-report=http://bugs.gentoo.org/ \
48677             --with-packager-version="patchset 1.6"
48678           $ ./src/ls --version | head -n2
48679           ls (GNU coreutils) 7.1-dirty
48680           Packaged by Gentoo (patchset 1.6)
48681         Note that the bug reporting info via --help doesn't show up because
48682         coreutils uses its own custom emit_bug_reporting_address() implementation
48683         in src/system.h.  If it didn't, it'd look like:
48684           $ ./src/ls --help | tail -n4
48685           Report bugs to <bug-coreutils@gnu.org>.
48686           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48687           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48688           General help using GNU software: <http://www.gnu.org/gethelp/>.
48689         * lib/version-etc.c: Print new information, if provided.
48690         * m4/version-etc.m4: New file.
48691         * modules/version-etc (Files): Add m4/version-etc.m4.
48692         (configure.ac): Add gl_VERSION_ETC.
48693
48694 2009-05-31  Bruno Haible  <bruno@clisp.org>
48695
48696         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48697         and 'int64_t'.
48698         * modules/alignof-tests (Dependencies): Add stdint.
48699         Reported by Eric Blake.
48700
48701 2009-05-31  Bruno Haible  <bruno@clisp.org>
48702
48703         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48704         restriction due to compiler bugs.
48705         Reported by Eric Blake.
48706
48707 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48708             Bruno Haible  <bruno@clisp.org>
48709
48710         Fix test-alignof failure.
48711         * lib/alignof.h (alignof_slot): New macro.
48712         (alignof_type): New macro, with the same semantics as the previous
48713         'alignof'.
48714         (alignof): Alias to alignof_slot.
48715         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48716         check that the results are usable as constant expressions.
48717
48718 2009-05-31  Bruno Haible  <bruno@clisp.org>
48719
48720         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48721         * tests/test-memchr.c (main): Check that memchr does not read past the
48722         first occurrence of the byte.
48723         * tests/test-strstr.c (main): Update comment.
48724         Suggested by Eric Blake.
48725
48726 2009-05-30  Bruno Haible  <bruno@clisp.org>
48727
48728         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48729         detail how to use dumpbin.
48730         Reported by David Byron <dbyron@dbyron.com>.
48731
48732 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48733
48734         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48735
48736 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48737
48738         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48739
48740 2009-05-28  Bruno Haible  <bruno@clisp.org>
48741
48742         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48743         build-aux/ files.
48744
48745 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48746
48747         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48748
48749 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48750
48751         * gnulib-tool (sed_transform_main_lib_file)
48752         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48753         regexps.
48754
48755 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48756
48757         * tests/test-strstr.c: Add another self-test.
48758         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48759         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48760
48761 2009-05-23  Bruno Haible  <bruno@clisp.org>
48762
48763         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48764         change.
48765
48766 2009-05-21  Bruno Haible  <bruno@clisp.org>
48767
48768         Simplify use of mode_t varargs.
48769         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48770         uses 'mode_t' or 'int'.
48771         * lib/openat.c (openat): Likewise.
48772         * lib/open-safer.c (open_safer): Likewise.
48773         * m4/mode_t.m4: New file.
48774         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48775         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48776         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48777         * modules/open (Files): Add m4/mode_t.m4.
48778         * modules/openat (Files): Likewise.
48779         * modules/fcntl-safer (Files): Likewise.
48780         Suggested by Eric Blake.
48781
48782 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48783
48784         * doc/glibc-functions/fallocate.texi: New file.
48785         * doc/gnulib.texi: Include it.
48786
48787 2009-05-21  Eric Blake  <ebb9@byu.net>
48788             Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48791         invocations.
48792         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48793
48794 2009-05-21  Eric Blake  <ebb9@byu.net>
48795             Bruno Haible  <bruno@clisp.org>
48796
48797         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48798         include_next. Fix of 2008-11-20 commit.
48799         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48800         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48801         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48802         NEXT_MATH_H.
48803         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48804         instead of NEXT_MATH_H.
48805
48806 2009-05-21  Bruno Haible  <bruno@clisp.org>
48807
48808         Avoid redefinition warnings for SIZE_MAX.
48809         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48810         Reported by Simon Josefsson.
48811
48812 2009-05-21  Bruno Haible  <bruno@clisp.org>
48813
48814         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48815         AC_CACHE_VAL.
48816
48817 2009-05-20  Bruno Haible  <bruno@clisp.org>
48818
48819         Make zeroptr.h work on mingw.
48820         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48821         mprotect.
48822         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48823         * modules/memchr2-tests (configure.ac): Likewise.
48824         * modules/memcmp-tests (configure.ac): Likewise.
48825         * modules/memmem-tests (configure.ac): Likewise.
48826         * modules/memrchr-tests (configure.ac): Likewise.
48827         Reported by Simon Josefsson.
48828
48829 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48830
48831         * tests/test-glob.c: Include string.h for strcmp prototype.
48832
48833 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48834
48835         * modules/getdelim (Depends-on): Add explicit stdint, although it
48836         was implicitly already pulled in via realloc-posix.
48837         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48838
48839 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48840
48841         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48842         G. Christensen" <tgc@jupiterrise.com>.
48843         * m4/sys_socket_h.m4: Check for sa_family_t.
48844         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48845         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48846         * tests/test-sys_socket.c: Check that sa_family_t works.
48847
48848 2009-05-18  Eric Blake  <ebb9@byu.net>
48849
48850         maint.mk: allow gnulib_dir in VPATH build
48851         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48852
48853 2009-05-15  Jim Meyering  <meyering@redhat.com>
48854
48855         maint.mk: Give gnulib_dir a default definition.
48856         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48857         Thus, most packages no longer need to specify this variable in cfg.mk
48858
48859 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48860
48861         rename.m4: fix typos that would make non-mingw cross-configure fail
48862         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48863
48864 2009-05-13  Eric Blake  <ebb9@byu.net>
48865
48866         mmap-anon: avoid out-of-order autoconf expansion
48867         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48868         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48869         * modules/memchr-tests (Depends-on): Add extensions.
48870         * modules/memchr2-tests (Depends-on): Add extensions.
48871         * modules/memcmp-tests (Depends-on): Add extensions.
48872         * modules/memmem-tests (Depends-on): Add extensions.
48873         * modules/memrchr-tests (Depends-on): Add extensions.
48874
48875 2009-05-13  Bruno Haible  <bruno@clisp.org>
48876
48877         Make some tests ISO C 99 compliant.
48878         * tests/zerosize-ptr.h: New file.
48879         * tests/test-memchr.c: Include zerosize-ptr.h.
48880         (main): Use a zero-size object pointer instead of NULL.
48881         * tests/test-memchr2.c: Include zerosize-ptr.h.
48882         (main): Use a zero-size object pointer instead of NULL.
48883         * tests/test-memcmp.c: Include zerosize-ptr.h.
48884         (main): Use a zero-size object pointer instead of NULL.
48885         * tests/test-memmem.c: Include zerosize-ptr.h.
48886         (main): Use a zero-size object pointer instead of NULL.
48887         * tests/test-memrchr.c: Include zerosize-ptr.h.
48888         (main): Use a zero-size object pointer instead of NULL.
48889         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48890         m4/mmap-anon.m4.
48891         (Depends-on): Add getpagesize.
48892         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48893         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48894         m4/mmap-anon.m4.
48895         (Depends-on): Add getpagesize.
48896         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48897         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48898         m4/mmap-anon.m4.
48899         (Depends-on): Add getpagesize.
48900         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48901         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48902         m4/mmap-anon.m4.
48903         (Depends-on): Add getpagesize.
48904         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48905         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48906         m4/mmap-anon.m4.
48907         (Depends-on): Add getpagesize.
48908         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48909
48910 2009-05-12  Bruno Haible  <bruno@clisp.org>
48911
48912         Tests for module 'alignof'.
48913         * modules/alignof-tests: New file.
48914         * tests/test-alignof.c: New file.
48915
48916 2009-05-12  Bruno Haible  <bruno@clisp.org>
48917
48918         Fix alignof macro.
48919         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48920         vendor compilers that are always correct.
48921
48922 2009-05-12  Bruno Haible  <bruno@clisp.org>
48923
48924         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48925         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48926         not whether its fully works.
48927
48928 2009-05-12  Bruno Haible  <bruno@clisp.org>
48929
48930         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48931
48932 2009-05-12  Jim Meyering  <meyering@redhat.com>
48933
48934         * top/maint.mk: Adjust backslash alignment.
48935
48936 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48937
48938         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48939
48940 2009-05-11  Eric Blake  <ebb9@byu.net>
48941
48942         argp: avoid undefined behavior
48943         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48944         macros.
48945
48946 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48947
48948         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48949         user.name to prevent git commit from complaining.
48950
48951 2009-05-10  Bruno Haible  <bruno@clisp.org>
48952
48953         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48954         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48955         it rewrites every file name only once.
48956         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48957
48958 2009-05-08  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48961         instead of 'max'.
48962
48963 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48964
48965         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48966         sockaddr_storage test.
48967
48968 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48969
48970         * modules/sys_socket (Makefile.am): Substitute
48971         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48972         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48973         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48974         * tests/test-sys_socket.c: Check sockaddr_storage.
48975
48976 2009-05-08  Bruno Haible  <bruno@clisp.org>
48977
48978         New module 'alignof'.
48979         * lib/alignof.h: New file.
48980         * modules/alignof: New file.
48981
48982 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48983             Bruno Haible  <bruno@clisp.org>
48984
48985         Fix test-file-has-acl on FreeBSD.
48986         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48987         mask is implicitly added.
48988         * tests/test-file-has-acl.c: Include <signal.h>.
48989         (main): Terminate the test after 5 seconds.
48990         * modules/acl-tests (configure.ac): Check for alarm function.
48991
48992 2009-05-04  Bruno Haible  <bruno@clisp.org>
48993
48994         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48995         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48996         * modules/errno (configure.ac): Drop AC_REQUIRE.
48997         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48998         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48999
49000 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49001
49002         * modules/glob-tests: New module.
49003         * tests/test-glob.c: Add.
49004
49005 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49006
49007         * modules/fnmatch-tests: New module.
49008         * tests/test-fnmatch.c: Add.
49009
49010 2009-05-04  Eric Blake  <ebb9@byu.net>
49011
49012         maint: make the new no-submodule-changes rule VPATH-safe
49013         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49014
49015 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49016             Bruno Haible  <bruno@clisp.org>
49017
49018         acl: Fix infinite loop on FreeBSD.
49019         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49020         of return value from acl_get_entry.
49021         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49022         Likewise.
49023
49024 2009-05-03  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/acl-internal.h (acl_entries): Clarify return value.
49027         * lib/acl_entries.c (acl_entries): Likewise.
49028
49029 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49030
49031         Bug fix in acl module.
49032         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49033
49034 2009-05-03  Bruno Haible  <bruno@clisp.org>
49035
49036         Create gperf-generated file in the source dir, not in the build dir.
49037         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49038         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49039         * modules/unicase/locale-language (unicase/locale-languages.h):
49040         Likewise.
49041         * modules/unicase/special-casing (unicase/special-casing-table.h):
49042         Likewise.
49043         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49044         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49045         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49046         Reported by Ralf Wildenhues.
49047
49048 2009-05-03  Bruno Haible  <bruno@clisp.org>
49049
49050         * modules/fnmatch (Description, configure.ac): Taken from
49051         fnmatch-posix.
49052         * modules/fnmatch-posix: Turn into a symbolic reference to the
49053         'fnmatch' module, and deprecate.
49054         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49055
49056 2009-05-03  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49059         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49060         Reported by Ralf Wildenhues.
49061
49062 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49063
49064         * m4/fnmatch.m4: Fix fnmatch re-define.
49065
49066 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49067
49068         priv-set: new module and tests; adapt write-any-file
49069         * lib/priv-set.c: New file.
49070         * lib/priv-set.h: New file.
49071         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49072         * lib/write-any-file.c: Simplify by using priv-set module.
49073         * m4/priv-set.m4: New file.
49074         * modules/priv-set: New file.
49075         * modules/unlinkdir: Add dependency on priv-set module.
49076         * modules/write-any-file: Likewise.
49077
49078         Tests for module 'priv-set'.
49079         * modules/priv-set-tests: New file.
49080         * tests/test-priv-set.c: New file.
49081
49082 2009-05-03  Jim Meyering  <meyering@redhat.com>
49083             Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49086         use the converted UTF-8 variant of the name instead.
49087
49088 2009-05-03  Jim Meyering  <meyering@redhat.com>
49089
49090         tests: tighten some getdate tests
49091         * tests/test-getdate.c (main): Tighten tests: require equality,
49092         not just greater than.  Set TZ envvar to UTC0.
49093
49094 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49095
49096         getdate: correctly interpret "next monday" when run on a Monday
49097         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49098         that e.g., "next tues" (when run on a tuesday) results in a date
49099         that is one week in the future, and not today's date.
49100         I.e., add a week when the wday is the same as the current one.
49101         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49102         and earlier by Martin Bernreuther and Jan Minář.
49103         * tests/test-getdate.c (main): Check that "next DAY" is always in
49104         the future and that "last DAY" is always in the past.
49105
49106 2009-05-02  Jim Meyering  <meyering@redhat.com>
49107
49108         build: ensure that a release build fails when a submodule is unclean
49109         * top/maint.mk (no-submodule-changes): New rule.
49110         (alpha beta major): Depend on it.
49111
49112 2009-05-02  Bruno Haible  <bruno@clisp.org>
49113
49114         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49115         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49116         shell variable gl_fnmatch_required to detect which variant is
49117         requested.
49118         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49119         gl_FUNC_FNMATCH_POSIX.
49120         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49121         exclude fnmatch-posix.
49122
49123 2009-05-02  Bruno Haible  <bruno@clisp.org>
49124
49125         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49126         * modules/mbsrtowcs (License): Change to LGPLv2+.
49127         * modules/strnlen1 (License): Likewise.
49128         Reported by Simon Josefsson.
49129
49130 2009-05-02  Bruno Haible  <bruno@clisp.org>
49131
49132         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49133         "cross".
49134         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49135         gnulib-tool was called with option --source-base=lib.
49136
49137 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49138
49139         Use automake *-local hooks without commands, for extensibility.
49140         * modules/localcharset (Makefile.am): Rename install-exec-local
49141         rule to install-exec-localcharset, and make it a prerequisite of
49142         install-exec-local.  Likewise, rename the uninstall-local rule to
49143         uninstall-localcharset, and make it a prerequisite of the former.
49144
49145 2009-05-01  Bruno Haible  <bruno@clisp.org>
49146
49147         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49148         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49149         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49150         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49151         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49152         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49153         m4/locale-zh.m4, m4/codeset.m4.
49154
49155         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49156         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49157         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49158         m4/locale-zh.m4.
49159
49160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49161         REPLACE_WCRTOMB if mbstate_t must be replaced.
49162         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49163         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49164
49165 2009-05-01  Bruno Haible  <bruno@clisp.org>
49166
49167         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49168         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49169         dngettext, dcngettext, textdomain, bindtextdomain,
49170         bind_textdomain_codeset): Undefine before redefining.
49171
49172 2009-04-30  Bruno Haible  <bruno@clisp.org>
49173
49174         Fix bug introduced on 2009-04-25.
49175         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49176         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49177         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49178         is defined.
49179         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49180         is defined.
49181         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49182         is defined.
49183         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49184
49185 2009-04-28  Bruno Haible  <bruno@clisp.org>
49186
49187         Comment tweaks.
49188         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49189         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49190         * lib/unicase.h (u*_casexfrm): Likewise.
49191         Reported by Paolo Bonzini.
49192
49193 2009-04-28  Bruno Haible  <bruno@clisp.org>
49194
49195         Fix a compilation error.
49196         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49197         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49198         Reported by Jim Meyering.
49199
49200 2009-04-27  Bruno Haible  <bruno@clisp.org>
49201
49202         New module 'libunistring'.
49203         * modules/libunistring: New file.
49204         * m4/libunistring.m4: New file.
49205         * MODULES.html.sh (Unicode string functions): Add it.
49206
49207 2009-04-27  Eric Blake  <ebb9@byu.net>
49208
49209         maint.mk: allow package-specific header to provide <config.h>
49210         * top/maint.mk (sc_require_config_h): New variable.
49211         (sc_require_config_h, sc_require_config_h_first): Use it.
49212
49213 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49214
49215         * top/maint.mk (sc_avoid_if_before_free): Except
49216         useless-if-before-free script.
49217
49218 2009-04-27  Eric Blake  <ebb9@byu.net>
49219
49220         maintainer-makefile: depend on all required helper scripts
49221         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49222         useless-if-before-free.
49223         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49224         version, rather than assuming gnulib checkout is available.
49225         Reported by Simen Josefsson.
49226
49227 2009-04-26  Bruno Haible  <bruno@clisp.org>
49228
49229         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49230         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49231         "../" or "..".
49232
49233 2009-04-26  Bruno Haible  <bruno@clisp.org>
49234
49235         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49236         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49237         AC_LIB_HAVE_LINKFLAGS.
49238
49239 2009-04-26  Bruno Haible  <bruno@clisp.org>
49240
49241         Simplify calling convention of u*_conv_from_encoding.
49242         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49243         u32_conv_from_encoding): Expect a resultbuf argument and return the
49244         result directly as a pointer.
49245         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49246         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49247         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49248         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49249         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49250         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49251         Update.
49252         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49253         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49254         * lib/vasnprintf.c (VASNPRINTF): Update.
49255         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49256         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49257         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49258         * NEWS: Mention the change.
49259
49260 2009-04-26  Bruno Haible  <bruno@clisp.org>
49261
49262         Simplify calling convention of u*_conv_to_encoding.
49263         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49264         u32_conv_to_encoding): Expect a resultbuf argument and return the
49265         result directly as a pointer.
49266         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49267         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49268         freeing scaled_offsets if mem_iconveha failed.
49269         * lib/unicase/u-casexfrm.h (FUNC): Update.
49270         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49271         * lib/vasnprintf.c (VASNPRINTF): Update.
49272         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49273         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49274         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49275         * NEWS: Mention the change.
49276
49277 2009-04-26  Bruno Haible  <bruno@clisp.org>
49278
49279         Avoid test failures on AIX and OSF/1.
49280         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49281         malloc(0).
49282         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49283         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49284         Likewise.
49285         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49286         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49287         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49288         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49289         * doc/posix-functions/malloc.texi: Document the portability problem
49290         related to malloc(0).
49291
49292 2009-04-26  Bruno Haible  <bruno@clisp.org>
49293
49294         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49295         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49296         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49297
49298 2009-04-25  Bruno Haible  <bruno@clisp.org>
49299
49300         Avoid link error when creating a namespace clean library.
49301         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49302         as macro with arguments if already defined as an alias.
49303         * lib/signbitf.c (gl_signbitf): Don't undefine.
49304         * lib/signbitd.c (gl_signbitd): Don't undefine.
49305         * lib/signbitl.c (gl_signbitl): Don't undefine.
49306
49307 2009-04-25  Jim Meyering  <meyering@redhat.com>
49308
49309         vc-list-files: fix another quoting bug
49310         * build-aux/vc-list-files: Avoid sed backslash expansion
49311         of pathological directory names.
49312
49313 2009-04-25  Eric Blake  <ebb9@byu.net>
49314
49315         vc-list-files: fix shell quoting error
49316         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49317         timestamp.
49318
49319 2009-04-25  Jim Meyering  <meyering@redhat.com>
49320
49321         vc-list-files: restore lost functionality with subdir argument
49322         * build-aux/vc-list-files: When given a non-"." sub-directory
49323         argument, substitute the $dir/ prefix back onto each resulting name.
49324         Otherwise, coreutils' root_tests check would fail.
49325
49326 2009-04-24  Eric Blake  <ebb9@byu.net>
49327
49328         vc-list-files: ignore git symlinks
49329         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49330         than ls-files, to ignore git symlinks.
49331
49332         maint.mk: import improvements from m4
49333         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49334         (move_if_change): Delete unused macro.
49335         (news-date-check, vc-diff-check): Support VPATH builds.
49336         (announcement): Likewise.  Split --bootstrap-tools list...
49337         (boostrap-tools): ...into separate list, which can be overridden
49338         in cfg.mk.
49339         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49340         requiring dependency on useless-if-before-free module.
49341         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49342         Support VPATH builds.
49343
49344 2009-04-24  Jim Meyering  <meyering@redhat.com>
49345
49346         maint.mk: remove coreutils-specific rules and variables
49347         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49348         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49349         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49350
49351         maint.mk: remove obsolete rule
49352         * top/maint.mk (rel-check): Remove rule.
49353         (WGET, WGETFLAGS): Remove now-unused variables.
49354
49355 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49356
49357         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49358         consistency.
49359
49360         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49361         '$(PATH_SEPARATOR)' instead of ':'.
49362
49363 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49364
49365         * lib/getopt1.c (main): Use 'const' for static array.
49366
49367 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49368
49369         * top/maint.mk: Sync with coreutils.
49370         * NEWS: Explain incompatibilities.
49371
49372 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49373             Bruno Haible  <bruno@clisp.org>
49374
49375         Fix cross-compilation results.
49376         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49377         statement, as third argument of AC_TRY_RUN.
49378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49379         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49380         Likewise.
49381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49382         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49383         Likewise.
49384         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49386         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49387
49388 2009-04-20  Bruno Haible  <bruno@clisp.org>
49389
49390         Avoid test failure on mingw.
49391         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49392
49393 2009-04-20  Bruno Haible  <bruno@clisp.org>
49394
49395         Avoid compilation error on mingw.
49396         * modules/localename-tests (Depends-on): Add locale.
49397
49398 2009-04-19  Bruno Haible  <bruno@clisp.org>
49399
49400         Support for building a shared library on Windows platforms.
49401         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49402         (main): Test the presence of UNINORM_NFC here.
49403         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49404         (main): Test the presence of UNINORM_NFD here.
49405         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49406         (main): Test the presence of UNINORM_NFKC here.
49407         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49408         (main): Test the presence of UNINORM_NFKD here.
49409
49410 2009-04-19  Bruno Haible  <bruno@clisp.org>
49411
49412         Avoid a compiler warning.
49413         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49414         Change type of variable 'sequence'.
49415
49416 2009-04-19  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/configmake (Makefile.am): When the contents of configmake.h
49419         does not change, arrange to preserve its modification time.
49420
49421 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49422
49423         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49424         gettext domain.
49425
49426 2009-04-16  Jim Meyering  <meyering@redhat.com>
49427
49428         useless-if-before-free: improve conversion code
49429         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49430         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49431
49432 2009-04-14  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/fcntl (Depends-on): Add extensions.
49435         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49436
49437 2009-04-12  Ben Pfaff  <blp@gnu.org>
49438
49439         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49440         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49441
49442 2009-03-20  Ben Pfaff  <blp@gnu.org>
49443
49444         Make rename replace existing destinations on Windows.
49445         * m4/rename.m4: Add test for Mingw.
49446         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49447         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49448         * doc/posix-functions/rename.texi: Document.
49449
49450 2009-04-10  Bruno Haible  <bruno@clisp.org>
49451
49452         New include file "iconveh.h".
49453         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49454         * lib/striconveh.h: Include it.
49455         (enum iconv_ilseq_handler): Remove definition.
49456         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49457         striconveh.h.
49458         * lib/striconveha.c: Include striconveh.h.
49459         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49460         * modules/striconveh (Files): Add lib/iconveh.h.
49461         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49462         lib/striconveh.h.
49463
49464 2009-04-10  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/uniconv.h: Update comment.
49467
49468 2009-04-10  Bruno Haible  <bruno@clisp.org>
49469
49470         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49471         always.
49472         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49473         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49474         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49475         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49476         "unistring-notinline.h", so that the function gets defined always.
49477         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49478         * lib/unistr/u8-uctomb.c: Likewise.
49479         * lib/unistr/u16-mbtouc.c: Likewise.
49480         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49481         * lib/unistr/u16-uctomb.c: Likewise.
49482         * lib/unistr/u32-mbtouc.c: Likewise.
49483         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49484         * lib/unistr/u32-uctomb.c: Likewise.
49485
49486 2009-04-10  Bruno Haible  <bruno@clisp.org>
49487
49488         Mark 'utime' obsolete.
49489         * modules/utime (Status, Notice): New sections.
49490         Suggested by Jim Meyering.
49491
49492         Fix cross-compile guess for utime test.
49493         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49494         autoconf.
49495         * doc/posix-functions/utime.texi: Give more precisions.
49496         Reported by Jan <ipif@ymail.com>.
49497
49498 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49499
49500         filevercmp: correct today's change
49501         * lib/filevercmp.c: Also handle coreutils' test inputs.
49502         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49503
49504         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49505         for reporting it.
49506         * lib/filevercmp.c: Special handle for "", "." and "..".
49507         * tests/test-filevercmp.c: Enlarge the set suite.
49508
49509 2009-04-07  Jim Meyering  <meyering@redhat.com>
49510
49511         useless-if-before-free: show how to remove braced useless free, too
49512         * build-aux/useless-if-before-free: still only in a comment, though.
49513
49514 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49515
49516         maint.mk: import changes to syntax-check macros from coreutils
49517         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49518         Use them in the relevant macros.
49519
49520 2009-04-06  Bruno Haible  <bruno@clisp.org>
49521
49522         Fix unportable use of bit-fields.
49523         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49524         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49525         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49526
49527 2009-04-06  Bruno Haible  <bruno@clisp.org>
49528
49529         Avoid test failures on AIX and OSF/1.
49530         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49531         that malloc(0) = NULL.
49532         * tests/unicase/test-u8-tolower.c (check): Likewise.
49533         * tests/unicase/test-u8-totitle.c (check): Likewise.
49534         * tests/unicase/test-u8-toupper.c (check): Likewise.
49535         * tests/unicase/test-u16-casefold.c (check): Likewise.
49536         * tests/unicase/test-u16-tolower.c (check): Likewise.
49537         * tests/unicase/test-u16-totitle.c (check): Likewise.
49538         * tests/unicase/test-u16-toupper.c (check): Likewise.
49539         * tests/unicase/test-u32-casefold.c (check): Likewise.
49540         * tests/unicase/test-u32-tolower.c (check): Likewise.
49541         * tests/unicase/test-u32-totitle.c (check): Likewise.
49542         * tests/unicase/test-u32-toupper.c (check): Likewise.
49543         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49544         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49545         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49546         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49547         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49548         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49549         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49550         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49551         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49552         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49553         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49554         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49555
49556 2009-04-05  Bruno Haible  <bruno@clisp.org>
49557
49558         Work around an autoconf limitation.
49559         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49560         comment line if it would be longer than 3 KB.
49561
49562 2009-04-05  Bruno Haible  <bruno@clisp.org>
49563
49564         Avoid test failure with libiconv-1.13.
49565         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49566         of the expected test results.
49567
49568 2009-04-05  Bruno Haible  <bruno@clisp.org>
49569
49570         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49571         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49572         that it should be installed.
49573
49574 2009-04-05  Bruno Haible  <bruno@clisp.org>
49575
49576         * gnulib-tool: New option --copy-file.
49577         (func_usage): Document it.
49578         (func_dest_tmpfilename): Moved out of func_import.
49579         (func_add_file, func_update_file): New functions, extracted from
49580         func_import.
49581         (func_import): Update.
49582
49583 2009-04-05  Karl Berry  <karl@gnu.org>
49584
49585         * README: prominently mention gnulib-tool.
49586         Rearrange sections so getting the code is near the top.
49587
49588 2009-04-05  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/unicase.h: Mention u*_cmp2.
49591         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49592         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49593         * lib/unicase/ulc-casecmp.c: Likewise.
49594         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49595         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49596         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49597         unistr/u8-cmp.
49598         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49599         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49600         unistr/u16-cmp.
49601         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49602         unistr/u32-cmp.
49603
49604         * lib/uninorm.h: Mention u*_cmp2.
49605         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49606         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49607         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49608         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49609         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49610         unistr/u8-cmp.
49611         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49612         unistr/u16-cmp.
49613         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49614         unistr/u32-cmp.
49615
49616         New module 'unistr/u32-cmp2'.
49617         * lib/unistr/u32-cmp2.c: New file.
49618         * modules/unistr/u32-cmp2: New file.
49619
49620         New module 'unistr/u16-cmp2'.
49621         * lib/unistr/u16-cmp2.c: New file.
49622         * modules/unistr/u16-cmp2: New file.
49623
49624         New module 'unistr/u8-cmp2'.
49625         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49626         * lib/unistr/u8-cmp2.c: New file.
49627         * lib/unistr/u-cmp2.h: New file.
49628         * modules/unistr/u8-cmp2: New file.
49629
49630 2009-04-05  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/unictype.h (uc_property_is_valid): New macro.
49633         * tests/unictype/test-pr_byname.c (main): Use it.
49634
49635         * lib/unistr.h: Doc fixes.
49636         * lib/uniconv.h: Doc fixes.
49637         * lib/unictype.h: Doc fixes.
49638
49639 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         Port coreutils 7.2 to Solaris 8.
49642
49643         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49644         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49645         for Solaris 8.  This is a bit of a hack, as it means it's the
49646         caller's responsibility to add -lnsl if needed, but most likely it
49647         won't be needed since only getaddrinfo uses this and getaddrinfo
49648         isn't needed on Solaris 8.
49649
49650         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49651         problem to Solaris 8 encountered with coreutils 7.2, which
49652         resulted in a message "fnmatch.c:292: warning: passing argument 4
49653         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49654         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49655
49656 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49657
49658         * m4/ld-version-script.m4: Add FIXME comment.
49659
49660 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49661
49662         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49663         SOVERSION variable.
49664
49665 2009-04-02  Bruno Haible  <bruno@clisp.org>
49666
49667         * Makefile (info, html, dvi, pdf): Combine the rules.
49668         Suggested by Jim Meyering.
49669
49670 2009-04-01  Bruno Haible  <bruno@clisp.org>
49671
49672         * Makefile (info, html, dvi, pdf): New targets.
49673         Reported by Reuben Thomas <rrt@sc3d.org>.
49674
49675 2009-04-01  Bruno Haible  <bruno@clisp.org>
49676
49677         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49678         can be put into PATH.
49679         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49680
49681 2009-04-01  Bruno Haible  <bruno@clisp.org>
49682
49683         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49684
49685 2009-04-01  Bruno Haible  <bruno@clisp.org>
49686
49687         Rename module 'visibility'.
49688         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49689         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49690         * doc/gnulib.texi: Update.
49691         * MODULES.html.sh (Misc): Update.
49692         * NEWS: Mention the change.
49693
49694 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49695
49696         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49697         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49698         Eric Blake <ebb9@byu.net> for review.
49699         * MODULES.html.sh: Add lib-msvc-compat.
49700         * doc/gnulib.texi: Link to new section.
49701         * m4/ld-output-def.m4: New file.
49702         * doc/ld-output-def.texi: New file.
49703
49704 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49705
49706         Rename ld-version-script to lib-symbol-versions.  Suggested by
49707         Bruno Haible <bruno@clisp.org>.
49708         * modules/ld-version-script: Renamed to lib-symbol-versions.
49709         * doc/ld-version-script.texi: Fix module name.
49710         * MODULES.html.sh: Add lib-symbol-versions.
49711
49712 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49713
49714         * modules/u64-tests: New file.
49715         * tests/test-u64.c: New file.
49716
49717 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49718
49719         * MODULES.html.sh: Mention u64.
49720         * modules/u64: New module.
49721         * modules/crypto/sha512: Depend on u64 module instead of providing
49722         u64.h.
49723
49724 2009-03-27  Eric Blake  <ebb9@byu.net>
49725
49726         test-strerror: make debugging EAI_SYSTEM easier
49727         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49728         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49729         failure was EAI_SYSTEM.
49730
49731 2009-03-25  Bruno Haible  <bruno@clisp.org>
49732
49733         Fix a problem with --enable-relocatable on Solaris 7.
49734         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49735         since 2008-02-24.
49736
49737 2009-03-25  Eric Blake  <ebb9@byu.net>
49738
49739         test-sockets: avoid gcc warning
49740         * tests/test-sockets.c (main): Silence compiler warning.
49741
49742 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49743
49744         New modules nproc, pthread, contributed by Glen Lenker.
49745
49746         * MODULES.html.sh: Add pthread, nproc.
49747         * lib/nproc.c: New file.
49748         * lib/nproc.h: New file.
49749         * lib/pthread.in.h: New file.
49750         * m4/pthread.m4: New file.
49751         * modules/nproc: New file.
49752         * modules/pthread: New file.
49753
49754 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49755
49756         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49757         New variable.
49758
49759 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49760
49761         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49762         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49763         * tests/test-filevercmp.c: Add tests for backup suffixes.
49764
49765 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49766
49767         * modules/stdlib (Depends-on): Add stdint, needed when defining
49768         struct random_data on, for example, HP-UX 10.20.  Reported by
49769         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49770
49771 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49772
49773         * lib/readline.c (readline): Call fflush on stdout after printing
49774         prompt.
49775
49776 2009-03-20  Bruno Haible  <bruno@clisp.org>
49777
49778         Remove dependency from 'close' module to -lws2_32 on native Windows.
49779         * lib/close-hook.h: New file.
49780         * lib/close-hook.c: New file.
49781         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49782         w32sock.h.
49783         (_gl_close_fd_maybe_socket): Remove function.
49784         (rpl_close): Invoke execute_all_close_hooks instead of
49785         _gl_close_fd_maybe_socket.
49786         * lib/sockets.c: Include close-hook.h, w32sock.h.
49787         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49788         (close_sockets_hook): New variable.
49789         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49790         (gl_sockets_cleanup): Unregister it.
49791         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49792         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49793         * modules/close-hook: New file.
49794         * modules/close (Files): Remove lib/w32sock.h.
49795         (Depends-on): Add close-hook.
49796         (Link): Remove section.
49797         * modules/sockets (Files): Add lib/w32sock.h.
49798         (Depends-on): Add close-hook.
49799         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49800         invocation.
49801         * NEWS: Mention that LIB_CLOSE is gone.
49802
49803 2009-03-23  Eric Blake  <ebb9@byu.net>
49804
49805         signal-tests: test previous patch
49806         * tests/test-signal.c: New file.
49807         * modules/signal-tests: Likewise.
49808
49809         signal.h: always support 'volatile sig_atomic_t'
49810         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49811         (gl_SIGNAL_H_DEFAULTS): Add a default.
49812         * modules/signal (Makefile.am): Substitute if needed.
49813         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49814         users can blindly add volatile.
49815         * doc/posix-headers/signal.texi (signal.h): Document it.
49816         Reported by Matthew Woehlke.
49817
49818 2009-03-23  Jim Meyering  <meyering@redhat.com>
49819
49820         pathmax: PATH_MAX: use pathconf only when available
49821         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49822         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49823         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49824         This avoids a link failure in a PSP cross-compilation environment
49825         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49826
49827         * lib/vasnprintf.c (divide): Fix typo in comment.
49828
49829 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49830
49831         * gnulib-tool (func_filter_filelist): Fix comment.
49832
49833 2009-03-20  Bruno Haible  <bruno@clisp.org>
49834
49835         Make sockets.h self-contained.
49836         * lib/sockets.c: Include sockets.h first.
49837         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49838
49839 2009-03-19  Eric Blake  <ebb9@byu.net>
49840
49841         doc: mention more functions added in cygwin 1.7.0
49842         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49843         addition.
49844         * doc/posix-functions/log2f.texi: Likewise.
49845
49846 2009-03-19  Jim Meyering  <meyering@redhat.com>
49847
49848         fsusage: avoid syntax error due to statement-before-declaration
49849         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49850         after all declarations.  Reported by Matthew Woehlke in
49851         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49852
49853 2009-03-18  Eric Blake  <ebb9@byu.net>
49854
49855         build-aux/compile: sync from automake
49856         * build-aux/compile: New file, from automake.
49857         * config/srclist.txt: Mention build-aux/compile.
49858
49859 2009-03-17  Bruno Haible  <bruno@clisp.org>
49860
49861         * lib/git-merge-changelog.c: Fix typo in comment.
49862         Reported by Reuben Thomas <rrt@sc3d.org>.
49863
49864 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49865
49866         * m4/regex.m4: update and improve help for
49867         --without-included-regex.
49868
49869 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49870
49871         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49872         failure on missing include files.
49873
49874 2009-03-17  Eric Blake  <ebb9@byu.net>
49875
49876         doc: mention more functions added in cygwin 1.7.0
49877         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49878         addition.
49879         * doc/posix-functions/fwscanf.texi: Likewise.
49880         * doc/posix-functions/swprintf.texi: Likewise.
49881         * doc/posix-functions/swscanf.texi: Likewise.
49882         * doc/posix-functions/vfwprintf.texi: Likewise.
49883         * doc/posix-functions/vfwscanf.texi: Likewise.
49884         * doc/posix-functions/vswprintf.texi: Likewise.
49885         * doc/posix-functions/vswscanf.texi: Likewise.
49886         * doc/posix-functions/vwprintf.texi: Likewise.
49887         * doc/posix-functions/vwscanf.texi: Likewise.
49888         * doc/posix-functions/wcscasecmp.texi: Likewise.
49889         * doc/posix-functions/wcsdup.texi: Likewise.
49890         * doc/posix-functions/wcsftime.texi: Likewise.
49891         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49892         * doc/posix-functions/wprintf.texi: Likewise.
49893         * doc/posix-functions/wscanf.texi: Likewise.
49894         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49895
49896 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49897
49898         maint.mk: really add $(AM_MAKEFLAGS)
49899         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49900         was inadvertently omitted in the last commit.
49901         Spotted by Bruno Haible.
49902
49903         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49904         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49905         $(AM_MAKEFLAGS)' rather than plain `make'.
49906
49907         gnulib-tool: execute $MAKE not make
49908         * gnulib-tool: Default $MAKE to 'make'.
49909         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49910         than make.  Initialize $MAKE in the do-autobuild script.
49911
49912         gnulib-tool: use $MAKE not make in generated files
49913         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49914         make, in generated files.  Initialize $MAKE in the do-autobuild
49915         script.
49916
49917         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49918
49919         GNUmakefile: disable parallelism only for multiple, recursive targets
49920         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49921         additions in the Makefile.
49922         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49923         by Automake.
49924         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49925         are listed on the command line and at least one of them is
49926         listed in $(ALL_RECURSIVE_TARGETS).
49927
49928 2009-03-14  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49931         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49932         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49933         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49934         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49935         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49936         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49937         unistr/u8-uctomb.
49938         * modules/unistr/u8-strchr (Depends-on): Likewise.
49939         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49940         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49941         unistr/u16-uctomb.
49942         * modules/unistr/u16-strchr (Depends-on): Likewise.
49943         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49944
49945 2009-03-12  Bruno Haible  <bruno@clisp.org>
49946
49947         Work around select() bug on Interix 3.5.
49948         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49949         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49950         * m4/select.m4: New file.
49951         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49952         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49953         * modules/select (Files): Add m4/select.m4.
49954         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49955         * modules/nanosleep (Depends-on): Add select.
49956         * modules/poll (Depends-on): Likewise.
49957         * doc/posix-functions/select.texi: Mention the Interix bug.
49958         Reported by Markus Duft <mduft@gentoo.org>.
49959
49960         * lib/select.c: Renamed from lib/winsock-select.c.
49961         * modules/select (Files): Add lib/select.c, remove
49962         lib/winsock-select.c.
49963         (configure.ac): Update.
49964
49965 2009-03-12  Jim Meyering  <meyering@redhat.com>
49966
49967         avoid gcc warnings about unused macro definitions
49968         * lib/readtokens.c (STREQ): Remove unused definition.
49969         * lib/xmalloc.c (SIZE_MAX): Likewise.
49970         * lib/openat-die.c (N_): Likewise.
49971         * lib/mountlist.c (SIZE_MAX): Remove definition.
49972         Instead, include <stdint.h>.
49973         * lib/readutmp.c: Likewise.
49974         * modules/readutmp (Depends-on): Add stdint.
49975         * modules/mountlist (Depends-on): Add stdint.
49976         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49977
49978 2009-03-10  Bruno Haible  <bruno@clisp.org>
49979
49980         Tests for module 'mbmemcasecoll'.
49981         * modules/mbmemcasecoll-tests: New file.
49982         * tests/test-mbmemcasecoll1.sh: New file.
49983         * tests/test-mbmemcasecoll2.sh: New file.
49984         * tests/test-mbmemcasecoll3.sh: New file.
49985         * tests/test-mbmemcasecoll.c: New file.
49986
49987         New module 'mbmemcasecoll'.
49988         * lib/mbmemcasecoll.h: New file.
49989         * lib/mbmemcasecoll.c: New file.
49990         * modules/mbmemcasecoll: New file.
49991
49992         * tests/test-mbmemcasecmp.h: New file, extracted from
49993         tests/test-mbmemcasecmp.c.
49994         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49995         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49996         (main): Update.
49997         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49998
49999 2009-03-09  Bruno Haible  <bruno@clisp.org>
50000
50001         Tests for module 'mbmemcasecmp'.
50002         * modules/mbmemcasecmp-tests: New file.
50003         * tests/test-mbmemcasecmp1.sh: New file.
50004         * tests/test-mbmemcasecmp2.sh: New file.
50005         * tests/test-mbmemcasecmp3.sh: New file.
50006         * tests/test-mbmemcasecmp.c: New file.
50007
50008         New module 'mbmemcasecmp'.
50009         * lib/mbmemcasecmp.h: New file.
50010         * lib/mbmemcasecmp.c: New file.
50011         * modules/mbmemcasecmp: New file.
50012
50013 2009-03-09  Bruno Haible  <bruno@clisp.org>
50014
50015         Tests for module 'unicase/ulc-casecoll'.
50016         * modules/unicase/ulc-casecoll-tests: New file.
50017         * tests/unicase/test-ulc-casecoll1.sh: New file.
50018         * tests/unicase/test-ulc-casecoll2.sh: New file.
50019         * tests/unicase/test-ulc-casecoll.c: New file.
50020
50021         New module 'unicase/ulc-casecoll'.
50022         * lib/unicase.h (ulc_casecoll): New declaration.
50023         * lib/unicase/ulc-casecoll.c: New file.
50024         * modules/unicase/ulc-casecoll: New file.
50025
50026         New module 'unicase/ulc-casexfrm'.
50027         * lib/unicase.h (ulc_casexfrm): New declaration.
50028         * lib/unicase/ulc-casexfrm.c: New file.
50029         * modules/unicase/ulc-casexfrm: New file.
50030
50031 2009-03-09  Bruno Haible  <bruno@clisp.org>
50032
50033         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50034         invocations.
50035
50036         * m4/mbscasecmp.m4: Remove file.
50037         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50038         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50039
50040         * m4/mbscasestr.m4: Remove file.
50041         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50042         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50043
50044         * m4/mbschr.m4: Remove file.
50045         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50046         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50047
50048         * m4/mbscspn.m4: Remove file.
50049         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50050         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50051
50052         * m4/mbslen.m4: Remove file.
50053         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50054         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50055
50056         * m4/mbsncasecmp.m4: Remove file.
50057         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50058         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50059
50060         * m4/mbsnlen.m4: Remove file.
50061         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50062         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50063
50064         * m4/mbspbrk.m4: Remove file.
50065         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50066         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50067
50068         * m4/mbspcasecmp.m4: Remove file.
50069         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50070         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50071
50072         * m4/mbsrchr.m4: Remove file.
50073         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50074         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50075
50076         * m4/mbssep.m4: Remove file.
50077         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50078         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50079
50080         * m4/mbsspn.m4: Remove file.
50081         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50082         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50083
50084         * m4/mbsstr.m4: Remove file.
50085         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50086         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50087
50088         * m4/mbstok_r.m4: Remove file.
50089         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50090         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50091
50092         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50093
50094         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50095         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50096
50097         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50098
50099 2009-03-08  Bruno Haible  <bruno@clisp.org>
50100
50101         Tests for module 'unicase/ulc-casecmp'.
50102         * modules/unicase/ulc-casecmp-tests: New file.
50103         * tests/unicase/test-ulc-casecmp1.sh: New file.
50104         * tests/unicase/test-ulc-casecmp2.sh: New file.
50105         * tests/unicase/test-ulc-casecmp.c: New file.
50106
50107         New module 'unicase/ulc-casecmp'.
50108         * lib/unicase.h (ulc_casecmp): New declaration.
50109         * lib/unicase/ulc-casecmp.c: New file.
50110         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50111         'const SRC_UNIT *'.
50112         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50113         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50114         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50115         * modules/unicase/ulc-casecmp: New file.
50116
50117         Tests for module 'unicase/u32-is-cased'.
50118         * modules/unicase/u32-is-cased-tests: New file.
50119         * tests/unicase/test-u32-is-cased.c: New file.
50120
50121         Tests for module 'unicase/u16-is-cased'.
50122         * modules/unicase/u16-is-cased-tests: New file.
50123         * tests/unicase/test-u16-is-cased.c: New file.
50124
50125         Tests for module 'unicase/u8-is-cased'.
50126         * modules/unicase/u8-is-cased-tests: New file.
50127         * tests/unicase/test-u8-is-cased.c: New file.
50128         * tests/unicase/test-is-cased.h: New file.
50129
50130         New module 'unicase/u32-is-cased'.
50131         * lib/unicase/u32-is-cased.c: New file.
50132         * modules/unicase/u32-is-cased: New file.
50133
50134         New module 'unicase/u16-is-cased'.
50135         * lib/unicase/u16-is-cased.c: New file.
50136         * modules/unicase/u16-is-cased: New file.
50137
50138         New module 'unicase/u8-is-cased'.
50139         * lib/unicase/u8-is-cased.c: New file.
50140         * lib/unicase/u-is-cased.h: New file.
50141         * modules/unicase/u8-is-cased: New file.
50142
50143         Tests for module 'unicase/u32-is-casefolded'.
50144         * modules/unicase/u32-is-casefolded-tests: New file.
50145         * tests/unicase/test-u32-is-casefolded.c: New file.
50146
50147         Tests for module 'unicase/u16-is-casefolded'.
50148         * modules/unicase/u16-is-casefolded-tests: New file.
50149         * tests/unicase/test-u16-is-casefolded.c: New file.
50150
50151         Tests for module 'unicase/u8-is-casefolded'.
50152         * modules/unicase/u8-is-casefolded-tests: New file.
50153         * tests/unicase/test-u8-is-casefolded.c: New file.
50154         * tests/unicase/test-is-casefolded.h: New file.
50155
50156         New module 'unicase/u32-is-casefolded'.
50157         * lib/unicase/u32-is-casefolded.c: New file.
50158         * modules/unicase/u32-is-casefolded: New file.
50159
50160         New module 'unicase/u16-is-casefolded'.
50161         * lib/unicase/u16-is-casefolded.c: New file.
50162         * modules/unicase/u16-is-casefolded: New file.
50163
50164         New module 'unicase/u8-is-casefolded'.
50165         * lib/unicase/u8-is-casefolded.c: New file.
50166         * modules/unicase/u8-is-casefolded: New file.
50167
50168         Tests for module 'unicase/u32-is-titlecase'.
50169         * modules/unicase/u32-is-titlecase-tests: New file.
50170         * tests/unicase/test-u32-is-titlecase.c: New file.
50171
50172         Tests for module 'unicase/u16-is-titlecase'.
50173         * modules/unicase/u16-is-titlecase-tests: New file.
50174         * tests/unicase/test-u16-is-titlecase.c: New file.
50175
50176         Tests for module 'unicase/u8-is-titlecase'.
50177         * modules/unicase/u8-is-titlecase-tests: New file.
50178         * tests/unicase/test-u8-is-titlecase.c: New file.
50179         * tests/unicase/test-is-titlecase.h: New file.
50180
50181         New module 'unicase/u32-is-titlecase'.
50182         * lib/unicase/u32-is-titlecase.c: New file.
50183         * modules/unicase/u32-is-titlecase: New file.
50184
50185         New module 'unicase/u16-is-titlecase'.
50186         * lib/unicase/u16-is-titlecase.c: New file.
50187         * modules/unicase/u16-is-titlecase: New file.
50188
50189         New module 'unicase/u8-is-titlecase'.
50190         * lib/unicase/u8-is-titlecase.c: New file.
50191         * modules/unicase/u8-is-titlecase: New file.
50192
50193         Tests for module 'unicase/u32-is-lowercase'.
50194         * modules/unicase/u32-is-lowercase-tests: New file.
50195         * tests/unicase/test-u32-is-lowercase.c: New file.
50196
50197         Tests for module 'unicase/u16-is-lowercase'.
50198         * modules/unicase/u16-is-lowercase-tests: New file.
50199         * tests/unicase/test-u16-is-lowercase.c: New file.
50200
50201         Tests for module 'unicase/u8-is-lowercase'.
50202         * modules/unicase/u8-is-lowercase-tests: New file.
50203         * tests/unicase/test-u8-is-lowercase.c: New file.
50204         * tests/unicase/test-is-lowercase.h: New file.
50205
50206         New module 'unicase/u32-is-lowercase'.
50207         * lib/unicase/u32-is-lowercase.c: New file.
50208         * modules/unicase/u32-is-lowercase: New file.
50209
50210         New module 'unicase/u16-is-lowercase'.
50211         * lib/unicase/u16-is-lowercase.c: New file.
50212         * modules/unicase/u16-is-lowercase: New file.
50213
50214         New module 'unicase/u8-is-lowercase'.
50215         * lib/unicase/u8-is-lowercase.c: New file.
50216         * modules/unicase/u8-is-lowercase: New file.
50217
50218         Tests for module 'unicase/u32-is-uppercase'.
50219         * modules/unicase/u32-is-uppercase-tests: New file.
50220         * tests/unicase/test-u32-is-uppercase.c: New file.
50221
50222         Tests for module 'unicase/u16-is-uppercase'.
50223         * modules/unicase/u16-is-uppercase-tests: New file.
50224         * tests/unicase/test-u16-is-uppercase.c: New file.
50225
50226         Tests for module 'unicase/u8-is-uppercase'.
50227         * modules/unicase/u8-is-uppercase-tests: New file.
50228         * tests/unicase/test-u8-is-uppercase.c: New file.
50229         * tests/unicase/test-is-uppercase.h: New file.
50230
50231         New module 'unicase/u32-is-uppercase'.
50232         * lib/unicase/u32-is-uppercase.c: New file.
50233         * modules/unicase/u32-is-uppercase: New file.
50234
50235         New module 'unicase/u16-is-uppercase'.
50236         * lib/unicase/u16-is-uppercase.c: New file.
50237         * modules/unicase/u16-is-uppercase: New file.
50238
50239         New module 'unicase/u8-is-uppercase'.
50240         * lib/unicase/u8-is-uppercase.c: New file.
50241         * modules/unicase/u8-is-uppercase: New file.
50242
50243         New module 'unicase/u32-is-invariant'.
50244         * lib/unicase/u32-is-invariant.c: New file.
50245         * modules/unicase/u32-is-invariant: New file.
50246
50247         New module 'unicase/u16-is-invariant'.
50248         * lib/unicase/u16-is-invariant.c: New file.
50249         * modules/unicase/u16-is-invariant: New file.
50250
50251         New module 'unicase/u8-is-invariant'.
50252         * lib/unicase/u8-is-invariant.c: New file.
50253         * lib/unicase/invariant.h: New file.
50254         * lib/unicase/u-is-invariant.h: New file.
50255         * modules/unicase/u8-is-invariant: New file.
50256
50257         Tests for module 'unicase/u32-casecoll'.
50258         * modules/unicase/u32-casecoll-tests: New file.
50259         * tests/unicase/test-u32-casecoll.c: New file.
50260
50261         Tests for module 'unicase/u16-casecoll'.
50262         * modules/unicase/u16-casecoll-tests: New file.
50263         * tests/unicase/test-u16-casecoll.c: New file.
50264
50265         Tests for module 'unicase/u8-casecoll'.
50266         * modules/unicase/u8-casecoll-tests: New file.
50267         * tests/unicase/test-u8-casecoll.c: New file.
50268
50269         New module 'unicase/u32-casecoll'.
50270         * lib/unicase/u32-casecoll.c: New file.
50271         * modules/unicase/u32-casecoll: New file.
50272
50273         New module 'unicase/u16-casecoll'.
50274         * lib/unicase/u16-casecoll.c: New file.
50275         * modules/unicase/u16-casecoll: New file.
50276
50277         New module 'unicase/u8-casecoll'.
50278         * lib/unicase/u8-casecoll.c: New file.
50279         * lib/unicase/u-casecoll.h: New file.
50280         * modules/unicase/u8-casecoll: New file.
50281
50282         New module 'unicase/u32-casexfrm'.
50283         * lib/unicase/u32-casexfrm.c: New file.
50284         * modules/unicase/u32-casexfrm: New file.
50285
50286         New module 'unicase/u16-casexfrm'.
50287         * lib/unicase/u16-casexfrm.c: New file.
50288         * modules/unicase/u16-casexfrm: New file.
50289
50290         New module 'unicase/u8-casexfrm'.
50291         * lib/unicase/u8-casexfrm.c: New file.
50292         * lib/unicase/u-casexfrm.h: New file.
50293         * modules/unicase/u8-casexfrm: New file.
50294
50295         Tests for module 'unicase/u32-casecmp'.
50296         * modules/unicase/u32-casecmp-tests: New file.
50297         * tests/unicase/test-u32-casecmp.c: New file.
50298
50299         Tests for module 'unicase/u16-casecmp'.
50300         * modules/unicase/u16-casecmp-tests: New file.
50301         * tests/unicase/test-u16-casecmp.c: New file.
50302
50303         Tests for module 'unicase/u8-casecmp'.
50304         * modules/unicase/u8-casecmp-tests: New file.
50305         * tests/unicase/test-u8-casecmp.c: New file.
50306         * tests/unicase/test-casecmp.h: New file.
50307
50308         New module 'unicase/u32-casecmp'.
50309         * lib/unicase/u32-casecmp.c: New file.
50310         * modules/unicase/u32-casecmp: New file.
50311
50312         New module 'unicase/u16-casecmp'.
50313         * lib/unicase/u16-casecmp.c: New file.
50314         * modules/unicase/u16-casecmp: New file.
50315
50316         New module 'unicase/u8-casecmp'.
50317         * lib/unicase/u8-casecmp.c: New file.
50318         * lib/unicase/u-casecmp.h: New file.
50319         * modules/unicase/u8-casecmp: New file.
50320
50321         Tests for module 'unicase/u32-casefold'.
50322         * modules/unicase/u32-casefold-tests: New file.
50323         * tests/unicase/test-u32-casefold.c: New file.
50324
50325         Tests for module 'unicase/u16-casefold'.
50326         * modules/unicase/u16-casefold-tests: New file.
50327         * tests/unicase/test-u16-casefold.c: New file.
50328
50329         Tests for module 'unicase/u8-casefold'.
50330         * modules/unicase/u8-casefold-tests: New file.
50331         * tests/unicase/test-u8-casefold.c: New file.
50332
50333         New module 'unicase/u32-casefold'.
50334         * lib/unicase/u32-casefold.c: New file.
50335         * modules/unicase/u32-casefold: New file.
50336
50337         New module 'unicase/u16-casefold'.
50338         * lib/unicase/u16-casefold.c: New file.
50339         * modules/unicase/u16-casefold: New file.
50340
50341         New module 'unicase/u8-casefold'.
50342         * lib/unicase/u8-casefold.c: New file.
50343         * lib/unicase/u-casefold.h: New file.
50344         * modules/unicase/u8-casefold: New file.
50345
50346         New module 'unicase/tocasefold'.
50347         * lib/unicase/casefold.h: New file.
50348         * lib/unicase/tocasefold.c: New file.
50349         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50350         * modules/unicase/tocasefold: New file.
50351
50352         Tests for module 'unicase/u32-totitle'.
50353         * modules/unicase/u32-totitle-tests: New file.
50354         * tests/unicase/test-u32-totitle.c: New file.
50355
50356         Tests for module 'unicase/u16-totitle'.
50357         * modules/unicase/u16-totitle-tests: New file.
50358         * tests/unicase/test-u16-totitle.c: New file.
50359
50360         Tests for module 'unicase/u8-totitle'.
50361         * modules/unicase/u8-totitle-tests: New file.
50362         * tests/unicase/test-u8-totitle.c: New file.
50363
50364         New module 'unicase/u32-totitle'.
50365         * lib/unicase/u32-totitle.c: New file.
50366         * modules/unicase/u32-totitle: New file.
50367
50368         New module 'unicase/u16-totitle'.
50369         * lib/unicase/u16-totitle.c: New file.
50370         * modules/unicase/u16-totitle: New file.
50371
50372         New module 'unicase/u8-totitle'.
50373         * lib/unicase/u8-totitle.c: New file.
50374         * lib/unicase/u-totitle.h: New file.
50375         * modules/unicase/u8-totitle: New file.
50376
50377         Tests for module 'unicase/u32-tolower'.
50378         * modules/unicase/u32-tolower-tests: New file.
50379         * tests/unicase/test-u32-tolower.c: New file.
50380
50381         Tests for module 'unicase/u16-tolower'.
50382         * modules/unicase/u16-tolower-tests: New file.
50383         * tests/unicase/test-u16-tolower.c: New file.
50384
50385         Tests for module 'unicase/u8-tolower'.
50386         * modules/unicase/u8-tolower-tests: New file.
50387         * tests/unicase/test-u8-tolower.c: New file.
50388
50389         New module 'unicase/u32-tolower'.
50390         * lib/unicase/u32-tolower.c: New file.
50391         * modules/unicase/u32-tolower: New file.
50392
50393         New module 'unicase/u16-tolower'.
50394         * lib/unicase/u16-tolower.c: New file.
50395         * modules/unicase/u16-tolower: New file.
50396
50397         New module 'unicase/u8-tolower'.
50398         * lib/unicase/u8-tolower.c: New file.
50399         * modules/unicase/u8-tolower: New file.
50400
50401         Tests for module 'unicase/u32-toupper'.
50402         * modules/unicase/u32-toupper-tests: New file.
50403         * tests/unicase/test-u32-toupper.c: New file.
50404
50405         Tests for module 'unicase/u16-toupper'.
50406         * modules/unicase/u16-toupper-tests: New file.
50407         * tests/unicase/test-u16-toupper.c: New file.
50408
50409         Tests for module 'unicase/u8-toupper'.
50410         * modules/unicase/u8-toupper-tests: New file.
50411         * tests/unicase/test-u8-toupper.c: New file.
50412
50413         New module 'unicase/u32-toupper'.
50414         * lib/unicase/u32-toupper.c: New file.
50415         * modules/unicase/u32-toupper: New file.
50416
50417         New module 'unicase/u16-toupper'.
50418         * lib/unicase/u16-toupper.c: New file.
50419         * modules/unicase/u16-toupper: New file.
50420
50421         New module 'unicase/u8-toupper'.
50422         * lib/unicase/u8-toupper.c: New file.
50423         * modules/unicase/u8-toupper: New file.
50424
50425         New module 'unicase/u32-casemap'.
50426         * lib/unicase/u32-casemap.c: New file.
50427         * modules/unicase/u32-casemap: New file.
50428
50429         New module 'unicase/u16-casemap'.
50430         * lib/unicase/u16-casemap.c: New file.
50431         * modules/unicase/u16-casemap: New file.
50432
50433         New module 'unicase/u8-casemap'.
50434         * lib/unicase/unicasemap.h: New file.
50435         * lib/unicase/u8-casemap.c: New file.
50436         * lib/unicase/u-casemap.h: New file.
50437         * modules/unicase/u8-casemap: New file.
50438
50439         New module 'unicase/special-casing'.
50440         * lib/unicase/special-casing.h: New file.
50441         * lib/unicase/special-casing.c: New file.
50442         * lib/unicase/special-casing-table.gperf: New file, generated by
50443         gen-uni-tables.c.
50444         * modules/unicase/special-casing: New file.
50445
50446         Tests for module 'unicase/locale-language'.
50447         * modules/unicase/locale-language-tests: New file.
50448         * tests/unicase/test-locale-language.sh: New file.
50449         * tests/unicase/test-locale-language.c: New file.
50450
50451         New module 'unicase/locale-language'.
50452         * lib/unicase/locale-language.c: New file.
50453         * lib/unicase/locale-languages.gperf: New file.
50454         * modules/unicase/locale-language: New file.
50455
50456         Generate more tables for case conversion and case folding.
50457         * lib/gen-uni-tables.c (SCC_*): New enum items.
50458         (struct special_casing_rule): New type.
50459         (casing_rules, num_casing_rules, allocated_casing_rules): New
50460         variables.
50461         (add_casing_rule, fill_casing_rules): New functions.
50462         (struct casefold_rule): New type.
50463         (casefolding_rules, num_casefolding_rules,
50464         allocated_casefolding_rules): New variables.
50465         (fill_casefolding_rules): New function.
50466         (unicode_casefold): New variable.
50467         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50468         sort_casing_rules, output_casing_rules): New functions.
50469         (main): Accept to more arguments: SpecialCasing.txt and
50470         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50471         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50472         Output mapping for casefolding.
50473
50474         * lib/unicase.h: Include stdbool.h, uninorm.h.
50475         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50476         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50477         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50478         arguments.
50479         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50480         resultp arguments.
50481         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50482         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50483         resultp arguments.
50484         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50485         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50486         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50487         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50488         declarations.
50489         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50490
50491 2009-03-08  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50494         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50495         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50496         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50497
50498 2009-03-07  Bruno Haible  <bruno@clisp.org>
50499
50500         Adjust u*_normcmp, u*_normcoll API.
50501         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50502         u16_normcoll, u32_normcoll): Change failure conventions.
50503         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50504         errno and return -1.
50505         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50506
50507 2009-03-07  Bruno Haible  <bruno@clisp.org>
50508
50509         Tests for module 'uninorm/u32-normcoll'.
50510         * modules/uninorm/u32-normcoll-tests: New file.
50511         * tests/uninorm/test-u32-normcoll.c: New file.
50512
50513         Tests for module 'uninorm/u16-normcoll'.
50514         * modules/uninorm/u16-normcoll-tests: New file.
50515         * tests/uninorm/test-u16-normcoll.c: New file.
50516
50517         Tests for module 'uninorm/u8-normcoll'.
50518         * modules/uninorm/u8-normcoll-tests: New file.
50519         * tests/uninorm/test-u8-normcoll.c: New file.
50520
50521 2009-03-07  Bruno Haible  <bruno@clisp.org>
50522
50523         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50524         tests/uninorm/test-u32-normcmp.c.
50525         * tests/uninorm/test-u32-normcmp.c: Include it.
50526         (test_nonascii): New function, extracted from main. Add some more
50527         tests.
50528         (main): Invoke test_ascii and test_nonascii.
50529         * modules/uninorm/u32-normcmp-tests (Files): Add
50530         tests/uninorm/test-u32-normcmp.h.
50531         (Depends-on): Remove uninorm/u32-normcmp.
50532
50533         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50534         tests/uninorm/test-u16-normcmp.c.
50535         * tests/uninorm/test-u16-normcmp.c: Include it.
50536         (test_nonascii): New function, extracted from main. Add some more
50537         tests.
50538         (main): Invoke test_ascii and test_nonascii.
50539         * modules/uninorm/u16-normcmp-tests (Files): Add
50540         tests/uninorm/test-u16-normcmp.h.
50541         (Depends-on): Remove uninorm/u16-normcmp.
50542
50543         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50544         tests/uninorm/test-u8-normcmp.c.
50545         * tests/uninorm/test-u8-normcmp.c: Include it.
50546         (test_nonascii): New function, extracted from main. Add some more
50547         tests.
50548         (main): Invoke test_ascii and test_nonascii.
50549         * modules/uninorm/u8-normcmp-tests (Files): Add
50550         tests/uninorm/test-u8-normcmp.h.
50551         (Depends-on): Remove uninorm/u8-normcmp.
50552
50553 2009-03-07  Bruno Haible  <bruno@clisp.org>
50554
50555         New module 'uninorm/u32-normcoll'.
50556         * lib/uninorm/u32-normcoll.c: New file.
50557         * modules/uninorm/u32-normcoll: New file.
50558
50559         New module 'uninorm/u16-normcoll'.
50560         * lib/uninorm/u16-normcoll.c: New file.
50561         * modules/uninorm/u16-normcoll: New file.
50562
50563         New module 'uninorm/u8-normcoll'.
50564         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50565         declarations.
50566         * lib/uninorm/u8-normcoll.c: New file.
50567         * lib/uninorm/u-normcoll.h: New file.
50568         * modules/uninorm/u8-normcoll: New file.
50569
50570         New module 'uninorm/u32-normxfrm'.
50571         * lib/uninorm/u32-normxfrm.c: New file.
50572         * modules/uninorm/u32-normxfrm: New file.
50573
50574         New module 'uninorm/u16-normxfrm'.
50575         * lib/uninorm/u16-normxfrm.c: New file.
50576         * modules/uninorm/u16-normxfrm: New file.
50577
50578         New module 'uninorm/u8-normxfrm'.
50579         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50580         declarations.
50581         * lib/uninorm/u8-normxfrm.c: New file.
50582         * lib/uninorm/u-normxfrm.h: New file.
50583         * modules/uninorm/u8-normxfrm: New file.
50584
50585 2009-03-07  Bruno Haible  <bruno@clisp.org>
50586
50587         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50588         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50589         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50590
50591 2009-03-07  Bruno Haible  <bruno@clisp.org>
50592
50593         New module 'memxfrm'.
50594         * lib/memxfrm.h: New file.
50595         * lib/memxfrm.c: New file.
50596         * modules/memxfrm: New file.
50597
50598 2009-03-07  Bruno Haible  <bruno@clisp.org>
50599
50600         New module 'memcmp2'.
50601         * lib/memcmp2.h: New file.
50602         * lib/memcmp2.c: New file.
50603         * modules/memcmp2: New file.
50604
50605 2009-03-07  Bruno Haible  <bruno@clisp.org>
50606
50607         Tests for module 'uninorm/decomposing-form'.
50608         * modules/uninorm/decomposing-form-tests: New file.
50609         * tests/uninorm/test-decomposing-form.c: New file.
50610
50611         New module 'uninorm/decomposing-form'.
50612         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50613         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50614         Add 'decomposing_variant' field.
50615         * lib/uninorm/decomposing-form.c: New file.
50616         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50617         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50618         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50619         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50620         * modules/uninorm/decomposing-form: New file.
50621         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50622         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50623
50624 2009-03-07  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50627         strings.
50628
50629 2009-03-06  Bruno Haible  <bruno@clisp.org>
50630
50631         Tests for module 'uninorm/u32-normcmp'.
50632         * tests/uninorm/test-u32-normcmp.c: New file.
50633         * modules/uninorm/u32-normcmp-tests: New file.
50634
50635         Tests for module 'uninorm/u16-normcmp'.
50636         * tests/uninorm/test-u16-normcmp.c: New file.
50637         * modules/uninorm/u16-normcmp-tests: New file.
50638
50639         Tests for module 'uninorm/u8-normcmp'.
50640         * tests/uninorm/test-u8-normcmp.c: New file.
50641         * modules/uninorm/u8-normcmp-tests: New file.
50642
50643         New module 'uninorm/u32-normcmp'.
50644         * lib/uninorm/u32-normcmp.c: New file.
50645         * modules/uninorm/u32-normcmp: New file.
50646
50647         New module 'uninorm/u16-normcmp'.
50648         * lib/uninorm/u16-normcmp.c: New file.
50649         * modules/uninorm/u16-normcmp: New file.
50650
50651         New module 'uninorm/u8-normcmp'.
50652         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50653         declarations.
50654         * lib/uninorm/u8-normcmp.c: New file.
50655         * lib/uninorm/u-normcmp.h: New file.
50656         * modules/uninorm/u8-normcmp: New file.
50657
50658 2009-03-06  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50661         Reported by Eric Blake.
50662
50663 2009-03-06  Eric Blake  <ebb9@byu.net>
50664             Bruno Haible  <bruno@clisp.org>
50665
50666         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50667         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50668         condition.
50669         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50670         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50671         condition.
50672         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50673
50674 2009-03-06  Eric Blake  <ebb9@byu.net>
50675
50676         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50677         to avoid compiler warnings.
50678         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50679
50680 2009-03-05  Bruno Haible  <bruno@clisp.org>
50681
50682         * tests/test-ftell.c (main): Disable test beyond end of file on
50683         FreeMiNT.
50684         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50685
50686 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50687
50688         * lib/filevercmp.c: Move hidden files up in ordering.
50689         * tests/test-filevercmp.c: Add tests for hidden files.
50690
50691 2009-03-04  Bruno Haible  <bruno@clisp.org>
50692
50693         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50694         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50695         AM_CFLAGS.
50696         Reported by Simon Josefsson.
50697
50698 2009-03-03  Bruno Haible  <bruno@clisp.org>
50699
50700         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50701         Reported by Simon Josefsson.
50702
50703         * doc/ld-version-script.texi: Update node reference.
50704
50705 2009-03-03  Bruno Haible  <bruno@clisp.org>
50706
50707         * modules/visibility (License): Change to 'unlimited'.
50708         Suggested by Simon Josefsson.
50709
50710 2009-03-03  Jim Meyering  <meyering@redhat.com>
50711
50712         unlinkdir: cannot_unlink_dir may modify process state
50713         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50714         it's neither thread-safe nor appropriate for use in a library.
50715
50716 2009-03-03  Eric Blake  <ebb9@byu.net>
50717
50718         test-closein: silence test under Darwin
50719         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50720         care if it dies from EPIPE or EBADF.
50721
50722 2009-03-03  Bruno Haible  <bruno@clisp.org>
50723
50724         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50725         earlier.
50726         * doc/visibility.texi: Fix @node and @section.
50727
50728 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50729
50730         * doc/gnulib.texi: Link to sections for ld version script and
50731         visibility.
50732         * doc/visibility.texi: Add @node and @section.
50733         * modules/ld-version-script: New module.
50734         * m4/ld-version-script.m4: New file.
50735         * doc/ld-version-script.texi: New file.
50736
50737 2009-03-02  David Lutterkort  <lutter@redhat.com>
50738
50739         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50741
50742 2009-03-02  Bruno Haible  <bruno@clisp.org>
50743
50744         * doc/visibility.texi: Mention libtool's -export-symbols option.
50745
50746 2009-03-02  Jim Meyering  <meyering@redhat.com>
50747
50748         announce-gen: new option: --no-print-checksums
50749         * build-aux/announce-gen (usage): Describe it.
50750         (print_checksums): Print a newline here, not in the [*] footnote.
50751         (main): Honor it.
50752
50753 2009-03-01  Bruno Haible  <bruno@clisp.org>
50754
50755         Use socklen_t in the native Windows replacements prototypes.
50756         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50757         instead of 'int'.
50758         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50759         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50760         * modules/getsockopt (Depends-on): Add socklen.
50761         * modules/setsockopt (Depends-on): Add socklen.
50762
50763 2009-03-01  Bruno Haible  <bruno@clisp.org>
50764
50765         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50766         least 4.2.
50767
50768 2009-03-01  Eric Blake  <ebb9@byu.net>
50769             Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50772         error messages.
50773         * lib/wait-process.c (wait_subprocess): Omit error message about
50774         deadly signal sent to the child of termsigp != NULL.
50775
50776 2009-03-01  Eric Blake  <ebb9@byu.net>
50777
50778         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50779
50780 2009-03-01  Bruno Haible  <bruno@clisp.org>
50781
50782         Avoid a gcc warning.
50783         * tests/test-sched.c (b): Make global.
50784         Reported by Eric Blake.
50785
50786 2009-01-19  Martin Lambers  <marlam@marlam.de>
50787
50788         Provide POSIX semantics for socket timeout options on W32.
50789         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50790         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50791         * modules/setsockopt: Depend on sys_time module for struct timeval.
50792         * modules/getsockopt: Depend on sys_time module for struct timeval.
50793
50794 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50795
50796         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50797         __USE_GNU, for consistency with netdb.in.h.
50798         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50799
50800 2009-03-01  Bruno Haible  <bruno@clisp.org>
50801
50802         More support for FreeMiNT.
50803         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50804         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50805
50806 2009-03-01  Bruno Haible  <bruno@clisp.org>
50807
50808         More support for FreeMiNT.
50809         * lib/fpurge.c (fpurge): Correct last commit.
50810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50811
50812 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50813
50814         Fix unportable awk script in vc-list-files.
50815         * build-aux/vc-list-files: In the replacement awk script, use
50816         substr with a second argument of 1, not zero.
50817         Report by Simon Josefsson.
50818
50819 2009-02-28  Bruno Haible  <bruno@clisp.org>
50820
50821         More support for FreeMiNT.
50822         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50823         to FreeMiNT today.
50824         * lib/fwriting.c (fwriting): Likewise.
50825         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50826
50827 2009-02-28  Bruno Haible  <bruno@clisp.org>
50828
50829         * tests/test-freadseek.c (main): Disable test beyond end of file on
50830         FreeMiNT.
50831         * tests/test-ftello.c (main): Likewise.
50832         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50833
50834 2009-02-28  Bruno Haible  <bruno@clisp.org>
50835
50836         Add tentative support for FreeMiNT.
50837         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50838         * lib/fpurge.c (fpurge): Likewise.
50839         * lib/freadable.c (freadable): Likewise.
50840         * lib/freading.c (freading): Likewise.
50841         * lib/freadptr.c (freadptr): Likewise.
50842         * lib/freadseek.c (freadptrinc): Likewise.
50843         * lib/fseeko.c (rpl_fseeko): Likewise.
50844         * lib/fseterr.c (fseterr): Likewise.
50845         * lib/fwritable.c (fwritable): Likewise.
50846         * lib/fwriting.c (fwriting): Likewise.
50847         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50848         Hourihane.
50849         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50850
50851 2009-02-28  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50854         SIGCHLD.
50855         Reported by Jim Meyering.
50856
50857 2009-02-28  Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50860         Mention the results of these tests on various platforms.
50861         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50862         order.
50863         * doc/posix-functions/printf.texi: Likewise.
50864         * doc/posix-functions/snprintf.texi: Likewise.
50865         * doc/posix-functions/sprintf.texi: Likewise.
50866         * doc/posix-functions/vfprintf.texi: Likewise.
50867         * doc/posix-functions/vprintf.texi: Likewise.
50868         * doc/posix-functions/vsnprintf.texi: Likewise.
50869         * doc/posix-functions/vsprintf.texi: Likewise.
50870         * doc/glibc-functions/obstack_printf.texi: Likewise.
50871         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50872
50873 2009-02-28  Bruno Haible  <bruno@clisp.org>
50874
50875         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50876         Reported by Loïc Minier <lool@dooz.org>.
50877
50878 2009-02-27  Bruno Haible  <bruno@clisp.org>
50879
50880         * gnulib-tool (func_import): Make the sed expression used to create the
50881         sed script for updating the .gitignore file POSIX compliant.
50882         Reported by Eric Blake.
50883
50884 2009-02-27  Bruno Haible  <bruno@clisp.org>
50885
50886         * gnulib-tool (sed): Don't alias as "sed --posix".
50887         Reported by Eric Blake.
50888
50889 2009-02-27  Bruno Haible  <bruno@clisp.org>
50890
50891         Avoid test link errors.
50892         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50893         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50894         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50895         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50896         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50897
50898 2009-02-27  Bruno Haible  <bruno@clisp.org>
50899
50900         Avoid spurious "(cached)" in configure output.
50901         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50902         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50903         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50904         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50905         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50907         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50908         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50909         Reported by Eric Blake.
50910
50911 2009-02-27  Eric Blake  <ebb9@byu.net>
50912
50913         printf: fix regression in previous patch
50914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50915
50916 2009-02-27  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50919         value.
50920         * lib/stdint.in.h: Likewise.
50921         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50922
50923 2009-02-27  Eric Blake  <ebb9@byu.net>
50924
50925         doc: mention more functions added in cygwin 1.7.0
50926         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50927         addition.
50928         * doc/posix-functions/open_wmemstream.texi: Likewise.
50929         * doc/posix-functions/wcsnlen.texi: Likewise.
50930         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50931         * doc/posix-functions/wcstod.texi: Likewise.
50932         * doc/posix-functions/wcstof.texi: Likewise.
50933         * doc/posix-functions/wcstoimax.texi: Likewise.
50934         * doc/posix-functions/wcstok.texi: Likewise.
50935         * doc/posix-functions/wcstoumax.texi: Likewise.
50936
50937         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50938         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50939         * doc/posix-functions/fprintf.texi: Update.
50940         * doc/posix-functions/printf.texi: Update.
50941         * doc/posix-functions/snprintf.texi: Update.
50942         * doc/posix-functions/sprintf.texi: Update.
50943         * doc/posix-functions/vfprintf.texi: Update.
50944         * doc/posix-functions/vprintf.texi: Update.
50945         * doc/posix-functions/vsnprintf.texi: Update.
50946         * doc/posix-functions/vsprintf.texi: Update.
50947         * doc/glibc-functions/obstack_printf.texi: Update.
50948         * doc/glibc-functions/obstack_vprintf.texi: Update.
50949
50950 2009-02-26  Eric Blake  <ebb9@byu.net>
50951
50952         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50953         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50954         compilation bug by using runtime conversion.
50955         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50956         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50957         * modules/ceill-tests (Files): Use nan.h.
50958         * modules/floorl-tests (Files): Likewise.
50959         * modules/frexpl-tests (Files): Likewise.
50960         * modules/isnanl-tests (Files): Likewise.
50961         * modules/ldexpl-tests (Files): Likewise.
50962         * modules/roundl-tests (Files): Likewise.
50963         * modules/truncl-tests (Files): Likewise.
50964         * tests/test-ceill.c (main): Use a working NaN.
50965         * tests/test-floorl.c (main): Likewise.
50966         * tests/test-frexpl.c (main): Likewise.
50967         * tests/test-isnan.c (test_long_double): Likewise.
50968         * tests/test-isnanl.h (main): Likewise.
50969         * tests/test-ldexpl.h (main): Likewise.
50970         * tests/test-roundl.h (main): Likewise.
50971         * tests/test-truncl.h (main): Likewise.
50972         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50973
50974 2009-02-26  Eric Blake  <ebb9@byu.net>
50975             Bruno Haible  <bruno@clisp.org>
50976
50977         Work around a *printf bug with %ls on Solaris.
50978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50979         precision is specified, sprintf stops converting the wide string
50980         argument when the number of bytes that have been produced by this
50981         conversion equals or exceeds the precision.
50982         * doc/posix-functions/fprintf.texi: Update.
50983         * doc/posix-functions/printf.texi: Update.
50984         * doc/posix-functions/snprintf.texi: Update.
50985         * doc/posix-functions/sprintf.texi: Update.
50986         * doc/posix-functions/vfprintf.texi: Update.
50987         * doc/posix-functions/vprintf.texi: Update.
50988         * doc/posix-functions/vsnprintf.texi: Update.
50989         * doc/posix-functions/vsprintf.texi: Update.
50990         * doc/glibc-functions/obstack_printf.texi: Update.
50991         * doc/glibc-functions/obstack_vprintf.texi: Update.
50992
50993 2009-02-26  Eric Blake  <ebb9@byu.net>
50994
50995         stdlib: favor compiler check of random.h
50996         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50997         to avoid an ObjC random.h installed by Swarm.
50998
50999 2009-02-26  Bruno Haible  <bruno@clisp.org>
51000
51001         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51002         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51003         Reported by Gary V. Vaughan <gary@gnu.org>.
51004
51005 2009-02-26  Bruno Haible  <bruno@clisp.org>
51006
51007         Fix *printf behaviour regarding the %ls directive.
51008         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51009         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51010         NEED_PRINTF_DIRECTIVE_LS.
51011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51012         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51014         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51015         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51016         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51017         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51022         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51026         * doc/posix-functions/fprintf.texi: Update.
51027         * doc/posix-functions/printf.texi: Update.
51028         * doc/posix-functions/snprintf.texi: Update.
51029         * doc/posix-functions/sprintf.texi: Update.
51030         * doc/posix-functions/vfprintf.texi: Update.
51031         * doc/posix-functions/vprintf.texi: Update.
51032         * doc/posix-functions/vsnprintf.texi: Update.
51033         * doc/posix-functions/vsprintf.texi: Update.
51034         * doc/glibc-functions/obstack_printf.texi: Update.
51035         * doc/glibc-functions/obstack_vprintf.texi: Update.
51036         Reported by Eric Blake.
51037
51038 2009-02-25  Bruno Haible  <bruno@clisp.org>
51039
51040         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51041         with known value.
51042         Reported by Gary V. Vaughan <gary@gnu.org>.
51043
51044 2009-02-25  Bruno Haible  <bruno@clisp.org>
51045
51046         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51047         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51048         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51049         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51050         Reported by Gary V. Vaughan <gary@gnu.org>.
51051
51052 2009-02-25  Bruno Haible  <bruno@clisp.org>
51053
51054         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51055         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51056         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51057         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51058         Reported by Gary V. Vaughan <gary@gnu.org>.
51059
51060 2009-02-25  Eric Blake  <ebb9@byu.net>
51061
51062         tests: skip fseek/ftell tests if ungetc is broken
51063         * m4/ungetc.m4: New file.
51064         * modules/fseek-tests: Split test, so ungetc dependency is
51065         separate from rest of test.
51066         * modules/fseeko-tests: Likewise.
51067         * modules/ftell-tests: Likewise.
51068         * modules/ftello-tests: Likewise.
51069         * tests/test-fseek.c (main): Isolate ungetc dependency.
51070         * tests/test-fseeko.c (main): Likewise.
51071         * tests/test-ftell.c (main): Likewise.
51072         * tests/test-ftello.c (main): Likewise.
51073         * tests/test-fseek2.sh: New file.
51074         * tests/test-fseeko2.sh: Likewise.
51075         * tests/test-ftell2.sh: Likewise.
51076         * tests/test-ftello2.sh: Likewise.
51077
51078 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51079
51080         test-getaddrinfo: fix usage of skip return code 77
51081         * tests/test-gettaddrinfo.c: Return skip code 77 only
51082         for first occurrence of skip (4x77 is not 77)
51083
51084 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51085
51086         strtod: avoid C99 decl-after-statement
51087         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51088
51089 2009-02-24  Eric Blake  <ebb9@byu.net>
51090
51091         strtod: detect HP-UX 11.31 bug
51092         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51093         Reported by Gary V. Vaughan.
51094
51095 2009-02-23  Bruno Haible  <bruno@clisp.org>
51096
51097         Fix invalid read past end of memory block.
51098         * lib/vasnprintf.c (DCHAR_SET): Define.
51099         (local_wcslen): Define only when needed.
51100         (local_strnlen, local_wcsnlen): New functions.
51101         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51102         directives that involve a conversion ourselves.
51103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51104         wcsnlen, mbrtowc, wcrtomb.
51105         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51106         * tests/test-vasprintf-posix.c (test_function): Likewise.
51107         * tests/test-snprintf-posix.h (test_function): Likewise.
51108         * tests/test-sprintf-posix.h (test_function): Likewise.
51109         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51110
51111 2009-02-22  Bruno Haible  <bruno@clisp.org>
51112
51113         Implement new clarified decomposition of Hangul syllables.
51114         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51115         of type LTV, return only a pairwise decomposition.
51116         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51117         Likewise.
51118         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51119         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51120         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51121
51122 2009-02-22  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51125         zero-length results and shrink excess allocated memory.
51126         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51127         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51128         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51129         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51130         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51131         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51132         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51133         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51134         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51135         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51136         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51137         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51138
51139 2009-02-21  Bruno Haible  <bruno@clisp.org>
51140
51141         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51142         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51143         spaces after a period. Put a space between a macro name and its
51144         argument list. Trivial rewordings.
51145         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51146         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51147         (main): Return 0 explicitly.
51148
51149 2009-02-21  Bruno Haible  <bruno@clisp.org>
51150
51151         Tests for module 'uninorm/filter'.
51152         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51153         * modules/uninorm/filter-tests: New file.
51154
51155         New module 'uninorm/filter'.
51156         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51157         uninorm_filter_flush, uninorm_filter_free): New declarations.
51158         * lib/uninorm/uninorm-filter.c: New file.
51159         * modules/uninorm/filter: New file.
51160
51161 2009-02-21  Bruno Haible  <bruno@clisp.org>
51162
51163         Tests for module 'uninorm/nfkc'.
51164         * tests/uninorm/test-nfkc.c: New file.
51165         * tests/uninorm/test-u8-nfkc.c: New file.
51166         * tests/uninorm/test-u16-nfkc.c: New file.
51167         * tests/uninorm/test-u32-nfkc.c: New file.
51168         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51169         * tests/uninorm/test-u32-nfkc-big.c: New file.
51170         * modules/uninorm/nfkc-tests: New file.
51171
51172         New module 'uninorm/nfkc'.
51173         * lib/uninorm/nfkc.c: New file.
51174         * modules/uninorm/nfkc: New file.
51175
51176         Tests for module 'uninorm/nfkd'.
51177         * tests/uninorm/test-nfkd.c: New file.
51178         * tests/uninorm/test-u8-nfkd.c: New file.
51179         * tests/uninorm/test-u16-nfkd.c: New file.
51180         * tests/uninorm/test-u32-nfkd.c: New file.
51181         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51182         * tests/uninorm/test-u32-nfkd-big.c: New file.
51183         * modules/uninorm/nfkd-tests: New file.
51184
51185         New module 'uninorm/nfkd'.
51186         * lib/uninorm/nfkd.c: New file.
51187         * modules/uninorm/nfkd: New file.
51188
51189         Tests for module 'uninorm/nfc'.
51190         * tests/uninorm/test-nfc.c: New file.
51191         * tests/uninorm/test-u8-nfc.c: New file.
51192         * tests/uninorm/test-u16-nfc.c: New file.
51193         * tests/uninorm/test-u32-nfc.c: New file.
51194         * tests/uninorm/test-u32-nfc-big.sh: New file.
51195         * tests/uninorm/test-u32-nfc-big.c: New file.
51196         * modules/uninorm/nfc-tests: New file.
51197
51198         New module 'uninorm/nfc'.
51199         * lib/uninorm/nfc.c: New file.
51200         * modules/uninorm/nfc: New file.
51201
51202         Tests for module 'uninorm/nfd'.
51203         * tests/uninorm/test-nfd.c: New file.
51204         * tests/uninorm/test-u8-nfd.c: New file.
51205         * tests/uninorm/test-u16-nfd.c: New file.
51206         * tests/uninorm/test-u32-nfd.c: New file.
51207         * tests/uninorm/test-u32-nfd-big.sh: New file.
51208         * tests/uninorm/test-u32-nfd-big.c: New file.
51209         * tests/uninorm/test-u32-normalize-big.h: New file.
51210         * tests/uninorm/test-u32-normalize-big.c: New file.
51211         * tests/uninorm/NormalizationTest.txt: New file, created from
51212         Unicode 5.1.0 NormalizationTest.txt.
51213         * modules/uninorm/nfd-tests: New file.
51214
51215         New module 'uninorm/nfd'.
51216         * lib/uninorm/nfd.c: New file.
51217         * modules/uninorm/nfd: New file.
51218
51219         New module 'uninorm/u32-normalize'.
51220         * lib/uninorm/u32-normalize.c: New file.
51221         * modules/uninorm/u32-normalize: New file.
51222
51223         New module 'uninorm/u16-normalize'.
51224         * lib/uninorm/u16-normalize.c: New file.
51225         * modules/uninorm/u16-normalize: New file.
51226
51227         New module 'uninorm/u8-normalize'.
51228         * lib/uninorm/u8-normalize.c: New file.
51229         * lib/uninorm/normalize-internal.h: New file.
51230         * lib/uninorm/u-normalize-internal.h: New file.
51231         * modules/uninorm/u8-normalize: New file.
51232
51233         New module 'uninorm/decompose-internal'.
51234         * lib/uninorm/decompose-internal.c: New file.
51235         * modules/uninorm/decompose-internal: New file.
51236
51237         Tests for module 'uninorm/composition'.
51238         * tests/uninorm/test-composition.c: New file.
51239         * modules/uninorm/composition-tests: New file.
51240
51241         New module 'uninorm/composition'.
51242         * lib/uninorm/composition.c: New file.
51243         * lib/uninorm/composition-table.gperf: New file, generated by
51244         gen-uni-tables.
51245         * modules/uninorm/composition: New file.
51246
51247         Tests for module 'uninorm/compat-decomposition'.
51248         * tests/uninorm/test-compat-decomposition.c: New file.
51249         * modules/uninorm/compat-decomposition-tests: New file.
51250
51251         New module 'uninorm/compat-decomposition'.
51252         * lib/uninorm/decompose-internal.h: New file.
51253         * lib/uninorm/compat-decomposition.c: New file.
51254         * modules/uninorm/compat-decomposition: New file.
51255
51256         Tests for module 'uninorm/canonical-decomposition'.
51257         * tests/uninorm/test-canonical-decomposition.c: New file.
51258         * modules/uninorm/canonical-decomposition-tests: New file.
51259
51260         New module 'uninorm/canonical-decomposition'.
51261         * lib/uninorm/canonical-decomposition.c: New file.
51262         * modules/uninorm/canonical-decomposition: New file.
51263
51264         Tests for module 'uninorm/decomposition'.
51265         * tests/uninorm/test-decomposition.c: New file.
51266         * modules/uninorm/decomposition-tests: New file.
51267
51268         New module 'uninorm/decomposition'.
51269         * lib/uninorm/decomposition.c: New file.
51270         * modules/uninorm/decomposition: New file.
51271
51272         New module 'uninorm/decomposition-table'.
51273         * lib/uninorm/decomposition-table.h: New file.
51274         * lib/uninorm/decomposition-table.c: New file.
51275         * lib/uninorm/decomposition-table1.h: New file, generated by
51276         gen-uni-tables.
51277         * lib/uninorm/decomposition-table2.h: New file, generated by
51278         gen-uni-tables.
51279         * modules/uninorm/decomposition-table: New file.
51280
51281         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51282         (UC_DECOMP_*): New enumeration items.
51283         (get_decomposition): New function.
51284         (struct decomp_table): New type.
51285         (output_decomposition, output_decomposition_tables): New functions.
51286         (unicode_composition_exclusions): New variable.
51287         (fill_composition_exclusions, debug_output_composition_tables): New
51288         functions.
51289         (main): Accept one more argument. Invoke fill_composition_exclusions.
51290         Output decomposition and composition tables.
51291
51292         New module 'uninorm/base'.
51293         * lib/uninorm.h: New file.
51294         * lib/unictype.h: Update comment.
51295         * modules/uninorm/base: New file.
51296
51297 2009-02-21  David Lutterkort  <lutter@redhat.com>
51298
51299         Tests for module 'safe-alloc'.
51300         * tests/test-safe-alloc.c: New file.
51301         * modules/safe-alloc-tests: New file.
51302
51303         New module 'safe-alloc'.
51304         * lib/safe-alloc.h: New file.
51305         * lib/safe-alloc.c: New file.
51306         * m4/safe-alloc.m4: New file.
51307         * modules/safe-alloc: New file.
51308         * doc/safe-alloc.texi: New file.
51309         * doc/gnulib.texi: Include it.
51310         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51311         safe-alloc.
51312
51313 2009-02-18  Bruno Haible  <bruno@clisp.org>
51314
51315         Fix link error on non-glibc systems.
51316         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51317         variable.
51318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51319
51320 2009-02-18  Jim Meyering  <meyering@redhat.com>
51321
51322         fts: avoid used-uninitialized error due to recent change
51323         * lib/fts.c (fts_read): Guard uses of the new member,
51324         parent->fts_n_dirs_remaining, since it's not relevant for
51325         the parent of a directory specified on the command-line.
51326
51327 2009-02-17  James Youngman  <jay@gnu.org>
51328             Bruno Haible  <bruno@clisp.org>
51329
51330         * m4/include_next.m4: Reformulate comment.
51331
51332 2009-02-16  Jim Meyering  <meyering@redhat.com>
51333
51334         fts: add #if guards so that the fts_lgpl module still builds
51335         * lib/fts.c: Guard just-added hash-table-using parts with
51336         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51337         Reported by Simon Josefsson.
51338
51339 2009-02-15  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/array-mergesort-tests: New file.
51342         * tests/test-array-mergesort.c: New file.
51343
51344         New module 'array-mergesort'.
51345         * modules/array-mergesort: New file.
51346         * lib/array-mergesort.h: New file.
51347
51348 2009-02-15  Bruno Haible  <bruno@clisp.org>
51349
51350         Fix 2009-02-07 commit.
51351         * lib/gen-uni-tables.c (output_predicate, output_category,
51352         output_combclass, output_bidi_category, output_decimal_digit,
51353         output_digit, output_numeric, output_mirror, output_scripts,
51354         output_ident_category, output_simple_mapping): Fix format directives.
51355         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51356
51357 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51358
51359         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51360         fixes are available from IBM.
51361
51362 2009-02-13  Jim Meyering  <meyering@redhat.com>
51363
51364         fts: arrange not to stat non-directories in more cases
51365         This makes GNU find (when it doesn't need to stat each file)
51366         *much* more efficient at traversing reiserfs file systems.
51367         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51368         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51369         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51370         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51371         (leaf_optimization_applies): New function.
51372         (LCO_hash, LCO_compare): New helper functions.
51373         (link_count_optimize_ok): New function.
51374         (fts_stat): Initialize new member (if dir).
51375         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51376         we've just stat'ed a directory.  Skip the stat call when possible.
51377         ---
51378         Note this AFS-related exchange:
51379         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51380         and note find's pioctl call in find/fstype.c.
51381         But that is necessary only if you want to enable the
51382         optimization for AFS, and for now, I don't.
51383
51384         fts: move a function definition "up" (no semantic change)
51385         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51386         "up" to precede upcoming use of a related function.
51387
51388 2009-02-11  Jim Meyering  <meyering@redhat.com>
51389
51390         fts: correct internal computation of nlinks (optimization-related)
51391         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51392         whether the current entry is a directory, so don't test it.
51393
51394 2009-02-10  Bruno Haible  <bruno@clisp.org>
51395
51396         Tests for module 'uniwbrk/ulc-wordbreaks'.
51397         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51398         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51399         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51400
51401         Tests for module 'uniwbrk/u32-wordbreaks'.
51402         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51403         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51404
51405         Tests for module 'uniwbrk/u16-wordbreaks'.
51406         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51407         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51408
51409         Tests for module 'uniwbrk/u8-wordbreaks'.
51410         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51411         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51412
51413 2009-02-10  Bruno Haible  <bruno@clisp.org>
51414
51415         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51416         property.
51417         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51418         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51419         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51420
51421 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51422
51423         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51424         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51425
51426 2009-02-10  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51429         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51430         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51431         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51432         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51433         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51434
51435 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51436
51437         * lib/sockets.h (gl_fd_to_handle): New function.
51438
51439         * tests/test-sockets.c: Call gl_fd_to_handle.
51440
51441 2009-02-09  Bruno Haible  <bruno@clisp.org>
51442
51443         * doc/havelib.texi: Document the conventions on bi-arch systems.
51444
51445 2009-02-08  Bruno Haible  <bruno@clisp.org>
51446
51447         Document the AC_LIB_LINKFLAGS macro.
51448         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51449         * doc/gnulib.texi: Include it.
51450
51451 2009-02-08  Bruno Haible  <bruno@clisp.org>
51452
51453         Fix wrong order of sections, compared to TOC.
51454         * doc/gnulib.texi: Include relocatable-maint.texi after the
51455         "Regular expressions" node, not before.
51456
51457 2009-02-08  Bruno Haible  <bruno@clisp.org>
51458
51459         Tests for module 'unicase/totitle'.
51460         * modules/unicase/totitle-tests: New file.
51461
51462         Tests for module 'unicase/tolower'.
51463         * modules/unicase/tolower-tests: New file.
51464
51465         Tests for module 'unicase/toupper'.
51466         * modules/unicase/toupper-tests: New file.
51467         * tests/unicase/test-mapping-part1.h: New file.
51468         * tests/unicase/test-mapping-part2.h: New file.
51469
51470         New module 'unicase/totitle'.
51471         * modules/unicase/totitle: New file.
51472         * lib/unicase/totitle.c: New file.
51473
51474         New module 'unicase/tolower'.
51475         * modules/unicase/tolower: New file.
51476         * lib/unicase/tolower.c: New file.
51477
51478         New module 'unicase/toupper'.
51479         * modules/unicase/toupper: New file.
51480         * lib/unicase/toupper.c: New file.
51481         * lib/unicase/simple-mapping.h: New file.
51482
51483         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51484         (mapping_table): New structure.
51485         (output_simple_mapping): New function.
51486         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51487         * modules/gen-uni-tables (Description): Update.
51488         * lib/unicase/toupper.h: New file, automatically generated by
51489         gen-uni-tables.
51490         * lib/unicase/tolower.h: New file, automatically generated by
51491         gen-uni-tables.
51492         * lib/unicase/totitle.h: New file, automatically generated by
51493         gen-uni-tables.
51494         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51495         gen-uni-tables.
51496         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51497         gen-uni-tables.
51498         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51499         gen-uni-tables.
51500
51501         New module 'unicase/base'.
51502         * modules/unicase/base: New file.
51503         * lib/unicase.h: New file.
51504
51505 2009-02-08  Bruno Haible  <bruno@clisp.org>
51506
51507         New module 'uniwbrk/ulc-wordbreaks'.
51508         * modules/uniwbrk/ulc-wordbreaks: New file.
51509         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51510
51511         New module 'uniwbrk/u32-wordbreaks'.
51512         * modules/uniwbrk/u32-wordbreaks: New file.
51513         * lib/uniwbrk/u32-wordbreaks.c: New file.
51514
51515         New module 'uniwbrk/u16-wordbreaks'.
51516         * modules/uniwbrk/u16-wordbreaks: New file.
51517         * lib/uniwbrk/u16-wordbreaks.c: New file.
51518
51519         New module 'uniwbrk/u8-wordbreaks'.
51520         * modules/uniwbrk/u8-wordbreaks: New file.
51521         * lib/uniwbrk/u8-wordbreaks.c: New file.
51522         * lib/uniwbrk/u-wordbreaks.h: New file.
51523
51524         New module 'uniwbrk/table'.
51525         * modules/uniwbrk/table: New file.
51526         * lib/uniwbrk/wbrktable.h: New file.
51527         * lib/uniwbrk/wbrktable.c: New file.
51528
51529         New module 'uniwbrk/wordbreak-property'.
51530         * modules/uniwbrk/wordbreak-property: New file.
51531         * lib/uniwbrk/wordbreak-property.c: New file.
51532
51533         * lib/gen-uni-tables.c (WBP_*): New enum items.
51534         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51535         (unicode_org_wbp): New variable.
51536         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51537         New functions.
51538         (wbp_table): New structure.
51539         (output_wbp, output_wbrk_tables): New functions.
51540         (main): Accept additional argument. Invoke fill_org_wbp,
51541         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51542         output_wbrk_tables.
51543         * modules/gen-uni-tables (Description): Update.
51544         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51545         gen-uni-tables.
51546
51547         New module 'uniwbrk/base'.
51548         * modules/uniwbrk/base: New file.
51549         * lib/uniwbrk.h: New file.
51550
51551 2009-02-08  Bruno Haible  <bruno@clisp.org>
51552
51553         Update to Unicode 5.1.0.
51554         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51555         U+2185..U+2188.
51556         (is_property_default_ignorable_code_point): Don't include characters
51557         of category Cc or Cs and not-a-characters.
51558         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51559         U+0D79, U+109E, U+109F, U+A60C.
51560         * lib/unictype/bidi_of.h: Regenerated.
51561         * lib/unictype/blocks.h: Regenerated.
51562         * lib/unictype/categ_C.h: Regenerated.
51563         * lib/unictype/categ_Cf.h: Regenerated.
51564         * lib/unictype/categ_Cn.h: Regenerated.
51565         * lib/unictype/categ_L.h: Regenerated.
51566         * lib/unictype/categ_Ll.h: Regenerated.
51567         * lib/unictype/categ_Lm.h: Regenerated.
51568         * lib/unictype/categ_Lo.h: Regenerated.
51569         * lib/unictype/categ_Lu.h: Regenerated.
51570         * lib/unictype/categ_M.h: Regenerated.
51571         * lib/unictype/categ_Mc.h: Regenerated.
51572         * lib/unictype/categ_Me.h: Regenerated.
51573         * lib/unictype/categ_Mn.h: Regenerated.
51574         * lib/unictype/categ_N.h: Regenerated.
51575         * lib/unictype/categ_Nd.h: Regenerated.
51576         * lib/unictype/categ_Nl.h: Regenerated.
51577         * lib/unictype/categ_No.h: Regenerated.
51578         * lib/unictype/categ_P.h: Regenerated.
51579         * lib/unictype/categ_Pd.h: Regenerated.
51580         * lib/unictype/categ_Pe.h: Regenerated.
51581         * lib/unictype/categ_Pf.h: Regenerated.
51582         * lib/unictype/categ_Pi.h: Regenerated.
51583         * lib/unictype/categ_Po.h: Regenerated.
51584         * lib/unictype/categ_Ps.h: Regenerated.
51585         * lib/unictype/categ_S.h: Regenerated.
51586         * lib/unictype/categ_Sk.h: Regenerated.
51587         * lib/unictype/categ_Sm.h: Regenerated.
51588         * lib/unictype/categ_So.h: Regenerated.
51589         * lib/unictype/categ_of.h: Regenerated.
51590         * lib/unictype/combining.h: Regenerated.
51591         * lib/unictype/ctype_alnum.h: Regenerated.
51592         * lib/unictype/ctype_alpha.h: Regenerated.
51593         * lib/unictype/ctype_graph.h: Regenerated.
51594         * lib/unictype/ctype_lower.h: Regenerated.
51595         * lib/unictype/ctype_print.h: Regenerated.
51596         * lib/unictype/ctype_punct.h: Regenerated.
51597         * lib/unictype/ctype_upper.h: Regenerated.
51598         * lib/unictype/decdigit.h: Regenerated.
51599         * lib/unictype/digit.h: Regenerated.
51600         * lib/unictype/mirror.h: Regenerated.
51601         * lib/unictype/numeric.h: Regenerated.
51602         * lib/unictype/pr_alphabetic.h: Regenerated.
51603         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51604         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51605         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51606         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51607         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51608         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51609         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51610         * lib/unictype/pr_combining.h: Regenerated.
51611         * lib/unictype/pr_dash.h: Regenerated.
51612         * lib/unictype/pr_decimal_digit.h: Regenerated.
51613         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51614         * lib/unictype/pr_deprecated.h: Regenerated.
51615         * lib/unictype/pr_diacritic.h: Regenerated.
51616         * lib/unictype/pr_extender.h: Regenerated.
51617         * lib/unictype/pr_format_control.h: Regenerated.
51618         * lib/unictype/pr_grapheme_base.h: Regenerated.
51619         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51620         * lib/unictype/pr_grapheme_link.h: Regenerated.
51621         * lib/unictype/pr_id_continue.h: Regenerated.
51622         * lib/unictype/pr_id_start.h: Regenerated.
51623         * lib/unictype/pr_ideographic.h: Regenerated.
51624         * lib/unictype/pr_ignorable_control.h: Regenerated.
51625         * lib/unictype/pr_lowercase.h: Regenerated.
51626         * lib/unictype/pr_math.h: Regenerated.
51627         * lib/unictype/pr_numeric.h: Regenerated.
51628         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51629         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51630         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51631         * lib/unictype/pr_other_id_continue.h: Regenerated.
51632         * lib/unictype/pr_other_lowercase.h: Regenerated.
51633         * lib/unictype/pr_other_math.h: Regenerated.
51634         * lib/unictype/pr_punctuation.h: Regenerated.
51635         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51636         * lib/unictype/pr_soft_dotted.h: Regenerated.
51637         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51638         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51639         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51640         * lib/unictype/pr_uppercase.h: Regenerated.
51641         * lib/unictype/pr_xid_continue.h: Regenerated.
51642         * lib/unictype/pr_xid_start.h: Regenerated.
51643         * lib/unictype/pr_zero_width.h: Regenerated.
51644         * lib/unictype/scripts.h: Regenerated.
51645         * lib/unictype/scripts_byname.gperf: Regenerated.
51646         * lib/unictype/sy_java_ident.h: Regenerated.
51647         * lib/unilbrk/lbrkprop1.h: Regenerated.
51648         * lib/unilbrk/lbrkprop2.h: Regenerated.
51649         * tests/unictype/test-categ_C.c: Regenerated.
51650         * tests/unictype/test-categ_Cf.c: Regenerated.
51651         * tests/unictype/test-categ_Cn.c: Regenerated.
51652         * tests/unictype/test-categ_L.c: Regenerated.
51653         * tests/unictype/test-categ_Ll.c: Regenerated.
51654         * tests/unictype/test-categ_Lm.c: Regenerated.
51655         * tests/unictype/test-categ_Lo.c: Regenerated.
51656         * tests/unictype/test-categ_Lu.c: Regenerated.
51657         * tests/unictype/test-categ_M.c: Regenerated.
51658         * tests/unictype/test-categ_Mc.c: Regenerated.
51659         * tests/unictype/test-categ_Me.c: Regenerated.
51660         * tests/unictype/test-categ_Mn.c: Regenerated.
51661         * tests/unictype/test-categ_N.c: Regenerated.
51662         * tests/unictype/test-categ_Nd.c: Regenerated.
51663         * tests/unictype/test-categ_Nl.c: Regenerated.
51664         * tests/unictype/test-categ_No.c: Regenerated.
51665         * tests/unictype/test-categ_P.c: Regenerated.
51666         * tests/unictype/test-categ_Pd.c: Regenerated.
51667         * tests/unictype/test-categ_Pe.c: Regenerated.
51668         * tests/unictype/test-categ_Pf.c: Regenerated.
51669         * tests/unictype/test-categ_Pi.c: Regenerated.
51670         * tests/unictype/test-categ_Po.c: Regenerated.
51671         * tests/unictype/test-categ_Ps.c: Regenerated.
51672         * tests/unictype/test-categ_S.c: Regenerated.
51673         * tests/unictype/test-categ_Sk.c: Regenerated.
51674         * tests/unictype/test-categ_Sm.c: Regenerated.
51675         * tests/unictype/test-categ_So.c: Regenerated.
51676         * tests/unictype/test-ctype_alnum.c: Regenerated.
51677         * tests/unictype/test-ctype_alpha.c: Regenerated.
51678         * tests/unictype/test-ctype_graph.c: Regenerated.
51679         * tests/unictype/test-ctype_lower.c: Regenerated.
51680         * tests/unictype/test-ctype_print.c: Regenerated.
51681         * tests/unictype/test-ctype_punct.c: Regenerated.
51682         * tests/unictype/test-ctype_upper.c: Regenerated.
51683         * tests/unictype/test-decdigit.h: Regenerated.
51684         * tests/unictype/test-digit.h: Regenerated.
51685         * tests/unictype/test-numeric.h: Regenerated.
51686         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51687         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51688         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51689         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51690         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51691         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51692         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51693         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51694         * tests/unictype/test-pr_combining.c: Regenerated.
51695         * tests/unictype/test-pr_dash.c: Regenerated.
51696         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51697         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51698         * tests/unictype/test-pr_deprecated.c: Regenerated.
51699         * tests/unictype/test-pr_diacritic.c: Regenerated.
51700         * tests/unictype/test-pr_extender.c: Regenerated.
51701         * tests/unictype/test-pr_format_control.c: Regenerated.
51702         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51703         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51704         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51705         * tests/unictype/test-pr_id_continue.c: Regenerated.
51706         * tests/unictype/test-pr_id_start.c: Regenerated.
51707         * tests/unictype/test-pr_ideographic.c: Regenerated.
51708         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51709         * tests/unictype/test-pr_lowercase.c: Regenerated.
51710         * tests/unictype/test-pr_math.c: Regenerated.
51711         * tests/unictype/test-pr_numeric.c: Regenerated.
51712         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51713         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51714         Regenerated.
51715         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51716         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51717         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51718         * tests/unictype/test-pr_other_math.c: Regenerated.
51719         * tests/unictype/test-pr_punctuation.c: Regenerated.
51720         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51721         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51722         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51723         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51724         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51725         * tests/unictype/test-pr_uppercase.c: Regenerated.
51726         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51727         * tests/unictype/test-pr_xid_start.c: Regenerated.
51728         * tests/unictype/test-pr_zero_width.c: Regenerated.
51729
51730         Update to Unicode 5.1.0.
51731         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51732         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51733         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51734         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51735         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51736         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51737         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51738         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51739         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51740         (nonspacing_table_ind): Update.
51741         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51742
51743         Update to Unicode 5.1.0.
51744         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51745         code transform.
51746         * lib/uniname/uniname.c (unicode_character_name,
51747         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51748         * lib/uniname/uninames.h: Regenerated.
51749         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51750
51751 2009-02-07  Bruno Haible  <bruno@clisp.org>
51752
51753         Merge gen-ctype and gen-lbrk into a single program.
51754         * lib/gen-uni-tables.c: New file, incorporating
51755         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51756         Add directory prefixes to the names of the generated files.
51757         * lib/unictype/gen-ctype.c: Remove file.
51758         * lib/unilbrk/gen-lbrk.c: Remove file.
51759         * modules/gen-uni-tables: New file.
51760         * modules/unictype/gen-ctype: Remove file.
51761         * modules/unilbrk/gen-lbrk: Remove file.
51762
51763 2009-02-07  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51766
51767         New module 'unistr/u32-strcoll'.
51768         * modules/unistr/u32-strcoll: New file.
51769         * lib/unistr/u32-strcoll.c: New file.
51770
51771         New module 'unistr/u16-strcoll'.
51772         * modules/unistr/u16-strcoll: New file.
51773         * lib/unistr/u16-strcoll.c: New file.
51774
51775         New module 'unistr/u8-strcoll'.
51776         * modules/unistr/u8-strcoll: New file.
51777         * lib/unistr/u8-strcoll.c: New file.
51778         * lib/unistr/u-strcoll.h: New file.
51779
51780 2009-02-07  Bruno Haible  <bruno@clisp.org>
51781
51782         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51783         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51784         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51785         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51786         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51787         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51788
51789 2009-02-07  Bruno Haible  <bruno@clisp.org>
51790
51791         Make 64-bit clean.
51792         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51793         output_combclass, output_bidi_category, output_decimal_digit,
51794         output_digit, output_numeric, output_mirror, output_scripts,
51795         output_ident_category): Use proper width specifier in format strings.
51796
51797 2009-02-07  Bruno Haible  <bruno@clisp.org>
51798
51799         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51800         failure behaviour.
51801
51802 2009-02-07  Jim Meyering  <meyering@redhat.com>
51803
51804         regex: avoid compilation failure with upcoming gcc-4.4
51805         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51806         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51807         "... error: integer overflow in preprocessor expression".
51808
51809 2009-02-05  Ben Pfaff  <blp@gnu.org>
51810
51811         Fix link errors on Windows when close module is used.
51812         * modules/close: Add $(LIB_CLOSE) to Link section.
51813         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51814         $(LIB_CLOSE) on Windows.
51815
51816 2009-02-05  Jim Meyering  <meyering@redhat.com>
51817
51818         still avoid unused-parameter warnings, but do it cleanly
51819         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51820         (get_fs_usage): Cast to void instead.
51821         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51822         (dev_from_mount_options, read_file_system_list): Cast to void.
51823         Prompted by Bruno Haible.
51824
51825 2009-02-04  Jim Meyering  <meyering@redhat.com>
51826
51827         fsusage.c: correct copyright year
51828         * lib/fsusage.c: Reflect year in which the change is pushed into
51829
51830         avoid misc. warnings
51831         * lib/fsusage.c (UNUSED_PARAM): Define.
51832         (get_fs_usage): Mark parameter "disk" as unused.
51833         * lib/getugroups.c (getgrent): Use "void" in prototype.
51834         * lib/mountlist.c: Mark unused parameters.
51835         (read_file_system_list): Declare a local with "const".
51836         * lib/nanosleep.c (getnow): Declare static.
51837         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51838
51839         dirfd: set errno upon failure
51840         * lib/dirfd.c: Include <errno.h>.
51841         Set errno to ENOTSUP when returning -1.
51842         * modules/dirfd (Depends-on): Add errno.
51843         Suggested by John Kodis <kodis@comcast.net>.
51844
51845 2009-02-01  Bruno Haible  <bruno@clisp.org>
51846
51847         Don't assume sizeof (long) >= sizeof (void *).
51848         * lib/memcmp.c: Include stdint.h.
51849         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51850         srcp2 to 'const byte *'.
51851         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51852         types to uintptr_t.
51853         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51854         * modules/memcmp (Depends-on): Add stdint.
51855         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51856
51857 2009-01-30  Eric Blake  <ebb9@byu.net>
51858
51859         fix more require-before-expand issues
51860         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51861         expand, AC_PROG_AWK.
51862         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51863
51864 2009-01-28  Eric Blake  <ebb9@byu.net>
51865
51866         version-etc: use consistent URL formatting
51867         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51868         Improve formatting.  Use fputs for string without %.
51869
51870 2009-01-28  Jim Meyering  <meyering@redhat.com>
51871
51872         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51873         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51874         "underquoted definition of NAME" from autoconf-2.59.
51875
51876 2009-01-28  Bruno Haible  <bruno@clisp.org>
51877
51878         * doc/gnulib.texi: Add "Obsolete modules" to index.
51879
51880 2009-01-28  Jim Meyering  <meyering@redhat.com>
51881
51882         useless-if-before-free: recognize more variants
51883         * build-aux/useless-if-before-free: Also recognize e.g.,
51884         if (NULL != p) free (p);
51885
51886 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51887
51888         test-getaddrinfo: skip (don't fail) this test when there's no network
51889         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51890         on the presumption that it means you lack network access.
51891
51892 2009-01-26  Jim Meyering  <meyering@redhat.com>
51893
51894         fflush: avoid warnings on modern systems
51895         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51896         pos and result, into scopes where they're used.
51897
51898 2009-01-26  Eric Blake  <ebb9@byu.net>
51899
51900         Silence warning reintroduced by recent extensions patch.
51901         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51902         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51903         autoconf.
51904
51905         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51906         * m4/00gnulib.m4: New file.
51907         * gnulib-tool (func_get_filelist): Always use it.
51908         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51909         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51910
51911 2009-01-25  Bruno Haible  <bruno@clisp.org>
51912
51913         Make test-quotearg work on MacOS X and AIX.
51914         * tests/test-quotearg.sh: New file.
51915         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51916         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51917         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51918         include <libintl.h>.
51919         (fake_locale): Remove variable.
51920         (gettext, dgettext, dcgettext): Remove functions.
51921         (main): Instead of setting a fake locale, set a real locale. Call
51922         textdomain and bindtextdomain.
51923         * modules/quotearg-tests (Files): Add the new files.
51924         (Depends-on): Add gettext, setenv, unsetenv.
51925         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51926         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51927         Augment TESTS_ENVIRONMENT.
51928
51929 2009-01-25  Bruno Haible  <bruno@clisp.org>
51930
51931         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51932         fr_FR.ISO8859-1 locale on MacOS X.
51933         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51934         ja_JP.eucJP locale on MacOS X.
51935         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51936         zh_CN.GB18030 locale on MacOS X.
51937
51938 2009-01-25  Bruno Haible  <bruno@clisp.org>
51939
51940         Avoid link errors on MacOS X 10.3.
51941         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51942         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51943
51944 2009-01-25  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51947         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51948         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51949         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51950         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51951         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51952         posix_spawnattr_init, posix_spawnattr_setsigmask,
51953         posix_spawnattr_setflags, posix_spawnattr_destroy.
51954
51955         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51956         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51957         * modules/execute (Files): Remove m4/posix_spawn.m4.
51958         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51959         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51960         posix_spawnattr_init, posix_spawnattr_setsigmask,
51961         posix_spawnattr_setflags, posix_spawnattr_destroy.
51962
51963 2009-01-25  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/glthread/threadlib.c: Include <stdlib.h>.
51966
51967 2009-01-25  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/glthread/threadlib.c (dummy): New declaration.
51970
51971 2009-01-25  Bruno Haible  <bruno@clisp.org>
51972
51973         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51974         multibyte characters also for the GB18030 encoding. Don't crash when
51975         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51976
51977 2009-01-25  Bruno Haible  <bruno@clisp.org>
51978
51979         Avoid redefining 'struct random_data' on OSF/1 5.1.
51980         * lib/stdlib.in.h: Include <random.h> if it exists.
51981         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51982         HAVE_RANDOM_H. Include <random.h> when testing whether
51983         'struct random_data' exists.
51984         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51985
51986 2009-01-25  Bruno Haible  <bruno@clisp.org>
51987
51988         Don't install charset.alias on MacOS X >= 10.3.
51989         * lib/localcharset.c (DARWIN7): New macro.
51990         (get_charset_aliases): Hardcode the result for Darwin7.
51991         * modules/localcharset (install-exec-local): Don't install
51992         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51993
51994 2009-01-25  Bruno Haible  <bruno@clisp.org>
51995
51996         Don't install charset.alias on mingw and Cygwin.
51997         * modules/localcharset (install-exec-local): Don't install
51998         charset.alias on mingw and Cygwin, if the file does not yet exist.
51999         The result for these platforms is hardcoded in localcharset.c.
52000
52001 2009-01-25  Bruno Haible  <bruno@clisp.org>
52002
52003         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52005         before requiring AC_USE_SYSTEM_EXTENSIONS.
52006
52007 2009-01-25  Jim Meyering  <meyering@redhat.com>
52008
52009         c-strtod: avoid warnings
52010         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52011         "assignment discards qualifiers from pointer target type" warnings.
52012
52013 2009-01-24  Bruno Haible  <bruno@clisp.org>
52014
52015         Add support for non-UTF-8 locales on MacOS X.
52016         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52017         canonical encodings. For Darwin 7 and newer, don't map traditional
52018         encodings to UTF-8.
52019         Reported by Vincent Lefevre <vincent@vinc17.org>
52020         at <http://savannah.gnu.org/bugs/?25235>.
52021
52022 2009-01-24  Bruno Haible  <bruno@clisp.org>
52023
52024         * doc/gnulib.texi (Obsolete modules): New section.
52025         Reported by Mike Frysinger <vapier@gentoo.org>.
52026
52027 2009-01-24  Bruno Haible  <bruno@clisp.org>
52028
52029         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52030         (%.dvi): New rule.
52031
52032 2009-01-24  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52035         Reported by Eric Blake.
52036
52037 2009-01-24  Bruno Haible  <bruno@clisp.org>
52038
52039         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52040         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52041         Reported by Gary V. Vaughan <gary@gnu.org>.
52042
52043 2009-01-24  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52046
52047 2009-01-23  Bruno Haible  <bruno@clisp.org>
52048
52049         Make c-strtod, c-strtold usable in libraries.
52050         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52051         (C_STRTOD): Call strdup instead of xstrdup.
52052         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52053         * modules/c-strtold (Depends-on): Likewise.
52054         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52055         * NEWS: Mention the change.
52056         Reported by Michael Gold <mgold@ncf.ca>.
52057
52058 2009-01-23  Jim Meyering  <meyering@redhat.com>
52059
52060         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52061         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52062         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52063
52064 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52065
52066         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52067         GNU CoreUtils.
52068         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52069         * modules/version-etc (Description): Update.
52070
52071 2009-01-22  Bruno Haible  <bruno@clisp.org>
52072
52073         Cache the C locale object.
52074         * lib/c-strtod.c (c_locale_cache): New variable.
52075         (c_locale): New function.
52076         (C_STRTOD): Use it, and don't call freelocale.
52077         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52078         Suggested by Paolo Bonzini.
52079
52080 2009-01-21  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52083         conditions other than overflow.
52084
52085 2009-01-21  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/c-strtod.c: Include errno.h.
52088         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52089         value from STRTOD_L and STRTOD.
52090
52091 2009-01-21  Bruno Haible  <bruno@clisp.org>
52092         and Jim Meyering  <meyering@redhat.com>
52093
52094         nanosleep: skip configure test (fail it) for apple universal builds
52095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52096         universal builds, assume that nanosleep does not work.
52097         * modules/nanosleep (Depends-on): Add multiarch.
52098
52099         mktime: skip configure test (fail it) for apple universal builds
52100         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52101         universal builds, assume that mktime does not work.
52102         * modules/mktime (Depends-on): Add multiarch.
52103
52104 2009-01-21  Eric Blake  <ebb9@byu.net>
52105
52106         multiarch: avoid expand-before-require warning
52107         * modules/multiarch (configure.ac): Require, rather than expand,
52108         gl_MULTIARCH.
52109         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52110         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52111         enforce that all clients require it.  Partial reversion of
52112         2008-12-29 patch.
52113
52114         error: avoid expand-before-require warning
52115         * modules/errno (configure.ac): Require, rather than expand,
52116         gl_HEADER_ERRNO_H.
52117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52118         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52119         enforce that all clients require it.
52120
52121         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52122         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52123         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52124         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52125
52126 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52127
52128         Revert:
52129         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52130
52131         regex: do not depend on obsolete modules.
52132         * modules/regex: Remove memcmp and memmove.
52133
52134 2009-01-20  Bruno Haible  <bruno@clisp.org>
52135
52136         Make the 'link' module link on Windows NT 4.
52137         * lib/link.c (_WIN32_WINNT): Don't define.
52138         (CreateHardLinkFuncType): New type.
52139         (CreateHardLinkFunc, initialized): New variables.
52140         (initialize): New function.
52141         (link): Invoke CreateHardLink indirectly through the function pointer.
52142
52143 2009-01-20  Bruno Haible  <bruno@clisp.org>
52144
52145         Fix compilation failure on mingw.
52146         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52147
52148 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52149
52150         * doc/c-strtod.texi: Mention a couple of restrictions.
52151
52152 2009-01-20  Jim Meyering  <meyering@redhat.com>
52153
52154         gettimeofday: move more declarations out of functions
52155         * lib/gettimeofday.c: Move extern declarations of tzset and
52156         gmtime out of containing functions.  Prompted by Bruno Haible.
52157
52158 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52159
52160         regex: do not depend on obsolete modules.
52161         * modules/regex: Remove memcmp and memmove.
52162
52163 2009-01-19  Bruno Haible  <bruno@clisp.org>
52164
52165         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52166         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52167         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52168         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52169         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52170
52171 2009-01-19  Bruno Haible  <bruno@clisp.org>
52172
52173         * tests/test-link.c: Include <errno.h>.
52174         (main): Exit with code 77 when a hard link cannot be created due to
52175         the file system.
52176         * tests/test-link.sh: Skip test when a hard link cannot be created due
52177         to the file system.
52178         Suggested by Eric Blake.
52179
52180 2009-01-19  Martin Lambers  <marlam@marlam.de>
52181
52182         * modules/link-tests: New file.
52183         * tests/test-link.sh: New file.
52184         * tests/test-link.c: New file.
52185
52186 2009-01-19  Eric Blake  <ebb9@byu.net>
52187
52188         doc: mention another function added in cygwin 1.7.0
52189         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52190         Another new function in cygwin 1.7.
52191
52192 2009-01-19  Bruno Haible  <bruno@clisp.org>
52193
52194         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52195         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52196         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52197         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52198         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52199         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52200         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52201         * m4/md4.m4 (gl_MD4): Likewise.
52202         * m4/md5.m4 (gl_MD5): Likewise.
52203         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52204         * m4/sha1.m4 (gl_SHA1): Likewise.
52205         * m4/sha256.m4 (gl_SHA256): Likewise.
52206         * m4/sha512.m4 (gl_SHA512): Likewise.
52207
52208 2009-01-19  Bruno Haible  <bruno@clisp.org>
52209
52210         * modules/uniname/uniname-tests (Depends-on): Add progname.
52211         * tests/uniname/test-uninames.c: Include progname.h.
52212         (main): Call set_program_name.
52213
52214         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52215         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52216         (main): Call set_program_name.
52217
52218         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52219         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52220         (main): Call set_program_name.
52221
52222         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52223         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52224         (main): Call set_program_name.
52225
52226         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52227         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52228         (main): Call set_program_name.
52229
52230         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52231         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52232         (main): Call set_program_name.
52233
52234         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52235         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52236         (main): Call set_program_name.
52237
52238         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52239         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52240         (main): Call set_program_name.
52241
52242         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52243         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52244         (main): Call set_program_name.
52245
52246 2009-01-19  Eric Blake  <ebb9@byu.net>
52247
52248         test-unistd: test previous patch
52249         * tests/test-unistd.c: Test *_FILENO macros.
52250
52251         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52252         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52253         Guarantee a definition.
52254         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52255         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52256         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52257         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52258         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52259         Likewise.
52260         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52261         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52262         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52263         Likewise.
52264         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52265         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52266         (STDERR_FILENO): Likewise.
52267         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52268         (STDERR_FILENO): Likewise.
52269         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52270         (STDERR_FILENO): Likewise.
52271         Reported by Elbert Pol.
52272
52273 2009-01-19  Eric Blake  <ebb9@byu.net>
52274
52275         doc: mention more functions added in cygwin 1.7.0
52276         * doc/posix-functions/abort.texi (abort): Update wording related
52277         to cygwin.
52278         * doc/posix-functions/daylight.texi (daylight): Likewise.
52279         * doc/posix-functions/optarg.texi (optarg): Likewise.
52280         * doc/posix-functions/optarg.texi (opterr): Likewise.
52281         * doc/posix-functions/optarg.texi (optind): Likewise.
52282         * doc/posix-functions/optarg.texi (optopt): Likewise.
52283         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52284         worked in 1.5.x, and was withdrawn in 1.7.
52285         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52286         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52287         cygwin versions.
52288         * doc/posix-functions/perror.texi (perror): Likewise.
52289         * doc/posix-functions/printf.texi (printf): Likewise.
52290         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52291         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52292         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52293         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52294         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52295         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52296         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52297         Likewise.
52298         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52299         Likewise.
52300         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52301         this function.
52302         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52303         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52304         Likewise.
52305         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52306         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52307         * doc/posix-functions/confstr.texi (confstr): Likewise.
52308         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52309         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52310         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52311         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52312         * doc/posix-functions/fputws.texi (fputws): Likewise.
52313         * doc/posix-functions/fwide.texi (fwide): Likewise.
52314         * doc/posix-functions/getwc.texi (getwc): Likewise.
52315         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52316         * doc/posix-functions/putwc.texi (putwc): Likewise.
52317         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52318         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52319         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52320         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52321         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52322         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52323         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52324         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52325         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52326         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52327         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52328
52329 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52330
52331         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52332         * lib/ioctl.c: Include <sys/ioctl.h>.
52333
52334 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52335
52336         * modules/getdate-tests (Depends-on): Add progname.
52337         * tests/test-getdate.c: Use progname module, to avoid link errors
52338         on non-glibc systems.
52339
52340 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52341
52342         * modules/filenamecat-tests (Depends-on): Add progname.
52343         * modules/fstrcmp-tests (Depends-on): Likewise.
52344
52345         * tests/test-filenamecat.c: Use progname module, to avoid link
52346         errors on non-glibc systems.
52347         * tests/test-fstrcmp.c: Likewise.
52348
52349 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52350
52351         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52352         * lib/gettimeofday.c: Move extern declaration out of function.
52353
52354 2009-01-18  Bruno Haible  <bruno@clisp.org>
52355
52356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52357         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52358         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52359
52360 2009-01-18  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/strftime.c (MEMPCPY): Remove unused macro.
52363         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52364
52365 2009-01-18  Martin Lambers  <marlam@marlam.de>
52366
52367         New module 'link'.
52368         * lib/unistd.in.h (link): New declaration.
52369         * lib/link.c: New file.
52370         * m4/link.m4: New file.
52371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52372         HAVE_LINK.
52373         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52374         * modules/link: New file.
52375         * doc/posix-functions/link.texi: Mention the new module.
52376
52377 2009-01-18  Bruno Haible  <bruno@clisp.org>
52378
52379         * tests/test-avltree_list.c (main): Call set_program_name.
52380         * tests/test-avltree_oset.c (main): Likewise.
52381         * tests/test-obstack-printf.c: Include progname.h.
52382         (main): Call set_program_name.
52383         * tests/test-quotearg.c: Include progname.h.
52384         (main): Call set_program_name.
52385         * tests/test-xmemdup0.c: Include progname.h.
52386         (main): Call set_program_name.
52387
52388 2009-01-18  Bruno Haible  <bruno@clisp.org>
52389
52390         New module 'alphasort'.
52391         * lib/dirent.in.h (alphasort): New declaration.
52392         * lib/alphasort.c: New file, from glibc with modifications.
52393         * m4/alphasort.m4: New file.
52394         * modules/alphasort: New file.
52395         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52396         HAVE_ALPHASORT.
52397         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52398         HAVE_ALPHASORT.
52399         * doc/posix-functions/alphasort.texi: Mention the new module and the
52400         portability problems.
52401
52402 2009-01-18  Bruno Haible  <bruno@clisp.org>
52403
52404         New module 'scandir'.
52405         * lib/dirent.in.h (scandir): New declaration.
52406         * lib/scandir.c: New file, from glibc with modifications.
52407         * m4/scandir.m4: New file.
52408         * modules/scandir: New file.
52409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52410         HAVE_SCANDIR.
52411         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52412         HAVE_SCANDIR.
52413         * doc/posix-functions/scandir.texi: Mention the new module and the
52414         portability problems.
52415
52416 2009-01-17  Bruno Haible  <bruno@clisp.org>
52417
52418         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52419         Update documentation.
52420         (func_remove_suffix): Escape all dots in the suffix. Update
52421         documentation.
52422         (func_filter_filelist): Update documentation.
52423         Reported by Ralf Wildenhues.
52424
52425 2009-01-17  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/dprintf-posix-tests: New file.
52428         * tests/test-dprintf-posix.sh: New file.
52429         * tests/test-dprintf-posix.c: New file.
52430
52431         New modules 'dprintf', 'dprintf-posix'.
52432         * lib/stdio.in.h (dprintf): New declaration.
52433         * lib/dprintf.c: New file.
52434         * m4/dprintf.m4: New file.
52435         * m4/dprintf-posix.m4: New file.
52436         * modules/dprintf: New file.
52437         * modules/dprintf-posix: New file.
52438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52439         HAVE_DPRINTF, REPLACE_DPRINTF.
52440         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52441         HAVE_DPRINTF, REPLACE_DPRINTF.
52442         * doc/posix-functions/dprintf.texi: Mention the new modules.
52443
52444 2009-01-17  Bruno Haible  <bruno@clisp.org>
52445
52446         * modules/vdprintf-posix-tests: New file.
52447         * tests/test-vdprintf-posix.sh: New file.
52448         * tests/test-vdprintf-posix.c: New file.
52449
52450         New modules 'vdprintf', 'vdprintf-posix'.
52451         * lib/stdio.in.h (vdprintf): New declaration.
52452         * lib/vdprintf.c: New file.
52453         * m4/vdprintf.m4: New file.
52454         * m4/vdprintf-posix.m4: New file.
52455         * modules/vdprintf: New file.
52456         * modules/vdprintf-posix: New file.
52457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52458         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52459         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52460         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52461         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52462
52463 2009-01-17  Bruno Haible  <bruno@clisp.org>
52464
52465         Fix replacement of fopen on mingw.
52466         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52467         mingw.
52468
52469 2009-01-17  Bruno Haible  <bruno@clisp.org>
52470
52471         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52472         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52473
52474 2009-01-17  Bruno Haible  <bruno@clisp.org>
52475
52476         Avoid test-fflush2.sh failure on mingw.
52477         * tests/test-fflush2.c: Include binary-io.h.
52478         (main): Put standard input into binary mode.
52479         * modules/fflush-tests (Depends-on): Add binary-io.
52480
52481 2009-01-17  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/wchar.in.h: In another particular situation, include only the
52484         system's <wchar.h> file.
52485         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52486         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52487         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52488
52489 2009-01-17  Bruno Haible  <bruno@clisp.org>
52490
52491         Support for stripping executables in --enable-relocatable.
52492         * build-aux/install-reloc: Expect one more argument, or an environment
52493         variable RELOC_STRIP_PROG. If set, strip the destination program and
52494         its wrapper.
52495         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52496         RELOC_STRIP_PROG.
52497         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52498         to set RELOCATABLE_STRIP.
52499         * NEWS: Mention the new Makefile requirement.
52500
52501 2009-01-17  Bruno Haible  <bruno@clisp.org>
52502
52503         * build-aux/install-reloc: Remove debugging information left over by
52504         C compiler on MacOS X.
52505
52506 2009-01-17  Bruno Haible  <bruno@clisp.org>
52507
52508         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52509         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52510         _NSGetExecutablePath.
52511
52512 2009-01-16  Jim Meyering  <meyering@redhat.com>
52513
52514         strerror: avoid warnings about discarding "const"
52515         * lib/strerror.c (rpl_strerror): Instead of returning a const
52516         string from each and every "case", use a variable, and add a single
52517         cast after the switch.
52518
52519 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52520
52521         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52522
52523 2009-01-16  Bruno Haible  <bruno@clisp.org>
52524
52525         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52526         array initializer syntax that also works in C++ mode.
52527         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52528
52529 2009-01-16  Jim Meyering  <meyering@redhat.com>
52530
52531         poll: suppress a warning
52532         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52533         to ignore "...unsigned expression < 0 is always false" warnings.
52534
52535 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52536
52537         poll: remove declarations of unused variables
52538         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52539         sockbuf and optlen.
52540
52541 2009-01-15  Bruno Haible  <bruno@clisp.org>
52542
52543         Make fflush-after-ungetc POSIX compliant on BSD systems.
52544         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52545         (clear_ungetc_buffer): Implement also for other systems.
52546         (rpl_fflush): On glibc systems, invoke
52547         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52548         clear_ungetc_buffer after fetching the stream's position, not before.
52549
52550 2009-01-15  Bruno Haible  <bruno@clisp.org>
52551
52552         Make fflush-after-ungetc POSIX compliant on glibc systems.
52553         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52554         after ungetc.
52555         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52556         (rpl_fflush): On glibc systems, simply call the system's fflush
52557         function after clearing the ungetc buffer.
52558         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52559         Instead, lseek only to the end of file, then use the system's fseeko
52560         for the rest. On glibc systems, reset the EOF indicator bit.
52561
52562 2009-01-15  Jim Meyering  <meyering@redhat.com>
52563
52564         openmp.m4: revert quote-adding change, for portability to older autoconf
52565         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52566         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52567         Simon Josefsson noticed the problem when using autoconf-2.61.
52568
52569 2009-01-15  Bruno Haible  <bruno@clisp.org>
52570
52571         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52572         * tests/test-fflush2.c (ASSERT): Always fail.
52573         (main): Add two tests for fflush() after ungetc(), taking into account
52574         the Austin Group's clarification.
52575         Suggested by Eric Blake.
52576
52577 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52578
52579         mktime.m4: remove K&R-style function prototypes
52580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52581         for the Sun C++ compiler.
52582
52583 2009-01-14  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52586         while including <wchar.h>.
52587         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52588         the system's <wchar.h> file.
52589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52590
52591 2009-01-14  Bruno Haible  <bruno@clisp.org>
52592
52593         * m4/csharp.m4: Don't mention gettext on the serial number line.
52594         * m4/csharpexec.m4: Likewise.
52595         * m4/eaccess.m4: Likewise.
52596         * m4/javaexec.m4: Likewise.
52597         * m4/sig_atomic_t.m4: Likewise.
52598         * m4/tmpdir.m4: Likewise.
52599         * m4/intldir.m4: Bump gettext version.
52600         * m4/lib-ld.m4: Likewise.
52601
52602 2009-01-14  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/progname.c (set_program_name): Add more comments.
52605         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52606
52607 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52608
52609         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52610         were sys/stat.h does not define it.
52611
52612 2009-01-14  Jim Meyering  <meyering@redhat.com>
52613
52614         many *.m4 files: improve m4 quoting
52615         99% of this change was performed by running the following commands:
52616         git ls-files | grep '\.m4$' | xargs perl -pi \
52617           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52618           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52619           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52620           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52621         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52622         The remainder were to add Copyright dates, increment serial numbers,
52623         undo some changes in comments, exclude m4/intl.m4, and add quotes
52624         around the "1" in ",1" where the unusual spacing prohibited the
52625         above regexps from doing the job.  For more details, see
52626         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52627         * m4/acl.m4: Modified.
52628         * m4/afs.m4: Likewise.
52629         * m4/alloca.m4: Likewise.
52630         * m4/argp.m4: Likewise.
52631         * m4/argz.m4: Likewise.
52632         * m4/atexit.m4: Likewise.
52633         * m4/bison-i18n.m4: Likewise.
52634         * m4/bison.m4: Likewise.
52635         * m4/byteswap.m4: Likewise.
52636         * m4/c-stack.m4: Likewise.
52637         * m4/c-strtod.m4: Likewise.
52638         * m4/calloc.m4: Likewise.
52639         * m4/canonicalize-lgpl.m4: Likewise.
52640         * m4/chown.m4: Likewise.
52641         * m4/clock_time.m4: Likewise.
52642         * m4/codeset.m4: Likewise.
52643         * m4/copy-file.m4: Likewise.
52644         * m4/csharp.m4: Likewise.
52645         * m4/csharpcomp.m4: Likewise.
52646         * m4/csharpexec.m4: Likewise.
52647         * m4/d-ino.m4: Likewise.
52648         * m4/d-type.m4: Likewise.
52649         * m4/dirfd.m4: Likewise.
52650         * m4/double-slash-root.m4: Likewise.
52651         * m4/eaccess.m4: Likewise.
52652         * m4/eealloc.m4: Likewise.
52653         * m4/environ.m4: Likewise.
52654         * m4/errno_h.m4: Likewise.
52655         * m4/euidaccess.m4: Likewise.
52656         * m4/execute.m4: Likewise.
52657         * m4/fatal-signal.m4: Likewise.
52658         * m4/fchdir.m4: Likewise.
52659         * m4/fcntl_h.m4: Likewise.
52660         * m4/fileblocks.m4: Likewise.
52661         * m4/filenamecat.m4: Likewise.
52662         * m4/findprog.m4: Likewise.
52663         * m4/flexmember.m4: Likewise.
52664         * m4/fnmatch.m4: Likewise.
52665         * m4/fopen.m4: Likewise.
52666         * m4/fpending.m4: Likewise.
52667         * m4/fprintf-posix.m4: Likewise.
52668         * m4/free.m4: Likewise.
52669         * m4/frexp.m4: Likewise.
52670         * m4/frexpl.m4: Likewise.
52671         * m4/fsusage.m4: Likewise.
52672         * m4/ftruncate.m4: Likewise.
52673         * m4/gc-camellia.m4: Likewise.
52674         * m4/gc-random.m4: Likewise.
52675         * m4/gc.m4: Likewise.
52676         * m4/getaddrinfo.m4: Likewise.
52677         * m4/getcwd-abort-bug.m4: Likewise.
52678         * m4/getcwd-path-max.m4: Likewise.
52679         * m4/getdate.m4: Likewise.
52680         * m4/getdomainname.m4: Likewise.
52681         * m4/getgroups.m4: Likewise.
52682         * m4/gethostname.m4: Likewise.
52683         * m4/gethrxtime.m4: Likewise.
52684         * m4/getline.m4: Likewise.
52685         * m4/getloadavg.m4: Likewise.
52686         * m4/getndelim2.m4: Likewise.
52687         * m4/getpass.m4: Likewise.
52688         * m4/gettext.m4: Likewise.
52689         * m4/gettime.m4: Likewise.
52690         * m4/gettimeofday.m4: Likewise.
52691         * m4/gnulib-common.m4: Likewise.
52692         * m4/group-member.m4: Likewise.
52693         * m4/host-os.m4: Likewise.
52694         * m4/iconv.m4: Likewise.
52695         * m4/iconv_open.m4: Likewise.
52696         * m4/inet_ntop.m4: Likewise.
52697         * m4/inet_pton.m4: Likewise.
52698         * m4/inline.m4: Likewise.
52699         * m4/intldir.m4: Likewise.
52700         * m4/intlmacosx.m4: Likewise.
52701         * m4/intmax.m4: Likewise.
52702         * m4/intmax_t.m4: Likewise.
52703         * m4/inttypes.m4: Likewise.
52704         * m4/inttypes_h.m4: Likewise.
52705         * m4/inttypes-pri.m4: Likewise.
52706         * m4/isapipe.m4: Likewise.
52707         * m4/isnand.m4: Likewise.
52708         * m4/isnanf.m4: Likewise.
52709         * m4/isnanl.m4: Likewise.
52710         * m4/javacomp.m4: Likewise.
52711         * m4/javaexec.m4: Likewise.
52712         * m4/jm-winsz1.m4: Likewise.
52713         * m4/jm-winsz2.m4: Likewise.
52714         * m4/lchown.m4: Likewise.
52715         * m4/lcmessage.m4: Likewise.
52716         * m4/ldexpl.m4: Likewise.
52717         * m4/lib-ld.m4: Likewise.
52718         * m4/lib-link.m4: Likewise.
52719         * m4/libsigsegv.m4: Likewise.
52720         * m4/link-follow.m4: Likewise.
52721         * m4/localcharset.m4: Likewise.
52722         * m4/locale-fr.m4: Likewise.
52723         * m4/locale-ja.m4: Likewise.
52724         * m4/locale-tr.m4: Likewise.
52725         * m4/locale-zh.m4: Likewise.
52726         * m4/lock.m4: Likewise.
52727         * m4/longlong.m4: Likewise.
52728         * m4/ls-mntd-fs.m4: Likewise.
52729         * m4/lstat.m4: Likewise.
52730         * m4/malloc.m4: Likewise.
52731         * m4/mathl.m4: Likewise.
52732         * m4/mbrtowc.m4: Likewise.
52733         * m4/mbstate_t.m4: Likewise.
52734         * m4/mbswidth.m4: Likewise.
52735         * m4/memchr.m4: Likewise.
52736         * m4/memcmp.m4: Likewise.
52737         * m4/memcpy.m4: Likewise.
52738         * m4/memmem.m4: Likewise.
52739         * m4/memmove.m4: Likewise.
52740         * m4/mempcpy.m4: Likewise.
52741         * m4/memrchr.m4: Likewise.
52742         * m4/memset.m4: Likewise.
52743         * m4/minmax.m4: Likewise.
52744         * m4/mkdir-slash.m4: Likewise.
52745         * m4/mkdtemp.m4: Likewise.
52746         * m4/mktime.m4: Likewise.
52747         * m4/mmap-anon.m4: Likewise.
52748         * m4/mountlist.m4: Likewise.
52749         * m4/nanosleep.m4: Likewise.
52750         * m4/nls.m4: Likewise.
52751         * m4/nocrash.m4: Likewise.
52752         * m4/open.m4: Likewise.
52753         * m4/openat.m4: Likewise.
52754         * m4/openmp.m4: Likewise.
52755         * m4/pathmax.m4: Likewise.
52756         * m4/perl.m4: Likewise.
52757         * m4/physmem.m4: Likewise.
52758         * m4/pipe.m4: Likewise.
52759         * m4/po.m4: Likewise.
52760         * m4/poll.m4: Likewise.
52761         * m4/posixtm.m4: Likewise.
52762         * m4/posixver.m4: Likewise.
52763         * m4/printf-frexp.m4: Likewise.
52764         * m4/printf-frexpl.m4: Likewise.
52765         * m4/printf-posix.m4: Likewise.
52766         * m4/printf-posix-rpl.m4: Likewise.
52767         * m4/printf.m4: Likewise.
52768         * m4/progtest.m4: Likewise.
52769         * m4/putenv.m4: Likewise.
52770         * m4/readline.m4: Likewise.
52771         * m4/readlink.m4: Likewise.
52772         * m4/readutmp.m4: Likewise.
52773         * m4/realloc.m4: Likewise.
52774         * m4/regex.m4: Likewise.
52775         * m4/relocatable.m4: Likewise.
52776         * m4/relocatable-lib.m4: Likewise.
52777         * m4/rename-dest-slash.m4: Likewise.
52778         * m4/rename.m4: Likewise.
52779         * m4/rmdir-errno.m4: Likewise.
52780         * m4/rmdir.m4: Likewise.
52781         * m4/roundf.m4: Likewise.
52782         * m4/roundl.m4: Likewise.
52783         * m4/rpmatch.m4: Likewise.
52784         * m4/save-cwd.m4: Likewise.
52785         * m4/selinux-selinux-h.m4: Likewise.
52786         * m4/setenv.m4: Likewise.
52787         * m4/settime.m4: Likewise.
52788         * m4/sig2str.m4: Likewise.
52789         * m4/sig_atomic_t.m4: Likewise.
52790         * m4/signalblocking.m4: Likewise.
52791         * m4/signbit.m4: Likewise.
52792         * m4/sigpipe.m4: Likewise.
52793         * m4/sockets.m4: Likewise.
52794         * m4/sockpfaf.m4: Likewise.
52795         * m4/st_dm_mode.m4: Likewise.
52796         * m4/stat-time.m4: Likewise.
52797         * m4/stdbool.m4: Likewise.
52798         * m4/stdint.m4: Likewise.
52799         * m4/stdint_h.m4: Likewise.
52800         * m4/stpcpy.m4: Likewise.
52801         * m4/stpncpy.m4: Likewise.
52802         * m4/strcase.m4: Likewise.
52803         * m4/strchrnul.m4: Likewise.
52804         * m4/strcspn.m4: Likewise.
52805         * m4/strdup.m4: Likewise.
52806         * m4/strftime.m4: Likewise.
52807         * m4/strndup.m4: Likewise.
52808         * m4/strnlen.m4: Likewise.
52809         * m4/strpbrk.m4: Likewise.
52810         * m4/strptime.m4: Likewise.
52811         * m4/strsep.m4: Likewise.
52812         * m4/strtod.m4: Likewise.
52813         * m4/strtoimax.m4: Likewise.
52814         * m4/strtok_r.m4: Likewise.
52815         * m4/strtol.m4: Likewise.
52816         * m4/strtoll.m4: Likewise.
52817         * m4/strtoul.m4: Likewise.
52818         * m4/strtoull.m4: Likewise.
52819         * m4/strtoumax.m4: Likewise.
52820         * m4/strverscmp.m4: Likewise.
52821         * m4/threadlib.m4: Likewise.
52822         * m4/timegm.m4: Likewise.
52823         * m4/tm_gmtoff.m4: Likewise.
52824         * m4/tmpdir.m4: Likewise.
52825         * m4/tmpfile.m4: Likewise.
52826         * m4/tzset.m4: Likewise.
52827         * m4/uintmax_t.m4: Likewise.
52828         * m4/unlinkdir.m4: Likewise.
52829         * m4/unlocked-io.m4: Likewise.
52830         * m4/uptime.m4: Likewise.
52831         * m4/userspec.m4: Likewise.
52832         * m4/utimbuf.m4: Likewise.
52833         * m4/utime.m4: Likewise.
52834         * m4/utimes-null.m4: Likewise.
52835         * m4/utimes.m4: Likewise.
52836         * m4/vararrays.m4: Likewise.
52837         * m4/vasnprintf.m4: Likewise.
52838         * m4/vfprintf-posix.m4: Likewise.
52839         * m4/vprintf-posix.m4: Likewise.
52840         * m4/wait-process.m4: Likewise.
52841         * m4/wchar_t.m4: Likewise.
52842         * m4/wint_t.m4: Likewise.
52843         * m4/write-any-file.m4: Likewise.
52844         * m4/yield.m4: Likewise.
52845
52846 2009-01-13  Bruno Haible  <bruno@clisp.org>
52847
52848         Avoid test-copy-file.sh failures when ACL support insufficient.
52849         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52850         TESTS_ENVIRONMENT.
52851         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52852         Reported by Jim Meyering.
52853
52854 2009-01-13  Bruno Haible  <bruno@clisp.org>
52855
52856         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52857         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52858         * modules/unistdio/u8-printf-parse (Files): Likewise.
52859         * modules/unistdio/u32-printf-parse (Files): Likewise.
52860         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52861
52862 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52863
52864         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52865         and m4/inttypes_h.m4 too.
52866
52867 2009-01-12  Eric Blake  <ebb9@byu.net>
52868
52869         tests: IRIX 6.2 cc can't compile -0.0 into .data
52870         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52871         rather than at compile-time.
52872         * tests/test-floorl.c (minus_zero): Likewise.
52873         * tests/test-frexpl.c (minus_zero): Likewise.
52874         * tests/test-isnan.c (minus_zerol): Likewise.
52875         * tests/test-isnanl.h (minus_zero): Likewise.
52876         * tests/test-ldexpl.c (minus_zero): Likewise.
52877         * tests/test-roundl.c (minus_zero): Likewise.
52878         * tests/test-signbit.c (minus_zerol): Likewise.
52879         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52880         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52881         * tests/test-truncl.c (minus_zero): Likewise.
52882         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52883         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52884         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52885
52886 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52887
52888         regex: fix glibc bug 9697
52889         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52890         handling.
52891
52892 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52893
52894         regex: fix glibc bug 697
52895         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52896         being NULL also if there are no backreferences.
52897
52898 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52899
52900         regex: merge glibc changes
52901         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52902         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52903         re_string_skip_chars, re_string_reconstruct): Likewise.
52904         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52905
52906 2009-01-07  Jim Meyering  <meyering@redhat.com>
52907
52908         poll: filter through cppi
52909         * lib/poll.c: Indent cpp directives to reflect nesting.
52910
52911 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52912
52913         poll: don't return uninitialized
52914         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52915
52916 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52917
52918         avoid compile failure on AIX 6.1
52919         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52920         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52921
52922 2009-01-04  Jim Meyering  <meyering@redhat.com>
52923
52924         remove duplicate inclusion of <stdio.h>
52925         * tests/test-fprintf-posix.c: Likewise.
52926         * tests/test-printf-posix.c: Likewise.
52927         * tests/test-snprintf-posix.c: Likewise.
52928         * tests/test-sprintf-posix.c: Likewise.
52929         * tests/test-vasprintf-posix.c: Likewise.
52930         * tests/test-vfprintf-posix.c: Likewise.
52931         * tests/test-vprintf-posix.c: Likewise.
52932         * tests/test-vsnprintf-posix.c: Likewise.
52933         * tests/test-vsprintf-posix.c: Likewise.
52934
52935 2009-01-03  Jim Meyering  <meyering@redhat.com>
52936
52937         gnulib-tool: fix sed-based filtering
52938         * gnulib-tool (func_filter_filelist): Remove extra backslash
52939         in sed_fff_filter definition.
52940
52941 2009-01-02  Jim Meyering  <meyering@redhat.com>
52942
52943         strftime: avoid compilation failure on Solaris 2.6
52944         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52945         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52946         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52947         be available.  Reported by Tom G. Christensen.  Details in
52948         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52949
52950 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52951             Bruno Haible  <bruno@clisp.org>
52952
52953         Speed up gnulib-tool by doing more string processing through shell
52954         built-ins.
52955         * gnulib-tool (fast_func_append): New variable.
52956         (func_remove_prefix, func_remove_suffix): New functions.
52957         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52958         (func_filter_filelist): New function.
52959         (func_get_dependencies): Use func_remove_suffix instead of sed.
52960         (func_get_automake_snippet): Use func_filter_filelist instead of a
52961         subshell and sed invocation.
52962
52963 2009-01-01  Bruno Haible  <bruno@clisp.org>
52964
52965         Fix a security bug.
52966         * gnulib-tool (func_import, import, update): Don't allow the characters
52967         '"', '$', '`', '\' in macro arguments that become part of commands that
52968         are evaluated.
52969
52970 2009-01-01  Bruno Haible  <bruno@clisp.org>
52971
52972         * gnulib-tool (func_reset_sigpipe): Add more comments.
52973
52974 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52975
52976         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52977         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52978         already know the answer.
52979
52980 2009-01-01  Jim Meyering  <meyering@redhat.com>
52981
52982         * lib/version-etc.c (version_etc_va): Update copyright year.
52983
52984 2008-12-30  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52987         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52988         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52989
52990 2008-12-29  Eric Blake  <ebb9@byu.net>
52991
52992         multiarch: avoid autoconf AC_REQUIRE bug
52993         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52994         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52995         2.63 and older.
52996         Reported by Bruno Haible, and analyzed in
52997         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52998
52999 2008-12-29  Bruno Haible  <bruno@clisp.org>
53000
53001         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53002         files in subdirectories correctly.
53003         Reported by Ralf Wildenhues.
53004
53005 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53006
53007         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53008         rather than 'join FILE -', for Solaris join.
53009
53010 2008-12-29  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53013         quoting.
53014         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53015         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53016         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53017         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53018         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53019         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53020         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53021         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53022         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53023         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53024         * m4/nls.m4 (AM_NLS): Likewise.
53025         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53026         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53027         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53028         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53029         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53030         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53031         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53032         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53033         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53034         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53035         * m4/xsize.m4 (gl_XSIZE): Likewise.
53036         Suggested by Jim Meyering.
53037
53038 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53039
53040         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53041         * lib/parse-duration.c: use a switch instead of cascading if's.
53042
53043 2008-12-29  Eric Blake  <ebb9@byu.net>
53044
53045         wchar.h: supply WEOF on Irix 5.3
53046         * lib/wchar.in.h (wint_t): Also supply WEOF.
53047         * lib/wctype.in.h (wint_t): Likewise.
53048         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53049         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53050         Reported by Tom G. Christensen.
53051
53052 2008-12-26  Bruno Haible  <bruno@clisp.org>
53053
53054         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53055         i486, i586, i686.
53056
53057 2008-12-26  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53060
53061 2008-12-26  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53064         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53065         not __STDC_CONSTANT_MACROS.
53066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53067
53068 2008-12-25  Bruno Haible  <bruno@clisp.org>
53069
53070         Add support for universal builds to vasnprintf.
53071         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53072         universal builds, guess no.
53073         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53074         * modules/vasprintf-posix (Depends-on): Likewise.
53075         * modules/fprintf-posix (Depends-on): Likewise.
53076         * modules/vfprintf-posix (Depends-on): Likewise.
53077         * modules/snprintf-posix (Depends-on): Likewise.
53078         * modules/vsnprintf-posix (Depends-on): Likewise.
53079         * modules/sprintf-posix (Depends-on): Likewise.
53080         * modules/vsprintf-posix (Depends-on): Likewise.
53081         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53083         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53084         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53085         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53086         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53087         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53088
53089         Add support for universal builds to <inttypes.h>.
53090         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53091         _SCNu64_PREFIX): In Apple
53092         universal builds, define directly, using _LP64.
53093         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53094         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53095         * modules/inttypes (Depends-on): Add multiarch.
53096         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53097
53098         Add support for universal builds to <stdint.h>.
53099         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53100         universal builds, define directly, using _LP64.
53101         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53102         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53103         and size_t.
53104         * modules/stdint (Depends-on): Add multiarch.
53105         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53106
53107         New module 'multiarch'.
53108         * modules/multiarch: New file.
53109         * m4/multiarch.m4: New file.
53110
53111 2008-12-25  Bruno Haible  <bruno@clisp.org>
53112
53113         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53114
53115 2008-12-25  Bruno Haible  <bruno@clisp.org>
53116
53117         * modules/btowc (License): Relicense under LGPLv2+.
53118         * modules/mbsinit (License): Likewise.
53119         * modules/mbrtowc (License): Likewise.
53120         * modules/wcrtomb (License): Likewise.
53121         * modules/streq (License): Likewise.
53122         Reported by David Lutterkort <lutter@redhat.com>.
53123
53124 2008-12-23  Bruno Haible  <bruno@clisp.org>
53125
53126         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53127
53128 2008-12-23  Bruno Haible  <bruno@clisp.org>
53129
53130         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53132         GETADDRINFO_LIB, not in LIBS.
53133         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53134         * modules/canon-host (Link): Likewise.
53135         * NEWS: Mention the change.
53136         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53137         GETADDRINFO_LIB.
53138
53139 2008-12-22  Bruno Haible  <bruno@clisp.org>
53140
53141         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53142         * doc/posix-functions/iswalpha_l.texi: Likewise.
53143         * doc/posix-functions/iswblank_l.texi: Likewise.
53144         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53145         * doc/posix-functions/iswctype_l.texi: Likewise.
53146         * doc/posix-functions/iswdigit_l.texi: Likewise.
53147         * doc/posix-functions/iswgraph_l.texi: Likewise.
53148         * doc/posix-functions/iswlower_l.texi: Likewise.
53149         * doc/posix-functions/iswprint_l.texi: Likewise.
53150         * doc/posix-functions/iswpunct_l.texi: Likewise.
53151         * doc/posix-functions/iswspace_l.texi: Likewise.
53152         * doc/posix-functions/iswupper_l.texi: Likewise.
53153         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53154         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53155         * doc/posix-functions/open_wmemstream.texi: Likewise.
53156         * doc/posix-functions/swscanf.texi: Likewise.
53157         * doc/posix-functions/towctrans_l.texi: Likewise.
53158         * doc/posix-functions/towlower.texi: Likewise.
53159         * doc/posix-functions/towlower_l.texi: Likewise.
53160         * doc/posix-functions/towupper.texi: Likewise.
53161         * doc/posix-functions/towupper_l.texi: Likewise.
53162         * doc/posix-functions/vfwprintf.texi: Likewise.
53163         * doc/posix-functions/vfwscanf.texi: Likewise.
53164         * doc/posix-functions/vswscanf.texi: Likewise.
53165         * doc/posix-functions/vwprintf.texi: Likewise.
53166         * doc/posix-functions/vwscanf.texi: Likewise.
53167         * doc/posix-functions/wcpcpy.texi: Likewise.
53168         * doc/posix-functions/wcpncpy.texi: Likewise.
53169         * doc/posix-functions/wcscasecmp.texi: Likewise.
53170         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53171         * doc/posix-functions/wcscoll_l.texi: Likewise.
53172         * doc/posix-functions/wcsdup.texi: Likewise.
53173         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53174         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53175         * doc/posix-functions/wcsnlen.texi: Likewise.
53176         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53177         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53178         * doc/posix-functions/wctrans_l.texi: Likewise.
53179         * doc/posix-functions/wctype_l.texi: Likewise.
53180         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53181         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53182         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53183         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53184         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53185         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53186         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53187         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53188         * doc/glibc-functions/wcschrnul.texi: Likewise.
53189         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53190         * doc/glibc-functions/wcstod_l.texi: Likewise.
53191         * doc/glibc-functions/wcstof_l.texi: Likewise.
53192         * doc/glibc-functions/wcstol_l.texi: Likewise.
53193         * doc/glibc-functions/wcstold_l.texi: Likewise.
53194         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53195         * doc/glibc-functions/wcstoq.texi: Likewise.
53196         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53197         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53198         * doc/glibc-functions/wcstouq.texi: Likewise.
53199         * doc/glibc-functions/wmempcpy.texi: Likewise.
53200
53201 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53202             Eric Blake  <ebb9@byu.net>
53203             Paolo Bonzini  <bonzini@gnu.org>
53204             Bruno Haible  <bruno@clisp.org>
53205
53206         Make c-stack work on Haiku.
53207         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53208         (c_stack_action): Use SA_ONSTACK flag.
53209
53210 2008-12-22  Bruno Haible  <bruno@clisp.org>
53211
53212         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53213
53214 2008-12-22  Bruno Haible  <bruno@clisp.org>
53215
53216         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53217         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53218         being overridden.
53219         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53220         New macros.
53221         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53223         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53224         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53225
53226 2008-12-22  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53229         from test code.
53230
53231 2008-12-22  Eric Blake  <ebb9@byu.net>
53232
53233         Avoid gcc warnings on cygwin.
53234         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53235         Avoid unused variable.
53236         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53237         Likewise.
53238
53239 2008-12-22  Bruno Haible  <bruno@clisp.org>
53240
53241         Remove HAVE_MBRTOWC conditionals.
53242         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53243         (mbscasecmp): Assume mbrtowc function.
53244         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53245         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53246         * lib/mbschr.c: Include mbuiter.h unconditionally.
53247         (mbschr): Assume mbrtowc function.
53248         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53249         (mbscspn): Assume mbrtowc function.
53250         * lib/mbslen.c: Include mbuiter.h unconditionally.
53251         (mbslen): Assume mbrtowc function.
53252         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53253         (mbsncasecmp): Assume mbrtowc function.
53254         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53255         (mbsnlen): Assume mbrtowc function.
53256         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53257         (mbspbrk): Assume mbrtowc function.
53258         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53259         (mbspcasecmp): Assume mbrtowc function.
53260         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53261         (mbsrchr): Assume mbrtowc function.
53262         * lib/mbssep.c: Include mbuiter.h unconditionally.
53263         (mbssep): Assume mbrtowc function.
53264         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53265         (mbsspn): Assume mbrtowc function.
53266         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53267         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53268         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53269         (mbstok_r): Assume mbrtowc function.
53270         * lib/propername.c: Include mbuiter.h unconditionally.
53271         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53272         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53273         (trim2): Assume mbrtowc function.
53274         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53275         (mbsnwidth): Assume mbrtowc function.
53276         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53277         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53278         fallback definitions.
53279         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53280
53281 2008-12-22  Bruno Haible  <bruno@clisp.org>
53282
53283         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53284
53285 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53286
53287         * modules/regex: Request emulations for the mb*/wc* functions we need.
53288         * m4/regex.m4: Don't look for those functions here.
53289         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53290
53291 2008-12-22  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53294
53295 2008-12-21  Bruno Haible  <bruno@clisp.org>
53296
53297         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53298         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53299         (Include): Remove conditionalization.
53300         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53301         (Include): Remove conditionalization.
53302         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53303         (Include): Remove conditionalization.
53304         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53305         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53306         * NEWS: Mention the change.
53307         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53308         via Sergey Poznyakoff <gray@gnu.org.ua>.
53309
53310 2008-12-21  Bruno Haible  <bruno@clisp.org>
53311
53312         * MODULES.html.sh (Extended multibyte and wide character utilities
53313         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53314         wcrtomb, wcsrtombs.
53315         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53316         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53317         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53318         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53319
53320 2008-12-21  Bruno Haible  <bruno@clisp.org>
53321
53322         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53323
53324 2008-12-21  Bruno Haible  <bruno@clisp.org>
53325
53326         * modules/wcsnrtombs-tests: New file.
53327         * tests/test-wcsnrtombs1.sh: New file.
53328         * tests/test-wcsnrtombs2.sh: New file.
53329         * tests/test-wcsnrtombs3.sh: New file.
53330         * tests/test-wcsnrtombs4.sh: New file.
53331         * tests/test-wcsnrtombs.c: New file.
53332
53333         New module 'wcsnrtombs'.
53334         * lib/wchar.in.h (wcsnrtombs): New declaration.
53335         * lib/wcsnrtombs.c: New file.
53336         * lib/wcsrtombs-state.c: New file.
53337         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53338         (internal_state): Remove variable.
53339         * m4/wcsnrtombs.m4: New file.
53340         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53341         compilation units.
53342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53343         HAVE_WCSNRTOMBS.
53344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53345         HAVE_WCSNRTOMBS.
53346         * modules/wcsnrtombs: New file.
53347         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53348         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53349
53350 2008-12-21  Bruno Haible  <bruno@clisp.org>
53351
53352         * modules/wcsrtombs-tests: New file.
53353         * tests/test-wcsrtombs1.sh: New file.
53354         * tests/test-wcsrtombs2.sh: New file.
53355         * tests/test-wcsrtombs3.sh: New file.
53356         * tests/test-wcsrtombs4.sh: New file.
53357         * tests/test-wcsrtombs.c: New file.
53358
53359         New module 'wcsrtombs'.
53360         * lib/wchar.in.h (wcsrtombs): New declaration.
53361         * lib/wcsrtombs.c: New file.
53362         * m4/wcsrtombs.m4: New file.
53363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53364         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53366         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53367         * modules/wcsrtombs: New file.
53368         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53369         bugs.
53370
53371 2008-12-21  Bruno Haible  <bruno@clisp.org>
53372
53373         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53374         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53375         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53376         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53377         if not correct.
53378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53379         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53380         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53381         m4/locale-zh.m4, m4/codeset.m4.
53382         * doc/posix-functions/wcrtomb.texi: Document the bug.
53383
53384 2008-12-21  Bruno Haible  <bruno@clisp.org>
53385
53386         Work around a btowc() bug on IRIX 6.5.
53387         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53388         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53389         REPLACE_WTOBC if not.
53390         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53391         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53392         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53393
53394 2008-12-21  Bruno Haible  <bruno@clisp.org>
53395
53396         * modules/wcrtomb-tests: New file.
53397         * tests/test-wcrtomb.sh: New file.
53398         * tests/test-wcrtomb.c: New file.
53399
53400         New module 'wcrtomb'.
53401         * lib/wchar.in.h (wcrtomb): New declaration.
53402         * lib/wcrtomb.c: New file.
53403         * m4/wcrtomb.m4: New file.
53404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53405         HAVE_WCRTOMB.
53406         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53407         HAVE_WCRTOMB.
53408         * modules/wcrtomb: New file.
53409         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53410
53411 2008-12-21  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53414         * modules/mbsrtowcs (Files): Likewise.
53415         * modules/wctob (Files): Likewise.
53416         * modules/c-strcase-tests (Files): Likewise.
53417         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53418         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53419         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53420         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53421         * modules/vasnprintf-posix-tests (Files): Likewise.
53422
53423 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53424
53425         gitlog-to-changelog: pass all command-line arguments to git-log
53426         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53427         it is sometimes convenient to filter the commits in various ways.
53428         gitlog-to-changelog only allows --since to specify a start date,
53429         but git-log itself supports many other filtering mechanisms.
53430         At the moment, I want to filter by branch name.  Rather than
53431         adding a --branch option to gitlog-to-changelog, it seems more
53432         flexible to simply pass all options directly to git-log and let
53433         git do the work.  Notice that this effectively makes --since a
53434         redundant option for gitlog-to-changelog, but removing it would
53435         require current usage to change since calls would then require
53436         an additional '--'.
53437
53438 2008-12-21  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/mbsnrtowcs-tests: New file.
53441         * tests/test-mbsnrtowcs1.sh: New file.
53442         * tests/test-mbsnrtowcs2.sh: New file.
53443         * tests/test-mbsnrtowcs3.sh: New file.
53444         * tests/test-mbsnrtowcs4.sh: New file.
53445         * tests/test-mbsnrtowcs.c: New file.
53446
53447         New module 'mbsnrtowcs'.
53448         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53449         * lib/mbsnrtowcs.c: New file.
53450         * lib/mbsrtowcs-state.c: New file.
53451         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53452         (internal_state): Remove variable.
53453         * m4/mbsnrtowcs.m4: New file.
53454         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53455         compilation units.
53456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53457         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53458         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53459         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53460         * modules/mbsnrtowcs: New file.
53461         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53462         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53463         portability problem.
53464
53465 2008-12-21  Bruno Haible  <bruno@clisp.org>
53466
53467         Work around mbsrtowcs bug.
53468         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53469         (gl_FUNC_MBSRTOWCS): Invoke it.
53470         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53471         m4/locale-zh.m4.
53472         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53473
53474 2008-12-21  Bruno Haible  <bruno@clisp.org>
53475
53476         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53477
53478 2008-12-21  Bruno Haible  <bruno@clisp.org>
53479
53480         Update doc for AIX.
53481         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53482         16-bit wchar_t type.
53483         * doc/posix-functions/btowc.texi: Likewise.
53484         * doc/posix-functions/fgetwc.texi: Likewise.
53485         * doc/posix-functions/fgetws.texi: Likewise.
53486         * doc/posix-functions/fputwc.texi: Likewise.
53487         * doc/posix-functions/fputws.texi: Likewise.
53488         * doc/posix-functions/fwide.texi: Likewise.
53489         * doc/posix-functions/fwprintf.texi: Likewise.
53490         * doc/posix-functions/fwscanf.texi: Likewise.
53491         * doc/posix-functions/getwchar.texi: Likewise.
53492         * doc/posix-functions/getwc.texi: Likewise.
53493         * doc/posix-functions/iswalnum.texi: Likewise.
53494         * doc/posix-functions/iswalpha.texi: Likewise.
53495         * doc/posix-functions/iswblank.texi: Likewise.
53496         * doc/posix-functions/iswcntrl.texi: Likewise.
53497         * doc/posix-functions/iswctype.texi: Likewise.
53498         * doc/posix-functions/iswdigit.texi: Likewise.
53499         * doc/posix-functions/iswgraph.texi: Likewise.
53500         * doc/posix-functions/iswlower.texi: Likewise.
53501         * doc/posix-functions/iswprint.texi: Likewise.
53502         * doc/posix-functions/iswpunct.texi: Likewise.
53503         * doc/posix-functions/iswspace.texi: Likewise.
53504         * doc/posix-functions/iswupper.texi: Likewise.
53505         * doc/posix-functions/iswxdigit.texi: Likewise.
53506         * doc/posix-functions/mbrtowc.texi: Likewise.
53507         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53508         * doc/posix-functions/mbstowcs.texi: Likewise.
53509         * doc/posix-functions/mbtowc.texi: Likewise.
53510         * doc/posix-functions/putwchar.texi: Likewise.
53511         * doc/posix-functions/putwc.texi: Likewise.
53512         * doc/posix-functions/swprintf.texi: Likewise.
53513         * doc/posix-functions/tolower.texi: Likewise.
53514         * doc/posix-functions/toupper.texi: Likewise.
53515         * doc/posix-functions/towctrans.texi: Likewise.
53516         * doc/posix-functions/ungetwc.texi: Likewise.
53517         * doc/posix-functions/vswprintf.texi: Likewise.
53518         * doc/posix-functions/wcrtomb.texi: Likewise.
53519         * doc/posix-functions/wcscat.texi: Likewise.
53520         * doc/posix-functions/wcschr.texi: Likewise.
53521         * doc/posix-functions/wcscmp.texi: Likewise.
53522         * doc/posix-functions/wcscoll.texi: Likewise.
53523         * doc/posix-functions/wcscpy.texi: Likewise.
53524         * doc/posix-functions/wcscspn.texi: Likewise.
53525         * doc/posix-functions/wcsftime.texi: Likewise.
53526         * doc/posix-functions/wcslen.texi: Likewise.
53527         * doc/posix-functions/wcsncat.texi: Likewise.
53528         * doc/posix-functions/wcsncmp.texi: Likewise.
53529         * doc/posix-functions/wcsncpy.texi: Likewise.
53530         * doc/posix-functions/wcspbrk.texi: Likewise.
53531         * doc/posix-functions/wcsrchr.texi: Likewise.
53532         * doc/posix-functions/wcsrtombs.texi: Likewise.
53533         * doc/posix-functions/wcsspn.texi: Likewise.
53534         * doc/posix-functions/wcsstr.texi: Likewise.
53535         * doc/posix-functions/wcstod.texi: Likewise.
53536         * doc/posix-functions/wcstof.texi: Likewise.
53537         * doc/posix-functions/wcstoimax.texi: Likewise.
53538         * doc/posix-functions/wcstok.texi: Likewise.
53539         * doc/posix-functions/wcstold.texi: Likewise.
53540         * doc/posix-functions/wcstoll.texi: Likewise.
53541         * doc/posix-functions/wcstol.texi: Likewise.
53542         * doc/posix-functions/wcstombs.texi: Likewise.
53543         * doc/posix-functions/wcstoull.texi: Likewise.
53544         * doc/posix-functions/wcstoul.texi: Likewise.
53545         * doc/posix-functions/wcstoumax.texi: Likewise.
53546         * doc/posix-functions/wcswidth.texi: Likewise.
53547         * doc/posix-functions/wcsxfrm.texi: Likewise.
53548         * doc/posix-functions/wctob.texi: Likewise.
53549         * doc/posix-functions/wctomb.texi: Likewise.
53550         * doc/posix-functions/wctrans.texi: Likewise.
53551         * doc/posix-functions/wctype.texi: Likewise.
53552         * doc/posix-functions/wcwidth.texi: Likewise.
53553         * doc/posix-functions/wmemchr.texi: Likewise.
53554         * doc/posix-functions/wmemcmp.texi: Likewise.
53555         * doc/posix-functions/wmemcpy.texi: Likewise.
53556         * doc/posix-functions/wmemmove.texi: Likewise.
53557         * doc/posix-functions/wmemset.texi: Likewise.
53558         * doc/posix-functions/wprintf.texi: Likewise.
53559         * doc/posix-functions/wscanf.texi: Likewise.
53560
53561 2008-12-21  Bruno Haible  <bruno@clisp.org>
53562
53563         Update doc for HP-UX 11.11.
53564         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53565         in HP-UX version 11.00, not in all versions of HP-UX 11.
53566         * doc/posix-functions/fwide.texi: Likewise.
53567         * doc/posix-functions/fwprintf.texi: Likewise.
53568         * doc/posix-functions/fwscanf.texi: Likewise.
53569         * doc/posix-functions/inet_ntop.texi: Likewise.
53570         * doc/posix-functions/inet_pton.texi: Likewise.
53571         * doc/posix-functions/mbrlen.texi: Likewise.
53572         * doc/posix-functions/mbrtowc.texi: Likewise.
53573         * doc/posix-functions/mbsinit.texi: Likewise.
53574         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53575         * doc/posix-functions/swprintf.texi: Likewise.
53576         * doc/posix-functions/swscanf.texi: Likewise.
53577         * doc/posix-functions/towctrans.texi: Likewise.
53578         * doc/posix-functions/vfwprintf.texi: Likewise.
53579         * doc/posix-functions/vswprintf.texi: Likewise.
53580         * doc/posix-functions/vwprintf.texi: Likewise.
53581         * doc/posix-functions/wcrtomb.texi: Likewise.
53582         * doc/posix-functions/wcsrtombs.texi: Likewise.
53583         * doc/posix-functions/wcsstr.texi: Likewise.
53584         * doc/posix-functions/wctob.texi: Likewise.
53585         * doc/posix-functions/wctrans.texi: Likewise.
53586         * doc/posix-functions/wmemchr.texi: Likewise.
53587         * doc/posix-functions/wmemcmp.texi: Likewise.
53588         * doc/posix-functions/wmemcpy.texi: Likewise.
53589         * doc/posix-functions/wmemmove.texi: Likewise.
53590         * doc/posix-functions/wmemset.texi: Likewise.
53591         * doc/posix-functions/wprintf.texi: Likewise.
53592         * doc/posix-functions/wscanf.texi: Likewise.
53593
53594 2008-12-21  Bruno Haible  <bruno@clisp.org>
53595
53596         Work around a portability problem.
53597         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53598         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53599
53600 2008-12-20  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53603         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53604         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53606         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53607
53608         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53609         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53610         set.
53611         (GNULIB_defined_mbstate_t): New macro.
53612         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53613         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53614         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53615         reuses the system's mbrtowc function but works around the bugs.
53616         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53617         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53618         macros.
53619         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53620         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53621         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53622         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53623         REPLACE_MBSINIT if mbsinit needs to be overridden.
53624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53625         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53626         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53627         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53628         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53629         m4/locale-zh.m4.
53630         (Depends): Add mbsinit.
53631         * modules/mbsinit (Depends): Add mbrtowc.
53632         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53633
53634 2008-12-20  Bruno Haible  <bruno@clisp.org>
53635
53636         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53637         so that there are no conversion errors on AIX.
53638         * tests/test-mbsrtowcs.c (main): LIkewise.
53639
53640 2008-12-20  Bruno Haible  <bruno@clisp.org>
53641
53642         Work around wctob bug on Solaris <= 9.
53643         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53644         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53646         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53647         * modules/wctob (Files): Add m4/locale-fr.m4.
53648         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53649
53650 2008-12-20  Bruno Haible  <bruno@clisp.org>
53651
53652         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53653         /dev/null.
53654         * tests/test-select-in.sh: Likewise.
53655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53656
53657 2008-12-20  Bruno Haible  <bruno@clisp.org>
53658
53659         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53660         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53661         Cygwin 1.5.x.
53662
53663 2008-12-20  Bruno Haible  <bruno@clisp.org>
53664
53665         Ensure mbstate_t is defined on HP-UX 11.11.
53666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53667         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53668         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53669         AC_USE_SYSTEM_EXTENSIONS.
53670         * modules/fnmatch (Depends-on): Add extensions.
53671         * modules/mbrlen (Depends-on): Likewise.
53672         * modules/mbrtowc (Depends-on): Likewise.
53673         * modules/mbsinit (Depends-on): Likewise.
53674         * modules/mbsrtowcs (Depends-on): Likewise.
53675         * modules/mbswidth (Depends-on): Likewise.
53676         * modules/quotearg (Depends-on): Likewise.
53677         * modules/strftime (Depends-on): Likewise.
53678
53679 2008-12-20  Bruno Haible  <bruno@clisp.org>
53680
53681         Ensure wctob is declared on IRIX 6.5.
53682         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53683         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53684         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53686         of HAVE_WCTOB.
53687         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53688         HAVE_WCTOB.
53689         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53690
53691 2008-12-19  Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/mbsrtowcs-tests: New file.
53694         * tests/test-mbsrtowcs1.sh: New file.
53695         * tests/test-mbsrtowcs2.sh: New file.
53696         * tests/test-mbsrtowcs3.sh: New file.
53697         * tests/test-mbsrtowcs4.sh: New file.
53698         * tests/test-mbsrtowcs.c: New file.
53699
53700         New module 'mbsrtowcs'.
53701         * lib/wchar.in.h (mbsrtowcs): New declaration.
53702         * lib/mbsrtowcs.c: New file.
53703         * m4/mbsrtowcs.m4: New file.
53704         * modules/mbsrtowcs: New file.
53705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53706         HAVE_MBSRTOWCS.
53707         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53708         HAVE_MBSRTOWCS.
53709         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53710
53711 2008-12-19  Bruno Haible  <bruno@clisp.org>
53712
53713         New module 'mbrlen'.
53714         * lib/wchar.in.h (mbrlen): New declaration.
53715         * lib/mbrlen.c: New file.
53716         * m4/mbrlen.m4: New file.
53717         * modules/mbrlen: New file.
53718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53719         HAVE_MBRLEN.
53720         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53721         HAVE_MBRLEN.
53722         * doc/posix-functions/mbrlen.texi: Document the new module.
53723
53724 2008-12-19  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53727         * modules/mbrtowc (Depends-on): Add verify.
53728         Suggested by Paul Eggert.
53729
53730 2008-12-18  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/mbsinit-tests: New file.
53733         * tests/test-mbsinit.sh: New file.
53734         * tests/test-mbsinit.c: New file.
53735
53736 2008-12-18  Bruno Haible  <bruno@clisp.org>
53737
53738         * modules/mbrtowc-tests: New file.
53739         * tests/test-mbrtowc1.sh: New file.
53740         * tests/test-mbrtowc2.sh: New file.
53741         * tests/test-mbrtowc3.sh: New file.
53742         * tests/test-mbrtowc4.sh: New file.
53743         * tests/test-mbrtowc.c: New file.
53744
53745         New module 'mbrtowc'.
53746         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53747         mbsinit and mbrtowc.
53748         (mbrtowc): New declaration.
53749         * lib/mbrtowc.c: New file.
53750         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53751         * modules/mbrtowc: New file.
53752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53753         HAVE_MBRTOWC.
53754         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53755         HAVE_MBRTOWC.
53756         * doc/posix-functions/mbrtowc.texi: Document the new module.
53757
53758 2008-12-18  Bruno Haible  <bruno@clisp.org>
53759
53760         New module 'wctob'.
53761         * lib/wchar.in.h (wctob): New declaration.
53762         * lib/wctob.c: New file.
53763         * m4/wctob.m4: New file.
53764         * modules/wctob: New file.
53765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53766         HAVE_WCTOB.
53767         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53768         * doc/posix-functions/wctob.texi: Document the new module.
53769
53770 2008-12-18  Bruno Haible  <bruno@clisp.org>
53771
53772         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53773         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53774
53775 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53776
53777         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53778         G. Christensen" <tgc@jupiterrise.com>.
53779
53780         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53781         G. Christensen" <tgc@jupiterrise.com>.
53782
53783         * lib/flock.c: Need to include string.h.  Reported by "Tom
53784         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53785         <ebb9@byu.net>.
53786
53787 2008-12-18  Bruno Haible  <bruno@clisp.org>
53788
53789         * m4/locale-ja.m4: New file, from GNU gettext.
53790
53791 2008-12-17  Bruno Haible  <bruno@clisp.org>
53792
53793         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53794         Suggested by Eric Blake.
53795
53796 2008-12-17  Bruno Haible  <bruno@clisp.org>
53797
53798         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53799
53800 2008-12-17  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53803         * modules/mbsinit (Depends-on): Add verify.
53804         Suggested by Paul Eggert.
53805
53806 2008-12-17  Bruno Haible  <bruno@clisp.org>
53807
53808         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53809         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53810         gl_FUNC_MBRTOWC.
53811         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53812         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53813         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53814         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53815         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53816         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53817         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53818         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53819         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53820         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53821         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53822         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53823         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53824         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53825         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53826         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53827         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53828         * modules/trim (configure.ac): Likewise.
53829
53830 2008-12-17  Bruno Haible  <bruno@clisp.org>
53831
53832         * modules/btowc-tests: New file.
53833         * tests/test-btowc1.sh: New file.
53834         * tests/test-btowc2.sh: New file.
53835         * tests/test-btowc.c: New file.
53836
53837         New module 'btowc'.
53838         * lib/wchar.in.h (btowc): New declaration.
53839         * lib/btowc.c: New file.
53840         * m4/btowc.m4: New file.
53841         * modules/btowc: New file.
53842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53843         HAVE_BTOWC.
53844         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53845         * doc/posix-functions/btowc.texi: Document the new module.
53846
53847 2008-12-17  Bruno Haible  <bruno@clisp.org>
53848
53849         New module 'mbsinit'.
53850         * lib/wchar.in.h (mbsinit): New declaration.
53851         * lib/mbsinit.c: New file.
53852         * m4/mbsinit.m4: New file.
53853         * modules/mbsinit: New file.
53854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53855         HAVE_MBSINIT.
53856         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53857         HAVE_MBSINIT.
53858         * doc/posix-functions/mbsinit.texi: Document the new module.
53859
53860 2008-12-16  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/unistd.in.h: Add comment.
53863         * tests/test-environ.c: Don't include <stdlib.h>.
53864
53865 2008-12-16  Bruno Haible  <bruno@clisp.org>
53866
53867         * lib/parse-duration.h (parse_duration): Document return value
53868         convention.
53869         * lib/parse-duration.c: Include specification header first. Add
53870         comments.
53871         (_): Remove macro.
53872         (parse_year_month_day, parse_hour_minute_second): Move side effects
53873         outside of strchr call.
53874         (parse_non_iso8601): Move side effects outside of isspace call.
53875         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53876         call.
53877
53878 2008-12-16  Bruno Haible  <bruno@clisp.org>
53879
53880         * tests/test-parse-duration.sh: Produce no output when the test
53881         succeeds.
53882
53883 2008-12-16  Bruno Haible  <bruno@clisp.org>
53884
53885         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53886         expressions.
53887
53888 2008-12-15  Bruno Haible  <bruno@clisp.org>
53889
53890         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53891         * doc/glibc-functions/flistxattr.texi: Likewise.
53892         * doc/glibc-functions/fopencookie.texi: Likewise.
53893         * doc/glibc-functions/fremovexattr.texi: Likewise.
53894         * doc/glibc-functions/fsetxattr.texi: Likewise.
53895         * doc/glibc-functions/getxattr.texi: Likewise.
53896         * doc/glibc-functions/lgetxattr.texi: Likewise.
53897         * doc/glibc-functions/listxattr.texi: Likewise.
53898         * doc/glibc-functions/llistxattr.texi: Likewise.
53899         * doc/glibc-functions/lremovexattr.texi: Likewise.
53900         * doc/glibc-functions/lsetxattr.texi: Likewise.
53901         * doc/glibc-functions/removexattr.texi: Likewise.
53902         * doc/glibc-functions/setxattr.texi: Likewise.
53903         * doc/posix-functions/open_memstream.texi: Likewise.
53904
53905 2008-12-15  Eric Blake  <ebb9@byu.net>
53906
53907         Update doc for cygwin 1.7.
53908         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53909         functions.
53910         * doc/posix-functions/fchmodat.texi: Likewise.
53911         * doc/posix-functions/fchownat.texi: Likewise.
53912         * doc/posix-functions/fdopendir.texi: Likewise.
53913         * doc/posix-functions/fmemopen.texi: Likewise.
53914         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53915         * doc/posix-functions/fstatat.texi: Likewise.
53916         * doc/posix-functions/futimens.texi: Likewise.
53917         * doc/posix-functions/gai_strerror.texi: Likewise.
53918         * doc/posix-functions/getaddrinfo.texi: Likewise.
53919         * doc/posix-functions/getnameinfo.texi: Likewise.
53920         * doc/posix-functions/if_freenameindex.texi: Likewise.
53921         * doc/posix-functions/if_indextoname.texi: Likewise.
53922         * doc/posix-functions/if_nameindex.texi: Likewise.
53923         * doc/posix-functions/if_nametoindex.texi: Likewise.
53924         * doc/posix-functions/insque.texi: Likewise.
53925         * doc/posix-functions/linkat.texi: Likewise.
53926         * doc/posix-functions/llrint.texi: Likewise.
53927         * doc/posix-functions/llrintf.texi: Likewise.
53928         * doc/posix-functions/llrintl.texi: Likewise.
53929         * doc/posix-functions/lockf.texi: Likewise.
53930         * doc/posix-functions/lrintl.texi: Likewise.
53931         * doc/posix-functions/mkdirat.texi: Likewise.
53932         * doc/posix-functions/mkfifoat.texi: Likewise.
53933         * doc/posix-functions/mknodat.texi: Likewise.
53934         * doc/posix-functions/mq_close.texi: Likewise.
53935         * doc/posix-functions/mq_getattr.texi: Likewise.
53936         * doc/posix-functions/mq_notify.texi: Likewise.
53937         * doc/posix-functions/mq_open.texi: Likewise.
53938         * doc/posix-functions/mq_receive.texi: Likewise.
53939         * doc/posix-functions/mq_send.texi: Likewise.
53940         * doc/posix-functions/mq_setattr.texi: Likewise.
53941         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53942         * doc/posix-functions/mq_timedsend.texi: Likewise.
53943         * doc/posix-functions/mq_unlink.texi: Likewise.
53944         * doc/posix-functions/open_memstream.texi: Likewise.
53945         * doc/posix-functions/openat.texi: Likewise.
53946         * doc/posix-functions/posix_fadvise.texi: Likewise.
53947         * doc/posix-functions/posix_fallocate.texi: Likewise.
53948         * doc/posix-functions/posix_madvise.texi: Likewise.
53949         * doc/posix-functions/posix_memalign.texi: Likewise.
53950         * doc/posix-functions/posix_openpt.texi: Likewise.
53951         * doc/posix-functions/readlinkat.texi: Likewise.
53952         * doc/posix-functions/remque.texi: Likewise.
53953         * doc/posix-functions/renameat.texi: Likewise.
53954         * doc/posix-functions/rintl.texi: Likewise.
53955         * doc/posix-functions/sem_unlink.texi: Likewise.
53956         * doc/posix-functions/shm_open.texi: Likewise.
53957         * doc/posix-functions/shm_unlink.texi: Likewise.
53958         * doc/posix-functions/signgam.texi: Likewise.
53959         * doc/posix-functions/sigset.texi: Likewise.
53960         * doc/posix-functions/stpcpy.texi: Likewise.
53961         * doc/posix-functions/stpncpy.texi: Likewise.
53962         * doc/posix-functions/strerror.texi: Likewise.
53963         * doc/posix-functions/strtod.texi: Likewise.
53964         * doc/posix-functions/symlinkat.texi: Likewise.
53965         * doc/posix-functions/unlinkat.texi: Likewise.
53966         * doc/posix-functions/utimensat.texi: Likewise.
53967         * doc/glibc-functions/bindresvport.texi: Likewise.
53968         * doc/glibc-functions/dn_expand.texi: Likewise.
53969         * doc/glibc-functions/exp10.texi: Likewise.
53970         * doc/glibc-functions/exp10f.texi: Likewise.
53971         * doc/glibc-functions/fgetxattr.texi: Likewise.
53972         * doc/glibc-functions/flistxattr.texi: Likewise.
53973         * doc/glibc-functions/fopencookie.texi: Likewise.
53974         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53975         * doc/glibc-functions/fremovexattr.texi: Likewise.
53976         * doc/glibc-functions/fsetxattr.texi: Likewise.
53977         * doc/glibc-functions/getifaddrs.texi: Likewise.
53978         * doc/glibc-functions/getxattr.texi: Likewise.
53979         * doc/glibc-functions/lgetxattr.texi: Likewise.
53980         * doc/glibc-functions/listxattr.texi: Likewise.
53981         * doc/glibc-functions/llistxattr.texi: Likewise.
53982         * doc/glibc-functions/lremovexattr.texi: Likewise.
53983         * doc/glibc-functions/lsetxattr.texi: Likewise.
53984         * doc/glibc-functions/pow10.texi: Likewise.
53985         * doc/glibc-functions/pow10f.texi: Likewise.
53986         * doc/glibc-functions/rcmd_af.texi: Likewise.
53987         * doc/glibc-functions/removexattr.texi: Likewise.
53988         * doc/glibc-functions/res_init.texi: Likewise.
53989         * doc/glibc-functions/res_mkquery.texi: Likewise.
53990         * doc/glibc-functions/res_query.texi: Likewise.
53991         * doc/glibc-functions/res_querydomain.texi: Likewise.
53992         * doc/glibc-functions/res_send.texi: Likewise.
53993         * doc/glibc-functions/rresvport_af.texi: Likewise.
53994         * doc/glibc-functions/setxattr.texi: Likewise.
53995         * doc/glibc-functions/strcasestr.texi: Likewise.
53996
53997 2008-12-15  Bruno Haible  <bruno@clisp.org>
53998
53999         Fix compilation error on OSF/1 4.0.
54000         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54001         <sys/time.h>, simply delegate to the system header.
54002         Reported by Daniel Richard G. <oss@teragram.com>.
54003
54004 2008-12-15  Bruno Haible  <bruno@clisp.org>
54005
54006         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54007         * doc/posix-functions/fchmodat.texi: Likewise.
54008         * doc/posix-functions/fchownat.texi: Likewise.
54009         * doc/posix-functions/fdopendir.texi: Likewise.
54010         * doc/posix-functions/fstatat.texi: Likewise.
54011         * doc/posix-functions/mkdirat.texi: Likewise.
54012         * doc/posix-functions/unlinkat.texi: Likewise.
54013
54014 2008-12-14  Bruno Haible  <bruno@clisp.org>
54015
54016         Update doc for POSIX:2008.
54017         * doc/posix-functions/faccessat.texi: New file.
54018         * doc/posix-functions/fchmodat.texi: New file.
54019         * doc/posix-functions/fchownat.texi: New file.
54020         * doc/posix-functions/fdopendir.texi: New file.
54021         * doc/posix-functions/fstatat.texi: New file.
54022         * doc/posix-functions/futimens.texi: New file.
54023         * doc/posix-functions/linkat.texi: New file.
54024         * doc/posix-functions/mkdirat.texi: New file.
54025         * doc/posix-functions/mkfifoat.texi: New file.
54026         * doc/posix-functions/mknodat.texi: New file.
54027         * doc/posix-functions/open_wmemstream.texi: New file.
54028         * doc/posix-functions/openat.texi: New file.
54029         * doc/posix-functions/psiginfo.texi: New file.
54030         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54031         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54032         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54033         * doc/posix-functions/readlinkat.texi: New file.
54034         * doc/posix-functions/renameat.texi: New file.
54035         * doc/posix-functions/strerror_l.texi: New file.
54036         * doc/posix-functions/symlinkat.texi: New file.
54037         * doc/posix-functions/unlinkat.texi: New file.
54038         * doc/posix-functions/utimensat.texi: New file.
54039         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54040
54041 2008-12-14  Bruno Haible  <bruno@clisp.org>
54042
54043         Update doc for POSIX:2008.
54044         * doc/posix-functions/alphasort.texi: Renamed from
54045         doc/glibc-functions/alphasort.texi.
54046         * doc/posix-functions/dirfd.texi: Renamed from
54047         doc/glibc-functions/dirfd.texi.
54048         * doc/posix-functions/dprintf.texi: Renamed from
54049         doc/glibc-functions/dprintf.texi.
54050         * doc/posix-functions/duplocale.texi: Renamed from
54051         doc/glibc-functions/duplocale.texi.
54052         * doc/posix-functions/fexecve.texi: Renamed from
54053         doc/glibc-functions/fexecve.texi.
54054         * doc/posix-functions/fmemopen.texi: Renamed from
54055         doc/glibc-functions/fmemopen.texi.
54056         * doc/posix-functions/freelocale.texi: Renamed from
54057         doc/glibc-functions/freelocale.texi.
54058         * doc/posix-functions/getdate_err.texi: Renamed from
54059         doc/glibc-functions/getdate_err.texi.
54060         * doc/posix-functions/isalnum_l.texi: Renamed from
54061         doc/glibc-functions/isalnum_l.texi.
54062         * doc/posix-functions/isalpha_l.texi: Renamed from
54063         doc/glibc-functions/isalpha_l.texi.
54064         * doc/posix-functions/isblank_l.texi: Renamed from
54065         doc/glibc-functions/isblank_l.texi.
54066         * doc/posix-functions/iscntrl_l.texi: Renamed from
54067         doc/glibc-functions/iscntrl_l.texi.
54068         * doc/posix-functions/isdigit_l.texi: Renamed from
54069         doc/glibc-functions/isdigit_l.texi.
54070         * doc/posix-functions/isgraph_l.texi: Renamed from
54071         doc/glibc-functions/isgraph_l.texi.
54072         * doc/posix-functions/islower_l.texi: Renamed from
54073         doc/glibc-functions/islower_l.texi.
54074         * doc/posix-functions/isprint_l.texi: Renamed from
54075         doc/glibc-functions/isprint_l.texi.
54076         * doc/posix-functions/ispunct_l.texi: Renamed from
54077         doc/glibc-functions/ispunct_l.texi.
54078         * doc/posix-functions/isspace_l.texi: Renamed from
54079         doc/glibc-functions/isspace_l.texi.
54080         * doc/posix-functions/isupper_l.texi: Renamed from
54081         doc/glibc-functions/isupper_l.texi.
54082         * doc/posix-functions/iswalnum_l.texi: Renamed from
54083         doc/glibc-functions/iswalnum_l.texi.
54084         * doc/posix-functions/iswalpha_l.texi: Renamed from
54085         doc/glibc-functions/iswalpha_l.texi.
54086         * doc/posix-functions/iswblank_l.texi: Renamed from
54087         doc/glibc-functions/iswblank_l.texi.
54088         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54089         doc/glibc-functions/iswcntrl_l.texi.
54090         * doc/posix-functions/iswctype_l.texi: Renamed from
54091         doc/glibc-functions/iswctype_l.texi.
54092         * doc/posix-functions/iswdigit_l.texi: Renamed from
54093         doc/glibc-functions/iswdigit_l.texi.
54094         * doc/posix-functions/iswgraph_l.texi: Renamed from
54095         doc/glibc-functions/iswgraph_l.texi.
54096         * doc/posix-functions/iswlower_l.texi: Renamed from
54097         doc/glibc-functions/iswlower_l.texi.
54098         * doc/posix-functions/iswprint_l.texi: Renamed from
54099         doc/glibc-functions/iswprint_l.texi.
54100         * doc/posix-functions/iswpunct_l.texi: Renamed from
54101         doc/glibc-functions/iswpunct_l.texi.
54102         * doc/posix-functions/iswspace_l.texi: Renamed from
54103         doc/glibc-functions/iswspace_l.texi.
54104         * doc/posix-functions/iswupper_l.texi: Renamed from
54105         doc/glibc-functions/iswupper_l.texi.
54106         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54107         doc/glibc-functions/iswxdigit_l.texi.
54108         * doc/posix-functions/isxdigit_l.texi: Renamed from
54109         doc/glibc-functions/isxdigit_l.texi.
54110         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54111         doc/glibc-functions/mbsnrtowcs.texi.
54112         * doc/posix-functions/mkdtemp.texi: Renamed from
54113         doc/glibc-functions/mkdtemp.texi.
54114         * doc/posix-functions/newlocale.texi: Renamed from
54115         doc/glibc-functions/newlocale.texi.
54116         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54117         doc/glibc-functions/nl_langinfo_l.texi.
54118         * doc/posix-functions/open_memstream.texi: Renamed from
54119         doc/glibc-functions/open_memstream.texi.
54120         * doc/posix-functions/opterr.texi: Renamed from
54121         doc/glibc-functions/opterr.texi.
54122         * doc/posix-functions/optind.texi: Renamed from
54123         doc/glibc-functions/optind.texi.
54124         * doc/posix-functions/optopt.texi: Renamed from
54125         doc/glibc-functions/optopt.texi.
54126         * doc/posix-functions/psignal.texi: Renamed from
54127         doc/glibc-functions/psignal.texi.
54128         * doc/posix-functions/scandir.texi: Renamed from
54129         doc/glibc-functions/scandir.texi.
54130         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54131         doc/glibc-functions/sched_get_priority_min.texi.
54132         * doc/posix-functions/signgam.texi: Renamed from
54133         doc/glibc-functions/signgam.texi.
54134         * doc/posix-functions/stpcpy.texi: Renamed from
54135         doc/glibc-functions/stpcpy.texi.
54136         * doc/posix-functions/stpncpy.texi: Renamed from
54137         doc/glibc-functions/stpncpy.texi.
54138         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54139         doc/glibc-functions/strcasecmp_l.texi.
54140         * doc/posix-functions/strcoll_l.texi: Renamed from
54141         doc/glibc-functions/strcoll_l.texi.
54142         * doc/posix-functions/strfmon_l.texi: Renamed from
54143         doc/glibc-functions/strfmon_l.texi.
54144         * doc/posix-functions/strftime_l.texi: Renamed from
54145         doc/glibc-functions/strftime_l.texi.
54146         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54147         doc/glibc-functions/strncasecmp_l.texi.
54148         * doc/posix-functions/strndup.texi: Renamed from
54149         doc/glibc-functions/strndup.texi.
54150         * doc/posix-functions/strnlen.texi: Renamed from
54151         doc/glibc-functions/strnlen.texi.
54152         * doc/posix-functions/strsignal.texi: Renamed from
54153         doc/glibc-functions/strsignal.texi.
54154         * doc/posix-functions/strxfrm_l.texi: Renamed from
54155         doc/glibc-functions/strxfrm_l.texi.
54156         * doc/posix-functions/timer_gettime.texi: Renamed from
54157         doc/glibc-functions/timer_gettime.texi.
54158         * doc/posix-functions/tolower_l.texi: Renamed from
54159         doc/glibc-functions/tolower_l.texi.
54160         * doc/posix-functions/toupper_l.texi: Renamed from
54161         doc/glibc-functions/toupper_l.texi.
54162         * doc/posix-functions/towctrans_l.texi: Renamed from
54163         doc/glibc-functions/towctrans_l.texi.
54164         * doc/posix-functions/towlower_l.texi: Renamed from
54165         doc/glibc-functions/towlower_l.texi.
54166         * doc/posix-functions/towupper_l.texi: Renamed from
54167         doc/glibc-functions/towupper_l.texi.
54168         * doc/posix-functions/uselocale.texi: Renamed from
54169         doc/glibc-functions/uselocale.texi.
54170         * doc/posix-functions/vdprintf.texi: Renamed from
54171         doc/glibc-functions/vdprintf.texi.
54172         * doc/posix-functions/wcpcpy.texi:
54173         Renamed from doc/glibc-functions/wcpcpy.texi.
54174         * doc/posix-functions/wcpncpy.texi: Renamed from
54175         doc/glibc-functions/wcpncpy.texi.
54176         * doc/posix-functions/wcscasecmp.texi: Renamed from
54177         doc/glibc-functions/wcscasecmp.texi.
54178         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54179         doc/glibc-functions/wcscasecmp_l.texi.
54180         * doc/posix-functions/wcscoll_l.texi: Renamed from
54181         doc/glibc-functions/wcscoll_l.texi.
54182         * doc/posix-functions/wcsdup.texi: Renamed from
54183         doc/glibc-functions/wcsdup.texi.
54184         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54185         doc/glibc-functions/wcsncasecmp.texi.
54186         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54187         doc/glibc-functions/wcsncasecmp_l.texi.
54188         * doc/posix-functions/wcsnlen.texi: Renamed from
54189         doc/glibc-functions/wcsnlen.texi.
54190         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54191         doc/glibc-functions/wcsnrtombs.texi.
54192         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54193         doc/glibc-functions/wcsxfrm_l.texi.
54194         * doc/posix-functions/wctrans_l.texi: Renamed from
54195         doc/glibc-functions/wctrans_l.texi.
54196         * doc/posix-functions/wctype_l.texi: Renamed from
54197         doc/glibc-functions/wctype_l.texi.
54198         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54199         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54200         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54201         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54202         these subsections.
54203         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54204         Remove sections.
54205
54206 2008-12-14  Bruno Haible  <bruno@clisp.org>
54207
54208         Update doc for POSIX:2008.
54209         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54210
54211 2008-12-14  Bruno Haible  <bruno@clisp.org>
54212
54213         Update doc for POSIX:2008.
54214         * doc/pastposix-functions/bcmp.texi: Renamed from
54215         doc/posix-functions/bcmp.texi.
54216         * doc/pastposix-functions/bcopy.texi: Renamed from
54217         doc/posix-functions/bcopy.texi.
54218         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54219         doc/posix-functions/bsd_signal.texi.
54220         * doc/pastposix-functions/bzero.texi: Renamed from
54221         doc/posix-functions/bzero.texi.
54222         * doc/pastposix-functions/ecvt.texi: Renamed from
54223         doc/posix-functions/ecvt.texi.
54224         * doc/pastposix-functions/fcvt.texi: Renamed from
54225         doc/posix-functions/fcvt.texi.
54226         * doc/pastposix-functions/ftime.texi: Renamed from
54227         doc/posix-functions/ftime.texi.
54228         * doc/pastposix-functions/gcvt.texi: Renamed from
54229         doc/posix-functions/gcvt.texi.
54230         * doc/pastposix-functions/getcontext.texi: Renamed from
54231         doc/posix-functions/getcontext.texi.
54232         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54233         doc/posix-functions/gethostbyaddr.texi.
54234         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54235         doc/posix-functions/gethostbyname.texi.
54236         * doc/pastposix-functions/getwd.texi: Renamed from
54237         doc/posix-functions/getwd.texi.
54238         * doc/pastposix-functions/h_errno.texi: Renamed from
54239         doc/posix-functions/h_errno.texi.
54240         * doc/pastposix-functions/index.texi: Renamed from
54241         doc/posix-functions/index.texi.
54242         * doc/pastposix-functions/makecontext.texi: Renamed from
54243         doc/posix-functions/makecontext.texi.
54244         * doc/pastposix-functions/mktemp.texi: Renamed from
54245         doc/posix-functions/mktemp.texi.
54246         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54247         doc/posix-functions/pthread_attr_getstackaddr.texi.
54248         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54249         doc/posix-functions/pthread_attr_setstackaddr.texi.
54250         * doc/pastposix-functions/rindex.texi: Renamed from
54251         doc/posix-functions/rindex.texi.
54252         * doc/pastposix-functions/scalb.texi: Renamed from
54253         doc/posix-functions/scalb.texi.
54254         * doc/pastposix-functions/setcontext.texi: Renamed from
54255         doc/posix-functions/setcontext.texi.
54256         * doc/pastposix-functions/swapcontext.texi: Renamed from
54257         doc/posix-functions/swapcontext.texi.
54258         * doc/pastposix-functions/ualarm.texi: Renamed from
54259         doc/posix-functions/ualarm.texi.
54260         * doc/pastposix-functions/usleep.texi: Renamed from
54261         doc/posix-functions/usleep.texi.
54262         * doc/pastposix-functions/vfork.texi: Renamed from
54263         doc/posix-functions/vfork.texi.
54264         * doc/pastposix-functions/wcswcs.texi: Renamed from
54265         doc/posix-functions/wcswcs.texi.
54266         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54267         (Function Substitutes): Update.
54268
54269 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54270
54271         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54272         m4/strerror.m4.
54273
54274 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54275             Bruno Haible  <bruno@clisp.org>
54276
54277         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54278
54279 2008-12-13  Bruno Haible  <bruno@clisp.org>
54280
54281         * modules/strtoull (Depends-on): Remove unistd.
54282
54283 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54284
54285         * modules/strtoull (Depends-on): Add stdlib.
54286
54287 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54288
54289         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54290
54291 2008-12-10  Jim Meyering  <meyering@redhat.com>
54292
54293         gl_ASSERT: don't say assertions are disabled when they're not
54294         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54295         "checking whether to enable assertions... no", when they are in
54296         fact enabled.  This is solely a bug in the output of configure.
54297         In spite of saying "no", NDEBUG was not defined in that case.
54298         Also, as noted by Eric Blake, leave assertions enabled upon
54299         --enable-assert=INVALID.
54300
54301 2008-12-10  Bruno Haible  <bruno@clisp.org>
54302
54303         Change MODULES.html to refer to POSIX:2008 where possible.
54304         * MODULES.html.sh (POSIX2008_URL): New variable.
54305         (posix_headers): Remove sys/timeb, ucontext.
54306         (posix2001_headers): New variable.
54307         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54308         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54309         index, makecontext, mktemp, pthread_attr_getstackaddr,
54310         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54311         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54312         (posix2001_functions): New variable.
54313         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54314         otherwise.
54315
54316 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54317
54318         add missing include to parse-duration.c
54319         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54320         * modules/parse-duration (Depends-on): Add xalloc.
54321
54322         fix sed script reading maint.mk
54323         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54324         (syntax-check-rules): Use it.
54325
54326 2008-12-09  Bruno Haible  <bruno@clisp.org>
54327
54328         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54329         MacOS X 10.4/PowerPC.
54330         Reported by Simon Josefsson.
54331
54332 2008-12-08  Jim Meyering  <meyering@redhat.com>
54333
54334         work around mingw's lack of some S_IF definitions
54335         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54336         Reported by Simon Josefsson.
54337
54338 2008-12-08  Bruno Haible  <bruno@clisp.org>
54339
54340         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54341         applied to variables. Needed on MacOS X 10.4/PowerPC.
54342         Reported by Simon Josefsson.
54343
54344 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54345         and Eric Blake  <ebb9@byu.net>
54346
54347         assert: honor --enable-assert
54348         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54349         order to honor --enable-assert, rather than treating it as a
54350         synonym for --disable-assert.
54351
54352 2008-12-08  Jim Meyering  <meyering@redhat.com>
54353
54354         * lib/posixtm.c: Remove now-useless declaration of mktime.
54355
54356         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54357
54358 2008-12-07  Bruno Haible  <bruno@clisp.org>
54359
54360         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54361         test_once): Mark functions as static.
54362         * tests/test-tls.c (test_tls): Likewise.
54363
54364 2008-12-07  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54367         iconv_register_autodetect.
54368
54369 2008-12-07  Jim Meyering  <meyering@redhat.com>
54370
54371         posixtm.c: avoid a warning
54372         * lib/posixtm.c (posixtime): Don't initialize tm0.
54373         It's no longer needed to placate gcc4's -Wuninitialized,
54374         and the attempt to placate would elicit a new warning.
54375
54376         unicodeio.c: mark unused parameters
54377         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54378         (fallback_failure_callback): Likewise.
54379
54380 2008-12-07  Bruno Haible  <bruno@clisp.org>
54381
54382         * gnulib-tool (func_create_testdir): When building the tests
54383         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54384         Reported by Simon Josefsson.
54385
54386 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54387
54388         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54389
54390 2008-12-06  Bruno Haible  <bruno@clisp.org>
54391
54392         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54393         Suggested by Eric Blake.
54394
54395 2008-12-06  Bruno Haible  <bruno@clisp.org>
54396
54397         Fix a c-stack test failure on MacOS X.
54398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54399         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54400         handler for SIGBUS as well.
54401         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54402         install a signal handler for SIGBUS as well.
54403         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54404
54405 2008-12-06  Bruno Haible  <bruno@clisp.org>
54406
54407         Advocacy documentation.
54408         * doc/gnulib-intro.texi (Benefits): New section.
54409         * doc/gnulib.texi: Update.
54410
54411 2008-12-06  Bruno Haible  <bruno@clisp.org>
54412
54413         Document the 'manywarnings' module.
54414         * doc/manywarnings.texi: New file.
54415         * doc/gnulib.texi: Include it.
54416
54417 2008-12-05  Eric Blake  <ebb9@byu.net>
54418
54419         tests: silence some gcc warnings
54420         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54421         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54422         type mismatches.
54423
54424 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54425             Bruno Haible  <bruno@clisp.org>
54426
54427         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54428
54429 2008-11-29  Jim Meyering  <meyering@redhat.com>
54430
54431         unicodeio.c: mark unused parameters
54432         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54433         (fallback_failure_callback): Likewise.
54434
54435         fts: fix a thinko
54436         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54437         (set_stat_type): Return S_IF*-valued "type" directly.
54438         Prompted by James Youngman's spotting a related bug.
54439         Confirmed by further testing through find.
54440
54441         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54442         * lib/fts.c (D_TYPE): Define.
54443         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54444         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54445         (s_ifmt_shift_bits): New function.
54446         (set_stat_type): New function.
54447         (fts_build): When not calling fts_stat, call set_stat_type
54448         to propagate dirent.d_type info to fts_read caller.
54449         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54450         fts_statp->st_mode type information may be valid.
54451
54452 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54453
54454         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54455         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54456         <sds@gnu.org>.
54457
54458 2008-11-20  Bruno Haible  <bruno@clisp.org>
54459
54460         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54461         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54462         INCLUDE_NEXT.
54463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54464         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54465         * modules/math (Makefile.am): Substitute
54466         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54467         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54468
54469 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54470             Bruno Haible  <bruno@clisp.org>
54471
54472         * lib/stdint.in.h: Define all type macros so that their expansion is
54473         a single typedef'ed token. Fixes a compilation failure in Boost which
54474         does "using ::int8_t;".
54475
54476 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54477
54478         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54479         gl_MANYWARN_ALL_GCC.
54480         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54481         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54482         * modules/manywarnings: New file.
54483         * MODULES.html.sh: Mention manywarnings module.
54484
54485 2008-11-18  Bruno Haible  <bruno@clisp.org>
54486
54487         * doc/gnulib-tool.texi (Unit tests): New section.
54488
54489 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54490
54491         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54492         paths like 'lib/po/foo.po'.
54493
54494 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54495
54496         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54497         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54498
54499 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54500
54501         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54502         parameter works.
54503
54504 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54505
54506         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54507
54508 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54509
54510         * modules/parse-duration-tests: New file.
54511         * tests/test-parse-duration.sh: New file.
54512         * tests/test-parse-duration.c: New file.
54513
54514         New module 'parse-duration'.
54515         * lib/parse-duration.h: New file.
54516         * lib/parse-duration.c: New file.
54517         * modules/parse-duration: New file.
54518
54519 2008-11-17  Bruno Haible  <bruno@clisp.org>
54520
54521         * tests/test-select-out.sh: Comment out the first pipe test.
54522         Reported by Simon Josefsson.
54523
54524 2008-11-17  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54528         gl_HOSTENT.
54529
54530 2008-11-17  Bruno Haible  <bruno@clisp.org>
54531
54532         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54533         -lnetwork and -lnet. Needed for Haiku and BeOS.
54534
54535 2008-11-16  Bruno Haible  <bruno@clisp.org>
54536
54537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54538
54539 2008-11-16  Bruno Haible  <bruno@clisp.org>
54540
54541         Avoid test failure on Haiku.
54542         * tests/test-fsync.c: Include <errno.h>.
54543         (main): Don't require that fsync (0) fails.
54544
54545 2008-11-15  Bruno Haible  <bruno@clisp.org>
54546
54547         New module 'hostent'.
54548         * modules/hostent: New file.
54549         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54550
54551 2008-11-15  Bruno Haible  <bruno@clisp.org>
54552
54553         New module 'servent'.
54554         * modules/servent: New file.
54555         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54556
54557 2008-11-15  Bruno Haible  <bruno@clisp.org>
54558
54559         Avoid generating same test program with two different rules.
54560         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54561         test-frexp to test-frexp-nolibm.
54562         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54563         test-frexpl to test-frexpl-nolibm.
54564
54565 2008-11-15  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54568         $(FREXPL_LIBM).
54569
54570 2008-11-15  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/netdb.in.h: Activate the definitions also when the system's
54573         <netdb.h> has 'struct addrinfo'.
54574         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54575         EAI_OVERFLOW or AI_NUMERICSERV.
54576         * doc/posix-headers/netdb.texi: Document the problem.
54577
54578 2008-11-15  Bruno Haible  <bruno@clisp.org>
54579
54580         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54581
54582         Make the 'sched' module work on platforms where <sched.h> exists but
54583         is incomplete (such as Haiku).
54584         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54585         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54586         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54587         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54588         HAVE_STRUCT_SCHED_PARAM.
54589         * modules/sched (Depends-on): Add include_next.
54590         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54591         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54592         * doc/posix-headers/sched.texi: Document the issue.
54593
54594 2008-11-13  Jim Meyering  <meyering@redhat.com>
54595
54596         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54597         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54598         test would fail due to the difference in the Report bugs to ...
54599         line.  The expected address is empty, "<>", while the actual
54600         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54601
54602 2008-11-12  Bruno Haible  <bruno@clisp.org>
54603
54604         lstat: don't compile lstat.c on systems lacking lstat
54605         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54606         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54607         Reported by Daniel P. Berrange via Jim Meyering.
54608
54609 2008-11-12  Jim Meyering  <meyering@redhat.com>
54610
54611         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54612
54613 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54614
54615         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54616         instead.
54617
54618 2008-11-12  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/unicodeio.c: Include unistr.h.
54621         (utf8_wctomb): Remove function.
54622         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54623
54624 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54625
54626         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54627         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54628         <bruno@clisp.org>.
54629         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54630
54631 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54632
54633         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54634         * doc/gnulib.texi: Add section for warnings.
54635
54636 2008-11-11  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/sockets.h: Add a comment.
54639
54640 2008-11-11  Karl Berry  <karl@gnu.org>
54641
54642         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54643
54644 2008-11-11  Eric Blake  <ebb9@byu.net>
54645
54646         fdl.texi: avoid git symlinks
54647         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54648
54649 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54650
54651         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54652
54653 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54654
54655         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54656         (gl_WARN_ADD): Substitute $2 if literal.
54657
54658 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54659
54660         * m4/warning.m4: Remove.
54661
54662 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54663
54664         * m4/warnings.m4: Almost complete rewrite. :-)
54665
54666 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54667
54668         * modules/warnings: New module.
54669         * m4/warnings.m4: New file.
54670         * MODULES.html.sh: Mention warnings module.
54671         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54672         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54673
54674 2008-11-10  Eric Blake  <ebb9@byu.net>
54675
54676         fdl.texi: make a symlink to the latest version
54677         * doc/standards.texi: Revert today's earlier change.
54678         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54679         * doc/fdl.texi: ...and replace this with a symlink to the newer
54680         fdl-1.3.texi.
54681
54682 2008-11-10  Bruno Haible  <bruno@clisp.org>
54683
54684         * tests/test-select-fd.c (main): Accept the result file name as fourth
54685         argument.
54686         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54687         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54688
54689 2008-11-10  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54692         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54693         as autoconf-substituted macros.
54694         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54696         gl_NETDB_H_DEFAULTS. Set these variables.
54697         * modules/netdb (Makefile.am): Substitute these variables.
54698
54699 2008-11-10  Eric Blake  <ebb9@byu.net>
54700
54701         standards.texi: include correct file for FDL 1.3
54702         * doc/standards.texi (GNU Free Documentation License): Change
54703         include file to pull in FDL 1.3, not 1.2.
54704
54705         fdl.texi: revert accidental change to license
54706         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54707
54708 2008-11-10  Bruno Haible  <bruno@clisp.org>
54709
54710         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54711         cross-compiling guesses also when the native compile gives no result.
54712
54713 2008-11-10  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/spawni.c (__spawni): Force variable into the stack.
54716
54717 2008-11-10  Bruno Haible  <bruno@clisp.org>
54718
54719         Add support for Haiku.
54720         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54721         glibc and BeOS, but also on Haiku.
54722         * lib/fpurge.c (fpurge): Likewise.
54723         * lib/freadable.c (freadable): Likewise.
54724         * lib/freadahead.c (freadahead): Likewise.
54725         * lib/freading.c (freading): Likewise.
54726         * lib/freadptr.c (freadptr): Likewise.
54727         * lib/freadseek.c (freadptrinc): Likewise.
54728         * lib/fseeko.c (rpl_fseeko): Likewise.
54729         * lib/fseterr.c (fseterr): Likewise.
54730         * lib/fwritable.c (fwritable): Likewise.
54731         * lib/fwriting.c (fwriting): Likewise.
54732         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54733
54734 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54735
54736         * lib/config.charset: Treat Haiku like BeOS.
54737
54738 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54739
54740         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54741         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54742
54743 2008-11-08  Bruno Haible  <bruno@clisp.org>
54744
54745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54746         AC_CACHE_CHECK.
54747
54748 2008-11-08  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54751
54752 2008-11-08  Bruno Haible  <bruno@clisp.org>
54753
54754         * tests/test-select-fd.c: New file.
54755         * tests/test-select-in.sh: New file.
54756         * tests/test-select-out.sh: New file.
54757         * tests/test-select-stdin.c: New file.
54758         * modules/select-tests (Files): Add the new files.
54759         (Depends-on): Add gettimeofday.
54760         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54761         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54762         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54763
54764 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54765             Bruno Haible  <bruno@clisp.org>
54766
54767         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54768
54769 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54770
54771         * build-aux/pmccabe2html: Added support for C++ source files.
54772
54773 2008-11-05  Ben Pfaff  <blp@gnu.org>
54774
54775         Fix lib/close.c build on Windows.
54776         * modules/close (Files): Add lib/w32sock.h.
54777
54778 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54779
54780         Accept Bison's NEWS format.
54781         * build-aux/announce-gen (print_news_deltas): Tweak
54782         $re_prefix.
54783
54784 2008-11-04  Bruno Haible  <bruno@clisp.org>
54785
54786         * modules/random_r (Maintainer): Add glibc.
54787
54788 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54789
54790         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54791         by karl@freefriends.org (Karl Berry).
54792         * doc/alloca.texi: Likewise.
54793         * doc/c-ctype.texi: Likewise.
54794         * doc/c-strcase.texi: Likewise.
54795         * doc/c-strcaseeq.texi: Likewise.
54796         * doc/c-strcasestr.texi: Likewise.
54797         * doc/c-strstr.texi: Likewise.
54798         * doc/c-strtod.texi: Likewise.
54799         * doc/c-strtold.texi: Likewise.
54800         * doc/ctime.texi: Likewise.
54801         * doc/error.texi: Likewise.
54802         * doc/fdl.texi: Likewise.
54803         * doc/gcd.texi: Likewise.
54804         * doc/getdate.texi: Likewise.
54805         * doc/gnulib-intro.texi: Likewise.
54806         * doc/gnulib-tool.texi: Likewise.
54807         * doc/gnulib.texi: Likewise.
54808         * doc/inet_ntoa.texi: Likewise.
54809         * doc/maintain.texi: Likewise.
54810         * doc/make-stds.texi: Likewise.
54811         * doc/quote.texi: Likewise.
54812         * doc/regexprops-generic.texi: Likewise.
54813         * doc/standards.texi: Likewise.
54814         * doc/verify.texi: Likewise.
54815         * doc/visibility.texi: Likewise.
54816         * doc/gnulib.texi (GNU Free Documentation License): Include
54817         fdl-1.3.texi instead of fdl.texi.
54818
54819 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54820
54821         * doc/fdl-1.3.texi: New file, from
54822         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54823         * modules/fdl-1.3: Add.
54824         * MODULES.html.sh: Add fdl-1.3.
54825
54826 2008-11-03  Bruno Haible  <bruno@clisp.org>
54827
54828         Make determination of absolute name of header file work with AIX xlc.
54829         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54830         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54831         preprocessing.
54832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54833         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54834
54835 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54836
54837         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54838         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54839         <ludo@gnu.org>.
54840
54841 2008-11-02  Bruno Haible  <bruno@clisp.org>
54842
54843         Mark 'strpbrk' obsolete.
54844         * modules/strpbrk (Status, Notice): New sections.
54845         * modules/strtok_r (Depends-on): Add strpbrk.
54846
54847 2008-11-02  Bruno Haible  <bruno@clisp.org>
54848
54849         Mark 'strdup' obsolete.
54850         * modules/strdup (Status, Notice): New sections.
54851         * modules/findprog (Depends-on): Add strdup.
54852         * modules/getaddrinfo (Depends-on): Likewise.
54853         * modules/localename (Depends-on): Likewise.
54854         * modules/relocatable-lib (Depends-on): Likewise.
54855         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54856         * modules/relocatable-prog (Depends-on): Likewise.
54857         * modules/trim (Depends-on): Likewise.
54858         * modules/unictype/gen-ctype (Depends-on): Likewise.
54859         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54860
54861 2008-11-02  Bruno Haible  <bruno@clisp.org>
54862
54863         Mark 'strcspn' obsolete.
54864         * modules/strcspn (Status, Notice): New sections.
54865
54866 2008-11-02  Bruno Haible  <bruno@clisp.org>
54867
54868         Mark 'rmdir' obsolete.
54869         * modules/rmdir (Status, Notice): New sections.
54870         * modules/clean-temp (Depends-on): Add rmdir.
54871         * modules/openat (Depends-on): Likewise.
54872
54873 2008-11-02  Bruno Haible  <bruno@clisp.org>
54874
54875         Mark 'raise' obsolete.
54876         * modules/raise (Status, Notice): New sections.
54877         (Include): Specify <signal.h>.
54878         * modules/stdio (Depends-on): Add raise.
54879         * modules/write (Depends-on): Likewise.
54880
54881 2008-11-02  Bruno Haible  <bruno@clisp.org>
54882
54883         Mark 'memset' obsolete.
54884         * modules/memset (Status, Notice): New sections.
54885
54886 2008-11-02  Bruno Haible  <bruno@clisp.org>
54887
54888         Mark 'memmove' obsolete.
54889         * modules/memmove (Status, Notice): New sections.
54890         * modules/argp (Depends-on): Add memmove.
54891         * modules/argz (Depends-on): Likewise.
54892         * modules/canonicalize (Depends-on): Likewise.
54893         * modules/canonicalize-lgpl (Depends-on): Likewise.
54894         * modules/fts (Depends-on): Likewise.
54895         * modules/getcwd (Depends-on): Likewise.
54896         * modules/human (Depends-on): Likewise.
54897         * modules/regex (Depends-on): Likewise.
54898         * modules/striconveh (Depends-on): Likewise.
54899         * modules/trim (Depends-on): Likewise.
54900         * modules/unistr/u8-move (Depends-on): Likewise.
54901         * modules/unistr/u16-move (Depends-on): Likewise.
54902         * modules/unistr/u32-move (Depends-on): Likewise.
54903
54904 2008-11-02  Bruno Haible  <bruno@clisp.org>
54905
54906         Mark 'memcpy' obsolete.
54907         * modules/memcpy (Status, Notice): New sections.
54908
54909 2008-11-02  Bruno Haible  <bruno@clisp.org>
54910
54911         Mark 'memcmp' obsolete.
54912         * modules/memcmp (Status, Notice): New sections.
54913         * modules/argmatch (Depends-on): Add memchr.
54914         * modules/backupfile (Depends-on): Likewise.
54915         * modules/c-strcasestr (Depends-on): Likewise.
54916         * modules/crypto/des (Depends-on): Likewise.
54917         * modules/csharpcomp (Depends-on): Likewise.
54918         * modules/fnmatch (Depends-on): Likewise.
54919         * modules/git-merge-changelog (Depends-on): Likewise.
54920         * modules/isnand (Depends-on): Likewise.
54921         * modules/isnand-nolibm (Depends-on): Likewise.
54922         * modules/isnanf (Depends-on): Likewise.
54923         * modules/isnanf-nolibm (Depends-on): Likewise.
54924         * modules/isnanl (Depends-on): Likewise.
54925         * modules/isnanl-nolibm (Depends-on): Likewise.
54926         * modules/mbchar (Depends-on): Likewise.
54927         * modules/memcoll (Depends-on): Likewise.
54928         * modules/quotearg (Depends-on): Likewise.
54929         * modules/regex (Depends-on): Likewise.
54930         * modules/relocatable-prog (Depends-on): Likewise.
54931         * modules/same (Depends-on): Likewise.
54932         * modules/signbit (Depends-on): Likewise.
54933         * modules/strcasestr-simple (Depends-on): Likewise.
54934         * modules/unictype/gen-ctype (Depends-on): Likewise.
54935         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54936         * modules/uniname/uniname (Depends-on): Likewise.
54937         * modules/unistr/u8-cmp (Depends-on): Likewise.
54938
54939 2008-11-02  Bruno Haible  <bruno@clisp.org>
54940
54941         Mark 'memchr' obsolete.
54942         * modules/memchr (Status, Notice): New sections.
54943         * modules/argp (Depends-on): Add memchr.
54944         * modules/base64 (Depends-on): Likewise.
54945         * modules/c-strcasestr (Depends-on): Likewise.
54946         * modules/chdir-long (Depends-on): Likewise.
54947         * modules/fnmatch (Depends-on): Likewise.
54948         * modules/getsubopt (Depends-on): Likewise.
54949         * modules/git-merge-changelog (Depends-on): Likewise.
54950         * modules/glob (Depends-on): Likewise.
54951         * modules/strcasestr-simple (Depends-on): Likewise.
54952         * modules/strnlen (Depends-on): Likewise.
54953
54954 2008-11-02  Bruno Haible  <bruno@clisp.org>
54955
54956         Mark 'atexit' obsolete.
54957         * modules/atexit (Status, Notice): New sections.
54958         * modules/chdir-long (Depends-on): Add atexit.
54959         * modules/wait-process (Depends-on): Likewise.
54960
54961 2008-11-02  Bruno Haible  <bruno@clisp.org>
54962
54963         * gnulib-tool: New option --with-obsolete.
54964         (func_usage): Document it.
54965         (func_modules_transitive_closure): Drop obsolete dependencies if
54966         incobsolete is not true.
54967         (func_import): Read and save the incobsolete variable to the cache.
54968
54969 2008-11-02  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54972         * gnulib-tool: New option --extract-status.
54973         (func_usage): Document it.
54974         (sed_extract_prog): Recognize it.
54975         (func_get_status): New function.
54976
54977 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54978
54979         * modules/sockets (License): Change from LGPL to LGPLv2+.
54980
54981 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54982
54983         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54984
54985 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54986
54987         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54988         Mention times and sys_times.
54989         * modules/sys_times, modules/sys_times-tests: New modules.
54990         * modules/times, modules/times-tests: Likewise
54991         * m4/sys_times_h.m4: New file.
54992         * lib/sys_times.in.h: Likewise
54993         * lib/times.c: Likewise.
54994         * tests/test-sys_times.c: Likewise.
54995         * tests/test-times.c: Likewise.
54996         * doc/posix-headers/sys_times.texi: Update.
54997         * doc/posix-functions/times.texi: Update.
54998
54999 2008-10-28  Jim Meyering  <meyering@redhat.com>
55000
55001         * modules/tempname (Depends-on): Add lstat.
55002
55003         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55004
55005 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55006
55007         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55008         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55009         using idiom used elsewhere in gnulib.
55010
55011 2008-10-27  Jim Meyering  <meyering@redhat.com>
55012
55013         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55014
55015 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55016
55017         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55018         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55019         programs.
55020         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55021
55022 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55023
55024         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55025
55026 2008-10-27  Bruno Haible  <bruno@clisp.org>
55027
55028         * tests/test-lstat.c: Include <stdio.h>.
55029
55030 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55031
55032         * modules/lstat-tests: New module.
55033         * tests/test-lstat.c: New file.
55034
55035 2008-10-26  Jim Meyering  <meyering@redhat.com>
55036
55037         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55038
55039 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55040             Bruno Haible  <bruno@clisp.org>
55041
55042         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55043         * modules/configmake (Include): Add a note that the include must come
55044         after all system headers.
55045         * lib/javaversion.c: Include configmake.h after all other includes.
55046
55047 2008-10-26  Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55050         HAVE_STRUCT_RANDOM_DATA to 1.
55051         (gl_STDLIB_H): Simplify.
55052
55053 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55054
55055         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55056         substitute HAVE_STRUCT_RANDOM_DATA.
55057         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55058         random_data.
55059         * modules/stdlib (Makefile.am): Substitute
55060         HAVE_STRUCT_RANDOM_DATA.
55061
55062 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55063
55064         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55065         * doc/gnulib-intro.texi (Copyright): Likewise.
55066
55067 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55068
55069         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55070         findings.
55071
55072 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55073             Bruno Haible  <bruno@clisp.org>
55074
55075         * lib/unistd.in.h: Include <winsock2.h>.
55076         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55077         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55078         Provide dummy declarations.
55079         (gethostname): Override.
55080         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55082         gl_PREREQ_SYS_H_WINSOCK2.
55083         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55084         * doc/posix-functions/gethostname.texi: More details.
55085
55086 2008-10-25  Bruno Haible  <bruno@clisp.org>
55087
55088         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55089         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55090         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55091
55092         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55093         here ...
55094         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55096         gl_UNISTD_H_DEFAULTS.
55097
55098 2008-10-25  Eric Blake  <ebb9@byu.net>
55099
55100         signbit: avoid spurious compiler failure
55101         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55102         declarations inside function.
55103
55104 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55105             Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55108         * modules/random_r (Depends-on): Add stdint.
55109
55110 2008-10-24  Bruno Haible  <bruno@clisp.org>
55111
55112         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55113         Eggert.
55114         * modules/strerror (License): Likewise.
55115
55116 2008-10-24  Jim Meyering  <meyering@redhat.com>
55117
55118         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55119         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55120
55121 2008-10-24  Eric Blake  <ebb9@byu.net>
55122
55123         getgroups: fix compilation when getgroups is available
55124         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55125         but with <config.h> override of getgroups disabled.
55126
55127 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55128
55129         * doc/gnulib.texi (Header files): Add note about C++ problems.
55130         Explained by Bruno Haible <bruno@clisp.org>.
55131
55132 2008-10-23  Bruno Haible  <bruno@clisp.org>
55133
55134         Define a dummy SA_NODEFER macro on Interix.
55135         * lib/signal.in.h (SA_NODEFER): Define fallback.
55136         Reported by Aleksey Cheusov <cheusov@tut.by> via
55137         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55138
55139 2008-10-23  Bruno Haible  <bruno@clisp.org>
55140
55141         * modules/freadahead (License): Change to LGPLv2+.
55142         Suggested by Simon Josefsson.
55143
55144 2008-10-23  Jim Meyering  <meyering@redhat.com>
55145
55146         random_r: new module
55147         * modules/random_r: New file.
55148         * m4/random_r.m4: New file.
55149         * lib/random_r.c: New file, from glibc.
55150         * modules/random_r-tests: New file.
55151         * tests/test-random_r.c: New file.
55152         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55153          Declare.
55154         (RAND_MAX): Define.
55155         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55156         * modules/stdlib: Substitute them, too.
55157         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55158         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55159         * doc/glibc-functions/random_r.texi: Likewise.
55160         * doc/glibc-functions/setstate_r.texi: Likewise.
55161         * doc/glibc-functions/srandom_r.texi: Likewise.
55162         * config/srclist.txt: Mention it.
55163
55164 2008-10-23  David Lutterkort  <lutter@redhat.com>
55165
55166         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55167         link requirement
55168
55169 2008-10-23  Jim Meyering  <meyering@redhat.com>
55170
55171         selinux-h: mark parameters of stub functions as intentionally unused
55172         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55173         * lib/se-context.in.h: Likewise.
55174
55175 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55176
55177         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55178
55179 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55180
55181         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55182
55183 2008-10-22  Eric Blake  <ebb9@byu.net>
55184
55185         glthread/thread: avoid compiler warning
55186         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55187         Add unreachable abort to silence compiler.
55188
55189 2008-10-22  Eric Blake  <ebb9@byu.net>
55190
55191         netdb: also supply struct addrinfo for cygwin 1.5.x
55192         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55193         older cygwin.
55194         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55195         cygwin.
55196         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55197
55198 2008-10-22  Bruno Haible  <bruno@clisp.org>
55199
55200         * users.txt: Update entry about pspp.
55201
55202 2008-10-21  Bruno Haible  <bruno@clisp.org>
55203
55204         Simplification.
55205         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55206         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55207
55208         Simplification.
55209         * lib/ioctl.c (ioctl): Don't undefine.
55210         * lib/socket.c (socket): Don't undefine.
55211
55212         Remove unused module indicator macros.
55213         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55214         GNULIB_$1 as a C macro.
55215
55216         * doc/posix-functions/close.texi: Undo last change.
55217         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55218         Windows platforms.
55219
55220 2008-10-21  Bruno Haible  <bruno@clisp.org>
55221
55222         Add gethostname() declaration to <unistd.h>.
55223         * lib/unistd.in.h (gethostname): New declaration.
55224         * lib/gethostname.c: Include <unistd.h>.
55225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55226         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55228         and HAVE_GETHOSTNAME.
55229         * modules/gethostname (Depends-on): Add unistd.
55230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55231         (Include): Specify <unistd.h>.
55232         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55233         HAVE_GETHOSTNAME.
55234         * tests/test-gethostname.c: Include <unistd.h> first.
55235
55236 2008-10-21  Bruno Haible  <bruno@clisp.org>
55237
55238         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55239         * modules/select-tests (Depends-on): Likewise.
55240         Reported by Simon Josefsson.
55241
55242 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55243
55244         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55245         * lib/accept.c: New file, based on winsock.c.
55246         * lib/bind.c: New file, based on winsock.c.
55247         * lib/connect.c: New file, based on winsock.c.
55248         * lib/getpeername.c: New file, based on winsock.c.
55249         * lib/getsockname.c: New file, based on winsock.c.
55250         * lib/getsockopt.c: New file, based on winsock.c.
55251         * lib/ioctl.c: New file, based on winsock.c.
55252         * lib/listen.c: New file, based on winsock.c.
55253         * lib/recv.c: New file, based on winsock.c.
55254         * lib/recvfrom.c: New file, based on winsock.c.
55255         * lib/send.c: New file, based on winsock.c.
55256         * lib/sendto.c: New file, based on winsock.c.
55257         * lib/setsockopt.c: New file, based on winsock.c.
55258         * lib/shutdown.c: New file, based on winsock.c.
55259         * lib/socket.c: New file, based on winsock.c.
55260         * lib/w32sock.h: New file, based on winsock.c.
55261         * lib/winsock.c: Remove file.
55262         * modules/accept: Likewise.
55263         * modules/bind: Likewise.
55264         * modules/connect: Likewise.
55265         * modules/getpeername: Likewise.
55266         * modules/getsockname: Likewise.
55267         * modules/getsockopt: Likewise.
55268         * modules/ioctl: Likewise.
55269         * modules/listen: Likewise.
55270         * modules/recv: Likewise.
55271         * modules/recvfrom: Likewise.
55272         * modules/send: Likewise.
55273         * modules/sendto: Likewise.
55274         * modules/setsockopt: Likewise.
55275         * modules/shutdown: Likewise.
55276         * modules/socket: Use socket.c instead of winsock.c.
55277         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55278         * doc/posix-functions/accept.texi: Doc fix.
55279         * doc/posix-functions/bind.texi: Doc fix.
55280         * doc/posix-functions/close.texi: Doc fix.
55281         * doc/posix-functions/connect.texi: Doc fix.
55282         * doc/posix-functions/getpeername.texi: Doc fix.
55283         * doc/posix-functions/getsockname.texi: Doc fix.
55284         * doc/posix-functions/getsockopt.texi: Doc fix.
55285         * doc/posix-functions/ioctl.texi: Doc fix.
55286         * doc/posix-functions/listen.texi: Doc fix.
55287         * doc/posix-functions/recv.texi: Doc fix.
55288         * doc/posix-functions/recvfrom.texi: Doc fix.
55289         * doc/posix-functions/send.texi: Doc fix.
55290         * doc/posix-functions/sendto.texi: Doc fix.
55291         * doc/posix-functions/setsockopt.texi: Doc fix.
55292         * doc/posix-functions/shutdown.texi: Doc fix.
55293         * doc/posix-functions/socket.texi: Doc fix.
55294
55295 2008-10-20  Bruno Haible  <bruno@clisp.org>
55296
55297         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55298         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55299         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55300         as an alias for SIGABRT.
55301         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55302         (sigaction): Map it to SIGABRT.
55303         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55304
55305 2008-10-20  Bruno Haible  <bruno@clisp.org>
55306
55307         * lib/fts.c: Don't include lstat.h.
55308         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55309
55310         Move the lstat() declaration to <sys/stat.h>.
55311         * lib/lstat.h: Remove file.
55312         * lib/sys_stat.in.h: Add special invocation convention.
55313         (lstat): New declaration.
55314         * lib/lstat.c (orig_lstat): New function.
55315         (rpl_lstat): Use orig_lstat instead of lstat.
55316         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55317         AC_C_INLINE. Set REPLACE_LSTAT.
55318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55319         and REPLACE_LSTAT.
55320         * modules/lstat (Files): Remove lib/lstat.h.
55321         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55322         (Include): Specify <sys/stat.h> instead of lstat.h.
55323         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55324         REPLACE_LSTAT.
55325         * NEWS: Mention the change.
55326
55327 2008-10-20  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/posix_spawn-tests: New file.
55330         * tests/test-posix_spawn3.c: New file.
55331
55332 2008-10-20  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55335         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55336         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55337         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55338         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55339
55340 2008-10-20  Bruno Haible  <bruno@clisp.org>
55341
55342         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55343         of posix_spawn on AIX 5.3.
55344
55345 2008-10-20  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55348
55349 2008-10-20  Bruno Haible  <bruno@clisp.org>
55350
55351         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55352         of AC_LANG_PROGRAM.
55353
55354 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55355
55356         * lib/netdb.in.h: Don't define GNU specific constants until they
55357         are supported or needed.  Reported by Bruno Haible
55358         <bruno@clisp.org>.
55359
55360 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55361
55362         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55363
55364 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55365
55366         * lib/getaddrinfo.h: Remove file.
55367         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55368         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55369         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55370         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55371         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55372         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55373         * tests/test-getaddrinfo.c: Likewise.
55374         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55375         * NEWS: Mention change.
55376
55377 2008-10-19  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55380
55381 2008-10-19  Bruno Haible  <bruno@clisp.org>
55382
55383         * lib/wait-process.c: Include simply <sys/wait.h>.
55384         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55385         WIFSTOPPED): Remove fallback definitions.
55386         * modules/wait-process (Depends-on): Add sys_wait.
55387
55388         New module 'sys_wait'.
55389         * modules/sys_wait: New file.
55390         * lib/sys_wait.in.h: New file, partially copied from
55391         lib/wait-process.c.
55392         * m4/sys_wait_h.m4: New file.
55393         * doc/posix-headers/sys_wait.texi: Mention the new module.
55394
55395 2008-10-19  Bruno Haible  <bruno@clisp.org>
55396
55397         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55398
55399 2008-10-19  Bruno Haible  <bruno@clisp.org>
55400
55401         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55402         * lib/wait-process.c (WAIT_T): Remove type.
55403         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55404         (wait_subprocess): Update.
55405
55406 2008-10-19  Bruno Haible  <bruno@clisp.org>
55407
55408         New module 'atoll'.
55409         * modules/atoll: New file.
55410         * lib/stdlib.in.h (atoll): New declaration.
55411         * lib/atoll.c: New file, from glibc with modifications.
55412         * m4/atoll.m4: New file.
55413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55414         HAVE_ATOLL.
55415         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55416         * doc/posix-functions/atoll.texi: Mention the new module.
55417
55418 2008-10-19  Bruno Haible  <bruno@clisp.org>
55419
55420         Add strtoull() declaration to <stdlib.h>.
55421         * lib/stdlib.in.h (strtoull): New declaration.
55422         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55423         Set HAVE_STRTOULL.
55424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55425         HAVE_STRTOULL.
55426         * modules/strtoull (Depends-on): Add stdlib.
55427         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55428         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55429         HAVE_STRTOULL.
55430
55431 2008-10-19  Bruno Haible  <bruno@clisp.org>
55432
55433         Add strtoll() declaration to <stdlib.h>.
55434         * lib/stdlib.in.h (strtoll): New declaration.
55435         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55436         Set HAVE_STRTOLL.
55437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55438         HAVE_STRTOLL.
55439         * modules/strtoll (Depends-on): Add stdlib.
55440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55441         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55442
55443 2008-10-19  Bruno Haible  <bruno@clisp.org>
55444
55445         * modules/bcopy (Depends-on): Add strings.
55446         (Include): Specify <strings.h>.
55447
55448 2008-10-19  Bruno Haible  <bruno@clisp.org>
55449
55450         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55451
55452 2008-10-19  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55455         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55456         mingw.
55457
55458 2008-10-19  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/atanl.c: Don't include isnanl.h.
55461         * lib/cosl.c: Likewise.
55462         * lib/ldexpl.c: Likewise.
55463         * lib/logl.c: Likewise.
55464         * lib/sinl.c: Likewise.
55465         * lib/sqrtl.c: Likewise.
55466         * lib/tanl.c: Likewise.
55467
55468         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55469         * lib/isnanf.h: Remove file.
55470         * lib/isnand.h: Remove file.
55471         * lib/isnanl.h: Remove file.
55472         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55473         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55474         macros.
55475         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55476         HAVE_ISNANF, don't define it as a C macro.
55477         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55478         HAVE_ISNAND, don't define it as a C macro.
55479         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55480         HAVE_ISNANL, don't define it as a C macro.
55481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55482         HAVE_ISNAN[FDL].
55483         * modules/isnanf (Files): Remove lib/isnanf.h.
55484         (Depends-on): Add math.
55485         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55486         (Include): Specify <math.h> instead of isnanf.h.
55487         * modules/isnand (Files): Remove lib/isnand.h.
55488         (Depends-on): Add math.
55489         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55490         (Include): Specify <math.h> instead of isnand.h.
55491         * modules/isnanl (Files): Remove lib/isnanl.h.
55492         (Depends-on): Add math.
55493         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55494         (Include): Specify <math.h> instead of isnanl.h.
55495         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55496         HAVE_ISNAN[FDL].
55497         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55498         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55499         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55500         * NEWS: Mention the change.
55501
55502 2008-10-18  Bruno Haible  <bruno@clisp.org>
55503
55504         Add getusershell(), setusershell(), endusershell() declarations to
55505         <unistd.h>.
55506         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55507         declarations.
55508         * lib/getusershell.c: Include unistd.h.
55509         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55510         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55511         HAVE_GETUSERSHELL.
55512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55513         and HAVE_GETUSERSHELL.
55514         * modules/getusershell (Depends-on): Add unistd, extensions.
55515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55516         (Include): Specify <unistd.h>.
55517         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55518         HAVE_GETUSERSHELL.
55519
55520 2008-10-18  Bruno Haible  <bruno@clisp.org>
55521
55522         Add a getloadavg() declaration to <stdlib.h>.
55523         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55524         getloadavg declaration.
55525         (getloadavg): New declaration.
55526         * lib/getloadavg.c: Include <stdlib.h> first.
55527         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55528         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55529         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55531         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55532         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55533         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55534         (Include): Specify <stdlib.h>.
55535         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55536         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55537
55538 2008-10-18  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/dirchownmod.c: Don't include lchmod.h.
55541
55542         Move the lchmod() declaration to <sys/stat.h>.
55543         * lib/lchmod.h: Remove file.
55544         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55545         (lchmod): New declaration, moved here from lib/lchown.h.
55546         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55547         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55548         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55549         and HAVE_LCHMOD.
55550         * modules/lchmod (Files): Remove lib/lchmod.h.
55551         (Depends-on): Add sys_stat, extensions.
55552         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55553         (Include): Specify <sys/stat.h> instead of lchmod.h.
55554         * modules/sys_stat (Depends-on): Add link-warning.
55555         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55556         definition of GL_LINK_WARNING.
55557         * NEWS: Mention the change.
55558
55559 2008-10-18  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/fchdir.c: Don't include dirfd.h.
55562         * lib/fts.c: Likewise.
55563         * lib/getcwd.c: Likewise.
55564         * lib/glob.c: Likewise.
55565
55566         Move the dirfd() declaration to <dirent.h>.
55567         * lib/dirfd.h: Remove file.
55568         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55569         (dirfd): New declaration.
55570         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55571         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55572         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55573         HAVE_DECL_DIRFD.
55574         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55575         HAVE_DECL_DIRFD.
55576         * modules/dirfd (Files): Remove lib/dirfd.h.
55577         (Depends-on): Add dirent, extensions.
55578         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55579         (Include): Specify <dirent.h> instead of dirfd.h.
55580         * modules/dirent (Depends-on): Add link-warning.
55581         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55582         definition of GL_LINK_WARNING.
55583         * NEWS: Mention the change.
55584
55585 2008-10-18  Bruno Haible  <bruno@clisp.org>
55586
55587         Move the euidaccess() declaration to <unistd.h>.
55588         * lib/euidaccess.h: Remove file.
55589         * lib/unistd.in.h (euidaccess): New declaration.
55590         * lib/euidaccess.c: Don't include euidaccess.h.
55591         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55592         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55594         and HAVE_EUIDACCESS.
55595         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55596         (Depends-on): Add unistd.
55597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55598         (Include): Specify <unistd.h> instead of euidaccess.h.
55599         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55600         HAVE_EUIDACCESS.
55601         * NEWS: Mention the change.
55602
55603 2008-10-18  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55606
55607         Move the getdomainname() declaration to <unistd.h>.
55608         * lib/getdomainname.h: Remove file.
55609         * lib/unistd.in.h (getdomainname): New declaration.
55610         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55611         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55612         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55613         HAVE_GETDOMAINNAME.
55614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55615         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55616         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55617         (Depends-on): Add unistd, extensions.
55618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55619         (Includes): Specify <unistd.h> instead of getdomainname.h.
55620         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55621         HAVE_GETDOMAINNAME.
55622         * NEWS: Mention the change.
55623
55624 2008-10-18  Bruno Haible  <bruno@clisp.org>
55625
55626         * modules/dirent: New file.
55627         * m4/dirent_h.m4: New file.
55628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55629         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55630         * modules/fchdir (Files): Remove lib/dirent.in.h.
55631         (Depends-on): Add dirent.
55632         (Makefile.am): Move rules to modules/dirent.
55633         * doc/posix-headers/dirent.texi: Mention the new module.
55634
55635 2008-10-18  Bruno Haible  <bruno@clisp.org>
55636
55637         Avoid -Wunused-parameter warnings in public gnulib header files.
55638         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55639         macro.
55640         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55641
55642 2008-10-18  Bruno Haible  <bruno@clisp.org>
55643
55644         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55645         * doc/glibc-functions/error.texi: Mention the module 'error'.
55646         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55647         * doc/glibc-functions/getdomainname.texi: Mention the module
55648         'getdomainname'.
55649         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55650         * doc/glibc-functions/getpagesize.texi: Mention the module
55651         'getpagesize'.
55652         * doc/glibc-functions/getusershell.texi: Mention the module
55653         'getusershell'.
55654         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55655         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55656         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55657         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55658         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55659         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55660         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55661         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55662         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55663         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55664         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55665         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55666         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55667         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55668
55669 2008-10-17  Bruno Haible  <bruno@clisp.org>
55670
55671         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55672         HP-UX and IRIX, use -0.0L.
55673         * tests/test-ceill.c (minus_zero): Likewise.
55674         * tests/test-floorl.c (minus_zero): Likewise.
55675         * tests/test-frexpl.c (minus_zero): Likewise.
55676         * tests/test-isnan.c (minus_zerol): Likewise.
55677         * tests/test-isnanl.h (minus_zero): Likewise.
55678         * tests/test-ldexpl.c (minus_zero): Likewise.
55679         * tests/test-roundl.c (minus_zero): Likewise.
55680         * tests/test-signbit.c (minus_zerol): Likewise.
55681         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55682         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55683         * tests/test-truncl.c (minus_zero): Likewise.
55684         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55685         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55686         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55687         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55688
55689 2008-10-17  Bruno Haible  <bruno@clisp.org>
55690
55691         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55692         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55693         that it gets activated only for gcc >= 3.0.
55694         * lib/dirent.in.h: Likewise.
55695         * lib/errno.in.h: Likewise.
55696         * lib/fcntl.in.h: Likewise.
55697         * lib/float.in.h: Likewise.
55698         * lib/iconv.in.h: Likewise.
55699         * lib/inttypes.in.h: Likewise.
55700         * lib/locale.in.h: Likewise.
55701         * lib/math.in.h: Likewise.
55702         * lib/netdb.in.h: Likewise.
55703         * lib/netinet_in.in.h: Likewise.
55704         * lib/search.in.h: Likewise.
55705         * lib/signal.in.h: Likewise.
55706         * lib/spawn.in.h: Likewise.
55707         * lib/stdarg.in.h: Likewise.
55708         * lib/stdint.in.h: Likewise.
55709         * lib/stdio.in.h: Likewise.
55710         * lib/stdlib.in.h: Likewise.
55711         * lib/string.in.h: Likewise.
55712         * lib/strings.in.h: Likewise.
55713         * lib/sys_file.in.h: Likewise.
55714         * lib/sys_ioctl.in.h: Likewise.
55715         * lib/sys_select.in.h: Likewise.
55716         * lib/sys_socket.in.h: Likewise.
55717         * lib/sys_stat.in.h: Likewise.
55718         * lib/sys_time.in.h: Likewise.
55719         * lib/sysexits.in.h: Likewise.
55720         * lib/time.in.h: Likewise.
55721         * lib/unistd.in.h: Likewise.
55722         * lib/wchar.in.h: Likewise.
55723         * lib/wctype.in.h: Likewise.
55724         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55725
55726 2008-10-17  Jim Meyering  <meyering@redhat.com>
55727
55728         ignore-value: don't depend on inline module
55729         * modules/ignore-value (Depends-on): Remove 'inline'.
55730         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55731         Suggestion from Bruno Haible.
55732
55733 2008-10-17  Bruno Haible  <bruno@clisp.org>
55734
55735         New implementation of condition variables for Win32.
55736         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55737         (gl_linked_waitqueue_t): New type.
55738         (gl_cond_t): Use it.
55739         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55740         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55741         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55742         (glthread_cond_init_func, glthread_cond_wait_func,
55743         glthread_cond_timedwait_func, glthread_cond_signal_func,
55744         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55745         Reimplemented on the basis of gl_linked_waitqueue_t.
55746         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55747         gl_waitqueue_t.
55748         (gl_rwlock_t): Update.
55749         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55750
55751 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55752
55753         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55754         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55755
55756 2008-10-17  Jim Meyering  <meyering@redhat.com>
55757
55758         ignore-value: new module
55759         * modules/ignore-value: New file.
55760         * lib/ignore-value.h: New file.
55761         * MODULES.html.sh (Compiler warning management): New section,
55762         just for this module.  More to come.
55763
55764 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55767         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55768         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55769
55770 2008-10-16  Jim Meyering  <meyering@redhat.com>
55771
55772         openat-die.c: avoid 'no previous prototype' warning
55773         * lib/openat-die.c: Include "openat.h".
55774         Reported by Reuben Thomas <rrt@sc3d.org>.
55775
55776 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55777
55778         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55779         * lib/netdb.in.h: Fix typo.
55780         Reported by Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/netdb.in.h: Include sys/socket.h for platforms without
55783         netdb.h, to get structures like hostent on MinGW.
55784         * modules/netdb (Depends-on): Add sys_socket.
55785
55786 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55787
55788         * modules/netdb, modules/netdb-tests: New file.
55789         * m4/netdb_h.m4: New file.
55790         * lib/netdb.in.h: Add, currently just an empty file pending
55791         definitions.
55792         * tests/test-netdb.c: New file.
55793         * doc/posix-headers/netdb.texi: Mention that we replace it if
55794         needed.
55795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55796         netdb.
55797
55798 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55799
55800         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55801         with code.
55802
55803 2008-10-13  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/glthread/cond.c (glthread_cond_wait_func,
55806         glthread_cond_timedwait_func): Add a comment.
55807
55808 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55809
55810         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55811         * tests/test-select.c: Likewise,
55812
55813 2008-10-13  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/glthread/cond.c (glthread_cond_wait_func,
55816         glthread_cond_timedwait_func): Fix variable name.
55817         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55818
55819 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55820
55821         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55823         struct sockaddr.sa_len.
55824         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55825
55826 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55827
55828         * build-aux/pmccabe2html: Add css and css_url parameters.
55829
55830 2008-10-12  Bruno Haible  <bruno@clisp.org>
55831
55832         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55833         calling aclx_get.
55834         Reported by Rainer Tammer <tammer@tammer.net>.
55835
55836 2008-10-12  Bruno Haible  <bruno@clisp.org>
55837
55838         Use msvcrt aware primitives for creation/termination of Win32 threads.
55839         * lib/glthread/thread.c: Include <process.h>.
55840         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55841         (wrapper_func): Update signature.
55842         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55843
55844 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55845             Bruno Haible  <bruno@clisp.org>
55846
55847         Provide a Win32 implementation of the 'cond' module.
55848         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55849         * lib/glthread/cond.c (glthread_cond_init_func,
55850         glthread_cond_wait_func, glthread_cond_timedwait_func,
55851         glthread_cond_signal_func, glthread_cond_broadcast_func,
55852         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55853         * modules/cond (Dependencies): Add gettimeofday.
55854
55855 2008-10-11  Bruno Haible  <bruno@clisp.org>
55856
55857         Make sleep work on older versions of mingw.
55858         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55859         only whether it exists.
55860         * doc/posix-functions/sleep.texi: Mention the problem with older
55861         versions of mingw.
55862
55863 2008-10-11  Bruno Haible  <bruno@clisp.org>
55864
55865         New module 'shutdown'.
55866         * modules/shutdown: New file.
55867         * lib/sys_socket.in.h (shutdown): New declaration.
55868         * lib/winsock.c (shutdown): New function.
55869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55870         GNULIB_SHUTDOWN.
55871         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55872         * doc/posix-functions/shutdown.texi: Document the new module.
55873
55874 2008-10-11  Jim Meyering  <meyering@redhat.com>
55875
55876         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55877
55878 2008-10-11  Bruno Haible  <bruno@clisp.org>
55879
55880         New module 'fclose'.
55881         * modules/fclose: New file.
55882         * lib/stdio.in.h (fclose): New declaration.
55883         * lib/fclose.c: New file.
55884         * m4/fclose.m4: New file.
55885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55886         REPLACE_FCLOSE.
55887         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55888         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55889         REPLACE_FCLOSE.
55890         * modules/close (Depends-on): fclose.
55891         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55892
55893 2008-10-11  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55896         set errno and don't call _close.
55897
55898 2008-10-10  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55901         ACL, not afterwards. Fixes test failure on Cygwin.
55902
55903 2008-10-09  Ben Pfaff  <blp@gnu.org>
55904
55905         * build-aux/announce-gen: Fix gnulib version related part of usage
55906         message.  Die with a useful error message if no tarballs are
55907         found.
55908
55909 2008-10-10  Jim Meyering  <meyering@redhat.com>
55910
55911         bootstrap: use git's --depth=N option only if it's supported
55912         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55913         recognize the --depth option.  Reported by Pádraig Brady.
55914
55915 2008-10-09  Bruno Haible  <bruno@clisp.org>
55916
55917         New module 'ioctl'.
55918         * modules/ioctl: New file.
55919         * lib/sys_socket.in.h (ioctl): Remove declaration.
55920         * lib/winsock.c: Include <sys/ioctl.h>.
55921         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55922         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55923         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55924         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55925         * doc/posix-functions/ioctl.texi: Mention the new module.
55926
55927 2008-10-09  Bruno Haible  <bruno@clisp.org>
55928
55929         New module 'sys_ioctl'.
55930         * lib/sys_ioctl.in.h: New file.
55931         * m4/sys_ioctl_h.m4: New file.
55932         * modules/sys_ioctl: New file.
55933         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55934
55935 2008-10-09  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55938         * lib/winsock.c: Include <stdarg.h>.
55939         (rpl_ioctl): Change to second argument 'int' and then varargs.
55940
55941 2008-10-09  Bruno Haible  <bruno@clisp.org>
55942
55943         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55944         when the sys_socket module is present and the system has <winsock2.h>.
55945
55946 2008-10-09  Bruno Haible  <bruno@clisp.org>
55947
55948         * doc/posix-functions/close.texi: Mention module 'close' instead of
55949         module 'sys_socket'.
55950
55951 2008-10-09  Bruno Haible  <bruno@clisp.org>
55952
55953         * doc/glibc-headers/sys_ioctl.texi: New file.
55954         * doc/gnulib.texi: Include it.
55955
55956 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55957             Bruno Haible  <bruno@clisp.org>
55958
55959         Combine the two replacements of 'close'.
55960         * lib/sys_socket.in.h (close): Define to a reminder to include
55961         <unistd.h>.
55962         (_gl_close_fd_maybe_socket): New declaration.
55963         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55964         * lib/winsock.c (close): Remove undefinition.
55965         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55966         needed for the gnulib module 'close'.
55967         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55968         define to an error symbol or to a warning, if suitable.
55969         * lib/close.c: Include <sys/socket.h>.
55970         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55971         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55972         UNISTD_H_HAVE_WINSOCK2_H.
55973         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55975         UNISTD_H_HAVE_WINSOCK2_H.
55976         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55977         (configure.ac): Set a module indicator.
55978         (Makefile.am): Substitute GNULIB_CLOSE.
55979         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55980         * modules/poll-tests (Depends-on): Add close.
55981         * modules/select-tests (Depends-on): Likewise.
55982
55983 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55984             Bruno Haible  <bruno@clisp.org>
55985
55986         New module 'close'.
55987         * modules/close: New file.
55988         * lib/unistd.in.h (close): Move declaration out of the
55989         FCHDIR_REPLACEMENT scope.
55990         (_gl_unregister_fd): New declaration.
55991         * lib/close.c: New file.
55992         * lib/fchdir.c (rpl_close): Remove function.
55993         * m4/close.m4: New file.
55994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55995         close.
55996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55997         REPLACE_CLOSE.
55998         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55999         REPLACE_CLOSE.
56000         * modules/fchdir (Depends-on): Add close.
56001
56002 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56003             Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/fcntl.in.h (open): Simplify conditionals.
56006         (_gl_register_fd): New declaration.
56007         * lib/fchdir.c (rpl_open): Remove function.
56008         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56009         also.
56010         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56012         open.
56013
56014 2008-10-09  Jim Meyering  <meyering@redhat.com>
56015
56016         GNUmakefile: use the more name-space-friendly "_version"
56017         * top/GNUmakefile (_dummy): Update.
56018         (_version): Rename from "version".
56019
56020 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56021             Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56024         rpl_close.
56025         (_gl_register_fd): New function, extracted from rpl_open.
56026         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56027         (rpl_open, rpl_opendir): Use _gl_register_fd.
56028
56029 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56030
56031         Fix organization of 'open' replacement.
56032         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56033         (gl_FUNC_OPEN): Use it.
56034         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56035
56036 2008-10-08  Bruno Haible  <bruno@clisp.org>
56037
56038         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56039
56040 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56041
56042         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56043         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56044         listen).
56045
56046 2008-10-08  Eric Blake  <ebb9@byu.net>
56047
56048         GNUmakefile: add 'make version' target
56049         * top/GNUmakefile (_curr-ver): Split version update rules...
56050         (version): ...into a target.
56051
56052 2008-10-07  Bruno Haible  <bruno@clisp.org>
56053
56054         Use a more portable replacement expression for -0.0L.
56055         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56056         instead of -0.0L. Fix m4 quotation.
56057
56058         * tests/test-signbit.c: Include <float.h>.
56059         (minus_zero): New variable.
56060         (test_signbitl): Use minus_zero instead of -zero.
56061         * modules/signbit-tests (Depends-on): Add float.
56062
56063         * tests/test-ceill.c: Include <float.h>.
56064         (zero): Remove variable.
56065         (minus_zero): New variable.
56066         (main): Use minus_zero instead of -zero.
56067         * modules/ceill-tests (Depends-on): Add float.
56068
56069         * tests/test-floorl.c: Include <float.h>.
56070         (zero): Remove variable.
56071         (minus_zero): New variable.
56072         (main): Use minus_zero instead of -zero.
56073         * modules/floorl-tests (Depends-on): Add float.
56074
56075         * tests/test-roundl.c: Include <float.h>.
56076         (zero): Remove variable.
56077         (minus_zero): New variable.
56078         (main): Use minus_zero instead of -zero.
56079         * modules/roundl-tests (Depends-on): Add float.
56080
56081         * tests/test-truncl.c: Include <float.h>.
56082         (zero): Remove variable.
56083         (minus_zero): New variable.
56084         (main): Use minus_zero instead of -zero.
56085         * modules/truncl-tests (Depends-on): Add float.
56086
56087         * tests/test-frexpl.c (zero): Remove variable.
56088         (minus_zero): New variable.
56089         (main): Use minus_zero instead of -zero.
56090         * modules/frexpl-tests (Depends-on): Add float.
56091
56092         * tests/test-isnan.c (zerol): Remove variable.
56093         (minus_zerol): New variable.
56094         (test_long_double): Use minus_zerol instead of -zerol.
56095         * modules/isnan-tests (Depends-on): Add float.
56096
56097         * tests/test-isnanl.h (zero): Remove variable.
56098         (minus_zero): New variable.
56099         (main): Use minus_zero instead of -zero.
56100         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56101         * modules/isnanl-tests (Depends-on): Add float.
56102
56103         * tests/test-ldexpl.c (zero): Remove variable.
56104         (minus_zero): New variable.
56105         (main): Use minus_zero instead of -zero.
56106         * modules/ldexpl-tests (Depends-on): Add float.
56107
56108         * tests/test-snprintf-posix.h (zerol): Remove variable.
56109         (minus_zerol): New variable.
56110         (test_function): Use minus_zerol instead of -zerol.
56111         * modules/snprintf-posix-tests (Depends-on): Add float.
56112         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56113
56114         * tests/test-sprintf-posix.h (zerol): Remove variable.
56115         (minus_zerol): New variable.
56116         (test_function): Use minus_zerol instead of -zerol.
56117         * modules/sprintf-posix-tests (Depends-on): Add float.
56118         * modules/vsprintf-posix-tests (Depends-on): Add float.
56119
56120         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56121         (minus_zerol): New variable.
56122         (test_function): Use minus_zerol instead of -zerol.
56123         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56124
56125         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56126         (minus_zerol): New variable.
56127         (test_function): Use minus_zerol instead of -zerol.
56128         * modules/vasprintf-posix-tests (Depends-on): Add float.
56129
56130 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56131
56132         * MODULES.html.sh (Support for building documentation): Mention
56133         pmccabe2html.  Sort entries.
56134
56135         Add pmccabe2html module, from gnupdf.
56136         * build-aux/pmccabe.css: New file.
56137         * build-aux/pmccabe2html: New file.
56138         * m4/pmccabe2html.m4: New file.
56139         * modules/pmccabe2html: New file.
56140
56141 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56142
56143         flock: new module
56144         * MODULES.html.sh: Add to list of modules.
56145         * lib/flock.c: flock implementation for Windows and Unix systems
56146         which have fcntl.
56147         * doc/glibc-functions/flock.texi: Update documentation.
56148         * lib/sys_file.in.h: <sys/file.h> header file.
56149         * m4/flock.m4: M4 macros.
56150         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56151         * modules/flock: flock module.
56152         * modules/flock-tests: flock tests module.
56153         * modules/sys_file: sys/file.h module.
56154         * tests/test-flock.c: test suite for flock.
56155
56156 2008-10-06  Jim Meyering  <meyering@redhat.com>
56157
56158         bootstrap: check for LT_INIT more portably still ;-)
56159         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56160         Spotted by Bruno Haible.
56161
56162 2008-10-06  Eric Blake  <ebb9@byu.net>
56163
56164         test-signbit: avoid tripping Irix cc bug on -0.0L
56165         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56166         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56167         entire testsuite consistent and avoids an Irix 6.2 bug.
56168
56169 2008-10-05  Bruno Haible  <bruno@clisp.org>
56170             Jim Meyering  <jim@meyering.net>
56171
56172         Add an option for ignoring EPIPE during close_stdout.
56173         * lib/closeout.h: Include <stdbool.h>.
56174         (close_stdout_set_ignore_EPIPE): New declaration.
56175         * lib/closeout.c: Include <stdbool.h>.
56176         (ignore_EPIPE): New variable.
56177         (close_stdout_set_ignore_EPIPE): New function.
56178         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56179         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56180         failure.
56181         * modules/closeout (Depends-on): Add stdbool.
56182
56183 2008-10-05  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/accept: New file.
56186         * modules/bind: New file.
56187         * modules/connect: New file.
56188         * modules/getpeername: New file.
56189         * modules/getsockname: New file.
56190         * modules/getsockopt: New file.
56191         * modules/listen: New file.
56192         * modules/recv: New file.
56193         * modules/recvfrom: New file.
56194         * modules/send: New file.
56195         * modules/sendto: New file.
56196         * modules/setsockopt: New file.
56197         * modules/socket: New file.
56198         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56199         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56200         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56201         the particular module is requested. Add a link warning when the
56202         particular module is not requested.
56203         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56204         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56205         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56206         the particular module is requested.
56207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56208         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56209         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56210         * modules/sys_socket (Depends-on): Add link-warning.
56211         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56212         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56213         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56214         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56215         GL_LINK_WARNING.
56216         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56217         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56218         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56219         * doc/posix-functions/getpeername.texi: Mention the new module
56220         'getpeername'.
56221         * doc/posix-functions/getsockname.texi: Mention the new module
56222         'getsockname'.
56223         * doc/posix-functions/getsockopt.texi: Mention the new module
56224         'getsockopt'.
56225         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56226         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56227         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56228         * doc/posix-functions/send.texi: Mention the new module 'send'.
56229         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56230         * doc/posix-functions/setsockopt.texi: Mention the new module
56231         'setsockopt'.
56232         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56233         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56234         listen, connect, accept.
56235         * modules/select-tests (Depends-on): Likewise.
56236
56237 2008-10-05  Bruno Haible  <bruno@clisp.org>
56238
56239         * lib/winsock.c (strerror): Remove unused #undef.
56240         (rpl_close): Remove unused local variable.
56241
56242         * modules/sys_socket (Depends-on); Add errno.
56243
56244 2008-10-05  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56247         (select): Add a link warning when the 'select' module is not used.
56248         * modules/sys_select (Depends-on): Add link-warning.
56249         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56250         Suggested by Paolo Bonzini.
56251
56252 2008-10-05  Jim Meyering  <meyering@redhat.com>
56253
56254         bootstrap: check for LT_INIT more portably
56255         * build-aux/bootstrap: Avoid using grep -E, since it's not
56256         portable enough.  Suggestion from Bruno Haible.
56257
56258 2008-10-05  Bruno Haible  <bruno@clisp.org>
56259
56260         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56261         as being fixed by gnulib.
56262
56263 2008-10-05  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/select-tests: New file, mostly copied from
56266         modules/sys_select-tests.
56267         * tests/test-select.c: New file, mostly copied from
56268         tests/test-sys_select.c.
56269         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56270         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56271         (Makefile.am): Remove test_sys_select_LDADD.
56272
56273         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56274         to an undefined symbol, for an error message.
56275         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56276         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56277         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56278         winsock-select.c here.
56279         * modules/sys_select (Files): Remove lib/winsock-select.c.
56280         (Depends-on): Remove alloca.
56281         (Makefile.am): Substitute GNULIB_SELECT.
56282         * modules/select: New file.
56283         * doc/posix-functions/select.texi: Update.
56284
56285 2008-10-05  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56288         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56289         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56290         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56291         getdtablesize.
56292         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56293         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56294
56295 2008-10-05  Bruno Haible  <bruno@clisp.org>
56296
56297         * modules/getdtablesize-tests: New file.
56298         * tests/test-getdtablesize.c: New file.
56299
56300         New module 'getdtablesize'.
56301         * lib/unistd.in.h (getdtablesize): New declaration.
56302         * lib/getdtablesize.c: New file.
56303         * m4/getdtablesize.m4: New file.
56304         * modules/getdtablesize: New file.
56305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56306         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56307         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56308         HAVE_GETDTABLESIZE.
56309         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56310
56311 2008-10-05  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/sched (Makefile.am): Fix typo.
56314         Reported by Simon Josefsson.
56315
56316 2008-10-05  Jim Meyering  <meyering@redhat.com>
56317
56318         bootstrap: check for LT_INIT, too
56319         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56320         are deprecated.  Suggestion from Ralf Wildenhues.
56321
56322 2008-10-05  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56325         overriding them by ours.
56326         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56327
56328 2008-10-05  Jim Meyering  <meyering@redhat.com>
56329
56330         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56331         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56332         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56333
56334 2008-10-04  Bruno Haible  <bruno@clisp.org>
56335
56336         * modules/dup2 (License): Change to LGPLv2+.
56337         * modules/sleep (License): Likewise.
56338         * modules/perror (License): Likewise.
56339         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56340         Blake.
56341         * modules/signal (License): Likewise.
56342         * modules/sigprocmask (License): Likewise.
56343         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56344         Meyering.
56345
56346 2008-10-04  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56349         Reported by Rainer Tammer <tammer@tammer.net>.
56350
56351 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56352             Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56355         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56356         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56357
56358 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56359
56360         filevercmp: new module
56361         * lib/filevercmp.h: New function filevercmp comparing version strings.
56362         * lib/filevercmp.c: Implementation of filevercmp function.
56363         * modules/filevercmp: Module metadata.
56364         * tests/test-filevercmp.c: Unit test for new module.
56365         * modules/filevercmp-tests: Unit test metadata.
56366         * MODULES.html.sh: Add filevercmp module.
56367
56368 2008-10-03  Bruno Haible  <bruno@clisp.org>
56369
56370         * lib/c-ctype.h: Add comment.
56371         Reported by Jim Meyering.
56372
56373 2008-10-02  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56376
56377 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56378
56379         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56380         name of bootstrap.conf accordingly.
56381
56382 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56383
56384         * build-aux/bootstrap: Install git-merge-changelog configuration
56385         items into .gitconfig if needed.
56386
56387 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56388
56389         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56390         git repository, and initialize/update it accordingly.
56391
56392 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56393
56394         * modules/fsync-tests: New file.
56395         * tests/test-fsync.c: New file.
56396
56397         New module 'fsync'.
56398         * lib/fsync.c: New file.
56399         * m4/fsync.m4: New file.
56400         * modules/fsync: New file.
56401         * lib/unistd.in.h (fsync): New declaration.
56402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56403         GNULIB_FSYNC and HAVE_FSYNC.
56404         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56405         * MODULES.html.sh (posix_functions): Add fsync.
56406         * doc/posix-functions/fsync.texi: Mention the new module.
56407
56408 2008-10-02  Jim Meyering  <meyering@redhat.com>
56409
56410         fts.c: sync with similar code from coreutils' remove.c
56411         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56412         Guard also with "#if defined __linux__", since for now at least,
56413         this code is Linux-kernel-specific.
56414
56415 2008-10-02  Jim Meyering  <meyering@redhat.com>
56416
56417         fts: bug fixes
56418         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56419         Include <sys/vfs.h>, not <sys/statfs.h>.
56420
56421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56422         Include <sys/vfs.h>, not <sys/statfs.h>.
56423
56424 2008-10-01  Bruno Haible  <bruno@clisp.org>
56425
56426         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56427         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56428         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56429         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56430         * doc/posix-functions/posix_spawnp.texi: Likewise.
56431         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56432         whether posix_spawn actually works.
56433         * m4/pipe.m4 (gl_PIPE): Likewise.
56434         * modules/execute (Files): Add m4/posix_spawn.m4.
56435         * modules/pipe (Files): Add m4/posix_spawn.m4.
56436         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56437
56438 2008-10-01  Jim Meyering  <meyering@redhat.com>
56439
56440         remove trailing spaces
56441         * NEWS: Likewise.
56442         * lib/poll.c (poll): Likewise.
56443         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56444         * lib/winsock.c (rpl_close): Likewise.
56445         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56446         * modules/yield: Likewise.
56447         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56448         * tests/test-sys_select.c (connect_to_socket): Likewise.
56449
56450         fts.c: adjust a new interface to be more generally useful
56451         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56452         (fts_build): Adjust caller.
56453
56454 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56455
56456         * modules/cond-tests: New file.
56457         * tests/test-cond.c: New file.
56458
56459 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56460             Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/cond (Dependencies): Add errno, time.
56463         * lib/glthread/cond.h: Include <time.h>.
56464         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56465         across platforms.
56466
56467 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56468             Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56471
56472 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56473             Bruno Haible  <bruno@clisp.org>
56474
56475         * modules/tls-tests (Depends-on): Add thread, yield.
56476         (configure.ac): Remove all checks.
56477         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56478         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56479         gl_thread_self): Remove definitions. Include glthread/thread.h and
56480         glthread/yield.h instead.
56481         (test_tls): Pass an additional NULL argument to gl_thread_join.
56482
56483 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56484             Bruno Haible  <bruno@clisp.org>
56485
56486         * modules/lock-tests (Depends-on): Add thread, yield.
56487         (configure.ac): Remove all checks.
56488         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56489         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56490         gl_thread_self): Remove definitions. Include glthread/thread.h and
56491         glthread/yield.h instead.
56492         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56493         additional NULL argument to gl_thread_join.
56494
56495 2008-09-30  Bruno Haible  <bruno@clisp.org>
56496
56497         Fix the Win32 implementation of the 'thread' module.
56498         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56499         pointer type.
56500         (gl_thread_self): Invoke gl_thread_self_func.
56501         (gl_thread_self_func): New declaration.
56502         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56503         (do_init_self_key, init_self_key): New functions.
56504         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56505         Remove some fields.
56506         (running_threads, running_lock): Remove variables.
56507         (get_current_thread_handle): New function.
56508         (gl_thread_self_func, wrapper_func, glthread_create_func,
56509         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56510         simplified.
56511
56512 2008-09-30  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56515         files.
56516
56517 2008-09-30  Jim Meyering  <meyering@redhat.com>
56518
56519         fts.m4: correct the test for statfs.f_type
56520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56521         when checking for statfs.f_type.
56522
56523 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56524
56525         tests: avoid some compiler warnings
56526         * tests/test-memchr.c (main): Pass NULL indirectly.
56527         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56528
56529 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56530
56531         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56532         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56533         exactly specified dayshifts.
56534         (dayshift): New rule.
56535         (rel): Add dayshift.
56536         (relative_time_table) [tomorrow, yesterday, today, now]:
56537         Use tDAY_SHIFT in place of tDAY_UNIT.
56538         * tests/test-getdate.c: Add tests for now-disallowed countable
56539         dayshifts, e.g., "4 yesterday ago".
56540
56541 2008-09-29  Bruno Haible  <bruno@clisp.org>
56542
56543         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56544         * tests/test-posix_spawn1.in.sh: Renamed from
56545         tests/test-posix_spawn.in.sh.
56546         * tests/test-posix_spawn2.c: New file.
56547         * tests/test-posix_spawn2.in.sh: New file.
56548         * modules/posix_spawnp-tests (Files): Update.
56549         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56550
56551 2008-09-29  Bruno Haible  <bruno@clisp.org>
56552
56553         Propagate effects of putenv/setenv/unsetenv to child processes.
56554         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56555         * lib/pipe.c (create_pipe): Likewise.
56556
56557 2008-09-29  Bruno Haible  <bruno@clisp.org>
56558
56559         Enable use of shell scripts as executables in mingw.
56560         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56561         run the program as a shell script.
56562         * lib/pipe.c (create_pipe): Likewise.
56563         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56564         resulting array.
56565
56566 2008-09-29  Eric Blake  <ebb9@byu.net>
56567
56568         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56569
56570 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56571
56572         * doc/posix-functions/accept.texi: Update mingw problems.
56573         * doc/posix-functions/bind.texi: Update mingw problems.
56574         * doc/posix-functions/close.texi: Update mingw problems.
56575         * doc/posix-functions/connect.texi: Update mingw problems.
56576         * doc/posix-functions/getpeername.texi: Update mingw problems.
56577         * doc/posix-functions/getsockname.texi: Update mingw problems.
56578         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56579         * doc/posix-functions/ioctl.texi: Update mingw problems.
56580         * doc/posix-functions/listen.texi: Update mingw problems.
56581         * doc/posix-functions/recv.texi: Update mingw problems.
56582         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56583         * doc/posix-functions/select.texi: Update mingw problems.
56584         * doc/posix-functions/send.texi: Update mingw problems.
56585         * doc/posix-functions/sendto.texi: Update mingw problems.
56586         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56587         * doc/posix-functions/socket.texi: Update mingw problems.
56588
56589 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56590             Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/sys_select.in.h: Include sys/time.h.
56593         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56594         * modules/sys_select: Depend on sys_time.
56595         * tests/test-sys_select.c: Test that sys/select.h defines struct
56596         timeval fully.
56597
56598 2008-09-29  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56601         * lib/sys_select.in.h: Likewise.
56602
56603 2008-09-29  Bruno Haible  <bruno@clisp.org>
56604
56605         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56606
56607 2008-09-29  Bruno Haible  <bruno@clisp.org>
56608
56609         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56610         Set LIBSOCKET instead of augmenting LIBS.
56611         * modules/sockets (Link): New section.
56612         * modules/sockets-tests (test_sockets_LDADD): New variable.
56613         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56614         * modules/poll-tests (test_poll_LDADD): New variable.
56615         * NEWS: Document the change.
56616
56617 2008-09-29  Bruno Haible  <bruno@clisp.org>
56618
56619         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56620         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56621         ARPA_INET_H directly.
56622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56623
56624 2008-09-28  Bruno Haible  <bruno@clisp.org>
56625
56626         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56627         from gl_HEADER_SYS_SOCKET.
56628         (gl_HEADER_SYS_SOCKET): Invoke it.
56629         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56630
56631 2008-09-28  Bruno Haible  <bruno@clisp.org>
56632
56633         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56634         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56635         Needed on OSF/1 4.0.
56636
56637 2008-09-28  Bruno Haible  <bruno@clisp.org>
56638
56639         Override open more carefully.
56640         * lib/open.c (orig_open): New function.
56641         (rpl_open): Use orig_open instead of open.
56642         * lib/fcntl.in.h: Add special invocation convention.
56643         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56644         (gl_FUNC_OPEN): Invoke it.
56645
56646         Override freopen more carefully.
56647         * lib/freopen.c (orig_freopen): New function.
56648         (rpl_freopen): Use orig_freopen instead of freopen.
56649         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56650         (gl_FUNC_FREOPEN): Invoke it.
56651
56652         Override fopen more carefully.
56653         * lib/fopen.c (orig_fopen): New function.
56654         (rpl_fopen): Use orig_fopen instead of fopen.
56655         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56656         (gl_FUNC_FOPEN): Invoke it.
56657         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56658
56659 2008-09-28  Bruno Haible  <bruno@clisp.org>
56660
56661         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56662         SIGPIPE.
56663
56664 2008-09-28  Bruno Haible  <bruno@clisp.org>
56665
56666         * tests/test-sigaction.c (handler, main): Disable the check whether
56667         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56668         glibc systems with LinuxThreads.
56669
56670 2008-09-28  Bruno Haible  <bruno@clisp.org>
56671
56672         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56673
56674         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56675         with AIX xlc.
56676         * lib/fcntl.in.h (open): Likewise.
56677         Reported by Rainer Tammer <tammer@tammer.net>.
56678
56679 2008-09-28  Bruno Haible  <bruno@clisp.org>
56680
56681         * modules/posix_spawnp-tests: New file.
56682         * tests/test-posix_spawn.c: New file.
56683         * tests/test-posix_spawn.in.sh: New file.
56684
56685         New module 'posix_spawnp'.
56686         * modules/posix_spawnp: New file.
56687         * lib/spawnp.c: New file, from GNU libc with modifications.
56688         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56689
56690         New module 'posix_spawn'.
56691         * modules/posix_spawn: New file.
56692         * lib/spawn.c: New file, from GNU libc with modifications.
56693         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56694
56695         New module 'posix_spawnattr_destroy'.
56696         * modules/posix_spawnattr_destroy: New file.
56697         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56698         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56699         module.
56700
56701         New module 'posix_spawnattr_setsigmask'.
56702         * modules/posix_spawnattr_setsigmask: New file.
56703         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56704         modifications.
56705         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56706         new module.
56707
56708         New module 'posix_spawnattr_getsigmask'.
56709         * modules/posix_spawnattr_getsigmask: New file.
56710         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56711         modifications.
56712         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56713         new module.
56714
56715         New module 'posix_spawnattr_setsigdefault'.
56716         * modules/posix_spawnattr_setsigdefault: New file.
56717         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56718         modifications.
56719         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56720         new module.
56721
56722         New module 'posix_spawnattr_getsigdefault'.
56723         * modules/posix_spawnattr_getsigdefault: New file.
56724         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56725         modifications.
56726         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56727         new module.
56728
56729         New module 'posix_spawnattr_setschedpolicy'.
56730         * modules/posix_spawnattr_setschedpolicy: New file.
56731         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56732         modifications.
56733         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56734         new module.
56735
56736         New module 'posix_spawnattr_getschedpolicy'.
56737         * modules/posix_spawnattr_getschedpolicy: New file.
56738         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56739         modifications.
56740         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56741         new module.
56742
56743         New module 'posix_spawnattr_setschedparam'.
56744         * modules/posix_spawnattr_setschedparam: New file.
56745         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56746         modifications.
56747         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56748         new module.
56749
56750         New module 'posix_spawnattr_getschedparam'.
56751         * modules/posix_spawnattr_getschedparam: New file.
56752         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56753         modifications.
56754         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56755         new module.
56756
56757         New module 'posix_spawnattr_setpgroup'.
56758         * modules/posix_spawnattr_setpgroup: New file.
56759         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56760         modifications.
56761         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56762         module.
56763
56764         New module 'posix_spawnattr_getpgroup'.
56765         * modules/posix_spawnattr_getpgroup: New file.
56766         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56767         modifications.
56768         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56769         module.
56770
56771         New module 'posix_spawnattr_setflags'.
56772         * modules/posix_spawnattr_setflags: New file.
56773         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56774         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56775         module.
56776
56777         New module 'posix_spawnattr_getflags'.
56778         * modules/posix_spawnattr_getflags: New file.
56779         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56780         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56781         module.
56782
56783         New module 'posix_spawnattr_init'.
56784         * modules/posix_spawnattr_init: New file.
56785         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56786         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56787         module.
56788
56789         New module 'posix_spawn_file_actions_destroy'.
56790         * modules/posix_spawn_file_actions_destroy: New file.
56791         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56792         modifications.
56793         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56794         the new module.
56795
56796         New module 'posix_spawn_file_actions_addopen'.
56797         * modules/posix_spawn_file_actions_addopen: New file.
56798         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56799         modifications.
56800         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56801         the new module.
56802
56803         New module 'posix_spawn_file_actions_adddup2'.
56804         * modules/posix_spawn_file_actions_adddup2: New file.
56805         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56806         modifications.
56807         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56808         the new module.
56809
56810         New module 'posix_spawn_file_actions_addclose'.
56811         * modules/posix_spawn_file_actions_addclose: New file.
56812         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56813         modifications.
56814         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56815         the new module.
56816
56817         New module 'posix_spawn_file_actions_init'.
56818         * modules/posix_spawn_file_actions_init: New file.
56819         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56820         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56821         new module.
56822
56823         New module 'posix_spawn-internal'.
56824         * modules/posix_spawn-internal: New file.
56825         * lib/spawn_int.h: New file, from GNU libc with modifications.
56826         * lib/spawni.c: New file, from GNU libc with modifications.
56827         * m4/posix_spawn.m4: New file.
56828
56829         New module 'spawn'.
56830         * modules/spawn: New file.
56831         * lib/spawn.in.h: New file, from GNU libc with modifications.
56832         * m4/spawn_h.m4: New file.
56833         * doc/posix-headers/spawn.texi: Mention the new module.
56834
56835 2008-09-28  Bruno Haible  <bruno@clisp.org>
56836
56837         * modules/sched-tests: New file.
56838         * tests/test-sched.c: New file.
56839
56840         New module 'sched'.
56841         * modules/sched: New file.
56842         * lib/sched.in.h: New file.
56843         * m4/sched_h.m4: New file.
56844         * doc/posix-headers/sched.texi: Mention the new module.
56845
56846 2008-09-27  Eric Blake  <ebb9@byu.net>
56847
56848         Fix previous patch, and tweak references to $0.
56849         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56850         (func_version, func_gnulib_dir): Don't call this program
56851         gnulib-tool.
56852         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56853         with using $0 in function.
56854         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56855         (func_fatal_error): Reuse the name the user invoked us with.
56856
56857 2008-09-27  Bruno Haible  <bruno@clisp.org>
56858
56859         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56860         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56861         (gl_ICONV_H): Not here.
56862         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56863         instead of assigning ICONV_H directly.
56864
56865         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56867         WCHAR_H directly.
56868
56869 2008-09-27  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56872         * modules/arpa_inet (Depends-on): Add link-warning.
56873         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56874         * modules/unistd (Makefile.am): Likewise.
56875
56876 2008-09-26  Bruno Haible  <bruno@clisp.org>
56877
56878         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56879         variables.
56880         (func_version): Essentially copied from gnulib-tool.
56881         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56882         func_readlink): Copied from gnulib-tool.
56883
56884 2008-09-26  Bruno Haible  <bruno@clisp.org>
56885
56886         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56887         invoking git-version-gen.
56888
56889 2008-09-26  Bruno Haible  <bruno@clisp.org>
56890
56891         * posix-modules: Update to directory names changed on 2008-01-19.
56892         Remove commas in output before splitting into words. No more need to
56893         avoid 'ftruncate' since 2007-02-19.
56894
56895 2008-09-26  Bruno Haible  <bruno@clisp.org>
56896
56897         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56898
56899 2008-09-26  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56902         * modules/fwriteerror (Depends-on): Add errno.
56903
56904 2008-09-26  Bruno Haible  <bruno@clisp.org>
56905
56906         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56907         * tests/test-vc-list-files-cvs.sh: Likewise.
56908
56909 2008-09-26  Bruno Haible  <bruno@clisp.org>
56910
56911         * doc/posix-headers/sys_resource.texi: Reorder items.
56912
56913 2008-09-26  Jim Meyering  <meyering@redhat.com>
56914
56915         fts: tweak inode comparison function
56916         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56917         inode numbers, as documented.
56918
56919         fts: sort dirent entries on inode number before traversing
56920         This avoids a quadratic, seek-related performance penalty when
56921         operating on a directory containing many entries (measurable at 10k;
56922         3.5 hours at 2 million entries with a cold cache) on certain types
56923         of file systems, including ext3 and ext4, but not tmpfs.
56924         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56925         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56926         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56927         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56928         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56929         (fts_build): Set the stat.st_ino member from D_INO.
56930         If it is likely to be useful, sort dirent entries on inode number.
56931
56932         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56933         and the struct statfs.f_type member.
56934         * modules/fts (Depends-on): Add d-ino.
56935
56936 2008-09-26  Bruno Haible  <bruno@clisp.org>
56937
56938         * modules/sigpipe-die (Depends-on): Add sigpipe.
56939
56940         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56941         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56942         and GNULIB_STDIO_H_SIGPIPE are set.
56943         * lib/stdio-write.c: New file.
56944         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56945         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56946         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56947         REPLACE_STDIO_WRITE_FUNCS.
56948         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56949         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56950         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56951         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56952         * modules/stdio (Files): Add lib/stdio-write.c.
56953         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56954         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56955         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56956         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56957         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56958         REPLACE_FPRINTF_POSIX.
56959         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56960         REPLACE_PRINTF_POSIX.
56961         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56962         REPLACE_VFPRINTF_POSIX.
56963         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56964         REPLACE_VPRINTF_POSIX.
56965         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56966         SIGPIPE issue.
56967         * doc/posix-functions/fputc.texi: Likewise.
56968         * doc/posix-functions/fputs.texi: Likewise.
56969         * doc/posix-functions/fwrite.texi: Likewise.
56970         * doc/posix-functions/printf.texi: Likewise.
56971         * doc/posix-functions/putc.texi: Likewise.
56972         * doc/posix-functions/putchar.texi: Likewise.
56973         * doc/posix-functions/puts.texi: Likewise.
56974         * doc/posix-functions/vfprintf.texi: Likewise.
56975         * doc/posix-functions/vprintf.texi: Likewise.
56976
56977         * modules/safe-write (Depends-on): Add write.
56978
56979         * modules/sigpipe-tests: New file.
56980         * tests/test-sigpipe.c: New file.
56981         * tests/test-sigpipe.sh: New file.
56982
56983         * modules/write: New file.
56984         * lib/unistd.in.h: Include <sys/types.h>.
56985         (write): New declaration.
56986         * lib/write.c: New file.
56987         * m4/write.m4: New file.
56988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56989         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56990         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56991         GNULIB_WRITE, REPLACE_WRITE.
56992         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56993         and the SIGPIPE issue.
56994
56995         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56996         (raise): New declaration.
56997         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56998         (ext_signal): New function.
56999         (rpl_raise): New function.
57000         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57001         GNULIB_SIGNAL_H_SIGPIPE.
57002         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57003         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57004
57005         * modules/sigpipe: New file.
57006         * m4/sigpipe.m4: New file.
57007
57008 2008-09-25  Derek Price  <derek@ximbiot.com>
57009             Bruno Haible  <bruno@clisp.org>
57010
57011         * gnulib-tool (func_import): Report all license incompatibilities, not
57012         just the first one.
57013
57014 2008-09-25  Bruno Haible  <bruno@clisp.org>
57015
57016         * gnulib-tool (func_import): When computing the edits, consider not
57017         only the Makefile.ams that exist but also those that will be generated.
57018
57019 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57020
57021         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57022         fixes gnulib-tool --test warning about duplicate dependency.
57023
57024 2008-09-25  Bruno Haible  <bruno@clisp.org>
57025
57026         * gnulib-tool: Don't ask the user to perform edits in the generated
57027         Makefile.ams.
57028         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57029         apply to the Makefile.am being generated.
57030         (func_emit_tests_Makefile_am): Execute edits that apply to the
57031         Makefile.am being generated.
57032         (func_import): Setup list of Makefile.am edits before emitting the
57033         Makefile.ams, not at the end.
57034         (func_create_testdir): Update.
57035         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57036
57037 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57038
57039         * gnulib-tool (func_import): Store the --tests-base option in the
57040         comment in gnulib-cache.m4.
57041
57042 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57043
57044         * NEWS: Document increased portability that sys_select now provides.
57045
57046         * lib/sys_select.in.h: Install select wrapper.
57047         * lib/sys_socket.in.h: Use more descriptive name when there is no
57048         select wrapper.
57049         * lib/winsock-select.c: New.
57050         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57051         Require gl_HEADER_SYS_SOCKET.
57052         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57053         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57054         * tests/test-sys_select.c: Add functional tests.
57055
57056 2008-09-24  Eric Blake  <ebb9@byu.net>
57057
57058         open, fopen: close fd leak in last patch
57059         * lib/open.c (rpl_open): Close fd before returning error.
57060         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57061         * doc/posix-functions/open.texi (open): Document that Irix also
57062         has the bug.
57063         * doc/posix-functions/fopen.texi (fopen): Likewise.
57064         Reported by Paolo Bonzini.
57065
57066 2008-09-24  Bruno Haible  <bruno@clisp.org>
57067
57068         Ensure that a filename ending in a slash cannot be used to access a
57069         non-directory.
57070         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57071         to check whether it's really a directory.
57072         * lib/fopen.c: Include fcntl.h, unistd.h.
57073         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57074         and fdopen().
57075         * modules/fopen (Depends-on): Add unistd.
57076         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57077         * tests/test-fopen.c (main): Likewise.
57078         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57079         * doc/posix-functions/fopen.texi: Likewise.
57080         Reported by Eric Blake.
57081
57082 2008-09-23  Eric Blake  <ebb9@byu.net>
57083
57084         c-stack: avoid compiler optimizations when provoking overflow
57085         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57086         recursion harder to optimize, to ensure a stack overflow occurs.
57087         * tests/test-c-stack.c (recurse): Likewise.
57088         Borrowed from libsigsegv.
57089
57090         c-stack: work around Irix sigaltstack bug
57091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57092         whether sigaltstack uses wrong end of stack_t (copied in part from
57093         libsigsegv).
57094         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57095         Irix bug, without requiring an over-allocation.
57096         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57097         bug.
57098
57099         fopen: document mingw bug on directories
57100         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57101         not allowing a stream visiting a directory, even though reading
57102         from such a stream is not portable.
57103
57104 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57105
57106         * lib/poll.c: Rewrite.
57107         * modules/poll: Depend on alloca.
57108
57109 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57110
57111         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57112         instead define prototypes for a full set of wrappers.  Ensure
57113         that Cygwin does not use the compatibility code, which is only
57114         for MinGW.
57115         * lib/winsock.c: New.
57116         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57117         * modules/sys_socket: Add lib/winsock.c.
57118
57119         * modules/poll-tests: Add errno and perror.
57120         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57121
57122 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57123
57124         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57125
57126 2008-09-23  Bruno Haible  <bruno@clisp.org>
57127
57128         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57129         * doc/glibc-functions/*: Likewise.
57130
57131 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57132
57133         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57134         success.
57135
57136 2008-09-22  Eric Blake  <ebb9@byu.net>
57137             Bruno Haible  <bruno@clisp.org>
57138
57139         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57140         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57141         supply %A but mishandle pseudo-NaN.
57142         Reported by Simon Josefsson.
57143
57144 2008-09-21  Bruno Haible  <bruno@clisp.org>
57145
57146         * tests/test-lock.c (main): Tweak skip message.
57147         * tests/test-tls.c (main): Likewise.
57148
57149 2008-09-21  Bruno Haible  <bruno@clisp.org>
57150
57151         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57152         whether 'struct sigaction' has sa_sigaction here...
57153         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57154         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57155
57156 2008-09-21  Bruno Haible  <bruno@clisp.org>
57157
57158         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57159         section.
57160         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57161         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57162         the new section.
57163         (Support for obsolete systems lacking POSIX:2001): New section.
57164         (String handling <string.h>): Move strdup to the new section.
57165         Suggested by Simon Josefsson and Paolo Bonzini.
57166
57167 2008-09-21  Bruno Haible  <bruno@clisp.org>
57168
57169         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57170         exponents in %e and %g results on 'long double'. Needed for mingw's
57171         improved *printf functions.
57172         * tests/test-vasprintf-posix.c (test_function): Likewise.
57173         * tests/test-snprintf-posix.h (test_function): Likewise.
57174         * tests/test-sprintf-posix.h (test_function): Likewise.
57175         Reported by Eric Blake.
57176
57177 2008-09-21  Bruno Haible  <bruno@clisp.org>
57178
57179         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57180         * tests/test-sprintf-posix.h (test_function): Likewise.
57181
57182 2008-09-21  Bruno Haible  <bruno@clisp.org>
57183
57184         * modules/getpass (Depends-on): Add strdup-posix.
57185
57186         New module 'strdup-posix'.
57187         * modules/strdup-posix: New file.
57188         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57189         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57191         REPLACE_STRDUP.
57192         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57193         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57195         strdup-posix.
57196
57197         * modules/strdup (Depends-on): Remove malloc-posix.
57198
57199 2008-09-20  Bruno Haible  <bruno@clisp.org>
57200
57201         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57202         Wildenhues.
57203
57204 2008-09-20  Bruno Haible  <bruno@clisp.org>
57205
57206         Ensure that wint_t gets defined on IRIX 5.3.
57207         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57208         * lib/wctype.in.h (wint_t): Likewise.
57209         (__wctype_wint_t): Remove type.
57210         (isw*): Use wint_t instead of __wctype_wint_t.
57211         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57212         * modules/wchar (Files): Add m4/wint_t.m4.
57213         (Makefile.am): Substitute HAVE_WINT_T.
57214         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57215         * tests/test-wctype.c: Check that wint_t is defined.
57216         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57217         * doc/posix-headers/wctype.texi: Likewise.
57218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57219
57220 2008-09-18  Bruno Haible  <bruno@clisp.org>
57221
57222         * gnulib-tool (func_exit): Update comment.
57223
57224 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57225
57226         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57227         assumes strdup exists and does not depend on strdup to return
57228         ENOMEM on out of memory conditions.
57229
57230 2008-09-18  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57233         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57234         digits for the exponent.
57235
57236 2008-09-18  Jim Meyering  <meyering@redhat.com>
57237             Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/vasnprintf.c (decimal_point_char): Define also if
57240         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57241
57242 2008-09-16  Bruno Haible  <bruno@clisp.org>
57243         and Eric Blake  <ebb9@byu.net>
57244
57245         vasnprintf: support Irix 5.3
57246         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57247         that mishandle long double infinity.
57248         Reported by Tom G. Christensen.
57249
57250 2008-09-16  Bruno Haible  <bruno@clisp.org>
57251
57252         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57253         Solaris 9.
57254         * doc/glibc-functions/alphasort.texi: Likewise.
57255         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57256
57257 2008-09-16  Jim Meyering  <meyering@redhat.com>
57258
57259         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57260         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57261         a umask modification leak out of a subshell.  Otherwise, the
57262         opensolaris /bin/sh would be accepted and thus cause unwarranted
57263         failures in the coreutils test suite.
57264
57265 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57266
57267         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57268         to succeed.
57269
57270 2008-09-16  Jim Meyering  <meyering@redhat.com>
57271
57272         avoid spurious test failure when library is built without ACL support
57273         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57274         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57275         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57276         * tests/test-copy-acl.sh: Likewise.
57277
57278 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57279
57280         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57281         based on character occurrence counts.
57282
57283 2008-09-15  Eric Blake  <ebb9@byu.net>
57284
57285         tests: avoid some compiler warnings
57286         * tests/test-memchr.c (main): Pass NULL indirectly.
57287         * tests/test-closein.c (main): Avoid unused variable.
57288
57289 2008-09-15  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57292         are missing on OpenBSD 4.0 individually.
57293         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57294
57295 2008-09-15  Bruno Haible  <bruno@clisp.org>
57296
57297         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57298         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57299         * doc/posix-functions/perror.texi: Likewise.
57300         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57301         is missing.
57302         Reported by Eric Blake.
57303
57304         * lib/errno.in.h: Use replacement values >= 2000.
57305         Reported by Eric Blake.
57306
57307 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57308
57309         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57310         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57311         limit.
57312         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57313         compareseq was aborted.
57314
57315 2008-09-14  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57318         yvec_edit_count.
57319         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57320         (fstrcmp_bounded): Simplify result computation accordingly.
57321
57322 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57323
57324         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57325         (fstrcmp): Define in terms of fstrcmp_bounded.
57326         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57327         lower_bound argument.
57328         Return quickly if the result is certainly < lower_bound.
57329         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57330
57331 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57332
57333         * lib/diffseq.h (EARLY_ABORT): New macro.
57334         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57335         evaluates to true.
57336
57337 2008-09-14  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/perror-tests: New file.
57340         * tests/test-perror.sh: New file.
57341         * tests/test-perror.c: New file.
57342
57343         New module 'perror'.
57344         * lib/stdio.in.h (perror): New declaration.
57345         * lib/perror.c: New file.
57346         * m4/perror.m4: New file.
57347         * modules/perror: New file.
57348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57349         * doc/posix-functions/perror.texi: Mention the perror module.
57350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57351         REPLACE_PERROR.
57352         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57353         REPLACE_PERROR.
57354
57355 2008-09-14  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/stdio (Makefile.am): Reorder to match the order in
57358         lib/stdio.in.h.
57359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57360
57361 2008-09-13  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57364
57365 2008-09-13  Bruno Haible  <bruno@clisp.org>
57366
57367         Extend strerror to cover the added errno values.
57368         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57369         (rpl_strerror): Provide error messages for the added errno values and
57370         for the WSA* values.
57371         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57372         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57373         strerror.
57374         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57375         * modules/strerror (Depends-on): Add errno.
57376         * doc/posix-functions/strerror.texi: Document the change.
57377         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57378         and EOVERFLOW.
57379
57380 2008-09-13  Bruno Haible  <bruno@clisp.org>
57381
57382         * modules/EOVERFLOW: Remove file.
57383         * m4/eoverflow.m4: Remove file.
57384         * modules/EOVERFLOW-tests: Remove file.
57385         * tests/test-EOVERFLOW.c: Remove file.
57386         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57387         * modules/ftell (Depends-on): Likewise.
57388         * modules/getdelim (Depends-on): Likewise.
57389         * modules/getugroups (Depends-on): Likewise.
57390         * modules/poll (Depends-on): Likewise.
57391         * modules/snprintf (Depends-on): Likewise.
57392         * modules/sprintf-posix (Depends-on): Likewise.
57393         * modules/vasnprintf (Depends-on): Likewise.
57394         * modules/vasprintf (Depends-on): Likewise.
57395         * modules/vfprintf-posix (Depends-on): Likewise.
57396         * modules/vsnprintf (Depends-on): Likewise.
57397         * modules/vsprintf-posix (Depends-on): Likewise.
57398         * modules/xvasprintf (Depends-on): Likewise.
57399         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57400         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57401         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57402         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57403         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57404         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57405         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57406         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57407         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57408         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57409         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57410         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57411         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57412         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57413         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57414         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57415         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57416         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57417         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57418         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57419         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57420         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57421         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57422         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57423         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57424         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57425         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57426         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57427         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57428         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57429         * MODULES.html.sh: Remove EOVERFLOW.
57430         * NEWS: Mention the change.
57431
57432 2008-09-13  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/errno-tests: New file.
57435         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57436
57437         * lib/errno.in.h: New file.
57438         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57439         * modules/errno: New file.
57440         * doc/posix-headers/errno.texi: Update documentation.
57441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57442
57443 2008-09-13  Bruno Haible  <bruno@clisp.org>
57444
57445         * tests/test-poll.c: Use #if for native Windows, rather than testing
57446         __MSVCRT__.
57447
57448 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57449             Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/glob.c: Don't include <pwd.h> on native Windows.
57452         (WINDOWS32): New macro.
57453         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57454
57455 2008-09-13  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57458         (ETIMEDOUT): Remove macro.
57459         (glthread_cond_timedwait_multithreaded): New declaration.
57460         (glthread_cond_timedwait): Use it.
57461         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57462         (glthread_cond_timedwait_multithreaded): New function.
57463
57464 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57465
57466         * modules/poll-tests: Do not check for io.h.
57467         * tests/test-poll.c: Check for __MSVCRT__ instead.
57468
57469 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57470
57471         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57472         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57473         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57474
57475 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57476
57477         * modules/poll-tests: New.
57478         * tests/test-poll.c: New.
57479
57480 2008-09-12  Eric Blake  <ebb9@byu.net>
57481
57482         frexp: test for NetBSD failure on -0.0
57483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57484         not all, bugs from NetBSD 3.0 have been fixed.
57485         * doc/posix-functions/frexp.texi (frexp): Document bug.
57486         Reported by Thomas Klausner.
57487
57488         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57489         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57490         literal -0.0.
57491         Reported by Jonathan C. Patschke <jp@centtech.com>.
57492
57493 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57494
57495         * lib/glthread/cond.h: Use dummy implementation also if
57496         USE_WIN32_THREADS.
57497
57498 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57499
57500         * modules/fnmatch-posix (License): Change to LGPLv2+.
57501         * modules/fnmatch-gnu (License): Likewise.
57502
57503 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57504
57505         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57506
57507 2008-09-11  Jim Meyering  <meyering@redhat.com>
57508
57509         * users.txt: Add gtk-vnc.
57510
57511 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57512
57513         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57514         rotate amounts.
57515
57516         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57517         required for 16-bit and 8-bit rotates.
57518         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57519         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57520         UINT8_MAX instead of hard-coded constants.
57521         Suggested by Paul Eggert.
57522
57523 2008-09-07  Bruno Haible  <bruno@clisp.org>
57524
57525         * tests/test-striconveh.c (main): Check behaviour when converting from
57526         UTF-7.
57527
57528         Make striconveh work better with stateful encodings.
57529         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57530         that iconv does not increment the inptr when returning -1/EINVAL.
57531
57532 2008-09-07  Bruno Haible  <bruno@clisp.org>
57533
57534         * build-aux/config.rpath: Update according to libtool-2.2.6.
57535         * build-aux/config.libpath: Likewise.
57536
57537 2008-09-06  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57540         * lib/freadptr.c (freadptr): Likewise.
57541         * lib/freadseek.c (freadptrinc): Likewise.
57542         Reported by Simon Josefsson.
57543
57544 2008-09-06  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/freadptr (License): Change to LGPLv2+.
57547         * modules/freadseek (License): Likewise.
57548         Suggested by Eric Blake.
57549
57550         * modules/memchr2 (License): Change to LGPLv2+.
57551         Approved by Eric Blake.
57552
57553 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57554             Bruno Haible  <bruno@clisp.org>
57555
57556         Make gnulib-tool work with native 'sed' on AIX.
57557         * gnulib-tool (sed_noop): New variable.
57558         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57559         func_add_or_update, func_create_testdir): Use it to initialize sed
57560         script variables.
57561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57562
57563 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57564             Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57567         also works after #include directives.
57568
57569 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57570
57571         getdate.y: reject an out-of-range timezone value
57572         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57573         the range [-24...+24].  When specified with only one or two digits,
57574         * tests/test-getdate.c: Tests for the fix.
57575         * doc/getdate.texi: Document this change.
57576
57577 2008-09-03  Bruno Haible  <bruno@clisp.org>
57578
57579         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57580
57581 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57582
57583         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57584         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57585         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57586         Blake <ebb9@byu.net>.
57587
57588         * tests/test-bitrotate.c: Add more test vectors.
57589
57590 2008-09-02  Eric Blake  <ebb9@byu.net>
57591
57592         vasnprintf-posix: handle large precision via %.*d
57593         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57594         when handling it ourselves.
57595         * tests/test-vasnprintf-posix.c (test_function): Add test.
57596         * tests/test-snprintf-posix.h (test_function): Likewise.
57597         * tests/test-sprintf-posix.h (test_function): Likewise.
57598         * tests/test-vasprintf-posix.c (test_function): Likewise.
57599         Reported by Alain Guibert.
57600
57601 2008-09-01  Eric Blake  <ebb9@byu.net>
57602
57603         c-stack: make configure-time check more robust
57604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57605         successful sigaction call.
57606         Reported by Tom G. Christensen.
57607
57608 2008-09-01  Bruno Haible  <bruno@clisp.org>
57609
57610         New module 'findprog-lgpl'.
57611         * modules/findprog-lgpl: New file.
57612         * lib/findprog-lgpl.c: New file.
57613         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57614         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57615         to decide whether to use strdup or xstrdup, concatenated_filename or
57616         xconcatenated_filename.
57617
57618 2008-09-01  Bruno Haible  <bruno@clisp.org>
57619
57620         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57621         'xconcat-filename' (GPL).
57622         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57623         (License): Change to LGPLv2+.
57624         * modules/xconcat-filename: New file.
57625         * lib/concat-filename.h (concatenated_filename): Change specification.
57626         (xconcatenated_filename): New declaration.
57627         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57628         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57629         memory situations.
57630         * lib/xconcat-filename.c: New file.
57631         * NEWS: Mention the change.
57632         * lib/findprog.c: Include concat-filename.h, not filename.h.
57633         (find_in_path): Use xconcatenated_filename instead of
57634         concatenated_filename.
57635         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57636         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57637         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57638         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57639         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57640         instead of concatenated_filename.
57641         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57642         (execute_java_class): Use xconcatenated_filename instead of
57643         concatenated_filename.
57644         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57645         * modules/javacomp (Depends-on): Likewise.
57646         * modules/javaexec (Depends-on): Likewise.
57647
57648 2008-09-01  Bruno Haible  <bruno@clisp.org>
57649
57650         Split module 'filename' into 'filename' and 'concat-filename'.
57651         * modules/filename: Keep only lib/filename.h.
57652         (License): Change to LGPLv2+.
57653         * modules/concat-filename: New file, extracted from modules/filename.
57654         * lib/filename.h (concatenated_filename): Remove declaration.
57655         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57656         * lib/concat-filename.c: Include concat-filename.h.
57657         * NEWS: Mention the change.
57658
57659 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57660
57661         * lib/bitrotate.h (rotl8, rotr8): Add.
57662
57663         * modules/bitrotate (configure.ac): Need
57664         AC_REQUIRE([AC_C_INLINE]).
57665         (Description): Mention stdint.h.  Reported by Bruno Haible
57666         <bruno@clisp.org>.
57667
57668         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57669         Paolo Bonzini <bonzini@gnu.org>.
57670
57671 2008-08-31  Bruno Haible  <bruno@clisp.org>
57672
57673         Assume Solaris specific bi-arch conventions on Solaris systems.
57674         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57675         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57677         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57678         like acl_libdirstem.
57679         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57680         acl_libdirstem.
57681         * NEWS: Mention the change.
57682         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57683
57684 2008-08-31  Jim Meyering  <meyering@redhat.com>
57685
57686         * lib/strftime.h: Add comments describing the two added arguments.
57687
57688         remove duplicate #include directives
57689         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57690         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57691
57692 2008-08-31  Bruno Haible  <bruno@clisp.org>
57693
57694         New module 'sigpipe-die'.
57695         * modules/sigpipe-die: New file.
57696         * lib/sigpipe-die.h: New file.
57697         * lib/sigpipe-die.c: New file.
57698         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57699
57700 2008-08-31  Bruno Haible  <bruno@clisp.org>
57701
57702         Don't override previously installed signal handlers.
57703         * lib/fatal-signal.c (saved_sigactions): New variable.
57704         (uninstall_handlers): Reset the signal to the saved handler, not
57705         to SIG_DFL (except when ignored).
57706         (install_handlers): Save the previous handlers.
57707
57708 2008-08-30  Bruno Haible  <bruno@clisp.org>
57709
57710         * gnulib-tool (func_reset_sigpipe): New function.
57711         (func_get_automake_snippet, func_modules_transitive_closure,
57712         func_import): Invoke it before a join command that reads from stdin,
57713         to avoid "echo: write error: Broken pipe" error messages on stderr.
57714         Reported by Sam Steingold <sds@gnu.org>.
57715
57716 2008-08-30  Bruno Haible  <bruno@clisp.org>
57717
57718         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57719         Code copied from m4/open.m4.
57720         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57721         access and the filename ends in a slash. Code copied from lib/open.c.
57722         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57723         * tests/test-fopen.c (main): Check against bug with trailing slash.
57724
57725 2008-08-29  Bruno Haible  <bruno@clisp.org>
57726
57727         Avoid some "gcc -pedantic" warnings.
57728         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57729         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57730         * lib/dirent.in.h: Likewise.
57731         * lib/fcntl.in.h: Likewise.
57732         * lib/float.in.h: Likewise.
57733         * lib/iconv.in.h: Likewise.
57734         * lib/inttypes.in.h: Likewise.
57735         * lib/locale.in.h: Likewise.
57736         * lib/math.in.h: Likewise.
57737         * lib/netinet_in.in.h: Likewise.
57738         * lib/search.in.h: Likewise.
57739         * lib/signal.in.h: Likewise.
57740         * lib/stdarg.in.h: Likewise.
57741         * lib/stdint.in.h: Likewise.
57742         * lib/stdio.in.h: Likewise.
57743         * lib/stdlib.in.h: Likewise.
57744         * lib/string.in.h: Likewise.
57745         * lib/strings.in.h: Likewise.
57746         * lib/sys_select.in.h: Likewise.
57747         * lib/sys_socket.in.h: Likewise.
57748         * lib/sys_stat.in.h: Likewise.
57749         * lib/sys_time.in.h: Likewise.
57750         * lib/sysexits.in.h: Likewise.
57751         * lib/time.in.h: Likewise.
57752         * lib/unistd.in.h: Likewise.
57753         * lib/wchar.in.h: Likewise.
57754         * lib/wctype.in.h: Likewise.
57755         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57756         * modules/fchdir (Makefile.am): Likewise.
57757         * modules/fcntl (Makefile.am): Likewise.
57758         * modules/float (Makefile.am): Likewise.
57759         * modules/iconv_open (Makefile.am): Likewise.
57760         * modules/inttypes (Makefile.am): Likewise.
57761         * modules/locale (Makefile.am): Likewise.
57762         * modules/math (Makefile.am): Likewise.
57763         * modules/netinet_in (Makefile.am): Likewise.
57764         * modules/search (Makefile.am): Likewise.
57765         * modules/signal (Makefile.am): Likewise.
57766         * modules/stdarg (Makefile.am): Likewise.
57767         * modules/stdint (Makefile.am): Likewise.
57768         * modules/stdio (Makefile.am): Likewise.
57769         * modules/stdlib (Makefile.am): Likewise.
57770         * modules/string (Makefile.am): Likewise.
57771         * modules/strings (Makefile.am): Likewise.
57772         * modules/sys_select (Makefile.am): Likewise.
57773         * modules/sys_socket (Makefile.am): Likewise.
57774         * modules/sys_stat (Makefile.am): Likewise.
57775         * modules/sys_time (Makefile.am): Likewise.
57776         * modules/sysexits (Makefile.am): Likewise.
57777         * modules/time (Makefile.am): Likewise.
57778         * modules/unistd (Makefile.am): Likewise.
57779         * modules/wchar (Makefile.am): Likewise.
57780         * modules/wctype (Makefile.am): Likewise.
57781         Reported by Reuben Thomas <rrt@sc3d.org>.
57782
57783 2008-08-29  Bruno Haible  <bruno@clisp.org>
57784
57785         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57786         any more.
57787
57788 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57789
57790         * MODULES.html.sh (Misc): Add bitrotate.
57791
57792         * modules/bitrotate: New file.
57793
57794         * lib/bitrotate.h: New file.
57795
57796         * modules/bitrotate-tests: New file.
57797
57798         * tests/test-bitrotate.c: New file.
57799
57800         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57801         on the bitrotate module.
57802
57803         * lib/arctwo.c: Use new bitrotate module.
57804
57805 2008-08-29  Jim Meyering  <meyering@redhat.com>
57806
57807         bootstrap: merge changes from coreutils
57808         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57809         of copied files.  Remove a kludge, now that this is fixed.
57810         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57811         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57812         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57813
57814 2008-08-29  Bruno Haible  <bruno@clisp.org>
57815
57816         * MODULES.html.sh: Remove --cvs-urls option.
57817
57818 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57819
57820         maint.mk: adjust to file name change
57821         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57822
57823 2008-08-28  Jim Meyering  <meyering@redhat.com>
57824
57825         * modules/getndelim2 (License): Relicense to LGPLv2+.
57826         Approved by Richard Stallman for the version of 1995, and by
57827         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57828
57829 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57830
57831         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57832         dummy if one is not available.  Do not touch them if
57833         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57834         (getc_maybe_unlocked): New.
57835         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57836
57837 2008-08-26  Eric Blake  <ebb9@byu.net>
57838
57839         doc/INSTALL: resync from autoconf
57840         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57841         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57842         moving...
57843         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57844         * INSTALL: Regenerate.
57845         * INSTALL.ISO: New file.
57846         * INSTALL.UTF-8: Likewise.
57847
57848 2008-08-26  Jim Meyering  <meyering@redhat.com>
57849
57850         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57851         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57852         these definitions conditional, so that they may be overridden, too.
57853
57854 2008-08-26  Bruno Haible  <bruno@clisp.org>
57855
57856         Generate INSTALL file variants with prettier quotes.
57857         * doc/Makefile (INSTALL_PRELUDE): New macro.
57858         (INSTALL): Use it.
57859         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57860
57861 2008-08-26  Bruno Haible  <bruno@clisp.org>
57862
57863         Run makeinfo in an English locale.
57864         * doc/Makefile (MAKEINFO): New variable.
57865
57866 2008-08-26  Bruno Haible  <bruno@clisp.org>
57867
57868         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57869         Suggested by Eric Blake.
57870
57871 2008-08-25  Bruno Haible  <bruno@clisp.org>
57872
57873         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57874
57875 2008-08-25  Eric Blake  <ebb9@byu.net>
57876
57877         c-stack: test that stack overflow can be caught
57878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57879         that platform allows handling stack overflow; at least OS/2 EMX
57880         has sigaltstack, but crashes before transferring control to
57881         handler on stack overflow.
57882         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57883         check for HAVE_STACK_OVERFLOW_HANDLING.
57884         Reported by Elbert Pol.
57885
57886 2008-08-25  Bruno Haible  <bruno@clisp.org>
57887
57888         * doc/posix-functions/strftime.texi: Fix description of strftime
57889         module.
57890
57891 2008-08-24  Bruno Haible  <bruno@clisp.org>
57892
57893         * tests/uniwidth/test-uc_width2.c: New file.
57894         * tests/uniwidth/test-uc_width2.sh: New file.
57895         * modules/uniwidth/width-tests (Files): Add the new files.
57896         (TESTS): Add uniwidth/test-uc_width2.sh.
57897         (TESTS_ENVIRONMENT): New variable.
57898         (check_PROGRAMS): Add test-uc_width2.
57899         (test_uc_width2_SOURCES): New variable.
57900
57901         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57902         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57903         not 0x00AB.
57904         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57905
57906 2008-08-22  Eric Blake  <ebb9@byu.net>
57907
57908         test-lock, test-tls: mention why a test is skipped
57909         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57910         skipped.
57911         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57912
57913         count-one-bits: relax license
57914         * modules/count-one-bits (License): Relicense to LGPLv2+.
57915         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57916
57917 2008-08-22  Andreas Schwab  <schwab@suse.de>
57918
57919         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57920         Remove spurious space in assignment.
57921
57922 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57923
57924         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57925         Paul Eggert <eggert@CS.UCLA.EDU>.
57926
57927 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57928
57929         * modules/gettext: Add m4/threadlib.m4.
57930
57931 2008-08-19  Eric Blake  <ebb9@byu.net>
57932
57933         test-c-stack: fix compilation failure on FreeBSD 5.0
57934         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57935         headers before <sys/resource.h>.
57936         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57937         the bug.
57938         Reported by Nelson H. F. Beebe.
57939
57940         strverscmp: migrate from "strverscmp.h" to <string.h>
57941         * modules/string (Makefile.am): Add new hooks.
57942         * modules/strverscmp (Files): Remove strverscmp.h.
57943         (Depends-on): Add string.
57944         (configure.ac): Add indicator.
57945         (Include): Mention new header.
57946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57947         defaults.
57948         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57949         results.
57950         * lib/strverscmp.h: Delete.
57951         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57952         * tests/test-strverscmp.c (includes): Adjust client.
57953         * lib/check-version.c (includes): Likewise.
57954         * NEWS: Document the change.
57955
57956         strverscmp: add unit test
57957         * modules/strverscmp-tests: New file.
57958         * tests/test-strverscmp.c: Likewise.
57959
57960 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57961
57962         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57963         regarding Windows crypto stuff, from Mono.
57964
57965 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57966
57967         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57968         if present, for intel RND.  Return error on failures.
57969
57970 2008-08-18  Ben Pfaff  <blp@gnu.org>
57971
57972         gitlog-to-changelog: give better diagnostic for failed pipe-open
57973         * build-aux/gitlog-to-changelog: Improve error message: suggest
57974         that the version of Git may be too old.
57975
57976 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57977
57978         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57979         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57980
57981 2008-08-18  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57984         pthread_in_use().
57985
57986 2008-08-18  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/glthread/threadlib.c: Include <pthread.h>.
57989
57990 2008-08-18  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57993         glthread_recursive_lock_* macros.
57994         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57995         Fix syntax error.
57996
57997 2008-08-18  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/glthread/thread.c: Avoid forcing a context switch right after
58000         thread creation.
58001
58002 2008-08-17  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58005         * lib/glthread/thread.h: Provide Win32 specific implementation.
58006         * modules/thread (Files): Add lib/glthread/thread.c.
58007         (Depends-on): Add lock.
58008         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58009
58010 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58011
58012         New module 'yield'.
58013         * modules/yield: New file.
58014         * lib/glthread/yield.h: New file.
58015         * m4/yield.m4: New file.
58016         * MODULES.html.sh (Multithreading): Add yield.
58017
58018 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58019
58020         New module 'thread'.
58021         * modules/thread: New file.
58022         * lib/glthread/thread.h: New file.
58023         * m4/thread.m4: New file.
58024         * MODULES.html.sh (Multithreading): Add thread.
58025
58026 2008-08-17  Bruno Haible  <bruno@clisp.org>
58027
58028         * lib/glthread/lock.h: Include <stdlib.h> always.
58029         * lib/glthread/tls.h: Likewise.
58030         * lib/glthread/cond.h: Likewise.
58031
58032 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58033
58034         New module 'cond'.
58035         * modules/cond: New file.
58036         * lib/glthread/cond.h: New file.
58037         * lib/glthread/cond.c: New file.
58038         * m4/cond.m4: New file.
58039         * MODULES.html.sh (Multithreading): Add cond.
58040
58041 2008-08-16  Eric Blake  <ebb9@byu.net>
58042
58043         c-stack: fix regression on Irix 5.3 from 2008-06-21
58044         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58045         sa_sigaction...
58046         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58047         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58048         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58049         * modules/signal (Makefile.am): Use the value.
58050         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58051         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58052         * doc/posix-headers/signal.texi (signal.h): Document this
58053         portability issue.
58054         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58055         Reported by Tom G. Christensen.
58056
58057 2008-08-17  Bruno Haible  <bruno@clisp.org>
58058
58059         New module 'threadlib'.
58060         * modules/threadlib: New file.
58061         * lib/glthread/threadlib.c: New file, extracted from
58062         lib/glthread/lock.c.
58063         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58064         functions.
58065         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58066         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58067         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58068         macros.
58069         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58070         (gl_DISABLE_THREADS): Remove macro.
58071         * modules/lock (Files): Remove build-aux/config.rpath.
58072         (Depends-on): Remove havelib. Add threadlib.
58073         (configure.ac-early): Remove section.
58074         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58075         * modules/tls (Depends-on): Remove lock. Add threadlib.
58076         (Link): New section, copied from threadlib.
58077         * MODULES.html.sh (Multithreading): Add threadlib.
58078
58079 2008-08-14  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58082         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58083         glthread_rwlock_unlock, glthread_rwlock_destroy,
58084         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58085         glthread_recursive_lock_destroy): Define as macros always.
58086         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58087         glthread_lock_lock.
58088         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58089         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58090         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58091         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58092         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58093         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58094         (glthread_recursive_lock_lock_func): Renamed from
58095         glthread_recursive_lock_lock.
58096         (glthread_recursive_lock_unlock_func): Renamed from
58097         glthread_recursive_lock_unlock.
58098         (glthread_recursive_lock_destroy_func): Renamed from
58099         glthread_recursive_lock_destroy.
58100
58101 2008-08-14  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/glthread/lock.h: Renamed from lib/lock.h.
58104         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58105         * lib/glthread/tls.h: Renamed from lib/tls.h.
58106         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58107         * lib/fstrcmp.c: Update includes.
58108         * lib/strsignal.c: Update includes.
58109         * modules/lock (Files, Makefile.am): Update.
58110         (Include): Change to "glthread/lock.h".
58111         * modules/tls (Files, Makefile.am): Update.
58112         (Include): Change to "glthread/tls.h".
58113         * tests/test-lock.c: Update includes.
58114         * tests/test-tls.c: Update includes.
58115         * NEWS: Mention the renamed header files.
58116
58117 2008-08-11  Jim Meyering  <meyering@redhat.com>
58118
58119         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58120
58121 2008-08-11  Eric Blake  <ebb9@byu.net>
58122
58123         test-c-stack: avoid C99-ism
58124         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58125         before statement.
58126         Reported by Alain Guibert.
58127
58128 2008-08-10  Jim Meyering  <meyering@redhat.com>
58129
58130         ensure that return value of uinttostr et al are not ignored
58131         * lib/inttostr.h (__GNUC_PREREQ): Define.
58132         (__attribute_warn_unused_result__): Define.
58133         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58134
58135 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58136
58137         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58138         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58139
58140 2008-08-07  Jim Meyering  <meyering@redhat.com>
58141
58142         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58143
58144         * modules/mkstemp (License): Relicense under LGPLv2+.
58145         * modules/tempname (License): Likewise.
58146
58147 2008-08-06  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/poll.c (poll): Further micro-optimization.
58150
58151 2008-08-06  Jim Meyering  <meyering@redhat.com>
58152
58153         inet_pton.c: use locale-independent tolower
58154         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58155         (inet_pton6): Use c_tolower rather than tolower.
58156         * modules/inet_pton (Depends-on): Add c-ctype.
58157
58158 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58159
58160         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58161         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58162
58163 2008-08-06  Jim Meyering  <meyering@redhat.com>
58164
58165         * modules/inet_pton (License): Relicense under LGPLv2+.
58166
58167 2008-08-03  Bruno Haible  <bruno@clisp.org>
58168
58169         Additional non-aborting API for lock and tls.
58170         * lib/lock.h: Include <errno.h>.
58171         (glthread_lock_init): New macro/function.
58172         (gl_lock_init): Define as wrapper around glthread_lock_init.
58173         (glthread_lock_lock): New macro/function.
58174         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58175         (glthread_lock_unlock): New macro/function.
58176         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58177         (glthread_lock_destroy): New macro/function.
58178         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58179         (glthread_rwlock_init): New macro/function.
58180         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58181         (glthread_rwlock_rdlock): New macro/function.
58182         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58183         (glthread_rwlock_wrlock): New macro/function.
58184         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58185         (glthread_rwlock_unlock): New macro/function.
58186         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58187         (glthread_rwlock_destroy): New macro/function.
58188         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58189         (glthread_recursive_lock_init): New macro/function.
58190         (gl_recursive_lock_init): Define as wrapper around
58191         glthread_recursive_lock_init.
58192         (glthread_recursive_lock_lock): New macro/function.
58193         (gl_recursive_lock_lock): Define as wrapper around
58194         glthread_recursive_lock_lock.
58195         (glthread_recursive_lock_unlock): New macro/function.
58196         (gl_recursive_lock_unlock): Define as wrapper around
58197         glthread_recursive_lock_unlock.
58198         (glthread_recursive_lock_destroy): New macro/function.
58199         (gl_recursive_lock_destroy): Define as wrapper around
58200         glthread_recursive_lock_destroy.
58201         (glthread_once): New macro/function.
58202         (gl_once): Define as wrapper around glthread_once.
58203         Update function declarations.
58204         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58205         glthread_rwlock_init. Return error code.
58206         (glthread_rwlock_rdlock_multithreaded): Renamed from
58207         glthread_rwlock_rdlock. Return error code.
58208         (glthread_rwlock_wrlock_multithreaded): Renamed from
58209         glthread_rwlock_wrlock. Return error code.
58210         (glthread_rwlock_unlock_multithreaded): Renamed from
58211         glthread_rwlock_unlock. Return error code.
58212         (glthread_rwlock_destroy_multithreaded): Renamed from
58213         glthread_rwlock_destroy. Return error code.
58214         (glthread_recursive_lock_init_multithreaded): Renamed from
58215         glthread_recursive_lock_init. Return error code.
58216         (glthread_recursive_lock_lock_multithreaded): Renamed from
58217         glthread_recursive_lock_lock. Return error code.
58218         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58219         glthread_recursive_lock_unlock. Return error code.
58220         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58221         glthread_recursive_lock_destroy. Return error code.
58222         (glthread_once_call): Make static.
58223         (glthread_once_multithreaded): Renamed from glthread_once.
58224         * lib/tls.h: Include <errno.h>.
58225         (glthread_tls_key_init): New macro/function.
58226         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58227         (glthread_tls_set): New macro/function.
58228         (gl_tls_set): Define as wrapper around glthread_tls_set.
58229         (glthread_tls_key_destroy): New macro/function.
58230         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58231         Update function declarations.
58232         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58233         glthread_tls_get.
58234         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58235
58236 2008-08-04  Eric Blake  <ebb9@byu.net>
58237
58238         gnumakefile: use space, not TAB, outside of targets
58239         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58240
58241 2008-08-02  Jim Meyering  <meyering@redhat.com>
58242
58243         getdate.y: avoid locale-dependent date parsing failure
58244         In Turkish locales, getdate would fail to recognize keywords
58245         containing a lowercase "i".  The solution is not to rely on
58246         locale-sensitive case-conversion.
58247         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58248         (lookup_word): Use c_toupper in place of toupper.
58249         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58250         Reported by Vefa Bicakci <bicave@superonline.com> in
58251         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58252         * modules/getdate (Depends-on): Add c-ctype.
58253
58254 2008-08-02  Bruno Haible  <bruno@clisp.org>
58255
58256         * gnulib-tool (func_import): When updating or creating a .gitignore
58257         file, prepend each added line with a slash, and ignore leading slashes
58258         from the existing lines.
58259         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58260
58261 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58262
58263         Portability fix for GNU make 3.79.1.
58264         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58265         versions do not understand.
58266
58267 2008-08-01  Bruno Haible  <bruno@clisp.org>
58268
58269         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58270         * tests/test-isnanf.h (zero): New variable.
58271         (main): Avoid literal -0.0f.
58272         * tests/test-isnand.h (zero): New variable.
58273         (main): Avoid literal -0.0.
58274         * tests/test-isnanl.h (zero): New variable.
58275         (main): Avoid literal -0.0L.
58276         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58277         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58278         -0.0, -0.0L.
58279         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58280         (test_signbitd): Avoid literal -0.0.
58281         (test_signbitl): Avoid literal -0.0L.
58282         * tests/test-ceilf1.c (zero): New variable.
58283         (main): Avoid literal -0.0f.
58284         * tests/test-ceill.c (zero): New variable.
58285         (main): Avoid literal -0.0L.
58286         * tests/test-floorf1.c (zero): New variable.
58287         (main): Avoid literal -0.0f.
58288         * tests/test-floorl.c (zero): New variable.
58289         (main): Avoid literal -0.0L.
58290         * tests/test-roundf1.c (zero): New variable.
58291         (main): Avoid literal -0.0f.
58292         * tests/test-round1.c (zero): New variable.
58293         (main): Avoid literal -0.0.
58294         * tests/test-roundl.c (zero): New variable.
58295         (main): Avoid literal -0.0L.
58296         * tests/test-truncf1.c (zero): New variable.
58297         (main): Avoid literal -0.0f.
58298         * tests/test-trunc1.c (zero): New variable.
58299         (main): Avoid literal -0.0.
58300         * tests/test-truncl.c (zero): New variable.
58301         (main): Avoid literal -0.0L.
58302         * tests/test-frexp.c (zero): New variable.
58303         (main): Avoid literal -0.0.
58304         * tests/test-frexpl.c (zero): New variable.
58305         (main): Avoid literal -0.0L.
58306         * tests/test-ldexpl.c (zero): New variable.
58307         (main): Avoid literal -0.0L.
58308         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58309         (zerod, zerol): New variables.
58310         (test_function): Avoid literals -0.0, -0.0L.
58311         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58312         (zerod, zerol): New variables.
58313         (test_function): Avoid literals -0.0, -0.0L.
58314         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58315         (zerod, zerol): New variables.
58316         (test_function): Avoid literals -0.0, -0.0L.
58317         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58318         (zerod, zerol): New variables.
58319         (test_function): Avoid literals -0.0, -0.0L.
58320         * tests/test-strtod.c (zero): New variable.
58321         (main): Avoid literal -0.0.
58322         Reported by Jonathan C. Patschke <jp@centtech.com>.
58323
58324 2008-07-31  Jim Meyering  <meyering@redhat.com>
58325
58326         sha256.h: correct definition of SHA224_DIGEST_SIZE
58327         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58328         Reported by Paulie Pena IV <paulie4@gmail.com>.
58329         Define as 224 / 8, rather than as a literal.
58330         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58331         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58332         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58333
58334 2008-07-31  Bruno Haible  <bruno@clisp.org>
58335
58336         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58337         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58338         Reported by Jonathan Patschke <jp@centtech.com>.
58339
58340 2008-07-31  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58343         Reported by Paolo Bonzini <bonzini@gnu.org>.
58344
58345 2008-07-30  Eric Blake  <ebb9@byu.net>
58346
58347         test-strtod: allow compilation without -lm
58348         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58349         Reported by Dennis Clarke <blastwave@gmail.com>.
58350
58351 2008-07-28  Jim Meyering  <meyering@redhat.com>
58352
58353         bootstrap: work also when there are no .po files in po/
58354         * build-aux/bootstrap (update_po_files): Complete the change
58355         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58356
58357 2008-07-27  Jim Meyering  <meyering@redhat.com>
58358
58359         * users.txt: Add zile.
58360
58361 2008-07-26  Ben Pfaff  <blp@gnu.org>
58362
58363         Add missing dependencies on new m4/exponent[fdl].m4 files.
58364         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58365         * modules/isnand-nolibm: Add m4/exponentd.m4.
58366         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58367         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58368         m4/isnan[fdl].m4, because the macros actually used moved.
58369         Reported by Jim Meyering.
58370
58371 2008-07-14  Ben Pfaff  <blp@gnu.org>
58372
58373         Add isinf module.
58374         * lib/isinf.c: New file.
58375         * lib/math.in.h: Define isinf macro if we have decided to replace
58376         it.
58377         * m4/isinf.m4: New file.
58378         * m4/math_h.m4: Initialize and substitute variables for isinf
58379         module.
58380         * modules/isinf: New file.
58381         * modules/isinf-tests: New file.
58382         * modules/math: Add substitutions for new module.
58383         * tests/test-isinf.c: New file.
58384         * doc/posix-functions/isinf.texi: Mention new module.
58385         * MODULES.html.sh: Mention new module.
58386
58387 2008-07-14  Ben Pfaff  <blp@gnu.org>
58388
58389         Factor out some macros for use by additional modules.
58390         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58391         exponentf.m4.
58392         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58393         exponentd.m4.
58394         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58395         file exponentl.m4.
58396         * m4/exponentf.m4: New file.
58397         * m4/exponentd.m4: New file.
58398         * m4/exponentl.m4: New file.
58399         * modules/isnanf: Use new file m4/exponentf.m4.
58400         * modules/isnand: Use new file m4/exponentd.m4.
58401         * modules/isnanl: Use new file m4/exponentl.m4.
58402
58403 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58404
58405         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58406         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58407         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58408         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58409
58410         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58411         readlink on platforms without PATH_MAX.
58412
58413 2008-07-21  Eric Blake  <ebb9@byu.net>
58414
58415         Warn, not fail, on stale version.
58416         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58417
58418         Don't allow installation with stale devel version number.
58419         * top/GNUmakefile (_is-install-target): New macro.
58420         (_curr-ver): Forbid installation with stale version number.
58421
58422 2008-07-20  Bruno Haible  <bruno@clisp.org>
58423
58424         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58425         TESTS_ENVIRONMENT.
58426         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58427
58428 2008-07-20  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/c-stack.h (c_stack_action): Add documentation.
58431         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58432
58433 2008-07-20  Bruno Haible  <bruno@clisp.org>
58434
58435         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58436         * modules/readlink (License): Likewise.
58437
58438 2008-07-17  Eric Blake  <ebb9@byu.net>
58439
58440         * modules/c-stack (Link): Fix typo.
58441
58442         Make c-stack use libsigsegv, when available.
58443         * modules/c-stack (Depends-on): Add libsigsegv.
58444         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58445         needed.
58446         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58447         (segv_handler, overflow_handler, c_stack_action)
58448         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58449         implementation when libsigsegv is available, but only when using
58450         the library is necessary.
58451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58452         comment, explaining why XSI check fails on Linux.
58453         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58454         * tests/test-c-stack2.sh: Tweak skip message.
58455         * NEWS: Document new link-time requirements.
58456
58457 2008-07-16  Eric Blake  <ebb9@byu.net>
58458
58459         c-stack: Expose false positives when not using libsigsegv.
58460         * modules/c-stack-tests (Files): Expand test.
58461         * tests/test-c-stack.c (main): Add means to conditionally trigger
58462         non-overflow SIGSEGV.
58463         * tests/test-c-stack2.sh: New file.
58464
58465 2008-07-14  Bruno Haible  <bruno@clisp.org>
58466
58467         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58468         Reported by Eric Blake.
58469
58470 2008-07-14  Sam Steingold  <sds@gnu.org>
58471             Bruno Haible  <bruno@clisp.org>
58472
58473         New module libsigsegv.
58474         * modules/libsigsegv: New file.
58475         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58476         modifications.
58477         * MODULES.html.sh (Signal handling): New section.
58478
58479 2008-07-14  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/unictype/ctype-* (Description): Add the word "function".
58482         Improves the resulting doc in MODULES.html.
58483
58484 2008-07-12  Ben Pfaff  <blp@gnu.org>
58485
58486         Add longlong module.
58487         * modules/longlong: New file.
58488
58489 2008-07-12  Bruno Haible  <bruno@clisp.org>
58490
58491         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58492         to empty.
58493
58494 2008-07-10  Ben Pfaff  <blp@gnu.org>
58495
58496         Add isnan module.
58497         * doc/posix-functions/isnan.texi: Mention new module.
58498         * lib/math.in.h: Define isnan macro if we have decided to replace
58499         it.
58500         * m4/isnan.m4: New file.
58501         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58502         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58503         also.
58504         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58505         redundancy.
58506         * m4/math_h.m4: Initialize and substitute variables for isnan
58507         module.
58508         * modules/isnan: New file.
58509         * modules/isnan-tests: New file.
58510         * modules/math: Add substitutions for new module.
58511         * tests/test-isnan.c: New file.
58512         * MODULES.html.sh: Mention new module.
58513
58514 2008-07-10  Ben Pfaff  <blp@gnu.org>
58515
58516         Add isnanf module.
58517         * lib/isnanf.m4: New file.
58518         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58519         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58520         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58521         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58522         * modules/isnanf: New file.
58523         * modules/isnanf-tests: New file.
58524         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58525         files.
58526         * tests/test-isnanf-nolibm.c: factored most of its contents into
58527         new file tests/test-isnanf.h.
58528         * tests/test-isnanf.h: New file.
58529         * tests/test-isnanf.c: New file.
58530         * MODULES.html.sh: Mention new module.
58531         * doc/glibc-functions/isnanf.texi: Mention new module.
58532
58533 2008-07-10  Ben Pfaff  <blp@gnu.org>
58534
58535         Add isnand module.
58536         * lib/isnand.h: New file.
58537         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58538         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58539         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58540         functionality also.
58541         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58542         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58543         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58544         * modules/isnand: New file.
58545         * modules/isnand-tests: New file.
58546         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58547         files.
58548         * tests/test-isnand-nolibm.c: factored most of its contents into
58549         new file tests/test-isnand.h.
58550         * tests/test-isnand.h: New file.
58551         * tests/test-isnand.c: New file.
58552         * MODULES.html.sh: Mention new module.
58553
58554 2008-07-10  Ben Pfaff  <blp@gnu.org>
58555
58556         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58557         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58558         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58559         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58560         * modules/isnanf-nolibm: Update references to renamed files.
58561         * modules/isnand-nolibm: Likewise.
58562         * modules/isnanf-nolibm-tests: Likewise.
58563         * modules/isnand-nolibm-tests: Likewise.
58564         * lib/frexp.c: Likewise.
58565         * lib/isfinite.c: Likewise.
58566         * lib/signbitd.c: Likewise.
58567         * lib/signbitf.c: Likewise.
58568         * lib/vasnprintf.c: Likewise.
58569         * tests/test-ceilf1.c: Likewise.
58570         * tests/test-ceilf2.c: Likewise.
58571         * tests/test-floorf1.c: Likewise.
58572         * tests/test-floorf2.c: Likewise.
58573         * tests/test-frexp.c: Likewise.
58574         * tests/test-round1.c: Likewise.
58575         * tests/test-round2.c: Likewise.
58576         * tests/test-roundf1.c: Likewise.
58577         * tests/test-strtod.c: Likewise.
58578         * tests/test-trunc1.c: Likewise.
58579         * tests/test-trunc2.c: Likewise.
58580         * tests/test-truncf1.c: Likewise.
58581         * tests/test-truncf2.c: Likewise.
58582         * NEWS: Mention the renamed header files.
58583
58584 2008-07-11  Jim Meyering  <meyering@redhat.com>
58585
58586         vc-list-files: make the last-resort awk code more portable
58587         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58588         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58589         does not support it.
58590
58591 2008-07-10  Eric Blake  <ebb9@byu.net>
58592
58593         Work with tar's bootstrap.
58594         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58595         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58596         an m4 comment.
58597
58598 2008-07-09  Jim Meyering  <meyering@redhat.com>
58599
58600         posix-shell.m4: fix typo that made this test malfunction
58601         * m4/posix-shell.m4: Remove capitalization in variable name.
58602
58603 2008-07-08  Bruno Haible  <bruno@clisp.org>
58604
58605         * m4/onceonly.m4: Update comments.
58606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58607
58608 2008-07-04  Jim Meyering  <meyering@redhat.com>
58609
58610         * users.txt: Add vc-dwim.
58611         (bison, coreutils): Use the gitweb URL.
58612
58613 2008-07-03  Jim Meyering  <meyering@redhat.com>
58614
58615         * users.txt: Add libffcall.  From Sam Steingold.
58616
58617 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58618
58619         getdate.y: do not ignore TZ with relative day, month or year offset
58620         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58621         relative-date-handling, since otherwise, the latter would clobber the
58622         sole output (an updated Start value) of the tz-handling block.
58623         * tests/test-getdate.c: Tests for the fix
58624
58625 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58626
58627         Recognize 'foo_LIBRARIES += libgnu.a'.
58628         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58629         makefile snippet has already specified an installation location,
58630         also using '+='.
58631
58632 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58633
58634         getdate.y: factor out common actions
58635         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58636         Use them in place of open-coded actions.
58637
58638 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58639
58640         Add self-test for getdate module.
58641         * modules/getdate-tests: New file.
58642         * tests/test-getdate.c: New file.
58643
58644 2008-06-29  Bruno Haible  <bruno@clisp.org>
58645
58646         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58647         .gitignore.
58648         Reported by Sylvain Beucler <beuc@beuc.net>.
58649
58650 2008-06-29  Bruno Haible  <bruno@clisp.org>
58651
58652         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58653         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58654
58655 2008-06-29  Bruno Haible  <bruno@clisp.org>
58656
58657         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58658         EXTRA_DIST.
58659         Reported by Sylvain Beucler <beuc@beuc.net>.
58660
58661 2008-06-26  Jim Meyering  <meyering@redhat.com>
58662
58663         make several modules depend on the "open" module
58664         This provides slightly increased consistency when opening-for-write
58665         the name of a non-directory spelled with a trailing slash.
58666         * modules/chdir-safer: Likewise.
58667         * modules/chown: Likewise.
58668         * modules/clean-temp: Likewise.
58669         * modules/copy-file: Likewise.
58670         * modules/fchdir: Likewise.
58671         * modules/fcntl-safer: Likewise.
58672         * modules/pipe: Likewise.
58673         * modules/utime: Likewise.
58674         Prompted by Eric Blake and Bruno Haible.
58675
58676 2008-06-24  Andreas Schwab  <schwab@suse.de>
58677
58678         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58679         literals can be used as initializers for global variables.
58680
58681 2008-06-23  Eric Blake  <ebb9@byu.net>
58682
58683         Make gnulib-cache.m4 easier to diff.
58684         * gnulib-tool (func_import): Allow newlines when reading cached
58685         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58686
58687 2008-06-23  Bruno Haible  <bruno@clisp.org>
58688
58689         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58690         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58691         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58692         m4/signalblocking.m4.
58693         (gl_PREREQ_SIGACTION): Don't invoke it.
58694         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58695         gl_PREREQ_SIG_HANDLER_H.
58696         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58697         Don't check for sigaction here.
58698
58699 2008-06-23  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58702         (install_handlers): Don't set the SA_RESETHAND flag.
58703
58704 2008-06-23  Bruno Haible  <bruno@clisp.org>
58705
58706         * m4/sigaction.m4: Comment fixes.
58707         * lib/signal.in.h: Likewise.
58708
58709 2008-06-23  Eric Blake  <ebb9@byu.net>
58710
58711         Fix typo.
58712         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58713
58714         Avoid SA_ namespace.
58715         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58716         Reported by Ralf Wildenhues.
58717
58718         Avoid test failure due to SA_RESTORER.
58719         * tests/test-sigaction.c (SA_MASK): New macro.
58720         (main): Avoid failing due to extension flags being set.
58721         Reported by Jim Meyering.
58722
58723         Revert use of sig-handler.h in sigprocmask.c.
58724         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58725         it requires the existence of struct sigaction.
58726         * lib/sigprocmask.c (handler_t): Restore typedef.
58727         (rpl_signal, old_handlers): Use local type.
58728
58729 2008-06-22  Bruno Haible  <bruno@clisp.org>
58730
58731         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58732         conditionally.
58733         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58734
58735 2008-06-22  Bruno Haible  <bruno@clisp.org>
58736
58737         * doc/posix-functions/siginterrupt.texi: Move note.
58738
58739         * lib/signal.in.h (SA_RESTART): New macro.
58740         * lib/sigaction.c: Update comment.
58741
58742         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58743
58744         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58745         (gl_PREREQ_SIGPROCMASK): Invoke it.
58746         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58747
58748         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58749
58750         * lib/sigprocmask.c: Update a comment.
58751
58752 2008-06-21  Eric Blake  <ebb9@byu.net>
58753
58754         Use sigaction module rather than signal().
58755         * modules/c-stack (Depends-on): Add sigaction.
58756         * modules/fatal-signal (Depends-on): Likewise.
58757         * modules/nanosleep (Depends-on): Likewise.
58758         * modules/sigprocmask (Files): Add sig-handler.h.
58759         * modules/sigaction (Files): Likewise.
58760         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58761         Eggert.
58762         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58763         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58764         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58765         (init_fatal_signals): Likewise.
58766         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58767         (siginterrupt): Delete fallback.
58768         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58769         instead.
58770         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58771         siginterrupt.
58772
58773         New module sigaction, for mingw.
58774         * modules/sigaction: New module...
58775         * modules/sigaction-tests: ...and its test.
58776         * m4/sigaction.m4: New file.
58777         * lib/sigaction.c: Likewise.
58778         * tests/test-sigaction.c: Likewise.
58779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58780         * modules/signal (Makefile.am): Likewise.
58781         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58782         needed.
58783         * doc/posix-headers/signal.texi (signal.h): Mention provided
58784         types.
58785         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58786         that sigaction is preferable.
58787         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58788         module.
58789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58790         sigaction.
58791
58792         Improve robustness of sigprocmask by overriding signal.
58793         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58794         is in use.
58795         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58796         (SIGKILL, SIGSTOP): Provide fallbacks.
58797         (rpl_signal): Implement.
58798         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58799         signal can be called inside handlers.
58800
58801         Fix nanosleep module on mingw.
58802         * modules/nanosleep (Depends-on): Add sys_select.
58803         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58804
58805         Fix licensing of sigprocmask.
58806         * modules/raise (License): Relicense as LGPL.
58807
58808 2008-06-21  Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58811         result if it contains question marks.
58812         Reported by Michael Geng <linux@michaelgeng.de>.
58813
58814 2008-06-19  Bruno Haible  <bruno@clisp.org>
58815
58816         Fix CVS-ism.
58817         * doc/gnulib.texi: Include updated-stamp.texi.
58818         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58819         (updated-stamp.texi): New rule.
58820         (gnulib.info): Depend on it.
58821         * doc/.gitignore: Add updated-stamp.texi.
58822         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58823
58824 2008-06-19  Bruno Haible  <bruno@clisp.org>
58825
58826         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58827         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58828
58829 2008-06-19  Eric Blake  <ebb9@byu.net>
58830
58831         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58832         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58833         Reported by Stepan Kasal.
58834
58835 2008-06-18  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58838         Reported by Eric Blake.
58839
58840 2008-06-18  Eric Blake  <ebb9@byu.net>
58841
58842         Work around cygwin 1.5.25 strsignal bug.
58843         * tests/test-strsignal.c: Allow for const char *.
58844         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58845
58846 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58847
58848         * users.txt: Update URL to article and add author/date
58849         information.
58850
58851 2008-06-17  Bruno Haible  <bruno@clisp.org>
58852
58853         New macro gl_DISABLE_THREADS.
58854         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58855         if the user did not pass --enable-threads or --disable-threads option.
58856         (gl_DISABLE_THREADS): New macro.
58857         Reported by Eric Blake <ebb9@byu.net>.
58858
58859 2008-06-17  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58862         when the macro ignores it.
58863         Based on a patch by Eric Blake <ebb9@byu.net>.
58864
58865 2008-06-17  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/tls (License): Change to LGPLv2+.
58868         Reported by Eric Blake.
58869
58870 2008-06-17  Eric Blake  <ebb9@byu.net>
58871
58872         Simplify c-stack prerequisites.
58873         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58874         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58875         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58876         check.
58877         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58878         <sys/resource.h>.
58879
58880         Move c-stack test into testsuite.
58881         * modules/c-stack-tests: New file.
58882         * lib/c-stack.c [DEBUG]: Move test program...
58883         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58884         fail test if sigaltstack is lacking.
58885         * tests/test-c-stack.sh: New driver file.
58886
58887 2008-06-16  Eric Blake  <ebb9@byu.net>
58888
58889         Use raise module consistently.
58890         * modules/fatal-signal (Depends-on): Add raise.
58891         * modules/sigprocmask (Depends-on): Likewise.
58892         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58893         * lib/sigprocmask.c (sigprocmask): Likewise.
58894         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58895         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58896
58897         Fix compliance bug in sigpending.
58898         * lib/sigprocmask.c (sigpending): Return pending array via
58899         parameter, not return value.
58900
58901 2008-06-14  Eric Blake  <ebb9@byu.net>
58902
58903         Improve obstack-printf test code.
58904         * tests/test-obstack-printf.c (test_function): Fix comment, and
58905         simplify usage of obstack_* in macros.  Add a test for coverage.
58906         Reported by Bruno Haible.
58907
58908 2008-06-14  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58911         array size as a constant, not as a const variable.
58912         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58913         AC_USE_SYSTEM_EXTENSIONS.
58914         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58915         Test whether the obstack_printf function actually exists.
58916         * modules/obstack-printf (Depends-on): Add extensions.
58917         (Include): Remove obstack.h.
58918         * modules/obstack-printf-posix (Depends-on): Add extensions.
58919         (Include): Remove obstack.h.
58920
58921 2008-06-13  Eric Blake  <ebb9@byu.net>
58922
58923         Add obstack-printf and obstack-printf-posix modules.
58924         * modules/obstack-printf: New file.
58925         * modules/obstack-printf-posix: Likewise.
58926         * MODULES.html.sh (Misc): Mention them.
58927         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58928         Likewise.
58929         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58930         Likewise.
58931         * modules/stdio (Makefile.am): Accomodate new modules.
58932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58933         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58934         Declare.
58935         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58936         functions.
58937         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58938         (gl_REPLACE_OBSTACK_PRINTF): New macros
58939         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58940         * tests/test-obstack-printf.c: New file.
58941         * modules/obstack-printf-tests: Likewise.
58942         * modules/obstack-printf-posix-tests: Likewise.
58943
58944 2008-06-11  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58947         * lib/open.c: Include errno.h.
58948         (open): Fail when attempting to write to a file that has a trailing
58949         slash.
58950         * tests/test-open.c (main): Test against trailing slash bug.
58951         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58952
58953 2008-06-10  Bruno Haible  <bruno@clisp.org>
58954
58955         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58956         for $? to work inside the trap command, with various /bin/sh-s.
58957         * tests/test-vc-list-files-cvs.sh: Likewise.
58958
58959 2008-06-10  Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/acl-internal.h: Don't include gettext.h here.
58962         * lib/set-mode-acl.c: Include gettext.h here.
58963         * lib/copy-acl.c: Likewise.
58964
58965 2008-06-10  Bruno Haible  <bruno@clisp.org>
58966
58967         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58968         * lib/wait-process.c (wait_subprocess): Likewise.
58969         * lib/execute.h (execute): Add termsigp argument.
58970         * lib/execute.c (execute): Likewise.
58971         * lib/csharpcomp.c (compile_csharp_using_pnet,
58972         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58973         * lib/csharpexec.c (execute_csharp_using_pnet,
58974         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58975         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58976         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58977         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58978         is_jikes_present): Update.
58979         * lib/javaexec.c (execute_java_class): Update.
58980         * lib/javaversion.c (execute_and_read_line): Update.
58981         * NEWS: Document the changes.
58982         Reported by Eric Blake.
58983
58984 2008-06-10  Eric Blake  <ebb9@byu.net>
58985
58986         Add missing include.
58987         * tests/test-strstr.c (includes): Add <signal.h>.
58988         * tests/test-strcasestr.c (includes): Likewise.
58989         * tests/test-memmem.c (includes): Likewise.
58990
58991 2008-06-10  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/wait-process.c (wait_subprocess): Add an assertion.
58994
58995 2008-06-10  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58998
58999 2008-06-10  Bruno Haible  <bruno@clisp.org>
59000
59001         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59002         using alarm().
59003         * tests/test-strcasestr.c (main): Likewise.
59004         * tests/test-strstr.c (main): Likewise.
59005
59006 2008-06-09  Bruno Haible  <bruno@clisp.org>
59007
59008         Work around the Solaris 10 ACE ACLs ABI change.
59009         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59010         declare if ACL_NO_TRIVIAL is present.
59011         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59012         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59013         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59014         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59015         define if ACL_NO_TRIVIAL is present.
59016         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59017         and use the current ABI.
59018         (file_has_acl): Use same #if condition as elsewhere.
59019         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59020         in use, and use the current ABI.
59021         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59022         Reported by Jim Meyering.
59023
59024 2008-06-09  Eric Blake  <ebb9@byu.net>
59025
59026         Work around environments that (stupidly) ignore SIGALRM.
59027         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59028         before using alarm().
59029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59031         Reported by Ian Beckwith <ianb@erislabs.net>.
59032
59033         Produce autobuild blurb earlier in log.
59034         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59035
59036 2008-06-09  Jim Meyering  <meyering@redhat.com>
59037         and Ondřej Vašík  <ovasik@redhat.com>
59038
59039         utimens.c: correct kernel bug work-around
59040         Ondřej Vašík found that the invalid return value of 280 indicates
59041         failure, not success, and the kernel bug we're trying to work
59042         around affects not just the utimensat call, but also the fallback
59043         futimens call.
59044         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59045         not success.
59046         [HAVE_FUTIMENS]: Use the same work-around, here.
59047
59048 2008-06-09  Jim Meyering  <meyering@redhat.com>
59049
59050         add more guards around definition of ACE_-related code
59051         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59052         ALLOW and ACE_OWNER are also defined.
59053
59054 2008-06-08  Bruno Haible  <bruno@clisp.org>
59055
59056         * lib/acl-internal.h: Add me as co-author.
59057         * lib/file-has-acl.c: Likewise.
59058         * lib/set-mode-acl.c: Likewise.
59059         * lib/copy-acl.c: Likewise.
59060
59061 2008-06-08  Bruno Haible  <bruno@clisp.org>
59062
59063         Add support for AIX ACLs.
59064         * lib/acl-internal.h (acl_nontrivial): New declaration.
59065         * lib/file-has-acl.c (acl_nontrivial): New function.
59066         (file_has_acl): Add implementation using AIX 4 ACL API.
59067         * lib/set-mode-acl.c (qset_acl): Likewise.
59068         * lib/copy-acl.c (qcopy_acl): Likewise.
59069
59070 2008-06-08  Bruno Haible  <bruno@clisp.org>
59071
59072         Add support for HP-UX ACLs.
59073         * lib/acl-internal.h (acl_nontrivial): New declaration.
59074         * lib/file-has-acl.c (acl_nontrivial): New function.
59075         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59076         * lib/set-mode-acl.c (qset_acl): Likewise.
59077         * lib/copy-acl.c (qcopy_acl): Likewise.
59078
59079 2008-06-08  Bruno Haible  <bruno@clisp.org>
59080
59081         Add support for Cygwin ACLs.
59082         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59083         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59084         the chmod_or_fchmod call.
59085         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59086
59087 2008-06-08  Bruno Haible  <bruno@clisp.org>
59088
59089         Fix bug with setuid modes in Solaris 10+ code.
59090         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59091         succeeded, when the mode contains some special bits.
59092
59093 2008-06-08  Bruno Haible  <bruno@clisp.org>
59094
59095         Add support for Solaris 7..10 ACLs.
59096         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59097         declarations.
59098         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59099         functions.
59100         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59101         * lib/set-mode-acl.c (qset_acl): Likewise.
59102         * lib/copy-acl.c (qcopy_acl): Likewise.
59103
59104 2008-06-08  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59107         declaration.
59108         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59109         (acl_access_nontrivial): Remove MacOS X case.
59110         (file_has_acl): Use acl_extended_nontrivial.
59111         * lib/copy-acl.c (qcopy_acl): Likewise.
59112
59113 2008-06-08  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59116
59117 2008-06-08  Jim Meyering  <meyering@redhat.com>
59118
59119         * modules/acl (Maintainer): Add Bruno Haible.
59120
59121 2008-06-07  Bruno Haible  <bruno@clisp.org>
59122
59123         Improve support for Tru64 ACLs.
59124         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59125         ACL on OSF/1.
59126
59127 2008-06-07  Bruno Haible  <bruno@clisp.org>
59128
59129         Add support for MacOS X ACLs.
59130         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59131         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59132         * lib/set-mode-acl.c (qset_acl): Likewise.
59133         * lib/copy-acl.c (qcopy_acl): Likewise.
59134
59135 2008-06-07  Bruno Haible  <bruno@clisp.org>
59136
59137         Fix memory leak introduced on 2008-05-22.
59138         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59139         use.
59140
59141 2008-06-07  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59144         to construct an empty ACL.
59145
59146 2008-06-07  Bruno Haible  <bruno@clisp.org>
59147
59148         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59149         precisely.
59150         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59151
59152 2008-06-07  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59155         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59156
59157 2008-06-07  Bruno Haible  <bruno@clisp.org>
59158
59159         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59160         regardless of POSIX.
59161         * doc/posix-functions/_longjmp.texi: Likewise.
59162         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59163         SystemV platform in this case.
59164
59165 2008-06-06  Eric Blake  <ebb9@byu.net>
59166
59167         Document abort() bugs.
59168         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59169
59170         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59171         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59172         sigsetjmp.
59173         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59174         siglongjmp, but only as a macro.
59175         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59176         is obsolete.
59177         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59178
59179         Tweak documentation to cover cygwin argz bugs.
59180         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59181         argz bug fix; no code change needed since no cygwin releases
59182         occurred between the last fix and the bug being tested.
59183         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59184         module and recently fixed cygwin bugs.
59185         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59186         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59187         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59188         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59189         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59190         Likewise.
59191         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59192         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59193         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59194         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59195         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59196         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59197         Likewise.
59198
59199         Avoid gcc warning on cygwin.
59200         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59201         !ACL_NO_TRIVIAL]: Avoid unused variable.
59202
59203 2008-06-05  Eric Blake  <ebb9@byu.net>
59204
59205         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59206         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59207         git-version-gen fails to come up with a version.
59208         Reported by Simon Josefsson.
59209
59210 2008-06-05  Jim Meyering  <meyering@redhat.com>
59211             Paul Eggert  <eggert@cs.ucla.edu>
59212
59213         utimens.c: work around a probable Linux kernel bug
59214         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59215         appears to be a kernel bug that causes utimensat to return 280
59216         instead of 0, indicating success.
59217
59218 2008-06-04  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59221         2008-06-01 commit.
59222
59223 2008-06-04  Bruno Haible  <bruno@clisp.org>
59224
59225         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59226         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59227         (file_has_acl): Use it. Save errno afterwards.
59228         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59229
59230 2008-06-03  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59233         draft code. Simplify #ifs.
59234         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59235         Put Solaris code after POSIX-draft code. Fix comments regarding
59236         Solaris 10, HP-UX. Mention Cygwin.
59237         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59238
59239 2008-06-03  Eric Blake  <ebb9@byu.net>
59240
59241         Provide fallback for older kernels.
59242         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59243         Provide runtime fallback if kernel lacks support.
59244         Reported by Mike Frysinger.
59245
59246 2008-06-02  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59249         it exists.
59250
59251 2008-06-02  Bruno Haible  <bruno@clisp.org>
59252
59253         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59254         * lib/copy-acl.c (qcopy_acl): Update comment.
59255
59256 2008-06-02  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59259         like ACL APIs.
59260
59261 2008-06-02  Bruno Haible  <bruno@clisp.org>
59262
59263         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59264         * tests/test-set-mode-acl.sh: Likewise.
59265         * tests/test-copy-acl.sh: Likewise.
59266         * tests/test-copy-file.sh: Likewise.
59267
59268 2008-06-02  Bruno Haible  <bruno@clisp.org>
59269
59270         * tests/test-file-has-acl.sh: Remove unused code.
59271
59272 2008-06-01  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59275         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59276         messages.
59277         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59278
59279 2008-06-01  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59282         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59283         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59284         APIs.
59285         * modules/acl-tests (configure.ac): Remove tests now contained in
59286         m4/acl.m4.
59287
59288 2008-06-02  Jim Meyering  <meyering@redhat.com>
59289
59290         announce-gen: use a better key-server host name
59291         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59292         it may be more consistently reliable.  Suggested by Werner Koch
59293         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59294
59295 2008-06-01  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59298         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59299
59300 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59301
59302         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59303
59304 2008-06-01  Bruno Haible  <bruno@clisp.org>
59305
59306         New ACL tests.
59307         * tests/test-file-has-acl.sh: New file.
59308         * tests/test-file-has-acl.c: New file.
59309         * tests/test-set-mode-acl.sh: New file.
59310         * tests/test-set-mode-acl.c: New file.
59311         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59312         * tests/test-copy-acl.c: New file.
59313         * modules/acl-tests: New file, based on modules/copy-file-tests.
59314         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59315         (Depends-on): Add acl-tests.
59316         (configure.ac): Remove checks.
59317         (Makefile.am): Don't create test-sameacls program here any more.
59318
59319 2008-06-01  Bruno Haible  <bruno@clisp.org>
59320
59321         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59322         * tests/test-sameacls.c: Include progname.h.
59323         (main): Invoke set_program_name. Portability fixes for MacOS X,
59324         Solaris, HP-UX.
59325
59326 2008-06-01  Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59329         function.
59330         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59331
59332 2008-06-01  Bruno Haible  <bruno@clisp.org>
59333
59334         * modules/rpmatch (Depends-on): Add strdup.
59335
59336 2008-06-01  Bruno Haible  <bruno@clisp.org>
59337
59338         * lib/pipe.c: Include unistd-safer.h.
59339         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59340         * modules/pipe (Depends-on): Add unistd-safer.
59341
59342 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59343
59344         * modules/autobuild (configure.ac): Call AB_INIT.
59345
59346 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59347
59348         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59349         Suggested by Bruno Haible <bruno@clisp.org>.
59350
59351 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59352
59353         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59354         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59355         <bruno@clisp.org>.
59356
59357 2008-05-29  Eric Blake  <ebb9@byu.net>
59358
59359         Prefer new POSIX 200x interfaces over futimesat.
59360         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59361         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59362         when available.
59363         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59364
59365 2008-05-28  Bruno Haible  <bruno@clisp.org>
59366
59367         * modules/stpcpy (License): Change to LGPLv2+.
59368         Requested by David Lutterkort <dlutter@redhat.com>.
59369
59370 2008-05-27  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59373         current mingw.
59374         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59375
59376 2008-05-27  Bruno Haible  <bruno@clisp.org>
59377
59378         * modules/iconv_open (Link): New section, from module 'iconv'.
59379         * modules/striconv (Link): Likewise.
59380         * modules/striconveh (Link): Likewise.
59381         * modules/xstriconv (Link): Likewise.
59382         * modules/unicodeio (Link): Likewise.
59383         * modules/propername (Link): Likewise.
59384         Reported by Jim Meyering.
59385
59386 2008-05-26  Jim Meyering  <meyering@redhat.com>
59387
59388         sha256: do not artificially restrict buffer length to be < 2^32
59389         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59390         uint32_t to size_t.
59391         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59392         to match.
59393
59394         avoid unaligned access errors, e.g., on sparc
59395         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59396         direct access through a possibly-unaligned uint64* pointer.
59397         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59398         direct access through a possibly-unaligned uint32* pointer.
59399         Prompted by this patch from Tom "spot" Callaway:
59400         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59401
59402         sha512.c: fix typo in comment
59403         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59404
59405 2008-05-25  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59408         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59409         (Makefile.am): Update lib_SOURCES.
59410
59411 2008-05-25  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59414
59415 2008-05-25  Jim Meyering  <meyering@redhat.com>
59416
59417         useless-if-before-free: freed expr may have white-space differences
59418         * build-aux/useless-if-before-free: Recognize cases in which the
59419         freed expression differs from the tested one in embedded white
59420         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59421         $1 was used, so we can't make any regexp shy.  Improved tests now
59422         detect this.
59423
59424         useless-if-before-free: accept white space in the expression.
59425         * build-aux/useless-if-before-free: For now, any white space
59426         in the expression must be identical in the free argument.
59427
59428         useless-if-before-free: efficiency tweak
59429         * build-aux/useless-if-before-free: Make the expression-matching
59430         regexp "shy".
59431         Make the *outer* regexp shy, not the expr-matching one.
59432
59433         update code-in-comment to accept cast of free arg
59434         * build-aux/useless-if-before-free: Update regexp.
59435
59436 2008-05-25  Bruno Haible  <bruno@clisp.org>
59437
59438         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59439         * modules/copy-file-tests (Files, Makefile.am): Update.
59440         * tests/test-copy-file.c (func_test_copy): Update.
59441
59442 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59443
59444         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59445
59446 2008-05-23  Bruno Haible  <bruno@clisp.org>
59447
59448         Improve support for ACLs on OSF/1.
59449         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59450         Remove fallback for unknown flavors of ACLs.
59451
59452 2008-05-22  Bruno Haible  <bruno@clisp.org>
59453
59454         Add support for ACLs on OSF/1.
59455         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59456         replacements.
59457         (acl_free_text): New macro fallback.
59458         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59459         acl_free.
59460         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59461         acl_free_text function. Require AC_C_INLINE.
59462
59463 2008-05-22  Bruno Haible  <bruno@clisp.org>
59464
59465         Make copy_acl work on MacOS X 10.5.
59466         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59467         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59468         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59469         If MODE_INSIDE_ACL, don't assume that every system has the same text
59470         representation for ACLs as FreeBSD.
59471         * lib/copy-acl.c (copy_acl): Add support for platforms with
59472         !MODE_INSIDE_ACL.
59473         * lib/file-has-acl.c (file_has_acl): Likewise.
59474         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59475         FreeBSD, MacOS X, or IRIX, respectively.
59476
59477 2008-05-22  Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/acl.h: Don't include <sys/acl.h>.
59480         (GETACLCNT): Move fallback to lib/acl-internal.h.
59481         * lib/acl-internal.h: Include <sys/acl.h> here.
59482         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59483
59484 2008-05-22  Bruno Haible  <bruno@clisp.org>
59485
59486         Split off copy_acl function to separate file.
59487         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59488         * lib/acl.c (copy_acl): Moved function to separate file.
59489         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59490         * modules/acl (Files): Add lib/copy-acl.c.
59491         (Makefiles.am): Augment lib_SOURCES.
59492
59493 2008-05-22  Bruno Haible  <bruno@clisp.org>
59494
59495         * modules/copy-file-tests: New file.
59496         * tests/test-copy-file.sh: New file.
59497         * tests/test-copy-file.c: New file.
59498         * tests/test-copy-file-sameacls.c: New file.
59499
59500 2008-05-22  Eric Blake  <ebb9@byu.net>
59501
59502         Avoid gcc warning.
59503         * tests/test-memcmp.c (main): Pass NULL indirectly.
59504
59505 2008-05-21  Bruno Haible  <bruno@clisp.org>
59506
59507         Add reference doc about ACLs.
59508         * doc/acl-resources.txt: New file.
59509         * doc/acl-cygwin.txt: New file.
59510
59511 2008-05-21  Bruno Haible  <bruno@clisp.org>
59512
59513         Avoid one more warning from gcc.
59514         * lib/vasnprintf.c (IF_LINT): Update comments.
59515         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59516
59517 2008-05-21  Jim Meyering  <meyering@redhat.com>
59518
59519         avoid a warning from gcc
59520         * lib/vasnprintf.c (IF_LINT): Define.
59521         (scale10_round_decimal_long_double):
59522         Use it to avoid a "may be used uninitialized" warning.
59523         (scale10_round_decimal_double): Likewise.
59524
59525 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59526
59527         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59528         declared.
59529
59530 2008-05-20  Bruno Haible  <bruno@clisp.org>
59531
59532         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59533         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59534
59535 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59536
59537         * modules/memcmp-tests: New file.
59538         * tests/test-memcmp.c: New file.
59539
59540 2008-05-19  Bruno Haible  <bruno@clisp.org>
59541
59542         * modules/propername (Notice, configure.ac): Put quoted "..." into
59543         --keyword option.
59544         * lib/propername.h: Update comments accordingly.
59545         Reported by Eric Blake.
59546
59547 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59548
59549         * modules/getpass-gnu (Depends-on): Add fseeko.
59550
59551 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59552
59553         * modules/base64-tests: New file.
59554
59555 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59556
59557         * lib/base64.c (base64_decode_ctx): If a decode context structure
59558         was passed in use it to ignore newlines.  If a context structure
59559         was _not_ passed in, continue to treat newlines as garbage (this
59560         is the historical behavior).  Formerly base64_decode.
59561         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59562         takes a decode context structure.
59563         * lib/base64.h (base64_decode): Macro for four-argument calls.
59564         (base64_decode_alloc): Likewise.
59565         * lib/base64.c (base64_decode_ctx): If a decode context structure
59566         was passed in use it to ignore newlines.  If a context structure
59567         was _not_ passed in, continue to treat newlines as garbage (this
59568         is the historical behavior).  Formerly base64_decode.
59569         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59570         takes a decode context structure.
59571         * lib/base64.h (base64_decode): Macro for four-argument calls.
59572         (base64_decode_alloc): Likewise.
59573
59574 2008-05-19  Jim Meyering  <meyering@redhat.com>
59575
59576         avoid a warning from gcc
59577         * lib/trim.c (IF_LINT): Define.
59578         (trim2): Use it to avoid a "may be used uninitialized" warning.
59579
59580         Fix doc typo.
59581         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59582
59583 2008-05-19  Bruno Haible  <bruno@clisp.org>
59584
59585         * doc/glibc-functions/getpass.texi: Document limits of other
59586         implementations.
59587
59588 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59589             Bruno Haible <bruno@clisp.org>
59590
59591         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59592
59593 2008-05-18  Bruno Haible  <bruno@clisp.org>
59594
59595         * modules/propername: New file, from GNU gettext.
59596         * lib/propername.h: New file, from GNU gettext.
59597         * lib/propername.c: New file, from GNU gettext.
59598         * MODULES.html.sh (Internationalization functions): Add propername.
59599
59600 2008-05-16  Jim Meyering  <meyering@redhat.com>
59601             Bruno Haible  <bruno@clisp.org>
59602
59603         Avoid some warnings from "gcc -Wshadow".
59604         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59605
59606 2008-05-15  Eric Blake  <ebb9@byu.net>
59607
59608         Extend previous patch to cygwin 1.7.0.
59609         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59610         fast implementation in cygwin >= 1.7.0.
59611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59613
59614 2008-05-15  Bruno Haible  <bruno@clisp.org>
59615
59616         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59617         implementation in glibc >= 2.9.
59618         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59620
59621 2008-05-15  Bruno Haible  <bruno@clisp.org>
59622
59623         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59624         (Unicode string functions): Add unilbrk/*.
59625         Reported by Karl Berry.
59626
59627 2008-05-15  Eric Blake  <ebb9@byu.net>
59628
59629         Fix violation of <stdbool.h> replacement in regex.
59630         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59631         * lib/regexec.c (re_search_internal): Likewise.
59632         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59633
59634 2008-05-15  Jim Meyering  <meyering@redhat.com>
59635
59636         avoid distracting test output when git or cvs is not found
59637         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59638         * tests/test-vc-list-files-git.sh: Likewise.
59639
59640 2008-05-15  Eric Blake  <ebb9@byu.net>
59641
59642         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59643         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59644         glibc version.
59645         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59646         * doc/posix-functions/strstr.texi (strstr): Likewise.
59647         * lib/str-two-way.h (MAX): Sychronize with glibc.
59648
59649 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59650
59651         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59652         opr.ctx_type.
59653         (calc_first): Initialize constraint field.
59654         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59655         Fix grammar.
59656         (duplicate_node): Merge constraint field for all node types.
59657         (calc_eclosure_iter): Look at constraint field for all node types.
59658         * lib/regex_internal.c (create_cd_newstate): Don't look at
59659         opr.ctx_type.
59660
59661 2008-05-14  Bruno Haible  <bruno@clisp.org>
59662
59663         Help GCC to do better code generation.
59664         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59665         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59666         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59667         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59668         Declare with attribute 'malloc' if supported.
59669
59670 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59671
59672         use "echo STR|wc -c" rather than unportable "expr length STR"
59673         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59674         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59675
59676 2008-05-14  Jim Meyering  <meyering@redhat.com>
59677
59678         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59679         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59680         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59681         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59682         via Collin Lasse.
59683
59684 2008-05-14  Eric Blake  <ebb9@byu.net>
59685
59686         Avoid quadratic growth in gl_LIBSOURCES.
59687         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59688         Suggested by Bruno Haible.
59689
59690         Test xmemdup0.
59691         * modules/xmemdup0-tests: New file.
59692         * tests/test-xmemdup0.c: Likewise.
59693
59694 2008-05-13  Eric Blake  <ebb9@byu.net>
59695
59696         Split xmemdup0 into its own module.
59697         * modules/xmemdup0: New file.
59698         * lib/xmemdup0.h: Likewise.
59699         * lib/xmemdup0.c: Likewise.
59700         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59701         * lib/xalloc.h (xmemdup0): Remove.
59702         * lib/xmalloc.c (xmemdup0): Likewise.
59703
59704 2008-05-13  Eric Blake  <ebb9@byu.net>
59705             Bruno Haible  <bruno@clisp.org>
59706
59707         Reduce number of forks required during autoconf.
59708         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59709         and gl_LIBSOURCES_DIR.
59710         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59711         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59712         m4_syscmd per file.
59713         <m4_foreach_w>: Move...
59714         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59715
59716 2008-05-13  Eric Blake  <ebb9@byu.net>
59717
59718         * gnulib-tool: Fix various comment typos.
59719
59720 2008-05-12  Bruno Haible  <bruno@clisp.org>
59721
59722         Tailor the linebreaking algorithm.
59723         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59724
59725 2008-05-12  Bruno Haible  <bruno@clisp.org>
59726
59727         Update to Unicode 5.0.0.
59728         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59729         LBP_JV, LBP_JT. Redistribute values.
59730         (unilbrk_table): Change size.
59731         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59732         Unicode TR#14 rev. 22.
59733         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59734         LBP_JV, LBP_JT. Redistribute values.
59735         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59736         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59737         Update.
59738         * lib/unilbrk/lbrkprop1.h: Regenerated.
59739         * lib/unilbrk/lbrkprop2.h: Regenerated.
59740         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59741         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59742         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59743         Likewise.
59744         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59745         Likewise.
59746         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59747         result.
59748         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59749         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59750         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59751         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59752         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59753         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59754
59755 2008-05-11  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59758
59759 2008-05-11  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59762         * modules/unilbrk/gen-lbrk: New file.
59763
59764 2008-05-11  Bruno Haible  <bruno@clisp.org>
59765
59766         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59767         * m4/sha512.m4 (gl_SHA512): Likewise.
59768
59769 2008-05-11  Jim Meyering  <meyering@redhat.com>
59770
59771         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59772         * modules/crypto/sha256: New file.
59773         * modules/crypto/sha512: Likewise.
59774         * lib/sha256.c: Likewise.
59775         * lib/sha256.h: Likewise.
59776         * lib/sha512.c: Likewise.
59777         * lib/sha512.h: Likewise.
59778         * lib/u64.h: Likewise.
59779         * m4/sha256.m4: Likewise.
59780         * m4/sha512.m4: Likewise.
59781         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59782
59783 2008-05-10  Bruno Haible  <bruno@clisp.org>
59784
59785         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59786         (Input/Output <stdio.h>): Add xprintf.
59787         (Signal handling <signal.h>): Add strsignal.
59788         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59789         (Core language properties): Add func.
59790         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59791         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59792         strings.
59793         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59794         (Input/output): New section.
59795         (File system functions): Add openat-die, stat-macros.
59796         (Networking functions): Add sockets.
59797         (Unicode string functions): Add unictype/*.
59798         (Support for building libraries and executables): Add gperf.
59799         (Support for building documentation): Add agpl-3.0.
59800         (Misc): Add nocrash.
59801
59802 2008-05-10  Bruno Haible  <bruno@clisp.org>
59803
59804         * modules/unictype/gen-ctype: New file.
59805
59806 2008-05-10  Jim Meyering  <meyering@redhat.com>
59807
59808         Make chdir-safer.c more efficient on a system with no symlinks.
59809         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59810         also if ELOOP is zero.  Suggested by Bruno Haible.
59811
59812         Make chdir-safer.c slightly safer.
59813         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59814         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59815
59816         Avoid compile failure on systems without ELOOP (like mingw).
59817         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59818         Reported by Bruno Haible.
59819
59820 2008-05-10  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59823         (is_utf8_encoding): Use a case-insensitive comparison.
59824         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59825         streq.
59826
59827 2008-05-10  Bruno Haible  <bruno@clisp.org>
59828
59829         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59830         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59831         * lib/unilbrk/ulc-common.h (iconv_string_length,
59832         iconv_string_keeping_offsets): Remove declarations.
59833         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59834         Don't include <iconv.h>, streq.h, xsize.h.
59835         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59836         conversion.
59837         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59838         <iconv.h>, streq.h, xsize.h.
59839         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59840         conversion.
59841         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59842         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59843         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59844         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59845
59846 2008-05-10  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59849         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59850
59851         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59852         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59853
59854         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59855         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59856
59857         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59858         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59859
59860         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59861         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59862
59863         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59864         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59865
59866         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59867         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59868
59869         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59870         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59871
59872 2008-05-10  Bruno Haible  <bruno@clisp.org>
59873
59874         Split up 'linebreak' module.
59875         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59876         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59877         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59878         modifications.
59879         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59880         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59881         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59882         lib/linebreak.c.
59883         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59884         lib/linebreak.c.
59885         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59886         lib/linebreak.c.
59887         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59888         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59889         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59890         lib/linebreak.c.
59891         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59892         lib/linebreak.c.
59893         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59894         lib/linebreak.c.
59895         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59896         lib/linebreak.c.
59897         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59898         lib/linebreak.c.
59899         * modules/unilbrk/base: New file.
59900         * modules/unilbrk/tables: New file.
59901         * modules/unilbrk/u8-possible-linebreaks: New file.
59902         * modules/unilbrk/u16-possible-linebreaks: New file.
59903         * modules/unilbrk/u32-possible-linebreaks: New file.
59904         * modules/unilbrk/ulc-common: New file.
59905         * modules/unilbrk/ulc-possible-linebreaks: New file.
59906         * modules/unilbrk/u8-width-linebreaks: New file.
59907         * modules/unilbrk/u16-width-linebreaks: New file.
59908         * modules/unilbrk/u32-width-linebreaks: New file.
59909         * modules/unilbrk/ulc-width-linebreaks: New file.
59910         * lib/linebreak.h: Remove file.
59911         * lib/linebreak.c: Remove file.
59912         * m4/linebreak.m4: Remove file.
59913         * modules/linebreak: Remove file.
59914         * NEWS: Mention the changes.
59915
59916 2008-05-09  Eric Blake  <ebb9@byu.net>
59917
59918         Add xmemdup0.
59919         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59920         implementation.
59921         * lib/xmalloc.c (xmemdup0): New C implementation.
59922
59923 2008-05-08  Bruno Haible  <bruno@clisp.org>
59924
59925         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59926
59927 2008-05-07  Eric Blake  <ebb9@byu.net>
59928
59929         Support cross-compilation of <wctype.h>.
59930         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59931         AC_CACHE_CHECK.
59932
59933 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59934
59935         * build-aux/vc-list-files: Add support for bzr.
59936
59937 2008-05-03  Jim Meyering  <meyering@redhat.com>
59938
59939         avoid failed assertion with tight malloc
59940         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59941
59942 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59943
59944         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59945         are needed from arpa/inet.h.
59946         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59947         Reported by Bruno Haible.
59948
59949 2008-05-02  Jim Meyering  <meyering@redhat.com>
59950
59951         avoid compilation error on FreeBSD 6
59952         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59953
59954 2008-05-01  Jim Meyering  <meyering@redhat.com>
59955
59956         useless-if-before-free: correct --help's exit status description
59957         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59958         for one or more matches, etc.  Reported by Bruno Haible.
59959
59960         vc-list-files: make the stand-alone gnulib test work
59961         * modules/vc-list-files-tests (configure.ac):
59962         Define and AC_SUBST abs_aux_dir.
59963         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59964         $(abs_top_srcdir) to each script and having each of them
59965         duplicate the work of setting PATH, set PATH here, using
59966         the new variable, abs_aux_dir instead.
59967         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59968         * tests/test-vc-list-files-git.sh: Likewise.
59969         Reported by Bruno Haible.
59970
59971 2008-05-01  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59974         reallocation. Rename 'done' to 'found_delimiter'.
59975
59976 2008-05-01  Jim Meyering  <meyering@redhat.com>
59977
59978         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59979         * build-aux/vc-list-files: Use `...`, not $(...).
59980
59981 2008-04-30  Jim Meyering  <meyering@redhat.com>
59982
59983         add tests for vc-list-files
59984         * modules/vc-list-files-tests: New module.
59985         * tests/test-vc-list-files-cvs.sh: New file.
59986         * tests/test-vc-list-files-git.sh: New file.
59987
59988         avoid a warning from gcc
59989         * lib/getndelim2.c (IF_LINT): Define.
59990         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59991
59992         vc-list-files: work properly with build-aux/cvsu, too
59993         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59994         to all cvs-based clauses.
59995
59996         vc-list-files: work properly in the CVS+awk case, too
59997         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59998
59999         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60000         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60001         take more than one file argument, so .  Add quotes, just in case $dir
60002         ever contains a shell meta-character.  Prompted by Soren Hansen in
60003         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60004
60005 2008-04-29  Eric Blake  <ebb9@byu.net>
60006
60007         Optimize getndelim2 to use block operations when possible.
60008         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60009         freadseek, and memchr2.
60010         * lib/getndelim2.c (getndelim2): Use them for block reads.
60011
60012 2008-04-29  Bruno Haible  <bruno@clisp.org>
60013
60014         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60015         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60016         * modules/inet_ntop (Depends-on): Add extensions.
60017         * modules/inet_pton (Depends-on): Likewise.
60018         Reported by Simon Josefsson.
60019
60020 2008-04-29  Jim Meyering  <meyering@redhat.com>
60021
60022         When the is more than one match in a block, match all of them.
60023         * build-aux/useless-if-before-free: Iterate through each block
60024         until there are no more matches.
60025
60026         Fix broken useless-if-before-free script.
60027         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60028         the expression to match cast of argument to free-like function.
60029
60030 2008-04-29  Eric Blake  <ebb9@byu.net>
60031
60032         Use new header.
60033         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60034
60035 2008-04-29  Jim Meyering  <meyering@redhat.com>
60036
60037         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60038         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60039         by gnulib to exist and to declare e.g., inet_ntop.
60040         Don't include "inet_ntop.h", now removed.
60041
60042         * m4/arpa_inet_h.m4: Remove trailing blanks.
60043
60044 2008-04-29  Eric Blake  <ebb9@byu.net>
60045
60046         Silence valgrind on safe reads beyond potential array bounds.
60047         * lib/rawmemchr.valgrind: New file.
60048         * lib/strchrnul.valgrind: Likewise.
60049         * modules/rawmemchr (Files): Distribute new file.
60050         * modules/strchrnul (Files): Likewise.
60051         Suggested by Bruno Haible.
60052
60053 2008-04-29  Bruno Haible  <bruno@clisp.org>
60054
60055         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60056         (inet_ntop, inet_pton): Change portability warning's wording.
60057         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60058         Invoke gl_CHECK_NEXT_HEADERS.
60059         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60060         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60061         set ARPA_INET_H.
60062         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60063         * modules/arpa_inet (Description): No longer only for systems that
60064         lack it.
60065         (Depends-on): Add include_next.
60066         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60067         HAVE_ARPA_INET_H.
60068
60069 2008-04-29  Jim Meyering  <meyering@redhat.com>
60070
60071         * modules/mkdir (License): Re-license as LGPLv2+.
60072
60073 2008-04-29  Bruno Haible  <bruno@clisp.org>
60074
60075         * modules/rawmemchr (Maintainer): Set to Eric.
60076         * modules/strchrnul (Maintainer): Likewise.
60077
60078 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60079
60080         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60081         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60082
60083         * modules/arpa_inet (arpa/inet.h): Use them.
60084
60085 2008-04-28  Eric Blake  <ebb9@byu.net>
60086
60087         Test getndelim2.
60088         * modules/getndelim2-tests: New file.
60089         * tests/test-getndelim2.c: Likewise.
60090         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60091         stream.
60092         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60093
60094         * MODULES.html.sh: Document new module.
60095
60096 2008-04-20  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/c-stack.c (die): Use raise.
60099         * modules/c-stack (Depends-on): Add raise.
60100
60101 2008-04-28  Bruno Haible  <bruno@clisp.org>
60102
60103         Expect rpmatch to be declared.
60104         * lib/yesno.c (rpmatch): Remove declaration.
60105
60106         Declare rpmatch.
60107         * lib/stdlib.in.h (rpmatch): New declaration.
60108         * lib/rpmatch.c: Include <stdlib.h> first.
60109         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60110         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60112         HAVE_RPMATCH.
60113         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60114         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60115         (Include): Set to <stdlib.h>.
60116         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60117         HAVE_RPMATCH.
60118         * NEWS: Document the change.
60119
60120 2008-04-28  Bruno Haible  <bruno@clisp.org>
60121
60122         Change rpmatch to use nl_langinfo when appropriate.
60123         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60124         (N_): New macro.
60125         (localized_pattern): New function/macro.
60126         (try): Remove match, nomatch arguments. Copy the pattern into safe
60127         memory before caching it.
60128         (rpmatch): Use localized_pattern. Add translator comments.
60129         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60130         Suggested by Eric Blake.
60131         * modules/rpmatch (Depends-on): Add stdbool.
60132
60133 2008-04-28  Eric Blake  <ebb9@byu.net>
60134
60135         Add rawmemchr module, matching glibc.
60136         * modules/string (Makefile.am): New indicator.
60137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60138         * lib/string.in.h (rawmemchr): Declare when appropriate.
60139         * modules/rawmemchr: New file.
60140         * m4/rawmemchr.m4: Likewise.
60141         * lib/rawmemchr.c: Likewise.
60142         * modules/rawmemchr-tests: Likewise.
60143         * tests/test-rawmemchr.c: Likewise.
60144         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60145         module.
60146         * modules/strchrnul (Depends-on): Add rawmemchr.
60147         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60148
60149         Whitespace cleanup.
60150         * tests/test-strchrnul.c: Reindent.
60151         * lib/strchrnul.c: Likewise.
60152
60153         Optimize and test strchrnul.
60154         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60155         * modules/strchrnul-tests: New file.
60156         * tests/test-strchrnul.c: Likewise.
60157
60158         Remove intprops dependency.
60159         * modules/memchr (Depends-on): Remove intprops.
60160         * modules/memrchr (Depends-on): Likewise.
60161         * modules/memchr2 (Depends-on): Likewise.
60162         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60163         * lib/memrchr.c (__memrchr): Likewise.
60164         * lib/memrchr2.c (memchr2): Likewise.
60165         Reported by Simon Josefsson.
60166
60167 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60168
60169         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60170         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60171
60172 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60173
60174         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60175
60176         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60177
60178         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60179
60180         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60181         declarations.
60182         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60183
60184         * m4/inet_pton.m4: Don't check for header files.
60185
60186         * m4/inet_ntop.m4: Don't check for header files.
60187
60188 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60189
60190         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60191         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60192         trigger for cygwin).
60193         Reported by Bruno Haible  <bruno@clisp.org>.
60194
60195 2008-04-28  Bruno Haible  <bruno@clisp.org>
60196
60197         * doc/posix-functions/strdup.texi: Mention mingw problem.
60198
60199 2008-04-27  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/stat-time-tests (Depends-on): Add sleep.
60202         * tests/test-stat-time.c (force_unlink): New function.
60203         (cleanup): Use it.
60204         (test_mtime): Remove the ctime related tests.
60205         (test_ctime): New function, containing the ctime related tests.
60206         (main): Call test_ctime, except on native Windows platforms.
60207
60208 2008-04-27  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/rpmatch.c (rpmatch): Add some comments.
60211         Reported by James Youngman <jay@gnu.org>.
60212
60213 2008-04-27  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60216         quiet NaNs.
60217
60218 2008-04-27  Bruno Haible  <bruno@clisp.org>
60219
60220         Make test-yesno.sh work on mingw.
60221         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60222         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60223         (main): Set stdin to binary mode.
60224         * modules/yesno-tests (Depends-on): Add binary-io.
60225
60226 2008-04-27  Bruno Haible  <bruno@clisp.org>
60227
60228         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60229         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60230         argument that lie outside the IEEE 854 domain.
60231         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60232         (gl_ISFINITE): Use it.
60233         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60234
60235 2008-04-27  Bruno Haible  <bruno@clisp.org>
60236
60237         Allow local renaming in config.h.
60238         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60239
60240 2008-04-27  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/memchr.c (__memchr): Change type of 'i'.
60243         * lib/memchr2.c (memchr2): Likewise.
60244
60245 2008-04-26  Eric Blake  <ebb9@byu.net>
60246         and Bruno Haible  <bruno@clisp.org>
60247
60248         Optimize and test memrchr.
60249         * modules/memrchr (Depends-on): Add intprops.
60250         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60251         * modules/memrchr-tests: New file.
60252         * tests/test-memrchr.c: New file.
60253
60254 2008-04-26  Bruno Haible  <bruno@clisp.org>
60255
60256         Add tentative support for DragonFly BSD.
60257         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60258         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60259         fp.
60260         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60261         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60262         * lib/fpurge.c (fpurge): Likewise.
60263         * lib/freadable.c (freaadable): Likewise.
60264         * lib/freadahead.c (freadahead): Likewise.
60265         * lib/freading.c (freading): Likewise.
60266         * lib/freadptr.c (freadptr): Likewise.
60267         * lib/freadseek.c (freadptrinc): Likewise.
60268         * lib/fseeko.c (fseeko): Likewise.
60269         * lib/fseterr.c (fseterr): Likewise.
60270         * lib/fwritable.c (fwritable): Likewise.
60271         * lib/fwriting.c (fwriting): Likewise.
60272
60273 2008-04-26  Bruno Haible  <bruno@clisp.org>
60274
60275         * lib/stdio-impl.h: New file.
60276         * lib/fbufmode.c: Include stdio-impl.h.
60277         (fbufmode): Use fp_, remove redundant #defines.
60278         * lib/fflush.c: Include stdio-impl.h.
60279         (clear_ungetc_buffer): Remove redundant #defines.
60280         * lib/fpurge.c: Include stdio-impl.h.
60281         (fpurge): Remove redundant #defines.
60282         * lib/freadable.c: Include stdio-impl.h.
60283         (freadable): Remove redundant #defines.
60284         * lib/freadahead.c: Include stdio-impl.h.
60285         (freadahead): Remove redundant #defines.
60286         * lib/freading.c: Include stdio-impl.h.
60287         (freading): Remove redundant #defines.
60288         * lib/freadptr.c: Include stdio-impl.h.
60289         (freadptr): Remove redundant #defines.
60290         * lib/freadseek.c: Include stdio-impl.h.
60291         (freadptrinc): Remove redundant #defines.
60292         * lib/fseeko.c: Include stdio-impl.h.
60293         (rpl_fseeko): Remove redundant #defines.
60294         * lib/fseterr.c: Include stdio-impl.h.
60295         (fseterr): Remove redundant #defines.
60296         * lib/fwritable.c: Include stdio-impl.h.
60297         (fwritable: Remove redundant #defines.
60298         * lib/fwriting.c: Include stdio-impl.h.
60299         (fwriting): Remove redundant #defines.
60300         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60301         * modules/fflush (Files): Likewise.
60302         * modules/fpurge (Files): Likewise.
60303         * modules/freadable (Files): Likewise.
60304         * modules/freadahead (Files): Likewise.
60305         * modules/freading (Files): Likewise.
60306         * modules/freadptr (Files): Likewise.
60307         * modules/freadseek (Files): Likewise.
60308         * modules/fseeko (Files): Likewise.
60309         * modules/fseterr (Files): Likewise.
60310         * modules/fwritable (Files): Likewise.
60311         * modules/fwriting (Files): Likewise.
60312
60313 2008-04-26  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60316         restore_seek_optimization, update_fpos_cache): New functions, extracted
60317         from rpl_fflush.
60318         (rpl_fflush): Use them.
60319         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60320         (gl_REPLACE_FFLUSH): Use it.
60321
60322 2008-04-26  Bruno Haible  <bruno@clisp.org>
60323
60324         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60325         on Solaris.
60326         * tests/test-xstrtoimax.sh: Likewise.
60327         * tests/test-xstrtoumax.sh: Likewise.
60328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60329
60330 2008-04-26  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/memchr-tests: New file.
60333         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60334
60335 2008-04-26  Eric Blake  <ebb9@byu.net>
60336             Bruno Haible  <bruno@clisp.org>
60337
60338         * lib/memchr.c: Include intprops.h.
60339         (__memchr): Optimize parallel detection of matching bytes. Rename local
60340         variables. Add explanatory comments.
60341
60342 2008-04-26  Bruno Haible  <bruno@clisp.org>
60343
60344         Fix module 'memchr', broken since 2000-10-28.
60345         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60346
60347 2008-04-26  Bruno Haible  <bruno@clisp.org>
60348
60349         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60350         comments.
60351
60352 2008-04-25  Eric Blake  <ebb9@byu.net>
60353
60354         Use native fstatat on cygwin 1.7.0.
60355         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60356         first.
60357
60358 2008-04-23  Eric Blake  <ebb9@byu.net>
60359
60360         Improve memchr2 performance.
60361         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60362         NUL bytes.
60363         * modules/memchr2 (Depends-on): Use intprops.h.
60364
60365 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60366
60367         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60368         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60369         <blp@cs.stanford.edu>.
60370
60371 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60372
60373         * lib/arpa_inet.in.h: New file.
60374
60375         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60376         (Makefile.am): Sed in substitute header file.
60377
60378         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60379         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60380
60381         * modules/inet_ntop (configure.ac): Use
60382         gl_ARPA_INET_MODULE_INDICATOR.
60383
60384         * modules/inet_pton (configure.ac): Use
60385         gl_ARPA_INET_MODULE_INDICATOR.
60386
60387 2008-04-22  Jim Meyering  <meyering@redhat.com>
60388
60389         * modules/verify (License): Re-license as LGPLv2+.
60390
60391 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60392
60393         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60394         parameter to void* as per POSIX standard (MinGW uses char*).
60395
60396 2008-04-21  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60399         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60400         Define to replacements if REPLACE_ISWCNTRL is 1.
60401         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60402         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60403         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60404         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60405         what it fixes.
60406         * doc/posix-functions/iswalpha.texi: Likewise.
60407         * doc/posix-functions/iswblank.texi: Likewise.
60408         * doc/posix-functions/iswcntrl.texi: Likewise.
60409         * doc/posix-functions/iswdigit.texi: Likewise.
60410         * doc/posix-functions/iswgraph.texi: Likewise.
60411         * doc/posix-functions/iswlower.texi: Likewise.
60412         * doc/posix-functions/iswprint.texi: Likewise.
60413         * doc/posix-functions/iswpunct.texi: Likewise.
60414         * doc/posix-functions/iswspace.texi: Likewise.
60415         * doc/posix-functions/iswupper.texi: Likewise.
60416         * doc/posix-functions/iswxdigit.texi: Likewise.
60417         Reported by Alain Guibert.
60418
60419 2008-04-21  Bruno Haible  <bruno@clisp.org>
60420
60421         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60422         Patch by Alain Guibert.
60423
60424 2008-04-21  Bruno Haible  <bruno@clisp.org>
60425
60426         Fix test failures on mingw.
60427         * tests/test-xstrtol.c (print_no_progname): New function.
60428         (main): Install it in error_print_progname hook.
60429         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60430         * tests/test-xstrtoimax.sh: Likewise.
60431         * tests/test-xstrtoumax.sh: Likewise.
60432
60433 2008-04-21  Bruno Haible  <bruno@clisp.org>
60434
60435         Fix test failure on mingw.
60436         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60437
60438 2008-04-21  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60441         Actually assign a value.
60442
60443 2008-04-20  Bruno Haible  <bruno@clisp.org>
60444
60445         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60446         take 2.
60447         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60448         'canonicalize-lgpl' module is also used.
60449         * lib/canonicalize-lgpl.c: Undo last change.
60450         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60451
60452 2008-04-20  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60455         config.h. Provide _mkdir based fallback for mingw.
60456         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60457         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60458         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60459         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60460         rather than defining mkdir in config.h.
60461         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60462         (gl_SYS_STAT_H_DEFAULTS): New macro.
60463         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60464         HAVE_IO_H any more.
60465         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60466         HAVE_DECL_MKDIR and HAVE_IO_H.
60467
60468 2008-04-20  Bruno Haible  <bruno@clisp.org>
60469
60470         * lib/isapipe.c: Port to native Windows platforms.
60471
60472 2008-04-20  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60475
60476 2008-04-21  Eric Blake  <ebb9@byu.net>
60477
60478         Work around preprocessors that don't handle UINTMAX_MAX.
60479         * lib/memchr2.c (memchr2): Avoid embedded #if.
60480         Reported by Alain Guibert, fix suggested by Bruno Haible.
60481
60482 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60483
60484         * doc/posix-functions/strftime.texi (strftime): Explain better
60485         Windows incompatibility.  Suggested by Micah Cowan
60486         <micah@cowan.name>.
60487
60488 2008-04-20  Bruno Haible  <bruno@clisp.org>
60489
60490         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60491         unistr/u8-mblen.
60492
60493 2008-04-20  Bruno Haible  <bruno@clisp.org>
60494
60495         Fix test failure on platforms with non-GNU iconv.
60496         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60497         (U_TO_U8): Use it, rather than u16_to_u8.
60498         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60499         units at the end of the input string.
60500         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60501
60502 2008-04-20  Bruno Haible  <bruno@clisp.org>
60503
60504         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60505         when the resulting length is 0.
60506         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60507
60508 2008-04-20  Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60511         works.
60512         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60513
60514 2008-04-20  Bruno Haible  <bruno@clisp.org>
60515
60516         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60517         * modules/tsearch-tests (configure.ac): Test for initstate function.
60518
60519 2008-04-20  Bruno Haible  <bruno@clisp.org>
60520
60521         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60522         for nlink_t if missing.
60523         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60524
60525 2008-04-19  Bruno Haible  <bruno@clisp.org>
60526
60527         Work around snprintf bug on Linux libc5.
60528         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60530         gl_SNPRINTF_SIZE1.
60531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60532         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60533         that test failed.
60534         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60535         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60536         * modules/snprintf (Files): Add m4/printf.m4.
60537         * modules/vsnprintf (Files): Likewise.
60538         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60539         * doc/posix-functions/vsnprintf.texi: Likewise.
60540
60541 2008-04-19  Bruno Haible  <bruno@clisp.org>
60542
60543         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60544         from 0.0058 to less than 10^-7.
60545
60546 2008-04-19  Bruno Haible  <bruno@clisp.org>
60547
60548         Fix rounding when a precision is given.
60549         * lib/vasnprintf.c (is_borderline): New function.
60550         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60551         9...9x.
60552         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60553         %e, %g.
60554         * tests/test-vasprintf-posix.c (test_function): Likewise.
60555         * tests/test-snprintf-posix.h (test_function): Likewise.
60556         * tests/test-sprintf-posix.h (test_function): Likewise.
60557         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60558         * tests/test-printf-posix.h (test_function): Likewise.
60559         * tests/test-printf-posix.output: Update.
60560         Reported by John Darrington <john@darrington.wattle.id.au> via
60561         Ben Pfaff <blp@cs.stanford.edu>.
60562
60563 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60564
60565         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60566         Suggested by Bruno Haible <bruno@clisp.org>.
60567
60568 2008-04-17  Bruno Haible  <bruno@clisp.org>
60569
60570         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60571         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60572         implementation.
60573         Patch by Bruce Merry <bmerry@gmail.com>.
60574
60575 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60576
60577         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60578         doesn't work under Windows.
60579
60580 2008-04-16  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60583         New macros.
60584         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60585         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60586         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60587         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60588         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60589         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60590         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60591         macros.
60592         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60593         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60594         Northern Sotho, Uighur.
60595
60596 2008-04-16  Bruno Haible  <bruno@clisp.org>
60597
60598         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60599         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60600         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60601         Reported by Daniel Bergström <daniel@octocode.com>.
60602
60603 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60604             Bruno Haible  <bruno@clisp.org>
60605
60606         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60607         function.
60608         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60609         New functions, mostly extracted from gl_locale_name_default.
60610         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60611
60612 2008-04-16  Eric Blake  <ebb9@byu.net>
60613
60614         Adjust strtod detection to catch glibc 2.7 bug.
60615         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60616         Reported by John Gatewood Ham.
60617
60618 2008-04-16  Bruno Haible  <bruno@clisp.org>
60619
60620         Add tentative support for Linux libc5.
60621         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60622         * lib/fpurge.c (fpurge): Likewise.
60623         * lib/freadable.c (freadable): Likewise.
60624         * lib/freadahead.c (freadahead): Likewise.
60625         * lib/freading.c (freading): Likewise.
60626         * lib/freadptr.c (freadptr): Likewise.
60627         * lib/freadseek.c (freadptrinc): Likewise.
60628         * lib/fseeko.c (rpl_fseeko): Likewise.
60629         * lib/fseterr.c (fseterr): Likewise.
60630         * lib/fwritable.c (fwritable): Likewise.
60631         * lib/fwriting.c (fwriting): Likewise.
60632         Reported by Alain Guibert <alguibert+bts@free.fr>.
60633
60634 2008-04-15  Bruno Haible  <bruno@clisp.org>
60635
60636         * modules/mathl (configure.ac): Define module indicator.
60637
60638 2008-04-15  Bruno Haible  <bruno@clisp.org>
60639
60640         * lib/logl.c (logl): Remove unused variables.
60641
60642 2008-04-15  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60645         fails.
60646
60647 2008-04-15  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/trim.c (trim2): Fix argument of isspace() macro.
60650
60651 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60652
60653         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60654         to 0.
60655         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60656
60657 2008-04-14  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60660         AC_LANG_PROGRAM argument.
60661         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60662         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60664         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60665         * m4/math_h.m4 (gl_MATH_H): Likewise.
60666         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60668         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60669         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60670         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60671         * m4/regex.m4 (gl_REGEX): Likewise.
60672         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60673         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60675         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60676         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60677         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60679         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60680
60681 2008-04-14  Jim Meyering  <meyering@redhat.com>
60682
60683         test-strtod: fix typos: s/abs/fabs/
60684         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60685
60686 2008-04-13  Bruno Haible  <bruno@clisp.org>
60687
60688         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60689         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60690         module is also used and while not building the reloc-wrapper.
60691
60692 2008-04-13  Bruno Haible  <bruno@clisp.org>
60693
60694         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60695
60696 2008-04-13  Bruno Haible  <bruno@clisp.org>
60697
60698         Fix AIX compilation failure introduced on 2008-04-02.
60699         * tests/test-frexp.c (exp): Undefine before redefining.
60700         * tests/test-frexpl.c (exp): Likewise.
60701
60702 2008-04-13  Bruno Haible  <bruno@clisp.org>
60703
60704         Work around a HP-UX stdio bug.
60705         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60706         * tests/test-ftello.c (main): Likewise.
60707         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60708         * doc/posix-functions/ftello.texi: Likewise.
60709
60710 2008-04-13  Bruno Haible  <bruno@clisp.org>
60711
60712         Make test-signbit pass on HP-UX/hppa.
60713         * tests/test-signbit.c (minus_zerol): New variable.
60714         (test_signbitl): Use it.
60715
60716 2008-04-13  Bruno Haible  <bruno@clisp.org>
60717
60718         Make truncl work on OSF/1 4.0.
60719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60720         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60721         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60723         HAVE_DECL_TRUNCL.
60724         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60725         HAVE_DECL_TRUNCL.
60726         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60727
60728 2008-04-13  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60731
60732 2008-04-13  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60735         expression, so as to avoid HP-UX 11 cc compiler bug.
60736
60737 2008-04-13  Bruno Haible  <bruno@clisp.org>
60738
60739         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60740
60741 2008-04-13  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/git-merge-changelog.c: Remove empty declaration outside of
60744         functions.
60745
60746 2008-04-13  Bruno Haible  <bruno@clisp.org>
60747
60748         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60749
60750 2008-04-13  Bruno Haible  <bruno@clisp.org>
60751
60752         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60753         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60755         also if it exists but lacks definitions of the SHUT_* macros.
60756         * modules/sys_socket (Description): Update.
60757         Reported by Elbert Pol <e.pol@chello.nl>.
60758
60759 2008-04-13  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/localcharset.c (OS2): Don't redefine if already defined.
60762         Reported by Elbert Pol <e.pol@chello.nl>.
60763
60764 2008-04-13  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/binary-io.h [__EMX__]: Include <io.h>.
60767         Reported by Elbert Pol <e.pol@chello.nl>.
60768
60769 2008-04-12  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/fpucw.h: Enable the definitions also for x86_64.
60772         Needed for NetBSD/x86_64.
60773         Reported by Thomas Klausner <tk@giga.or.at>.
60774
60775 2008-04-12  Bruno Haible  <bruno@clisp.org>
60776
60777         * tests/test-strtod.c: Include isnand.h.
60778         (main): Use isnand instead of isnan.
60779         Reported by Jim Meyering.
60780
60781 2008-04-12  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60785
60786 2008-04-12  Jim Meyering  <meyering@redhat.com>
60787
60788         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60789
60790 2008-04-12  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60793         Reported by Elbert Pol <e.pol@chello.nl>.
60794
60795 2008-04-12  Eric Blake  <ebb9@byu.net>
60796
60797         Work around Solaris 10 math.h bug.
60798         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60799         (gl_MATH_H_DEFAULTS): Set up default.
60800         * modules/math (Makefile.am): Replace new indicators.
60801         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60802         * tests/test-math.c (main): Test this.
60803         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60804         * doc/posix-headers/math.texi (math.h): Mention bug.
60805         Reported by Nelson H. F. Beebe and Jim Meyering.
60806
60807 2008-04-11  Bruno Haible  <bruno@clisp.org>
60808
60809         Adapt to future versions of Apple GCC.
60810         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60811         Reported by Peter O'Gorman <peter@pogma.com>.
60812
60813 2008-04-11  Bruno Haible  <bruno@clisp.org>
60814
60815         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60816
60817 2008-04-11  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60820
60821         * modules/getaddrinfo-tests (Makefile.am): Define
60822         test_getaddrinfo_LDADD.
60823
60824 2008-04-11  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60827         (init): Fix syntax error.
60828         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60829         is declared.
60830
60831 2008-04-11  Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60834         * modules/glob (Depends-on): Add stdbool.
60835
60836 2008-04-11  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/trim.c: Include <string.h>.
60839
60840 2008-04-11  Eric Blake  <ebb9@byu.net>
60841
60842         Avoid compile failure on OS/2.
60843         * lib/regex_internal.h (internal_function): Disable optimization
60844         on OS/2 (__EMX__), where it caused compiler error.
60845         Reported by Elbert Pol.
60846
60847 2008-04-11  Bruno Haible  <bruno@clisp.org>
60848
60849         Flush the standard error stream before aborting. Needed on mingw.
60850         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60851         * tests/test-array_list.c (ASSERT): Likewise.
60852         * tests/test-array_oset.c (ASSERT): Likewise.
60853         * tests/test-avltree_list.c (ASSERT): Likewise.
60854         * tests/test-avltree_oset.c (ASSERT): Likewise.
60855         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60856         * tests/test-binary-io.c (ASSERT): Likewise.
60857         * tests/test-byteswap.c (ASSERT): Likewise.
60858         * tests/test-c-ctype.c (ASSERT): Likewise.
60859         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60860         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60861         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60862         * tests/test-c-strstr.c (ASSERT): Likewise.
60863         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60864         * tests/test-canonicalize.c (ASSERT): Likewise.
60865         * tests/test-carray_list.c (ASSERT): Likewise.
60866         * tests/test-ceilf1.c (ASSERT): Likewise.
60867         * tests/test-ceilf2.c (ASSERT): Likewise.
60868         * tests/test-ceill.c (ASSERT): Likewise.
60869         * tests/test-count-one-bits.c (ASSERT): Likewise.
60870         * tests/test-fbufmode.c (ASSERT): Likewise.
60871         * tests/test-fflush2.c (ASSERT): Likewise.
60872         * tests/test-floorf1.c (ASSERT): Likewise.
60873         * tests/test-floorf2.c (ASSERT): Likewise.
60874         * tests/test-floorl.c (ASSERT): Likewise.
60875         * tests/test-fopen.c (ASSERT): Likewise.
60876         * tests/test-fpending.c (ASSERT): Likewise.
60877         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60878         * tests/test-fpurge.c (ASSERT): Likewise.
60879         * tests/test-freadable.c (ASSERT): Likewise.
60880         * tests/test-freadahead.c (ASSERT): Likewise.
60881         * tests/test-freading.c (ASSERT): Likewise.
60882         * tests/test-freadptr.c (ASSERT): Likewise.
60883         * tests/test-freadptr2.c (ASSERT): Likewise.
60884         * tests/test-freadseek.c (ASSERT): Likewise.
60885         * tests/test-freopen.c (ASSERT): Likewise.
60886         * tests/test-frexp.c (ASSERT): Likewise.
60887         * tests/test-frexpl.c (ASSERT): Likewise.
60888         * tests/test-fseek.c (ASSERT): Likewise.
60889         * tests/test-fseeko.c (ASSERT): Likewise.
60890         * tests/test-fstrcmp.c (ASSERT): Likewise.
60891         * tests/test-ftell.c (ASSERT): Likewise.
60892         * tests/test-ftello.c (ASSERT): Likewise.
60893         * tests/test-func.c (ASSERT): Likewise.
60894         * tests/test-fwritable.c (ASSERT): Likewise.
60895         * tests/test-fwriting.c (ASSERT): Likewise.
60896         * tests/test-getdelim.c (ASSERT): Likewise.
60897         * tests/test-getline.c (ASSERT): Likewise.
60898         * tests/test-i-ring.c (ASSERT): Likewise.
60899         * tests/test-iconv-utf.c (ASSERT): Likewise.
60900         * tests/test-iconv.c (ASSERT): Likewise.
60901         * tests/test-isfinite.c (ASSERT): Likewise.
60902         * tests/test-isnand.c (ASSERT): Likewise.
60903         * tests/test-isnanf.c (ASSERT): Likewise.
60904         * tests/test-isnanl.h (ASSERT): Likewise.
60905         * tests/test-ldexpl.c (ASSERT): Likewise.
60906         * tests/test-linked_list.c (ASSERT): Likewise.
60907         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60908         * tests/test-localename.c (ASSERT): Likewise.
60909         * tests/test-lseek.c (ASSERT): Likewise.
60910         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60911         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60912         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60913         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60914         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60915         * tests/test-mbschr.c (ASSERT): Likewise.
60916         * tests/test-mbscspn.c (ASSERT): Likewise.
60917         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60918         * tests/test-mbspbrk.c (ASSERT): Likewise.
60919         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60920         * tests/test-mbsrchr.c (ASSERT): Likewise.
60921         * tests/test-mbsspn.c (ASSERT): Likewise.
60922         * tests/test-mbsstr1.c (ASSERT): Likewise.
60923         * tests/test-mbsstr2.c (ASSERT): Likewise.
60924         * tests/test-mbsstr3.c (ASSERT): Likewise.
60925         * tests/test-memchr2.c (ASSERT): Likewise.
60926         * tests/test-memmem.c (ASSERT): Likewise.
60927         * tests/test-open.c (ASSERT): Likewise.
60928         * tests/test-printf-frexp.c (ASSERT): Likewise.
60929         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60930         * tests/test-printf-posix.c (ASSERT): Likewise.
60931         * tests/test-quotearg.c (ASSERT): Likewise.
60932         * tests/test-rbtree_list.c (ASSERT): Likewise.
60933         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60934         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60935         * tests/test-round1.c (ASSERT): Likewise.
60936         * tests/test-roundf1.c (ASSERT): Likewise.
60937         * tests/test-roundl.c (ASSERT): Likewise.
60938         * tests/test-signbit.c (ASSERT): Likewise.
60939         * tests/test-sleep.c (ASSERT): Likewise.
60940         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60941         * tests/test-snprintf.c (ASSERT): Likewise.
60942         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60943         * tests/test-stat-time.c (ASSERT): Likewise.
60944         * tests/test-strcasestr.c (ASSERT): Likewise.
60945         * tests/test-strerror.c (ASSERT): Likewise.
60946         * tests/test-striconv.c (ASSERT): Likewise.
60947         * tests/test-striconveh.c (ASSERT): Likewise.
60948         * tests/test-striconveha.c (ASSERT): Likewise.
60949         * tests/test-strsignal.c (ASSERT): Likewise.
60950         * tests/test-strstr.c (ASSERT): Likewise.
60951         * tests/test-strtod.c (ASSERT): Likewise.
60952         * tests/test-trunc1.c (ASSERT): Likewise.
60953         * tests/test-trunc2.c (ASSERT): Likewise.
60954         * tests/test-truncf1.c (ASSERT): Likewise.
60955         * tests/test-truncf2.c (ASSERT): Likewise.
60956         * tests/test-truncl.c (ASSERT): Likewise.
60957         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60958         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60959         * tests/test-vasnprintf.c (ASSERT): Likewise.
60960         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60961         * tests/test-vasprintf.c (ASSERT): Likewise.
60962         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60963         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60964         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60965         * tests/test-vsnprintf.c (ASSERT): Likewise.
60966         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60967         * tests/test-wcwidth.c (ASSERT): Likewise.
60968         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60969         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60970         * tests/test-xvasprintf.c (ASSERT): Likewise.
60971         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60972         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60973         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60974         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60975         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60976         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60977         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60978         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60979         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60980         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60981         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60982         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60983         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60984         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60985         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60986         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60987         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60988         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60989         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60990         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60991         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60992         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60993         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60994         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60995         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60996         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60997         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60998         * tests/unictype/test-combining.c (ASSERT): Likewise.
60999         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61000         * tests/unictype/test-digit.c (ASSERT): Likewise.
61001         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61002         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61003         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61004         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61005         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61006         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61007         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61008         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61009         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61010         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61011         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61012         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61013         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61014         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61015         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61016         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61017         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61018         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61019         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61020         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61021         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61022         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61023         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61024         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61025         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61026         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61027         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61028         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61029         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61030         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61031         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61032         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61033         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61034         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61035         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61036         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61037         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61038         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61039         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61040         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61041         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61042         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61043         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61044         Reported by Eric Blake.
61045
61046 2008-04-11  Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/wchar.in.h: Tweak comment.
61049
61050 2008-04-11  Bruno Haible  <bruno@clisp.org>
61051
61052         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61053         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61054         gl_COMMON.
61055         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61056
61057 2008-04-11  Bruno Haible  <bruno@clisp.org>
61058
61059         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61060
61061 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61062
61063         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61064         of attempting to use non-existing /dev/*random.  Based on patch
61065         from Adam Strzelecki <ono@java.pl> in
61066         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61067
61068 2008-04-08  Bruno Haible  <bruno@clisp.org>
61069
61070         Add tentative support for emx+gcc.
61071         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61072         * lib/fpurge.c (fpurge): Likewise.
61073         * lib/freadable.c (freadable): Likewise.
61074         * lib/freadahead.c (freadahead): Likewise.
61075         * lib/freading.c (freading): Likewise.
61076         * lib/freadptr.c (freadptr): Likewise.
61077         * lib/freadseek.c (freadptrinc): Likewise.
61078         * lib/fseeko.c (rpl_fseeko): Likewise.
61079         * lib/fseterr.c (fseterr): Likewise.
61080         * lib/fwritable.c (fwritable): Likewise.
61081         * lib/fwriting.c (fwriting): Likewise.
61082         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61083
61084 2008-04-09  Eric Blake  <ebb9@byu.net>
61085
61086         Avoid some autoconf warnings.
61087         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61088         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61089         * m4/afs.m4 (gl_AFS): Likewise.
61090         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61091         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61092         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61093         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61094         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61095         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61096         (AC_CHECK_DECLS_ONCE): Likewise.
61097         Rename file...
61098         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61099         gnulib-tool requires autoconf 2.59 or better.
61100         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61101
61102 2008-04-08  Eric Blake  <ebb9@byu.net>
61103
61104         Use 'git describe --match' if present (added in git 1.5.5).
61105         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61106         if possible.
61107
61108 2008-04-08  Bruno Haible  <bruno@clisp.org>
61109
61110         Add tentative support for OpenServer.
61111         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61112         _ptr, _cnt.
61113         * lib/fpurge.c (fpurge): Likewise.
61114         * lib/freadable.c (freadable): Likewise.
61115         * lib/freadahead.c (freadahead): Likewise.
61116         * lib/freading.c (freading): Likewise.
61117         * lib/freadptr.c (freadptr): Likewise.
61118         * lib/freadseek.c (freadptrinc): Likewise.
61119         * lib/fseeko.c (rpl_fseeko): Likewise.
61120         * lib/fseterr.c (fseterr): Likewise.
61121         * lib/fwritable.c (fwritable): Likewise.
61122         * lib/fwriting.c (fwriting): Likewise.
61123         Reported by Roger Cornelius <rac@tenzing.org> and
61124         Brian K. White <brian@aljex.com>.
61125
61126 2008-04-06  Jim Meyering  <meyering@redhat.com>
61127
61128         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61129
61130 2008-04-06  Bruno Haible  <bruno@clisp.org>
61131
61132         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61133         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61134         * tests/test-printf-posix.sh: Likewise.
61135         * tests/test-vfprintf-posix.sh: Likewise.
61136         * tests/test-vprintf-posix.sh: Likewise.
61137         * tests/test-xprintf-posix.sh: Likewise.
61138
61139 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61140
61141         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61142         hide error from 'ls', needed on OS/2.
61143         Report by Elbert Pol <elbert.pol@gmail.com>.
61144
61145 2008-04-04  Eric Blake  <ebb9@byu.net>
61146
61147         Make test-fseeko.c failures meaningful.
61148         * tests/test-fseeko.c: Print line number on failure.
61149         * tests/test-fseek.c: Likewise.
61150         Reported by Nelson H. F. Beebe.
61151
61152         Improve strtod bug detection check.
61153         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61154         required for Solaris 10.
61155         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61156
61157 2008-04-04  Bruno Haible  <bruno@clisp.org>
61158
61159         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61160         by m4/setenv.m4.
61161
61162 2008-04-03  Eric Blake  <ebb9@byu.net>
61163
61164         Ensure sane .version contents.
61165         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61166         version string.
61167         * build-aux/git-version-gen: Improve documentation.
61168
61169         Make GNU make output nicer.
61170         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61171         MAKECMDGOALS to enforce message for all command line targets.  Set
61172         srcdir for use in maint.mk.
61173
61174         Another maintainer tweak.
61175         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61176         a target that regenerates version.
61177
61178 2008-04-03  Jim Meyering  <meyering@redhat.com>
61179
61180         vc-list-files: don't cause coreutils "make po-check" failure
61181         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61182
61183 2008-04-03  Eric Blake  <ebb9@byu.net>
61184
61185         Allow VPATH usage of vc-list-files.
61186         * build-aux/vc-list-files (scriptversion): Add timestamp.
61187         (options): Add --help, --version, -C.
61188         (CVS): Support installed cvsu.
61189
61190 2008-04-02  Bruno Haible  <bruno@clisp.org>
61191
61192         Avoid some "statement with no effect" warnings from gcc.
61193         * tests/test-wctype.c (main): Explicitly ignore unused values.
61194         Reported by Jim Meyering.
61195
61196 2008-04-02  Jim Meyering  <meyering@redhat.com>
61197
61198         Avoid some warnings from "gcc -Wshadow".
61199         * tests/test-frexp.c (exp): Define to a different identifier.
61200         * tests/test-frexpl.c (exp): Likewise.
61201
61202 2008-04-03  Jim Meyering  <meyering@redhat.com>
61203
61204         bootstrap: remove dangling *.[ch] symlinks from lib
61205         * build-aux/bootstrap [dangling symlink removal]: Move find's
61206         -depth option to precede all others, to avoid a warning.
61207         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61208
61209 2008-04-02  Bruno Haible  <bruno@clisp.org>
61210
61211         Avoid some warnings from "gcc -Wshadow".
61212         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61213         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61214         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61215         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61216         Reported by Jim Meyering.
61217
61218 2008-04-01  Bruno Haible  <bruno@clisp.org>
61219
61220         Fix test to work on IRIX 6.5 with cc.
61221         * tests/test-math.c (numeric_equal): New function.
61222         (main): Use it.
61223
61224 2008-04-01  Bruno Haible  <bruno@clisp.org>
61225
61226         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61227
61228 2008-04-01  Bruno Haible  <bruno@clisp.org>
61229
61230         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61231         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61232         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61233         (Depends-on): Remove math.
61234
61235         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61236         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61237         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61238         (Depends-on): Remove math.
61239
61240         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61241         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61242         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61243         (Depends-on): Remove math.
61244         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61245         (Depends-on): Remove math.
61246
61247         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61248         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61249         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61250         (Depends-on): Remove math.
61251         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61252         (Depends-on): Remove math.
61253
61254         * tests/test-round1.c: Include nan.h.
61255         (main): Use NaNd instead of NAN.
61256         * modules/round-tests (Files): Add tests/nan.h.
61257
61258         * tests/test-trunc1.c: Include nan.h.
61259         (main): Use NaNd instead of NAN.
61260         * modules/trunc-tests (Files): Add tests/nan.h.
61261
61262         * tests/test-roundf1.c: Include nan.h.
61263         (main): Use NaNf instead of NAN.
61264         * modules/roundf-tests (Files): Add tests/nan.h.
61265
61266         * tests/test-truncf1.c: Include nan.h.
61267         (main): Use NaNf instead of NAN.
61268         * modules/truncf-tests (Files): Add tests/nan.h.
61269
61270         * tests/test-ceilf1.c: Include nan.h.
61271         (main): Use NaNf instead of NAN.
61272         * modules/ceilf-tests (Files): Add tests/nan.h.
61273
61274         * tests/test-floorf1.c: Include nan.h.
61275         (main): Use NaNf instead of NAN.
61276         * modules/floorf-tests (Files): Add tests/nan.h.
61277
61278         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61279         (main): Use NaNf instead of NAN.
61280         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61281
61282         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61283         (main): Use NaNd instead of NAN.
61284         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61285
61286         * tests/test-frexp.c: Include nan.h.
61287         (main): Use NaNd instead of NAN.
61288         * modules/frexp-tests (Files): Add tests/nan.h.
61289
61290         * lib/isnan.c: Don't include <math.h>.
61291         (FUNC): Don't use NAN macro.
61292         * modules/isnand-nolibm (Depends-on): Remove math.
61293         * modules/isnanf-nolibm (Depends-on): Remove math.
61294         * modules/isnanl (Depends-on): Remove math.
61295         * modules/isnanl-nolibm (Depends-on): Remove math.
61296
61297         * tests/nan.h: New file.
61298
61299 2008-04-01  Eric Blake  <ebb9@byu.net>
61300
61301         Fix typos.
61302         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61303         values to be the right type.
61304
61305         For now, cater to gnulib strtod inaccuracies.
61306         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61307         fractional results.  While not as nice from a QoI perspective, it
61308         is a quicker patch than correctly implementing decimal to binary
61309         rounding.
61310
61311 2008-03-31  Eric Blake  <ebb9@byu.net>
61312
61313         Guarantee a definition of NAN.
61314         * lib/math.in.h (NAN): Define if missing.
61315         * tests/test-math.c (main): Test it.
61316         * doc/posix-headers/math.texi (math.h): Document this.
61317         * lib/isnan.c (rpl_isnand): Use it.
61318         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61319         * tests/test-floorf1.c (NaN): Likewise.
61320         * tests/test-frexp.c (NaN): Likewise.
61321         * tests/test-isnand.c (NaN): Likewise.
61322         * tests/test-isnanf.c (NaN): Likewise.
61323         * tests/test-round1.c (NaN): Likewise.
61324         * tests/test-roundf1.c (NaN): Likewise.
61325         * tests/test-snprintf-posix.h (NaN): Likewise.
61326         * tests/test-sprintf-posix.h (NaN): Likewise.
61327         * tests/test-trunc1.c (NaN): Likewise.
61328         * tests/test-truncf1.c (NaN): Likewise.
61329         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61330         * tests/test-vasprintf-posix.c (NaN): Likewise.
61331         * modules/isnand-nolibm (Depends-on): Add math.
61332         * modules/isnanf-nolibm (Depends-on): Likewise.
61333         * modules/isnanl (Depends-on): Likewise.
61334         * modules/isnanl-nolibm (Depends-on): Likewise.
61335         * modules/snprintf-posix-tests (Depends-on): Likewise.
61336         * modules/sprintf-posix-tests (Depends-on): Likewise.
61337         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61338         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61339         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61340         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61341
61342 2008-03-31  Bruno Haible  <bruno@clisp.org>
61343
61344         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61345         * doc/posix-functions/strtod.texi: Likewise.
61346
61347 2008-03-31  Bruno Haible  <bruno@clisp.org>
61348
61349         * tests/test-strtod.c (main): Don't use C99 syntax.
61350
61351 2008-03-31  Bruno Haible  <bruno@clisp.org>
61352
61353         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61354         Reported by Eric Blake.
61355
61356 2008-03-31  Jim Meyering  <meyering@redhat.com>
61357
61358         Don't compare actual signbit return values.
61359         * tests/test-strtod.c (main): Rather, compare only their
61360         zero/non-zero nature.
61361
61362 2008-03-31  Eric Blake  <ebb9@byu.net>
61363
61364         More strtod documentation.
61365         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61366         failures as distinct bugs.
61367
61368 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61371         Problem reported by Erik Benada in
61372         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61373
61374 2008-03-30  Bruno Haible  <bruno@clisp.org>
61375
61376         * tests/test-strtod.c: Add comments about which assertion fails on which
61377         platform.
61378         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61379
61380 2008-03-30  Eric Blake  <ebb9@byu.net>
61381
61382         Test signbit behavior on zeros.
61383         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61384         (test_signbitd, test_signbitl): Likewise.
61385
61386         More strtod touchups.
61387         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61388         sign of negative underflow, for now.  Use .5, not .1.
61389         * doc/posix-functions/strtod.texi (strtod): Mention these
61390         limitations.
61391         Reported by Jim Meyering.
61392
61393 2008-03-30  Bruno Haible  <bruno@clisp.org>
61394
61395         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61396         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61397
61398 2008-03-30  Bruno Haible  <bruno@clisp.org>
61399
61400         Avoid failure when attempting to return empty iconv results on some
61401         platforms.
61402         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61403         allocation, don't report ENOMEM when the resulting string is empty.
61404
61405 2008-03-30  Bruno Haible  <bruno@clisp.org>
61406
61407         Fix buffer overrun.
61408         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61409         Don't consider the width for tmp_length. Check count against tmp_length
61410         before doing the padding. Ensure enough allocation during padding.
61411
61412 2008-03-30  Eric Blake  <ebb9@byu.net>
61413
61414         strtod touchups.
61415         * lib/strtod.c (strtod): Avoid compiler warnings.
61416         Reported by Jim Meyering.
61417
61418 2008-03-30  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61421         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61422         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61423         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61424         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61425         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61426         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61427         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61428
61429         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61430         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61431         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61432         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61433         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61434         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61435         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61436         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61437
61438         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61439         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61440         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61441         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61442         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61443         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61444         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61445         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61446
61447         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61448         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61449
61450         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61451         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61452
61453         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61454         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61455
61456         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61458         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61459
61460         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61462         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61463
61464         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61466         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61467
61468         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61469         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61470         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61471
61472         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61473         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61475         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61476         (Depends-on): Add EOVERFLOW.
61477         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61478         (Depends-on): Add EOVERFLOW.
61479         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61480         (Depends-on): Add EOVERFLOW.
61481         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61482         (Depends-on): Add EOVERFLOW.
61483         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61484         (Depends-on): Add EOVERFLOW.
61485         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61486         (Depends-on): Add EOVERFLOW.
61487         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61488         (Depends-on): Add EOVERFLOW.
61489         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61490         (Depends-on): Add EOVERFLOW.
61491
61492         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61494         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61495
61496         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61498         * modules/snprintf (Depends-on): Add EOVERFLOW.
61499
61500         * lib/poll.c (EOVERFLOW): Remove fallback.
61501         * modules/poll (Depends-on): Add EOVERFLOW.
61502
61503         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61504         * modules/getugroups (Depends-on): Add EOVERFLOW.
61505
61506         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61507         * modules/getdelim (Depends-on): Add EOVERFLOW.
61508
61509         * lib/ftell.c (EOVERFLOW): Remove fallback.
61510         * modules/ftell (Depends-on): Add EOVERFLOW.
61511
61512         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61514         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61515
61516         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61517
61518         * modules/EOVERFLOW-tests: New file.
61519         * tests/test-EOVERFLOW.c: New file.
61520
61521         * modules/EOVERFLOW: New file.
61522         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61523
61524 2008-03-30  Bruno Haible  <bruno@clisp.org>
61525
61526         Fix bug introduced on 2007-06-10.
61527         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61528         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61529
61530 2008-03-30  Bruno Haible  <bruno@clisp.org>
61531
61532         Improve freadseek's efficiency after ungetc.
61533         * lib/freadseek.c: Include freadahead.h.
61534         (freadptrinc): New function, extracted from freadseek.
61535         (freadseek): Use it in a loop. Use freadahead to determine the number
61536         of loop iterations.
61537         * modules/freadseek (Depends-on): Add freadahead.
61538         (configure.ac): Require AC_C_INLINE.
61539
61540 2008-03-30  Bruno Haible  <bruno@clisp.org>
61541
61542         * lib/freadseek.c (freadseek): Don't ignore the return value of
61543         freadptr.
61544
61545 2008-03-29  Eric Blake  <ebb9@byu.net>
61546
61547         Add hex float support.
61548         * modules/strtod (Depends-on): Add c-ctype.
61549         (Link): Mention POW_LIB.
61550         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61551         whitespace between 'e' and exponent.
61552         * tests/test-strtod.c (main): Enable hex float tests.
61553         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61554         now provides.
61555
61556         Document various strtod bugs, with some fixes.
61557         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61558         "-0x", "inf", "nan", and hex constants.
61559         * doc/posix-functions/atof.texi (atof): Likewise.
61560         * modules/stdlib (Makefile.am): Support strtod.
61561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61562         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61563         detect additional strtod bugs.
61564         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61565         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61566         bool where appropriate.  Parse 'inf' and 'nan'.
61567         * tests/test-strtod.c: New file.
61568         * modules/strtod (Depends-on): Add stdbool, stdlib.
61569         (configure.ac): Turn on module indicator.
61570         * modules/strtod-tests: New module.
61571
61572 2008-03-29  Eric Blake  <ebb9@byu.net>
61573
61574         Fix ftell on mingw.
61575         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61576         * modules/ftell-tests (Depends-on): Add binary-io.
61577         * modules/ftello-tests (Depends-on): Likewise.
61578         * tests/test-ftell.c (main): Enhance test to cover behavior after
61579         ungetc.  Enforce binary mode.
61580         * tests/test-ftello.c (main): Likewise.
61581
61582         Pass test-freadseek on cygwin.
61583         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61584         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61585         ungetc buffer.
61586
61587         * tests/test-fflush2.c (main): Fix typo.
61588
61589 2008-03-29  Bruno Haible  <bruno@clisp.org>
61590
61591         * tests/test-fflush2.c (main): Temporarily disable the contents of
61592         this test.
61593         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61594         Reported by Eric Blake.
61595
61596 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61597
61598         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61599         (GC_SHA224_DIGEST_SIZE): Add.
61600
61601         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61602         (gc_hash_digest_length): Likewise.
61603         (gc_hash_buffer): Likewise.
61604
61605 2008-03-25  Bruno Haible  <bruno@clisp.org>
61606
61607         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61608         detail which gettext release to use.
61609         Reported by Simon Josefsson.
61610
61611 2008-03-26  Jim Meyering  <meyering@redhat.com>
61612
61613         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61614         * modules/gnumakefile (clean-GNUmakefile): Also, use
61615         test ... && ... || : syntax rather than if-then ... fi.
61616
61617         gnumakefile: Don't double-quote-expand $(VPATH) value.
61618         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61619
61620 2008-03-24  Eric Blake  <ebb9@byu.net>
61621
61622         Alter GNUmakefile to install into top directory.
61623         * modules/maintainer-makefile: Split, and add dependency...
61624         * modules/gnumakefile: to this new module.
61625         * build-aux/GNUmakefile: Move...
61626         * top/GNUmakefile: ...here.
61627         * build-aux/maint.mk: Move...
61628         * top/maint.mk: ...here.
61629         * MODULES.html.sh (Support for maintaining...): Document new
61630         module.
61631
61632 2008-03-23  Bruno Haible  <bruno@clisp.org>
61633
61634         * gnulib-tool: New options --vc-files, --no-vc-files.
61635         (func_usage): Document them.
61636         (vc_files): New variable.
61637         (func_import): Consider vc_files.
61638         (func_create_testdir): Set vc_files to empty.
61639         Suggested by Jim Meyering and Karl Berry.
61640
61641 2008-03-23  Bruno Haible  <bruno@clisp.org>
61642
61643         Fix regex compilation error on HP-UX 11.
61644         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61645         * modules/regex (Files): Add m4/mbstate_t.m4.
61646         Reported by Ton Voon <ton.voon@altinity.com>.
61647
61648 2008-03-23  Bruno Haible  <bruno@clisp.org>
61649
61650         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61651
61652 2008-03-23  Eric Blake  <ebb9@byu.net>
61653             Bruno Haible  <bruno@clisp.org>
61654
61655         Install files from top/ in the destination directory.
61656         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61657         augmentation also for the files from top/.
61658         (func_import, func_create_testdir): Rewrite file names:
61659         top/filename -> filename.
61660
61661 2008-03-23  Bruno Haible  <bruno@clisp.org>
61662
61663         Tweak "gnulib --version" output.
61664         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61665
61666 2008-03-23  Bruno Haible  <bruno@clisp.org>
61667
61668         Tweak "gnulib --version" output.
61669         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61670         rather than contents of ChangeLog, when possible.
61671
61672 2008-03-21  Eric Blake  <ebb9@byu.net>
61673
61674         More --version tweaks.
61675         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61676         date of last ChangeLog entry.
61677
61678 2008-03-21  Jim Meyering  <meyering@redhat.com>
61679
61680         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61681
61682 2008-03-20  Eric Blake  <ebb9@byu.net>
61683
61684         VPATH fix.
61685         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61686
61687 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61688
61689         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61690         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61691
61692 2008-03-20  Eric Blake  <ebb9@byu.net>
61693
61694         Sync GNUmakefile with coreutils.
61695         * build-aux/GNUmakefile (have-Makefile): Rename...
61696         (_have-Makefile): ...to this, for namespace consideration.
61697         (GNUmakefile.cfg): Include, if present.
61698         (_autoreconf): Define a default.
61699         (_is-dist-target): New rule for rebuilds to pick up intra-release
61700         version.
61701         (maint-cfg.mk): Rename...
61702         (cfg.mk): ...to this.
61703
61704 2008-03-18  Jim Meyering  <meyering@redhat.com>
61705
61706         New script and module: mktempd
61707         * MODULES.html.sh (maint+release support): Add mktempd.
61708         * build-aux/mktempd: New file.
61709         * modules/mktempd: New file.
61710
61711 2008-03-15  Jim Meyering  <meyering@redhat.com>
61712
61713         Undo last change.
61714         * lib/sha1.c, lib/md5.c: 63 != ~63.
61715         Reported by Andreas Schwab.
61716
61717         sha1.c, md5.c: Hoist a redundant expression.
61718         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61719         "ctx->buflen" only once, before calling *_process_block.
61720         * lib/md5.c (md5_process_bytes): Likewise.
61721
61722 2008-03-14  Eric Blake  <ebb9@byu.net>
61723
61724         Bump copyright year in files generated by gnulib-tool.
61725         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61726         gnulib-tool, rather than hard-coding it.
61727
61728         Fix 'gnulib-tool --version' output to work with git.
61729         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61730         (startup): ...here.
61731         (func_version): Use it to invoke git-version-gen, rather than
61732         relying on CVS keyword expansion.  Modernize wording.
61733         (cvsdatestamp, last_checkin_date, version): Kill unused
61734         variables.
61735
61736 2008-03-12  Jim Meyering  <meyering@redhat.com>
61737
61738         Recognize optional cast of the argument to free.
61739         * build-aux/useless-if-before-free: Update regexps.
61740
61741         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61742
61743 2008-03-11  Bruno Haible  <bruno@clisp.org>
61744
61745         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61746         by a single package.
61747         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61748         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61749         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61750         Reported by Sam Steingold <sds@gnu.org>.
61751
61752 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61753
61754         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61755         repositories.
61756
61757 2008-03-11  Bruno Haible  <bruno@clisp.org>
61758
61759         Avoid conflicts between local macro definitions.
61760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61761         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61762
61763 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61764             Bruno Haible  <bruno@clisp.org>
61765
61766         Make va_copy work with some version of xlc on AIX 5.1.
61767         * lib/stdarg.in.h: New file.
61768         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61769         On AIX, use a <stdarg.h> file substitute.
61770         * modules/stdarg (Files): Add lib/stdarg.in.h.
61771         (Depends-on): Add include_next.
61772         (Makefile.am): Build a stdarg.h substitute if requested.
61773         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61774
61775 2008-03-10  Bruno Haible  <bruno@clisp.org>
61776
61777         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61778         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61779         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61780
61781 2008-03-10  Bruno Haible  <bruno@clisp.org>
61782
61783         * modules/stdlib (Depends-on): Add include_next, remove
61784         absolute-header.
61785
61786 2008-03-09  Bruno Haible  <bruno@clisp.org>
61787
61788         * lib/freadahead.h (freadahead): Document more precisely.
61789         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61790         the sum of both buffer sizes.
61791         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61792         * NEWS: Document the change.
61793
61794 2008-03-09  Bruno Haible  <bruno@clisp.org>
61795
61796         Extend freadptr to return also the buffer size.
61797         * lib/freadptr.h (freadptr): Add sizep argument.
61798         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61799         (freadptr): Add sizep argument. Determine buffer size like freadahead
61800         does.
61801         * tests/test-freadptr.c: Don't include freadahead.h.
61802         (main): Adapt for new calling convention of freadptr.
61803         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61804         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61805         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61806         tests/test-freadptr2.sh.
61807         (Depends): Remove freadahead.
61808         (TESTS): Add test-freadptr2.sh.
61809         (check_PROGRAMS): Add test-freadptr2.
61810
61811 2008-03-09  Bruno Haible  <bruno@clisp.org>
61812
61813         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61814         Report and solution by Simon Josefsson.
61815
61816 2008-03-06  Bruno Haible  <bruno@clisp.org>
61817
61818         Make fflush after ungetc work on BSD platforms.
61819         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61820         * tests/test-fflush2.c: New file.
61821         * tests/test-fflush2.sh: New file.
61822         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61823         tests/test-fflush2.c.
61824         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61825         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61826
61827 2008-03-06  Eric Blake  <ebb9@byu.net>
61828
61829         Likewise for ftello.
61830         * modules/ftello (Dependencies): Add extensions.
61831         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61832
61833 2008-03-06  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/fseeko (Dependencies): Add extensions.
61836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61837         Needed on glibc systems.
61838
61839 2008-03-06  Bruno Haible  <bruno@clisp.org>
61840
61841         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61842         email address.
61843         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61844
61845 2008-03-06  Bruno Haible  <bruno@clisp.org>
61846
61847         * users.txt: Add libgnupdf.
61848
61849 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61850
61851         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61852         (Header File Substitutes, Function Substitutes,
61853         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61854         (Build robot for gnulib): Fix typo.
61855
61856 2008-03-06  Bruno Haible  <bruno@clisp.org>
61857
61858         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61859         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61860
61861 2008-03-06  Bruno Haible  <bruno@clisp.org>
61862
61863         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61864         * doc/gnulib.texi: Include it.
61865
61866 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61867
61868         * modules/func (License): Change license to unlimited; there was
61869         no LGPL parts in the module anyway.
61870
61871 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61872
61873         * modules/__func__: Renamed to modules/func.
61874         * modules/__func__-tests: Renamed to modules/func-tests.
61875         * tests/test-__func__.c: Renamed to tests/test-func.c.
61876         * m4/__func__.m4: Renamed to m4/func.m4.
61877         * doc/gnulib.texi (__func__): Section renamed to func.
61878         Suggested by Eric Blake <ebb9@byu.net>.
61879
61880 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61881
61882         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61883         about __func__.  Make example self-contained.  Suggested by Eric
61884         Blake <ebb9@byu.net>.
61885
61886         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61887         Suggested by Eric Blake <ebb9@byu.net>.
61888
61889 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61890
61891         * modules/__func__: New file.
61892         * modules/__func__-tests: New file.
61893         * tests/test-__func__.c: New file.
61894         * m4/__func__.m4: New file.
61895         * doc/gnulib.texi (__func__): Document __func__ module.
61896
61897 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61898
61899         * modules/byteswap (License): Re-license as LGPLv2+.
61900
61901 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61902
61903         * doc/Makefile: Add pdf target.
61904
61905 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61906
61907         * modules/inline (License): Use 'unlimited', since there are only
61908         *.m4 files in this module.
61909
61910 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61911             Bruno Haible  <bruno@clisp.org>
61912
61913         Add support for HP C 7.1 on OpenVMS 8.3.
61914         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61915
61916 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61917
61918         Update VMS specifics.
61919         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61920
61921 2008-03-02  Jim Meyering  <meyering@redhat.com>
61922
61923         Remove the last dependency on the "free" module.
61924         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61925         Reported by Bob Proulx.
61926
61927         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61928
61929         Remove useless "if" tests before free.  Deprecate "free" module.
61930         * doc/posix-functions/free.texi: Mention that this
61931         module is no longer useful.
61932         * modules/free (Notice): Say this module is obsolete.
61933         * modules/readutmp (Depends-on): Remove free.
61934         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61935         * lib/putenv.c (putenv): Likewise.
61936         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61937         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61938         * tests/test-c-strcasestr.c (main): Likewise.
61939         * tests/test-c-strstr.c (main): Likewise.
61940         * tests/test-mbscasestr1.c (main): Likewise.
61941         * tests/test-mbscasestr2.c (main): Likewise.
61942         * tests/test-mbsstr1.c (main): Likewise.
61943         * tests/test-mbsstr2.c (main): Likewise.
61944         * tests/test-memmem.c (main): Likewise.
61945         * tests/test-strcasestr.c (main): Likewise.
61946         * tests/test-striconv.c (main): Likewise.
61947         * tests/test-striconveh.c (main): Likewise.
61948         * tests/test-striconveha.c (main): Likewise.
61949         * tests/test-strstr.c (main): Likewise.
61950
61951         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61952
61953         bootstrap: sync from coreutils again
61954         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61955
61956 2008-03-01  Jim Meyering  <meyering@redhat.com>
61957
61958         bootstrap: sync from coreutils
61959         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61960         also when the target doesn't exist.
61961
61962 2008-03-01  Eric Blake  <ebb9@byu.net>
61963
61964         Fix bugs in last patch.
61965         * lib/memchr2.c (memchr2): Fix typo.
61966         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61967         extension.
61968         Reported by Bruce Korb.
61969
61970         New module 'memchr2'.
61971         * modules/memchr2: New file.
61972         * modules/memchr2-tests: Likewise.
61973         * lib/memchr2.h: Likewise.
61974         * lib/memchr2.c: Likewise, based on memchr.c.
61975         * tests/test-memchr2.c: New test.
61976         * MODULES.html.sh (String handling): Add memchr2.
61977
61978 2008-02-29  Bruno Haible  <bruno@clisp.org>
61979
61980         * modules/freadseek-tests: New file.
61981         * tests/test-freadseek.sh: New file.
61982         * tests/test-freadseek.c: New file.
61983
61984         New module 'freadseek'.
61985         * modules/freadseek: New file.
61986         * lib/freadseek.h: New file.
61987         * lib/freadseek.c: New file.
61988         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61989
61990 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61991
61992         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61993         wydawca.
61994
61995         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61996         program_invocation_name and program_invocation_short_name are
61997         present.
61998
61999 2008-02-28  Bruno Haible  <bruno@clisp.org>
62000
62001         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62002         * tests/test-freadptr.sh: Also test non-seekable stdin.
62003
62004 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62005
62006         * build-aux/bootstrap (source_base, m4_base)
62007         (doc_base, tests_base): New variables.
62008         (gnulib_tool_options): Do not hardcode base directories, use
62009         the above variables instead.
62010
62011 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62012
62013         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62014
62015 2008-02-28  Bruno Haible  <bruno@clisp.org>
62016
62017         * modules/freadptr-tests: New file.
62018         * tests/test-freadptr.sh: New file.
62019         * tests/test-freadptr.c: New file.
62020
62021         New module 'freadptr'.
62022         * modules/freadptr: New file.
62023         * lib/freadptr.h: New file.
62024         * lib/freadptr.c: New file.
62025         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62026
62027 2008-02-26  Karl Berry  <karl@freefriends.org>
62028
62029         Sync from Libtool:
62030         * libltdl/argz.c (argz_add, argz_count): New functions.
62031         * libltdl/argz.in.h: Declare them.
62032         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62033
62034 2008-02-22  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62037         is a pointer type.  Needed for HP-UX 10.
62038         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62039         * doc/posix-functions/gmtime_r.texi: Likewise.
62040         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62041
62042 2008-02-24  Bruno Haible  <bruno@clisp.org>
62043
62044         * modules/environ-tests: New file.
62045         * tests/test-environ.c: New file.
62046
62047         New module 'environ'.
62048         * modules/environ: New file.
62049         * lib/unistd.in.h (environ): New declaration.
62050         * m4/environ.m4: New file.
62051         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62052         after use.
62053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62054         HAVE_DECL_ENVIRON.
62055         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62056         HAVE_DECL_ENVIRON.
62057         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62058         wrong claim that 'environ' is missing on some systems.
62059         * modules/execute (Depends-on): Add environ.
62060         * lib/execute.c (environ): Remove fallback declaration.
62061         * modules/pipe (Depends-on): Add environ.
62062         * lib/pipe.c (environ): Remove fallback declaration.
62063         * modules/setenv (Depends-on): Add environ.
62064         * lib/setenv.c (environ): Remove fallback declaration.
62065         * modules/unsetenv (Depends-on): Add environ.
62066         * lib/unsetenv.c (environ): Remove fallback declaration.
62067         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62068         m4/environ.m4.
62069         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62070         (gl_PREREQ_UNSETENV): Likewise.
62071
62072 2008-02-24  Bruno Haible  <bruno@clisp.org>
62073
62074         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62075
62076 2008-02-20  Bob Proulx  <bob@proulx.com>
62077
62078         Enable use of older two part flavor 'git describe'.
62079         * build-aux/git-version-gen: If using the older two part flavor of
62080         git version then recreate the third part now present in the
62081         newer three part flavor of git describe.
62082
62083 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62084
62085         * lib/fts.c (fts_build): Typo correction to comment.
62086
62087 2008-02-17  Bruno Haible  <bruno@clisp.org>
62088
62089         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62090         generating no-op conflicts.
62091
62092 2008-02-17  Bruno Haible  <bruno@clisp.org>
62093
62094         Speed up by 10%.
62095         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62096         result_entries, rather than an index-based loop.
62097
62098 2008-02-17  Bruno Haible  <bruno@clisp.org>
62099
62100         Speed up by 25%.
62101         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62102         'hashcode_cached'.
62103         (entry_create): New function.
62104         (entry_hashcode): Use the cached hashcode if possible.
62105         (read_changelog_file, try_split_merged_entry): Use entry_create.
62106
62107 2008-02-17  Bruno Haible  <bruno@clisp.org>
62108
62109         Speed up from O(n^2) to O(n) for long ChangeLog files.
62110         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62111         (read_changelog_file): Change implementation of entries_reversed list
62112         to rbtreehash.
62113         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62114
62115 2008-02-17  Bruno Haible  <bruno@clisp.org>
62116
62117         New option --split-merged-entry.
62118         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62119         (find_paragraph_end, try_split_merged_entry): New functions.
62120         (long_options): Add option --split-merged-entry.
62121         (usage): Document option --split-merged-entry.
62122         (main): Implement option --split-merged-entry.
62123         Reported by Eric Blake.
62124
62125 2008-02-17  Bruno Haible  <bruno@clisp.org>
62126
62127         * lib/git-merge-changelog.c: Include c-strstr.h.
62128         (main): Support the "git pull --rebase" situation.
62129         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62130         Reported by Eric Blake.
62131
62132 2008-02-16  Eric Blake  <ebb9@byu.net>
62133
62134         Avoid doubling \ in common case of "c-maybe" quoting style.
62135         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62136         eliding outer quotes.
62137         * lib/quotearg.h: Document this.
62138         * tests/test-quotearg.c (result_strings, inputs, results_g)
62139         (flag_results, locale_results): Test it by adding a new string to
62140         each test group.
62141         (compare_strings): Test new string.
62142
62143 2008-02-13  Eric Blake  <ebb9@byu.net>
62144
62145         Avoid trigraph quoting in default output.
62146         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62147         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62148         unless explicitly requested.
62149         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62150
62151 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62152
62153         Don't rely on signed integer overflowing to negative value.
62154         * lib/getugroups.c (getugroups): Include <limits.h>.
62155         Instead, compare against INT_MAX, and increment only if the test passes.
62156
62157 2008-02-13  Jim Meyering  <meyering@redhat.com>
62158         and Eric Blake  <ebb9@byu.net>
62159
62160         Avoid shadowing warning and compile errors on Linux.
62161         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62162         forwarding macros on Linux.
62163         (dcgettext): Define a stub, for Linux.
62164         (results_g, main): Avoid warnings.
62165
62166 2008-02-12  Eric Blake  <ebb9@byu.net>
62167
62168         Silence warning in last patch.
62169         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62170
62171         Quotearg part 4: add tests, fix c-maybe colon quoting.
62172         * lib/quotearg.h: Improve documentation.
62173         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62174         escapes when adding outer quotes.  When quoting trigraphs, use
62175         valid C notation.  When quoting NUL, omit extra characters if next
62176         character is not digit.  Alter prototype.
62177         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62178         callers.
62179         * modules/quotearg-tests: New module.
62180         * tests/test-quotearg.c: New test.
62181
62182 2008-02-07  Eric Blake  <ebb9@byu.net>
62183
62184         Quotearg part 3: add flag to control outer quote elision.
62185         * lib/quotearg.h (c_maybe_quoting_style): New style.
62186         (enum quoting_flags): Better documentation of flags.
62187         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62188         c-maybe style.
62189         (quotearg_buffer_restyled): Handle new flag to elide outer
62190         quotes.
62191
62192         Quotearg part 2: add flag that can control NUL elision.
62193         * lib/quotearg.h (set_quoting_flags): New prototype.
62194         * lib/quotearg.c (struct quoting_options): Add flag field.
62195         (set_quoting_flags): New function.
62196         (quotearg_buffer_restyled): Add flags parameter.
62197         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62198         (quotearg_n_options): Set the flag, since length cannot be
62199         returned.
62200         (quoting_options_from_style): Default flags correctly.
62201
62202         Quotearg part 1: more wrappers, restore quotearg_char state.
62203         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62204         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62205         (quotearg_colon_mem): New wrappers.
62206         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62207         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62208         functions.
62209         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62210         (quotearg_colon_mem): New functions.
62211
62212 2008-02-11  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62215         library in the current directory: it does not work with parallel make.
62216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62217
62218 2008-02-11  Bruno Haible  <bruno@clisp.org>
62219
62220         * .gitattributes: New file.
62221
62222 2008-02-11  Jim Meyering  <meyering@redhat.com>
62223
62224         useless-if-before-free: Fix reversed exit values.
62225         * build-aux/useless-if-before-free: Use correct values
62226         for EXIT_MATCH and EXIT_NO_MATCH.
62227
62228         * build-aux/useless-if-before-free: Close stdout carefully.
62229
62230 2008-02-10  Bruno Haible  <bruno@clisp.org>
62231
62232         New module 'git-merge-changelog'.
62233         * modules/git-merge-changelog: New file.
62234         * lib/git-merge-changelog.c: New file.
62235
62236 2008-02-10  Jim Meyering  <meyering@redhat.com>
62237
62238         useless-if-before-free: New option: --list (-l).
62239
62240         useless-if-before-free: Don't exit immediately upon open failure.
62241         * build-aux/useless-if-before-free: Exit 2 for errors.
62242         Upon failure to open a file, don't exit immediately.
62243         Rather, just warn and continue with any remaining files.
62244
62245 2008-02-10  Bruno Haible  <bruno@clisp.org>
62246
62247         New abstract list operation 'node_set_value'.
62248         * lib/gl_list.h (gl_list_node_set_value): New function.
62249         (struct gl_list_implementation): New field node_set_value.
62250         * lib/gl_list.c (gl_list_node_set_value): New function.
62251         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62252         (gl_array_list_implementation): Update.
62253         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62254         (gl_carray_list_implementation): Update.
62255         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62256         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62257         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62258         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62259         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62260         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62261         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62262         Update.
62263         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62264         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62265         (gl_sublist_list_implementation): Update.
62266
62267 2008-02-10  Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62270         Needed when ELEMENT is #defined to 'some_type *'.
62271
62272 2008-02-10  Jim Meyering  <meyering@redhat.com>
62273
62274         New script and module: useless-if-before-free
62275         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62276         * build-aux/useless-if-before-free: New file.
62277         * modules/useless-if-before-free: New file.
62278
62279         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62280
62281         xstrtol_error: Fix typo.
62282         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62283         s/exit_failure/exit_status/.
62284
62285 2008-02-09  Jim Meyering  <meyering@redhat.com>
62286
62287         New script and module: gitlog-to-changelog
62288         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62289         * modules/gitlog-to-changelog: New file.
62290         * build-aux/gitlog-to-changelog: New file.
62291
62292 2008-02-08  Jim Meyering  <meyering@redhat.com>
62293
62294         Avoid two "parameter unused" warnings.
62295         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62296         Mark "st" as used.
62297
62298         Use "git COMMAND", not "git-COMMAND".
62299         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62300         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62301         * build-aux/git-version-gen: Use "git status", not "git-status".
62302
62303 2008-02-07  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62306         Avoids a crash on Windows Vista.
62307         Reported by Adam Strzelecki <ono@java.pl> via
62308         Simon Josefsson <simon@josefsson.org>.
62309
62310 2008-02-06  Bruno Haible  <bruno@clisp.org>
62311
62312         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62313         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62314         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62316         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62317         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62318         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62319         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62327         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62328         left-adjust flag.
62329         * tests/test-snprintf-posix.h (test_function): Likewise.
62330         * tests/test-sprintf-posix.h (test_function): Likewise.
62331         * tests/test-vasprintf-posix.c (test_function): Likewise.
62332         * doc/posix-functions/fprintf.texi: Update.
62333         * doc/posix-functions/printf.texi: Update.
62334         * doc/posix-functions/snprintf.texi: Update.
62335         * doc/posix-functions/sprintf.texi: Update.
62336         * doc/posix-functions/vfprintf.texi: Update.
62337         * doc/posix-functions/vprintf.texi: Update.
62338         * doc/posix-functions/vsnprintf.texi: Update.
62339         * doc/posix-functions/vsprintf.texi: Update.
62340         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62341
62342 2008-02-06  Bruno Haible  <bruno@clisp.org>
62343
62344         Fix bug introduced on 2008-01-26.
62345         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62346
62347 2008-02-06  Bruno Haible  <bruno@clisp.org>
62348
62349         Fix bug introduced on 2007-06-10.
62350         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62351         !NEED_PRINTF_FLAG_ZERO.
62352
62353 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62354
62355         getloadavg: use libperfstat on AIX5
62356         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62357
62358 2008-02-03  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/diffseq.h: Add comments about required #includes.
62361         Reported by Michael Biggs <gnulib@doubleplum.net>.
62362
62363 2008-02-01  Bruno Haible  <bruno@clisp.org>
62364
62365         * users.txt: Add gnuit.
62366
62367 2008-01-31  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/md4.c (set_uint32): Mark as inline.
62370         * lib/md5.c (set_uint32): Likewise.
62371         * lib/sha1.c (set_uint32): Likewise.
62372         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62373         * m4/md5.m4 (gl_MD5): Likewise.
62374         * m4/sha1.m4 (gl_SHA1): Likewise.
62375
62376 2008-01-31  Jim Meyering  <meyering@redhat.com>
62377
62378         Use "sizeof VAR", rather than a literal "4".
62379         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62380         * lib/md4.c (md4_read_ctx): Likewise.
62381         * lib/sha1.c (sha1_read_ctx): Likewise.
62382
62383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62384
62385         * tests/test-sha1.c: New file, based on test-md5.c.
62386
62387         * modules/crypto/sha1-tests: New file.
62388
62389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62390
62391         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62392
62393 2008-01-31  Jim Meyering  <meyering@redhat.com>
62394
62395         Prefer "sizeof v" over the equivalent "4".
62396         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62397         * lib/md5.c (set_uint32): Likewise.
62398         * lib/sha1.c (set_uint32): Likewise.
62399
62400 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62401
62402         * lib/sha1.c (set_uint32): Mark function as static.
62403
62404 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62405
62406         md2: clarify comments to say that alignment is not required.
62407         * lib/md2.h: Remove warning about alignment in comment.
62408         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62409         never been required.
62410
62411 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62412
62413         md4: adapt alignment constraint fix from sha1.
62414         * lib/md4.c (set_uint32): New function, from sha1.c
62415         (md4_read_ctx): Use it.
62416         (md4_finish_ctx): Doc fix.
62417         * lib/md4.h: Doc fix.
62418
62419 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62420
62421         md5: adapt alignment constraint fix from sha1.
62422         * lib/md5.c (set_uint32): New function, from sha1.c
62423         (md5_read_ctx): Use it.
62424         (md5_finish_ctx): Doc fix.
62425         * lib/md5.h: Doc fix.
62426
62427 2008-01-30  Peter Palfrader  <weasel@debian.org>
62428
62429         sha1: remove the result buffer alignment constraint
62430         * lib/sha1.c (set_uint32): New function.
62431         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62432         constraint.
62433         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62434         * lib/sha1.h: Likewise.
62435
62436 2008-01-30  Andreas Schwab  <schwab@suse.de>
62437             Bruno Haible  <bruno@clisp.org>
62438
62439         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62440         correct definition of LDBL_MIN_EXP.
62441
62442 2008-01-30  Karl Berry  <karl@gnu.org>
62443
62444         * config/srclist-update: try to preserve x bit on updates.
62445         * config/srclistvars.sh: update for karl.
62446
62447 2008-01-29  Jim Meyering  <meyering@redhat.com>
62448
62449         vasnprintf.c: Avoid warning about unused label
62450         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62451         "overflow" label definition and associated code with the
62452         same cpp condition that guards the sole use of that label.
62453
62454 2008-01-26  Bruno Haible  <bruno@clisp.org>
62455
62456         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62457         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62458         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62459         * lib/isnanl-nolibm.h (isnanl): Likewise.
62460         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62461
62462 2008-01-26  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62465         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62466
62467 2008-01-26  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62470         GCC >= 4.0 built-in.
62471         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62472
62473 2008-01-26  Bruno Haible  <bruno@clisp.org>
62474
62475         Rename isnan, applicable to 'double' only, to isnand.
62476         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62477         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62478         (configure.ac): Update.
62479         (Include): Replace "isnan.h" with "isnand.h".
62480         * m4/isnand.m4: Renamed from m4/isnan.m4.
62481         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62482         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62483         instead of isnan.c.
62484         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62485         instead of HAVE_ISNAN_IN_LIBC.
62486         (isnand): Renamed from isnan.
62487         * lib/isnand.c: New file.
62488         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62489         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62490         (Makefile.am): Update.
62491         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62492         Include isnand.h instead of isnan.h.
62493         (main): Test isnand instead of isnan.
62494         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62495         isnan-nolibm.
62496         * modules/frexp (Depends-on): Likewise.
62497         * modules/frexp-tests (Depends-on): Likewise.
62498         * modules/frexp-nolibm (Depends-on): Likewise.
62499         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62500         * modules/isfinite (Depends-on): Likewise.
62501         * modules/round-tests (Depends-on): Likewise.
62502         * modules/signbit (Depends-on): Likewise.
62503         * modules/signbit-tests (Depends-on): Likewise.
62504         * modules/snprintf-posix (Depends-on): Likewise.
62505         * modules/sprintf-posix (Depends-on): Likewise.
62506         * modules/trunc-tests (Depends-on): Likewise.
62507         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62508         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62509         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62510         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62511         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62512         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62513         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62514         * modules/vasnprintf-posix (Depends-on): Likewise.
62515         * modules/vasprintf-posix (Depends-on): Likewise.
62516         * modules/vfprintf-posix (Depends-on): Likewise.
62517         * modules/vsnprintf-posix (Depends-on): Likewise.
62518         * modules/vsprintf-posix (Depends-on): Likewise.
62519         * lib/frexp.c: Include isnand.h instead of isnan.h.
62520         (ISNAN): Set to isnand instead of isnan.
62521         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62522         (gl_isfinited): Use isnand instead of isnan.
62523         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62524         (gl_signbitd): Use isnand instead of isnan.
62525         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62526         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62527         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62528         (main): Use isnand instead of isnan.
62529         * tests/test-round1.c: Include isnand.h.
62530         (main): Use isnand instead of isnan.
62531         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62532         (ISNAN): Set to isnand instead of isnan.
62533         * tests/test-trunc1.c: Include isnand.h.
62534         (main): Use isnand instead of isnan.
62535         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62536         (equal): Use isnand instead of isnan.
62537         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62538         isnand-nolibm.
62539         * NEWS: Mention the change.
62540
62541 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62542             Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62545         the GCC builtins for signbits are present and set
62546         REPLACE_SIGNBIT_USING_GCC if so.
62547         * lib/math.in.h (signbit): Define using GCC builtins if
62548         REPLACE_SIGNBIT_USING_GCC is set.
62549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62550         REPLACE_SIGNBIT_USING_GCC.
62551         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62552
62553 2008-01-25  Jim Meyering  <meyering@redhat.com>
62554
62555         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62556         * lib/poll.c: Include <config.h>, not "config.h".
62557         * tests/test-getaddrinfo.c: Likewise.
62558
62559 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62560
62561         * modules/sockets-tests: New file.
62562
62563 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62564
62565         * modules/sockets: New module, can be used to call WSA_Startup and
62566         WSA_Cleanup when needed.
62567
62568         * lib/sockets.h, lib/sockets.c: New files.
62569
62570         * m4/sockets.m4: New file.
62571
62572         * tests/test-sockets.c: New file.
62573
62574 2008-01-19  Bruno Haible  <bruno@clisp.org>
62575
62576         * doc/posix-headers: Renamed from doc/headers.
62577         * doc/posix-functions: Renamed from doc/functions.
62578         * doc/gnulib.texi: Update.
62579
62580 2008-01-19  Bruno Haible  <bruno@clisp.org>
62581
62582         * doc/glibc-functions/strcasestr.texi: Include contents of
62583         doc/functions/strcasestr.texi, fixing the list of platforms.
62584         * doc/functions/strcasestr.texi: Remove file.
62585
62586 2008-01-19  Bruno Haible  <bruno@clisp.org>
62587
62588         * doc/glibc-functions/memmem.texi: Include contents of
62589         doc/functions/memmem.texi.
62590         * doc/functions/memmem.texi: Remove file.
62591
62592 2008-01-18  Bruno Haible  <bruno@clisp.org>
62593
62594         * doc/glibc-functions/*.texi: New files.
62595         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62596         to use the new files.
62597
62598 2008-01-17  Bruno Haible  <bruno@clisp.org>
62599
62600         * tests/test-gethostname.c (main): Fix printf statement.
62601
62602 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62603
62604         * modules/gethostname-tests: New file.
62605
62606         * tests/test-gethostname.c: New file.
62607
62608 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62609
62610         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62611         used by the UNAME case.  Reported by Bruno Haible
62612         <bruno@clisp.org>.
62613
62614 2008-01-17  Eric Blake  <ebb9@byu.net>
62615
62616         Convert c-strcasestr to be more efficient.
62617         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62618         (Depends-on): Add c-strcase, remove malloca, strnlen.
62619         * tests/test-c-strcasestr.c (main): Enhance test.
62620         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62621
62622 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62623
62624         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62625         Use it in creating po/Makevars.
62626
62627 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62628
62629         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62630         Applications that requires it should initialize libgcrypt
62631         manually.
62632
62633 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62634
62635         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62636
62637 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         Fix problem with getdate on mingw32 reported by Simon Josefsson
62640         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62641         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62642         tzname", when deciding whether to declare tzname.
62643         * lib/strftime.c (tzname): Likewise.
62644
62645 2008-01-15  Bruno Haible  <bruno@clisp.org>
62646
62647         Work around a MacOS X 10.5 bug in frexpl().
62648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62649         * doc/functions/frexpl.texi: Document the bug.
62650         Reported by Elias Pipping <pipping@gentoo.org>.
62651
62652 2008-01-14  Eric Blake  <ebb9@byu.net>
62653
62654         Touch up previous patch.
62655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62656         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62657
62658         Convert strcasestr module to use Two-Way algorithm.
62659         * modules/strcasestr-simple: New module, based on the old
62660         strcasestr, but with Two-Way rather than KMP.
62661         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62662         * lib/string.in.h (rpl_strcasestr): Declare.
62663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62664         performance.
62665         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62666         * modules/string (Makefile.am): Support strcasestr.
62667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62668         * modules/strcasestr-tests (Depends-on): Check for alarm.
62669         * tests/test-strcasestr.c: Augment test.
62670         * lib/str-two-way.h: Clean up stray macro.
62671         * NEWS: Document new module.
62672         * MODULES.html.sh (string handling): Likewise.
62673         * doc/functions/strcasestr.texi: New file.
62674         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62675         here, since it is not a POSIX function.
62676
62677 2008-01-14  Colin Watson  <cjwatson@debian.org>
62678             Bruno Haible  <bruno@clisp.org>
62679
62680         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62681         works fine; if not, set REPLACE_STRSIGNAL.
62682         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62684         REPLACE_STRSIGNAL.
62685         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62686         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62687         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62688
62689 2008-01-14  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/strsignal (Include): Change to <string.h>.
62692
62693 2008-01-14  Colin Watson  <cjwatson@debian.org>
62694
62695         * modules/argp (Notice): Add a notice recommending to change
62696         XGETTEXT_OPTIONS.
62697         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62698
62699 2008-01-13  Colin Watson  <cjwatson@debian.org>
62700
62701         * modules/strsignal-tests: New file.
62702         * tests/test-strsignal.c: New file.
62703
62704         * lib/strsignal.c: New file, from glibc with modifications.
62705         * lib/siglist.h: New file, from glibc with modifications.
62706         * lib/string.in.h (strsignal): New declaration.
62707         * m4/strsignal.m4: New file.
62708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62709         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62710         * modules/strsignal: New file.
62711         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62712         HAVE_DECL_STRSIGNAL.
62713
62714 2008-01-13  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62717         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62718         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62719         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62720
62721 2008-01-13  Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62724         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62725         * lib/argp.h (__attribute__): Likewise.
62726         * lib/c-stack.c (__attribute__): Likewise.
62727         * lib/error.h (__attribute__): Likewise.
62728         * lib/fts.c (__attribute__): Likewise.
62729         * lib/openat.h (__attribute__): Likewise.
62730         * lib/stdio.in.h (__attribute__): Likewise.
62731         * lib/string.in.h (__attribute__): Likewise.
62732         * lib/utimens.c (__attribute__): Likewise.
62733         * lib/vasnprintf.h (__attribute__): Likewise.
62734         * lib/xalloc.h (__attribute__): Likewise.
62735         * lib/xprintf.h (__attribute__): Likewise.
62736         * lib/xstrtol.h (__attribute__): Likewise.
62737         * lib/xvasprintf.h (__attribute__): Likewise.
62738
62739 2008-01-12  Bruno Haible  <bruno@clisp.org>
62740
62741         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62742         * doc/glibc-headers/a.out.texi: New file.
62743         * doc/glibc-headers/aliases.texi: New file.
62744         * doc/glibc-headers/alloca.texi: New file.
62745         * doc/glibc-headers/ar.texi: New file.
62746         * doc/glibc-headers/argp.texi: New file.
62747         * doc/glibc-headers/argz.texi: New file.
62748         * doc/glibc-headers/byteswap.texi: New file.
62749         * doc/glibc-headers/crypt.texi: New file.
62750         * doc/glibc-headers/endian.texi: New file.
62751         * doc/glibc-headers/envz.texi: New file.
62752         * doc/glibc-headers/err.texi: New file.
62753         * doc/glibc-headers/error.texi: New file.
62754         * doc/glibc-headers/execinfo.texi: New file.
62755         * doc/glibc-headers/fpu_control.texi: New file.
62756         * doc/glibc-headers/fstab.texi: New file.
62757         * doc/glibc-headers/fts.texi: New file.
62758         * doc/glibc-headers/getopt.texi: New file.
62759         * doc/glibc-headers/ieee754.texi: New file.
62760         * doc/glibc-headers/ifaddrs.texi: New file.
62761         * doc/glibc-headers/libintl.texi: New file.
62762         * doc/glibc-headers/mcheck.texi: New file.
62763         * doc/glibc-headers/mntent.texi: New file.
62764         * doc/glibc-headers/obstack.texi: New file.
62765         * doc/glibc-headers/paths.texi: New file.
62766         * doc/glibc-headers/printf.texi: New file.
62767         * doc/glibc-headers/pty.texi: New file.
62768         * doc/glibc-headers/resolv.texi: New file.
62769         * doc/glibc-headers/shadow.texi: New file.
62770         * doc/glibc-headers/sysexits.texi: New file.
62771         * doc/glibc-headers/ttyent.texi: New file.
62772
62773 2008-01-12  Jim Meyering  <meyering@redhat.com>
62774
62775         announce-gen: emit Gnulib's git-based version string.
62776         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62777         New option --gnulib-version=V, where V is expected to be
62778         the output of running git describe in the gnulib directory.
62779         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62780         not useful, and plan to stop publishing an xdelta file with each
62781         coreutils release.
62782
62783         * build-aux/announce-gen: Also check for lzma-compressed files.
62784
62785 2008-01-11  Bruno Haible  <bruno@clisp.org>
62786
62787         * tests/test-memmem.c (main): Increase maximum allowed time.
62788         * tests/test-strstr.c (main): Likewise.
62789
62790 2008-01-11  Bruno Haible  <bruno@clisp.org>
62791
62792         * doc/functions/memmem.texi: Add more precisions about platforms.
62793         * doc/functions/strstr.texi: Likewise.
62794
62795 2008-01-10  Eric Blake  <ebb9@byu.net>
62796
62797         * m4/strstr.m4: Delete cruft from copy-n-paste.
62798         Reported by Bruno Haible.
62799
62800 2008-01-10  Bruno Haible  <bruno@clisp.org>
62801
62802         Make c-strstr rely on strstr.
62803         * lib/c-strstr.c: Don't include str-kmp.h.
62804         (c_strstr): Define in terms of strstr.
62805         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62806         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62807
62808 2008-01-10  Bruno Haible  <bruno@clisp.org>
62809
62810         * doc/gnulib.texi (String Functions in C Locale): New section.
62811         * doc/c-ctype.texi: New file.
62812         * doc/c-strcase.texi: New file.
62813         * doc/c-strcaseeq.texi: New file.
62814         * doc/c-strcasestr.texi: New file.
62815         * doc/c-strstr.texi: New file.
62816         * doc/c-strtod.texi: New file.
62817         * doc/c-strtold.texi: New file.
62818
62819 2008-01-10  Eric Blake  <ebb9@byu.net>
62820
62821         * lib/relocatable.h: Fix a comment.
62822
62823 2008-01-10  Eric Blake  <ebb9@byu.net>
62824
62825         Share two-way algorithm.
62826         * lib/str-two-way.h: New file, merged from...
62827         * lib/memmem.c: ...here...
62828         * lib/strstr.c: ...and here.
62829         * modules/memmem (Files): Use it.
62830         * modules/strstr (Files): Likewise.
62831
62832         Avoid quadratic strstr implementations.
62833         * lib/strstr.c: New file.
62834         * m4/strstr.m4: Likewise.
62835         * modules/strstr: Likewise.
62836         * modules/strstr-tests: Likewise.
62837         * tests/test-strstr.c: Likewise.
62838         * lib/string.in.h (rpl_strstr): Declare.
62839         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62841         * modules/string (Makefile.am): Likewise.
62842         * MODULES.html.sh (string handling): Mention new module.
62843         * doc/functions/strstr.texi (strstr): Document the bug.
62844
62845 2008-01-10  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/relocatable.h (relocate): State whether result is freshly
62848         allocated or not.
62849         * lib/relocatable.c (relocate): Return a freshly allocated string
62850         instead of a pointer to a privately held string.
62851         Reported by Sylvain Beucler <beuc@gnu.org>.
62852
62853 2008-01-10  Colin Watson  <cjwatson@debian.org>
62854
62855         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62856         s/S_ISNLK/S_ISLNK/.
62857
62858 2008-01-09  Bruno Haible  <bruno@clisp.org>
62859
62860         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62861         and other files.
62862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62863         if it's only a guess.
62864         * modules/memmem: Simplify by depending on memmem-simple.
62865
62866 2008-01-09  Bruno Haible  <bruno@clisp.org>
62867
62868         Work around OpenBSD 4.0 tdelete() bug.
62869         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62870         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62871         macros and don't redefine the enum values.
62872         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62873         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62874         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62875
62876 2008-01-09  Bruno Haible  <bruno@clisp.org>
62877
62878         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62879         (main): Don't perform the tests if setlocale did not install a UTF-8
62880         locale. Needed on OpenBSD 4.0.
62881         * modules/wcwidth-tests (Depends-on): Add localcharset.
62882
62883 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62886         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62887         * NEWS: announce this.
62888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62889
62890 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62891         and Eric Blake  <ebb9@byu.net>
62892
62893         Add memmem-simple module.
62894         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62895         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62896         * modules/memmem-simple: New file.
62897         * modules/memmem (Description): Tweak.
62898         * MODULES.html.sh (string handling): Mention new module.
62899         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62900         addressed by memmem-simple.
62901         * NEWS: Document the difference.
62902
62903 2008-01-09  Eric Blake  <ebb9@byu.net>
62904
62905         Give gcc some memmem optimization hints.
62906         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62907         (strcasestr): Declare as pure.
62908         * modules/memmem (Maintainer): Claim my implementation.
62909
62910 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62911
62912         Support AIX 6.1 and higher.
62913         * build-aux/config.libpath: Likewise.
62914         * build-aux/config.rpath: Likewise.
62915
62916 2008-01-08  Jim Meyering  <meyering@redhat.com>
62917             Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62920         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62921         Reported by Peter Fales in
62922         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62923
62924 2008-01-08  Bruno Haible  <bruno@clisp.org>
62925
62926         * modules/unictype/category-of (Depends-on): Add
62927         unictype/category-none.
62928         * modules/unictype/category-and-tests (Depends-on): Add
62929         unictype/category-{L,N,Lu,Nd}.
62930         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62931         * modules/unictype/category-or-tests (Depends-on): Add
62932         unictype/category-{L,N}.
62933         * modules/unictype/category-name-tests (Depends-on): Add
62934         unictype/category-{Z,Nl}.
62935         Reported by Simon Josefsson.
62936
62937 2008-01-08  Bruno Haible  <bruno@clisp.org>
62938
62939         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62940         convention better.
62941         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62942         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62943         Reported by Peter Miller <millerp@canb.auug.org.au>.
62944
62945 2008-01-08  Eric Blake  <ebb9@byu.net>
62946
62947         Rewrite memmem to guarantee linear complexity without malloc.
62948         * lib/memmem.c (memmem): Use Two-Way rather than
62949         Knuth-Morris-Pratt, to allow O(1) space usage.
62950         (critical_factorization, two_way_short_needle)
62951         (two_way_long_needle): New functions.
62952         (knuth_morris_pratt): Delete.
62953         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62954         Add stdint.
62955         * tests/test-memmem.c (main): Add tests for periodic needle and
62956         sublinear performance.
62957         * doc/functions/memmem.texi (memmem): Document other deficiencies
62958         in cygwin and older glibc.
62959
62960 2008-01-08  Bruno Haible  <bruno@clisp.org>
62961
62962         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62963         augmentation.
62964
62965 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62966
62967         Add a configure time option: --disable-acl.
62968         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62969         AC_ARG_ENABLE(acl).
62970
62971 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62972
62973         * tests/test-localename.c: Don't include obsolete "setenv.h".
62974
62975         * modules/localename-tests (Depends-on): Need unsetenv.
62976
62977 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62978
62979         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62980
62981 2008-01-06  Colin Watson  <cjwatson@debian.org>
62982
62983         * users.txt: Add man-db.
62984
62985 2008-01-07  Bruno Haible  <bruno@clisp.org>
62986
62987         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62988         previous section name.
62989
62990 2008-01-07  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/progname.c (set_program_name): Don't strip off a leading
62993         "lt-" prefix outside a .libs directory.
62994         Suggested by Paul Eggert.
62995
62996 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62997             Bruno Haible  <bruno@clisp.org>
62998
62999         Improve memory cleanup in 'relocatable' module.
63000         * lib/relocatable.h (compute_curr_prefix): Change return type to
63001         'char *'.
63002         * lib/relocatable.c (compute_curr_prefix): Change return type to
63003         'char *'. Free curr_installdir after use.
63004         (relocate): Free curr_prefix_better after use.
63005         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63006
63007 2008-01-01  Bruno Haible  <bruno@clisp.org>
63008
63009         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63010         failure on older glibc systems.
63011         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63012
63013 2008-01-05  Eric Blake  <ebb9@byu.net>
63014
63015         Avoid quadratic system memmem.
63016         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63017         Reported by Ralf Wildenhues.
63018
63019         Fix memmem test for mingw.
63020         * modules/memmem-tests (configure.ac): Check for alarm.
63021         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63022         it.
63023         * doc/functions/memmem.texi: New file.
63024         * doc/gnulib.texi (Function Substitutes): Add memmem.
63025         Reported by Bruno Haible.
63026
63027 2008-01-04  Bruno Haible  <bruno@clisp.org>
63028
63029         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63030         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63031         gl_HEADER_STRING_H_DEFAULTS.
63032
63033 2008-01-04  Eric Blake  <ebb9@byu.net>
63034
63035         Shorten duration of memmem test.
63036         * tests/test-memmem.c (main): Use alarm to declare failure if test
63037         is taking too long.
63038         Reported by Ralf Wildenhues.
63039
63040 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63041
63042         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63043         string, needed by strerror.
63044
63045 2008-01-03  Colin Watson  <cjwatson@debian.org>
63046             Bruno Haible  <bruno@clisp.org>
63047
63048         * doc/gnulib-tool.texi (Localization): New section.
63049
63050 2008-01-02  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63053         variables to 'unsigned char *' type.
63054         Reported by Paul Eggert.
63055
63056 2008-01-02  Jim Meyering  <jim@meyering.net>
63057
63058         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63059
63060 2007-12-31  Jim Meyering  <jim@meyering.net>
63061
63062         Avoid use of private FTS type name.
63063         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63064
63065 2007-12-30  Karl Berry  <karl@gnu.org>
63066
63067         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63068         work around defect in Texinfo and/or the standalone Info browser.
63069
63070 2007-12-30  Bruno Haible  <bruno@clisp.org>
63071
63072         Unify 5 copies of the KMP code.
63073         * lib/str-kmp.h: New file.
63074         * lib/c-strcasestr.c: Include str-kmp.h.
63075         (knuth_morris_pratt): Remove function.
63076         (c_strcasestr): Update.
63077         * lib/c-strstr.c: Include str-kmp.h.
63078         (knuth_morris_pratt): Remove function.
63079         (c_strcasestr): Update.
63080         * lib/mbscasestr.c: Include str-kmp.h.
63081         (knuth_morris_pratt_unibyte): Remove function.
63082         * lib/mbsstr.c: Include str-kmp.h.
63083         (knuth_morris_pratt_unibyte): Remove function.
63084         * lib/strcasestr.c: Include str-kmp.h.
63085         (knuth_morris_pratt): Remove function.
63086         (strcasestr): Update.
63087         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63088         * modules/c-strstr (Files): Likewise.
63089         * modules/mbscasestr (Files): Likewise.
63090         * modules/mbsstr (Files): Likewise.
63091         * modules/strcasestr (Files): Likewise.
63092         Suggested by Paul Eggert.
63093
63094 2007-12-30  Bruno Haible  <bruno@clisp.org>
63095
63096         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63097         defined.
63098
63099 2007-12-30  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/xmalloca.h: Include xalloc.h.
63102         (xnmalloca): New macro.
63103
63104 2007-12-30  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/malloca.h (nmalloca): New macro.
63107         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63108         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63109         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63110         knuth_morris_pratt_multibyte): Likewise.
63111         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63112         knuth_morris_pratt_multibyte): Likewise.
63113         * lib/memmem.c (knuth_morris_pratt): Likewise.
63114         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63115
63116 2007-12-25  Bruno Haible  <bruno@clisp.org>
63117
63118         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63119         * lib/glob.c: Don't include openat.h.
63120         (link_exists2_p): Add back the code that deals with the
63121         !GLOB_ALTDIRFUNC case.
63122         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63123         let it do the filename concatenation.
63124         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63125         * modules/glob (Depends-on): Remove openat.
63126
63127 2007-12-31  Bruno Haible  <bruno@clisp.org>
63128
63129         * modules/dirfd (License): Change to LGPLv2+.
63130         Approved by Jim Meyering.
63131
63132 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63135         when multiplying M by sizeof (size_t).
63136
63137 2007-12-10  Martin Lambers  <marlam@marlam.de>
63138
63139         Override getpagesize on mingw.
63140         * lib/getpagesize.c: New file.
63141         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63142         * modules/getpagesize (Files): Add lib/getpagesize.c.
63143         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63145         REPLACE_GETPAGESIZE.
63146         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63147
63148 2007-12-25  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/localcharset (Notice): New field.
63151         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63152         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63153
63154 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63155             Bruno Haible  <bruno@clisp.org>
63156
63157         Avoid using the syntax symbol() in formatted documentation.
63158         * MODULES.html.sh (func_module): When replacing symbol() with a
63159         hyperlink, remove the parentheses. Show an error if some remain.
63160         Recognize and render the '...' syntax.
63161         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63162         Rework. Add paragraph about GCC's inlining.
63163         * doc/alloca.texi: Likewise.
63164         * doc/error.texi: Remove parentheses from symbol reference.
63165         * doc/gnulib-intro.texi: Likewise.
63166         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63167         * modules/fnmatch (Description): Reword to say "the ... function".
63168         * modules/full-read (Description): Likewise.
63169         * modules/full-write (Description): Likewise.
63170         * modules/safe-read (Description): Likewise.
63171         * modules/safe-write (Description): Likewise.
63172         * modules/strchrnul (Description): Likewise.
63173         * modules/trim (Description): Likewise.
63174         * modules/error (Description): Remove parentheses from symbol
63175         references.
63176         * modules/verror (Description): Likewise.
63177         Reported by Karl Berry.
63178
63179 2007-12-25  Bruno Haible  <bruno@clisp.org>
63180
63181         Fixup after 2007-10-16 commit.
63182         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63183
63184 2007-12-24  Bruno Haible  <bruno@clisp.org>
63185
63186         Make --enable-relocatable work with DESTDIR.
63187         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63188         to compute installdir from destprog.
63189         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63190         also set the RELOC_DESTDIR variable.
63191         Reported by Левашев Иван <octagram@bluebottle.com>.
63192
63193 2007-12-24  Bruno Haible  <bruno@clisp.org>
63194
63195         Fix link error due to xalloc_die().
63196         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63197         of xreadlink.
63198         * lib/relocwrapper.c: Update comments.
63199         * build-aux/install-reloc: Remove xreadlink.c from file list.
63200         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63201         xreadlink.c.
63202         Reported by Левашев Иван <octagram@bluebottle.com>.
63203
63204 2007-12-24  Bruno Haible  <bruno@clisp.org>
63205
63206         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63207         * lib/setenv.h: Remove file.
63208         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63209         lib/setenv.h.
63210         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63211         (Depends-on): Add stdlib.
63212         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63213         gl_FUNC_UNSETENV.
63214         (Include): Replace setenv.h with <stdlib.h>.
63215         * modules/unsetenv: New file.
63216         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63217         * lib/unsetenv.c: Include <stdlib.h> first.
63218         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63219         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63220         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63221         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63222         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63223         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63225         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63226         * doc/functions/unsetenv.texi: Update.
63227         * modules/xsetenv (Depends-on): Add unsetenv.
63228         * modules/getdate (Depends-on): Likewise.
63229         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63230         * lib/xsetenv.c: Don't include setenv.h.
63231         * lib/getdate.y: Likewise.
63232         * lib/relocwrapper.c: Likewise.
63233         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63234         (Depends-on): Add stdlib.
63235         * NEWS: Mention the changes.
63236         Reported by Левашев Иван <octagram@bluebottle.com>.
63237
63238 2007-12-23  Bruno Haible  <bruno@clisp.org>
63239
63240         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63241         indentation.
63242
63243 2007-12-23  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/c-strcasestr.c: Add more comments.
63246         * lib/c-strstr.c: Likewise.
63247         * lib/mbscasestr.c: Likewise.
63248         * lib/mbsstr.c: Likewise.
63249         * lib/strcasestr.c: Likewise.
63250         * lib/memmem.c: Likewise.
63251
63252 2007-12-23  Bruno Haible  <bruno@clisp.org>
63253
63254         * tests/test-memmem.c: Include <string.h> first.
63255
63256 2007-12-22  Bruno Haible  <bruno@clisp.org>
63257
63258         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63259         the contents of $testsbase.
63260         Reported by Ralf Wildenhues.
63261
63262 2007-12-22  Bruno Haible  <bruno@clisp.org>
63263
63264         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63265         two variables local_ldadd_before, local_ldadd_last.
63266
63267 2007-12-20  Eric Blake  <ebb9@byu.net>
63268
63269         Work around circular library issue when cross-compiling.
63270         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63271         that progname.o does not need to pull in rpl_memcmp.
63272
63273 2007-12-19  Eric Blake  <ebb9@byu.net>
63274
63275         Fix memmem to avoid O(n^2) worst-case complexity.
63276         * lib/memmem.c (knuth_morris_pratt): New function.
63277         (memmem): Use it if first few naive iterations fail.
63278         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63279         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63280         * modules/memchr (License): Likewise.
63281         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63282         malloca.
63283         * tests/test-memmem.c: Rewrite, borrowing ideas from
63284         test-mbsstr1.c; the old version wouldn't even compile!
63285         * modules/memmem-tests: New file.
63286         * lib/string.in.h (rpl_memmem): Add declaration.
63287         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63289         REPLACE_MEMMEM.
63290
63291 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63294         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63295         before any system include files, and undef after them all.  This
63296         should fix a problem on VMS reported by John E. Malmberg in
63297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63298
63299 2007-12-17  Eric Blake  <ebb9@byu.net>
63300
63301         Revert addition of verify, for BSD/OS.
63302         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63303         can't handle large files, for the sake of obsolete platforms.
63304         * modules/fseeko (Depends-on): Remove verify.
63305         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63306         * doc/functions/ftello.texi (ftello): Likewise.
63307         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63308         Reported by Larry Jones.
63309
63310 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63311
63312         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63313         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63314
63315 2007-12-17  Jim Meyering  <meyering@redhat.com>
63316
63317         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63318         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63319         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63320         * modules/getcwd (Depends-on): Add openat.
63321         Reported by Petr Salinger.
63322
63323 2007-12-17  Bruno Haible  <bruno@clisp.org>
63324
63325         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63326         avoid a segmentation fault of the configure test on x86_64 systems.
63327
63328 2007-12-15  Jim Meyering  <meyering@redhat.com>
63329
63330         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63331
63332 2007-12-13  Eric Blake  <ebb9@byu.net>
63333
63334         Another fseek test.
63335         * tests/test-fseek.c (main): Also test ungetc handling.
63336         * tests/test-fseeko.c (main): Likewise.
63337         * modules/fseeko (Depends-on): Add verify.
63338         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63339         large.
63340         Reported by Larry Jones.
63341
63342         Fix fseeko on mingw.
63343         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63344         seek.
63345
63346         Beef up fseek tests.
63347         * tests/test-fseek.c (main): Also test eof handling.
63348         * tests/test-fseeko.c (main): Likewise.
63349         Reported by Larry Jones.
63350
63351 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63352
63353         Fix fseeko on BSD-based platforms.
63354         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63355         successful seek.
63356
63357 2007-12-12  Eric Blake  <ebb9@byu.net>
63358
63359         Allow circular dependency of separate libtests.a
63360         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63361         when use_libtests.
63362
63363 2007-12-11  Eric Blake  <ebb9@byu.net>
63364
63365         Fix bug with -0.0L in previous patch.
63366         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63367         * tests/test-isnan.c (main): Also test on zeroes.
63368         * tests/test-isnanf.c (main): Likewise.
63369         * tests/test-isnanl.h (main): Likewise.
63370
63371         Detect pseudo-denormals on x86 even when cross-compiling.
63372         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63373         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63374         invalid bit patterns that happen to satisfy ==.
63375
63376         Avoid link failures with separate libtests.a.
63377         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63378         last, to satisfy circular dependencies.
63379
63380 2007-12-11  Eric Blake  <ebb9@byu.net>
63381         and Bruno Haible  <bruno@clisp.org>
63382
63383         Fix OpenBSD 4.0 <float.h> handling of long double.
63384         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63385         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63386         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63387
63388 2007-12-11  Jim Meyering  <meyering@redhat.com>
63389
63390         * users.txt: Add libvirt.
63391
63392         Support versions of autoconf prior to 2.59c.
63393         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63394         if it is not already defined.
63395
63396 2007-12-09  Bruno Haible  <bruno@clisp.org>
63397
63398         Let 'gnulib-tool --import' collect sources needed for the tests in
63399         tests/ rather than in lib/.
63400         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63401         argument. If true, add rules to generate libtests.a, and put libtests.a
63402         into $(LDADD). Consider source files in subdirectories and set
63403         uses_subdirs.
63404         (func_emit_initmacro_start, func_emit_initmacro_end,
63405         func_emit_initmacro_done): Pass all arguments explicitly.
63406         (func_import): Determine two module lists main_modules,
63407         testsrelated_modules. Determine use_libtests. Determine two variables
63408         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63409         instead of just sed_transform_lib_file. Determine two variables
63410         main_files and testsrelated_files. Compute 'files' as the union of
63411         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63412         func_add_or_update. In the generated gnulib-comp.m4, collect the
63413         object files for tests/ in different variables than those for lib/.
63414         Substitute LIBTESTS_LIBDEPS.
63415         (func_create_testdir): Combine the uses_subdirs results from
63416         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63417
63418 2007-12-09  Bruno Haible  <bruno@clisp.org>
63419
63420         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63421         the build-aux directory.
63422
63423 2007-12-09  Bruno Haible  <bruno@clisp.org>
63424
63425         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63426         introduced on 2006-09-09.
63427
63428 2007-12-07  Jim Meyering  <meyering@redhat.com>
63429
63430         Let these macros work also with autoconf-2.59.
63431         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63432         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63433         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63434
63435 2007-12-06  Jim Meyering  <meyering@redhat.com>
63436
63437         Avoid a configure-time syntax error in gl_FUNC_ACL.
63438         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63439         function in each branch, before testing the cache variable.
63440
63441 2007-12-04  Eric Blake  <ebb9@byu.net>
63442
63443         Make scripts executable.
63444         * build-aux/config.guess: Add execute permissions.
63445         * build-aux/config.sub: Likewise.
63446         * build-aux/gendocs.sh: Likewise.
63447
63448         Fix frexp on mingw.
63449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63450         cross-compiling.
63451         * doc/functions/frexp.texi (frexp): Document the bug.
63452
63453         Make cygwin fseeko check more reliable.
63454         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63455         version numbers, rather than unrelated feature check.
63456         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63457         * doc/functions/ftello.texi (ftello): Likewise.
63458         Reported by Bruno Haible.
63459
63460         * m4/strerror.m4: Bump version number.
63461
63462 2007-12-03  Bruno Haible  <bruno@clisp.org>
63463
63464         * doc/functions/mprotect.texi: Mention the mingw problem.
63465
63466 2007-12-03  Eric Blake  <ebb9@byu.net>
63467
63468         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63469         REPLACE_STRERROR is initialized before this macro.
63470
63471 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63474         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63475         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63476         put -lsec in even for programs other than 'ls'.  This fixes a problem
63477         for gettext reported by Bruno Haible in
63478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63479         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63480         Add support for Solaris 10.  This isn't efficient, but should get the
63481         job done for now.
63482
63483 2007-12-03  James Youngman  <jay@gnu.org>
63484
63485         * doc/regexprops-generic.texi: change "an close-group" to "a
63486         close-group" and "illegal" to "not allowed".
63487
63488 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63489
63490         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63491         pr_byname.h. Needed for the rare case when the maintainer has done
63492         "make maintainer-clean" in the source directory and then attempts a
63493         build outside the source directory.
63494         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63495         scripts_byname.h.
63496
63497 2007-12-02  Martin Lambers <marlam@marlam.de>
63498             Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/getpagesize.h: Remove file.
63501         * lib/unistd.in.h: Include declaration of getpagesize here.
63502         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63503         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63504         HAVE_SYS_PARAM_H.
63505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63506         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63507         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63508         (Depends-on): Add unistd.
63509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63510         (Include): Use <unistd.h> instead of getpagesize.h.
63511         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63512         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63513         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63514         gl_GETPAGESIZE invocation, already handled by module dependency.
63515         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63516
63517 2007-12-02  Bruno Haible  <bruno@clisp.org>
63518
63519         * modules/strings-tests: New file.
63520         * tests/test-strings.c: New file.
63521
63522         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63523         * lib/strings.in.h: New file.
63524         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63525         * m4/strings_h.m4: New file.
63526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63527         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63528         * modules/strings: New file.
63529         * modules/string (Makefile.am): Update.
63530         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63531         Reported by Karl Berry.
63532
63533 2007-12-01  Eric Blake  <ebb9@byu.net>
63534
63535         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63536         accommodate fix in cygwin 1.5.25.
63537
63538 2007-12-01  Jim Meyering  <meyering@redhat.com>
63539
63540         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63541         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63542         that would inhibit utf8-optimization of a regexp containing line-
63543         or buffer-anchors, e.g., `^', `$'.
63544
63545 2007-11-30  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63548         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63549         glthread_recursive_lock_init.
63550         * lib/lock.c (glthread_recursive_lock_init)
63551         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63553
63554 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         New function qset_acl, like set_acl but with syscall semantics.
63557         * lib/acl.h (qset_acl): New decl.
63558         * lib/acl.c (qset_acl): New function.
63559         (set_acl): Use new function.  Use more-consistent diagnostics.
63560
63561 2007-11-28  Jim Meyering  <meyering@redhat.com>
63562
63563         * modules/physmem (License): Change from GPL to LGPLv2+.
63564
63565 2007-11-26  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63568         'long double' type has excess precision.
63569         Reported by Jim Meyering in
63570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63571
63572 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63573
63574         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63575         Sync from <http://gnu.org/licenses>.
63576         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63577         with license text from same location.
63578         * doc/maintain.texi, doc/standards.texi:  Sync from
63579         <http://savannah.gnu.org/projects/gnustandards>.
63580
63581 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63582         and Jim Meyering  <meyering@redhat.com>
63583
63584         Adjust getdate' grammar to accept a slightly more regular language.
63585         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63586         Before, the former was rejected.
63587         * lib/getdate.y (digits_to_date_time): New function, factored
63588         out of ...
63589         (number): ...here.  Just call digits_to_date_time.
63590         (hybrid): New non-terminal to handle an <unsigned number,
63591         signed relative offset> sequence consistently.
63592
63593 2007-11-18  Jim Meyering  <meyering@redhat.com>
63594
63595         Pull my changes from coreutils:
63596         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63597         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63598         use of $gnulib_tool_option_extras, so that it's separated from the
63599         preceding argument.
63600
63601         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63602         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63603         parent destination directories before copying a file into place.
63604
63605 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63606
63607         bootstrap: work also with 4-argument variant of AC_INIT
63608         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63609
63610 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         Port test-getaddrinfo to Solaris.
63613         Problem reported by Bruno Haible in
63614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63615         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63616         explanation of setting 'hints'.
63617         Don't reject an implementation merely because it returns EAI_SERVICE.
63618         (EAI_SERVICE): Define to 0 if not defined.
63619
63620 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         The license of gnu-make and posix-shell is now "GPLed build tool".
63623         * modules/gnu-make (License): Likewise.
63624         * modules/posix-shell (License): Likewise.
63625
63626         New module posix-shell, for determining a POSIX shell
63627         or perhaps something that is close enough to a POSIX shell.
63628         * m4/posix-shell.m4: New file.
63629         * modules/posix-shell: New file.
63630
63631         * MODULES.html.sh: Mention new module.
63632
63633         New module gnu-make, for determining whether we're using GNU Make.
63634         * m4/gnu-make.m4: New file.
63635         * modules/gnu-make: New file.
63636         * MODULES.html.sh: Mention new module.
63637
63638 2007-11-14  Jim Meyering  <meyering@redhat.com>
63639
63640         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63641         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63642         use this macro to create a function _definition_.
63643         Remove useless "#undef ARGMATCH_DIE".
63644
63645 2007-11-14  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/config.charset: Update for OpenBSD 4.1.
63648         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63649
63650 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63651
63652         Document 64-bit #if problems in stdint.texi.
63653         * doc/headers/stdint.texi (stdint.h): Mention problems with
63654         64-bit-#if, and how to work around them.
63655
63656         Don't insist on 'long long int' support in the preprocessor.  It
63657         breaks too many things.  For example, PRIdMAX still uses a 'long
63658         long int' format with the latest Sun compiler, even though
63659         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63660         preprocessor problem.  This causes the latest coreutils to dump
63661         core on Solaris 10 sparc with the Sun C compiler.
63662         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63663         the troublesome expressions at configure-time, not at #if-time.
63664         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63665         preprocessor.
63666         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63667         compile-time C checks, done at 'configure'-time.
63668         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63669         * modules/inttypes (Makefile): Substitute the new symbols that
63670         gl_INTTYPES_H now generates.
63671         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63672
63673 2007-11-12  Bruno Haible  <bruno@clisp.org>
63674
63675         Tests for Unicode character classification functions.
63676
63677         * modules/unictype/bidicategory-byname-tests: New file.
63678         * modules/unictype/bidicategory-name-tests: New file.
63679         * modules/unictype/bidicategory-of-tests: New file.
63680         * modules/unictype/bidicategory-test-tests: New file.
63681         * modules/unictype/block-list-tests: New file.
63682         * modules/unictype/block-of-tests: New file.
63683         * modules/unictype/block-test-tests: New file.
63684         * modules/unictype/category-C-tests: New file.
63685         * modules/unictype/category-Cc-tests: New file.
63686         * modules/unictype/category-Cf-tests: New file.
63687         * modules/unictype/category-Cn-tests: New file.
63688         * modules/unictype/category-Co-tests: New file.
63689         * modules/unictype/category-Cs-tests: New file.
63690         * modules/unictype/category-L-tests: New file.
63691         * modules/unictype/category-Ll-tests: New file.
63692         * modules/unictype/category-Lm-tests: New file.
63693         * modules/unictype/category-Lo-tests: New file.
63694         * modules/unictype/category-Lt-tests: New file.
63695         * modules/unictype/category-Lu-tests: New file.
63696         * modules/unictype/category-M-tests: New file.
63697         * modules/unictype/category-Mc-tests: New file.
63698         * modules/unictype/category-Me-tests: New file.
63699         * modules/unictype/category-Mn-tests: New file.
63700         * modules/unictype/category-N-tests: New file.
63701         * modules/unictype/category-Nd-tests: New file.
63702         * modules/unictype/category-Nl-tests: New file.
63703         * modules/unictype/category-No-tests: New file.
63704         * modules/unictype/category-P-tests: New file.
63705         * modules/unictype/category-Pc-tests: New file.
63706         * modules/unictype/category-Pd-tests: New file.
63707         * modules/unictype/category-Pe-tests: New file.
63708         * modules/unictype/category-Pf-tests: New file.
63709         * modules/unictype/category-Pi-tests: New file.
63710         * modules/unictype/category-Po-tests: New file.
63711         * modules/unictype/category-Ps-tests: New file.
63712         * modules/unictype/category-S-tests: New file.
63713         * modules/unictype/category-Sc-tests: New file.
63714         * modules/unictype/category-Sk-tests: New file.
63715         * modules/unictype/category-Sm-tests: New file.
63716         * modules/unictype/category-So-tests: New file.
63717         * modules/unictype/category-Z-tests: New file.
63718         * modules/unictype/category-Zl-tests: New file.
63719         * modules/unictype/category-Zp-tests: New file.
63720         * modules/unictype/category-Zs-tests: New file.
63721         * modules/unictype/category-and-not-tests: New file.
63722         * modules/unictype/category-and-tests: New file.
63723         * modules/unictype/category-byname-tests: New file.
63724         * modules/unictype/category-name-tests: New file.
63725         * modules/unictype/category-none-tests: New file.
63726         * modules/unictype/category-of-tests: New file.
63727         * modules/unictype/category-or-tests: New file.
63728         * modules/unictype/category-test-withtable-tests: New file.
63729         * modules/unictype/combining-class-tests: New file.
63730         * modules/unictype/ctype-alnum-tests: New file.
63731         * modules/unictype/ctype-alpha-tests: New file.
63732         * modules/unictype/ctype-blank-tests: New file.
63733         * modules/unictype/ctype-cntrl-tests: New file.
63734         * modules/unictype/ctype-digit-tests: New file.
63735         * modules/unictype/ctype-graph-tests: New file.
63736         * modules/unictype/ctype-lower-tests: New file.
63737         * modules/unictype/ctype-print-tests: New file.
63738         * modules/unictype/ctype-punct-tests: New file.
63739         * modules/unictype/ctype-space-tests: New file.
63740         * modules/unictype/ctype-upper-tests: New file.
63741         * modules/unictype/ctype-xdigit-tests: New file.
63742         * modules/unictype/decimal-digit-tests: New file.
63743         * modules/unictype/digit-tests: New file.
63744         * modules/unictype/mirror-tests: New file.
63745         * modules/unictype/numeric-tests: New file.
63746         * modules/unictype/property-alphabetic-tests: New file.
63747         * modules/unictype/property-ascii-hex-digit-tests: New file.
63748         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63749         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63750         * modules/unictype/property-bidi-block-separator-tests: New file.
63751         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63752         * modules/unictype/property-bidi-common-separator-tests: New file.
63753         * modules/unictype/property-bidi-control-tests: New file.
63754         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63755         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63756         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63757         * modules/unictype/property-bidi-european-digit-tests: New file.
63758         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63759         * modules/unictype/property-bidi-left-to-right-tests: New file.
63760         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63761         * modules/unictype/property-bidi-other-neutral-tests: New file.
63762         * modules/unictype/property-bidi-pdf-tests: New file.
63763         * modules/unictype/property-bidi-segment-separator-tests: New file.
63764         * modules/unictype/property-bidi-whitespace-tests: New file.
63765         * modules/unictype/property-byname-tests: New file.
63766         * modules/unictype/property-combining-tests: New file.
63767         * modules/unictype/property-composite-tests: New file.
63768         * modules/unictype/property-currency-symbol-tests: New file.
63769         * modules/unictype/property-dash-tests: New file.
63770         * modules/unictype/property-decimal-digit-tests: New file.
63771         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63772         * modules/unictype/property-deprecated-tests: New file.
63773         * modules/unictype/property-diacritic-tests: New file.
63774         * modules/unictype/property-extender-tests: New file.
63775         * modules/unictype/property-format-control-tests: New file.
63776         * modules/unictype/property-grapheme-base-tests: New file.
63777         * modules/unictype/property-grapheme-extend-tests: New file.
63778         * modules/unictype/property-grapheme-link-tests: New file.
63779         * modules/unictype/property-hex-digit-tests: New file.
63780         * modules/unictype/property-hyphen-tests: New file.
63781         * modules/unictype/property-id-continue-tests: New file.
63782         * modules/unictype/property-id-start-tests: New file.
63783         * modules/unictype/property-ideographic-tests: New file.
63784         * modules/unictype/property-ids-binary-operator-tests: New file.
63785         * modules/unictype/property-ids-trinary-operator-tests: New file.
63786         * modules/unictype/property-ignorable-control-tests: New file.
63787         * modules/unictype/property-iso-control-tests: New file.
63788         * modules/unictype/property-join-control-tests: New file.
63789         * modules/unictype/property-left-of-pair-tests: New file.
63790         * modules/unictype/property-line-separator-tests: New file.
63791         * modules/unictype/property-logical-order-exception-tests: New file.
63792         * modules/unictype/property-lowercase-tests: New file.
63793         * modules/unictype/property-math-tests: New file.
63794         * modules/unictype/property-non-break-tests: New file.
63795         * modules/unictype/property-not-a-character-tests: New file.
63796         * modules/unictype/property-numeric-tests: New file.
63797         * modules/unictype/property-other-alphabetic-tests: New file.
63798         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63799         * modules/unictype/property-other-grapheme-extend-tests: New file.
63800         * modules/unictype/property-other-id-continue-tests: New file.
63801         * modules/unictype/property-other-id-start-tests: New file.
63802         * modules/unictype/property-other-lowercase-tests: New file.
63803         * modules/unictype/property-other-math-tests: New file.
63804         * modules/unictype/property-other-uppercase-tests: New file.
63805         * modules/unictype/property-paired-punctuation-tests: New file.
63806         * modules/unictype/property-paragraph-separator-tests: New file.
63807         * modules/unictype/property-pattern-syntax-tests: New file.
63808         * modules/unictype/property-pattern-white-space-tests: New file.
63809         * modules/unictype/property-private-use-tests: New file.
63810         * modules/unictype/property-punctuation-tests: New file.
63811         * modules/unictype/property-quotation-mark-tests: New file.
63812         * modules/unictype/property-radical-tests: New file.
63813         * modules/unictype/property-sentence-terminal-tests: New file.
63814         * modules/unictype/property-soft-dotted-tests: New file.
63815         * modules/unictype/property-space-tests: New file.
63816         * modules/unictype/property-terminal-punctuation-tests: New file.
63817         * modules/unictype/property-test-tests: New file.
63818         * modules/unictype/property-titlecase-tests: New file.
63819         * modules/unictype/property-unassigned-code-value-tests: New file.
63820         * modules/unictype/property-unified-ideograph-tests: New file.
63821         * modules/unictype/property-uppercase-tests: New file.
63822         * modules/unictype/property-variation-selector-tests: New file.
63823         * modules/unictype/property-white-space-tests: New file.
63824         * modules/unictype/property-xid-continue-tests: New file.
63825         * modules/unictype/property-xid-start-tests: New file.
63826         * modules/unictype/property-zero-width-tests: New file.
63827         * modules/unictype/scripts-tests: New file.
63828         * modules/unictype/syntax-c-ident-tests: New file.
63829         * modules/unictype/syntax-c-whitespace-tests: New file.
63830         * modules/unictype/syntax-java-ident-tests: New file.
63831         * modules/unictype/syntax-java-whitespace-tests: New file.
63832         * tests/unictype/test-bidi_byname.c: New file.
63833         * tests/unictype/test-bidi_name.c: New file.
63834         * tests/unictype/test-bidi_of.c: New file.
63835         * tests/unictype/test-bidi_test.c: New file.
63836         * tests/unictype/test-block_list.c: New file.
63837         * tests/unictype/test-block_of.c: New file.
63838         * tests/unictype/test-block_test.c: New file.
63839         * tests/unictype/test-categ_and.c: New file.
63840         * tests/unictype/test-categ_and_not.c: New file.
63841         * tests/unictype/test-categ_byname.c: New file.
63842         * tests/unictype/test-categ_name.c: New file.
63843         * tests/unictype/test-categ_none.c: New file.
63844         * tests/unictype/test-categ_of.c: New file.
63845         * tests/unictype/test-categ_or.c: New file.
63846         * tests/unictype/test-categ_test_withtable.c: New file.
63847         * tests/unictype/test-combining.c: New file.
63848         * tests/unictype/test-decdigit.c: New file.
63849         * tests/unictype/test-digit.c: New file.
63850         * tests/unictype/test-mirror.c: New file.
63851         * tests/unictype/test-numeric.c: New file.
63852         * tests/unictype/test-pr_byname.c: New file.
63853         * tests/unictype/test-pr_test.c: New file.
63854         * tests/unictype/test-predicate-part1.h: New file.
63855         * tests/unictype/test-predicate-part2.h: New file.
63856         * tests/unictype/test-scripts.c: New file.
63857         * tests/unictype/test-sy_c_ident.c: New file.
63858         * tests/unictype/test-sy_java_ident.c: New file.
63859
63860         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63861         for Unicode 5.0.0.
63862         * tests/unictype/test-categ_Cc.c: Likewise.
63863         * tests/unictype/test-categ_Cf.c: Likewise.
63864         * tests/unictype/test-categ_Cn.c: Likewise.
63865         * tests/unictype/test-categ_Co.c: Likewise.
63866         * tests/unictype/test-categ_Cs.c: Likewise.
63867         * tests/unictype/test-categ_L.c: Likewise.
63868         * tests/unictype/test-categ_Ll.c: Likewise.
63869         * tests/unictype/test-categ_Lm.c: Likewise.
63870         * tests/unictype/test-categ_Lo.c: Likewise.
63871         * tests/unictype/test-categ_Lt.c: Likewise.
63872         * tests/unictype/test-categ_Lu.c: Likewise.
63873         * tests/unictype/test-categ_M.c: Likewise.
63874         * tests/unictype/test-categ_Mc.c: Likewise.
63875         * tests/unictype/test-categ_Me.c: Likewise.
63876         * tests/unictype/test-categ_Mn.c: Likewise.
63877         * tests/unictype/test-categ_N.c: Likewise.
63878         * tests/unictype/test-categ_Nd.c: Likewise.
63879         * tests/unictype/test-categ_Nl.c: Likewise.
63880         * tests/unictype/test-categ_No.c: Likewise.
63881         * tests/unictype/test-categ_P.c: Likewise.
63882         * tests/unictype/test-categ_Pc.c: Likewise.
63883         * tests/unictype/test-categ_Pd.c: Likewise.
63884         * tests/unictype/test-categ_Pe.c: Likewise.
63885         * tests/unictype/test-categ_Pf.c: Likewise.
63886         * tests/unictype/test-categ_Pi.c: Likewise.
63887         * tests/unictype/test-categ_Po.c: Likewise.
63888         * tests/unictype/test-categ_Ps.c: Likewise.
63889         * tests/unictype/test-categ_S.c: Likewise.
63890         * tests/unictype/test-categ_Sc.c: Likewise.
63891         * tests/unictype/test-categ_Sk.c: Likewise.
63892         * tests/unictype/test-categ_Sm.c: Likewise.
63893         * tests/unictype/test-categ_So.c: Likewise.
63894         * tests/unictype/test-categ_Z.c: Likewise.
63895         * tests/unictype/test-categ_Zl.c: Likewise.
63896         * tests/unictype/test-categ_Zp.c: Likewise.
63897         * tests/unictype/test-categ_Zs.c: Likewise.
63898         * tests/unictype/test-ctype_alnum.c: Likewise.
63899         * tests/unictype/test-ctype_alpha.c: Likewise.
63900         * tests/unictype/test-ctype_blank.c: Likewise.
63901         * tests/unictype/test-ctype_cntrl.c: Likewise.
63902         * tests/unictype/test-ctype_digit.c: Likewise.
63903         * tests/unictype/test-ctype_graph.c: Likewise.
63904         * tests/unictype/test-ctype_lower.c: Likewise.
63905         * tests/unictype/test-ctype_print.c: Likewise.
63906         * tests/unictype/test-ctype_punct.c: Likewise.
63907         * tests/unictype/test-ctype_space.c: Likewise.
63908         * tests/unictype/test-ctype_upper.c: Likewise.
63909         * tests/unictype/test-ctype_xdigit.c: Likewise.
63910         * tests/unictype/test-decdigit.h: Likewise.
63911         * tests/unictype/test-digit.h: Likewise.
63912         * tests/unictype/test-numeric.h: Likewise.
63913         * tests/unictype/test-pr_alphabetic.c: Likewise.
63914         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63915         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63916         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63917         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63918         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63919         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63920         * tests/unictype/test-pr_bidi_control.c: Likewise.
63921         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63922         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63923         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63924         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63925         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63926         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63927         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63928         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63929         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63930         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63931         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63932         * tests/unictype/test-pr_combining.c: Likewise.
63933         * tests/unictype/test-pr_composite.c: Likewise.
63934         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63935         * tests/unictype/test-pr_dash.c: Likewise.
63936         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63937         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63938         * tests/unictype/test-pr_deprecated.c: Likewise.
63939         * tests/unictype/test-pr_diacritic.c: Likewise.
63940         * tests/unictype/test-pr_extender.c: Likewise.
63941         * tests/unictype/test-pr_format_control.c: Likewise.
63942         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63943         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63944         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63945         * tests/unictype/test-pr_hex_digit.c: Likewise.
63946         * tests/unictype/test-pr_hyphen.c: Likewise.
63947         * tests/unictype/test-pr_id_continue.c: Likewise.
63948         * tests/unictype/test-pr_id_start.c: Likewise.
63949         * tests/unictype/test-pr_ideographic.c: Likewise.
63950         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63951         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63952         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63953         * tests/unictype/test-pr_iso_control.c: Likewise.
63954         * tests/unictype/test-pr_join_control.c: Likewise.
63955         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63956         * tests/unictype/test-pr_line_separator.c: Likewise.
63957         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63958         * tests/unictype/test-pr_lowercase.c: Likewise.
63959         * tests/unictype/test-pr_math.c: Likewise.
63960         * tests/unictype/test-pr_non_break.c: Likewise.
63961         * tests/unictype/test-pr_not_a_character.c: Likewise.
63962         * tests/unictype/test-pr_numeric.c: Likewise.
63963         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63964         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63965         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63966         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63967         * tests/unictype/test-pr_other_id_start.c: Likewise.
63968         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63969         * tests/unictype/test-pr_other_math.c: Likewise.
63970         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63971         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63972         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63973         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63974         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63975         * tests/unictype/test-pr_private_use.c: Likewise.
63976         * tests/unictype/test-pr_punctuation.c: Likewise.
63977         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63978         * tests/unictype/test-pr_radical.c: Likewise.
63979         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63980         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63981         * tests/unictype/test-pr_space.c: Likewise.
63982         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63983         * tests/unictype/test-pr_titlecase.c: Likewise.
63984         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63985         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63986         * tests/unictype/test-pr_uppercase.c: Likewise.
63987         * tests/unictype/test-pr_variation_selector.c: Likewise.
63988         * tests/unictype/test-pr_white_space.c: Likewise.
63989         * tests/unictype/test-pr_xid_continue.c: Likewise.
63990         * tests/unictype/test-pr_xid_start.c: Likewise.
63991         * tests/unictype/test-pr_zero_width.c: Likewise.
63992         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63993         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63994
63995 2007-11-12  Bruno Haible  <bruno@clisp.org>
63996
63997         Unicode character classification functions.
63998         * lib/unictype.h: New file.
63999         * modules/unictype/base: New file.
64000         * modules/unictype/category-L: New file.
64001         * modules/unictype/category-Lu: New file.
64002         * modules/unictype/category-Ll: New file.
64003         * modules/unictype/category-Lt: New file.
64004         * modules/unictype/category-Lm: New file.
64005         * modules/unictype/category-Lo: New file.
64006         * modules/unictype/category-M: New file.
64007         * modules/unictype/category-Mn: New file.
64008         * modules/unictype/category-Mc: New file.
64009         * modules/unictype/category-Me: New file.
64010         * modules/unictype/category-N: New file.
64011         * modules/unictype/category-Nd: New file.
64012         * modules/unictype/category-Nl: New file.
64013         * modules/unictype/category-No: New file.
64014         * modules/unictype/category-P: New file.
64015         * modules/unictype/category-Pc: New file.
64016         * modules/unictype/category-Pd: New file.
64017         * modules/unictype/category-Ps: New file.
64018         * modules/unictype/category-Pe: New file.
64019         * modules/unictype/category-Pi: New file.
64020         * modules/unictype/category-Pf: New file.
64021         * modules/unictype/category-Po: New file.
64022         * modules/unictype/category-S: New file.
64023         * modules/unictype/category-Sm: New file.
64024         * modules/unictype/category-Sc: New file.
64025         * modules/unictype/category-Sk: New file.
64026         * modules/unictype/category-So: New file.
64027         * modules/unictype/category-Z: New file.
64028         * modules/unictype/category-Zs: New file.
64029         * modules/unictype/category-Zl: New file.
64030         * modules/unictype/category-Zp: New file.
64031         * modules/unictype/category-C: New file.
64032         * modules/unictype/category-Cc: New file.
64033         * modules/unictype/category-Cf: New file.
64034         * modules/unictype/category-Cs: New file.
64035         * modules/unictype/category-Co: New file.
64036         * modules/unictype/category-Cn: New file.
64037         * modules/unictype/category-or: New file.
64038         * modules/unictype/category-of: New file.
64039         * modules/unictype/category-test: New file.
64040         * modules/unictype/category-test-withtable: New file.
64041         * modules/unictype/category-byname: New file.
64042         * modules/unictype/category-none: New file.
64043         * modules/unictype/category-and: New file.
64044         * modules/unictype/category-and-not: New file.
64045         * modules/unictype/category-name: New file.
64046         * modules/unictype/combining-class: New file.
64047         * modules/unictype/category-all: New file.
64048         * modules/unictype/bidicategory-all: New file.
64049         * modules/unictype/bidicategory-byname: New file.
64050         * modules/unictype/bidicategory-name: New file.
64051         * modules/unictype/bidicategory-of: New file.
64052         * modules/unictype/bidicategory-test: New file.
64053         * modules/unictype/decimal-digit: New file.
64054         * modules/unictype/digit: New file.
64055         * modules/unictype/numeric: New file.
64056         * modules/unictype/mirror: New file.
64057         * modules/unictype/property-white-space: New file.
64058         * modules/unictype/property-alphabetic: New file.
64059         * modules/unictype/property-other-alphabetic: New file.
64060         * modules/unictype/property-not-a-character: New file.
64061         * modules/unictype/property-default-ignorable-code-point: New file.
64062         * modules/unictype/property-other-default-ignorable-code-point: New
64063         file.
64064         * modules/unictype/property-deprecated: New file.
64065         * modules/unictype/property-logical-order-exception: New file.
64066         * modules/unictype/property-variation-selector: New file.
64067         * modules/unictype/property-private-use: New file.
64068         * modules/unictype/property-unassigned-code-value: New file.
64069         * modules/unictype/property-uppercase: New file.
64070         * modules/unictype/property-other-uppercase: New file.
64071         * modules/unictype/property-lowercase: New file.
64072         * modules/unictype/property-other-lowercase: New file.
64073         * modules/unictype/property-titlecase: New file.
64074         * modules/unictype/property-soft-dotted: New file.
64075         * modules/unictype/property-id-start: New file.
64076         * modules/unictype/property-other-id-start: New file.
64077         * modules/unictype/property-id-continue: New file.
64078         * modules/unictype/property-other-id-continue: New file.
64079         * modules/unictype/property-xid-start: New file.
64080         * modules/unictype/property-xid-continue: New file.
64081         * modules/unictype/property-pattern-white-space: New file.
64082         * modules/unictype/property-pattern-syntax: New file.
64083         * modules/unictype/property-join-control: New file.
64084         * modules/unictype/property-grapheme-base: New file.
64085         * modules/unictype/property-grapheme-extend: New file.
64086         * modules/unictype/property-other-grapheme-extend: New file.
64087         * modules/unictype/property-grapheme-link: New file.
64088         * modules/unictype/property-bidi-control: New file.
64089         * modules/unictype/property-bidi-left-to-right: New file.
64090         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64091         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64092         * modules/unictype/property-bidi-european-digit: New file.
64093         * modules/unictype/property-bidi-eur-num-separator: New file.
64094         * modules/unictype/property-bidi-eur-num-terminator: New file.
64095         * modules/unictype/property-bidi-arabic-digit: New file.
64096         * modules/unictype/property-bidi-common-separator: New file.
64097         * modules/unictype/property-bidi-block-separator: New file.
64098         * modules/unictype/property-bidi-segment-separator: New file.
64099         * modules/unictype/property-bidi-whitespace: New file.
64100         * modules/unictype/property-bidi-non-spacing-mark: New file.
64101         * modules/unictype/property-bidi-boundary-neutral: New file.
64102         * modules/unictype/property-bidi-pdf: New file.
64103         * modules/unictype/property-bidi-embedding-or-override: New file.
64104         * modules/unictype/property-bidi-other-neutral: New file.
64105         * modules/unictype/property-hex-digit: New file.
64106         * modules/unictype/property-ascii-hex-digit: New file.
64107         * modules/unictype/property-ideographic: New file.
64108         * modules/unictype/property-unified-ideograph: New file.
64109         * modules/unictype/property-radical: New file.
64110         * modules/unictype/property-ids-binary-operator: New file.
64111         * modules/unictype/property-ids-trinary-operator: New file.
64112         * modules/unictype/property-zero-width: New file.
64113         * modules/unictype/property-space: New file.
64114         * modules/unictype/property-non-break: New file.
64115         * modules/unictype/property-iso-control: New file.
64116         * modules/unictype/property-format-control: New file.
64117         * modules/unictype/property-dash: New file.
64118         * modules/unictype/property-hyphen: New file.
64119         * modules/unictype/property-punctuation: New file.
64120         * modules/unictype/property-line-separator: New file.
64121         * modules/unictype/property-paragraph-separator: New file.
64122         * modules/unictype/property-quotation-mark: New file.
64123         * modules/unictype/property-sentence-terminal: New file.
64124         * modules/unictype/property-terminal-punctuation: New file.
64125         * modules/unictype/property-currency-symbol: New file.
64126         * modules/unictype/property-math: New file.
64127         * modules/unictype/property-other-math: New file.
64128         * modules/unictype/property-paired-punctuation: New file.
64129         * modules/unictype/property-left-of-pair: New file.
64130         * modules/unictype/property-combining: New file.
64131         * modules/unictype/property-composite: New file.
64132         * modules/unictype/property-decimal-digit: New file.
64133         * modules/unictype/property-numeric: New file.
64134         * modules/unictype/property-diacritic: New file.
64135         * modules/unictype/property-extender: New file.
64136         * modules/unictype/property-ignorable-control: New file.
64137         * modules/unictype/property-test: New file.
64138         * modules/unictype/property-byname: New file.
64139         * modules/unictype/property-all: New file.
64140         * modules/unictype/scripts: New file.
64141         * modules/unictype/scripts-all: New file.
64142         * modules/unictype/block-of: New file.
64143         * modules/unictype/block-test: New file.
64144         * modules/unictype/block-list: New file.
64145         * modules/unictype/block-all: New file.
64146         * modules/unictype/syntax-c-whitespace: New file.
64147         * modules/unictype/syntax-java-whitespace: New file.
64148         * modules/unictype/syntax-c-ident: New file.
64149         * modules/unictype/syntax-java-ident: New file.
64150         * modules/unictype/ctype-alnum: New file.
64151         * modules/unictype/ctype-alpha: New file.
64152         * modules/unictype/ctype-cntrl: New file.
64153         * modules/unictype/ctype-digit: New file.
64154         * modules/unictype/ctype-graph: New file.
64155         * modules/unictype/ctype-lower: New file.
64156         * modules/unictype/ctype-print: New file.
64157         * modules/unictype/ctype-punct: New file.
64158         * modules/unictype/ctype-space: New file.
64159         * modules/unictype/ctype-upper: New file.
64160         * modules/unictype/ctype-xdigit: New file.
64161         * modules/unictype/ctype-blank: New file.
64162         * lib/unictype/bidi_byname.c: New file.
64163         * lib/unictype/bidi_name.c: New file.
64164         * lib/unictype/bidi_of.c: New file.
64165         * lib/unictype/bidi_test.c: New file.
64166         * lib/unictype/bitmap.h: New file.
64167         * lib/unictype/block_test.c: New file.
64168         * lib/unictype/blocks.c: New file.
64169         * lib/unictype/categ_C.c: New file.
64170         * lib/unictype/categ_Cc.c: New file.
64171         * lib/unictype/categ_Cf.c: New file.
64172         * lib/unictype/categ_Cn.c: New file.
64173         * lib/unictype/categ_Co.c: New file.
64174         * lib/unictype/categ_Cs.c: New file.
64175         * lib/unictype/categ_L.c: New file.
64176         * lib/unictype/categ_Ll.c: New file.
64177         * lib/unictype/categ_Lm.c: New file.
64178         * lib/unictype/categ_Lo.c: New file.
64179         * lib/unictype/categ_Lt.c: New file.
64180         * lib/unictype/categ_Lu.c: New file.
64181         * lib/unictype/categ_M.c: New file.
64182         * lib/unictype/categ_Mc.c: New file.
64183         * lib/unictype/categ_Me.c: New file.
64184         * lib/unictype/categ_Mn.c: New file.
64185         * lib/unictype/categ_N.c: New file.
64186         * lib/unictype/categ_Nd.c: New file.
64187         * lib/unictype/categ_Nl.c: New file.
64188         * lib/unictype/categ_No.c: New file.
64189         * lib/unictype/categ_P.c: New file.
64190         * lib/unictype/categ_Pc.c: New file.
64191         * lib/unictype/categ_Pd.c: New file.
64192         * lib/unictype/categ_Pe.c: New file.
64193         * lib/unictype/categ_Pf.c: New file.
64194         * lib/unictype/categ_Pi.c: New file.
64195         * lib/unictype/categ_Po.c: New file.
64196         * lib/unictype/categ_Ps.c: New file.
64197         * lib/unictype/categ_S.c: New file.
64198         * lib/unictype/categ_Sc.c: New file.
64199         * lib/unictype/categ_Sk.c: New file.
64200         * lib/unictype/categ_Sm.c: New file.
64201         * lib/unictype/categ_So.c: New file.
64202         * lib/unictype/categ_Z.c: New file.
64203         * lib/unictype/categ_Zl.c: New file.
64204         * lib/unictype/categ_Zp.c: New file.
64205         * lib/unictype/categ_Zs.c: New file.
64206         * lib/unictype/categ_and.c: New file.
64207         * lib/unictype/categ_and_not.c: New file.
64208         * lib/unictype/categ_byname.c: New file.
64209         * lib/unictype/categ_name.c: New file.
64210         * lib/unictype/categ_none.c: New file.
64211         * lib/unictype/categ_of.c: New file.
64212         * lib/unictype/categ_or.c: New file.
64213         * lib/unictype/categ_test.c: New file.
64214         * lib/unictype/combining.c: New file.
64215         * lib/unictype/ctype_alnum.c: New file.
64216         * lib/unictype/ctype_alpha.c: New file.
64217         * lib/unictype/ctype_blank.c: New file.
64218         * lib/unictype/ctype_cntrl.c: New file.
64219         * lib/unictype/ctype_digit.c: New file.
64220         * lib/unictype/ctype_graph.c: New file.
64221         * lib/unictype/ctype_lower.c: New file.
64222         * lib/unictype/ctype_print.c: New file.
64223         * lib/unictype/ctype_punct.c: New file.
64224         * lib/unictype/ctype_space.c: New file.
64225         * lib/unictype/ctype_upper.c: New file.
64226         * lib/unictype/ctype_xdigit.c: New file.
64227         * lib/unictype/decdigit.c: New file.
64228         * lib/unictype/digit.c: New file.
64229         * lib/unictype/identsyntaxmap.h: New file.
64230         * lib/unictype/mirror.c: New file.
64231         * lib/unictype/numeric.c: New file.
64232         * lib/unictype/pr_alphabetic.c: New file.
64233         * lib/unictype/pr_ascii_hex_digit.c: New file.
64234         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64235         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64236         * lib/unictype/pr_bidi_block_separator.c: New file.
64237         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64238         * lib/unictype/pr_bidi_common_separator.c: New file.
64239         * lib/unictype/pr_bidi_control.c: New file.
64240         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64241         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64242         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64243         * lib/unictype/pr_bidi_european_digit.c: New file.
64244         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64245         * lib/unictype/pr_bidi_left_to_right.c: New file.
64246         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64247         * lib/unictype/pr_bidi_other_neutral.c: New file.
64248         * lib/unictype/pr_bidi_pdf.c: New file.
64249         * lib/unictype/pr_bidi_segment_separator.c: New file.
64250         * lib/unictype/pr_bidi_whitespace.c: New file.
64251         * lib/unictype/pr_byname.c: New file.
64252         * lib/unictype/pr_byname.gperf: New file.
64253         * lib/unictype/pr_combining.c: New file.
64254         * lib/unictype/pr_composite.c: New file.
64255         * lib/unictype/pr_currency_symbol.c: New file.
64256         * lib/unictype/pr_dash.c: New file.
64257         * lib/unictype/pr_decimal_digit.c: New file.
64258         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64259         * lib/unictype/pr_deprecated.c: New file.
64260         * lib/unictype/pr_diacritic.c: New file.
64261         * lib/unictype/pr_extender.c: New file.
64262         * lib/unictype/pr_format_control.c: New file.
64263         * lib/unictype/pr_grapheme_base.c: New file.
64264         * lib/unictype/pr_grapheme_extend.c: New file.
64265         * lib/unictype/pr_grapheme_link.c: New file.
64266         * lib/unictype/pr_hex_digit.c: New file.
64267         * lib/unictype/pr_hyphen.c: New file.
64268         * lib/unictype/pr_id_continue.c: New file.
64269         * lib/unictype/pr_id_start.c: New file.
64270         * lib/unictype/pr_ideographic.c: New file.
64271         * lib/unictype/pr_ids_binary_operator.c: New file.
64272         * lib/unictype/pr_ids_trinary_operator.c: New file.
64273         * lib/unictype/pr_ignorable_control.c: New file.
64274         * lib/unictype/pr_iso_control.c: New file.
64275         * lib/unictype/pr_join_control.c: New file.
64276         * lib/unictype/pr_left_of_pair.c: New file.
64277         * lib/unictype/pr_line_separator.c: New file.
64278         * lib/unictype/pr_logical_order_exception.c: New file.
64279         * lib/unictype/pr_lowercase.c: New file.
64280         * lib/unictype/pr_math.c: New file.
64281         * lib/unictype/pr_non_break.c: New file.
64282         * lib/unictype/pr_not_a_character.c: New file.
64283         * lib/unictype/pr_numeric.c: New file.
64284         * lib/unictype/pr_other_alphabetic.c: New file.
64285         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64286         * lib/unictype/pr_other_grapheme_extend.c: New file.
64287         * lib/unictype/pr_other_id_continue.c: New file.
64288         * lib/unictype/pr_other_id_start.c: New file.
64289         * lib/unictype/pr_other_lowercase.c: New file.
64290         * lib/unictype/pr_other_math.c: New file.
64291         * lib/unictype/pr_other_uppercase.c: New file.
64292         * lib/unictype/pr_paired_punctuation.c: New file.
64293         * lib/unictype/pr_paragraph_separator.c: New file.
64294         * lib/unictype/pr_pattern_syntax.c: New file.
64295         * lib/unictype/pr_pattern_white_space.c: New file.
64296         * lib/unictype/pr_private_use.c: New file.
64297         * lib/unictype/pr_punctuation.c: New file.
64298         * lib/unictype/pr_quotation_mark.c: New file.
64299         * lib/unictype/pr_radical.c: New file.
64300         * lib/unictype/pr_sentence_terminal.c: New file.
64301         * lib/unictype/pr_soft_dotted.c: New file.
64302         * lib/unictype/pr_space.c: New file.
64303         * lib/unictype/pr_terminal_punctuation.c: New file.
64304         * lib/unictype/pr_test.c: New file.
64305         * lib/unictype/pr_titlecase.c: New file.
64306         * lib/unictype/pr_unassigned_code_value.c: New file.
64307         * lib/unictype/pr_unified_ideograph.c: New file.
64308         * lib/unictype/pr_uppercase.c: New file.
64309         * lib/unictype/pr_variation_selector.c: New file.
64310         * lib/unictype/pr_white_space.c: New file.
64311         * lib/unictype/pr_xid_continue.c: New file.
64312         * lib/unictype/pr_xid_start.c: New file.
64313         * lib/unictype/pr_zero_width.c: New file.
64314         * lib/unictype/scripts.c: New file.
64315         * lib/unictype/sy_c_ident.c: New file.
64316         * lib/unictype/sy_c_whitespace.c: New file.
64317         * lib/unictype/sy_java_ident.c: New file.
64318         * lib/unictype/sy_java_whitespace.c: New file.
64319
64320         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64321         Unicode 5.0.0.
64322         * lib/unictype/blocks.h: Likewise.
64323         * lib/unictype/categ_C.h: Likewise.
64324         * lib/unictype/categ_Cc.h: Likewise.
64325         * lib/unictype/categ_Cf.h: Likewise.
64326         * lib/unictype/categ_Cn.h: Likewise.
64327         * lib/unictype/categ_Co.h: Likewise.
64328         * lib/unictype/categ_Cs.h: Likewise.
64329         * lib/unictype/categ_L.h: Likewise.
64330         * lib/unictype/categ_Ll.h: Likewise.
64331         * lib/unictype/categ_Lm.h: Likewise.
64332         * lib/unictype/categ_Lo.h: Likewise.
64333         * lib/unictype/categ_Lt.h: Likewise.
64334         * lib/unictype/categ_Lu.h: Likewise.
64335         * lib/unictype/categ_M.h: Likewise.
64336         * lib/unictype/categ_Mc.h: Likewise.
64337         * lib/unictype/categ_Me.h: Likewise.
64338         * lib/unictype/categ_Mn.h: Likewise.
64339         * lib/unictype/categ_N.h: Likewise.
64340         * lib/unictype/categ_Nd.h: Likewise.
64341         * lib/unictype/categ_Nl.h: Likewise.
64342         * lib/unictype/categ_No.h: Likewise.
64343         * lib/unictype/categ_P.h: Likewise.
64344         * lib/unictype/categ_Pc.h: Likewise.
64345         * lib/unictype/categ_Pd.h: Likewise.
64346         * lib/unictype/categ_Pe.h: Likewise.
64347         * lib/unictype/categ_Pf.h: Likewise.
64348         * lib/unictype/categ_Pi.h: Likewise.
64349         * lib/unictype/categ_Po.h: Likewise.
64350         * lib/unictype/categ_Ps.h: Likewise.
64351         * lib/unictype/categ_S.h: Likewise.
64352         * lib/unictype/categ_Sc.h: Likewise.
64353         * lib/unictype/categ_Sk.h: Likewise.
64354         * lib/unictype/categ_Sm.h: Likewise.
64355         * lib/unictype/categ_So.h: Likewise.
64356         * lib/unictype/categ_Z.h: Likewise.
64357         * lib/unictype/categ_Zl.h: Likewise.
64358         * lib/unictype/categ_Zp.h: Likewise.
64359         * lib/unictype/categ_Zs.h: Likewise.
64360         * lib/unictype/categ_of.h: Likewise.
64361         * lib/unictype/combining.h: Likewise.
64362         * lib/unictype/ctype_alnum.h: Likewise.
64363         * lib/unictype/ctype_alpha.h: Likewise.
64364         * lib/unictype/ctype_blank.h: Likewise.
64365         * lib/unictype/ctype_cntrl.h: Likewise.
64366         * lib/unictype/ctype_digit.h: Likewise.
64367         * lib/unictype/ctype_graph.h: Likewise.
64368         * lib/unictype/ctype_lower.h: Likewise.
64369         * lib/unictype/ctype_print.h: Likewise.
64370         * lib/unictype/ctype_punct.h: Likewise.
64371         * lib/unictype/ctype_space.h: Likewise.
64372         * lib/unictype/ctype_upper.h: Likewise.
64373         * lib/unictype/ctype_xdigit.h: Likewise.
64374         * lib/unictype/decdigit.h: Likewise.
64375         * lib/unictype/digit.h: Likewise.
64376         * lib/unictype/mirror.h: Likewise.
64377         * lib/unictype/numeric.h: Likewise.
64378         * lib/unictype/pr_alphabetic.h: Likewise.
64379         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64380         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64381         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64382         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64383         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64384         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64385         * lib/unictype/pr_bidi_control.h: Likewise.
64386         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64387         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64388         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64389         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64390         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64391         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64392         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64393         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64394         * lib/unictype/pr_bidi_pdf.h: Likewise.
64395         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64396         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64397         * lib/unictype/pr_combining.h: Likewise.
64398         * lib/unictype/pr_composite.h: Likewise.
64399         * lib/unictype/pr_currency_symbol.h: Likewise.
64400         * lib/unictype/pr_dash.h: Likewise.
64401         * lib/unictype/pr_decimal_digit.h: Likewise.
64402         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64403         * lib/unictype/pr_deprecated.h: Likewise.
64404         * lib/unictype/pr_diacritic.h: Likewise.
64405         * lib/unictype/pr_extender.h: Likewise.
64406         * lib/unictype/pr_format_control.h: Likewise.
64407         * lib/unictype/pr_grapheme_base.h: Likewise.
64408         * lib/unictype/pr_grapheme_extend.h: Likewise.
64409         * lib/unictype/pr_grapheme_link.h: Likewise.
64410         * lib/unictype/pr_hex_digit.h: Likewise.
64411         * lib/unictype/pr_hyphen.h: Likewise.
64412         * lib/unictype/pr_id_continue.h: Likewise.
64413         * lib/unictype/pr_id_start.h: Likewise.
64414         * lib/unictype/pr_ideographic.h: Likewise.
64415         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64416         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64417         * lib/unictype/pr_ignorable_control.h: Likewise.
64418         * lib/unictype/pr_iso_control.h: Likewise.
64419         * lib/unictype/pr_join_control.h: Likewise.
64420         * lib/unictype/pr_left_of_pair.h: Likewise.
64421         * lib/unictype/pr_line_separator.h: Likewise.
64422         * lib/unictype/pr_logical_order_exception.h: Likewise.
64423         * lib/unictype/pr_lowercase.h: Likewise.
64424         * lib/unictype/pr_math.h: Likewise.
64425         * lib/unictype/pr_non_break.h: Likewise.
64426         * lib/unictype/pr_not_a_character.h: Likewise.
64427         * lib/unictype/pr_numeric.h: Likewise.
64428         * lib/unictype/pr_other_alphabetic.h: Likewise.
64429         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64430         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64431         * lib/unictype/pr_other_id_continue.h: Likewise.
64432         * lib/unictype/pr_other_id_start.h: Likewise.
64433         * lib/unictype/pr_other_lowercase.h: Likewise.
64434         * lib/unictype/pr_other_math.h: Likewise.
64435         * lib/unictype/pr_other_uppercase.h: Likewise.
64436         * lib/unictype/pr_paired_punctuation.h: Likewise.
64437         * lib/unictype/pr_paragraph_separator.h: Likewise.
64438         * lib/unictype/pr_pattern_syntax.h: Likewise.
64439         * lib/unictype/pr_pattern_white_space.h: Likewise.
64440         * lib/unictype/pr_private_use.h: Likewise.
64441         * lib/unictype/pr_punctuation.h: Likewise.
64442         * lib/unictype/pr_quotation_mark.h: Likewise.
64443         * lib/unictype/pr_radical.h: Likewise.
64444         * lib/unictype/pr_sentence_terminal.h: Likewise.
64445         * lib/unictype/pr_soft_dotted.h: Likewise.
64446         * lib/unictype/pr_space.h: Likewise.
64447         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64448         * lib/unictype/pr_titlecase.h: Likewise.
64449         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64450         * lib/unictype/pr_unified_ideograph.h: Likewise.
64451         * lib/unictype/pr_uppercase.h: Likewise.
64452         * lib/unictype/pr_variation_selector.h: Likewise.
64453         * lib/unictype/pr_white_space.h: Likewise.
64454         * lib/unictype/pr_xid_continue.h: Likewise.
64455         * lib/unictype/pr_xid_start.h: Likewise.
64456         * lib/unictype/pr_zero_width.h: Likewise.
64457         * lib/unictype/scripts.h: Likewise.
64458         * lib/unictype/scripts_byname.gperf: Likewise.
64459         * lib/unictype/sy_c_ident.h: Likewise.
64460         * lib/unictype/sy_c_whitespace.h: Likewise.
64461         * lib/unictype/sy_java_ident.h: Likewise.
64462         * lib/unictype/sy_java_whitespace.h: Likewise.
64463
64464         * lib/unictype/Makefile: New file.
64465         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64466         glibc.
64467         * lib/unictype/3level.h: New file, copied from glibc.
64468         * lib/unictype/3levelbit.h: New file.
64469
64470 2007-11-11  Bruno Haible  <bruno@clisp.org>
64471
64472         * modules/gperf: New file.
64473         * modules/iconv_open (Depends-on): Add it.
64474         (Makefile.am): Remove the GPERF definition.
64475
64476 2007-11-11  Bruno Haible  <bruno@clisp.org>
64477
64478         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64479         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64480
64481 2007-11-11  Bruno Haible  <bruno@clisp.org>
64482
64483         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64484         (usage): Remove function.
64485
64486 2007-11-11  Bruno Haible  <bruno@clisp.org>
64487
64488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64489         gl_FUNC_CEILF_LIBS.
64490         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64491         gl_FUNC_CEIL_LIBS.
64492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64493         gl_FUNC_CEILL_LIBS.
64494         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64495         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64496         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64497
64498 2007-11-11  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64501         roundf were declared but do not exist on functions.
64502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64503         roundl were declared but do not exist on functions.
64504         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64505         HAVE_FLOORL_AND_CEILL, respectively.
64506         Needed for Sun C on Solaris 10.
64507
64508 2007-11-11  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64511         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64512         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64513         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64515         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64516         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64517         HAVE_DECL_ROUNDF.
64518         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64519         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64521         of HAVE_DECL_ROUND*.
64522         * modules/math (Makefile.am): Update.
64523
64524 2007-11-10  Bruno Haible  <bruno@clisp.org>
64525
64526         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64527         ptrdiff_t as m4/intl.m4.
64528
64529 2007-11-10  Jim Meyering  <meyering@redhat.com>
64530
64531         Avoid link failure for the argmatch test.
64532         * tests/test-argmatch.c (usage): Define function to avoid a link
64533         failure: argmatch_die requires a usage function.
64534
64535 2007-11-09  Bruno Haible  <bruno@clisp.org>
64536
64537         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64538         * doc/functions/vsnprintf.texi: Likewise.
64539         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64540         with a size argument < 2.
64541
64542 2007-11-09  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64545         buffer. Fixes an inefficiency introduced on 2007-11-03.
64546
64547 2007-11-09  Bruno Haible  <bruno@clisp.org>
64548
64549         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64550         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64551
64552 2007-11-08  Jim Meyering  <meyering@redhat.com>
64553
64554         Change cache variable name prefix "jm_" to "gl_" everywhere.
64555         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64556         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64557         * m4/uptime.m4: s/gl_/jm_/
64558
64559 2007-11-07  Bruno Haible  <bruno@clisp.org>
64560
64561         Update to GNU gettext 0.17.
64562         * m4/intl.m4: Update to GNU gettext 0.17.
64563         * m4/po.m4: Likewise.
64564         * modules/gettext (Files): Remove m4/ulonglong.m4.
64565         (configure.ac): Require gettext infrastructure from version 0.17.
64566
64567 2007-11-06  Bruno Haible  <bruno@clisp.org>
64568
64569         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64570         symbolic values are not defined in a public header.
64571         * lib/freadable.c (freadable) [QNX]: Likewise.
64572         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64573         * lib/freading.c (freading) [QNX]: Likewise.
64574         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64575         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64576         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64577         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64578         Reported by Alain Magloire.
64579
64580         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64581
64582 2007-11-05  Bruno Haible  <bruno@clisp.org>
64583
64584         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64585         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64586         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64587         Reported by Eric Blake.
64588
64589 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64590             Bruno Haible  <bruno@clisp.org>
64591
64592         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64593         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64594         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64595         (malloc): Undefine also before including <stdlib.h>.
64596         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64597         Needed on OSF/1 4.0.
64598
64599 2007-11-05  Jim Meyering  <meyering@redhat.com>
64600
64601         git-version-gen: sync from coreutils.
64602         * build-aux/git-version-gen: Add comments.
64603         Change the first '-' to '.' in the snapshot version string,
64604         e.g., 6.9-377-08144 -> 6.9.377-08144
64605         Remove first parameter.
64606         Don't declare a version "-dirty" merely because a time
64607         stamp has changed.
64608
64609 2007-11-04  Bruno Haible  <bruno@clisp.org>
64610
64611         * lib/lock.h: Protect all macro definitions containing an 'if'
64612         statement through a "do { ... } while (0)".
64613         * lib/tls.h: Likewise.
64614
64615 2007-11-04  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64618
64619 2007-11-04  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64622         * modules/fprintf-posix (Depends-on): Add nocrash.
64623         * modules/snprintf-posix (Depends-on): Likewise.
64624         * modules/sprintf-posix (Depends-on): Likewise.
64625         * modules/vasnprintf-posix (Depends-on): Likewise.
64626         * modules/vasprintf-posix (Depends-on): Likewise.
64627         * modules/vfprintf-posix (Depends-on): Likewise.
64628         * modules/vsnprintf-posix (Depends-on): Likewise.
64629         * modules/vsprintf-posix (Depends-on): Likewise.
64630         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64631         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64632         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64633         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64634         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64635         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64636         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64637
64638 2007-11-04  Bruno Haible  <bruno@clisp.org>
64639
64640         * modules/nocrash: New file.
64641         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64642         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64643
64644 2007-11-04  Bruno Haible  <bruno@clisp.org>
64645
64646         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64647         precision handling.
64648         * tests/test-vasprintf-posix.c (test_function): Likewise.
64649         * tests/test-snprintf-posix.h (test_function): Likewise.
64650         * tests/test-sprintf-posix.h (test_function): Likewise.
64651
64652         Fix *printf behaviour for large precisions on mingw and BeOS.
64653         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64654         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64656         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64658         gl_PRINTF_PRECISION and test its result. Invoke
64659         gl_PREREQ_VASNPRINTF_PRECISION.
64660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64667         * doc/functions/fprintf.texi: Update.
64668         * doc/functions/printf.texi: Update.
64669         * doc/functions/snprintf.texi: Update.
64670         * doc/functions/sprintf.texi: Update.
64671         * doc/functions/vfprintf.texi: Update.
64672         * doc/functions/vprintf.texi: Update.
64673         * doc/functions/vsnprintf.texi: Update.
64674         * doc/functions/vsprintf.texi: Update.
64675
64676 2007-11-04  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64679
64680 2007-11-04  Bruno Haible  <bruno@clisp.org>
64681
64682         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64683         Reported by Sylvain Beucler <beuc@gnu.org>.
64684
64685 2007-11-03  Bruno Haible  <bruno@clisp.org>
64686
64687         * tests/test-fprintf-posix2.sh: New file.
64688         * tests/test-fprintf-posix2.c: New file.
64689         * modules/fprintf-posix-tests (Files): Add them.
64690         (TESTS): Add test-fprintf-posix2.sh.
64691         (configure.ac): Check for getrlimit and setrlimit.
64692         (check_PROGRAMS): Add test-fprintf-posix2.
64693
64694         * tests/test-printf-posix2.sh: New file.
64695         * tests/test-printf-posix2.c: New file.
64696         * modules/printf-posix-tests (Files): Add them.
64697         (TESTS): Add test-printf-posix2.sh.
64698         (configure.ac): Check for getrlimit and setrlimit.
64699         (check_PROGRAMS): Add test-printf-posix2.
64700
64701         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64702         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64703         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64704         (decode_double): New function, copied from decode_long_double.
64705         (scale10_round_decimal_decoded): New function, extracted from
64706         scale10_round_decimal_long_double.
64707         (scale10_round_decimal_long_double): Use it.
64708         (scale10_round_decimal_double): New function.
64709         (floorlog10): New function.
64710         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64712         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64713         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64714         gl_PRINTF_ENOMEM and test its result. Invoke
64715         gl_PREREQ_VASNPRINTF_ENOMEM.
64716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64723         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64724         * modules/snprintf-posix (Depends-on): Likewise.
64725         * modules/sprintf-posix (Depends-on): Likewise.
64726         * modules/vasnprintf-posix (Depends-on): Likewise.
64727         * modules/vasprintf-posix (Depends-on): Likewise.
64728         * modules/vfprintf-posix (Depends-on): Likewise.
64729         * modules/vsnprintf-posix (Depends-on): Likewise.
64730         * modules/vsprintf-posix (Depends-on): Likewise.
64731         * doc/functions/fprintf.texi: Update.
64732         * doc/functions/printf.texi: Update.
64733         * doc/functions/snprintf.texi: Update.
64734         * doc/functions/sprintf.texi: Update.
64735         * doc/functions/vfprintf.texi: Update.
64736         * doc/functions/vprintf.texi: Update.
64737         * doc/functions/vsnprintf.texi: Update.
64738         * doc/functions/vsprintf.texi: Update.
64739
64740 2007-11-03  Bruno Haible  <bruno@clisp.org>
64741
64742         * modules/frexp-nolibm-tests: New file.
64743
64744         * modules/frexp-nolibm: New file.
64745         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64746
64747 2007-11-03  Bruno Haible  <bruno@clisp.org>
64748
64749         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64750         value is C99 compliant.
64751         Needed for OSF/1 5.1.
64752
64753 2007-11-03  Bruno Haible  <bruno@clisp.org>
64754
64755         Fix out-of-memory handling of vasnprintf.
64756         * lib/printf-parse.c: Include <errno.h>.
64757         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64758         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64759         is already set.
64760
64761 2007-11-02  Eric Blake  <ebb9@byu.net>
64762
64763         Fix tests on cygwin.
64764         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64765
64766 2007-11-01  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64769         warning.
64770         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64771         needed for POSIX compatibility.
64772
64773 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64774
64775         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64776         for compatibility with GNU.
64777
64778 2007-11-01  Bruno Haible  <bruno@clisp.org>
64779
64780         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64781         (putenv): Renamed from rpl_putenv. Change argument type from
64782         'const char *' to 'char *'.
64783         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64784         of defining putenv in config.h, just set REPLACE_PUTENV.
64785         * modules/putenv (Depends-on): Add stdlib.
64786         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64787         (Include): Use <stdlib.h>.
64788         * lib/stdlib.in.h (putenv): New declaration.
64789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64790         REPLACE_PUTENV.
64791         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64792         REPLACE_PUTENV.
64793         Needed for MacOS X 10.5.0.
64794         Reported by Peter O'Gorman <peter@pogma.com>.
64795
64796 2007-11-01  Jim Meyering  <meyering@redhat.com>
64797
64798         Treat an empty date string exactly like "0".
64799         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64800         if the remaining date string (to be parsed) is empty, use "0".
64801         Reported by Mischa Molhoek and discussed in this thread:
64802         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64803
64804 2007-10-31  Bruno Haible  <bruno@clisp.org>
64805
64806         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64807         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64808         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64809         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64810         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64811         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64812
64813 2007-10-31  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64816         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64817         (AC_TYPE_LONG_LONG_INT): Use it.
64818         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64819         it as well.
64820         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64821         to m4/longlong.m4.
64822         * modules/stdint (Files): Remove m4/ulonglong.m4.
64823         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64824         m4/ulonglong.m4.
64825         * modules/strtoumax (Files): Likewise.
64826
64827 2007-10-30  Bruno Haible  <bruno@clisp.org>
64828
64829         * modules/xvasprintf-posix: New file.
64830         Suggested by Eric Blake.
64831
64832 2007-10-30  Bruno Haible  <bruno@clisp.org>
64833
64834         * modules/xprintf-posix-tests: New file.
64835         * tests/test-xprintf-posix.sh: New file.
64836         * tests/test-xprintf-posix.c: New file.
64837         * tests/test-xfprintf-posix.c: New file.
64838
64839         * modules/xprintf-posix: New file.
64840
64841 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64842
64843         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64844         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64845         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64846
64847 2007-10-29  Bruno Haible  <bruno@clisp.org>
64848
64849         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64850         contain the special marker '_cv_'.
64851         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64852         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64853         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64854         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64856         Reported by Ralf Wildenhues.
64857
64858 2007-10-29  Bruno Haible  <bruno@clisp.org>
64859
64860         * gnulib-tool (func_import): When --lgpl is not specified, set
64861         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64862         GPLv3.
64863         Reported by Simon Josefsson.
64864
64865 2007-10-28  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64868         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64869         HAVE_DECL_ISFINITE.
64870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64871         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64872         HAVE_DECL_ISFINITE.
64873
64874 2007-10-28  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64877         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64878
64879 2007-10-28  Bruno Haible  <bruno@clisp.org>
64880
64881         Fix link errors with Sun C 5.0 on Solaris 10.
64882         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64883         function is declared but not present in the compiler's libm.
64884         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64885         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64886         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64887         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64888         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64889         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64890         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64892         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64893         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64894         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64895         HAVE_DECL_FLOORL.
64896
64897 2007-10-28  Bruno Haible  <bruno@clisp.org>
64898
64899         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64900         gl_FUNC_FLOORL. Cache the result.
64901         (gl_FUNC_FLOORL): Use it.
64902         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64903         gl_FUNC_CEILL. Cache the result.
64904         (gl_FUNC_CEILL): Use it.
64905
64906         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64907         gl_FUNC_FLOOR. Cache the result.
64908         (gl_FUNC_FLOOR): Use it.
64909         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64910         gl_FUNC_CEIL. Cache the result.
64911         (gl_FUNC_CEIL): Use it.
64912
64913         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64914         gl_FUNC_FLOORF. Cache the result.
64915         (gl_FUNC_FLOORF): Use it.
64916         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64917         gl_FUNC_CEILF. Cache the result.
64918         (gl_FUNC_CEILF): Use it.
64919
64920 2007-10-28  Bruno Haible  <bruno@clisp.org>
64921
64922         * gnulib-tool: Allow specifying the LGPL version number through
64923         --lgpl=2 or --lgpl=3.
64924         (func_usage): Document --lgpl with argument.
64925         Handle --lgpl=... arguments.
64926         (func_import): Recognize also gl_LGPL calls with an argument. When
64927         --lgpl=2 is used and the module's license is just LGPL, report an
64928         error. Set sed_transform_lib_file according to the lgpl variable. In
64929         the generated files, use --lgpl or gl_LGPL invocations with argument,
64930         if necessary.
64931         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64932         an LGPv2+ license.
64933         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64934         gl_LGPL macro.
64935
64936 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64937             Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64940         (u16_uctomb_aux): Likewise.
64941         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64942         !HAVE_INLINE.
64943         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64944
64945 2007-10-28  Bruno Haible  <bruno@clisp.org>
64946
64947         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64948         Invoke AM_GETTEXT_OPTION if it exists.
64949         * modules/vasprintf: Likewise.
64950         * modules/verror: Likewise.
64951         * modules/xprintf: Likewise.
64952         * modules/xvasprintf: Likewise.
64953
64954 2007-10-27  Ben Pfaff  <blp@gnu.org>
64955
64956         * lib/math.in.h: Define isfinite macro and prototypes for
64957         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64958         implementations.
64959         * m4/math_h.m4: New substitutions for isfinite module.
64960         * lib/isfinite.c: New file.
64961         * m4/isfinite.m4: New file.
64962         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64963         * modules/isfinite: New file.
64964         * modules/isfinite-tests: New file.
64965         * tests/tests-isfinite.c: New file.
64966         * doc/functions/isfinite.texi: Mention isfinite module.
64967         * MODULES.html.sh: Mention new module.
64968
64969 2007-10-27  Ben Pfaff  <blp@gnu.org>
64970
64971         Ralf Wildenhues reported that Tru64 4.0D declares the round
64972         functions but does not have definitions.
64973         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64974         cannot be found in any library, set the output variable to
64975         "missing" instead of "".
64976         * m4/round.m4: Also use our substitute if we cannot find round in
64977         any library, even if it is declared.
64978         * m4/roundf.m4: Likewise for roundf.
64979         * m4/roundl.m4: Likewise for roundl.
64980         * lib/math.in.h: Undefine roundf, round, roundl before defining
64981         their replacements, to allow for hypothetical systems where these
64982         may be defined as macros but not available in libraries.
64983
64984 2007-10-27  Bruno Haible  <bruno@clisp.org>
64985
64986         * doc/gnulib.texi: Invoke @firstparagraphindent.
64987         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64988         changes in gnulib.
64989         (Source changes): New section.
64990
64991 2007-10-26  Bruno Haible  <bruno@clisp.org>
64992
64993         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64994         borrowed from autoconf.
64995
64996 2007-10-26  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64999         strerror returned the empty string. Needed on HP-UX 11.00.
65000
65001 2007-10-24  Micah Cowan  <micah@cowan.name>
65002
65003         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65004         * build-aux/bootstrap: Remove support for now-unnecessary option,
65005         --cvs-user, and envvars CVS_USER, CVS_RSH.
65006
65007 2007-10-24  Jim Meyering  <meyering@redhat.com>
65008
65009         Avoid diagnostics from sha1sum when there is no cached checksum.
65010         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65011         if the po.s1 file hasn't been created yet.
65012
65013         * build-aux/bootstrap: Sync from coreutils:
65014         2007-10-24  Jim Meyering  <meyering@redhat.com>
65015         Get gnulib from the git repository, not from an obsolete cvs one.
65016         * build-aux/bootstrap: Suggestion from Micah Cowan.
65017         2007-10-04  Jim Meyering  <jim@meyering.net>
65018         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65019         (update_po_files): Work also when there are no .po files in po/.
65020
65021 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * README: Append ".git" to git and cg examples.
65024         Problem reported by Benoit Sigoure.
65025
65026 2007-10-23  Micah Cowan  <micah@cowan.name>
65027
65028         * users.txt: Add wget.
65029
65030 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65031
65032         Fix linking of some unistdio tests on FreeBSD.
65033         * modules/unistdio/u16-vsnprintf-tests
65034         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65035         * modules/unistdio/u16-vsprintf-tests
65036         (test_u16_vsnprintf1_LDADD): Likewise.
65037         * modules/unistdio/u32-vsnprintf-tests
65038         (test_u32_vsnprintf1_LDADD): Likewise.
65039         * modules/unistdio/u32-vsprintf-tests
65040         (test_u32_vsprintf1_LDADD): Likewise.
65041         * modules/unistdio/u8-vsnprintf-tests
65042         (test_u8_vsnprintf1_LDADD): Likewise.
65043         * modules/unistdio/u8-vsprintf-tests
65044         (test_u8_vsprintf1_LDADD): Likewise.
65045         * modules/unistdio/ulc-vsnprintf-tests
65046         (test_ulc_vsnprintf1_LDADD): Likewise.
65047         * modules/unistdio/ulc-vsprintf-tests
65048         (test_ulc_vsprintf1_LDADD): Likewise.
65049
65050         Fix linking of some uniconv tests on FreeBSD.
65051         * modules/uniconv/u16-conv-from-enc-tests
65052         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65053         * modules/uniconv/u16-conv-to-enc-tests
65054         (test_u16_conv_to_enc_LDADD): Likewise.
65055         * modules/uniconv/u16-strconv-from-enc-tests
65056         (test_u16_strconv_from_enc_LDADD): Likewise.
65057         * modules/uniconv/u16-strconv-to-enc-tests
65058         (test_u16_strconv_to_enc_LDADD): Likewise.
65059         * modules/uniconv/u32-conv-from-enc-tests
65060         (test_u32_conv_from_enc_LDADD): Likewise.
65061         * modules/uniconv/u32-conv-to-enc-tests
65062         (test_u32_conv_to_enc_LDADD): Likewise.
65063         * modules/uniconv/u32-strconv-from-enc-tests
65064         (test_u32_strconv_from_enc_LDADD): Likewise.
65065         * modules/uniconv/u32-strconv-to-enc-tests
65066         (test_u32_strconv_to_enc_LDADD): Likewise.
65067         * modules/uniconv/u8-conv-from-enc-tests
65068         (test_u8_conv_from_enc_LDADD): Likewise.
65069         * modules/uniconv/u8-conv-to-enc-tests
65070         (test_u8_conv_to_enc_LDADD): Likewise.
65071         * modules/uniconv/u8-strconv-from-enc-tests
65072         (test_u8_strconv_from_enc_LDADD): Likewise.
65073         * modules/uniconv/u8-strconv-to-enc-tests
65074         (test_u8_strconv_to_enc_LDADD): Likewise.
65075
65076 2007-10-22  Bruno Haible  <bruno@clisp.org>
65077
65078         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65079         size.
65080
65081 2007-10-22  Eric Blake  <ebb9@byu.net>
65082
65083         Tweak x*printf documentation.
65084         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65085         variable name and comments.
65086         Suggested by Bruno Haible.
65087
65088 2007-10-22  Bruno Haible  <bruno@clisp.org>
65089
65090         * lib/acl.c (copy_acl): Fix file name in comment.
65091
65092 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         Fix Tru64 problem with stdbool.h.
65095         * lib/stdbool.in.h (false, true):
65096         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65097         Don't declare as an enum in this situation; it runs afoul of Tru64.
65098         Problem reported by Steven M. Schweda in
65099         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65100
65101 2007-10-22  Eric Blake  <ebb9@byu.net>
65102
65103         Also wrap vf?printf.
65104         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65105         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65106         (xvprintf, xvfprintf): New functions.
65107
65108 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65109
65110         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65111         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65112
65113         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65114         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65115
65116 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65119         by Bruno Haible.
65120
65121 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65122
65123         * lib/getloadavg.c
65124         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65125         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65126
65127         * tests/test-i-ring.c: Work for C89.
65128
65129 2007-10-22  Bruno Haible  <bruno@clisp.org>
65130
65131         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65132         -1u, in preprocessor expression, so that we don't test for the bug
65133         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65135
65136 2007-10-22  Eric Blake  <ebb9@byu.net>
65137
65138         * tests/test-yesno.sh: Silence stderr during test.
65139
65140 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65141
65142         * modules/crypto/gc-camellia: New file.
65143
65144         * m4/gc-camellia.m4: New file.
65145
65146         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65147
65148         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65149
65150 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65151
65152         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65153         --help to stdout.  Reported by sms@antinode.org (Steven
65154         M. Schweda).
65155
65156 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65157
65158         * users.txt: Fix link to libksba.
65159
65160 2007-10-21  Ben Pfaff  <blp@gnu.org>
65161
65162         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65163         round.c roundf implementation that depends on floorf and ceilf to
65164         be tested unconditionally.
65165
65166 2007-10-21  Ben Pfaff  <blp@gnu.org>
65167
65168         * m4/check-libm-func.m4: Removed.
65169         * m4/check-math-lib.m4: New file.
65170         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65171         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65172         definition and lack of AC_LIBOBJ([roundf]).
65173         * m4/roundl.m4: Ditto, and similarly for roundl.
65174         * modules/round: Reference new m4 file.
65175         * modules/roundf: Ditto.
65176         * modules/roundl: Ditto.
65177         * tests/test-round2.c (main): Use ROUND instead of round.
65178         Bug report from Bruno Haible.
65179
65180 2007-10-21  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65183         context.
65184
65185 2007-10-21  Bruno Haible  <bruno@clisp.org>
65186
65187         * tests/test-wcwidth.c (main): Allow negative result for some control
65188         characters.
65189
65190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65191         Needed on OSF/1 5.1.
65192
65193 2007-10-21  Bruno Haible  <bruno@clisp.org>
65194
65195         * tests/test-floorf1.c: Include isnanf.h.
65196         (main): Use isnanf() instead of isnan().
65197         * tests/test-ceilf1.c: Include isnanf.h.
65198         (main): Use isnanf() instead of isnan().
65199         * tests/test-truncf1.c: Include isnanf.h.
65200         (main): Use isnanf() instead of isnan().
65201         * tests/test-roundf1.c: Include isnanf.h.
65202         (main): Use isnanf() instead of isnan().
65203
65204 2007-10-21  Eric Blake  <ebb9@byu.net>
65205
65206         * users.txt: Update URL for m4.
65207
65208 2007-10-21  Bruno Haible  <bruno@clisp.org>
65209
65210         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65211
65212 2007-10-21  Bruno Haible  <bruno@clisp.org>
65213
65214         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65215         Git's management files if the CVS files are not present.
65216
65217 2007-10-20  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65220         gcc-3.4.x.
65221
65222 2007-10-20  Ben Pfaff  <blp@gnu.org>
65223
65224         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65225         implementations.
65226         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65227         * lib/round.c: New file.
65228         * lib/roundf.c: New file.
65229         * lib/roundl.c: New file.
65230         * m4/round.m4: New file.
65231         * m4/roundf.m4: New file.
65232         * m4/roundl.m4: New file.
65233         * m4/check-libm-func-m4: New file.
65234         * modules/math: Replace round, roundf, roundl related @VARS@ in
65235         math.in.h.
65236         * modules/round: New file.
65237         * modules/round-tests: New file.
65238         * modules/roundf: New file.
65239         * modules/roundf-tests: New file.
65240         * modules/roundl: New file.
65241         * modules/roundl-tests: New file.
65242         * tests/test-round1.c: New file.
65243         * tests/test-round2.c: New file.
65244         * tests/test-roundf1.c: New file.
65245         * tests/test-roundf2.c: New file.
65246         * tests/test-roundl.c: New file.
65247         * doc/functions/round.texi: Mention round module.
65248         * doc/functions/roundf.texi: Mention roundf module.
65249         * doc/functions/roundl.texi: Mention roundl module.
65250         * MODULES.html.sh: Mention new modules.
65251         Thanks to Bruno Haible for suggestions.
65252
65253 2007-10-20  Jim Meyering  <meyering@redhat.com>
65254
65255         * lib/xprintf.c: Include <config.h> unconditionally.
65256
65257         Change xprintf's license to GPL.
65258         * modules/xprintf (License): s/LGPL/GPL/, since this module
65259         depends on modules (exit and exitfail) which are GPL.
65260         Suggestion from Bruno Haible.
65261
65262         xprintf fixes.
65263         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65264         Use a clearer diagnostic.
65265         Patch from Bruno Haible.
65266
65267 2007-10-20  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65270         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65271         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65272
65273 2007-10-20  Bruno Haible  <bruno@clisp.org>
65274
65275         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65276         precision in the comparison result > x - 1 or similar.
65277         * tests/test-ceilf2.c (correct_result_p): Likewise.
65278         * tests/test-truncf2.c (correct_result_p): Likewise.
65279         * tests/test-trunc2.c (correct_result_p): Likewise.
65280         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65281
65282 2007-10-20  Bruno Haible  <bruno@clisp.org>
65283
65284         * modules/ceil: New file.
65285         * m4/ceil.m4: New file.
65286         * doc/functions/ceil.texi: Mention the 'ceil' module.
65287
65288 2007-10-20  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/floor: New file.
65291         * m4/floor.m4: New file.
65292         * doc/functions/floor.texi: Mention the 'floor' module.
65293
65294 2007-10-20  Bruno Haible  <bruno@clisp.org>
65295
65296         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65297         of %a.
65298         * modules/floorf-tests (Depends-on): Likewise.
65299         * modules/truncf-tests (Depends-on): Likewise.
65300         * modules/trunc-tests (Depends-on): Likewise.
65301         Reported by Ben Pfaff.
65302
65303 2007-10-19  Jim Meyering  <meyering@redhat.com>
65304
65305         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65306         Don't bother testing specific errno values.  Just test ferror.
65307
65308         New module: xprintf
65309         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65310
65311 2007-10-19  Bruno Haible  <bruno@clisp.org>
65312
65313         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65314         syntax.
65315         * modules/javaexec (Makefile.am): Likewise.
65316         * modules/relocatable-prog (Makefile.am): Likewise.
65317         Suggested by Jim Meyering.
65318
65319 2007-10-18  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65322         Reported by Jim Meyering.
65323
65324 2007-10-18  Eric Blake  <ebb9@byu.net>
65325
65326         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65327
65328 2007-10-18  Bruno Haible  <bruno@clisp.org>
65329
65330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65331         the format string into writable memory. Needed in Fortify conditions.
65332
65333 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65334             Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65337         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65338         * modules/trim (Depends-on): Add mbchar.
65339         (configure.ac): Add gl_FUNC_MBRTOWC.
65340         (Makefile.am): Augment lib_SOURCES.
65341
65342 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         Modify glob.c to use fstatat and dirfd, to simplify it.
65345         Suggested by Eric Blake.
65346         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65347         Don't include <stdbool.h>; not used.
65348         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65349         (link_exists_p): Simplify implementation, since we can now assume
65350         dirfd and fstatat.
65351         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65352
65353 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65354
65355         * gnulib-tool (func_get_dependencies): Fix sed script to
65356         match only tests.
65357
65358 2007-10-17  Bruno Haible  <bruno@clisp.org>
65359
65360         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65361         allow locale names without encoding suffix.
65362         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65363         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65364
65365 2007-10-16  Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65368         * lib/getgroups.c (getgroups): Likewise.
65369         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65370
65371 2007-10-16  Bruno Haible  <bruno@clisp.org>
65372
65373         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65374         * modules/malloc-posix (License): Likewise.
65375         * modules/realloc-posix (License): Likewise.
65376         * modules/calloc-posix (License): Likewise.
65377         * modules/intprops (License): Change from GPL to LGPL, with
65378         Paul Eggert's approval.
65379
65380 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         Merge glibc changes into lib/glob.c.
65383
65384         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65385         2007-10-15 04:59:03 UTC.  Here are the changes:
65386
65387         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65388
65389         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65390
65391         * lib/glob.c: Add some branch prediction throughout.
65392
65393         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65394
65395         [BZ #5103]
65396         * lib/glob.c (glob): Recognize patterns starting \/.
65397
65398         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65399
65400         [BZ #3996]
65401         * lib/glob.c (attribute_hidden): Define if not defined.
65402         (glob): Unescape dirname, filename or username when needed and not
65403         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65404         is NULL.  Handle unescaped [ in pattern without closing ].
65405         Don't pass GLOB_CHECK down to recursive glob for directories.
65406         (__glob_pattern_type): New function.
65407         (__glob_pattern_p): Implement using __glob_pattern_type.
65408         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65409         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65410         Remove unreachable code.
65411
65412         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65413
65414         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65415         explain why there are no leaks.
65416
65417         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65418
65419         [BZ #3253]
65420         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65421         time, rather allocate increasingly bigger arrays of pointers, if
65422         possible with alloca, if too large with malloc.
65423
65424 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65427         Problem reported by H.Merijn Brand in
65428         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65430         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65431
65432 2007-10-15  Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65435         with explicit rpl_ prefix.
65436         * lib/fopen.c (fopen): Likewise.
65437         * lib/freopen.c (freopen): Likewise.
65438         * lib/iconv.c (iconv): Likewise.
65439         * lib/iconv_close.c (iconv_close): Likewise.
65440
65441 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65442
65443         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65444
65445 2007-10-15  Bruno Haible  <bruno@clisp.org>
65446
65447         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65448         <stddef.h> instead of <stdlib.h> since we only need NULL.
65449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65450
65451 2007-10-15  Bruno Haible  <bruno@clisp.org>
65452
65453         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65454         Replace paragraph talking about LIBOBJS.
65455         Reported by Colin Watson <cjwatson@debian.org>.
65456
65457 2007-10-15  Bruno Haible  <bruno@clisp.org>
65458
65459         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65460         <stdlib.h> before using NULL.
65461
65462 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65463
65464         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65465         Reported by Albert Chin <china@thewrittenword.com>.
65466
65467 2007-10-14  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/iconv_open-utf-tests: New file.
65470         * tests/test-iconv-utf.c: New file.
65471
65472         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65473         * modules/iconv_open-utf: New file.
65474         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65475         (iconv, iconv_close): New declarations.
65476         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65477         be defined.
65478         (iconv_open): Add special handling of conversion between UTF-8 and
65479         UTF-{16,32}{BE,LE}.
65480         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65481         * lib/iconv_close.c: New file.
65482         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65483         gl_FUNC_ICONV_OPEN.
65484         (gl_FUNC_ICONV_OPEN): Use it.
65485         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65486         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65487         and REPLACE_ICONV_UTF.
65488         * modules/iconv_open (Depends-on): Add c-strcase.
65489         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65490         ICONV_CONST.
65491         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65492
65493 2007-10-13  Albert Chin  <china@thewrittenword.com>
65494             Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65497         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65498
65499 2007-10-13  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65502         defined, use the ISO C99 inline semantics.
65503         * lib/argp.h (ARGP_EI): Likewise.
65504
65505 2007-10-13  Bruno Haible  <bruno@clisp.org>
65506
65507         Handle 'inline' change in gcc 4.3.0.
65508         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65509         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65510         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65511         argp_fmtstream_point): Disable 'extern' declaration if the function
65512         definition is going to be provided inline.
65513         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65514         semantics, not the ISO C99 inline semantics.
65515         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65516         'extern' declaration if the function definition is going to be provided
65517         inline.
65518         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65519         the GNU C inline semantics, not the ISO C99 inline semantics. With
65520         GCC 4.2, avoid a warning.
65521
65522 2007-10-13  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/freading.h (freading): Enable the use of __freading for
65525         glibc >= 2.7.
65526         * lib/freading.c (freading): Likewise.
65527
65528 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65529
65530         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65531         "warning: C99 inline functions are not supported; using GNU89".
65532
65533 2007-10-12  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65536         of 2.
65537         * tests/test-ceilf2.c: New file.
65538         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65539
65540         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65541         * modules/ceilf-tests: Update.
65542
65543 2007-10-12  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65546         of 2.
65547         * tests/test-floorf2.c: New file.
65548         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65549
65550         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65551         * modules/floorf-tests: Update.
65552
65553 2007-10-12  Bruno Haible  <bruno@clisp.org>
65554
65555         * tests/test-trunc2.c: New file.
65556         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65557
65558         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65559         * modules/trunc-tests: Update.
65560
65561 2007-10-12  Bruno Haible  <bruno@clisp.org>
65562
65563         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65564         of 2.
65565         * tests/test-truncf2.c: New file.
65566         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65567
65568         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65569         * modules/truncf-tests: Update.
65570
65571 2007-10-11  Eric Blake  <ebb9@byu.net>
65572
65573         Don't claim strerror is broken on Interix.
65574         * doc/functions/strerror.texi (strerror): Known broken systems are
65575         now Solaris 8, and not Interix.
65576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65577         Interix on cross-compile.
65578         Reported by Martin Koeppe in
65579         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65580
65581 2007-10-11  Bruno Haible  <bruno@clisp.org>
65582
65583         * modules/i-ring-tests: New file.
65584         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65585         instead of assert.
65586
65587 2007-10-11  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/filenamecat-tests: New file.
65590         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65591         * lib/filenamecat.c: Remove test code.
65592
65593 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65596
65597         * lib/strerror.c: Include <string.h> always, to test interface,
65598         and to remove the need for the dummy.
65599         Include intprops.h to compute width instead of doing it ourselves
65600         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65601         (strerror): Define it to return NULL if there's no system strerror.
65602         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65603         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65604         ancient pre-strerror Unix systems well any more.  Saying "unknown
65605         system error" is enough.
65606         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65607         simpler strerror.c implementation.
65608         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65609         Simplify the tests to reflect the simpler strerror implementation.
65610         * modules/strerror (Depends-on): Add intprops.
65611
65612 2007-10-09  Eric Blake  <ebb9@byu.net>
65613
65614         Silence test-fpending.
65615         * modules/fpending-tests (Files): Add wrapper script.
65616         * tests/test-fpending.sh: New file.
65617
65618 2007-10-09  Bruno Haible  <bruno@clisp.org>
65619
65620         * MODULES.html.sh (func_module): Don't create a hyperlink for
65621         function names like 'printf_frexp'.
65622         (Misc): Add crc, memxor.
65623         (Characteristics of floating types): New section.
65624         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65625         isnanf-nolibm, signbit, trunc, truncf, truncl.
65626         (Enhancements for ISO C 99 functions): New subsection Input/output.
65627         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65628         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65629         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65630         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65631         (Enhancements for POSIX:2001 functions): Add chdir-long.
65632         (File system functions): Add areadlink, chdir-safer, read-file.
65633         Remove cycle-check.
65634         (File system as inode set): New section.
65635         (Date and time): Add gethrxtime.
65636         (Multithreading): Add openmp.
65637         (Internationalization functions): Add localename.
65638         (Unicode string functions): Add unistr/u*-mbsnlen.
65639         (Support for maintaining and releasing projects): Add git-version-gen.
65640         (Lone files): Remove directories.
65641
65642 2007-10-08  Ben Pfaff  <blp@gnu.org>
65643
65644         * lib/xmalloca.h: Fix typo in comment.
65645
65646 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65649         when avoiding problems with integer overflow.  Use a portable test
65650         instead.
65651
65652 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65653
65654         * modules/dummy (License): Change to LGPLv2+.
65655         * modules/float (License): Likewise
65656         * modules/realloc (License): Likewise
65657         * modules/stdlib (License): Likewise
65658
65659 2007-10-07  Bruno Haible  <bruno@clisp.org>
65660
65661         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65662         * floor.c (TWO_MANT_DIG): Likewise.
65663         * ceil.c (TWO_MANT_DIG): Likewise.
65664         Reported by Ben Pfaff.
65665
65666 2007-10-07  Bruno Haible  <bruno@clisp.org>
65667
65668         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65669         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65670         * lib/frexp.c (FUNC): Likewise.
65671         * lib/printf-frexp.h (printf_frexp): Likewise.
65672         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65673         * lib/printf-frexp.c (FUNC): Likewise.
65674         Suggested by Jim Meyering.
65675
65676 2007-10-07  Jim Meyering  <meyering@redhat.com>
65677
65678         Make xnanosleep's integer overflow test more robust.
65679         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65680         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65681
65682 2007-10-07  Bruno Haible  <bruno@clisp.org>
65683
65684         * NEWS: Mention the license change.
65685
65686         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65687         abbreviations in the modules files.
65688
65689         Change copyright notice from GPLv2+ to GPLv3+.
65690         * README: Change copyright notice.
65691         * MODULES.html.sh: Likewise.
65692         * build-aux/bootstrap.conf: Likewise.
65693         * build-aux/config.libpath: Likewise.
65694         * build-aux/csharpcomp.sh.in: Likewise.
65695         * build-aux/csharpexec.sh.in: Likewise.
65696         * build-aux/install-reloc: Likewise.
65697         * build-aux/javacomp.sh.in: Likewise.
65698         * build-aux/javaexec.sh.in: Likewise.
65699         * build-aux/ldd.sh.in: Likewise.
65700         * build-aux/reloc-ldflags: Likewise.
65701         * build-aux/relocatable.sh.in: Likewise.
65702         * build-aux/x-to-1.in: Likewise.
65703         * check-module: Likewise.
65704         * config/srclistvars.sh: Likewise.
65705         * gnulib-tool: Likewise.
65706         * lib/acl-internal.h: Likewise.
65707         * lib/acl.c: Likewise.
65708         * lib/acl.h: Likewise.
65709         * lib/acl_entries.c: Likewise.
65710         * lib/areadlink-with-size.c: Likewise.
65711         * lib/areadlink.c: Likewise.
65712         * lib/areadlink.h: Likewise.
65713         * lib/argmatch.c: Likewise.
65714         * lib/argmatch.h: Likewise.
65715         * lib/argp-ba.c: Likewise.
65716         * lib/argp-eexst.c: Likewise.
65717         * lib/argp-fmtstream.c: Likewise.
65718         * lib/argp-fmtstream.h: Likewise.
65719         * lib/argp-fs-xinl.c: Likewise.
65720         * lib/argp-help.c: Likewise.
65721         * lib/argp-namefrob.h: Likewise.
65722         * lib/argp-parse.c: Likewise.
65723         * lib/argp-pin.c: Likewise.
65724         * lib/argp-pv.c: Likewise.
65725         * lib/argp-pvh.c: Likewise.
65726         * lib/argp-xinl.c: Likewise.
65727         * lib/argp.h: Likewise.
65728         * lib/at-func.c: Likewise.
65729         * lib/atanl.c: Likewise.
65730         * lib/backupfile.c: Likewise.
65731         * lib/backupfile.h: Likewise.
65732         * lib/basename.c: Likewise.
65733         * lib/binary-io.h: Likewise.
65734         * lib/byteswap.in.h: Likewise.
65735         * lib/c-stack.c: Likewise.
65736         * lib/c-stack.h: Likewise.
65737         * lib/c-strcasestr.c: Likewise.
65738         * lib/c-strcasestr.h: Likewise.
65739         * lib/c-strstr.c: Likewise.
65740         * lib/c-strstr.h: Likewise.
65741         * lib/c-strtod.c: Likewise.
65742         * lib/calloc.c: Likewise.
65743         * lib/canon-host.c: Likewise.
65744         * lib/canon-host.h: Likewise.
65745         * lib/canonicalize-lgpl.c: Likewise.
65746         * lib/canonicalize.c: Likewise.
65747         * lib/canonicalize.h: Likewise.
65748         * lib/ceil.c: Likewise.
65749         * lib/ceilf.c: Likewise.
65750         * lib/ceill.c: Likewise.
65751         * lib/chdir-long.c: Likewise.
65752         * lib/chdir-long.h: Likewise.
65753         * lib/chdir-safer.c: Likewise.
65754         * lib/chdir-safer.h: Likewise.
65755         * lib/chown.c: Likewise.
65756         * lib/classpath.c: Likewise.
65757         * lib/classpath.h: Likewise.
65758         * lib/clean-temp.c: Likewise.
65759         * lib/clean-temp.h: Likewise.
65760         * lib/cloexec.c: Likewise.
65761         * lib/close-stream.c: Likewise.
65762         * lib/closein.c: Likewise.
65763         * lib/closein.h: Likewise.
65764         * lib/closeout.c: Likewise.
65765         * lib/closeout.h: Likewise.
65766         * lib/concat-filename.c: Likewise.
65767         * lib/copy-file.c: Likewise.
65768         * lib/copy-file.h: Likewise.
65769         * lib/count-one-bits.h: Likewise.
65770         * lib/crc.c: Likewise.
65771         * lib/crc.h: Likewise.
65772         * lib/creat-safer.c: Likewise.
65773         * lib/csharpcomp.c: Likewise.
65774         * lib/csharpcomp.h: Likewise.
65775         * lib/csharpexec.c: Likewise.
65776         * lib/csharpexec.h: Likewise.
65777         * lib/cycle-check.c: Likewise.
65778         * lib/cycle-check.h: Likewise.
65779         * lib/diacrit.c: Likewise.
65780         * lib/diacrit.h: Likewise.
65781         * lib/diffseq.h: Likewise.
65782         * lib/dirchownmod.c: Likewise.
65783         * lib/dirent.in.h: Likewise.
65784         * lib/dirfd.c: Likewise.
65785         * lib/dirfd.h: Likewise.
65786         * lib/dirname.c: Likewise.
65787         * lib/dirname.h: Likewise.
65788         * lib/dummy.c: Likewise.
65789         * lib/dup-safer.c: Likewise.
65790         * lib/dup2.c: Likewise.
65791         * lib/eealloc.h: Likewise.
65792         * lib/error.c: Likewise.
65793         * lib/error.h: Likewise.
65794         * lib/euidaccess.c: Likewise.
65795         * lib/exclude.c: Likewise.
65796         * lib/exclude.h: Likewise.
65797         * lib/execute.c: Likewise.
65798         * lib/execute.h: Likewise.
65799         * lib/exitfail.c: Likewise.
65800         * lib/exitfail.h: Likewise.
65801         * lib/expl.c: Likewise.
65802         * lib/fatal-signal.c: Likewise.
65803         * lib/fatal-signal.h: Likewise.
65804         * lib/fbufmode.c: Likewise.
65805         * lib/fbufmode.h: Likewise.
65806         * lib/fchdir.c: Likewise.
65807         * lib/fchmodat.c: Likewise.
65808         * lib/fchownat.c: Likewise.
65809         * lib/fcntl--.h: Likewise.
65810         * lib/fcntl-safer.h: Likewise.
65811         * lib/fcntl.in.h: Likewise.
65812         * lib/fd-safer.c: Likewise.
65813         * lib/fflush.c: Likewise.
65814         * lib/file-has-acl.c: Likewise.
65815         * lib/file-set.c: Likewise.
65816         * lib/file-type.c: Likewise.
65817         * lib/file-type.h: Likewise.
65818         * lib/fileblocks.c: Likewise.
65819         * lib/filemode.c: Likewise.
65820         * lib/filemode.h: Likewise.
65821         * lib/filename.h: Likewise.
65822         * lib/filenamecat.c: Likewise.
65823         * lib/filenamecat.h: Likewise.
65824         * lib/findprog.c: Likewise.
65825         * lib/findprog.h: Likewise.
65826         * lib/float.in.h: Likewise.
65827         * lib/floor.c: Likewise.
65828         * lib/floorf.c: Likewise.
65829         * lib/floorl.c: Likewise.
65830         * lib/fopen-safer.c: Likewise.
65831         * lib/fopen.c: Likewise.
65832         * lib/fpending.c: Likewise.
65833         * lib/fpending.h: Likewise.
65834         * lib/fprintf.c: Likewise.
65835         * lib/fprintftime.h: Likewise.
65836         * lib/fpucw.h: Likewise.
65837         * lib/fpurge.c: Likewise.
65838         * lib/fpurge.h: Likewise.
65839         * lib/freadable.c: Likewise.
65840         * lib/freadable.h: Likewise.
65841         * lib/freadahead.c: Likewise.
65842         * lib/freadahead.h: Likewise.
65843         * lib/freading.c: Likewise.
65844         * lib/freading.h: Likewise.
65845         * lib/free.c: Likewise.
65846         * lib/freopen.c: Likewise.
65847         * lib/frexp.c: Likewise.
65848         * lib/frexpl.c: Likewise.
65849         * lib/fseek.c: Likewise.
65850         * lib/fseterr.c: Likewise.
65851         * lib/fseterr.h: Likewise.
65852         * lib/fstatat.c: Likewise.
65853         * lib/fstrcmp.c: Likewise.
65854         * lib/fstrcmp.h: Likewise.
65855         * lib/fsusage.c: Likewise.
65856         * lib/fsusage.h: Likewise.
65857         * lib/ftell.c: Likewise.
65858         * lib/ftello.c: Likewise.
65859         * lib/fts-cycle.c: Likewise.
65860         * lib/fts.c: Likewise.
65861         * lib/fts_.h: Likewise.
65862         * lib/full-read.c: Likewise.
65863         * lib/full-read.h: Likewise.
65864         * lib/full-write.c: Likewise.
65865         * lib/full-write.h: Likewise.
65866         * lib/fwritable.c: Likewise.
65867         * lib/fwritable.h: Likewise.
65868         * lib/fwriteerror.c: Likewise.
65869         * lib/fwriteerror.h: Likewise.
65870         * lib/fwriting.c: Likewise.
65871         * lib/fwriting.h: Likewise.
65872         * lib/gcd.c: Likewise.
65873         * lib/gcd.h: Likewise.
65874         * lib/getcwd.c: Likewise.
65875         * lib/getdate.h: Likewise.
65876         * lib/getdate.y: Likewise.
65877         * lib/getdomainname.c: Likewise.
65878         * lib/getdomainname.h: Likewise.
65879         * lib/getgroups.c: Likewise.
65880         * lib/gethostname.c: Likewise.
65881         * lib/gethrxtime.c: Likewise.
65882         * lib/gethrxtime.h: Likewise.
65883         * lib/getloadavg.c: Likewise.
65884         * lib/getndelim2.c: Likewise.
65885         * lib/getndelim2.h: Likewise.
65886         * lib/getnline.c: Likewise.
65887         * lib/getnline.h: Likewise.
65888         * lib/getopt.c: Likewise.
65889         * lib/getopt.in.h: Likewise.
65890         * lib/getopt1.c: Likewise.
65891         * lib/getopt_int.h: Likewise.
65892         * lib/getpagesize.h: Likewise.
65893         * lib/getsubopt.c: Likewise.
65894         * lib/gettime.c: Likewise.
65895         * lib/getugroups.c: Likewise.
65896         * lib/getugroups.h: Likewise.
65897         * lib/getusershell.c: Likewise.
65898         * lib/gl_anyavltree_list1.h: Likewise.
65899         * lib/gl_anyavltree_list2.h: Likewise.
65900         * lib/gl_anyhash_list1.h: Likewise.
65901         * lib/gl_anyhash_list2.h: Likewise.
65902         * lib/gl_anylinked_list1.h: Likewise.
65903         * lib/gl_anylinked_list2.h: Likewise.
65904         * lib/gl_anyrbtree_list1.h: Likewise.
65905         * lib/gl_anyrbtree_list2.h: Likewise.
65906         * lib/gl_anytree_list1.h: Likewise.
65907         * lib/gl_anytree_list2.h: Likewise.
65908         * lib/gl_anytree_oset.h: Likewise.
65909         * lib/gl_anytreehash_list1.h: Likewise.
65910         * lib/gl_anytreehash_list2.h: Likewise.
65911         * lib/gl_array_list.c: Likewise.
65912         * lib/gl_array_list.h: Likewise.
65913         * lib/gl_array_oset.c: Likewise.
65914         * lib/gl_array_oset.h: Likewise.
65915         * lib/gl_avltree_list.c: Likewise.
65916         * lib/gl_avltree_list.h: Likewise.
65917         * lib/gl_avltree_oset.c: Likewise.
65918         * lib/gl_avltree_oset.h: Likewise.
65919         * lib/gl_avltreehash_list.c: Likewise.
65920         * lib/gl_avltreehash_list.h: Likewise.
65921         * lib/gl_carray_list.c: Likewise.
65922         * lib/gl_carray_list.h: Likewise.
65923         * lib/gl_linked_list.c: Likewise.
65924         * lib/gl_linked_list.h: Likewise.
65925         * lib/gl_linkedhash_list.c: Likewise.
65926         * lib/gl_linkedhash_list.h: Likewise.
65927         * lib/gl_list.c: Likewise.
65928         * lib/gl_list.h: Likewise.
65929         * lib/gl_oset.c: Likewise.
65930         * lib/gl_oset.h: Likewise.
65931         * lib/gl_rbtree_list.c: Likewise.
65932         * lib/gl_rbtree_list.h: Likewise.
65933         * lib/gl_rbtree_oset.c: Likewise.
65934         * lib/gl_rbtree_oset.h: Likewise.
65935         * lib/gl_rbtreehash_list.c: Likewise.
65936         * lib/gl_rbtreehash_list.h: Likewise.
65937         * lib/gl_sublist.c: Likewise.
65938         * lib/gl_sublist.h: Likewise.
65939         * lib/group-member.c: Likewise.
65940         * lib/group-member.h: Likewise.
65941         * lib/hard-locale.c: Likewise.
65942         * lib/hard-locale.h: Likewise.
65943         * lib/hash-pjw.c: Likewise.
65944         * lib/hash-pjw.h: Likewise.
65945         * lib/hash-triple.c: Likewise.
65946         * lib/hash.c: Likewise.
65947         * lib/hash.h: Likewise.
65948         * lib/human.c: Likewise.
65949         * lib/human.h: Likewise.
65950         * lib/i-ring.c: Likewise.
65951         * lib/i-ring.h: Likewise.
65952         * lib/idcache.c: Likewise.
65953         * lib/imaxabs.c: Likewise.
65954         * lib/imaxdiv.c: Likewise.
65955         * lib/inet_pton.c: Likewise.
65956         * lib/inet_pton.h: Likewise.
65957         * lib/intprops.h: Likewise.
65958         * lib/inttostr.c: Likewise.
65959         * lib/inttostr.h: Likewise.
65960         * lib/inttypes.in.h: Likewise.
65961         * lib/isapipe.c: Likewise.
65962         * lib/isdir.c: Likewise.
65963         * lib/isnan.c: Likewise.
65964         * lib/isnan.h: Likewise.
65965         * lib/isnanf.c: Likewise.
65966         * lib/isnanf.h: Likewise.
65967         * lib/isnanl-nolibm.h: Likewise.
65968         * lib/isnanl.c: Likewise.
65969         * lib/isnanl.h: Likewise.
65970         * lib/javacomp.c: Likewise.
65971         * lib/javacomp.h: Likewise.
65972         * lib/javaexec.c: Likewise.
65973         * lib/javaexec.h: Likewise.
65974         * lib/javaversion.c: Likewise.
65975         * lib/javaversion.h: Likewise.
65976         * lib/javaversion.java: Likewise.
65977         * lib/lbrkprop.h: Likewise.
65978         * lib/lchmod.h: Likewise.
65979         * lib/lchown.c: Likewise.
65980         * lib/ldexpl.c: Likewise.
65981         * lib/linebreak.c: Likewise.
65982         * lib/linebreak.h: Likewise.
65983         * lib/linebuffer.c: Likewise.
65984         * lib/linebuffer.h: Likewise.
65985         * lib/locale.in.h: Likewise.
65986         * lib/logl.c: Likewise.
65987         * lib/long-options.c: Likewise.
65988         * lib/long-options.h: Likewise.
65989         * lib/lstat.c: Likewise.
65990         * lib/lstat.h: Likewise.
65991         * lib/math.in.h: Likewise.
65992         * lib/mbchar.c: Likewise.
65993         * lib/mbchar.h: Likewise.
65994         * lib/mbfile.h: Likewise.
65995         * lib/mbiter.h: Likewise.
65996         * lib/mbscasecmp.c: Likewise.
65997         * lib/mbscasestr.c: Likewise.
65998         * lib/mbschr.c: Likewise.
65999         * lib/mbscspn.c: Likewise.
66000         * lib/mbslen.c: Likewise.
66001         * lib/mbsncasecmp.c: Likewise.
66002         * lib/mbsnlen.c: Likewise.
66003         * lib/mbspbrk.c: Likewise.
66004         * lib/mbspcasecmp.c: Likewise.
66005         * lib/mbsrchr.c: Likewise.
66006         * lib/mbssep.c: Likewise.
66007         * lib/mbsspn.c: Likewise.
66008         * lib/mbsstr.c: Likewise.
66009         * lib/mbstok_r.c: Likewise.
66010         * lib/mbswidth.c: Likewise.
66011         * lib/mbswidth.h: Likewise.
66012         * lib/mbuiter.h: Likewise.
66013         * lib/memcasecmp.c: Likewise.
66014         * lib/memcasecmp.h: Likewise.
66015         * lib/memchr.c: Likewise.
66016         * lib/memcmp.c: Likewise.
66017         * lib/memcoll.c: Likewise.
66018         * lib/memcoll.h: Likewise.
66019         * lib/memcpy.c: Likewise.
66020         * lib/memrchr.c: Likewise.
66021         * lib/mkancesdirs.c: Likewise.
66022         * lib/mkdir-p.c: Likewise.
66023         * lib/mkdir-p.h: Likewise.
66024         * lib/mkdir.c: Likewise.
66025         * lib/mkdirat.c: Likewise.
66026         * lib/mkdtemp.c: Likewise.
66027         * lib/mkstemp-safer.c: Likewise.
66028         * lib/mkstemp.c: Likewise.
66029         * lib/modechange.c: Likewise.
66030         * lib/modechange.h: Likewise.
66031         * lib/mountlist.c: Likewise.
66032         * lib/mountlist.h: Likewise.
66033         * lib/mpsort.c: Likewise.
66034         * lib/nanosleep.c: Likewise.
66035         * lib/obstack.c: Likewise.
66036         * lib/obstack.h: Likewise.
66037         * lib/open-safer.c: Likewise.
66038         * lib/open.c: Likewise.
66039         * lib/openat-die.c: Likewise.
66040         * lib/openat-priv.h: Likewise.
66041         * lib/openat-proc.c: Likewise.
66042         * lib/openat.c: Likewise.
66043         * lib/openat.h: Likewise.
66044         * lib/pagealign_alloc.c: Likewise.
66045         * lib/pagealign_alloc.h: Likewise.
66046         * lib/physmem.c: Likewise.
66047         * lib/physmem.h: Likewise.
66048         * lib/pipe-safer.c: Likewise.
66049         * lib/pipe.c: Likewise.
66050         * lib/pipe.h: Likewise.
66051         * lib/posixtm.c: Likewise.
66052         * lib/posixtm.h: Likewise.
66053         * lib/posixver.c: Likewise.
66054         * lib/printf-frexp.c: Likewise.
66055         * lib/printf-frexp.h: Likewise.
66056         * lib/printf-frexpl.c: Likewise.
66057         * lib/printf-frexpl.h: Likewise.
66058         * lib/printf.c: Likewise.
66059         * lib/progname.c: Likewise.
66060         * lib/progname.h: Likewise.
66061         * lib/progreloc.c: Likewise.
66062         * lib/putenv.c: Likewise.
66063         * lib/quote.c: Likewise.
66064         * lib/quote.h: Likewise.
66065         * lib/quotearg.c: Likewise.
66066         * lib/quotearg.h: Likewise.
66067         * lib/raise.c: Likewise.
66068         * lib/readline.c: Likewise.
66069         * lib/readline.h: Likewise.
66070         * lib/readlink.c: Likewise.
66071         * lib/readtokens.c: Likewise.
66072         * lib/readtokens.h: Likewise.
66073         * lib/readtokens0.c: Likewise.
66074         * lib/readtokens0.h: Likewise.
66075         * lib/readutmp.c: Likewise.
66076         * lib/readutmp.h: Likewise.
66077         * lib/realloc.c: Likewise.
66078         * lib/relocwrapper.c: Likewise.
66079         * lib/rename-dest-slash.c: Likewise.
66080         * lib/rename.c: Likewise.
66081         * lib/rmdir.c: Likewise.
66082         * lib/rpmatch.c: Likewise.
66083         * lib/safe-read.c: Likewise.
66084         * lib/safe-read.h: Likewise.
66085         * lib/safe-write.c: Likewise.
66086         * lib/safe-write.h: Likewise.
66087         * lib/same-inode.h: Likewise.
66088         * lib/same.c: Likewise.
66089         * lib/same.h: Likewise.
66090         * lib/save-cwd.c: Likewise.
66091         * lib/save-cwd.h: Likewise.
66092         * lib/savedir.c: Likewise.
66093         * lib/savedir.h: Likewise.
66094         * lib/savewd.c: Likewise.
66095         * lib/savewd.h: Likewise.
66096         * lib/search.in.h: Likewise.
66097         * lib/setenv.c: Likewise.
66098         * lib/setenv.h: Likewise.
66099         * lib/settime.c: Likewise.
66100         * lib/sh-quote.c: Likewise.
66101         * lib/sh-quote.h: Likewise.
66102         * lib/sig2str.c: Likewise.
66103         * lib/sig2str.h: Likewise.
66104         * lib/signal.in.h: Likewise.
66105         * lib/signbitd.c: Likewise.
66106         * lib/signbitf.c: Likewise.
66107         * lib/signbitl.c: Likewise.
66108         * lib/sigprocmask.c: Likewise.
66109         * lib/sincosl.c: Likewise.
66110         * lib/sleep.c: Likewise.
66111         * lib/sprintf.c: Likewise.
66112         * lib/sqrtl.c: Likewise.
66113         * lib/stat-time.h: Likewise.
66114         * lib/stdio--.h: Likewise.
66115         * lib/stdio-safer.h: Likewise.
66116         * lib/stdlib--.h: Likewise.
66117         * lib/stdlib-safer.h: Likewise.
66118         * lib/stdlib.in.h: Likewise.
66119         * lib/stpcpy.c: Likewise.
66120         * lib/stpncpy.c: Likewise.
66121         * lib/strchrnul.c: Likewise.
66122         * lib/strcspn.c: Likewise.
66123         * lib/strerror.c: Likewise.
66124         * lib/strftime.c: Likewise.
66125         * lib/strftime.h: Likewise.
66126         * lib/striconveh.c: Likewise.
66127         * lib/striconveh.h: Likewise.
66128         * lib/striconveha.c: Likewise.
66129         * lib/striconveha.h: Likewise.
66130         * lib/stripslash.c: Likewise.
66131         * lib/strnlen1.c: Likewise.
66132         * lib/strnlen1.h: Likewise.
66133         * lib/strtod.c: Likewise.
66134         * lib/strtoimax.c: Likewise.
66135         * lib/strtok_r.c: Likewise.
66136         * lib/strtol.c: Likewise.
66137         * lib/strtoll.c: Likewise.
66138         * lib/strtoul.c: Likewise.
66139         * lib/strtoull.c: Likewise.
66140         * lib/sysexits.in.h: Likewise.
66141         * lib/tempname.c: Likewise.
66142         * lib/tempname.h: Likewise.
66143         * lib/timespec.h: Likewise.
66144         * lib/tls.c: Likewise.
66145         * lib/tls.h: Likewise.
66146         * lib/tmpdir.c: Likewise.
66147         * lib/tmpdir.h: Likewise.
66148         * lib/tmpfile-safer.c: Likewise.
66149         * lib/tmpfile.c: Likewise.
66150         * lib/trigl.c: Likewise.
66151         * lib/trigl.h: Likewise.
66152         * lib/trim.c: Likewise.
66153         * lib/trim.h: Likewise.
66154         * lib/trunc.c: Likewise.
66155         * lib/truncf.c: Likewise.
66156         * lib/truncl.c: Likewise.
66157         * lib/tsearch.c: Likewise.
66158         * lib/unicodeio.c: Likewise.
66159         * lib/unicodeio.h: Likewise.
66160         * lib/unistd--.h: Likewise.
66161         * lib/unistd-safer.h: Likewise.
66162         * lib/unistdio/ulc-fprintf.c: Likewise.
66163         * lib/unistdio/ulc-vfprintf.c: Likewise.
66164         * lib/unlinkdir.c: Likewise.
66165         * lib/unlinkdir.h: Likewise.
66166         * lib/unlocked-io.h: Likewise.
66167         * lib/unsetenv.c: Likewise.
66168         * lib/userspec.c: Likewise.
66169         * lib/utime.c: Likewise.
66170         * lib/utimecmp.c: Likewise.
66171         * lib/utimecmp.h: Likewise.
66172         * lib/utimens.c: Likewise.
66173         * lib/verify.h: Likewise.
66174         * lib/verror.c: Likewise.
66175         * lib/verror.h: Likewise.
66176         * lib/version-etc-fsf.c: Likewise.
66177         * lib/version-etc.c: Likewise.
66178         * lib/version-etc.h: Likewise.
66179         * lib/vfprintf.c: Likewise.
66180         * lib/vprintf.c: Likewise.
66181         * lib/vsprintf.c: Likewise.
66182         * lib/w32spawn.h: Likewise.
66183         * lib/wait-process.c: Likewise.
66184         * lib/wait-process.h: Likewise.
66185         * lib/wcwidth.c: Likewise.
66186         * lib/write-any-file.c: Likewise.
66187         * lib/xalloc-die.c: Likewise.
66188         * lib/xalloc.h: Likewise.
66189         * lib/xasprintf.c: Likewise.
66190         * lib/xgetcwd.c: Likewise.
66191         * lib/xgetcwd.h: Likewise.
66192         * lib/xgetdomainname.c: Likewise.
66193         * lib/xgetdomainname.h: Likewise.
66194         * lib/xgethostname.c: Likewise.
66195         * lib/xmalloc.c: Likewise.
66196         * lib/xmalloca.c: Likewise.
66197         * lib/xmalloca.h: Likewise.
66198         * lib/xmemcoll.c: Likewise.
66199         * lib/xnanosleep.c: Likewise.
66200         * lib/xreadlink.c: Likewise.
66201         * lib/xreadlink.h: Likewise.
66202         * lib/xsetenv.c: Likewise.
66203         * lib/xsetenv.h: Likewise.
66204         * lib/xstriconv.c: Likewise.
66205         * lib/xstriconv.h: Likewise.
66206         * lib/xstrndup.c: Likewise.
66207         * lib/xstrndup.h: Likewise.
66208         * lib/xstrtod.c: Likewise.
66209         * lib/xstrtod.h: Likewise.
66210         * lib/xstrtol-error.c: Likewise.
66211         * lib/xstrtol.c: Likewise.
66212         * lib/xstrtol.h: Likewise.
66213         * lib/xtime.h: Likewise.
66214         * lib/xvasprintf.c: Likewise.
66215         * lib/xvasprintf.h: Likewise.
66216         * lib/yesno.c: Likewise.
66217         * lib/yesno.h: Likewise.
66218         * posix-modules: Likewise.
66219         * tests/test-alloca-opt.c: Likewise.
66220         * tests/test-arcfour.c: Likewise.
66221         * tests/test-arctwo.c: Likewise.
66222         * tests/test-argmatch.c: Likewise.
66223         * tests/test-argp-2.sh: Likewise.
66224         * tests/test-argp.c: Likewise.
66225         * tests/test-arpa_inet.c: Likewise.
66226         * tests/test-array_list.c: Likewise.
66227         * tests/test-array_oset.c: Likewise.
66228         * tests/test-atexit.c: Likewise.
66229         * tests/test-avltree_list.c: Likewise.
66230         * tests/test-avltree_oset.c: Likewise.
66231         * tests/test-avltreehash_list.c: Likewise.
66232         * tests/test-base64.c: Likewise.
66233         * tests/test-binary-io.c: Likewise.
66234         * tests/test-byteswap.c: Likewise.
66235         * tests/test-c-ctype.c: Likewise.
66236         * tests/test-c-strcasecmp.c: Likewise.
66237         * tests/test-c-strcasestr.c: Likewise.
66238         * tests/test-c-strncasecmp.c: Likewise.
66239         * tests/test-c-strstr.c: Likewise.
66240         * tests/test-canonicalize-lgpl.c: Likewise.
66241         * tests/test-canonicalize.c: Likewise.
66242         * tests/test-carray_list.c: Likewise.
66243         * tests/test-ceilf.c: Likewise.
66244         * tests/test-ceill.c: Likewise.
66245         * tests/test-count-one-bits.c: Likewise.
66246         * tests/test-crc.c: Likewise.
66247         * tests/test-dirname.c: Likewise.
66248         * tests/test-fbufmode.c: Likewise.
66249         * tests/test-fcntl.c: Likewise.
66250         * tests/test-fflush.c: Likewise.
66251         * tests/test-floorf.c: Likewise.
66252         * tests/test-floorl.c: Likewise.
66253         * tests/test-fopen.c: Likewise.
66254         * tests/test-fprintf-posix.c: Likewise.
66255         * tests/test-fprintf-posix.h: Likewise.
66256         * tests/test-fpurge.c: Likewise.
66257         * tests/test-freadable.c: Likewise.
66258         * tests/test-freadahead.c: Likewise.
66259         * tests/test-freading.c: Likewise.
66260         * tests/test-freopen.c: Likewise.
66261         * tests/test-frexp.c: Likewise.
66262         * tests/test-frexpl.c: Likewise.
66263         * tests/test-fseek.c: Likewise.
66264         * tests/test-fseeko.c: Likewise.
66265         * tests/test-fseterr.c: Likewise.
66266         * tests/test-fstrcmp.c: Likewise.
66267         * tests/test-ftell.c: Likewise.
66268         * tests/test-ftello.c: Likewise.
66269         * tests/test-fwritable.c: Likewise.
66270         * tests/test-fwriting.c: Likewise.
66271         * tests/test-getaddrinfo.c: Likewise.
66272         * tests/test-getpass.c: Likewise.
66273         * tests/test-gettimeofday.c: Likewise.
66274         * tests/test-hmac-md5.c: Likewise.
66275         * tests/test-hmac-sha1.c: Likewise.
66276         * tests/test-iconv.c: Likewise.
66277         * tests/test-iconvme.c: Likewise.
66278         * tests/test-inttypes.c: Likewise.
66279         * tests/test-isnan.c: Likewise.
66280         * tests/test-isnanf.c: Likewise.
66281         * tests/test-isnanl-nolibm.c: Likewise.
66282         * tests/test-isnanl.c: Likewise.
66283         * tests/test-isnanl.h: Likewise.
66284         * tests/test-ldexpl.c: Likewise.
66285         * tests/test-linked_list.c: Likewise.
66286         * tests/test-linkedhash_list.c: Likewise.
66287         * tests/test-locale.c: Likewise.
66288         * tests/test-localename.c: Likewise.
66289         * tests/test-lock.c: Likewise.
66290         * tests/test-lseek.c: Likewise.
66291         * tests/test-malloca.c: Likewise.
66292         * tests/test-math.c: Likewise.
66293         * tests/test-mbscasecmp.c: Likewise.
66294         * tests/test-mbscasestr1.c: Likewise.
66295         * tests/test-mbscasestr2.c: Likewise.
66296         * tests/test-mbscasestr3.c: Likewise.
66297         * tests/test-mbscasestr4.c: Likewise.
66298         * tests/test-mbschr.c: Likewise.
66299         * tests/test-mbscspn.c: Likewise.
66300         * tests/test-mbsncasecmp.c: Likewise.
66301         * tests/test-mbspbrk.c: Likewise.
66302         * tests/test-mbspcasecmp.c: Likewise.
66303         * tests/test-mbsrchr.c: Likewise.
66304         * tests/test-mbsspn.c: Likewise.
66305         * tests/test-mbsstr1.c: Likewise.
66306         * tests/test-mbsstr2.c: Likewise.
66307         * tests/test-mbsstr3.c: Likewise.
66308         * tests/test-md5.c: Likewise.
66309         * tests/test-memmem.c: Likewise.
66310         * tests/test-netinet_in.c: Likewise.
66311         * tests/test-open.c: Likewise.
66312         * tests/test-printf-frexp.c: Likewise.
66313         * tests/test-printf-frexpl.c: Likewise.
66314         * tests/test-printf-posix.c: Likewise.
66315         * tests/test-printf-posix.h: Likewise.
66316         * tests/test-rbtree_list.c: Likewise.
66317         * tests/test-rbtree_oset.c: Likewise.
66318         * tests/test-rbtreehash_list.c: Likewise.
66319         * tests/test-read-file.c: Likewise.
66320         * tests/test-rijndael.c: Likewise.
66321         * tests/test-search.c: Likewise.
66322         * tests/test-signbit.c: Likewise.
66323         * tests/test-sleep.c: Likewise.
66324         * tests/test-snprintf-posix.c: Likewise.
66325         * tests/test-snprintf-posix.h: Likewise.
66326         * tests/test-snprintf.c: Likewise.
66327         * tests/test-sprintf-posix.c: Likewise.
66328         * tests/test-sprintf-posix.h: Likewise.
66329         * tests/test-stat-time.c: Likewise.
66330         * tests/test-stdbool.c: Likewise.
66331         * tests/test-stdint.c: Likewise.
66332         * tests/test-stdio.c: Likewise.
66333         * tests/test-stdlib.c: Likewise.
66334         * tests/test-stpncpy.c: Likewise.
66335         * tests/test-strcasestr.c: Likewise.
66336         * tests/test-striconv.c: Likewise.
66337         * tests/test-striconveh.c: Likewise.
66338         * tests/test-striconveha.c: Likewise.
66339         * tests/test-string.c: Likewise.
66340         * tests/test-sys_select.c: Likewise.
66341         * tests/test-sys_socket.c: Likewise.
66342         * tests/test-sys_stat.c: Likewise.
66343         * tests/test-sys_time.c: Likewise.
66344         * tests/test-sysexits.c: Likewise.
66345         * tests/test-time.c: Likewise.
66346         * tests/test-tls.c: Likewise.
66347         * tests/test-trunc.c: Likewise.
66348         * tests/test-truncf.c: Likewise.
66349         * tests/test-truncl.c: Likewise.
66350         * tests/test-unistd.c: Likewise.
66351         * tests/test-vasnprintf-posix.c: Likewise.
66352         * tests/test-vasnprintf-posix2.c: Likewise.
66353         * tests/test-vasnprintf.c: Likewise.
66354         * tests/test-vasprintf-posix.c: Likewise.
66355         * tests/test-vasprintf.c: Likewise.
66356         * tests/test-verify.c: Likewise.
66357         * tests/test-vfprintf-posix.c: Likewise.
66358         * tests/test-vprintf-posix.c: Likewise.
66359         * tests/test-vsnprintf-posix.c: Likewise.
66360         * tests/test-vsnprintf.c: Likewise.
66361         * tests/test-vsprintf-posix.c: Likewise.
66362         * tests/test-wchar.c: Likewise.
66363         * tests/test-wctype.c: Likewise.
66364         * tests/test-wcwidth.c: Likewise.
66365         * tests/test-xstrtol.c: Likewise.
66366         * tests/test-xvasprintf.c: Likewise.
66367         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66368         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66369         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66370         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66371         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66372         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66373         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66374         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66375         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66376         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66377         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66378         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66379         * tests/uniname/test-uninames.c: Likewise.
66380         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66381         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66382         * tests/unistdio/test-u16-printf1.h: Likewise.
66383         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66384         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66385         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66386         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66387         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66388         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66389         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66390         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66391         * tests/unistdio/test-u32-printf1.h: Likewise.
66392         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66393         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66394         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66395         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66396         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66397         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66398         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66399         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66400         * tests/unistdio/test-u8-printf1.h: Likewise.
66401         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66402         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66403         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66404         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66405         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66406         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66407         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66408         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66409         * tests/unistdio/test-ulc-printf1.h: Likewise.
66410         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66411         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66412         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66413         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66414         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66415         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66416         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66417         * tests/uniwidth/test-u16-width.c: Likewise.
66418         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66419         * tests/uniwidth/test-u32-width.c: Likewise.
66420         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66421         * tests/uniwidth/test-u8-width.c: Likewise.
66422         * tests/uniwidth/test-uc_width.c: Likewise.
66423         * config/srclist-update: Likewise.
66424         (fixlicense): Update to GPLv3+.
66425
66426         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66427         * tests/test-tsearch.c: Change copyright notice.
66428
66429         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66430         * lib/c-strcaseeq.h: Change copyright notice.
66431         * lib/streq.h: Likewise.
66432         * lib/uniconv.h: Likewise.
66433         * lib/uniconv/u-conv-from-enc.h: Likewise.
66434         * lib/uniconv/u-conv-to-enc.h: Likewise.
66435         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66436         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66437         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66438         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66439         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66440         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66441         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66442         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66443         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66444         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66445         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66446         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66447         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66448         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66449         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66450         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66451         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66452         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66453         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66454         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66455         * lib/uniname.h: Likewise.
66456         * lib/uniname/uniname.c: Likewise.
66457         * lib/unistdio.h: Likewise.
66458         * lib/unistdio/u-asnprintf.h: Likewise.
66459         * lib/unistdio/u-asprintf.h: Likewise.
66460         * lib/unistdio/u-printf-args.c: Likewise.
66461         * lib/unistdio/u-printf-args.h: Likewise.
66462         * lib/unistdio/u-printf-parse.h: Likewise.
66463         * lib/unistdio/u-snprintf.h: Likewise.
66464         * lib/unistdio/u-sprintf.h: Likewise.
66465         * lib/unistdio/u-vasprintf.h: Likewise.
66466         * lib/unistdio/u-vsnprintf.h: Likewise.
66467         * lib/unistdio/u-vsprintf.h: Likewise.
66468         * lib/unistdio/u16-asnprintf.c: Likewise.
66469         * lib/unistdio/u16-asprintf.c: Likewise.
66470         * lib/unistdio/u16-printf-parse.c: Likewise.
66471         * lib/unistdio/u16-snprintf.c: Likewise.
66472         * lib/unistdio/u16-sprintf.c: Likewise.
66473         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66474         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66475         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66476         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66477         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66478         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66479         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66480         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66481         * lib/unistdio/u16-vasnprintf.c: Likewise.
66482         * lib/unistdio/u16-vasprintf.c: Likewise.
66483         * lib/unistdio/u16-vsnprintf.c: Likewise.
66484         * lib/unistdio/u16-vsprintf.c: Likewise.
66485         * lib/unistdio/u32-asnprintf.c: Likewise.
66486         * lib/unistdio/u32-asprintf.c: Likewise.
66487         * lib/unistdio/u32-printf-parse.c: Likewise.
66488         * lib/unistdio/u32-snprintf.c: Likewise.
66489         * lib/unistdio/u32-sprintf.c: Likewise.
66490         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66491         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66492         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66493         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66494         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66495         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66496         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66497         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66498         * lib/unistdio/u32-vasnprintf.c: Likewise.
66499         * lib/unistdio/u32-vasprintf.c: Likewise.
66500         * lib/unistdio/u32-vsnprintf.c: Likewise.
66501         * lib/unistdio/u32-vsprintf.c: Likewise.
66502         * lib/unistdio/u8-asnprintf.c: Likewise.
66503         * lib/unistdio/u8-asprintf.c: Likewise.
66504         * lib/unistdio/u8-printf-parse.c: Likewise.
66505         * lib/unistdio/u8-snprintf.c: Likewise.
66506         * lib/unistdio/u8-sprintf.c: Likewise.
66507         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66508         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66509         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66510         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66511         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66512         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66513         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66514         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66515         * lib/unistdio/u8-vasnprintf.c: Likewise.
66516         * lib/unistdio/u8-vasprintf.c: Likewise.
66517         * lib/unistdio/u8-vsnprintf.c: Likewise.
66518         * lib/unistdio/u8-vsprintf.c: Likewise.
66519         * lib/unistdio/ulc-asnprintf.c: Likewise.
66520         * lib/unistdio/ulc-asprintf.c: Likewise.
66521         * lib/unistdio/ulc-printf-parse.c: Likewise.
66522         * lib/unistdio/ulc-snprintf.c: Likewise.
66523         * lib/unistdio/ulc-sprintf.c: Likewise.
66524         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66525         * lib/unistdio/ulc-vasprintf.c: Likewise.
66526         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66527         * lib/unistdio/ulc-vsprintf.c: Likewise.
66528         * lib/unistr.h: Likewise.
66529         * lib/unistr/u-cpy-alloc.h: Likewise.
66530         * lib/unistr/u-cpy.h: Likewise.
66531         * lib/unistr/u-endswith.h: Likewise.
66532         * lib/unistr/u-move.h: Likewise.
66533         * lib/unistr/u-set.h: Likewise.
66534         * lib/unistr/u-startswith.h: Likewise.
66535         * lib/unistr/u-stpcpy.h: Likewise.
66536         * lib/unistr/u-stpncpy.h: Likewise.
66537         * lib/unistr/u-strcat.h: Likewise.
66538         * lib/unistr/u-strcpy.h: Likewise.
66539         * lib/unistr/u-strcspn.h: Likewise.
66540         * lib/unistr/u-strdup.h: Likewise.
66541         * lib/unistr/u-strlen.h: Likewise.
66542         * lib/unistr/u-strncat.h: Likewise.
66543         * lib/unistr/u-strncpy.h: Likewise.
66544         * lib/unistr/u-strnlen.h: Likewise.
66545         * lib/unistr/u-strpbrk.h: Likewise.
66546         * lib/unistr/u-strspn.h: Likewise.
66547         * lib/unistr/u-strstr.h: Likewise.
66548         * lib/unistr/u-strtok.h: Likewise.
66549         * lib/unistr/u16-check.c: Likewise.
66550         * lib/unistr/u16-chr.c: Likewise.
66551         * lib/unistr/u16-cmp.c: Likewise.
66552         * lib/unistr/u16-cpy-alloc.c: Likewise.
66553         * lib/unistr/u16-cpy.c: Likewise.
66554         * lib/unistr/u16-endswith.c: Likewise.
66555         * lib/unistr/u16-mblen.c: Likewise.
66556         * lib/unistr/u16-mbsnlen.c: Likewise.
66557         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66558         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66559         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66560         * lib/unistr/u16-mbtouc.c: Likewise.
66561         * lib/unistr/u16-mbtoucr.c: Likewise.
66562         * lib/unistr/u16-move.c: Likewise.
66563         * lib/unistr/u16-next.c: Likewise.
66564         * lib/unistr/u16-prev.c: Likewise.
66565         * lib/unistr/u16-set.c: Likewise.
66566         * lib/unistr/u16-startswith.c: Likewise.
66567         * lib/unistr/u16-stpcpy.c: Likewise.
66568         * lib/unistr/u16-stpncpy.c: Likewise.
66569         * lib/unistr/u16-strcat.c: Likewise.
66570         * lib/unistr/u16-strchr.c: Likewise.
66571         * lib/unistr/u16-strcmp.c: Likewise.
66572         * lib/unistr/u16-strcpy.c: Likewise.
66573         * lib/unistr/u16-strcspn.c: Likewise.
66574         * lib/unistr/u16-strdup.c: Likewise.
66575         * lib/unistr/u16-strlen.c: Likewise.
66576         * lib/unistr/u16-strmblen.c: Likewise.
66577         * lib/unistr/u16-strmbtouc.c: Likewise.
66578         * lib/unistr/u16-strncat.c: Likewise.
66579         * lib/unistr/u16-strncmp.c: Likewise.
66580         * lib/unistr/u16-strncpy.c: Likewise.
66581         * lib/unistr/u16-strnlen.c: Likewise.
66582         * lib/unistr/u16-strpbrk.c: Likewise.
66583         * lib/unistr/u16-strrchr.c: Likewise.
66584         * lib/unistr/u16-strspn.c: Likewise.
66585         * lib/unistr/u16-strstr.c: Likewise.
66586         * lib/unistr/u16-strtok.c: Likewise.
66587         * lib/unistr/u16-to-u32.c: Likewise.
66588         * lib/unistr/u16-to-u8.c: Likewise.
66589         * lib/unistr/u16-uctomb-aux.c: Likewise.
66590         * lib/unistr/u16-uctomb.c: Likewise.
66591         * lib/unistr/u32-check.c: Likewise.
66592         * lib/unistr/u32-chr.c: Likewise.
66593         * lib/unistr/u32-cmp.c: Likewise.
66594         * lib/unistr/u32-cpy-alloc.c: Likewise.
66595         * lib/unistr/u32-cpy.c: Likewise.
66596         * lib/unistr/u32-endswith.c: Likewise.
66597         * lib/unistr/u32-mblen.c: Likewise.
66598         * lib/unistr/u32-mbsnlen.c: Likewise.
66599         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66600         * lib/unistr/u32-mbtouc.c: Likewise.
66601         * lib/unistr/u32-mbtoucr.c: Likewise.
66602         * lib/unistr/u32-move.c: Likewise.
66603         * lib/unistr/u32-next.c: Likewise.
66604         * lib/unistr/u32-prev.c: Likewise.
66605         * lib/unistr/u32-set.c: Likewise.
66606         * lib/unistr/u32-startswith.c: Likewise.
66607         * lib/unistr/u32-stpcpy.c: Likewise.
66608         * lib/unistr/u32-stpncpy.c: Likewise.
66609         * lib/unistr/u32-strcat.c: Likewise.
66610         * lib/unistr/u32-strchr.c: Likewise.
66611         * lib/unistr/u32-strcmp.c: Likewise.
66612         * lib/unistr/u32-strcpy.c: Likewise.
66613         * lib/unistr/u32-strcspn.c: Likewise.
66614         * lib/unistr/u32-strdup.c: Likewise.
66615         * lib/unistr/u32-strlen.c: Likewise.
66616         * lib/unistr/u32-strmblen.c: Likewise.
66617         * lib/unistr/u32-strmbtouc.c: Likewise.
66618         * lib/unistr/u32-strncat.c: Likewise.
66619         * lib/unistr/u32-strncmp.c: Likewise.
66620         * lib/unistr/u32-strncpy.c: Likewise.
66621         * lib/unistr/u32-strnlen.c: Likewise.
66622         * lib/unistr/u32-strpbrk.c: Likewise.
66623         * lib/unistr/u32-strrchr.c: Likewise.
66624         * lib/unistr/u32-strspn.c: Likewise.
66625         * lib/unistr/u32-strstr.c: Likewise.
66626         * lib/unistr/u32-strtok.c: Likewise.
66627         * lib/unistr/u32-to-u16.c: Likewise.
66628         * lib/unistr/u32-to-u8.c: Likewise.
66629         * lib/unistr/u32-uctomb.c: Likewise.
66630         * lib/unistr/u8-check.c: Likewise.
66631         * lib/unistr/u8-chr.c: Likewise.
66632         * lib/unistr/u8-cmp.c: Likewise.
66633         * lib/unistr/u8-cpy-alloc.c: Likewise.
66634         * lib/unistr/u8-cpy.c: Likewise.
66635         * lib/unistr/u8-endswith.c: Likewise.
66636         * lib/unistr/u8-mblen.c: Likewise.
66637         * lib/unistr/u8-mbsnlen.c: Likewise.
66638         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66639         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66640         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66641         * lib/unistr/u8-mbtouc.c: Likewise.
66642         * lib/unistr/u8-mbtoucr.c: Likewise.
66643         * lib/unistr/u8-move.c: Likewise.
66644         * lib/unistr/u8-next.c: Likewise.
66645         * lib/unistr/u8-prev.c: Likewise.
66646         * lib/unistr/u8-set.c: Likewise.
66647         * lib/unistr/u8-startswith.c: Likewise.
66648         * lib/unistr/u8-stpcpy.c: Likewise.
66649         * lib/unistr/u8-stpncpy.c: Likewise.
66650         * lib/unistr/u8-strcat.c: Likewise.
66651         * lib/unistr/u8-strchr.c: Likewise.
66652         * lib/unistr/u8-strcmp.c: Likewise.
66653         * lib/unistr/u8-strcpy.c: Likewise.
66654         * lib/unistr/u8-strcspn.c: Likewise.
66655         * lib/unistr/u8-strdup.c: Likewise.
66656         * lib/unistr/u8-strlen.c: Likewise.
66657         * lib/unistr/u8-strmblen.c: Likewise.
66658         * lib/unistr/u8-strmbtouc.c: Likewise.
66659         * lib/unistr/u8-strncat.c: Likewise.
66660         * lib/unistr/u8-strncmp.c: Likewise.
66661         * lib/unistr/u8-strncpy.c: Likewise.
66662         * lib/unistr/u8-strnlen.c: Likewise.
66663         * lib/unistr/u8-strpbrk.c: Likewise.
66664         * lib/unistr/u8-strrchr.c: Likewise.
66665         * lib/unistr/u8-strspn.c: Likewise.
66666         * lib/unistr/u8-strstr.c: Likewise.
66667         * lib/unistr/u8-strtok.c: Likewise.
66668         * lib/unistr/u8-to-u16.c: Likewise.
66669         * lib/unistr/u8-to-u32.c: Likewise.
66670         * lib/unistr/u8-uctomb-aux.c: Likewise.
66671         * lib/unistr/u8-uctomb.c: Likewise.
66672         * lib/unitypes.h: Likewise.
66673         * lib/uniwidth.h: Likewise.
66674         * lib/uniwidth/cjk.h: Likewise.
66675         * lib/uniwidth/u16-strwidth.c: Likewise.
66676         * lib/uniwidth/u16-width.c: Likewise.
66677         * lib/uniwidth/u32-strwidth.c: Likewise.
66678         * lib/uniwidth/u32-width.c: Likewise.
66679         * lib/uniwidth/u8-strwidth.c: Likewise.
66680         * lib/uniwidth/u8-width.c: Likewise.
66681         * lib/uniwidth/width.c: Likewise.
66682
66683 2007-10-07  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66686         The file is still under LGPL (see modules/inttypes).
66687
66688 2007-10-06  Bruno Haible  <bruno@clisp.org>
66689
66690         * modules/trunc (Dependencies): Add 'extensions'.
66691         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66692         Reported by Ben Pfaff <blp@gnu.org>.
66693
66694 2007-10-06  Bruno Haible  <bruno@clisp.org>
66695
66696         * modules/freopen-tests: New file.
66697         * tests/test-freopen.c: New file.
66698
66699         * modules/fopen-tests: New file.
66700         * tests/test-fopen.c: New file.
66701
66702         * modules/fopen: New file.
66703         * lib/fopen.c: New file.
66704         * m4/fopen.m4: New file.
66705         * modules/freopen: New file.
66706         * lib/freopen.c: New file.
66707         * m4/freopen.m4: New file.
66708         * lib/stdio.in.h (fopen, freopen): New declarations.
66709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66710         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66711         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66712         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66713         * doc/functions/fopen.texi: Mention the 'fopen' module.
66714         * doc/functions/freopen.texi: Mention the 'freopen' module.
66715
66716 2007-10-06  Bruno Haible  <bruno@clisp.org>
66717
66718         * modules/open-tests: New file.
66719         * tests/test-open.c: New file.
66720
66721         * modules/open: New file.
66722         * lib/open.c: New file.
66723         * m4/open.m4: New file.
66724         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66725         lib/open.c does.
66726         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66727         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66728         macros.
66729         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66730         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66731         REPLACE_OPEN.
66732         * doc/functions/open.texi: Mention the 'open' module.
66733
66734 2007-10-04  Bruno Haible  <bruno@clisp.org>
66735
66736         * modules/ceill-tests: New file.
66737         * tests/test-ceill.c: New file.
66738
66739         * modules/ceill: New file.
66740         * lib/ceill.c: Replace entire file.
66741         * m4/ceill.m4: New file.
66742         * lib/math.in.h (ceill): Replace declaration.
66743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66744         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66745         * doc/functions/ceill.texi: Mention the 'ceill' module.
66746         * modules/mathl (Files): Remove lib/ceill.c.
66747         (Depends-on): Add ceill.
66748
66749 2007-10-04  Bruno Haible  <bruno@clisp.org>
66750
66751         * modules/ceilf-tests: New file.
66752         * tests/test-ceilf.c: New file.
66753
66754         * modules/ceilf: New file.
66755         * lib/ceil.c: New file.
66756         * lib/ceilf.c: New file.
66757         * m4/ceilf.m4: New file.
66758         * lib/math.in.h (ceilf): New declaration.
66759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66760         HAVE_DECL_CEILF.
66761         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66762         HAVE_DECL_CEILF.
66763         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66764
66765 2007-10-04  Bruno Haible  <bruno@clisp.org>
66766
66767         * modules/floorl-tests: New file.
66768         * tests/test-floorl.c: New file.
66769
66770         * modules/floorl: New file.
66771         * lib/floorl.c: Replace entire file.
66772         * m4/floorl.m4: New file.
66773         * lib/math.in.h (floorl): Replace declaration.
66774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66775         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66776         * doc/functions/floorl.texi: Mention the 'floorl' module.
66777         * modules/mathl (Files): Remove lib/floorl.c.
66778         (Depends-on): Add floorl.
66779
66780 2007-10-04  Bruno Haible  <bruno@clisp.org>
66781
66782         * modules/floorf-tests: New file.
66783         * tests/test-floorf.c: New file.
66784
66785         * modules/floorf: New file.
66786         * lib/floor.c: New file.
66787         * lib/floorf.c: New file.
66788         * m4/floorf.m4: New file.
66789         * lib/math.in.h (floorf): New declaration.
66790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66791         HAVE_DECL_FLOORF.
66792         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66793         HAVE_DECL_FLOORF.
66794         * doc/functions/floorf.texi: Mention the 'floorf' module.
66795
66796 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66797             Bruno Haible  <bruno@clisp.org>
66798
66799         Advertise for the Git server instead of the CVS server.
66800         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66801         repository instead of the CVS one.
66802         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66803         about all VCS systems generically.
66804         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66805
66806 2007-10-04  Bruno Haible  <bruno@clisp.org>
66807
66808         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66809         means.
66810         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66811
66812 2007-10-04  Bruno Haible  <bruno@clisp.org>
66813
66814         * modules/truncl-tests: New file.
66815         * tests/test-truncl.c: New file.
66816
66817         * modules/truncl: New file.
66818         * lib/truncl.c: New file.
66819         * m4/truncl.m4: New file.
66820         * lib/math.in.h (truncl): New declaration.
66821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66822         HAVE_DECL_TRUNCL.
66823         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66824         HAVE_DECL_TRUNCL.
66825         * doc/functions/truncl.texi: Mention the 'truncl' module.
66826
66827 2007-10-04  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/truncf-tests: New file.
66830         * tests/test-truncf.c: New file.
66831
66832         * modules/truncf: New file.
66833         * lib/trunc.c: Make paramerizable through USE_* macros.
66834         * lib/truncf.c: New file.
66835         * m4/truncf.m4: New file.
66836         * lib/math.in.h (truncf): New declaration.
66837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66838         HAVE_DECL_TRUNCF.
66839         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66840         HAVE_DECL_TRUNCF.
66841         * doc/functions/truncf.texi: Mention the 'truncf' module.
66842
66843 2007-10-03  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66846         augmentation also for tests modules.
66847         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66848         * modules/atexit-tests (Makefile.am): Likewise.
66849         * modules/binary-io-tests (Makefile.am): Likewise.
66850         * modules/c-strcase-tests (Makefile.am): Likewise.
66851         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66852         * modules/canonicalize-tests (Makefile.am): Likewise.
66853         * modules/closein-tests (Makefile.am): Likewise.
66854         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66855         * modules/freadahead-tests (Makefile.am): Likewise.
66856         * modules/fseek-tests (Makefile.am): Likewise.
66857         * modules/fseeko-tests (Makefile.am): Likewise.
66858         * modules/ftell-tests (Makefile.am): Likewise.
66859         * modules/ftello-tests (Makefile.am): Likewise.
66860         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66861         * modules/isnanl-tests (Makefile.am): Likewise.
66862         * modules/lseek-tests (Makefile.am): Likewise.
66863         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66864         * modules/mbscasestr-tests (Makefile.am): Likewise.
66865         * modules/mbschr-tests (Makefile.am): Likewise.
66866         * modules/mbscspn-tests (Makefile.am): Likewise.
66867         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66868         * modules/mbspbrk-tests (Makefile.am): Likewise.
66869         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66870         * modules/mbsrchr-tests (Makefile.am): Likewise.
66871         * modules/mbsspn-tests (Makefile.am): Likewise.
66872         * modules/mbsstr-tests (Makefile.am): Likewise.
66873         * modules/printf-posix-tests (Makefile.am): Likewise.
66874         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66875         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66876         * modules/tsearch-tests (Makefile.am): Likewise.
66877         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66878         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66879         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66880         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66881         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66882         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66883         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66884         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66885         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66886         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66887         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66888         * modules/xstrtol-tests (Makefile.am): Likewise.
66889         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66890         * modules/yesno-tests (Makefile.am): Likewise.
66891
66892 2007-10-03  Bruno Haible  <bruno@clisp.org>
66893
66894         * modules/trunc-tests: New file.
66895         * tests/test-trunc.c: New file.
66896
66897         * modules/trunc: New file.
66898         * lib/trunc.c: New file.
66899         * m4/trunc.m4: New file.
66900         * lib/math.in.h (trunc): New declaration.
66901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66902         HAVE_DECL_TRUNC.
66903         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66904         HAVE_DECL_TRUNC.
66905         * doc/functions/trunc.texi: Mention the 'trunc' module.
66906
66907 2007-10-03  Bruno Haible  <bruno@clisp.org>
66908
66909         * tests/test-fpending.c: New file, mostly copied
66910         from coreutils/lib/t-fpending.c.
66911         * modules/fpending-tests: New file.
66912
66913 2007-10-03  Bruno Haible  <bruno@clisp.org>
66914
66915         Port the stdio extensions to QNX (untested).
66916         * lib/fseterr.c (fseterr): Add support for QNX.
66917         * lib/fbufmode.c (fbufmode): Likewise.
66918         * lib/freadable.c (freadable): Likewise.
66919         * lib/fwritable.c (fwritable): Likewise.
66920         * lib/freading.c (freading): Likewise.
66921         * lib/fwriting.c (fwriting): Likewise.
66922         * lib/freadahead.c (freadahed): Likewise.
66923         * lib/fpurge.c (fpurge): Likewise.
66924         * lib/fseeko.c (rpl_fseeko): Likewise.
66925
66926 2007-10-03  Bruno Haible  <bruno@clisp.org>
66927             Jim Meyering  <jim@meyering.net>
66928             Eric Blake  <ebb9@byu.net>
66929
66930         * doc/relocatable.texi: Use @command instead of @program.
66931
66932 2007-10-02  Jim Meyering  <jim@meyering.net>
66933
66934         Perform one more "_.h" -> ".in.h" substitution.
66935         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66936         instead of unistd_.h here, too.
66937
66938 2007-10-01  Bruno Haible  <bruno@clisp.org>
66939
66940         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66941         Needed for the alloca-opt module.
66942
66943 2007-09-30  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66946         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66947         alloca_.h.
66948         * lib/argz.in.h: Renamed from lib/argz_.h.
66949         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66950         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66951         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66952         byteswap_.h.
66953         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66954         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66955         dirent_.h.
66956         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66957         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66958         fcntl_.h.
66959         * lib/float.in.h: Renamed from lib/float_.h.
66960         * modules/float (Files, Makefile.am): Use float.in.h instead of
66961         float_.h.
66962         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66963         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66964         fnmatch_.h.
66965         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66966         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66967         getopt_.h.
66968         * lib/glob.in.h: Renamed from lib/glob_.h.
66969         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66970         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66971         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66972         iconv_.h.
66973         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66974         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66975         inttypes_.h.
66976         * lib/locale.in.h: Renamed from lib/locale_.h.
66977         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66978         locale_.h.
66979         * lib/math.in.h: Renamed from lib/math_.h.
66980         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66981         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66982         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66983         of netinet_in_.h. Add dependency.
66984         * lib/poll.in.h: Renamed from lib/poll_.h.
66985         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66986         * lib/search.in.h: Renamed from lib/search_.h.
66987         * modules/search (Files, Makefile.am): Use search.in.h instead of
66988         search_.h.
66989         * lib/signal.in.h: Renamed from lib/signal_.h.
66990         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66991         _signal.h.
66992         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66993         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66994         stdbool_.h.
66995         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66996         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66997         stdint_.h.
66998         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66999         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67000         stdio_.h.
67001         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67002         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67003         stdlib_.h.
67004         * lib/string.in.h: Renamed from lib/string_.h.
67005         * modules/string (Files, Makefile.am): Use string.in.h instead of
67006         string_.h.
67007         * doc/gnulib-tool.texi (Initial import): Update.
67008         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67009         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67010         of sys_select_.h. Add dependency.
67011         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67012         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67013         of sys_socket_.h.
67014         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67015         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67016         sys_stat_.h.
67017         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67018         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67019         sys_time_.h.
67020         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67021         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67022         sysexits_.h.
67023         * lib/time.in.h: Renamed from lib/time_.h.
67024         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67025         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67026         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67027         unistd_.h.
67028         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67029         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67030         wchar_.h.
67031         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67032         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67033         wctype_.h.
67034         * build-aux/bootstrap (slurp): Update.
67035         * lib/.cppi-disable: Update.
67036
67037 2007-09-30  Bruno Haible  <bruno@clisp.org>
67038
67039         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67040         Needed on BeOS.
67041
67042 2007-09-30  Bruno Haible  <bruno@clisp.org>
67043
67044         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67045
67046 2007-09-29  Bruno Haible  <bruno@clisp.org>
67047
67048         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67049
67050 2007-09-29  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67053         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67054         * build-aux/install-reloc: Compile also areadlink.c.
67055         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67056
67057 2007-09-29  Bruno Haible  <bruno@clisp.org>
67058
67059         * gnulib-tool (func_emit_initmacro_done): Indentation.
67060
67061 2007-09-29  Bruno Haible  <bruno@clisp.org>
67062
67063         * README: Add CVS checkout update instructions.
67064         Info from Bob Proulx <bob@proulx.com>.
67065
67066 2007-09-28  Eric Blake  <ebb9@byu.net>
67067
67068         Provide move-if-change.
67069         * build-aux/move-if-change: New file, based on best practice
67070         rather than any canonical upstream location.
67071
67072 2007-09-28  Jim Meyering  <jim@meyering.net>
67073
67074         Fix canonicalize loop-detection corner case.
67075         Do not attempt to stat the symlink values stored via seen_triple.
67076         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67077         on linux-2.6.18, (but not 2.6.22).
67078         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67079         triple_compare.  The former compares dev,ino,filename, while the latter
67080         would actually stat dirname(filename) when dev and ino were equal.
67081         * lib/hash-triple.c: Install <string.h>.
67082         (STREQ): Define.
67083         (triple_compare_ino_str): New function.
67084         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67085
67086 2007-09-28  Eric Blake  <ebb9@byu.net>
67087
67088         Enforce that AC_REPLACE_FUNCS files exist.
67089         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67090         override check for typos.
67091
67092         Fix test-closein on Solaris 10.
67093         * tests/test-closein.c (main): Don't assume stdin can be inherited
67094         closed on all systems.
67095         * tests/test-closein.sh: Likewise.
67096         Reported by Piotr Tarnowski.
67097
67098 2007-09-28  Jim Meyering  <jim@meyering.net>
67099
67100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67101
67102 2007-09-27  Jim Meyering  <jim@meyering.net>
67103
67104         canonicalize: Avoid a false-positive cycle failure.
67105         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67106         Sort.  Remove cycle-check.
67107         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67108         not cycle-check.h.
67109         (seen_triple): New function.
67110         (canonicalize_filename_mode): Use it instead of cycle-check.
67111         * tests/test-canonicalize.c: Add a test for this bug.
67112         * tests/test-canonicalize.sh: Set up and run the test.
67113
67114         New module, file-set, from coreutils.
67115         * modules/file-set: Define it.
67116         * lib/file-set.c, lib/file-set.h: Implement.
67117
67118         New module, hash-triple, from coreutils.
67119         * modules/hash-triple: Define it.
67120         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67121
67122 2007-09-25  Eric Blake  <ebb9@byu.net>
67123
67124         Fix strerror on Interix.
67125         * lib/string_.h (strerror): Declare replacement.
67126         * doc/functions/strerror.texi (strerror): Document the Interix
67127         shortcoming.
67128         * modules/string (Makefile.am): Support new hooks.
67129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67130         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67131         gl_FUNC_STRERROR_SEPARATE.
67132         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67133         * lib/strerror.c (rpl_strerror): Provide replacement.
67134         * modules/strerror (Depends-on): Add string.
67135         (configure.ac): Detect use of module.
67136         * tests/test-strerror.c: New file.
67137         * modules/strerror-tests: New test module.
67138         * modules/argp (Depends-on): Add strerror.
67139         * modules/error (Depends-on): Likewise.
67140         Reported by Martin Koeppe.
67141
67142 2007-09-24  Bruno Haible  <bruno@clisp.org>
67143
67144         * README: Update git instructions.
67145
67146 2007-09-24  Eric Blake  <ebb9@byu.net>
67147
67148         Revert fpending breakage from 2007-09-08.
67149         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67150         __fpending.c.
67151
67152 2007-09-24  Jim Meyering  <jim@meyering.net>
67153
67154         filenamecat.c: Add a test.
67155         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67156         showing how the function works when DIR is the empty string.
67157
67158 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67159
67160         * tests/test-canonicalize.sh: Turn on executable bit.
67161
67162 2007-09-19  Eric Blake  <ebb9@byu.net>
67163
67164         * README: Update CVS instructions.
67165
67166 2007-09-18  Bruno Haible  <bruno@clisp.org>
67167
67168         * modules/areadlink: New file.
67169         * lib/areadlink.h (areadlink): New declaration.
67170         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67171
67172 2007-09-17  Jim Meyering  <jim@meyering.net>
67173
67174         * lib/savewd.c (ESTALE) [!defined]: Define.
67175         Reported to be required on Interix by Martin Koeppe.
67176
67177 2007-09-17  Bruno Haible  <bruno@clisp.org>
67178
67179         * gnulib-tool (func_version): Use $version.
67180
67181 2007-09-16  Bruno Haible  <bruno@clisp.org>
67182
67183         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67184         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67185         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67186         Reported by Greg Schafer <gschafer@zip.com.au>.
67187
67188 2007-09-15  Bruno Haible  <bruno@clisp.org>
67189
67190         * gnulib-tool (sed): Try a little harder to make bash understand the
67191         alias.
67192         Reported by Bruce Korb <bruce.korb@gmail.com>.
67193
67194 2007-09-13  Eric Blake  <ebb9@byu.net>
67195
67196         * ChangeLog: Remove conflict markers.
67197
67198 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67199
67200         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67201         Reported by Bruno Haible <bruno@clisp.org>.
67202
67203 2007-09-12  Bruno Haible  <bruno@clisp.org>
67204
67205         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67206         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67207         is not defined.
67208
67209 2007-09-12  Eric Blake  <ebb9@byu.net>
67210
67211         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67213         Autoconf definition.
67214         * modules/euidaccess (Depends-on): Add extensions, for
67215         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67216         * modules/fnmatch (Depends-on): Likewise.
67217         * modules/getaddrinfo (Depends-on): Likewise.
67218         * modules/getdelim (Depends-on): Likewise.
67219         * modules/getline (Depends-on): Likewise.
67220         * modules/getsubopt (Depends-on): Likewise.
67221         * modules/gettext (Depends-on): Likewise.
67222         * modules/group-member (Depends-on): Likewise.
67223         * modules/mbchar (Depends-on): Likewise.
67224         * modules/memmem (Depends-on): Likewise.
67225         * modules/mempcpy (Depends-on): Likewise.
67226         * modules/memrchr (Depends-on): Likewise.
67227         * modules/pagealign_alloc (Depends-on): Likewise.
67228         * modules/readutmp (Depends-on): Likewise.
67229         * modules/stpcpy (Depends-on): Likewise.
67230         * modules/stpncpy (Depends-on): Likewise.
67231         * modules/strchrnul (Depends-on): Likewise.
67232         * modules/strndup (Depends-on): Likewise.
67233         * modules/strsep (Depends-on): Likewise.
67234         * modules/strverscmp (Depends-on): Likewise.
67235         * modules/vasprintf (Depends-on): Likewise.
67236         * modules/wcwidth (Depends-on): Likewise.
67237         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67238         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67239         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67240         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67241         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67243         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67244         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67245         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67246         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67247         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67248         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67249         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67250         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67251         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67252         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67253         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67254         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67256         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67257         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67258         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67259         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67260         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67261         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67263         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67264         so that lock.m4 can be used in gettext without extensions module.
67265
67266 2007-09-11  Bruno Haible  <bruno@clisp.org>
67267
67268         * m4/isc-posix.m4: Remove file.
67269         Suggested by Eric Blake.
67270
67271 2007-09-11  Eric Blake  <ebb9@byu.net>
67272
67273         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67274
67275 2007-09-10  Bruno Haible  <bruno@clisp.org>
67276
67277         * posix-modules: Fix typo in error message.
67278         Reported by Matt <mkraai@beckman.com>.
67279
67280 2007-09-09  Bruno Haible  <bruno@clisp.org>
67281
67282         * doc/functions/getdelim.texi: Update list of platforms lacking the
67283         function.
67284         * doc/functions/getline.texi: Likewise.
67285
67286 2007-09-09  Jim Meyering  <jim@meyering.net>
67287
67288         * lib/hash.c (hash_initialize): Detect calloc failure.
67289         Reported by Bruno Haible.
67290
67291 2007-09-09  Bruno Haible  <bruno@clisp.org>
67292
67293         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67294         malloc or realloc fails.
67295
67296 2007-09-09  Bruno Haible  <bruno@clisp.org>
67297
67298         * modules/getcwd (Depends-on): Add malloc-posix.
67299         * modules/glob (Depends-on): Likewise.
67300         * modules/putenv (Depends-on): Likewise.
67301         * modules/strdup (Depends-on): Likewise.
67302         * modules/getdelim (Depends-on): Add realloc-posix.
67303         * modules/read-file (Depends-on): Likewise.
67304
67305 2007-09-09  Bruno Haible  <bruno@clisp.org>
67306
67307         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67308         (gl_FUNC_MALLOC_POSIX): Require it.
67309         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67310         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67311         * modules/realloc (Files): Add m4/malloc.m4.
67312         * modules/calloc (Files): Likewise.
67313
67314 2007-09-09  Bruno Haible  <bruno@clisp.org>
67315
67316         * modules/malloc-posix: New file.
67317         * modules/malloc (Depends-on): Add malloc-posix.
67318         * lib/malloc.c: Include errno.h.
67319         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67320         and a POSIX-compatible malloc into a single function. Set ENOMEM
67321         when returning NULL.
67322         * m4/malloc.m4: New file.
67323         * doc/functions/malloc.texi: Mention the malloc-posix module.
67324         * lib/stdlib_.h (malloc): New declaration.
67325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67326         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67327         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67328         and HAVE_MALLOC_POSIX.
67329
67330 2007-09-09  Bruno Haible  <bruno@clisp.org>
67331
67332         * modules/realloc-posix: New file.
67333         * modules/realloc (Depends-on): Add realloc-posix.
67334         * lib/realloc.c: Include errno.h.
67335         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67336         and a POSIX-compatible realloc into a single function. Set ENOMEM
67337         when returning NULL.
67338         * m4/realloc.m4: New file.
67339         * doc/functions/realloc.texi: Mention the realloc-posix module.
67340         * lib/stdlib_.h (realloc): New declaration.
67341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67342         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67343         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67344         and HAVE_REALLOC_POSIX.
67345
67346 2007-09-09  Bruno Haible  <bruno@clisp.org>
67347
67348         * modules/calloc-posix: New file.
67349         * modules/calloc (Depends-on): Add calloc-posix.
67350         * lib/calloc.c: Include errno.h.
67351         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67352         and a POSIX-compatible calloc into a single function. Set ENOMEM
67353         when returning NULL.
67354         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67355         * doc/functions/calloc.texi: Mention the calloc-posix module.
67356         * lib/stdlib_.h (calloc): New declaration.
67357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67358         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67359         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67360         and HAVE_CALLOC_POSIX.
67361
67362 2007-09-09  Bruno Haible  <bruno@clisp.org>
67363
67364         Allow for modules to show an arbitrary notice.
67365         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67366         * gnulib-tool: New option --extract-notice.
67367         (func_usage): Document it.
67368         (sed_extract_prog): Update.
67369         (func_get_notice): New function.
67370         (func_modules_notice): New function.
67371         (func_import, func_create_testdir): Invoke it.
67372         Suggested by Jim Meyering.
67373
67374 2007-09-09  Bruno Haible  <bruno@clisp.org>
67375
67376         * gnulib-tool: New options --verbose, --quiet.
67377         (func_usage): Document them.
67378         (verbose): New variable.
67379         (func_execute_command): New function.
67380         (func_import): Don't show the module list and the file list if
67381         $verbose < 0.
67382         (func_create_testdir): Likewise. Use func_execute_command.
67383         (func_create_megatestdir): Use func_execute_command.
67384
67385 2007-09-08  Bruno Haible  <bruno@clisp.org>
67386
67387         * gnulib-tool (func_import): Prefer rsync over wget when available,
67388         for fetching the PO files.
67389
67390 2007-09-08  Bruno Haible  <bruno@clisp.org>
67391
67392         * posix-modules: New file. Portions copied from gnulib-tool.
67393         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67394
67395 2007-09-08  Jim Meyering  <jim@meyering.net>
67396
67397         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67398         * lib/fpending.h: Rename from __fpending.h.
67399         * lib/fpending.c: Rename from __fpending.c.
67400         Include "fpending.h", not "__fpending.h".
67401         * lib/__fpending.h, lib/__fpending.c: Remove files.
67402         * modules/fpending (Files): Reflect new file names.
67403         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67404
67405 2007-09-08  Bruno Haible  <bruno@clisp.org>
67406
67407         * m4/inttypes-h.m4: Remove stub file.
67408
67409 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67410
67411         * doc/headers/stdint.texi: Discuss #include_next issue.
67412
67413 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67416
67417 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67418
67419         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67420         in variable name.
67421
67422 2007-09-03  Jim Meyering  <jim@meyering.net>
67423
67424         New module: git-version-gen.
67425         * modules/git-version-gen: New file.
67426
67427         Import changes from coreutils for bootstrap script.
67428
67429         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67430
67431         bootstrap: uses rsync to download the .po files
67432         * build-aux/bootstrap (po_download_command_format): New global.
67433         (download_po_files): Use rsync.
67434         (update_po_files): Don't remove .po files after download,
67435         so future rsync runs can take advantage of the copies.
67436
67437         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67438
67439         Solve the unnecessary-.po-file-regeneration problem once and for all.
67440         * build-aux/bootstrap (download_po_files): New function, renamed from
67441         get_translations.  Now, downloads, but doesn't update LINGUAS.
67442         (update_po_files): New function.
67443
67444         bootstrap: Ignore more.
67445         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67446         uniwidth to e.g., lib/.gitignore.
67447         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67448
67449         * build-aux/bootstrap: New setting: vc_ignore.
67450         (insert_sorted_if_absent): Create $file if absent.
67451         Adapt to new, possibly empty, list: $vc_ignore.
67452
67453         bootstrap: generate more ignorable names
67454         * build-aux/bootstrap (slurp): When generating ignorable names,
67455         also map .sin to .sed, .gperf to .c, and .y to .c.
67456
67457 2007-09-03  Jim Meyering  <jim@meyering.net>
67458
67459         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67460         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67461
67462 2007-09-02  Bruno Haible  <bruno@clisp.org>
67463
67464         Fix mis-recognition of 'mcs' on QNX 6.
67465         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67466         output contains the string "Mono".
67467         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67468         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67469
67470 2007-09-01  Bruno Haible  <bruno@clisp.org>
67471
67472         Fix collision between uniwidth/* and linebreak modules.
67473         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67474         u32_width): Remove declarations.
67475         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67476         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67477         streq3, streq2, streq1, streq0): Remove functions.
67478         (STREQ): Remove macro.
67479         (is_cjk_encoding): Remove function.
67480         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67481         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67482         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67483         * NEWS: Document the change.
67484
67485 2007-09-01  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/streq.h: Add double-inclusion guard.
67488
67489 2007-09-01  Karl Berry  <karl@gnu.org>
67490
67491         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67492
67493 2007-08-28  Jim Meyering  <jim@meyering.net>
67494
67495         Rename mreadlink_with_size to areadlink_with_size.
67496         * NEWS: Document the change.
67497         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67498         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67499         * lib/mreadlink.h: Rename this to...
67500         * lib/areadlink.h: ...this.
67501         * modules/mreadlink-with-size: Rename this to...
67502         * modules/areadlink-with-size: ...this.
67503         * lib/canonicalize.c: Reflect the renaming.
67504         * modules/canonicalize: Likewise.
67505
67506 2007-08-26  Bruno Haible  <bruno@clisp.org>
67507
67508         * gnulib-tool (func_import): When deciding which files to remove,
67509         consider also dangling symbolic links.
67510         Reported by Eric Blake.
67511
67512 2007-08-26  Bruno Haible  <bruno@clisp.org>
67513
67514         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67515
67516 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67517
67518         * lib/readline.c: Don't include getline.h, the prototype is now
67519         found in stdio.h.
67520
67521 2007-08-23  Jim Meyering  <jim@meyering.net>
67522
67523         Getdelim touchup.
67524         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67525         around the funlockfile call, since funlockfile never sets errno.
67526         Don't set errno upon failed realloc.
67527
67528 2007-08-22  Eric Blake  <ebb9@byu.net>
67529
67530         Getline touchups.
67531         * lib/getdelim.c (getdelim): Revert regression that required *n to
67532         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67533         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67534         getdelim, rather than whether implementation is missing.
67535         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67536         * lib/stdio_.h (getline): Also declare if replacement is
67537         required.
67538         * doc/functions/getdelim.texi: New file.
67539         * doc/functions/getline.texi: Likewise.
67540         * doc/gnulib.texi (Function Substitutes): Add new files.
67541         Reported by Bruno Haible.
67542
67543 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67544
67545         * users.txt: Add Guile.
67546
67547 2007-08-22  Eric Blake  <ebb9@byu.net>
67548
67549         * tests/test-getdelim.c (main): Use remove, not unlink.
67550         * tests/test-getline.c (main): Likewise.
67551
67552         Move getline and getdelim into stdio.h, per POSIX 200x.
67553         * modules/getline (Files): Remove getline.h.
67554         (Depends-on): Add stdio.
67555         (configure.ac): Add module indicator.
67556         * modules/getdelim (Files): Remove getdelim.h.
67557         (Depends-on): Add stdio.
67558         (configure.ac): Add module indicator.
67559         * modules/stdio (Makefile.am): Work with new indicators.
67560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67561         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67562         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67563         * lib/getdelim.h: Delete.
67564         * lib/getline.h: Delete.
67565         * lib/stdio_.h (getdelim, getline): Declare.
67566         * modules/getdelim-tests: New module.
67567         * modules/getline-tests: Likewise.
67568         * tests/test-getdelim.c: New file.
67569         * tests/test-getline.c: Likewise.
67570         * NEWS: Document the change.
67571         * lib/getline.c: Update choice of header.
67572         * lib/csharpcomp.c: Likewise.
67573         * lib/getpass.c: Likewise.
67574         * lib/javacomp.c: Likewise.
67575         * lib/javaversion.c: Likewise.
67576         * lib/yesno.c: Likewise.
67577         * lib/getdelim.c: Likewise.
67578         (getdelim): Set errno on failure, and avoid memory leak.
67579
67580 2007-08-19  Bruno Haible  <bruno@clisp.org>
67581
67582         * modules/closein (Depends-on): Add freadahead.
67583         * lib/closein.c: Include freadahead.h.
67584         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67585         is zero.
67586
67587 2007-08-19  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/freadahead-tests: New file.
67590         * tests/test-freadahead.sh: New file.
67591         * tests/test-freadahead.c: New file.
67592
67593         * modules/freadahead: New file.
67594         * lib/freadahead.h: New file.
67595         * lib/freadahead.c: New file.
67596         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67597         fbufmode, fpurge, freadable, fwritable.
67598
67599 2007-08-19  Eric Blake  <ebb9@byu.net>
67600
67601         Test yesno in combination with closein.
67602         * lib/yesno.c (yesno): Document use of stdin.
67603         * modules/yesno-tests (Files): New module.
67604         * tests/test-yesno.c (main): New file.
67605         * tests/test-yesno.sh: Likewise.
67606
67607 2007-08-19  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67610         * lib/fseeko.c (rpl_fseeko): Likewise.
67611         * lib/fseterr.c (fseterr): Likewise.
67612
67613 2007-08-19  Bruno Haible  <bruno@clisp.org>
67614
67615         * tests/test-lseek.c (main): Disable a test for BeOS.
67616         * doc/functions/lseek.texi: Document the BeOS bug.
67617
67618 2007-08-19  Bruno Haible  <bruno@clisp.org>
67619             Eric Blake  <ebb9@byu.net>
67620
67621         * lib/lseek.c: Include <sys/stat.h>.
67622         (rpl_lseek): Add workaround code also for Unix platforms.
67623         Needed for BeOS.
67624         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67625         * doc/functions/lseek.texi: Document BeOS definiency.
67626
67627 2007-08-18  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/fstrcmp-tests: New file.
67630         * tests/test-fstrcmp.c: New file.
67631
67632 2007-08-18  Bruno Haible  <bruno@clisp.org>
67633
67634         * modules/fstrcmp: New file, from GNU gettext with modifications.
67635         * lib/fstrcmp.h: New file, from GNU gettext.
67636         * lib/fstrcmp.c: New file, from GNU gettext.
67637         * MODULES.html.sh (String handling): Add fstrcmp.
67638
67639 2007-08-18  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67642         'bool'.
67643         (diag, compareseq): Remove const from the ctxt argument.
67644         (USE_HEURISTIC): Undefine at the end.
67645
67646 2007-08-18  Jim Meyering  <jim@meyering.net>
67647
67648         New file: lib/idcache.h
67649         * NEWS: Mention the addition.
67650         * modules/idcache (Files): Add lib/idcache.h
67651         * lib/idcache.c: Include "idcache.h".
67652         Don't include <sys/types.h>.
67653         Add a FIXME comment.
67654         Move file-scoped "static" declarations to the top.
67655         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67656
67657 2007-08-17  Bruno Haible  <bruno@clisp.org>
67658         and Paul Eggert  <eggert@cs.ucla.edu>
67659
67660         * MODULES.html.sh: Add diffseq.
67661         * modules/diffseq: New file.
67662         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67663         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67664
67665 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         Import changes from coreutils for bootstrap script.
67668
67669         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * build-aux/bootstrap (slurp): Work even in environments where
67672         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67673         current code does not slurp files whose names start with ".", and
67674         this looks like it might be a troublesome area.
67675
67676         2007-07-11  Jim Meyering  <jim@meyering.net>
67677
67678         If there's a GPL vN copyright comment, require that N == 3.
67679
67680         2007-07-08  Jim Meyering  <jim@meyering.net>
67681
67682         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67683         * build-aux/bootstrap (mam_template): Move definition out of loop.
67684
67685         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67686
67687         * build-aux/bootstrap (symlink_to_dir): Rename function from
67688         symlink_to_gnulib.  Add a directory parameter.  Update all
67689         callers.
67690         (cp_mark_as_generated): Also check for -- and link to -- files in
67691         gl/.
67692
67693         2007-07-08  Jim Meyering  <jim@meyering.net>
67694
67695         Adapt to deeper hierarchy in gnulib.
67696         * build-aux/bootstrap (symlink_to_dir): If the destination
67697         directory doesn't exist, create it. This is required at least for
67698         "lib/uniwidth/cjk.h".
67699
67700         2007-05-15  Jim Meyering  <jim@meyering.net>
67701
67702         * build-aux/bootstrap: Now that generated Makefile.am files
67703         are no longer under version control, they must be created at
67704         bootstrap time.
67705
67706 2007-08-14  Ben Pfaff  <blp@gnu.org>
67707
67708         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67709
67710 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67713         given the changes below.
67714         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67715         even on hosts that have padding bits beyond the supported 64.
67716
67717 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67720         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67721         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67722         depends on it.
67723         (xstrtol_error): Remove.
67724         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67725         but with a different signature.
67726         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67727         * lib/xstrtol-error.c: Include exitfail.h.
67728         (xstrtol_fatal): New function, with a different signature from the
67729         old xstrtol_error, so that the caller need not worry about passing
67730         in an exit status, or about storage management of the option argument.
67731         (xstrtol_error): Now a static function.  Redo signature to
67732         implement xstrtol_fatal.  Output the correct number of hyphens in
67733         front of the option so that the caller need not worry about
67734         storage management.
67735         (N_): New macro.
67736         (_): Remove; not used now.
67737         * modules/xstrtol: Depend on getopt.
67738         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67739         of old STRTOL_FATAL_ERROR macro.
67740         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67741         of test program.
67742         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67743         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67744
67745 2007-08-08  Eric Blake  <ebb9@byu.net>
67746
67747         * lib/xstrtol-error.c: Add missing include.
67748
67749         Move xstrtol messages into gnulib domain, when --pobase is used.
67750         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67751         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67752         * modules/xstrtol (Files): Distribute new file.
67753         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67754         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67755         * tests/test-xstrtol.c: ...into new file.
67756         * tests/test-xstrtoul.c: Also test xstrtoul.
67757         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67758         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67759         * tests/test-xstrtol.sh: Drive the tests.
67760         * tests/test-xstrtoimax.sh: Likewise.
67761         * tests/test-xstrtoumax.sh: Likewise.
67762         * modules/xstrtol-tests: New module.
67763         * modules/xstrtoimax-tests: Likewise.
67764         * modules/xstrtoumax-tests: Likewise.
67765
67766 2007-08-08  Jim Meyering  <jim@meyering.net>
67767
67768         New function: mfile_name_concat.
67769         * lib/filenamecat.c (mfile_name_concat): New function, just like
67770         file_name_concat, but return NULL upon failure rather than exiting
67771         with a diagnostic.
67772         * lib/filenamecat.h: Declare it.
67773
67774 2007-08-07  Bruno Haible  <bruno@clisp.org>
67775
67776         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67777         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67778         warning from gcc.
67779         Reported by Eric Blake.
67780
67781 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67782
67783         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67784         * modules/crypto/arcfour (License): Likewise.
67785         * modules/crypto/des-tests (License): Likewise.
67786         * modules/crypto/gc-arctwo-tests (License): Likewise.
67787         * modules/crypto/gc-des-tests (License): Likewise.
67788         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67789         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67790         * modules/crypto/gc-md2-tests (License): Likewise.
67791         * modules/crypto/gc-md4-tests (License): Likewise.
67792         * modules/crypto/gc-md5-tests (License): Likewise.
67793         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67794         * modules/crypto/gc-rijndael-tests (License): Likewise.
67795         * modules/crypto/gc-sha1-tests (License): Likewise.
67796         * modules/crypto/gc-tests (License): Likewise.
67797         * modules/crypto/hmac-md5 (License): Likewise.
67798         * modules/crypto/hmac-sha1 (License): Likewise.
67799         * modules/crypto/md2-tests (License): Likewise.
67800         * modules/crypto/md4-tests (License): Likewise.
67801         * modules/crypto/md5 (License): Likewise.
67802         * modules/crypto/rijndael (License): Likewise.
67803         * modules/crypto/sha1 (License): Likewise.
67804         * modules/memxor (License): Likewise.
67805
67806 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67807         and Bruno Haible  <bruno@clisp.org>
67808
67809         * NEWS: Describe interface changes to human, xstrtol.
67810         * lib/human.h: Include <xstrtol.h>.
67811         (human_options): Return enum strtol_error, not int.  Remove
67812         bool arg; take int * instead.
67813         * lib/human.c: Don't include "gettext.h".
67814         (_): Remove; no longer used.
67815         Don't include <xstrtol.h>, since human.h does it.
67816         (human_options): Adjust to abovementioned interface changes.
67817         Do not report error to stderr; that's now the caller's
67818         responsibility.
67819         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67820         interface change.
67821         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67822         Str, Argument_type_string.  All uses changed.  Put " argument"
67823         in diagnostics to make them clearer.  Change wording of suffix
67824         message for clarity.
67825         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67826         Argument_type_string.
67827         (STRTOL_FATAL_WARN): Remove; no longer used.
67828         * modules/human (Depends-on): Remove gettext-h.
67829
67830 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67831
67832         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67833
67834 2007-07-31  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67837         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67838         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67839
67840 2007-07-31  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67843         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67844
67845 2007-07-30  Bruno Haible  <bruno@clisp.org>
67846
67847         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67848         * modules/c-ctype (License): Likewise.
67849         * modules/c-strcase (License): Likewise.
67850         * modules/check-version (License): Likewise.
67851         * modules/iconv (License): Likewise.
67852         * modules/iconv_open (License): Likewise.
67853         * modules/read-file (License): Likewise.
67854         * modules/striconv (License): Likewise.
67855         * modules/strverscmp (License): Likewise.
67856         * modules/vasprintf (License): Likewise.
67857         * modules/crypto/des (License): Likewise.
67858         * modules/crypto/gc (License): Likewise.
67859         * modules/crypto/gc-arcfour (License): Likewise.
67860         * modules/crypto/gc-arctwo (License): Likewise.
67861         * modules/crypto/gc-des (License): Likewise.
67862         * modules/crypto/gc-hmac-md5 (License): Likewise.
67863         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67864         * modules/crypto/gc-md2 (License): Likewise.
67865         * modules/crypto/gc-md4 (License): Likewise.
67866         * modules/crypto/gc-md5 (License): Likewise.
67867         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67868         * modules/crypto/gc-random (License): Likewise.
67869         * modules/crypto/gc-rijndael (License): Likewise.
67870         * modules/crypto/gc-sha1 (License): Likewise.
67871         * modules/crypto/md2 (License): Likewise.
67872         * modules/crypto/md4 (License): Likewise.
67873
67874 2007-07-30  Jim Meyering  <jim@meyering.net>
67875
67876         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67877         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67878         it has valid stat data.  This bug would cause du not to count the
67879         sizes of inaccessible directories.
67880         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67881         in <http://bugzilla.redhat.com/250077>.
67882
67883 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67884             Bruno Haible  <bruno@clisp.org>
67885
67886         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67887         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67888         #include_next, gives a diagnostic about it, but reports no error in
67889         the exit code.
67890         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67891
67892 2007-07-24  Ben Pfaff  <blp@gnu.org>
67893
67894         Improve name: "count-one-bits" is better than "popcount".
67895         * MODULES.html.sh: Update name.
67896         * lib/popcount.h: Renamed lib/count-one-bits.h.
67897         (popcount): Renamed count_one_bits.
67898         (popcountl): Renamed count_one_bits_l.
67899         (popcountll): Renamed count_one_bits_ll.
67900         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67901         * modules/popcount: Renamed module/count-one-bits.
67902         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67903         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67904
67905 2007-07-23  Ben Pfaff  <blp@gnu.org>
67906
67907         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67908         better code generation, and add U to large constants to avoid
67909         warnings, in non-GCC case.
67910         Suggested by Bruno Haible.
67911
67912 2007-07-23  Ben Pfaff  <blp@gnu.org>
67913
67914         * lib/popcount.h: Use verify_true instead of if...abort.
67915         * modules/popcount: Depend on verify module.
67916         Suggested by Jim Meyering.
67917
67918 2007-07-23  Bruno Haible  <bruno@clisp.org>
67919
67920         * gnulib-tool (func_import): Create a .cvsignore file also when the
67921         directory is not yet in CVS but the toplevel directory is. When
67922         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67923         Reported by Karl Berry.
67924
67925 2007-07-22  Ben Pfaff  <blp@gnu.org>
67926
67927         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67928         case.
67929         Suggested by Eric Blake.
67930
67931 2007-07-22  Ben Pfaff  <blp@gnu.org>
67932
67933         New module: popcount.
67934         * MODULES.html.sh: Add popcount.
67935         * modules/popcount: New file.
67936         * modules/popcount-tests: New file.
67937         * tests/test-popcount.c: New file.
67938         * lib/popcount.h: New file.
67939         * m4/popcount.m4: New file.
67940
67941 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * build-aux/announce-gen: Update to GPLv3.
67944
67945         * build-aux/config.guess: Update from config.
67946
67947 2007-07-21  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67950         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67951
67952 2007-07-20  Jim Meyering  <jim@meyering.net>
67953
67954         * check-module: Diagnose a self-dependency.
67955
67956 2007-07-19  Bruno Haible  <bruno@clisp.org>
67957
67958         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67959         empty.
67960         Reported by Eric Blake.
67961
67962 2007-07-18  Bruno Haible  <bruno@clisp.org>
67963
67964         * gnulib-tool: New options --po-base, --po-domain.
67965         (func_usage): Document them.
67966         (pobase, po_domain): New variables.
67967         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67968         DEFAULT_TEXT_DOMAIN.
67969         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67970         (func_import): Consider pobase and po_domain. Create a po/ directory.
67971         (func_create_testdir): Set pobase and po_domain to empty.
67972         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67973         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67974
67975 2007-07-18  Bruno Haible  <bruno@clisp.org>
67976
67977         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67978         EXTRA_DIST augmentation for files in build-aux/.
67979
67980 2007-07-16  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67983         * modules/getdelim (License): Likewise.
67984
67985 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67986
67987         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67988         * modules/d-type (License): Likewise.
67989         * modules/extensions (License): Likewise.
67990         * modules/fnmatch (License): Likewise.
67991         * modules/fseeko (License): Likewise.
67992         * modules/getaddrinfo (License): Likewise.
67993         * modules/getline (License): Likewise.
67994         * modules/getlogin_r (License): Likewise.
67995         * modules/getpass (License): Likewise.
67996         * modules/gettimeofday (License): Likewise.
67997         * modules/glob (License): Likewise.
67998         * modules/inet_ntop (License): Likewise.
67999         * modules/malloc (License): Likewise.
68000         * modules/malloca (License): Likewise.
68001         * modules/memmem (License): Likewise.
68002         * modules/mempcpy (License): Likewise.
68003         * modules/memset (License): Likewise.
68004         * modules/minmax (License): Likewise.
68005         * modules/mktime (License): Likewise.
68006         * modules/netinet_in (License): Likewise.
68007         * modules/pathmax (License): Likewise.
68008         * modules/poll (License): Likewise.
68009         * modules/regex (License): Likewise.
68010         * modules/snprintf (License): Likewise.
68011         * modules/stdbool (License): Likewise.
68012         * modules/stdint (License): Likewise.
68013         * modules/stdio (License): Likewise.
68014         * modules/strcase (License): Likewise.
68015         * modules/strcasestr (License): Likewise.
68016         * modules/strdup (License): Likewise.
68017         * modules/string (License): Likewise.
68018         * modules/strndup (License): Likewise.
68019         * modules/strnlen (License): Likewise.
68020         * modules/strpbrk (License): Likewise.
68021         * modules/strptime (License): Likewise.
68022         * modules/strsep (License): Likewise.
68023         * modules/sys_select (License): Likewise.
68024         * modules/sys_socket (License): Likewise.
68025         * modules/sys_stat (License): Likewise.
68026         * modules/sys_time (License): Likewise.
68027         * modules/time (License): Likewise.
68028         * modules/time_r (License): Likewise.
68029         * modules/timegm (License): Likewise.
68030         * modules/unistd (License): Likewise.
68031         * modules/vsnprintf (License): Likewise.
68032         * modules/wctype (License): Likewise.
68033
68034 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68035
68036         * modules/argz (License): LGPLv2+.
68037
68038 2007-07-15  Karl Berry  <karl@gnu.org>
68039
68040         * doc/gnulib.texi: revise node structure per new fdl.texi.
68041
68042 2007-07-14  Bruno Haible  <bruno@clisp.org>
68043
68044         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68045         the output file.
68046         * lib/uniname/uninames.h: Regenerated.
68047
68048 2007-07-14  Karl Berry  <karl@gnu.org>
68049
68050         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68051         omitting sectioning and index commands.
68052
68053 2007-07-13  Bruno Haible  <bruno@clisp.org>
68054
68055         New gnulib-tool option --more-symlinks.
68056         * gnulib-tool (func_usage): Document --more-symlinks.
68057         (do_copyrights): New variable.
68058         Recognize option --more-symlinks.
68059         (func_import): Don't add a copyright notice transform to
68060         sed_transform_lib_file if do_copyrights is empty.
68061
68062 2007-07-13  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/vasnprintf.c (decimal_point_char): Define also if
68065         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68066         && !NEED_PRINTF_DIRECTIVE_A.
68067         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68068         Gary V. Vaughan <gary@gnu.org>.
68069
68070 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         * lib/inttypes_.h: Undo previous change, since it was fixed
68073         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68074
68075 2007-07-13  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68078         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68079
68080 2007-07-13  Jim Meyering  <jim@meyering.net>
68081
68082         df: Don't fail for Tru64's "file-on-file mount".
68083         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68084         so we fall through and use statfs instead.  Details here:
68085         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68086         Reported by Albert Chin.
68087
68088 2007-07-13  Bruno Haible  <bruno@clisp.org>
68089
68090         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68091         * modules/configmake (License): Likewise.
68092         * modules/gettext (License): Likewise.
68093         * modules/gettext-h (License): Likewise.
68094         * modules/include_next (License): Likewise.
68095         * modules/link-warning (License): Likewise.
68096         * modules/localcharset (License): Likewise.
68097         * modules/localename (License): Likewise.
68098         * modules/lock (License): Likewise.
68099         * modules/relocatable-lib-lgpl (License): Likewise.
68100         * modules/size_max (License): Likewise.
68101         * modules/vasnprintf (License): Likewise.
68102         * modules/wchar (License): Likewise.
68103         * modules/xsize (License): Likewise.
68104
68105 2007-07-13  Bruno Haible  <bruno@clisp.org>
68106
68107         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68108         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68109
68110 2007-07-12  Bruno Haible  <bruno@clisp.org>
68111
68112         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68113         in the modules files.
68114
68115 2007-07-11  Karl Berry  <karl@gnu.org>
68116
68117         * MODULES.html.sh (func_module): use
68118          sed -e '\|^'"${includefile}"'$|d'
68119          instead of /.../d, to avoid errors on $includefile's containing /.
68120
68121 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68122
68123         * gnulib-tool (func_import): Avoid duplication of --avoid
68124         statements
68125         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68126         names to `_' in variable names.
68127
68128 2007-07-10  Eric Blake  <ebb9@byu.net>
68129
68130         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68131         * NEWS: Document this change.
68132
68133 2007-07-08  Bruno Haible  <bruno@clisp.org>
68134
68135         Update to Unicode 5.0.
68136         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68137         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68138         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68139         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68140         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68141         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68142         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68143         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68144         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68145         U+10A3F, U+1D242..U+1D244.
68146         (nonspacing_table_ind): Update.
68147         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68148         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68149
68150 2007-07-08  Bruno Haible  <bruno@clisp.org>
68151
68152         Update to Unicode 5.0.
68153         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68154         code transform. Extend the name index field of unicode_name_to_code and
68155         unicode_code_to_name from 16 to 24 bits.
68156         * lib/uniname/uniname.c (unicode_character_name,
68157         unicode_name_character): Add the range 0x12xxx to the code transform.
68158         * lib/uniname/uninames.h: Regenerated.
68159         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68160
68161 2007-07-07  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/wcwidth-tests: New file.
68164         * tests/test-wcwidth.c: New file.
68165
68166         Work around MacOS X wcwidth() bug.
68167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68168         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68169         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68170         original wcwidth in non-UTF-8 locales.
68171         * modules/wcwidth (Depends-on): Add localcharset, streq,
68172         uniwidth/width.
68173         * doc/functions/wcwidth.texi: Update.
68174
68175 2007-07-07  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68178         (wcwidth): New declaration.
68179         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68180         macros.
68181         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68182         here. Prepare for creating <wchar.h> unconditionally.
68183         * modules/wchar (Depends-on): Add link-warning.
68184         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68185         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68186         * lib/wcwidth.h: Remove file.
68187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68188         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68189         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68190         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68191         (Include): Replace wcwidth.h with <wchar.h>.
68192         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68193         * lib/mbchar.h: Don't include wcwidth.h.
68194         * lib/mbswidth.c: Likewise.
68195         * NEWS: Mention the change.
68196
68197 2007-07-07  Bruno Haible  <bruno@clisp.org>
68198
68199         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68200         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68201         definition with an external declaration.
68202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68203         defined as a function. Remove AC_C_INLINE requirement.
68204         * modules/wcwidth (Files): Add lib/wcwidth.c.
68205         (Makefile.am): Remove redundant statement.
68206
68207 2007-07-07  Bruno Haible  <bruno@clisp.org>
68208
68209         * MODULES.html.sh (Unicode string functions): Add the new modules.
68210
68211         * tests/uniwidth/test-u32-strwidth.c: New file.
68212         * modules/uniwidth/u32-strwidth-tests: New file.
68213
68214         * lib/uniwidth/u32-strwidth.c: New file.
68215         * modules/uniwidth/u32-strwidth: New file.
68216
68217         * tests/uniwidth/test-u16-strwidth.c: New file.
68218         * modules/uniwidth/u16-strwidth-tests: New file.
68219
68220         * lib/uniwidth/u16-strwidth.c: New file.
68221         * modules/uniwidth/u16-strwidth: New file.
68222
68223         * tests/uniwidth/test-u8-strwidth.c: New file.
68224         * modules/uniwidth/u8-strwidth-tests: New file.
68225
68226         * lib/uniwidth/u8-strwidth.c: New file.
68227         * modules/uniwidth/u8-strwidth: New file.
68228
68229         * tests/uniwidth/test-u32-width.c: New file.
68230         * modules/uniwidth/u32-width-tests: New file.
68231
68232         * lib/uniwidth/u32-width.c: New file.
68233         * modules/uniwidth/u32-width: New file.
68234
68235         * tests/uniwidth/test-u16-width.c: New file.
68236         * modules/uniwidth/u16-width-tests: New file.
68237
68238         * lib/uniwidth/u16-width.c: New file.
68239         * modules/uniwidth/u16-width: New file.
68240
68241         * tests/uniwidth/test-u8-width.c: New file.
68242         * modules/uniwidth/u8-width-tests: New file.
68243
68244         * lib/uniwidth/u8-width.c: New file.
68245         * modules/uniwidth/u8-width: New file.
68246
68247         * tests/uniwidth/test-uc_width.c: New file.
68248         * modules/uniwidth/width-tests: New file.
68249
68250         * lib/uniwidth/width.c: New file, from GNU libiconv.
68251         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68252         * modules/uniwidth/width: New file.
68253
68254         * lib/uniwidth.h: New file, from GNU libiconv.
68255         * modules/uniwidth/base: New file.
68256
68257 2007-07-07  Bruno Haible  <bruno@clisp.org>
68258
68259         * lib/uniname.h: New file, from GNU gettext.
68260         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68261         * lib/uniname/uninames.h: New file, from GNU gettext.
68262         * lib/uniname/uniname.c: New file, from GNU gettext.
68263         * tests/uniname/test-uninames.sh: New file.
68264         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68265         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68266         * modules/uniname/base: New file.
68267         * modules/uniname/uniname: New file.
68268         * modules/uniname/uniname-tests: New file.
68269         * MODULES.html.sh (Unicode string functions): Add the new modules.
68270
68271 2007-07-06  Bruno Haible  <bruno@clisp.org>
68272
68273         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68274
68275 2007-07-06  Bruno Haible  <bruno@clisp.org>
68276
68277         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68278         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68279         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68280         include <sys/time.h>.
68281         Reported by Eric Blake.
68282
68283 2007-07-06  Eric Blake  <ebb9@byu.net>
68284
68285         Fix testing canonicalize on cygwin.
68286         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68287         Revert patch from 2007-06-19.
68288         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68289         canonicalize module is also in use.
68290         * tests/test-canonicalize.c: New file.
68291         * tests/test-canonicalize.sh: Likewise.
68292         * modules/canonicalize-tests: Likewise.
68293
68294 2007-07-06  Jim Meyering  <jim@meyering.net>
68295
68296         * lib/getugroups.c (getugroups): Detect getgrent failure.
68297         Adjust comment to reflect reality: this function may return -1.
68298
68299 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68300
68301         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68302         the new TP address.
68303         (usage): Fix typo
68304         (gnulib_mk): New variable.
68305
68306 2007-07-05  Jim Meyering  <jim@meyering.net>
68307
68308         Don't let endgrent clobber errno, no matter how improbable.
68309         * lib/getugroups.c (getugroups): Save and restore errno around
68310         endgrent call.
68311
68312         Close the group DB even when failing with 2^31 or more members.
68313         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68314
68315 2007-07-04  Jim Meyering  <jim@meyering.net>
68316
68317         * lib/getugroups.h: New file.
68318         * lib/getugroups.c: Include "getugroups.h".
68319         Remove uses of "register" keyword.
68320         Move local variable, "cp", down into scope where used.
68321         Give "username" parameter the "const" attribute.
68322         * modules/getugroups (Files): Add lib/getugroups.h
68323
68324 2007-07-04  Karl Berry  <karl@gnu.org>
68325
68326         * MODULES.html.sh (func_all_modules): Complete rename of
68327         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68328
68329 2007-07-02  Bruno Haible  <bruno@clisp.org>
68330
68331         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68332         mode, when inttypes.h comes from gnulib.
68333         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68334
68335 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68336
68337         * NEWS: Mention lgpl module name change.
68338
68339         * modules/lgpl-2.1: Renamed from lgpl.
68340
68341         * NEWS: Mention gpl module name change.
68342
68343         * modules/gpl-3.0: New file, based on gpl-2.0.
68344
68345         * modules/gpl-2.0: Renamed from gpl.
68346
68347         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68348         doc/gpl-2.0.texi.
68349
68350 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68353         #define __STDC_LIMIT_MACROS temporarily while including
68354         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68355         Problem reported by Joel E. Denny in
68356         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68357
68358 2007-07-01  Bruno Haible  <bruno@clisp.org>
68359
68360         * lib/unistdio.h: New file.
68361         * lib/unistdio/u-asnprintf.h: New file.
68362         * lib/unistdio/u-asprintf.h: New file.
68363         * lib/unistdio/u-printf-args.c: New file.
68364         * lib/unistdio/u-printf-args.h: New file.
68365         * lib/unistdio/u-printf-parse.h: New file.
68366         * lib/unistdio/u-snprintf.h: New file.
68367         * lib/unistdio/u-sprintf.h: New file.
68368         * lib/unistdio/u-vasprintf.h: New file.
68369         * lib/unistdio/u-vsnprintf.h: New file.
68370         * lib/unistdio/u-vsprintf.h: New file.
68371         * lib/unistdio/ulc-asnprintf.c: New file.
68372         * lib/unistdio/ulc-asprintf.c: New file.
68373         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68374         * lib/unistdio/ulc-printf-parse.c: New file.
68375         * lib/unistdio/ulc-snprintf.c: New file.
68376         * lib/unistdio/ulc-sprintf.c: New file.
68377         * lib/unistdio/ulc-vasnprintf.c: New file.
68378         * lib/unistdio/ulc-vasprintf.c: New file.
68379         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68380         * lib/unistdio/ulc-vsnprintf.c: New file.
68381         * lib/unistdio/ulc-vsprintf.c: New file.
68382         * lib/unistdio/u8-asnprintf.c: New file.
68383         * lib/unistdio/u8-asprintf.c: New file.
68384         * lib/unistdio/u8-printf-parse.c: New file.
68385         * lib/unistdio/u8-snprintf.c: New file.
68386         * lib/unistdio/u8-sprintf.c: New file.
68387         * lib/unistdio/u8-vasnprintf.c: New file.
68388         * lib/unistdio/u8-vasprintf.c: New file.
68389         * lib/unistdio/u8-vsnprintf.c: New file.
68390         * lib/unistdio/u8-vsprintf.c: New file.
68391         * lib/unistdio/u8-u8-asnprintf.c: New file.
68392         * lib/unistdio/u8-u8-asprintf.c: New file.
68393         * lib/unistdio/u8-u8-snprintf.c: New file.
68394         * lib/unistdio/u8-u8-sprintf.c: New file.
68395         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68396         * lib/unistdio/u8-u8-vasprintf.c: New file.
68397         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68398         * lib/unistdio/u8-u8-vsprintf.c: New file.
68399         * lib/unistdio/u16-asnprintf.c: New file.
68400         * lib/unistdio/u16-asprintf.c: New file.
68401         * lib/unistdio/u16-printf-parse.c: New file.
68402         * lib/unistdio/u16-snprintf.c: New file.
68403         * lib/unistdio/u16-sprintf.c: New file.
68404         * lib/unistdio/u16-vasnprintf.c: New file.
68405         * lib/unistdio/u16-vasprintf.c: New file.
68406         * lib/unistdio/u16-vsnprintf.c: New file.
68407         * lib/unistdio/u16-vsprintf.c: New file.
68408         * lib/unistdio/u16-u16-asnprintf.c: New file.
68409         * lib/unistdio/u16-u16-asprintf.c: New file.
68410         * lib/unistdio/u16-u16-snprintf.c: New file.
68411         * lib/unistdio/u16-u16-sprintf.c: New file.
68412         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68413         * lib/unistdio/u16-u16-vasprintf.c: New file.
68414         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68415         * lib/unistdio/u16-u16-vsprintf.c: New file.
68416         * lib/unistdio/u32-asnprintf.c: New file.
68417         * lib/unistdio/u32-asprintf.c: New file.
68418         * lib/unistdio/u32-printf-parse.c: New file.
68419         * lib/unistdio/u32-snprintf.c: New file.
68420         * lib/unistdio/u32-sprintf.c: New file.
68421         * lib/unistdio/u32-vasnprintf.c: New file.
68422         * lib/unistdio/u32-vasprintf.c: New file.
68423         * lib/unistdio/u32-vsnprintf.c: New file.
68424         * lib/unistdio/u32-vsprintf.c: New file.
68425         * lib/unistdio/u32-u32-asnprintf.c: New file.
68426         * lib/unistdio/u32-u32-asprintf.c: New file.
68427         * lib/unistdio/u32-u32-snprintf.c: New file.
68428         * lib/unistdio/u32-u32-sprintf.c: New file.
68429         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68430         * lib/unistdio/u32-u32-vasprintf.c: New file.
68431         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68432         * lib/unistdio/u32-u32-vsprintf.c: New file.
68433         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68434         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68435         * tests/unistdio/test-ulc-printf1.h: New file.
68436         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68437         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68438         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68439         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68440         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68441         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68442         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68443         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68444         * tests/unistdio/test-u8-asnprintf1.c: New file.
68445         * tests/unistdio/test-u8-asnprintf1.h: New file.
68446         * tests/unistdio/test-u8-printf1.h: New file.
68447         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68448         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68449         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68450         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68451         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68452         * tests/unistdio/test-u8-vasprintf1.c: New file.
68453         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68454         * tests/unistdio/test-u8-vsprintf1.c: New file.
68455         * tests/unistdio/test-u16-asnprintf1.c: New file.
68456         * tests/unistdio/test-u16-asnprintf1.h: New file.
68457         * tests/unistdio/test-u16-printf1.h: New file.
68458         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68459         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68460         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68461         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68462         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68463         * tests/unistdio/test-u16-vasprintf1.c: New file.
68464         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68465         * tests/unistdio/test-u16-vsprintf1.c: New file.
68466         * tests/unistdio/test-u32-asnprintf1.c: New file.
68467         * tests/unistdio/test-u32-asnprintf1.h: New file.
68468         * tests/unistdio/test-u32-printf1.h: New file.
68469         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68470         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68471         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68472         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68473         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68474         * tests/unistdio/test-u32-vasprintf1.c: New file.
68475         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68476         * tests/unistdio/test-u32-vsprintf1.c: New file.
68477         * modules/unistdio/base: New file.
68478         * modules/unistdio/u-printf-args: New file.
68479         * modules/unistdio/ulc-asnprintf: New file.
68480         * modules/unistdio/ulc-asprintf: New file.
68481         * modules/unistdio/ulc-fprintf: New file.
68482         * modules/unistdio/ulc-printf-parse: New file.
68483         * modules/unistdio/ulc-snprintf: New file.
68484         * modules/unistdio/ulc-sprintf: New file.
68485         * modules/unistdio/ulc-vasnprintf: New file.
68486         * modules/unistdio/ulc-vasprintf: New file.
68487         * modules/unistdio/ulc-vfprintf: New file.
68488         * modules/unistdio/ulc-vsnprintf: New file.
68489         * modules/unistdio/ulc-vsprintf: New file.
68490         * modules/unistdio/u8-asnprintf: New file.
68491         * modules/unistdio/u8-asprintf: New file.
68492         * modules/unistdio/u8-printf-parse: New file.
68493         * modules/unistdio/u8-snprintf: New file.
68494         * modules/unistdio/u8-sprintf: New file.
68495         * modules/unistdio/u8-vasnprintf: New file.
68496         * modules/unistdio/u8-vasprintf: New file.
68497         * modules/unistdio/u8-vsnprintf: New file.
68498         * modules/unistdio/u8-vsprintf: New file.
68499         * modules/unistdio/u8-u8-asnprintf: New file.
68500         * modules/unistdio/u8-u8-asprintf: New file.
68501         * modules/unistdio/u8-u8-snprintf: New file.
68502         * modules/unistdio/u8-u8-sprintf: New file.
68503         * modules/unistdio/u8-u8-vasnprintf: New file.
68504         * modules/unistdio/u8-u8-vasprintf: New file.
68505         * modules/unistdio/u8-u8-vsnprintf: New file.
68506         * modules/unistdio/u8-u8-vsprintf: New file.
68507         * modules/unistdio/u16-asnprintf: New file.
68508         * modules/unistdio/u16-asprintf: New file.
68509         * modules/unistdio/u16-printf-parse: New file.
68510         * modules/unistdio/u16-snprintf: New file.
68511         * modules/unistdio/u16-sprintf: New file.
68512         * modules/unistdio/u16-vasnprintf: New file.
68513         * modules/unistdio/u16-vasprintf: New file.
68514         * modules/unistdio/u16-vsnprintf: New file.
68515         * modules/unistdio/u16-vsprintf: New file.
68516         * modules/unistdio/u16-u16-asnprintf: New file.
68517         * modules/unistdio/u16-u16-asprintf: New file.
68518         * modules/unistdio/u16-u16-snprintf: New file.
68519         * modules/unistdio/u16-u16-sprintf: New file.
68520         * modules/unistdio/u16-u16-vasnprintf: New file.
68521         * modules/unistdio/u16-u16-vasprintf: New file.
68522         * modules/unistdio/u16-u16-vsnprintf: New file.
68523         * modules/unistdio/u16-u16-vsprintf: New file.
68524         * modules/unistdio/u32-asnprintf: New file.
68525         * modules/unistdio/u32-asprintf: New file.
68526         * modules/unistdio/u32-printf-parse: New file.
68527         * modules/unistdio/u32-snprintf: New file.
68528         * modules/unistdio/u32-sprintf: New file.
68529         * modules/unistdio/u32-vasnprintf: New file.
68530         * modules/unistdio/u32-vasprintf: New file.
68531         * modules/unistdio/u32-vsnprintf: New file.
68532         * modules/unistdio/u32-vsprintf: New file.
68533         * modules/unistdio/u32-u32-asnprintf: New file.
68534         * modules/unistdio/u32-u32-asprintf: New file.
68535         * modules/unistdio/u32-u32-snprintf: New file.
68536         * modules/unistdio/u32-u32-sprintf: New file.
68537         * modules/unistdio/u32-u32-vasnprintf: New file.
68538         * modules/unistdio/u32-u32-vasprintf: New file.
68539         * modules/unistdio/u32-u32-vsnprintf: New file.
68540         * modules/unistdio/u32-u32-vsprintf: New file.
68541         * modules/unistdio/ulc-asnprintf-tests: New file.
68542         * modules/unistdio/ulc-vasnprintf-tests: New file.
68543         * modules/unistdio/ulc-vasprintf-tests: New file.
68544         * modules/unistdio/ulc-vsnprintf-tests: New file.
68545         * modules/unistdio/ulc-vsprintf-tests: New file.
68546         * modules/unistdio/u8-asnprintf-tests: New file.
68547         * modules/unistdio/u8-vasnprintf-tests: New file.
68548         * modules/unistdio/u8-vasprintf-tests: New file.
68549         * modules/unistdio/u8-vsnprintf-tests: New file.
68550         * modules/unistdio/u8-vsprintf-tests: New file.
68551         * modules/unistdio/u16-asnprintf-tests: New file.
68552         * modules/unistdio/u16-vasnprintf-tests: New file.
68553         * modules/unistdio/u16-vasprintf-tests: New file.
68554         * modules/unistdio/u16-vsnprintf-tests: New file.
68555         * modules/unistdio/u16-vsprintf-tests: New file.
68556         * modules/unistdio/u32-asnprintf-tests: New file.
68557         * modules/unistdio/u32-vasnprintf-tests: New file.
68558         * modules/unistdio/u32-vasprintf-tests: New file.
68559         * modules/unistdio/u32-vsnprintf-tests: New file.
68560         * modules/unistdio/u32-vsprintf-tests: New file.
68561         * MODULES.html.sh (Unicode string functions): Add the new modules.
68562
68563 2007-07-01  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/sprintf.c (sprintf): Limit the available length estimation,
68566         to avoid address wraparound.
68567         * lib/vsprintf.c (vsprintf): Likewise.
68568         * modules/sprintf-posix (Dependencies): Add stdint.
68569         * modules/vsprintf-posix (Dependencies): Likewise.
68570
68571 2007-07-01  Bruno Haible  <bruno@clisp.org>
68572
68573         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68574         Windows PATH as well. Conservative double-quoting. Comments.
68575
68576 2007-07-01  Bruno Haible  <bruno@clisp.org>
68577             Eric Blake  <ebb9@byu.net>
68578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68579
68580         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68581         empty components in $PATH, denoting '.'.
68582
68583 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68584
68585         * gnulib-tool: Fix indentation.
68586         (func_create_megatestdir): Likewise.
68587         Report by Bruno Haible.
68588
68589 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68590
68591         Sync from Automake.
68592         * build-aux/gnupload: Fix shell portability issues with for loops.
68593         Report by Karl Berry.
68594
68595 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68596
68597         * build-aux/maint.mk (POURL): Use translationproject.org.
68598
68599 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68600             Bruno Haible  <bruno@clisp.org>
68601
68602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68603         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68604         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68605         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68606         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68607
68608 2007-06-27  Bruno Haible  <bruno@clisp.org>
68609
68610         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68611         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68612
68613 2007-06-26  Karl Berry  <karl@gnu.org>
68614
68615         * MODULES.html.sh: remove xreadlink-with-size.
68616
68617 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68620         method that I hope also handles the double-include problem noted
68621         by Bruno Haible in
68622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68623
68624 2007-06-23  Bruno Haible  <bruno@clisp.org>
68625
68626         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68627         Don't let the 'mostlyclean' target fail if the last subdirectory could
68628         not be removed.
68629         Reported by Karl Berry.
68630
68631 2007-06-23  Bruno Haible  <bruno@clisp.org>
68632
68633         * gnulib-tool (echo): Add a speedier workaround for ksh.
68634         * tests/test-echo.sh: Likewise.
68635
68636 2007-06-23  Bruno Haible  <bruno@clisp.org>
68637
68638         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68639         * tests/test-echo.sh: Likewise.
68640
68641 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68642
68643         * gnulib-tool (IFS): Initialize early, so we don't set it to
68644         empty later.
68645         (self_abspathname): Rewrite algorithm to set it, reindent.
68646         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68647         (func_create_megatestdir): Merge some sed scripts.
68648
68649 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68652         exposed by Sun Studio 11 cc on Solaris 8.
68653
68654 2007-06-22  Bruno Haible  <bruno@clisp.org>
68655
68656         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68657         backslashes.
68658         * tests/test-echo.sh: New file.
68659
68660 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68661
68662         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68663         simplify `sed_replace_build_aux' scripts, they are portable but
68664         echoing them with `echo' is not.
68665         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68666
68667 2007-06-21  Karl Berry  <karl@gnu.org>
68668
68669         * config/srclist.txt: guess we can't handle the licenses via
68670         srclist at the moment.
68671
68672 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * MODULES.html.sh: Add include_next.
68675         * modules/include_next: New file.
68676
68677 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68680         INCLUDE_NEXT.
68681         (gl_CHECK_NEXT_HEADERS): New macro.
68682         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68683         the obsolescent gl_ABSOLUTE_HEADER.
68684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68685         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68686         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68687         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68688         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68689         * m4/math_h.m4 (gl_MATH_H): Likewise.
68690         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68691         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68692         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68693         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68694         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68695         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68698         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68700         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68701         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68702         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68703         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68704         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68705         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68706         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68707         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68708         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68709         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68710         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68711         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68712         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68713         * lib/float_.h: Likewise.
68714         * lib/inttypes_.h: Likewise.
68715         * lib/math_.h: Likewise.
68716         * lib/search_.h: Likewise.
68717         * lib/signal_.h: Likewise.
68718         * lib/stdint_.h: Likewise.
68719         * lib/stdio_.h: Likewise.
68720         * lib/stdlib_.h: Likewise.
68721         * lib/string_.h: Likewise.
68722         * lib/sys_stat_.h: Likewise.
68723         * lib/sys_time_.h: Likewise.
68724         * lib/time_.h: Likewise.
68725         * lib/unistd_.h: Likewise.
68726         * lib/wchar_.h: Likewise.
68727         * lib/wctype_.h: Likewise.
68728         * lib/dirent_.h: Likewise.
68729         * lib/iconv_.h: Likewise.
68730         * lib/locale_.h: Likewise.
68731         * lib/netinet_in_.h: Likewise.
68732         * lib/sys_select_.h: Likewise.
68733         * lib/sys_socket_.h: Likewise.
68734         * lib/sysexits_.h: Likewise.
68735         * modules/fcntl (Depends-on): Depend on include_next, not
68736         absolute_header.
68737         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68738         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68739         * modules/fchdir: Likewise.
68740         * modules/float: Likewise.
68741         * modules/iconv_open: Likewise.
68742         * modules/inttypes: Likewise.
68743         * modules/locale: Likewise.
68744         * modules/math: Likewise.
68745         * modules/netinet_in: Likewise.
68746         * modules/search: Likewise.
68747         * modules/signal: Likewise.
68748         * modules/stdint: Likewise.
68749         * modules/stdio: Likewise.
68750         * modules/stdlib: Likewise.
68751         * modules/string: Likewise.
68752         * modules/sys_select: Likewise.
68753         * modules/sys_socket: Likewise.
68754         * modules/sys_stat: Likewise.
68755         * modules/sys_time: Likewise.
68756         * modules/sysexits: Likewise.
68757         * modules/time: Likewise.
68758         * modules/unistd: Likewise.
68759         * modules/wchar: Likewise.
68760         * modules/wctype: Likewise.
68761         * modules/sys_stat: Change maintainer to "all".
68762         * modules/unistd: Likewise.
68763
68764 2007-06-20  Karl Berry  <karl@gnu.org>
68765
68766         * config/srclist.txt: track www changes in license files.
68767
68768 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68769
68770         * build-aux/bootstrap: Remove stray dot.
68771         Make sure build_aux settings are honored when linking
68772         gnulib_extra_files.
68773
68774 2007-06-19  Eric Blake  <ebb9@byu.net>
68775
68776         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68777         Allow compilation on cygwin.
68778
68779 2007-06-19  Jim Meyering  <jim@meyering.net>
68780
68781         xreadlink-with-size: Remove module.  No longer used.
68782         Ex-callers now use xreadlink or mreadlink-with-size.
68783         * modules/xreadlink-with-size: Remove module.
68784         * lib/xreadlink-with-size.c: Remove file.
68785         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68786         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68787         just before the function definition *is* accurate.
68788
68789         Eliminate one way canonicalize_filename_mode could exit.
68790         * lib/canonicalize.c (canonicalize_filename_mode):
68791         Use mreadlink_with_size, not xreadlink_with_size.
68792
68793 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         Detect porting problems to FreeBSD/arm, which has time_t wider than
68796         long int.  Original problem reported for GNU diff by Xin Li in
68797         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68798         * modules/getdate (Depends-on): Add intprops, verify.
68799         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68800         is an integer type no wider than long int.
68801
68802 2007-06-18  Jim Meyering  <jim@meyering.net>
68803
68804         New module: mreadlink-with-size.
68805         * MODULES.html.sh: Add mreadlink-with-size.
68806         * modules/mreadlink-with-size: New module
68807         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68808         not xreadlink-with-size.
68809         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68810
68811 2007-06-16  Bruno Haible  <bruno@clisp.org>
68812
68813         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68814         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68815         Reported by Gary V. Vaughan <gary@gnu.org>.
68816
68817 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         Revamp lchown so that it lives in unistd.h where it belongs.
68820         * lib/lchown.h: Remove.
68821         * lib/dirchownmod.c: Don't include lib/lchown.h.
68822         * lib/fchownat.c: Likewise.
68823         * lib/openat.c: Likewise.
68824         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68825         does not follow symlinks.
68826         (EOPNOTSUPP): Define if not defined.
68827         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68828         is defined to 0.
68829         (lchown): New decl.
68830         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68831         Do not check for lchown decl.
68832         Set REPLACE_LCHOWN.
68833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68834         REPLACE_LCHOWN.
68835         * modules/chown: Make it clear it follows symlinks.
68836         * modules/lchown: Make it clear it doesn't follow symlinks.
68837         (Files): Remove lib/lchown.h
68838         (Depends-on): Add unistd.
68839         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68840         (Include): Include <unistd.h>, not "lchown.h".
68841         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68842         REPLACE_LCHOWN.
68843
68844 2007-06-15  Jim Meyering  <jim@meyering.net>
68845
68846         Change license (GPL to LGPL) of fsusage and dependents.
68847         * modules/fsusage (License): Change to LGPL.
68848         * modules/full-read (License): Likewise.
68849         * modules/full-write (License): Likewise.
68850         * modules/safe-read (License): Likewise.
68851         * modules/safe-write (License): Likewise.
68852
68853 2007-06-14  Ben Pfaff  <blp@gnu.org>
68854
68855         Missing part of allocsa -> malloca transition.
68856         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68857         gl_MALLOCA.
68858
68859 2007-06-12  Bruno Haible  <bruno@clisp.org>
68860
68861         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68862         to ia64, x86_64, i386.
68863         Reported by Eric Blake.
68864
68865 2007-06-12  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68868         cross-compiling to x86_64.
68869
68870 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68873         glitch reported by Ralf Wildenhues in
68874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68875
68876         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68877         Vin Shelton.
68878
68879 2007-06-11  Bruno Haible  <bruno@clisp.org>
68880
68881         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68882         replacement string.
68883         Reported by Eric Blake.
68884
68885 2007-06-10  Bruno Haible  <bruno@clisp.org>
68886
68887         Prepare vasnprintf code for use with Unicode strings.
68888         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68889         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68890         TYPE_U32_STRING.
68891         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68892         a_u32_string variants.
68893         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68894         * lib/printf-args.c: Don't include config.h and the specification
68895         header if PRINTF_FETCHARGS is already defined.
68896         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68897         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68898         TYPE_U16_STRING, TYPE_U32_STRING.
68899         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68900         u16_directive, u16_directives, u32_directive, u32_directives): New
68901         types.
68902         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68903         New declarations.
68904         * lib/printf-parse.c: Don't include config.h and the specification
68905         header if PRINTF_PARSE is already defined. Eliminate the set of
68906         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68907         them now. Include c-ctype.h.
68908         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68909         directive and CHAR_T_ONLY_ASCII.
68910         * lib/vasnprintf.c: Don't include config.h and the specification header
68911         if VASNPRINTF is already defined.
68912         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68913         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68914         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68915         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68916         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68917         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68918         code accordingly.
68919         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68920         pad_ourselves also in this case, with the 'c' and 's' directives, and
68921         with a different notion of "width".
68922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68923
68924 2007-06-10  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/unistr/u32-mbsnlen: New file.
68927         * lib/unistr/u32-mbsnlen.c: New file.
68928
68929         * modules/unistr/u16-mbsnlen: New file.
68930         * lib/unistr/u16-mbsnlen.c: New file.
68931
68932         * modules/unistr/u8-mbsnlen: New file.
68933         * lib/unistr/u8-mbsnlen.c: New file.
68934
68935         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68936         declarations.
68937
68938 2007-06-10  Bruno Haible  <bruno@clisp.org>
68939
68940         * lib/string_.h (mbsnlen): New declaration.
68941         * lib/mbsnlen.c: New file.
68942         * m4/mbsnlen.m4: New file.
68943         * modules/mbsnlen: New file.
68944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68945         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68946         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68947
68948 2007-06-10  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68951
68952 2007-06-10  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68955         * lib/mbuiter.h: Likewise.
68956
68957 2007-06-10  Bruno Haible  <bruno@clisp.org>
68958
68959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68960         declaration.
68961
68962 2007-06-10  Karl Berry  <karl@gnu.org>
68963
68964         * config/srclist.txt: remove gettext entries, Bruno prefers
68965         to update individually.
68966
68967 2007-06-10  Bruno Haible  <bruno@clisp.org>
68968
68969         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68970         'maxlen'. Ensure only length + width bytes are allocated, not
68971         length + 1 + width.
68972
68973 2007-06-09  Bruno Haible  <bruno@clisp.org>
68974
68975         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68976         (CHAR_T): Remove macro.
68977         (VASNPRINTF): Update.
68978
68979 2007-06-09  Bruno Haible  <bruno@clisp.org>
68980
68981         * MODULES.html.sh (Unicode string functions): Add the new modules.
68982
68983         * modules/uniconv/u32-conv-to-enc: New file.
68984         * lib/uniconv/u32-conv-to-enc.c: New file.
68985         * modules/uniconv/u32-conv-to-enc-tests: New file.
68986         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68987
68988         * modules/uniconv/u16-conv-to-enc: New file.
68989         * lib/uniconv/u16-conv-to-enc.c: New file.
68990         * lib/uniconv/u-conv-to-enc.h: New file.
68991         * modules/uniconv/u16-conv-to-enc-tests: New file.
68992         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68993
68994         * modules/uniconv/u8-conv-to-enc: New file.
68995         * lib/uniconv/u8-conv-to-enc.c: New file.
68996         * modules/uniconv/u8-conv-to-enc-tests: New file.
68997         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68998
68999         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69000         u32_conv_to_encoding): New declarations.
69001
69002 2007-06-09  Bruno Haible  <bruno@clisp.org>
69003
69004         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69005
69006 2007-06-09  Bruno Haible  <bruno@clisp.org>
69007
69008         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69009         * modules/malloca: Renamed from modules/allocsa, updated.
69010         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69011         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69012         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69013         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69014         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69015         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69016         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69017         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69018         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69019         * modules/c-strcasestr (Depends-on): Update.
69020         * lib/c-strcasestr.c: Update.
69021         * modules/c-strstr (Depends-on): Update.
69022         * lib/c-strstr.c: Update.
69023         * modules/canonicalize-lgpl (Depends-on): Update.
69024         * lib/canonicalize-lgpl.c: Update.
69025         * modules/clean-temp (Depends-on): Update.
69026         * lib/clean-temp.c: Update.
69027         * modules/csharpcomp (Depends-on): Update.
69028         * lib/csharpcomp.c: Update.
69029         * modules/csharpexec (Depends-on): Update.
69030         * lib/csharpexec.c: Update.
69031         * modules/javacomp (Depends-on): Update.
69032         * lib/javacomp.c: Update.
69033         * modules/javaexec (Depends-on): Update.
69034         * lib/javaexec.c: Update.
69035         * modules/mbscasestr (Depends-on): Update.
69036         * lib/mbscasestr.c: Update.
69037         * modules/mbsstr (Depends-on): Update.
69038         * lib/mbsstr.c: Update.
69039         * modules/setenv (Depends-on): Update.
69040         * lib/setenv.c: Update.
69041         * modules/strcasestr (Depends-on): Update.
69042         * lib/strcasestr.c: Update.
69043         * modules/striconveha (Depends-on): Update.
69044         * lib/striconveha.c: Update.
69045         * modules/relocatable-prog-wrapper (Files): Update.
69046         * lib/relocwrapper.c: Update.
69047         * build-aux/install-reloc: Update.
69048         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69049
69050 2007-06-08  Bruno Haible  <bruno@clisp.org>
69051
69052         Port to uClibc.
69053         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69054         * lib/fpurge.c (fpurge): Likewise.
69055         * lib/freading.c (freading): Likewise.
69056         * lib/fseeko.c (rpl_fseeko): Likewise.
69057         * lib/fseterr.c (fseterr): Likewise.
69058         * lib/fwriting.c (fwriting): Likewise.
69059         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69060
69061 2007-06-08  Bruno Haible  <bruno@clisp.org>
69062
69063         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69064         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69065         * modules/gettext (Files): Add m4/intlmacosx.m4.
69066
69067 2007-06-07  Bruno Haible  <bruno@clisp.org>
69068
69069         * modules/localename-tests: New file.
69070         * tests/test-localename.c: New file.
69071
69072         New module 'localename'.
69073         * lib/localename.h: New file.
69074         * lib/localename.c: New file, from GNU gettext.
69075         * m4/localename.m4: New file.
69076         * modules/localename: New file.
69077
69078 2007-06-07  Bruno Haible  <bruno@clisp.org>
69079
69080         Work around the lack of <wchar.h> on some builds of uClibc.
69081         * doc/headers/wchar.texi: Update.
69082         * lib/wchar_.h: Include <wchar.h> only if it exists.
69083         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69084         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69085         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69086         doesn't exist.
69087         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69088         * modules/mbfile (Depends-on): Add wchar.
69089         * modules/mbiter (Depends-on): Likewise.
69090         * modules/mbuiter (Depends-on): Likewise.
69091         Reported by Simon Josefsson.
69092
69093 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         Work around problem reported by Steven M. Schweda in
69096         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69097         Tru64 5.1B with the Compaq compiler environment installed declares
69098         an 'isblank' function but does not define it in the C library.
69099         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69100         * lib/regex_internal.h (isblank): Likewise.
69101         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69102         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69103
69104 2007-06-05  Bruno Haible  <bruno@clisp.org>
69105
69106         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69107         ia64.
69108         * modules/printf-safe: New file.
69109         * modules/fprintf-posix (Depends-on): Add printf-safe.
69110         * modules/printf-posix (Depends-on): Likewise.
69111         * modules/snprintf-posix (Depends-on): Likewise.
69112         * modules/sprintf-posix (Depends-on): Likewise.
69113         * modules/vasnprintf-posix (Depends-on): Likewise.
69114         * modules/vasprintf-posix (Depends-on): Likewise.
69115         * modules/vfprintf-posix (Depends-on): Likewise.
69116         * modules/vprintf-posix (Depends-on): Likewise.
69117         * modules/vsnprintf-posix (Depends-on): Likewise.
69118         * modules/vsprintf-posix (Depends-on): Likewise.
69119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69120         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69121         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69122         "no" on i386, x86_64, ia64.
69123         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69124         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69125         on i386, x86_64, ia64.
69126         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69127         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69128         on i386, x86_64, ia64.
69129         * tests/test-vasnprintf-posix.c: Include float.h.
69130         (LDBL80_WORDS): New macro.
69131         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69132         on i386, x86_64, ia64.
69133         * tests/test-vasprintf-posix.c: Include float.h.
69134         (LDBL80_WORDS): New macro.
69135         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69136         on i386, x86_64, ia64.
69137         * tests/test-snprintf-posix.c: Include float.h.
69138         * tests/test-sprintf-posix.c: Likewise.
69139         * tests/test-vsnprintf-posix.c: Likewise.
69140         * tests/test-vsprintf-posix.c: Likewise.
69141
69142 2007-06-05  Bruno Haible  <bruno@clisp.org>
69143
69144         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69145         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69146         non-IEEE numbers on i386, x86_64, ia64.
69147         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69148         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69149         * tests/test-isnanl.h: Include float.h.
69150         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69151
69152 2007-06-05  Bruno Haible  <bruno@clisp.org>
69153
69154         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69155         also the %a / %A. Handle the %a / %A code before this extra handling.
69156
69157 2007-06-05  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69160         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69161
69162 2007-06-05  Bruno Haible  <bruno@clisp.org>
69163
69164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69165         typo in variable name.
69166
69167 2007-06-05  Eric Blake  <ebb9@byu.net>
69168
69169         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69170         Reported by Simon Josefsson.
69171
69172 2007-06-04  Bruno Haible  <bruno@clisp.org>
69173
69174         Avoid test failures on some PowerPC platforms.
69175         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69176         Define differently for PowerPC.
69177         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69178         Reported by Gary V. Vaughan <gary@gnu.org>.
69179
69180 2007-06-02  Bruno Haible  <bruno@clisp.org>
69181
69182         Fix test-stdint failure on FreeBSD/ia64.
69183         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69184         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69185         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69186         * doc/headers/stdint.texi: Update.
69187
69188 2007-06-01  Bruno Haible  <bruno@clisp.org>
69189
69190         * tests/test-binary-io.c (main): Pass a third argument to open().
69191         Reported by Gary V. Vaughan <gary@gnu.org>.
69192
69193 2007-06-01  Bruno Haible  <bruno@clisp.org>
69194
69195         * doc/functions/frexpl.texi: Update for mingw.
69196
69197 2007-06-01  Bruno Haible  <bruno@clisp.org>
69198
69199         * tests/test-lseek.c (main): Disable test of errno for invalid third
69200         argument.
69201         * doc/functions/lseek.texi: Update.
69202         Reported by Gary V. Vaughan <gary@gnu.org>.
69203
69204 2007-05-28  Bruno Haible  <bruno@clisp.org>
69205
69206         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69207
69208 2007-05-31  Eric Blake  <ebb9@byu.net>
69209
69210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69211         cross compiling.
69212
69213 2007-05-30  Eric Blake  <ebb9@byu.net>
69214         and Bruno Haible  <bruno@clisp.org>
69215
69216         Work around mingw test failures exposed by m4-1.4.9b.
69217         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69218         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69219         moment.
69220
69221 2007-05-30  Bruno Haible  <bruno@clisp.org>
69222
69223         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69224         assuming that they are closed. Needed on HP-UX 11.
69225
69226 2007-05-29  Bruno Haible  <bruno@clisp.org>
69227
69228         Fix a problem with #include_next.
69229         * lib/dirent_.h: Split the double-inclusion guard.
69230         * lib/fcntl_.h: Likewise.
69231         * lib/float_.h: Likewise.
69232         * lib/iconv_.h: Likewise.
69233         * lib/inttypes_.h: Likewise.
69234         * lib/locale_.h: Likewise.
69235         * lib/math_.h: Likewise.
69236         * lib/netinet_in_.h: Likewise.
69237         * lib/search_.h: Likewise.
69238         * lib/signal_.h: Likewise.
69239         * lib/stdint_.h: Likewise.
69240         * lib/stdio_.h: Likewise.
69241         * lib/stdlib_.h: Likewise.
69242         * lib/string_.h: Likewise.
69243         * lib/sys_select_.h: Likewise.
69244         * lib/sys_socket_.h: Likewise.
69245         * lib/sys_stat_.h: Likewise.
69246         * lib/sys_time_.h: Likewise.
69247         * lib/sysexits_.h: Likewise.
69248         * lib/time_.h: Likewise.
69249         * lib/unistd_.h: Likewise.
69250         * lib/wchar_.h: Likewise.
69251         * lib/wctype_.h: Likewise.
69252
69253 2007-05-29  Bruno Haible  <bruno@clisp.org>
69254
69255         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69256         for the moment.
69257
69258 2007-05-29  Bruno Haible  <bruno@clisp.org>
69259
69260         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69261         invocation.
69262         Reported by Eric Blake.
69263
69264 2007-05-29  Bruno Haible  <bruno@clisp.org>
69265
69266         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69267         compiling case.
69268
69269 2007-05-29  Eric Blake  <ebb9@byu.net>
69270             Bruno Haible  <bruno@clisp.org>
69271
69272         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69273         cross compiles.
69274
69275 2007-05-28  Eric Blake  <ebb9@byu.net>
69276
69277         * modules/closein-tests (test_closein_LDADD): Support test on
69278         cygwin with libtool.
69279
69280 2007-05-28  Bruno Haible  <bruno@clisp.org>
69281
69282         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69283         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69284         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69285         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69286         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69287         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69288         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69289         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69290         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69291
69292 2007-05-28  Eric Blake  <ebb9@byu.net>
69293
69294         Unconditionally include <config.h> in unit tests.
69295         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69296         * tests/test-allocsa.c, tests/test-arcfour.c,
69297         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69298         tests/test-array_list.c, tests/test-array_oset.c,
69299         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69300         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69301         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69302         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69303         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69304         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69305         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69306         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69307         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69308         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69309         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69310         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69311         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69312         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69313         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69314         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69315         test-md5.c, test-memmem.c, test-printf-posix.c,
69316         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69317         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69318         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69319         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69320         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69321         test-vasnprintf-posix2.c, test-vasnprintf.c,
69322         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69323         test-vfprintf-posix.c, test-vprintf-posix.c,
69324         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69325         test-xvasprintf.c: Likewise.
69326
69327 2007-05-28  Bruno Haible  <bruno@clisp.org>
69328
69329         * gnulib-tool (func_import): Remember the --with-tests command-line
69330         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69331         Reported by Eric Blake.
69332
69333 2007-05-28  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/ftell-tests: New file.
69336         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69337         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69338
69339         * lib/ftell.c: New file.
69340         * modules/ftell: New file.
69341         * m4/ftell.m4: New file.
69342         * doc/functions/ftell.texi: Update.
69343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69344         REPLACE_FTELL.
69345         * lib/stdio_.h (rpl_ftell): New declaration.
69346         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69347         REPLACE_FTELL.
69348
69349 2007-05-28  Eric Blake  <ebb9@byu.net>
69350
69351         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69352
69353 2007-05-28  Bruno Haible  <bruno@clisp.org>
69354
69355         * modules/fseek-tests: New file.
69356         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69357         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69358
69359         * lib/fseek.c: New file.
69360         * modules/fseek: New file.
69361         * m4/fseek.m4: New file.
69362         * doc/functions/fseek.texi: Update.
69363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69364         REPLACE_FSEEK.
69365         * lib/stdio_.h (rpl_fseek): New declaration.
69366         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69367         REPLACE_FSEEK.
69368
69369 2007-05-28  Bruno Haible  <bruno@clisp.org>
69370
69371         * lib/stdio_.h (fflush): More comments.
69372
69373 2007-05-28  Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69376         runtime test.
69377
69378 2007-05-28  Eric Blake  <ebb9@byu.net>
69379
69380         Improve lseek module.
69381         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69382         * lib/unistd_.h (lseek): Scale back link warning message.
69383         * tests/test-lseek.c: Beef up test.
69384         * tests/test-lseek.sh: Exercise more facets of lseek.
69385         Reported by Bruno Haible.
69386
69387 2007-05-28  Bruno Haible  <bruno@clisp.org>
69388
69389         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69390         to define.
69391
69392 2007-05-27  Bruno Haible  <bruno@clisp.org>
69393
69394         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69395
69396 2007-05-27  Bruno Haible  <bruno@clisp.org>
69397
69398         * modules/openmp: New file.
69399         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69400         Noah Misch.
69401
69402 2007-05-26  Bruno Haible  <bruno@clisp.org>
69403
69404         * modules/chdir-long (Depends-on): Add fchdir.
69405         * modules/chdir-safer (Depends-on): Likewise.
69406         * modules/fts (Depends-on): Likewise.
69407         * modules/fts-lgpl (Depends-on): Likewise.
69408         * modules/openat (Depends-on): Likewise.
69409         * modules/savewd (Depends-on): Likewise.
69410
69411 2007-05-24  Eric Blake  <ebb9@byu.net>
69412
69413         Fix lseek on mingw.
69414         * modules/lseek: New module.
69415         * m4/lseek.m4: New file.
69416         * lib/lseek.c: New file.
69417         * modules/lseek-tests: New file.
69418         * tests/test-lseek.c: New file.
69419         * tests/test-lseek.sh: New file.
69420         * MODULES.html.sh: Document lseek module.
69421         * modules/fflush (Depends-on): Add lseek, fseeko.
69422         * modules/fseeko (Depends-on): Likewise.
69423         * modules/ftello (Depends-on): Likewise.
69424         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69425         broken.
69426         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69427         broken.
69428         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69429         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69430         * lib/ftello.c (rpl_ftello): Likewise.
69431         * tests/test-fseeko.c (main): Test this.
69432         * tests/test-fseeko.sh: Likewise.
69433         * tests/test-ftello.c (main): Likewise.
69434         * tests/test-ftello.sh: Likewise.
69435         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69436         implies replacing fseek.
69437         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69438         HAVE_FTELLO.
69439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69440         * modules/unistd (Makefile.am): Likewise.
69441         * lib/unistd_.h (lseek): Declare a replacement.
69442         * doc/functions/lseek.texi (lseek): Document this fix.
69443         * doc/functions/fseek.texi (fseek): Likewise.
69444         * doc/functions/ftell.texi (ftell): Likewise.
69445
69446 2007-05-24  Bruno Haible  <bruno@clisp.org>
69447
69448         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69449         in the printed representation of a NaN.
69450         * tests/test-vasprintf-posix.c (test_function): Likewise.
69451         * tests/test-snprintf-posix.h (test_function): Likewise.
69452         * tests/test-sprintf-posix.h (test_function): Likewise.
69453         Reported by Eric Blake.
69454
69455 2007-05-23  Eric Blake  <ebb9@byu.net>
69456
69457         Fix fseeko/ftello on cygwin 1.5.24.
69458         * doc/functions/fseeko.texi (fseeko): Document the fix.
69459         * doc/functions/ftello.texi (ftello): Document the fix.
69460         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69461         * doc/functions/stdout.text (stdout): New file.
69462         * doc/functions/stderr.text (stderr): New file.
69463         * doc/gnulib.texi (Function Substitutes): Use new files.
69464         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69465         prior to 1.7.0.
69466         * tests/test-ftello.c (main): Likewise for ftello.
69467         * tests/test-fseeko.sh: New file.
69468         * tests/test-ftello.sh: New file.
69469         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69470         with seekable stdin.
69471         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69472         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69473         (gl_REPLACE_FSEEKO): New macro.
69474         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69475         * modules/fseeko (Files): Distribute fseeko.c.
69476         * modules/ftello (Files): Distribute ftello.c.
69477         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69478         mode.
69479         * lib/ftello.c (rpl_ftello): New file.
69480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69481         fseeko, ftello.
69482         (gl_STDIN_LARGE_OFFSET): New macro.
69483         * modules/stdio (Makefile.am): Perform the replacement.
69484         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69485
69486 2007-05-23  Bruno Haible  <bruno@clisp.org>
69487
69488         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69489         GNULIB_POSIXCHECK is defined.
69490
69491 2007-05-21  Bruno Haible  <bruno@clisp.org>
69492
69493         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69494         Check also the output for NaN arguments. When cross-compiling, guess
69495         no on IRIX.
69496         * lib/vasnprintf.c: Update comments.
69497         * tests/test-vasnprintf-posix.c (strisnan): New function.
69498         (test_function): Use it.
69499         * tests/test-vasprintf-posix.c (strisnan): New function.
69500         (test_function): Use it.
69501         * tests/test-snprintf-posix.h (strisnan): New function.
69502         (test_function): Use it.
69503         * tests/test-sprintf-posix.h (strisnan): New function.
69504         (test_function): Use it.
69505         Reported by Eric Blake.
69506
69507 2007-05-20  Bruno Haible  <bruno@clisp.org>
69508
69509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69510         numbers that fails on BeOS.
69511         * doc/functions/frexpl.texi: Update.
69512
69513 2007-05-20  Jim Meyering  <jim@meyering.net>
69514
69515         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69516         forced upon us by glibc-2.6.
69517
69518 2007-05-20  Bruno Haible  <bruno@clisp.org>
69519
69520         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69521         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69522         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69523         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69524         NEED_PRINTF_INFINITE.
69525         (is_infinitel): New function.
69526         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69528         gl_PREREQ_VASNPRINTF_INFINITE.
69529         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69531         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69532         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69533         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69534         gl_PREREQ_VASNPRINTF_INFINITE.
69535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69542         * doc/functions/fprintf.texi: Update.
69543         * doc/functions/printf.texi: Update.
69544         * doc/functions/snprintf.texi: Update.
69545         * doc/functions/sprintf.texi: Update.
69546         * doc/functions/vfprintf.texi: Update.
69547         * doc/functions/vprintf.texi: Update.
69548         * doc/functions/vsnprintf.texi: Update.
69549         * doc/functions/vsprintf.texi: Update.
69550
69551 2007-05-20  Bruno Haible  <bruno@clisp.org>
69552
69553         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69554         was not found in libc.
69555         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69556
69557 2007-05-20  Bruno Haible  <bruno@clisp.org>
69558
69559         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69560         printed as "-nan" instead of "nan".
69561         * tests/test-vasprintf-posix.c (test_function): Likewise.
69562         * tests/test-snprintf-posix.h (test_function): Likewise.
69563         * tests/test-sprintf-posix.h (test_function): Likewise.
69564         Needed for HP-UX 11.
69565
69566 2007-05-20  Jim Meyering  <jim@meyering.net>
69567
69568         Fix buggy test for the fchownat-deref bug.
69569         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69570         symlink required for the run-test.  Without it, this test would
69571         always declare that fchownat doesn't work, and client code would
69572         unnecessarily use the replacement function with fixed libc.
69573         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69574         Reported by Greg Schafer.
69575
69576 2007-05-19  Bruno Haible  <bruno@clisp.org>
69577
69578         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69579         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69580         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69581         Needed for IRIX 6.5 and Solaris 2.5.1.
69582
69583 2007-05-19  Bruno Haible  <bruno@clisp.org>
69584
69585         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69586         (test_function): Skip tests involving -0.0 on platforms where
69587         -0.0 = 0.0.
69588         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69589         (test_function): Skip tests involving -0.0 on platforms where
69590         -0.0 = 0.0.
69591         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69592         (test_function): Skip tests involving -0.0 on platforms where
69593         -0.0 = 0.0.
69594         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69595         (test_function): Skip tests involving -0.0 on platforms where
69596         -0.0 = 0.0.
69597         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69598         tests.
69599         * tests/test-printf-posix.h (test_function): Likewise.
69600         * tests/test-printf-posix.output: Remove all -0.0 related results.
69601         Needed for IRIX 6.5.
69602
69603 2007-05-19  Bruno Haible  <bruno@clisp.org>
69604
69605         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69606         printed as "nan0x7fffffff" instead of "nan".
69607         * tests/test-vasprintf-posix.c (test_function): Likewise.
69608         * tests/test-snprintf-posix.h (test_function): Likewise.
69609         * tests/test-sprintf-posix.h (test_function): Likewise.
69610         * tests/test-fprintf-posix.h (NaN): Remove macro.
69611         (test_function): Remove all NaN related tests.
69612         * tests/test-printf-posix.h (NaN): Remove macro.
69613         (test_function): Remove all NaN related tests.
69614         * tests/test-printf-posix.output: Remove all NaN related results.
69615         Needed for IRIX 6.5.
69616
69617 2007-05-19  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69621
69622 2007-05-19  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/float_.h: New file.
69625         * m4/float_h.m4: New file.
69626         * modules/float: New file.
69627         * modules/isnanl (Dependencies): Add float.
69628         * modules/isnanl-nolibm (Dependencies): Likewise.
69629         * modules/mathl (Dependencies): Likewise.
69630         * modules/printf-frexpl (Dependencies): Likewise.
69631         * modules/signbit (Dependencies): Likewise.
69632         * modules/vasnprintf (Dependencies): Likewise.
69633         * doc/headers/float.texi: Update.
69634
69635 2007-05-19  Jim Meyering  <jim@meyering.net>
69636
69637         * lib/utimens.c (gl_futimens): Rename from futimens,
69638         now that glibc-2.6 declares futimens.
69639         * lib/utimens.h: Likewise.
69640
69641 2007-05-19  Bruno Haible  <bruno@clisp.org>
69642
69643         Avoid test failures on mingw.
69644         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69645         * tests/test-printf-posix.sh: Likewise.
69646         * tests/test-vfprintf-posix.sh: Likewise.
69647         * tests/test-vprintf-posix.sh: Likewise.
69648
69649 2007-05-19  Bruno Haible  <bruno@clisp.org>
69650
69651         Fix *printf result for NaN, Inf, -0.0 on mingw.
69652         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69653         * lib/vasnprintf.c: Include math.h and isnan.h.
69654         (is_infinite_or_zero): New function.
69655         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69656         values in the %f, %F, %e, %E, %g, %G directives.
69657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69659         gl_PRINTF_INFINITE and test its result. Invoke
69660         gl_PREREQ_VASNPRINTF_INFINITE.
69661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69668         * doc/functions/fprintf.texi: Update.
69669         * doc/functions/printf.texi: Update.
69670         * doc/functions/snprintf.texi: Update.
69671         * doc/functions/sprintf.texi: Update.
69672         * doc/functions/vfprintf.texi: Update.
69673         * doc/functions/vprintf.texi: Update.
69674         * doc/functions/vsnprintf.texi: Update.
69675         * doc/functions/vsprintf.texi: Update.
69676
69677 2007-05-19  Bruno Haible  <bruno@clisp.org>
69678
69679         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69680         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69681         Instead of multiplying with 10^k, set extra_zeroes to k.
69682         (scale10_round_long_double): Remove function.
69683
69684 2007-05-18  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69687         introduced on 2007-05-06.
69688
69689 2007-05-18  Bruno Haible  <bruno@clisp.org>
69690
69691         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69692         %g directives.
69693         * tests/test-vasprintf-posix.c (test_function): Likewise.
69694         * tests/test-snprintf-posix.h (test_function): Likewise.
69695         * tests/test-sprintf-posix.h (test_function): Likewise.
69696
69697 2007-05-18  Bruno Haible  <bruno@clisp.org>
69698
69699         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69700         (strmatch): New function.
69701         (test_function): Test the %f directive on numbers of various exponents.
69702         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69703         (strmatch): New function.
69704         (test_function): Test the %f directive on numbers of various exponents.
69705         * tests/test-snprintf-posix.h (strmatch): New function.
69706         (test_function): Test the %f directive on numbers of various exponents.
69707         * tests/test-sprintf-posix.h (strmatch): New function.
69708         (test_function): Test the %f directive on numbers of various exponents.
69709         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69710         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69711         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69712         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69713
69714 2007-05-18  Bruno Haible  <bruno@clisp.org>
69715
69716         Add support for 'long double' number output.
69717         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69718         * lib/vasnprintf.c: Include math.h and float+.h.
69719         (mp_limb_t): New type.
69720         (GMP_LIMB_BITS): New macro.
69721         (mp_twolimb_t): New type.
69722         (GMP_TWOLIMB_BITS): New macro.
69723         (mpn_t): New type.
69724         (multiply, divide, convert_to_decimal, decode_long_double,
69725         scale10_round_long_double, scale10_round_decimal_long_double,
69726         floorlog10l): New functions.
69727         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69728         for the %f, %F, %e, %E, %g, %G directives.
69729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69730         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69731         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69732         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69733         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69734         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69740         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69741         * modules/snprintf-posix (Depends-on): Likewise.
69742         * modules/sprintf-posix (Depends-on): Likewise.
69743         * modules/vasnprintf-posix (Depends-on): Likewise.
69744         * modules/vasprintf-posix (Depends-on): Likewise.
69745         * modules/vfprintf-posix (Depends-on): Likewise.
69746         * modules/vsnprintf-posix (Depends-on): Likewise.
69747         * modules/vsprintf-posix (Depends-on): Likewise.
69748         * modules/vasnprintf (Files): Add lib/float+.h.
69749         * doc/functions/fprintf.texi: Update.
69750         * doc/functions/printf.texi: Update.
69751         * doc/functions/snprintf.texi: Update.
69752         * doc/functions/sprintf.texi: Update.
69753         * doc/functions/vfprintf.texi: Update.
69754         * doc/functions/vprintf.texi: Update.
69755         * doc/functions/vsnprintf.texi: Update.
69756         * doc/functions/vsprintf.texi: Update.
69757
69758 2007-05-18  Bruno Haible  <bruno@clisp.org>
69759
69760         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69761
69762 2007-05-18  Bruno Haible  <bruno@clisp.org>
69763
69764         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69765         for printing 64-bit integers. Needed for mingw.
69766
69767 2007-05-18  Bruno Haible  <bruno@clisp.org>
69768
69769         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69770         gl_FUNC_FREXPL_WORKS.
69771         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69772
69773 2007-05-18  Bruno Haible  <bruno@clisp.org>
69774
69775         * modules/frexpl-nolibm-tests: New file.
69776
69777         * modules/frexpl-nolibm: New file.
69778         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69779
69780 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69783         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69784         GCC 4.2, which otherwise issues a lot of warnings.
69785         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69786         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69787         Likewise.
69788         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69789         * modules/iconv_open (iconv.h): Likewise.
69790         * modules/locale (locale.h): Likewise.
69791         * modules/netinet_in (netinet/in.h): Likewise.
69792         * modules/sys_select (sys_select.h): Likewise.
69793         * modules/sys_socket (sys/socket.h): Likewise.
69794         * modules/sys_stat (sys/stat.h): Likewise.
69795         * modules/sysexits (sysexits.h): Likewise.
69796         * modules/unistd (unistd.h): Likewise.
69797
69798 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69799
69800         * modules/closein-tests (Makefile.am): Distribute
69801         `test-closein.sh'.
69802
69803 2007-05-17  Bruno Haible  <bruno@clisp.org>
69804
69805         * tests/test-printf-posix.output: Renamed from
69806         tests/test-fprintf-posix.out.
69807         * modules/fprintf-posix-tests: Update.
69808         * modules/printf-posix-tests: Update.
69809         * modules/vfprintf-posix-tests: Update.
69810         * modules/vprintf-posix-tests: Update.
69811         * tests/test-fprintf-posix.sh: Update.
69812         * tests/test-printf-posix.sh: Update.
69813         * tests/test-vfprintf-posix.sh: Update.
69814         * tests/test-vprintf-posix.sh: Update.
69815         Reported by Ralf Wildenhues.
69816
69817 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69820         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69821         GCC 4.2, which otherwise issues a lot of warnings.
69822         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69823         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69824         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69825         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69826         it should no longer be needed.
69827         * lib/string_.h: Likewise.
69828         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69829         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69830         * modules/inttypes (inttypes.h): Likewise.
69831         * modules/math (math.h): Likewise.
69832         * modules/search (search.h): Likewise.
69833         * modules/signal (signal.h): Likewise.
69834         * modules/stdint (stdint.h): Likewise.
69835         * modules/stdio (stdio.h): Likewise.
69836         * modules/stdlib (stdlib.h): Likewise.
69837         * modules/string (string.h): Likewise.
69838         * modules/sys_time (sys/time.h): Likewise.
69839         * modules/time (time.h): Likewise.
69840         * modules/wchar (wchar.h): Likewise.
69841         * modules/wctype (wtype.h): Likewise.
69842
69843 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69844
69845         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69846
69847 2007-05-13  Bruno Haible  <bruno@clisp.org>
69848
69849         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69850         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69851         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69852         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69853         (gl_PREREQ_STRTOK_R): Don't require it here.
69854
69855 2007-05-13  Bruno Haible  <bruno@clisp.org>
69856
69857         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69858         when used in C++ mode.
69859
69860 2007-05-12  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/linebuffer.h: Tweak doc.
69863         * lib/linebuffer.c: Likewise.
69864
69865 2007-05-12  James Youngman  <jay@gnu.org>
69866
69867         * lib/linebuffer.c (readlinebuffer_delim): New function,
69868         like readlinebuffer, but use a caller-specified delimiter.
69869         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69870         as the delimiter.
69871         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69872
69873 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69874
69875         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69876         * modules/openat (Files): Remove openat-die.c.
69877         (Depends-on): Add openat-die.
69878         * modules/openat-die: New module.
69879
69880 2007-05-06  Bruno Haible  <bruno@clisp.org>
69881
69882         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69883         Update with info about Cygwin.
69884         * doc/functions/fprintf.texi: Update.
69885         * doc/functions/printf.texi: Update.
69886         * doc/functions/snprintf.texi: Update.
69887         * doc/functions/sprintf.texi: Update.
69888         * doc/functions/vfprintf.texi: Update.
69889         * doc/functions/vprintf.texi: Update.
69890         * doc/functions/vsnprintf.texi: Update.
69891         * doc/functions/vsprintf.texi: Update.
69892         Reported by Eric Blake.
69893
69894 2007-05-06  Bruno Haible  <bruno@clisp.org>
69895
69896         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69897         padding ourselves for the floating-point directives.
69898         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69901         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69902         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69910         * tests/test-snprintf-posix.h (test_function): Also check the width
69911         and some flags in the %f directive.
69912         * tests/test-sprintf-posix.h (test_function): Likewise.
69913         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69914         * tests/test-vasprintf-posix.c (test_function): Likewise.
69915         * doc/functions/fprintf.texi: Update.
69916         * doc/functions/printf.texi: Update.
69917         * doc/functions/snprintf.texi: Update.
69918         * doc/functions/sprintf.texi: Update.
69919         * doc/functions/vfprintf.texi: Update.
69920         * doc/functions/vprintf.texi: Update.
69921         * doc/functions/vsnprintf.texi: Update.
69922         * doc/functions/vsprintf.texi: Update.
69923
69924 2007-05-06  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69927         pass the ' flag character to sprintf or snprintf.
69928         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69931         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69932         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69936         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69937         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69940         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69941         flag.
69942         * tests/test-sprintf-posix.h (test_function): Likewise.
69943         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69944         * tests/test-vasprintf-posix.c (test_function): Likewise.
69945         * doc/functions/fprintf.texi: Update.
69946         * doc/functions/printf.texi: Update.
69947         * doc/functions/snprintf.texi: Update.
69948         * doc/functions/sprintf.texi: Update.
69949         * doc/functions/vfprintf.texi: Update.
69950         * doc/functions/vprintf.texi: Update.
69951         * doc/functions/vsnprintf.texi: Update.
69952         * doc/functions/vsprintf.texi: Update.
69953
69954 2007-05-01  Bruno Haible  <bruno@clisp.org>
69955
69956         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69957
69958 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69961         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69962
69963 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69966         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69967         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69968
69969 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69970
69971         * lib/argp-help.c (struct hol_entry): New member `ord'.
69972         (HOL_ENTRY_PTRCMP): Use ord for comparison
69973         (hol_sort): Initialize ord.
69974
69975 2007-05-01  Bruno Haible  <bruno@clisp.org>
69976
69977         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69978         Reported by Eric Blake.
69979         * doc/gnulib.texi (Function Substitutes): Update.
69980
69981 2007-05-01  Bruno Haible  <bruno@clisp.org>
69982
69983         * doc/functions.texi: Remove file, now redundant through
69984         doc/functions/*.texi.
69985
69986 2007-05-01  Bruno Haible  <bruno@clisp.org>
69987
69988         * modules/argp (Depends-on): Add sleep.
69989
69990 2007-05-01  Bruno Haible  <bruno@clisp.org>
69991
69992         * modules/sleep-tests: New file.
69993         * tests/test-sleep.c: New file.
69994
69995         * modules/sleep: New file.
69996         * lib/sleep.c: New file.
69997         * m4/sleep.m4: New file.
69998         * lib/unistd_.h (sleep): New declaration.
69999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70000         HAVE_SLEEP.
70001         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70002         * doc/functions/sleep.texi: Document the sleep module.
70003
70004 2007-05-01  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/sigprocmask.h: Remove file.
70007         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70008         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70010         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70011         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70012         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70013         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70014         HAVE_SIGSET_T as a shell variable.
70015         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70016         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70017         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70018         (Depends-on): Add signal. Remove verify.
70019         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70020         (Include): Mention <signal.h> instead of sigprocmask.h.
70021         * NEWS: Mention the change.
70022         * lib/fatal-signal.c: Don't include sigprocmask.h.
70023
70024 2007-05-01  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/signal: New file.
70027         * lib/signal_.h: New file.
70028         * m4/signal_h.m4: New file.
70029
70030 2007-05-01  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70033         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70034         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70035         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70036
70037 2007-05-01  Bruno Haible  <bruno@clisp.org>
70038
70039         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70040         configure time.
70041         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70042         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70043         * modules/sys_stat (Makefile.am): Substitute their values into
70044         sys/stat.h.
70045
70046 2007-05-01  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70049         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70050         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70051
70052 2007-05-01  Bruno Haible  <bruno@clisp.org>
70053
70054         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70055         'assert' module here.
70056
70057 2007-05-01  Bruno Haible  <bruno@clisp.org>
70058
70059         * doc/functions/*.texi: New files.
70060         * doc/functions/google-ranking.txt: New file.
70061         * doc/gnulib.texi (Function Substitutes): New chapter.
70062         (ctime, inet_ntoa): Remove sections.
70063         * doc/ctime.texi: Remove file.
70064         * doc/inet_ntoa.texi: Remove file.
70065         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70066         dependencies.
70067         (%.info): New rule, specifying a --reference-limit.
70068
70069 2007-05-01  Bruno Haible  <bruno@clisp.org>
70070
70071         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70072
70073 2007-05-01  Bruno Haible  <bruno@clisp.org>
70074
70075         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70076         the portability of 'mkdir' to mingw systems.
70077
70078 2007-05-01  Bruno Haible  <bruno@clisp.org>
70079
70080         * doc/headers/google-ranking.txt: New file.
70081
70082 2007-04-30  Eric Blake  <ebb9@byu.net>
70083
70084         Prefer fseeko to fseek.
70085         * modules/getpass (Depends-on): Add fseeko.
70086         * lib/getpass.c (getpass): Use fseeko, not fseek.
70087
70088 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70089
70090         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70091         assumes the sorting is stable, while most qsort implementations
70092         are not.  Use argument addresses to ensure they never compare as
70093         equal.
70094
70095         * tests/test-argp-2.sh (usage-indent test): Fix output
70096         (func_compare): Restore diff options
70097         * tests/test-argp.c: Restore #include "progname.h"
70098
70099 2007-04-29  Bruno Haible  <bruno@clisp.org>
70100
70101         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70103         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70105         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70106         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70107         (TESTS, check_PROGRAMS): Add test-snprintf.
70108         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70109         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70110         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70111         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70112         assertions that fail on HP-UX, OSF/1, or IRIX.
70113         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70114
70115 2007-04-29  Bruno Haible  <bruno@clisp.org>
70116
70117         * MODULES.html.sh (posix_functions): Remove 'contents'.
70118
70119 2007-04-29  Karl Berry  <karl@gnu.org>
70120
70121         * config/srclist.txt (gendocs_template_min): new entry.
70122
70123 2007-04-29  Bruno Haible  <bruno@clisp.org>
70124
70125         Work around fpurge bug on BSD systems.
70126         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70127         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70128         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70129         fpurge to rpl_fpurge if the system already has this function.
70130         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70131         the case where the system already has this function. Correct invariants
70132         on BSD systems.
70133         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70134         BSD systems.
70135
70136 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70137
70138         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70139         proposed by Sven Verdoolaege.
70140
70141         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70142         options.
70143         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70144         (usage and help tests): Update
70145
70146 2007-04-29  Bruno Haible  <bruno@clisp.org>
70147
70148         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70149         Print more information in case of failure. Disable a test on BeOS.
70150
70151 2007-04-29  Bruno Haible  <bruno@clisp.org>
70152
70153         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70154         This helps debugging on systems on which no gdb is available.
70155
70156 2007-04-29  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/freading.h: Improve comments.
70159         * lib/fwriting.h: Likewise.
70160         * tests/test-freading.c (main): Don't check freading immediately after
70161         repositioning. Needed for glibc.
70162
70163 2007-04-29  Bruno Haible  <bruno@clisp.org>
70164
70165         * lib/freading.c (freading): Trivial simplification.
70166
70167 2007-04-28  Bruno Haible  <bruno@clisp.org>
70168
70169         * tests/test-fwriting.c (main): Also test the interaction between
70170         fflush and fwriting.
70171         * modules/fwriting-tests (Depends-on): Add fflush.
70172
70173         * tests/test-freading.c (main): Also test the interaction between
70174         fflush and freading.
70175         * modules/freading-tests (Depends-on): Add fflush.
70176
70177 2007-04-28  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70180         fseeko and ftello.
70181         Suggested by Eric Blake.
70182
70183 2007-04-28  Jim Meyering  <jim@meyering.net>
70184
70185         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70186         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70187         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70188
70189 2007-04-27  Eric Blake  <ebb9@byu.net>
70190
70191         * doc/headers/assert.texi (assert.h): Document assert module use.
70192
70193 2007-04-27  Bruno Haible  <bruno@clisp.org>
70194
70195         * doc/headers/*.texi: New files.
70196         * doc/gnulib.texi (Header File Substitutes): New chapter.
70197         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70198         dependencies.
70199         (standards.info ,standards.html, standards.dvi): Update dependencies.
70200         (mostlyclean, clean): New targets.
70201
70202 2007-04-27  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70205         * modules/sysexits (Files, Makefile.am): Update.
70206
70207         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70208         * modules/sys_socket (Files, Makefile.am): Update.
70209
70210         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70211         * modules/sys_stat (Files, Makefile.am): Update.
70212
70213 2007-04-27  Eric Blake  <ebb9@byu.net>
70214
70215         * lib/freading.h: Improve comments.
70216         * lib/fwriting.h: Likewise.
70217         * lib/fflush.c: Likewise.
70218
70219         Fix closein for mingw.
70220         * modules/closein-tests: Add tests for closein.
70221         * tests/test-closein.c: New file.
70222         * tests/test-closein.sh: Likewise.
70223         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70224         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70225
70226 2007-04-27  Bruno Haible  <bruno@clisp.org>
70227
70228         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70229         version is < 6.
70230         * lib/math_.h [__DECC]: Likewise.
70231         * lib/stdio_.h [__DECC]: Likewise.
70232         * lib/stdlib_.h [__DECC]: Likewise.
70233         * lib/string_.h [__DECC]: Likewise.
70234         * lib/time_.h [__DECC]: Likewise.
70235         * lib/wchar_.h [__DECC]: Likewise.
70236         * lib/wctype_.h [__DECC]: Likewise.
70237
70238 2007-04-27  Bruno Haible  <bruno@clisp.org>
70239
70240         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70241
70242 2007-04-27  Bruno Haible  <bruno@clisp.org>
70243
70244         * lib/fflush.c: Add comments.
70245         * modules/fpurge-tests (Depends-on): Add fflush.
70246         * modules/freadable-tests (Depends-on): Likewise.
70247         * modules/fwritable-tests (Depends-on): Likewise.
70248
70249 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70250
70251         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70252         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70253         Report by Bruno Haible <bruno@clisp.org>.
70254
70255 2007-04-26  Eric Blake  <ebb9@byu.net>
70256
70257         Fix fflush on mingw.
70258         * modules/fflush (Depends-on): Add freading.
70259         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70260         but unread data.
70261
70262 2007-04-26  Eric Blake  <ebb9@byu.net>
70263         and Bruno Haible  <bruno@clisp.org>
70264
70265         Implement freading and fwriting.
70266         * lib/freading.c: New file.
70267         * lib/freading.h: Likewise.
70268         * m4/freading.m4: Likewise.
70269         * modules/freading: Likewise.
70270         * modules/freading-tests: Likewise.
70271         * tests/test-freading.c: Likewise.
70272         * lib/fwriting.c: New file.
70273         * lib/fwriting.h: Likewise.
70274         * m4/fwriting.m4: Likewise.
70275         * modules/fwriting: Likewise.
70276         * modules/fwriting-tests: Likewise.
70277         * tests/test-fwriting.c: Likewise.
70278         * MODULES.html.sh (File stream based Input/Output): Mention them.
70279
70280 2007-04-26  Bruno Haible  <bruno@clisp.org>
70281
70282         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70283         'long' when we assume it.
70284         Suggested by Eric Blake.
70285
70286 2007-04-26  Bruno Haible  <bruno@clisp.org>
70287
70288         Ensure fseeko, ftello are declared on glibc systems.
70289         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70290         * modules/fseeko (configure.ac-early): Likewise.
70291         * modules/ftello (configure.ac-early): Likewise.
70292         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70293         AC_FUNC_FSEEKO for this.
70294         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70295         (gl_CHECK_FSEEKO): Remove macro.
70296
70297 2007-04-26  Bruno Haible  <bruno@clisp.org>
70298
70299         * tests/test-fflush.c (main): Also check the ftell result after
70300         fflush and fseek/fseeko.
70301         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70302         file descriptor position cache in the stream.
70303         * lib/fseeko.c (rpl_fseeko): Likewise.
70304
70305 2007-04-26  Bruno Haible  <bruno@clisp.org>
70306
70307         * modules/fflush-tests (Depends-on): Add fseeko.
70308
70309 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70310             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70311
70312         * lib/argz_.h: ensure error_t definition is obtained in same
70313         mechanism system argz.h would have.
70314         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70315         argz facilities are known bad.  Err on the side of caution if
70316         cross-compiling.
70317
70318 2007-04-25  Eric Blake  <ebb9@byu.net>
70319
70320         * lib/fpurge.c (includes): Use stdlib.h for free.
70321         * tests/test-fflush.c (main): Also test fflush-fseeko.
70322
70323 2007-04-25  Bruno Haible  <bruno@clisp.org>
70324
70325         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70326         * lib/fseeko.c: New file.
70327         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70328         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70329         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70330         gl_FUNC_FSEEKO.
70331         (gl_FUNC_FSEEKO): Invoke it.
70332         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70333         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70334         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70335
70336 2007-04-25  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/fflush (Depends-on): Add ftello.
70339
70340 2007-04-25  Bruno Haible  <bruno@clisp.org>
70341
70342         * modules/ftello-tests: New file.
70343         * tests/test-ftello.c: New file.
70344
70345         * modules/ftello: New file.
70346         * m4/ftello.m4: New file.
70347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70348         HAVE_FTELLO.
70349         * lib/stdio_.h (ftello): New declaration.
70350         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70351         HAVE_FTELLO.
70352
70353 2007-04-25  Bruno Haible  <bruno@clisp.org>
70354
70355         * modules/fseeko-tests: New file.
70356         * tests/test-fseeko.c: New file.
70357
70358         * modules/fseeko: New file.
70359         * m4/fseeko.m4: New file.
70360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70361         HAVE_FSEEKO.
70362         * lib/stdio_.h (fseeko): New declaration.
70363         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70364         HAVE_FSEEKO.
70365
70366 2007-04-25  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70369
70370 2007-04-25  Bruno Haible  <bruno@clisp.org>
70371
70372         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70373         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70374         * tests/test-unistd.c: Likewise.
70375         * tests/test-fcntl.c: Likewise.
70376
70377 2007-04-23  Eric Blake  <ebb9@byu.net>
70378
70379         * lib/fflush.c: Fix missing include.
70380         Reported by Bruno Haible.
70381
70382 2007-04-23  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70385         Reported by Eric Blake.
70386
70387 2007-04-23  Bruno Haible  <bruno@clisp.org>
70388
70389         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70390
70391 2007-04-23  Bruno Haible  <bruno@clisp.org>
70392
70393         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70394
70395 2007-04-23  Bruno Haible  <bruno@clisp.org>
70396
70397         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70398         Needed on HP-UX 11.
70399
70400 2007-04-16  Eric Blake  <ebb9@byu.net>
70401
70402         Make fflush rely on fpurge.
70403         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70404         open coding all variants.
70405         * modules/fflush (Depends-on): Add fpurge and unistd.
70406         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70408
70409         Fix --with-tests compilation on cygwin.
70410         * modules/argmatch-tests (Makefile.am): List gnulib library first
70411         in LDADD.
70412         * modules/argp-tests (Makefile.am): Likewise.
70413         * modules/array-list-tests (Makefile.am): Likewise.
70414         * modules/array-oset-tests (Makefile.am): Likewise.
70415         * modules/avltree-list-tests (Makefile.am): Likewise.
70416         * modules/avltree-oset-tests (Makefile.am): Likewise.
70417         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70418         * modules/carray-list-tests (Makefile.am): Likewise.
70419         * modules/dirname-tests (Makefile.am): Likewise.
70420         * modules/frexp-tests (Makefile.am): Likewise.
70421         * modules/isnanl-tests (Makefile.am): Likewise.
70422         * modules/linked-list-tests (Makefile.am): Likewise.
70423         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70424         * modules/lock-tests (Makefile.am): Likewise.
70425         * modules/rbtree-list-tests (Makefile.am): Likewise.
70426         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70427         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70428         * modules/tls-tests (Makefile.am): Likewise.
70429         * modules/tsearch-tests (Makefile.am): Likewise.
70430         * modules/xvasprintf-tests (Makefile.am): Likewise.
70431
70432         Fix fpurge for cygwin.
70433         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70434         value.
70435         * modules/fpurge-tests (Depends-on): Clean up trash.
70436
70437 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70438
70439         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70440
70441         * m4/autobuild.m4: Re-indent.
70442
70443 2007-04-13  Bruno Haible  <bruno@clisp.org>
70444
70445         * modules/fpurge-tests: New file.
70446         * tests/test-fpurge.c: New file.
70447
70448         * modules/fpurge: New file.
70449         * lib/fpurge.h: New file.
70450         * lib/fpurge.c: New file.
70451         * m4/fpurge.m4: New file.
70452
70453 2007-04-13  Bruno Haible  <bruno@clisp.org>
70454
70455         * modules/fbufmode-tests: New file.
70456         * tests/test-fbufmode.c: New file.
70457
70458         * modules/fbufmode: New file.
70459         * lib/fbufmode.h: New file.
70460         * lib/fbufmode.c: New file.
70461         * m4/fbufmode.m4: New file.
70462
70463 2007-04-13  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/fwritable-tests: New file.
70466         * tests/test-fwritable.c: New file.
70467
70468         * modules/fwritable: New file.
70469         * lib/fwritable.h: New file.
70470         * lib/fwritable.c: New file.
70471         * m4/fwritable.m4: New file.
70472
70473 2007-04-13  Bruno Haible  <bruno@clisp.org>
70474
70475         * modules/freadable-tests: New file.
70476         * tests/test-freadable.c: New file.
70477
70478         * modules/freadable: New file.
70479         * lib/freadable.h: New file.
70480         * lib/freadable.c: New file.
70481         * m4/freadable.m4: New file.
70482
70483 2007-04-13  Bruno Haible  <bruno@clisp.org>
70484
70485         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70486         MOSTLYCLEANFILES.
70487
70488 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70491         gzip bootstrap.conf to avoid dragging in i18n machinery.
70492         (gnulib_tool_option): Use it.
70493
70494 2007-04-13  Bruno Haible  <bruno@clisp.org>
70495
70496         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70497         %F directives.
70498         * tests/test-vasprintf-posix.c (test_function): Likewise.
70499         * tests/test-snprintf-posix.h (test_function): Likewise.
70500         * tests/test-sprintf-posix.h (test_function): Likewise.
70501         * tests/test-fprintf-posix.h (test_function): Likewise.
70502         * tests/test-printf-posix.h (test_function): Likewise.
70503         * tests/test-fprintf-posix.out: Likewise.
70504
70505 2007-04-13  Bruno Haible  <bruno@clisp.org>
70506
70507         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70508         * modules/tls-tests (configure.ac): Likewise.
70509         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70510
70511 2007-04-13  Bruno Haible  <bruno@clisp.org>
70512
70513         * lib/tls.c (glthread_tls_get): Fix return type.
70514         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70515
70516 2007-04-12  Eric Blake  <ebb9@byu.net>
70517
70518         * modules/gettime (Depends-on): Remove gettime.
70519         Reported by Dmitry V. Levin.
70520
70521 2007-04-12  Bruno Haible  <bruno@clisp.org>
70522
70523         * modules/fflush (Include): Mention <stdio.h>.
70524         * modules/strtoimax (Include): Mention <inttypes.h>.
70525         * modules/strtoumax (Include): Likewise.
70526
70527 2007-04-12  Eric Blake  <ebb9@byu.net>
70528
70529         * .cvsignore: New file.
70530         * .gitignore: Likewise.
70531
70532 2007-04-12  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70535         not before, since $(LDADD) often contains libgnu.a.
70536         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70537         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70538         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70539         Needed on Cygwin.
70540
70541 2007-04-12  Eric Blake  <ebb9@byu.net>
70542
70543         Work around glibc's failure to flush stdin on fclose.
70544         * lib/closein.c (close_stdin): Flush stdin before closing.
70545
70546         Work around glibc's failure to reset seekable stdin on exit.
70547         * modules/closein: New module.
70548         * lib/closein.c: New file.
70549         * lib/closein.h: Likewise.
70550         * m4/closein.m4: Likewise.
70551         * MODULES.html.sh (File stream based Input/Output): Document it.
70552
70553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70554
70555         * gnulib-tool: Rename generated 'autobuild' script to
70556         'do-autobuild' in --create-megatestdir output.
70557
70558         * doc/gnulib.texi (Build robot for gnulib): Fix.
70559
70560 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70561
70562         * modules/sysexits (Depends-on): Add absolute-header.
70563
70564 2007-04-12  Eric Blake  <ebb9@byu.net>
70565
70566         No need to preserve errno on success.
70567         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70568         Reported by Bruno Haible.
70569
70570 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70571
70572         * MODULES.html.sh (Support for maintaining and releasing
70573         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70574
70575 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70576
70577         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70578
70579 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70580
70581         * modules/autobuild: New module.
70582
70583         * m4/autobuild.m4: New file.
70584
70585 2007-04-11  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70588         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70592         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70593         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70594         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70595         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70596         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70598         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70599         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70601         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70602         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70603         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70604         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70605         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70607         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70608         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70610         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70611         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70613         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70614         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70615         Reported by Eric Blake.
70616
70617 2007-04-11  Bruno Haible  <bruno@clisp.org>
70618
70619         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70620
70621 2007-04-10  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70624         for NaN and Infinity. Needed on FreeBSD 6.1.
70625         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70626         regarding results for "%010a" of Infinity and NaN.
70627         * tests/test-vasprintf-posix.c (test_function): Likewise.
70628         * tests/test-snprintf-posix.h (test_function): Likewise.
70629         * tests/test-sprintf-posix.h (test_function): Likewise.
70630         * tests/test-fprintf-posix.h (test_function): Likewise.
70631         * tests/test-printf-posix.h (test_function): Likewise.
70632         * tests/test-fprintf-posix.out: Likewise.
70633
70634 2007-04-10  Bruno Haible  <bruno@clisp.org>
70635
70636         * modules/locale-tests: New file.
70637         * tests/test-locale.c: New file.
70638
70639         * modules/locale: New file.
70640         * lib/locale_.h: New file.
70641         * m4/locale_h.m4: New file.
70642
70643 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70644             Bruno Haible  <bruno@clisp.org>
70645
70646         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70647         be determined, test for availability of the copysignf, copysign,
70648         copysignl functions.
70649         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70650         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70651         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70652
70653 2007-04-09  Eric Blake  <ebb9@byu.net>
70654
70655         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70656         * modules/stdio (Makefile.am): Support fflush.
70657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70658         * modules/fflush: New file.
70659         * lib/fflush.c: Likewise.
70660         * m4/fflush.m4: Likewise.
70661         * modules/fflush-tests: New test.
70662         * tests/test-fflush.c: Likewise.
70663         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70664
70665 2007-04-06  Bruno Haible  <bruno@clisp.org>
70666
70667         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70668         (VASNPRINTF): Use signbit for faster determination whether to print a
70669         minus sign.
70670         * modules/vasnprintf (Files): Remove lib/float+.h.
70671         * modules/fprintf-posix (Depends-on): Add signbit.
70672         * modules/snprintf-posix (Depends-on): Likewise.
70673         * modules/sprintf-posix (Depends-on): Likewise.
70674         * modules/vasnprintf-posix (Depends-on): Likewise.
70675         * modules/vasprintf-posix (Depends-on): Likewise.
70676         * modules/vfprintf-posix (Depends-on): Likewise.
70677         * modules/vsnprintf-posix (Depends-on): Likewise.
70678         * modules/vsprintf-posix (Depends-on): Likewise.
70679
70680 2007-04-06  Bruno Haible  <bruno@clisp.org>
70681
70682         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70683         * tests/test-frexpl.c (main): Likewise.
70684         * tests/test-ldexpl.c (main): Likewise.
70685         * modules/frexp-tests (Depends-on): Add signbit.
70686         * modules/frexpl-tests (Depdends-on): Likewise.
70687         * modules/ldexpl-tests (Depdends-on): Likewise.
70688
70689 2007-04-06  Bruno Haible  <bruno@clisp.org>
70690
70691         * modules/signbit-tests: New file.
70692         * tests/test-signbit.c: New file.
70693
70694         * modules/signbit: New file.
70695         * lib/signbitf.c: New file.
70696         * lib/signbitd.c: New file.
70697         * lib/signbitl.c: New file.
70698         * m4/signbit.m4: New file.
70699         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70700         (signbit): New macro.
70701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70702         REPLACE_SIGNBIT.
70703         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70704         REPLACE_FREXPL into math.h.
70705
70706 2007-04-06  Bruno Haible  <bruno@clisp.org>
70707
70708         * modules/isnanf-nolibm-tests: New file.
70709         * tests/test-isnanf.c: New file.
70710
70711         * modules/isnanf-nolibm: New file.
70712         * lib/isnanf.h: New file.
70713         * lib/isnanf.c: New file.
70714         * lib/isnan.c: Consider the USE_FLOAT macro.
70715         * m4/isnanf.m4: New file.
70716
70717 2007-04-06  Bruno Haible  <bruno@clisp.org>
70718
70719         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70720         (Link): New section.
70721
70722         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70723
70724 2007-04-06  Bruno Haible  <bruno@clisp.org>
70725
70726         Assume the 'long double' type.
70727         * m4/longdouble.m4: Remove file.
70728         * config/srclist.txt: Don't mention longdouble.m4.
70729         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70730         * lib/float+.h: Likewise.
70731         * lib/frexp.c: Likewise.
70732         * lib/printf-args.h: Likewise.
70733         * lib/printf-args.c: Likewise.
70734         * lib/printf-frexp.c: Likewise.
70735         * lib/printf-parse.c: Likewise.
70736         * lib/vasnprintf.c: Likewise.
70737         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70738         * m4/intl.m4: Likewise.
70739         * m4/isnanl.m4: Likewise.
70740         * m4/printf.m4: Likewise.
70741         * m4/printf-frexpl.m4: Likewise.
70742         * m4/vasnprintf.m4: Likewise.
70743         * modules/allocsa (Files): Remove m4/longdouble.m4.
70744         * modules/gettext (Files): Likewise.
70745         * modules/relocatable-prog-wrapper (Files): Likewise.
70746         * modules/vasnprintf (Files): Likewise.
70747         * modules/isnanl (Files): Likewise.
70748         (Include): Simplify.
70749         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70750         (Include): Simplify.
70751         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70752         (Include): Simplify.
70753         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70754         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70755         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70756         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70757         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70758         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70759         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70760         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70761         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70763         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70765         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70766         * tests/test-isnanl.c: Likewise.
70767         * tests/test-snprintf-posix.h: Likewise.
70768         * tests/test-sprintf-posix.h: Likewise.
70769         * tests/test-vasnprintf-posix.c: Likewise.
70770         * tests/test-vasnprintf-posix2.c: Likewise.
70771         * tests/test-vasprintf-posix.c: Likewise.
70772
70773 2007-04-06  Bruno Haible  <bruno@clisp.org>
70774
70775         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70776         * lib/math_.h [__DECC]: Include the overridden include file through
70777         #include_next, outside the double-inclusion guard.
70778         * lib/stdio_.h [__DECC]: Likewise.
70779         * lib/stdlib_.h [__DECC]: Likewise.
70780         * lib/string_.h [__DECC]: Likewise.
70781         * lib/time_.h [__DECC]: Likewise.
70782         * lib/wchar_.h [__DECC]: Likewise.
70783         * lib/wctype_.h [__DECC]: Likewise.
70784         * lib/inttypes_.h [__DECC]: Likewise.
70785         Reported by Albert Chin <china@thewrittenword.com> in
70786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70787
70788 2007-04-04  Eric Blake  <ebb9@byu.net>
70789
70790         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70791         1.5.x.
70792
70793 2007-04-04  Bruno Haible  <bruno@clisp.org>
70794
70795         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70796         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70797
70798 2007-04-04  Bruno Haible  <bruno@clisp.org>
70799
70800         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70801         results for "%010a" of Infinity and NaN.
70802         * tests/test-vasprintf-posix.c (test_function): Likewise.
70803         * tests/test-snprintf-posix.h (test_function): Likewise.
70804         * tests/test-sprintf-posix.h (test_function): Likewise.
70805         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70806         * tests/test-printf-posix.h (test_function): Likewise.
70807         * tests/test-fprintf-posix.out: Update.
70808         Needed for FreeBSD 6.1.
70809
70810 2007-04-04  Bruno Haible  <bruno@clisp.org>
70811
70812         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70813         directly used by the gnulib modules nor by gnulib-tool.
70814
70815 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * DEPENDENCIES: Give overall description of version dependency
70818         desirability.  Use more-typical names for apps.
70819         Add shell, coreutils, diffutils, grep, tar, gzip.
70820
70821 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70822
70823         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70824
70825 2007-04-04  Karl Berry  <karl@gnu.org>
70826
70827         * MODULES.html.sh (func_module): missing '.
70828
70829 2007-04-03  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/argmatch-tests (Makefile.am): New variable
70832         test_argmatch_LDADD.
70833         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70834         * modules/array-list-tests (Makefile.am): New variable
70835         test_array_list_LDADD.
70836         * modules/array-oset-tests (Makefile.am): New variable
70837         test_array_oset_LDADD.
70838         * modules/avltree-list-tests (Makefile.am): New variable
70839         test_avltree_list_LDADD.
70840         * modules/avltree-oset-tests (Makefile.am): New variable
70841         test_avltree_oset_LDADD.
70842         * modules/avltreehash-list-tests (Makefile.am): New variable
70843         test_avltreehash_list_LDADD.
70844         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70845         test_canonicalize_lgpl_LDADD.
70846         * modules/carray-list-tests (Makefile.am): New variable
70847         test_carray_list_LDADD.
70848         * modules/dirname-tests (Makefile.am): New variable
70849         test_dirname_LDADD.
70850         * modules/linked-list-tests (Makefile.am): New variable
70851         test_linked_list_LDADD.
70852         * modules/linkedhash-list-tests (Makefile.am): New variable
70853         test_linkedhash_list_LDADD.
70854         * modules/rbtree-list-tests (Makefile.am): New variable
70855         test_rbtree_list_LDADD.
70856         * modules/rbtree-oset-tests (Makefile.am): New variable
70857         test_rbtree_oset_LDADD.
70858         * modules/rbtreehash-list-tests (Makefile.am): New variable
70859         test_rbtreehash_list_LDADD.
70860         * modules/xvasprintf-tests (Makefile.am): New variable
70861         test_xvasprintf_LDADD.
70862         Reported by Eric Blake.
70863
70864 2007-04-03  Eric Blake  <ebb9@byu.net>
70865
70866         * DEPENDENCIES: Weaken m4 requirements.
70867
70868 2007-04-03  Bruno Haible  <bruno@clisp.org>
70869
70870         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70871         * modules/isnanl-tests (configure.ac): Likewise.
70872
70873 2007-04-03  Ben Pfaff  <blp@gnu.org>
70874
70875         * modules/iconv_open: Add $(srcdir)/ to source directory
70876         references in Makefile fragments that call gperf, to fix VPATH
70877         builds.
70878
70879 2007-04-03  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70882         * lib/ldexpl.c: Undo last change.
70883
70884 2007-04-03  Bruno Haible  <bruno@clisp.org>
70885
70886         * modules/printf-frexpl (Depends-on): Undo last change.
70887         (Files): Add m4/ldexpl.m4.
70888
70889 2007-04-03  Bruno Haible  <bruno@clisp.org>
70890
70891         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70892         * modules/isnanl (Link): New section.
70893
70894         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70895         * modules/frexp (Link): New section.
70896
70897         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70898         * modules/frexpl (Link): New section.
70899
70900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70901         * modules/ldexpl (Link): New section.
70902
70903 2007-04-03  Bruno Haible  <bruno@clisp.org>
70904
70905         * modules/TEMPLATE-EXTENDED: New file.
70906         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70907
70908 2007-04-03  Bruno Haible  <bruno@clisp.org>
70909
70910         * DEPENDENCIES: New file.
70911         Suggested by Simon Josefsson.
70912
70913 2007-04-03  Bruno Haible  <bruno@clisp.org>
70914
70915         * doc/gnulib.texi: Escape @.
70916
70917 2007-04-03  James Youngman  <jay@gnu.org>
70918         and Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70921         birthtime on all systems that have birthtime, not just those which
70922         use st_birthtimensec rather than st_birthtim.  Putting zero in
70923         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70924         that the birth time is not available for files on an NFS mount.
70925
70926 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70927
70928         * modules/memxor: Move back from crypto/, suggested by Bruno.
70929         * modules/crypto/hmac-sha1: Fix memxor dependency.
70930
70931         * modules/crypto/gc: Moved from ../.
70932
70933 2007-04-02  Eric Blake  <ebb9@byu.net>
70934
70935         * lib/ldexpl.c (includes): Avoid libm.
70936
70937         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70938
70939 2007-04-02  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70942         on IRIX.
70943
70944 2007-04-02  Bruno Haible  <bruno@clisp.org>
70945
70946         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70947         x86 or x86_64 platforms running MacOS X.
70948         Reported by Ryan Schmidt <@ryandesign.com>.
70949
70950 2007-04-02  Bruno Haible  <bruno@clisp.org>
70951
70952         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70953         i386.
70954
70955 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70956
70957         * modules/crypto/arcfour: Moved from ../.
70958         * modules/crypto/arcfour-tests: Moved from ../.
70959         * modules/crypto/arctwo: Moved from ../.
70960         * modules/crypto/arctwo-tests: Moved from ../.
70961         * modules/crypto/des: Moved from ../.
70962         * modules/crypto/des-tests: Moved from ../.
70963         * modules/crypto/gc-arcfour: Moved from ../.
70964         * modules/crypto/gc-arcfour-tests: Moved from ../.
70965         * modules/crypto/gc-arctwo: Moved from ../.
70966         * modules/crypto/gc-arctwo-tests: Moved from ../.
70967         * modules/crypto/gc-des: Moved from ../.
70968         * modules/crypto/gc-des-tests: Moved from ../.
70969         * modules/crypto/gc-hmac-md5: Moved from ../.
70970         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70971         * modules/crypto/gc-hmac-sha1: Moved from ../.
70972         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70973         * modules/crypto/gc-md2: Moved from ../.
70974         * modules/crypto/gc-md2-tests: Moved from ../.
70975         * modules/crypto/gc-md4: Moved from ../.
70976         * modules/crypto/gc-md4-tests: Moved from ../.
70977         * modules/crypto/gc-md5: Moved from ../.
70978         * modules/crypto/gc-md5-tests: Moved from ../.
70979         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70980         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70981         * modules/crypto/gc-random: Moved from ../.
70982         * modules/crypto/gc-rijndael: Moved from ../.
70983         * modules/crypto/gc-rijndael-tests: Moved from ../.
70984         * modules/crypto/gc-sha1: Moved from ../.
70985         * modules/crypto/gc-sha1-tests: Moved from ../.
70986         * modules/crypto/gc-tests: Moved from ../.
70987         * modules/crypto/hmac-md5: Moved from ../.
70988         * modules/crypto/hmac-md5-tests: Moved from ../.
70989         * modules/crypto/hmac-sha1: Moved from ../.
70990         * modules/crypto/hmac-sha1-tests: Moved from ../.
70991         * modules/crypto/md2: Moved from ../.
70992         * modules/crypto/md2-tests: Moved from ../.
70993         * modules/crypto/md4: Moved from ../.
70994         * modules/crypto/md4-tests: Moved from ../.
70995         * modules/crypto/md5: Moved from ../.
70996         * modules/crypto/md5-tests: Moved from ../.
70997         * modules/crypto/memxor: Moved from ../.
70998         * modules/crypto/rijndael: Moved from ../.
70999         * modules/crypto/rijndael-tests: Moved from ../.
71000         * modules/crypto/sha1: Moved from ../.
71001
71002 2007-03-30  James Youngman  <jay@gnu.org>
71003
71004         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71005         rename() to change the ctime of a file (because ctime is unaffected
71006         by rename on jfs2 on AIX 5.1).
71007         (main): Start by doing cleanup, in case a previous run failed leaving
71008         test files behind.
71009
71010 2007-03-31  Bruno Haible  <bruno@clisp.org>
71011
71012         Support old proprietary implementations of iconv.
71013         * modules/iconv_open: New file.
71014         * lib/iconv_.h: New file.
71015         * m4/iconv_h.m4: New file.
71016         * lib/iconv_open.c: New file.
71017         * lib/iconv_open-aix.gperf: New file.
71018         * lib/iconv_open-hpux.gperf: New file.
71019         * lib/iconv_open-irix.gperf: New file.
71020         * lib/iconv_open-osf.gperf: New file.
71021         * m4/iconv_open.m4: New file.
71022         * modules/linebreak (Depends-on): Add iconv_open.
71023         * modules/striconv (Depends-on): Likewise.
71024         * modules/striconveh (Depends-on): Likewise.
71025         * modules/unicodeio (Depends-on): Likewise.
71026         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71027         (iconv_t)(-1).
71028         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71029         conversion if cd is (iconv_t)(-1).
71030         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71031         is not possible.
71032
71033 2007-03-31  Bruno Haible  <bruno@clisp.org>
71034
71035         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71036         work on Solaris either. Protect also second use of "autodetect_jp".
71037
71038 2007-03-31  Bruno Haible  <bruno@clisp.org>
71039
71040         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71041         the function is not present.
71042
71043 2007-03-31  Bruno Haible  <bruno@clisp.org>
71044
71045         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71046         the function is not present.
71047
71048 2007-03-31  Bruno Haible  <bruno@clisp.org>
71049
71050         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71051         a bug in HP-UX iconv_open().
71052
71053 2007-03-31  Bruno Haible  <bruno@clisp.org>
71054
71055         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71056         (Mathematics <math.h>): New section, add fpieee.
71057         (Input/output <stdio.h>): Add fseterr.
71058         (Mathematics <math.h>): New section, add printf-frexp.
71059         (Container data structures): Add sublist.
71060         (Core language properties): Add fpucw, inline.
71061         (Functions for greatest-width integer types <inttypes.h>): Add
71062         imaxabs, imaxdiv, inttypes.
71063         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71064         isnanl-nolibm, ldexp.
71065         (Mathematics <math.h>): New section, add printf-frexpl.
71066         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71067         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71068         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71069         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71070         (Unicode string functions): Add unistr/u*-mbtoucr.
71071         (Java): Add javacomp-script, javaexec-script.
71072         (C#): Add csharpcomp-script, csharpexec-script.
71073         (Support for building libraries and executables): Add havelib,
71074         relocatable-*.
71075         (Support for maintaining and releasing projects): Renamed from
71076         'Support for maintaining and release projects'. Add announce-gen.
71077
71078 2007-03-31  Bruno Haible  <bruno@clisp.org>
71079
71080         * README: Talk primarily about git.
71081         (git and CVS): Renamed from CVS.
71082         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71083         gnulib is available through git.
71084         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71085
71086 2007-03-30  Bruno Haible  <bruno@clisp.org>
71087
71088         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71089         * lib/poll_.h: Likewise.
71090         * lib/stat_.h: Likewise.
71091         * lib/sys_time_.h: Likewise.
71092         * lib/sysexit_.h: Likewise.
71093         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71094         * lib/stdbool_.h: Likewise.
71095         * lib/byteswap_.h: Add double-inclusion guard.
71096
71097 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71098
71099         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71100
71101 2007-03-30  Karl Berry  <karl@gnu.org>
71102
71103         * config/srclist-update: double space after USA in the license
71104         substitution, since that's how it's usually (?) written.
71105
71106 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71109         reported by Bruno Haible.
71110
71111 2007-03-29  Bruno Haible  <bruno@clisp.org>
71112
71113         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71114         a bug in AIX iconv().
71115
71116 2007-03-29  Bruno Haible  <bruno@clisp.org>
71117
71118         * modules/ldexpl-tests: New file.
71119         * tests/test-ldexpl.c: New file.
71120
71121 2007-03-29  Bruno Haible  <bruno@clisp.org>
71122
71123         * lib/ldexpl.c: Include fpucw.h.
71124         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71125         multiplication.
71126         * modules/ldexpl (Depends-on): Add fpucw.
71127
71128 2007-03-29  Bruno Haible  <bruno@clisp.org>
71129
71130         * modules/ldexpl: New file.
71131         * m4/ldexpl.m4: New file.
71132         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71133         set.
71134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71135         REPLACE_LDEXPL.
71136         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71137         REPLACE_LDEXPL.
71138         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71139         gl_FUNC_LDEXPL_WORKS.
71140         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71141         * modules/mathl (Files): Remove lib/ldexpl.c.
71142         (Depends-on): Add ldexpl.
71143
71144 2007-03-29  Bruno Haible  <bruno@clisp.org>
71145
71146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71147
71148 2007-03-29  Bruno Haible  <bruno@clisp.org>
71149
71150         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71151         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71152         and possibly also HP-UX.
71153         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71154         work on AIX, IRIX, HP-UX, OSF/1.
71155         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71156         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71157         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71158         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71159         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71160         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71161
71162 2007-03-29  Bruno Haible  <bruno@clisp.org>
71163
71164         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71165
71166 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71169         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71170
71171 2007-03-29  Eric Blake  <ebb9@byu.net>
71172
71173         * lib/acl-internal.h: Remove redundant include.
71174         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71175         Cygwin when a file is locked.
71176
71177 2007-03-29  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71180         file.
71181         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71182
71183 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71184
71185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71186         try to remove a parent directory if the child couldn't be removed
71187         (except for the first rmdir, which could fail because the child
71188         doesn't exist).  Problem reported by Jeff Blaine in
71189         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71190
71191 2007-03-28  Bruno Haible  <bruno@clisp.org>
71192
71193         * lib/striconveh.c (utf8conv_carefully): New function.
71194         (mem_cd_iconveh_internal): Invoke it.
71195
71196 2007-03-28  Bruno Haible  <bruno@clisp.org>
71197
71198         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71199         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71200         input.
71201         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71202         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71203         unistr/u8-uctomb.
71204
71205 2007-03-28  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/unistr/u8-mbtoucr: New file.
71208         * lib/unistr/u8-mbtoucr.c: New file.
71209         * modules/unistr/u16-mbtoucr: New file.
71210         * lib/unistr/u16-mbtoucr.c: New file.
71211         * modules/unistr/u16-mbtoucr: New file.
71212         * lib/unistr/u16-mbtoucr.c: New file.
71213         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71214
71215 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71216             Bruno Haible  <bruno@clisp.org>
71217
71218         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71219         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71220         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71221
71222         * m4/stdio_h.m4: Add stubs for vasprintf too.
71223
71224         * modules/stdio: Support vasprintf in sed command.
71225
71226         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71227         vasprintf.h.  Add stdio module indicator.
71228
71229         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71230         vasprintf.h.
71231
71232         * lib/vasprintf.h: File removed.
71233
71234         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71235         * lib/vasprintf.c: Ditto.
71236         * lib/xvasprintf.c: Ditto.
71237         * tests/test-vasprintf-posix.c: Ditto.
71238         * tests/test-vasprintf.c: Ditto.
71239
71240 2007-03-27  Bruno Haible  <bruno@clisp.org>
71241
71242         Make vasnprintf multithread-safe.
71243         * lib/vasnprintf.c (decimal_point_char): New function.
71244         (VASNPRINTF): Use it.
71245         Suggested by Simon Josefsson.
71246
71247 2007-03-27  Eric Blake  <ebb9@byu.net>
71248
71249         Support sub-second birthtime on cygwin.
71250         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71251         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71252         (get_stat_birthtime): Also work with st_birthtim.
71253
71254 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71257         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71258         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71259         (get_stat_birthtime_ns): Simplify compile-time tests.
71260         (get_stat_birthtime): Change the API to look like
71261         get_stat_mtime etc., except return a negative tv_nsec on error.
71262         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71263         Don't check for "spare" fields.
71264         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71265         or for struct stat.st_birthtime, as these tests aren't used.
71266         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71267
71268 2007-03-27  Bruno Haible  <bruno@clisp.org>
71269
71270         * lib/stat-time.h: Include <sys/stat.h>.
71271
71272 2007-03-27  James Youngman  <jay@gnu.org>
71273
71274         * lib/stat-time.h (get_stat_birthtime): New function for
71275           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71276         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71277           and its variants.
71278         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71279         * modules/stat-time-test: New file.
71280         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71281
71282 2007-03-26  Bruno Haible  <bruno@clisp.org>
71283
71284         Better support of signalling NaNs.
71285         * lib/atanl.c: Include isnanl.h.
71286         (atanl): Perform test for NaN at the beginning of the function and
71287         through a call to isnanl.
71288         * lib/cosl.c: Include isnanl.h.
71289         (cosl): Perform test for NaN at the beginning of the function and
71290         through a call to isnanl.
71291         * lib/ldexpl.c: Include isnanl.h.
71292         (ldexpl): Perform test for NaN through a call to isnanl.
71293         * lib/logl.c: Include isnanl.h.
71294         (logl): Perform test for NaN at the beginning of the function and
71295         through a call to isnanl.
71296         * lib/sinl.c: Include isnanl.h.
71297         (sinl): Perform test for NaN at the beginning of the function and
71298         through a call to isnanl.
71299         * lib/sqrtl.c: Include isnanl.h.
71300         (sqrtl): Perform test for NaN at the beginning of the function and
71301         through a call to isnanl.
71302         * lib/tanl.c: Include isnanl.h.
71303         (tanl): Perform test for NaN at the beginning of the function and
71304         through a call to isnanl.
71305         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71306         * modules/mathl (Depends-on): Add isnanl.
71307
71308 2007-03-26  Eric Blake  <ebb9@byu.net>
71309
71310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71311         regression in logic sense of previous patch.
71312
71313 2007-03-26  Bruno Haible  <bruno@clisp.org>
71314
71315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71316         unportable shell command "if ! ...".
71317         Reported by Ralf Wildenhues.
71318
71319 2007-03-25  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71322         <sysexits.h> file, and only add EX_CONFIG.
71323         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71324         absolute file name and whether it is sufficient. Substitute also
71325         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71326         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71327         ABSOLUTE_SYSEXITS_H into sysexits.h.
71328
71329 2007-03-25  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71332         hints is NULL.
71333
71334 2007-03-25  Bruno Haible  <bruno@clisp.org>
71335
71336         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71337         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71338
71339 2007-03-25  Bruno Haible  <bruno@clisp.org>
71340
71341         * lib/vasnprintf.c: Include langinfo.h.
71342         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71343         multithread-safe.
71344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71353         Reported by Simon Josefsson.
71354
71355 2007-03-25  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71358         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71359         * modules/vasnprintf (Depends-on): Add stdint.
71360
71361 2007-03-25  Bruno Haible  <bruno@clisp.org>
71362
71363         * modules/fpieee: New file.
71364         * m4/fpieee.m4: New file.
71365         * modules/isnan-nolibm (Depends-on): Add fpieee.
71366         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71367         * modules/isnanl (Depends-on): Add fpieee.
71368
71369 2007-03-25  Bruno Haible  <bruno@clisp.org>
71370
71371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71372
71373 2007-03-25  Bruno Haible  <bruno@clisp.org>
71374
71375         Avoid test failures on IRIX 6.5.
71376         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71377         (main): Use it.
71378         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71379         macros.
71380         (main): Use them.
71381
71382 2007-03-25  Bruno Haible  <bruno@clisp.org>
71383
71384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71385         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71386         exists but doesn't work.
71387         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71388         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71390         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71391         math.h.
71392
71393 2007-03-25  Bruno Haible  <bruno@clisp.org>
71394
71395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71396         returns inf. Needed on IRIX 6.5.
71397
71398 2007-03-25  Bruno Haible  <bruno@clisp.org>
71399
71400         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71401         (main): Use isnanl instead of x != x idiom.
71402         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71403
71404         * tests/test-frexp.c: Include isnan.h.
71405         (main): Use isnan instead of x != x idiom.
71406         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71407
71408 2007-03-25  Bruno Haible  <bruno@clisp.org>
71409
71410         * tests/test-frexp.c (NaN): New function/macro.
71411         (main): Use it instead of 0.0 / 0.0.
71412         * tests/test-isnan.c (NaN): New function/macro.
71413         (main): Use it instead of 0.0 / 0.0.
71414         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71415         (test_function): Use it instead of 0.0 / 0.0.
71416         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71417         (test_function): Use it instead of 0.0 / 0.0.
71418         * tests/test-snprintf-posix.h (NaN): New function/macro.
71419         (test_function): Use it instead of 0.0 / 0.0.
71420         * tests/test-sprintf-posix.h (NaN): New function/macro.
71421         (test_function): Use it instead of 0.0 / 0.0.
71422         * tests/test-fprintf-posix.h (NaN): New function/macro.
71423         (test_function): Use it instead of 0.0 / 0.0.
71424         * tests/test-printf-posix.h (NaN): New function/macro.
71425         (test_function): Use it instead of 0.0 / 0.0.
71426
71427         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71428
71429 2007-03-25  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71432
71433 2007-03-25  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/regexec.c (merge_state_with_log): Make static.
71436
71437 2007-03-25  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/trigl.c (kernel_rem_pio2): Make static.
71440
71441 2007-03-25  Bruno Haible  <bruno@clisp.org>
71442
71443         * lib/sincosl.c (sincosl_table): Make static.
71444
71445 2007-03-25  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71448         if the compiler does not support C99.
71449
71450 2007-03-25  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/time (Makefile.am): Ensure all rule action lines start with a
71453         tab.
71454
71455 2007-03-24  Bruno Haible  <bruno@clisp.org>
71456
71457         * modules/tsearch-tests: New file.
71458         * tests/test-tsearch.sh: New file.
71459         * tests/test-tsearch.c: New file, mostly copied from glibc.
71460
71461         * modules/search-tests: New file.
71462         * tests/test-search.c: New file.
71463
71464         * modules/search: New file.
71465         * lib/search_.h: New file, incorporating lib/tsearch.h.
71466         * m4/search_h.m4: New file.
71467         * lib/tsearch.h: Remove file.
71468         * lib/tsearch.c: Include search.h instead of tsearch.h.
71469         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71470         HAVE_TSEARCH.
71471         * modules/tsearch (Files): Remove lib/tsearch.h.
71472         (Depends-on): Add search.
71473         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71474         (Include): Change tsearch.h into search.h.
71475
71476 2007-03-24  Bruno Haible  <bruno@clisp.org>
71477
71478         * modules/fpucw: New file.
71479         * lib/fpucw.h: New file.
71480         * lib/frexp.c: Include fpucw.h.
71481         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71482         (FUNC): Use them.
71483         * lib/printf-frexp.c: Include fpucw.h.
71484         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71485         (FUNC): Use them.
71486         * lib/vasnprintf.c: Include fpucw.h.
71487         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71488         'long double' calculations.
71489         * tests/test-frexpl.c: Include fpucw.h.
71490         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71491         * tests/test-printf-frexpl.c: Include fpucw.h.
71492         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71493         * modules/frexpl (Depends-on): Add fpucw.
71494         * modules/printf-frexpl (Depends-on): Likewise.
71495         * modules/fprintf-posix (Depends-on): Likewise.
71496         * modules/snprintf-posix (Depends-on): Likewise.
71497         * modules/sprintf-posix (Depends-on): Likewise.
71498         * modules/vasnprintf-posix (Depends-on): Likewise.
71499         * modules/vasprintf-posix (Depends-on): Likewise.
71500         * modules/vfprintf-posix (Depends-on): Likewise.
71501         * modules/vsnprintf-posix (Depends-on): Likewise.
71502         * modules/vsprintf-posix (Depends-on): Likewise.
71503         * modules/frexpl-tests (Depends-on): Likewise.
71504         * modules/printf-frexpl-tests (Depends-on): Likewise.
71505
71506 2007-03-24  Bruno Haible  <bruno@clisp.org>
71507
71508         * lib/float+.h: New file.
71509         * lib/isnan.c: Include float+.h.
71510         (SIZE): New macro.
71511         (FUNC): Compare only SIZE bytes of the value.
71512         * lib/vasnprintf.c: Include float+.h.
71513         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71514         SIZEOF_LDBL or SIZEOF_DBL bytes.
71515         * modules/isnan-nolibm (Files): Add lib/float+.h.
71516         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71517         * modules/isnanl (Files): Add lib/float+.h.
71518         * modules/vasnprintf (Files): Add lib/float+.h.
71519
71520 2007-03-24  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71523         include isnanl-nolibm.h.
71524
71525 2007-03-24  Bruno Haible  <bruno@clisp.org>
71526
71527         * tests/test-read-file.c (main): Don't produce spurious output for
71528         expected situations. Make the test fail if it encountered unexpected
71529         results.
71530
71531 2007-03-24  Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71534         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71535
71536 2007-03-24  Bruno Haible  <bruno@clisp.org>
71537
71538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71539
71540 2007-03-24  Bruno Haible  <bruno@clisp.org>
71541
71542         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71543         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71544
71545         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71546         * modules/utf8-ucs4: Turn into a symbolic link to module
71547         unistr/u8-mbtouc.
71548
71549         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71550         utf8-ucs4-unsafe.
71551         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71552         unistr/u8-mbtouc-unsafe.
71553
71554         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71555         * modules/utf16-ucs4: Turn into a symbolic link to module
71556         unistr/u16-mbtouc.
71557
71558         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71559         utf16-ucs4-unsafe.
71560         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71561         unistr/u16-mbtouc-unsafe.
71562
71563         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71564         * modules/ucs4-utf8: Turn into a symbolic link to module
71565         unistr/u8-ubtomb.
71566
71567         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71568         * modules/ucs4-utf16: Turn into a symbolic link to module
71569         unistr/u16-ubtomb.
71570
71571 2007-03-24  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71574         Enable the function only if HAVE_INLINE.
71575         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71576         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71577         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71578         Enable the function only if HAVE_INLINE.
71579         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71580         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71581         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71582         Enable the function only if HAVE_INLINE.
71583         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71584         Enable the function only if HAVE_INLINE.
71585         * modules/utf8-ucs4: Update.
71586         * modules/utf8-ucs4-unsafe: Update.
71587         * modules/utf16-ucs4: Update.
71588         * modules/utf16-ucs4-unsafe: Update.
71589         * modules/ucs4-utf8: Update.
71590         * modules/ucs4-utf16: Update.
71591
71592 2007-03-24  Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/utf8-ucs4.h: Remove file.
71595         * lib/utf8-ucs4-unsafe.h: Remove file.
71596         * lib/utf16-ucs4.h: Remove file.
71597         * lib/utf16-ucs4-unsafe.h: Remove file.
71598         * lib/ucs4-utf8.h: Remove file.
71599         * lib/ucs4-utf16.h: Remove file.
71600         * lib/unistr.h: Include their previous contents.
71601         * m4/utf-ucs4.m4: Remove file.
71602         * m4/ucs4-utf.m4: Remove file.
71603         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71604         (Depends-on): Add unistr/base.
71605         (configure.ac): Remove gl_UTF_UCS4.
71606         (Makefile.am): Update.
71607         (Include): Change to unistr.h.
71608         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71609         (Depends-on): Add unistr/base.
71610         (configure.ac): Remove gl_UTF_UCS4.
71611         (Makefile.am): Update.
71612         (Include): Change to unistr.h.
71613         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71614         (Depends-on): Add unistr/base.
71615         (configure.ac): Remove gl_UTF_UCS4.
71616         (Makefile.am): Update.
71617         (Include): Change to unistr.h.
71618         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71619         (Depends-on): Add unistr/base.
71620         (configure.ac): Remove gl_UTF_UCS4.
71621         (Makefile.am): Update.
71622         (Include): Change to unistr.h.
71623         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71624         (Depends-on): Add unistr/base.
71625         (configure.ac): Remove gl_UCS4_UTF.
71626         (Makefile.am): Update.
71627         (Include): Change to unistr.h.
71628         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71629         (Depends-on): Add unistr/base.
71630         (configure.ac): Remove gl_UCS4_UTF.
71631         (Makefile.am): Update.
71632         (Include): Change to unistr.h.
71633         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71634         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71635         utf8-ucs4-unsafe.h.
71636         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71637         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71638         utf16-ucs4-unsafe.h.
71639         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71640         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71641         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71642         * lib/unistr/u8-strchr.c: Likewise.
71643         * lib/unistr/u8-strrchr.c: Likewise.
71644         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71645         * lib/unistr/u16-strchr.c: Likewise.
71646         * lib/unistr/u16-strrchr.c: Likewise.
71647         * lib/striconveh.c: Update.
71648         * lib/linebreak.c: Update.
71649
71650 2007-03-24  Bruno Haible  <bruno@clisp.org>
71651
71652         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71653         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71654
71655 2007-03-22  Bruno Haible  <bruno@clisp.org>
71656
71657         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71658
71659 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * MODULES.html.sh (File system functions): New module write-any-file.
71662         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71663         * m4/write-any-file.m4: New files.
71664
71665 2007-03-23  Eric Blake  <ebb9@byu.net>
71666
71667         * gnulib-tool: Rearrange space-tab sequences, since some editors
71668         like to eat them.
71669
71670 2007-03-23  Eric Blake  <ebb9@byu.net>
71671
71672         * lib/version-etc.c (version_etc_va): Update license wording to
71673         be more concise.  Recommended by Richard Stallman.
71674
71675 2007-03-22  Bruno Haible  <bruno@clisp.org>
71676
71677         * lib/poll.c (MSG_PEEK): New fallback definition.
71678
71679 2007-03-22  Bruno Haible  <bruno@clisp.org>
71680
71681         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71682         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71683         (main): Update.
71684         Fixes a compilation error on BeOS.
71685
71686 2007-03-22  Bruno Haible  <bruno@clisp.org>
71687
71688         * modules/frexpl-tests: New file.
71689         * tests/test-frexpl.c: New file.
71690
71691         * modules/frexpl: New file.
71692         * m4/frexpl.m4: New file.
71693         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71694         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71696         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71697         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71698         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71699
71700 2007-03-22  Bruno Haible  <bruno@clisp.org>
71701
71702         * lib/frexpl.c: Share code with lib/frexp.c.
71703         * modules/mathl (Files): Add lib/frexp.c.
71704         (Depends-on): Add isnanl-nolibm.
71705
71706 2007-03-22  Bruno Haible  <bruno@clisp.org>
71707
71708         * modules/printf-frexp (Files): Add m4/frexp.m4.
71709         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71710         only if the found frexp function actually works.
71711
71712 2007-03-22  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/frexp.c: Remove older implementation that uses divisions.
71715
71716 2007-03-21  Bruno Haible  <bruno@clisp.org>
71717
71718         * modules/frexp-tests: New file.
71719         * tests/test-frexp.c: New file.
71720
71721         * modules/frexp: New file.
71722         * lib/frexp.c: New file.
71723         * m4/frexp.m4: New file.
71724         * lib/math_.h (frexp): New declaration.
71725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71726         REPLACE_FREXP.
71727         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71728
71729 2007-03-21  Bruno Haible  <bruno@clisp.org>
71730
71731         * modules/isnanl-tests: New file.
71732         * tests/test-isnanl.c: New file.
71733
71734         * modules/isnanl: New file.
71735         * lib/isnanl.h: New file.
71736         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71737         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71738         gl_FUNC_ISNANL_WORKS.
71739         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71740         New macros.
71741
71742 2007-03-21  Bruno Haible  <bruno@clisp.org>
71743
71744         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71745         lib/isnanl.h.
71746         (Include): Update.
71747         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71748         * lib/vasnprintf.c: Update.
71749         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71750         tests/test-isnanl.h, remove tests/test-isnanl.c.
71751         (Makefile.am): Update.
71752         * tests/test-isnanl-nolibm.c: New file.
71753         * tests/test-isnanl.h: New file.
71754         * tests/test-isnanl.c: Remove file.
71755
71756 2007-03-21  Jim Meyering  <jim@meyering.net>
71757
71758         When trying to open ".", treat ESTALE like EACCES.
71759         * lib/savewd.c (savewd_save): Resort to forking not just upon
71760         failure with EACCES, but also when errno is ESTALE.
71761
71762 2007-03-20  Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71765         Needed on AIX 5.1. Reported by Matthew Woehlke.
71766
71767 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         Suggestions by Bruno Haible:
71770         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71771         our own.
71772         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71773         * modules/acl (Depends-on): Add gettext.
71774
71775 2007-03-19  Bruno Haible  <bruno@clisp.org>
71776
71777         * modules/iconvme: Remove file.
71778         * lib/iconvme.h: Remove file.
71779         * lib/iconvme.c: Remove file.
71780         * m4/iconvme.m4: Remove file.
71781
71782 2007-03-19  Bruno Haible  <bruno@clisp.org>
71783
71784         * doc/relocatable-maint.texi: Break long shell script line.
71785         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71786
71787 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71790         handle file_has_acl.
71791         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71792         * lib/acl.c: Move header inclusions and related macro defns into
71793         lib/acl-internal.h.
71794         (S_ISLNK): Remove defn, since that's now done for us.
71795         (file_has_acl): Move to lib/file-has-acl.c.
71796         Call acl_trivial if available.  This is the crucial part of the fix.
71797         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71798         shared within the library.  Rewrite a bit, partly to make it compatible
71799         with the GNU coding style.
71800         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71801         Remove unnecessary double-quotes.
71802         Don't test for acl_to_text; the build will catch that.
71803         Replace acl_entries if it doesn't exist and it is needed.
71804         Check for -lsec and acl_trivial (as used on Solaris 10).
71805         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71806         lib/file-has-acl.c.
71807         (Depends-on): Add sys_stat, for S_ISLNK.
71808
71809 2007-03-19  Ben Pfaff  <blp@gnu.org>
71810
71811         * doc/gnulib.texi: Fix typos.
71812         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71813
71814 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71817         If size is zero here, buf must be zero.
71818
71819 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71820
71821         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71822         <bruno@clisp.org>.
71823
71824 2007-03-18  Bruno Haible  <bruno@clisp.org>
71825
71826         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71827         Suggested by Eric Blake.
71828
71829 2007-03-18  Ben Pfaff  <blp@gnu.org>
71830
71831         * doc/relocatable.texi: Recommend using as prefix a directory
71832         that does not exist and will never be created.  Based on
71833         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71834         and others.
71835
71836 2007-03-17  Bruno Haible  <bruno@clisp.org>
71837
71838         * lib/fchownat.c: Include lchown.h.
71839
71840 2007-03-17  Bruno Haible  <bruno@clisp.org>
71841
71842         Fix endless loop when the given allocated size was > INT_MAX.
71843         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71844         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71845         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71846         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71847         * lib/sprintf.c (sprintf): Likewise.
71848
71849 2007-03-17  Bruno Haible  <bruno@clisp.org>
71850
71851         * tests/test-argp-2.sh (func_compare): Output a context diff.
71852
71853 2007-03-17  Bruno Haible  <bruno@clisp.org>
71854
71855         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71856         locale's decimal-point character.
71857
71858 2007-03-17  Bruno Haible  <bruno@clisp.org>
71859
71860         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71861         before comparing it. Needed because on some platforms (e.g. x86) a
71862         'long double' occupies less bytes than sizeof (long double).
71863
71864 2007-03-17  Bruno Haible  <bruno@clisp.org>
71865
71866         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71867         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71868         * tests/test-getaddrinfo.c (simple): Likewise.
71869         * tests/test-read-file.c (main): Likewise.
71870
71871 2007-03-17  Bruno Haible  <bruno@clisp.org>
71872
71873         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71874
71875 2007-03-17  Bruno Haible  <bruno@clisp.org>
71876
71877         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71878         unused variable.
71879
71880 2007-03-17  Bruno Haible  <bruno@clisp.org>
71881
71882         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71883         * tests/test-c-strncasecmp.c: Likewise.
71884
71885 2007-03-17  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/stdlib (Depends-on): Add unistd.
71888         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71889         Needed for MacOS X 10.3.
71890
71891 2007-03-17  Bruno Haible  <bruno@clisp.org>
71892
71893         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71894
71895 2007-03-17  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71898
71899 2007-03-17  Bruno Haible  <bruno@clisp.org>
71900
71901         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71902         to reflect files copied from gnulib (with or without modifications).
71903         Suggested by Jim Meyering.
71904
71905 2007-03-17  Eric Blake  <ebb9@byu.net>
71906
71907         * NEWS: Document stdlib change from 2007-02-18.
71908
71909 2007-03-17  Jim Meyering  <jim@meyering.net>
71910
71911         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71912         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71913         someone uses a name containing shell meta-characters.
71914         Reported by Alfred M. Szmidt.
71915
71916         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71917
71918 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71919
71920         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71921         and copy gettext configuration files only if configure.ac contains
71922         a use of AM_GNU_GETTEXT_VERSION.
71923
71924 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71925
71926         * build-aux/bootstrap (gnulib_name): New variable.
71927         (gnulib_tool_options): Use it.
71928
71929 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71930
71931         * tests/test-des.c: Use new namespace.
71932
71933 2007-03-15  Bruno Haible  <bruno@clisp.org>
71934
71935         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71936         Reported by James Youngman <jay@gnu.org>.
71937
71938 2007-03-15  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71941         declared prototype. Needed with cc on OSF/1 5.1.
71942
71943 2007-03-15  Bruno Haible  <bruno@clisp.org>
71944
71945         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71946         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71947         (struct gl_list_implementation): Add dispose_fn argument to the
71948         'create_empty', 'create' methods.
71949         (struct gl_list_impl_base): Add field 'dispose_fn'.
71950         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71951         argument.
71952         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71953         dispose_fn argument.
71954         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71955         dispose_fn on the dropped values.
71956         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71957         dispose_fn argument.
71958         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71959         dropped values.
71960         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71961         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71962         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71963         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71964         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71965         argument.
71966         (gl_tree_list_free): Call dispose_fn on the dropped values.
71967         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71968         the dropped values.
71969         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71970         Add dispose_fn argument.
71971         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71972         Call dispose_fn on the dropped values.
71973         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71974         Add dispose_fn argument.
71975         (gl_sublist_create): Initialize the 'dispose_fn' field.
71976         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71977         * tests/test-array_list.c (main): Update.
71978         * tests/test-carray_list.c (main): Update.
71979         * tests/test-avltree_list.c (main): Update.
71980         * tests/test-rbtree_list.c (main): Update.
71981         * tests/test-avltreehash_list.c (main): Update.
71982         * tests/test-rbtreehash_list.c (main): Update.
71983         * tests/test-linked_list.c (main): Update.
71984         * tests/test-linkedhash_list.c (main): Update.
71985         * tests/test-array_oset.c (main): Update.
71986
71987 2007-03-15  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71990         (gl_oset_create_empty): Add dispose_fn argument.
71991         (struct gl_oset_implementation): Add dispose_fn argument to
71992         'create_empty' method.
71993         (struct gl_oset_impl_base): Add dispose_fn field.
71994         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71995         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71996         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71997         values.
71998         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71999         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72000         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72001         dropped value.
72002         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72003         dropped value.
72004         * tests/test-array_oset.c (main): Update.
72005         * tests/test-avltree_oset.c (main): Update.
72006         * tests/test-rbtree_oset.c (main): Update.
72007         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72008
72009 2007-03-13  Bruno Haible  <bruno@clisp.org>
72010
72011         * tests/test-stdbool.c (i): Update after last patch.
72012
72013 2007-03-12  Bruno Haible  <bruno@clisp.org>
72014
72015         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72016         the iswprint macro. Needed on Solaris 2.5.1.
72017
72018 2007-03-12  Bruno Haible  <bruno@clisp.org>
72019
72020         * tests/test-printf-frexp.c (main): Declare x as volatile.
72021
72022 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72023
72024         * doc/gnulib.texi (Build robot for gnulib): New section.
72025
72026 2007-03-12  Jim Meyering  <jim@meyering.net>
72027
72028         * build-aux/bootstrap: New file.
72029         * build-aux/bootstrap.conf: New file, from coreutils.
72030
72031 2007-03-11  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72034
72035 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72036
72037         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72038         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72039         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72040
72041 2007-03-11  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72044         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72045
72046 2007-03-11  Bruno Haible  <bruno@clisp.org>
72047
72048         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72049         formula. Needed for SunPRO C 5.0.
72050
72051 2007-03-11  Bruno Haible  <bruno@clisp.org>
72052
72053         * modules/long-options (Depends-on): Add getopt.
72054
72055 2007-03-11  Bruno Haible  <bruno@clisp.org>
72056
72057         * modules/modechange (Depends-on): Add stdbool.
72058
72059 2007-03-11  Bruno Haible  <bruno@clisp.org>
72060
72061         * modules/i-ring (Depends-on): Add stdbool.
72062
72063 2007-03-11  Bruno Haible  <bruno@clisp.org>
72064
72065         * modules/gc-des (Depends-on): Add stdbool.
72066
72067 2007-03-11  Bruno Haible  <bruno@clisp.org>
72068
72069         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72070
72071 2007-03-11  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72074
72075 2007-03-11  Bruno Haible  <bruno@clisp.org>
72076
72077         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72078
72079 2007-03-11  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/vasnprintf.c (sprintf): Undefine.
72082
72083 2007-03-11  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72086         initializers in SunPRO C and Compaq C compilers.
72087
72088 2007-03-11  Bruno Haible  <bruno@clisp.org>
72089
72090         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72091         decrementing code ANSI C compliant.
72092
72093 2007-03-11  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72096         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72097
72098 2007-03-11  Bruno Haible  <bruno@clisp.org>
72099
72100         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72101         <stdbool.h> substitute doesn't pass.
72102
72103 2007-03-11  Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72106
72107 2007-03-11  Bruno Haible  <bruno@clisp.org>
72108
72109         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72110         script, for submission to autobuild.josefsson.org.
72111
72112 2007-03-10  Bruno Haible  <bruno@clisp.org>
72113
72114         * modules/canonicalize-lgpl-tests: New file.
72115         * tests/test-canonicalize-lgpl.sh: New file.
72116         * tests/test-canonicalize-lgpl.c: New file.
72117
72118         * modules/c-strcase-tests: New file.
72119         * tests/test-c-strcase.sh: New file.
72120         * tests/test-c-strcasecmp.c: New file.
72121         * tests/test-c-strncasecmp.c: New file.
72122
72123         * modules/atexit-tests: New file.
72124         * tests/test-atexit.sh: New file.
72125         * tests/test-atexit.c: New file.
72126
72127 2007-03-10  Bruno Haible  <bruno@clisp.org>
72128
72129         * tests/test-binary-io.sh: Use temporary filenames that are not so
72130         likely to clash with those of other tests (in a parallel make).
72131         * tests/test-binary-io.c: Likewise.
72132
72133 2007-03-10  Bruno Haible  <bruno@clisp.org>
72134
72135         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72136         fallback; use #error instead.
72137         Suggested by Simon Josefsson.
72138
72139 2007-03-10  Bruno Haible  <bruno@clisp.org>
72140
72141         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72142         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72143         first and the last.
72144
72145 2007-03-10  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72148
72149 2007-03-10  Bruno Haible  <bruno@clisp.org>
72150
72151         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72152         "make distcheck".
72153         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72154         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72155         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72156
72157 2007-03-10  Bruno Haible  <bruno@clisp.org>
72158
72159         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72160         variable.
72161         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72162         variable.
72163
72164 2007-03-09  Eric Blake  <ebb9@byu.net>
72165         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72166
72167         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72168         types are not being provided by gnulib.
72169         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72170         types are supported.
72171
72172 2007-03-10  Bruno Haible  <bruno@clisp.org>
72173
72174         * lib/stdio_.h (__attribute__): New macro.
72175         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72176         vsprintf): Specify __attribute__ __format__ for GCC.
72177         Suggested by Eric Blake.
72178
72179 2007-03-09  Bruno Haible  <bruno@clisp.org>
72180
72181         * modules/printf-posix-tests: New file.
72182         * tests/test-printf-posix.sh: New file.
72183         * tests/test-printf-posix.c: New file.
72184
72185         * modules/printf-posix: New file.
72186         * lib/printf.c: New file.
72187         * m4/printf-posix-rpl.m4: New file.
72188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72189         REPLACE_PRINTF.
72190         * lib/stdio_.h (printf): New declaration.
72191         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72192         ____strfmon____): New macros.
72193         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72194         REPLACE_PRINTF.
72195
72196 2007-03-09  Bruno Haible  <bruno@clisp.org>
72197
72198         * tests/test-vasnprintf-posix2.sh: New file.
72199         * tests/test-vasnprintf-posix2.c: New file.
72200         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72201         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72202         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72203
72204         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72205         a locale dependent decimal point, rather than always '.'.
72206
72207 2007-03-09  Eric Blake  <ebb9@byu.net>
72208
72209         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72210         spite of platforms like Tandem/NSK that define it to -1.
72211
72212 2007-03-08  Bruno Haible  <bruno@clisp.org>
72213
72214         * modules/vprintf-posix-tests: New file.
72215         * tests/test-vprintf-posix.sh: New file.
72216         * tests/test-vprintf-posix.c: New file.
72217         * tests/test-printf-posix.h: New file.
72218
72219         * modules/vprintf-posix: New file.
72220         * lib/vprintf.c: New file.
72221         * m4/vprintf-posix.m4: New file.
72222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72223         REPLACE_VPRINTF.
72224         * lib/stdio_.h (vprintf): New declaration.
72225         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72226         REPLACE_VPRINTF.
72227
72228 2007-03-08  Bruno Haible  <bruno@clisp.org>
72229
72230         * modules/fprintf-posix-tests: New file.
72231         * tests/test-fprintf-posix.sh: New file.
72232         * tests/test-fprintf-posix.c: New file.
72233
72234         * modules/fprintf-posix: New file.
72235         * lib/fprintf.c: New file.
72236         * m4/fprintf-posix.m4: New file.
72237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72238         REPLACE_FPRINTF.
72239         * lib/stdio_.h (fprintf): New declaration.
72240         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72241         REPLACE_FPRINTF.
72242
72243 2007-03-08  Bruno Haible  <bruno@clisp.org>
72244
72245         * modules/vfprintf-posix-tests: New file.
72246         * tests/test-vfprintf-posix.sh: New file.
72247         * tests/test-vfprintf-posix.c: New file.
72248         * tests/test-fprintf-posix.h: New file.
72249         * tests/test-fprintf-posix.out: New file.
72250
72251         * modules/vfprintf-posix: New file.
72252         * lib/vfprintf.c: New file.
72253         * m4/vfprintf-posix.m4: New file.
72254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72255         REPLACE_VFPRINTF.
72256         * lib/stdio_.h (vfprintf): New declaration.
72257         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72258         REPLACE_VFPRINTF.
72259
72260 2007-03-08  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72263
72264 2007-03-08  Bruno Haible  <bruno@clisp.org>
72265
72266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72267         instead of 'expr' invocations.
72268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72273         Suggested by Paul Eggert.
72274
72275 2007-03-08  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/fseterr-tests: New file.
72278         * tests/test-fseterr.c: New file.
72279
72280         * modules/fseterr: New file.
72281         * lib/fseterr.h: New file.
72282         * lib/fseterr.c: New file.
72283
72284 2007-03-08  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72287         * lib/getopt_.h: Likewise.
72288         * lib/mbswidth.h: Likewise.
72289         * lib/setenv.h: Likewise.
72290         * lib/vasnprintf.h: Likewise.
72291         * lib/vasprintf.h: Likewise.
72292         * lib/verror.h: Likewise.
72293         * lib/xsetenv.h: Likewise.
72294         * lib/xvasprintf.h: Likewise.
72295
72296 2007-03-08  Jim Meyering  <jim@meyering.net>
72297
72298         * users.txt: Add parted.
72299
72300         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72301
72302 2007-03-07  Bruno Haible  <bruno@clisp.org>
72303
72304         * m4/printf.m4: Make the shell script snippets copy&pastable.
72305
72306 2007-03-02  Bruno Haible  <bruno@clisp.org>
72307
72308         * lib/netinet_in_.h: New file.
72309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72310         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72311         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72312         (Depends-on): Add absolute-header.
72313         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72314         into netinet/in.h.
72315
72316 2007-03-03  Bruno Haible  <bruno@clisp.org>
72317
72318         * lib/sys_select_.h: New file.
72319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72320         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72321         * modules/sys_select (Files): Add lib/sys_select_.h.
72322         (Depends-on): Add absolute-header.
72323         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72324         into sys/select.h.
72325
72326 2007-03-02  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72329         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72330         values.
72331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72332         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72333         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72334         * modules/sys_socket (Depends-on): Add absolute-header.
72335         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72336         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72337         (Include): Remove requirement of inclusion of <sys/types.h>.
72338
72339 2007-03-02  Bruno Haible  <bruno@clisp.org>
72340
72341         * lib/byteswap_.h (bswap_32): Fix formula.
72342
72343 2007-03-06  Bruno Haible  <bruno@clisp.org>
72344
72345         * modules/sprintf-posix-tests: New file.
72346         * tests/test-sprintf-posix.c: New file.
72347
72348         * modules/sprintf-posix: New file.
72349         * lib/sprintf.c: New file.
72350         * m4/sprintf-posix.m4: New file.
72351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72352         REPLACE_SPRINTF.
72353         * lib/stdio_.h (sprintf): New declaration.
72354         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72355         REPLACE_SPRINTF.
72356
72357 2007-03-06  Bruno Haible  <bruno@clisp.org>
72358
72359         * modules/vsprintf-posix-tests: New file.
72360         * tests/test-vsprintf-posix.c: New file.
72361         * tests/test-sprintf-posix.h: New file.
72362
72363         * modules/vsprintf-posix: New file.
72364         * lib/vsprintf.c: New file.
72365         * m4/vsprintf-posix.m4: New file.
72366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72367         REPLACE_VSPRINTF.
72368         * lib/stdio_.h (vsprintf): New declaration.
72369         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72370         REPLACE_VSPRINTF.
72371
72372 2007-03-06  Bruno Haible  <bruno@clisp.org>
72373
72374         * modules/vsnprintf (Depend-on): Remove minmax.
72375
72376 2007-03-06  Bruno Haible  <bruno@clisp.org>
72377
72378         * modules/snprintf-posix-tests: New file.
72379         * tests/test-snprintf-posix.c: New file.
72380
72381         * modules/snprintf-posix: New file.
72382         * m4/snprintf-posix.m4: New file.
72383         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72384         gl_FUNC_SNPRINTF.
72385         (gl_FUNC_SNPRINTF): Invoke it.
72386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72387         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72388         is set.
72389         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72390
72391 2007-03-06  Bruno Haible  <bruno@clisp.org>
72392
72393         * modules/vsnprintf-posix-tests: New file.
72394         * tests/test-vsnprintf-posix.c: New file.
72395         * tests/test-snprintf-posix.h: New file.
72396
72397         * modules/vsnprintf-posix: New file.
72398         * m4/vsnprintf-posix.m4: New file.
72399         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72400         gl_FUNC_VSNPRINTF.
72401         (gl_FUNC_VSNPRINTF): Invoke it.
72402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72403         * lib/stdio_.h (vsnprintf): Define as a replacement if
72404         REPLACE_VSNPRINTF is set.
72405         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72406
72407 2007-03-06  Bruno Haible  <bruno@clisp.org>
72408
72409         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72411
72412 2007-03-06  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72415         (asinl): Declare also if HAVE_DECL_ASINL is set.
72416         (atanl): Declare also if HAVE_DECL_ATANL is set.
72417         (ceill): Declare also if HAVE_DECL_CEILL is set.
72418         (cosl): Declare also if HAVE_DECL_COSL is set.
72419         (expl): Declare also if HAVE_DECL_EXPL is set.
72420         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72421         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72422         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72423         (logl): Declare also if HAVE_DECL_LOGL is set.
72424         (sinl): Declare also if HAVE_DECL_SINL is set.
72425         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72426         (tanl): Declare also if HAVE_DECL_TANL is set.
72427         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72430         declaration of frexpl, ldexpl.
72431         * modules/printf-frexpl (Depends-on): Add math.
72432         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72433
72434 2007-03-05  Bruno Haible  <bruno@clisp.org>
72435
72436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72437         frexpl and ldexpl are declared.
72438         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72439
72440 2007-03-05  Bruno Haible  <bruno@clisp.org>
72441
72442         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72443         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72444
72445 2007-03-05  Bruno Haible  <bruno@clisp.org>
72446
72447         * lib/stdio_.h: Include <stddef.h>.
72448
72449 2007-03-05  Bruno Haible  <bruno@clisp.org>
72450
72451         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72452
72453 2007-03-05  Bruno Haible  <bruno@clisp.org>
72454
72455         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72456         NetBSD 4, from Ralf Wildenhues.
72457
72458 2007-03-04  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/vasprintf.h: Update #if logic for the case when the functions
72461         exist but are overridden.
72462
72463 2007-03-04  Bruno Haible  <bruno@clisp.org>
72464
72465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72466         implementations: glibc-2.4 and MacOS X 10.3.
72467         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72468         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72469         * tests/test-vasprintf-posix.c (test_function): Likewise.
72470
72471 2007-03-04  Bruno Haible  <bruno@clisp.org>
72472
72473         * modules/vasprintf-posix-tests: New file.
72474         * tests/test-vasprintf-posix.c: New file.
72475
72476         * modules/vasprintf-posix: New file.
72477         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72478         defined.
72479         * m4/vasprintf-posix.m4: New file.
72480         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72481         gl_FUNC_VASPRINTF.
72482         (gl_FUNC_VASPRINTF): Invoke it.
72483         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72484         here.
72485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72486
72487 2007-03-04  Bruno Haible  <bruno@clisp.org>
72488
72489         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72490         REPLACE_GETTIMEOFDAY.
72491         * modules/sys_time (Makefile.am): Likewise.
72492         * m4/sys_time_h.m4: Likewise.
72493         * m4/gettimeofday.m4: Likewise.
72494
72495 2007-03-04  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/vasnprintf-posix-tests: New file.
72498         * tests/test-vasnprintf-posix.c: New file.
72499
72500         * modules/vasnprintf-posix: New file.
72501         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72502         printf-frexpl.h.
72503         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72504         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72505         REPLACE_VASNPRINTF is defined.
72506         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72507         gl_FUNC_VASNPRINTF.
72508         (gl_FUNC_VASNPRINTF): Invoke it.
72509         * m4/vasnprintf-posix.m4: New file.
72510         * m4/printf.m4: New file.
72511
72512 2007-03-04  Bruno Haible  <bruno@clisp.org>
72513
72514         Compile progreloc.c only if --enable-relocatable is specified.
72515         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72516         if --enable-relocatable was specified.
72517         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72518         lib_SOURCES.
72519
72520 2007-03-04  Jim Meyering  <jim@meyering.net>
72521
72522         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72523         Use it consistently, rather than enumerating errno constants.
72524
72525 2007-03-04  Bruno Haible  <bruno@clisp.org>
72526
72527         * modules/xvasprintf-tests: New file.
72528         * tests/test-xvasprintf.c: New file.
72529
72530         * modules/vasprintf-tests: New file.
72531         * tests/test-vasprintf.c: New file.
72532
72533         * modules/vasnprintf-tests: New file.
72534         * tests/test-vasnprintf.c: New file.
72535
72536         * modules/vsnprintf-tests: New file.
72537         * tests/test-vsnprintf.c: New file.
72538
72539         * modules/snprintf-tests: New file.
72540         * tests/test-snprintf.c: New file.
72541
72542 2007-03-04  Bruno Haible  <bruno@clisp.org>
72543
72544         Compile relocatable.c only if --enable-relocatable is specified.
72545         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72546         gl_RELOCATABLE_LIBRARY.
72547         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72548         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72549         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72550         gl_RELOCATABLE_LIBRARY.
72551         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72552         (Makefile.am): Remove lib_SOURCES.
72553         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72554         gl_RELOCATABLE_LIBRARY.
72555         (Makefile.am): Remove lib_SOURCES.
72556         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72557         always.
72558         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72559         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72560
72561 2007-03-04  Bruno Haible  <bruno@clisp.org>
72562
72563         * modules/argmatch-tests: New file.
72564         * tests/test-argmatch.c: New file.
72565
72566         * tests/test-allocsa.c (main): Halve the number of loop runs.
72567
72568         * modules/alloca-opt-tests: New file.
72569         * tests/test-alloca-opt.c: New file.
72570
72571 2007-03-04  Jim Meyering  <jim@meyering.net>
72572
72573         Work around difference between Linux ACLs and Solaris 10 ZFS.
72574         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72575         for EINVAL.
72576
72577 2007-03-03  Bruno Haible  <bruno@clisp.org>
72578
72579         * modules/relocatable-prog (Depends-on): Add back progreloc's
72580         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72581
72582 2007-03-03  Bruno Haible  <bruno@clisp.org>
72583
72584         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72585         * modules/relocatable-lib: New file.
72586
72587 2007-03-03  Bruno Haible  <bruno@clisp.org>
72588
72589         * modules/relocatable-prog: Renamed from modules/relocatable.
72590         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72591
72592 2007-03-03  Bruno Haible  <bruno@clisp.org>
72593
72594         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72595         m4/relocatable-lib.m4.
72596         (Depends-on): Remove 'relocatable'.
72597         (configure.ac): Add gl_RELOCATABLE_NOP.
72598
72599 2007-03-03  Bruno Haible  <bruno@clisp.org>
72600
72601         * modules/relocatable-prog-wrapper: New file.
72602         * modules/relocatable (Depends-on): Add it. Remove all other
72603         dependencies except progname.
72604         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72605
72606         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72607         (gl_FUNC_STRERROR): Nop.
72608         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72609
72610         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72611         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72612
72613         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72614         (gl_FUNC_READLINK): Update.
72615
72616         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72617
72618 2007-03-03  Bruno Haible  <bruno@clisp.org>
72619
72620         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72621         * modules/xreadlink (Depends-on): Add unistd.
72622         * modules/xreadlink-with-size (Depends-on): Likewise.
72623
72624 2007-03-03  Bruno Haible  <bruno@clisp.org>
72625
72626         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72627         extracted from gt_FUNC_SETENV.
72628         (gt_FUNC_SETENV): Remove macro.
72629         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72630         remove gt_FUNC_SETENV.
72631
72632 2007-03-03  Bruno Haible  <bruno@clisp.org>
72633
72634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72635         ENABLE_RELOCATABLE here.
72636         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72637
72638 2007-03-03  Bruno Haible  <bruno@clisp.org>
72639
72640         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72641         * tests/test-rbtreehash_list.c: Include progname.h.
72642         (main): Call set_program_name.
72643
72644         * modules/rbtree-oset-tests (Depends-on): Add progname.
72645         * tests/test-rbtree_oset.c: Include progname.h.
72646         (main): Call set_program_name.
72647
72648         * modules/rbtree-list-tests (Depends-on): Add progname.
72649         * tests/test-rbtree_list.c: Include progname.h.
72650         (main): Call set_program_name.
72651
72652         * modules/linked-list-tests (Depends-on): Add progname.
72653         * tests/test-linked_list.c: Include progname.h.
72654         (main): Call set_program_name.
72655
72656 2007-03-03  Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72659         All uses of __restrict changed to _Restrict_.
72660         * lib/glob_.h (__restrict): Remove macro.
72661
72662 2007-03-02  Bruno Haible  <bruno@clisp.org>
72663
72664         * modules/gettext (configure.ac): Require gettext infrastructure
72665         from version 0.16.1.
72666
72667 2007-03-02  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/linkedhash-list-tests (Depends-on): Add progname.
72670         * tests/test-linkedhash_list.c: Include progname.h.
72671         (main): Call set_program_name.
72672
72673         * modules/carray-list-tests (Depends-on): Add progname.
72674         * tests/test-carray_list.c: Include progname.h.
72675         (main): Call set_program_name.
72676
72677         * modules/avltreehash-list-tests (Depends-on): Add progname.
72678         * tests/test-avltreehash_list.c: Include progname.h.
72679         (main): Call set_program_name.
72680
72681         * modules/avltree-oset-tests (Depends-on): Add progname.
72682         * tests/test-avltree_oset.c: Include progname.h.
72683         (main): Call set_program_name.
72684
72685         * modules/avltree-list-tests (Depends-on): Add progname.
72686         * tests/test-avltree_list.c: Include progname.h.
72687         (main): Call set_program_name.
72688
72689         * modules/array-oset-tests (Depends-on): Add progname.
72690         * tests/test-array_oset.c: Include progname.h.
72691         (main): Call set_program_name.
72692
72693         * modules/array-list-tests (Depends-on): Add progname.
72694         * tests/test-array_list.c: Include progname.h.
72695         (main): Call set_program_name.
72696
72697         * modules/argp-tests (Depends-on): Add progname.
72698         * tests/test-argp.c: Include argp.h first. Include progname.h.
72699         (main): Call set_program_name.
72700
72701 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * doc/gnulib-tool.texi (Initial import): Reword description of
72704         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72705         limited effect even if defined after the first system include.
72706
72707 2007-03-01  Bruno Haible  <bruno@clisp.org>
72708
72709         * build-aux/config.libpath: Update to libtool-1.5.22.
72710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72711
72712 2007-03-01  Bruno Haible  <bruno@clisp.org>
72713
72714         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72715         foo_CFLAGS.
72716         Reported by Ralf Wildenhues.
72717
72718 2007-03-01  Bruno Haible  <bruno@clisp.org>
72719
72720         * build-aux/install-reloc: Remove object files left over by some
72721         compilers.
72722         Reported by Ralf Wildenhues.
72723
72724 2007-03-01  Bruno Haible  <bruno@clisp.org>
72725
72726         * build-aux/install-reloc: Break long lines.
72727
72728 2007-03-01  Bruno Haible  <bruno@clisp.org>
72729
72730         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72731         Reported by Ralf Wildenhues.
72732
72733 2007-03-01  Bruno Haible  <bruno@clisp.org>
72734
72735         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72736         include ordering constraints.
72737
72738 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72742         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72743         as another example.
72744         * lib/time_.h: Fix misspelling.
72745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72746         Require gl_HEADER_TIME_H_DEFAULTS.
72747         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72748         * m4/time_r.m4 (gl_TIME_R): Likewise.
72749         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72750
72751 2007-03-01  Bruno Haible  <bruno@clisp.org>
72752
72753         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72754         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72755
72756 2007-03-01  Jim Meyering  <jim@meyering.net>
72757
72758         * modules/xreadlink (Maintainer): Add my name.
72759         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72760
72761 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72762             Bruno Haible  <bruno@clisp.org>
72763
72764         * build-aux/install-reloc: Compile also c-ctype.c.
72765         * build-aux/relocatable.sh.in: New file.
72766         * doc/relocatable.texi: New file.
72767         * doc/relocatable-maint.texi: New file.
72768         * doc/gnulib.texi: Include relocatable-maint.texi.
72769         * lib/progreloc.c: Include unistd.h unconditionally.
72770         * lib/relocwrapper.c: Include unistd.h unconditionally.
72771         Include c-ctype.h.
72772         (add_dotbin): Use c_tolower.
72773         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72774         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72775         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72776         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72777         to m4/relocatable-lib.m4.
72778         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72779         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72780         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72781         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72782         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72783         * modules/relocatable: New file.
72784         * modules/relocatable-lib: New file.
72785         * modules/relocatable-script: New file.
72786
72787 2007-02-28  Bruno Haible  <bruno@clisp.org>
72788
72789         Import --enable-relocatable infrastructure.
72790         * build-aux/config.libpath: New file, from GNU gettext.
72791         * build-aux/install-reloc: New file, from GNU gettext.
72792         * build-aux/reloc-ldflags: New file, from GNU gettext.
72793         * lib/relocatable.h: New file, from GNU gettext.
72794         * lib/relocatable.c: New file, from GNU gettext.
72795         * lib/relocwrapper.c: New file, from GNU gettext.
72796         * m4/relocatable.m4: New file, from GNU gettext.
72797
72798 2007-02-28  Bruno Haible  <bruno@clisp.org>
72799
72800         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72801
72802         * modules/xreadlink: New file, from GNU gettext with modifications.
72803         * lib/xreadlink.c: New file, from GNU gettext.
72804         * lib/xreadlink.h: Add comments.
72805         (xreadlink): New declaration.
72806
72807         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72808         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72809         lib/xreadlink-with-size.c.
72810         (configure.ac): Remove gl_XREADLINK invocation.
72811         (Makefile.am): Augment lib_SOURCES.
72812         * m4/xreadlink.m4: Remove file.
72813         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72814         (xreadlink_with_size): Renamed from xreadink.
72815         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72816         * modules/canonicalize (Depends-on): Replace xreadlink with
72817         xreadlink-with-size.
72818         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72819
72820 2007-02-25  Jim Meyering  <jim@meyering.net>
72821
72822         * build-aux/announce-gen: When complaining about excess arguments,
72823         list them.
72824
72825 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * README: Document signed integer overflow situation more
72828         accurately.
72829
72830 2007-02-25  Bruno Haible  <bruno@clisp.org>
72831
72832         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72833         'a' or 'A' conversion.
72834
72835 2007-02-25  Bruno Haible  <bruno@clisp.org>
72836
72837         * modules/filename: Renamed from modules/pathname.
72838         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72839         lib/concatpath.c with lib/concat-filename.c.
72840         (Makefile.am): Update.
72841         (Include): Replace pathname.h with filename.h.
72842         * lib/filename.h: Renamed from lib/pathname.h.
72843         (concatenated_filename): Renamed from concatenated_pathname.
72844         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72845         (concatenated_filename): Renamed from concatenated_pathname.
72846         * lib/findprog.c: Include filename.h instead of pathname.h.
72847         (find_in_path): Update.
72848         * lib/javacomp.c: Include filename.h instead of pathname.h.
72849         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72850         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72851         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72852         is_oldgcj_14_13_usable, is_javac_usable): Update.
72853         * lib/javaexec.c: Include filename.h instead of pathname.h.
72854         (execute_java_class): Update.
72855         * modules/findprog: Update.
72856         * modules/javacomp: Update.
72857         * modules/javaexec: Update.
72858         * MODULES.html.sh (File system functions): Add 'filename', remove
72859         'pathname'.
72860
72861 2007-02-25  Bruno Haible  <bruno@clisp.org>
72862
72863         * modules/printf-frexpl-tests: New file.
72864         * tests/test-printf-frexpl.c: New file.
72865
72866         * modules/printf-frexpl: New file.
72867         * lib/printf-frexpl.h: New file.
72868         * lib/printf-frexpl.c: New file.
72869         * m4/printf-frexpl.m4: New file.
72870
72871 2007-02-25  Bruno Haible  <bruno@clisp.org>
72872
72873         * modules/printf-frexp-tests: New file.
72874         * tests/test-printf-frexp.c: New file.
72875
72876         * modules/printf-frexp: New file.
72877         * lib/printf-frexp.h: New file.
72878         * lib/printf-frexp.c: New file.
72879         * m4/printf-frexp.m4: New file.
72880
72881 2007-02-25  Bruno Haible  <bruno@clisp.org>
72882
72883         Assume automake >= 1.10 for the tests.
72884         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72885         * modules/arctwo-tests: Likewise.
72886         * modules/argp-tests: Likewise.
72887         * modules/avltree-list-tests: Likewise.
72888         * modules/avltree-oset-tests: Likewise.
72889         * modules/avltreehash-list-tests: Likewise.
72890         * modules/carray-list-tests: Likewise.
72891         * modules/crc-tests: Likewise.
72892         * modules/des-tests: Likewise.
72893         * modules/gc-arcfour-tests: Likewise.
72894         * modules/gc-arctwo-tests: Likewise.
72895         * modules/gc-des-tests: Likewise.
72896         * modules/gc-hmac-md5-tests: Likewise.
72897         * modules/gc-hmac-sha1-tests: Likewise.
72898         * modules/gc-md2-tests: Likewise.
72899         * modules/gc-md4-tests: Likewise.
72900         * modules/gc-md5-tests: Likewise.
72901         * modules/gc-pbkdf2-sha1-tests: Likewise.
72902         * modules/gc-rijndael-tests: Likewise.
72903         * modules/gc-sha1-tests: Likewise.
72904         * modules/gc-tests: Likewise.
72905         * modules/getaddrinfo-tests: Likewise.
72906         * modules/hmac-md5-tests: Likewise.
72907         * modules/hmac-sha1-tests: Likewise.
72908         * modules/linked-list-tests: Likewise.
72909         * modules/linkedhash-list-tests: Likewise.
72910         * modules/lock-tests: Likewise.
72911         * modules/md2-tests: Likewise.
72912         * modules/md4-tests: Likewise.
72913         * modules/md5-tests: Likewise.
72914         * modules/rbtree-list-tests: Likewise.
72915         * modules/rbtree-oset-tests: Likewise.
72916         * modules/rbtreehash-list-tests: Likewise.
72917         * modules/read-file-tests: Likewise.
72918         * modules/rijndael-tests: Likewise.
72919         * modules/stdint-tests: Likewise.
72920         * modules/tls-tests: Likewise.
72921
72922 2007-02-24  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72925         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72926         function; instead check whether isnan with a double argument links.
72927         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72928         function; instead check whether isnan with a 'long double' argument
72929         links.
72930         Reported by Eric Blake <ebb9@byu.net>.
72931
72932 2007-02-24  Bruno Haible  <bruno@clisp.org>
72933
72934         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72935         defined.
72936         * lib/isnanl.c: Remove all code. Just include isnan.c.
72937         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72938
72939 2007-02-25  Jim Meyering  <jim@meyering.net>
72940
72941         Avoid conflicting types for 'unsetenv' on FreeBSD.
72942         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72943         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72944         in stdlib.h.
72945
72946 2007-02-24  Bruno Haible  <bruno@clisp.org>
72947
72948         * modules/isnanl-nolibm-tests: New file.
72949         * tests/test-isnanl.c: New file.
72950
72951         * modules/isnanl-nolibm: New file.
72952         * lib/isnanl.h: New file.
72953         * lib/isnanl.c: New file.
72954         * m4/isnanl.m4: New file.
72955
72956 2007-02-24  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/isnan-nolibm-tests: New file.
72959         * tests/test-isnan.c: New file.
72960
72961         * modules/isnan-nolibm: New file.
72962         * lib/isnan.h: New file.
72963         * lib/isnan.c: New file.
72964         * m4/isnan.m4: New file.
72965
72966 2007-02-24  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72969         assume that an exponent fits in 20 bits.
72970
72971 2007-02-24  Jim Meyering  <jim@meyering.net>
72972
72973         * m4/regex.m4: Update the description of the configure-time option,
72974         --without-included-regex, to state accurately what the defaults are,
72975         and perhaps to give people an idea why using this option is risky.
72976
72977 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72980         loops on small arguments.  This attempts to avoid the problem
72981         Bruno Haible reported for AIX 4.3.2 in
72982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72983
72984 2007-02-23  Bruno Haible  <bruno@clisp.org>
72985
72986         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72987         Needed for help2man.
72988
72989 2007-02-23  Karl Berry  <karl@gnu.org>
72990
72991         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72992         exists, foo.h should be cvs-ignored, not committed.
72993
72994 2007-02-23  Eric Blake  <ebb9@byu.net>
72995
72996         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72997         * lib/stat-time.h (includes): Likewise.
72998         * lib/utimecmp.c (includes): Likewise.
72999         * lib/utimens.h (includes): Likewise.
73000         * lib/getdate.y (includes): Also include "timespec.h" for use
73001         internal to the module.
73002         * modules/utimens (Depends-on): Revert yesterday's patch.
73003         * modules/nanosleep (Depends-on): Add missing dependency.
73004
73005 2007-02-22  Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/glob.c: Don't include getlogin_r.h.
73008
73009 2007-02-22  Jim Meyering  <jim@meyering.net>
73010
73011         * modules/utimens (Depends-on): Add timespec, required for
73012         utimens.h's inclusion of timespec.h.
73013
73014 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73017         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73018         Schwab in
73019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73020         I'll try to think of a better way to fix the Solaris problem.
73021
73022         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73023         like glibc; on Solaris 10, it fails with errno == EINVAL.
73024         POSIX says the behavior is unspecified if the first argument is NULL,
73025         so play it safe and never pass NULL to the system getcwd.
73026
73027 2007-02-21  Jim Meyering  <jim@meyering.net>
73028
73029         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73030         of gettimeofday.  It would conflict with the one now always
73031         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73032         an IRIX 6.5 build failure.
73033
73034 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73035
73036         Minor fixups to port to Solaris 10 with Sun C 5.8.
73037         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73038         * modules/getcwd (Depends-on): Add dirfd.
73039         * lib/putenv.c (putenv): #undef it.
73040         (rpl_putenv): New decl.
73041         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73042
73043 2007-02-20  Bruno Haible  <bruno@clisp.org>
73044
73045         * modules/stdio-tests: New file.
73046         * tests/test-stdio.c: New file.
73047
73048         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73049         (Depends-on): Add stdio.
73050         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73051         (Include): Use <stdio.h> instead of vsnprintf.h.
73052         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73053         HAVE_DECL_VSNPRINTF.
73054         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73055
73056         * modules/snprintf (Files): Remove lib/snprintf.h.
73057         (Depends-on): Add stdio.
73058         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73059         (Include): Use <stdio.h> instead of snprintf.h.
73060         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73061         HAVE_DECL_SNPRINTF.
73062         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73063         * lib/getaddrinfo.c: Likewise.
73064
73065         * modules/stdio: New file.
73066         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73067         * lib/snprintf.h: Remove file.
73068         * lib/vsnprintf.h: Remove file.
73069         * lib/.cppi-disable: Remove snprintf.h.
73070         * m4/stdio_h.m4: New file.
73071         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73072
73073 2007-02-20  Jim Meyering  <jim@meyering.net>
73074
73075         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73076         used by e.g., mingw.  From Bruno Haible.
73077
73078 2007-02-19  Bruno Haible  <bruno@clisp.org>
73079
73080         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73081         warnings.
73082         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73083
73084 2007-02-19  Bruno Haible  <bruno@clisp.org>
73085
73086         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73087         from mingw users.
73088
73089 2007-02-19  Bruno Haible  <bruno@clisp.org>
73090
73091         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73092         warnings.
73093         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73094
73095 2007-02-19  Jim Meyering  <jim@meyering.net>
73096
73097         Don't use FD after a successful "fdopendir (fd)".
73098         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73099         Reset it by calling dirfd on the just-obtained DIR*.
73100
73101         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73102         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73103
73104 2007-02-18  Bruno Haible  <bruno@clisp.org>
73105
73106         * lib/readlink.c: Include <unistd.h>.
73107         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73108         HAVE_READLINK.
73109         * modules/readlink (Depends-on): Add unistd.
73110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73111         (Include): Add <unistd.h>.
73112
73113         * lib/getlogin_r.h: Remove file.
73114         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73115         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73116         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73117         HAVE_DECL_GETLOGIN_R.
73118         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73120         (Include): Use <unistd.h> instead of getlogin_r.h.
73121
73122         * lib/getcwd.h: Remove file.
73123         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73124         * lib/xgetcwd.c: Likewise.
73125         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73126         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73127         * modules/getcwd (Files): Remove lib/getcwd.h.
73128         (Depends-on): Add unistd.
73129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73130         (Include): Use <unistd.h> instad of getcwd.h.
73131
73132         * lib/ftruncate.c: Include <unistd.h> first.
73133         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73134         Set HAVE_FTRUNCATE.
73135         * modules/ftruncate (Depends-on): Add unistd.
73136         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73137
73138         * lib/fchdir.c: Include <unistd.h> first.
73139         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73141         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73142         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73143         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73144
73145         * lib/dup2.c: Include <unistd.h> first.
73146         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73147         HAVE_DUP2.
73148         * modules/dup2 (Depends-on): Add unistd.
73149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73150
73151         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73152         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73153         REPLACE_CHOWN. Don't define chown as a macro here.
73154         * modules/chown (Depends-on): Add unistd.
73155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73156
73157         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73158         Add definition for GL_LINK_WARNING.
73159         (chown, dup2): New declarations.
73160         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73161         link warning.
73162         (ftruncate): New declaration.
73163         (getcwd): New declaration, taken from old getcwd.h.
73164         (getlogin_r): New declaration, taken from old getlogin_r.h.
73165         (readlink): New declaration.
73166         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73167         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73168         (gl_PREREQ_UNISTD): Remove macro.
73169         (gl_UNISTD_MODULE_INDICATOR): New macro.
73170         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73171         many new variables. Don't set UNISTD_H.
73172         * modules/unistd (Description): Change.
73173         (Depends-on): Add link-warning.
73174         (configure.ac): Update.
73175         (Makefile.am): Create unistd.h always. Substitute many new variables
73176         into it.
73177
73178 2007-02-18  Bruno Haible  <bruno@clisp.org>
73179
73180         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73181         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73182         HAVE_GETSUBOPT.
73183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73184         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73185         * lib/getsubopt.h: Remove file.
73186         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73187         (Depends-on): Add stdlib.
73188         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73189         (Includes): Use <stdlib.h> instead of getsubopt.h.
73190         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73191         Set HAVE_GETSUBOPT.
73192         * lib/getsubopt.c: Don't include getsubopt.h.
73193
73194 2007-02-18  Bruno Haible  <bruno@clisp.org>
73195
73196         * modules/fchdir (Depends-on): Add dup2.
73197
73198 2007-02-18  Bruno Haible  <bruno@clisp.org>
73199
73200         * lib/stdlib_.h: Handle glibc's special invocation convention
73201         specially.
73202
73203 2007-02-18  Bruno Haible  <bruno@clisp.org>
73204
73205         * modules/stdlib-tests: New file.
73206         * tests/test-stdlib.c: New file.
73207
73208         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73209         (Depends-on): Add stdlib.
73210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73211         (Includes): Use <stdlib.h> instead of mkstemp.h.
73212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73213         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73214         * lib/mkstemp.c: Don't include mkstemp.h.
73215         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73216         * lib/stdlib--.h: Don't include mkstemp.h.
73217
73218         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73219         (Depends-on): Add stdlib.
73220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73221         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73222         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73223         HAVE_MKDTEMP.
73224         * lib/mkdtemp.c: Don't include mkdtemp.h.
73225         * lib/clean-temp.c: Don't include mkdtemp.h.
73226
73227         * modules/exit (Files): Remove lib/exit.h.
73228         (Depends-on): Add stdlib.
73229         (Makefile.am): Remove lib_SOURCES.
73230         (Include): Use <stdlib.h> instead of exit.h.
73231         * lib/argmatch.c: Don't include exit.h.
73232         * lib/execute.c: Likewise.
73233         * lib/pagealign_alloc.c: Likewise.
73234         * lib/pipe.c: Likewise.
73235         * lib/wait-process.c: Likewise.
73236         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73237         * lib/exitfail.c: Likewise.
73238         * lib/savewd.c: Likewise.
73239         * lib/xsetenv.c: Likewise.
73240
73241         * modules/stdlib: New file.
73242         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73243         and extra comments about mkstemp().
73244         * lib/exit.h: Remove file.
73245         * lib/mkdtemp.h: Remove file.
73246         * lib/mkstemp.h: Remove file.
73247         * m4/stdlib_h.m4: New file.
73248         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73249
73250 2007-02-18  Bruno Haible  <bruno@clisp.org>
73251
73252         * modules/math-tests: New file.
73253         * tests/test-math.c: New file.
73254
73255         * modules/math: New file.
73256         * modules/mathl (Files): Remove lib/mathl.h.
73257         (Depends-on): Add math.
73258         (Makefile.am): Don't mention mathl.h.
73259         (Include): Use <math.h> instead of mathl.h.
73260         * lib/math_.h: New file.
73261         * lib/mathl.h: Remove file.
73262         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73263         mathl.h.
73264         * lib/asinl.c: Likewise.
73265         * lib/atanl.c: Likewise.
73266         * lib/ceill.c: Likewise.
73267         * lib/cosl.c: Likewise.
73268         * lib/expl.c: Likewise.
73269         * lib/floorl.c: Likewise.
73270         * lib/frexpl.c: Likewise.
73271         * lib/ldexpl.c: Likewise.
73272         * lib/logl.c: Likewise.
73273         * lib/sincosl.c: Likewise.
73274         * lib/sinl.c: Likewise.
73275         * lib/sqrtl.c: Likewise.
73276         * lib/tanl.c: Likewise.
73277         * lib/trigl.c: Likewise.
73278         * m4/math_h.m4: New file.
73279         * MODULES.html.sh (Mathematics): Add math.
73280
73281 2007-02-17  Bruno Haible  <bruno@clisp.org>
73282
73283         * modules/wctype-tests: New file.
73284         * tests/test-wctype.c: New file.
73285
73286         * modules/wchar-tests: New file.
73287         * tests/test-wchar.c: New file.
73288
73289         * modules/unistd-tests: New file.
73290         * tests/test-unistd.c: New file.
73291
73292         * modules/time-tests: New file.
73293         * tests/test-time.c: New file.
73294
73295         * modules/sysexits-tests: New file.
73296         * tests/test-sysexits.c: New file.
73297
73298         * modules/sys_time-tests: New file.
73299         * tests/test-sys_time.c: New file.
73300
73301         * modules/sys_stat-tests: New file.
73302         * tests/test-sys_stat.c: New file.
73303
73304         * modules/sys_socket-tests: New file.
73305         * tests/test-sys_socket.c: New file.
73306
73307         * modules/sys_select-tests: New file.
73308         * tests/test-sys_select.c: New file.
73309
73310         * modules/string-tests: New file.
73311         * tests/test-string.c: New file.
73312
73313         * modules/stdbool-tests: New file.
73314         * tests/test-stdbool.c: New file.
73315
73316         * modules/netinet_in-tests: New file.
73317         * tests/test-netinet_in.c: New file.
73318
73319         * modules/inttypes-tests: New file.
73320         * tests/test-inttypes.c: New file.
73321
73322         * modules/fcntl-tests: New file.
73323         * tests/test-fcntl.c: New file.
73324
73325         * modules/byteswap-tests: New file.
73326         * tests/test-byteswap.c: New file.
73327
73328         * modules/arpa_inet-tests: New file.
73329         * tests/test-arpa_inet.c: New file.
73330
73331 2007-02-17  Bruno Haible  <bruno@clisp.org>
73332
73333         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73334         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73335         if the corresponding module is not enabled. Emit link warnings if
73336         the function is used nevertheless.
73337         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73338         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73339         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73340         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73341         * modules/inttypes (Depends-on): Add link-warning.
73342         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73343         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73344         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73345         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73346         * modules/imaxdiv (configure.ac): Likewise.
73347         * modules/strtoimax (configure.ac): Likewise.
73348         * modules/strtoumax (configure.ac): Likewise.
73349
73350 2007-02-17  Bruno Haible  <bruno@clisp.org>
73351
73352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73353         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73354         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73355         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73356
73357 2007-02-17  Bruno Haible  <bruno@clisp.org>
73358
73359         * modules/link-warning: New file.
73360         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73361         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73362         * modules/string (Depends-on): Add link-warning.
73363         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73364         string.h.
73365         * MODULES.html.sh (Support for building libraries and executables): Add
73366         link-warning.
73367
73368 2007-02-17  Bruno Haible  <bruno@clisp.org>
73369
73370         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73371         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73372         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73373         long lines.
73374
73375 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73376             Bruno Haible  <bruno@clisp.org>
73377
73378         * modules/tmpfile: New file.
73379         * lib/tmpfile.c: New file.
73380         * m4/tmpfile.m4: New file.
73381         * MODULES.html.sh (func_all_modules): New section "Input/output".
73382
73383 2007-02-15  Bruno Haible  <bruno@clisp.org>
73384
73385         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73386         (supports_delete_on_close): New function.
73387         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73388
73389 2007-02-14  Bruno Haible  <bruno@clisp.org>
73390
73391         * modules/mbspcasecmp-tests: New file.
73392         * tests/test-mbspcasecmp.sh: New file.
73393         * tests/test-mbspcasecmp.c: New file.
73394
73395         New module mbspcasecmp.
73396         * modules/mbspcasecmp: New file.
73397         * lib/mbspcasecmp.c: New file.
73398         * lib/string_.h (strncasecmp): Change warning message.
73399         (mbspcasecmp): New declaration.
73400         * m4/mbspcasecmp.m4: New file.
73401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73402         GNULIB_MBSPCASECMP.
73403         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73404         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73405
73406 2007-02-14  Bruno Haible  <bruno@clisp.org>
73407
73408         * modules/mbsncasecmp-tests: New file.
73409         * tests/test-mbsncasecmp.sh: New file.
73410         * tests/test-mbsncasecmp.c: New file.
73411
73412         New module mbsncasecmp.
73413         * modules/mbsncasecmp: New file.
73414         * lib/mbsncasecmp.c: New file.
73415         * lib/string_.h (mbsncasecmp): New declaration.
73416         * m4/mbsncasecmp.m4: New file.
73417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73418         GNULIB_MBSNCASECMP.
73419         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73420         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73421
73422 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73425         Verify that it doesn't overlap with our flags.
73426         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73427         do not have the desired effect in multibyte locales; instead, use
73428         mbscasecmp.
73429         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73430         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73431         we don't require GNU fnmatch ourselves (if our users require it, they
73432         should do so explicitly).
73433
73434         Fix regex code so it doesn't rely on strcasecmp.
73435         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73436         Otherwise, include gnulib's langinfo.h.
73437         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73438         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73439         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73440         * modules/regex (FILES): Remove m4/codeset.m4.
73441         (Depends-on): Add localcharset.  Remove strcase.
73442
73443 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73444
73445         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73446         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73447
73448 2007-02-13  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73452
73453 2007-02-12  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73456         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73457         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73458         time warning rather than a link error.
73459
73460 2007-02-12  Bruno Haible  <bruno@clisp.org>
73461
73462         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73465
73466 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73469         args, not 2.
73470
73471 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         New module 'time', so that apps can include <time.h> as per
73474         POSIX and GNU instead of separate include files like time_r.h
73475         and timegm.h.  This implementation tries out a simpler approach
73476         for replacing decls in standard include files (as compared to
73477         the string module), somewhat as an experiment.
73478
73479         * config/srclist.txt: Comment out mktime.c for now.
73480         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73481         since it doesn't apply any more.  Use generic wording instead.
73482         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73483         'time'.
73484         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73485         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73486         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73487         Don't include <sys/types.h>; no longer needed since we assume C89.
73488         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73489         * lib/strftime.c: Likewise.
73490         * lib/time_r.c: Likewise.
73491         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73492         * lib/nanosleep.c: Include <time.h> first, to check interface.
73493         * lib/strptime.c: Likewise.
73494         * lib/time_r.c: Likewise.
73495         * lib/timegm.c: Likewise.
73496         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73497         needed.
73498         * lib/timegm.c: Don't include timegm.h; no longer needed.
73499         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73500         time.h now handles any problems in that area.
73501         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73502         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73503         that time.h defines struct timespec.
73504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73505         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73506         handles that.
73507         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73508         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73509         needed.  Set REPLACE_LOCALTIME.
73510         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73511         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73512         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73513         nanosleep; time_h.m4 now does that.  Don't require
73514         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73515         module handles this now.
73516         * modules/getdate (Depends-on): Remove timespec.  Add time.
73517         * modules/nanosleep (Depends-on): Likewise.
73518         * modules/stat-time (Depends-on): Likewise.
73519         * modules/nanosleep (Include): Include time.h, not timespec.h.
73520         * modules/strptime (Files): Remove lib/strptime.h.
73521         (Depends-on): Add extensions, time.
73522         (Include): Include time.h, not strptime.h.
73523         * modules/time_r (Files): Remove lib/time_r.h.
73524         (Depends-on): Add time.
73525         (Include): Include time.h, not time_r.h.
73526         * modules/timegm: Likewise.
73527         * modules/timespec (Description): Now does timespec-related decls
73528         of our own, instead of struct timespec itself.
73529         (Depends-on): Add time; remove extensions.
73530         (Maintainer): Add self.
73531         * modules/utimecmp (Depends-on): Add time; remove timespec.
73532         * modules/utimens (Depends-on): Likewise.
73533         * modules/xnanosleep (Depends-on): Likewise.
73534
73535 2007-02-11  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/c-strstr.c: Include allocsa.h.
73538         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73539         * lib/c-strcasestr.c: Include allocsa.h.
73540         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73541         * lib/strcasestr.c: Include allocsa.h.
73542         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73543         * lib/mbsstr.c: Include allocsa.h.
73544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73545         allocsa/freesa instead of malloc/free.
73546         * lib/mbscasestr.c: Include allocsa.h.
73547         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73548         allocsa/freesa instead of malloc/free.
73549         * modules/c-strstr (Depends-on): Add allocsa.
73550         * modules/c-strcasestr (Depends-on): Likewise.
73551         * modules/strcasestr (Depends-on): Likewise.
73552         * modules/mbsstr (Depends-on): Likewise.
73553         * modules/mbscasestr (Depends-on): Likewise.
73554
73555 2007-02-11  Bruno Haible  <bruno@clisp.org>
73556
73557         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73558
73559         * modules/mbsspn-tests: New file.
73560         * tests/test-mbsspn.sh: New file.
73561         * tests/test-mbsspn.c: New file.
73562
73563 2007-02-11  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73566
73567         * modules/mbspbrk-tests: New file.
73568         * tests/test-mbspbrk.sh: New file.
73569         * tests/test-mbspbrk.c: New file.
73570
73571 2007-02-11  Bruno Haible  <bruno@clisp.org>
73572
73573         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73574         unneeded cast.
73575
73576         * modules/mbscspn-tests: New file.
73577         * tests/test-mbscspn.sh: New file.
73578         * tests/test-mbscspn.c: New file.
73579
73580 2007-02-11  Bruno Haible  <bruno@clisp.org>
73581
73582         * modules/mbscasecmp-tests: New file.
73583         * tests/test-mbscasecmp.sh: New file.
73584         * tests/test-mbscasecmp.c: New file.
73585
73586 2007-02-11  Bruno Haible  <bruno@clisp.org>
73587
73588         Ensure O(n) worst-case complexity of mbscasestr.
73589         * lib/mbscasestr.c: Include stdbool.h.
73590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73591         functions.
73592         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73593         the bookkeeping indicates that it's worth it.
73594         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73595
73596         * modules/mbscasestr-tests: New file.
73597         * tests/test-mbscasestr1.c: New file.
73598         * tests/test-mbscasestr2.sh: New file.
73599         * tests/test-mbscasestr2.c: New file.
73600         * tests/test-mbscasestr3.sh: New file.
73601         * tests/test-mbscasestr3.c: New file.
73602         * tests/test-mbscasestr4.sh: New file.
73603         * tests/test-mbscasestr4.c: New file.
73604         * m4/locale-tr.m4: New file.
73605
73606 2007-02-11  Bruno Haible  <bruno@clisp.org>
73607
73608         Ensure O(n) worst-case complexity of mbsstr.
73609         * lib/mbsstr.c: Include stdbool.h.
73610         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73611         functions.
73612         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73613         bookkeeping indicates that it's worth it.
73614         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73615
73616         * modules/mbsstr-tests: New file.
73617         * tests/test-mbsstr1.c: New file.
73618         * tests/test-mbsstr2.sh: New file.
73619         * tests/test-mbsstr2.c: New file.
73620         * tests/test-mbsstr3.sh: New file.
73621         * tests/test-mbsstr3.c: New file.
73622         * m4/locale-fr.m4: New file.
73623
73624 2007-02-11  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/mbsrchr.c (mbsrchr): Fix bug.
73627
73628         * modules/mbsrchr-tests: New file.
73629         * tests/test-mbsrchr.sh: New file.
73630         * tests/test-mbsrchr.c: New file.
73631
73632 2007-02-11  Bruno Haible  <bruno@clisp.org>
73633
73634         * lib/mbschr.c (mbschr): Fix bug.
73635
73636         * modules/mbschr-tests: New file.
73637         * tests/test-mbschr.sh: New file.
73638         * tests/test-mbschr.c: New file.
73639         * m4/locale-zh.m4: New file.
73640
73641 2007-02-11  Bruno Haible  <bruno@clisp.org>
73642
73643         Support for copying multibyte string iterators.
73644         * lib/mbiter.h: Include <string.h>.
73645         (mbiter_multi_copy): New function.
73646         (mbi_copy): New macro.
73647         * lib/mbuiter.h: Include <string.h>.
73648         (mbuiter_multi_copy): New function.
73649         (mbui_copy): New macro.
73650
73651 2007-02-11  Bruno Haible  <bruno@clisp.org>
73652
73653         New module mbslen.
73654         * modules/mbslen: New file.
73655         * lib/mbslen.c: New file.
73656         * lib/string_.h (mbslen): New declaration.
73657         * m4/mbslen.m4: New file.
73658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73659         GNULIB_MBSLEN.
73660         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73661         * MODULES.html.sh (Internationalization functions): Add mbslen.
73662
73663 2007-02-11  Bruno Haible  <bruno@clisp.org>
73664
73665         Ensure O(n) worst-case complexity of strcasestr substitute.
73666         * lib/strcasestr.c: Include stdbool.h.
73667         (knuth_morris_pratt): New function.
73668         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73669         bookkeeping indicates that it's worth it.
73670         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73671
73672         * modules/strcasestr-tests: New file.
73673         * tests/test-strcasestr.c: New file.
73674
73675 2007-02-11  Bruno Haible  <bruno@clisp.org>
73676
73677         Ensure O(n) worst-case complexity of c_strcasestr.
73678         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73679         (knuth_morris_pratt): New function.
73680         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73681         the bookkeeping indicates that it's worth it.
73682         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73683
73684         * modules/c-strcasestr-tests: New file.
73685         * tests/test-c-strcasestr.c: New file.
73686
73687 2007-02-11  Bruno Haible  <bruno@clisp.org>
73688
73689         Ensure O(n) worst-case complexity of c_strstr.
73690         * lib/c-strstr.c: Include stdbool.h, string.h.
73691         (knuth_morris_pratt): New function.
73692         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73693         bookkeeping indicates that it's worth it.
73694         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73695
73696         * lib/c-strstr.c: Complete rewrite for maintainability.
73697
73698         * modules/c-strstr-tests: New file.
73699         * tests/test-c-strstr.c: New file.
73700
73701 2007-02-11  Bruno Haible  <bruno@clisp.org>
73702
73703         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73704         5.2.1 and earlier, whereby \055 was treated just like the range
73705         delimiter '-'.
73706         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73707
73708 2007-02-08  Bruno Haible  <bruno@clisp.org>
73709
73710         * modules/regex (Depends-on): Add stdbool.
73711         Reported by Dalibor Topic <robilad@kaffe.org>.
73712
73713 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73714
73715         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73716         Prefer returning from main to exiting from it.
73717         Remove unnecessary parens after sizeof.
73718
73719 2007-02-05  Bruno Haible  <bruno@clisp.org>
73720
73721         New module mbssep.
73722         * modules/mbssep: New file.
73723         * lib/mbssep.c: New file.
73724         * lib/string_.h (strsep): Add a conditional link warning.
73725         (mbssep): New declaration.
73726         * m4/mbssep.m4: New file.
73727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73728         GNULIB_MBSSEP.
73729         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73730         * MODULES.html.sh (Internationalization functions): Add mbssep.
73731
73732 2007-02-05  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73735         Optimize search in case of 1 delimiter.
73736
73737 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73738
73739         * lib/acl.h: Include sys/types.h before sys/acl.h.
73740
73741 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73742
73743         Merge upstream fix for glibc bugzilla #3957:
73744
73745         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73746
73747         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73748         bit for RE_HAT_LISTS_NOT_NEWLINE.
73749         (build_charclass_op): Remove bogus comment.
73750
73751 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73752
73753         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73754
73755 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73758         * lib/memmem.c [!defined _LIBC]: Include config.h.
73759
73760 2007-02-04  Bruno Haible  <bruno@clisp.org>
73761
73762         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73763         warning message.
73764
73765 2007-02-04  Bruno Haible  <bruno@clisp.org>
73766
73767         New module mbstok_r.
73768         * modules/mbstok_r: New file.
73769         * lib/mbstok_r.c: New file.
73770         * lib/string_.h (strtok_r): Change argument names to match the
73771         comments. Add a conditional link warning.
73772         (mbstok_r): New declaration.
73773         * m4/mbstok_r.m4: New file.
73774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73775         GNULIB_MBSTOK_R.
73776         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73777         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73778
73779 2007-02-04  Bruno Haible  <bruno@clisp.org>
73780
73781         New module mbsspn.
73782         * modules/mbsspn: New file.
73783         * lib/mbsspn.c: New file.
73784         * lib/string_.h (strspn): Add a conditional link warning.
73785         (mbsspn): New declaration.
73786         * m4/mbsspn.m4: New file.
73787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73788         GNULIB_MBSSPN.
73789         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73790         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73791
73792 2007-02-04  Bruno Haible  <bruno@clisp.org>
73793
73794         New module mbspbrk.
73795         * modules/mbspbrk: New file.
73796         * lib/mbspbrk.c: New file.
73797         * lib/string_.h (strpbrk): Add a conditional link warning.
73798         (mbspbrk): New declaration.
73799         * m4/mbspbrk.m4: New file.
73800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73801         GNULIB_MBSPBRK.
73802         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73803         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73804
73805 2007-02-04  Bruno Haible  <bruno@clisp.org>
73806
73807         New module mbscspn.
73808         * modules/mbscspn: New file.
73809         * lib/mbscspn.c: New file.
73810         * lib/string_.h (strcspn): Add a conditional link warning.
73811         (mbscspn): New declaration.
73812         * m4/mbscspn.m4: New file.
73813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73814         GNULIB_MBSCSPN.
73815         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73816         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73817
73818 2007-02-04  Bruno Haible  <bruno@clisp.org>
73819
73820         New module mbscasestr, reduced goal of strcasestr.
73821         * modules/mbscasestr: New file.
73822         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73823         (mbscasestr): Renamed from strcasestr.
73824         * lib/strcasestr.c: Don't include mbuiter.h.
73825         (strcasestr): Remove support for multibyte locales.
73826         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73827         Change the conditional link warning.
73828         (mbscasestr): New declaration.
73829         * m4/mbscasestr.m4: New file.
73830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73831         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73832         REPLACE_STRCASESTR.
73833         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73835         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73836         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73837         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73838         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73839         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73840         (Depends-on): Remove mbuiter.
73841         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73842
73843 2007-02-04  Bruno Haible  <bruno@clisp.org>
73844
73845         Simplify handling of strncasecmp.
73846         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73847         the conditional link warning.
73848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73849         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73850         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73851         * modules/strcase (configure.ac): Don't invoke
73852         gl_STRING_MODULE_INDICATOR.
73853         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73854
73855 2007-02-04  Bruno Haible  <bruno@clisp.org>
73856
73857         New module mbscasecmp, reduced goal of strcasecmp.
73858         * modules/mbscasecmp: New file.
73859         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73860         (mbscasecmp): Renamed from strcasecmp.
73861         * lib/strcasecmp.c: Don't include mbuiter.h.
73862         (strcasecmp): Remove support for multibyte locales.
73863         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73864         Change the conditional link warning.
73865         (mbscasecmp): New declaration.
73866         * m4/mbscasecmp.m4: New file.
73867         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73868         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73869         REPLACE_STRCASECMP.
73870         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73872         GNULIB_MBSCASECMP.
73873         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73874         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73875         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73876         (Depends-on): Remove mbuiter.
73877         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73878
73879 2007-02-04  Bruno Haible  <bruno@clisp.org>
73880
73881         New module mbsstr. Remove module strstr.
73882         * modules/mbsstr: New file.
73883         * modules/strstr: Remove file.
73884         * lib/mbsstr.c: Renamed from lib/strstr.c.
73885         (mbsstr): Renamed from strstr.
73886         * lib/string_.h (strstr): Remove declaration. Change the conditional
73887         link warning.
73888         (mbsstr): New declaration.
73889         * m4/mbsstr.m4: New file.
73890         * m4/strstr.m4: Remove file.
73891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73892         REPLACE_STRSTR.
73893         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73894         Don't initialize GNULIB_STRSTR.
73895         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73896         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73897         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73898         (Support for systems lacking ANSI C 89): Remove strstr.
73899
73900 2007-02-04  Bruno Haible  <bruno@clisp.org>
73901
73902         New module mbsrchr.
73903         * modules/mbsrchr: New file.
73904         * lib/mbsrchr.c: New file.
73905         * lib/string_.h (strrchr): Add a conditional link warning.
73906         (mbsrchr): New declaration.
73907         * m4/mbsrchr.m4: New file.
73908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73909         GNULIB_MBSRCHR.
73910         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73911         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73912
73913 2007-02-04  Bruno Haible  <bruno@clisp.org>
73914
73915         New module mbschr.
73916         * modules/mbschr: New file.
73917         * lib/mbschr.c: New file.
73918         * lib/string_.h (strchr): Add a conditional link warning.
73919         (mbschr): New declaration.
73920         * m4/mbschr.m4: New file.
73921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73922         GNULIB_MBSCHR.
73923         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73924         * MODULES.html.sh (Internationalization functions): Add mbschr.
73925
73926 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73927
73928         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73929
73930         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73931
73932 2007-02-04  Bruno Haible  <bruno@clisp.org>
73933
73934         New module description section 'configure.ac-early'.
73935         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73936         (func_get_autoconf_early_snippet): New function.
73937         (func_import, func_create_testdir): Use it. Remove special cases for
73938         modules 'extensions' and 'lock'.
73939         * modules/extensions (configure.ac-early): Require
73940         gl_USE_SYSTEM_EXTENSIONS.
73941         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73942
73943 2007-02-04  Bruno Haible  <bruno@clisp.org>
73944
73945         Make use of gcj-4.3's -fsource and -ftarget option.
73946         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73947         and if so try the options -fsource and -ftarget.
73948         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73949         source_version, ftarget_option, target_version arguments.
73950         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73951         (is_envjavac_oldgcj_14_14_usable): Renamed from
73952         is_envjavac_gcj_14_14_usable.
73953         (is_envjavac_oldgcj_14_13_usable): Renamed from
73954         is_envjavac_gcj_14_13_usable.
73955         (is_gcj_present): Update.
73956         (is_gcj_43, is_gcj43_usable): New functions.
73957         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73958         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73959         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73960         try the options -fsource and -ftarget.
73961
73962 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73963
73964         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73965         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73966         larger value.
73967
73968 2007-02-03  Jim Meyering  <jim@meyering.net>
73969
73970         Give tools a better chance to allocate space for very large buffers.
73971         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73972
73973         Make pwd and readlink work also when run with an unreadable parent dir
73974         on systems with openat support.
73975         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73976         provided getcwd function, even when we have openat support.
73977         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73978
73979 2007-02-02  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73982         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73983         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73984         portability problems if one of these functions is only used on specific
73985         platforms.
73986         Reported by Paul Eggert.
73987
73988 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73991         is causing more trouble than it's curing.
73992         * lib/regex_internal.h (__mempcpy): Remove.
73993         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73994         (and make the code a tad smaller to boot).
73995         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73996
73997 2007-02-02  Jim Meyering  <jim@meyering.net>
73998
73999         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74000         section, not in the Makefile.am: one.
74001
74002 2007-02-02  Eric Blake  <ebb9@byu.net>
74003
74004         * lib/strchrnul.c: Always include config.h first.
74005
74006         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74007         gnulib strstr is not necessary here.
74008
74009 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74010
74011         * m4/socklen.m4: Fix typo.
74012
74013 2007-02-02  Eric Blake  <ebb9@byu.net>
74014
74015         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74016         * modules/netinet_in (Makefile.am): Likewise.
74017
74018 2007-02-01  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/string_.h (GL_LINK_WARNING): New macro.
74021         (strcasecmp, strstr, strcasestr): If provided by the system,
74022         conditionally define as a macro that leads to a warning instead of to
74023         an error.
74024         (strncasecmp): Conditionally define as a macro that leads to a warning.
74025
74026 2007-02-01  Karl Berry  <karl@gnu.org>
74027
74028         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74029
74030 2007-02-01  Bruno Haible  <bruno@clisp.org>
74031
74032         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74033         renamings.
74034
74035 2007-02-01  Eric Blake  <ebb9@byu.net>
74036
74037         * modules/regex (Depends-on): Revert dependence on mempcpy.
74038         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74039         module's definition of mempcpy.
74040         Reported by Paul Eggert.
74041
74042 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74045         the symbol XYZ before redefining it.  This fixes a problem with
74046         programs that don't use XYZ, when compiled on systems that define
74047         XYZ to something else.
74048
74049 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74052         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74053         writeable to group or other and (2) is intended to have a special
74054         mode bit that is set or cleared.  In such a case, the directory
74055         should be neither group- nor other-writeable until the special
74056         mode bits are right.
74057
74058 2007-01-31  Eric Blake  <ebb9@byu.net>
74059
74060         * modules/mountlist (Depends-on): Add strstr.
74061
74062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74063         bug.
74064         * modules/string (Makefile.am): Remove redundant replacement.
74065         * modules/regex (Depends-on): Add mempcpy.
74066
74067 2007-01-31  Bruno Haible  <bruno@clisp.org>
74068
74069         New module description field 'Link'.
74070         * gnulib-tool (func_usage): Document --extract-link-directive.
74071         (sed_extract_prog): Recognize 'Link' directive.
74072         (func_get_link_directive): New function.
74073         (func_import): Show summary of link directives.
74074         Handle --extract-link-directive option.
74075         * modules/acl (Link): New section.
74076         * modules/clock-time (Link): New section.
74077         * modules/euidaccess (Link): New section.
74078         * modules/gettext (Link): New section.
74079         * modules/iconv (Link): New section.
74080         * modules/lock (Link): New section.
74081         * modules/nanosleep (Link): New section.
74082         * modules/readline (Link): New section.
74083
74084 2007-01-27  Bruno Haible  <bruno@clisp.org>
74085
74086         Enforce the use of gnulib modules for unportable <string.h> functions.
74087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74088         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74089         (gl_HEADER_STRING_H_BODY): Require it.
74090         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74091         the symbol XYZ to one that gives a link error.
74092         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74093         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74094         * modules/mempcpy (configure.ac): Likewise.
74095         * modules/memrchr (configure.ac): Likewise.
74096         * modules/stpcpy (configure.ac): Likewise.
74097         * modules/stpncpy (configure.ac): Likewise.
74098         * modules/strcase (configure.ac): Likewise.
74099         * modules/strcasestr (configure.ac): Likewise.
74100         * modules/strchrnul (configure.ac): Likewise.
74101         * modules/strdup (configure.ac): Likewise.
74102         * modules/strndup (configure.ac): Likewise.
74103         * modules/strnlen (configure.ac): Likewise.
74104         * modules/strpbrk (configure.ac): Likewise.
74105         * modules/strsep (configure.ac): Likewise.
74106         * modules/strstr (configure.ac): Likewise.
74107         * modules/strtok_r (configure.ac): Likewise.
74108
74109 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74110
74111         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74112
74113 2007-01-30  Jim Meyering  <jim@meyering.net>
74114
74115         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74116
74117 2007-01-29  Bruno Haible  <bruno@clisp.org>
74118
74119         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74120         * lib/execute.c: Likewise.
74121         * lib/pipe.c: Likewise.
74122         * lib/printf-args.h: Likewise.
74123         * lib/printf-args.c: Likewise.
74124         * lib/printf-parse.c: Likewise.
74125         * lib/vasnprintf.c: Likewise.
74126
74127 2007-01-29  Eric Blake  <ebb9@byu.net>
74128
74129         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74130         declaration.
74131
74132 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         * lib/strptime.h (strptime): Use 'restrict' for args where
74135         POSIX requires this.
74136         * lib/strptime.c (strptime): Likewise.
74137         Change license notice from LGPL to GPL, since gnulib-tool will
74138         change this as needed.
74139         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74140         defined.
74141         Include "strptime.h" first, to check interface.
74142         Do not #undef _LIBC and _NL_CURRENT.
74143         Do not include <stdlib.h>; no longer needed.
74144         Include "time_r.h" and declare ptime_locale_status
74145         only if _LIBC is not defined.
74146         (__P): Remove unused macro.
74147         (match_string): Bring back glibc version, but use it only if _LIBC
74148         is defined.
74149         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74150         Remove unnecessary assertion and abort() call.
74151         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74152         * m4/strptime.m4: Fix serial number comment.
74153         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74154         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74155         (Depends-on): Add time_r.
74156
74157 2007-01-29  Bruno Haible  <bruno@clisp.org>
74158
74159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74160         strptime.
74161         * modules/strptime (Depends-on): Add stdbool.
74162         * lib/strptime.h: Include <time.h> always. Add comments.
74163
74164 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74165
74166         * modules/strptime: New file.
74167         * lib/strptime.h: New file.
74168         * lib/strptime.c: New file.
74169         * m4/strptime.m4: New file.
74170
74171 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         * MODULES.html.sh: New module mpsort.
74174         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74175
74176         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74177         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74179         All uses changed.
74180         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74181         All uses changed.
74182         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74183         to _Restrict_.
74184         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74185         the parameter matches the prototype.
74186
74187 2007-01-28  Jim Meyering  <jim@meyering.net>
74188
74189         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74190         sys/time.h here, reverting that part of the previous patch:
74191         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74192
74193 2007-01-28  Bruno Haible  <bruno@clisp.org>
74194
74195         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74196         value of $(SYS_TIME_H).
74197         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74198         remove it conditionally, too. [added by Jim Meyering]
74199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74201         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74202         GETTIMEOFDAY_REPLACEMENT to 1.
74203
74204 2007-01-28  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74207         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74209         Set UNISTD_H instead of UNISTD_H2.
74210         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74211
74212 2007-01-28  Bruno Haible  <bruno@clisp.org>
74213
74214         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74215         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74216
74217 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74218
74219         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74220         (func_create_testdir): Ensure C locale for `grep' and `tr'
74221         character ranges.
74222         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74223         ACLOCAL_AMFLAGS parsing state machine.
74224
74225 2007-01-27  Bruno Haible  <bruno@clisp.org>
74226
74227         * modules/unistr/base: Update.
74228
74229 2007-01-27  Bruno Haible  <bruno@clisp.org>
74230
74231         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74232         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74233         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74234         modules/unistr/u32-mbtouc.
74235         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74236         * lib/unistr.h: Update.
74237         * lib/linebreak.c: Update.
74238         * modules/unistr/u32-mbtouc: Renamed from
74239         modules/unistr/u32-mbtouc-safe.
74240         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74241         * lib/unistr.h: Update.
74242         * lib/unistr/u32-to-u8.c: Update.
74243         * lib/unistr/u32-to-u16.c: Update.
74244
74245 2007-01-27  Bruno Haible  <bruno@clisp.org>
74246
74247         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74248         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74249         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74250         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74251         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74252         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74253         modules/unistr/u16-mbtouc.
74254         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74255         * lib/unistr.h: Update.
74256         * lib/linebreak.c: Update.
74257         * modules/linebreak: Update.
74258         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74259         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74260         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74261         * modules/unistr/u16-mbtouc: Renamed from
74262         modules/unistr/u16-mbtouc-safe.
74263         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74264         * lib/unistr.h: Update.
74265         * lib/unistr/u16-to-u8.c: Update.
74266         * modules/unistr/u16-to-u8: Update.
74267         * lib/unistr/u16-to-u32.c: Update.
74268         * modules/unistr/u16-to-u32: Update.
74269
74270 2007-01-27  Bruno Haible  <bruno@clisp.org>
74271
74272         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74273         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74274         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74275         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74276         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74277         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74278         modules/unistr/u8-mbtouc.
74279         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74280         * lib/unistr.h: Update.
74281         * lib/striconveh.c: Update.
74282         * modules/striconveh: Update.
74283         * lib/linebreak.c: Update.
74284         * modules/linebreak: Update.
74285         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74286         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74287         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74288         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74289         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74290         * lib/unistr.h: Update.
74291         * lib/striconveh.c: Update.
74292         * modules/striconveh: Update.
74293         * lib/unistr/u8-to-u16.c: Update.
74294         * modules/unistr/u8-to-u16: Update.
74295         * lib/unistr/u8-to-u32.c: Update.
74296         * modules/unistr/u8-to-u32: Update.
74297
74298 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74299
74300         Sync from Libtool.
74301         * lib/argz.c: Do not include strings.h nor memory.h, include
74302         string.h unconditionally.  Patch by Simon Josefsson.
74303
74304 2007-01-27  Bruno Haible  <bruno@clisp.org>
74305
74306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74307         from gl_HEADER_STRING_H_BODY.
74308         (gl_HEADER_STRING_H_BODY): Require it.
74309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74310         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74311         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74312         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74314         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74316         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74317         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74320         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74321         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74322         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74323         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74324
74325 2007-01-27  Bruno Haible  <bruno@clisp.org>
74326
74327         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74328         check_PROGRAMS into noinst_PROGRAMS.
74329         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74330         check_PROGRAMS in this case.
74331         (func_import): Set for_test to false.
74332         (func_create_testdir): Set for_test to true.
74333
74334 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74335             Bruno Haible  <bruno@clisp.org>
74336
74337         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74338         (Depends-on): Add string.
74339         (Includes): Use <string.h> instead of strcasestr.h.
74340         * modules/string (Makefile.am): Also substitute the value of
74341         REPLACE_STRCASESTR.
74342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74343         assume strcasestr is declared in <string.h> not <strings.h>. Also
74344         set REPLACE_STRCASESTR.
74345         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74346         REPLACE_STRCASESTR.
74347         * lib/strcasestr.h: Remove file.
74348         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74349         * lib/string_.h (strcasestr): New declaration.
74350
74351 2007-01-27  Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/string_.h: Use 'extern'.
74354
74355 2007-01-27  Jim Meyering  <jim@meyering.net>
74356
74357         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74358         of set-but-not-used local, "q".
74359
74360         * lib/mempcpy.c: Include <config.h> before <string.h>.
74361         This fixes a compilation error on HP-UX, due to the system's
74362         "restrict"-using mempcpy prototype.
74363
74364 2007-01-26  Bruno Haible  <bruno@clisp.org>
74365
74366         Small optimization.
74367         * lib/javacomp.c: Include c-strstr.h.
74368          (is_envjavac_gcj): Use c_strstr instead of strstr.
74369         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74370
74371 2007-01-26  Bruno Haible  <bruno@clisp.org>
74372
74373         * MODULES.html.sh (Unicode string functions): Add the new modules.
74374
74375         * modules/uniconv/u32-strconv-to-locale: New file.
74376         * lib/uniconv/u32-strconv-to-locale.c: New file.
74377
74378         * modules/uniconv/u16-strconv-to-locale: New file.
74379         * lib/uniconv/u16-strconv-to-locale.c: New file.
74380
74381         * modules/uniconv/u8-strconv-to-locale: New file.
74382         * lib/uniconv/u8-strconv-to-locale.c: New file.
74383
74384         * modules/uniconv/u32-strconv-from-locale: New file.
74385         * lib/uniconv/u32-strconv-from-locale.c: New file.
74386
74387         * modules/uniconv/u16-strconv-from-locale: New file.
74388         * lib/uniconv/u16-strconv-from-locale.c: New file.
74389
74390         * modules/uniconv/u8-strconv-from-locale: New file.
74391         * lib/uniconv/u8-strconv-from-locale.c: New file.
74392
74393         * modules/uniconv/u32-strconv-to-enc: New file.
74394         * lib/uniconv/u32-strconv-to-enc.c: New file.
74395         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74396         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74397
74398         * modules/uniconv/u16-strconv-to-enc: New file.
74399         * lib/uniconv/u16-strconv-to-enc.c: New file.
74400         * lib/uniconv/u-strconv-to-enc.h: New file.
74401         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74402         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74403
74404         * modules/uniconv/u8-strconv-to-enc: New file.
74405         * lib/uniconv/u8-strconv-to-enc.c: New file.
74406         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74407         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74408
74409         * modules/uniconv/u32-strconv-from-enc: New file.
74410         * lib/uniconv/u32-strconv-from-enc.c: New file.
74411         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74412         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74413
74414         * modules/uniconv/u16-strconv-from-enc: New file.
74415         * lib/uniconv/u16-strconv-from-enc.c: New file.
74416         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74417         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74418
74419         * modules/uniconv/u8-strconv-from-enc: New file.
74420         * lib/uniconv/u8-strconv-from-enc.c: New file.
74421         * lib/uniconv/u-strconv-from-enc.h: New file.
74422         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74423         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74424
74425         * modules/uniconv/u32-conv-from-enc: New file.
74426         * lib/uniconv/u32-conv-from-enc.c: New file.
74427         * modules/uniconv/u32-conv-from-enc-tests: New file.
74428         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74429
74430         * modules/uniconv/u16-conv-from-enc: New file.
74431         * lib/uniconv/u16-conv-from-enc.c: New file.
74432         * lib/uniconv/u-conv-from-enc.h: New file.
74433         * modules/uniconv/u16-conv-from-enc-tests: New file.
74434         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74435
74436         * modules/uniconv/u8-conv-from-enc: New file.
74437         * lib/uniconv/u8-conv-from-enc.c: New file.
74438         * modules/uniconv/u8-conv-from-enc-tests: New file.
74439         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74440
74441         * modules/uniconv/base: New file.
74442         * lib/uniconv.h: New file.
74443
74444 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * doc/gnulib-tool.texi (Initial import): Update to match current
74447         behavior with strdup module.
74448         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74449         * lib/memmem.h: Remove; all uses removed.  This is now done
74450         by <string.h>.
74451         * lib/mempcpy.h: Likewise.
74452         * lib/memrchr.h: Likewise.
74453         * lib/stpcpy.h: Likewise.
74454         * lib/stpncpy.h: Likewise.
74455         * lib/strcase.h: Likewise.
74456         * lib/strchrnul.h: Likewise.
74457         * lib/strdup.h: Likewise.
74458         * lib/strndup.h: Likewise.
74459         * lib/strnlen.h: Likewise.
74460         * lib/strpbrk.h: Likewise.
74461         * lib/strsep.h: Likewise.
74462         * lib/strstr.h: Likewise.
74463         * lib/strtok_r.h: Likewise.
74464         * lib/string_.h: New file.
74465         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74466         Rely on <string.h> instead.
74467         * lib/canon-host.c: Likewise.
74468         * lib/chdir-long.c: Likewise.
74469         * lib/concatpath.c: Likewise.
74470         * lib/exclude.c: Likewise.
74471         * lib/fchdir.c: Likewise.
74472         * lib/getaddrinfo.c: Likewise.
74473         * lib/getcwd.c: Likewise.
74474         * lib/getsubopt.c: Likewise.
74475         * lib/glob.c: Likewise.
74476         * lib/hard-locale.c: Likewise.
74477         * lib/iconvme.c: Likewise.
74478         * lib/javacomp.c: Likewise.
74479         * lib/mempcpy.c: Likewise.
74480         * lib/memrchr.c: Likewise.
74481         * lib/regex_internal.h: Likewise.
74482         * lib/stpncpy.c: Likewise.
74483         * lib/strcasecmp.c: Likewise.
74484         * lib/strchrnul.c: Likewise.
74485         * lib/strdup.c: Likewise.
74486         * lib/striconv.c: Likewise.
74487         * lib/striconveh.c: Likewise.
74488         * lib/striconveha.c: Likewise.
74489         * lib/strncasecmp.c: Likewise.
74490         * lib/strndup.c: Likewise.
74491         * lib/strnlen.c: Likewise.
74492         * lib/strsep.c: Likewise.
74493         * lib/strstr.c: Likewise.
74494         * lib/strtok_r.c: Likewise.
74495         * lib/userspec.c: Likewise.
74496         * lib/w32spawn.h: Likewise.
74497         * lib/xstrndup.c: Likewise.
74498         * lib/mountlist.c (strstr): Remove decl.
74499         * m4/string_h.m4: New file.
74500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74501         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74502         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74503         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74504         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74505         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74506         Set REPLACE_STRCASECMP if necessary.
74507         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74508         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74509         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74511         HAVE_DECL_STRDUP if necessary.
74512         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74513         since gl_FUNC_STRNDUP does that now.
74514         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74515         Check for decl here...
74516         (gl_PREREQ_STRNLEN): ... not here.
74517         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74518         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74519         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74520         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74521         necessary.
74522         * modules/string: New file.
74523         * modules/memmem (Files): Remove special-purpose include file.
74524         (Depends-on): Add string.
74525         (Include): Include <string.h>, not the removed file.
74526         * modules/mempcpy: Likewise.
74527         * modules/memrchr: Likewise.
74528         * modules/stpcpy: Likewise.
74529         * modules/stpncpy: Likewise.
74530         * modules/strcase: Likewise.
74531         * modules/strchrnul: Likewise.
74532         * modules/strdup: Likewise.
74533         * modules/strndup: Likewise.
74534         * modules/strnlen: Likewise.
74535         * modules/strpbrk: Likewise.
74536         * modules/strsep: Likewise.
74537         * modules/strstr: Likewise.
74538         * modules/strtok_r: Likewise.
74539         * tests/test-dirname.c: Don't include "strdup.h", since
74540         <string.h> now suffices.
74541         * tests/test-memmem.c: Don't include "memmem.h", since
74542         <string.h> now suffices.
74543
74544 2007-01-25  Bruno Haible  <bruno@clisp.org>
74545
74546         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74547         *resultp is 0.
74548
74549         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74550         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74551         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74552         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74553
74554         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74555         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74556         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74557         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74558         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74559         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74560
74561 2007-01-24  Bruno Haible  <bruno@clisp.org>
74562
74563         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74565         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74566         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74567         gl_FUNC_FTS_CORE.
74568         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74569         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74570         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74571         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74572         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74573         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74574         gl_FUNC_FCHOWNAT.
74575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74576         gl_FUNC_STRFTIME.
74577         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74578         Reported by Ralf Wildenhues.
74579
74580 2007-01-24  Bruno Haible  <bruno@clisp.org>
74581
74582         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74583         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74584         gl_GETADDRINFO.
74585         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74586         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74587         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74588
74589 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74592         Don't use 'exit'; just return from 'main'.
74593         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74594
74595         * lib/fnmatch_.h: Readjust white space and comments to match
74596         glibc, to avoid spurious diffs.
74597
74598 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74601         2004-12-01 change by Jakub Jelinek, since this code won't compile
74602         if !LIBC.  Problem reported by Bob Proulx.
74603
74604 2007-01-23  Bruno Haible  <bruno@clisp.org>
74605
74606         * lib/striconveh.c: Include c-strcaseeq.h.
74607         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74608         * modules/striconveh (Depends-on): Add c-strcaseeq.
74609
74610 2007-01-23  Bruno Haible  <bruno@clisp.org>
74611
74612         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74613
74614         * modules/c-strcaseeq: New file.
74615         * lib/c-strcaseeq.h: New file.
74616
74617         * modules/streq: New file.
74618         * lib/streq.h: New file.
74619
74620 2007-01-23  Bruno Haible  <bruno@clisp.org>
74621
74622         * modules/striconveha-tests: New file.
74623         * tests/test-striconveha.c: New file.
74624
74625         * lib/striconveha.h: Include <stdbool.h>.
74626         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74627         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74628         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74629         (mem_iconveha): New function.
74630         (str_iconveha_notranslit): Renamed from str_iconveha.
74631         (str_iconveha): New function.
74632         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74633         c-strcase.
74634
74635 2007-01-23  Bruno Haible  <bruno@clisp.org>
74636
74637         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74638         encodings without forgiving before trying any encoding with handler.
74639         (str_iconveha): Try all encodings without forgiving before trying any
74640         encoding with handler.
74641
74642 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         Import the following changes from libc.
74645
74646         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74647
74648         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74649
74650         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74651
74652         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74653         normal_bracket label.
74654
74655         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74656
74657         [BZ #361]
74658         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74659         to normal_bracket after fetching the next character.
74660
74661 2007-01-22  Bruno Haible  <bruno@clisp.org>
74662
74663         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74664         argument.
74665         * lib/striconveh.c (iconv_carefully_1): New function.
74666         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74667         argument.
74668         (str_cd_iconveh): Update.
74669         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74670         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74671         * tests/test-striconveh.c (MAGIC): New macro.
74672         (new_offsets): New function.
74673         (main): Test call with and without offsets.
74674
74675 2007-01-22  Bruno Haible  <bruno@clisp.org>
74676
74677         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74678         * modules/sys_select (Makefile.am): Likewise.
74679         * modules/sys_socket (Makefile.am): Likewise.
74680         * modules/sys_time (Makefile.am): Likewise.
74681
74682 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74683
74684         * modules/gettimeofday (License): Change from GPL to LGPL, since
74685         gettimeofday is a library function.
74686
74687 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74688
74689         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74690
74691 2007-01-21  Bruno Haible  <bruno@clisp.org>
74692
74693         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74694
74695 2007-01-21  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/striconveha: New file.
74698         * lib/striconveha.h: New file.
74699         * lib/striconveha.c: New file.
74700         * MODULES.html.sh (Internationalization functions): Add striconveha.
74701         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74702         string.
74703         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74704
74705 2007-01-21  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74708         * lib/striconveh.c (str_iconveh): Likewise.
74709
74710 2007-01-21  Bruno Haible  <bruno@clisp.org>
74711
74712         * lib/striconveh.h (mem_iconveh): New declaration.
74713         * lib/striconveh.c (mem_iconveh): New function.
74714         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74715
74716 2007-01-21  Bruno Haible  <bruno@clisp.org>
74717
74718         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74719
74720         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74721         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74722         original result buffer.
74723         (str_cd_iconveh): Update.
74724         * tests/test-striconveh.c (main): Update.
74725
74726         * lib/striconv.h (mem_cd_iconv): Change specification.
74727         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74728         result buffer.
74729         (str_cd_iconv): Update.
74730         * tests/test-striconv.c (main): Update.
74731
74732 2007-01-21  Bruno Haible  <bruno@clisp.org>
74733
74734         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74735
74736 2007-01-20  Jim Meyering  <jim@meyering.net>
74737
74738         * lib/userspec.c (parse_with_separator): If a user or group string
74739         starts with "+", skip the corresponding name-to-ID look-up, since
74740         such a look-up must fail: user and group names may not include "+".
74741
74742 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74745         since we now assume the sys_time module.
74746         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74747         check for sys/time.h; no longer needed.
74748         * modules/poll (Depends-on): Depend on sys_time.
74749
74750 2007-01-18  Bruno Haible  <bruno@clisp.org>
74751
74752         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74753         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74754
74755         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74756         gettimeofday.
74757
74758         * tests/test-gettimeofday.c: Include <time.h>.
74759         (dummy): Remove variable.
74760
74761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74762         gl_HEADER_SYS_TIME_H.
74763         (gl_HEADER_SYS_TIME_H): New macro.
74764
74765         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74766         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74768         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74769         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74771         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74772         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74773         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74774         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74775         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74776
74777         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74778         last change; it caused a compilation error when cross-compiling to
74779         Cygwin.
74780
74781 2007-01-18  Jim Meyering  <jim@meyering.net>
74782
74783         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74784         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74785         than the race-prone "test -d sys || mkdir sys".
74786         (configure.ac): Use AC_PROG_MKDIR_P.
74787         * modules/sys_select: Likewise.
74788         * modules/sys_socket: Likewise.
74789         * modules/sys_time: Likewise.
74790
74791 2007-01-18  Eric Blake  <ebb9@byu.net>
74792
74793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74794         replace gettimeofday.
74795         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74796         name, to avoid infinite recursion.
74797
74798 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74801         module sys_time.
74802         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74803         assume timespec.h defines struct timeval.
74804         * lib/settime.c: Likewise.
74805         * lib/utimens.c: Likewise.
74806         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74807         since we now assume the gettimeofday module.
74808         * lib/tempname.c (__gen_tempname): Likewise.
74809         * lib/gettimeofday.h: Remove.
74810         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74811         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74812         Include <time.h>, for 'time()'.
74813         (localtime_buffer_addr): Also use this workaround if
74814         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74815         to simplify the uses.  All uses changed.
74816         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74817         that #undef is inside {}, and 'const' follows type name consistently.
74818         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74819         (gettimeofday): Do not use the maximum possible value for
74820         tv->tv_usec, since that might break usages other than ls.c.
74821         Instead, we'll leave ls.c alone.  This undoes today's patch
74822         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74823         we've never observed the problem but might as well keep the
74824         canary.
74825         * lib/nanosleep.c: Include timespec.h first, for interface check.
74826         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74827         now assume the sys_time module.
74828         * lib/tempname.c: Likewise.
74829         * lib/timespec.h: Likewise.
74830         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74831         needed.
74832         * lib/strftime.c: Likewise.
74833         * lib/timespec.h: Likewise.
74834         * lib/posixtm.c: Include posixtm.h first, for interface check.
74835         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74836         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74837         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74838         * lib/sys_time_.h: New file.
74839         * lib/timespec.h (struct timespec): Use long int, not long.
74840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74841         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74842         Remove obsolescent call to AC_HEADER_TIME.
74843         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74845         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74846         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74847         Likewise.
74848         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74849         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74851         into the sys_time module.  Check for gettimeofday just once.
74852         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74853         for gettimeofday signature to just check the signature.  Merely
74854         compile it, since linking doesn't test signature.  Improve test for
74855         whether gettimeofday.o is actually needed.
74856         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74857         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74858         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74859         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74860         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74861         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74862         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74863         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74864         than worrying about sys/time.h.
74865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74866         Don't bother worrying about TIME_WITH_SYS_TIME.
74867         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74868         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74869         * m4/sys_time_h.m4: New file.
74870         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74871         Don't include sys/time.h.  Return from main rather than exiting.
74872         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74873         all uses changed.
74874         * modules/gethrxtime (Depends-on): Add sys_time.
74875         * modules/gettime (Depends-on): Likewise.
74876         * modules/gettimeofday (Depends-on): Likewise.
74877         * modules/nanosleep (Depends-on): Likewise.
74878         * modules/settime (Depends-on): Likewise.
74879         * modules/tempname (Depends-on): Likewise.
74880         * modules/utimens (Depends-on): Likewise.
74881         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74882         (Include): Change back to <sys/time.h>.
74883         (Maintainer): Add self.
74884         * modules/sys_time: New file.
74885         * modules/tempname (Depends-on): Add gettimeofday.
74886         * tests/test-gettimeofday.c: Include <sys/time.h>
74887         rather than gettimeofday.h.
74888
74889 2007-01-17  Bruno Haible  <bruno@clisp.org>
74890
74891         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74892         the license default to GPL.
74893         (func_create_testdir): Don't complain if a module is LGPL and its
74894         tests module depends on GPLed modules.
74895
74896 2007-01-17  Bruno Haible  <bruno@clisp.org>
74897
74898         * lib/gettimeofday.c (gettimeofday): Add code for the case
74899         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74900         maximum possible value for tv->tv_usec, rather than the minimum one.
74901
74902 2005-10-08  Martin Lambers  <marlam@marlam.de>
74903 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74904 2007-01-16  Bruno Haible  <bruno@clisp.org>
74905
74906         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74907         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74908         gl_FUNC_GETTIMEOFDAY.
74909         (Include): Add gettimeofday.h.
74910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74911         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74912         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74913         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74914         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74915         * lib/gettimeofday.h: New file.
74916         * lib/gettimeofday.c: Include <sys/timeb.h>.
74917         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74918         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74919         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74920         fall back on time().
74921
74922         * tests/test-gettimeofday.c: New file.
74923         * modules/gettimeofday-tests: New file.
74924
74925 2007-01-16  Eric Blake  <ebb9@byu.net>
74926
74927         * modules/fnmatch (Depends-on): Depend on wchar.
74928         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74929         * m4/fnmatch.m4: Likewise.
74930         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74931         * m4/mbchar.m4: Likewise.
74932         * modules/mbswidth (Depends-on): Depend on wchar.
74933         * lib/mbswidth.c: Assume <wchar.h>.
74934         * m4/mbswidth.m4: Likewise.
74935         * modules/quotearg (Depends-on): Depend on wchar.
74936         * lib/quotearg.c: Assume <wchar.h>.
74937         * m4/quotearg.m4: Likewise.
74938         * modules/regex (Depends-on): Depend on wchar.
74939         * lib/regex_internal.h: Assume <wchar.h>.
74940         * m4/regex.m4: Likewise.
74941         * modules/stdint (Depends-on): Depend on wchar.
74942         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74943         * m4/stdint.m4: Likewise.
74944         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74945         * modules/strftime (Depends-on): Depend on wchar.
74946         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74947         * modules/strtol (Depends-on): Depend on wchar.
74948         * lib/strtol.c: Assume <wchar.h>.
74949         * modules/wcwidth (Depends-on): Depend on wchar.
74950         * lib/wcwidth.h: Assume <wchar.h>.
74951         * m4/wcwidth.m4: Likewise.
74952
74953 2007-01-16  Bruno Haible  <bruno@clisp.org>
74954
74955         * modules/csharpexec-script: New, created from...
74956         * modules/csharpexec: ... this.
74957
74958 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74959
74960         * modules/javaexec-script: New, created from...
74961         * modules/javaexec: ... this.
74962
74963 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74964
74965         * modules/poll (Dependencies): Add sys_select.
74966
74967 2007-01-15  Jim Meyering  <jim@meyering.net>
74968
74969         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74970         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74971         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74972         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74973
74974 2007-01-15  Bruno Haible  <bruno@clisp.org>
74975
74976         * modules/striconveh: New file.
74977         * lib/striconveh.h: New file.
74978         * lib/striconveh.c: New file.
74979         * MODULES.html.sh (Internationalization functions): Add striconveh.
74980
74981         * modules/striconveh-tests: New file.
74982         * tests/test-striconveh.c: New file.
74983
74984 2007-01-15  Bruno Haible  <bruno@clisp.org>
74985
74986         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74987         not from GNU libiconv or GNU libc.
74988
74989 2007-01-15  Bruno Haible  <bruno@clisp.org>
74990
74991         * doc/gnulib-intro.texi (Copyright): Explain the different license
74992         terms for module descriptions, autoconf macros, tests, documentation.
74993
74994 2007-01-14  Bruno Haible  <bruno@clisp.org>
74995
74996         * modules/striconv-tests: New file.
74997         * tests/test-striconv.c: New file.
74998
74999 2007-01-14  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/iconv-tests: New file.
75002         * tests/test-iconv.c: New file.
75003
75004 2007-01-14  Bruno Haible  <bruno@clisp.org>
75005
75006         * gnulib-tool (func_get_license): For test modules, use the license of
75007         the main module.
75008
75009 2007-01-14  Bruno Haible  <bruno@clisp.org>
75010
75011         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75012         if iconv is found to exist.
75013
75014 2007-01-14  Bruno Haible  <bruno@clisp.org>
75015
75016         * modules/c-ctype-tests: New file.
75017         * tests/test-c-ctype.c: New file.
75018
75019 2007-01-14  Bruno Haible  <bruno@clisp.org>
75020
75021         * modules/binary-io-tests: New file.
75022         * tests/test-binary-io.sh: New file.
75023         * tests/test-binary-io.c: New file.
75024
75025 2007-01-14  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/array-oset-tests: New file.
75028         * tests/test-array_oset.c: New file.
75029
75030 2007-01-14  Bruno Haible  <bruno@clisp.org>
75031
75032         * modules/array-list-tests: New file.
75033         * tests/test-array_list.c: New file.
75034
75035 2007-01-14  Bruno Haible  <bruno@clisp.org>
75036
75037         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75038         and make.
75039         Reported by Simon Josefsson in
75040         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75041
75042 2007-01-14  Bruno Haible  <bruno@clisp.org>
75043
75044         * modules/allocsa-tests: New file.
75045         * tests/test-allocsa.c: New file.
75046
75047 2007-01-14  Bruno Haible  <bruno@clisp.org>
75048
75049         * modules/fchdir (Depends-on): Add absolute-header.
75050         * modules/unistd (Depends-on): Likewise.
75051
75052 2006-12-30  Bruno Haible  <bruno@clisp.org>
75053
75054         * modules/fchdir: New file.
75055         * modules/unistd (Files): Add lib/unistd_.h.
75056         (Makefile.am): Generate unistd.h from unistd_.h.
75057         * lib/fchdir.c: New file.
75058         * lib/dirent_.h: New file.
75059         * lib/unistd_.h: New file.
75060         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75061         * m4/fchdir.m4: New file.
75062         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75063         (gl_HEADER_UNISTD): Invoke it.
75064         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75065         function.
75066         * lib/backupfile.c (opendir, closedir): Undefine.
75067         * lib/chown.c (open, close): Undefine.
75068         * lib/clean-temp.c (open, close): Undefine.
75069         * lib/copy-file.c (open, close): Undefine.
75070         * lib/execute.c (open, close): Undefine.
75071         * lib/fsusage.c (open, close): Undefine.
75072         * lib/gc-gnulib.c (open, close): Undefine.
75073         * lib/getcwd.c (opendir, closedir): Undefine.
75074         * lib/glob.c (opendir, closedir): Undefine.
75075         * lib/javacomp.c (open, close): Undefine.
75076         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75077         * lib/openat-proc.c (open, close): Undefine.
75078         * lib/pagealign_alloc.c (open, close): Undefine.
75079         * lib/pipe.c (open, close): Undefine.
75080         * lib/progreloc.c (open, close): Undefine.
75081         * lib/savedir.c (opendir, closedir): Undefine.
75082         * lib/utime.c (open, close): Undefine.
75083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75084
75085 2007-01-10  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75088
75089 2007-01-12  Eric Blake  <ebb9@byu.net>
75090
75091         Provide a robust <wchar.h>.  Further simplifications are now
75092         possible in other modules, but not included here.
75093         * modules/wchar: New module.
75094         * m4/wchar.m4: New file.
75095         * lib/wchar_.h: Likewise.
75096         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75097         of the new module.
75098         * MODULES.html.sh (Extended multibyte and wide character utilities):
75099         New section.
75100
75101 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75102
75103         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75104         to a reasonable default for memory allocation.
75105         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75106         file system that reports garbage st_size values for symlinks.
75107         Problem reported by Liyang Hu.
75108
75109 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75110
75111         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75112         Emacs .#* auto-save files).
75113
75114 2007-01-11  Bruno Haible  <bruno@clisp.org>
75115
75116         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75117         directory.
75118
75119 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         Use @...@ consistently in lib/wctype_.h.
75122         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75123         on it being set to 1 or 0.
75124         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75125         go back to AC_SUBSTing it.
75126         * modules/wctype (Makefile.am): Undo previous change.
75127
75128 2007-01-10  Eric Blake  <ebb9@byu.net>
75129
75130         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75131         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75132         * modules/wctype (Makefile.am): Likewise.
75133         Reported by Chris McGuire.
75134
75135 2007-01-10  Jim Meyering  <jim@meyering.net>
75136
75137         fts.c: a small readability/maintainability improvement
75138         * lib/fts.c (fts_read): Make this code slightly more readable and
75139         maintainable by hoisting the "sp->fts_cur = p" assignments to
75140         immediately follow the statements that set P.  Derived from
75141         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75142
75143 2007-01-10  Eric Blake  <ebb9@byu.net>
75144
75145         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75146         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75148         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75149         Reported by Chris McGuire.
75150
75151 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75154         in sed script.
75155
75156 2007-01-09  Bruno Haible  <bruno@clisp.org>
75157
75158         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75159         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75160         variables.
75161         (func_module): Use them.
75162
75163 2007-01-09  Bruno Haible  <bruno@clisp.org>
75164
75165         * modules/unistr/base: New file.
75166         * lib/unistr.h: New file.
75167
75168         * modules/unistr/u8-to-u16: New file.
75169         * lib/unistr/u8-to-u16.c: New file.
75170
75171         * modules/unistr/u8-to-u32: New file.
75172         * lib/unistr/u8-to-u32.c: New file.
75173
75174         * modules/unistr/u16-to-u8: New file.
75175         * lib/unistr/u16-to-u8.c: New file.
75176
75177         * modules/unistr/u16-to-u32: New file.
75178         * lib/unistr/u16-to-u32.c: New file.
75179
75180         * modules/unistr/u32-to-u8: New file.
75181         * lib/unistr/u32-to-u8.c: New file.
75182
75183         * modules/unistr/u32-to-u16: New file.
75184         * lib/unistr/u32-to-u16.c: New file.
75185
75186         * modules/unistr/u8-check: New file.
75187         * modules/unistr/u16-check: New file.
75188         * modules/unistr/u32-check: New file.
75189         * lib/unistr/u8-check.c: New file.
75190         * lib/unistr/u16-check.c: New file.
75191         * lib/unistr/u32-check.c: New file.
75192
75193         * modules/unistr/u8-chr: New file.
75194         * modules/unistr/u16-chr: New file.
75195         * modules/unistr/u32-chr: New file.
75196         * lib/unistr/u8-chr.c: New file.
75197         * lib/unistr/u16-chr.c: New file.
75198         * lib/unistr/u32-chr.c: New file.
75199
75200         * modules/unistr/u8-cmp: New file.
75201         * modules/unistr/u16-cmp: New file.
75202         * modules/unistr/u32-cmp: New file.
75203         * lib/unistr/u8-cmp.c: New file.
75204         * lib/unistr/u16-cmp.c: New file.
75205         * lib/unistr/u32-cmp.c: New file.
75206
75207         * modules/unistr/u8-cpy: New file.
75208         * modules/unistr/u16-cpy: New file.
75209         * modules/unistr/u32-cpy: New file.
75210         * lib/unistr/u8-cpy.c: New file.
75211         * lib/unistr/u16-cpy.c: New file.
75212         * lib/unistr/u32-cpy.c: New file.
75213         * lib/unistr/u-cpy.h: New file.
75214
75215         * modules/unistr/u8-cpy-alloc: New file.
75216         * modules/unistr/u16-cpy-alloc: New file.
75217         * modules/unistr/u32-cpy-alloc: New file.
75218         * lib/unistr/u8-cpy-alloc.c: New file.
75219         * lib/unistr/u16-cpy-alloc.c: New file.
75220         * lib/unistr/u32-cpy-alloc.c: New file.
75221         * lib/unistr/u-cpy-alloc.h: New file.
75222
75223         * modules/unistr/u8-endswith: New file.
75224         * modules/unistr/u16-endswith: New file.
75225         * modules/unistr/u32-endswith: New file.
75226         * lib/unistr/u8-endswith.c: New file.
75227         * lib/unistr/u16-endswith.c: New file.
75228         * lib/unistr/u32-endswith.c: New file.
75229         * lib/unistr/u-endswith.h: New file.
75230
75231         * modules/unistr/u8-mblen: New file.
75232         * modules/unistr/u16-mblen: New file.
75233         * modules/unistr/u32-mblen: New file.
75234         * lib/unistr/u8-mblen.c: New file.
75235         * lib/unistr/u16-mblen.c: New file.
75236         * lib/unistr/u32-mblen.c: New file.
75237
75238         * modules/unistr/u8-mbtouc: New file.
75239         * modules/unistr/u16-mbtouc: New file.
75240         * modules/unistr/u32-mbtouc: New file.
75241         * lib/unistr/u8-mbtouc.c: New file.
75242         * lib/unistr/u16-mbtouc.c: New file.
75243         * lib/unistr/u32-mbtouc.c: New file.
75244
75245         * modules/unistr/u8-mbtouc-safe: New file.
75246         * modules/unistr/u16-mbtouc-safe: New file.
75247         * modules/unistr/u32-mbtouc-safe: New file.
75248         * lib/unistr/u8-mbtouc-safe.c: New file.
75249         * lib/unistr/u16-mbtouc-safe.c: New file.
75250         * lib/unistr/u32-mbtouc-safe.c: New file.
75251
75252         * modules/unistr/u8-move: New file.
75253         * modules/unistr/u16-move: New file.
75254         * modules/unistr/u32-move: New file.
75255         * lib/unistr/u8-move.c: New file.
75256         * lib/unistr/u16-move.c: New file.
75257         * lib/unistr/u32-move.c: New file.
75258         * lib/unistr/u-move.h: New file.
75259
75260         * modules/unistr/u8-next: New file.
75261         * modules/unistr/u16-next: New file.
75262         * modules/unistr/u32-next: New file.
75263         * lib/unistr/u8-next.c: New file.
75264         * lib/unistr/u16-next.c: New file.
75265         * lib/unistr/u32-next.c: New file.
75266
75267         * modules/unistr/u8-prev: New file.
75268         * modules/unistr/u16-prev: New file.
75269         * modules/unistr/u32-prev: New file.
75270         * lib/unistr/u8-prev.c: New file.
75271         * lib/unistr/u16-prev.c: New file.
75272         * lib/unistr/u32-prev.c: New file.
75273
75274         * modules/unistr/u8-set: New file.
75275         * modules/unistr/u16-set: New file.
75276         * modules/unistr/u32-set: New file.
75277         * lib/unistr/u8-set.c: New file.
75278         * lib/unistr/u16-set.c: New file.
75279         * lib/unistr/u32-set.c: New file.
75280         * lib/unistr/u-set.h: New file.
75281
75282         * modules/unistr/u8-startswith: New file.
75283         * modules/unistr/u16-startswith: New file.
75284         * modules/unistr/u32-startswith: New file.
75285         * lib/unistr/u8-startswith.c: New file.
75286         * lib/unistr/u16-startswith.c: New file.
75287         * lib/unistr/u32-startswith.c: New file.
75288         * lib/unistr/u-startswith.h: New file.
75289
75290         * modules/unistr/u8-stpcpy: New file.
75291         * modules/unistr/u16-stpcpy: New file.
75292         * modules/unistr/u32-stpcpy: New file.
75293         * lib/unistr/u8-stpcpy.c: New file.
75294         * lib/unistr/u16-stpcpy.c: New file.
75295         * lib/unistr/u32-stpcpy.c: New file.
75296         * lib/unistr/u-stpcpy.h: New file.
75297
75298         * modules/unistr/u8-stpncpy: New file.
75299         * modules/unistr/u16-stpncpy: New file.
75300         * modules/unistr/u32-stpncpy: New file.
75301         * lib/unistr/u8-stpncpy.c: New file.
75302         * lib/unistr/u16-stpncpy.c: New file.
75303         * lib/unistr/u32-stpncpy.c: New file.
75304         * lib/unistr/u-stpncpy.h: New file.
75305
75306         * modules/unistr/u8-strcat: New file.
75307         * modules/unistr/u16-strcat: New file.
75308         * modules/unistr/u32-strcat: New file.
75309         * lib/unistr/u8-strcat.c: New file.
75310         * lib/unistr/u16-strcat.c: New file.
75311         * lib/unistr/u32-strcat.c: New file.
75312         * lib/unistr/u-strcat.h: New file.
75313
75314         * modules/unistr/u8-strchr: New file.
75315         * modules/unistr/u16-strchr: New file.
75316         * modules/unistr/u32-strchr: New file.
75317         * lib/unistr/u8-strchr.c: New file.
75318         * lib/unistr/u16-strchr.c: New file.
75319         * lib/unistr/u32-strchr.c: New file.
75320
75321         * modules/unistr/u8-strcmp: New file.
75322         * modules/unistr/u16-strcmp: New file.
75323         * modules/unistr/u32-strcmp: New file.
75324         * lib/unistr/u8-strcmp.c: New file.
75325         * lib/unistr/u16-strcmp.c: New file.
75326         * lib/unistr/u32-strcmp.c: New file.
75327
75328         * modules/unistr/u8-strcpy: New file.
75329         * modules/unistr/u16-strcpy: New file.
75330         * modules/unistr/u32-strcpy: New file.
75331         * lib/unistr/u8-strcpy.c: New file.
75332         * lib/unistr/u16-strcpy.c: New file.
75333         * lib/unistr/u32-strcpy.c: New file.
75334         * lib/unistr/u-strcpy.h: New file.
75335
75336         * modules/unistr/u8-strcspn: New file.
75337         * modules/unistr/u16-strcspn: New file.
75338         * modules/unistr/u32-strcspn: New file.
75339         * lib/unistr/u8-strcspn.c: New file.
75340         * lib/unistr/u16-strcspn.c: New file.
75341         * lib/unistr/u32-strcspn.c: New file.
75342         * lib/unistr/u-strcspn.h: New file.
75343
75344         * modules/unistr/u8-strdup: New file.
75345         * modules/unistr/u16-strdup: New file.
75346         * modules/unistr/u32-strdup: New file.
75347         * lib/unistr/u8-strdup.c: New file.
75348         * lib/unistr/u16-strdup.c: New file.
75349         * lib/unistr/u32-strdup.c: New file.
75350         * lib/unistr/u-strdup.h: New file.
75351
75352         * modules/unistr/u8-strlen: New file.
75353         * modules/unistr/u16-strlen: New file.
75354         * modules/unistr/u32-strlen: New file.
75355         * lib/unistr/u8-strlen.c: New file.
75356         * lib/unistr/u16-strlen.c: New file.
75357         * lib/unistr/u32-strlen.c: New file.
75358         * lib/unistr/u-strlen.h: New file.
75359
75360         * modules/unistr/u8-strmblen: New file.
75361         * modules/unistr/u16-strmblen: New file.
75362         * modules/unistr/u32-strmblen: New file.
75363         * lib/unistr/u8-strmblen.c: New file.
75364         * lib/unistr/u16-strmblen.c: New file.
75365         * lib/unistr/u32-strmblen.c: New file.
75366
75367         * modules/unistr/u8-strmbtouc: New file.
75368         * modules/unistr/u16-strmbtouc: New file.
75369         * modules/unistr/u32-strmbtouc: New file.
75370         * lib/unistr/u8-strmbtouc.c: New file.
75371         * lib/unistr/u16-strmbtouc.c: New file.
75372         * lib/unistr/u32-strmbtouc.c: New file.
75373
75374         * modules/unistr/u8-strncat: New file.
75375         * modules/unistr/u16-strncat: New file.
75376         * modules/unistr/u32-strncat: New file.
75377         * lib/unistr/u8-strncat.c: New file.
75378         * lib/unistr/u16-strncat.c: New file.
75379         * lib/unistr/u32-strncat.c: New file.
75380         * lib/unistr/u-strncat.h: New file.
75381
75382         * modules/unistr/u8-strncmp: New file.
75383         * modules/unistr/u16-strncmp: New file.
75384         * modules/unistr/u32-strncmp: New file.
75385         * lib/unistr/u8-strncmp.c: New file.
75386         * lib/unistr/u16-strncmp.c: New file.
75387         * lib/unistr/u32-strncmp.c: New file.
75388
75389         * modules/unistr/u8-strncpy: New file.
75390         * modules/unistr/u16-strncpy: New file.
75391         * modules/unistr/u32-strncpy: New file.
75392         * lib/unistr/u8-strncpy.c: New file.
75393         * lib/unistr/u16-strncpy.c: New file.
75394         * lib/unistr/u32-strncpy.c: New file.
75395         * lib/unistr/u-strncpy.h: New file.
75396
75397         * modules/unistr/u8-strnlen: New file.
75398         * modules/unistr/u16-strnlen: New file.
75399         * modules/unistr/u32-strnlen: New file.
75400         * lib/unistr/u8-strnlen.c: New file.
75401         * lib/unistr/u16-strnlen.c: New file.
75402         * lib/unistr/u32-strnlen.c: New file.
75403         * lib/unistr/u-strnlen.h: New file.
75404
75405         * modules/unistr/u8-strpbrk: New file.
75406         * modules/unistr/u16-strpbrk: New file.
75407         * modules/unistr/u32-strpbrk: New file.
75408         * lib/unistr/u8-strpbrk.c: New file.
75409         * lib/unistr/u16-strpbrk.c: New file.
75410         * lib/unistr/u32-strpbrk.c: New file.
75411         * lib/unistr/u-strpbrk.h: New file.
75412
75413         * modules/unistr/u8-strrchr: New file.
75414         * modules/unistr/u16-strrchr: New file.
75415         * modules/unistr/u32-strrchr: New file.
75416         * lib/unistr/u8-strrchr.c: New file.
75417         * lib/unistr/u16-strrchr.c: New file.
75418         * lib/unistr/u32-strrchr.c: New file.
75419
75420         * modules/unistr/u8-strspn: New file.
75421         * modules/unistr/u16-strspn: New file.
75422         * modules/unistr/u32-strspn: New file.
75423         * lib/unistr/u8-strspn.c: New file.
75424         * lib/unistr/u16-strspn.c: New file.
75425         * lib/unistr/u32-strspn.c: New file.
75426         * lib/unistr/u-strspn.h: New file.
75427
75428         * modules/unistr/u8-strstr: New file.
75429         * modules/unistr/u16-strstr: New file.
75430         * modules/unistr/u32-strstr: New file.
75431         * lib/unistr/u8-strstr.c: New file.
75432         * lib/unistr/u16-strstr.c: New file.
75433         * lib/unistr/u32-strstr.c: New file.
75434         * lib/unistr/u-strstr.h: New file.
75435
75436         * modules/unistr/u8-strtok: New file.
75437         * modules/unistr/u16-strtok: New file.
75438         * modules/unistr/u32-strtok: New file.
75439         * lib/unistr/u8-strtok.c: New file.
75440         * lib/unistr/u16-strtok.c: New file.
75441         * lib/unistr/u32-strtok.c: New file.
75442         * lib/unistr/u-strtok.h: New file.
75443
75444         * modules/unistr/u8-uctomb: New file.
75445         * modules/unistr/u16-uctomb: New file.
75446         * modules/unistr/u32-uctomb: New file.
75447         * lib/unistr/u8-uctomb.c: New file.
75448         * lib/unistr/u16-uctomb.c: New file.
75449         * lib/unistr/u32-uctomb.c: New file.
75450
75451         * MODULES.html.sh (Unicode string functions): Add the new modules.
75452
75453 2007-01-08  Bruno Haible  <bruno@clisp.org>
75454
75455         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75456         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75457         subdirectories.
75458
75459 2007-01-08  Karl Berry  <karl@gnu.org>
75460
75461         * doc/error.texi: mention that main() fns must set program_name
75462         when progname is used.
75463
75464 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75467         WCTYPE_H is empty, for the benefit of builds from non-distclean
75468         directories.  Problem reported by Eric Blake in
75469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75470
75471 2007-01-08  Bruno Haible  <bruno@clisp.org>
75472
75473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75474         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75475         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75476         PROVIDE_CANONICALIZE_FILENAME_MODE.
75477         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75478
75479 2007-01-08  Bruno Haible  <bruno@clisp.org>
75480
75481         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75482         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75483         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75484         * lib/fts.c: Likewise.
75485         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75486
75487 2006-12-25  Bruno Haible  <bruno@clisp.org>
75488
75489         * modules/utf8-ucs4-safe: New file.
75490         * lib/utf8-ucs4-safe.h: New file.
75491         * lib/unistr/utf8-ucs4-safe.c: New file.
75492
75493         * modules/utf16-ucs4-safe: New file.
75494         * lib/utf16-ucs4-safe.h: New file.
75495         * lib/unistr/utf16-ucs4-safe.c: New file.
75496
75497         * MODULES.html.sh (Unicode string functions): Add the new modules.
75498
75499 2007-01-08  Bruno Haible  <bruno@clisp.org>
75500
75501         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75502         (Depends-on): Add unitypes.
75503         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75504         (u8_mbtouc_aux): Move out to separate file.
75505         (u8_mbtouc): Use ucs4_t, uint8_t types.
75506         * lib/unistr/utf8-ucs4.c: New file.
75507
75508         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75509         (Depends-on): Add unitypes.
75510         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75511         (u16_mbtouc_aux): Move out to separate file.
75512         (u16_mbtouc): Use ucs4_t, uint16_t types.
75513         * lib/unistr/utf16-ucs4.c: New file.
75514
75515         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75516         (Depends-on): Add unitypes.
75517         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75518         (u8_uctomb_aux): Move out to separate file.
75519         (u8_uctomb): Use ucs4_t, uint8_t types.
75520         * lib/unistr/ucs4-utf8.c: New file.
75521
75522         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75523         (Depends-on): Add unitypes.
75524         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75525         (u16_uctomb_aux): Move out to separate file.
75526         (u16_uctomb): Use ucs4_t, uint16_t types.
75527         * lib/unistr/ucs4-utf16.c: New file.
75528
75529 2006-12-25  Bruno Haible  <bruno@clisp.org>
75530
75531         * modules/unitypes: New file.
75532         * lib/unitypes.h: New file.
75533         * MODULES.html.sh (func_all_modules): New section "Unicode string
75534         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75535         this section. Add unitypes.
75536
75537 2007-01-08  Bruno Haible  <bruno@clisp.org>
75538
75539         Avoid variable names that conflict with those from libtool.
75540         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75541         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75542         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75543         library_names_spec to acl_library_names_spec, hardcode_* to
75544         acl_hardcode_*.
75545         Reported by Ralf Wildenhues.
75546
75547 2007-01-08  Bruno Haible  <bruno@clisp.org>
75548
75549         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75550         definition.
75551         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75552         definition.
75553         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75554         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75555         definition.
75556         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75557         definition.
75558         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75559         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75560         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75561         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75562         definition.
75563         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75564         definition.
75565         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75566         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75567         GC_USE_<algorithm>.
75568         * lib/gc-libgcrypt.c: Likewise.
75569         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75570         * modules/gc-arctwo (configure.ac): Likewise.
75571         * modules/gc-des (configure.ac): Likewise.
75572         * modules/gc-hmac-md5 (configure.ac): Likewise.
75573         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75574         * modules/gc-md2 (configure.ac): Likewise.
75575         * modules/gc-md4 (configure.ac): Likewise.
75576         * modules/gc-md5 (configure.ac): Likewise.
75577         * modules/gc-random (configure.ac): Likewise.
75578         * modules/gc-rijndael (configure.ac): Likewise.
75579         * modules/gc-sha1 (configure.ac): Likewise.
75580
75581 2007-01-08  Bruno Haible  <bruno@clisp.org>
75582
75583         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75584         macro definition.
75585         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75586         definition.
75587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75588         definition.
75589         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75590         * modules/fcntl-safer (configure.ac): Likewise.
75591         * modules/fopen-safer (configure.ac): Likewise.
75592         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75593         GNULIB_FWRITEERROR macro definition.
75594
75595 2007-01-08  Bruno Haible  <bruno@clisp.org>
75596
75597         * m4/gnulib-common.m4: New file.
75598         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75599         (func_get_filelist): Add m4/gnulib-common.m4.
75600
75601 2007-01-08  Bruno Haible  <bruno@clisp.org>
75602
75603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75604         command.
75605
75606 2007-01-08  Jim Meyering  <jim@meyering.net>
75607
75608         Use a more robust test for a "can't happen" condition.
75609         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75610         narrowed the st_size value.  Presuming the "can't happen" condition
75611         is true, that narrowing could conceivably convert an invalid st_size
75612         value into a valid one.  Instead, use a change based on Matthew
75613         Woehlke's original patch.
75614
75615         Slight readability improvement: use an assert-like macro
75616         in place of literal "abort ()" uses.
75617         * lib/fts.c (fts_assert): Define.
75618         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75619         Use this macro instead of a bare 'abort'.
75620
75621 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75622
75623         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75624         simply work around them.
75625         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75626         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75627         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75628         declaring.
75629         Don't bother to define as macros, since the standard doesn't require it.
75630         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75631         longer worry about IRIX 5.3.
75632         (HAVE_WCTYPE_CTMP_BUG): Remove.
75633
75634 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75637         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75638         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75639         Problems reported by Georg Schwarz for IRIX 5.3.
75640
75641         * gnulib-tool (autoconf_minversion): Take the maximum version number
75642         found, not the minimum.  Problem reported by James Youngman.
75643
75644 2007-01-03  Karl Berry  <karl@gnu.org>
75645
75646         * doc/error.texi: new file, explaining interaction with progname.
75647         * doc/gnulib.texi: include it.  Update copyright.
75648
75649 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75650
75651         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75652         AC_CANONICAL_HOST, to improve autobuild outputs.
75653
75654 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75655             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75656
75657         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75658         sockets, server sockets, and other file descriptors.  Count errors
75659         to compute the return value.  Reorder the code a bit to be easier
75660         to follow.  Don't set event bits that were not requested (except
75661         POLLERR and POLLHUP).
75662
75663 2007-01-01  Bruno Haible  <bruno@clisp.org>
75664
75665         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75666
75667 2007-01-03  Jim Meyering  <jim@meyering.net>
75668
75669         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75670
75671 2007-01-02  Bruno Haible  <bruno@clisp.org>
75672
75673         * modules/settime (Include): Require timespec.h.
75674         * modules/nanosleep (Include): Likewise.
75675
75676 2007-01-01  Bruno Haible  <bruno@clisp.org>
75677
75678         * gnulib-tool (func_emit_copyright_notice): Bump year.
75679         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75680
75681 2007-01-01  Bruno Haible  <bruno@clisp.org>
75682
75683         Improve support for OpenBSD.
75684         * build-aux/config.rpath (libname_spec): Export.
75685         (library_names_spec): New variable. Export.
75686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75687         library_names_spec from the config.rpath output. Locate shared library
75688         through the name pattern in library_names_spec.
75689
75690 2007-01-01  Eric Blake  <ebb9@byu.net>
75691
75692         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75693
75694 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75697         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75698         assume the C locale, and avoid an "eval" that could cause trouble.
75699         Problem with SORT reported by Bob Proulx.
75700
75701         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75702         Define.  Trivial patch from Henning Nielsen Lund, originally
75703         sent to bug-grep@gnu.org today.
75704
75705 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75708         struct stat.  Problem reported by Henning Nielsen Lund.
75709         * lib/acl.c: Include acl.h first, to check interface.  Don't
75710         bother to include sys/types.h and sys/stat.h again.
75711
75712 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75713
75714         Import the following change from libc; problem reported by
75715         Sven Verdoolaege.
75716
75717         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75718
75719         [BZ #1373]
75720         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75721
75722 2006-12-28  Jim Meyering  <jim@meyering.net>
75723
75724         * build-aux/announce-gen: Do not assume that the package
75725         builds any of tar.gz, tar.bz2, and .xdelta files.
75726         Suggestion from Simon Josefsson.
75727
75728 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75729
75730         * modules/announce-gen: New file.
75731
75732 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75735         handles its gotchas now.
75736         * lib/mbswidth.c: Likewise.
75737         * lib/wcwidth.h: Likewise.
75738         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75739         and iswcntrl; the wctype module does this stuff now.
75740         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75742         * modules/mbchar (Depends-on): Add wctype.
75743         * modules/mbswidth (Depends-on): Likewise.
75744         * modules/wcwidth (Depends-on): Likewise.
75745
75746 2006-12-27  Eric Blake  <ebb9@byu.net>
75747
75748         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75749         module uses more than what <wctype.h> is required to provide.
75750
75751 2006-12-26  Eric Blake  <ebb9@byu.net>
75752
75753         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75754
75755 2006-12-26  Eric Blake  <ebb9@byu.net>
75756
75757         * modules/absolute-header: New module.
75758         * modules/fcntl (Depends-on): Depend on it.
75759         * modules/inttypes (Depends-on): Likewise.
75760         * modules/stdint (Depends-on): Likewise.
75761         * modules/sys_stat (Depends-on): Likewise.
75762         * modules/wctype (Depends-on): Likewise.
75763         * MODULES.html.sh (Support for building libraries and
75764         executables): Document it.
75765
75766 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * gnulib-tool (SED): Remove, undoing previous change.
75769         The problem was that it broke coreutils on Solaris, because
75770         "sed --posix" leaked into a makefile.
75771         (sed): New alias, if 'alias' and GNU sed.
75772
75773 2006-12-24  Jim Meyering  <jim@meyering.net>
75774
75775         Work around an fchownat bug in glibc-2.4:
75776         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75777         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75778         in spite of the -P option.
75779         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75780         New macros.
75781         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75782         * modules/openat (Files): Add lib/fchownat.c.
75783         * lib/openat.c (fchownat): Don't define here.  Move to...
75784         * lib/fchownat.c: ...this new file.
75785
75786 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75787
75788         Fix bug reported by Bruno Haible in
75789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75790         where quotearg.c didn't compile on Mac OS X 10.2 because it
75791         lacks <wchar.h> and wint_t.
75792         * lib/wctype_.h (__wctype_wint_t): New type.
75793         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75794         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75795         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75796         Arg is now of type __wctype_wint_t, not wint_t.
75797         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75798         substitute HAVE_WINT_T.
75799         * modules/wctype (Files): Add m4/wint_t.m4.
75800         (wctype.h): Substitute HAVE_WINT_T.
75801
75802 2006-12-23  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75805
75806 2006-12-23  Bruno Haible  <bruno@clisp.org>
75807
75808         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75809         S_ISLNK.
75810         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75811         mingw.
75812
75813 2006-12-22  Bruno Haible  <bruno@clisp.org>
75814
75815         * lib/copy-file.c: Include acl.h.
75816         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75817         Close the file descriptors only after being done with copy_acl.
75818         * modules/copy-file (Depends-on): Add acl.
75819
75820 2006-12-22  Bruno Haible  <bruno@clisp.org>
75821
75822         * gnulib-tool (SED): New variable.
75823         Use $SED instead of sed everywhere.
75824
75825 2006-12-22  Bruno Haible  <bruno@clisp.org>
75826
75827         * modules/no-c++: New file.
75828         * m4/no-c++.m4: New file.
75829         * MODULES.html.sh (Support for building libraries and executables):
75830         Add no-c++.
75831
75832 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75835         Include <limits.h>, and use its INT_MAX to rewrite the
75836         j loop so that it does not overflow 'int'.  Problem reported by
75837         Ralf Wildenhues in
75838         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75839         Play it safe by shifting left by 1 rather than multiplying by 2,
75840         as GCC is less likely to optimize this away when the value
75841         is signed (when it assumes overflow leads to undefined behavior).
75842         Also, don't assume time_t uses two's complement.
75843
75844 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * MODULES.html.sh: New module wctype.
75847         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75848         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75849         <wctype.h>, since the new wctype module should fix this.
75850         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75851         the wctype module should arrange for it.
75852         * lib/regex_internal.h: Likewise.
75853         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75854         since the wctype module should handle this now.
75855         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75856         * modules/fnmatch (Depends-on): Add wctype.
75857         * modules/quotearg (Depends-on): Likewise.
75858         * modules/regex (Depends-on): Likewise.
75859
75860 2006-12-19  Bruno Haible  <bruno@clisp.org>
75861
75862         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75863         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75864
75865 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75866
75867         * modules/savewd (Depends-on): Fix dependency on fcntl.
75868
75869 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75870
75871         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75872         conforms to C99, rather than relying on the user's environment
75873         setting of STDINT_H.
75874
75875 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75876         and Eric Blake  <ebb9@byu.net>
75877
75878         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75879         This is more consistent with the other defines here.
75880         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75881         Port to z/OS.  Problem reported by Paul Gilmartin.
75882         Change local vars to use gl_ prefix rather than ac_.
75883         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75884         with other defines.
75885         * modules/double-slash-root: New module.
75886         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75887         (Depends-on): Add double-slash-root.
75888         * MODULES.html.sh (File system functions): Mention new module.
75889
75890 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75893         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75894         This is for the benefit of gzip, which doesn't do i18n.
75895
75896 2006-12-12  Jim Meyering  <jim@meyering.net>
75897
75898         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75899         Reported by Andreas Schwab <schwab@suse.de>.
75900
75901 2006-12-12  Bruno Haible  <bruno@clisp.org>
75902
75903         Merge these changes.
75904         2006-09-05  Bruno Haible  <bruno@clisp.org>
75905         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75906         iconv_alloc succeeded.
75907         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75908         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75909         test for " && dest " at the end - dest is always != NULL there. Call
75910         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75911         with 2xNULL arguments, also to flush the state storage. Handle the
75912         IRIX iconv behaviour. Realloc the final result, to throw away unused
75913         memory.
75914
75915 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75918         and fchmodat unconditionally, since glibc 2.4 has them.
75919         Problem reported by Arkadiusz Miskiewicz.
75920
75921 2006-12-10  Bruno Haible  <bruno@clisp.org>
75922
75923         * gnulib-tool (func_import): Show the include files only for those
75924         modules that are copied and specified.
75925         Reported by Karl Berry.
75926
75927 2006-12-08  Jim Meyering  <jim@meyering.net>
75928
75929         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75930         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75931
75932         * build-aux/announce-gen: Add two new options, both optional:
75933         --bootstrap-tools=TOOL_LIST
75934               a comma-separated list of tools, e.g.,
75935               autoconf,automake,bison,gnulib
75936         --gnulib-snapshot-date=DATE
75937               if gnulib is in the bootstrap tool list,
75938               then report this as the snapshot date.
75939               If not specified, use the current date/time.
75940               If you specify a date here, be sure it's UTC.
75941
75942 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75943
75944         * tests/test-argp-2.sh: Fix test to match actual output.
75945         (func_compare): Fix sed script to be portable.
75946
75947 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75950         workaround for this case.  It is not autoconfigured now; offhand
75951         it's hard to see how to autoconfigure it.
75952
75953 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75956         a directory that is about to be chowned.  Such a directory's
75957         initial file permissions should permit the owner only and this
75958         should not be changed until after the chown, since the group and
75959         other bits would be incorrect if they granted permission before
75960         the chown.
75961
75962         Fix porting problem for iswctype reported by Georg Schwarz in:
75963         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75964         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75965         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75966         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75967         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75968
75969 2006-12-03  Jim Meyering  <jim@meyering.net>
75970
75971         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75972         p->fts_statp may not yet be defined.
75973         (fts_read): Instead, set it in the caller, once p->fts_statp is
75974         sure to be defined, and corresponds to a top-level directory.
75975         This bug made du -x fail.  Here's the coreutils test case:
75976         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75977         Reported by Mike Frysinger.
75978
75979 2006-12-01  Jim Meyering  <jim@meyering.net>
75980
75981         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75982         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75983         Reported by Simon Josefsson.
75984
75985 2006-11-30  Jim Meyering  <jim@meyering.net>
75986
75987         * m4/warning.m4: Use the all-permissive copyright notice
75988         recommended by RMS (rather than LGPL).
75989         * m4/vararrays.m4: Likewise.
75990         * m4/flexmember.m4: Likewise.
75991
75992 2006-11-29  Bruno Haible  <bruno@clisp.org>
75993
75994         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75995         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75996         using +=.
75997         Reported by Simon Josefsson <simon@josefsson.org>.
75998
75999 2006-11-28  James Youngman <jay@gnu.org>
76000
76001         * README: Advise users that they might find the bug-gnulib@gnu.org
76002         and autotools-announce@gnu.org mailing lists useful.
76003
76004 2006-11-28  Bruno Haible  <bruno@clisp.org>
76005
76006         * m4/ptrdiff_max.m4: Remove file.
76007
76008 2006-11-21  Bruno Haible  <bruno@clisp.org>
76009
76010         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76011         _AC_COMPUTE_INT.
76012         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76013         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76014         _AC_COMPUTE_INT.
76015         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76016         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76017         _AC_COMPUTE_INT.
76018         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76019
76020 2006-11-28  Jim Meyering  <jim@meyering.net>
76021
76022         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76023         warning from "gcc -Wshadow" about shadowing the builtin.
76024
76025 2006-11-27  Bruno Haible  <bruno@clisp.org>
76026
76027         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76028         _AC_COMPUTE_INT.
76029         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76030
76031 2006-11-27  Bruno Haible  <bruno@clisp.org>
76032             Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76035
76036 2006-11-26  Bruno Haible  <bruno@clisp.org>
76037
76038         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76039         noinst_LTLIBRARIES.
76040
76041 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76042             Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76045         if compiling with "gcc -ansi".
76046
76047 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         Fix some incompatibilities with gcc -ansi -pedantic.
76050         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76051         if compiling pedantically with GCC, unless it's C99 or later.
76052         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76053         it mishandles gcc -ansi -pedantic as well.
76054         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76055         if gcc -pedantic.
76056         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76057         initializers for struct if -pedantic, unless it's C99 or later.
76058
76059 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76060
76061         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76062         Don't close an fd more than once. Identical atimes indicate
76063         success, not failure.
76064
76065 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76066
76067         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76068
76069 2006-11-23  Jim Meyering  <jim@meyering.net>
76070
76071         * build-aux/announce-gen: New file.  From coreutils.
76072
76073 2006-11-22  Jim Meyering  <jim@meyering.net>
76074
76075         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76076         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76077         (fts_read): Use a temporary to narrow the overused st_size member
76078         before using it in a switch statement.  Reported by Matthew Woehlke.
76079
76080         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76082
76083 2006-11-20  Bruno Haible  <bruno@clisp.org>
76084
76085         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76086         changequote instead of pairs of brackets.
76087         Reported by Andreas Schwab <schwab@suse.de>.
76088
76089 2006-11-21  Jim Meyering  <jim@meyering.net>
76090
76091         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76092         so as to remain compatible with older compilers.
76093         Patch from Michael Deutschmann.
76094
76095 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76096
76097         * MODULES.html.sh (File system functions): Add openat.
76098
76099         * lib/openat.h (rpl_fstatat): New macro, if
76100         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76101         (fstatat): Define to rpl_fstatat under the same conditions,
76102         unless COMPILING_FSTATAT.
76103         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76104         seems to have the bug.
76105         * lib/fstatat.c: New file.
76106         * modules/openat (Files): Add it.
76107
76108 2006-11-20  Bruno Haible  <bruno@clisp.org>
76109
76110         * Makefile: New file.
76111
76112 2006-11-20  Jim Meyering  <jim@meyering.net>
76113
76114         The beginnings of syntax-related checks for gnulib.
76115         * lib/Makefile: New file.
76116         * lib/t-idcache: New script.  Ensure that the two halves of
76117         idcache.c stay in sync.
76118
76119         * lib/idcache.c: Adjust comments in user- and group- portions to
76120         be more accurate, and to be consistent with one another.
76121
76122 2006-11-20  Jim Meyering  <jim@meyering.net>
76123
76124         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76125         continue using the flexible array member (thus, this module performs
76126         half as many malloc calls), with the addition that...
76127         (getgroup, getuser): Consistently record a non-match via an empty
76128         "name" string, and map an empty string match to a NULL return value.
76129         * modules/idcache (Depends-on): Re-add flexmember.
76130
76131         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76132         (getuidbyname, getgroup, getgidbyname): Likewise.
76133
76134         Use cleaner syntax: NULL rather than 0.
76135         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76136
76137 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76140         It mishandled the case where the group was missing.
76141         Problem reported by Greg Schafer.
76142         * modules/idcache: Likewise.
76143
76144 2006-11-18  Jim Meyering  <jim@meyering.net>
76145
76146         * check-module (%exempt_header): Add exception for some
76147         conditionally-included headers.
76148
76149         * modules/i-ring (Depends-on): Add verify.
76150         (License): Change to LGPL.
76151
76152 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76155         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76156         and inttostr.h.  Use snprintf rather than uinttostr, so that
76157         LGPLed code doesn't depend on GPLed.
76158
76159 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * modules/inline (License): Change from GPL to LGPL.
76162
76163 2006-11-17  Jim Meyering  <jim@meyering.net>
76164
76165         * modules/d-type (License): Switch to LGPL.
76166
76167 2006-11-15  Bruno Haible  <bruno@clisp.org>
76168
76169         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76170
76171 2006-11-15  Eric Blake  <ebb9@byu.net>
76172
76173         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76174         the module dependency.
76175
76176 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76177             Bruno Haible  <bruno@clisp.org>
76178
76179         * gnulib-tool (func_create_testdir): Add license consistency check.
76180
76181 2006-11-15  Eric Blake  <ebb9@byu.net>
76182
76183         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76184         random "(cached)" in configure output.
76185
76186 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76187
76188         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76189         test for conforming inttypes.h is both announced and cached.
76190
76191         * MODULES.html.sh (seen_modules, seen_files): New variables.
76192         (func_module): Rewrite to use a few less gnulib-tool and sed
76193         invocations.  Avoid a couple of quadratic algorithms for ...
76194         (missed_modules, missed_files): ... these, with ...
76195         (func_append, func_tmpdir): ... these new functions, from
76196         gnulib-tool.  Analogously, install traps for cleanup.
76197
76198         * tests/test-gc.c (main): Remove unused variables.
76199         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76200
76201 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * modules/inttostr (License): Change to LGPL.
76204
76205 2006-11-14  Eric Blake  <ebb9@byu.net>
76206
76207         * modules/tempname (License): Change to LGPL.
76208
76209 2006-11-14  Eric Blake  <ebb9@byu.net>
76210
76211         * doc/functions.texi (Function Portability): *printf functions on
76212         Cygwin now understand all POSIX size specifiers.
76213
76214 2006-11-14  Bruno Haible  <bruno@clisp.org>
76215
76216         * modules/c-ctype (License): Change to LGPL.
76217
76218 2006-11-12  Bruno Haible  <bruno@clisp.org>
76219
76220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76221         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76222         for GNOME libraries, for which the include files are installed in
76223         subdirectories of $prefix/include.
76224
76225 2006-11-12  Bruno Haible  <bruno@clisp.org>
76226
76227         * m4/lib-link.m4: Require at least autoconf-2.54.
76228         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76229         name to underscores for the --with option.
76230
76231 2006-11-13  Bruno Haible  <bruno@clisp.org>
76232
76233         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76234         the tests directory.
76235         Reported by Ralf Wildenhues.
76236
76237 2006-11-13  Bruno Haible  <bruno@clisp.org>
76238
76239         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76240         (func_emit_initmacro_end): Undo the override here.
76241         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76242         Works around the famous automake error in coreutils.
76243
76244 2006-11-13  Eric Blake  <ebb9@byu.net>
76245
76246         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76247         element, not its node.
76248
76249 2006-11-12  Bruno Haible  <bruno@clisp.org>
76250
76251         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76252         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76253
76254 2006-11-12  Bruno Haible  <bruno@clisp.org>
76255
76256         * gnulib-tool: New option --local-symlink.
76257         (func_usage): Document it.
76258         (lsymbolic): New variable.
76259         (func_import, func_create_testdir): If --symlink was not specified,
76260         test whether --local-symlink was specified and the file comes from
76261         the local_gnulib_dir.
76262
76263 2006-11-12  Bruno Haible  <bruno@clisp.org>
76264
76265         * gnulib-tool (func_ln): New function.
76266         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76267
76268 2006-11-12  Bruno Haible  <bruno@clisp.org>
76269
76270         Finish support for source files in subdirectories.
76271         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76272         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76273         AUTOMAKE_OPTIONS.
76274         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76275
76276 2006-11-12  Bruno Haible  <bruno@clisp.org>
76277
76278         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76279         EXTRA_lib_SOURCES augmentation.
76280         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76281
76282 2006-11-12  Jim Meyering  <jim@meyering.net>
76283
76284         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76285         file descriptors.  This also averts a failure on systems with
76286         native openat support when a traversed directory lacks "x" access.
76287         * lib/fts_.h: Include "i-ring.h"
76288         (struct FTS) [fts_fd_ring]: New member.
76289         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76290         (FCHDIR): Add parentheses.
76291         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76292         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76293         When descending, rather than simply closing the previous
76294         fts_cwd_fd value, push that file descriptor onto the ring.
76295         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76296         (fts_open): Initialize the new fd_ring member.
76297         (fts_close): Clear the ring.
76298         (fts_safe_changedir): When possible, use our new fd_ring to skip
76299         the diropen and fstat and dev/ino comparison that would normally
76300         accompany a virtual `chdir ("..")'.
76301
76302         * modules/fts (Depends-on): Add i-ring.
76303         * modules/i-ring: New module.
76304         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76305         * m4/i-ring.m4: New file.
76306
76307 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76308
76309         * gnulib-tool (func_create_testdir): Fix replacement of
76310         `build-aux' in configure.ac.  Run autotools in gltests
76311         subdirectory.
76312         (func_create_testdir, func_create_megatestdir, test): There is
76313         no need for '--force' in most autotool invocations in a new
76314         tree.  Actually fail the whole test if any of the tools, or the
76315         configure or make stages fail.
76316
76317         Sync from Automake.
76318         * build-aux/gnupload: Revert last change.  Add pointer to upload
76319         instructions of the GNU Maintenance Instructions.
76320         Suggestion by Karl Berry.
76321
76322 2006-11-10  Jim Meyering  <jim@meyering.net>
76323
76324         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76325
76326 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76329         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76330         (bind_textdomain_codeset) [! ENABLE_NLS]:
76331         Evaluate all the arguments.  That way, callers get compatible behavior
76332         if the arguments have side effects.  Also, it avoids some GCC
76333         diagnostics in some cases; Joel E. Denny reported problems when Bison
76334         was configured with --enable-gcc-warnigs.
76335
76336 2006-11-10  Jim Meyering  <jim@meyering.net>
76337
76338         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76339         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76340         account.
76341
76342 2006-11-10  Jim Meyering  <jim@meyering.net>
76343
76344         * modules/inline: New file/module.
76345         * modules/xalloc (Files): Remove m4/inline.m4.
76346         (Depends-on): Add inline, instead.
76347         * modules/oset: Likewise.
76348         * modules/list: Likewise.
76349
76350 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76353         Problem reported by Matthew Woehlke.
76354
76355 2006-11-09  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/tempname.c (gen_tempname): Remove variant that invokes
76358         __gen_tempname.
76359         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76360         __gen_tempname.
76361
76362 2006-11-08  Bruno Haible  <bruno@clisp.org>
76363
76364         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76365         to 'yes' instead of 'cross-compiling'.
76366
76367 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76368
76369         * lib/quotearg.h (quotearg_free): New decl.
76370         * lib/quotearg.c (quotearg_free): New function.
76371         (slot0, nslots, slotvec0, slotvec):
76372         Now file-scope so that quotearg_free can get at them.
76373
76374 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76375
76376         Sync from Automake.
76377         * build-aux/gnupload: Add missing 'gnu' to example URL.
76378         Report by Karl Berry.
76379
76380 2006-11-08  Bruno Haible  <bruno@clisp.org>
76381
76382         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76383         Suggested by Paul Eggert.
76384
76385 2006-11-08  Jim Meyering  <jim@meyering.net>
76386
76387         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76388         It's already included if !_LIBC.
76389         (fts_safe_changedir): Add a comment.
76390
76391 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76392
76393         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76394         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76395         Matthew Woehlke.
76396
76397         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76398         definitions up, to avoid colliding with change below.
76399         (static_inline) [HAVE_INLINE]: New macro.
76400         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76401         Provide extern decls when !HAVE_INLINE.  Do not define unless
76402         static_inline is defined, either by us or by xmalloc.c.  Use
76403         static_inline rather than static inline.
76404         (XCALLOC): Optimize sizeof(T) = 1 case.
76405         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76406
76407 2006-11-07  Bruno Haible  <bruno@clisp.org>
76408
76409         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76411         AC_C_INLINE.
76412         * modules/xalloc (Files): Add m4/inline.m4.
76413
76414 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76415
76416         * README: Fix typo.
76417         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76418         (Miscellanous Notes): ...from this.
76419
76420 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76423         Mention that offsetof should be used instead of sizeof.
76424         From Bruno Haible.
76425
76426 2006-11-07  Bruno Haible  <bruno@clisp.org>
76427
76428         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76429
76430 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76433         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76434         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76435         (gl_tree_add_before, gl_tree_add_after):
76436         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76437         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76438         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76439         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76440         (gl_linked_add_after, gl_linked_add_at): Likewise.
76441         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76442         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76443         (gl_tree_add_before, gl_tree_add_after): Likewise.
76444         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76445         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76446         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76447
76448 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76449
76450         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76451
76452 2006-11-06  Bruno Haible  <bruno@clisp.org>
76453
76454         * m4/inline.m4: New file.
76455         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76456         * modules/list (Files): Add m4/inline.m4.
76457         * modules/oset (Files): Likewise.
76458
76459 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76460
76461         * lib/idcache.c: Include <stddef.h>, for offsetof.
76462         (struct userid.name): Change from char * to a flexible array member.
76463         All uses changed.
76464         * modules/idcache (Depends-on): Add flexmember.
76465
76466         * MODULES.html.sh (Core language properties): New module flexmember.
76467         * modules/flexmember, m4/flexmember.m4: New files.
76468
76469         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76470         inline functions that are identical with the old xnmalloc_inline,
76471         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76472         that we can avoid some unnecessary integer multiplications and
76473         divisions in the common case where the element size is known at
76474         compile time.
76475         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76476         needed.
76477         (xnboundedmalloc): Remove.
76478         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76479         arguments, for consistency with rest of this header.
76480         (xcharalloc): Rewrite using XNMALLOC.
76481         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76482         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76483         versions have been moved to lib/xalloc.h and renamed to be the
76484         non-*_inline versions.
76485         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76486         and xnrealloc functions, since those functions are now inline and
76487         now call us.
76488         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76489         renaming described above.
76490         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76491         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76492         captures the dependency in AC_C_INLINE.
76493
76494         New module canonicalize-lgpl, proposed by Charles Wilson in
76495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76496         with a few small changes afterwards.
76497         * MODULES.html.sh (File system functions): New module
76498         canonicalize-lgpl.
76499         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76500         and canonicalize_file_name.
76501         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76502         * modules/canonicalize-lgpl: New files.
76503
76504 2006-11-05  Bruno Haible  <bruno@clisp.org>
76505
76506         * gnulib-tool (func_import, func_create_testdir): Create directories
76507         also for files in subdirectories of lib/.
76508
76509 2006-11-05  Bruno Haible  <bruno@clisp.org>
76510
76511         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76512         ANSI C compliant.
76513
76514 2006-11-03  Bruno Haible  <bruno@clisp.org>
76515
76516         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76518         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76519         (xnboundedmalloc): New inline function.
76520         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76521         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76522         xmalloc.
76523         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76524         xmalloc.
76525         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76526         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76527         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76528         xmalloc.
76529         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76530         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76531         xmalloc.
76532         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76533         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76534         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76535         xmalloc.
76536         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76537         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76538         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76539         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76540         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76541         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76542         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76543
76544 2006-11-03  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/c-ctype.h [C++]: Define functions without name mangling.
76547         * lib/fwriteerror.h [C++]: Likewise.
76548         * lib/gcd.h [C++]: Likewise.
76549         * lib/linebreak.h [C++]: Likewise.
76550
76551 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76554         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76555         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76557         Check for functions and headers just once.
76558         Check for declaration of canonicalize_file_name.
76559         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76560
76561 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76562
76563         * gnulib-tool (func_import): Fix typo in actioncmd.
76564
76565 2006-11-02  Bruno Haible  <bruno@clisp.org>
76566
76567         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76568         newline sequence in the Makefile.am snippet as a space, like "make"
76569         does.
76570         Reported by Roger Persson <perrog@gmail.com>.
76571
76572 2006-11-01  Bruno Haible  <bruno@clisp.org>
76573
76574         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76575         already declared in <string.h>.
76576         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76577
76578 2006-11-01  Bruno Haible  <bruno@clisp.org>
76579
76580         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76581         * lib/strcase.h: Include <string.h>.
76582         (strcasecmp): Define to rpl_strcasecmp here.
76583
76584 2006-11-01  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76587
76588 2006-11-01  Eric Blake  <ebb9@byu.net>
76589
76590         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76591
76592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76593
76594 2006-10-29  Bruno Haible  <bruno@clisp.org>
76595
76596         Make it compile in C++ mode.
76597         * lib/full-write.c (full_rw): Add a cast.
76598
76599 2006-11-01  Bruno Haible  <bruno@clisp.org>
76600
76601         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76602         be POSIX compliant.
76603         Reported by Roger Persson <perrog@gmail.com>.
76604
76605 2006-11-01  Eric Blake  <ebb9@byu.net>
76606
76607         * lib/getopt_.h: Fix comments.
76608
76609 2006-10-31  Eric Blake  <ebb9@byu.net>
76610
76611         * modules/tmpdir (Depends-on): Add sys_stat.
76612         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76613         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76614         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76615         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76616         tempname.
76617
76618 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76619
76620         Avoid some C++ diagnostics reported by Bruno Haible.
76621         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76622         xmalloc.
76623         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76624         (struct slotvec): Move to top level.
76625         (quotearg_n_options): Rewrite to avoid xmalloc.
76626         * lib/xalloc.h (xcharalloc): New function.
76627         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76628         [defined __cplusplus]: Add function template that provides result
76629         type propagation.  This part of the change is from Bruno Haible.
76630
76631 2006-10-29  Bruno Haible  <bruno@clisp.org>
76632
76633         Make it compile in C++ mode.
76634         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76635         * lib/strnlen1.c (strnlen1): Cast memchr result.
76636         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76637         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76638         (create_temp_dir): Rename local variable 'template'.
76639         (compile_csharp_using_sscli): Add cast.
76640         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76641         * lib/findprog.c (find_in_path): Likewise.
76642         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76643         * lib/wait-process.c (register_slave_subprocess): Likewise.
76644
76645 2006-10-22  Bruno Haible  <bruno@clisp.org>
76646
76647         * modules/tsearch: New file.
76648         * lib/tsearch.h: New file.
76649         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76650         * m4/tsearch.m4: New file.
76651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76652
76653 2006-10-29  Eric Blake  <ebb9@byu.net>
76654
76655         * lib/arcfour.c: Assume config.h.
76656         * lib/arctwo.c: Likewise.
76657         * lib/base64.c: Likewise.
76658         * lib/check-version.c: Likewise.
76659         * lib/crc.c: Likewise.
76660         * lib/des.c: Likewise.
76661         * lib/gc-gnulib.c: Likewise.
76662         * lib/gc-libgcrypt.c: Likewise.
76663         * lib/gc-pbkdf2-sha1.c: Likewise.
76664         * lib/getaddrinfo.c: Likewise.
76665         * lib/getdelim.c: Likewise.
76666         * lib/getline.c: Likewise.
76667         * lib/hmac-md5.c: Likewise.
76668         * lib/hmac-sha1.c: Likewise.
76669         * lib/iconvme.c: Likewise.
76670         * lib/md2.c: Likewise.
76671         * lib/md4.c: Likewise.
76672         * lib/memxor.c: Likewise.
76673         * lib/read-file.c: Likewise.
76674         * lib/readline.c: Likewise.
76675         * lib/rijndael-alg-fst.c: Likewise.
76676         * lib/rijndael-api-fst.c: Likewise.
76677         * lib/xgetdomainname.c: Likewise.
76678
76679 2006-10-28  Eric Blake  <ebb9@byu.net>
76680
76681         * lib/xstrndup.c: Assume config.h.
76682
76683 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76686         stat-macros.h is now for our own macros, whereas stat_h is for
76687         macros in the <sys/stat.h> name space.
76688         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76689         (STAT_MACROS_H): Remove.
76690         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76691         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76692         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76693         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76694         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76695         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76696         Move these macros to ...
76697         * lib/stat_.h: here.  Don't include stat-macros.h.
76698         * lib/canonicalize.c: Don't include stat-macros.h.
76699         * lib/chown.c: Likewise.
76700         * lib/euidaccess.c: Likewise.
76701         * lib/file-type.c: Likewise.
76702         * lib/filemode.c: Likewise.
76703         * lib/glob.c: Likewise.
76704         * lib/isapipe.c: Likewise.
76705         * lib/lchown.c: Likewise.
76706         * lib/lstat.c: Likewise.
76707         * lib/mkdir-p.c: Likewise.
76708         * lib/rmdir.c: Likewise.
76709         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76711         unless mkdir isn't declared, to speed up 'configure'.
76712         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76713         would define all the S_* symbols.
76714         * modules/canonicalize (Depends-on):
76715         Depend on sys_stat, not stat-macros.
76716         * modules/chown: Likewise.
76717         * modules/euidaccess: Likewise.
76718         * modules/filemode: Likewise.
76719         * modules/file-type: Likewise.
76720         * modules/glob: Likewise.
76721         * modules/isapipe: Likewise.
76722         * modules/lchown: Likewise.
76723         * modules/lstat: Likewise.
76724         * modules/mkancesdirs: Likewise.
76725         * modules/rmdir: Likewise.
76726         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76727         * modules/modechange: Likewise.
76728         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76729         (configure.ac): Remove gl_STAT_MACROS.
76730         * modules/sys_stat (Depends-on): Remove stat-macros.
76731
76732 2006-10-27  Bruno Haible  <bruno@clisp.org>
76733
76734         * m4/signed.m4: Remove file.
76735         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76736         invocation.
76737         * modules/vasnprintf (Files): Remove m4/signed.m4.
76738
76739 2006-10-27  Bruno Haible  <bruno@clisp.org>
76740
76741         Update to GNU gettext 0.16.
76742         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76743         m4/inttypes-h.m4, m4/signed.m4.
76744         * m4/gettext.m4: Update to GNU gettext 0.16.
76745         * m4/intl.m4: New file, from GNU gettext.
76746         * m4/intldir.m4: New file, from GNU gettext.
76747         * config/srclist.txt: Update
76748
76749 2006-10-27  Eric Blake  <ebb9@byu.net>
76750
76751         * MODULES.html.sh: Document tempname.
76752         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76753         dependencies.
76754         (Files): Move lib/tempname.c...
76755         * modules/tempname: ...to this new module.
76756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76757         (gl_PREREQ_TEMPNAME): Move...
76758         * m4/tempname.m4: ...to this new file.
76759         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76760         * modules/sys_stat (Depends-on): Add stat-macros.
76761         * lib/stat_.h (includes): Pick up stat macros.
76762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76763         if stat macros are broken.
76764         * lib/tempname.c (includes): No need to include "stat-macros.h".
76765         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76766         (direxists, __path_search) [!_LIBC]: Don't compile these in
76767         gnulib; the tmpdir module covers that.
76768         * lib/tempname.h: New file.
76769
76770 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * COPYING: Explain how gnulib-tool converts licence headers.
76773         Almost all wording by Eric Blake.
76774
76775 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/mbchar.h (is_basic_table): Make read-only.
76778         * lib/mbchar.c (is_basic_table): Likewise.
76779         Reported by John Darrington.
76780
76781 2006-10-25  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/progname.h (set_program_name): Undefine before defining.
76784
76785 2006-10-25  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76788         false for non-gcc C++ compilers.
76789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76790
76791 2006-10-24  Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76794         iconv implementations like Irix iconv.
76795
76796 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * modules/vararrays: New file.
76799         * m4/vararrays.m4: New file, taken from diffutils.
76800         * MODULES.html.sh: New module vararrays.
76801
76802 2006-10-24  Karl Berry  <karl@gnu.org>
76803
76804         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76805         Don't call GNU Unix.
76806
76807 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76808
76809         * users.txt: Add Libtool.
76810
76811         Sync from Libtool:
76812
76813         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76816         to gnulib's policy of including config.h unconditionally.
76817
76818 2006-10-24  Bruno Haible  <bruno@clisp.org>
76819
76820         * modules/wcwidth (Files): Add m4/wint_t.m4.
76821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76822         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76823
76824 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76827         to pacify GCC with some -W flags enabled.  Problem reported by
76828         Bruno Haible.
76829
76830 2006-10-24  Jim Meyering  <jim@meyering.net>
76831
76832         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76833         Reported by Karl Berry.
76834
76835 2006-10-23  Bruno Haible  <bruno@clisp.org>
76836
76837         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76838
76839 2006-10-24  Bruno Haible  <bruno@clisp.org>
76840
76841         * lib/gl_list.h: Use C comment style, not C++ comment style.
76842
76843 2006-10-23  Eric Blake  <ebb9@byu.net>
76844
76845         * lib/getaddrinfo.c (includes): Add missing include.
76846
76847 2006-10-23  Bruno Haible  <bruno@clisp.org>
76848             Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         Ability to rename obstack_free.
76851         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76852         obstack_free.
76853         (obstack_free): Invoke the __obstack_free macro.
76854         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76855
76856 2006-10-23  Bruno Haible  <bruno@clisp.org>
76857             Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76860         __argc, __argv from the declaration. (They are defined as macros on
76861         mingw.)
76862
76863 2006-10-22  Bruno Haible  <bruno@clisp.org>
76864
76865         * doc/gnulib-intro.texi: New file.
76866         * doc/gnulib.texi: Include it.
76867
76868 2006-10-21  Bruno Haible  <bruno@clisp.org>
76869
76870         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76871         "Introduction", "Miscellanous Notes", "Particular Modules".
76872
76873 2006-10-21  Bruno Haible  <bruno@clisp.org>
76874
76875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76876         Change mostlyclean-local rule to avoid sh syntax error from bash
76877         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76878
76879 2006-10-23  Jim Meyering  <jim@meyering.net>
76880
76881         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76882         in place of snprintf.
76883
76884         * modules/inttostr (Files): Add lib/uinttostr.c.
76885         * lib/uinttostr.c (inttostr): New file/function.
76886         * lib/inttostr.h (uinttostr): Declare.
76887         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76888         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76889         Add uinttostr.
76890         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76891
76892 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         * lib/canonicalize.c (ELOOP): Define if not already defined.
76895         Problem reported by Bruno Haible in
76896         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76897
76898 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76901         Problem reported by Perry Smith and Ville Laurikari.
76902
76903         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76904         uses.
76905
76906 2006-10-19  Bruno Haible  <bruno@clisp.org>
76907
76908         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76909         for mingw.
76910
76911 2006-10-19  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76914         Needed for mingw.
76915
76916 2006-10-19  Bruno Haible  <bruno@clisp.org>
76917
76918         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76919
76920 2006-10-19  Bruno Haible  <bruno@clisp.org>
76921
76922         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76923         it.
76924
76925 2006-10-19  Bruno Haible  <bruno@clisp.org>
76926
76927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76928         invocation.
76929
76930 2006-10-19  Bruno Haible  <bruno@clisp.org>
76931
76932         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76933         mountlist by default.
76934
76935 2006-10-16  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/c-strstr.c: Include c-strstr.h.
76938
76939 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76940
76941         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76942         in a slash.
76943
76944 2006-10-18  Bruno Haible  <bruno@clisp.org>
76945
76946         * lib/lock.h [C++]: Wrap definitions in extern "C".
76947
76948 2006-10-18  Bruno Haible  <bruno@clisp.org>
76949
76950         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76951         gl_LIBOBJS list.
76952
76953 2006-10-18  Bruno Haible  <bruno@clisp.org>
76954
76955         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76956
76957 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * lib/xstrtol.h: Include gettext.h.
76960         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76961         Problem reported by Eric Blake.
76962         * modules/xstrtol (Depends-on): Add gettext-h.
76963
76964 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76965
76966         * lib/strftime.c (advance): New macro.
76967         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76968         incomplete type, so you can't add 0 to it.  Problem and patch
76969         reported by Eelco Dolstra for dietlibc.
76970
76971 2006-10-18  Jim Meyering  <jim@meyering.net>
76972
76973         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76974         type for a local, and rename it: s/up/user_proc/.
76975
76976 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76977
76978         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76979         READ_UTMP_USER_PROCESS.
76980         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76981
76982 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76985         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76986
76987 2006-10-17  Eric Blake  <ebb9@byu.net>
76988
76989         * lib/sigprocmask.c (sigprocmask): Fix typo.
76990
76991         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76992
76993         * modules/clean-temp (Makefile.am): Don't add to make output...
76994         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76995         config.h.
76996
76997 2006-10-17  Bruno Haible  <bruno@clisp.org>
76998
76999         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77000         differently if DEFAULT_TEXT_DOMAIN is set.
77001
77002 2006-10-16  Bruno Haible  <bruno@clisp.org>
77003
77004         * lib/clean-temp.c: Include fwriteerror.h.
77005
77006 2006-10-16  Bruno Haible  <bruno@clisp.org>
77007
77008         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77009
77010 2006-10-16  Bruno Haible  <bruno@clisp.org>
77011
77012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77013         * lib/sigprocmask.h: Include <sys/types.h>.
77014         (sigset_t): Use the system's definition if present.
77015
77016 2006-10-17  Eric Blake  <ebb9@byu.net>
77017
77018         * lib/xvasprintf.c (includes): Assume config.h.
77019         * lib/xasprintf.c (includes): Likewise.
77020
77021 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77024         at least as wide as intmax_t.
77025
77026 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77027
77028         (Imported from Automake.)
77029         * build-aux/gnupload: Update to version 1.1 of directive file.
77030
77031 2006-10-16  Eric Blake  <ebb9@byu.net>
77032
77033         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77034         match Automake 1.10a.
77035
77036 2006-10-14  Bruno Haible  <bruno@clisp.org>
77037
77038         * modules/sigprocmask: New file.
77039         * lib/sigprocmask.h: New file.
77040         * lib/sigprocmask.c: New file.
77041         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77042         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77043         request sigprocmask.o.
77044         (gl_PREREQ_SIGPROCMASK): New macro.
77045         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77046         (Depends-on): Add sigprocmask.
77047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77048         gt_SIGNALBLOCKING. Test for 'raise' only once.
77049         * lib/fatal-signal.c: Include sigprocmask.h.
77050         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77051         unblock_fatal_signals): Define always.
77052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77053         sigprocmask.
77054
77055 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77056
77057         Sync from Automake.
77058         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77059         which incorrectly sets the mode of an existing destination
77060         directory.  In some cases the unpatched install-sh could do the
77061         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77062         system.  We hope this is rare in practice, but it's clearly worth
77063         fixing.  Problem reported by Alex Unleashed in
77064         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77065         Also, don't bother to check for -m bugs unless we're using -m;
77066         suggested by Stepan Kasal.
77067
77068 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77069
77070         Sync from Automake.
77071         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77072         `-c' flag, so they appear at the same position as in %FASTDEP%
77073         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77074         which ignores unknown options only after the first non-option.
77075         Bug report against M4 by Nelson H. F. Beebe.
77076
77077 2006-10-13  Jim Meyering  <jim@meyering.net>
77078
77079         Fix a bug in yesterday's change.
77080         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77081         p->fts_statp->st_dev would be used uninitialized.
77082         Ensures that we always call fts_stat on the very first entry.
77083         Miklos Szeredi reported that find -xdev stopped working.
77084
77085 2006-10-12  Bruno Haible  <bruno@clisp.org>
77086
77087         * gnulib-tool (func_get_automake_snippet): Append an automatically
77088         computed EXTRA_DIST augmentation.
77089         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77090         * modules/alloca-opt (Makefile.am): Likewise.
77091         * modules/allocsa (Makefile.am): Likewise.
77092         * modules/arcfour (Makefile.am): Likewise.
77093         * modules/arctwo (Makefile.am): Likewise.
77094         * modules/argmatch (Makefile.am): Likewise.
77095         * modules/argz (Makefile.am): Likewise.
77096         * modules/atexit (Makefile.am): Likewise.
77097         * modules/backupfile (Makefile.am): Likewise.
77098         * modules/byteswap (Makefile.am): Likewise.
77099         * modules/c-strtod (Makefile.am): Likewise.
77100         * modules/c-strtold (Makefile.am): Likewise.
77101         * modules/calloc (Makefile.am): Likewise.
77102         * modules/canon-host (Makefile.am): Likewise.
77103         * modules/canonicalize (Makefile.am): Likewise.
77104         * modules/chdir-long (Makefile.am): Likewise.
77105         * modules/chdir-safer (Makefile.am): Likewise.
77106         * modules/check-version (Makefile.am): Likewise.
77107         * modules/chown (Makefile.am): Likewise.
77108         * modules/cloexec (Makefile.am): Likewise.
77109         * modules/close-stream (Makefile.am): Likewise.
77110         * modules/closeout (Makefile.am): Likewise.
77111         * modules/crc (Makefile.am): Likewise.
77112         * modules/csharpexec (Makefile.am): Likewise.
77113         * modules/cycle-check (Makefile.am): Likewise.
77114         * modules/des (Makefile.am): Likewise.
77115         * modules/dev-ino (Makefile.am): Likewise.
77116         * modules/dirfd (Makefile.am): Likewise.
77117         * modules/dirname (Makefile.am): Likewise.
77118         * modules/dup2 (Makefile.am): Likewise.
77119         * modules/eealloc (Makefile.am): Likewise.
77120         * modules/error (Makefile.am): Likewise.
77121         * modules/euidaccess (Makefile.am): Likewise.
77122         * modules/exclude (Makefile.am): Likewise.
77123         * modules/exitfail (Makefile.am): Likewise.
77124         * modules/fcntl-safer (Makefile.am): Likewise.
77125         * modules/fcntl (Makefile.am): Likewise.
77126         * modules/file-type (Makefile.am): Likewise.
77127         * modules/fileblocks (Makefile.am): Likewise.
77128         * modules/filemode (Makefile.am): Likewise.
77129         * modules/filenamecat (Makefile.am): Likewise.
77130         * modules/fnmatch (Makefile.am): Likewise.
77131         * modules/fopen-safer (Makefile.am): Likewise.
77132         * modules/fpending (Makefile.am): Likewise.
77133         * modules/fprintftime (Makefile.am): Likewise.
77134         * modules/free (Makefile.am): Likewise.
77135         * modules/fsusage (Makefile.am): Likewise.
77136         * modules/ftruncate (Makefile.am): Likewise.
77137         * modules/fts (Makefile.am): Likewise.
77138         * modules/gc-arcfour (Makefile.am): Likewise.
77139         * modules/gc-des (Makefile.am): Likewise.
77140         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77141         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77142         * modules/gc-md4 (Makefile.am): Likewise.
77143         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77144         * modules/gc-sha1 (Makefile.am): Likewise.
77145         * modules/gc (Makefile.am): Likewise.
77146         * modules/getaddrinfo (Makefile.am): Likewise.
77147         * modules/getcwd (Makefile.am): Likewise.
77148         * modules/getdelim (Makefile.am): Likewise.
77149         * modules/getdomainname (Makefile.am): Likewise.
77150         * modules/getgroups (Makefile.am): Likewise.
77151         * modules/gethostname (Makefile.am): Likewise.
77152         * modules/gethrxtime (Makefile.am): Likewise.
77153         * modules/getline (Makefile.am): Likewise.
77154         * modules/getloadavg (Makefile.am): Likewise.
77155         * modules/getlogin_r (Makefile.am): Likewise.
77156         * modules/getndelim2 (Makefile.am): Likewise.
77157         * modules/getopt (Makefile.am): Likewise.
77158         * modules/getpagesize (Makefile.am): Likewise.
77159         * modules/getpass-gnu (Makefile.am): Likewise.
77160         * modules/getpass (Makefile.am): Likewise.
77161         * modules/getsubopt (Makefile.am): Likewise.
77162         * modules/gettime (Makefile.am): Likewise.
77163         * modules/gettimeofday (Makefile.am): Likewise.
77164         * modules/getugroups (Makefile.am): Likewise.
77165         * modules/getusershell (Makefile.am): Likewise.
77166         * modules/glob (Makefile.am): Likewise.
77167         * modules/group-member (Makefile.am): Likewise.
77168         * modules/hard-locale (Makefile.am): Likewise.
77169         * modules/hash (Makefile.am): Likewise.
77170         * modules/hmac-md5 (Makefile.am): Likewise.
77171         * modules/hmac-sha1 (Makefile.am): Likewise.
77172         * modules/human (Makefile.am): Likewise.
77173         * modules/idcache (Makefile.am): Likewise.
77174         * modules/imaxabs (Makefile.am): Likewise.
77175         * modules/imaxdiv (Makefile.am): Likewise.
77176         * modules/inet_ntop (Makefile.am): Likewise.
77177         * modules/inet_pton (Makefile.am): Likewise.
77178         * modules/intprops (Makefile.am): Likewise.
77179         * modules/inttostr (Makefile.am): Likewise.
77180         * modules/inttypes (Makefile.am): Likewise.
77181         * modules/isapipe (Makefile.am): Likewise.
77182         * modules/javaversion (Makefile.am): Likewise.
77183         * modules/lchmod (Makefile.am): Likewise.
77184         * modules/lchown (Makefile.am): Likewise.
77185         * modules/localcharset (Makefile.am): Likewise.
77186         * modules/long-options (Makefile.am): Likewise.
77187         * modules/lstat (Makefile.am): Likewise.
77188         * modules/malloc (Makefile.am): Likewise.
77189         * modules/mathl (Makefile.am): Likewise.
77190         * modules/mbchar (Makefile.am): Likewise.
77191         * modules/md2 (Makefile.am): Likewise.
77192         * modules/md4 (Makefile.am): Likewise.
77193         * modules/md5 (Makefile.am): Likewise.
77194         * modules/memcasecmp (Makefile.am): Likewise.
77195         * modules/memchr (Makefile.am): Likewise.
77196         * modules/memcmp (Makefile.am): Likewise.
77197         * modules/memcoll (Makefile.am): Likewise.
77198         * modules/memcpy (Makefile.am): Likewise.
77199         * modules/memmem (Makefile.am): Likewise.
77200         * modules/memmove (Makefile.am): Likewise.
77201         * modules/mempcpy (Makefile.am): Likewise.
77202         * modules/memrchr (Makefile.am): Likewise.
77203         * modules/memset (Makefile.am): Likewise.
77204         * modules/memxor (Makefile.am): Likewise.
77205         * modules/mkancesdirs (Makefile.am): Likewise.
77206         * modules/mkdir-p (Makefile.am): Likewise.
77207         * modules/mkdir (Makefile.am): Likewise.
77208         * modules/mkdtemp (Makefile.am): Likewise.
77209         * modules/mkstemp (Makefile.am): Likewise.
77210         * modules/mktime (Makefile.am): Likewise.
77211         * modules/modechange (Makefile.am): Likewise.
77212         * modules/mountlist (Makefile.am): Likewise.
77213         * modules/nanosleep (Makefile.am): Likewise.
77214         * modules/obstack (Makefile.am): Likewise.
77215         * modules/openat (Makefile.am): Likewise.
77216         * modules/pagealign_alloc (Makefile.am): Likewise.
77217         * modules/pathmax (Makefile.am): Likewise.
77218         * modules/physmem (Makefile.am): Likewise.
77219         * modules/poll (Makefile.am): Likewise.
77220         * modules/posixtm (Makefile.am): Likewise.
77221         * modules/posixver (Makefile.am): Likewise.
77222         * modules/putenv (Makefile.am): Likewise.
77223         * modules/quote (Makefile.am): Likewise.
77224         * modules/quotearg (Makefile.am): Likewise.
77225         * modules/raise (Makefile.am): Likewise.
77226         * modules/read-file (Makefile.am): Likewise.
77227         * modules/readline (Makefile.am): Likewise.
77228         * modules/readlink (Makefile.am): Likewise.
77229         * modules/readtokens (Makefile.am): Likewise.
77230         * modules/readutmp (Makefile.am): Likewise.
77231         * modules/realloc (Makefile.am): Likewise.
77232         * modules/regex (Makefile.am): Likewise.
77233         * modules/rename-dest-slash (Makefile.am): Likewise.
77234         * modules/rename (Makefile.am): Likewise.
77235         * modules/rijndael (Makefile.am): Likewise.
77236         * modules/rmdir (Makefile.am): Likewise.
77237         * modules/rpmatch (Makefile.am): Likewise.
77238         * modules/safe-read (Makefile.am): Likewise.
77239         * modules/safe-write (Makefile.am): Likewise.
77240         * modules/same-inode (Makefile.am): Likewise.
77241         * modules/same (Makefile.am): Likewise.
77242         * modules/save-cwd (Makefile.am): Likewise.
77243         * modules/savedir (Makefile.am): Likewise.
77244         * modules/setenv (Makefile.am): Likewise.
77245         * modules/settime (Makefile.am): Likewise.
77246         * modules/sha1 (Makefile.am): Likewise.
77247         * modules/sig2str (Makefile.am): Likewise.
77248         * modules/snprintf (Makefile.am): Likewise.
77249         * modules/stat-macros (Makefile.am): Likewise.
77250         * modules/stat-time (Makefile.am): Likewise.
77251         * modules/stdbool (Makefile.am): Likewise.
77252         * modules/stdint (Makefile.am): Likewise.
77253         * modules/stdlib-safer (Makefile.am): Likewise.
77254         * modules/stpcpy (Makefile.am): Likewise.
77255         * modules/stpncpy (Makefile.am): Likewise.
77256         * modules/strcase (Makefile.am): Likewise.
77257         * modules/strcasestr (Makefile.am): Likewise.
77258         * modules/strchrnul (Makefile.am): Likewise.
77259         * modules/strcspn (Makefile.am): Likewise.
77260         * modules/strdup (Makefile.am): Likewise.
77261         * modules/strerror (Makefile.am): Likewise.
77262         * modules/strftime (Makefile.am): Likewise.
77263         * modules/strndup (Makefile.am): Likewise.
77264         * modules/strnlen (Makefile.am): Likewise.
77265         * modules/strpbrk (Makefile.am): Likewise.
77266         * modules/strsep (Makefile.am): Likewise.
77267         * modules/strstr (Makefile.am): Likewise.
77268         * modules/strtod (Makefile.am): Likewise.
77269         * modules/strtoimax (Makefile.am): Likewise.
77270         * modules/strtok_r (Makefile.am): Likewise.
77271         * modules/strtol (Makefile.am): Likewise.
77272         * modules/strtoll (Makefile.am): Likewise.
77273         * modules/strtoul (Makefile.am): Likewise.
77274         * modules/strtoull (Makefile.am): Likewise.
77275         * modules/strtoumax (Makefile.am): Likewise.
77276         * modules/strverscmp (Makefile.am): Likewise.
77277         * modules/sys_socket (Makefile.am): Likewise.
77278         * modules/sys_stat (Makefile.am): Likewise.
77279         * modules/sysexits (Makefile.am): Likewise.
77280         * modules/time_r (Makefile.am): Likewise.
77281         * modules/timegm (Makefile.am): Likewise.
77282         * modules/timespec (Makefile.am): Likewise.
77283         * modules/tmpfile-safer (Makefile.am): Likewise.
77284         * modules/trim (Makefile.am): Likewise.
77285         * modules/unistd-safer (Makefile.am): Likewise.
77286         * modules/unlinkdir (Makefile.am): Likewise.
77287         * modules/unlocked-io (Makefile.am): Likewise.
77288         * modules/userspec (Makefile.am): Likewise.
77289         * modules/utime (Makefile.am): Likewise.
77290         * modules/utimecmp (Makefile.am): Likewise.
77291         * modules/utimens (Makefile.am): Likewise.
77292         * modules/vasnprintf (Makefile.am): Likewise.
77293         * modules/vasprintf (Makefile.am): Likewise.
77294         * modules/vsnprintf (Makefile.am): Likewise.
77295         * modules/xalloc (Makefile.am): Likewise.
77296         * modules/xgetcwd (Makefile.am): Likewise.
77297         * modules/xnanosleep (Makefile.am): Likewise.
77298         * modules/xreadlink (Makefile.am): Likewise.
77299         * modules/xstrtod (Makefile.am): Likewise.
77300         * modules/xstrtol (Makefile.am): Likewise.
77301         * modules/xstrtold (Makefile.am): Likewise.
77302         * modules/yesno (Makefile.am): Likewise.
77303         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77304
77305 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * modules/error (Makefile.am): Distribute files through
77308         EXTRA_DIST, not lib_SOURCES.
77309
77310 2006-10-12  Eric Blake  <ebb9@byu.net>
77311
77312         * modules/error (Makefile.am): Distribute files in /lib.
77313         * modules/obstack (Makefile.am): Likewise.
77314
77315 2006-10-12  Bruno Haible  <bruno@clisp.org>
77316
77317         * modules/acl (Makefile.am): Distribute all files in lib/ through
77318         EXTRA_DIST.
77319         * modules/arcfour (Makefile.am): Likewise.
77320         * modules/arctwo (Makefile.am): Likewise.
77321         * modules/argmatch (Makefile.am): Likewise.
77322         * modules/argz (Makefile.am): Likewise.
77323         * modules/atexit (Makefile.am): Likewise.
77324         * modules/backupfile (Makefile.am): Likewise.
77325         * modules/c-strtod (Makefile.am): Likewise.
77326         * modules/c-strtold (Makefile.am): Likewise.
77327         * modules/calloc (Makefile.am): Likewise.
77328         * modules/canon-host (Makefile.am): Likewise.
77329         * modules/canonicalize (Makefile.am): Likewise.
77330         * modules/chdir-long (Makefile.am): Likewise.
77331         * modules/chdir-safer (Makefile.am): Likewise.
77332         * modules/check-version (Makefile.am): Likewise.
77333         * modules/chown (Makefile.am): Likewise.
77334         * modules/cloexec (Makefile.am): Likewise.
77335         * modules/close-stream (Makefile.am): Likewise.
77336         * modules/closeout (Makefile.am): Likewise.
77337         * modules/crc (Makefile.am): Likewise.
77338         * modules/cycle-check (Makefile.am): Likewise.
77339         * modules/des (Makefile.am): Likewise.
77340         * modules/dirfd (Makefile.am): Likewise.
77341         * modules/dirname (Makefile.am): Likewise.
77342         * modules/dup2 (Makefile.am): Likewise.
77343         * modules/euidaccess (Makefile.am): Likewise.
77344         * modules/exclude (Makefile.am): Likewise.
77345         * modules/exitfail (Makefile.am): Likewise.
77346         * modules/fcntl-safer (Makefile.am): Likewise.
77347         * modules/file-type (Makefile.am): Likewise.
77348         * modules/fileblocks (Makefile.am): Likewise.
77349         * modules/filemode (Makefile.am): Likewise.
77350         * modules/filenamecat (Makefile.am): Likewise.
77351         * modules/fnmatch (Makefile.am): Likewise.
77352         * modules/fopen-safer (Makefile.am): Likewise.
77353         * modules/fpending (Makefile.am): Likewise.
77354         * modules/fprintftime (Makefile.am): Likewise.
77355         * modules/free (Makefile.am): Likewise.
77356         * modules/fsusage (Makefile.am): Likewise.
77357         * modules/ftruncate (Makefile.am): Likewise.
77358         * modules/fts (Makefile.am): Likewise.
77359         * modules/gc (Makefile.am): Likewise.
77360         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77361         * modules/getaddrinfo (Makefile.am): Likewise.
77362         * modules/getcwd (Makefile.am): Likewise.
77363         * modules/getdelim (Makefile.am): Likewise.
77364         * modules/getdomainname (Makefile.am): Likewise.
77365         * modules/getgroups (Makefile.am): Likewise.
77366         * modules/gethostname (Makefile.am): Likewise.
77367         * modules/gethrxtime (Makefile.am): Likewise.
77368         * modules/getline (Makefile.am): Likewise.
77369         * modules/getloadavg (Makefile.am): Likewise.
77370         * modules/getlogin_r (Makefile.am): Likewise.
77371         * modules/getopt (Makefile.am): Likewise.
77372         * modules/getpass (Makefile.am): Likewise.
77373         * modules/getpass-gnu (Makefile.am): Likewise.
77374         * modules/getsubopt (Makefile.am): Likewise.
77375         * modules/gettime (Makefile.am): Likewise.
77376         * modules/gettimeofday (Makefile.am): Likewise.
77377         * modules/getugroups (Makefile.am): Likewise.
77378         * modules/getusershell (Makefile.am): Likewise.
77379         * modules/glob (Makefile.am): Likewise.
77380         * modules/group-member (Makefile.am): Likewise.
77381         * modules/hard-locale (Makefile.am): Likewise.
77382         * modules/hash (Makefile.am): Likewise.
77383         * modules/hmac-md5 (Makefile.am): Likewise.
77384         * modules/hmac-sha1 (Makefile.am): Likewise.
77385         * modules/human (Makefile.am): Likewise.
77386         * modules/idcache (Makefile.am): Likewise.
77387         * modules/imaxabs (Makefile.am): Likewise.
77388         * modules/imaxdiv (Makefile.am): Likewise.
77389         * modules/inet_ntop (Makefile.am): Likewise.
77390         * modules/inet_pton (Makefile.am): Likewise.
77391         * modules/inttostr (Makefile.am): Likewise.
77392         * modules/isapipe (Makefile.am): Likewise.
77393         * modules/lchown (Makefile.am): Likewise.
77394         * modules/long-options (Makefile.am): Likewise.
77395         * modules/lstat (Makefile.am): Likewise.
77396         * modules/malloc (Makefile.am): Likewise.
77397         * modules/mathl (Makefile.am): Likewise.
77398         * modules/mbchar (Makefile.am): Likewise.
77399         * modules/md2 (Makefile.am): Likewise.
77400         * modules/md4 (Makefile.am): Likewise.
77401         * modules/md5 (Makefile.am): Likewise.
77402         * modules/memcasecmp (Makefile.am): Likewise.
77403         * modules/memchr (Makefile.am): Likewise.
77404         * modules/memcmp (Makefile.am): Likewise.
77405         * modules/memcoll (Makefile.am): Likewise.
77406         * modules/memcpy (Makefile.am): Likewise.
77407         * modules/memmem (Makefile.am): Likewise.
77408         * modules/memmove (Makefile.am): Likewise.
77409         * modules/mempcpy (Makefile.am): Likewise.
77410         * modules/memrchr (Makefile.am): Likewise.
77411         * modules/memset (Makefile.am): Likewise.
77412         * modules/memxor (Makefile.am): Likewise.
77413         * modules/mkancesdirs (Makefile.am): Likewise.
77414         * modules/mkdir (Makefile.am): Likewise.
77415         * modules/mkdir-p (Makefile.am): Likewise.
77416         * modules/mkdtemp (Makefile.am): Likewise.
77417         * modules/mkstemp (Makefile.am): Likewise.
77418         * modules/mktime (Makefile.am): Likewise.
77419         * modules/modechange (Makefile.am): Likewise.
77420         * modules/mountlist (Makefile.am): Likewise.
77421         * modules/nanosleep (Makefile.am): Likewise.
77422         * modules/openat (Makefile.am): Likewise.
77423         * modules/pagealign_alloc (Makefile.am): Likewise.
77424         * modules/physmem (Makefile.am): Likewise.
77425         * modules/poll (Makefile.am): Likewise.
77426         * modules/posixtm (Makefile.am): Likewise.
77427         * modules/posixver (Makefile.am): Likewise.
77428         * modules/putenv (Makefile.am): Likewise.
77429         * modules/quote (Makefile.am): Likewise.
77430         * modules/quotearg (Makefile.am): Likewise.
77431         * modules/raise (Makefile.am): Likewise.
77432         * modules/read-file (Makefile.am): Likewise.
77433         * modules/readline (Makefile.am): Likewise.
77434         * modules/readlink (Makefile.am): Likewise.
77435         * modules/readtokens (Makefile.am): Likewise.
77436         * modules/readutmp (Makefile.am): Likewise.
77437         * modules/realloc (Makefile.am): Likewise.
77438         * modules/regex (Makefile.am): Likewise.
77439         * modules/rename (Makefile.am): Likewise.
77440         * modules/rename-dest-slash (Makefile.am): Likewise.
77441         * modules/rijndael (Makefile.am): Likewise.
77442         * modules/rmdir (Makefile.am): Likewise.
77443         * modules/rpmatch (Makefile.am): Likewise.
77444         * modules/safe-read (Makefile.am): Likewise.
77445         * modules/safe-write (Makefile.am): Likewise.
77446         * modules/same (Makefile.am): Likewise.
77447         * modules/save-cwd (Makefile.am): Likewise.
77448         * modules/savedir (Makefile.am): Likewise.
77449         * modules/setenv (Makefile.am): Likewise.
77450         * modules/settime (Makefile.am): Likewise.
77451         * modules/sha1 (Makefile.am): Likewise.
77452         * modules/sig2str (Makefile.am): Likewise.
77453         * modules/snprintf (Makefile.am): Likewise.
77454         * modules/stdlib-safer (Makefile.am): Likewise.
77455         * modules/stpcpy (Makefile.am): Likewise.
77456         * modules/stpncpy (Makefile.am): Likewise.
77457         * modules/strcase (Makefile.am): Likewise.
77458         * modules/strcasestr (Makefile.am): Likewise.
77459         * modules/strchrnul (Makefile.am): Likewise.
77460         * modules/strcspn (Makefile.am): Likewise.
77461         * modules/strdup (Makefile.am): Likewise.
77462         * modules/strerror (Makefile.am): Likewise.
77463         * modules/strftime (Makefile.am): Likewise.
77464         * modules/strndup (Makefile.am): Likewise.
77465         * modules/strnlen (Makefile.am): Likewise.
77466         * modules/strpbrk (Makefile.am): Likewise.
77467         * modules/strsep (Makefile.am): Likewise.
77468         * modules/strstr (Makefile.am): Likewise.
77469         * modules/strtod (Makefile.am): Likewise.
77470         * modules/strtoimax (Makefile.am): Likewise.
77471         * modules/strtok_r (Makefile.am): Likewise.
77472         * modules/strtol (Makefile.am): Likewise.
77473         * modules/strtoll (Makefile.am): Likewise.
77474         * modules/strtoul (Makefile.am): Likewise.
77475         * modules/strtoull (Makefile.am): Likewise.
77476         * modules/strtoumax (Makefile.am): Likewise.
77477         * modules/strverscmp (Makefile.am): Likewise.
77478         * modules/time_r (Makefile.am): Likewise.
77479         * modules/timegm (Makefile.am): Likewise.
77480         * modules/tmpfile-safer (Makefile.am): Likewise.
77481         * modules/unistd-safer (Makefile.am): Likewise.
77482         * modules/unlinkdir (Makefile.am): Likewise.
77483         * modules/userspec (Makefile.am): Likewise.
77484         * modules/utime (Makefile.am): Likewise.
77485         * modules/utimecmp (Makefile.am): Likewise.
77486         * modules/utimens (Makefile.am): Likewise.
77487         * modules/vasnprintf (Makefile.am): Likewise.
77488         * modules/vasprintf (Makefile.am): Likewise.
77489         * modules/vsnprintf (Makefile.am): Likewise.
77490         * modules/xalloc (Makefile.am): Likewise.
77491         * modules/xgetcwd (Makefile.am): Likewise.
77492         * modules/xnanosleep (Makefile.am): Likewise.
77493         * modules/xreadlink (Makefile.am): Likewise.
77494         * modules/xstrtod (Makefile.am): Likewise.
77495         * modules/xstrtol (Makefile.am): Likewise.
77496         * modules/xstrtold (Makefile.am): Likewise.
77497         * modules/yesno (Makefile.am): Likewise.
77498
77499 2006-10-12  Jim Meyering  <jim@meyering.net>
77500
77501         * m4/getloadavg.m4: Revert the change below.
77502
77503         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77504         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77505         fail with a symlink, which is what coreutils' ./bootstrap now
77506         creates by default.
77507
77508 2006-10-12  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77511         mingw.
77512         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77513         MSVC and mingw explicitly.
77514
77515 2006-10-11  Simon Josefsson  <jas@extundo.com>
77516             Bruno Haible  <bruno@clisp.org>
77517
77518         Add support for multiple gnulib-tool invocations in the scope of a
77519         single configure.ac file.
77520         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77521         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77522         with the same contents as the _LIBADD variable.
77523         (func_emit_initmacro_start, func_emit_initmacro_end,
77524         func_emit_initmacro_done): New functions.
77525         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77526         gl_LIBOBJS and gl_LTLIBOBJS.
77527
77528 2006-10-11  Bruno Haible  <bruno@clisp.org>
77529
77530         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77531         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77532         autoreconf. Instead, invoke autopoint explicitly but move back the
77533         *.m4 files from gnulib.
77534
77535 2006-10-11  Bruno Haible  <bruno@clisp.org>
77536
77537         * gnulib-tool (func_usage): Make module names after --create-testdir
77538         optional.
77539         (func_create_testdir): If no module was specified, use nearly all
77540         modules.
77541
77542 2006-10-12  Jim Meyering  <jim@meyering.net>
77543
77544         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77545         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77546         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77547         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77548         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77549         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77550         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77551         (fts_set_stat_required): New function.
77552         (fts_open): Defer the calls to fts_stat, if possible or requested.
77553         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77554         into fts_stat itself.
77555         (fts_read): Perform any required (deferred) fts_stat call.
77556         (fts_build): Likewise, for the directory we're about to open and read.
77557         In the readdir loop, carefully decide whether each entry will require
77558         an eventual call to fts_stat, using dirent.d_type info if available.
77559         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77560         a command line argument into this function.  Update all callers.
77561         Map a return value of FTS_DOT to FTS_D for a command line argument.
77562         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77563         Thanks to Miklos Szeredi for his tenacity and for the initial
77564         bug report about "find" failing on a FUSE-based file system.
77565
77566         * lib/fts.c (fts_open): Use consistent indentation.
77567
77568 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77571         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77572         reported by Jim Meyering.  All uses of cache variables renamed
77573         to match Autoconf's.
77574         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77575         the other one.
77576
77577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77578         Fix misspelling in diagnostic.
77579
77580 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77583         defined.  Problem reported by Matthew Woehlke.
77584
77585         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77586         Add support for Tandem NonStop R series.
77587         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77588         Use new macro.
77589
77590         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77591         (has_trailing_slash): Omit size arg; all callers changed.
77592         Omit 'inline', since it doesn't help performance and we'd
77593         need to configure it.
77594         Don't count //, ///, etc. as having a trailing slash.
77595         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77596         (rpl_rename_dest_slash): On failure, use rename's errno rather
77597         than (in some cases) an incorrect or junk errno.
77598         Simplify code by removing need to compute length; this does
77599         cause it to make two passes instead of one over the file name,
77600         but it's worth it.
77601
77602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77603         change, since Autoconf's version may no longer be appropriate now
77604         that we are using CVS Autoconf's version.  Add support for Tandem.
77605
77606 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77607             Bruno Haible  <bruno@clisp.org>
77608
77609         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77610         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77611         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77612         gl_AC_TYPE_LONG_LONG.
77613
77614         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77615         instead of HAVE_LONG_LONG.
77616         * lib/printf-args.c (printf_fetchargs): Likewise.
77617         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77618         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77619         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77620         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77621         gl_AC_TYPE_LONG_LONG.
77622
77623 2006-10-11  Bruno Haible  <bruno@clisp.org>
77624
77625         * m4/longlong.m4: Add comments.
77626         * m4/ulonglong.m4: Likewise.
77627
77628 2006-10-10  Bruno Haible  <bruno@clisp.org>
77629
77630         Make it possible to #define stpcpy, strdup to aliases.
77631         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77632         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77633
77634 2006-10-10  Bruno Haible  <bruno@clisp.org>
77635
77636         Make it possible to #define gcd to an alias.
77637         * lib/gcd.c: Include config.h.
77638
77639 2006-10-10  Bruno Haible  <bruno@clisp.org>
77640
77641         Make it possible to #define c_isascii to an alias.
77642         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77643         defined. Undefine the macros before defining them, to avoid gcc
77644         warnings.
77645         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77646         define NO_C_CTYPE_MACROS early.
77647
77648 2006-10-10  Bruno Haible  <bruno@clisp.org>
77649
77650         Make it possible to #define set_program_name to an alias.
77651         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77652         ENABLE_RELOCATABLE early.
77653
77654 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77657         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77658         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77659         More generally, don't assume that 64-bit signed int is available
77660         if unsigned int is, and vice versa.
77661         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77662         unsigned symbols, not on their signed counterparts.
77663         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77664         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77665         (UINT64_C, UINTMAX_C):
77666         Likewise.
77667         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77668         unsigned counterparts.
77669         (Have_long_long, Unsigned): New macros.
77670         (Int): Renamed from INT.
77671         (strtoimax): Use the new macros.
77672         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77673         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77674         * modules/inttypes (inttypes.h): Substitute
77675         HAVE_UNSIGNED_LONG_LONG_INT.
77676         * modules/stdint (stdint.h): Likewise.
77677         (Files): Add m4/ulonglong.m4.
77678
77679 2006-10-10  Bruno Haible  <bruno@clisp.org>
77680
77681         Fix a gcc -Wshadow warning.
77682         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77683         to 'bucket'.
77684         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77685         gl_linked_indexof_from_to): Likewise.
77686         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77687         Likewise.
77688         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77689         Likewise.
77690         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77691         Reported by Eric Blake.
77692
77693 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77696         for NetBSD.  Problem reported by Bruno Haible.
77697
77698 2006-10-09  Jim Meyering  <jim@meyering.net>
77699
77700         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77701         Patch from Bruno Haible.
77702
77703 2006-10-09  Jim Meyering  <jim@meyering.net>
77704
77705         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77706         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77707         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77708
77709 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         Don't include <config.h> twice; this doesn't work in some cases,
77712         e.g., when config.h has "#define intmax_t long long int" and
77713         we include <config.h>, <inttypes.h>, <config.h> in that order.
77714         Problem reported by Matthew Woehlke in:
77715         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77716         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77717         * lib/fts-cycle.c: Don't include config.h.
77718         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77719         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77720         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77721         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77722         inttypes.h.
77723         * lib/xstrtoumax.c: Likewise.
77724         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77725         __strtol and the like, so that this module is more like its siblings.
77726         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77727         Remove; no longer needed now that we assume gnulib inttypes.h.
77728
77729 2006-10-08  Bruno Haible  <bruno@clisp.org>
77730
77731         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77732         option.
77733
77734 2006-10-07  Jim Meyering  <jim@meyering.net>
77735
77736         * modules/inttypes (inttypes.h): Revert what seems to have been
77737         an inadvertent part of today's change: use "|", not "/" in the
77738         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77739
77740 2006-10-07  Bruno Haible  <bruno@clisp.org>
77741
77742         * modules/sublist: New file.
77743
77744 2006-10-07  Bruno Haible  <bruno@clisp.org>
77745
77746         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77747         * modules/argz (argz.h): Likewise.
77748         * modules/arpa_inet (arpa/inet.h): Likewise.
77749         * modules/byteswap (byteswap.h): Likewise.
77750         * modules/configmake (configmake.h): Likewise.
77751         * modules/fcntl (fcntl.h): Likewise.
77752         * modules/fnmatch (fnmatch.h): Likewise.
77753         * modules/getopt (getopt.h): Likewise.
77754         * modules/glob (glob.h): Likewise.
77755         * modules/inttypes (inttypes.h): Likewise.
77756         * modules/netinet_in (netinet/in.h): Likewise.
77757         * modules/poll (poll.h): Likewise.
77758         * modules/stdbool (stdbool.h): Likewise.
77759         * modules/stdint (stdint.h): Likewise.
77760         * modules/sys_select (sys/select.h): Likewise.
77761         * modules/sys_socket (sys/socket.h): Likewise.
77762         * modules/sys_stat (sys/stat.h): Likewise.
77763         * modules/sysexits (sysexits.h): Likewise.
77764         * modules/unistd (unistd.h): Likewise.
77765         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77766         Add a "DO NOT EDIT" comment to the generated file.
77767         (func_import): Likewise for gnulib-comp.m4.
77768
77769 2006-10-07  Bruno Haible  <bruno@clisp.org>
77770
77771         * lib/gl_sublist.h: New file.
77772         * lib/gl_sublist.c: New file.
77773
77774 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77777         name (relative to the original working directory) and the file
77778         name component (relative to the temporary working directory).  All
77779         callers changed.
77780         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77781         * lib/mkdir-p.c (make_dir_parents): Likewise.
77782         * lib/mkdir-p.h (make_dir_parents): Likewise.
77783
77784 2006-10-06  Eric Blake  <ebb9@byu.net>
77785
77786         Define several macros for use by the clean-temp module.
77787         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77789         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77790
77791         * lib/clean-temp.h (close_stream_temp): New declaration.
77792         * lib/clean-temp.c (includes): Pull in headers according to what
77793         other modules are in use.
77794         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77795
77796 2006-10-06  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77799         instead of fopen, fwriteerror.
77800
77801 2006-10-06  Bruno Haible  <bruno@clisp.org>
77802
77803         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77804         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77805         int.
77806         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77807         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77808         Return an error indicator.
77809         Suggested by Eric Blake.
77810
77811 2006-10-06  Bruno Haible  <bruno@clisp.org>
77812
77813         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77814         Reported by Eric Blake.
77815
77816 2006-10-06  Bruno Haible  <bruno@clisp.org>
77817
77818         * modules/closeout (Description): Mention stderr too.
77819
77820 2006-10-06  Bruno Haible  <bruno@clisp.org>
77821         and Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * lib/closeout.c (close_stdout): Also close stderr.
77824         * lib/closeout.h: Update comment.
77825
77826 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77829         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77830         * lib/dirchownmod.c: Include lchown.h.
77831         * lib/lchown.c: Don't include files that lchown.h now includes.
77832         Don't declare chown, since lchown.h now does that.
77833         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77834         (lchown): Define to rpl_chown if lchown is declared but
77835         does not exist.  Declare using a prototype if lchown is not
77836         declared.  Add a copyright notice.
77837         * lib/mkstemp.h: Include <unistd.h>.
77838         * lib/openat.c: Include lchown.h.
77839
77840         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77841         we now test for that separately.
77842         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77843         rather than O_NOFOLLOW, when testing whether it's possible to
77844         avoid a race condition reliably.
77845         * lib/savewd.c (savewd_chdir): Likewise.
77846
77847         Remove macros that are no longer needed now that stdint.h is
77848         reliable.
77849         * lib/fsusage.c (UINTMAX_MAX): Remove.
77850         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77851         * lib/utimecmp.c (SIZE_MAX): Remove.
77852
77853         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77854
77855         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77856         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77857         O_NOATIME works.
77858
77859 2006-10-05  Bruno Haible  <bruno@clisp.org>
77860
77861         * lib/gl_list.h (gl_sortedlist_search_from_to,
77862         gl_sortedlist_indexof_from_to): New declarations.
77863         (gl_list_implementation): New fields sortedlist_search_from_to,
77864         sortedlist_indexof_from_to.
77865         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77866         inline functions.
77867         * lib/gl_list.c (gl_sortedlist_search_from_to,
77868         gl_sortedlist_indexof_from_to): New functions.
77869         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77870         function.
77871         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77872         (gl_array_sortedlist_search_from_to): New function.
77873         (gl_array_list_implementation): Update.
77874         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77875         function.
77876         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77877         (gl_carray_sortedlist_search_from_to): New function.
77878         (gl_carray_list_implementation): Update.
77879         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77880         gl_linked_sortedlist_indexof_from_to): New functions.
77881         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77882         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77883         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77884         gl_tree_sortedlist_indexof_from_to): New functions.
77885         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77886         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77887         Update.
77888         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77889         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77890         Update.
77891
77892 2006-10-05  Bruno Haible  <bruno@clisp.org>
77893
77894         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77895         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77896         (struct gl_list_implementation): Add fields search_from_to,
77897         indexof_from_to. Remove fields search, indexof.
77898         (gl_list_search): Use the search_from_to method.
77899         (gl_list_search_from, gl_list_search_from_to): New functions.
77900         (gl_list_indexof): Use the indexof_from_to method.
77901         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77902         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77903         (gl_list_search_from, gl_list_search_from_to): New functions.
77904         (gl_list_indexof): Use the indexof_from_to method.
77905         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77906         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77907         gl_array_indexof. Add start_index, end_index arguments.
77908         (gl_array_search_from_to): Renamed from gl_array_search. Add
77909         start_index, end_index arguments.
77910         (gl_array_remove, gl_array_list_implementation): Update.
77911         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77912         gl_carray_indexof. Add start_index, end_index arguments.
77913         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77914         start_index, end_index arguments.
77915         (gl_carray_remove, gl_carray_list_implementation): Update.
77916         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77917         gl_linked_search. Add start_index, end_index arguments.
77918         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77919         start_index, end_index arguments.
77920         (gl_linked_remove): Update.
77921         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77922         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77923         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77924         field to 'size_t'.
77925         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77926         gl_tree_search. Add start_index, end_index arguments.
77927         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77928         start_index, end_index arguments.
77929         (gl_tree_remove): Update.
77930         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77931         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77932         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77933         function.
77934         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77935         gl_tree_search. Add start_index, end_index arguments.
77936         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77937         start_index, end_index arguments.
77938         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77939         Update.
77940         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77941
77942 2006-10-05  Bruno Haible  <bruno@clisp.org>
77943
77944         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77945
77946         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77947         fwriteerror_temp): New declarations.
77948         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77949         (descriptors): New variable.
77950         (cleanup): First, close the descriptors.
77951         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77952         fclose_temp, fwriteerror_temp): New functions.
77953
77954 2006-10-04  Jim Meyering  <jim@meyering.net>
77955
77956         * lib/fts.c (fts_open): Tiny comment change.
77957
77958 2006-10-04  Bruno Haible  <bruno@clisp.org>
77959
77960         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77961         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77962         gl_LOCK_BODY.
77963         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77964         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77965         gl_LOCK_EARLY_BODY.
77966         (gl_LOCK): Require gl_LOCK_BODY.
77967
77968 2006-10-04  Bruno Haible  <bruno@clisp.org>
77969
77970         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77971         (gl_oset_search_atleast): New declaration.
77972         (struct gl_oset_implementation): Add field 'search_atleast'.
77973         (gl_oset_search_atleast): New inline function.
77974         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77975         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77976         (gl_array_oset_implementation): Update.
77977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77978         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77979         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77980
77981 2006-10-04  Bruno Haible  <bruno@clisp.org>
77982
77983         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77984
77985 2006-10-03  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77988         from gl_avltreehash_list_implementation.
77989
77990 2006-10-03  Bruno Haible  <bruno@clisp.org>
77991
77992         * lib/gl_oset.c (gl_oset_add): Fix return type.
77993
77994 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77995
77996         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77997
77998 2006-10-02  Eric Blake  <ebb9@byu.net>
77999
78000         * modules/strnlen (Depends-on): Add extensions.
78001
78002 2006-10-02  Eric Blake  <ebb9@byu.net>
78003
78004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78005         definition in 2.60+.
78006
78007 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78008
78009         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78010         checks.
78011
78012 2006-10-02  Bruno Haible  <bruno@clisp.org>
78013
78014         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78015         to the AUTOMAKE_OPTIONS.
78016         Reported by Jim Meyering.
78017
78018 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         Work around bug in Solaris 10 /proc file system:
78021         /proc/self/fd/NNN/.. isn't the parent directory of
78022         the directory whose file descriptor is NNN.  This needs to
78023         be worked around at run time, not compile time, since a
78024         program might be built on Solaris 8, where things work, and
78025         run on Solaris 10.
78026         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78027         to use the following interface instead:
78028         (OPENAT_BUFFER_SIZE): New macro.
78029         (openat_proc_name): New function.
78030         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78031         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78032         Likewise.
78033         * lib/openat-proc.c: New file.
78034         * modules/openat (Files): Add lib/openat-proc.c.
78035         (Depends-on): Add same-inode, stdbool.
78036         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78037
78038 2006-09-29  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78041         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78042         argument. Set stdout_closed before testing for ferror, not after.
78043         (fwriteerror, fwriteerror_no_ebadf): New functions.
78044
78045 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78046
78047         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78048
78049 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78050
78051         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78052         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78053
78054 2006-09-28  Jim Meyering  <jim@meyering.net>
78055
78056         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78057         Include <unistd.h>.
78058
78059 2006-09-28  Bruno Haible  <bruno@clisp.org>
78060
78061         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78062         * modules/linkedhash-list (Depends-on): Likewise.
78063         * modules/rbtreehash-list (Depends-on): Likewise.
78064
78065 2006-09-28  Bruno Haible  <bruno@clisp.org>
78066
78067         * lib/strndup.h: Simplify the redefinition of strndup.
78068         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78070
78071 2006-09-28  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78074         * lib/gl_linkedhash_list.c: Likewise.
78075         * lib/gl_rbtreehash_list.c: Likewise.
78076
78077 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78078
78079         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78080         getaddrinfo.
78081
78082         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78083         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78084         it causes <stdio_ext.h> to cause a compile-time error.
78085         Problem reported by Nelson H. F. Beebe.
78086         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78087         of HAVE_DECL___PENDING.
78088
78089         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78090         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78091         declaration.
78092
78093 2006-09-27  Jim Meyering  <jim@meyering.net>
78094
78095         This file could end up with a definition for a function
78096         named __strndup, rather than rpl_strndup on a system with
78097         incomplete weak_alias support.
78098         * lib/strndup.c (strndup): Rename from __strndup.
78099         Remove #defines that used to map __strndup to strndup.
78100         Don't use K&R prototypes.
78101         Remove LIBC-related code, since this file is not sync'd with glibc.
78102         * lib/strndup.h: Revamp, accordingly.
78103         * m4/strndup.m4: Modernize.
78104
78105 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * modules/savewd (Depends-on): Add 'raise'.
78108         * lib/savewd.c: Include <signal.h>, for 'raise'.
78109
78110 2006-09-26  Jim Meyering  <jim@meyering.net>
78111
78112         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78113         when we detect Darwin 8.7.0's acl_get_file bug.
78114         Rearrange to perform the new (below) run-test while $LIBS
78115         contains any acl-related library.  Set USE_ACL at the end.
78116         (gl_ACL_GET_FILE): New function.
78117
78118 2006-09-26  Eric Blake  <ebb9@byu.net>
78119
78120         * lib/verror.c: Include <config.h> unconditionally.
78121
78122 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * modules/clock-time (Maintainer): Add self.
78125         * modules/getlogin_r (Depends-on): Add extensions.
78126
78127 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78128
78129         * modules/clock-time: New module.
78130         * modules/nanosleep (Depends-on): Add clock-time.
78131         * modules/gethrxtime (Depends-on): Likewise.
78132         * modules/gettime (Depends-on): Likewise.
78133         * modules/settime (Depends-on): Likewise.
78134
78135         * modules/fts-lgpl: Depend on openat.
78136         * modules/mkancesdirs: Depend on savewd.
78137         * modules/mkdir-p: Likewise.
78138
78139 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78140
78141         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78142
78143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78144         `gl_have_arbitrary_file_name_length_limit' to
78145         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78146         actually works between configure runs.
78147
78148 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78149             Bruno Haible  <bruno@clisp.org>
78150
78151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78152
78153 2006-09-25  Jim Meyering  <jim@meyering.net>
78154
78155         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78156         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78157
78158 2006-09-25  Eric Blake  <ebb9@byu.net>
78159
78160         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78161         exec's in 2006-09-18 patch when shuffling fds.
78162
78163 2006-09-25  Bruno Haible  <bruno@clisp.org>
78164
78165         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78166         Reported by Jim Meyering.
78167
78168 2006-09-24  Jim Meyering  <jim@meyering.net>
78169
78170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78171         compare a pointer against a literal "0".  That caused failures with
78172         at least HP-UX's hpcc.
78173
78174 2006-09-22  Simon Josefsson  <jas@extundo.com>
78175
78176         * modules/gc-sha1:
78177         * modules/gc-md4:
78178         * modules/gc-hmac-sha1:
78179         * modules/gc-hmac-md5:
78180         * modules/gc-des:
78181         * modules/gc-arcfour: Distribute more files.
78182
78183 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78184
78185         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78186         (gl_linked_iterator_from_to): Initialize struct completely.
78187         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78188         (gl_tree_iterator_from_to): Likewise
78189         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78190         * lib/gl_array_list.c [lint] (gl_array_iterator)
78191         (gl_array_iterator_from_to): Likewise.
78192         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78193         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78194         (gl_carray_iterator_from_to): Likewise.
78195
78196         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78197         * lib/md4.c (md4_process_block): Remove unused variable.
78198         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78199         parentheses for clarity.
78200
78201 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78202
78203         * modules/bison-i18n (Depends-on): Add gettext.
78204
78205 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78206
78207         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78208         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78209         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78210         also add missing comma that caused broken test.
78211         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78212         stdlib.h, for `abort'.
78213         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78214         variables.
78215         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78216         include unistd.h if present, for `rmdir'.
78217         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78218         variables.
78219         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78220         in the process include standard headers for prototypes.
78221         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78222         gets declared on GNU/Linux.
78223         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78224         unistd.h, for `rmdir'.
78225         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78226
78227         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78228         always true.
78229         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78230
78231         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78232
78233 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78234
78235         * gnulib-tool (func_version): Create output all at once.  This
78236         may help avoid triggering unnecessary SIGPIPEs, and at any
78237         rate it doesn't hurt.
78238
78239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78240             Bruno Haible  <bruno@clisp.org>
78241
78242         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78243         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78244         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78245
78246         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78247         (gl_FUNC_VASPRINTF): Invoke it.
78248
78249 2006-09-22  Bruno Haible  <bruno@clisp.org>
78250
78251         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78252         getloadavg.c as first argument.
78253
78254 2006-09-22  Bruno Haible  <bruno@clisp.org>
78255
78256         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78257         at the beginning of the gl_INIT macro.
78258         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78259         gl_GETLOADAVG.
78260
78261 2006-09-22  Bruno Haible  <bruno@clisp.org>
78262
78263         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78264         module.
78265         Suggested by Ralf Wildenhues.
78266
78267 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         Import this patch from libc:
78270
78271         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78272
78273         * lib/regex_internal.c (re_string_reconstruct): Handle
78274         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78275         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78276         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78277         re_string_context_at.
78278
78279         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78280         now requires it.
78281         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78282         gl_REGEX now does it for us.
78283         (gl_REGEX): Add test taken from
78284         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78285
78286         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78287         Check that large offsets work.  Modernize Autoconf usages.
78288         Prefer "yes" to mean a good thing rather than a bad.
78289         Don't put "#define mkstemp" in config.h, as this might interfere
78290         with standard system headers that "#define mkstemp mkstemp64".
78291
78292         * modules/mkstemp (Depends-on): Add extensions, so that
78293         mkstemp is visible on some platforms.
78294         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78295         (Include): Change to "mkstemp.h" from <stdlib.h>.
78296         (Files): Add mkstemp.h.
78297
78298         * lib/mkstemp.h: New file, since some standard headers
78299         #define mkstemp.
78300         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78301         Include "mkstemp.h".
78302         Make the _LIBC code resemble glibc original more,
78303         e.g., use K&R style.
78304         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78305         (mkstemp): Remove, since mkstemp.h does this for us.
78306         * lib/stdlib--.h: Include mkstemp.h.
78307
78308         Import this patch from libc:
78309
78310         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78311
78312         * lib/tempname.c (__gen_tempname): Change attempts_min
78313         into a macro.  Use preprocessor to decide how to initialize
78314         attempts [Coverity CID 67].
78315
78316 2006-09-20  Bruno Haible  <bruno@clisp.org>
78317
78318         * lib/mkdtemp.c: Import from libc.
78319         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78320                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78321                 attempts_min into a macro.  Use preprocessor to decide how to
78322                 initialize attempts [Coverity CID 67].
78323         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78324                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78325                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78326
78327 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78328
78329         * gnulib-tool (func_exit): New function, to allow to pass the
78330         exit status portably through the trap.  Use everywhere.
78331         (--help, --version): Signal a write error.
78332         (trap): catch SIGPIPE, for write errors.
78333         Exit at the end of the trap, with the correct exit status.
78334
78335 2006-09-19  Karl Berry  <karl@gnu.org>
78336
78337         * doc/gnulib.texi: note about the license texinfo files.
78338
78339 2006-09-19  Eric Blake  <ebb9@byu.net>
78340
78341         * gnulib-tool: Avoid space-tab.
78342
78343 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78346         that prevented coreutils 6.1 from building.  Problem reported
78347         by Petter Reinholdtsen.
78348
78349 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * gnulib-tool (avoidlist): Fix typo that broke options like
78352         --avoid=lock that are used by coreutils bootstrap.
78353
78354 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78355
78356         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78357         more systematically.
78358
78359 2006-09-18  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78362
78363 2006-09-18  Bruno Haible  <bruno@clisp.org>
78364
78365         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78366
78367 2006-09-18  Bruno Haible  <bruno@clisp.org>
78368
78369         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78370         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78371         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78372         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78373         * m4/gettext.m4: Require autoconf >= 2.52.
78374         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78375         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78376         of gl_cv_header_inttypes_h.
78377
78378 2006-09-18  Bruno Haible  <bruno@clisp.org>
78379
78380         * lib/javaversion.c: Include configmake.h.
78381
78382 2006-09-18  Bruno Haible  <bruno@clisp.org>
78383
78384         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78385         avoid that the while loops be executed in a subshell.
78386
78387 2006-09-18  Bruno Haible  <bruno@clisp.org>
78388
78389         * MODULES.html.sh (func_module): Break long lines.
78390         Suggested by Bruce Korb <bkorb@gnu.org>.
78391
78392 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78393
78394         Speed up by a factor of 1.12.
78395         * gnulib-tool (nl): New variable.
78396         (func_import): Rewrite include directive extraction to only read each
78397         directive once.
78398
78399 2006-09-17  Bruno Haible  <bruno@clisp.org>
78400
78401         * modules/javaversion (Makefile.am): Remove DEFS setting.
78402         (Depends-on): Add configmake, for PKGDATADIR definition.
78403
78404 2006-09-17  Bruno Haible  <bruno@clisp.org>
78405
78406         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78407
78408 2006-09-17  Bruno Haible  <bruno@clisp.org>
78409
78410         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78411         (func_modules_transitive_closure, func_modules_add_dummy,
78412         func_modules_to_filelist, func_import, func_create_testdir,
78413         func_create_megatestdir, ...): Use it wherever possible.
78414         Suggested by Ralf Wildenhues.
78415
78416 2006-09-16  Karl Berry  <karl@gnu.org>
78417
78418         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78419         to avoid sectioning errors.
78420         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78421         [ifinfo]: blank line after @center-ed titles.
78422         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78423         Spell FSF address consistently with others.
78424         (These changes approved by rms.)
78425
78426 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78427
78428         Speed up by a factor of 1.61.
78429         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78430         already checked module names again.
78431
78432 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78433
78434         Speed up by a factor of 1.13.
78435         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78436         for new_files, and the input to func_add_or_update.
78437
78438 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78439
78440         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78441         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78442
78443 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * modules/mkancesdirs (Depends-on): Add fcntl.
78446         * modules/savewd: New file.
78447         * MODULES.html.sh (File system functions): Add savewd.
78448
78449         * modules/configmake (Makefile.am): Add support for the
78450         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78451
78452 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * m4/savewd.m4: New file.
78455
78456 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78459         (dirchownmod): New arg FD.  All callers changed.
78460         Use FD rather than opening the directory ourself, as opening is
78461         now the caller's responsibility.
78462         * lib/dirchownmod.h: Likewise.
78463         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78464         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78465         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78466         (test_dir): Remove.
78467         (mkancesdirs): Return length of prefix of FILE that has already
78468         been made, or -2 if there is a child doing the work.  Redo
78469         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78470         ".", and treat ".." specially since it might stray back into
78471         already-created areas.  Use a subprocess if necessary.  New arg
78472         WD; all users changed.  MAKE_DIR function should now return 1
78473         if it creates a directory that is not readable.  Return -2 if
78474         a child process is spun off.
78475         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78476         Adjust signature to match code.
78477         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78478         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78479         all users changed.
78480         * lib/savewd.c, lib/savewd.h: New files.
78481
78482 2006-09-15  Jim Meyering  <jim@meyering.net>
78483
78484         * modules/rename-dest-slash: New module.
78485         * MODULES.html.sh (posix_compat): Add it here.
78486
78487         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78488
78489 2006-09-15  Jim Meyering  <jim@meyering.net>
78490
78491         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78492         file.
78493
78494         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78495
78496 2006-09-15  Jim Meyering  <jim@meyering.net>
78497
78498         * lib/rename-dest-slash.c (has_trailing_slash): Use
78499         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78500         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78501         test before testing whether SRC is a directory.
78502         Suggestions from Bruno Haible.
78503
78504         Avoid a warning about an unused variable.
78505         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78506         into the #ifdef block where it's used.
78507
78508         * lib/rename-dest-slash.c: New file.
78509
78510 2006-09-14  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/allocsa.c: Include <config.h> unconditionally.
78513         * lib/asnprintf.c: Likewise.
78514         * lib/asprintf.c: Likewise.
78515         * lib/c-strcasecmp.c: Likewise.
78516         * lib/c-strcasestr.c: Likewise.
78517         * lib/c-strncasecmp.c: Likewise.
78518         * lib/c-strstr.c: Likewise.
78519         * lib/classpath.c: Likewise.
78520         * lib/clean-temp.c: Likewise.
78521         * lib/concatpath.c: Likewise.
78522         * lib/copy-file.c: Likewise.
78523         * lib/csharpcomp.c: Likewise.
78524         * lib/csharpexec.c: Likewise.
78525         * lib/execute.c: Likewise.
78526         * lib/fatal-signal.c: Likewise.
78527         * lib/findprog.c: Likewise.
78528         * lib/fwriteerror.c: Likewise.
78529         * lib/gl_array_list.c: Likewise.
78530         * lib/gl_array_oset.c: Likewise.
78531         * lib/gl_avltree_list.c: Likewise.
78532         * lib/gl_avltree_oset.c: Likewise.
78533         * lib/gl_avltreehash_list.c: Likewise.
78534         * lib/gl_carray_list.c: Likewise.
78535         * lib/gl_linked_list.c: Likewise.
78536         * lib/gl_linkedhash_list.c: Likewise.
78537         * lib/gl_list.c: Likewise.
78538         * lib/gl_oset.c: Likewise.
78539         * lib/gl_rbtree_list.c: Likewise.
78540         * lib/gl_rbtree_oset.c: Likewise.
78541         * lib/gl_rbtreehash_list.c: Likewise.
78542         * lib/imaxabs.c: Likewise.
78543         * lib/imaxdiv.c: Likewise.
78544         * lib/javacomp.c: Likewise.
78545         * lib/javaexec.c: Likewise.
78546         * lib/javaversion.c: Likewise.
78547         * lib/linebreak.c: Likewise.
78548         * lib/localcharset.c: Likewise.
78549         * lib/lock.c: Likewise.
78550         * lib/mbchar.c: Likewise.
78551         * lib/mbswidth.c: Likewise.
78552         * lib/mkdtemp.c: Likewise.
78553         * lib/pipe.c: Likewise.
78554         * lib/printf-args.c: Likewise.
78555         * lib/printf-parse.c: Likewise.
78556         * lib/progname.c: Likewise.
78557         * lib/progreloc.c: Likewise.
78558         * lib/readlink.c: Likewise.
78559         * lib/sh-quote.c: Likewise.
78560         * lib/stpcpy.c: Likewise.
78561         * lib/stpncpy.c: Likewise.
78562         * lib/strcasecmp.c: Likewise.
78563         * lib/strcasestr.c: Likewise.
78564         * lib/strcspn.c: Likewise.
78565         * lib/striconv.c: Likewise.
78566         * lib/strncasecmp.c: Likewise.
78567         * lib/strnlen1.c: Likewise.
78568         * lib/strstr.c: Likewise.
78569         * lib/strtok_r.c: Likewise.
78570         * lib/tls.c: Likewise.
78571         * lib/tmpdir.c: Likewise.
78572         * lib/unicodeio.c: Likewise.
78573         * lib/unsetenv.c: Likewise.
78574         * lib/vasnprintf.c: Likewise.
78575         * lib/vasprintf.c: Likewise.
78576         * lib/wait-process.c: Likewise.
78577         * lib/xallocsa.c: Likewise.
78578         * lib/xsetenv.c: Likewise.
78579         * lib/xstriconv.c: Likewise.
78580
78581 2006-09-13  Simon Josefsson  <jas@extundo.com>
78582
78583         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78584         that internally, suggested by Ralf Wildenhues
78585         <Ralf.Wildenhues@gmx.de>.
78586
78587 2006-09-13  Simon Josefsson  <jas@extundo.com>
78588
78589         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78590         @LIBOBJS@.
78591         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78592
78593 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78596         longer worry about uses that don't define HAVE_CONFIG_H.
78597         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78598         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78599         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78600         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78601         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78602         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78603         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78604         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78605         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78606         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78607         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78608         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78609         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78610         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78611         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78612         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78613         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78614         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78615         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78616         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78617         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78618         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78619         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78620         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78621         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78622         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78623         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78624         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78625         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78626         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78627         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78628         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78629         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78630         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78631         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78632         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78633         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78634         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78635         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78636         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78637         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78638         Likewise.
78639
78640 2006-09-13  Eric Blake  <ebb9@byu.net>
78641
78642         * lib/getopt.c: Fix typo in last commit.
78643
78644 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78645
78646         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78647         dgettext.
78648
78649 2006-09-12  Jim Meyering  <jim@meyering.net>
78650
78651         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78652         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78653         Reported by Nelson H. F. Beebe.
78654
78655 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78656
78657         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78658         program_invocation_name and program_invocation_short_name are
78659         initialized.
78660         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78661         and program_invocation_short_name to argp.h, so they are visible
78662         to user programs.
78663         * lib/argp.h: Likewise
78664
78665 2006-09-10  Bruno Haible  <bruno@clisp.org>
78666
78667         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78668         m4/inttypes_h.m4, m4/uintmax_t.m4.
78669
78670 2006-09-10  Bruno Haible  <bruno@clisp.org>
78671
78672         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78673         gl_AC_TYPE_UINTMAX_T.
78674
78675 2006-09-10  Bruno Haible  <bruno@clisp.org>
78676
78677         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78678
78679 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78680
78681         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78682         convention.  Text proposed by Bruno Haible.
78683         (struct argp_option): Document the use of N_() wrappers.
78684
78685         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78686         '\v', and translate the two parts separately, instead of feeding
78687         the whole string to gettext.  This allows to exclude
78688         '\v' from the strings visible to the translator by writing doc
78689         strings as N_("..") "\v" N_("..").
78690
78691 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * config/srclist.txt: Undo latest change; the bug was fixed.
78694
78695 2006-09-09  Bruno Haible  <bruno@clisp.org>
78696
78697         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78698         assignments if building a library without libtool.
78699         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78700         in func_emit_lib_Makefile_am.
78701         (func_import): When building a static library libfoo.a, arrange to
78702         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78703         (func_create_testdir): Likewise.
78704         * modules/gc (configure.ac, Makefile.am): If building statically,
78705         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78706         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78707         * modules/striconv (configure.ac, Makefile.am): Likewise.
78708         Based on a suggestion by Ralf Wildenhues.
78709
78710 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78713         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78714         Also:
78715
78716         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78717         Add year_2050_test to catch glibc bug 2821
78718         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78719
78720         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78721         Prefer #ifdef to #if.
78722
78723         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78724         Return from 'main' instead of calling 'exit'.
78725
78726 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78729         returned the maximum time_t value rather than (time_t) -1.
78730         Problem originally reported by William Bardwell
78731         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78732
78733         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78734         Moved to here ...
78735         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78736         ... from here.
78737
78738 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78741         2821 is fixed.
78742
78743 2006-09-08  Jim Meyering  <jim@meyering.net>
78744
78745         Don't make generated files read-only.  That would bother too many
78746         people.  However, do retain the ability to work when targets are
78747         read-only: remove the destination and temporary files before writing
78748         them (when generated via sed or echo), or by using the -f option for
78749         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78750         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78751         * modules/byteswap, modules/configmake, modules/fcntl:
78752         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78753         * modules/localcharset, modules/netinet_in, modules/poll:
78754         * modules/stdbool, modules/stdint, modules/sys_select:
78755         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78756
78757 2006-09-08  Jim Meyering  <jim@meyering.net>
78758
78759         Avoid new build failure on FreeBSD 6.0.
78760         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78761         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78762         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78763
78764 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78765
78766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78767
78768 2006-09-07  Jim Meyering  <jim@meyering.net>
78769
78770         Fix global typo in last change: use chmod u-w, not chmod u-x.
78771         Spotted by Paul Eggert and Bruce Korb.
78772         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78773         * modules/byteswap, modules/configmake, modules/fcntl:
78774         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78775         * modules/localcharset, modules/netinet_in, modules/poll:
78776         * modules/stdbool, modules/stdint, modules/sys_select:
78777         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78778
78779 2006-09-06  Jim Meyering  <jim@meyering.net>
78780
78781         Make generated files be read-only.
78782         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78783         Ensure that each generated file is now read-only.
78784         * modules/argz: Likewise.
78785         * modules/arpa_inet: Likewise.
78786         * modules/byteswap: Likewise.
78787         * modules/configmake: Likewise.
78788         * modules/fcntl: Likewise.
78789         * modules/fnmatch: Likewise.
78790         * modules/getopt: Likewise.
78791         * modules/glob: Likewise.
78792         * modules/inttypes: Likewise.
78793         * modules/netinet_in: Likewise.
78794         * modules/poll: Likewise.
78795         * modules/stdbool: Likewise.
78796         * modules/stdint: Likewise.
78797         * modules/sys_select: Likewise.
78798         * modules/sys_socket: Likewise.
78799         * modules/sys_stat: Likewise.
78800         * modules/sysexits: Likewise.
78801         * modules/localcharset: Same as above, but continue using temporary
78802         file named "t-$@" (why different?) rather than the "$@-t" used
78803         everywhere else.
78804
78805         * modules/sysexits (Makefile.am): Replace literal occurrences
78806         of "sysexit.h" more readable, and more consistent, "$@".
78807
78808 2006-09-06  Bruno Haible  <bruno@clisp.org>
78809
78810         * modules/striconv: New file.
78811         * modules/xstriconv: New file.
78812         * MODULES.html.sh (Internationalization functions): Add striconv,
78813         xstriconv.
78814
78815 2006-09-06  Bruno Haible  <bruno@clisp.org>
78816
78817         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78818         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78819         not using libtool correctly.
78820
78821 2006-09-06  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/striconv.h: New file.
78824         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78825         iconvstring.c.
78826         * lib/xstriconv.h: New file.
78827         * lib/xstriconv.c: New file.
78828
78829 2006-09-06  Bruno Haible  <bruno@clisp.org>
78830
78831         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78832         lib_..._LDFLAGS.
78833
78834 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78835
78836         * lib/argz_.h: Sync from Libtool.
78837
78838         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78839                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78840
78841         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78842
78843 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78844
78845         * modules/trim: New file.
78846
78847 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78848
78849         * lib/trim.h: New file.
78850         * lib/trim.c: New file.
78851
78852 2006-09-05  Bruno Haible  <bruno@clisp.org>
78853
78854         * MODULES.html.sh (String handling): Add trim.
78855
78856 2006-09-04  Karl Berry  <karl@gnu.org>
78857
78858         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78859         until next release.
78860
78861 2006-09-03  Bruno Haible  <bruno@clisp.org>
78862
78863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78864         correctly.
78865
78866 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78869         not gl_GETLOADAVG.  Omit unneeded semicolons.
78870         Problems reported by Ralf Wildenhues in
78871         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78872         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78873         at the end, which is the usual gnulib style.
78874
78875         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78876         of doing all the work ourselves.
78877         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78878         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78879
78880 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78883         Problem reported by Ralf Wildenhues in
78884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78885
78886         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78887         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78888
78889 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78892         yesterday's patch by changing test -n to test -z.
78893
78894 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78897         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78898         the former is now obsolescent.
78899
78900         * modules/chdir-long (Depends-on): Add fcntl.
78901
78902 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78905         obsolescent, and programs should use gnulib instead.
78906         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78907         but with prefixes changed.
78908
78909 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78912         or stdbool.h, because they might not exist while configuring.
78913
78914         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78915         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78916         does that for us.
78917         (O_DIRECTORY): Remove.
78918
78919 2006-08-31  Eric Blake  <ebb9@byu.net>
78920
78921         * gnulib-tool: Don't let emacs change spaces to TAB.
78922
78923 2006-08-31  Bruno Haible  <bruno@clisp.org>
78924
78925         * gnulib-tool: When calling func_import more than once, do it in a
78926         subshell.
78927         Reported by Eric Blake <ebb9@byu.net>.
78928
78929 2006-08-31  Bruno Haible  <bruno@clisp.org>
78930
78931         * gnulib-tool (nl): Remove variable.
78932         (sed_transform_lib_file): Use more robust test for config-h module.
78933         (func_import): Fix typo in 2006-08-25 patch.
78934
78935 2006-08-31  Bruno Haible  <bruno@clisp.org>
78936
78937         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78938         specified, augment Makefile.am variables instead of assigning them.
78939
78940 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         Work around a bug in both the Linux and SunOS 64-bit kernels:
78943         nanosleep mishandles sleeps for longer than 2**31 seconds.
78944         Problem reported by Frank v Waveren in
78945         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78947         Check for nanosleep bug.
78948         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78949
78950 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78951
78952         Work around a bug in both the Linux and SunOS 64-bit kernels:
78953         nanosleep mishandles sleeps for longer than 2**31 seconds.
78954         Problem reported by Frank v Waveren in
78955         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78956         * lib/nanosleep.c (BILLION): New constant.
78957         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78958         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78959         implementation.
78960
78961 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         * modules/nanosleep (Depends-on): Add gettime.
78964
78965 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78966         and Simon Josefsson  <jas@extundo.com>
78967         and Oskar Liljeblad  <oskar@osk.mine.nu>
78968
78969         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78970         * gnulib-tool (func_import): New license type 'unmodifiable license
78971         text'.
78972         * modules/fdl: Use it.  Longer description.
78973         * module/gpl, module/lgpl: New files.
78974
78975 2006-08-30  Jim Meyering  <jim@meyering.net>
78976
78977         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78978         shadowing the parameter.
78979
78980 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78981
78982         Sync from Libtool:
78983
78984         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78985
78986         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78987         sharing with gnulib.  Report by Eric Blake.
78988
78989 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * modules/isapipe: New file.
78992         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78993
78994 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * modules/configmake (Makefile.am): Add a comment, and omit
78997         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78998         by Bruno Haible.
78999
79000 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * m4/isapipe.m4: New file.
79003
79004 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * lib/isapipe.c, lib/isapipe.h: New files.
79007
79008 2006-08-29  Jim Meyering  <jim@meyering.net>
79009
79010         * modules/configmake (Makefile.am): Make configmake.h depend on
79011         Makefile.  Otherwise, a stale configmake.h could hang around.
79012
79013 2006-08-29  Eric Blake  <ebb9@byu.net>
79014
79015         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79016         resolution of upstream bug 3044.
79017
79018 2006-08-29  Bruno Haible  <bruno@clisp.org>
79019
79020         * modules/localcharset (Depends-on): Add configmake.
79021         (Makefile.am): Remove setting of LIBDIR through DEFS.
79022
79023 2006-08-29  Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79026         defined.
79027
79028 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79029
79030         * modules/fcntl: New file.
79031         * modules/chdir-safer (Depends-on): Add fcntl.
79032         * modules/fts: Likewise.
79033         * modules/mkdir-p: Likewise.
79034
79035         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79036         This undoes the most recent change, since we're now addressing the
79037         problem in a different way.
79038
79039         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79040         into output, since the output might be called Makefile.am even
79041         if $makefile_name is something different.
79042         (func_import): Use $makefile_am rather than
79043         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79044         empty.
79045
79046         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79047
79048 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79051         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79052         recent change to stdint.m4, since we're now addressing the problem in a
79053         different way.
79054
79055 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79056
79057         * m4/fcntl_h.m4: New file.
79058
79059 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * lib/fcntl_.h: New file.
79062         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79063         the fcntl module.
79064         * lib/dirchownmod.c: Likewise.
79065         * lib/fts.c: Likewise.
79066
79067         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79068         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79069         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79070         just before including <inttypes.h>, to avoid circular inclusion.
79071
79072 2006-08-28  Jim Meyering  <jim@meyering.net>
79073
79074         * doc/visibility.texi: Actually read and correct the grammar of the
79075         sentence affected by yesterday's change.
79076
79077 2006-08-28  Eric Blake  <ebb9@byu.net>
79078
79079         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79080         needs wrapper.
79081
79082 2006-08-28  Eric Blake  <ebb9@byu.net>
79083
79084         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79085
79086 2006-08-28  Eric Blake  <ebb9@byu.net>
79087
79088         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79089
79090 2006-08-28  Bruno Haible  <bruno@clisp.org>
79091
79092         * modules/c-strstr: New file, from GNU gettext.
79093         * MODULES.html.sh (String handling): Add c-strstr.
79094
79095 2006-08-28  Bruno Haible  <bruno@clisp.org>
79096
79097         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79098         macros.
79099         Reported by Eric Blake.
79100
79101 2006-08-28  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79104         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79105         * lib/vasprintf.c: Include errno.h, limits.h.
79106         (EOVERFLOW): New fallback definition.
79107         (vasprintf): Test here whether the string length is > INT_MAX.
79108         * lib/vsnprintf.c: Include errno.h, limits.h.
79109         (EOVERFLOW): New fallback definition.
79110         (vsnprintf): Fix bug when generated string was too long for the buffer.
79111         Test here whether the string length is > INT_MAX.
79112
79113 2006-08-28  Bruno Haible  <bruno@clisp.org>
79114
79115         * lib/inttypes_.h (SCNX*): Remove definitions.
79116         Reported by Eric Blake.
79117
79118 2006-08-28  Bruno Haible  <bruno@clisp.org>
79119
79120         * lib/c-strstr.h: New file, from GNU gettext.
79121         * lib/c-strstr.c: New file, from GNU gettext.
79122
79123 2006-08-28  Bruno Haible  <bruno@clisp.org>
79124
79125         * gnulib-tool: Reorder some statements.
79126
79127 2006-08-28  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool: New option --makefile-name.
79130         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79131         $makefile_name.
79132         (func_import): Write $makefile_name to the cache file, and read it from
79133         there unless explicitly specified. Use $makefile_name as file name
79134         instead of Makefile.am. Adjust the recommendations accordingly.
79135
79136 2006-08-28  Bruno Haible  <bruno@clisp.org>
79137
79138         * gnulib-tool (func_verify_module): Check against misapplying patch.
79139
79140 2006-08-28  Bruno Haible  <bruno@clisp.org>
79141
79142         * gnulib-tool (func_relativize, func_relconcat): New functions.
79143         Give an error if --local-dir is given with --update.
79144         Remove trailing slashes from $local_gnulib_dir.
79145         (func_import): Store the relativized $local_gnulib_dir in
79146         gnulib-cache.m4, and read it from there if not specified explicitly.
79147
79148 2006-08-28  Bruno Haible  <bruno@clisp.org>
79149
79150         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79151         is the current directory. Respect also $local_gnulib_dir.
79152
79153 2006-08-28  Bruno Haible  <bruno@clisp.org>
79154             Simon Josefsson  <jas@extundo.com>
79155
79156         BeOS portability.
79157         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79158
79159 2006-08-27  Jim Meyering  <jim@meyering.net>
79160
79161         * doc/visibility.texi: Remove duplicate word: "pointer".
79162
79163 2006-08-26  Bruno Haible  <bruno@clisp.org>
79164
79165         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79166         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79167         (Makefile.am): Create inttypes.h from inttypes_.h.
79168         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79169
79170         * modules/imaxabs: New file.
79171
79172         * modules/imaxdiv: New file.
79173
79174 2006-08-26  Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/inttypes.m4: New file.
79177         * m4/_inttypes_h.m4: Remove file.
79178         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79179         PRI_MACROS_BROKEN.
79180         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79181
79182         * m4/imaxabs.m4: New file.
79183
79184         * m4/imaxdiv.m4: New file.
79185
79186 2006-08-26  Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/inttypes_.h: New file.
79189         * lib/inttypes.h: Remove file.
79190         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79191
79192         * lib/imaxabs.c: New file.
79193
79194         * lib/imaxdiv.c: New file.
79195
79196 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79197
79198         New config-h module, so that "make" output needn't be cluttered
79199         by -DHAVE_CONFIG_H.
79200         * MODULES.html.sh (Support for building libraries and executables):
79201         Add config-h.
79202         * modules/config-h: New file.
79203         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79204         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79205         the config-h module is used.
79206
79207         New configmake module, so that "make" output needn't be cluttered
79208         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79209         * MODULES.html.sh (Support for building libraries and executables):
79210         Add configmake.
79211         * modules/configmake: New file.
79212
79213 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * m4/config-h.m4: New file.
79216
79217 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * config/srclist.txt: Add elisp-comp.
79220
79221 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * MODULES.html.sh (Support for building libraries and executables):
79224         Add elisp-comp.
79225         * build-aux/elisp-comp: New file.
79226         * modules/elisp-comp: New file.
79227
79228 2006-08-24  Bruno Haible  <bruno@clisp.org>
79229
79230         * gnulib-tool (func_create_testdir): Use non-default values of
79231         sourcebase and m4base.
79232
79233 2006-08-24  Bruno Haible  <bruno@clisp.org>
79234
79235         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79236         HTML structure.
79237
79238 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * modules/openat (Depends-on): Add lchown.
79241
79242 2006-08-23  Bruno Haible  <bruno@clisp.org>
79243
79244         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79245         of gl_LOCK_EARLY instead of gl_LOCK.
79246
79247 2006-08-23  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79250         on OSF/1 to no.
79251         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79252
79253 2006-08-23  Bruno Haible  <bruno@clisp.org>
79254
79255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79256         as unusable.
79257
79258         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79259         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79260         (gl_LOCK): New macro.
79261
79262 2006-08-22  Simon Josefsson  <jas@extundo.com>
79263
79264         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79265         to md5 module.
79266
79267 2006-08-22  Simon Josefsson  <jas@extundo.com>
79268
79269         * MODULES.html.sh: Add "Support for maintaining and release
79270         projects".
79271
79272         * build-aux/gnupload: New file, from coreutils.
79273
79274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         Avoid the need for AC_LIBSOURCES in m4 macros.
79277         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79278         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79279         * modules/check-version (EXTRA_DIST): Add check-version.h.
79280         * modules/crc (EXTRA_DIST): Add crc.h.
79281         * modules/des (EXTRA_DIST): Add des.h.
79282         * modules/gc (EXTRA_DIST): Add gc.h.
79283         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79284         * modules/getline (EXTRA_DIST): Add getline.h.
79285         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79286         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79287         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79288         * modules/md2 (EXTRA_DIST): Add md2.h.
79289         * modules/md4 (EXTRA_DIST): Add md4.h.
79290         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79291         * modules/read-file (EXTRA_DIST): Add read-file.h.
79292         * modules/readline (EXTRA_DIST): Add readline.h.
79293         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79294         rijndael-api-fst.h.
79295
79296 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * m4/rijndael.m4 (gl_ARCFOUR):
79299         * m4/arctwo.m4 (gl_ARCTWO):
79300         * m4/check-version.m4 (gl_CHECK_VERSION):
79301         * m4/crc.m4 (gl_CRC):
79302         * m4/des.m4 (gl_DES):
79303         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79304         * m4/gc.m4 (gl_GC):
79305         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79306         * m4/getline.m4 (gl_FUNC_GETLINE):
79307         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79308         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79309         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79310         * m4/md2.m4 (gl_MD2):
79311         * m4/md4.m4 (gl_MD4):
79312         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79313         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79314         * m4/readline.m4 (gl_FUNC_READLINE):
79315         * m4/rijndael.m4 (gl_RIJNDAEL):
79316         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79317         to get the necessary .h files and whatnot.
79318
79319 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79322         gnulib rather than the other way around.
79323         * config/srclistvars.sh (COREUTILS): Remove.
79324
79325 2006-08-22  Jim Meyering  <jim@meyering.net>
79326
79327         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79328
79329         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79330
79331 2006-08-22  Eric Blake  <ebb9@byu.net>
79332
79333         * modules/regexprops-generic: New file.
79334         * MODULES.html.sh (Support for building documentation): List it.
79335
79336 2006-08-22  Eric Blake  <ebb9@byu.net>
79337
79338         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79339         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79340         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79341         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79342
79343 2006-08-22  Bruno Haible  <bruno@clisp.org>
79344
79345         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79346         and lib_LTLIBRARIES like the other lib_* variables.
79347
79348 2006-08-22  Bruno Haible  <bruno@clisp.org>
79349
79350         * build-aux/x-to-1.in: New file, from GNU gettext.
79351
79352 2006-08-22  Bruno Haible  <bruno@clisp.org>
79353
79354         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79355         <utmpx.h> exists.
79356
79357 2006-08-22  Bruno Haible  <bruno@clisp.org>
79358
79359         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79360         <utmpx.h> exists.
79361
79362 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         BeOS portability.
79365         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79366         exist.
79367         Problem reported by Bruno Haible.
79368
79369 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         Avoid the need for AC_LIBSOURCES in m4 macros.
79372         * modules/acl (EXTRA_DIST): Add acl.h.
79373         * modules/argmatch (Files): Add m4/argmatch.m4.
79374         (configure.ac): Add gl_ARGMATCH.
79375         (EXTRA_DIST): Renamed from lib_SOURCES, for
79376         consistency with the other modules.  Remove argmatch.c.
79377         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79378         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79379         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79380         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79381         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79382         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79383         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79384         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79385         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79386         * modules/closeout (EXTRA_DIST): Add closeout.h.
79387         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79388         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79389         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79390         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79391         dirname.h; remove basename.c and stripslash.c.
79392         * modules/exclude (EXTRA_DIST): Add exclude.h.
79393         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79394         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79395         * modules/file-type (EXTRA_DIST): Add file-type.h.
79396         * modules/filemode (EXTRA_DIST): Add filemode.h.
79397         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79398         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79399         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79400         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79401         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79402         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79403         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79404         * modules/getdate (EXTRA_DIST): Add getdate.c.
79405         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79406         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79407         * modules/getpass (EXTRA_DIST): Add getpass.h.
79408         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79409         * modules/group-member (EXTRA_DIST): Add group-member.h.
79410         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79411         * modules/hash (EXTRA_DIST): Add hash.h.
79412         * modules/human (EXTRA_DIST): Add human.h.
79413         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79414         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79415         * modules/lchown (EXTRA_DIST): Add lchown.h.
79416         * modules/long-options (EXTRA_DIST): Add long-options.h.
79417         * modules/lstat (EXTRA_DIST): Add lstat.h.
79418         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79419         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79420         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79421         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79422         * modules/memxor (EXTRA_DIST): Add memxor.h.
79423         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79424         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79425         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79426         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79427         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79428         * modules/physmem (EXTRA_DIST): Add physmem.h.
79429         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79430         * modules/posixver (EXTRA_DIST): Add posixver.h.
79431         * modules/quote (EXTRA_DIST): Add quote.h.
79432         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79433         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79434         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79435         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79436         regex_internal.h regexec.c.
79437         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79438         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79439         * modules/same (EXTRA_DIST): Add same.h.
79440         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79441         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79442         * modules/savedir (EXTRA_DIST): Add savedir.h.
79443         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79444         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79445         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79446         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79447         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79448         * modules/strdup (EXTRA_DIST): Add strdup.h.
79449         * modules/strftime (EXTRA_DIST): Add strftime.h.
79450         * modules/strndup (EXTRA_DIST): Add strndup.h.
79451         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79452         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79453         * modules/time_r (EXTRA_DIST): Add time_r.h.
79454         * modules/timespec (EXTRA_DIST): Add timespec.h.
79455         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79456         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79457         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79458         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79459         * modules/userspec (EXTRA_DIST): Add userspec.h.
79460         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79461         * modules/utimens (EXTRA_DIST): Add utimens.h.
79462         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79463         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79464         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79465         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79466         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79467         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79468         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79469         * modules/yesno (EXTRA_DIST): Add yesno.h.
79470
79471 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79474
79475         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79476         * m4/dev-ino.m4, same-inode.m4: Remove.
79477
79478         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79479         * m4/acl.m4 (AC_FUNC_ACL):
79480         * m4/backupfile.m4 (gl_BACKUPFILE):
79481         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79482         * m4/canon-host.m4 (gl_CANON_HOST):
79483         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79485         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79486         * m4/cloexec.m4 (gl_CLOEXEC):
79487         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79488         * m4/closeout.m4 (gl_CLOSEOUT):
79489         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79490         * m4/dirname.m4 (gl_DIRNAME):
79491         * m4/exclude.m4 (gl_EXCLUDE):
79492         * m4/exitfail.m4 (gl_EXITFAIL):
79493         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79494         * m4/file-type.m4 (gl_FILE_TYPE):
79495         * m4/filemode.m4 (gl_FILEMODE):
79496         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79497         * m4/fpending.m4 (gl_FUNC_FPENDING):
79498         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79499         * m4/fts.m4 (gl_FUNC_FTS):
79500         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79501         * m4/getdate.m4 (gl_GETDATE):
79502         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79503         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79504         * m4/getpass.m4 (gl_FUNC_GETPASS):
79505         * m4/gettime.m4 (gl_GETTIME):
79506         * m4/getugroups.m4 (gl_GETUGROUPS):
79507         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79508         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79509         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79510         * m4/hash.m4 (gl_HASH):
79511         * m4/idcache.m4 (gl_IDCACHE):
79512         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79513         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79514         * m4/long-options.m4 (gl_LONG_OPTIONS):
79515         * m4/lstat.m4 (gl_FUNC_LSTAT):
79516         * m4/md5.m4 (gl_MD5):
79517         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79518         * m4/memcoll.m4 (gl_MEMCOLL):
79519         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79520         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79521         * m4/memxor.m4 (gl_MEMXOR):
79522         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79523         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79524         * m4/modechange.m4 (gl_MODECHANGE):
79525         * m4/mountlist.m4 (gl_MOUNTLIST):
79526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79527         * m4/openat.m4 (gl_FUNC_OPENAT):
79528         * m4/pathmax.m4 (gl_PATHMAX):
79529         * m4/physmem.m4 (gl_PHYSMEM):
79530         * m4/posixtm.m4 (gl_POSIXTM):
79531         * m4/posixver.m4 (gl_POSIXVER):
79532         * m4/quote.m4 (gl_QUOTE):
79533         * m4/quotearg.m4 (gl_QUOTEARG):
79534         * m4/readtokens.m4 (gl_READTOKENS):
79535         * m4/readutmp.m4 (gl_READUTMP):
79536         * m4/regex.m4 (gl_REGEX):
79537         * m4/safe-read.m4 (gl_SAFE_READ):
79538         * m4/safe-write.m4 (gl_SAFE_WRITE):
79539         * m4/same.m4 (gl_SAME):
79540         * m4/save-cwd.m4 (gl_SAVE_CWD):
79541         * m4/savedir.m4 (gl_SAVEDIR):
79542         * m4/settime.m4 (gl_SETTIME):
79543         * m4/sha1.m4 (gl_SHA1):
79544         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79545         * m4/stat-macros.m4 (gl_STAT_MACROS):
79546         * m4/stat-time.m4 (gl_STAT_TIME):
79547         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79548         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79549         * m4/strdup.m4 (gl_FUNC_STRDUP):
79550         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79551         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79552         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79553         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79554         * m4/time_r.m4 (gl_TIME_R):
79555         * m4/timespec.m4 (gl_TIMESPEC):
79556         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79557         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79558         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79559         * m4/userspec.m4 (gl_USERSPEC):
79560         * m4/utimecmp.m4 (gl_UTIMECMP):
79561         * m4/utimens.m4 (gl_UTIMENS):
79562         * m4/xalloc.m4 (gl_XALLOC):
79563         * m4/xgetcwd.m4 (gl_XGETCWD):
79564         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79565         * m4/xreadlink.m4 (gl_XREADLINK):
79566         * m4/xstrtod.m4 (gl_XSTRTOD):
79567         * m4/yesno.m4 (gl_YESNO):
79568         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79569         to get the necessary .h files and whatnot.
79570
79571 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79572             Bruno Haible  <bruno@clisp.org>
79573
79574         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79575         /bin/sh understanding of '!' conditional negation.
79576
79577 2006-08-21  Jim Meyering  <jim@meyering.net>
79578
79579         * modules/openat (Depends-on): Really alphabetize.
79580
79581         * modules/acl (Depends-on): Add error and quote.
79582
79583         * check-module (find_included_lib_files): Add at-func.c to the
79584         ok-to-include-more-than-once white list.
79585
79586         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79587
79588 2006-08-21  Bruno Haible  <bruno@clisp.org>
79589
79590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79591         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79592         Reported by Martin Lambers <marlam@marlam.de>.
79593
79594 2006-08-21  Bruno Haible  <bruno@clisp.org>
79595
79596         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79597         specify an installation location, don't emit a noinst_LIBRARIES or
79598         noinst_LTLIBRARIES assignment.
79599
79600 2006-08-21  Bruno Haible  <bruno@clisp.org>
79601
79602         BeOS portability.
79603         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79604         BeOS has mbrtowc() but no <wctype.h>.
79605
79606 2006-08-21  Bruno Haible  <bruno@clisp.org>
79607
79608         BeOS portability.
79609         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79610         exist.
79611
79612 2006-08-21  Bruno Haible  <bruno@clisp.org>
79613
79614         BeOS portability.
79615         * lib/mbchar.h: Include <wctype.h> only if it exists.
79616
79617 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         Remove files that are no longer needed by their respective modules.
79620         * m4/obstack.m4: Remove.
79621         * m4/strerror_r.m4: Remove.
79622         * m4/uint32_t.m4: Remove.
79623         * m4/uintptr_t.m4: Remove.
79624         * m4/ullong_max.m4: Remove.
79625         * m4/xstrtoimax.m4: Remove.
79626         * m4/xstrtoumax.m4: Remove.
79627
79628         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79629         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79630         dependencies now capture this.
79631
79632         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79633         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79634         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79635         * m4/human.m4 (gl_HUMAN): Likewise.
79636         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79637         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79638
79639         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79640
79641         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79642         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79643         stdint.
79644         * m4/human.m4 (gl_HUMAN): Likewise.
79645         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79646         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79647         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79648         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79649         * m4/xstrtol (gl_XSTRTOL): Likewise.
79650
79651         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79652         AC_TYPE_LONG_LONG_INT.
79653         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79654         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79655         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79656         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79657
79658         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79659         on stdbool.
79660
79661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79662         (gl_PREREQ_XSTRTOUL): Remove.
79663
79664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79665
79666         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79667         mode.
79668
79669 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79670
79671         Add and change modules to make it easier for coreutils to use
79672         gnulib-tool.
79673         * modules/backupfile (Files): Remove m4/d-ino.m4.
79674         (Depends-on): Add d-ino.
79675         * modules/cycle-check (Depends-on): Add stdint.
79676         (lib_SOURCES): Add cycle-check.h.
79677         * modules/d-ino: New module.
79678         * modules/d-type: New module.
79679         * modules/error (Files): Remove m4/strerror_r.m4.
79680         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79681         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79682         m4/inttypes_h.m4, m4/uintmax_t.m4.
79683         (Depends-on): Add stdint.
79684         (lib_SOURCES): Add fsusage.h.
79685         * modules/getcwd (Files): Remove d-ino.m4.
79686         (Depends-on): Add d-ino.
79687         * modules/getndelim2 (Depends-on): Add stdint.
79688         * modules/glob (Files): Remove m4/d-type.m4.
79689         (Depends-on): Add d-type.
79690         * modules/host-os: New module.
79691         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79692         m4/inttypes_h.m4, m4/uintmax_t.m4.
79693         * Depends-on: Add stdint.
79694         (lib_SOURCES): Add human.h.
79695         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79696         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79697         m4/uintmax_t.m4, m4/ulonglong.m4.
79698         (Depends-on): Add stdint.
79699         (EXTRA_DIST): Add inttostr.h.
79700         * modules/lchmod: New module.
79701         * modules/link-follow: New module.
79702         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79703         (Depends-on): Add lchmod.
79704         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79705         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79706         (Depends-on): Add stdint.
79707         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79708         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79709         (Depends-on): Add stdint.
79710         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79711         * modules/perl: New module.
79712         * modules/regex (Depends-on): Add stdint.
79713         * modules/rmdir-errno: New module.
79714         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79715         m4/intmax_t.m4.
79716         (Depends-on): Add stdint.
79717         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79718         m4/uintmax_t.m4.
79719         (Depends-on): Add stdint.
79720         * modules/unlink-busy: New module.
79721         * modules/utimecmp (Depends-on): Add stdint.
79722         * modules/uptime: New module.
79723         * modules/winsz-ioctl: New module.
79724         * modules/winsz-termios: New module.
79725         * modules/xnanosleep (Depends-on): Add nanosleep.
79726         * modules/ullong_max: Remove.
79727         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79728         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79729         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79730         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79731         (Depends-on): Add inttypes.
79732         (lib_SOURCES): Add xstrtol.h.
79733         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79734         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79735         * MODULES.html.sh: Move 'assert' into the assert section.
79736         Move 'dummy' into the linking section.
79737         Remove ullong_max.
79738         Add section for compatibility checks for POSIX:2001 functions,
79739         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79740         winsz-ioctl, and winsz-termios into it.
79741         Add lchmod.
79742         Add top-level Misc section and put host-os, perl, and uptime
79743         into it.
79744
79745 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79748         now assume the stdint module.  Do not include inttypes.h.
79749         * lib/fsusage.h: Likewise.
79750         * lib/getndelim2.c: Likewise.
79751         * lib/human.h: Likewise.
79752         * lib/inttostr.h: Likewise.
79753         * lib/obstack.c: Likewise.
79754         * lib/regex_internal.h: Likewise.
79755         * lib/tempname.c: Likewise.
79756         * lib/utimecmp.c: Likewise.
79757         * lib/xstrtol.h: Likewise.
79758
79759         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79760
79761         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79762         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79763         * lib/xtime.h: Likewise.
79764
79765 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * modules/openat (Files): Add lib/fchmodat.c.
79768         Fixes problem reported by Jay Youngman.
79769
79770 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79771
79772         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79773         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79774
79775 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79776             Bruno Haible  <bruno@clisp.org>
79777
79778         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79779         and is a script that invokes bison. Tighten the code. Add comments.
79780
79781 2006-08-18  Jim Meyering  <jim@meyering.net>
79782
79783         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79784         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79785         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79786         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79787
79788 2006-08-18  Bruno Haible  <bruno@clisp.org>
79789
79790         * modules/bison-i18n: New file.
79791         * MODULES.html.sh (Internationalization functions): Add it.
79792
79793 2006-08-18  Bruno Haible  <bruno@clisp.org>
79794
79795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79796         sys/statvfs.h. When getmntinfo was found, check its declaration and
79797         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79798
79799 2006-08-18  Bruno Haible  <bruno@clisp.org>
79800
79801         * m4/bison-i18n.m4: New file, from bison.
79802
79803 2006-08-18  Bruno Haible  <bruno@clisp.org>
79804
79805         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79806         (ME_DUMMY): Treat "kernfs" as a dummy.
79807         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79808
79809 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79810
79811         Update from coreutils.
79812
79813         2006-08-15  Jim Meyering  <jim@meyering.net>
79814
79815         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79816
79817         2006-01-17  Jim Meyering  <jim@meyering.net>
79818
79819         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79820
79821         2006-01-11  Jim Meyering  <jim@meyering.net>
79822
79823         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79824         Check for the lchmod function.
79825
79826 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         Update from coreutils.
79829
79830         * lib/__fpending.h: Add copyright notice.
79831         * lib/fprintftime.h: Likewise.
79832         * lib/savedir.c: Use (C) in copyright notice.
79833         * lib/savedir.h: Likewise.
79834
79835         2006-08-15  Jim Meyering  <jim@meyering.net>
79836
79837         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79838         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79839         in support of the EXPECTED_ERRNO macro.
79840         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79841         definitions.  Instead, define the appropriate symbols and include
79842         "at-func.c".
79843         * lib/mkdirat.c (mkdirat): Likewise.
79844         * lib/fchmodat.c (fchmodat): Likewise.
79845         (ENOSYS): Remove definition.
79846         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79847         it.  Don't include "unistd--.h" -- it wasn't ever used.
79848
79849         2006-01-17  Jim Meyering  <jim@meyering.net>
79850
79851         Rewrite fts.c not to change the current working directory,
79852         by using openat, fstatat, fdopendir, etc..
79853
79854         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79855         (HAVE_OPENAT_SUPPORT): Define.
79856         [_LIBC] (fchdir): Don't undef or define; no longer used.
79857         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79858         Now, this `function' always succeeds, and consumes its file descriptor
79859         parameter -- so callers must not close such FDs.  Update callers.
79860         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79861         (diropen): Add parameter, SP.  Adjust all callers.
79862         Implement using diropen_fd, rather than open.
79863         (fts_open): Initialize new member, fts_cwd_fd.
79864         Remove fts_rft-setting code.
79865         (fts_close): Close fts_cwd_fd, if necessary.
79866         (__opendir2): Define in terms of opendir or opendirat,
79867         depending on whether the FST_NOCHDIR flag is set.
79868         (fts_build): Since fts_safe_changedir consumes its FD, and since
79869         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79870         and close the dup'd file descriptor upon failure.
79871         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79872         (fts_safe_changedir): Tweak semantics to reflect that this function
79873         now calls cwd_advance_fd and hence consumes its FD argument.
79874         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79875         [struct FTS] (fts_rft): Remove now-unused member.
79876         [struct FTS] (fts_cycle.state): Improve comment.
79877
79878         * lib/openat.c (openat_needs_fchdir): New function.
79879         * lib/openat.h (openat_needs_fchdir): Declare it.
79880
79881 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79884         Problem and fix reported by Pádraig Brady in
79885         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79886
79887 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79890
79891 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * lib/memcoll.c (memcoll): Optimize for the common case where the
79894         arguments are bytewise equal.
79895
79896 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * doc/regexprops-generic.texi: Add a copyright notice.
79899
79900 2006-08-15  Bruno Haible  <bruno@clisp.org>
79901
79902         * modules/tmpdir (License): Change to LGPL.
79903
79904 2006-08-15  Bruno Haible  <bruno@clisp.org>
79905
79906         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79907         module.
79908
79909 2006-08-14  Simon Josefsson  <jas@extundo.com>
79910
79911         * config/srclist.txt: Add gnupload.
79912
79913 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         Change copyright notice from LGPL 2 to GPL 2, since that's the
79916         standard form used in the gnulib repository.
79917         * tests/test-lock.c: Likewise.
79918         * tests/test-stdint.c: Likewise.
79919         * tests/test-tls.c: Likewise.
79920
79921         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79922         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79923         Add copyright notice.
79924
79925         * check-module: Add copyright notice.  Output a copyright
79926         notice if "--version" is specified.
79927         * modules/COPYING: New file.
79928         * tests/test-getaddrinfo.c: Add copyright notice.
79929         * tests/test-verify.c: Likewise.
79930
79931 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79932
79933         Change copyright notice from LGPL 2 to GPL 2, since that's the
79934         standard form used in the gnulib repository.
79935         * lib/lock.c: LGPL -> GPL.
79936         * lib/lock.h: Likewise.
79937         * lib/strnlen1.c: Likewise.
79938         * lib/strnlen1.h: Likewise.
79939         * lib/tls.c: Likewise.
79940         * lib/tls.h: Likewise.
79941         * lib/tmpdir.c: Likewise.
79942
79943         * lib/TODO: Remove; this belongs only in coreutils.
79944
79945 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         Add copyright notices to long-enough files that lack them, since
79948         otherwise the files aren't clearly free.  Use the same notice that
79949         getdate.texi already uses.
79950         * doc/alloca-opt.texi: Add copyright notice.
79951         * doc/alloca.texi: Likewise.
79952         * doc/ctime.texi: Likewise.
79953         * doc/functions.texi: Likewise.
79954         * doc/gcd.texi: Likewise.
79955         * doc/gnulib-tool.texi: Likewise.
79956         * doc/inet_ntoa.texi: Likewise.
79957         * doc/visibility.texi: Likewise.
79958
79959         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79960         * doc/quote.texi: Add copyright notice.
79961
79962         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79963         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79964         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79965         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79966         is now obsolete, and give a pointer to the Sun list.
79967         Add copyright notice.
79968
79969 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * config/srclistvars.sh: Add copyright notice.
79972
79973 2006-08-14  Eric Blake  <ebb9@byu.net>
79974
79975         Import the following change from libc:
79976
79977         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79978
79979         Upstream bug 2997.
79980         * lib/misc/error.c: Add space between program name and message if file
79981         name is missing.
79982
79983 2006-08-12  Karl Berry  <karl@gnu.org>
79984
79985         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79986         remove, these originate in gnulib now.
79987
79988 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79989
79990         * doc/Makefile (standards.info standards.html standards.dvi):
79991         Also depend on make-stds.texi.
79992
79993 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79996         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79997
79998         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79999         in wchar_t.  Problem reported by Eric Blake.
80000
80001         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80002         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80003         Also, help the compiler to keep LEN in a register.
80004
80005 2006-08-11  Eric Blake  <ebb9@byu.net>
80006
80007         * users.txt: Sort.  Add tar.
80008
80009 2006-08-11  Bruno Haible  <bruno@clisp.org>
80010
80011         * users.txt: New file.
80012
80013 2006-08-11  Bruno Haible  <bruno@clisp.org>
80014
80015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80016         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80017
80018 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * modules/snprintf (Depends-on): Remove minmax.
80021         (Maintainer): Add self and Bruno.
80022
80023 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80026         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80027         (EOVERFLOW): Define if the system does not.
80028         Do not include "minmax.h"; it wasn't used.
80029         (snprintf): Don't assume size_t promotes to an unsigned type.
80030         Fix bug when generated string was too long for the buffer: the
80031         buffer's contents are supposed to be the initial prefix of the
80032         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80033         exceeds INT_MAX; do the check ourselves.
80034
80035         Import the following changes from libc:
80036
80037         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80038
80039         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80040         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80041         set wc to the byte which couldn't be converted.
80042         (re_string_reconstruct): Don't clear valid_raw_len before calling
80043         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80044         tip_context using re_string_context_at.
80045
80046         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80047
80048         * lib/posix/regex.h: g++ still cannot handled [restrict].
80049
80050         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80051
80052         * lib/posix/regex.h: Remove special handling for VMS.
80053
80054 2006-08-10  Jim Meyering  <jim@meyering.net>
80055
80056         * modules/same-inode: New module.
80057         * modules/dev-ino: New module.
80058         * modules/cycle-check: Depend on these modules, rather than simply
80059         including their .h files.
80060         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80061         required via m4/cycle-check.m4.
80062         * modules/same: Depend on new same-inode module, rather than
80063         including same-inode.h.
80064         * modules/chdir-safer: New file.
80065
80066         * modules/chown (Depends-on): Add stat-macros.
80067
80068 2006-08-10  Jim Meyering  <jim@meyering.net>
80069
80070         * m4/cycle-check.m4: New file.
80071         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80072         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80073
80074 2006-08-10  Eric Blake  <ebb9@byu.net>
80075
80076         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80077         in from original proposal.
80078
80079 2006-08-10  Eric Blake  <ebb9@byu.net>
80080         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80081
80082         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80083         namespace.
80084
80085 2006-08-10  Bruno Haible  <bruno@clisp.org>
80086
80087         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80088         as well.
80089
80090 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         Sync from coreutils.
80093
80094         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80095
80096         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80097         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80098
80099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * modules/restrict: Remove; no longer needed now that we assume
80102         Autoconf 2.59 or later.
80103         * MODULES.html.sh: Remove 'restrict'.
80104         * modules/argp (Depends-on): Remove 'restrict'.
80105         * modules/base64 (Depends-on): Likewise.
80106         * modules/gc (Depends-on): Likewise.
80107         * modules/getaddrinfo (Depends-on): Likewise.
80108         * modules/glob (Depends-on): Likewise.
80109         * modules/inet_ntop (Depends-on): Likewise.
80110         * modules/inet_pton (Depends-on): Likewise.
80111         * modules/memxor (Depends-on): Likewise.
80112         * modules/regex (Depends-on): Likewise.
80113         * modules/strtok_r (Depends-on): Likewise.
80114         * modules/time_r (Depends-on): Likewise.
80115
80116 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80119         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80120         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80121         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80122         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80123         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80124         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80125         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80126
80127         Merge from coreutils.
80128         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80129         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80130         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80131         * m4/time_r.m4 (gl_TIME_R): Likewise.
80132
80133 2006-08-09  Karl Berry  <karl@gnu.org>
80134
80135         * config/srclist.txt: no more gettext-tools, per Bruno.
80136
80137 2006-08-08  Eric Blake  <ebb9@byu.net>
80138
80139         * modules/verror: New module.
80140         * MODULES.html.sh: Document it.
80141
80142 2006-08-08  Eric Blake  <ebb9@byu.net>
80143
80144         * lib/verror.h, lib/verror.c: New files.
80145
80146 2006-08-08  Eric Blake  <ebb9@byu.net>
80147
80148         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80149         verror_at_line output complies with GNU Coding Standards even when
80150         file is NULL.
80151
80152 2006-08-07  Bruno Haible  <bruno@clisp.org>
80153
80154         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80155         versions of AIX.
80156         Reported by Ralf Wildenhues.
80157
80158 2006-08-07  Bruno Haible  <bruno@clisp.org>
80159
80160         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80161         in an AC_DEFUN. Needed so that the autoconf snippets can use
80162         AC_REQUIRE.
80163
80164 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80165
80166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80167         Initialize pkgdata_DATA.
80168         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80169         overriding it.
80170
80171 2006-08-06  Eric Blake  <ebb9@byu.net>
80172
80173         * lib/error.h: Fold in some upstream changes from glibc.
80174         * lib/error.c: Likewise.
80175
80176 2006-08-04  Bruno Haible  <bruno@clisp.org>
80177
80178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80179         Make the mostlyclean-local rule depend on mostlyclean-generic.
80180         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80181
80182 2006-07-31  Bruno Haible  <bruno@clisp.org>
80183
80184         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80185         <stdlib.h>, <string.h>.
80186
80187 2006-07-30  Bruno Haible  <bruno@clisp.org>
80188
80189         * modules/readlink (License): Change to LGPL.
80190
80191 2006-07-30  Bruno Haible  <bruno@clisp.org>
80192
80193         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80194         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80195         set PKGDATADIR to point to it.
80196
80197 2006-07-30  Bruno Haible  <bruno@clisp.org>
80198
80199         * modules/csharpexec (configure.ac): Comment out macro invocation.
80200         * modules/javaexec (configure.ac): Likewise.
80201         * modules/javacomp-script (configure.ac): Likewise.
80202
80203         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80204
80205 2006-07-30  Bruno Haible  <bruno@clisp.org>
80206
80207         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80208         linked-list.
80209
80210 2006-07-30  Bruno Haible  <bruno@clisp.org>
80211
80212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80213
80214 2006-07-30  Bruno Haible  <bruno@clisp.org>
80215
80216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80217         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80218         get removed.
80219
80220 2006-07-29  Bruno Haible  <bruno@clisp.org>
80221
80222         Make it possible for gnulib-tool to work with locally modified or
80223         augmented gnulib repositories.
80224         * gnulib-tool (func_usage): Document --local-dir option.
80225         (local_gnulib_dir): New variable.
80226         Handle --local-dir option.
80227         (func_lookup_file): New function.
80228         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80229         (func_get_description, func_get_filelist, func_get_description,
80230         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80231         func_get_automake_snippet, func_get_include_directive,
80232         func_get_license, func_get_maintainer): Use func_lookup_file.
80233         (func_import, func_create_testdir): Use func_lookup_file.
80234
80235 2006-07-29  Bruno Haible  <bruno@clisp.org>
80236
80237         * modules/setenv (Depends-on): Add unistd.
80238
80239 2006-07-29  Bruno Haible  <bruno@clisp.org>
80240
80241         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80242
80243 2006-07-29  Bruno Haible  <bruno@clisp.org>
80244
80245         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80246
80247 2006-07-29  Bruno Haible  <bruno@clisp.org>
80248
80249         * gnulib-tool (import, update): If there is no Makefile.am, look at
80250         aclocal.m4, instead of bailing out.
80251
80252 2006-07-29  Bruno Haible  <bruno@clisp.org>
80253
80254         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80255         Categorize the options by when they are useful.
80256
80257 2006-07-29  Bruno Haible  <bruno@clisp.org>
80258
80259         * gnulib-tool (func_usage): Document option --no-libtool.
80260         Handle option --no-libtool.
80261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80262         for changed semantics of $libtool variable.
80263         (func_import): Likewise. If libtool is not used, show this through
80264         an option --no-libtool.
80265         (func_create_testdir): Update.
80266
80267 2006-07-29  Bruno Haible  <bruno@clisp.org>
80268
80269         * gnulib-tool (func_import): Extend error message about missing
80270         --doc-base.
80271
80272 2006-07-29  Bruno Haible  <bruno@clisp.org>
80273
80274         * gnulib-tool (func_import): Don't create the $docbase directory if
80275         there is no file to store there.
80276
80277 2006-07-29  Bruno Haible  <bruno@clisp.org>
80278
80279         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80280         relevant, look for configure.ac there, not in the current directory.
80281         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80282
80283 2006-07-29  Bruno Haible  <bruno@clisp.org>
80284
80285         * gnulib-tool (SORT): New variable.
80286         (func_usage): Undocument --assume-autoconf option.
80287         Remove --assume-autoconf option handling.
80288         (autoconf_minversion): Determine from the contents of configure.ac.
80289         (func_import): Remove autoconf_minversion handling.
80290         Suggested by Eric Blake.
80291
80292 2006-07-29  Bruno Haible  <bruno@clisp.org>
80293
80294         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80295
80296 2006-07-29  Bruno Haible  <bruno@clisp.org>
80297
80298         * config/srclist.txt (*setenv.[ch]): Remove rules.
80299
80300 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80301
80302         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80303
80304 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80305
80306         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80307         arpa/inet.h.
80308
80309 2006-07-28  Simon Josefsson  <jas@extundo.com>
80310
80311         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80312         * modules/inet_pton (Depends-on): Likewise.
80313
80314 2006-07-28  Simon Josefsson  <jas@extundo.com>
80315
80316         * m4/netinet_in_h.m4: New file.
80317
80318 2006-07-28  Simon Josefsson  <jas@extundo.com>
80319
80320         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80321         #include's.
80322
80323 2006-07-28  Simon Josefsson  <jas@extundo.com>
80324
80325         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80326         #include's.
80327
80328 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80329
80330         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80331         setgid on directories only if they set these bits.
80332         * lib/modechange.h: Remove obsolete comment about masks.
80333
80334 2006-07-28  Eric Blake  <ebb9@byu.net>
80335
80336         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80337         macro expansion.
80338
80339 2006-07-28  Bruno Haible  <bruno@clisp.org>
80340
80341         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80342
80343 2006-07-28  Bruno Haible  <bruno@clisp.org>
80344
80345         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80346
80347 2006-07-28  Bruno Haible  <bruno@clisp.org>
80348
80349         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80350         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80351         Define fallbacks.
80352         Avoids link error on FreeBSD 4.x.
80353         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80354
80355         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80356         encoding.
80357         * lib/mbswidth.c (iswcntrl): Likewise.
80358
80359 2006-07-27  Bruno Haible  <bruno@clisp.org>
80360
80361         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80362         test.
80363
80364 2006-07-27  Bruno Haible  <bruno@clisp.org>
80365
80366         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80367         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80368         defined.
80369
80370 2006-07-26  Eric Blake  <ebb9@byu.net>
80371
80372         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80373
80374 2006-07-26  Eric Blake  <ebb9@byu.net>
80375
80376         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80377         like mingw that lack mkstemp.
80378         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80379         avoid compilation warning on mingw.
80380
80381 2006-07-26  Bruno Haible  <bruno@clisp.org>
80382
80383         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80384         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80385         INT_FAST*_MIN, INTPTR_MIN.
80386
80387 2006-07-25  Bruno Haible  <bruno@clisp.org>
80388
80389         * modules/version-etc (Depends-on): Add stdarg.
80390
80391 2006-07-25  Bruno Haible  <bruno@clisp.org>
80392
80393         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80394         complex commands.
80395
80396 2006-07-25  Bruno Haible  <bruno@clisp.org>
80397
80398         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80399         defined in <stdarg.h> or config.h.
80400
80401 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80404         (gl_STDIO_SAFER): Remove.
80405
80406 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * MODULES.html.sh (File stream based Input/Output):
80409         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80410         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80411         * modules/fopen-safer, modules/tmpfile-safer: New files.
80412         * modules/stdio-safer: Remove.
80413
80414 2006-07-24  Bruno Haible  <bruno@clisp.org>
80415
80416         * modules/tmpdir: New file.
80417         * MODULES.html.sh (File system functions): Add it.
80418
80419 2006-07-24  Bruno Haible  <bruno@clisp.org>
80420
80421         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80422         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80423
80424 2006-07-24  Bruno Haible  <bruno@clisp.org>
80425
80426         * modules/clean-temp: New file.
80427
80428 2006-07-24  Bruno Haible  <bruno@clisp.org>
80429
80430         * m4/tmpdir.m4: New file, from GNU gettext.
80431
80432 2006-07-24  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/tmpdir.h: New file, from GNU gettext.
80435         * lib/tmpdir.c: New file, from GNU gettext.
80436
80437 2006-07-24  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/clean-temp.h: New file, from GNU gettext.
80440         * lib/clean-temp.c: New file, from GNU gettext.
80441
80442 2006-07-23  Eric Blake  <ebb9@byu.net>
80443
80444         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80445         (Depends-on): Add binary-io.
80446
80447 2006-07-23  Eric Blake  <ebb9@byu.net>
80448
80449         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80450
80451 2006-07-23  Eric Blake  <ebb9@byu.net>
80452
80453         * lib/tmpfile-safer.c: New file.
80454         * lib/stdio-safer.h (fopen_safer): Add prototype.
80455         * lib/stdio--.h (tmpfile): Make safer.
80456
80457 2006-07-23  Bruno Haible  <bruno@clisp.org>
80458
80459         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80460         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80461         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80462         gl_linked_remove_at): Use it.
80463
80464 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80465         and Simon Josefsson <jas@extundo.com>
80466
80467         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80468
80469         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80470
80471 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * modules/close-stream: New file.
80474         * modules/closeout (Description): Make it clear that it exits
80475         with a diagnostic on error.
80476         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80477         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80478
80479 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * m4/close-stream.m4: New file.
80482
80483 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         * lib/close-stream.c, lib/close-stream.h: New files.
80486
80487 2006-07-22  Bruno Haible  <bruno@clisp.org>
80488
80489         Merge from GNU gettext 0.15.
80490
80491         2006-05-01  Bruno Haible  <bruno@clisp.org>
80492
80493                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80494
80495         2006-07-22  Bruno Haible  <bruno@clisp.org>
80496
80497                 * modules/javaversion: New file.
80498                 * MODULES.html.sh (Java): Add javaversion.
80499
80500         2006-03-12  Bruno Haible  <bruno@clisp.org>
80501
80502                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80503
80504         2005-12-04  Bruno Haible  <bruno@clisp.org>
80505
80506                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80507                 (untested).
80508
80509         2006-06-21  Bruno Haible  <bruno@clisp.org>
80510
80511                 Avoid warnings from recent versions of mcs.
80512                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80513                 -o, -L, -r any more. Use options documented since mcs-1.0
80514                 instead. Similarly for -g.
80515
80516         2005-12-04  Bruno Haible  <bruno@clisp.org>
80517
80518                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80519                 .resources, not .resource.
80520
80521         2005-07-09  Bruno Haible  <bruno@clisp.org>
80522
80523                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80524                 add a .dll suffix.
80525                 Reported by Mark Junker <mjscod@gmx.de>.
80526
80527         2006-07-22  Bruno Haible  <bruno@clisp.org>
80528
80529                 * modules/gettext: Upgrade to gettext-0.15.
80530                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80531                 m4/visibility.m4.
80532                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80533
80534 2006-07-22  Bruno Haible  <bruno@clisp.org>
80535
80536         Merge from GNU gettext 0.15.
80537
80538         2006-03-25  Bruno Haible  <bruno@clisp.org>
80539
80540                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80541
80542         2006-07-21  Bruno Haible  <bruno@clisp.org>
80543
80544                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80545                 "1.1".
80546
80547         2006-05-09  Bruno Haible  <bruno@clisp.org>
80548
80549                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80550                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80551                 for the conftestver execution.
80552
80553         2006-05-01  Bruno Haible  <bruno@clisp.org>
80554
80555                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80556                 optional target-version argument. Verify that the compiler
80557                 groks source of the specified source-version, or add -source
80558                 option as necessary. Verify that the compiler produces
80559                 bytecode in the specified target-version, or add -target and
80560                 -source options as necessary. Make the result of the test
80561                 available as variable CONF_JAVAC. Also log error output in
80562                 config.log.
80563
80564         2006-03-11  Bruno Haible  <bruno@clisp.org>
80565
80566                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80567
80568         2006-05-09  Bruno Haible  <bruno@clisp.org>
80569
80570                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80571                 CLASSPATH_SEPARATOR to a semicolon.
80572
80573         2006-03-12  Bruno Haible  <bruno@clisp.org>
80574
80575                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80576                 available as variable CONF_JAVA, for subsequent autoconf
80577                 tests. Also log error output in config.log.
80578
80579         2006-07-19  Bruno Haible  <bruno@clisp.org>
80580
80581                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80582                 that getline works on glibc2 systems. Needed to avoid trouble
80583                 in relocatable.c.
80584                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80585
80586         2005-12-04  Bruno Haible  <bruno@clisp.org>
80587
80588                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80589                 launcher (untested).
80590
80591         2005-12-04  Bruno Haible  <bruno@clisp.org>
80592
80593                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80594
80595         2006-07-22  Bruno Haible  <bruno@clisp.org>
80596
80597                 * gettext.m4: Update from GNU gettext-0.15.
80598                 * nls.m4: Likewise.
80599                 * po.m4: Likewise.
80600                 * inttypes-pri.m4: Likewise.
80601                 * inttypes-h.m4: Renamed from inttypes.m4.
80602                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80603
80604 2006-07-22  Bruno Haible  <bruno@clisp.org>
80605
80606         Merge from GNU gettext 0.15.
80607
80608         2005-07-05  Bruno Haible  <bruno@clisp.org>
80609
80610                 * printf-args.c (printf_fetchargs): Work around broken
80611                 definition of wint_t on mingw.
80612
80613         2005-02-12  Bruno Haible  <bruno@clisp.org>
80614
80615                 * xallocsa.h: Add extern "C" for C++.
80616
80617         2006-05-17  Bruno Haible  <bruno@clisp.org>
80618
80619                 Cygwin portability.
80620                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80621
80622         2006-04-30  Bruno Haible  <bruno@clisp.org>
80623
80624                 * progreloc.c: Include <mach-o/dyld.h> if available.
80625                 (find_executable): Use _NSGetExecutablePath when possible.
80626
80627         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80628
80629                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80630                 function.
80631
80632         2005-12-29  Bruno Haible  <bruno@clisp.org>
80633
80634                 * progreloc.c (set_program_name_and_installdir): Fix
80635                 compilation error.
80636
80637         2005-12-04  Bruno Haible  <bruno@clisp.org>
80638
80639                 Cygwin portability.
80640                 * progreloc.c: Include <windows.h> also on Cygwin.
80641                 (find_executable): Add support for Cygwin.
80642                 (set_program_name_and_installdir): Handle also platforms with
80643                 nonempty EXEEXT.
80644
80645         2006-07-11  Bruno Haible  <bruno@clisp.org>
80646
80647                 * javacomp.c: Fix a comment.
80648                 Reported by Jim Meyering.
80649
80650         2006-04-30  Bruno Haible  <bruno@clisp.org>
80651
80652                 * javacomp.h (compile_java_class): Add source_version,
80653                 target_version arguments.
80654                 * javacomp.c: Rewritten to choose only a compiler that
80655                 respects the specified source_version and target_version.
80656
80657         2006-06-27  Bruno Haible  <bruno@clisp.org>
80658
80659                 Assume correct S_ISDIR macro.
80660                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80661
80662         2006-07-22  Bruno Haible  <bruno@clisp.org>
80663
80664                 * javaversion.h: New file, from GNU gettext.
80665                 * javaversion.c: New file, from GNU gettext.
80666                 * javaversion.java: New file, from GNU gettext.
80667                 * javaversion.class: New file, from GNU gettext.
80668
80669         2006-05-17  Bruno Haible  <bruno@clisp.org>
80670
80671                 Cygwin portability.
80672                 * javaexec.c (execute_java_class): Test for jview program
80673                 also on Cygwin.
80674
80675         2006-04-09  Bruno Haible  <bruno@clisp.org>
80676
80677                 * fatal-signal.c: Don't include string.h.
80678                 (at_fatal_signal): Use a copying loop instead of memcpy.
80679
80680         2005-12-04  Bruno Haible  <bruno@clisp.org>
80681
80682                 * csharpexec.c: Add support for 'clix' launcher (untested).
80683                 (execute_csharp_using_sscli): New function.
80684                 (execute_csharp_program): Call it.
80685
80686         2006-06-21  Bruno Haible  <bruno@clisp.org>
80687
80688                 Avoid warnings from recent versions of mcs.
80689                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80690                 -o, -L, -r any more. Use options documented since mcs-1.0
80691                 instead. Similarly for -g.
80692
80693         2005-07-09  Bruno Haible  <bruno@clisp.org>
80694
80695                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80696                 add a .dll suffix.
80697                 Reported by Mark Junker <mjscod@gmx.de>.
80698
80699         2006-06-17  Bruno Haible  <bruno@clisp.org>
80700
80701                 * config.charset: Update for NetBSD 3.0.
80702
80703         2006-05-17  Bruno Haible  <bruno@clisp.org>
80704
80705                 Cygwin portability.
80706                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80707
80708         2006-05-16  Bruno Haible  <bruno@clisp.org>
80709
80710                 * localcharset.c [CYGWIN]: Include <windows.h>.
80711                 (get_charset_aliases): For Cygwin, return the same CPxxx
80712                 aliases list as under WIN32.
80713                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80714                 the environment variables. Fall back to GetACP().
80715
80716         2006-04-05  Bruno Haible  <bruno@clisp.org>
80717
80718                 * config.charset: Update Juan Manuel Guerrero's address.
80719
80720         2005-02-12  Bruno Haible  <bruno@clisp.org>
80721
80722                 * allocsa.h: Add extern "C" for C++.
80723
80724         2005-02-10  Bruno Haible  <bruno@clisp.org>
80725
80726                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80727                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80728
80729         2006-07-22  Bruno Haible  <bruno@clisp.org>
80730
80731                 * gettext.h: Update to GNU gettext-0.15.
80732
80733 2006-07-22  Bruno Haible  <bruno@clisp.org>
80734
80735         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80736         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80737         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80738
80739 2006-07-21  Eric Blake  <ebb9@byu.net>
80740
80741         * modules/stdlib-safer: New file.
80742         * MODULES.html.sh (File stream based Input/Output): Add
80743         stdlib-safer.
80744
80745 2006-07-21  Eric Blake  <ebb9@byu.net>
80746
80747         * lib/stdlib-safer.h: New file from coreutils, required by
80748         stdlib--.h.
80749
80750 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80753
80754 2006-07-20  Bruno Haible  <bruno@clisp.org>
80755
80756         * gnulib-tool: Recognize new option --assume-autoconf.
80757         (autoconf_minversion): New variable.
80758         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80759
80760 2006-07-20  Bruno Haible  <bruno@clisp.org>
80761
80762         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80763
80764 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80765
80766         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80767         Reindent and repaginate.
80768
80769 2006-07-19  Derek Price  <derek@ximbiot.com>
80770
80771         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80772         Correct grammar.
80773
80774 2006-07-17  Bruno Haible  <bruno@clisp.org>
80775
80776         * modules/list: New file.
80777         * modules/array-list: New file.
80778         * modules/carray-list, modules/carray-list-tests: New files.
80779         * modules/linked-list, modules/linked-list-tests: New files.
80780         * modules/avltree-list, modules/avltree-list-tests: New files.
80781         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80782         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80783         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80784         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80785         * modules/oset: New file.
80786         * modules/array-oset: New file.
80787         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80788         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80789         * tests/test-carray_list.c: New file.
80790         * tests/test-linked_list.c: New file.
80791         * tests/test-avltree_list.c: New file.
80792         * tests/test-rbtree_list.c: New file.
80793         * tests/test-linkedhash_list.c: New file.
80794         * tests/test-avltreehash_list.c: New file.
80795         * tests/test-rbtreehash_list.c: New file.
80796         * tests/test-avltree_oset.c: New file.
80797         * tests/test-rbtree_oset.c: New file.
80798         * MODULES.html.sh (Container data structures): New section.
80799
80800 2006-07-17  Bruno Haible  <bruno@clisp.org>
80801
80802         * m4/gl_list.m4: New file.
80803
80804 2006-07-17  Bruno Haible  <bruno@clisp.org>
80805
80806         * lib/gl_list.h: New file.
80807         * lib/gl_list.c: New file.
80808         * lib/gl_array_list.h: New file.
80809         * lib/gl_array_list.c: New file.
80810         * lib/gl_carray_list.h: New file.
80811         * lib/gl_carray_list.c: New file.
80812         * lib/gl_linked_list.h: New file.
80813         * lib/gl_linked_list.c: New file.
80814         * lib/gl_anylinked_list1.h: New file.
80815         * lib/gl_anylinked_list2.h: New file.
80816         * lib/gl_avltree_list.h: New file.
80817         * lib/gl_avltree_list.c: New file.
80818         * lib/gl_anyavltree_list1.h: New file.
80819         * lib/gl_anyavltree_list2.h: New file.
80820         * lib/gl_rbtree_list.h: New file.
80821         * lib/gl_rbtree_list.c: New file.
80822         * lib/gl_anyrbtree_list1.h: New file.
80823         * lib/gl_anyrbtree_list2.h: New file.
80824         * lib/gl_anytree_list1.h: New file.
80825         * lib/gl_anytree_list2.h: New file.
80826         * lib/gl_linkedhash_list.h: New file.
80827         * lib/gl_linkedhash_list.c: New file.
80828         * lib/gl_anyhash_list1.h: New file.
80829         * lib/gl_anyhash_list2.h: New file.
80830         * lib/gl_avltreehash_list.h: New file.
80831         * lib/gl_avltreehash_list.c: New file.
80832         * lib/gl_rbtreehash_list.h: New file.
80833         * lib/gl_rbtreehash_list.c: New file.
80834         * lib/gl_anytreehash_list1.h: New file.
80835         * lib/gl_anytreehash_list2.h: New file.
80836
80837         * lib/gl_oset.h: New file.
80838         * lib/gl_oset.c: New file.
80839         * lib/gl_array_oset.h: New file.
80840         * lib/gl_array_oset.c: New file.
80841         * lib/gl_avltree_oset.h: New file.
80842         * lib/gl_avltree_oset.c: New file.
80843         * lib/gl_rbtree_oset.h: New file.
80844         * lib/gl_rbtree_oset.c: New file.
80845         * lib/gl_anytree_oset.h: New file.
80846
80847 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * m4/mkancesdirs.m4: New file.
80850         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80851         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80852         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80853         it.
80854
80855 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80856
80857         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80858         * lib/mkancesdirs.h: New files.
80859         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80860         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80861         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80862         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80863         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80864         callers changed.  Revamp internals significantly, by not
80865         attempting to create directories that are temporarily more
80866         permissive than the final results.  Do not attempt to use
80867         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80868         This removes some race conditions, fixes some bugs, and simplifies
80869         things.  Use new dirchownmod function to do owner and mode changes.
80870         * lib/mkdir-p.h: Likewise.
80871         * lib/modechange.c (octal_to_mode): New function.
80872         (struct mode_change): New member mentioned.
80873         (make_node_op_equals): New arg mentioned.  All callers changed.
80874         (mode_compile): Keep track of which mode bits the user has explicitly
80875         mentioned.
80876         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80877         New arg PMODE_BITS, to keep track of which mode bits the user
80878         mentioned; it treats S_ISUID and S_ISGID speciall.
80879         All callers changed.
80880         * lib/modechange.h: Likewise.
80881
80882 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         * MODULES.html.sh: Add mkancestors.
80885         * modules/mkancesdirs: New module.
80886         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80887         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80888         The chdir-safer and afs files are now orphans; I'll remove them
80889         unless someone speaks up.
80890         Add lib/dirchownmod.c, lib/dirchownmod.h.
80891         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80892         Add lchown, mkancesdirs.
80893         (Maintainer): Add self.
80894
80895 2006-07-15  Karl Berry  <karl@gnu.org>
80896
80897         * gnulib-tool: help message wording/arrangement.
80898
80899 2006-07-14  Simon Josefsson  <jas@extundo.com>
80900
80901         * doc/gnulib.texi (Libtool and Windows): New section.
80902
80903 2006-07-12  Simon Josefsson  <jas@extundo.com>
80904
80905         * modules/gendocs (License): Fix license, approved by Karl.
80906
80907 2006-07-12  Eric Blake  <ebb9@byu.net>
80908
80909         * MODULES.html.sh: Add gendocs.
80910
80911 2006-07-11  Eric Blake  <ebb9@byu.net>
80912
80913         * modules/fdl: New module, to install doc/fdl.texi.
80914         * MODULES.html.sh: Add new section for documentation modules.
80915         * gnulib-tool: Avoid space-tab.
80916         (--doc-base): New option, to manage files from doc.
80917
80918 2006-07-11  Eric Blake  <ebb9@byu.net>
80919
80920         * m4/absolute-header.m4: Fix comments to match recent change.
80921
80922 2006-07-11  Eric Blake  <ebb9@byu.net>
80923
80924         * gnulib-tool: List --doc-base before --tests-base.
80925
80926 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80927
80928         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80929
80930 2006-07-11  Bruno Haible  <bruno@clisp.org>
80931
80932         * README: Mention where to put documentation.
80933
80934 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80935
80936         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80937
80938 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80941         to stdint.m4.
80942
80943 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80946         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80947         "no/such/file/stdint.h" when there is no such file, so that
80948         the resulting C code can be parsed by dodgy compilers.
80949         Problems reported by Bob Proulx.
80950
80951 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80952
80953         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80954         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80955         macros into the GNU _D_EXACT_NAMLEN.
80956         * lib/savedir.c:  Likewise.
80957         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80958
80959 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80960         and Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80963         * m4/savedir.m4:
80964         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80965         macros into the GNU _D_EXACT_NAMLEN.
80966
80967 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80970         around the absolute name, to work around a problem with the HP-UX
80971         11.23 native C compiler, reported by Bob Proulx.
80972
80973 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80974
80975         * doc/maintain.texi, make-stds.texi: Sync from
80976         <http://savannah.gnu.org/projects/gnustandards>.
80977
80978 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80981
80982 2006-07-09  Jim Meyering  <jim@meyering.net>
80983
80984         * m4/glob.m4: Remove a doubled word in a comment.
80985
80986 2006-07-09  Jim Meyering  <jim@meyering.net>
80987
80988         * lib/argp-pv.c: Remove a doubled word in a comment.
80989         * lib/check-version.c (check_version): Likewise.
80990         * lib/javacomp.c (compile_java_class): Likewise.
80991
80992 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80995         for the benefit of people using Autoconf 2.60.  If you want to
80996         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80997         (or m4/onceonly.m4, if pre-2.57) manually.
80998
80999 2006-07-08  Jim Meyering  <jim@meyering.net>
81000
81001         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81002         comment.
81003         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81004         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81005         comment.
81006
81007 2006-07-08  Jim Meyering  <jim@meyering.net>
81008
81009         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81010
81011 2006-07-07  Simon Josefsson  <jas@extundo.com>
81012
81013         * tests/test-crc.c: Change expected crc value, the test vector
81014         were probably computed using the old broken crc.c?
81015
81016 2006-07-06  Simon Josefsson  <jas@extundo.com>
81017
81018         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81019         now the canonical place for the M4 file).
81020
81021         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81022         from the sys_socket dependency now.
81023
81024         * modules/inet_pton (Files): Ditto.
81025
81026         * modules/inet_ntop (Files): Ditto.
81027
81028 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81029
81030         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81031         not gl_PREREQ_GETUSERSHELL.
81032
81033 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81034
81035         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81036         with only one argument, for Autoconf 2.60.
81037         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81038         expand to nothing, so add a shell command to avoid syntax error.
81039         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81040
81041 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81042
81043         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81044
81045 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81046
81047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81048         no longer needed.  Check for isblank decl.
81049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81050         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81051         of existence.
81052
81053 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * lib/getloadavg.c: Use __VMS, not VMS.
81056         * lib/getopt.c: Likewise.
81057         * lib/getpagesize.h: Likewise.
81058         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81059         and probably does not work.
81060
81061 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * lib/.cppi-disable: Add wcwidth.
81064         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81065         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81066         (ISGRAPH): Remove.  All uses changed to isgraph.
81067         (FOLD) [!defined _LIBC]: Remove special case.
81068         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81069         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81070         HAVE_ISBLANK.
81071         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81072         case.
81073
81074 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81075
81076         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81077         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81078         brackets.  Other minor changes to suppress some compiler
81079         warnings.
81080
81081 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81082         and Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81085         of invoking obsolescent AC_HEADER_DIRENT macro.
81086         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81087         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81090         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81091         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81092         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81093         * m4/readdir.m4: Remove; no longer needed.
81094
81095 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81096         and Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81099         Don't worry about this obsolete case any more.
81100         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81101         directories.
81102         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81103         worry about this obsolete case any more.
81104         * lib/fts.c: Likewise.
81105         * lib/getcwd.c: Likewise.
81106         * lib/glob.h: Likewise.
81107         * lib/savedir.c: Likewise.
81108
81109 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81112         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81114         needed.
81115         All uses removed.
81116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81117         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81118         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81119         needed.
81120         * m4/getdate.m4 (gl_GETDATE): Likewise.
81121         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81122         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81123         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81124         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81125         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81127         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81128         needed.
81129
81130 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * lib/memcasecmp.c: Include <limits.h>.
81133         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81134         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81135         Don't assume isdigit succeeds only on '0' through '9'.
81136
81137 2006-07-05  Eric Blake  <ebb9@byu.net>
81138
81139         * modules/getaddrinfo (Depends-on): Add snprintf.
81140
81141 2006-07-05  Eric Blake  <ebb9@byu.net>
81142
81143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81144         to avoid 'header present but could not be compiled' on cygwin.
81145
81146 2006-07-05  Eric Blake  <ebb9@byu.net>
81147
81148         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81149         missing from netdb.h.
81150         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81151
81152 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81153
81154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81155         no longer needed.
81156         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81157         * m4/getdate.m4 (gl_GETDATE): Likewise.
81158         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81159         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81160         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81161         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81162         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81163
81164 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81165
81166         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81167         All uses of is_space replaced by isspace.
81168         * lib/exit.h: Don't talk about STDC_HEADERS.
81169         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81170         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81171         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81172         replaced by isprint etc.
81173         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81174         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81175         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81176         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81177         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81178         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81179
81180 2006-07-05  Bruno Haible  <bruno@clisp.org>
81181
81182         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81183         the function exists, before testing against AIX.
81184         Reported by Martin Lambers <marlam@marlam.de>.
81185
81186 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81189         From Mark D. Baushke.
81190
81191 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81194         to the absolute name, not just one, to bypass Sun C 5.8's
81195         "warning: #include of /usr/include/... may be non-portable".
81196
81197 2006-07-04  Eric Blake  <ebb9@byu.net>
81198
81199         * modules/dirname-tests: New test module.
81200         * tests/test-dirname.c: New file, replacing dirname.c
81201         TEST_DIRNAME section that was recently deleted.
81202
81203 2006-07-04  Bruno Haible  <bruno@clisp.org>
81204
81205         Assume ANSI C header files and <ctype.h> functions.
81206         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81207         (mbsnwidth): Use isprint, iscntrl instead.
81208
81209 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         Merge from coreutils.
81212         * MODULES.html.sh: Add xstrtold.
81213         * modules/xstrtold: New file.
81214         * modules/cycle-check (Files): Add lib/same-inode.h.
81215         * modules/dirname (Files): Add m4/double-slash-root.m4.
81216         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81217         * modules/mkdir-p (Files): Add lib/same-inode.h.
81218         * modules/same (Files): Add lib/same-inode.h.
81219
81220 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81223         This is to keep the terminology clean; POSIX talks about
81224         "absolute pathnames", not "full pathnames", but the GNU
81225         Coding Standards say to use "path" for something else;
81226         so use "absolute" to keep both sides happy.
81227         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81228         Set gl_absolute_header, not gl_full_header_path.
81229         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81230         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81231         All uses changed.
81232
81233         Merge from coreutils.
81234
81235         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81238         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81239         want to require the building of c-strtod.o.
81240         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81241         needs -lm directly.
81242         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81243
81244         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81245
81246         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81247         --as-needed option if available.  Problem reported by Albert Chin in
81248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81249         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81250         cc merely issues a bunch of annoying warnings for --as-needed
81251         (this problem was reported by Bob Proulx).  Also, try linking with
81252         -lm to detect a bug in binutils 2.16 (this problem was reported
81253         by Ralf Wildenhues).
81254
81255         2006-06-18  Jim Meyering  <jim@meyering.net>
81256
81257         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81258         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81259         macro.
81260         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81261         also check for glibc-2.4's abort-inducing bug.
81262
81263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81264         Low-probability clean-up should be to use rmdir to get rid of
81265         the just-created directory, not unlink.
81266
81267         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81268         configure fail, and request a bug report to inform us about it.
81269         Add a comment that, barring reports to the contrary, in 2007 we'll
81270         assume ftruncate is universally available.
81271
81272         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81275
81276         2006-03-12  Jim Meyering  <jim@meyering.net>
81277
81278         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81280         * m4/same.m4 (gl_SAME): Likewise.
81281         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81282
81283         2006-03-11  Eric Blake  <ebb9@byu.net>
81284
81285         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81286         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81287         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81288         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81289
81290 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81293         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81294         reported by Mark D. Baushke, one in
81295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81296
81297         Merge from coreutils.
81298
81299         * lib/.cppi-disable: Add stdint_.h.
81300         * lib/.cvsignore: Add stdint.h.
81301
81302         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81305         both double and long double versions.
81306         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81307         * lib/xstrtold.c: New file.
81308         * lib/xstrtod.h (xstrtold): New decl.
81309
81310         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * lib/filemode.c (setst): Remove.
81313         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81314         (arguably) clearer, and the generated code is a bit smaller on my
81315         Debian GNU/Linux stable x86 host.
81316
81317         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81320         Assume that filemode.h includes sys/types.h and sys/stat.h.
81321         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81322         (ftypelet): Reorder to put common cases first, for efficiency.
81323         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81324         to do 'M'.
81325         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81326         of 10, for compatibility with FreeBSD.  All callers changed.
81327         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81328         types that can't be deduced solely from st_mode.  First arg is now a
81329         const pointer.
81330         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81331         (strmode): Renamed from mode_string.
81332         (filemodestring): New decl.
81333         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81334         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81335         needed.
81336         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81337
81338         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81341         fsusage.h now does that.  Include fsusage.h first, to test interface.
81342         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81343         at most one method (the old code could have generated decls that
81344         didn't conform to C89, not that this was ever exercised).
81345         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81346
81347         2006-03-19  Jim Meyering  <jim@meyering.net>
81348
81349         Work even in a chroot where d_ino values for entries in "/"
81350         don't match the stat.st_ino values for the same names.
81351         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81352         number, iterate through all entries again, using lstat instead.
81353         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81354         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81355
81356         * lib/getcwd.c (__getcwd): Clarify a comment.
81357         Use memcpy in place of a call to strcpy.
81358
81359         2006-03-12  Jim Meyering  <jim@meyering.net>
81360
81361         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81362         matches that of the current directory (which we're about to chdir ".."
81363         out of), then save the dev-ino of the parent, instead.
81364
81365         * lib/same-inode.h (SAME_INODE): New file/macro.
81366         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81367         Include "same-inode.h", instead.
81368         * lib/same.c: Likewise.
81369         * lib/cycle-check.h: Include "same-inode.h".
81370         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81371         * lib/cycle-check.c (SAME_INODE): Remove definition.
81372         * lib/root-dev-ino.h: Include "same-inode.h".
81373
81374         2006-03-11  Eric Blake  <ebb9@byu.net>
81375
81376         * lib/same.c (same_name): s/base_name/last_component/
81377         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81378         * lib/filenamecat.c (file_name_concat): Likewise.
81379
81380         2006-03-11  Eric Blake  <ebb9@byu.net>,
81381                     Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81384         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81385         drive prefix.
81386         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81387         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81388         (last_component): New method.
81389         * lib/dirname.c (dir_len): Determine when drive letters need a
81390         subsequent slash.  Preserve // when it is special.
81391         (dir_name): Don't append dot when drive letter is absolute.
81392         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81393         * lib/basename.c (base_name): New semantics - malloc the result.
81394         Preserve // when it is special.  Preserve relative files that look
81395         like drive letters.
81396         (base_len): Preserve // when it is special.
81397         (last_component): New method, similar to old base_name semantics.
81398         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81399         base_name.  Strip redundant slashes from ///.
81400
81401 2006-07-03  Jim Meyering  <jim@meyering.net>
81402
81403         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81404         macro is used before the first cycle_check call.
81405
81406 2006-07-03  Eric Blake  <ebb9@byu.net>
81407
81408         * modules/dirname (Depends-on): Add xstrndup.
81409
81410 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81411
81412         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81413         test cases, so that config.log is a bit easier to follow.
81414
81415 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81418         both are 64 bits, since this seems to be the tradition, and this
81419         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81420         we ever run into a host that prefers long long to long in this
81421         case, we'll need another configure-time test.  Problem reported by
81422         Jim Meyering.
81423
81424 2006-07-02  Eric Blake  <ebb9@byu.net>
81425
81426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81427
81428 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * modules/inttypes (Depends-on): No longer depends on stdint.
81431         * modules/stdint (Description): Say more about assumptions.
81432         Say that the fast types might differ.  Say macros are used.
81433         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81434         (Makefile.am): Revise list of substituted symbols to match
81435         new stdint.m4.
81436         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81437         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81438         * tests/test-stdint.c (verify_same_types)
81439         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81440         the code conforms to C99/C89.
81441         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81442         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81443
81444 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81447         but fix a bug, by requiring at least 64 bits.
81448         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81449         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81450         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81451         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81452
81453         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81454         changes.  Make 2.59 a prerequisite.  Check and substitute for
81455         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81456         inttypes.h.  Do not use special include files; just use the
81457         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81458         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81459         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81460         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81461         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81462         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81463         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81464         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81465         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81466         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81467         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81468         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81469         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81470         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81471         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81472         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81473         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81474         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81475         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81476         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81477         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81478         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81479         not check for things that C99 does not require, e.g., int8_t.  If
81480         a test isn't needed unless <stdint.h> isn't working, and is
81481         unlikely to be needed for any other reason, then don't do it
81482         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81483         size_t, since we assume C89 freestanding at least.  Do not check
81484         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81485         the right thing even if the types are not defined.  Instead use:
81486         (gl_STDINT_TYPE_PROPERTIES): New macro.
81487         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81488         testing whether <sys/types.h> clashes, as Autoconf does this for
81489         us now.  All uses removed.
81490         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81491         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81492         (gl_CHECK_TYPE_SAME):
81493         Remove; no longer needed.
81494         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81495         exists, since we'll return 0 anyway in that case.
81496         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81497
81498 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81501         possible collision with system files.
81502         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81503         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81504         WCHAR_MIN and WCHAR_MAX in this case.
81505         (<stddef.h>): Do not include; no longer needed.
81506         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81507         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81508         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81509         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81510         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81511         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81512         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81513         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81514         !defined(__c99))]: Include in this case too, since it's harmless
81515         now.
81516         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81517         dangerous to do so.
81518         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81519         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81520         (_STDINT_MIN, _STDINT_MAX): New macros.
81521         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81522         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81523         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81524         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81525         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81526         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81527         macros, not typedefs; this simplifies things quite a bit.
81528         Use long int for all types narrower than int64_t.
81529         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81530         Define in terms of long long int or int64_t or long int,
81531         not int64_t or int32_t.  This saves some compile-time testing.
81532         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81533         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81534         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81535         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81536         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81537         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81538         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81539         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81540         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81541         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81542         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81543         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81544         undef any previous version and define our own version, for
81545         simplicity and consistency with the new macros for types.
81546         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81547         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81548         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81549         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81550         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81551         @WINT_T_SUFFIX@ to keep things simple here.
81552         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81553         Simplify by assuming typical 8/16/32/64 host, since we're
81554         already doing that elsewhere anyway.
81555         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81556         and assume long long int is 64 bits if available.  This
81557         speeds up 'configure'.
81558
81559 2006-07-01  Eric Blake  <ebb9@byu.net>
81560
81561         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81562         Reported by Andreas Buening.
81563
81564 2006-07-01  Eric Blake  <ebb9@byu.net>
81565
81566         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81567
81568 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81569
81570         * lib/getaddrinfo.c: fixed typo
81571
81572 2006-06-29  Jim Meyering  <jim@meyering.net>
81573
81574         * modules/strftime (Maintainer): Add my name, since with the
81575         FPRINTFTIME changes strftime.c has forked from glibc.
81576
81577 2006-06-29  Eric Blake  <ebb9@byu.net>
81578
81579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81580
81581 2006-06-29  Eric Blake  <ebb9@byu.net>
81582
81583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81584
81585 2006-06-29  Eric Blake  <ebb9@byu.net>
81586
81587         * lib/stat_.h: New file.
81588
81589 2006-06-29  Eric Blake  <ebb9@byu.net>
81590
81591         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81592         unused static function.
81593
81594 2006-06-29  Eric Blake  <ebb9@byu.net>
81595
81596         * doc/functions.texi (Function Portability): Document missing lstat
81597         on mingw.
81598
81599 2006-06-29  Eric Blake  <ebb9@byu.net>
81600
81601         * MODULES.html.sh: Add sys_stat.
81602         * modules/sys_stat: New module.
81603         * modules/mkstemp (Depends-on): Add sys_stat.
81604
81605 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81606
81607         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81608
81609 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81610
81611         * m4/c-bs-a.m4: Removed.
81612
81613 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81614
81615         * lib/strftime.c: Assume strftime() exists.
81616
81617 2006-06-29  Derek Price  <derek@ximbiot.com>
81618
81619         * modules/c-bs-a: Removed - \a is C89.
81620         * MODULES.html.sh: Remove c-bs-a.
81621
81622 2006-06-29  Bruno Haible  <bruno@clisp.org>
81623
81624         * modules/wcwidth (License): Change to LGPL.
81625
81626 2006-06-28  Simon Josefsson  <jas@extundo.com>
81627
81628         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81629         on _WIN32.
81630
81631         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81632         getnameinfo.
81633
81634 2006-06-28  Simon Josefsson  <jas@extundo.com>
81635
81636         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81637
81638 2006-06-28  Simon Josefsson  <jas@extundo.com>
81639
81640         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81641         functions there.  It will succeed on Windows XP, but on Windows
81642         2000 and (presumably) earlier, it will fail, and use the internal
81643         re-implementation.
81644         (use_win32_p): New function.
81645         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81646         Support AI_NUMERICSERV to disable getservbyname.
81647         (getnameinfo): New function, only supports
81648         NI_NUMERICHOST|NI_NUMERICSERV for now.
81649
81650         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81651         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81652         getnameinfo.
81653
81654 2006-06-28  Eric Blake  <ebb9@byu.net>
81655
81656         * modules/wcwidth: New file.
81657         * modules/mbchar (Depends-on): Add wcwidth.
81658         * modules/mbswidth (Depends-on): Add wcwidth.
81659         * MODULES.html.sh: Add wcwidth.
81660
81661 2006-06-28  Eric Blake  <ebb9@byu.net>
81662
81663         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81665
81666 2006-06-28  Eric Blake  <ebb9@byu.net>
81667
81668         * lib/xvasprintf.h: Fix comments.
81669
81670 2006-06-28  Eric Blake  <ebb9@byu.net>
81671
81672         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81673         * lib/mbswidth.c (wcwidth): Move from here...
81674         * lib/wcwidth.h: ...to this new file.
81675
81676 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81677
81678         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81679
81680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81681         it's obsolete.
81682         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81683
81684 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81685
81686         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81687         Autoconf 2.60 says this stuff was obsolete.
81688
81689 2006-06-28  Bruno Haible  <bruno@clisp.org>
81690
81691         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81692
81693 2006-06-28  Bruno Haible  <bruno@clisp.org>
81694
81695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81696         gt_TYPE_WCHAR_T.
81697
81698 2006-06-28  Bruno Haible  <bruno@clisp.org>
81699
81700         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81701         declaration for wcwidth.
81702         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81703
81704 2006-06-28  Bruno Haible  <bruno@clisp.org>
81705
81706         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81707         (mkdir): Define using _mkdir.
81708
81709 2006-06-28  Bruno Haible  <bruno@clisp.org>
81710
81711         * lib/getaddrinfo.h: Fix POSIX URL.
81712         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81713         _WIN32.
81714         (use_win32_p): Make static.
81715         (getaddrinfo): Reject service name if it is empty or does not consist
81716         solely of decimal digits, or if its value is > 65535.
81717         (getnameinfo): Remove useless casts.
81718
81719 2006-06-27  Simon Josefsson  <jas@extundo.com>
81720
81721         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81722         Eggert and Martin Lambers.
81723
81724 2006-06-27  Simon Josefsson  <jas@extundo.com>
81725
81726         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81727         Eggert and Martin Lambers.
81728
81729 2006-06-27  Bruno Haible  <bruno@clisp.org>
81730
81731         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81732         result to 0, not to empty.
81733         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81734
81735 2006-06-27  Bruno Haible  <bruno@clisp.org>
81736
81737         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81738
81739 2006-06-26  Simon Josefsson  <jas@extundo.com>
81740
81741         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81742         present.
81743
81744 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81745
81746         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81747         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81749
81750 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81751
81752         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81753
81754 2006-06-26  Bruno Haible  <bruno@clisp.org>
81755
81756         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81757
81758 2006-06-26  Bruno Haible  <bruno@clisp.org>
81759
81760         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81761
81762 2006-06-26  Bruno Haible  <bruno@clisp.org>
81763
81764         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81765         SGI C compiler in pre-C99 mode.
81766         Suggested by Mark D. Baushke and Larry Jones.
81767
81768 2006-06-26  Bruno Haible  <bruno@clisp.org>
81769
81770         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81771         WCHAR_MAX.
81772         Reported by Mark D. Baushke and Larry Jones.
81773
81774 2006-06-26  Bruno Haible  <bruno@clisp.org>
81775
81776         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81777         in pre-C99 mode.
81778         Suggested by Mark D. Baushke and Larry Jones.
81779
81780 2006-06-23  Simon Josefsson  <jas@extundo.com>
81781             Bruno Haible  <bruno@clisp.org>
81782
81783         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81784         Emit mostlyclean-local rule.
81785         (func_emit_tests_Makefile_am): Likewise.
81786         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81787
81788 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81789
81790         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81791
81792 2006-06-23  Bruno Haible  <bruno@clisp.org>
81793
81794         * tests/test-stdint.c: Update to match ISO C 99 Technical
81795         Corrigendum 1.
81796
81797 2006-06-23  Bruno Haible  <bruno@clisp.org>
81798
81799         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81800
81801 2006-06-23  Bruno Haible  <bruno@clisp.org>
81802
81803         * lib/stdint_.h: Treat IRIX like OpenBSD.
81804
81805 2006-06-23  Bruno Haible  <bruno@clisp.org>
81806
81807         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81808         ISO C 99 Technical Corrigendum 1.
81809
81810 2006-06-22  Simon Josefsson  <jas@extundo.com>
81811
81812         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81813         MinGW.
81814
81815 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81816
81817         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81818         needed.  Some compiler complained about some of them.  Problem reported
81819         by Larry Jones in
81820         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81821
81822 2006-06-21  Simon Josefsson  <jas@extundo.com>
81823
81824         * tests/test-getaddrinfo.c: New file.
81825
81826         * modules/getaddrinfo-tests: New file.
81827
81828         * MODULES.html.sh: Add inet_pton.
81829
81830         * modules/inet_pton: New file.
81831
81832 2006-06-21  Simon Josefsson  <jas@extundo.com>
81833
81834         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81835         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81836         of using the (limited) gnulib implementation on Windows XP.
81837
81838         * m4/inet_pton.m4: New file.
81839
81840 2006-06-21  Simon Josefsson  <jas@extundo.com>
81841
81842         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81843         variable.
81844
81845         * lib/socket_.h: Don't define WINVER.
81846
81847         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81848         slightly modified to work in gnulib.
81849
81850 2006-06-21  Simon Josefsson  <jas@extundo.com>
81851
81852         * doc/gnulib.texi (Windows sockets): Add.
81853
81854 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/read-file.c (fread_file): Start with buffer allocation of
81857         0 bytes rather than 1 byte; this simplifies the code.
81858         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81859         code to free buffer and save/restore errno.
81860         (internal_read_file): Remove unused local.
81861
81862 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81865         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81866         Problem reported by Denis Excoffier in
81867         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81868
81869 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81870
81871         * modules/sys_socket, modules/socklen: Include sys/types since
81872         FreeBSD 4.x's sys/socket.h needs it.
81873
81874 2006-06-19  Simon Josefsson  <jas@extundo.com>
81875
81876         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81877
81878 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81879
81880         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81881
81882 2006-06-19  Bruno Haible  <bruno@clisp.org>
81883
81884         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81885         and FULL_PATH_INTTYPES_H in angle brackets.
81886         Reported by Mark D. Baushke <mdb@gnu.org>.
81887
81888 2006-06-17  Eric Blake  <ebb9@byu.net>
81889
81890         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81891         errno.
81892
81893 2006-06-17  Bruno Haible  <bruno@clisp.org>
81894
81895         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81896         <sys/inttypes.h>.
81897
81898 2006-06-17  Bruno Haible  <bruno@clisp.org>
81899
81900         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81901         whether errno is declared. Assume <errno.h> declares errno.
81902
81903 2006-06-17  Bruno Haible  <bruno@clisp.org>
81904
81905         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81906
81907 2006-06-17  Bruno Haible  <bruno@clisp.org>
81908
81909         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81910         problem on Solaris 2.5.1.
81911
81912 2006-06-16  Eric Blake  <ebb9@byu.net>
81913
81914         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81915         * lib/unicodeio.c [!defined errno]: Likewise.
81916         * lib/strtol.c [!defined errno]: Likewise.
81917         * lib/strtod.c [!defined errno]: Likewise.
81918
81919 2006-06-15  Eric Blake  <ebb9@byu.net>
81920
81921         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81922
81923 2006-06-15  Eric Blake  <ebb9@byu.net>
81924
81925         * config/srclist.txt (ssize_t.m4): Lose sync.
81926
81927 2006-06-15  Bruno Haible  <bruno@clisp.org>
81928
81929         * modules/stdint (Files): Include m4/full-header-path.m4,
81930         m4/size_max.m4, m4/wchar_t.m4.
81931         (Makefile.am): Many more substitutions.
81932         * modules/stdint-tests: New file.
81933         * tests/test-stdint.c: New file.
81934
81935 2006-06-15  Bruno Haible  <bruno@clisp.org>
81936
81937         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81938         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81939         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81940         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81941         gl_CHECK_TYPE_SAME): New macros.
81942
81943 2006-06-15  Bruno Haible  <bruno@clisp.org>
81944
81945         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81946
81947 2006-06-15  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/stdint_.h: Rewritten to be fully auto-configured.
81950         Fixes bug on HP-UX/IA64.
81951
81952 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         * lib/getdate.y (__attribute__): Don't define if already defined.
81955         Problem reported by Larry Jones.
81956         * lib/utimens.c (__attribute__): Likewise.
81957
81958 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81961         reported by Andreas Schwab.
81962
81963 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81964             Bruno Haible  <bruno@clisp.org>
81965
81966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81967         check for the declaration of strnlen and a run test that exposes the
81968         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81969         rpl_strndup.
81970
81971 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81972             Bruno Haible  <bruno@clisp.org>
81973
81974         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81975
81976 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81977
81978         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81979         compile test, for Tru64 4.0D.
81980
81981 2006-05-28  Karl Berry  <karl@gnu.org>
81982
81983         * config/srclist.txt (printf-args.c): lose sync.
81984
81985 2006-05-26  Martin Lambers  <marlam@marlam.de>
81986
81987         * lib/getpass.c: Updates the test for the native W32 API, and adds
81988         missing includes, thus fixing compilation warnings.
81989
81990 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81991
81992         * lib/exclude.c (exclude_fnmatch): New function.
81993         (excluded_file_name): Call exclude_fnmatch.
81994         * lib/exclude.h (excluded_file_name): New prototype
81995
81996 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * lib/tempname.c (small_open, large_open): New macros.
81999         (__open, __open64) [!_LIBC]: Remove.
82000         (__gen_tempname): Use small_open and large_open instead of __open
82001         and __open64.  This fixes a portability bug on HP-UX 11.11i
82002         reported by Simon Wing-Tang in
82003         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82004
82005 2006-05-24  Bruno Haible  <bruno@clisp.org>
82006
82007         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82008         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82009         Reported by Thorsten Maerz <torte@netztorte.de> via
82010         Aaron Stone <aaron@serendipity.cx>.
82011
82012 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82015         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82016         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82017         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82018         not really conditional on the cache.
82019         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82020
82021 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82022
82023         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82024         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82025         (my_usleep): Don't mishandle maximum value.
82026
82027 2006-05-19  Jim Meyering  <jim@meyering.net>
82028
82029         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82030
82031 2006-05-17  Bruno Haible  <bruno@clisp.org>
82032
82033         Cygwin portability.
82034         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82035
82036 2006-05-17  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/stdint_.h: Fix recognition of Cygwin.
82039
82040 2006-05-15  Bruno Haible  <bruno@clisp.org>
82041
82042         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82043         on libtool patch by Ralf Wildenhues.
82044
82045 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82048         test for C99 conformance; (bool) 0.5 is an integer constant
82049         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82050         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82051
82052 2006-05-11  Simon Josefsson  <jas@extundo.com>
82053
82054         * m4/xvasprintf.m4: Fix obvious typo.
82055
82056 2006-05-11  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82059         James Lemley.
82060
82061 2006-05-10  Simon Josefsson  <jas@extundo.com>
82062
82063         * lib/md4.c: Typo fix, update copyright years.
82064         (K1, K2): Don't use L because it turn computations into 64-bit on
82065         64-bit platforms.
82066
82067 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82068
82069         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82070         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82071         unwanted sign propagation, e.g., on hosts with 64-bit int.
82072         There still are some problems with reeelly weird theoretical hosts
82073         (e.g., 33-bit int) but it's not worth worrying about now.
82074         * lib/sha1.c (rol): Likewise.
82075         (K1, K2, K3, K4): Remove unnecessary L suffix.
82076
82077 2006-05-10  Bruno Haible  <bruno@clisp.org>
82078
82079         * lib/des.c: Cast to avoid warnings.
82080
82081 2006-05-09  Bruno Haible  <bruno@clisp.org>
82082
82083         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82084         (Depends-on): Depend also on xsize, stdarg.
82085         (configure.ac): Add gl_XVASPRINTF.
82086
82087 2006-05-09  Bruno Haible  <bruno@clisp.org>
82088
82089         * m4/xvasprintf.m4: New file.
82090
82091 2006-05-09  Bruno Haible  <bruno@clisp.org>
82092
82093         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82094         (EOVERFLOW): Define fallback value.
82095         (xstrcat): New function.
82096         (xvasprintf): Recognize the special case of a string concatenation.
82097
82098 2006-05-08  Eric Blake  <ebb9@byu.net>
82099
82100         * gnulib-tool (func_version): Base copyright year on CVS date.
82101         (func_emit_copyright_notice): New function.
82102         (func_emit_lib_Makefile_am): Use it.
82103         (func_emit_tests_Makefile_am): Likewise.
82104         (func_import): Likewise.
82105
82106 2006-05-08  Bruno Haible  <bruno@clisp.org>
82107
82108         * modules/stdarg: New file.
82109         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82110
82111 2006-05-08  Bruno Haible  <bruno@clisp.org>
82112
82113         * m4/stdarg.m4: New file, from GNU gettext.
82114
82115 2006-05-08  Bruno Haible  <bruno@clisp.org>
82116
82117         * config/srclist.txt (build-aux/config.rpath): different from latest
82118         release.
82119
82120 2006-05-08  Bruno Haible  <bruno@clisp.org>
82121
82122         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82123
82124 2006-05-05  Jim Meyering  <jim@meyering.net>
82125
82126         * m4/warning.m4: New file, derived from bison's file by the same name.
82127
82128 2006-05-03  Bruno Haible  <bruno@clisp.org>
82129
82130         * lib/stdint_.h: Shorter URL.
82131         * lib/inttypes.h: Likewise.
82132
82133 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82134
82135         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82136
82137 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * lib/verify.h: Document the internals better.  Most of this change
82140         was written by Bruno Haible.
82141
82142 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * doc/verify.texi: New file, partly based on a proposal by
82145         Bruno Haible.
82146
82147 2006-05-02  Bruno Haible  <bruno@clisp.org>
82148
82149         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82150         test from here...
82151         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82152
82153 2006-04-29  Bruno Haible  <bruno@clisp.org>
82154
82155         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82156         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82157
82158 2006-04-29  Bruno Haible  <bruno@clisp.org>
82159
82160         * gnulib-tool: Make --update option actually work.
82161
82162 2006-04-29  Bruno Haible  <bruno@clisp.org>
82163
82164         * doc/gcd.texi: New file.
82165         * doc/gnulib.texi: Include it.
82166
82167 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * lib/getdate.y (get_date): When adding relative date, start with the
82170         initial time, not with the result of the first mktime call.
82171
82172 2006-04-25  Bruno Haible  <bruno@clisp.org>
82173
82174         * gnulib-tool (func_import): Output the include directives in three
82175         blocks, sorted separately.
82176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82177
82178 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82179
82180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82181         to define main with arguments, for C++.  Reported by Eric Blake.
82182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82183         Prefer 'int main ()' to 'int main (void)', for C++.
82184         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82186         for 'main', for C99 and C++.
82187
82188 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82191         Don't assume that exit status -1 is valid.
82192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82193         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82194         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82195         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82196         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82197         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82198         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82199         functions can be used without declaring them, or that you can
82200         exit with status -1.
82201         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82202
82203 2006-04-24  Karl Berry  <karl@gnu.org>
82204
82205         * config/srclist.txt (longdouble.m4): sync lost.
82206
82207 2006-04-24  Eric Blake  <ebb9@byu.net>
82208
82209         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82210
82211 2006-04-24  Bruno Haible  <bruno@clisp.org>
82212
82213         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82214         poll() implementation in AIX.
82215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82216
82217 2006-04-24  Bruno Haible  <bruno@clisp.org>
82218
82219         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82220         assigned exactly once.
82221
82222 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82223             Bruno Haible  <bruno@clisp.org>
82224
82225         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82226         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82227         for AM_CPPFLAGS.
82228
82229 2006-04-23  Bruno Haible  <bruno@clisp.org>
82230
82231         * modules/copy-file: Depend on unistd.
82232         * modules/execute: Likewise.
82233         * modules/fatal-signal: Likewise.
82234         * modules/findprog: Likewise.
82235         * modules/mkdtemp : Likewise.
82236         * modules/pipe: Likewise.
82237         * modules/wait-process: Likewise.
82238
82239 2006-04-23  Bruno Haible  <bruno@clisp.org>
82240
82241         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82242         condition was already detected.
82243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82244
82245 2006-04-23  Bruno Haible  <bruno@clisp.org>
82246
82247         * lib/copy-file.c: Include <unistd.h> unconditionally.
82248         * lib/execute.c: Likewise.
82249         * lib/fatal-signal.c: Likewise.
82250         * lib/findprog.c: Likewise.
82251         * lib/mkdtemp.c: Likewise.
82252         * lib/pipe.h: Likewise.
82253         * lib/pipe.c: Likewise.
82254         * lib/wait-process.h: Likewise.
82255
82256 2006-04-23  Bruno Haible  <bruno@clisp.org>
82257
82258         * gnulib-tool (func_usage): Fix --import description. Document
82259         --update.
82260         (func_import): Create temporary file in a temporary directory, if
82261         --dry-run is specified. Silence errors from 'grep' when there are no
82262         m4 files in $m4dir.
82263         (func_create_testdir): Silence errors from 'grep' when there are no
82264         m4 files in $m4dir.
82265         Reported by Karl Berry <karl@freefriends.org>.
82266
82267 2006-04-20  Bruno Haible  <bruno@clisp.org>
82268
82269         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82270         one argument, so that the code will be portable to Autoconf 2.60.
82271         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82272         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82273         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82274
82275 2006-04-19  Derek Price  <derek@ximbiot.com>
82276             Eric Blake  <ebb9@byu.net>
82277
82278         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82279         rather than "/full/path.h".  Update comment to match.  Shorten &
82280         generalize m4_translit call via AS_TR_CPP.
82281
82282 2006-04-19  Derek Price  <derek@ximbiot.com>
82283             Eric Blake  <ebb9@byu.net>
82284
82285         * lib/inttypes.h: Correct grammar in comment.
82286
82287 2006-04-18  Derek Price  <derek@ximbiot.com>
82288             Paul Eggert  <eggert@cs.ucla.edu>
82289
82290         * modules/inttypes: New file.
82291         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82292
82293 2006-04-18  Derek Price  <derek@ximbiot.com>
82294             Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82297         New files.
82298
82299 2006-04-18  Derek Price  <derek@ximbiot.com>
82300             Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/inttypes.h: New file.
82303         * lib/strtoimax.c: Assume <inttypes.h>.
82304
82305 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82308         isn't mounted.  Problem reported by Kir Kolyshkin.
82309
82310 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82313         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82314         Derek R. Price.
82315         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82316         implementation.
82317
82318 2006-04-12  Eric Blake  <ebb9@byu.net>
82319
82320         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82321         is now done automatically by the corresponding Autoconf macro.
82322
82323 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82326         time_r.h.
82327
82328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82329
82330         Merge regex changes from libc, removing some of our
82331         POSIX-conformance changes that were rejected and redoing them in a
82332         less-intrusive way.
82333
82334         * lib/regcomp.c (re_compile_internal, init_dfa):
82335         Length arg is now size_t, not Idx.  All uses changed.
82336         (peek_token): Forward decl now says internal_function.
82337         (__re_error_msgid, __re_error_msgid_idx):
82338         Now static rather than extern with attribute_hidden.
82339         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82340         For some reason libc prefers K&R style defns for external functions.
82341         (regerror) [!defined _LIBC]: Likewise.
82342         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82343         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82344         (build_range_exp, build_collating_symbol):
82345         Use K&R-style defn.
82346         (re_compile_fastmap): Use '\0' to memset, not 0.
82347         (utf8_sb_map): Make the calculations more obvious.
82348         (init_dfa, parse_bracket_exp, build_charclass_op):
82349         Call calloc and cast result, as glibc does.
82350         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82351         (build_range_exp, build_collating_symbol):
82352         Now internal functions.
82353
82354         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82355
82356         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82357         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82358         Don't depend on VMS; depend on __VMS instead, for POSIX
82359         namespace cleanness.
82360         (regoff_t): Define to ssize_t, not long int.
82361
82362         Remove the REG_ macros named below.  Instead, make the old names
82363         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82364         __USE_GNU_REGEX.
82365         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82366         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82367         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82368         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82369         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82370         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82371         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82372         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82373         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82374         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82375         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82376         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82377         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82378         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82379         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82380         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82381         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82382         (REG_NREGS):
82383         Remove.  All uses replaced by the old RE_* names.
82384         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82385         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82386         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82387         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82388         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82389         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82390         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82391         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82392         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82393         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82394         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82395         Don't bother having these macros be independent of each others'
82396         values, since they no longer exist in the POSIX name space.
82397
82398         Rename the following member names back to their old names,
82399         unless !__USE_GNU_REGEX.  All uses changed back.
82400         (buffer): Renamed from re_buffer.
82401         (allocated): Renamed from re_allocated.
82402         (used): Renamed from re_used.
82403         (syntax): Renamed from re_syntax.
82404         (fastmap): Renamed from re_fastmap.
82405         (translate): Renamed from re_translate.
82406         (can_be_null): Renamed from re_can_be_null.
82407         (regs_allocated): Renamed from re_regs_allocated.
82408         (fastmap_accurate): Renamed from re_fastmap_accurate.
82409         (no_sub): Renamed from re_no_sub.
82410         (not_bol): Renamed from re_not_bol.
82411         (not_eol): Renamed from re_not_eol.
82412         (newline_anchor): Renamed from re_newline_anchor.
82413         (num_regs): Renamed from rm_num_regs.
82414         (start): Renamed from rm_start.
82415         (end): Renamed from rm_end.
82416
82417         (free_state): Move up a bit.
82418
82419         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82420         #define to be empty.
82421         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82422         when that is what is intended.
82423         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82424         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82425         (MAX): New macro.
82426         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82427         All uses changed back to re_malloc, etc.  It's now the caller's
82428         responsibility to check for overflow; all callers changed.
82429         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82430         (re_x2nrealloc): Remove.
82431         (free_state): Remove decl.
82432
82433         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82434         (re_set_registers, re_exec):
82435         Use K&R-style defn.
82436
82437         2006-01-31  Roland McGrath  <roland@redhat.com>
82438
82439         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82440         Reported by Mike Frysinger <vapier@gentoo.org>.
82441
82442         2006-01-15  Andreas Jaeger  <aj@suse.de>
82443
82444         [BZ #1950]
82445         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82446         build_wcs_upper_buffer change.
82447         (build_wcs_upper_buffer): Change return type.
82448
82449         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82450
82451         * lib/regex_internal.h: Include <stdint.h> if available.
82452
82453         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82454
82455         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82456
82457         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82458
82459         * lib/regcomp.c: Adjust for changed secondary hash function.
82460
82461         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82462
82463         * lib/regex.h: Pretty printing.
82464         Clean up namespace a bit.
82465
82466         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82467
82468         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82469         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82470
82471         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82472                     Ulrich Drepper  <drepper@redhat.com>
82473
82474         [BZ #1302]
82475         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82476         changed.
82477         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82478
82479         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82480
82481         [BZ #281]
82482         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82483         * lib/regcomp.c: Remove unnecessary uses of
82484         unsigned RE_TRANSLATE_TYPE.
82485         * lib/regex_internal.h: Likewise.
82486         * lib/regex_internal.c: Likewise.
82487         * lib/regexec.c: Likewise.
82488         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82489
82490         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82491
82492         * lib/regexec.c (find_recover_state): Remove unnecessary
82493         initialization.
82494         (transit_state_bkref): Make DFA a const pointer.
82495         (get_subexp): Likewise.
82496         (check_arrival): Likewise.
82497         (update_cur_sifted_state): Likewise.
82498         (re_search_internal): Likewise.
82499         (prune_impossible_nodes): Likewise.
82500         (acquire_init_state_context): Likewise.
82501         (proceed_next_node): Likewise.
82502         (set_regs): Likewise.
82503         (free_fail_stack_return): Likewise.
82504         (check_arrival_expand_ecl): Mark DFA parameter as const.
82505         (check_arrival_expand_ecl_sub): Likewise.
82506         (check_subexp_limits): Likewise.
82507         (sub_epsilon_src_nodes):  Likewise.
82508         (add_epsilon_src_nodes):  Likewise.
82509         (merge_state_array): Likewise.
82510         (update_regs): Likewise.
82511         (build_trtable): Likewise.
82512         (sift_states_backward): Mark MCTX parameter as const.
82513         (build_sifted_states): Likewise.
82514         (update_cur_sifted_state): Likewise.
82515         (sift_states_mkref): Likewise.
82516         (check_arrival_expand_ecl): Mark eclosure as const.
82517         (check_dst_limits_calc_pos_1): Likewise.
82518         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82519         pointer.
82520
82521         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82522
82523         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82524         (transit_state_sb): Likewise.
82525         (transit_state_mb): Likewise.
82526         (sift_states_iter_mb): Likewise.
82527         (check_arrival_add_next_nodes): Likewise.
82528         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82529         [_LIBC] (re_search_2_stub): Use mempcpy.
82530
82531         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82532         mbrtowc for very simple UTF-8 case.
82533
82534         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82535         a pointer-to-const.
82536         (re_acquire_state_context): Likewise.
82537         * lib/regex_internal.h: Adjust prototypes.
82538
82539         * lib/regex.c: Prevent using C++ compilers.
82540
82541         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82542         (re_acquire_state_context): Likewise.
82543
82544 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * modules/regex (Depends-on): Add ssize_t.
82547
82548 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82549
82550         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82551         translation table.
82552
82553 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82554
82555         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82556
82557 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82558             Bruno Haible  <bruno@clisp.org>
82559
82560         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82561         <sys/types.h> and <inttypes.h>.
82562
82563 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82564
82565         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82566         `__error_t_defined', so argp.h will not typedef the former.
82567
82568 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82571         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82572         glibc names.  Even if glibc is changed to conform to POSIX, the
82573         traditional names will be available anyway, since regex depends on
82574         the extensions module.  Also, fix a longstanding typo in the
82575         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82576         reported by Emanuele Giaquinta.  Also, change sense of cached
82577         variable, so that the message makes sense.
82578
82579 2006-03-24  Simon Josefsson  <jas@extundo.com>
82580
82581         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82582         including some doc fixes.
82583         (base64_encode_alloc): Fix +1 bug on allocation failures.
82584
82585 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82586
82587         * lib/base64.c (base64_encode): Do not read past end of array with
82588         unsanitized input on systems with CHAR_BIT > 8.
82589
82590 2006-03-24  Eric Blake  <ebb9@byu.net>
82591
82592         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82593
82594 2006-03-22  Karl Berry  <karl@gnu.org>
82595
82596         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82597         * config/srclistvars.sh (COREUTILS): new var.
82598
82599 2006-03-17  Jim Meyering  <jim@meyering.net>
82600
82601         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82602         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82603
82604 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82607         no longer needs it.  Instead, check that regoff_t is as least
82608         as wide as ptrdiff_t.
82609
82610         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82611         so that our regex.h stays compatible with the installed regex.
82612         This is helpful for installers who configure --without-included-regex.
82613         Problem reported by Emanuele Giaquinta.
82614
82615 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82616
82617         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82618         Typedef to long int, not to off_, as POSIX will likely change
82619         in that direction.
82620
82621 2006-03-15  Eric Blake  <ebb9@byu.net>
82622
82623         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82624
82625 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82626
82627         * lib/argp-help.c (validate_uparams): Fix typo
82628         * lib/argp-parse.c (argp_default_options): Consistently begin help
82629         messages with a lowercase letter.
82630
82631 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82634         overrun buffers and shouldn't be used (much as gets shouldn't be
82635         used).
82636         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82637
82638 2006-03-08  Simon Josefsson  <jas@extundo.com>
82639
82640         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82641         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82642
82643 2006-03-08  Simon Josefsson  <jas@extundo.com>
82644
82645         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82646         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82647
82648 2006-03-08  Simon Josefsson  <jas@extundo.com>
82649
82650         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82651         signal that configure disabled the device.
82652
82653 2006-03-08  Simon Josefsson  <jas@extundo.com>
82654
82655         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82656         languages.
82657
82658 2006-03-07  Simon Josefsson  <jas@extundo.com>
82659
82660         * modules/getopt (Depends-on): Add unistd.
82661
82662         * modules/unistd: New file.
82663
82664 2006-03-07  Simon Josefsson  <jas@extundo.com>
82665
82666         * modules/gc-random: New file.
82667
82668 2006-03-07  Simon Josefsson  <jas@extundo.com>
82669
82670         * m4/unistd_h.m4: New file.
82671
82672 2006-03-07  Simon Josefsson  <jas@extundo.com>
82673
82674         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82675         test to be side-effect free by storing the result in the cache
82676         variable gl_cv_lib_readline, and moving the assignment of
82677         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82678         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82679
82680 2006-03-07  Simon Josefsson  <jas@extundo.com>
82681
82682         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82683         error on missing devices (the functions will return an error).
82684
82685         * m4/gc.m4: Move random stuff to gc-random.m4
82686
82687 2006-03-07  Simon Josefsson  <jas@extundo.com>
82688
82689         * lib/unistd_.h: New file.
82690
82691 2006-03-07  Simon Josefsson  <jas@extundo.com>
82692
82693         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82694
82695 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82698         Problem reported by Juan Manuel Guerrero.
82699
82700 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82703         the unistd module.
82704         * lib/getlogin_r.c: Likewise.
82705         * lib/getlogin_r.h: Likewise.
82706         * lib/glob.c: Likewise.
82707         * lib/pagealign_alloc.c: Likewise.
82708         * lib/unistd_.h: Remove; no longer needed.
82709
82710 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82711
82712         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82713         Add unistd.
82714         * modules/c-stack (Depends-on): Add unistd.
82715         * modules/getlogin_r: Likewise.
82716         * modules/glob: Likewise.
82717         * modules/pagealign_alloc: Likewise.
82718         * modules/unistd (Files): Remove lib/unistd_.h.
82719         (EXTRA_DIST): Remove.
82720         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82721         need unistd_.h.
82722         (MOSTLYCLEANFILES): Remove unistd.h-t.
82723
82724 2006-03-03  Simon Josefsson  <jas@extundo.com>
82725
82726         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82727
82728 2006-03-03  Simon Josefsson  <jas@extundo.com>
82729
82730         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82731         libidn and bison.
82732
82733 2006-03-03  Simon Josefsson  <jas@extundo.com>
82734
82735         * build-aux/maint.mk: Add indent target.
82736
82737 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82738
82739         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82740         our replacement poll.h in any case, to avoid a differing
82741         declaration from a system header.  Seen on AIX.
82742
82743 2006-03-01  Simon Josefsson  <jas@extundo.com>
82744
82745         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82746         <kasal@ucw.cz>.
82747
82748 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * modules/gettime (Depends-on): Add extensions module.
82751         * modules/nanosleep (Depends-on): Likewise.
82752         * modules/settime (Depends-on): Likewise.
82753
82754 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82757         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82758         pedantically.
82759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82760         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82761
82762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82763         not "==".  Reported by Ralf Wildenhues.
82764
82765 2006-03-01  Karl Berry  <karl@gnu.org>
82766
82767         * doc/Copyright/request-*: new files, synced from gnuorg.
82768
82769 2006-03-01  Karl Berry  <karl@gnu.org>
82770
82771         * config/srclist.txt (Copyright/*): new entries.
82772
82773 2006-02-28  Simon Josefsson  <jas@extundo.com>
82774
82775         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82776
82777 2006-02-27  Simon Josefsson  <jas@extundo.com>
82778
82779         * lib/base64.h: Indent #define's.  From Jim Meyering
82780         <jim@meyering.net>.
82781
82782 2006-02-27  Jim Meyering  <jim@meyering.net>
82783
82784         Revert the change of 2006-02-24, so these files can continue
82785         to be sync'd from gettext.
82786         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82787         of `config.h'.
82788
82789 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * modules/intprops: New file.
82792         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82793         Add intprops.
82794         * modules/getloadavg (Files): Remove lib/intprops.h.
82795         (Depends-on): Add intprops.
82796         * modules/human: Likewise.
82797         * modules/inttostr: Likewise.
82798         * modules/openat: Likewise.
82799         * modules/sig2str: Likewise.
82800         * modules/userspec: Likewise.
82801         * modules/utimecmp: Likewise.
82802         * modules/xnanosleep: Likewise.
82803         * modules/xstrtol: Likewise.
82804
82805 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82806
82807         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82808         * modules/lock-tests (TESTS): Use $(EXEEXT).
82809         * modules/tls-tests: Likewise.
82810         * modules/argp-tests: Likewise.
82811         (check_PROGRAMS): New var, replacing...
82812         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82813
82814 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82815
82816         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82817         `config.h'.
82818
82819 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82822
82823 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82824
82825         Sync from coreutils.
82826         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82827         gl_CHDIR_SAFER.
82828
82829 2006-02-22  Jim Meyering  <jim@meyering.net>
82830
82831         Sync from coreutils.
82832         * m4/chdir-safer.m4: New file.
82833
82834 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82837         AT_FDCWD exceeds INT_MAX.
82838         * lib/openat.h (AT_FDCWD): Likewise.
82839
82840 2006-02-17  Eric Blake  <address@hidden>
82841
82842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82843
82844 2006-02-16  Simon Josefsson  <jas@extundo.com>
82845
82846         * modules/getaddrinfo (Depends-on): Add sys_socket.
82847
82848 2006-02-15  Simon Josefsson  <jas@extundo.com>
82849
82850         * build-aux/maint.mk: Add dsyntax-check rule.
82851
82852 2006-02-15  Eric Blake  <ebb9@byu.net>
82853
82854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82855         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82856         'present but cannot compile' warnings on cygwin.
82857         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82858         use ws2tcpip.h if sys/socket.h works.
82859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82860         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82861
82862 2006-02-14  Simon Josefsson  <jas@extundo.com>
82863
82864         * modules/maintainer-makefile (Files): Rename.
82865
82866         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82867         and (the local) Makefile.cfg to maint-cfg.mk.
82868
82869         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82870         to the latter.
82871
82872         * modules/maintainer-makefile: New module.
82873
82874         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82875         severaly stripped to make it possible to build it up from scratch
82876         with reliable tests.
82877
82878         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82879         fixes to permit overriding the default actions when configure and
82880         makefile are not available.
82881
82882 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         Sync from coreutils.
82885         * modules/lstat (Depends-on): Don't depend on xalloc.
82886         (License): Change from GPL to LGPL, since this is now simply a
82887         replacement for a libc function.
82888
82889 2006-02-14  Jim Meyering  <jim@meyering.net>
82890
82891         Sync from coreutils.
82892
82893         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82894         failure on deficient systems, and simplify gnulib lgpl dependencies.
82895         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82896         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82897
82898         * lib/xalloc-die.c: Remove unused definition of N_.
82899
82900 2006-02-14  Jim Meyering  <jim@meyering.net>
82901
82902         Sync from coreutils.
82903         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82904         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82905         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82906         double-quote uses of that variable, to accommodate the rare case in
82907         which getmntent is available in none of the libraries checked.  This
82908         happens at least on FreeBSD 5.0.
82909
82910 2006-02-13  Simon Josefsson  <jas@extundo.com>
82911
82912         * gnulib-tool (Usage): Fix --import, from
82913         karl@freefriends.org (Karl Berry).
82914
82915 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82916
82917         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82918
82919 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82920
82921         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82922         "autoupdate" on 2005-12-12.
82923
82924 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * modules/closeout (Depends-on): Remove atexit.
82927
82928 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82931         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82932
82933 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82934
82935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82936         __EXTENSIONS__ if this causes compilation to fail.  Problem
82937         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82938         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82939
82940 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82943         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82945         All uses changed.
82946
82947 2006-01-26  Simon Josefsson  <jas@extundo.com>
82948
82949         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82950         prototype is visible on mingw32.
82951
82952         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82953         for mingw32.
82954
82955         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82956         mingw32).
82957
82958 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82961         attempt to open for write; this always fails, at least on POSIX
82962         hosts.  This reinstates the 2006-01-09 change, which was
82963         inadvertently removed.
82964
82965 2006-01-26  Bruno Haible  <bruno@clisp.org>
82966
82967         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82968         Reported by Paul Eggert.
82969
82970 2006-01-26  Bruno Haible  <bruno@clisp.org>
82971             Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         * lib/stdbool_.h (_Bool)
82974         [(! (defined __cplusplus || defined __BEOS__)
82975           && !defined __GNUC__
82976           && !(defined __HP_cc || defined __xlc__
82977                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82978                || defined __sgi))]:
82979         #define to signed char in these cases too; this simplifies
82980         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82981         etc., separately) and makes it more conservative.
82982
82983 2006-01-25  Simon Josefsson  <jas@extundo.com>
82984
82985         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82986         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82987         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82988
82989 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82990
82991         * lib/argp-namefrob.h: Bugfix. Remove stray #
82992
82993 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82996         so that we test the test.
82997         Check for yet another HP-UX cc bug involving *bool |= bool.
82998
82999 2006-01-25  Karl Berry  <karl@gnu.org>
83000
83001         * config/srclist.txt (vasnprintf.c): sync lost.
83002
83003 2006-01-25  Jim Meyering  <jim@meyering.net>
83004
83005         Sync from the stable (b5) branch of coreutils:
83006
83007         * lib/fts.c (fts_children): Don't let close() clobber errno from
83008         failed fchdir().
83009
83010         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83011         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83012         a dangling symlink.  That can also happen at least for ELOOP.
83013         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83014         FYI, this bug predates the inclusion of fts.c in coreutils.
83015
83016         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83017         in their own block, so pre-c99 compilers don't object.
83018
83019         Avoid the double-free (first in fts_read, second in fts_close) that
83020         would occur when an `active' directory is made inaccessible (e.g.,
83021         via chmod a-x) during a traversal.
83022         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83023         before returning.  Reproduce this failure by
83024         mkdir -p a/b; cd a; chmod a-x . b
83025         Reported by Stavros Passas.
83026
83027 2006-01-25  Jim Meyering  <jim@meyering.net>
83028
83029         * lib/fileblocks.c: Remove more useless parentheses.
83030         * lib/readutmp.h: Likewise.
83031
83032 2006-01-25  Bruno Haible  <bruno@clisp.org>
83033
83034         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83035         warnings.
83036         Reported by Paul Eggert.
83037
83038 2006-01-25  Bruno Haible  <bruno@clisp.org>
83039
83040         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83041         rid of a trap command. For Solaris sh.
83042         Reported by Mark D. Baushke <mdb@gnu.org>.
83043
83044 2006-01-24  Simon Josefsson  <jas@extundo.com>
83045
83046         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83047         Bruno.
83048
83049 2006-01-24  Karl Berry  <karl@gnu.org>
83050
83051         * config/srclist.txt (argp-namefrob.h): sync lost.
83052
83053 2006-01-24  Jim Meyering  <jim@meyering.net>
83054
83055         * modules/openat (Files): Add lib/intprops.h.
83056         From Mark D. Baushke.
83057
83058 2006-01-24  Jim Meyering  <jim@meyering.net>
83059
83060         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83061         Reported by Mark D. Baushke.
83062
83063 2006-01-24  Jim Meyering  <jim@meyering.net>
83064
83065         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83066
83067 2006-01-24  Bruno Haible  <bruno@clisp.org>
83068
83069         * modules/strnlen (Maintainer): Change from glibc to all.
83070
83071 2006-01-24  Bruno Haible  <bruno@clisp.org>
83072
83073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83074         Patch by Paul Eggert.
83075
83076 2006-01-24  Bruno Haible  <bruno@clisp.org>
83077
83078         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83079         already has it.
83080         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83081         2005-11-26.
83082
83083         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83084         'signed char' to avoid problems with the built-in _Bool type.
83085         Reported by Paul Eggert on 2005-11-26.
83086
83087 2006-01-24  Bruno Haible  <bruno@clisp.org>
83088
83089         * gnulib-tool (func_import): Avoid constructing complicated sed
83090         expressions inside backquote.
83091         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83092
83093 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83094
83095         These changes imported from libc.
83096         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83097         test and two separate function calls.
83098         * lib/strndup.c (__strndup): Add libc_hidden_def.
83099
83100 2006-01-23  Simon Josefsson  <jas@extundo.com>
83101
83102         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83103         Remove the test_*_SOURCES variable: automake infers it by default.
83104         * modules/tls-tests: Likewise.
83105
83106 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83107
83108         Work around porting bugs reported by Dieter in
83109         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83110         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83111         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83112         Include "getopt.h" first, to check interface.
83113         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83114         !HAVE_DECL_GETENV.
83115         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83116         (__strndup): Revert to K&R-style function dfns, the glibc style.
83117         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83118         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83119         Include strnlen.h first, to get prototype properly.
83120         (strnlen): Renamed from __strnlen.
83121         Remove weak alias.
83122
83123 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83124
83125         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83126
83127 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83128
83129         * config/srclist.txt: Adjust to reflect glibc reorganization.
83130         This affects only comments.
83131
83132 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83133
83134          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83135          Reported by Bruce Korb <bkorb@gnu.org>.
83136
83137 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83138
83139         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83140         to pacify gcc -Wswitch-default.
83141
83142 2006-01-22  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83145         temporary buffer for sprintf, take into account the precision also
83146         for 'd', 'i', 'u', 'o', 'x', 'X'.
83147
83148 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83149
83150         * modules/argp-tests: New module
83151         * tests/test-argp.c: New file
83152         * tests/test-argp-2.sh: New file
83153
83154 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83155
83156         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83157         (__argp_base_name): Removed
83158         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83159         typo.
83160         (__argp_base_name): Provide macro definition or extern declaration
83161         depending on the configuration
83162
83163 2006-01-20  Simon Josefsson  <jas@extundo.com>
83164
83165         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83166
83167 2006-01-20  Simon Josefsson  <jas@extundo.com>
83168
83169         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83170
83171 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83174         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83175         Suggested by Bruno Haible.
83176
83177 2006-01-20  Karl Berry  <karl@gnu.org>
83178
83179         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83180         until changes propagate, I guess.
83181
83182 2006-01-19  Simon Josefsson  <jas@extundo.com>
83183
83184         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83185
83186 2006-01-19  Simon Josefsson  <jas@extundo.com>
83187
83188         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83189
83190 2006-01-19  Simon Josefsson  <jas@extundo.com>
83191
83192         * gnulib-tool: Set check_PROGRAMS.
83193
83194         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83195         modules/des-tests, modules/gc-arcfour-tests,
83196         modules/gc-arctwo-tests, modules/gc-des-tests,
83197         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83198         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83199         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83200         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83201         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83202         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83203         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83204         test_*_SOURCES.
83205
83206 2006-01-18  Simon Josefsson  <jas@extundo.com>
83207
83208         * modules/socklen (Depends-on): Depend on sys_socket.
83209
83210 2006-01-18  Simon Josefsson  <jas@extundo.com>
83211
83212         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83213         modules/des-tests, modules/gc-arcfour-tests,
83214         modules/gc-arctwo-tests, modules/gc-des-tests,
83215         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83216         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83217         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83218         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83219         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83220         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83221         $(EXEEXT) to automake TESTS variable, for mingw32.
83222
83223 2006-01-17  Simon Josefsson  <jas@extundo.com>
83224
83225         * modules/socklen (Include): Need sys/socket.h.
83226
83227 2006-01-17  Bruno Haible  <bruno@clisp.org>
83228
83229         * modules/ssize_t (Include): Add <sys/types.h>.
83230
83231 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83234         it's not portable and it doesn't work with cross-compiles.
83235         Problem reported by Bruno Haible.  Fix missing-$ typo in
83236         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83237         -zignore from being used with Sun's C compiler.
83238
83239 2006-01-12  Simon Josefsson  <jas@extundo.com>
83240
83241         * lib/base64.c: Fix warning, reported by Bruno Haible
83242         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83243
83244 2006-01-12  Bruno Haible  <bruno@clisp.org>
83245
83246         * modules/ldd: New file.
83247         * build-aux/ldd.sh.in: New file.
83248         * MODULES.html.sh (Support for building libraries and executables): Add
83249         ldd.
83250
83251 2006-01-12  Bruno Haible  <bruno@clisp.org>
83252
83253         * m4/ldd.m4: New file.
83254
83255 2006-01-12  Bruno Haible  <bruno@clisp.org>
83256
83257         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83258         endless loop while replacing $auxdir with build-aux.
83259
83260 2006-01-11  Simon Josefsson  <jas@extundo.com>
83261
83262         * lib/stdint_.h (SIZE_MAX): Add missing (.
83263
83264 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         Sync from coreutils.
83267         * lib/md5.c: Fix commentary typos.
83268         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83269         * lib/md5.h (__attribute__): Remove; unused.
83270         * lib/sha1.c: Fix commentary to match md5 better.
83271         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83272         so that we don't need to worry about alignment.  All uses changed.
83273         This merges the 2005-10-28 md5 change into sha1.
83274
83275 2006-01-11  Jim Meyering  <jim@meyering.net>
83276
83277         Sync from coreutils.
83278         * lib/md5.c (OP): Fix spacing.
83279
83280 2006-01-11  Bruno Haible  <bruno@clisp.org>
83281
83282         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83283         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83284         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83285
83286 2006-01-11  Bruno Haible  <bruno@clisp.org>
83287
83288         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83289         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83290         the "early" section as well.
83291
83292 2006-01-11  Bruno Haible  <bruno@clisp.org>
83293
83294         Avoid "ar: no archive members specified" error on MacOS X.
83295         * gnulib-tool (func_modules_add_dummy): New function.
83296         (func_import, func_create_testdir): Invoke it.
83297
83298 2006-01-11  Bruno Haible  <bruno@clisp.org>
83299
83300         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83301         with $auxdir in AC_CONFIG_FILES statements.
83302
83303 2006-01-11  Bruno Haible  <bruno@clisp.org>
83304
83305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83306         Initialize also noinst_HEADERS to empty.
83307
83308 2006-01-11  Bruno Haible  <bruno@clisp.org>
83309
83310         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83311         variables.
83312         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83313         autoreconf.
83314
83315 2006-01-11  Bruno Haible  <bruno@clisp.org>
83316
83317         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83318         overridable by the user.
83319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83320
83321 2006-01-10  Simon Josefsson  <jas@extundo.com>
83322
83323         * modules/sys_socket: New file.
83324
83325 2006-01-10  Simon Josefsson  <jas@extundo.com>
83326
83327         * m4/sys_socket_h.m4: New file.
83328
83329 2006-01-10  Simon Josefsson  <jas@extundo.com>
83330
83331         * lib/socket_.h: New file.
83332
83333 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83334
83335         * modules/readutmp (Maintainer): Add myself.
83336
83337 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83338
83339         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83340         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83341         People who are still concerned with buggy memcmp implementations
83342         can invoke gl_FUNC_MEMCMP themselves.
83343
83344 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83345
83346         * lib/regex_internal.h (BITSET_WORD_BITS):
83347         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83348         preprocessor mishandles large unsigned values as if they were signed.
83349         Problem reported by Claudio Fontana in
83350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83351
83352 2006-01-10  Jim Meyering  <jim@meyering.net>
83353
83354         Avoid the double-free (first in fts_read, second in fts_close) that
83355         would occur when an `active' directory is made inaccessible (e.g.,
83356         via chmod a-x) during a traversal.
83357         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83358         before returning.  Reproduce this failure by
83359         mkdir -p a/b; cd a; chmod a-x . b
83360         Reported by Stavros Passas.
83361
83362         Sync from coreutils.
83363         * lib/sha1.c: Tweak grammar in a comment.
83364
83365 2006-01-10  Jim Meyering  <jim@meyering.net>
83366
83367         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83368         Patch by Joerg Sonnenberger.
83369
83370 2006-01-10  Bruno Haible  <bruno@clisp.org>
83371
83372         * modules/readutmp: Depend on module free.
83373         * modules/strtok_r: Depend on module restrict.
83374
83375 2006-01-10  Bruno Haible  <bruno@clisp.org>
83376
83377         * modules/gettext (configure.ac): Add an invocation of
83378         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83379
83380 2006-01-10  Bruno Haible  <bruno@clisp.org>
83381
83382         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83383         Reported by Werner Lemberg <wl@gnu.org>.
83384
83385 2006-01-10  Bruno Haible  <bruno@clisp.org>
83386
83387         * lib/localcharset.c: Update from GNU gettext.
83388
83389 2006-01-10  Bruno Haible  <bruno@clisp.org>
83390
83391         * lib/argp.h (__const): Remove macro. Use const instead.
83392         * lib/argp-fmtstream.h (__const): Likewise.
83393         * lib/glob_.h (__const): Remove macro.
83394         * lib/glob-libc.h: Use const instead of __const.
83395
83396 2006-01-10  Bruno Haible  <bruno@clisp.org>
83397
83398         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83399         variable.
83400         Needed to avoid an automake error regarding the 'gettext' module.
83401
83402 2006-01-09  Simon Josefsson  <jas@extundo.com>
83403
83404         * modules/inet_ntop (Depends-on): Add restrict.
83405
83406 2006-01-09  Simon Josefsson  <jas@extundo.com>
83407
83408         * modules/gc-rijndael-tests (License): Put under LGPL.
83409
83410         * modules/gc-des-tests (License): Likewise.
83411
83412         * modules/gc-arcfour-tests (License): Likewise.
83413
83414         * modules/gc-arctwo-tests (License): Likewise.
83415
83416         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83417
83418         * modules/gc-hmac-sha1-tests (Files): Likewise.
83419
83420         * modules/gc-hmac-md5-tests (License): Likewise.
83421
83422         * modules/gc-sha1-tests (License): Likewise.
83423
83424         * modules/gc-md5-tests (License): Likewise.
83425
83426         * modules/gc-md4-tests (License): Likewise.
83427
83428         * modules/gc-md2-tests (License): Likewise.
83429
83430         * modules/gc-tests (License): Likewise.
83431
83432         * modules/des-tests (License): Likewise.
83433
83434         * modules/md4-tests (License): Likewise.
83435
83436         * modules/md2-tests (License): Likewise.
83437
83438 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         Sync from coreutils:
83441
83442         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83443         * modules/lib-ignore: New file.
83444         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83445         chdir-safer.m4, lchmod.m4.
83446         * modules/openat: Add mkdirat.c, openat-priv.h.
83447
83448 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83449
83450         Sync from coreutils.
83451         * m4/lib-ignore.m4: New file.
83452         * m4/lchmod.m4: New file.
83453
83454 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         Sync from coreutils.
83457         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83458         for write access: POSIX says that must fail.
83459         * lib/fts.c (diropen): Likewise.
83460         * lib/save-cwd.c (save_cwd): Likewise.
83461         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83462         well, for minor improvements on hosts that lack O_DIRECTORY.
83463         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83464         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83465         Fall back on chown if open failed with EACCES.
83466
83467         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83468         Report an error at compile-time if only a 1-second nominal clock
83469         resolution is found.
83470
83471         * lib/lchmod.h: New file.
83472         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83473         (make_dir_parents): Use lchown rather than chown, and
83474         lchmod rather than chmod.
83475
83476         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83477         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83478         "proc" reported by n0dalus.
83479
83480         * lib/mountlist.c: Include <limits.h>.
83481         (dev_from_mount_options)
83482         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83483         New function.  It no longer assumes "dev=" has the System V meaning
83484         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83485         (read_file_system_list)
83486         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83487         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83488         dev= in that case.
83489
83490         * lib/posixtm.h (PDS_PRE_2000): New macro.
83491         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83492         allow_century.  All usages changed.  Reject dates outside the range
83493         1969-1999 if PDS_PRE_2000 is used.
83494
83495 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         Sync from coreutils.
83498         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83499         (Time of day items): Mention the possibility of leap seconds.
83500         Problem reported by Dr. David Alan Gilbert.
83501
83502 2006-01-09  Jim Meyering  <jim@meyering.net>
83503
83504         Sync from coreutils.
83505
83506         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83507
83508         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83509
83510         * lib/modechange.c (mode_compile): Reject an invalid mode string
83511         that starts with an octal digit.  From Andreas Gruenbacher.
83512
83513         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83514         and dup to open_safer and dup_safer, respectively.
83515         (openat_permissive): Fix typo in comment.
83516
83517         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83518         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83519         (_): Remove; no longer needed.
83520         (openat): Renamed from rpl_openat; no need for rpl_openat
83521         since openat.h renames openat for us.
83522         Replace most of the body with a call to openat_permissive,
83523         to avoid duplicate code.
83524         Port to (probably hypothetical) environments were mode_t is
83525         wider than int.
83526         (openat_permissive): Require mode arg, so that we can check
83527         types better.  Put it just after flags.  Change cwd failure
83528         indicator from pointer-to-bool to pointer-to-errno-value.
83529         All callers changed.
83530         Invoke openat_save_fail and/or openat_restore_fail if
83531         cwd_errno is null, so that openat can call us.
83532         (openat_permissive, fdopendir, fstatat, unlinkat):
83533         Simplify errno handling to avoid some duplicate code,
83534         as it's OK to set errno on success.
83535         * lib/openat.h: Revamp code so that function macros depend on
83536         __OPENAT_PREFIX only, not also on AT_FDCWD.
83537         (openat_ro): Remove.  Caller changed to use openat_permissive.
83538         (openat_permissive): Now a macro, if not a function.
83539         (openat_restore_fail, openat_save_fail): Now always functions,
83540         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83541
83542         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83543         and openat.c.
83544         * lib/mkdirat.c: Include openat-priv.h.
83545         Remove definitions of macros defined therein.
83546         * lib/openat.c: Likewise.
83547
83548         * lib/mkdirat.c (mkdirat): New file and function.
83549         * lib/openat.h (mkdirat): Declare.
83550
83551         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83552
83553         * lib/openat.h (openat_permissive): Declare.
83554         (openat_ro): Define.
83555
83556         * lib/openat.c (EXPECTED_ERRNO): New macro.
83557         (openat_permissive): New function -- used in remove.c rewrite.
83558         (all functions): Set errno just before returning, only if there
83559         was an actual failure.
83560         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83561
83562         Emulate openat-family functions using Linux's procfs, if possible.
83563         Idea and some code based on Ulrich Drepper's glibc changes.
83564
83565         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83566         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83567         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83568         before falling back on save_cwd and restore_cwd.
83569         (fdopendir, fstatat, unlinkat): Likewise.
83570
83571         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83572         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83573
83574         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83575         as second argument to va_arg.  Otherwise, some versions of gcc
83576         warn that `if this code is reached, the program will abort'.
83577
83578 2006-01-09  Jim Meyering  <jim@meyering.net>
83579
83580         Sync from coreutils.
83581         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83582         Require openat-priv.h.
83583
83584 2006-01-09  Bruno Haible  <bruno@clisp.org>
83585
83586         * modules/strnlen (Include): Use strnlen.h.
83587
83588 2006-01-09  Bruno Haible  <bruno@clisp.org>
83589
83590         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83591
83592 2006-01-09  Bruno Haible  <bruno@clisp.org>
83593
83594         * lib/sysexit_.h (EX_OK): New macro.
83595         Suggested by Martin Lambers <marlam@marlam.de>.
83596
83597 2006-01-09  Bruno Haible  <bruno@clisp.org>
83598
83599         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83600         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83601
83602 2006-01-09  Bruno Haible  <bruno@clisp.org>
83603
83604         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83605         numbers.
83606
83607 2006-01-09  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83610         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83611         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83612         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83613
83614 2006-01-09  Bruno Haible  <bruno@clisp.org>
83615
83616         * build-aux/javacomp.sh.in: New file, moved from lib/.
83617         * modules/javacomp-script (Files): Update.
83618         (configure.ac): Add AC_CONFIG_FILES invocation.
83619         (EXTRA_DIST): Remove variable.
83620
83621         * build-aux/javaexec.sh.in: New file, moved from lib/.
83622         * modules/javaexec (Files): Update.
83623         (configure.ac): Add AC_CONFIG_FILES invocation.
83624         (EXTRA_DIST): Remove javaexec.sh.in.
83625
83626         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83627         * modules/csharpcomp-script (Files): Update.
83628         (configure.ac): Add AC_CONFIG_FILES invocation.
83629         (EXTRA_DIST): Remove variable.
83630
83631         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83632         * modules/csharpexec (Files): Update.
83633         (configure.ac): Add AC_CONFIG_FILES invocation.
83634         (EXTRA_DIST): Remove csharpexec.sh.in.
83635
83636 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83637
83638         Sync from coreutils.
83639
83640         Add POSIX ACL support
83641         * lib/acl.h (copy_acl, set_acl): Add declarations.
83642         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83643         systems other than Linux.
83644         (chmod_or_fchmod): New function: use fchmod when possible,
83645         and chmod otherwise.
83646         (file_has_acl): Add a POSIX ACL implementation, with a
83647         Linux-specific subcase.
83648         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83649         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83650         acls are unsupported.
83651         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83652         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83653         are unsupported.
83654
83655 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83656
83657         Sync from coreutils.
83658         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83659
83660 2006-01-07  Bruno Haible  <bruno@clisp.org>
83661
83662         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83663         gl_EARLY.
83664
83665 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83668         Problem reported for Mingw by Mark Junker.
83669
83670 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83671
83672         * README: Gnulib normally doesn't generate a tarball.
83673
83674 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83675
83676         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83677         long int, not int, for nanosecond counts, so that people who are
83678         used to POSIX struct timespec won't be surprised.  Reported by Jim
83679         Meyering.
83680
83681 2005-12-28  Bruno Haible  <bruno@clisp.org>
83682
83683         * build-aux/config.rpath: Update from GNU gettext.
83684
83685 2005-12-16  Jim Meyering  <jim@meyering.net>
83686
83687         * modules/fprintftime: New module.
83688         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83689
83690 2005-12-16  Jim Meyering  <jim@meyering.net>
83691
83692         * m4/fprintftime.m4: New file.
83693
83694 2005-12-16  Jim Meyering  <jim@meyering.net>
83695
83696         * lib/fprintftime.c, lib/fprintftime.h: New files.
83697
83698 2005-12-15  Simon Josefsson  <jas@extundo.com>
83699
83700         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83701         new m4/socklen.m4.
83702
83703 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83704
83705         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83706         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83707
83708 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83709
83710         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83711         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83712         struct uparams is valid. Fall back to the default values if it is
83713         not.
83714
83715 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83716
83717         * modules/argp (Files): Add argp-pin.c
83718         (Depends-on): dirname
83719         (lib_SOURCES): Add argp-pin.c
83720
83721 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83722
83723         * m4/argp.m4:  Check if program_invocation_name and
83724         program_invocation_short_name are declared and define appropriate
83725         macros if they are not.
83726
83727 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83728
83729         * lib/argp-help.c (__argp_base_name): New function
83730         (__argp_short_program_name): Rewrite using __argp_base_name
83731         * lib/argp-namefrob.h: Define program_invocation_name and
83732         program_invocation_short_name if requested
83733         (__argp_base_name): Add prototype
83734         * lib/argp-parse.c (argp_def): Use gettext wrappers
83735         (argp_default_parser): Use __argp_base_name
83736         * lib/argp-pin.c: New file. Defines program_invocation_name and
83737         program_invocation_short_name on systems that lack them.
83738
83739 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83740
83741         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83742         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83743         porting problem reported by Georg Schwarz in
83744         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83745
83746 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83749         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83750         porting problem reported by Georg Schwarz in
83751         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83752
83753 2005-12-05  Bruno Haible  <bruno@clisp.org>
83754
83755         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83756         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83757         Reported by Mark Junker <mjscod@gmx.de>.
83758
83759 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83762         Use implementation from Albert Chin, with some
83763         comments/corrections by Stepan Kasal and myself.
83764
83765 2005-12-02  Bruno Haible  <bruno@clisp.org>
83766
83767         * gnulib-tool (func_import): Accept GPLed build tool modules when
83768         --lgpl is given.
83769         * modules/csharpcomp-script: New file.
83770         * modules/csharpcomp: Depend on it.
83771         * modules/javacomp-script: New file.
83772         * modules/javacomp: Depend on it.
83773         Suggested by Simon Josefsson.
83774
83775 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83778         statement, to work around an HP-UX 10.20 compiler bug reported by
83779         Peter O'Gorman.
83780
83781 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * modules/savedir (Depends-on): Add openat.
83784
83785 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83788         (uintmax_t) [defined uintmax_t]: Do not declare.
83789         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83790         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83791         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83792         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83793         sake of portability to weird hosts that C allows (though we don't
83794         know of any practical examples).
83795
83796         * lib/savedir.h (fdsavedir): New decl.
83797         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83798         contains most of the former guts of savedir.
83799         (savedir): Use savedirstream.
83800         Include "openat.h".
83801
83802 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         * modules/obstack (Files): Add m4/ulonglong.m4.
83805         Problem reported by Davide Angelocola.
83806
83807 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83810         coreutils no longer futzes with rounding modes.
83811
83812 2005-11-14  Jim Meyering  <jim@meyering.net>
83813
83814         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83815         replacement of mkstemp.
83816
83817 2005-11-10  Simon Josefsson  <jas@extundo.com>
83818
83819         * lib/readline.c: Remove EOL.
83820
83821 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * modules/gethrxtime (Depends-on): Add gettime.
83824
83825 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83828         or gettimeofday; no longer needed.
83829
83830 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83833         time business.
83834         (gethrxtime) [! (HAVE_NANOUPTIME
83835         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83836         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83837         our own approximation.
83838
83839 2005-11-08  Eric Blake  <ebb9@byu.net>
83840
83841         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83842
83843 2005-11-08  Eric Blake  <ebb9@byu.net>
83844
83845         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83846
83847 2005-11-04  Bruno Haible  <bruno@clisp.org>
83848
83849         * gnulib-tool: Implement --update mode.
83850
83851 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         Fix porting problem reported by Theodoros V. Kalamatianos.
83854         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83855         Don't assume that futimes failing means we must fail.
83856
83857 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83860         variables to suggest the intended function of the PATH_MAX check.
83861
83862 2005-10-30  Kean Johnston  <jkj@sco.com>
83863
83864         Trivial changes to support SCO systems.
83865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83866         as PATH_MAX.
83867         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83868         where __ptr is null when no I/O is pending.
83869
83870 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83871
83872         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83873         leave errno alone.  Problem reported by Dmitry V. Levin.
83874
83875 2005-10-28  Simon Josefsson  <jas@extundo.com>
83876
83877         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83878         Test more.
83879
83880         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83881
83882         * modules/md2, modules/md2-tests: New files.
83883
83884 2005-10-28  Simon Josefsson  <jas@extundo.com>
83885
83886         * m4/inet_ntop.m4: More tests.
83887
83888         * m4/gc-md2.m4, md2.m4: New file.
83889
83890 2005-10-28  Simon Josefsson  <jas@extundo.com>
83891
83892         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83893         "restrict" keywords, as per POSIX.  Protect the function
83894         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83895         Don't use K&R prototypes.  Check the sprintf return values.
83896         Re-define EAFNOSUPPORT if not present.  Indent.
83897
83898         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83899         suggested by Bruno Haible <bruno@clisp.org>.
83900
83901         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83902
83903         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83904
83905         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83906         libgcrypt).
83907
83908         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83909
83910         * lib/md2.h, lib/md2.c: New files.
83911
83912 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83913
83914         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83915         errno alone.  Problem reported by Frederic Jolliton.
83916
83917 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83918
83919         * modules/verify (License): Change from GPL to LGPL.  This is a
83920         tiny module and there are apparently near-equivalents that are
83921         under the BSD license.
83922
83923 2005-10-24  Simon Josefsson  <jas@extundo.com>
83924
83925         * modules/sha1: Relicense to LGPL.
83926
83927 2005-10-24  Simon Josefsson  <jas@extundo.com>
83928
83929         * lib/md4.h: Shrink buffer size, now that we changed the type.
83930
83931 2005-10-23  Simon Josefsson  <jas@extundo.com>
83932
83933         * gnulib-tool (func_import): Fix --tests-base.
83934
83935 2005-10-22  Simon Josefsson  <jas@extundo.com>
83936
83937         * modules/arcfour (Depends-on): Need stdint.
83938
83939 2005-10-22  Simon Josefsson  <jas@extundo.com>
83940
83941         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83942         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83943
83944 2005-10-22  Simon Josefsson  <jas@extundo.com>
83945
83946         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83947         suggested by Bruno Haible <bruno@clisp.org>.
83948
83949 2005-10-22  Simon Josefsson  <jas@extundo.com>
83950
83951         * lib/crc.h: Include stddef.h, for size_t.
83952
83953 2005-10-22  Simon Josefsson  <jas@extundo.com>
83954
83955         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83956         arcfour_context struct (simplify test vector testing in GNU
83957         Shishi).
83958
83959 2005-10-21  Simon Josefsson  <jas@extundo.com>
83960
83961         * modules/des, modules/des-tests: New files.
83962
83963         * modules/gc-des, modules/gc-des-tests: New files.
83964
83965         * tests/test-des.c, tests/test-gc-des.c: New file.
83966
83967 2005-10-21  Simon Josefsson  <jas@extundo.com>
83968
83969         * modules/arctwo, modules/arctwo-tests: New files.
83970
83971         * tests/test-arctwo.c: New file.
83972
83973         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83974
83975         * tests/test-gc-arctwo.c: New file.
83976
83977 2005-10-21  Simon Josefsson  <jas@extundo.com>
83978
83979         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83980         Bruno Haible <bruno@clisp.org>.
83981
83982         * m4/gc-des.m4: New file.
83983
83984 2005-10-21  Simon Josefsson  <jas@extundo.com>
83985
83986         * m4/arctwo.m4: New file.
83987
83988         * m4/gc-arctwo.m4: New file.
83989
83990 2005-10-21  Simon Josefsson  <jas@extundo.com>
83991
83992         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83993         block.
83994
83995 2005-10-21  Simon Josefsson  <jas@extundo.com>
83996
83997         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83998         <bruno@clisp.org>.
83999
84000         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84001
84002         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84003         Bruno Haible <bruno@clisp.org>.
84004
84005         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84006         <bruno@clisp.org>.
84007
84008 2005-10-21  Simon Josefsson  <jas@extundo.com>
84009
84010         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84011
84012 2005-10-21  Simon Josefsson  <jas@extundo.com>
84013
84014         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84015
84016 2005-10-21  Simon Josefsson  <jas@extundo.com>
84017
84018         * lib/des.h, lib/des.c: New files.
84019
84020         * lib/gc-gnulib.c: Support DES.c
84021
84022 2005-10-21  Simon Josefsson  <jas@extundo.com>
84023
84024         * lib/arctwo.h, lib/arctwo.c: New files.
84025
84026         * lib/gc-gnulib.c: Support ARCTWO.
84027
84028 2005-10-21  Simon Josefsson  <jas@extundo.com>
84029
84030         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84031         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84032
84033 2005-10-21  Simon Josefsson  <jas@extundo.com>
84034
84035         * gnulib-tool (func_import, func_create_testdir): Define automake
84036         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84037         Makefile.am snippet),
84038         suggested by Bruno Haible <bruno@clisp.org>.
84039
84040         * modules/gc (Makefile.am): Use it.
84041
84042 2005-10-21  Bruno Haible  <bruno@clisp.org>
84043
84044         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84045         patch.
84046
84047 2005-10-19  Simon Josefsson  <jas@extundo.com>
84048
84049         * tests/test-gc-rijndael.c: New file.
84050
84051         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84052
84053 2005-10-19  Simon Josefsson  <jas@extundo.com>
84054
84055         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84056         interface too.
84057
84058 2005-10-19  Simon Josefsson  <jas@extundo.com>
84059
84060         * tests/test-gc-arcfour.c: New file.
84061
84062         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84063
84064 2005-10-19  Simon Josefsson  <jas@extundo.com>
84065
84066         * modules/gc-md4, modules/gc-md4-tests: New file.
84067
84068         * tests/test-gc-md4.c: New file.
84069
84070 2005-10-19  Simon Josefsson  <jas@extundo.com>
84071
84072         * m4/gc-md4.m4: New file.
84073
84074 2005-10-19  Simon Josefsson  <jas@extundo.com>
84075
84076         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84077         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84078         <kasal@ucw.cz>.
84079
84080 2005-10-19  Simon Josefsson  <jas@extundo.com>
84081
84082         * m4/gc-arcfour.m4: New file.
84083
84084         * m4/gc-rijndael.m4: New file.
84085
84086 2005-10-19  Simon Josefsson  <jas@extundo.com>
84087
84088         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84089
84090 2005-10-19  Simon Josefsson  <jas@extundo.com>
84091
84092         * lib/gc-gnulib.c: Support ARCFOUR.
84093
84094 2005-10-19  Simon Josefsson  <jas@extundo.com>
84095
84096         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84097         support.
84098
84099         * lib/gc.h: Add ECB enum type.
84100
84101         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84102
84103 2005-10-18  Simon Josefsson  <jas@extundo.com>
84104
84105         * tests/test-md5.c: New file.
84106
84107         * modules/md5-tests: New file.
84108
84109 2005-10-18  Simon Josefsson  <jas@extundo.com>
84110
84111         * tests/test-md4.c: New file.
84112
84113         * modules/md4, modules/md4-tests: New files.
84114
84115 2005-10-18  Simon Josefsson  <jas@extundo.com>
84116
84117         * m4/md4.m4: New file.
84118
84119 2005-10-18  Simon Josefsson  <jas@extundo.com>
84120
84121         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84122
84123 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84124
84125         * gnulib-tool (func_create_testdir): Omit the second check whether
84126         BUILT_SOURCES in nonempty.
84127
84128 2005-10-17  Simon Josefsson  <jas@extundo.com>
84129
84130         * tests/test-rijndael.c: New file.
84131
84132 2005-10-17  Simon Josefsson  <jas@extundo.com>
84133
84134         * modules/sha1: Depend on stdint instead of md5.
84135
84136         * modules/md5: Depend on stdint, remove uint32_t.
84137
84138 2005-10-17  Simon Josefsson  <jas@extundo.com>
84139
84140         * modules/gc-sha1-tests: New file.
84141
84142         * tests/test-gc-sha1.c: New file.
84143
84144 2005-10-17  Simon Josefsson  <jas@extundo.com>
84145
84146         * m4/md5.m4: Remove call to uint32_t.m4.
84147
84148 2005-10-17  Simon Josefsson  <jas@extundo.com>
84149
84150         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84151
84152         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84153         md5.h.
84154
84155         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84156
84157         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84158
84159 2005-10-17  Simon Josefsson  <jas@extundo.com>
84160
84161         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84162
84163 2005-10-17  Simon Josefsson  <jas@extundo.com>
84164
84165         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84166
84167 2005-10-17  Simon Josefsson  <jas@extundo.com>
84168
84169         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84170
84171         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84172
84173 2005-10-17  Bruno Haible  <bruno@clisp.org>
84174
84175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84176         that it can also be used in a test.
84177
84178 2005-10-16  Bruno Haible  <bruno@clisp.org>
84179
84180         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84181         TESTS_ENVIRONMENT, so that individual tests can augment it.
84182
84183         * gnulib-tool (func_create_testdir): Use an intermediate target for
84184         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84185         macros, like $(ALLOCA_H), which cannot be passed through the command
84186         line.
84187
84188 2005-10-15  Simon Josefsson  <jas@extundo.com>
84189
84190         * modules/rijndael-tests: New file.
84191
84192         * modules/rijndael: New file.
84193
84194 2005-10-15  Simon Josefsson  <jas@extundo.com>
84195
84196         * m4/rijndael.m4: New file.
84197
84198 2005-10-15  Simon Josefsson  <jas@extundo.com>
84199
84200         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84201
84202         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84203
84204 2005-10-14  Simon Josefsson  <jas@extundo.com>
84205
84206         * tests/test-arcfour.c: New file.
84207
84208         * modules/arcfour, modules/arcfour-tests: New files.
84209
84210 2005-10-14  Simon Josefsson  <jas@extundo.com>
84211
84212         * m4/arcfour.m4: New file.
84213
84214 2005-10-14  Simon Josefsson  <jas@extundo.com>
84215
84216         * lib/arcfour.h, lib/arcfour.c: New files.
84217
84218 2005-10-14  Roland McGrath  <roland@redhat.com>
84219
84220         Import from libc.  [BZ #1331]
84221         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84222         macro argument.
84223         Reported by Matej Vela <vela@debian.org>.
84224
84225 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84226
84227         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84228         include <wchar.h>; no longer needed.
84229
84230 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84233
84234 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84235         and  Ulrich Drepper  <drepper@redhat.com>
84236
84237         Import from libc.
84238         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84239         instead of inline stream orientation test and two separate
84240         function calls.  Pay no attention to USE_IN_LIBIO.
84241
84242 2005-10-13  Simon Josefsson  <jas@extundo.com>
84243
84244         * modules/gc-hmac-md5-tests: New file.
84245
84246         * tests/test-gc-hmac-sha1.c: New file.
84247
84248         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84249
84250         * modules/gc-hmac-md5-tests: New file.
84251
84252         * tests/test-gc-md5.c: New file.
84253
84254         * modules/gc-md5-tests: New file.
84255
84256 2005-10-13  Simon Josefsson  <jas@extundo.com>
84257
84258         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84259         Move memory allocation outside of loop.
84260
84261 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84262
84263         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84264         intermediate directory is in a read-only file system.  Problem
84265         reported by Eric Blake.
84266
84267 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84268
84269         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84270
84271 2005-10-12  Simon Josefsson  <jas@extundo.com>
84272
84273         * tests/test-hmac-sha1.c: New file.
84274
84275         * modules/hmac-sha1-tests: New file.
84276
84277         * modules/hmac-sha1: New file.
84278
84279 2005-10-12  Simon Josefsson  <jas@extundo.com>
84280
84281         * modules/gc-sha1: New file.
84282
84283 2005-10-12  Simon Josefsson  <jas@extundo.com>
84284
84285         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84286
84287         * tests/test-gc-pbkdf2-sha1.c: New file.
84288
84289 2005-10-12  Simon Josefsson  <jas@extundo.com>
84290
84291         * modules/gc-md5, modules/gc-hmac-md5: New files.
84292
84293         * modules/gc (Files): Remove md5, memxor and hmac files.
84294
84295 2005-10-12  Simon Josefsson  <jas@extundo.com>
84296
84297         * m4/gc-pbkdf2-sha1.m4: New file.
84298
84299         * m4/gc-hmac-sha1.m4: New file.
84300
84301         * m4/gc-sha1: New file.
84302
84303         * m4/hmac-sha1.m4: New file.
84304
84305 2005-10-12  Simon Josefsson  <jas@extundo.com>
84306
84307         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84308
84309         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84310
84311 2005-10-12  Simon Josefsson  <jas@extundo.com>
84312
84313         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84314         suggested by Bruno Haible <bruno@clisp.org>.
84315
84316 2005-10-12  Simon Josefsson  <jas@extundo.com>
84317
84318         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84319
84320 2005-10-12  Simon Josefsson  <jas@extundo.com>
84321
84322         * lib/gc-pbkdf2-sha1.c: New file.
84323
84324         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84325
84326 2005-10-12  Simon Josefsson  <jas@extundo.com>
84327
84328         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84329
84330         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84331
84332 2005-10-12  Simon Josefsson  <jas@extundo.com>
84333
84334         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84335         GC_USE_HMAC_MD5, respectively.
84336
84337         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84338         (gc_md5): Fix typo.
84339
84340         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84341
84342         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84343
84344         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84345
84346 2005-10-12  Bruno Haible  <bruno@clisp.org>
84347
84348         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84349         Reported by Stepan Kasal <kasal@ucw.cz>.
84350
84351 2005-10-11  Simon Josefsson  <jas@extundo.com>
84352
84353         * tests/test-crc.c: New file.
84354
84355         * modules/crc, modules/crc-tests: New files.
84356
84357 2005-10-11  Simon Josefsson  <jas@extundo.com>
84358
84359         * m4/crc.m4: New file.
84360
84361 2005-10-11  Simon Josefsson  <jas@extundo.com>
84362
84363         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84364
84365         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84366
84367         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84368
84369 2005-10-11  Simon Josefsson  <jas@extundo.com>
84370
84371         * lib/crc.h, lib/crc.c: New files.
84372
84373         * lib/gc.h (gc_hash_buffer): Add doc.
84374
84375 2005-10-11  Bruno Haible  <bruno@clisp.org>
84376
84377         * modules/c-strcasestr: New file.
84378         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84379
84380 2005-10-11  Bruno Haible  <bruno@clisp.org>
84381
84382         * modules/c-strcase: New file.
84383         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84384
84385 2005-10-11  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/strcasecmp.c: Include limits.h.
84388         (strcasecmp): Avoid integer overflow on exotic platforms.
84389         * lib/strncasecmp.c: Include limits.h.
84390         (strncasecmp): Avoid integer overflow on exotic platforms.
84391         Reported by Paul Eggert.
84392
84393 2005-10-11  Bruno Haible  <bruno@clisp.org>
84394
84395         * lib/c-strcasestr.h: New file, from GNU gettext.
84396         * lib/c-strcasestr.c: New file, from GNU gettext.
84397
84398 2005-10-11  Bruno Haible  <bruno@clisp.org>
84399
84400         * lib/c-strcase.h: New file, from GNU gettext.
84401         * lib/c-strcasecmp.c: New file, from GNU gettext.
84402         * lib/c-strncasecmp.c: New file, from GNU gettext.
84403
84404 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * modules/mempcpy (License): GPL -> LGPL.
84407         * modules/strchrnul (License): Likewise.
84408         * modules/sysexits (License): Likewise.
84409
84410 2005-10-08  Simon Josefsson  <jas@extundo.com>
84411
84412         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84413
84414 2005-10-07  Simon Josefsson  <jas@extundo.com>
84415
84416         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84417
84418 2005-10-06  Simon Josefsson  <jas@extundo.com>
84419
84420         * tests/test-hmac-md5.c: New file.
84421
84422         * modules/hmac-md5-tests: New file.
84423
84424         * modules/hmac-md5: New file.
84425
84426 2005-10-06  Simon Josefsson  <jas@extundo.com>
84427
84428         * m4/hmac-md5.m4: New file.
84429
84430         * m4/memxor.m4: Require gl_C_RESTRICT.
84431
84432 2005-10-06  Simon Josefsson  <jas@extundo.com>
84433
84434         * lib/memxor.c (memxor): Avoid casts and warnings.
84435
84436 2005-10-06  Simon Josefsson  <jas@extundo.com>
84437
84438         * lib/hmac-md5.c: New file.
84439
84440         * lib/hmac.h: New file.
84441
84442 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84445         promotes to int, not unsigned int, to catch the AIX 5.3
84446         compiler bug.
84447
84448 2005-10-05  Simon Josefsson  <jas@extundo.com>
84449
84450         * modules/memxor: New file.
84451
84452         * modules/iconv (Files): Move config.rpath to havelib, it is used
84453         there.
84454
84455         * modules/havelib (Files): Add config.rpath.
84456
84457 2005-10-05  Simon Josefsson  <jas@extundo.com>
84458
84459         * m4/memxor.m4: New file.
84460
84461 2005-10-05  Simon Josefsson  <jas@extundo.com>
84462
84463         * lib/memxor.c (memxor): Fix compiler error.
84464
84465         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84466         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84467
84468         * lib/memxor.h, lib/memxor.c: New files.
84469
84470         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84471         we assume all systems have it, suggested by Jim Meyering
84472         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84473         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84474         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84475         same reasons.
84476
84477 2005-10-05  Simon Josefsson  <jas@extundo.com>
84478
84479         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84480
84481 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84484         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84485         needed, since the source code now assumes these .h files.
84486
84487 2005-10-05  Derek Price  <derek@ximbiot.com>
84488
84489         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84490
84491 2005-10-05  Bruno Haible  <bruno@clisp.org>
84492
84493         * modules/stdint (License): Change to LGPL.
84494
84495 2005-10-04  Simon Josefsson  <jas@extundo.com>
84496
84497         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84498         D. Baushke" <mdb@gnu.org>.
84499
84500 2005-10-04  Bruno Haible  <bruno@clisp.org>
84501
84502         * lib/verify.h (verify_true): Provide alternative definition for C++.
84503
84504 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84505
84506         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84507         (SSIZE_MAX): New macro, if not already defined.
84508         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84509         than 2 GiB.
84510
84511 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84512
84513         Sync from coreutils.
84514         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84515         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84516         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84517         ULLONG_MAX doesn't work with 2.7.2.1.
84518
84519 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84520
84521         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84522         From Ben Pfaff.
84523
84524         * modules/exclude (Depends-on): Depend on verify.
84525         * modules/strtoimax (Depends-on): Likewise.
84526         * modules/utimecmp (Depends-on): Likewise.
84527
84528 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84529
84530         * lib/exclude.c: Include verify.h.
84531         (verify): Remove.  All callers changed to use verify.h's version.
84532         * lib/strtoimax.c: Likewise.
84533         * lib/utimecmp.c: Likewis.e
84534
84535         Sync from coreutils.
84536         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84537         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84538         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84539         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84540         bother returning ENOSYS if settimeofday or stime fails; just let
84541         them return whatever errno they want to return.
84542         * lib/utimens.c: Include unistd.h, for dup2.
84543         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84544         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84545
84546 2005-10-02  Jim Meyering  <jim@meyering.net>
84547
84548         Sync from coreutils.
84549         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84550         from glibc-2.2.5 that fails for read-only files.
84551
84552 2005-10-02  Jim Meyering  <jim@meyering.net>
84553
84554         Sync from coreutils.
84555         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84556         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84557         `#if HAVE_CONFIG_H'.
84558         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84559         Remove AT_FDCWD test.
84560         Do not consume the fd unless successful.
84561         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84562         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84563         block, so that we don't even try to compile it if settimeofday is
84564         available.  This works around a compilation failure on OSF1 V5.1,
84565         due to stime requiring a `long int*' while tv_sec is `int'.
84566
84567 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84568
84569         Sync from coreutils.
84570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84571         against `yes', rather than just testing for nonempty.
84572
84573 2005-10-01  Simon Josefsson  <jas@extundo.com>
84574
84575         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84576         and Darwin.
84577
84578         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84579         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84580         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84581         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84582         Check if struct addrinfo is declared.
84583
84584 2005-10-01  Simon Josefsson  <jas@extundo.com>
84585
84586         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84587         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84588         AI_* and EAI_* definitions.  Protect function declarations.
84589
84590 2005-10-01  Jim Meyering  <jim@meyering.net>
84591
84592         Sync from coreutils.
84593
84594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84595         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84596         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84598         in the inet and nsl libraries.  Required on Solaris 5.7.
84599
84600 2005-10-01  Jim Meyering  <jim@meyering.net>
84601
84602         Sync from coreutils.
84603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84604         in the inet and nsl libraries.  Required on Solaris 5.7.
84605
84606 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84607
84608         * lib/getdelim.c (getdelim): Remove unused variables.
84609
84610 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84611
84612         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84613         so that the code works even with ancient cpp.  Portability problem
84614         with GCC 2.7.2.1 reported by Thomas M.Ott.
84615
84616 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84617
84618         * modules/regex (Depends-on): Add strcase.
84619
84620         * modules/gethostname (Licence): Change from GPL to LGPL, since
84621         gethostname.c is a trivial implementation of a standard library
84622         function.
84623         * modules/poll (License): Change from GPL to LGPL, since it's
84624         derived from LGPL code.
84625
84626 2005-09-27  Jim Meyering  <jim@meyering.net>
84627
84628         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84629         HAVE_CONFIG_H.
84630
84631         * lib/intprops.h (signed_type_or_expr__): Define.
84632         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84633         for unsigned types.
84634
84635 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         * lib/verify.h (verify_expr): Remove, replacing with:
84638         (verify_true): New macro that returns true instead of void.
84639         (verify_type__): Remove.
84640         (verify): Use verify_true rather than verify_type__.
84641
84642 2005-09-26  Bruno Haible  <bruno@clisp.org>
84643
84644         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84645         is necessary.
84646         (lib_SOURCES): Remove mbchar.c.
84647         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84648         (Files): Add m4/mbrtowc.m4.
84649         * modules/mbiter: Likewise.
84650         * modules/mbuiter: Likewise.
84651
84652 2005-09-26  Bruno Haible  <bruno@clisp.org>
84653
84654         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84655         compile mbchar.c if they are not both present.
84656         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84657         * m4/mbiter.m4 (gl_MBITER): Likewise.
84658         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84659         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84660         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84661
84662 2005-09-25  Jim Meyering  <jim@meyering.net>
84663
84664         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84665         also uses socklen_t.
84666
84667 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * lib/utimens.c (ENOSYS): Define if not already defined.
84670         (futimens): Support having a null PATH if the file descriptor
84671         is nonnegative.
84672
84673         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84674         Remove.
84675         (__attribute): Define to empty unless GCC 3.1 or later.
84676         This works around a core dump on OpenBSD 3.4, which has GCC
84677         2.95.3, which dumps core when given __attribute__(()).  It also
84678         simplifies other tests, since we really don't want to bother with
84679         worrying about which ancient version of GCC supported what.
84680         Original problem reported by Yoann Vandoorselaere, with part of
84681         the fix suggested by Derek Price.
84682
84683 2005-09-24  Jim Meyering  <jim@meyering.net>
84684
84685         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84686         so we can once again use a positive bitfield width of 1 -- now we
84687         don't have to explain why we were using a bitfield width of 2.
84688
84689 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84690
84691         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84692         and similarly for the other external symbols.  Problem reported
84693         by James Gallager.
84694
84695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84696         bug reported by Jim Meyering.
84697
84698         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84700         not needed, since socklen is a prerequisite module.
84701
84702 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84703
84704         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84705         Problem reported by Eric Blake.
84706         (getaddrinfo): Initialize se so that it's not garbage.
84707         Redo internal storage allocation so that it doesn't make unportable
84708         assumptions about alignment.
84709         Fix a memory leak.
84710
84711         * lib/utimens.c (futimens): Use futimesat if available.
84712         Prefer it to futimes since it doesn't have the futimes bug.
84713
84714         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84715         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84716         Instead, declare a function that returns a pointer to an array,
84717         and use verify_type__ to declare the size of the array.
84718         Problem and germ of a solution reported by Bruno Haible.
84719         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84720         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84721
84722 2005-09-23  Jim Meyering  <jim@meyering.net>
84723
84724         Sync from coreutils.
84725         Correct build failure (socklen_t not defined) on at least
84726         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84728
84729 2005-09-23  Jim Meyering  <jim@meyering.net>
84730
84731         * modules/getaddrinfo (Depends-on): Add socklen.
84732
84733 2005-09-23  Bruno Haible  <bruno@clisp.org>
84734
84735         * tests/test-verify.c: New file.
84736
84737 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         Sync from coreutils.
84740
84741         * modules/argmatch (Depends-on): Add verify.
84742         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84743         unistd-safer.
84744         * modules/save-cwd (Depends-on): Likewise.
84745
84746         * modules/openat (Files): Add lib/openat-die.c.
84747         (Depends-on): Remove error, exitfail.
84748         Add dirname.
84749
84750         * modules/verify: New file.
84751         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84752         with "verify" module.
84753
84754 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84755
84756         Sync from coreutils.
84757
84758         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84759         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84760         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84761         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84762         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84763         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84764         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84765         Don't bother checking for string.h, stdlib.h, unistd.h.
84766         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84768         module's job.
84769         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84770         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84771
84772         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84773         (gl_GETDATE): Use it.
84774
84775         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84776
84777 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         Sync from coreutils.
84780
84781         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84782         stat-time.h.
84783         * lib/argmatch.h: Include verify.h
84784         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84785         (ARGMATCH_ASSERT): Remove; unused.
84786         * lib/canonicalize.c: Assume STDC_HEADERS.
84787         * lib/exclude.c: Include "strcase.h".
84788         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84789         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84790         and stdio-safer.h.
84791         (getusershell): Call fopen, not fopen_safer.
84792         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84793         Do not include unistd-safer.h.
84794         (save_cwd): Don't call fd_safer; no longer needed
84795         now that we include fcntl--.h.
84796
84797         * lib/getdate.y (relative_time): New type.
84798         (RELATIVE_TIME_0): New constant.
84799         (parser_control): Use relative_time instead of doing it ourselves.
84800         (%union): Add new relative_time rel member.
84801         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84802         Now typeless.
84803         (relunit, relunit_snumber): Now of type rel.
84804         (zone, rel, relunit, get_date): Adjust to above changes.
84805
84806         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84807         Do not include unistd-safer.h.
84808         (getloadavg): Don't call fd_safer; no longer needed
84809         now that we include fcntl--.h.
84810
84811         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84812         (make_dir_parents): Treat ENOSYS like EEXIST.
84813
84814         Improve quality of diagnostics on restore_cwd failure.
84815         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84816         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84817         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84818         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84819         each time through the loop.  Do not diagnose restore_cwd failure;
84820         that is the caller's job (and perhaps the caller does not care).
84821
84822         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84823         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84824         If the file already exists but is not a directory, don't bother
84825         to try to make its parents.
84826         Close potential file descriptor leak if we can't chdir("/") (!).
84827         Don't always return true if chdir($PWD) fails; return true only
84828         if the requested action was done successfully (except for the
84829         chdir($PWD)).
84830         Don't log final directory unless we actually made it.
84831         Refactor to avoid duplicate code to fix up permissions.
84832         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84833
84834         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84835         to make it a bit faster and (I hope) clearer.
84836         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84837         Fix bug in formats like %2N.
84838
84839         * lib/verify.h: New file.
84840
84841 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         Sync from coreutils.
84844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84845
84846 2005-09-22  Jim Meyering  <jim@meyering.net>
84847
84848         Sync from coreutils.
84849
84850         * m4/lstat.m4 (gl_FUNC_LSTAT):
84851         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84852         Remove obsolete comment.
84853         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84854         * m4/xstrtod.m4: Likewise.
84855
84856         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84857
84858 2005-09-22  Jim Meyering  <jim@meyering.net>
84859
84860         Sync from coreutils.
84861
84862         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84863
84864         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84865         the .tm_year member, since otherwise gcc-4.0 would now warn about
84866         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84867
84868         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84869         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84870
84871         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84872         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84873         when run in a time zone for which daylight savings time is in effect
84874         for the starting date.
84875
84876         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84877         stop us from restricting permissions of just-created absolute-named
84878         directories.
84879         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84880         to restore initial working directory.
84881         * lib/mkdir-p.c (make_dir_parents): New parameter:
84882         different_working_dir, to tell caller if/when we change the working
84883         directory and are unable to return to the initial one.
84884         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84885         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84886         `return false'.  This fixes a bug introduced on 2004-07-30.
84887
84888         * lib/openat.c (fdopendir): Be sure to close the supplied
84889         file descriptor before returning.  This makes our replacement
84890         implementation a little closer to Solaris's, where fdopendir
84891         ties the file descriptor to the returned DIR* pointer.
84892         * lib/openat.c (unlinkat): New function.
84893         * lib/openat.h (unlinkat): Add prototype.
84894         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84895         (openat_restore_fail): Rename from openat_restore_die.
84896         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84897
84898         Provide an alternative to exiting immediately upon save_cwd or
84899         restore_cwd failure.  Now, an application can arrange e.g.,
84900         to perform a longjump in that case.
84901         * lib/openat.c: Include dirname.h.
84902         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84903         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84904         and openat_restore_die rather than calling error directly.
84905         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84906
84907         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84908         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84909         define.
84910
84911         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84912         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84913                             int utc, int nanoseconds);
84914         Background:
84915         date should not have to allocate a megabyte of virtual memory to
84916         handle a format argument like +%1048575T.  When implemented with
84917         strftime, it must allocate such a buffer, use strftime to fill it
84918         in, print it, then free it.
84919         With fprintftime, it simply prints everything and exits.
84920         With no need for memory allocation, that's one fewer way to fail.
84921         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84922         optional field width, not before, so we accept %9:z, not %:9z.
84923         (my_strftime): Be sure to use L_('x') for literals.
84924
84925         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84926         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84927         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84928         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84929         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84930         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84931         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84932         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84933         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84934         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84935         * lib/xgethostname.c, lib/xreadlink.c:
84936         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84937
84938         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84939         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84940         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84941         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84942         and don't include <sys/file.h>).
84943
84944 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84945
84946         Sync from coreutils.
84947
84948         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84949         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84950         [!LDAV_DONE]: Avoid unused variable warning.
84951
84952 2005-09-21  Bruno Haible  <bruno@clisp.org>
84953
84954         * lib/unicodeio.h (unicode_to_mb): New declaration.
84955
84956 2005-09-20  Derek Price  <derek@ximbiot.com>
84957
84958         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84959         getaddrinfo.h.
84960
84961 2005-09-20  Bruno Haible  <bruno@clisp.org>
84962
84963         * gnulib-tool: Remove trailing slashes from the values specified for
84964         --source-base, --m4-base, --tests-base, --aux-dir.
84965         Suggested by Simon Josefsson <jas@extundo.com>.
84966
84967 2005-09-20  Bruno Haible  <bruno@clisp.org>
84968
84969         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84970         func_modules_to_filelist, func_import, func_create_testdir): Make all
84971         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84972         change when gnulib-tool is invoked in a different locale.
84973
84974 2005-09-19  Simon Josefsson  <jas@extundo.com>
84975
84976         * m4/socklen.m4: Fix typo.
84977
84978 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84979
84980         Use a consistent style for including <config.h>.
84981         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84982         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84983         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84984         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84985         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84986         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84987         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84988         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84989         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84990         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84991         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84992         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84993         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84994         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84995         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84996         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84997         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84998         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84999         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85000         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85001         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85002         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85003         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85004         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85005         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85006         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85007         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85008         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85009         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85010         lib/xstrtoumax.c, lib/yesno.c:
85011         Standardize inclusion of config.h.
85012         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85013         lib/inttostr.h:  Removed inclusion of config.h from header files.
85014         * lib/inttostr.c:  Adjusted in-tree users.
85015         * lib/timespec.h: Remove superfluous warning to include config.h.
85016         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85017         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85018         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85019         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85020         config.h with HAVE_CONFIG_H.
85021
85022 2005-09-19  Jim Meyering  <jim@meyering.net>
85023
85024         * modules/pathmax (License): Change to LGPL.
85025
85026 2005-09-19  Derek Price  <derek@ximbiot.com>
85027
85028         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85029
85030 2005-09-19  Bruno Haible  <bruno@clisp.org>
85031
85032         * gnulib-tool (import): Provide default for --tests-base.
85033
85034 2005-09-19  Bruno Haible  <bruno@clisp.org>
85035
85036         * doc/quote.texi: New file, extracted from gnulib.texi.
85037         * doc/ctime.texi: New file, extracted from gnulib.texi.
85038         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85039         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85040         * doc/gnulib.texi: Include them.
85041
85042 2005-09-18  Bruno Haible  <bruno@clisp.org>
85043
85044         Portability fix.
85045         * gnulib-tool (func_readlink): New function.
85046         (func_ln_if_changed): Use it.
85047
85048 2005-09-18  Bruno Haible  <bruno@clisp.org>
85049
85050         * gnulib-tool: Support --with-tests also with --import.
85051         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85052         (func_import): Use variables $testsbase and $inctests. Emit a
85053         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85054         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85055         SUBDIRS += $testsdir.
85056         (func_create_testdir): Update.
85057
85058 2005-09-18  Bruno Haible  <bruno@clisp.org>
85059
85060         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85061         instead of $dry_run.
85062         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85063         (func_ln_if_changed): Don't handle dry-run here.
85064         (func_import): In dry-run mode, detect more precisely which actions
85065         would be performed, and don't use "...ing" verbs.
85066
85067 2005-09-18  Bruno Haible  <bruno@clisp.org>
85068
85069         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85070         (func_import): Use join on two temporary files instead of three nested
85071         loops, in order to determine which files are new or old.
85072
85073 2005-09-18  Bruno Haible  <bruno@clisp.org>
85074
85075         * gnulib-tool (func_import): Comment out code that spits out the
85076         new files with --dry-run.
85077
85078 2005-09-18  Bruno Haible  <bruno@clisp.org>
85079
85080         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85081
85082 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * lib/stat-time.h: New file.
85085         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85086         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85087         in a different way.
85088         (timespec_cmp): New function.
85089         * lib/utimecmp.c: Include stat-time.h.
85090         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85091         members exist, not on the obsolescent ST_MTIM_NSEC.
85092         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85093
85094 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85095
85096         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85097
85098 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * MODULES.html.sh (File system functions): Add stat-time.
85101         * modules/stat-time: New file.
85102         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85103         is now done in a different way, by the stat-time module.
85104         * modules/utimecmp (Depends-on): Add stat-time.
85105
85106 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         * m4/st_mtim.m4: Remove.  Superseded by...
85109         * m4/stat-time.m4: New file.
85110         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85111         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85112
85113 2005-09-15  Derek Price  <derek@ximbiot.com>
85114
85115         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85116
85117 2005-09-15  Derek Price  <derek@ximbiot.com>
85118
85119         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85120         * lib/regex_internal.c: Ditto, using this...
85121         (__GNUC_PREREQ): ...new macro.
85122         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85123         using...
85124         (__GNUC_PREREQ): ...this new macro.
85125
85126         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85127
85128 2005-09-15  Derek Price  <derek@ximbiot.com>
85129             Paul Eggert  <eggert@cs.ucla.edu>
85130
85131         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85132         changes, consolidating in...
85133         * lib/regex_internal.h: ...this file.
85134
85135 2005-09-13  Jim Meyering  <jim@meyering.net>
85136
85137         * lib/canon-host.c: Filter through gnu indent and reword comments
85138         slightly.
85139         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85140
85141 2005-09-13  Derek Price  <derek@ximbiot.com>
85142
85143         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85144         failure.
85145         Reported by Jim Meyering  <jim@meyering.net>.
85146
85147 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85148
85149         * lib/base64.c: Typo.
85150         (base64_encode): Put b64str in initialized data section.
85151
85152 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85153
85154         Merge glibc and coreutils changes into gnulib, plus a few
85155         extra fixes.
85156         * lib/md5.c: Use #error rather than a string.
85157         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85158         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85159         (__attribute__): Define to empty for non recent-GCC.
85160         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85161         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85162         Renamed from their non-__ counterparts, with new macros replacing
85163         them if not _LIBC.  Add __THROW attribute.
85164         (rol): Remove.
85165         (struct md5_ctx): Align buffer if using GCC.
85166         * lib/sha1.h (struct sha1_ctx): Likewise.
85167         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85168         The old name was backwards.
85169         (NOTSWAP): Remove; not used.
85170         (rol): New macro, moved here from md5.h.
85171         (sha1_process_block): Remove a FIXME that doesn't make sense.
85172
85173 2005-09-12  Derek Price  <derek@ximbiot.com>
85174
85175         Return usable errors from canon-host.
85176         * lib/canon-host.h: New file.
85177         * lib/canon-host.c (canon_host): Wrap...
85178         (canon_host_r): ...this new function, which now relies exclusively on
85179         getaddrinfo.
85180         (ch_strerror): New function.
85181         (last_cherror): New global.
85182         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85183         interface.
85184         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85185         void *.
85186         (freeaddrinfo): Free ai->ai_canonname when set.
85187
85188 2005-09-12  Derek Price  <derek@ximbiot.com>
85189
85190         Make canon-host require getaddrinfo.
85191         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85192         AC_LIBSOURCE canon-host.h.  Call...
85193         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85194         gl_GETADDRINFO.
85195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85196
85197 2005-09-12  Derek Price  <derek@ximbiot.com>
85198
85199         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85200         LGPL.
85201         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85202
85203 2005-09-12  Derek Price  <derek@ximbiot.com>
85204
85205         * lib/gai_strerror.c: Include config.h when available.  Include
85206         getaddrinfo.h before other headers to test interface.
85207         Reported by Larry Jones <lawrence.jones@ugs.com>.
85208
85209 2005-09-12  Derek Price  <derek@ximbiot.com>
85210             Paul Eggert  <eggert@cs.ucla.edu>
85211
85212         * modules/glob (Files): Add glob-libc.h.
85213
85214 2005-09-12  Derek Price  <derek@ximbiot.com>
85215             Paul Eggert  <eggert@cs.ucla.edu>
85216
85217         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85218         glob_.h, glob-libc.h.
85219         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85220
85221 2005-09-12  Derek Price  <derek@ximbiot.com>
85222             Paul Eggert  <eggert@cs.ucla.edu>
85223
85224         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85225         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85226         protecting things that should be done only in gnulib contexts.
85227         * lib/glob_.h: New file, containing only the glob things needed for
85228         gnulib.
85229         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85230         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85231         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85232         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85233         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85234         and to respect the namespace rules better.
85235
85236 2005-09-08  Simon Josefsson  <jas@extundo.com>
85237
85238         * modules/socklen: New file.
85239
85240 2005-09-08  Simon Josefsson  <jas@extundo.com>
85241
85242         * m4/socklen.m4: New file.
85243
85244 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         * modules/utimens (Files): Add m4/utimbuf.m4, since
85247         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85248         Reported by Sergey Poznyakoff.
85249
85250 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85251
85252         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85253         definitions, since that's the preferred style in glibc.
85254         Fix a minor spacing issue, and update copyright notice to match
85255         glibc's.
85256
85257 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85258
85259         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85260
85261 2005-09-06  Simon Josefsson  <jas@extundo.com>
85262
85263         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85264         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85265
85266 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85269         warning.
85270
85271 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * config/srclist.txt: Add glibc bug 1302.
85274
85275 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85276
85277         Change bitset word type from unsigned int to unsigned long int,
85278         as this has better performance on typical 64-bit hosts.
85279         Port bitset code to hosts with unusual word sizes.
85280         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85281         (build_collating_symbol):
85282         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85283         argument is a bitset.  This is merely a style issue, but it makes
85284         it clearer that an entire array is expected.
85285         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85286         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85287         Port to the case where bitset_word is not the same as unsigned int.
85288         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85289         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85290         Likewise.
85291         * lib/regexec.c (check_dst_limits_calc_pos_1,
85292         check_subexp_matching_top):
85293         (build_trtable, group_nodes_into_DFAstates):
85294         Likewise.
85295         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85296         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85297         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85298         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85299         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85300         * lib/regcomp.c (optimize_subexps, lower_subexp):
85301         Work even if bitset_word has holes in its bitwise representation.
85302         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85303         * lib/regexec.c (check_dst_limits_calc_pos_1,
85304         check_subexp_matching_top):
85305         Likewise.
85306         * lib/regex_internal.c (re_string_reconstruct):
85307         Don't assume UCHAR_MAX == 255.
85308         * lib/regex_internal.h (bitset_set_all): Likewise.
85309         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85310         All uses changed.
85311         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85312         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85313         All uses changed.
85314         (BITSET_WORD_MAX): New macro.
85315         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85316         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85317         (bitset_empty, bitset_copy):
85318         Prefer sizeof (bitset) to multiplying it out ourselves.
85319         (bitset_not_merge): Remove; unused.
85320         (bitset_contain): Return bool, not unsigned int with one bit on.
85321         All callers changed.
85322         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85323         alignment than re_node_set; do this by defining a new internal
85324         type struct dests_alloc and using it to allocate memory.
85325
85326 2005-09-05  Bruno Haible  <bruno@clisp.org>
85327
85328         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85329         links.
85330
85331 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85332
85333         * modules/size_max (Makefile.am): Add size_max.h
85334
85335 2005-09-04  Derek Price  <derek@ximbiot.com>
85336
85337         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85338
85339 2005-09-03  Simon Josefsson  <jas@extundo.com>
85340
85341         * gnulib-tool: Fix typo.
85342
85343 2005-09-03  Simon Josefsson  <jas@extundo.com>
85344
85345         * config/srclist.txt: Add glibc bug 1293.
85346
85347 2005-09-03  Derek Price  <derek@ximbiot.com>
85348
85349         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85350         From Larry Jones <lawrence.jones@ugs.com>.
85351
85352 2005-09-02  Simon Josefsson  <jas@extundo.com>
85353
85354         * modules/socklen: New file.
85355
85356 2005-09-02  Simon Josefsson  <jas@extundo.com>
85357
85358         * modules/havelib: New module.
85359
85360         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85361         Use havelib.
85362
85363 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         Check for arithmetic overflow when calculating sizes, to prevent
85366         some buffer-overflow issues.  These patches are conservative, in the
85367         sense that when I couldn't determine whether an overflow was possible,
85368         I inserted a run-time check.
85369         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85370         macros.
85371         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85372         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85373         (re_xnrealloc, re_x2nrealloc): New inline functions.
85374         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85375         parse_bracket_exp):
85376         (build_equiv_class, build_charclass): Check for arithmetic overflow
85377         in size expression calculations.
85378         * lib/regex_internal.c (re_string_realloc_buffers):
85379         (build_wcs_upper_buffer, re_node_set_add_intersect):
85380         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85381         (re_dfa_add_node, register_state): Likewise.
85382         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85383         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85384         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85385         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85386
85387 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85390         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85391
85392 2005-09-02  Bruno Haible  <bruno@clisp.org>
85393
85394         Support for lib vs. lib64 distinction on biarch platforms.
85395         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85396         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85398
85399 2005-09-02  Bruno Haible  <bruno@clisp.org>
85400
85401         * gnulib-tool (import): In the other first-use case, provide defaults
85402         as well.
85403
85404 2005-09-02  Bruno Haible  <bruno@clisp.org>
85405
85406         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85407         patches not yet found in the latest gettext release.
85408
85409 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85412         to avoid a collision with bits/local_lim.h in glibc.
85413         All uses changed.  Problem reported by Dmitry V. Levin in
85414         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85415
85416         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85417         bugs in int versus size_t comparisons.
85418         (re_string_context_at): Fix bug where the code assumed that
85419         Idx is signed.
85420
85421         Use bool where appropriate.
85422         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85423         All callers changed.
85424         (calc_eclosure_iter): Likewise, for ROOT arg.
85425         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85426         (build_charclass_op): Likewise, for NON_MATCH arg.
85427         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85428         (re_string_construct_common): Likewise, for ICASE arg.
85429         * lib/regexec.c (re_search_2_stub, re_search_stub):
85430         Likewise, for RET_LEN arg.
85431         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85432         (set_regs): Likewise, for FL_BACKTRACK arg.
85433         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85434         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85435         (calc_eclosure_iter, parse_bracket_exp):
85436         Use bool for internal variables that are booleans.
85437         * lib/regexec.c (re_search_internal, check_matching,
85438         proceed_next_node):
85439         (set_regs, build_sifted_states, sift_states_bkref):
85440         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85441         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85442         (find_collation_sequence_value):
85443         Likewise.
85444         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85445         (re_node_set_compare):
85446         Return bool, not int. All callers changed.
85447         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85448         (build_trtable, check_node_accept): Likewise.
85449         * lib/regex_internal.h: Include stdbool.h.
85450
85451         Fix bugs uncovered when converting to bool.
85452         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85453         failure instead of charging ahead blindly.
85454         * lib/regex_internal.c (register_state): Likewise.
85455         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85456         for freeing internal storage.
85457         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85458         bitset pieces used as boolean, to avoid undefined behavior
85459         on hosts that do int overflow checking.
85460
85461 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * config/srclist.txt: Add glibc bugs 1285-1287.
85464
85465 2005-09-01  Jim Meyering  <jim@meyering.net>
85466
85467         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85468         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85469         Require gl_STAT_MACROS, too.
85470
85471 2005-09-01  Bruno Haible  <bruno@clisp.org>
85472
85473         * gnulib-tool (import): In the first-use case, provide defaults.
85474
85475 2005-09-01  Bruno Haible  <bruno@clisp.org>
85476
85477         * gnulib-tool (func_import): Remove the .tmp files.
85478
85479 2005-09-01  Bruno Haible  <bruno@clisp.org>
85480
85481         * gnulib-tool (func_import): Fix handling of symbolic links.
85482
85483 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85486         old glibc regex code mishandles strings longer than 2**31 bytes.
85487         This patch fixes this when the regex code is used in gnulib
85488         (i.e., outside glibc).
85489
85490         This patch should not affect the use of the regex code inside
85491         glibc.  No doubt this problem also needs to be handled for glibc
85492         as well, but the result will be an incompatible change to the
85493         glibc ABI, and the old ABI will have to be supported too.  That
85494         can be the the subject for another patch.
85495
85496         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85497         governing whether the rest of this patch is active.  By default,
85498         the macro is disabled and the patch has no effect.
85499         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85500         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85501         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85502         (re_match_2, re_set_registers): Use the new types.
85503         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85504         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85505         New macros.
85506         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85507         (re_string_context_at, bin_tree_t, re_dfastate_t):
85508         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85509         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85510         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85511         (re_string_char_size_at, re_string_wchar_at):
85512         (re_string_elem_size_at):
85513         Use the new types and macros to port to 64-bit hosts.
85514         Use unsigned types for internal values, so that the code
85515         mostly works even for arrays larger than SSIZE_MAX.
85516         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85517         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85518         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85519         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85520         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85521         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85522         (calc_inveclosure, parse_dup_op, build_range_exp):
85523         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85524         (fetch_number, create_token_tree, mark_opt_subexp):
85525         Likewise.
85526         * lib/regex_internal.c (re_string_construct_common,
85527         create_ci_newstate):
85528         (create_cd_newstate, re_string_allocate, re_string_construct):
85529         (re_string_realloc_buffers, build_wcs_upper_buffer):
85530         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85531         (re_string_reconstruct, re_string_peek_byte_case):
85532         (re_string_fetch_byte_case, re_string_context_at):
85533         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85534         (re_node_set_init_copy, re_node_set_add_intersect):
85535         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85536         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85537         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85538         (re_acquire_state, re_acquire_state_context, register_state):
85539         Likewise.
85540         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85541         search_cur_bkref_entry):
85542         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85543         (re_search_internal, re_search_2_stub, re_search_stub)
85544         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85545         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85546         (update_cur_sifted_state, check_dst_limits):
85547         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85548         (check_subexp_limits, sift_states_bkref, merge_state_array):
85549         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85550         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85551         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85552         (expand_bkref_cache, check_node_accept_bytes):
85553         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85554         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85555         (acquire_init_state_context, check_halt_node_context):
85556         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85557         (sift_states_backward, clean_state_log_if_needed):
85558         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85559         (find_recover_state, transit_state_sb, transit_state_mb):
85560         (transit_state_bkref, build_trtable, match_ctx_clean):
85561         Likewise.
85562         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85563         to work around an assumption that REG_MISSING is negative.
85564
85565         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85566         (seek_collating_symbol_entry) [defined _LIBC]:
85567         (lookup_collation_sequence_value) [defined _LIBC]:
85568         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85569         Use prototypes rather than old-style function definitions.
85570         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85571         (transit_state_sb) [0]:
85572         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85573
85574         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85575         rm_eo.
85576
85577         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85578         (optimize_subexps, lower_subexp):
85579         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85580         since the signed shift might overflow.  Use 1u<<31 instead.
85581         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85582         Likewise.
85583         * lib/regexec.c (check_dst_limits_calc_pos_1,
85584         check_subexp_matching_top): Likewise.
85585
85586         * lib/regcomp.c (optimize_subexps, lower_subexp):
85587         Use CHAR_BIT rather than 8, for clarity.
85588         * lib/regexec.c (check_dst_limits_calc_pos_1):
85589         (check_subexp_matching_top): Likewise.
85590         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85591         have to worry about portability issues when shifting it left.
85592         Remove no-longer-needed test for table_size > 0.
85593         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85594         in a word, as the resulting behavior is undefined.
85595         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85596         in one case, a <= should have been an <, and in another case the
85597         whole test was missing.
85598         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85599         the standard name CHAR_BIT.
85600         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85601         this is not true on one's complement and signed-magnitude hosts.
85602
85603         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85604         next_last_offset.
85605         (struct re_dfa_t): Remove unused member states_alloc.
85606         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85607
85608 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85609
85610         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85611         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85612         and large-file glibc and in 32-bit large-file Solaris.
85613
85614 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85615
85616         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85617         lengths fit in regoff_t; this isn't true if regoff_t is the same
85618         width as size_t.
85619         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85620         (= START + RANGE) instead of RANGE.  This avoids overflow
85621         problems when regoff_t is the same width as size_t.
85622         All callers changed.
85623         (re_search_2_stub): Check for overflow when adding the
85624         sizes of the two strings.
85625         (re_search_stub): Check for overflow when adding START
85626         to RANGE; if it occurs, substitute the extreme value.
85627
85628 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85629
85630         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85631
85632 2005-08-31  Jim Meyering  <jim@meyering.net>
85633
85634         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85635         a pointer-to-const.
85636         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85637         (register_state): Likewise.
85638         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85639         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85640         (group_nodes_into_DFAstates): Likewise.
85641
85642 2005-08-31  Jim Meyering  <jim@meyering.net>
85643
85644         * check-module: Add a FIXME comment.
85645
85646 2005-08-31  Eric Blake  <ebb9@byu.net>
85647
85648         * modules/unistd-safer (Files): Add unistd--.h.
85649         * modules/stdio-safer (Files): Add stdio--.h.
85650
85651 2005-08-31  Derek Price  <derek@ximbiot.com>
85652
85653         * lib/getdelim.c (getdelim): Return EOF on EOF.
85654         Reported by Larry Jones <lawrence.jones@ugs.com>.
85655
85656 2005-08-31  Bruno Haible  <bruno@clisp.org>
85657
85658         Avoid unnecessary diffs in the generated lib/Makefile.am.
85659         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85660         the generated files.
85661         (func_import): Don't set cmd.
85662
85663 2005-08-31  Bruno Haible  <bruno@clisp.org>
85664
85665         * lib/strstr.c: Include <stddef.h>, for NULL.
85666         * lib/strcasestr.c: Likewise.
85667         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85668
85669 2005-08-31  Bruno Haible  <bruno@clisp.org>
85670
85671         * gnulib-tool: New option --macro-prefix.
85672         (func_import): Use macro_prefix.
85673         (import): Handle option --macro-prefix.
85674
85675 2005-08-31  Bruno Haible  <bruno@clisp.org>
85676
85677         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85678         Also use new variables cached_lgpl, cached_libtool.
85679
85680 2005-08-31  Bruno Haible  <bruno@clisp.org>
85681
85682         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85683         always instantiating them.
85684
85685 2005-08-31  Bruno Haible  <bruno@clisp.org>
85686
85687         * gnulib-tool (func_import): Read the previous cached settings
85688         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85689         earlier added by gnulib but are now dropped. Warn when a gnulib file
85690         overwrites a non-gnulib file.
85691
85692 2005-08-31  Bruno Haible  <bruno@clisp.org>
85693
85694         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85695         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85696         projects that don't keep autogenerated files in CVS. Put into
85697         actioncmd only the specified modules, not the transitive closure.
85698
85699 2005-08-31  Bruno Haible  <bruno@clisp.org>
85700
85701         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85702         Create directories that shall be filled.
85703         (import): Don't look for gl_* macros in configure.ac. Recurse across
85704         all directories containing a gnulib-cache.m4 files, if meaningful.
85705
85706 2005-08-31  Bruno Haible  <bruno@clisp.org>
85707
85708         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85709         (import): Set seen_libtool when we see gl_LIBTOOL.
85710
85711 2005-08-31  Bruno Haible  <bruno@clisp.org>
85712
85713         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85714         declaration macro definitions from generated gnulib.m4.
85715
85716 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85717
85718         * lib/iconvme.h: Add prototype for iconv_alloc.
85719
85720 2005-08-29  Simon Josefsson  <jas@extundo.com>
85721
85722         * lib/iconvme.c: Fix errno.
85723
85724 2005-08-29  Bruno Haible  <bruno@clisp.org>
85725
85726         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85727         that it works when the directory contains spaces.
85728
85729 2005-08-29  Bruno Haible  <bruno@clisp.org>
85730
85731         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85732
85733 2005-08-29  Bruno Haible  <bruno@clisp.org>
85734
85735         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85736         Emit more advice.
85737
85738 2005-08-29  Bruno Haible  <bruno@clisp.org>
85739         and Stepan Kasal  <kasal@ucw.cz>
85740
85741         * check-module: If more parameters are given, check each of them
85742         separately; add more exceptions, as noted by Jim Meyering.
85743         (check_module): New procedure.
85744         (%exempt_header): Now contains all exceptions.
85745
85746 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85747
85748         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85749
85750 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85751
85752         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85753
85754 2005-08-28  Bruno Haible  <bruno@clisp.org>
85755
85756         * m4/gnulib-tool.m4: New file.
85757
85758 2005-08-27  Jim Meyering  <jim@meyering.net>
85759
85760         * modules/unistd-safer (Files): Add pipe-safer.c.
85761         * modules/fcntl-safer (Files): Add creat-safer.c.
85762
85763 2005-08-27  Jim Meyering  <jim@meyering.net>
85764
85765         * m4/stdlib-safer.m4: New file.  From coreutils.
85766         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85767         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85768         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85769         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85770         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85771
85772 2005-08-27  Jim Meyering  <jim@meyering.net>
85773
85774         * lib/fopen-safer.c: Merge minor changes from coreutils.
85775         * lib/dup-safer.c: Likewise.
85776         * lib/fd-safer.c: Likewise.
85777
85778         Merge from coreutils.
85779         * lib/stdio--.h: New file.
85780         * lib/stdlib--.h: New file.
85781         * lib/mkstemp-safer.c: New file.
85782
85783         GNU tar needs these.
85784         * lib/pipe-safer.c: New file.
85785         * lib/creat-safer.c: New file.
85786         * lib/fcntl--.h (creat): Define to creat_safer.
85787         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85788         * lib/unistd--.h (pipe): Define to pipe_safer.
85789         * lib/unistd-safer.h: Declare pipe_safer.
85790
85791 2005-08-26  Simon Josefsson  <jas@extundo.com>
85792
85793         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85794         Haible <bruno@clisp.org>.
85795
85796 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85797
85798         * lib/regex_internal.h: Remove all references to
85799         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85800         or better.
85801         (bitset_not, bitset_merge, bitset_not_merge):
85802         (bitset_mask, re_string_allocate, re_string_construct):
85803         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85804         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85805         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85806         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85807         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85808         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85809         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85810         (re_acquire_state_context):
85811         Remove unnecessary forward decls.
85812         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85813         Put __attribute at function definition,
85814         now that the function decl has been removed.
85815         * lib/regex_internal.c (re_string_peek_byte_case):
85816         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85817         Likewise.
85818
85819 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85820
85821         * m4/regex.m4: Add AC_PREREQ(2.50).
85822         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85823
85824 2005-08-25  Simon Josefsson  <jas@extundo.com>
85825
85826         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85827         __fsetlocking.
85828
85829 2005-08-25  Simon Josefsson  <jas@extundo.com>
85830
85831         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85832         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85833         GLIBC specific code.
85834
85835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85836
85837         Make regex safe for g++.  This fixes one real bug (an "err"
85838         that should have been "*err").  g++ problem reported by
85839         Sam Steingold.
85840         * lib/regex_internal.h (re_calloc): New macro, consistent with
85841         re_malloc etc.  All callers of calloc changed to use re_calloc.
85842         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85843         not int.  All callers changed.
85844         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85845         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85846         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85847         (find_recover_state): Change "err" to "*err"; this fixes what
85848         appears to be a real bug.
85849         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85850         versus int.
85851
85852 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * modules/regex (Depends-on): Add malloc, since the code
85855         assumes that !malloc(0) means failure.
85856
85857 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85860
85861         alloca modernization/simplification for regex.
85862         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85863         needs to be at the start of the file, and can be moved into
85864         regex_internal.h and simplified.
85865         * lib/regex_internal.h: Include <alloca.h>.
85866         (__libc_use_alloca) [!defined _LIBC]: New macro.
85867         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85868         now works outside glibc.
85869
85870 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85871
85872         * config/srclist.txt: Add glibc bugs 1241, 1245.
85873
85874 2005-08-25  Jim Meyering  <jim@meyering.net>
85875
85876         * lib/open-safer.c: Include <config.h>.
85877         Otherwise, we'd lose LARGEFILE support in any file using
85878         e.g. "fcntl--.h"
85879
85880 2005-08-25  Bruno Haible  <bruno@clisp.org>
85881
85882         * m4/minmax.m4: Require autoconf 2.52.
85883         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85884         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85885         alternatives of translit over the alphabet.
85886         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85887
85888 2005-08-24  Simon Josefsson  <jas@extundo.com>
85889
85890         * tests/test-getpass.c: New file.
85891
85892 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85893
85894         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85895         for GNU regex features.
85896
85897 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85898
85899         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85900         * lib/regex.h (regerror): Likewise.
85901
85902         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85903         requires this.  (The code never needed it.)
85904
85905         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85906         All uses of recently-renamed identifiers changed to use the new,
85907         POSIX-compliant names.  The code will build and run just fine
85908         without these changes, but it's better to eat our own dog food
85909         and use the standard-conforming names.
85910
85911         * lib/regex.h: Fix a multitude of POSIX name space violations.
85912         These changes have an effect only for programs that define
85913         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85914         do not change anything for programs compiled in the normal way.
85915         Also, there is no effect on the ABI.
85916
85917         (_REGEX_SOURCE): New macro.
85918         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85919         defined and _GNU_SOURCE is not; this fixes a name space violation.
85920
85921         Rename the following macros to obey POSIX requirements.
85922         The old names are still visible as macros if _REGEX_SOURCE is defined.
85923         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85924         RE_BACKSLASH_ESCAPE_IN_LISTS.
85925         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85926         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85927         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85928         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85929         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85930         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85931         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85932         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85933         (REG_INTERVALS): renamed from RE_INTERVALS.
85934         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85935         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85936         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85937         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85938         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85939         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85940         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85941         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85942         RE_UNMATCHED_RIGHT_PAREN_ORD.
85943         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85944         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85945         (REG_DEBUG): renamed from RE_DEBUG.
85946         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85947         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85948         unusual, since we can't clash with the POSIX REG_ICASE.
85949         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85950         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85951         (REG_NO_SUB): renamed from RE_NO_SUB.
85952         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85953         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85954         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85955         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85956         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85957         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85958         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85959         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85960         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85961         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85962         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85963         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85964         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85965         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85966         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85967         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85968         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85969         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85970         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85971         (REG_FIXED): Renamed from REGS_FIXED.
85972         (REG_NREGS): Renamed from RE_NREGS.
85973
85974         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85975         of other REG_* macros, since POSIX says the user is allowed to
85976         #undef these macros selectively.
85977
85978         (reg_errcode_t): Update comment stating what other tables need
85979         to be consistent.
85980
85981         Rename the following enum values to obey POSIX requirements.
85982         The old names are still visible as macros.
85983         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85984         is not defined, since GNU is supposed to be a superset of POSIX as
85985         much as possible, and since we want reg_errcode_t to be a signed
85986         type for implementation consistency.
85987         (_REG_NOERROR): Renamed from REG_NOERROR.
85988         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85989         (_REG_BADPAT): Renamed from REG_BADPAT.
85990         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85991         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85992         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85993         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85994         (_REG_EBRACK): Renamed from REG_EBRACK.
85995         (_REG_EPAREN): Renamed from REG_EPAREN.
85996         (_REG_EBRACE): Renamed from REG_EBRACE.
85997         (_REG_BADBR): Renamed from REG_BADBR.
85998         (_REG_ERANGE): Renamed from REG_ERANGE.
85999         (_REG_ESPACE): Renamed from REG_ESPACE.
86000         (_REG_BADRPT): Renamed from REG_BADRPT.
86001         (_REG_EEND): Renamed from REG_EEND.
86002         (_REG_ESIZE): Renamed from REG_ESIZE.
86003         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86004         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86005         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86006         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86007         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86008
86009         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86010         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86011         changed.  But support the old name if the new one is not defined
86012         and if _REGEX_SOURCE.
86013
86014         Change the following member names in struct re_pattern_buffer.
86015         The old names are still supported if !_REGEX_SOURCE.
86016         The new names are always supported, regardless of _REGEX_SOURCE.
86017         (re_buffer): Renamed from buffer.
86018         (re_allocated): Renamed from allocated.
86019         (re_used): Renamed from used.
86020         (re_syntax): Renamed from syntax.
86021         (re_fastmap): Renamed from fastmap.
86022         (re_translate): Renamed from translate.
86023         (re_can_be_null): Renamed from can_be_null.
86024         (re_regs_allocated): Renamed from regs_allocated.
86025         (re_fastmap_accurate): Renamed from fastmap_accurate.
86026         (re_no_sub): Renamed from no_sub.
86027         (re_not_bol): Renamed from not_bol.
86028         (re_not_eol): Renamed from not_eol.
86029         (re_newline_anchor): Renamed from newline_anchor.
86030
86031         Change the following member names in struct re_registers.
86032         The old names are still supported if !_REGEX_SOURCE.
86033         The new names are always supported, regardless of _REGEX_SOURCE.
86034         (rm_num_regs): Renamed from num_regs.
86035         (rm_start): Renamed from start.
86036         (rm_end): Renamed from end.
86037
86038         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86039         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86040         Prepend __ to parameter names.
86041
86042         Undo yesterday's changes.
86043
86044 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86047         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86048         lib/regex.c.
86049
86050 2005-08-24  Jim Meyering  <jim@meyering.net>
86051
86052         Sync from coreutils.
86053         * m4/fcntl-safer.m4: New file.
86054
86055         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86056         and object files for this module.
86057
86058 2005-08-24  Jim Meyering  <jim@meyering.net>
86059
86060         Sync from coreutils.
86061         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86062
86063 2005-08-24  Jim Meyering  <jim@meyering.net>
86064
86065         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86066         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86067
86068 2005-08-24  Jim Meyering  <jim@meyering.net>
86069
86070         * modules/fcntl-safer: New module.
86071         * modules/fts (Depends-on): Add fcntl-safer.
86072         * MODULES.html.sh (File descriptor based Input/Output):
86073         Add fcntl-safer.
86074
86075 2005-08-24  Bruno Haible  <bruno@clisp.org>
86076
86077         Support for unit test modules.
86078         * modules/README: Mention tests modules.
86079         * modules/TEMPLATE-TESTS: New file.
86080         * gnulib-tool: New options --extract-tests-module, --with-tests and
86081         --tests-base (unused for the moment).
86082         (testsbase, inctests): New variables.
86083         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86084         (func_verify_module): Exclude TEMPLATE-TESTS.
86085         (func_verify_nontests_module, func_verify_tests_module): New functions.
86086         (func_get_dependencies): Add implicit dependency for tests modules.
86087         (func_get_tests_module): New function.
86088         (func_modules_transitive_closure): When --with-tests was specified,
86089         include the unit tests as well, unless explicitly avoided.
86090         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86091         (func_emit_tests_Makefile_am): New function.
86092         (func_create_testdir): When --with-tests was specified, emit a
86093         tests/ directory.
86094         * MODULES.html.sh (Future developments): Update.
86095
86096 2005-08-24  Bruno Haible  <bruno@clisp.org>
86097
86098         * modules/tls-tests: New file.
86099         * tests/test-tls.c: New file, from GNU gettext.
86100
86101 2005-08-24  Bruno Haible  <bruno@clisp.org>
86102
86103         * modules/lock-tests: New file.
86104         * tests/test-lock.c: New file, from GNU gettext.
86105
86106 2005-08-24  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/lock.h: Add multiple inclusion guard.
86109         * lib/tls.h: Add multiple inclusion guard.
86110
86111 2005-08-24  Bruno Haible  <bruno@clisp.org>
86112
86113         * gnulib-tool: Add support for the --aux-dir option to
86114         --create-testdir, --create-megatestdir, --test, --megatest.
86115         (func_create_testdir, func_create_megatestdir): Optionally emit a
86116         AC_CONFIG_AUX_DIR directive.
86117         (create-testdir, create-megatestdir, test, megatest): Provide a
86118         default value for $auxdir.
86119
86120 2005-08-24  Bruno Haible  <bruno@clisp.org>
86121
86122         * gnulib-tool (import): Use compound statement instead of subshell
86123         where possible.
86124
86125 2005-08-24  Bruno Haible  <bruno@clisp.org>
86126
86127         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86128
86129 2005-08-24  Bruno Haible  <bruno@clisp.org>
86130
86131         * gnulib-tool (func_version): Update.
86132
86133 2005-08-24  Bruno Haible  <bruno@clisp.org>
86134
86135         * gnulib-tool (func_import, func_create_testdir,
86136         func_create_megatestdir): Quote all autoconf macro arguments.
86137
86138 2005-08-24  Bruno Haible  <bruno@clisp.org>
86139
86140         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86141         option --force, because --force causes the aclocal.m4 of each
86142         subdirectory to be newer than the corresponding config.h.in.
86143
86144 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86147         All contents moved to gl_REGEX.
86148         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86149         assume that it does.
86150
86151 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86152
86153         * lib/regex.h (REG_NOSYS)
86154         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86155         Define, since POSIX requires it as of 2001.
86156         (_REG_ENOSYS)
86157         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86158         New private symbol, used to keep the enum signed in all cases.
86159         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86160         Youngman in
86161         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86162
86163         * lib/regex_internal.c (re_string_skip_chars, register_state):
86164         (calc_state_hash):
86165         Remove forward decls; no longer needed now that we use prototypes.
86166         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86167         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86168         (clean_state_log_if_needed): Likewise.
86169
86170 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * config/srclist.txt: Add glibc bugs 1231-1233.
86173
86174 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86175
86176         Fix problems reported by Sam Steingold in
86177         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86178         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86179         assumed that reg_errcode_t is a signed type, which is not
86180         necessarily true if _XOPEN_SOURCE is not defined.
86181         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86182         since some compilers warn about it otherwise.
86183
86184 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86187         (init_word_char, create_initial_state, duplicate_node_closure):
86188         (fetch_token, peek_token_bracket, build_range_exp):
86189         (build_collating_symbol): Remove forward decls; no longer needed
86190         now that we use prototypes.
86191
86192         * lib/regcomp.c:
86193         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86194         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86195         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86196         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86197         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86198         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86199         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86200         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86201         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86202         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86203         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86204         (build_charclass, build_charclass_op, fetch_number, create_tree):
86205         (create_token_tree, mark_opt_subexp, duplicate_tree):
86206         Use prototypes rather than old-style definitions.
86207
86208         * lib/regex_internal.c:
86209         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86210         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86211         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86212         (re_string_reconstruct, re_string_peek_byte_case):
86213         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86214         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86215         (re_node_set_init_copy, re_node_set_add_intersect):
86216         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86217         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86218         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86219         (re_acquire_state, re_acquire_state_context, register_state):
86220         (create_ci_newstate, create_cd_newstate, free_state):
86221         Likewise.
86222         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86223         re_search_2):
86224         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86225         (re_search_internal, prune_impossible_nodes):
86226         (acquire_init_state_context, check_matching, static):
86227         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86228         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86229         (update_regs, sift_states_backward, build_sifted_states):
86230         (clean_state_log_if_needed, merge_state_array):
86231         (update_cur_sifted_state, add_epsilon_src_nodes):
86232         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86233         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86234         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86235         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86236         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86237         (check_arrival, check_arrival_add_next_nodes):
86238         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86239         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86240         (check_node_accept_bytes, check_node_accept, extend_buffers):
86241         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86242         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86243         (sift_ctx_init):
86244         Likewise.
86245
86246         * lib/regex_internal.h:
86247         (re_string_allocate, re_string_construct, re_string_reconstruct):
86248         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86249         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86250         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86251         (re_string_context_at, re_string_peek_byte_case):
86252         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86253         is defined, since we now use prototypes always.
86254
86255         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86256         C89 or better.  All uses removed.
86257
86258 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86259
86260         * config/srclist.txt: Add glibc bugs 1220-1227.
86261
86262 2005-08-20  Jim Meyering  <jim@meyering.net>
86263
86264         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86265         of unused local, dfa.
86266
86267 2005-08-20  Bruno Haible  <bruno@clisp.org>
86268
86269         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86270
86271 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86274         (re_node_set_insert_last, re_dfa_add_node):
86275         Rename local variables to avoid GCC shadowing warnings.
86276
86277 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86278
86279         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86280         [defined lint]: Suppress bogus uninitialized-variable warnings.
86281
86282         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86283         and let the caller return REG_ESPACE if out of space.  This
86284         removes an uninitialied-variable warning with GCC 4.0.1, and also
86285         avoids taking the address of a local variable.  All callers
86286         changed.
86287
86288 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86291         $LIBCSRC/posix/regexec.c.
86292         Add glibc bug 1217 for regcomp.c.
86293
86294 2005-08-19  Jim Meyering  <jim@meyering.net>
86295
86296         * lib/regexec.c (proceed_next_node): Redo local variables to
86297         avoid GCC shadowing warnings.
86298
86299 2005-08-18  Bruno Haible  <bruno@clisp.org>
86300
86301         * lib/strstr.c (strstr): Fix return value in multibyte case.
86302         * lib/strcasestr.c (strcasestr): Likewise.
86303
86304 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86305
86306         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86307
86308 2005-08-17  Jim Meyering  <jim@meyering.net>
86309
86310         Make the %s format (seconds since the epoch) work for a negative
86311         number and when used with a zero-padded field width, e.g. %015s.
86312
86313         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86314         label so that it precedes the code to set `digits'.  Otherwise,
86315         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86316         print `00-22'.  Now, it prints `-0022', as it should.
86317
86318 2005-08-17  Bruno Haible  <bruno@clisp.org>
86319
86320         * modules/strstr (Files): Add m4/mbrtowc.m4.
86321         (Depends-on): Add mbuiter.
86322
86323 2005-08-17  Bruno Haible  <bruno@clisp.org>
86324
86325         * modules/strcasestr: New file.
86326         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86327         strcasestr.
86328
86329 2005-08-17  Bruno Haible  <bruno@clisp.org>
86330
86331         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86332
86333 2005-08-17  Bruno Haible  <bruno@clisp.org>
86334
86335         * modules/mbuiter: New file.
86336         * MODULES.html.sh (Extended multibyte and wide character utilities):
86337         Add mbuiter.
86338
86339 2005-08-17  Bruno Haible  <bruno@clisp.org>
86340
86341         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86342         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86343
86344 2005-08-17  Bruno Haible  <bruno@clisp.org>
86345
86346         * m4/strcasestr.m4: New file.
86347
86348 2005-08-17  Bruno Haible  <bruno@clisp.org>
86349
86350         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86351         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86352
86353 2005-08-17  Bruno Haible  <bruno@clisp.org>
86354
86355         * lib/strcasestr.h: New file.
86356         * lib/strcasestr.c: New file.
86357
86358 2005-08-17  Bruno Haible  <bruno@clisp.org>
86359
86360         * lib/strcasecmp.c: Use mbuiter.h.
86361
86362 2005-08-17  Bruno Haible  <bruno@clisp.org>
86363
86364         * lib/mbuiter.h: New file.
86365
86366 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86367
86368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86369         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86370         and gl_GETOPT are both invoked via different paths (as happens
86371         with GNU tar CVS because it uses both argp and getopt), the former
86372         wins.
86373
86374 2005-08-16  Bruno Haible  <bruno@clisp.org>
86375
86376         * modules/tls: New file.
86377         * MODULES.html.sh (Multithreading): Add tls.
86378
86379 2005-08-16  Bruno Haible  <bruno@clisp.org>
86380
86381         * modules/strnlen1: New file.
86382         * MODULES.html.sh (String handling): Add strnlen1.
86383
86384 2005-08-16  Bruno Haible  <bruno@clisp.org>
86385
86386         * modules/strcase (Files): Add m4/mbrtowc.m4.
86387         (Depends-on): Add strnlen1, mbchar.
86388
86389 2005-08-16  Bruno Haible  <bruno@clisp.org>
86390
86391         * modules/mbiter: New file.
86392         * MODULES.html.sh (Extended multibyte and wide character utilities):
86393         Add mbiter.
86394
86395 2005-08-16  Bruno Haible  <bruno@clisp.org>
86396
86397         * modules/mbfile: New file.
86398         * MODULES.html.sh (Extended multibyte and wide character utilities):
86399         Add mbfile.
86400
86401 2005-08-16  Bruno Haible  <bruno@clisp.org>
86402
86403         * modules/mbchar: New file.
86404         * MODULES.html.sh (Extended multibyte and wide character utilities):
86405         New section.
86406
86407 2005-08-16  Bruno Haible  <bruno@clisp.org>
86408
86409         * m4/tls.m4: New file, from GNU gettext.
86410
86411 2005-08-16  Bruno Haible  <bruno@clisp.org>
86412
86413         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86414         always.
86415         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86416
86417 2005-08-16  Bruno Haible  <bruno@clisp.org>
86418
86419         * m4/mbiter.m4: New file.
86420
86421 2005-08-16  Bruno Haible  <bruno@clisp.org>
86422
86423         * m4/mbfile.m4: New file.
86424
86425 2005-08-16  Bruno Haible  <bruno@clisp.org>
86426
86427         * m4/mbchar.m4: New file.
86428
86429 2005-08-16  Bruno Haible  <bruno@clisp.org>
86430
86431         * lib/tls.h: New file, from GNU gettext.
86432         * lib/tls.c: New file, from GNU gettext.
86433
86434 2005-08-16  Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/strnlen1.h: New file.
86437         * lib/strnlen1.c: New file.
86438
86439 2005-08-16  Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86442         (mbi_init): Update.
86443         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86444         NUL byte, not after it.
86445
86446 2005-08-16  Bruno Haible  <bruno@clisp.org>
86447
86448         * lib/strcase.h (strcasecmp): Add note in comments.
86449         * lib/strncasecmp.c: Use code from strcasecmp.c.
86450         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86451         (strcasecmp): Work correctly in multibyte locales.
86452
86453 2005-08-16  Bruno Haible  <bruno@clisp.org>
86454
86455         * lib/mbiter.h: New file.
86456
86457 2005-08-16  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/mbfile.h: New file.
86460
86461 2005-08-16  Bruno Haible  <bruno@clisp.org>
86462
86463         * lib/mbchar.h: New file.
86464         * lib/mbchar.c: New file.
86465
86466 2005-08-16  Bruno Haible  <bruno@clisp.org>
86467
86468         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86469         the valid ones. Makes the comparison operations transitive:
86470         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86471         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86472
86473 2005-08-15  Simon Josefsson  <jas@extundo.com>
86474
86475         * modules/ssize_t (License): Change to 'unlimited'.
86476
86477         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86478
86479 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86480
86481         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86482         Add comments for each pending glibc patch.
86483
86484 2005-08-15  Bruno Haible  <bruno@clisp.org>
86485
86486         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86487         __cplusplus is defined.
86488
86489 2005-08-14  Jim Meyering  <jim@meyering.net>
86490
86491         Sync from coreutils.
86492
86493         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86494         Use the hash-table-based cycle-detection code not just when
86495         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86496         Reported by James Youngman in
86497         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86498         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86499         FTS_TIGHT_CYCLE_CHECK.
86500         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86501         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86502         once again.
86503         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86504         * lib/fts.c (fd_safer): Remove decl.
86505         Include fcntl--.h rather than unistd-safer.h
86506         (fts_safe_changedir): Don't call fd_safer; no longer needed
86507         now that we include fcntl--.h.
86508
86509 2005-08-12  Simon Josefsson  <jas@extundo.com>
86510
86511         * modules/getndelim2: Use ssize_t module.
86512         * modules/getnline: Likewise.
86513         * modules/safe-read: Likewise.
86514         * modules/xreadlink: Likewise.
86515
86516         * modules/ssize_t: New file.
86517
86518 2005-08-12  Simon Josefsson  <jas@extundo.com>
86519
86520         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86521
86522 2005-08-12  Simon Josefsson  <jas@extundo.com>
86523
86524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86525         ssize_t.
86526
86527 2005-08-12  Simon Josefsson  <jas@extundo.com>
86528
86529         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86530         readline, getdelim and check_version.
86531         (Support for systems lacking ISO C 99: Sizes of integer types):
86532         Add size_max.
86533
86534 2005-08-12  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86537
86538 2005-08-11  Simon Josefsson  <jas@extundo.com>
86539
86540         * modules/readline: New file.
86541
86542         * modules/strnlen (Files): Add strnlen.h.
86543
86544 2005-08-11  Simon Josefsson  <jas@extundo.com>
86545
86546         * m4/readline.m4: New file.
86547
86548 2005-08-11  Simon Josefsson  <jas@extundo.com>
86549
86550         * lib/readline.h, readline.c: New file.
86551
86552 2005-08-11  Simon Josefsson  <jas@extundo.com>
86553
86554         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86555         gl_AVOID.
86556
86557 2005-08-11  Bruno Haible  <bruno@clisp.org>
86558
86559         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86560
86561 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86562
86563         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86564
86565 2005-08-10  Simon Josefsson  <jas@extundo.com>
86566
86567         * tests/test-iconvme.c: New file.
86568
86569 2005-08-10  Simon Josefsson  <jas@extundo.com>
86570
86571         * m4/strnlen.m4: New file.
86572
86573         * m4/strndup.m4: Don't check for strnlen declaration, done in
86574         strnlen.m4.
86575
86576 2005-08-10  Simon Josefsson  <jas@extundo.com>
86577
86578         * lib/strndup.c: Use strnlen.h.
86579
86580         * lib/strnlen.h: New file.
86581
86582 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86583
86584         * README: Typos.
86585
86586 2005-08-02  Simon Josefsson  <jas@extundo.com>
86587
86588         * modules/readline: New file.
86589
86590 2005-08-02  Simon Josefsson  <jas@extundo.com>
86591
86592         * modules/getdelim: New file.
86593
86594         * modules/getline: Rewrite, don't use getndelim2.
86595
86596 2005-08-02  Simon Josefsson  <jas@extundo.com>
86597
86598         * m4/getline.m4: Separate out getdelim stuff into separate module.
86599
86600         * m4/getdelim.m4: New file.
86601
86602 2005-08-02  Simon Josefsson  <jas@extundo.com>
86603
86604         * lib/getline.h, getline.c: Rewrite.
86605
86606         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86607
86608 2005-07-31  Bruno Haible  <bruno@clisp.org>
86609
86610         * lib/lock.h (gl_lock_initializer): New macro.
86611         (gl_lock_define_initialized): Use it.
86612         (gl_rwlock_initializer): New macro.
86613         (gl_rwlock_define_initialized): Use it.
86614         (gl_recursive_lock_initializer): New macro.
86615         (gl_recursive_lock_define_initialized): Use it.
86616
86617 2005-07-30  Karl Berry  <karl@gnu.org>
86618
86619         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86620         Report from Ben Pfaff, regarding getopt.
86621
86622 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86623
86624         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86625         normal way.
86626         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86627         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86628         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86629         (gl_GETOPT): Use the new macros.  Most of the implementation
86630         is moved to the new macros.  This is for programs like Emacs
86631         that don't want all the functionality of gl_GETOPT.
86632
86633 2005-07-26  Bruno Haible  <bruno@clisp.org>
86634
86635         * m4/lock.m4: Update from GNU gettext.
86636
86637 2005-07-26  Bruno Haible  <bruno@clisp.org>
86638
86639         * lib/lock.h: Update from GNU gettext.
86640         * lib/lock.c: Update from GNU gettext.
86641
86642 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86643
86644         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86645         obsolescent AC_TRY_RUN.  Include the default includes files, for
86646         'exit'.
86647
86648 2005-07-24  Bruno Haible  <bruno@clisp.org>
86649
86650         * modules/visibility: New file.
86651         * MODULES.html.sh (Misc): Add visibility.
86652
86653 2005-07-24  Bruno Haible  <bruno@clisp.org>
86654
86655         * m4/visibility.m4: New file.
86656
86657 2005-07-24  Bruno Haible  <bruno@clisp.org>
86658
86659         * doc/visibility.texi: New file.
86660
86661 2005-07-22  Bruno Haible  <bruno@clisp.org>
86662
86663         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86664         $(ALLOCA_H), redundant through BUILT_SOURCES.
86665         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86666         redundant through BUILT_SOURCES.
86667         * modules/byteswap (Makefile.am): Remove explicit dependency on
86668         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86669         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86670         $(FNMATCH_H), redundant through BUILT_SOURCES.
86671         * modules/getopt (Makefile.am): Remove explicit dependency on
86672         $(GETOPT_H), redundant through BUILT_SOURCES.
86673         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86674         redundant through BUILT_SOURCES.
86675         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86676         redundant through BUILT_SOURCES.
86677         * modules/stdbool (Makefile.am): Remove explicit dependency on
86678         $(STDBOOL_H), redundant through BUILT_SOURCES.
86679         * modules/stdint (Makefile.am): Remove explicit dependency on
86680         $(STDINT_H), redundant through BUILT_SOURCES.
86681         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86682         Remove explicit dependency on $(SYSEXITS_H).
86683         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86684
86685 2005-07-18  Simon Josefsson  <jas@extundo.com>
86686
86687         * lib/check-version.c (check_version): Accept identical versions too.
86688
86689 2005-07-18  Bruno Haible  <bruno@clisp.org>
86690
86691         * modules/lock: New file.
86692         * MODULES.html.sh (Multithreading): New section.
86693
86694 2005-07-18  Bruno Haible  <bruno@clisp.org>
86695
86696         * m4/lock.m4: New file, from GNU gettext.
86697
86698 2005-07-18  Bruno Haible  <bruno@clisp.org>
86699
86700         * lib/lock.h: New file, from GNU gettext.
86701         * lib/lock.c: New file, from GNU gettext.
86702
86703 2005-07-18  Bruno Haible  <bruno@clisp.org>
86704
86705         * lib/lock.h (gl_once_t): New type.
86706         (gl_once_define, gl_once): New macros.
86707         * lib/lock.c (fresh_once): New variable.
86708         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86709         functions.
86710
86711 2005-07-16  Simon Josefsson  <jas@extundo.com>
86712
86713         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86714         workaround, suggested by Bruno.
86715
86716 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86717
86718         * modules/xalloc (Depends-on): Add xalloc-die.
86719         * modules/xvasprintf (Depends-on): Add xalloc-die.
86720
86721 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86722
86723         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86724         with a minor change.
86725
86726 2005-07-15  Bruno Haible  <bruno@clisp.org>
86727
86728         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86729         When using lib/poll.c, define poll as rpl_poll.
86730
86731 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86732
86733         * modules/argp (Depends-on): Remove unlocked-io.
86734
86735 2005-07-14  Derek Price  <derek@ximbiot.com>
86736
86737         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86738         for glob symlink bug.
86739
86740 2005-07-14  Bruno Haible  <bruno@clisp.org>
86741
86742         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86743         Instead, test for *_unlocked function declarations directly.
86744
86745 2005-07-11  Simon Josefsson  <jas@extundo.com>
86746
86747         * modules/size_max: New file.
86748
86749         * modules/xsize: Depend on size_max module for size_max.m4.
86750
86751 2005-07-11  Simon Josefsson  <jas@extundo.com>
86752
86753         * lib/size_max.h: New file.
86754
86755 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86756
86757         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86758         copyright symbol and the year.
86759         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86760         (version_etc_va): Use parameterized copyright notice.
86761         Reword to conform to the current GNU coding standards.
86762
86763 2005-07-11  Karl Berry  <karl@gnu.org>
86764
86765         * doc/gnulib.texi (Quoting): new node.
86766         (Initial import): more info, from Patrice.
86767
86768 2005-07-11  Bruno Haible  <bruno@clisp.org>
86769
86770         * gnulib-tool (func_usage): Document option --avoid.
86771         (Command line options): Handle --avoid.
86772         (func_acceptable): New function.
86773         (func_modules_transitive_closure): Use it.
86774
86775 2005-07-11  Bruno Haible  <bruno@clisp.org>
86776
86777         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86778         Reported by Jim Meyering.
86779
86780 2005-07-10  Bruno Haible  <bruno@clisp.org>
86781
86782         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86783         Needed when size_t is smaller than 'unsigned int'.
86784         Reported by Paul Eggert.
86785
86786 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86787
86788         * modules/argp (Depends-on): Add unlocked-io
86789
86790 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86791
86792         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86793         block of defines.
86794
86795 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86798         fix now.
86799
86800 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86801         and Paul Eggert  <eggert@cs.ucla.edu>
86802
86803         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86804         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86805
86806 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86807
86808         * modules/regex (Files): Add lib/regex_internal.c,
86809         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86810         (Depends-on): Add extensions.
86811         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86812
86813 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86814
86815         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86816         pathconf.
86817         * m4/same.m4 (gl_SAME): Likewise.
86818         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86819
86820         * m4/regex.m4: Adjust to new libc regex implementation.
86821         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86822         all the .c and .h parts of (the new) regex.
86823         Quote the m4 stuff better.
86824         Check for RE_ICASE bug of old gnulib.
86825         Check for REG_STARTEND of recent libc.
86826         Rename local variables from jm_* to gl_*.
86827         Quote operand of "test -f".
86828         Say "recent enough" version of libc, not "version 2".
86829         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86830         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86831         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86832         Remove check for btowc, isascii.
86833         Require AM_LANGINFO_CODESET.
86834
86835 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86836
86837         * lib/regex.c, regex.h: Sync from libc.
86838         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86839         * lib/regexec.c:
86840         New files, synced from libc, except that regex_internal.h
86841         currently has a small porting fix.
86842
86843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86846         regex_internal.c, regexec.c.
86847         Add regex_internal.h too, but as a comment, since the libc version
86848         is currently broken in gnulib mode.
86849
86850 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86851
86852         Support programs like Emacs that use gnulib but not gettext.
86853         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86854         * modules/gettext-h: New file.
86855         * modules/gettext (Files): Remove lib/gettext.h.
86856         (Depends-on): Add gettext-h.
86857         (Makefile.am): Remove lib_SOURCES.
86858         * modules/argmatch, modules/c-stack, modules/closeout:
86859         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86860         * modules/execute, modules/file-type, modules/getaddrinfo:
86861         * modules/getopt, modules/human, modules/javacomp:
86862         * modules/javaexec, modules/mkdir-p, modules/obstack:
86863         * modules/openat, modules/pagealign_alloc, modules/pipe:
86864         * modules/quotearg, modules/regex, modules/rpmatch:
86865         * modules/unicodeio, modules/userspec, modules/version-etc:
86866         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86867         * modules/xsetenv:
86868         Depend on gettext-h, not gettext.
86869
86870 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86871
86872         * gnulib-tool (func_import): Add support for 'public domain' license.
86873         * modules/alloca, modules/atexit, modules/memmove:
86874         Now public domain, not GPL.
86875         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86876         * modules/realloc, modules/strerror, modules/strtod:
86877         Now LGPL, not GPL.
86878
86879 2005-07-05  Bruno Haible  <bruno@clisp.org>
86880
86881         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86882         autoconf CVS. Needed for mingw.
86883
86884 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86885
86886         Remove the dependency of the strftime module on the tzset module.
86887         * modules/strftime (Depends-on): Remove dependency on tzset.
86888
86889 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86890
86891         Remove the dependency of the strftime module on the tzset module.
86892         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86893         gl_FUNC_TZSET_CLOBBER.
86894
86895 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86896
86897         Remove the dependency of the strftime module on the tzset module.
86898         * lib/strftime.c (my_strftime)
86899         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86900         Copy the input structure, to work around some of the bug with
86901         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86902         Solaris releases, you should also use the tzset module, but we won't
86903         require it as a dependency any more since we don't want LGPLed code
86904         to depend on GPLed code.
86905
86906 2005-07-02  Jim Meyering  <jim@meyering.net>
86907
86908         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86909         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86910         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86911         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86912
86913 2005-07-02  Jim Meyering  <jim@meyering.net>
86914
86915         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86916
86917 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86918
86919         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86920         declares only 'struct timespec;' (!).
86921
86922 2005-07-01  Jim Meyering  <jim@meyering.net>
86923
86924         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86925         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86926         * lib/save-cwd.c, tempname.c:
86927         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86928         and don't include <sys/file.h>).
86929
86930 2005-06-29  Jim Meyering  <jim@meyering.net>
86931
86932         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86933         type name.  Use the variable name instead.
86934         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86935         Likewise.
86936
86937 2005-06-28  Simon Josefsson  <jas@extundo.com>
86938
86939         * modules/check-version (Files): Add check-version.m4.
86940
86941 2005-06-28  Simon Josefsson  <jas@extundo.com>
86942
86943         * m4/check-version.m4: New file, suggested by Jim Meyering
86944         <jim@meyering.net>.
86945
86946 2005-06-28  Simon Josefsson  <jas@extundo.com>
86947
86948         * lib/check-version.h, lib/check-version.c: New files.
86949
86950 2005-06-28  Simon Josefsson  <jas@extundo.com>
86951
86952         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86953         collision with global variable.  Better indentation.  Don't
86954         increment buffer pointer beyond buffer end.  Based on comments
86955         from Paul Eggert <eggert@cs.ucla.edu>.
86956
86957         * lib/base64.h: Indent.
86958
86959 2005-06-28  Simon Josefsson  <jas@extundo.com>
86960
86961         * doc/gnulib.texi (Library version handling): New section.
86962
86963 2005-06-28  Jim Meyering  <jim@meyering.net>
86964
86965         * check-module (find_included_lib_files): Hard-code another
86966         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86967         but modules/fts-lgpl (correctly) does not list those files.
86968
86969         * modules/canonicalize (Files): Add lib/pathmax.h.
86970
86971 2005-06-25  Simon Josefsson  <jas@extundo.com>
86972
86973         * modules/check-version: New file.
86974
86975 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86978         initializer of struct addrinfo, as an indication that we don't
86979         care how many members the structure has.
86980
86981 2005-06-24  Derek Price  <derek@ximbiot.com>
86982         and Bruno Haible  <bruno@clisp.org>
86983
86984         Remove stat module & update lstat.
86985         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86986         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86987         * m4/stat.m4: Remove this file.
86988
86989 2005-06-24  Derek Price  <derek@ximbiot.com>
86990         and Bruno Haible  <bruno@clisp.org>
86991
86992         Remove stat module & update lstat.
86993         * lib/stat.c: Remove this file...
86994         (slash_aware_lstat): ...moving this content and its support...
86995         * lib/lstat.c (rpl_lstat): ...into here.
86996         * lib/lstat.h: New file.
86997
86998 2005-06-24  Derek Price  <derek@ximbiot.com>
86999         and Bruno Haible  <bruno@clisp.org>
87000
87001         Remove stat module & update lstat.
87002         * config/srclist.txt (libc sources): Remove stat.
87003
87004 2005-06-24  Derek Price  <derek@ximbiot.com>
87005         and Bruno Haible  <bruno@clisp.org>
87006
87007         Remove stat module & update lstat.
87008         * MODULES.html.sh (stat): Remove.
87009         * MODULES.html: Regenerated.
87010         * modules/lstat (Description): Correct function name.
87011         (Files): Add "lstat.h".
87012         (Depends-on): Remove stat, add xalloc, stat-macros.
87013         * modules/stat: Remove this file.
87014         (Include): Add "lstat.h", remove <sys/stat.h>.
87015
87016 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87017
87018         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87019         (ranged_convert): Don't save conversion in a temporary struct.
87020         This causes a warning with GCC 4.0.0, and anyway in the typical
87021         case it's not worth the extra 100 bytes or so of code.
87022         (ranged_convert, __mktime_internal): When calling a function via a
87023         pointer P, use P () rather than (*P) (), as we now assume C89 or
87024         better.
87025
87026 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87029         "who -r" failed to give output.  Problem reported by Tim Waugh.
87030
87031         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87032         (xcalloc): Use it to avoid needless tests.
87033         Problem reported by Jim Meyering.
87034
87035 2005-06-20  Derek Price  <derek@ximbiot.com>
87036
87037         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87038         unnecessary for Autoconfs > 2.59c.
87039
87040 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87041
87042         * lib/argp.h (__option_is_short): Check upper limit of
87043         __key. Isprint() requires its argument to have the value
87044         of an unsigned char or EOF.
87045
87046 2005-06-16  Jim Meyering  <jim@meyering.net>
87047
87048         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87049         when either N or S is zero.
87050
87051 2005-06-16  Derek Price  <derek@ximbiot.com>
87052
87053         * m4/bison.m4: Declare YACC & YFLAGS precious.
87054
87055 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87058         multibyte string or pattern, fall back on unibyte matching.
87059         Problem reported by James Youngman.
87060
87061 2005-06-08  Bruno Haible  <bruno@clisp.org>
87062
87063         * modules/csharpcomp: New file.
87064         * MODULES.html.sh (C#): Add csharpcomp.
87065
87066 2005-06-08  Bruno Haible  <bruno@clisp.org>
87067
87068         * m4/csharpcomp.m4: New file, from GNU gettext.
87069
87070 2005-06-08  Bruno Haible  <bruno@clisp.org>
87071
87072         * lib/csharpcomp.h: New file, from GNU gettext.
87073         * lib/csharpcomp.c: New file, from GNU gettext.
87074         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87075
87076 2005-06-08  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87079         warning on mingw.
87080
87081 2005-06-07  Derek Price  <derek@ximbiot.com>
87082
87083         Sync from CVS.
87084         * lib/glob_.h: Indent nested #ifdef.
87085
87086 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         Sync from coreutils.
87089         Use "file name" when talking about file names, instead of "filename"
87090         or "path", as per the GNU coding standards.
87091         * lib/mkdir-p.c: Renamed from makepath.c.
87092         (make_dir_parents): Renamed from make_path.  All callers changed.
87093         * lib/mkdir-p.h: Likewise.  All includers changed.
87094         * lib/filenamecat.c: Renamed from path-concat.c.
87095         (file_name_concat): Renamed from path_concat.  All callers changed.
87096         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87097         * lib/filenamecat.h: Likewise.  All includers changed.
87098         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87099         in comments or local variable names.
87100         * lib/basename.c: Likewise.
87101         * lib/canonicalize.c, canonicalize.h: Likewise.
87102         * lib/dirname.c, dirname.h: Likewise.
87103         * lib/euidaccess.c: Likewise.
87104         * lib/exclude.c: Likewise
87105         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87106         * lib/fsusage.c, fsuage.h: Likewise.
87107         * lib/fts.c, fts_.h: Likewise.
87108         * lib/getcwd.c: Likewise.
87109         * lib/getloadavg.c: Likewise.
87110         * lib/mkstemp.c: Likewise.
87111         * lib/mountlist.c, mountlist.h: Likewise.
87112         * lib/openat.c, openat.h: Likewise.
87113         * lib/readlink-stub.c: Likewise.
87114         * lib/readutmp.c, readutmp.h: Likewise.
87115         * lib/rename.c: Likewise.
87116         * lib/rmdir.c: Likewise.
87117         * lib/same.c: Likewise.
87118         * lib/savedir.c: Likewise.
87119         * lib/stripslash.c: Likewise.
87120         * lib/tempname.c: Likewise.
87121         * lib/xreadlink.c: Likewise.
87122         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87123         All uses changed.
87124         * lib/exclude.h: Likewise.
87125
87126         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87127         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87128         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87129         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87130         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87131         files have been getting away with it for years (MORE/BSD 4.3
87132         is extinct now).
87133         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87134         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87135
87136         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87137         Define to 256, not 255, as per modern POSIX.
87138
87139 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87140
87141         Sync from coreutils.
87142         Use "file name" when talking about file names, instead of "filename"
87143         or "path", as per the GNU coding standards.
87144         * MODULES.html.sh: mkdir-p renamed from makepath.
87145         filenamecat renamed from path-concat.
87146         * modules/filenamecat: Renamed from modules/path-concat.
87147         (Files): filenamecat.h and filenamecat.c renamed from
87148         path-concat.h and path-concat.c.
87149         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87150         (Include): filenamecat.h, not path-concat.h.
87151         * modules/mkdir-p: Renamed from modules/makepath.
87152         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87153         makepath.c.
87154         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87155         (Include): mkdir-p.h, not makepath.h.
87156
87157 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87158
87159         Sync from coreutils.
87160         * m4/mkdir-p.m4: Renamed from makepath.m4.
87161         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87162         Rename files from makepath.c to mkdir-p.c, and from
87163         makepath.h to mkdir-p.h.
87164         * m4/filenamecat.m4: Renamed from path-concat.m4.
87165         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87166         Rename files from path-concat.c to filenamecat.c,
87167         and from path-concat.h to filenamecat.h.
87168         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87169         "file name" in local variables or comments.
87170         * m4/rename.m4: Likewise.
87171
87172 2005-06-01  Bruno Haible  <bruno@clisp.org>
87173
87174         * modules/csharpexec: New file.
87175         * MODULES.html.sh (C#): New section.
87176
87177 2005-06-01  Bruno Haible  <bruno@clisp.org>
87178
87179         * m4/csharp.m4: New file, from GNU gettext.
87180         * m4/csharpexec.m4: New file, from GNU gettext.
87181
87182 2005-06-01  Bruno Haible  <bruno@clisp.org>
87183
87184         * lib/csharpexec.h: New file, from GNU gettext.
87185         * lib/csharpexec.c: New file, from GNU gettext.
87186         * lib/csharpexec.sh.in: New file, from GNU gettext.
87187
87188 2005-05-31  Derek Price  <derek@ximbiot.com>
87189             Paul Eggert  <eggert@cs.ucla.edu>
87190
87191         Sync from cvs.
87192         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87193
87194 2005-05-31  Derek Price  <derek@ximbiot.com>
87195             Paul Eggert  <eggert@cs.ucla.edu>
87196
87197         Sync from cvs.
87198         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87199
87200 2005-05-29  Derek Price  <derek@ximbiot.com>
87201
87202         * config/srclist.txt (glob_.h, glob.c): Add these files.
87203
87204 2005-05-29  Derek Price  <derek@ximbiot.com>
87205
87206         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87207         * modules/glob: New file.
87208         * modules/getlogin_r: Add link to POSIX spec in description.
87209
87210 2005-05-29  Derek Price  <derek@ximbiot.com>
87211             Paul Eggert  <eggert@cs.ucla.edu>
87212
87213         * m4/glob.m4: New file.
87214
87215 2005-05-29  Derek Price  <derek@ximbiot.com>
87216             Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * lib/glob_.h, lib/glob.c: New files.
87219
87220 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87223         * modules/fts-lgpl (Depends-on): Remove gettext.
87224
87225 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87226
87227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87228         and don't require gt_INTTYPES_PRI.
87229
87230 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87231
87232         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87233
87234         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87235         the configuration hassle isn't worth it.
87236         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87237         (LONGEST_MODIFIER, PRIuMAX): Remove.
87238
87239 2005-05-27  Bruno Haible  <bruno@clisp.org>
87240
87241         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87242
87243 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87244
87245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87246         _POSIX_PTHREAD_SEMANTICS for Solaris.
87247
87248 2005-05-25  Derek Price  <derek@ximbiot.com>
87249
87250         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87251
87252 2005-05-25  Derek Price  <derek@ximbiot.com>
87253             Paul Eggert  <eggert@cs.ucla.edu>
87254
87255         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87256         * lib/getlogin_r.c, getlogin_r.h: New files.
87257
87258 2005-05-25  Bruno Haible  <bruno@clisp.org>
87259             Derek Price  <derek@ximbiot.com>
87260
87261         * lib/getlogin_r.h: Simplify API documentation.
87262
87263 2005-05-23  Derek Price  <derek@ximbiot.com>
87264
87265         * modules/minmax (Files): Add m4/minmax.m4.
87266         (configure.ac): Add gl_MINMAX.
87267
87268 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87269
87270         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87271         so that unistd-safer.h (GPL'ed code) need not be included.
87272
87273 2005-05-22  Bruno Haible  <bruno@clisp.org>
87274
87275         * m4/minmax.m4: New file.
87276         Based on a patch by Derek Price <derek@ximbiot.com>.
87277
87278 2005-05-22  Bruno Haible  <bruno@clisp.org>
87279
87280         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87281         (INT64_MIN): Fix definition.
87282         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87283
87284         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87285         NEED_SIGNED_INT_TYPES.
87286
87287         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87288         HAVE_SYSTEM_INTTYPES.
87289
87290 2005-05-22  Bruno Haible  <bruno@clisp.org>
87291
87292         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87293         Also include <sys/param.h> if it defines MIN, MAX.
87294         Based on a patch by Derek Price <derek@ximbiot.com>.
87295
87296 2005-05-21  Jim Meyering  <jim@meyering.net>
87297
87298         * modules/fts (Files): Add m4/inttypes-pri.m4.
87299         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87300
87301 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87302
87303         New fts module.
87304         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87305         (setup_dir, free_dir): New functions.
87306         (enter_dir, leave_dir): Define trivial
87307         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87308         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87309         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87310         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87311         Move to fts-cycle.c.
87312         (fts_open): Use setup_dir.
87313         (fts_close): Use free_dir.
87314         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87315         This adds a label and some gotos, but the alternatives were messier.
87316         Check for memory allocation failure when entering a dir.
87317         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87318         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87319         (FTS): New member fts_cycle, that is a union that contains the
87320         old active_dir_ht and cycle_state.  All uses changed to mention
87321         fts_cycle.ht and fts_cycle.state.
87322         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87323         fts.c, with the following changes:
87324         (setup_dir, free_dir): New functions.
87325         (enter_dir): Now returns bool.  Return true if successful, false
87326         if memory exhausted.  All callers changed.
87327         Do not bother partly cleaning up on
87328         memory allocation failure; that is free_dir's job.
87329         However, free ad if hash_insert fails, to avoid memory leak.
87330         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87331         fts->fts_options to see which union member to use.
87332
87333 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87334
87335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87336         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87337
87338 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87341
87342 2005-05-20  Jim Meyering  <jim@meyering.net>
87343
87344         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87345         Now a macro, to pacify GCC.
87346
87347 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87348
87349         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87350         of -1.
87351
87352 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87353
87354         * lib/chown.c (rpl_chown): Return -1 on failure.
87355
87356 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87357
87358         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87359         Don't check for stddef.h.
87360         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87361         don't use its results.
87362         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87363         since we include them unconditionally.  Don't require
87364         AM_STDBOOL_H, since stdbool is a prerequisite.
87365         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87366         since we assume C89 or better.
87367         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87368         as we don't use their results.
87369         Don't check for fchdir, memmove, memset, strrchr, as we use
87370         them unconditionally.
87371         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87372         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87373
87374 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87375
87376         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87377         Include <stddef.h> unconditionally, since we assume C89 now.
87378         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87379         * lib/fts.c: Include fts_.h first, to check interface.
87380         Do not include intprops.h; no longer needed.
87381         Include cycle-check.h and hash.h, since fts_.h no longer does.
87382         Remove unnecessary casts of closedir to void.
87383         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87384         decide whether to decrement nlinks.
87385         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87386         (FTS): Use struct hash_table * instead of Hash_table, so that
87387         we no longer need to include hash.h here.
87388
87389 2005-05-18  Jim Meyering  <jim@meyering.net>
87390
87391         * modules/dirfd (License): Change to LGPL.  Most of the code
87392         is already in the public domain.
87393
87394 2005-05-18  Jim Meyering  <jim@meyering.net>
87395
87396         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87397         Reported by Yoann Vandoorselaere.
87398
87399 2005-05-17  Jim Meyering  <jim@meyering.net>
87400
87401         * m4/fts.m4: New file, from coreutils.
87402
87403 2005-05-17  Jim Meyering  <jim@meyering.net>
87404
87405         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87406
87407 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87408
87409         Sync from coreutils.
87410         * m4/unlinkdir.m4: New file.
87411
87412 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87413
87414         Sync from coreutils.
87415         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87416         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87417         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87418         White space changes only.
87419         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87420         special.
87421         * lib/yesno.c: Include getline.h, not ctype.h.
87422         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87423         Use getline to remove arbitrary restriction on response length.
87424
87425 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * config/srclist-update: Spell out "Street" in FSF postal
87428         mail address; this is the style the FSF seems to prefer.
87429
87430         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87431         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87432         this updates FSF postal mail address.
87433
87434         Sync from coreutils.
87435         * modules/unlinkdir: New file.
87436         * modules/yesno (Depends-on): Add getline.
87437         * MODULES.html.sh (File system functions): Add unlinkdir.
87438
87439 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87440
87441         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87442         lib/strsep.h:
87443         Change the initial comment to refer to GPL, not LGPL.
87444         gnulib-tool will change it to LGPL as needed.
87445
87446         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87447         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87448         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87449         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87450         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87451         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87452         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87453         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87454         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87455         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87456         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87457         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87458         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87459         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87460         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87461         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87462         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87463         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87464         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87465         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87466         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87467         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87468         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87469         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87470         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87471         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87472         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87473         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87474         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87475         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87476         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87477         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87478         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87479         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87480         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87481         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87482         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87483         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87484         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87485         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87486         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87487         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87488         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87489         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87490         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87491         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87492         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87493         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87494         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87495         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87496         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87497         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87498         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87499         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87500         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87501         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87502         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87503         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87504         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87505         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87506         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87507         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87508         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87509         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87510         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87511         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87512         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87513         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87514         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87515         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87516         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87517         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87518         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87519         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87520         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87521         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87522         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87523         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87524         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87525         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87526         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87527         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87528         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87529         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87530         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87531         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87532         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87533         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87534         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87535         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87536         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87537         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87538         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87539         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87540         lib/yesno.c, lib/yesno.h:
87541         Update FSF postal mail address.
87542
87543 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87544
87545         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87546         tests/test-memmem.c, tests/test-stpncpy.c:
87547         Update FSF postal mail address.
87548
87549 2005-05-13  Bruno Haible  <bruno@clisp.org>
87550
87551         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87552         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87553         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87554         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87555         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87556         Add support for 64-bit integers in the MSVC compiler.
87557
87558 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87559
87560         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87561
87562 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87563
87564         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87565
87566 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87567
87568         * doc/getdate.texi (General date syntax): Don't say that date
87569         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87570         Problem reported by Nic Ferrier.
87571
87572 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87573
87574         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87575         specified in ai_socktype. Fix invalid ai_protocol
87576         check. ai_protocol is usually set to 0 or depending on
87577         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87578         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87579         ai_socktype / ai_protocol in the returned addrinfo structure.
87580
87581 2005-05-10  Simon Josefsson  <jas@extundo.com>
87582
87583         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87584         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87585
87586 2005-05-10  Karl Berry  <karl@gnu.org>
87587
87588         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87589         (from http://www.gnu.org/licenses).
87590         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87591         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87592         fdl.texi suffices.
87593
87594 2005-05-10  Karl Berry  <karl@gnu.org>
87595
87596         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87597         (COPYING.DOC): remove.
87598
87599         * config/srclist-update: new FSF address.
87600
87601 2005-05-10  Derek Price  <derek@ximbiot.com>
87602
87603         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87604         possible.
87605
87606 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87607             Bruno Haible  <bruno@clisp.org>
87608
87609         * modules/inet_ntop: New file.
87610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87611         inet_ntop.
87612
87613 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87614             Bruno Haible  <bruno@clisp.org>
87615
87616         * m4/inet_ntop.m4: New file.
87617
87618 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87619             Bruno Haible  <bruno@clisp.org>
87620
87621         * lib/inet_ntop.h: New file.
87622         * lib/inet_ntop.c: New file, from glibc with modifications.
87623
87624 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         * modules/time_r (License): Change to LGPL.
87627         * modules/extensions (License): Change to LGPL.  Actually,
87628         the license is more permissive than that, but currently gnulib-tool
87629         doesn't know how to handle more-permissive licenses.
87630
87631         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87632         Problem reported by Dave Love.
87633
87634 2005-05-08  Jim Meyering  <jim@meyering.net>
87635
87636         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87637         blank.
87638
87639 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87640
87641         * modules/argmatch (Depends-on): Add stdbool.
87642         * modules/backupfile (Depends-on): Likewise.
87643         * modules/chdir-long (Depends-on): Likewise.
87644         * modules/closeout (Depends-on): Likewise.
87645         * modules/cycle-check (Depends-on): Likewise.
87646         * modules/dirname (Depends-on): Likewise.
87647         * modules/fnmatch (Depends-on): Likewise.
87648         * modules/fsusage (Depends-on): Likewise.
87649         * modules/fwriteerror (Depends-on): Likewise.
87650         * modules/getcwd (Depends-on): Likewise.
87651         * modules/getloadavg (Depends-on): Likewise.
87652         * modules/hard-locale (Depends-on): Likewise.
87653         * modules/makepath (Depends-on): Likewise.
87654         * modules/mountlist (Depends-on): Likewise.
87655         * modules/nanosleep (Depends-on): Likewise.
87656         * modules/posixtm (Depends-on): Likewise.
87657         * modules/quotearg (Depends-on): Likewise.
87658         * modules/readtokens (Depends-on): Likewise.
87659         * modules/readtokens0 (Depends-on): Likewise.
87660         * modules/readutmp (Depends-on): Likewise.
87661         * modules/save-cwd (Depends-on): Likewise.
87662         * modules/strftime (Depends-on): Likewise.
87663         * modules/userspec (Depends-on): Likewise.
87664         * modules/utimecmp (Depends-on): Likewise.
87665         * modules/xgetcwd (Depends-on): Likewise.
87666         * modules/xnanosleep (Depends-on): Likewise.
87667         * modules/xstrtod (Depends-on): Likewise.
87668         * modules/yesno (Depends-on): Likewise.
87669
87670 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87671
87672         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87673         needless checks.
87674
87675 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87676
87677         Merge from coreutils.  Among other things,
87678         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87679         * lib/fd-safer.c: New file.
87680         * lib/fcntl-safer.h, open-safer.c: Remove.
87681         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87682         * lib/dup-safer.c: Include unistd-safer.h first.
87683         Don't include errno.h.
87684         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87685         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87686         * lib/file-type.c: Rely on file-type.h change.
87687         * lib/getloadavg.c: Include unistd-safer.h.
87688         (getloadavg): Use safer open.
87689         * lib/getusershell.c: Include "stdio-safer.h".
87690         (getusershell): Use safer fopen.
87691         * lib/long-options.c (long_options): Use NULL rather than 0.
87692         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87693         'free'.
87694         * lib/modechange.c: Likewise.
87695         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87696         (MODE_DONE): New constant.
87697         (struct mode_change): Remove 'next' member.
87698         (make_node_op_equals): New function; like the old one of the
87699         same name, except it allocates an array.
87700         (mode_compile, mode_create_from_ref): Use it.
87701         (mode_compile): Allocate result as an array, not a linked list.
87702         Parse octal string ourself, so that we catch mistakes like "+0".
87703         (mode_adjust): Arg is an array, not a linked list.
87704         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87705         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87706         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87707         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87708         Remove.  This is now stat-macros.h's job.
87709         (talloc): Remove.  All callers replaced by xalloc, so that
87710         our invokers don't have to worry about reporting memory failures.
87711         (make_node_op_equals): Remove.
87712         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87713         New constants.
87714         (struct mode_change): Moved here from modechange.h.
87715         (mode_append_entry): Remove.
87716         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87717         apps to have incorrect behavior.  Use simpler algorithm for head
87718         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87719         Detect more invalid usages rather than having somewhat-random behavior.
87720         Don't insert an "a=" action, as that leads to incorrect behavior.
87721         (mode_compile, mode_create_from_ref): Return NULL on error instead
87722         of an enum, since now there's only one way to have an error.  All
87723         callers changed.
87724         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87725         at the correct time.  Simplify calculation of "+u" and its ilk.
87726         Don't mishandle "+X".
87727         (mode_free): Remove "register" and localize decls.
87728         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87729         (struct mode_change): Move to modechange.c; callers don't
87730         need to see this stuff.
87731         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87732         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87733         (mode_change, mode_adjust): Reflect the new signatures noted above.
87734         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87735         that might redefine system include files.
87736         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87737         (my_usleep): Use NULL rather than (void *) 0.
87738         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87739         Use siginterrupt to specify that system calls should be interrupted.
87740         (rpl_nanosleep): Move initialization of suspended closer to call of
87741         my_usleep.
87742         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87743         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87744         (desirable_utmp_entry): New function.
87745         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87746         using x2nrealloc, to simplify logic.
87747         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87748         size calculation.  Do not assume utmp file is a regular file.
87749         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87750         (READ_UTMP_CHECK_PIDS): New constant.
87751         * lib/save-cwd.c: Include unistd-safer.h.
87752         (save_cwd): Use fd_safer.
87753         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87754         [!_LIBC] Include "stat-macros.h" instead.
87755         * lib/unistd-safer.h (fd_safer): New decl.
87756
87757 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87758
87759         * modules/getloadavg (Depends-on): Add unistd-safer.
87760         * modules/getusershell (Depends-on): Add stdio-safer.
87761         * modules/lstat (Depends-on): Remove xalloc.
87762         * modules/mkstemp (Depends-on): Add stat-macros.
87763         * modules/modechange (Depends-on): Remove xstrtol.
87764         Add stat-macros, xalloc.
87765         * modules/save-cwd (Depends-on): Add unistd-safer.
87766         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87767         * modules/unistd-safer (Files): Add lib/fd-safer.c
87768         (Makefile.am): Remove lib_SOURCES.
87769
87770         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87771         Remove fcntl-safer; unistd-safer supersedes it.
87772
87773 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87774
87775         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87776         AC_HEADER_STAT.
87777         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87778         (gl_PREREQ_CHOWN): Remove.
87779         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87780         it.  Don't require AC_HEADER_STAT.
87781         (gl_PREREQ_LSTAT): Remove.
87782         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87783         Don't require AC_HEADER_STAT.
87784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87785         (gl_PREREQ_RMDIR): Remove.
87786         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87787         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87788         the stat-macros module a prerequisite.
87789         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87790         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87791         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87792         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87793         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87794         variable names.
87795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87796         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87797         variable prefixes.
87798         * m4/fcntl-safer.m4: Remove.
87799         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87801         Invoke gl_PREREQ_FD_SAFER.
87802         (gl_PREREQ_FD_SAFER): New macro.
87803         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87804         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87805         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87806         Remove duplicate call to AC_LIBOBJ(readutmp).
87807         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87808
87809         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87810         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87811
87812 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87813
87814         * MODULES.html.sh (Misc): Add byteswap.
87815
87816 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87817
87818         * modules/getcwd (Depends-on): Add extensions.
87819         * modules/openat (Depends-on): Likewise.
87820
87821 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87822
87823         * modules/byteswap: New file.
87824
87825 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87826
87827         * m4/byteswap.m4: New file.
87828
87829 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87830
87831         * lib/byteswap_.h: New file.
87832
87833 2005-04-25  Karl Berry  <karl@gnu.org>
87834
87835         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87836
87837 2005-04-25  Albert Chin  <china@thewrittenword.com>
87838
87839         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87840         Toolkit C bug.
87841
87842 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87843
87844         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87845         (func_ln_if_changed): Remove forcibly for no error message
87846         in case file does not exist.
87847
87848 2005-04-19  Simon Josefsson  <jas@extundo.com>
87849
87850         * gnulib-tool (Options): Make --symlink mean --symbolic.
87851
87852 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87853
87854         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87855
87856 2005-04-16  Simon Josefsson  <jas@extundo.com>
87857
87858         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87859
87860 2005-04-15  Simon Josefsson  <jas@extundo.com>
87861
87862         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87863
87864 2005-04-15  Simon Josefsson  <jas@extundo.com>
87865
87866         * gnulib-tool: Rename --symlink to --symbolic.
87867
87868 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87869
87870         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87871         symbolic links to files instead of copying/moving.  Add --aux-dir,
87872         specifying directory relative --dir where auxiliary build tools
87873         are placed.
87874
87875 2005-04-14  Bruno Haible  <bruno@clisp.org>
87876
87877         * modules/allocsa (License): Change to LGPL.
87878         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87879
87880 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87881
87882         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87883         that "UTC +1 second" continues to work.  Problem reported
87884         by Dmitry V. Levin.
87885         (relunit_snumber): New rule.
87886         (relunit): Use it.
87887
87888 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87889
87890         * lib/getdate.y (universal_time_zone_table): New constant.
87891         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87892         universal_time_zone_table.
87893         (lookup_zone): Prefer universal_time_zone_table to
87894         local_time_zone_table, so that "GMT" time stamps are allowed in
87895         London during the summer.  Problem reported by Ian Abbott.
87896
87897 2005-04-12  Jim Meyering  <jim@meyering.net>
87898
87899         * lib/human.c (humblock): Set *options even when returning due to
87900         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87901         warning from gcc-4.
87902
87903 2005-04-09  Jim Meyering  <jim@meyering.net>
87904
87905         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87906         -Wuninitialized: initialize tm0.tm_year.
87907
87908 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87909
87910         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87911         count, since there's no maximum.  All uses changed.
87912         Add member dsts_seen.
87913         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87914         not being INT_MAX.
87915         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87916         Use pc_rels_seen to decide whether a date is absolute.
87917
87918         * lib/getdate.y (number): Don't overwrite year.
87919         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87920         check.
87921
87922 2005-04-02  Simon Josefsson  <jas@extundo.com>
87923
87924         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87925         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87926
87927 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87928
87929         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87930         where no absolute path name can be longer than PATH_MAX.
87931
87932 2005-03-27  Jim Meyering  <jim@meyering.net>
87933
87934         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87935
87936 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87937
87938         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87939         "one's complement" -> "ones' complement" in comment, as per Knuth.
87940         "value of type" -> "type or expression" in comment.
87941         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87942
87943 2005-03-26  Jim Meyering  <jim@meyering.net>
87944
87945         Comment nits.
87946         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87947         Correct typos: s/or/of/.
87948
87949 2005-03-26  Jim Meyering  <jim@meyering.net>
87950
87951         * modules/check-include-files: Move to ../ and rename to...
87952         * check-module: ...this.
87953
87954 2005-03-25  Jim Meyering  <jim@meyering.net>
87955
87956         * modules/xvasprintf (Files): Add xalloc.h.
87957
87958 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * modules/gettext (Files): config/config.rpath ->
87961         build-aux/config.rpath
87962         * modules/iconv (Files): Likewise.
87963         Problem reported by Oskar Liljeblad.
87964
87965 2005-03-23  Jim Meyering  <jim@meyering.net>
87966
87967         * modules/check-include-files: New script to check for
87968         missing dependencies, multiple includes, etc.
87969
87970         * modules/c-strtold (Depends-on): Add xalloc.
87971         * modules/c-strtod (Depends-on): Add xalloc.
87972         * modules/hash (Depends-on): Add xalloc.
87973         (Files): Remove lib/xalloc.h.
87974
87975         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87976         * modules/userspec (Files): Add lib/inttostr.h.
87977
87978 2005-03-23  Jim Meyering  <jim@meyering.net>
87979
87980         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87981
87982 2005-03-22  Jim Meyering  <jim@meyering.net>
87983
87984         * modules/stat-macros: New module.
87985         * modules/canonicalize, modules/euidaccess, modules/file-type,
87986         * modules/filemode, modules/lchown, modules/makepath,
87987         * modules/rmdir, modules/stat: Depend on new stat-macros module
87988         rather than listing lib/stat-macros.h manually.
87989         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87990
87991 2005-03-22  Jim Meyering  <jim@meyering.net>
87992
87993         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87994
87995 2005-03-22  Bruno Haible  <bruno@clisp.org>
87996
87997         * config/srclist.txt: Replace target directory 'config' with
87998         'build-aux'.
87999         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88000         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88001         ../build-aux/.
88002
88003 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88004
88005         * modules/chdir-long (Depends-on): Add mempcpy.
88006
88007         * modules/acl, modules/backupfile, modules/c-strtod,
88008         modules/c-strtold, modules/canon-host, modules/canonicalize,
88009         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88010         modules/exclude, modules/exitfail, modules/file-type,
88011         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88012         modules/getdate, modules/getline, modules/getpagesize,
88013         modules/getpass, modules/getugroups, modules/group-member,
88014         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88015         modules/inttostr, modules/long-options, modules/makepath,
88016         modules/md5, modules/memcasecmp, modules/memcoll,
88017         modules/modechange, modules/mountlist, modules/path-concat,
88018         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88019         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88020         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88021         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88022         modules/strftime, modules/strndup, modules/strverscmp,
88023         modules/timespec, modules/unlocked-io, modules/userspec,
88024         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88025         modules/yesno:
88026         Remove lib_SOURCES line from Makefile.am section, as this is now
88027         done automatically by the corresponding Autoconf macro.
88028
88029 2005-03-21  Jim Meyering  <jim@meyering.net>
88030
88031         Changes imported from coreutils.
88032
88033         * lib/cycle-check.c: Don't include xalloc.h.
88034
88035         * lib/path-concat.c: Don't include assert.h.
88036         (path_concat): Remove assertion that would have triggered
88037         for ABASE starting with more than one slash.
88038         Reported by Andreas Schwab.
88039
88040         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88041         properly when ABASE is an absolute file name.
88042         Correct the description of this function.
88043         Include <assert.h>.
88044         Add an assertion and a test driver.
88045         This fixes a bug introduced on 2004-07-02.
88046         Andreas Schwab reported the resulting failure of cp --parents:
88047         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88048
88049 2005-03-21  Jim Meyering  <jim@meyering.net>
88050
88051         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88053
88054 2005-03-21  Jim Meyering  <jim@meyering.net>
88055         and  Paul Eggert  <eggert@cs.ucla.edu>
88056
88057         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88058         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88059         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88060         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88061         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88062         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88063         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88064         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88065         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88066         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88067         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88068         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88069         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88070         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88071         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88072         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88073         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88074         for these modules.
88075
88076 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88079         (which shouldn't happen), generate nothing instead of returning 0
88080         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88081
88082 2005-03-16  Bruno Haible  <bruno@clisp.org>
88083
88084         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88085         HAVE_LONGLONG_64BIT.
88086
88087 2005-03-16  Bruno Haible  <bruno@clisp.org>
88088
88089         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88090         HAVE_LONGLONG_64BIT.
88091
88092 2005-03-16  Bruno Haible  <bruno@clisp.org>
88093
88094         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88095         HAVE_LONGLONG_64BIT.
88096
88097 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88098
88099         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88100         reliably distinguish strftime failure from empty output on POSIX
88101         hosts.
88102
88103 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88106         (iconv_string): Don't guess a size-zero buffer, as that might cause
88107         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88108         result would be 'too large', where 'too large' is (heuristically)
88109         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88110         overflow concerns.  This will prevent some unwanted malloc failures
88111         when the inputs are very large.
88112
88113 2005-03-15  Karl Berry  <karl@gnu.org>
88114
88115         * config/srclist.txt (config.rpath): from gettext.
88116         * config/config.rpath: update.
88117
88118 2005-03-15  Bruno Haible  <bruno@clisp.org>
88119
88120         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88121         to 'negate'.
88122
88123         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88124         variable.
88125
88126         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88127         results.
88128
88129 2005-03-14  Simon Josefsson  <jas@extundo.com>
88130
88131         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88132         <fx@gnu.org>.
88133
88134 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88135
88136         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88137         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88138         intprops.h.
88139         * lib/strtol.c: Likewise.
88140
88141 2005-03-14  Jim Meyering  <jim@meyering.net>
88142
88143         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88144         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88145         to be nonzero so that we (and caller) can detect the difference
88146         between a valid zero-length expansion and an error return, even
88147         when the underlying strftime fails before writing anything into
88148         that location.
88149
88150 2005-03-14  Bruno Haible  <bruno@clisp.org>
88151
88152         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88153         Update from GNU gettext 0.14.3.
88154
88155 2005-03-10  Jim Meyering  <jim@meyering.net>
88156
88157         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88158
88159 2005-03-10  Jim Meyering  <jim@meyering.net>
88160
88161         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88162         so that this module works on systems without fchdir.
88163
88164 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88165
88166         Factor int-properties macros into a single file, except for
88167         glibc-related files.
88168         * lib/intprops.h: New file.
88169         * lib/getloadavg.c: Include it instead of limits.h.
88170         (INT_STRLEN_BOUND): Remove.
88171         * lib/human.c: Include intprops.h.
88172         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88173         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88174         302/1000.
88175         * lib/inttostr.h: Include intprops.h instead of limits.h.
88176         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88177         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88178         for consistency with intprops.h.
88179         (time_t_is_integer, twos_complement_arithmetic): Use them.
88180         * lib/sig2str.h: Include <signal.h>, intprops.h.
88181         (INT_STRLEN_BOUND): Remove.
88182         * lib/strftime.c (TYPE_SIGNED): Remove.
88183         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88184         * lib/strtol.c: Adjust comments to match intprops.h.
88185         * lib/userspec.c: Include intprops.h.
88186         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88187         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88188         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88189         instead of rolling our own expressions.
88190         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88191
88192         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88193         instead of int.
88194         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88195         the right thing even if adding 1900 would overflow.  Similarly
88196         for tm_mon + 1 and tm_yday + 1.
88197         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88198         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88199         (DO_SIGNED_NUMBER): New macro.
88200         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88201
88202 2005-03-07  Bruno Haible  <bruno@clisp.org>
88203
88204         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88205
88206 2005-03-07  Bruno Haible  <bruno@clisp.org>
88207
88208         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88209
88210 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88211
88212         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88213         (func_import): Only replace files via --import when they have actually
88214         changed.
88215
88216 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88217
88218         * m4/mmap-anon.m4: New file.
88219         * m4/pagealign_alloc.m4: New file.
88220
88221 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88222             Bruno Haible  <bruno@clisp.org>
88223
88224         * modules/pagealign_alloc: New file.
88225         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88226
88227 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88228             Bruno Haible  <bruno@clisp.org>
88229
88230         * lib/pagealign_alloc.h: New file.
88231         * lib/pagealign_alloc.c: New file.
88232
88233 2005-03-03  Bruno Haible  <bruno@clisp.org>
88234
88235         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88236         Use an all-permissive copyright notice, recommended by RMS.
88237
88238 2005-03-02  Bruno Haible  <bruno@clisp.org>
88239
88240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88241         of AIX, the replacement has to be done only after <string.h> is
88242         included, therefore not in config.h. stpncpy.h does the replacement,
88243         and stpncpy.c uses it.
88244
88245 2005-03-02  Bruno Haible  <bruno@clisp.org>
88246
88247         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88248         stpncpy.c uses it.
88249
88250 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88251
88252         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88253         The workaround isn't strictly needed for POSIX conformance, and
88254         it's too much of a pain to configure and maintain.  We'll ask
88255         people to fix their kernels instead.
88256         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88257         (NANOSLEEP_BUG_WORKAROUND): Remove.
88258         (xnanosleep): Remove the workaround.
88259
88260 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88261
88262         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88263         Reported by Derek Price.
88264         (Include): Add "timespec.h".
88265
88266         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88267
88268 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88269
88270         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88271         to detect nanosleep bug.
88272
88273 2005-03-01  Bruno Haible  <bruno@clisp.org>
88274
88275         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88276
88277 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88278
88279         * modules/gethrxtime: New file.
88280         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88281         (Depends-on): Add gethrxtime.
88282         (configure.ac): Add gl_XNANOSLEEP.
88283         (Makefile.am): Remove lib_SOURCES line.
88284
88285 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88286
88287         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88288         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88289
88290 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88293         * lib/timespec.h (gettime): Return void, since it always
88294         succeeds now.  All uses changed.
88295         * lib/gettime.c (gettime): Likewise.
88296         [HAVE_NANOTIME]: Prefer nanotime.
88297         Assume gettimeofday succeeds, as POSIX requires.
88298         Assime time () succeeds, since other code already does.
88299         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88300         (timespec_subtract): Remove.
88301         (NANOSLEEP_BUG_WORKAROUND): New constant.
88302         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88303         things considerably.  Use it only on GNU/Linux hosts, since the
88304         workaround shouldn't be needed elsewhere.
88305
88306 2005-02-24  Bruno Haible  <bruno@clisp.org>
88307
88308         * modules/gettext (Files): Add m4/glibc2.m4.
88309
88310 2005-02-24  Bruno Haible  <bruno@clisp.org>
88311
88312         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88313         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88314         * m4/progtest.m4:
88315         Update from GNU gettext 0.14.2.
88316         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88317
88318 2005-02-24  Bruno Haible  <bruno@clisp.org>
88319
88320         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88321         * lib/config.charset: Update from GNU gettext 0.14.2.
88322
88323 2005-02-24  Bruno Haible  <bruno@clisp.org>
88324
88325         * lib/gettext.h: Update from GNU gettext 0.14.2.
88326
88327 2005-02-23  Simon Josefsson  <jas@extundo.com>
88328
88329         * m4/iconvme.m4: New file.
88330
88331 2005-02-23  Jim Meyering  <jim@meyering.net>
88332
88333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88334         change.
88335         Thanks to Bruno Haible for catching it.
88336
88337 2005-02-22  Simon Josefsson  <jas@extundo.com>
88338
88339         * modules/iconvme: New file.
88340
88341         * MODULES.html.sh: Add iconvme.
88342
88343 2005-02-22  Simon Josefsson  <jas@extundo.com>
88344
88345         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88346
88347 2005-02-22  Simon Josefsson  <jas@extundo.com>
88348
88349         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88350
88351 2005-02-22  Jim Meyering  <jim@meyering.net>
88352
88353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88354         s/ifndef/ifdef/.
88355
88356 2005-02-20  Neil Conway  <neilc@samurai.com>
88357
88358         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88359         returned by OSX/Darwin if the specified buffer is not large
88360         enough for the hostname.
88361
88362 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88363
88364         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88365         pass it to _help, otherwise the latter coredumps trying to
88366         dereference state.root_argp.
88367
88368 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88369
88370         * modules/chdir-long (Depends-on): Add memrchr.
88371         * modules/memrchr (Files): Add lib/memrchr.h.
88372         (Include): "memrchr.h".
88373
88374 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88375
88376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88377
88378 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88379
88380         * lib/memrchr.h: New file.
88381         * lib/chdir-long.c: Include it.
88382         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88383         Don't bother including stddef.h.
88384
88385 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88386
88387         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88388         inclusion.
88389         Include <sys/types.h>, for dev_t.
88390         (ME_DUMMY, ME_REMOTE): Move from here....
88391         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88392         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88393         Dmitry V. Levin.
88394         Include mountlist.h first, to test the interface.
88395
88396 2005-01-29  Bruno Haible  <bruno@clisp.org>
88397
88398         * lib/progname.c (program_name): Initialize.
88399         Needed when linking statically on MacOS X.
88400
88401 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88402
88403         Sync from coreutils.
88404         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88405         (Depends-on): Add c-strtod.
88406         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88407
88408 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         Sync from coreutils.
88411         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88412
88413         Remove files that are specific to coreutils.
88414         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88415
88416 2005-01-28  Bruno Haible  <bruno@clisp.org>
88417
88418         * modules/javacomp: New file.
88419         * MODULES.html.sh (Java): Add javacomp.
88420
88421 2005-01-28  Bruno Haible  <bruno@clisp.org>
88422
88423         * m4/javacomp.m4: New file, from GNU gettext.
88424
88425 2005-01-28  Bruno Haible  <bruno@clisp.org>
88426
88427         * lib/javacomp.sh.in: New file, from GNU gettext.
88428         * lib/javacomp.h: New file, from GNU gettext.
88429         * lib/javacomp.c: New file, from GNU gettext.
88430
88431 2005-01-26  Simon Josefsson  <jas@extundo.com>
88432
88433         * lib/gai_strerror.c: Use GPL in header.
88434
88435 2005-01-26  Bruno Haible  <bruno@clisp.org>
88436
88437         * modules/javaexec: New file.
88438         * MODULES.html.sh (Java): Add javaexec.
88439
88440 2005-01-26  Bruno Haible  <bruno@clisp.org>
88441
88442         * m4/javaexec.m4: New file, from GNU gettext.
88443
88444 2005-01-26  Bruno Haible  <bruno@clisp.org>
88445
88446         * lib/javaexec.sh.in: New file, from GNU gettext.
88447         * lib/javaexec.h: New file, from GNU gettext.
88448         * lib/javaexec.c: New file, from GNU gettext.
88449
88450 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88451
88452         * modules/lchown (Depends-on): Remove lchown.h
88453
88454 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88455
88456         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88457         must be defined if the header file was not found, in order
88458         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88459
88460 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88461
88462         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88463         initializers for struct pentry_state.
88464         (__argp_error): Check return value of __asprintf
88465         (__argp_failure): Translate error message
88466
88467         * lib/argp-parse.c: Removed braces around the expansion of N_()
88468
88469 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88470
88471         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88472         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88473         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88474         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88475         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88476         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88477         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88478         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88479         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88480         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88481         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88482         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88483         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88484         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88485         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88486         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88487         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88488         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88489         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88490         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88491         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88492         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88493         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88494         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88495         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88496         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88497         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88498         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88499         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88500         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88501         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88502         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88503         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88504         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88505         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88506         Use an all-permissive copyright notice, recommended by RMS.
88507
88508 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88509
88510         * modules/chdir-long (Depends-on): Remove mempcpy.
88511
88512 2005-01-21  Jim Meyering  <jim@meyering.net>
88513
88514         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88515         same value as for Solaris 9.
88516
88517         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88518         component length.  This included changing the parameter to be
88519         of type `char *' rather than `char const *'.
88520         * lib/chdir-long.h (chdir_long): Update prototype.
88521
88522         * lib/openat.c (fdopendir, fstatat): New functions.
88523         * lib/openat.h: Include headers required for use of DIR and struct
88524         stat.
88525         [AT_SYMLINK_NOFOLLOW]: Define.
88526         (fdopendir, fstatat): Add prototypes.
88527
88528 2005-01-21  Bruno Haible  <bruno@clisp.org>
88529
88530         * modules/classpath: New file.
88531         * MODULES.html.sh (Java): Add classpath.
88532
88533 2005-01-21  Bruno Haible  <bruno@clisp.org>
88534
88535         * lib/classpath.h: New file, from GNU gettext.
88536         * lib/classpath.c: New file, from GNU gettext.
88537
88538 2005-01-20  Simon Josefsson  <jas@extundo.com>
88539
88540         * modules/version-etc-fsf: New file.
88541
88542 2005-01-20  Simon Josefsson  <jas@extundo.com>
88543
88544         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88545         * lib/version-etc.c: Remove version_etc_copyright.
88546         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88547         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88548
88549 2005-01-20  Simon Josefsson  <jas@extundo.com>
88550
88551         * lib/base64.h (isbase64): Add.
88552
88553         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88554         using a unsigned prototype, don't inline.
88555         (base64_decode): Use it.
88556
88557 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88558
88559         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88560         it.
88561
88562 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88563
88564         * lib/save-cwd.c (save_cwd): Remove code to support the case
88565         where fchdir is missing or flaky.
88566
88567 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88568
88569         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88570
88571 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88574         AC_LIBSOURCES now does this.
88575         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88576         with new ullong_max module.
88577
88578 2005-01-19  Bruno Haible  <bruno@clisp.org>
88579
88580         * modules/sh-quote: New file.
88581         * MODULES.html.sh (Executing programs): Add sh-quote.
88582
88583 2005-01-19  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/sh-quote.h: New file, from GNU gettext.
88586         * lib/sh-quote.c: New file, from GNU gettext.
88587
88588 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         Merge from coreutils.
88591         * m4/ullong_max.m4: New file.
88592         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88593         (gl_MACROS): Assume localeconv exists.
88594
88595 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88596
88597         Merge changes from coreutils, as described below in several
88598         changelogs dated today.
88599
88600         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88601         (O_DIRECTORY): Remove; not needed here, since "." must be
88602         a directory.  All uses removed.
88603         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88604         universal on Suns, and we also need to test for IRIX.
88605         Revamp code to use 'if' rather than '#if'.
88606         Avoid unnecessary comparison of cwd->desc to 0.
88607
88608         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88609         for known valid error numbers rather than observed invalid ones.
88610
88611 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88612
88613         * modules/ullong_max: New file.
88614
88615         * modules/chdir-long, modules/openat: New files.
88616         * modules/save-cwd (Depends-on): Depend on chdir-long.
88617         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88618
88619 2005-01-18  Jim Meyering  <jim@meyering.net>
88620
88621         Merge from coreutils.
88622         * m4/chdir-long.m4, m4/openat.m4: New files.
88623         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88624         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88625         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88626         is sane and DOES follow symlinks.  Besides, testing 20 different
88627         systems found no broken chown implementations.
88628         Prompted by a change in rsync's copy of this macro.
88629         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88630
88631         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88632
88633         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88634         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88635         NULL-means-set-to-current-time semantics.
88636         Remove temporary file immediately, rather than waiting
88637         for configure's at-exit trap code to do it.
88638
88639 2005-01-18  Jim Meyering  <jim@meyering.net>
88640
88641         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88642
88643         * lib/utimens.c (futimens): Account for the fact that futimes
88644         can also fail with errno == ENOSYS or errno == ENOENT.
88645         Patch from Dmitry V. Levin.
88646
88647         Change the name of the robust chdir function from chdir to chdir_long.
88648         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88649         (restore_cwd): Use chdir_long, not chdir.
88650         * lib/chdir-long.c: Renamed from chdir.c.
88651         * lib/chdir-long.h: Renamed from chdir.h.
88652         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88653         Hurd.
88654
88655 2005-01-18  Bruno Haible  <bruno@clisp.org>
88656
88657         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88658         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88659         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88660         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88661         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88662         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88663         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88664         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88665         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88666         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88667         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88668         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88669         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88670         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88671         Use an all-permissive copyright notice, recommended by RMS.
88672
88673 2005-01-18  Bob Proulx  <bob@proulx.com>
88674
88675         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88676         simplify offsetof() macro construct to avoid compile failure with
88677         native HP-UX 11.0 ANSI C compiler.
88678
88679 2005-01-17  Bruno Haible  <bruno@clisp.org>
88680
88681         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88682         redundant because stpncpy.m4 takes care of it.
88683
88684 2005-01-17  Bruno Haible  <bruno@clisp.org>
88685
88686         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88687
88688 2005-01-17  Bruno Haible  <bruno@clisp.org>
88689
88690         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88691         used.
88692
88693 2005-01-17  Bruno Haible  <bruno@clisp.org>
88694
88695         * lib/fwriteerror.h (fwriteerror): Change specification to include
88696         fclose.
88697         * lib/fwriteerror.c: Include <stdbool.h>.
88698         (fwriteerror): At the end, close the file stream. Record whether
88699         stdout was already closed.
88700
88701 2005-01-17  Bruno Haible  <bruno@clisp.org>
88702
88703         * lib/execute.c (environ): Declare if needed.
88704         * lib/pipe.c (environ): Likewise.
88705         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88706
88707 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88708
88709         * modules/argp: Depend on vsnprintf
88710
88711 2005-01-10  Jim Meyering  <jim@meyering.net>
88712
88713         * modules/closeout (Depends-on): Add atexit.
88714
88715 2005-01-06  Bruno Haible  <bruno@clisp.org>
88716
88717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88718
88719 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88720
88721         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88722         definitions to be after all include files, to avoid collisions.
88723         Problem reported by Bob Proulx.
88724
88725 2005-01-04  Jim Meyering  <jim@meyering.net>
88726
88727         Changes imported from coreutils.
88728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88729         as the mkstemp template, use a temporary directory and an
88730         8.3-friendly template to avoid trouble on systems like DJGPP.
88731         Reported by Juan M. Guerrero via Stepan Kasal.
88732         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88733         close. Remove the temporary directory right away, rather than waiting
88734         for configure's at-exit trap code to do it.
88735         Suggestion from Stepan Kasal.
88736
88737 2005-01-01  Simon Josefsson  <jas@extundo.com>
88738
88739         * gnulib-tool: Print #include directives when --import'ing.
88740
88741 2004-12-28  Simon Josefsson  <jas@extundo.com>
88742
88743         * tests/test-base64.c: Include required header files.  Remove
88744         unused variables.
88745
88746 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88747
88748         * modules/error (Depends-on): Remove gettext.
88749
88750 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88751
88752         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88753         not needed.  This removes a dependency on the gettext module.
88754         [defined _LIBC]: Do not include <libintl.h>; not needed.
88755
88756 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88757
88758         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88759         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88760
88761 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88762
88763         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88764         HAVE_DECL_STRTOLD.
88765
88766 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88767
88768         * modules/getdate (Depends-on): Remove alloca-opt.
88769
88770 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88771
88772         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88773
88774 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88775
88776         * lib/argp-parse.c: Include <stddef.h>.
88777         (alignof, alignto): New macros.
88778         (parser_init): Don't assume that void * is aligned sufficiently
88779         for struct option.
88780
88781         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88782         need to extend the stack.
88783         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88784         large.
88785
88786 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88787
88788         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88789
88790 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88791
88792         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88793         (2004-10-24) change.  Apparently this was a false alarm.
88794
88795         * modules/getdate: Depend on alloca-opt, not alloca.
88796
88797 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88798
88799         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88800         Remove now-obsolete comment about AIX.
88801         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88802         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88803         (YYMAXDEPTH): New macro.
88804
88805 2004-12-18  Simon Josefsson  <jas@extundo.com>
88806
88807         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88808
88809 2004-12-18  Bruno Haible  <bruno@clisp.org>
88810
88811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88812
88813 2004-12-18  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/fatal-signal.c (fatal_signals): Make non-const.
88816         (init_fatal_signals): New function.
88817         (uninstall_handlers, install_handlers): Ignore signals that were set to
88818         SIG_IGN.
88819         (at_fatal_signal): Call init_fatal_signals.
88820         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88821         SIG_IGN.
88822         Reported by Paul Eggert.
88823
88824 2004-12-18  Bruno Haible  <bruno@clisp.org>
88825
88826         * doc/alloca.texi: New file.
88827         * doc/alloca-opt.texi: New file.
88828
88829 2004-12-17  Jim Meyering  <jim@meyering.net>
88830
88831         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88832         Otherwise, install-sh could exit with improper exit status when
88833         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88834
88835 2004-12-16  Simon Josefsson  <jas@extundo.com>
88836
88837         * tests/test-base64.c: Add license.
88838
88839 2004-12-15  Stepan Kasal  <address@hidden>
88840
88841         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88842
88843 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         * modules/getcwd (Files): Add m4/d-ino.m4.
88846         Suggested by Mark D. Baushke.
88847
88848 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88849
88850         * lib/getdate.y (textint): New member "negative".
88851         (time_zone_hhmm): New function.
88852         Expect 14 shift-reduce conflicts, not 13.
88853         (o_colon_minutes): New rule.
88854         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88855         (yylex): Set the "negative" member of signed numbers.
88856
88857 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88858
88859         * doc/getdate.texi (Time of day items, Time zone items):
88860         Describe new formats +00:00, UTC+00:00.
88861
88862 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88863
88864         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88865         spurious "-l"s.  Problem reported by Stepan Kasal.
88866
88867 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88868
88869         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88870         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88871
88872 2004-12-04  Simon Josefsson  <jas@extundo.com>
88873
88874         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88875         Vandoorselaere <yoann@prelude-ids.org>.
88876
88877 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88878
88879         Changes imported from coreutils.
88880         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88881         exist.
88882         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88883
88884 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88885
88886         Changes imported from coreutils.
88887         * lib/hard-locale.c: Assume <locale.h> exists.
88888         Include "strdup.h".
88889         (GLIBC_VERSION): New macro.
88890         (hard_locale): Assume setlocale exists.
88891         Rewrite to avoid #ifdef.
88892         Use strdup rather than malloc + strcpy.
88893         * lib/human.c: Assume <locale.h> exists.
88894         (human_readable): Assume localeconv exists.
88895
88896 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * modules/hard-locale (Depends-on): Add strdup.
88899
88900 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88901
88902         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88903         convert T2, not T.  (Imported from libc.)
88904
88905 2004-11-30  Simon Josefsson  <jas@extundo.com>
88906
88907         * modules/restrict (License): Change to LGPL.
88908
88909 2004-11-30  Simon Josefsson  <jas@extundo.com>
88910
88911         * m4/restrict.m4: Add copyright and copying conditions.
88912
88913 2004-11-30  Simon Josefsson  <jas@extundo.com>
88914
88915         * m4/base64.m4: New file.
88916
88917 2004-11-30  Simon Josefsson  <jas@extundo.com>
88918
88919         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88920         base64.
88921
88922         * tests/test-base64.c: New file.
88923
88924         * modules/base64: New file.
88925
88926 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88927
88928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88929         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88930
88931         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88932
88933 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88934
88935         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88936         (__getcwd.c): Don't restore errno; glibc doesn't.
88937         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88938         first, falling back to our code only if its results look suspicious.
88939         Ensure that the resulting buffer is only as large as necessary.
88940
88941         * lib/readutmp.c: Include readutmp.h first.
88942         Include <errno.h>, since readutmp.h no longer does that.
88943         * lib/readutmp.h: Don't include <errno.h>,
88944         <sys/param.h>, <time.h>; not needed to establish interface.
88945         (errno): Remove decl.
88946         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88947         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88948         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88949
88950 2004-11-28  Simon Josefsson  <jas@extundo.com>
88951
88952         * lib/base64.h, base64.c: New file.
88953
88954 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88955
88956         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88957
88958 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88959
88960         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88961         (Depends-on): Remove pathmax, same.  Add mempcpy.
88962         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88963         (Makefile.am): Append getcwd.h to lib_SOURCES.
88964         (Include): Add getcwd.h.
88965         (Maintainer): Change from Jim Meyering to "all, glibc",
88966         since getdate now uses intended-for-glibc code.
88967         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88968         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88969
88970 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88973         HP's ANSI C compiler.
88974         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88975         Declaring int functions causes warnings on some modern systems and
88976         shouldn't be needed to compile on ancient ones.
88977         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88978         defined.
88979
88980         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88981         with the following changes.
88982         (__set_errno): Parenthesize properly.
88983         Include <stdbool.h>.
88984         (MIN, MAX, MATCHING_INO): New macros.
88985         (__getcwd): Define with prototype, not K&R form.
88986         Use heuristics to allocate default buffer on stack if possible.
88987         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88988         behavior, and to avoid the PATH_MAX limit when computing
88989         ../../../../...
88990         Use MATCHING_INO to compare inode number to file.
88991         Check for arithmetic overflow in size calculations.
88992         Fix bug in reallocation of dot array that caused getcwd to fail
88993         on directories nested deeper than 75.
88994         Be more careful about saving errno on error.
88995         Do not use realloc; use only free+malloc, as this is a bit
88996         more flexible and avoids a needless copy operation.
88997         Do not inspect st_dev and st_ino for symbolic links; POSIX
88998         doesn't specify the latter.
88999         Check for closedir errors.
89000         Avoid needless casts.
89001         Use "#ifdef weak_alias" around weak_alias, to be like other
89002         glibc code.
89003         The following changes to getcwd.c have effect only when used in
89004         gnulib; they have no effect inside glibc proper.
89005         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89006         as alloca isn't used.
89007         (alloca, __alloca): Likewise.
89008         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89009         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89010         unconditionally, as gnulib assumes C89 or better.
89011         Do not include <sys/param.h>.
89012         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89013         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89014         better.
89015         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89016         Include <dirent.h> in a way that is compatible with modern Autoconf.
89017         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89018         New macros, if not already defined.
89019         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89020         Use "_LIBC", not "defined _LIBC", for consistency.
89021         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89022         a mempcpy module.
89023         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89024         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89025         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89026         credit only to Jim Meyering and adjust the copyright dates.
89027         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89028         <stdlib.h>, <unistd.h>, "pathmax.h".
89029         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89030         (INITIAL_BUFFER_SIZE): Remove.
89031         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89032
89033 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89034
89035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89036         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89037         Use the _ONCE methods, for efficiency.
89038         Check for fcntl.h.  In test program, include <errno.h>
89039         and <fcntl.h> if available.  Remove old K&R cruft from
89040         test program.  Check for common errors in GNU/Linux,
89041         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89042         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89043         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89044         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89045         name accordingly.
89046         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89047         accommodate new getcwd.c.
89048         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89049         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89050         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89051         that's all we need now.
89052
89053 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89054
89055         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89056         argp-parse.c depends on getopt internals, that means we should
89057         always use our getopt, to be on the safe side.
89058         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89059         order not to spoil the result of an eventual previous invocation
89060         of gl_GETOPT_SUBSTITUTE.
89061
89062 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89063
89064         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89065         redefinition warnings. To avoid them, include the defines
89066         in `#if !defined __need_getopt ... #endif'. The only place
89067         where __getopt_argv_const is used is in definitions
89068         of getopt_long and getopt_long_only below, which are as well
89069         protected by `#ifndef __need_getopt'.
89070         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89071         __need_getopt after including <stdio.h> and <unistd.h> These
89072         headers might have defined it.
89073
89074 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89075
89076         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89077
89078 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89079
89080         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89081         (futimens): New function, which uses futimes if available.
89082         (futimens, utimens): Support timespec==NULL, with same semantics
89083         as utime and utimens.
89084         * lib/utimens.h (futimens): New decl.
89085
89086 2004-11-23  Jim Meyering  <jim@meyering.net>
89087
89088         * lib/getopt_.h: Remove trailing blanks.
89089
89090 2004-11-23  Jim Meyering  <jim@meyering.net>
89091
89092         * lib/__fpending.c: Add comment.
89093
89094 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         * modules/canonicalize (Depends-on): Add xreadlink.
89097         Problem reported by James Youngman.
89098
89099 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89100
89101         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89102         New macros.
89103         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89104         optopt): Use them instead of invoking ## directly; otherwise, the
89105         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89106
89107 2004-11-19  Bruno Haible  <bruno@clisp.org>
89108
89109         * lib/strtok_r.c: Move comments from here...
89110         * lib/strtok_r.h: ... to here.
89111
89112 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89113
89114         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89115         implementations that mishandle size_t overflow.
89116
89117 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89118
89119         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89120         might fail.  Problem reported by Yoann Vandoorselaere.
89121         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89122         implementations that mishandle size_t overflow.
89123
89124 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89125
89126         * modules/canon-host (Depends-on): Add strdup.
89127
89128 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89129
89130         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89131
89132 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89133
89134         * lib/canon-host.c: Include "strdup.h".
89135         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89136         Use strdup instead of malloc/strcpy to duplicate strings.
89137
89138         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89139         (human_space_before_unit): New constant.
89140         * lib/human.c (human_readable): Support it.
89141
89142         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89143         (xgetcwd): Set errno correctly when failing.
89144         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89145         the failure is actually due to a PATH_MAX problem.
89146
89147         Further getopt changes to make it more likely that glibc will
89148         buy the changes back.
89149         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89150         (getopt): Use it, so to preserve glibc semantic
89151         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89152         when compiling for libc.
89153         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89154         (getopt_long, getopt_long_only): Use it.
89155
89156         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89157         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89158         (getopt): Argv is now char * const *, as per standard.
89159         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89160         not char *__getopt_argv_const *.
89161         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89162         _getopt_long_only_r): Likewise.
89163         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89164         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89165         _getopt_long_r, _getopt_long_only_r): Likewise.
89166         * lib/getopt_.h (__getopt_argv_const): Remove.
89167         (getopt): Argv is now char * const *, as per standard.
89168
89169         * lib/getdate.y (tORDINAL): New token.
89170         (day, relunit): Allow it for relative times.
89171         (relative_time_table): Use tORDINAL for ordinals.
89172
89173 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89174
89175         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89176         Document that "second" isn't allowed as an ordinal number.
89177
89178 2004-11-16  Jim Meyering  <jim@meyering.net>
89179
89180         * modules/closeout (Depends-on): Add fpending.
89181
89182 2004-11-15  Jim Meyering  <jim@meyering.net>
89183
89184         * lib/closeout.c: Include "__fpending.h" once again.
89185         Include <stdbool.h>.
89186         (close_stdout): Don't fail just because stdout was closed initially,
89187         since some programs don't write to stdout in the normal course of
89188         operation (other than --version and --help), and we don't want this
89189         function to make e.g. `touch file >&-' fail.
89190         But do fail if it was closed and someone has tried to write to it.
89191         E.g., `printf foo >&-' must fail.
89192
89193 2004-11-13  Jim Meyering  <jim@meyering.net>
89194
89195         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89196
89197 2004-11-12  Simon Josefsson  <jas@extundo.com>
89198
89199         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89200         small doc fix is still pending.
89201
89202 2004-11-11  Simon Josefsson  <jas@extundo.com>
89203
89204         * modules/strtok_r: New file.
89205
89206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89207         strtok_r.
89208
89209 2004-11-11  Simon Josefsson  <jas@extundo.com>
89210
89211         * m4/strtok_r.m4: New file.
89212
89213         * m4/getopt.m4: Replace opterr.
89214
89215 2004-11-11  Simon Josefsson  <jas@extundo.com>
89216
89217         * lib/strtok_r.h, strtok_r.c: New file.
89218
89219 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89220
89221         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89222         of replacing opterr, getopt, etc.  This should handle the
89223         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89224
89225 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89226
89227         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89228         we can stop lying to compilers about the constness of argv when we
89229         are compiled outside glibc.
89230         (getopt, getopt_long, getopt_long_only): Use it.
89231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89232         _getopt_internal, getopt): Likewise.
89233         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89234         _getopt_long_only_r): Likewise.
89235         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89236         _getopt_long_r, _getopt_long_only_r): Likewise.
89237
89238         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89239         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89240         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89241         the other external symbols.
89242         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89243         declaration, since the above renaming now works around collisions.
89244
89245 2004-11-11  Jim Meyering  <jim@meyering.net>
89246
89247         * lib/linebreak.c: Remove trailing blanks.
89248         * lib/alloca_.h: Likewise.
89249         * lib/acosl.c: Likewise.
89250         * lib/euidaccess.c: Likewise.
89251         * lib/allocsa.h: Likewise.
89252
89253 2004-11-10  Simon Josefsson  <jas@extundo.com>
89254
89255         * m4/getaddrinfo.m4: New file.
89256
89257 2004-11-10  Simon Josefsson  <jas@extundo.com>
89258
89259         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89260
89261 2004-11-10  Simon Josefsson  <jas@extundo.com>
89262
89263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89264         getaddrinfo.
89265
89266         * modules/getaddrinfo: New file.
89267
89268 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89269
89270         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89271
89272 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89273
89274         * lib/mktime.c (SHR): New macro, which is a portable
89275         substitute for >> that should work even on Crays.
89276         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89277         Problem reported by Mark D. Baushke in
89278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89279         * lib/getdate.y (SHR): Likewise.
89280         (tm_diff): Use it.
89281         * lib/strftime.c (SHR): Likewise.
89282         (tm_diff): Use it.
89283         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89284         quote_these_too, so that right shifts are well defined.  All uses
89285         changed.
89286
89287 2004-11-10  Jim Meyering  <jim@meyering.net>
89288
89289         Ensure that no close failure goes unreported.
89290         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89291         return early when it seems there's nothing to flush.
89292         Don't include __fpending.h.
89293
89294 2004-11-10  Jim Meyering  <jim@meyering.net>
89295
89296         * modules/closeout (Depends-on): Remove fpending.
89297
89298 2004-11-10  Jim Meyering  <jim@meyering.net>
89299
89300         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89301
89302 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89303
89304         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89305         gl_FUNC_STRFTIME.
89306         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89307         and AC_REQUIRE when possible, to avoid duplicate checks.
89308         Check for <wchar.h>.
89309
89310 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89311
89312         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89313
89314 2004-11-09  Bruno Haible  <bruno@clisp.org>
89315
89316         * m4/sockpfaf.m4: New file.
89317
89318 2004-11-05  Bruno Haible  <bruno@clisp.org>
89319
89320         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89321         Reported by Mark D. Baushke <mdb@cvshome.org>.
89322
89323 2004-11-04  Bruno Haible  <bruno@clisp.org>
89324
89325         2004-09-11  Bruno Haible  <bruno@clisp.org>
89326                 * allocsa.valgrind: New file.
89327         2004-02-06  Bruno Haible  <bruno@clisp.org>
89328                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89329                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89330                 Reported by Christopher Seip <chris.seip@hp.com>.
89331
89332 2004-11-04  Bruno Haible  <bruno@clisp.org>
89333
89334         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89335         (Makefile.am): Distribute it.
89336
89337 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89338
89339         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89340         with errno == ERANGE if the buffer is too small.
89341         Problem reported by Mark D. Baushke.
89342
89343 2004-11-03  Albert Chin  <china@thewrittenword.com>
89344             Paul Eggert  <eggert@cs.ucla.edu>
89345
89346         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89347         equivalent, substitute $ac_type for equivalent type rather than
89348         blindly using uint32_t *always* which won't work if uint32_t is not
89349         available.  Define _UINT32_T to work around typedef of uint32_t if
89350         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89351         2.5.1.
89352
89353 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89354
89355         * m4/jm-macros.m4: Sync from coreutils.
89356         (gl_MACROS): Check for mbrlen, for pathchk.
89357         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89358
89359 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89360
89361         * lib/xreadlink.c (MAXSIZE): New macro.
89362         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89363         size does not exceed MAXSIZE.  Avoid cast.
89364         As suggested by Mark D. Baushke in
89365         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89366         if readlink fails with buffer size just under MAXSIZE, try again
89367         with MAXSIZE.
89368
89369 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89370
89371         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89372
89373 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89374         and  Paul Eggert  <eggert@cs.ucla.edu>
89375
89376         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89377         (get_date): Overparenthesize to avoid GCC warning.
89378
89379 2004-11-02  Bruno Haible  <bruno@clisp.org>
89380
89381         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89382         returns void.
89383
89384 2004-11-02  Bruno Haible  <bruno@clisp.org>
89385
89386         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89387         function returns void.
89388
89389 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89390
89391         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89392         fflush_unlocked, flockfile, funlockfile, funlockfile,
89393         fputs_unlocked, putc_unlocked.
89394
89395 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89396
89397         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89398         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89399         already declared.
89400
89401 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89402
89403         * modules/getdate (Files): Add doc/getdate.texi.
89404         (Depends-on): Add setenv, xalloc.
89405
89406 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89407
89408         * lib/getdate.y: Add support for TZ="foo" within a date string.
89409         Fix some bugs near time_t boundaries.  Reject dates with
89410         out-of-range components, e.g., "Sept 31".
89411         Include <stdlib.h>, "setenv.h", "xalloc.h".
89412         (ISDIGIT_LOCALE): Remove; unused.
89413         Note that the TZ and time functions used here are not reentrant.
89414         (mktime_ok, get_tz): New functions.
89415         (TZBUFSIZE): New constant.
89416         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89417         This requires that we sometimes generate our own TZ="XXX..." setting.
89418
89419 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89420
89421         * doc/getdate.texi: New file, from coreutils with modifications for
89422         the new TZ parsing.
89423
89424 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89425
89426         * lib/mktime.c (not_equal_tm): Remove redundant check.
89427
89428 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89429
89430         * modules/regex (lib_SOURCES): Add regex.c.
89431         Reported by James Youngman in
89432         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89433
89434 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89435
89436         * lib/getdate.y: Use Bison 1.875 features, and some minor
89437         code cleanups.  This change does not affect semantics.
89438         Don't include <stdlib.h>; no longer needed.
89439         Don't include unlocked-io.h; only the "#if TEST" code uses
89440         stdio, and performance isn't crucial there.
89441         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89442         Bison 1.875 features as described below.
89443         All uses of "PC." replaced by "pc->".
89444         (YYSTYPE): Add a forward declaration.
89445         (yylex, yyerror): Use full prototypes in forward decls.
89446         Use "%pure-parser" rather than obsolescent "%pure_parser".
89447         Use %parse-param and %lex-param instead of obsolescent
89448         YYPARSE_PARAM and YYLEX_PARAM.
89449         (meridian_table, month_and_day_table, time_units_table,
89450         relative_time_table, time_zone_table, military_table,
89451         lookup_zone, lookup_word, get_date):
89452         Use NULL instead of 0 where appropriate.
89453         (to_hour): Avoid abort (), to avoid a dependency on
89454         stdlib.h.
89455         (yyerror, yylex): Now accepts parser_control * arg.
89456         (main) [TEST]: Use '\0' rather than 0 for char.
89457
89458 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89459
89460         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89461
89462 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89463
89464         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89465         It's now the caller's responsibility to handle the case where
89466         !HAVE_GETPAGESIZE && !defined getpagesize.
89467
89468         * lib/mktime.c (leapyear): Arg is long int, not int.
89469
89470 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89471
89472         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89473
89474 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89475
89476         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89477         missing.  Problem reported by James Youngman.
89478
89479 2004-10-16  Simon Josefsson  <jas@extundo.com>
89480
89481         * gnulib-tool: Fix comments.  Fix parse problem.
89482         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89483
89484 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89485
89486         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89487         implementation of getopt_long.  Problem reported by Alexander Taler in:
89488         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89489
89490 2004-10-15  Bruno Haible  <bruno@clisp.org>
89491
89492         * gnulib-tool: Untabify. Initialize supplied_libname.
89493         (func_usage): More homogenous output.
89494         (func_modules_transitive_closure, func_modules_to_filelist,
89495         func_emit_lib_Makefile_am): New functions.
89496         (func_import): New function, extracted from big case statement. Use
89497         func_get_license, func_modules_transitive_closure,
89498         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89499         opt_lgpl. Don't use test -a, as it's not portable.
89500         (func_create_testdir): Use func_modules_transitive_closure,
89501         func_modules_to_filelist, func_emit_lib_Makefile_am.
89502
89503 2004-10-15  Bruno Haible  <bruno@clisp.org>
89504
89505         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89506
89507 2004-10-15  Bruno Haible  <bruno@clisp.org>
89508
89509         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89510         the portions belonging to each module.
89511         Suggested by Derek Robert Price <derek@ximbiot.com>.
89512
89513 2004-10-12  Simon Josefsson  <jas@extundo.com>
89514
89515         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89516         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89517         to real functions.
89518
89519 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89520
89521         * modules/vsnprintf: New file.
89522
89523 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89524
89525         * m4/vsnprintf.m4: New file.
89526
89527 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89528
89529         * lib/vsnprintf.h: New file.
89530         * lib/vsnprintf.c: New file.
89531
89532 2004-10-11  Bruno Haible  <bruno@clisp.org>
89533
89534         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89535         vsnprintf.
89536
89537 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89538
89539         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89540
89541 2004-10-07  Bruno Haible  <bruno@clisp.org>
89542
89543         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89544         fits into the provided buffer.
89545
89546 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89547
89548         * lib/diacrit.c, diacrit.h: Add GPL notice.
89549
89550         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89551         notice.
89552         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89553         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89554         This avoids a potential constant-folding bug.
89555
89556 2004-10-05  Bruno Haible  <bruno@clisp.org>
89557
89558         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89559         for the declaration of strsep.
89560
89561 2004-10-05  Bruno Haible  <bruno@clisp.org>
89562
89563         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89564
89565 2004-10-04  Simon Josefsson  <jas@extundo.com>
89566
89567         * modules/memmem: New file.
89568         * tests/test-memmem.c: New file.
89569         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89570
89571 2004-10-04  Simon Josefsson  <jas@extundo.com>
89572
89573         * m4/memmem.m4: New file.
89574
89575 2004-10-04  Simon Josefsson  <jas@extundo.com>
89576
89577         * lib/memmem.h: New file.
89578         * lib/memmem.c: New file, taken from glibc.
89579
89580 2004-10-04  Simon Josefsson  <jas@extundo.com>
89581
89582         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89583         '#ifdef USE_UNLOCKED_IO'.
89584
89585 2004-10-04  Simon Josefsson  <jas@extundo.com>
89586
89587         * config/srclist.txt: Add memmem from glibc.
89588
89589 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89590
89591         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89592
89593         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89594         modules/exclude, modules/getdate, modules/getline,
89595         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89596         modules/getusershell, modules/linebuffer, modules/md5,
89597         modules/mountlist, modules/posixtm, modules/readtokens,
89598         modules/readutmp, modules/regex, modules/sha1,
89599         modules/version-etc, modules/yesno:
89600         Remove dependency on unlocked-io.
89601
89602 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89603
89604         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89605
89606         * m4/unlocked-io.m4: Add copyright notice.
89607         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89608
89609 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89610
89611         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89612         * lib/xmalloc.c (xmemdup): Likewise.
89613         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89614         XFREE): Remove these long-obsolescent macros.
89615         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89616         * lib/xstrdup.c: Remove.
89617
89618         * lib/regex.c (re_comp): Cast gettext return value to char *,
89619         Problem reported by Martin Neitzel via Mark D. Baushke.
89620
89621 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89622
89623         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89624         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89625         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89626         regex.c, sha1.c, version-etc.c, yesno.c:
89627         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89628         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89629         the includer's responsibility.
89630
89631         Sync from coreutils.
89632
89633         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89634         points to the start of a string, as the C Standard says the
89635         resulting behavior is undefined.
89636
89637         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89638         simple -> simple_backups, numbered_existing ->
89639         numbered_existing_backups, numbered -> numbered_backups
89640         to avoid shadowing problems.  All uses changed.
89641         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89642         * lib/backupfile.c (check_extension, numbered_backup):
89643         Rename locals to avoid shadowing 'basename'.
89644         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89645         once.
89646
89647         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89648         * lib/.cvsignore: Add getopt.h.
89649
89650 2004-10-04  Bruno Haible  <bruno@clisp.org>
89651
89652         * modules/README: New file.
89653         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89654         not a module.
89655
89656 2004-10-02  Jim Meyering  <jim@meyering.net>
89657
89658         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89659
89660 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89661
89662         * modules/strsep: New file.
89663
89664 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89665
89666         * m4/strsep.m4: New file.
89667
89668 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89669
89670         * lib/strsep.h: New file.
89671         * lib/strsep.c: New file.
89672
89673 2004-10-01  Simon Josefsson  <jas@extundo.com>
89674
89675         * lib/snprintf.c (snprintf): Handle size==0.
89676
89677 2004-10-01  Simon Josefsson  <jas@extundo.com>
89678             Bruno Haible  <bruno@clisp.org>
89679
89680         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89681         (snprintf): Declare 'args'.
89682
89683 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89684
89685         * lib/snprintf.c: Remove comments as to why each header is needed.
89686
89687 2004-10-01  Bruno Haible  <bruno@clisp.org>
89688
89689         * MODULES.html.sh: Add strsep.
89690
89691 2004-09-30  Simon Josefsson  <jas@extundo.com>
89692
89693         * modules/snprintf: New file.
89694
89695 2004-09-30  Simon Josefsson  <jas@extundo.com>
89696
89697         * m4/snprintf.m4: New file.
89698
89699 2004-09-30  Simon Josefsson  <jas@extundo.com>
89700
89701         * lib/snprintf.h, lib/snprintf.c: New files.
89702
89703 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89704
89705         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89706         (hol_entry_help): Never translate an empty string.
89707         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89708         * lib/argp.h (OPTION_NO_TRANS): New option.
89709
89710 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89711
89712         * modules/argp (Maintainer): Replace Simon Josefsson
89713         by Sergey Poznyakoff.
89714
89715 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89716
89717         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89718         changes merged back into glibc.
89719
89720 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89721
89722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89723
89724 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89725
89726         * lib/xvasprintf.c: Include xalloc.h.
89727         (xvasprintf): Use xalloc_die, not xmalloc_die.
89728
89729 2004-09-29  Bruno Haible  <bruno@clisp.org>
89730
89731         * modules/alloca-opt: New file, derived from modules/alloca.
89732         * modules/allocsa: Depend on alloca-opt instead of alloca.
89733         * modules/setenv: Likewise.
89734         * modules/vasnprintf: Likewise.
89735         * MODULES.html.sh: Add alloca-opt.
89736
89737 2004-09-28  Simon Josefsson  <jas@extundo.com>
89738
89739         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89740         LGPL, and to replace license template from GPL to LGPL.
89741
89742 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89743
89744         * modules/dummy: Change license to LGPL.
89745
89746 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89747
89748         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89749
89750 2004-09-24  Simon Josefsson  <jas@extundo.com>
89751
89752         * modules/minmax (License): Change from GPL to LGPL.
89753
89754 2004-09-23  Simon Josefsson  <jas@extundo.com>
89755
89756         * gnulib-tool (--import): Typo.
89757
89758 2004-09-23  Simon Josefsson  <jas@extundo.com>
89759
89760         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89761
89762 2004-09-22  Bruno Haible  <bruno@clisp.org>
89763
89764         * modules/*: Add 'License' field.
89765         * gnulib-tool: Accept --extract-license option.
89766         (func_get_license): New function.
89767
89768 2004-09-21  Bruno Haible  <bruno@clisp.org>
89769
89770         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89771         Reported by Simon Josefsson.
89772
89773 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89774
89775         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89776         gl_AC_TYPE_LONG_LONG.
89777
89778 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89779
89780         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89781
89782 2004-09-18  Simon Josefsson  <jas@extundo.com>
89783         and  Paul Eggert  <eggert@cs.ucla.edu>
89784
89785         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89786         calls with autoreconf.  Define GL_LIB.
89787
89788 2004-09-14  Karl Berry  <karl@gnu.org>
89789
89790         * config/srclist.txt: unsync setenv.c, sigh.
89791
89792 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89793
89794         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89795         Problem reported by Bruno Haible in:
89796         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89797
89798 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89799
89800         * config/srclist.txt: Comment out argp-pvh.c.
89801
89802 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89803
89804         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89805         in case some system header has #define'd it.  Problem reported by
89806         Soeren D. Schulze in
89807         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89808
89809 2004-09-09  Karl Berry  <karl@gnu.org>
89810
89811         * regex.[ch]: delete from the root.  These were supposed to be
89812                 synced with emacs cvs, but this has not happened for about
89813                 a year, and anyway nothing else uses emacs regex.[ch].
89814                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89815                 lib/regex[.ch] is untouched.
89816
89817 2004-09-09  Bruno Haible  <bruno@clisp.org>
89818
89819         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89820
89821 2004-09-09  Bruno Haible  <bruno@clisp.org>
89822
89823         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89824         modifications.
89825         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89826
89827 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89828
89829         * modules/xvasprintf: New file.
89830         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89831
89832 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89833
89834         * lib/xvasprintf.h: New file.
89835         * lib/xvasprintf.c: New file.
89836         * lib/xasprintf.c: New file.
89837
89838 2004-09-08  Bruno Haible  <bruno@clisp.org>
89839
89840         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89841
89842 2004-09-08  Bruno Haible  <bruno@clisp.org>
89843
89844         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89845         length is > INT_MAX.
89846         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89847         more.
89848
89849 2004-09-08  Bruno Haible  <bruno@clisp.org>
89850
89851         * lib/stdint_.h: New file, taken from GNU clisp.
89852
89853 2004-09-08  Bruno Haible  <bruno@clisp.org>
89854             Oskar Liljeblad  <oskar@osk.mine.nu>
89855
89856         * modules/stdint: New file.
89857         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89858
89859 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89860
89861         Import from coreutils.
89862         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89863         strings on unbounded length.  alloca's performance benefits aren't
89864         that important here.
89865         (V_STRDUP): Remove.
89866         (parse_with_separator): New function, with most of the internals
89867         of the old parse_user_spec.  Allow user to omit both user and group,
89868         for compatibility with FreeBSD.
89869         Clone only the user name, not the entire spec.
89870         Do not set *uid, *gid unless entirely successful.
89871         Avoid memory leak in some failing cases.
89872         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89873         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89874         (parse_user_spec): Rewrite to use parse_with_separator.
89875
89876 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89877
89878         * modules/userspec: Don't depend on alloca.
89879
89880 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89881
89882         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89883
89884 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89885
89886         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89887         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89888         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89889
89890 2004-08-16  Simon Josefsson  <jas@extundo.com>
89891
89892         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89893         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89894         Add --dry-run for --import.
89895         Let user provided command line parameters override configure.ac
89896         settings.
89897
89898 2004-08-12  Simon Josefsson  <jas@extundo.com>
89899
89900         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89901         as discussed with Paul Eggert in threads rooted at
89902         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89903         and
89904         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89905         Before, the test was empty, and relied on ELIDE_CODE in source
89906         code.)
89907         (gl_PREREQ_GETOPT): New macro.
89908         (gl_GETOPT): Use them.
89909
89910 2004-08-12  Simon Josefsson  <jas@extundo.com>
89911
89912         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89913         * lib/getopt_.h: Renamed from getopt.h.
89914
89915 2004-08-12  Simon Josefsson  <jas@extundo.com>
89916
89917         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89918         Change default library name from libfoo to libgnu.
89919         Now, if you have a configure.ac that says:
89920                 gl_SOURCE_BASE(gl)
89921                 gl_M4_BASE(gl/m4)
89922                 gl_MODULES(error getopt etcetera)
89923                 gl_INIT
89924         you can import all you need by running:
89925                 ../gnulib/gnulib-tool --import
89926
89927         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89928         (Makefile.am): Rewrite, use logic from argz.
89929         (Include): Use <getopt.h> instead of "getopt.h".
89930
89931 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89932
89933         * modules/argp (Files): Add m4/unlocked-io.m4.
89934         (Depends-on): Add extensions.
89935
89936 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89937
89938         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89939         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89940         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89941         Check for program_invocation_name, program_invocation_short_name,
89942         flockfile, funlockfile, features.h, _getopt_long_only_r.
89943
89944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89945
89946         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89947         its complicated substitute.
89948         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89949         and program_invocation_name.
89950         (__argp_basename) [!_LIBC]: Remove; the only use was
89951         replaced by its body.
89952         (__argp_short_program_name): Change condition from
89953         !defined __argp_short_program_name to
89954         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89955         to match argp-namefrob.h.
89956         (__argp_failure): Don't assume strerror_r returns char *.
89957         * lib/argp-parse.c (N_): Define unconditionally.
89958         (argp_default_options): Fill out initializers with 0 to avoid
89959         gcc warnings.
89960
89961 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89962
89963         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89964         getopt1.c.
89965
89966 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89967
89968         Merge from coreutils.
89969
89970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89971
89972         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89973         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89974
89975 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89976
89977         Merge from coreutils.
89978
89979         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89980         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89981         for Reliant Unix 5.43.
89982
89983         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89984         (union fooround): Use uintmax_t, not long int.
89985         The rest is a merge from libc:
89986         [defined _LIBC]: Include <shlib-compat.h>.
89987         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89988
89989         * lib/settime.c (settime): Recode to avoid warning with
89990         Sun Forte C 6U2.
89991
89992         * lib/strverscmp.c: Convert to UTF-8.
89993
89994 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89995
89996         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89997         m4/uintmax_t.m4.
89998
89999 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90000
90001         * modules/xalloc-die: New file.
90002         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90003
90004         * modules/md5 (Files): Add m4/uint32_t.m4.
90005         * modules/sha1: Renamed from modules/sha.
90006         (Files):
90007         Rename lib/sha.h to lib/sha1.h.
90008         Rename lib/sha.c to lib/sha1.c.
90009         Rename m4/sha.m4 to m4/sha1.m4.
90010         (lib_SOURCES): Likewise.
90011         (configure.ac): Rename gl_SHA to gl_SHA1.
90012         (Include): sha.h -> sha1.h.
90013
90014 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90015
90016         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90017         * m4/sha1.m4: Renamed from sha.m4.
90018         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90019
90020 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90021
90022         * lib/obstack.h (obstack_empty_p):
90023         Don't assume that chunk->contents is suitably aligned.
90024         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90025         Likewise. Problem reported by Benno in
90026         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90027
90028         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90029         readable.  This could be improved further but it'd take some work.
90030
90031 2004-08-08  Simon Josefsson  <jas@extundo.com>
90032
90033         * modules/xgethostname (Depends-on): Remove exit and error (not
90034         used).
90035
90036         * modules/getpass-gnu: Add getpass.h.
90037         (Depends-on): Add stdbool.
90038         * modules/getpass: Add getpass.h.
90039
90040 2004-08-08  Simon Josefsson  <jas@extundo.com>
90041
90042         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90043         Check getpass declaration.
90044
90045 2004-08-08  Simon Josefsson  <jas@extundo.com>
90046
90047         * lib/xgethostname.c: Don't include error.h (not used).
90048
90049         * lib/getpass.h: Add.
90050         * lib/getpass.c: Include getpass.h first.
90051
90052 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90053
90054         * lib/xalloc-die.c: New file.
90055         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90056         All uses removed.
90057         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90058         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90059         xalloc-die.c.
90060         (_, N_, xalloc_die): Move to xalloc-die.c.
90061         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90062         so that we needn't mess with xalloc_msg_memory_exhausted.
90063
90064         * lib/sha1.h: Renamed from sha.h.
90065         (SHA1_H): Renamed from _SHA_H.
90066         (sha1_ctx): Renamed from sha_ctx.
90067         (sha1_init_ctx): Renamed from sha_init_ctx.
90068         (sha1_process_block): Renamed from sha_process_block.
90069         (sha1_process_bytes): Renamed from sha_process_bytes.
90070         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90071         (sha1_read_ctx): Renamed from sha_read_ctx.
90072         (sha1_stream): Renamed from sha_stream.
90073         (sha1_buffer): Renamed from sha_buffer.
90074         * lib/sha1.c: Likewise; renamed from sha.c.
90075         Do not include <sys/types.h>.
90076         Include <stddef.h> rather than <stdlib.h>.
90077
90078 2004-08-08  Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90081         FILESYSTEM_PREFIX_LEN.
90082         * lib/progreloc.c: Likewise.
90083         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90084
90085 2004-08-06  Simon Josefsson  <jas@extundo.com>
90086
90087         * modules/progname (Depends-on): Don't depend on stdbool.
90088
90089 2004-08-06  Simon Josefsson  <jas@extundo.com>
90090
90091         * modules/getsubopt: New file.
90092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90093         getsubopt.
90094
90095 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90096
90097         More merge from coreutils.
90098
90099         * m4/utimens.m4, m4/utimecmp.m4: New files.
90100         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90101         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90102         prereq.m4, sha.m4: Import changes from coreutils.
90103
90104 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90105
90106         More merge from coreutils.
90107         * modules/raise, modules/readtokens0, modules/utimens:
90108         * modules/utimecmp, module/xnanosleep: New files.
90109         * modules/strftime: Add lib/strftime.h.
90110         Change include from <time.h> to "strftime.h".
90111         * modules/yesno: Add lib/yesno.h.
90112         * modules/backupfile: Remove lib/addext.c.
90113         * modules/euidaccess: Add stat-macros.h.
90114         * modules/canonicalize, modules/euidaccess,
90115         modules/filemode, modules/lchown, modules/makepath,
90116         modules/rmdir, modules/stat: Likewise.
90117
90118 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90119
90120         Merge from tar.
90121         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90122         SIZE_MAX is a valid preprocessor constant.
90123         (__argp_basename): Change from "#ifndef _LIBC"
90124         to "#ifndef __argp_short_program_name", so that
90125         we don't compile these functions for tar.
90126
90127         More merges from coreutils.
90128         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90129         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90130         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90131         * lib/addext.c: Remove; no longer needed.
90132         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90133         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90134         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90135         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90136         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90137         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90138         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90139         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90140         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90141         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90142         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90143         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90144         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90145         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90146         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90147         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90148         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90149         Import changes from coreutils.
90150
90151 2004-08-05  Simon Josefsson  <jas@extundo.com>
90152
90153         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90154
90155 2004-08-05  Simon Josefsson  <jas@extundo.com>
90156
90157         * m4/getsubopt.m4: New file.
90158
90159 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90160
90161         Merge from coreutils.
90162
90163         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90164         * m4/getcwd-path-max.m4: New files.
90165
90166         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90167         FILESYSTEM_PREFIX_LEN ->
90168         FILE_SYSTEM_PREFIX_LEN.
90169         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90170         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90171         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90172         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90173
90174         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90175         prerequisite modules now handle the DOS stuff.
90176         Don't check for unistd.h.
90177
90178 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90179
90180         Merge from coreutils.
90181
90182         * lib/.gdb-history: Remove; this doesn't belong here.
90183
90184         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90185         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90186         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90187         * lib/getcwd.c: New files.
90188
90189         * lib/dirname.h: Include <stdbool.h>.
90190         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90191         for consistency with POSIX terminology.  All uses changed.
90192         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90193         (strip_trailing_slashes): Use bool for booleans.
90194         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90195
90196         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90197         sometimes returns a positive errno value even when it succeeds.
90198         (print_errno_message) [!LIBC]: Fall back on strerror if
90199         __strerror_r fails.
90200
90201         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90202         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90203         (longest_relative_suffix): New function.
90204         (path_concat): Use it.  Assume first argument is not NULL.
90205         Port to DOS.  Omit redundant separators.
90206         Report an error instead of returning NULL.
90207         Use mempcpy instead of memcpy.
90208         (xpath_concat): Remove: not declared or used.
90209
90210         * lib/same.h: Include <stdbool.h>
90211         (same_name): Return bool, not int.
90212         * lib/same.c (same_name): Likewise.
90213         (errno): Don't declare; we assume C89 or better now.
90214
90215         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90216         if not already defined.
90217
90218         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90219         * lib/dup-safer.c (errno): Likewise.
90220
90221 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90222
90223         Merge from coreutils.
90224         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90225         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90226         * modules/path-concat: Don't depend on strdup.
90227
90228 2004-08-03  Simon Josefsson  <jas@extundo.com>
90229
90230         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90231         * lib/progname.h: Don't include stdbool.h.
90232
90233 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90234
90235         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90236         * MODULES.html.sh (func_all_modules): Remove fatal.
90237
90238 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90239
90240         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90241
90242 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90243
90244         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90245         working.
90246
90247 2004-08-02  Simon Josefsson  <jas@extundo.com>
90248
90249         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90250         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90251         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90252
90253 2004-08-01  Simon Josefsson  <jas@extundo.com>
90254
90255         * lib/xgetdomainname.c: Include stdlib.h, for free().
90256
90257 2004-07-19  Bruno Haible  <bruno@clisp.org>
90258
90259         * MODULES.html.sh (func_all_modules): Add dummy.
90260
90261 2004-07-16  Simon Josefsson  <jas@extundo.com>
90262
90263         * modules/dummy: New file.
90264
90265 2004-07-16  Simon Josefsson  <jas@extundo.com>
90266
90267         * lib/dummy.c: New file.
90268
90269 2004-07-16  Bruno Haible  <bruno@clisp.org>
90270
90271         * lib/backupfile.h: Add extern "C" for C++.
90272         * lib/closeout.h: Likewise.
90273         * lib/copy-file.h: Likewise.
90274         * lib/findprog.h: Likewise.
90275         * lib/full-write.h: Likewise.
90276         * lib/pathname.h: Likewise.
90277         * lib/progname.h: Likewise.
90278         * lib/stpcpy.h: Likewise.
90279         * lib/stpncpy.h: Likewise.
90280         * lib/strcase.h: Likewise.
90281         * lib/strstr.h: Likewise.
90282         * lib/xalloc.h: Likewise.
90283
90284         * lib/mbswidth.h: Add extern "C" for C++.
90285         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90286
90287 2004-07-13  Robert Millan  <robertmh@gnu.org>
90288
90289         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90290
90291 2004-07-09  Simon Josefsson  <jas@extundo.com>
90292
90293         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90294         failed without this.)
90295
90296 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90297
90298         * modules/chown (Files): Add lib/fchown-stub.c, since
90299         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90300
90301 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90302
90303         * lib/fchown-stub.c: New file.
90304
90305 2004-06-24  Jim Meyering  <jim@meyering.net>
90306
90307         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90308
90309 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90310
90311         * modules/argz: Omit "#include".
90312
90313         * MODULES.html.sh (func_all_modules): Add calloc, to match
90314         2004-06-01 addition of calloc module.
90315
90316 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90317
90318         * m4/argz.m4: New file, which is autoupdated from libtool.
90319
90320 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90321
90322         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90323         libtool.
90324
90325 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90326
90327         * config/srclist-update: Don't insist on "USA." before the
90328         close-comment, as libtool omits the period and puts the */ on a
90329         separate line.
90330         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90331         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90332
90333 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90334
90335         * modules/argz: New file.
90336         * MODULES.html.sh (func_all_modules): Add argz.
90337
90338 2004-06-12  Jim Meyering  <jim@meyering.net>
90339         and  Paul Eggert  <eggert@cs.ucla.edu>
90340
90341         * modules/hash (Files): Add lib/xalloc.h.
90342         * modules/pipe (Depends-on): Add wait-process.
90343         * modules/stat (Depends-on): Add xalloc.
90344         * modules/userspec (Files): Add lib/userspec.h.
90345         * modules/xstrto
90346
90347         Upgrade from gettext-0.13.
90348         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90349         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90350         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90351
90352 2004-06-10  Jim Meyering  <jim@meyering.net>
90353
90354         * lib/calloc.c: New file.
90355
90356 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90357
90358         * lib/getdate.y (yylex): Allow space between sign and number.
90359         Problem reported by Dan Jacobson.
90360
90361 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90362
90363         Merge from coreutils CVS.
90364
90365         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90366         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90367         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90368         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90369         xstrtol.m4: Fix copyright date and/or serial number.
90370
90371         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90372         See if we need an fchown replacement.
90373         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90374         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90375         and use the replacement function if we detect either defect.
90376
90377         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90378         gl_UTIMECMP.
90379
90380 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90381         and  Jim Meyering  <jim@meyering.net>
90382
90383         Merge from coreutils CVS.
90384
90385         * lib/stat-macros.h: New file, with contents from file-type.h
90386         and coreutils' system.h.
90387         * lib/file-type.c: Include "stat-macros.h".
90388         * lib/file-type.h (file_type): Move all macro definitions to new file,
90389         stat-macros.h.
90390
90391         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90392         Wrap old code with this conditional.
90393         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90394         function that does not dereference symlinks.
90395         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90396
90397         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90398         dependency problems.
90399         (xreadlink): Accept new arg SIZE, for efficiency.
90400         All decls and uses changed.
90401         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90402
90403         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90404         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90405
90406         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90407         sysexits.h.
90408
90409 2004-06-01  Jim Meyering  <jim@meyering.net>
90410
90411         * m4/calloc.m4: New file.
90412
90413 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90414
90415         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90416         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90417         Also, fix a typo in a diagnostic.
90418
90419 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90420
90421         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90422         or AC_FUNC_REALLOC.
90423
90424 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90425
90426         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90427         macros to be defined.
90428         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90429         the allocator returns NULL because the requested size is zero.
90430
90431 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90432
90433         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90434         var.  Add comment explaining why libc still defines it.  This
90435         merges the following patch from glibc:
90436         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90437
90438 2004-05-20  Andreas Schwab  <schwab@suse.de>
90439
90440         * m4/free.m4: Replace free if it not known to work, not the other
90441         way round.
90442
90443 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90444
90445         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90446         present in glibc since revision 1.1 of this file.
90447         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90448         obstack_alignment_mask, obstack_alloc, obstack_base,
90449         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90450         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90451         obstack_grow0, obstack_init, obstack_int_grow,
90452         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90453         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90454         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90455         nonexistent functions.
90456
90457 2004-05-18  Karl Berry  <karl@gnu.org>
90458
90459         * config/srclist.txt: break link for vasnprintf.c.
90460
90461 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90462
90463         Port obstack to the AS/400, where pointers are 16 bytes wide and
90464         you cannot cast an integer to a valid pointer.  This patch is
90465         currently waiting to be integrated into glibc; see
90466         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90467
90468         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90469         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90470         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90471         (struct obstack): temp member is now a union of a pointer and
90472         an integer, instead of an integer.  All integer uses changed.
90473         This does not affect the physical layout of struct obstack,
90474         except on hosts (like the AS/400) where the size or alignment of
90475         void * is greater than that of ptrdiff_t.
90476         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90477         __STDC__)]: Store temporary in pointer member of union, not
90478         integer member.
90479         * lib/obstack.c: Include <stddef.h>, for offsetof.
90480         (struct fooalign): Remove; it doesn't need a name.
90481         (union fooround): Change double to long double, and add void *.
90482         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90483         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90484         not a macro.  Hence the values are always int; so remove all
90485         casts-to-int in uses.
90486
90487 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90488
90489         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90490         we can get this patch merged into glibc.
90491
90492 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90493             Paul Eggert  <eggert@cs.ucla.edu>
90494
90495         * m4/argp: Depend on alloca.
90496
90497 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90498             Paul Eggert  <eggert@cs.ucla.edu>
90499
90500         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90501         freecoding.
90502
90503 2004-05-17  Bruno Haible  <bruno@clisp.org>
90504
90505         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90506         precision that consists of a '.' followed by an empty digit string.
90507         Patch by Tor Lillqvist <tml@iki.fi>.
90508
90509 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90510
90511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90512         for backward compatibility with older code.  We need our own
90513         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90514         it under some other name, and our alloca.h will define it.
90515
90516 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90517             Derek Price  <derek@ximbiot.com>
90518
90519         * lib/alloca.c: Include <alloca.h>, to get our interface.
90520         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90521         include <alloca.h> first.  Use C89 prototype for alloca; this
90522         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90523         Use #elif for simplicity, since we can assume C89 now.
90524         Don't try to source the system alloca.h since it will not be found
90525         and to prevent recursively including its replacement.
90526         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90527         * lib/regex.c: Likewise.
90528
90529 2004-05-16  Derek Price  <derek@ximbiot.com>
90530             Paul Eggert  <eggert@cs.ucla.edu>
90531
90532         getline cleanup.  This changes the getndelim2 API: both order of
90533         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90534         no delimiter).
90535
90536         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90537         interface does that.
90538         (getline): Always use getdelim, so that we don't have two
90539         copies of this code.
90540         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90541         if available.
90542         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90543         (GETNDELIM2_MAXIMUM): New macro.
90544         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90545         instead of the old practice of delim2==0.  All callers changed.
90546         Return -1 on overflow, instead of returning junk.
90547         Do not set *linesize unless allocation succeeds.
90548         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90549         that we include sys/types.h.
90550         * lib/getnline.h: Likewise.
90551         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90552         (getndelim2): Reorder arguments.
90553         * lib/getnline.c (getnline, getndelim):
90554         Don't discard the NMAX argument.
90555         (getnline): Invoke getndelim, to avoid code duplication.
90556         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90557         of (size_t) -1 by callers of the getnline family.
90558
90559 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90560
90561         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90562         Check for gettimeofday.
90563         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90564         Check for settimeofday, stime.
90565
90566 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90567
90568         * lib/nanosleep.c (suspended): Change its type from int to
90569         sig_atomic_t volatile.
90570         (first_call): Make it private to rpl_nanosleep, and have it
90571         be zero initially as that's a bit faster.
90572         (my_usleep): Round up fractional times instead of truncating them,
90573         as this is the usual meaning for 'sleep'.
90574
90575         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90576         doesn't work.
90577         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90578         (ENOSYS): Define if not defined.
90579         (settime): Fall back on stime if it exists and settimeofday fails.
90580         But don't bother with fallbacks if a method fails with errno == EPERM.
90581
90582 2004-05-11  Jim Meyering  <jim@meyering.net>
90583
90584         Prior to this change, the save_cwd caller required read access to the
90585         current directory on most systems (ones with the fchdir function).
90586
90587         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90588         fails, try write-only, and finally, resort to using xgetcwd.
90589
90590 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90591
90592         * lib/obstack.c, obstack.h: Import changes from libc.
90593
90594 2004-04-28  Bruno Haible  <bruno@clisp.org>
90595
90596         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90597         also implicitly appends .exe to executables.
90598         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90599         accepts Windows pathnames.
90600         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90601         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90602         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90603         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90604         Reported by Derek Robert Price <derek@ximbiot.com>.
90605
90606 2004-04-21  Karl Berry  <karl@gnu.org>
90607
90608         * config/srclist.txt (localcharset.c): break sync.
90609
90610 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90611
90612         * m4/host-os.m4: Add a copyright notice.
90613
90614 2004-04-20  Jim Meyering  <jim@meyering.net>
90615
90616         Change UTILS_ to gl_ in AC_DEFINE'd names.
90617         Change utils_- and jm_-prefixed variables, too.
90618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90619         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90621
90622         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90623         Don't emit trailing blanks.
90624         Also rename jm_-prefixed variables to have gl_ prefix.
90625
90626         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90627         Also rename jm_-prefixed variables to have gl_ prefix.
90628
90629         * m4/jm-macros.m4: Reflect the renamings.
90630         * m4/prereq.m4: Likewise.
90631
90632 2004-04-20  Jim Meyering  <jim@meyering.net>
90633
90634         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90635         memory.
90636
90637 2004-04-20  Jim Meyering  <jim@meyering.net>
90638             Bruno Haible  <bruno@clisp.org>
90639
90640         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90641         memory when realloc fails.
90642
90643 2004-04-19  Jim Meyering  <jim@meyering.net>
90644
90645         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90646         now that readutmp.c may call `free (0)'.
90647
90648 2004-04-19  Bruno Haible  <bruno@clisp.org>
90649
90650         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90651         * m4/inttypes_h.m4: Likewise.
90652         * m4/stdint_h.m4: Likewise.
90653         * m4/intmax_t.m4: Likewise.
90654         * m4/uintmax_t.m4: Likewise.
90655
90656 2004-04-18  Jim Meyering  <jim@meyering.net>
90657
90658         * m4/prereq.m4: Don't forbid jm_ prefix.
90659
90660         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90661         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90662         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90663         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90664         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90665         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90666         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90667         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90668         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90669         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90670         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90671         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90672         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90673         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90674         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90675         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90676         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90677         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90678         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90679
90680 2004-04-18  Jim Meyering  <jim@meyering.net>
90681
90682         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90683         failure, don't leak memory and do call END_UTMP_ENT.
90684
90685 2004-04-16  Jim Meyering  <jim@meyering.net>
90686
90687         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90688         coreutils' stat program.
90689         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90690
90691 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90692
90693         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90694         C89.
90695         (CHAR_BIT): Remove, since we assume C89.
90696         Include <stdint.h> if available, as per current Autoconf CVS advice.
90697
90698 2004-03-31  Jim Meyering  <jim@meyering.net>
90699
90700         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90701         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90702         * m4/xalloc.m4: Likewise.
90703
90704 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90705
90706         Merge from coreutils.
90707
90708         * m4/inttostr.m4: New file.
90709         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90710         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90711         Require gl_CLOCK_TIME.
90712         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90713
90714 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90715
90716         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90717         not bool, to be more consistent with Unix conventions.
90718         Suggested by Bruno Haible.
90719
90720         Merge from coreutils.
90721
90722         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90723         * lib/umaxtostr.c: New files.
90724
90725         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90726         the usual <time.h> dance.
90727         (get_date): Change signature to support fractional time stamps.
90728         All callers changed.
90729         * lib/getdate.y: Include "getdate.h" first, as we can now
90730         assume C89 and don't need to worry about 'const'.
90731         Similarly, include "unlocked-io.h" near start, not in middle.
90732         Include <limits.h>.
90733         (textint.value): Use long int rather than int.
90734         (textint.digits): Use size_t rather than int.
90735         (BILLION, LOG10_BILLION): New constants.
90736         (parser_control): New member rel_ns.  Members day_ordinal,
90737         time_zone, month, day, hour, minutes, rel_year, rel_month,
90738         rel_day, rel_hour, rel_minutes, rel_seconds
90739         are now long int, not int.  Member seconds is now struct timespec,
90740         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90741         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90742         not int.
90743         (%union.intval): Now long int, not int.
90744         New member timespec.
90745         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90746         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90747         (spec): Now is a timespec or an item list.
90748         (timespec, items): New nonterminals.
90749         (time, rel, relunit, number, get_date):
90750         Add support for fractional seconds.
90751         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90752         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90753         (to_hour): First arg is now long int, not int.
90754         (to_year): Returns long int, not int.
90755         Don't treat year -70 like 70.
90756         (tm_diff): Returns long int, not int.
90757         (lookup_word): Use bool instead of int when appropriate.
90758         (yylex): Use size_t for count, not int.
90759         Detect overflow when parsing large integer constants.
90760         Add support for fractions.
90761         (get_date): Make pointers 'const' if possible.
90762         Use more-portable code to detect integer overflow.
90763         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90764         Don't use ctime; it's not reliable if the year has >4 digits.
90765
90766         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90767         This is for compatibility with BSD.
90768
90769         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90770         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90771         From coreutils' system.h.
90772
90773         * lib/userspec.c: Don't include "posixver.h".
90774         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90775         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90776         compatible extension.  Simplify code by removing a boolean int
90777         that was always nonzero if a string was nonnull.
90778
90779 2004-03-30  Jim Meyering  <jim@meyering.net>
90780
90781         Merge from coreutils.
90782
90783         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90784         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90785         on some systems one must include <grp.h> before it.
90786         Reported by Christian Krackowizer.
90787
90788 2004-03-30  Jim Meyering  <jim@meyering.net>
90789
90790         Merge from coreutils.
90791
90792         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90793
90794         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90795         an empty input stream.
90796
90797         * lib/readtokens.c: Include <stdbool.h>.
90798         (readtoken): Use `size_t' rather than int/long.
90799         All callers adjusted.
90800         Use `bool' rather than `int' where appropriate.
90801         Use memset rather than an explicit loop.
90802         Use x2nrealloc rather than xrealloc.
90803         Allow the use of `\0' as a delimiter.
90804         (readtokens): Likewise.
90805         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90806
90807 2004-03-30  Jim Meyering  <jim@meyering.net>
90808
90809         * m4/realloc.m4: Remove file, since now it does no more than
90810         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90811         the `configure.ac' section of module/realloc.
90812         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90813
90814 2004-03-30  Bruno Haible  <bruno@clisp.org>
90815
90816         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90817         nonnull.
90818
90819 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90820
90821         Merge changes to getloadavg.c from coreutils and Emacs.
90822
90823         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90824         Define to an expression, not to the empty string.
90825         Include cloexec.h and xalloc.h.
90826         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90827         Use set_cloexec_flag rather than rolling our own.
90828         * lib/cloexec.c, lib/cloexec.h: New files.
90829
90830 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90831
90832         * m4/cloexec.m4: New file.
90833
90834 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90835
90836         * lib/getopt.h: Sync with libc CVS.
90837
90838 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90839             Bruno Haible  <bruno@clisp.org>
90840
90841         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90842         mbswidth.
90843
90844 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90845             Bruno Haible  <bruno@clisp.org>
90846
90847         * lib/mbswidth.h: Include <wchar.h> only if
90848         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90849         <wchar.h>.
90850         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90851
90852 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90853
90854         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90855         Sync with libc CVS.
90856         * lib/getopt_int.h: New file, also synced from libc.
90857
90858 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90859
90860         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90861         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90862         Bring back getopt.c, getopt.h, getopt1.c.
90863
90864 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90865
90866         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90867         All uses changed.  Check for sa_sigaction member; this fixes
90868         a bug first reported by Jason Andrade in
90869         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90870
90871 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90872
90873         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90874         '#if' expressions.  Unlike the code it replaces, it does not
90875         depend on (defined _SC_PAGESIZE).  However, it does depend on
90876         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90877         first reported by Jason Andrade in
90878         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90879
90880 2004-02-25  Simon Josefsson  <jas@extundo.com>
90881
90882         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90883
90884 2004-02-25  Simon Josefsson  <jas@extundo.com>
90885
90886         * lib/strdup.h: New file.
90887         * lib/strdup.c: Include it.
90888         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90889         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90890
90891 2004-02-23  Karl Berry  <karl@gnu.org>
90892
90893         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90894         (from fencepost.gnu.org:/gd/gnuorg).
90895
90896 2004-02-23  Karl Berry  <karl@gnu.org>
90897
90898         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90899         * config/srclist.txt: add maintain/standards documents.
90900
90901 2004-02-18  Bruno Haible  <bruno@clisp.org>
90902
90903         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90904         Reported by Derek Robert Price <derek@ximbiot.com>.
90905
90906 2004-02-16  Karl Berry  <karl@gnu.org>
90907
90908         * config/mkinstalldirs, install-sh: update from automake.
90909
90910 2004-02-06  Karl Berry  <karl@gnu.org>
90911
90912         * m4/po.m4: update from gettext 0.14.1.
90913
90914 2004-02-06  Karl Berry  <karl@gnu.org>
90915
90916         * lib/config.charset: update from gettext 0.14.1.
90917
90918 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90919
90920         Add comments and code, prompted by suggestions from Bruno Haible
90921         for sh-quote.
90922         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90923         describing the enum quoting_style values.
90924         * lib/quotearg.c (quotearg_alloc): New function.
90925         (quotearg_buffer_restyled): Treat lone { and } as special.
90926         Treat = as special.  Work around bug with older shells
90927         that "see" a '\' that is really the 2nd byte of a multibyte char.
90928         Quote empty string with shell_quoting_style.
90929
90930 2004-02-03  Bruno Haible  <bruno@clisp.org>
90931
90932         * m4/pipe.m4: New file, from GNU gettext.
90933
90934 2004-02-03  Bruno Haible  <bruno@clisp.org>
90935
90936         * lib/pipe.h: New file, from GNU gettext.
90937         * lib/pipe.c: New file, from GNU gettext.
90938
90939 2004-01-27  Bruno Haible  <bruno@clisp.org>
90940
90941         * m4/execute.m4: New file, from GNU gettext.
90942
90943 2004-01-27  Bruno Haible  <bruno@clisp.org>
90944
90945         * lib/execute.h: New file, from GNU gettext.
90946         * lib/execute.c: New file, from GNU gettext.
90947         * lib/w32spawn.h: New file, from GNU gettext.
90948
90949 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90950
90951         Merge from diffutils.
90952
90953         * lib/file-type.c (file_type): Add typed memory objects.
90954         * lib/file-type.h (S_TYPEISTMO): New macro.
90955
90956         * lib/c-stack.h (c_stack_action): Remove argv argument.
90957         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90958         (die): Don't calculate message unless segv_action returns.
90959         (get_stack_location, min_address_from_argv, max_address_from_argv,
90960         volatile stack_base, volatile_stack_size): Remove.
90961         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90962         that every segmentation violation is a stack overflow.  (Ouch!)
90963         See Debian bug 136249 (still outstanding) for more info about why
90964         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90965
90966 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90967
90968         Exit-status fix from coreutils.
90969
90970         Use exit_failure consistently in place of EXIT_FAILURE,
90971         so that program exit statuses are consistent on failure.
90972
90973         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90974         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90975         * lib/argmatch.h: Comment fix to match the above.
90976         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90977         Now a macro referring to exit_failure, instead of a separate
90978         variable.  Include "exitfail.h" to get it.
90979         * lib/xstrtol.h: Include "exitfail.h".
90980         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90981
90982         * lib/long-options.c (parse_long_options): Use prototype
90983         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90984         for clarity.
90985
90986 2004-01-21  Jim Meyering  <jim@meyering.net>
90987
90988         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90989         so as not to conflict with a different-sized __mktime_internal
90990         function in GNU libc.
90991         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90992         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90993
90994 2004-01-20  Karl Berry  <karl@gnu.org>
90995
90996         * config/config.guess: update from config.
90997
90998         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90999
91000 2004-01-20  Bruno Haible  <bruno@clisp.org>
91001
91002         Safer stack allocation.
91003         * lib/setenv.c: Include allocsa.h.
91004         (alloca): Remove fallback definition.
91005         (freea): Remove macro.
91006         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91007         instead of freea.
91008
91009 2004-01-20  Bruno Haible  <bruno@clisp.org>
91010
91011         * m4/eealloc.m4: New file, from GNU gettext.
91012
91013 2004-01-20  Bruno Haible  <bruno@clisp.org>
91014
91015         * m4/allocsa.m4: New file, from GNU gettext.
91016
91017 2004-01-20  Bruno Haible  <bruno@clisp.org>
91018
91019         * lib/xallocsa.h: New file, from GNU gettext.
91020         * lib/xallocsa.c: New file, from GNU gettext.
91021
91022 2004-01-20  Bruno Haible  <bruno@clisp.org>
91023
91024         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91025
91026 2004-01-20  Bruno Haible  <bruno@clisp.org>
91027
91028         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91029         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91030         specially.
91031
91032 2004-01-20  Bruno Haible  <bruno@clisp.org>
91033
91034         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91035         patch.
91036
91037 2004-01-20  Bruno Haible  <bruno@clisp.org>
91038
91039         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91040
91041 2004-01-20  Bruno Haible  <bruno@clisp.org>
91042
91043         * lib/eealloc.h: New file.
91044
91045 2004-01-20  Bruno Haible  <bruno@clisp.org>
91046
91047         * lib/binary-io.h: Avoid warnings on Cygwin.
91048
91049 2004-01-20  Bruno Haible  <bruno@clisp.org>
91050
91051         * lib/allocsa.h: New file, from GNU gettext.
91052         * lib/allocsa.c: New file, from GNU gettext.
91053
91054 2004-01-18  Karl Berry  <karl@gnu.org>
91055
91056         * doc/gpl.texi, doc/lgpl.texi: new files.
91057
91058 2004-01-18  Karl Berry  <karl@gnu.org>
91059
91060         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91061         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91062
91063 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91064
91065         Merge from coreutils.
91066
91067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91068         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91069         (gl_DEFAULT_POSIX2_VERSION): Move
91070         the documentation from 'configure' into 'config.hin',
91071         so that 'configure --help' isn't burdened by it and
91072         we don't have to worry about its formatting there.
91073         Reword the documentation so that it's more succinct
91074         and can be run together into a single paragraph.
91075         * m4/same.m4 (gl_SAME): Check for pathconf.
91076
91077 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91078
91079         Merge from coreutils.
91080
91081         * lib/posixver.c: Include posixver.h.
91082
91083         * lib/same.c: Include <stdbool.h>, <limits.h>.
91084         (_POSIX_NAME_MAX): Define if not defined.
91085         (MIN): New macro.
91086         (same_name): If file names are silently truncated, report
91087         that the file names are the same if they are the same after
91088         the silent truncation.
91089
91090         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91091         conversion function.
91092         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91093         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91094         longer needed.
91095
91096 2004-01-15  Jim Meyering  <jim@meyering.net>
91097
91098         Merge from coreutils.
91099
91100         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91101         if no library is required.
91102         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91103         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91104         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91105         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91106         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91107         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91108         value, $ac_cv_search_crypt, if it's "none required".
91109         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91110         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91111         not gl_FUNC_GETLOADAVG.
91112         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91113         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91114
91115 2004-01-15  Jim Meyering  <jim@meyering.net>
91116
91117         Merge from coreutils.
91118
91119         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91120         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91121         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91122
91123         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91124         optional configure-time default.
91125
91126         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91127
91128         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91129
91130 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91131
91132         Merge from coreutils.
91133
91134         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91135         value, $ac_cv_search_nanosleep, if it's "none required".
91136
91137 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91138
91139         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91140         with like-named macro in fnmatch.c.
91141         (EXT): Use an internal constant instead.
91142
91143         Merge fnmatch patches from glibc.
91144         * lib/fnmatch.c (mbsinit): Remove define.
91145         Add libc_hidden_ver (__fnmatch, fnmatch).
91146         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91147         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91148
91149 2004-01-14  Karl Berry  <karl@gnu.org>
91150
91151         * config/install-sh: update from automake.
91152
91153 2004-01-13  Karl Berry  <karl@gnu.org>
91154
91155         * config/install-sh: update from automake.
91156
91157 2004-01-09  Karl Berry  <karl@gnu.org>
91158
91159         * config/install-sh: update from automake.
91160
91161 2004-01-05  Karl Berry  <karl@gnu.org>
91162
91163         * config/config.{sub,guess}: update from config.
91164
91165 2003-12-31  Karl Berry  <karl@gnu.org>
91166
91167         * config/depcomp: update from automake.
91168
91169 2003-12-14  Karl Berry  <karl@gnu.org>
91170
91171         * lib/config.charset: update from gettext-runtime.
91172
91173 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91174
91175         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91176         Bug reported by Alfred M. Szmidt.
91177
91178 2003-12-03  Bruno Haible  <bruno@clisp.org>
91179
91180         * m4/gettext.m4: Upgrade from gettext-0.13.
91181         * m4/po.m4: Upgrade from gettext-0.13.
91182         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91183         * m4/intmax.m4: New file, from gettext-0.13.
91184         * m4/printf-posix.m4: New file, from gettext-0.13.
91185
91186 2003-11-29  Karl Berry  <karl@gnu.org>
91187
91188         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91189
91190 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91191             Bruno Haible  <bruno@clisp.org>
91192
91193         * lib/printf-parse.h: Don't include sys/types.h.
91194         (ARG_NONE): New macro.
91195         (char_directive): Change type of *arg_index fields to size_t.
91196         * lib/printf-parse.c: Don't include sys/types.h.
91197         (SSIZE_MAX): Remove macro.
91198         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91199         Remove unnecessary overflow check.
91200         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91201         fields.
91202
91203 2003-11-25  Bruno Haible  <bruno@clisp.org>
91204
91205         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91206
91207 2003-11-25  Bruno Haible  <bruno@clisp.org>
91208
91209         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91210         gt_TYPE_SSIZE_T.
91211
91212 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91213
91214         * modules/alloca: Remove dependency on xalloc.
91215
91216 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91217
91218         * lib/alloca.c: Remove dependency on xalloc module.
91219         (xalloc_die): Remove.
91220         (memory_full) [!defined emacs]: New macro.
91221         [!defined emacs]: Don't include xalloc.h.
91222         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91223         address arithmetic overflows.  Change datatypes a bit to avoid
91224         unnecessary casts.
91225
91226 2003-11-22  Jim Meyering  <jim@meyering.net>
91227
91228         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91229         s/size/size_t/.
91230
91231 2003-11-21  Karl Berry  <karl@gnu.org>
91232
91233         * config/config.{sub,guess}: update from config.
91234
91235 2003-11-18  Karl Berry  <karl@gnu.org>
91236
91237         * config/config.{sub,guess}: update from config.
91238
91239         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91240
91241 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91242
91243         * README: Mention that S+T cannot overflow if S is the size of
91244         an existing object and T is sufficiently small.
91245
91246 2003-11-17  Jim Meyering  <jim@meyering.net>
91247
91248         On systems without utime and without a utimes function capable of
91249         dealing with a NULL struct utimbuf* argument, this utime replacement
91250         could -- in unusual circumstances -- leak a file descriptor.
91251         * lib/utime.c: Include <unistd.h> and <errno.h>.
91252         (utime_null): Be sure to close `fd' and to preserve errno.
91253         Reported by Geoff Collyer via Arnold Robbins.
91254
91255 2003-11-17  Bruno Haible  <bruno@clisp.org>
91256
91257         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91258         (Depends-on): Add xsize.
91259
91260 2003-11-17  Bruno Haible  <bruno@clisp.org>
91261
91262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91263
91264 2003-11-17  Bruno Haible  <bruno@clisp.org>
91265
91266         * lib/vasnprintf.c (alloca): Remove fallback definition.
91267         (freea): Remove definition.
91268         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91269         Reported by Paul Eggert.
91270
91271 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91272             Bruno Haible  <bruno@clisp.org>
91273
91274         Protect against address arithmetic overflow.
91275         * lib/printf-args.h: Include stddef.h.
91276         (arguments): Change type of field 'count' to size_t.
91277         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91278         'unsigned int' where appropriate.
91279         * lib/printf-parse.h: Include sys/types.h.
91280         (char_directive): Change type of *arg_index fields to ssize_t.
91281         (char_directives): Change type of fields 'count', max_*_length to
91282         size_t.
91283         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91284         (SSIZE_MAX): Define fallback value.
91285         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91286         instead of 'int' where appropriate. Check a_allocated, d_allocated
91287         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91288         * lib/vasnprintf.c: Include xsize.h.
91289         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91290         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91291         overflow. Avoid wraparound when converting a width or precision from
91292         decimal to binary.
91293
91294 2003-11-16  Bruno Haible  <bruno@clisp.org>
91295
91296         Update from GNU gettext.
91297         * lib/printf-parse.c: Generalize to it can be compiled for wide
91298         strings.
91299         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91300         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91301         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91302         SNPRINTF): New macros.
91303         Don't include <alloca.h> if the file is used inside libintl.
91304         (local_wcslen): New function, for Solaris 2.5.1.
91305         (VASNPRINTF): Use it instead of wcslen.
91306
91307 2003-11-16  Bruno Haible  <bruno@clisp.org>
91308
91309         * lib/xsize.h (xmax): New function.
91310         (xsum, xsum3, xsum4): Declare as "pure" functions.
91311
91312 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91313
91314         * modules/xalloc (Files): Undo latest change, since xalloc.h
91315         no longer needs SIZE_MAX or PTRDIFF_MAX.
91316
91317 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91318
91319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91320         gl_PTRDIFF_MAX.
91321
91322 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91323
91324         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91325         "return", to pacify some unknown compiler.  Problem reported
91326         by Joerg Schilling.
91327
91328 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91329
91330         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91331         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91332         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91333         heuristic is just as accurate as far as we know, and it removes a
91334         dependency on size_max.m4 and ptrdiff_max.m4.
91335
91336 2003-11-11  Bruno Haible  <bruno@clisp.org>
91337
91338         * modules/xsize (Files): Add m4/size_max.m4.
91339         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91340
91341 2003-11-11  Bruno Haible  <bruno@clisp.org>
91342
91343         * m4/size_max.m4: New file.
91344         * m4/ptrdiff_max.m4: New file.
91345         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91346         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91347         (gl_XALLOC): Invoke it.
91348
91349 2003-11-11  Bruno Haible  <bruno@clisp.org>
91350
91351         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91352         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91353         defined.
91354
91355 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91356
91357         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91358         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91359         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91360         From Bruno Haible.
91361         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91362         not (size_t) -1, since it's defined here.
91363
91364 2003-11-09  Karl Berry  <karl@gnu.org>
91365
91366         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91367
91368 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91369
91370         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91371         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91372         Reject sizes of exactly SIZE_MAX bytes.
91373         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91374         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91375
91376 2003-11-05  Bruno Haible  <bruno@clisp.org>
91377
91378         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91379         SIZE_MAX defined in <limits.h> on Solaris.
91380
91381 2003-11-04  Jim Meyering  <jim@meyering.net>
91382
91383         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91384         variable names, rather than @VAR@.
91385         * modules/poll: Likewise.
91386
91387 2003-11-04  Bruno Haible  <bruno@clisp.org>
91388
91389         * modules/xsize: New file.
91390         * modules/linebreak: Depend on xsize.
91391         * MODULES.html.sh (func_all_modules): Add xsize.
91392
91393 2003-11-04  Bruno Haible  <bruno@clisp.org>
91394
91395         * m4/xsize.m4: New file.
91396
91397 2003-11-04  Bruno Haible  <bruno@clisp.org>
91398
91399         * lib/xsize.h: New file.
91400         * lib/linebreak.c: Include xsize.h.
91401         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91402         argument for overflow.
91403         Suggested by Paul Eggert.
91404
91405 2003-11-03  Karl Berry  <karl@gnu.org>
91406
91407         * config/config.{guess,sub}: update from config.
91408
91409 2003-11-03  Jim Meyering  <jim@meyering.net>
91410
91411         * modules/userspec (lib_SOURCES): Add userspec.h.
91412         (Include): Add "userspec.h".
91413         Improve description.
91414
91415 2003-11-03  Jim Meyering  <jim@meyering.net>
91416
91417         * lib/userspec.c: Include "userspec.h".
91418         * lib/userspec.h: New file.
91419
91420 2003-11-03  Bruno Haible  <bruno@clisp.org>
91421
91422         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91423
91424 2003-11-03  Bruno Haible  <bruno@clisp.org>
91425
91426         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91427         available, to avoid (extremely rare) race condition.
91428         Suggested by Paul Eggert.
91429
91430 2003-11-02  Karl Berry  <karl@gnu.org>
91431
91432         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91433
91434 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91437         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91438         (read_filesystem_list): Set and use me_type_malloced.
91439         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91440         whatever the type happens to be), for brevity and consistency.
91441         Check for size calculation overflow on Alphas running OSF/1.
91442
91443 2003-10-31  Jim Meyering  <jim@meyering.net>
91444
91445         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91446
91447         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91448
91449 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91450             Bruno Haible  <bruno@clisp.org>
91451
91452         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91453         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91454
91455 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91456
91457         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91458         netbsd*-gnu*.  Suggested by Robert Millan.
91459
91460 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91461
91462         * modules/group-member: Depend on stdbool.
91463
91464 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91465
91466         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91467
91468 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91469
91470         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91471         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91472         after the 'gnu' in these cases.  This fixes some bugs in the
91473         previous change, and is based on suggestions by Robert Millan.
91474
91475 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91476
91477         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91478         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91479         no longer needed.
91480         * lib/quotearg.c (quotearg_n_options): Use it.
91481         * lib/group-member.c: Include <stdbool.h>.
91482         (free_group_info): Arg is now const *; don't free arg.
91483         (get_group_info): Now returns bool and accepts struct group_info *,
91484         rather than returning a malloc'ed struct group_info *.
91485         All uses changed.  Check for overflow in internal size calculation.
91486
91487         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91488         rather than xmalloc/xrealloc.
91489         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91490         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91491         conformance bug: the old code used a pointer after freeing the
91492         storage that it addressed.
91493         * lib/hash.c (hash_initialize): Simplify the code by using
91494         xalloc_oversized rather than doing it by hand.
91495         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91496         the buffer preserved.  Use free and xmalloc instead.
91497         * lib/quotearg.c (quotearg_n_options): Likewise.
91498         Use a simpler test for size overflow.  Don't use xalloc_oversized
91499         because unsigned int might be wider than size_t (!); this suggests
91500         that we should switch from unsigned int to size_t for slot numbers.
91501
91502 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91503
91504         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91505         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91506         NetBSD kernels.  Requested by Richard Stallman.
91507
91508 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91509
91510         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91511         to allocate the returned structure.  Do not allocate a subarray,
91512         as x2nrealloc will do that.
91513         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91514         instead of xnrealloc.
91515         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91516
91517 2003-10-27  Bruno Haible  <bruno@clisp.org>
91518
91519         * lib/stdbool_.h: Better support for BeOS.
91520
91521 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91522
91523         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91524         now uses inline.
91525
91526 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91527
91528         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91529         callers that want to do their own size-overflow checking.  Include
91530         <stdbool.h>, since xalloc_oversized returns bool.
91531         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91532         to use xalloc_oversized.
91533
91534         Add two functions x2realloc, x2nrealloc, for programs that grow
91535         arrays dynamically by doubling their sizes.
91536         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91537         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91538         New functions.
91539
91540         Port to C99 semantics for 'inline' of external functions.
91541         Bug reported by Bruno Haible.
91542         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91543         with the old contents of xnmalloc.
91544         (xnmalloc, xmalloc): Use it.
91545         (xnrealloc_inline): New static inline function,
91546         with the old contents of xnrealloc.
91547         (xnrealloc, xrealloc): Use it.
91548
91549         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91550         that.
91551
91552 2003-10-26  Karl Berry  <karl@gnu.org>
91553
91554         * config/srclist.txt (COPYING.DOC): no longer available from
91555         /gd/gnuorg; don't know where the ultimate source is.
91556
91557 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91558
91559         Fix several address-calculation bugs in the hash modules,
91560         plus some minor code cleanup.
91561
91562         * lib/hash.h: Include <stdbool.h>, for bool.
91563         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91564         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91565         hash_get_n_entries, hash_get_max_bucket_length,
91566         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91567         hash_rehash): Use size_t rather than unsigned.
91568         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91569         hash_get_n_buckets_used, hash_get_n_entries,
91570         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91571         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91572         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91573         Likewise.
91574         (SIZE_MAX): Define if not defined.
91575         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91576         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91577         hash_print):
91578         Use const * when possible.
91579         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91580         (check_tuning): Fix bug: if tuning parameters were very close to
91581         0 or 1, rounding errors could have caused subscript violations.
91582         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91583         (hash_initialize): Add 'fail:' label
91584         to free table and return NULL, and use it to simplify code.
91585         Use calloc rather than clearing the storage ourself.
91586         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91587         buffer size calculations.
91588         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91589         Include <stddef.h>, for size_t.
91590         * lib/hash-pjw.c (hash_pjw): Likewise.
91591         Switch to method described by Bruno Haible.
91592         Include <limits.h>, for CHAR_BIT.
91593         (SIZE_BITS): New macro.
91594
91595 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/getline.m4 (AM_FUNC_GETLINE):
91598         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91599         hosts.  Problem reported by Derek Robert Price in
91600         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91601         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91602         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91603
91604 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91605
91606         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91607         ceiling the allocation at NMAX bytes rather than silently
91608         discarding input bytes before NMAX is reached.  This makes
91609         a difference only if NMAX exceeds SIZE_MAX / 2.
91610
91611         * lib/obstack.c: Merge from glibc.
91612         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91613         Add libc_hidden_def (_obstack_newchunk).
91614         (_obstack_free) [! defined _LIBC]: Remove.
91615         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91616         a clone of the function body.
91617         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91618         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91619
91620         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91621         glibc.
91622         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91623         arg to memcpy.
91624
91625         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91626         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91627         Don't use lvalue casts, as GCC plans to remove support for them
91628         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91629         was also present in the non-GCC version, indicating that this
91630         code had always been buggy and had never been widely used.
91631         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91632         Use the fast variant of each macro, rather than copying the
91633         definiens of the fast variant; that way, we'll be more likely to
91634         catch future bugs in the fast variants.
91635
91636 2003-10-20  Bruno Haible  <bruno@clisp.org>
91637
91638         * modules/wait-process: New file.
91639         * MODULES.html.sh (func_all_modules): Add wait-process.
91640
91641 2003-10-20  Bruno Haible  <bruno@clisp.org>
91642
91643         * m4/wait-process.m4: New file.
91644
91645 2003-10-20  Bruno Haible  <bruno@clisp.org>
91646
91647         * lib/wait-process.h: New file, from GNU gettext.
91648         * lib/wait-process.c: New file, from GNU gettext.
91649
91650 2003-10-19  Jim Meyering  <jim@meyering.net>
91651
91652         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91653         HPUX 10.20.
91654
91655 2003-10-18  Karl Berry  <karl@gnu.org>
91656
91657         * config/config.guess: update from config.
91658
91659 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91660
91661         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91662         (getgroups): First arg is int, not size_t.
91663         Don't let 'free' mangle errno.
91664
91665 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91666
91667         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91668
91669 2003-10-16  Karl Berry  <karl@gnu.org>
91670
91671         * config/config.{guess,sub}: update from config.
91672
91673 2003-10-16  Jim Meyering  <jim@meyering.net>
91674
91675         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91676         memcpy.
91677
91678 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91679
91680         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91681         (SIZE_MAX): Remove.
91682         (new_exclude, add_exclude_file): Initial size no longer needs to
91683         be a power of 2.
91684         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91685         our own address arithmetic overflow checking.
91686
91687         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91688         (fnmatch): Do not alloca more than 2000 wide characters;
91689         instead, use malloc for large buffers.
91690         Check for address arithmetic overflow, and return -1
91691         with errno set to ENOMEM in that case.
91692         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91693         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91694         instead, return -1.  Check for address arithmetic overflow.
91695
91696 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91697
91698         Handle invalid suffixes and overflow independently, so that
91699         callers can treat them independently as needed.  Fix some bugs in
91700         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91701         suffix for a human-readable blocksize.  The major caller-visible
91702         change is the addition of a new
91703         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91704         that both overflow and suffix chars were found.
91705
91706         * lib/human.c (humblock): Don't check separately for invalid suffix
91707         char; that is xstrtoumax's job (now that its bug is fixed).
91708         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91709         INTMAX_MAX]: New macros.
91710         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91711         TYPE_MAXIMUM): New macros.
91712         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91713         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91714         if overflow occurs, as it's what __strtol does and it's more useful
91715         in practice.
91716         (__xstrtol): If __strtol reports some error other than ERANGE,
91717         reflect it to the caller as LONGINT_INVALID.  If it reports
91718         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91719         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91720         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91721         value.
91722         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91723         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91724         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91725         [defined UINTMAX_MAX]: New macros.
91726
91727 2003-10-14  Bruno Haible  <bruno@clisp.org>
91728
91729         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91730
91731 2003-10-14  Bruno Haible  <bruno@clisp.org>
91732
91733         * m4/sig_atomic_t: New file, from GNU gettext.
91734         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91735
91736 2003-10-14  Bruno Haible  <bruno@clisp.org>
91737
91738         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91739         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91740         Also use volatile where needed.
91741
91742 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91743
91744         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91745         Change maintainer from Bruno Haible to 'all'.
91746
91747 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91748
91749         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91750
91751 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91752
91753         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91754         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91755         and define in terms of the other primitives.
91756         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91757         (SIZE_MAX): Define if not already defined.
91758         (array_size_overflow): New function.
91759         (xalloc_die): Abort instead of exiting if 'error' returns.
91760         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91761         (xmalloc, xrealloc): Use them.
91762         (xcalloc): Check for address arithmetic overflow.
91763         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91764         a bit faster than strcpy.
91765
91766 2003-10-10  Simon Josefsson  <jas@extundo.com>
91767
91768         * modules/argp (Depends-on): Add restrict and strcase.
91769
91770 2003-10-10  Simon Josefsson  <jas@extundo.com>
91771
91772         * m4/argp.m4: Add AC_C_INLINE.
91773
91774 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91775
91776         Merge getpass from libc, plus a few fixes.
91777
91778         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91779         Include <stdbool.h>.
91780         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91781         __fsetlocking to empty.
91782         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91783         do include <bits/libc-lock.h>.
91784         Do not include <fcntl.h>; not needed.
91785         [_LIBC]: Include <wchar.h>.
91786         (NOTCANCEL_MODE): New macro.
91787         (flockfile, funlockfile) [_LIBC]: New macros.
91788         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91789         [!_LIBC]: New macros.
91790         (call_fclose): New function.
91791         (getpass): Use it.  Save tty stream separately; this simplifies the
91792         code and makes it more reliable if stdin happens to equal stdout.
91793         Invoke __fsetlocking on tty.
91794         Handle thread cancellation if needed.
91795         Namespace cleanup (use __tcgetattr, __getline).
91796         Use bool for Booleans.
91797         [USE_IN_LIBIO]: Handle wide streams.
91798         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91799         stream might go where.
91800
91801         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91802         doesn't have to include <stdio.h> before us.
91803         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91804         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91805         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91806         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91807         if not declared, so that we can use getpass.c code from libc without
91808         rewriting it.
91809         (flockfile, ftrylockfile, funlockfile): New macros.
91810
91811 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91812
91813         * modules/getpass: Depend on stdbool.
91814
91815 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91816
91817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91818
91819 2003-10-07  Karl Berry  <karl@gnu.org>
91820
91821         * config/config.{guess,sub}: update from config.
91822
91823 2003-10-06  Jim Meyering  <jim@meyering.net>
91824             Bruno Haible  <bruno@clisp.org>
91825
91826         This lets translators provide better translations for the
91827         "Written by ..." part of --version output.
91828         * lib/version-etc.h: Include stdarg.h.
91829         (version_etc_copyright): Declare as readonly.
91830         (version_etc): Make this function variadic with a NULL-terminated list
91831         of author name strings.
91832         (version_etc_va): New declaration.
91833         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91834         (version_etc_copyright): Declare as readonly.
91835         (version_etc_va): New function. Provide a different translatable string
91836         for each possible number of authors < 10. Abbreviate when there are 10
91837         authors or more.
91838         (version_etc): Make this function variadic. Call version_etc_va.
91839         Suggestion from Gary V. Vaughan.
91840
91841         * lib/long-options.h (parse_long_options): Change prototype: the
91842         authors string is moved to the end and becomes variadic.
91843         * lib/long-options.c: Include stdarg.h.
91844         (parse_long_options): Make this function variadic, too.
91845         Call version_etc_va, not version_etc.
91846
91847 2003-10-06  Bruno Haible  <bruno@clisp.org>
91848
91849         * modules/version-etc-2: Remove file.
91850         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91851
91852 2003-10-06  Bruno Haible  <bruno@clisp.org>
91853
91854         * modules/fatal-signal: New file.
91855         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91856
91857 2003-10-06  Bruno Haible  <bruno@clisp.org>
91858
91859         * m4/fatal-signal.m4: New file.
91860         * m4/signalblocking.m4: New file, from GNU gettext.
91861
91862 2003-10-06  Bruno Haible  <bruno@clisp.org>
91863
91864         * lib/version-etc-2.h: Remove file.
91865         * lib/version-etc-2.c: Remove file.
91866
91867 2003-10-06  Bruno Haible  <bruno@clisp.org>
91868
91869         * lib/fatal-signal.h: New file, from GNU gettext.
91870         * lib/fatal-signal.c: New file, from GNU gettext.
91871
91872 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91873
91874         * README: Rework advice for preventing empty .o files.
91875         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91876         not <sys/types.h>.
91877
91878 2003-10-04  Karl Berry  <karl@gnu.org>
91879
91880         * lib/argp*: update from libc.
91881
91882 2003-10-04  Karl Berry  <karl@gnu.org>
91883
91884         * config/config.{guess,sub}: update from config.
91885
91886 2003-10-02  Bruno Haible  <bruno@clisp.org>
91887
91888         * modules/lchown (Include): Add lchown.h.
91889         * modules/time_r (Include): Use "..." syntax.
91890         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91891
91892 2003-10-01  Simon Josefsson  <jas@extundo.com>
91893
91894         * MODULES.html.sh (func_all_modules): Move gethostname from section
91895         'based on' to section 'lacking' POSIX:2001.
91896
91897 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91898
91899         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91900         to output mode on the same stream.
91901
91902 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91903
91904         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91905         Fix arg typo in previous patch.
91906
91907 2003-09-28  Jim Meyering  <jim@meyering.net>
91908
91909         * lib/error.c: Correct cpp indentation.
91910
91911 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91912
91913         * modules/free: New file.
91914
91915 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91916
91917         * m4/free.m4: New file.
91918
91919 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91920
91921         * lib/minmax.h (MIN, MAX)
91922         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91923         Omit the special code that used __typeof__, since we worry that
91924         it could be more trouble than it's worth.  See:
91925         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91926         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91927
91928         * lib/free.c: New file.
91929
91930 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91931
91932         Trivial fixes to Makefile.am parts of module listings.
91933         * modules/strstr: Append strstr.h to lib_SOURCES.
91934         * modules/strcase: Likewise, for strcase.h.
91935
91936 2003-09-27  Karl Berry  <karl@gnu.org>
91937
91938         * config/mkinstalldirs: update from automake.
91939
91940 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91941
91942         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91943         (error_tail): Do not loop, reallocating temporary buffer, since
91944         the output cannot contain more wide characters than the input
91945         contains bytes, the size must be big enough already.  This avoids
91946         one potential size overflow calculation.  Check for size overflow
91947         when calculating temporary buffer size.  Free temporary buffer
91948         when done, if it was allocated with malloc; this plugs a memory
91949         leak.  Remove casts from void * to pointers, that are no longer
91950         needed now that we're assuming C89 or better.
91951
91952         Merge error changes from glibc.
91953
91954         * lib/error.c, error.h: Update copyright notice header to match glibc.
91955         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91956         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91957         Disable cancellation while printing error.
91958         * lib/error.h: Prepend __ to parameter names.
91959
91960 2003-09-26  Jim Meyering  <jim@meyering.net>
91961
91962         * lib/error.c (error_tail): Move some declarations
91963         into inner scope where the local variables are used.
91964
91965 2003-09-26  Bruno Haible  <bruno@clisp.org>
91966
91967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91968         stpncpy().
91969         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91970
91971 2003-09-26  Bruno Haible  <bruno@clisp.org>
91972
91973         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91974         (stpncpy): Define as alias for gnu_stpncpy.
91975         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91976
91977 2003-09-25  Simon Josefsson  <jas@extundo.com>
91978
91979         * lib/xgetdomainname.h: New file.
91980         * lib/xgetdomainname.c: New file.
91981
91982 2003-09-25  Simon Josefsson  <jas@extundo.com>
91983             Bruno Haible  <bruno@clisp.org>
91984
91985         * modules/getdomainname: New file.
91986         * modules/xgetdomainname: New file.
91987         * MODULES.html.sh (func_all_modules): Add getdomainname,
91988         xgetdomainname.
91989
91990 2003-09-25  Simon Josefsson  <jas@extundo.com>
91991             Bruno Haible  <bruno@clisp.org>
91992
91993         * m4/getdomainname.m4: New file.
91994
91995 2003-09-25  Simon Josefsson  <jas@extundo.com>
91996             Bruno Haible  <bruno@clisp.org>
91997
91998         * lib/getdomainname.h: New file.
91999         * lib/getdomainname.c: New file.
92000
92001 2003-09-25  Karl Berry  <karl@gnu.org>
92002
92003         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92004
92005 2003-09-25  Karl Berry  <karl@gnu.org>
92006
92007         * config/install-sh: update from automake.
92008
92009 2003-09-25  Bruno Haible  <bruno@clisp.org>
92010
92011         * modules/version-etc-2: New file, from modules/version-etc with
92012         modifications.
92013         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92014
92015 2003-09-25  Bruno Haible  <bruno@clisp.org>
92016
92017         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92018         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92019
92020 2003-09-24  Simon Josefsson  <jas@extundo.com>
92021
92022         * modules/xgethostname: Add xgethostname.h.
92023
92024 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92025
92026         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92027         the buffer associated with the argument.  Bug reported by
92028         Simon Josefsson.
92029
92030 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92031
92032         * README: Document assumptions that 'int' is at least 32 bits
92033         wide, that integer arithmetic is 2's complement without overflow,
92034         that there are no holes in integer values, that adding sizes of
92035         two nonoverlapping objects can't overflow, and that all-bits-zero
92036         yields scalar zero.  Fix spelling and capitalization typos.
92037
92038 2003-09-19  Karl Berry  <karl@gnu.org>
92039
92040         * lib/argp.h: update from libc.
92041
92042 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92043
92044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92045         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92046         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92047
92048 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92049
92050         * gnulib-tool: Use "test -h", not "test -L", for portability
92051         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92052         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92053         (sed_extract_prog): Issue s commands one-by-one, rather than
92054         using \| in one s command.
92055
92056 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92057
92058         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92059         input error, instead of returning NULL the next time we are called
92060         (and therefore losing track of errno).
92061
92062 2003-09-16  Bruno Haible  <bruno@clisp.org>
92063
92064         * gnulib-tool (func_create_testdir): Warn about duplicated
92065         dependencies.
92066
92067 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92068
92069         * modules/argmatch, modules/fatal, modules/obstack,
92070         modules/xalloc, modules/xgethostname: Sort dependencies by
92071         importance, not alphabetically.
92072
92073 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92074
92075         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92076         fails, so that the caller gets the proper errno.
92077
92078         * lib/readutmp.c (read_utmp): Likewise.
92079         Check for fstat error.  Close stream and free storage
92080         when failing.
92081
92082 2003-09-14  Karl Berry  <karl@gnu.org>
92083
92084         * config/srclist.txt (strdup.c): disable for c89 changes.
92085
92086 2003-09-14  Jim Meyering  <jim@meyering.net>
92087
92088         * lib/getloadavg.c: Correct cpp indentation.
92089         * lib/strdup.c: Likewise.
92090         * lib/vasnprintf.c: Likewise.
92091
92092 2003-09-14  Bruno Haible  <bruno@clisp.org>
92093
92094         * modules/fwriteerror: New file.
92095         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92096
92097 2003-09-14  Bruno Haible  <bruno@clisp.org>
92098
92099         * lib/fwriteerror.h: New file.
92100         * lib/fwriteerror.c: New file.
92101
92102 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92103
92104         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92105         modules/xgethostname, modules/xalloc: Depend on exit.
92106
92107 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92108
92109         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92110
92111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92112         and AC_MINIX, too, so that their extensions are available.
92113
92114         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92115         This macro has been superseded by gl_BACKUPFILE.
92116
92117         More patches to assume C89 or better.
92118
92119         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92120
92121         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92122         unconditionally.
92123         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92124         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92125         Include <string.h>, <stdlib.h> unconditionally.
92126         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92127         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92128         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92129         headers or for string.h.
92130         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92131         or strtoul.
92132
92133         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92134         headers.
92135         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92136         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92137         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92138         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92140         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92141         memcpy, memset.
92142         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92143         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92144         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92145         strtol.
92146         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92147         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92149         strtoul.
92150
92151 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92152
92153         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92154         * lib/obstack.c [!defined _LIBC]: Likewise.
92155         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92156         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92157         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92158
92159         More changes to assume C89 or better.
92160
92161         * lib/error.c (error_tail): Assume vprintf.
92162
92163         * lib/argmatch.c (getenv): Remove decl.
92164         * lib/progreloc.c (get_full_program_name): Define via prototype.
92165         * lib/setenv.c (clearenv): Likewise.
92166         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92167         needed.
92168         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92169         (malloc, memcpy): Remove decls.
92170         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92171         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92172         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92173         (memcpy): Remove macro.
92174         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92175         (__P): Remove.  All uses removed.
92176         (PTR): Remove.  All uses changed to void *.
92177         (CHAR_BIT, NULL): Remove.
92178         (spaces, zeros, memset_space, memset_zero)
92179         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92180         Remove.
92181         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92182         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92183         Define with prototype.
92184         Remove now-unnecessary prototype decl.
92185         (extra_args_spec): Assume ANSI C.  All uses changed.
92186         (extra_args_spec_iso): Remove.
92187         (my_strftime, emacs_strftimeu): Define via prototype.
92188         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92189         unconditionally.
92190         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92191         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92192         (strtoul, strtol): Remove decls.
92193         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92194         LONG_MAX): Remove.
92195         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92196         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92197         (LOCALE_PARAM_PROTO): New macro.
92198         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92199         (INTERNAL (strtol), strtol): Define with a prototype.
92200         (PARAMS): Remove.  All uses removed.
92201         * lib/tempname.c: Include <string.h> unconditionally.
92202         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92203         * lib/xgethostname.c (main): Define with a prototype.
92204         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92205         Include <stdlib.h> unconditionally.
92206         (calloc, malloc, realloc, free): Remove decls.
92207         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92208         Include <stdlib.h> unconditionally.  Sort include file names.
92209         (strtod): Remove.
92210         (xstrtod): Define with a prototype.
92211         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92212         (strtol, strtoul): Remove decls.
92213
92214 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92215
92216         More patches to assume C89 or better.
92217         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92218         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92219         string.h, memchr, STDC_HEADERS.
92220
92221 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92224         Include <stdlib.h>, <string.h> unconditionally.
92225         Remove now-unnecessary cast to char *.
92226         * lib/strnlen.c: Include <string.h> unconditionally.
92227         * lib/yesno.c (yesno): Define with a prototype.
92228
92229 2003-09-11  Bruno Haible  <bruno@clisp.org>
92230
92231         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92232
92233 2003-09-10  Jim Meyering  <jim@meyering.net>
92234
92235         * lib/error.c: Correct indentation of cpp directives.
92236
92237 2003-09-10  Bruno Haible  <bruno@clisp.org>
92238
92239         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92240         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92241         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92242         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92243         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92244         <stdlib.h> and <string.h> checks.
92245         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92246         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92247
92248 2003-09-10  Bruno Haible  <bruno@clisp.org>
92249
92250         * lib/strcspn.c: Include <string.h> unconditionally.
92251         * lib/strpbrk.c: Include <string.h> unconditionally.
92252         * lib/strstr.c: Include <string.h> unconditionally.
92253         * lib/unicodeio.c: Include <string.h> unconditionally.
92254         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92255         * lib/unsetenv.c: Likewise.
92256         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92257         * lib/yesno.c: Include <stdlib.h> unconditionally.
92258         (rpmatch): Add prototype.
92259
92260 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92261
92262         More patches to assume C89 or better.
92263         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92264         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92265         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92266         or for string.h.
92267         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92268         stdlib.h.
92269         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92270         C headers.
92271         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92272         string.h.
92273         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92274         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92275         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92276         or for string.h.
92277         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92278         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92279         C headers.
92280         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92281         memcpy.
92282         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92283         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92284         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92285         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92286         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92287         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92288         string.h, free.
92289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92290         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92291         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92292         C headers, or for string.h.
92293         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92294         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92295         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92296         headers, memory.h, stdlib.h, string.h, strings.h.
92297         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92298         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92299         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92300         strchr.
92301         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92302         headers, memory.h, string.h.
92303         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92304         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92305         free.
92306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92307         headers.
92308         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92309         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92310         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92311         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92312         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92313
92314 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92315
92316         More K&R removal.
92317
92318         * lib/acosl.c (main): Use a prototype.
92319         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92320         tanl.c: Likewise.
92321
92322         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92323
92324         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92325         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92326         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92327         with a prototype.
92328         * lib/getopt.c (const): Remove macro.
92329         Include <string.h> unconditionally.
92330         (my_index): Remove; all uses changed to strchr.
92331         (strlen): Remove decl.
92332         (exchange): Remove forward decl; no longer needed.
92333         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92334         Define with prototype.
92335         * lib/getopt1.c (const): Remove macro.
92336         (getopt_long, getopt_long_only, main): Define with prototype.
92337
92338         * lib/getugroups.c: Include <string.h> unconditionally.
92339
92340         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92341         (getusershell, setusershell, endusershell, readname, main):
92342         Define with prototypes.
92343
92344         * lib/group-member.c: Include group-member.h first.
92345         Include <stdlib.h> unconditionally.
92346
92347         * lib/hard-locale.c: Include hard-locale.h first.
92348         Include <stdlib.h>, <string.h> unconditionally.
92349
92350         * lib/hash.c (free, malloc): Remove decls.
92351         Include <stdlib.h> unconditionally.
92352
92353         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92354         (getenv): Do not declare.
92355
92356         * lib/idcache.c: Include <string.h> unconditionally.
92357
92358         * lib/long-options.c: Include long-options.h first, to test interface.
92359         Include <stdlib.h> unconditionally.
92360
92361         * lib/makepath.c: Include makepath.h first, to test interface.
92362         Include <stdlib.h> and <string.h> unconditionally.
92363
92364         * lib/linebuffer.c: Include <stdlib.h>.
92365         (free): Remove decl.
92366
92367         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92368         stddef.h. rpl_malloc returns void *, not char *.
92369         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92370         prototype.
92371
92372         * lib/md5.h: Include <limits.h> unconditionally.
92373         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92374         (__P): Remove; all uses removed.
92375         * lib/md5.c: Include "md5.h" first.
92376         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92377         md5_buffer, md5_process_bytes, md5_process_block):
92378         Define with prototypes.
92379         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92380         * lib/sha.c: Include "sha.h" first.
92381         Include <stdlib.h>, <string.h> unconditionally.
92382
92383         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92384         * lib/memcmp.c (__ptr_t): Likewise.
92385         * lib/memrchr.c (__ptr_t): Likewise.
92386         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92387         Include <string.h> unconditionally.
92388         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92389         * lib/memchr.c: Include <stdlib.h> unconditionally.
92390         * lib/memchr.c (LONG_MAX): Remove.
92391         * lib/memrchr.c (LONG_MAX): Likewise.
92392         * lib/memchr.c (__memchr): Define via a prototype.
92393         * lib/memrchr.c (__memrchr): Likewise.
92394         * lib/memcmp.c (__P): Remove, and remove all uses.
92395         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92396         Remove forward decls; no longer needed.
92397         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92398         Use types required by C89 in prototype.
92399
92400         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92401         * lib/savedir.c: Likewise.
92402         * lib/mkdir.c (free): Remove decl.
92403         * lib/rmdir.c (rmdir): Define with a prototype.
92404         * lib/savedir.c: Include savedir.h first, to test interface.
92405
92406         * lib/mktime.c (STDC_HEADERS): Remove.
92407         Include <stdlib.h>, <string.h> unconditionally.
92408
92409         * lib/modechange.c: Include <stdlib.h> unconditionally.
92410         (malloc): Remove decl.
92411
92412         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92413         (free): Remove decl.
92414
92415         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92416         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92417         (This type really should be intptr_t, but that's a C99ism.)
92418         (_obstack_memcpy): Remove: all uses changed to memcpy.
92419         Include <string.h> unconditionally.
92420         (struct obstack): Assume __STDC__ for types of members
92421         chunkfun, freefun, extra_arg.
92422         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92423         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92424         obstack_begin, obstack_specify_allocation,
92425         obstack_specify_allocation_with_arg, obstack_chunkfun,
92426         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92427         Remove unprototyped decls and the macros that use them.
92428         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92429         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92430         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92431         (defined __STDC__ && __STDC__)]:
92432         Remove nonprototyped code.
92433         Include <stdlib.h> unconditionally.
92434         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92435         _obstack_allocated_p, _obstack_free, obstack_free,
92436         _obstack_memory_used, print_and_abort):
92437         Define using prototypes.
92438         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92439         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92440         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92441         obstack_next_free, obstack_object_size, obstack_room) [0]:
92442         Remove unused, unprototyped code.
92443
92444         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92445
92446         * lib/physmem.c (physmem_total, physmem_available, main): Define
92447         with prototypes.
92448
92449         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92450         (main): Define with a prototype.
92451
92452         * lib/posixver.c (getenv): Remove decl.
92453
92454         * lib/putenv.c (malloc): Returns void *, not char *.
92455         Include <string.h> unconditionally.
92456         (strchr, memcpy, NULL): Do not define.
92457
92458         * lib/readtokens.c: Include readtokens.h first, to test interface.
92459         Include <stdlib.h>, <string.h> unconditionally.
92460         (init_tokenbuffer): Define with a prototype.
92461
92462         * lib/regex.c (PARAMS): Remove.  All uses removed.
92463         All uses of _RE_ARGS removed, too.
92464         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92465         unconditionally.
92466         (bzero): Assume memset exists.
92467         (memcmp, memcpy, NULL): Remove.
92468         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92469         char, or assignments to local vars of type signed char.
92470         (init_syntax_once, PREFIX(extract_number_and_incr),
92471         PREFIX(print_partial_compiled_pattern),
92472         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92473         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92474         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92475         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92476         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92477         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92478         wcs_compile_range, byte_compile_range, truncate_wchar,
92479         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92480         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92481         count_mbs_length, wcs_re_match_2_internal,
92482         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92483         PREFIX(alt_match_null_string_p),
92484         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92485         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92486         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92487         now-unnecessary declaration, if any.
92488         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92489         regcomp, regexec):
92490         Remove now-unnecessary casts among pointer types.
92491         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92492
92493         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92494         (free): Remove decl.
92495
92496         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92497
92498         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92499         (free): Remove decl.
92500
92501         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92502         * lib/xgetcwd.c: Likewise.
92503
92504         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92505         (free): Remove decl.
92506
92507         * lib/strchrnul.c (strchrnul): Define with a prototype.
92508         Fix bug: c_in was not converted to char before searching.
92509
92510         The following changes are not K&R related:
92511
92512         * lib/group-member.h: Include <sys/types.h>, so that this file is
92513         self-contained.
92514         * lib/makepath.h: Likewise.
92515
92516         * lib/getusershell.c (readname, default_index, line_size, readname):
92517         Use size_t, not int, for sizes.
92518         (readname): If the size overflows, report an error instead of
92519         looping forever.
92520
92521 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92522
92523         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92524         libc.
92525
92526 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92527
92528         * README: New section: portability guidelines.
92529
92530 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92531
92532         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92533         C89 spec.
92534
92535 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92536
92537         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92538
92539 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92540
92541         Assume C89 or better; remove K&R cruft.
92542         A few of these changes were first proposed by Derek Robert Price
92543         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92544
92545         * lib/addext.c: Include <string.h> unconditionally.
92546         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92547         Don't declare getenv or malloc.
92548
92549         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92550         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92551         (NULL): Remove.
92552         (find_stack_direction, alloca): Use prototypes.
92553
92554         * lib/atexit.c (atexit): Define using a prototype.
92555
92556         * lib/basename.c, dirname.c, stripslash.c:
92557         Include <string.h> unconditionally.
92558
92559         * lib/bcopy.c: Include <stddef.h>.
92560         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92561
92562         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92563
92564         * lib/error.h (error, error_at_line, error_print_progname)
92565         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92566         * lib/error.c: Include error.h first, to check interface.
92567         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92568         (VA_START): Remove; all uses changeed to va_start.
92569         (exit, strerror): Remove decls.
92570         (error_print_progname): Prototype uncondionally.
92571         Don't include <errno.h>; no longer needed.
92572         (private_strerror): Remove.
92573         (error_tail): Always define.
92574         (error, error_at_line): Assume C89 or better; always use prototypes.
92575         * lib/fatal.c: Include "fatal.h" first, to test interface.
92576         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92577         (VA_START): Remove; all uses changed to va_start.
92578         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92579         this case.
92580         (exit): Remove decl.
92581         (fatal): Prototype unconditionally.  Assume va_start works.
92582         Abort at end, to pacify gcc.
92583
92584         * lib/euidaccess.c (main): Define with a prototype.
92585
92586         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92587
92588         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92589
92590         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92591         prototypes.
92592         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92593         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92594         (getenv): Remove decl.
92595         (fnmatch): Define using a prototype.
92596         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92597         (FCT): Define using a prototype.
92598
92599         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92600
92601         * lib/gethostname.c: Include <stddef.h>.
92602         (gethostname): Define with prototype.  Length is size_t, not int.
92603
92604 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92605
92606         Assume C89 or better; remove K&R cruft.
92607         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92608         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92609         string.h, getenv, malloc.
92610         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92611         headers.
92612         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92613         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92614         do not check for strerror.
92615         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92616         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92617         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92618         do not check for doprnt or vprintf.
92619         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92620         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92621
92622 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92625         getversion.c should have been removed then, but was accidentally
92626         preserved.
92627
92628         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92629         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92630
92631 2003-09-08  Karl Berry  <karl@gnu.org>
92632
92633         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92634                 config, forget about prep.
92635
92636         * config/depcomp, missing: update from automake.
92637
92638 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92639
92640         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92641         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92642
92643 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92644
92645         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92646         copy_tm_result.  Bug reported by Simon Josefsson in
92647         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92648
92649 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92650
92651         * m4/time_r.m4: New file.
92652         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92654         is. Check for timegm declaration.
92655         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92656         Do not check for gmtime_r.
92657         Replace mktime if __mktime_internal does not exist and if mktime
92658         hasn't been replaced already.
92659
92660 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92661
92662         * lib/time_r.c, lib/time_r.h: New files.
92663
92664         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92665         __localtime_r.
92666         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92667         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92668
92669         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92670         __gmtime_r.
92671         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92672         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92673         Include <time_r.h>.
92674
92675         * lib/timegm.c: Switch to glibc implementation, with the following
92676         changes:
92677         [defined HAVE_CONFIG_H]: Include <config.h>.
92678         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92679         (__mktime_internal) [!defined _LIBC]: New decl.
92680         (__gmtime_r) [!defined _LIBC]: New macro and function.
92681         (timegm): Use a prototype, since gnulib assumes C89.
92682         Do not bother declaring tmp to be const, as it's not really usefu.
92683         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92684         (timegm): Declare only if HAVE_DECL_TIMEGM.
92685
92686 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92687
92688         * MODULES.html.sh (func_all_modules): Add time_r.
92689         * modules/time_r: New file.
92690         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92691         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92692
92693 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92694
92695         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92696         Bug reported by Lute Kamstra in
92697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92698
92699         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92700         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92701         course with correspondingly smaller numbers for tomorrow and
92702         yesterday.  From Tadayoshi Funaba.  Originally installed into
92703         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92704         coreutils merge?).
92705
92706 2003-08-31  Simon Josefsson  <jas@extundo.com>
92707
92708         * modules/timegm: New file.
92709         * MODULES.html.sh (func_all_modules): Add timegm.
92710
92711 2003-08-31  Simon Josefsson  <jas@extundo.com>
92712
92713         * m4/timegm.m4: New file.
92714
92715 2003-08-31  Simon Josefsson  <jas@extundo.com>
92716
92717         * lib/timegm.h: New file.
92718         * lib/timegm.c: New file.  Based on
92719         wget-1.8.2/src/http.c:mktime_from_utc.
92720
92721 2003-08-31  Karl Berry  <karl@gnu.org>
92722
92723         * lib/argp.h: update from libc.
92724
92725 2003-08-28  Bruno Haible  <bruno@clisp.org>
92726
92727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92728         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92729         followed by '#define fnmatch fnmatch_posix' gives an error.
92730
92731 2003-08-28  Bruno Haible  <bruno@clisp.org>
92732
92733         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92734         warning on QNX, which defines O_BINARY to 000000.
92735
92736 2003-08-27  Jim Meyering  <jim@meyering.net>
92737
92738         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92739         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92740         would fail after 32.  Reported by Danny Levinson.  Details here:
92741         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92742
92743 2003-08-24  Bruno Haible  <bruno@clisp.org>
92744
92745         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92746         MSVC7 <stdio.h> is included later.
92747
92748 2003-08-22  Simon Josefsson  <jas@extundo.com>
92749
92750         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92751
92752 2003-08-20  Karl Berry  <karl@gnu.org>
92753
92754         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92755
92756 2003-08-20  Bruno Haible  <bruno@clisp.org>
92757
92758         * modules/progname: New file.
92759         * MODULES.html.sh (func_all_modules): Add progname.
92760
92761 2003-08-20  Bruno Haible  <bruno@clisp.org>
92762
92763         * lib/progname.h: New file, from GNU gettext.
92764         * lib/progname.c: New file, from GNU gettext.
92765         * lib/progreloc.c: New file, from GNU gettext.
92766
92767 2003-08-19  Jim Meyering  <jim@meyering.net>
92768
92769         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92770         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92771
92772 2003-08-19  Bruno Haible  <bruno@clisp.org>
92773
92774         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92775         more.
92776
92777 2003-08-19  Bruno Haible  <bruno@clisp.org>
92778
92779         * lib/xstrdup.c: Assume <string.h> exists.
92780
92781 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92782
92783         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92784         in makefile rules.
92785
92786 2003-08-18  Jim Meyering  <jim@meyering.net>
92787
92788         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92789         * m4/lib-ld.m4: Likewise.
92790
92791 2003-08-18  Jim Meyering  <jim@meyering.net>
92792
92793         * lib/setenv.h: Indent nested cpp directive.
92794         * lib/vasnprintf.c: Remove trailing blanks.
92795
92796 2003-08-17  Simon Josefsson  <jas@extundo.com>
92797
92798         * modules/xstrndup: New file.
92799         * MODULES.html.sh (func_all_modules): Add xstrndup.
92800
92801 2003-08-17  Simon Josefsson  <jas@extundo.com>
92802
92803         * modules/argp: Fix autoconf macro name. Add more dependencies.
92804
92805 2003-08-17  Simon Josefsson  <jas@extundo.com>
92806
92807         * m4/xstrndup.m4: New file.
92808
92809 2003-08-17  Simon Josefsson  <jas@extundo.com>
92810
92811         * m4/argp.m4: New file.
92812
92813 2003-08-17  Simon Josefsson  <jas@extundo.com>
92814             Bruno Haible  <bruno@clisp.org>
92815
92816         * lib/xstrndup.h: New file.
92817         * lib/xstrndup.c: New file.
92818
92819 2003-08-17  Bruno Haible  <bruno@clisp.org>
92820
92821         * modules/strndup (Files, Include): Add lib/strndup.h.
92822
92823 2003-08-17  Bruno Haible  <bruno@clisp.org>
92824
92825         * modules/euidaccess (Files): Add lib/euidaccess.h.
92826
92827 2003-08-17  Bruno Haible  <bruno@clisp.org>
92828
92829         * lib/strndup.h: New file.
92830
92831 2003-08-17  Bruno Haible  <bruno@clisp.org>
92832
92833         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92834         like AC_GNU_SOURCE.
92835         * modules/extensions (configure.ac): Comment out the invocation of
92836         gl_USE_SYSTEM_EXTENSIONS.
92837
92838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92839
92840         Merges from coreutils, etc.
92841         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92842         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92843         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92844         fixing a typo.
92845         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92846         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92847
92848 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92849
92850         Document merge from coreutils.
92851         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92852         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92853         * modules/utime: Add m4/utimes-null.m4.
92854
92855 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92856
92857         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92858         space, undoing this 2003-08-12 change:
92859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92860
92861 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92862
92863         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92864         strtoul.c from libc, undoing this 2003-08-12 change:
92865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92866
92867 2003-08-16  Jim Meyering  <jim@meyering.net>
92868
92869         Merges from coreutils.
92870         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92871         prefix.  Adjust cache variables similarly.  Create 500 rather than
92872         just 300 files, to exercise bug on Darwin6.5, too.
92873         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92874         $missing_dir.
92875         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92876         AM_SYS_POSIX_TERMIOS.
92877         Reported by mkc@mathdogs.com.
92878         Also change use of $am_cv_sys_posix_termios
92879         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92880         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92881         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92882         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92883         in /proc/mounts until it finds one with matching device number.  This
92884         is unnecessary when the FILE argument *is* a mount point.  No stat call
92885         is necessary in that case.  So, disable the statvfs-testing code on
92886         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92887         as RedHat bug# 84846.
92888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92889         to 1MB, so as not to render systems with no stack size limit (e.g.,
92890         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92891         Include <unistd.h>.  On some systems,
92892         it is required for the definition of _SC_PAGESIZE.
92893
92894 2003-08-16  Jim Meyering  <jim@meyering.net>
92895
92896         Merge from coreutils.
92897         * lib/xstrtoimax.c: #else #if -> #elif.
92898         * lib/xstrtoumax.c: Likewise.
92899
92900 2003-08-16  Jim Meyering  <jim@meyering.net>
92901
92902         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92903         * m4/utimes.m4: Removed.
92904         * m4/utimes-null.m4: Renamed from utimes.m4.
92905
92906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92907         to 1MB, so as not to render systems with no stack size limit (e.g.,
92908         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92909         Include <unistd.h>.  On some systems,
92910         it is required for the definition of _SC_PAGESIZE.
92911
92912 2003-08-16  Jim Meyering  <jim@meyering.net>
92913         and Paul Eggert  <eggert@cs.ucla.edu>
92914
92915         Merges from coreutils, etc.
92916
92917         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92918         using the latest version from cvs.  This avoids problems with #line
92919         directives using a vendor (Sun) compiler.
92920         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92921         Don't set GETGROUPS_LIB here; now it's
92922         done via getgroups.m4's wrapper function.
92923         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92924         rather than just in sh-util/configure.in, so that the
92925         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92926         same.
92927         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92928         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92929         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92930         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92931         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92932         Remove code that is now done by the newly-required macros.
92933         Append $(EXEEXT) to DF_PROG.
92934         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92935         Do not invoke or require the following here,
92936         since prereq.m4 or some gnulib .m4 now does this for us:
92937         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92938         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92939         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92940         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92941         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92942         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92943         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92944         AC_FUNC_OBSTACK.
92945         Do not replace the following functions, as this is now the job
92946         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92947         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92948         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92949         atexit getpass, strdup, getpagesize.
92950         Replace 'raise'.
92951         Do not check for the following functions, as this is now the job
92952         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92953         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92954         setregid.
92955         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92956         Check for sys/sysctl.h.
92957         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92959         of checking for ssize_t ourselves.
92960
92961         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92962         Require every macro that gnulib/modules/* suggests for us.
92963         (jm_PREREQ_ADDEXT): New macro.
92964         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92965         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92966
92967         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92968         (gl_PHYSMEM): Use it.
92969         Also check for `table' function.
92970         Check for new headers and functions.
92971         Add check for sys/sysmp.h.
92972         With suggestions from Kaveh Ghazi.
92973         Ignore headers that are present but cannot be compiled.  This
92974         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92975         C 5.4.
92976
92977 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92978
92979         Document merge from coreutils.
92980         * modules/userspec: Depend on posixver.
92981         * modules/strftime: Depend on tzset.
92982
92983 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92984
92985         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92986         rather than tab, after '#' in shell-script copyright notices.
92987         Suggested by Bruno Haible.
92988
92989 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92990
92991         * config/srclist-update: Use three spaces, rather than tab, after '#'
92992         in shell-script copyright notices.  Suggested by Bruno Haible.
92993         Remove unnecessary parenthesization in regular expression.
92994
92995 2003-08-15  Jim Meyering  <jim@meyering.net>
92996
92997         Merge from coreutils.
92998         * lib/xgethostname.c: Include <stdlib.h>.
92999         (xghostname): Don't exit for anything other than memory-related
93000         failure; just return NULL.
93001         * lib/userspec.c: Include "posixver.h".
93002         (parse_user_spec): Accept `.' as a separator only
93003         in pre-POSIX-200112 mode.
93004         * lib/strtoimax.c: Use #elif rather than #else #if.
93005         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93006         Remove function, now that we can rely on a working tzset function.
93007         [!_LIBC]: Ensure that the required autoconf test has been run.
93008         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93009         Use underlying_strftime for %r.
93010         * lib/sha.c: Merge in some clean-up and optimization changes from
93011         glibc.
93012         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93013         Ensure that it is a multiple of 64.
93014         Rearrange loop exit tests so as to avoid performing an
93015         additional fread after encountering an error or EOF.
93016         * lib/realloc.c: Update copyright date.
93017
93018 2003-08-15  Jim Meyering  <jim@meyering.net>
93019         and Paul Eggert  <eggert@twinsun.com>
93020
93021         Merge from coreutils.
93022         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93023         member but strut utmpx does not.  Needed for AIX 4.3.3.
93024         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93025
93026 2003-08-15  Jim Meyering  <jim@meyering.net>
93027         and Paul Eggert  <eggert@cs.ucla.edu>
93028
93029         Merges from coreutils, etc.
93030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93031         Require gl_FUNC_TZSET_CLOBBER.
93032         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93033         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93034         members.
93035
93036 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93037
93038         Help the merge from coreutils.
93039         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93040         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93041         * m4/tzset.m4: Use it too.
93042
93043 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93044
93045         * modules/tzset: New file.
93046
93047 2003-08-14  Jim Meyering  <jim@meyering.net>
93048
93049         Merges from coreutils.
93050         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93051         variable names, rather than @FNMATCH_H@.
93052         * modules/alloca: Likewise for $(ALLOCA_H).
93053
93054         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93055         the three copies of the literal target, `fnmatch.h'.
93056         * modules/alloca (alloca.h): Likewise.
93057
93058 2003-08-14  Jim Meyering  <jim@meyering.net>
93059
93060         Merge from coreutils.
93061         * m4/tzset.m4: New file.
93062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93063         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93064         otherwise, AIX 5.1 systems would end up using the latter.
93065         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93066         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93067         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93068         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93069
93070 2003-08-14  Jim Meyering  <jim@meyering.net>
93071
93072         Merge from coreutils.
93073         * lib/obstack.h: Whitespace changes.
93074         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93075         and xcalloc return values.
93076         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93077         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93078         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93079         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93080         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93081         error from mntctl.
93082         Use mntctl's return value to drive the entry-processing loop, since
93083         we can't rely on the value of the vmt_length member in the last
93084         entry.  On some systems doing so could result in exhausting
93085         virtual memory.  Based in part on a patch from Mike Jetzer.
93086
93087 2003-08-14  Jim Meyering  <jim@meyering.net>
93088         and Paul Eggert  <eggert@twinsun.com>
93089
93090         Merges from coreutils, plus other fixes.
93091         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93092         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93093         for credits and details.  Thanks to Kaveh Ghazi for helping
93094         to keep these files in sync.
93095         (ARRAY_SIZE): Define it.
93096         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93097         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93098         (memcasecmp): Don't assume size_t fits in unsigned int.
93099         Remove casts and duplicate code.
93100         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93101         (memcpy): Remove definition.
93102         Merge in some clean-up and optimization changes from glibc.
93103         [BLOCKSIZE]: Move definition to top of file.
93104         Ensure that it is a multiple of 64.
93105         Rearrange loop exit tests so as to avoid performing an
93106         additional fread after encountering an error or EOF.
93107         * lib/md5.h (md5_uintptr): Define.
93108         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93109         return to the initial working directory.  Preserve errno
93110         for caller.
93111         * lib/idcache.c: Include "xalloc.h".
93112         (xmalloc, xrealloc): Remove decls.
93113         (getuser): Remove casts no longer required in C89.
93114         * lib/human.c: Include stdio.h, for sprintf.
93115         * lib/group-member.c: Include "xalloc.h".
93116         (xmalloc, xrealloc): Remove decls.
93117         (get_group_info): Remove casts no longer required in C89.
93118         * lib/getusershell.c (readname): Remove casts no longer required in
93119         C89.
93120         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93121         * lib/getline.c: Whitespace fix, from coreutils.
93122
93123 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93124
93125         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93126         Check for isascii.
93127
93128         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93129         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93130         Undo previous (whitespace-only) change.
93131
93132 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93133
93134         * lib/exclude.c: Include <ctype.h>
93135         (IN_CTYPE_DOMAIN): New macro.
93136         (is_space): New fn.
93137         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93138         and empty lines.
93139
93140         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93141         Undo previous (whitespace-only) change.
93142
93143 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93144
93145         * config/srclist-update: Change update back to the old behavior,
93146         leaving whitespace alone.  Use one 'sed' command rather than a
93147         pipeline.
93148         (fixlicense): Now a variable, not a function.
93149         (remove_trailing_blanks): Remove.
93150         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93151         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93152         Undo previous (whitespace-only) change.
93153
93154 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93155
93156         Merge from coreutils.
93157         * modules/euidaccess: Add lib_SOURCES, include for new
93158         file euidaccess.h
93159
93160 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93161
93162         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93163         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93164         Normalize leading white space and remove trailing white space.
93165
93166         Merge from coreutils
93167         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93168
93169         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93170         0.12.1.  These files are now being upgraded automatically by
93171         ../config/srclist-update.
93172
93173 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93174
93175         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93176         Normalize leading white space and remove trailing white space.
93177         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93178         notice, as per ../config/srclist-update.
93179
93180         Merge from coreutils.
93181         * lib/euidaccess.h: New file.
93182         * lib/euidaccess.c: Include it.
93183         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93184         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93185         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93186
93187 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93188
93189         * config/srclist-update: Add copyright notice.
93190         (remove_id_lines, remove_trailing_blanks): New constants.
93191         (fixfile): Use them to normalize spacing a bit in copied files.
93192         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93193         Normalize leading white space and remove trailing white space.
93194
93195         * config/texinfo.tex: Sync with texinfo.
93196
93197         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93198         strtoul.c from libc, to merge coreutils whitespace changes.
93199
93200         * config/srclist.txt: Get the following m4 files from gettext:
93201         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93202         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93203         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93204         wint_t.m4.
93205
93206 2003-08-12  Karl Berry  <karl@gnu.org>
93207
93208         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93209         been made.
93210
93211 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93212
93213         * modules/gnu-source, m4/gnu-source.m4:
93214         Remove; we're assuming Autoconf 2.54 or later now.
93215         Suggested by Bruno Haible.
93216         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93217
93218 2003-08-11  Bruno Haible  <bruno@clisp.org>
93219
93220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93221
93222 2003-08-11  Bruno Haible  <bruno@clisp.org>
93223
93224         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93225         (vasnprintf): Use it instead of wcslen.
93226
93227 2003-08-11  Bruno Haible  <bruno@clisp.org>
93228
93229         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93230         value to ensure that _Bool promotes to int. Use #define for _Bool when
93231         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93232
93233 2003-08-10  Karl Berry  <karl@gnu.org>
93234
93235         * lib/regex.h: update from libc (whitespace fix).
93236
93237 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93238
93239         Merge some files from coreutils.  These changes were
93240         originally made by Jim Meyering.
93241         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93242         many older Unixes require this.
93243         * lib/alloca.c (alloca): Remove cast to argument of free;
93244         no longer needed in C89.
93245         * lib/alloca_.h, regex.h: Fix white space to match
93246         what GNU indent does.
93247
93248 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93249
93250         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93251         apparently Emacs's Unicode mode got confused before my 2003-08-05
93252         checkin.
93253
93254 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93255
93256         * m4/extensions.m4: New file.
93257         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93258         Require gl_USE_SYSTEM_EXTENSIONS.
93259         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93260         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93261
93262 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93263
93264         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93265         * modules/extensions, modules/gnu-source: New files.
93266         * modules/timespec, modules/unlocked-io: Depend on extensions.
93267
93268 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93269
93270         * modules/restrict: New file.
93271         * MODULES.html.sh (func_all_modules): Add restrict.
93272         * modules/regex: Depend on restrict.
93273
93274 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93275
93276         * m4/restrict.m4: New file.
93277         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93278
93279 2003-08-07  Bruno Haible  <bruno@clisp.org>
93280
93281         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93282         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93283
93284 2003-08-07  Bruno Haible  <bruno@clisp.org>
93285
93286         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93287         makes the module 'getndelim2' compatible with the module 'getline'.
93288
93289 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93290
93291         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93292         byte with "\201" to avoid glitches when editing that source file
93293         with multi-gnome-terminal.
93294
93295 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93296
93297         * lib/bumpalloc.h: Remove.
93298
93299 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93300
93301         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93302         * modules/bumpalloc: Remove.
93303
93304 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93305
93306         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93307         GNU coding style.
93308
93309         Merge from coreutils.
93310         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93311         1. From glibc.
93312         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93313         from Karl Berry, implemented by Jim Meyering.
93314         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93315         from Dmitry V. Levin.
93316         Remove anachronistic cast of xrealloc.
93317         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93318         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93319         type. Otherwise, it wouldn't compile with at least /bin/cc on
93320         ymp-cray-unicos9.0.2.X.
93321         Combine two mostly-identical uses of alloca into one.
93322         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93323
93324 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93325
93326         [From Emacs.]
93327
93328         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93329         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93330         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93331         obsolete NLIST_NAME_UNION.
93332         [__GNU__]: Undef BSD and FSCALE.
93333         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93334
93335 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93336
93337         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93338         an enum type, so that it's guaranteed to promote to int.  See:
93339         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93340
93341 2003-08-03  Karl Berry  <karl@gnu.org>
93342
93343         * config/depcomp: update from automake.
93344
93345 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93346
93347         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93348         (strerror): Don't assume that a printable int fits in 14 bytes.
93349
93350 2003-07-31  Bruno Haible  <bruno@clisp.org>
93351
93352         * modules/getpass-gnu: New file.
93353         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93354
93355 2003-07-31  Bruno Haible  <bruno@clisp.org>
93356
93357         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93358
93359 2003-07-24  Karl Berry  <karl@gnu.org>
93360
93361         * config/missing: update from automake.
93362
93363 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93364             Bruno Haible  <bruno@clisp.org>
93365
93366         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93367         * lib/getline.c (getline, getdelim): Likewise.
93368         Remove _GNU_SOURCE define; now it's defined in config.h through
93369         m4/getline.m4.
93370
93371 2003-07-23  Karl Berry  <karl@gnu.org>
93372
93373         * config/config.sub: update from prep.
93374
93375 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93376
93377         * modules/xalloc (Depends-on): Add exitfail.
93378         * modules/xmemcoll: Likewise.
93379
93380 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93381
93382         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93383         over-parenthesization in macros.
93384
93385         Sync with coreutils.
93386
93387         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93388         required by C99.
93389
93390         Use `exit_failure' for xalloc and xmemcoll instead of their own
93391         private exit-failure variables.
93392         * lib/xalloc.h (xalloc_exit_failure): Remove.
93393         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93394         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93395         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93396         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93397         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93398
93399 2003-07-20  Jim Meyering  <jim@meyering.net>
93400
93401         * modules/closeout (Depends-on): Add exitfail.
93402         Suggestion from Bruno Haible.
93403
93404 2003-07-19  Karl Berry  <karl@gnu.org>
93405
93406         * config/config.sub: update from prep.
93407
93408 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93409
93410         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93411         Remove.
93412         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93413         to test that it can stand by itself.  Include "exitfail.h".
93414         Clients should set exit_failure instead.
93415         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93416
93417 2003-07-18  Bruno Haible  <bruno@clisp.org>
93418
93419         * modules/getndelim2: New file.
93420         * modules/getline: Share files with module getndelim2.
93421         * modules/getnline: Depend on getndelim2 instead of sharing files with
93422         it. Add getnline.c to lib_SOURCES.
93423         * MODULES.html.sh (func_all_modules): Add getndelim2.
93424
93425 2003-07-18  Bruno Haible  <bruno@clisp.org>
93426
93427         * m4/getndelim2.m4: New file.
93428         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93429         invoke gl_PREREQ_GETNDELIM2.
93430         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93431         gl_PREREQ_GETNDELIM2.
93432         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93433         gl_GETNDELIM2.
93434
93435 2003-07-18  Bruno Haible  <bruno@clisp.org>
93436
93437         * lib/getndelim2.h: New file.
93438         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93439         getndelim2.h.
93440         (getndelim2): Make non-static. Change return type to ssize_t.
93441         * lib/getline.h: Change argument names.
93442         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93443         * lib/getnline.c: Include getndelim2.h.
93444
93445 2003-07-18  Andreas Schwab  <schwab@suse.de>
93446
93447         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93448
93449 2003-07-17  Karl Berry  <karl@gnu.org>
93450
93451         * config/config.sub: update from prep.
93452
93453 2003-07-17  Bruno Haible  <bruno@clisp.org>
93454
93455         * modules/getnline: New file.
93456         * modules/getline: Add lib/getndelim2.c to source file list.
93457         * MODULES.html.sh (func_all_modules): Add getnline.
93458
93459 2003-07-17  Bruno Haible  <bruno@clisp.org>
93460
93461         * m4/getnline.m4: New file.
93462
93463 2003-07-17  Bruno Haible  <bruno@clisp.org>
93464
93465         * m4/Makefile.am.in: Remove file.
93466         * m4/Makefile.am: Remove file.
93467         * m4/Makefile.in: Remove file.
93468
93469 2003-07-17  Bruno Haible  <bruno@clisp.org>
93470
93471         * lib/getnline.h: New file.
93472         * lib/getnline.c: New file.
93473         * lib/getndelim2.c: New file, extracted from getline.c.
93474         (getndelim2): Renamed from getdelim2, with added nmax argument.
93475         * lib/getline.c: Include getndelim2.c.
93476         (getdelim2): Moved out to getndelim2.c.
93477         (getline, getdelim): Update.
93478
93479 2003-07-17  Bruno Haible  <bruno@clisp.org>
93480
93481         * lib/Makefile.am: Remove file.
93482         * lib/Makefile.in: Remove file.
93483
93484 2003-07-17  Bruno Haible  <bruno@clisp.org>
93485
93486         * configure.in: Remove file.
93487         * Makefile.in: Remove file.
93488
93489 2003-07-17  Bruno Haible  <bruno@clisp.org>
93490
93491         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93492
93493 2003-07-16  Karl Berry  <karl@gnu.org>
93494
93495         * config/srclist-update: was running fixlicense twice, which caused
93496                 texinfo.tex to be nullified for some reason.  Simplify,
93497                 $gplsrc is no longer needed as far as I can see?
93498
93499 2003-07-16  Jim Meyering  <jim@meyering.net>
93500
93501         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93502
93503 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93504
93505         * config/srclist.txt: Get the following files from gettext-runtime/intl
93506         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93507         ref-del.sin.  From Bruno Haible.
93508         * config/srclist-update (fixfile): Change grep pattern again, since the
93509         previous fix didn't work (there was another trailing $).  Use
93510         '[$]' to escape the $s.
93511
93512 2003-07-15  Karl Berry  <karl@gnu.org>
93513
93514         * lib/vasnprintf.c: update from gettext.
93515
93516 2003-07-15  Karl Berry  <karl@gnu.org>
93517
93518         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93519         gets expanded when surrounded by '$'.
93520
93521 2003-07-15  Jim Meyering  <jim@meyering.net>
93522
93523         * modules/save-cwd: Don't depend on error.  From Derek Price.
93524
93525 2003-07-15  Jim Meyering  <jim@meyering.net>
93526
93527         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93528
93529 2003-07-14  Simon Josefsson  <jas@extundo.com>
93530
93531         * modules/mempcpy: New file.
93532         * MODULES.html.sh (func_all_modules): Add mempcpy.
93533
93534 2003-07-14  Simon Josefsson  <jas@extundo.com>
93535
93536         * m4/mempcpy.m4: New file.
93537
93538 2003-07-14  Simon Josefsson  <jas@extundo.com>
93539
93540         * lib/mempcpy.h: New file.
93541         * lib/mempcpy.c: New file.
93542
93543 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93544
93545         * modules/getdate, modules/posixtm: Depend on mktime.
93546
93547 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93548
93549         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93550         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93551         unicodeio.c, unicodeio.h, unlocked-io.h:
93552         Switch from LGPL to GPL.
93553
93554 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93555
93556         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93557         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93558         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93559         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93560         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93561         updated automatically by ../config/srclist-update.  This changes
93562         their license from LPGL to GPL.
93563
93564 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93565
93566         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93567         assumed to refer to the root of the most recent stable gettext version.
93568         * config/srclistvars.sh: Add defaults for eggert.
93569         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93570         Match "This program" as well as "The program".  This is needed
93571         for gettext.
93572
93573 2003-07-14  Jim Meyering  <jim@meyering.net>
93574
93575         Don't emit diagnostics.  Let callers do that.
93576         * lib/save-cwd.c: Don't include "error.h".
93577         (save_cwd): Don't call error.  Ensure that errno is valid
93578         when returning nonzero.
93579
93580         * lib/save-cwd.h (restore_cwd): Update prototype.
93581         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93582         Simplify.  Don't call error upon failure.  Let callers do that.
93583         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93584         when auditing is enabled.  But don't bother updating the #if.
93585
93586 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93587
93588         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93589         it breaks C++ compilation.
93590         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93591
93592 2003-07-10  Simon Josefsson  <jas@extundo.com>
93593
93594         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93595
93596 2003-07-10  Jim Meyering  <jim@meyering.net>
93597
93598         * m4/clock_time.m4: Remove trailing blank.
93599         * m4/intmax_t.m4: Likewise.
93600
93601 2003-07-10  Jim Meyering  <jim@meyering.net>
93602
93603         * lib/vasnprintf.c: Remove trailing blanks.
93604         Make cpp indentation consistent.
93605
93606 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93607
93608         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93609         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93610         Switch from LGPL to GPL.
93611
93612 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93613
93614         * config/srclist.txt: Sort sublists.  Add
93615         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93616         that differ from gnulib for one reason or another; we'd like this list
93617         to be smaller but for now let's document what we have.
93618
93619 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93620
93621         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93622         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93623         and sweeter "eval x=$x".
93624         * config/srclist.txt: Get lib/argp* from glibc.
93625
93626 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93627
93628         * lib/mktime.c: Fix some boundary cases and remove need for floating
93629         point.
93630
93631         Issue a compile-time diagnostic if time_t is floating point, or if
93632         two's complement arithmetic is not in effect, or if arithmetic
93633         right shift does not propagate the sign.  These assumptions were
93634         all in the original code but they weren't checked.
93635
93636         (TIME_T_MIDPOINT, verify): New macros.
93637         (__isleap): Remove; it has integer overflow problems.
93638         (leapyear): New function, without those problems.
93639         (ydhms_tm_diff): Remove; splitting into two parts.
93640         (ydhms_diff): New function, containing the arithmetic part of
93641         the old ydhms_tm_diff function.  Issue a compile-time
93642         diagnostic if we are not using C99 integer division.
93643         Avoid casts when possible.
93644         (guess_time_tm): New function, containing the checking part of
93645         the old ydhms_tm_diff function.  Return the new value, rather than
93646         the difference between it and the old.  Accept a new argument T
93647         so that *T specifies the old value.  Check for overflow in the result.
93648
93649         (__mktime_internal): Use a time_t offset, not a long int offset.
93650         This undoes the 2003-06-04 change, which is no longer needed now
93651         that we have better overflow checking.
93652         (localtime_offset): Likewise.
93653
93654         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93655         and long are 64-bit but int is only 32-bit.
93656         (ydhms_diff): Use long int to store year1 and yday1.
93657         Issue a compile-time diagnostic if long int is not wide enough.
93658
93659         (__mktime_internal): Use long int to store adjusted year and yday.
93660         Use plain C rather than preprocessor commands, if that doesn't
93661         affect efficiency.
93662         Check for overflow (and try to repair) after each probe
93663         rather than checking only at the very end.  This avoids some bugs
93664         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93665         does not equal GMT offset at maximum time).
93666         Use integer to check for overflow rather than floating point; this
93667         is more portable to non-IEEE hosts, and is a tad faster.
93668         When we detect that we are oscillating between two values,
93669         don't check whether tm_isdst has the requested value, since
93670         we already know the answer.  When tm_isdst has the wrong value,
93671         use a different heuristic to find the right one, based on the
93672         extreme values actually observed in practice in tz2003a,
93673         rather than the (overly optimistic) "previous 3 calendar quarters".
93674
93675         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93676         "T const" to accommodate glibc style.
93677         (check_result): Use less-confusing report format.  "long" -> "long int.
93678         (main): Likewise.
93679         Don't loop if the iteration overflows time_t.
93680         Allow a negative step in the iteration.
93681
93682 2003-07-06  Karl Berry  <karl@gnu.org>
93683
93684         * config/depcomp: update from automake.
93685         * config/config.sub: update from prep.
93686
93687 2003-07-03  Karl Berry  <karl@gnu.org>
93688
93689         * config/config.guess: update from prep.
93690
93691 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93692
93693         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93694         xreadlink.c now includes it unconditionally.
93695
93696 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93697
93698         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93699         having it depend on HAVE_SYS_TYPES_H.
93700
93701 2003-07-01  Bruno Haible  <bruno@clisp.org>
93702
93703         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93704         <sys/types.h> should be sufficient.
93705         Reported by Paul Eggert.
93706
93707 2003-06-26  Karl Berry  <karl@gnu.org>
93708
93709         * config/depcomp: update from automake.
93710
93711 2003-06-26  Bruno Haible  <bruno@clisp.org>
93712
93713         * modules/human: Depend on module stdbool.
93714
93715 2003-06-25  Bruno Haible  <bruno@clisp.org>
93716
93717         * modules/readlink: New file.
93718         * modules/xreadlink: Depend on it.
93719         * MODULES.html.sh (func_all_modules): Add readlink.
93720
93721 2003-06-25  Bruno Haible  <bruno@clisp.org>
93722
93723         * m4/readlink.m4: New file.
93724
93725 2003-06-25  Bruno Haible  <bruno@clisp.org>
93726
93727         * lib/readlink.c: New file.
93728
93729 2003-06-22  Karl Berry  <karl@gnu.org>
93730
93731         * config/srclist.txt: update mkinstalldirs from automake.
93732         * config/mkinstalldirs: update.
93733
93734 2003-06-22  Bruno Haible  <bruno@clisp.org>
93735
93736         Portability to mingw32.
93737         * m4/ssize_t.m4: New file, from GNU gettext.
93738         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93739         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93740
93741 2003-06-22  Bruno Haible  <bruno@clisp.org>
93742
93743         * modules/safe-read: Add m4/ssize_t.m4.
93744         * modules/xreadlink: Add m4/ssize_t.m4.
93745
93746 2003-06-20  Bruno Haible  <bruno@clisp.org>
93747
93748         Assume C89, so PARAMS isn't needed.
93749         * lib/unicodeio.h (PARAMS): Remove.
93750         * lib/unicodeio.c: Don't use PARAMS.
93751
93752 2003-06-18  Karl Berry  <karl@gnu.org>
93753
93754         * config/config.{guess,sub}: update from prep.
93755
93756 2003-06-18  Jim Meyering  <jim@meyering.net>
93757
93758         Merge changes from coreutils.
93759         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93760         Remove explicit declarations of xmalloc and realloc.
93761         Include xalloc.h.
93762         (read_utmp): Remove anachronistic cast of xmalloc.
93763
93764 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93765
93766         Assume C89, so PARAMS isn't needed.
93767         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93768         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93769         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93770         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93771         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93772         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93773         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93774         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93775         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93776         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93777         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93778         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93779         no longer needed. Anyway, config.h should always be included before any
93780         other file.
93781
93782 2003-06-11  Simon Josefsson  <jas@extundo.com>
93783
93784         * modules/sysexits: New file.
93785         * MODULES.html.sh (func_all_modules): Add sysexits.
93786
93787 2003-06-11  Simon Josefsson  <jas@extundo.com>
93788
93789         * lib/sysexit_.h: New file.
93790
93791 2003-06-11  Derek Price  <derek@ximbiot.com>
93792
93793         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93794         necessary.
93795
93796 2003-06-11  Bruno Haible  <bruno@clisp.org>
93797
93798         * m4/sysexits.m4: New file.
93799
93800 2003-06-10  Simon Josefsson  <jas@extundo.com>
93801
93802         * lib/argp.h: New file, from glibc.
93803         * lib/argp-ba.c: New file, from glibc.
93804         * lib/argp-eexst.c: New file, from glibc.
93805         * lib/argp-fmtstream.c: New file, from glibc.
93806         * lib/argp-fmtstream.h: New file, from glibc.
93807         * lib/argp-fs-xinl.c: New file, from glibc.
93808         * lib/argp-help.c: New file, from glibc.
93809         * lib/argp-namefrob.h: New file, from glibc.
93810         * lib/argp-parse.c: New file, from glibc.
93811         * lib/argp-pv.c: New file, from glibc.
93812         * lib/argp-pvh.c: New file, from glibc.
93813         * lib/argp-xinl.c: New file, from glibc.
93814
93815 2003-06-10  Simon Josefsson  <jas@extundo.com>
93816
93817         * modules/strchrnul: New file.
93818
93819 2003-06-10  Simon Josefsson  <jas@extundo.com>
93820
93821         * modules/argp: New file.
93822
93823 2003-06-10  Simon Josefsson  <jas@extundo.com>
93824
93825         * m4/strchrnul.m4: New file.
93826
93827 2003-06-10  Simon Josefsson  <jas@extundo.com>
93828
93829         * lib/strchrnul.h: New file.
93830         * lib/strchrnul.c: New file.
93831
93832 2003-06-10  Bruno Haible  <bruno@clisp.org>
93833
93834         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93835
93836 2003-06-07  Karl Berry  <karl@gnu.org>
93837
93838         * config/config.{guess,sub}: update from prep.
93839
93840 2003-06-07  Jim Meyering  <jim@meyering.net>
93841
93842         * modules/strtod: Use $(...) notation, not @...@ for
93843         AC_REPLACE'd variables.
93844         * modules/localcharset: Likewise.
93845
93846 2003-06-07  Jim Meyering  <jim@meyering.net>
93847
93848         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93849         in place of my name in the copyright comment.
93850         Remove definition and uses of __P.
93851
93852         From coreutils.
93853         * lib/stat.c: Don't declare xmalloc explicitly.
93854         Instead, include "xalloc.h".
93855         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93856         xrealloc, and xcalloc return values.
93857         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93858         Improve comment.
93859         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93860
93861 2003-06-07  Bruno Haible  <bruno@clisp.org>
93862
93863         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93864         avoid AC_CONFIG_LINKS.
93865         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93866         fnmatch.h, to avoid AC_CONFIG_LINKS.
93867         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93868
93869 2003-06-07  Bruno Haible  <bruno@clisp.org>
93870
93871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93872         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93873         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93874         directory.
93875         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93876         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93877         directory.
93878
93879 2003-06-06  Jim Meyering  <jim@meyering.net>
93880
93881         Merge from coreutils.
93882         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93883         Consolidate declarations and initializations of *_base* locals.
93884
93885         Merge from coreutils.
93886         This avoids a core dump on systems without GNU putenv,
93887         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93888         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93889         (unsetenv): New static function, from GNU libc.
93890         (rpl_putenv): Use it.
93891
93892         * lib/modechange.c: Remove trailing blanks.
93893
93894         Merge from coreutils.
93895         * lib/fsusage.c: Remove declaration of statfs.
93896         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93897
93898         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93899
93900 2003-06-06  Jim Meyering  <jim@meyering.net>
93901
93902         * lib/stdbool_.h: Renamed from stdbool.h.in.
93903
93904 2003-06-06  Jim Meyering  <jim@meyering.net>
93905             Bruno Haible  <bruno@clisp.org>
93906
93907         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93908         Adjust Makefile.am snippet not to redirect directly to target.
93909         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93910
93911 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93912
93913         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93914         mismatch, look in future quarters as well as past.  This fixes a
93915         bug when processing fall-backwards gaps immediately after a long
93916         period of daylight-saving time.
93917
93918         * lib/mktime.c: Assume freestanding C89 or better.
93919         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93920         (__P): Remove; not used.
93921         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93922         (mktime, not_equal_tm, print_tm, check_result,
93923         main): Use prototypes.  Use const * where appropriate.
93924         (main): Fix typo in testing code that uncovered by above changes.
93925         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93926
93927 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93928
93929         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93930         locale.h, localeconv.  This merges changes from coreutils.
93931
93932         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93933         It can be removed after the next Autoconf is released.
93934         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93935         needed.
93936
93937 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93938
93939         * lib/mktime.c: Fix Debian bug 177940
93940         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93941         (localtime_offset): Now long int, not time_t, because we want it
93942         to be guaranteed to be signed.  All uses changed.
93943         (__mktime_internal): If overflow would occur when adding offset,
93944         don't add it.
93945
93946         Merge 'human' changes from coreutils.  Rewrite to support
93947         locale-specific notations like thousands separators.
93948         * lib/human.c: Simplify authorship notice.
93949         Include human.h immediately after config.h.
93950         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93951         <limits.h>: Do not include, since human.h does.
93952         (SIZE_MAX, UINTMAX_MAX): New macros.
93953         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93954         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93955         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93956         (power_letter): Renamed from suffixes.
93957         (generate_suffix_backwards): Remove.
93958         (adjust_value): Now takes int style (because of human.h changes)
93959         and long double value (for greater precision on some platforms).
93960         (group_number): New function.
93961         (human_readable): Use it.  Use integer options, not enum.
93962         Put the options before the sizes in the arg list.
93963         Support all the new options.
93964         The old human_readable function has been removed;
93965         use inttostr.h instead.
93966         (human_readable, default_block_size, humblock):
93967         Use uintmax_t, not int, for block sizes.
93968         (human_readable_inexact, block_size_types): Remove.
93969         (block_size_opts): New constant.
93970         (human_options): Renamed from human_block_size, with new signature
93971         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93972         * lib/human.h: Add copyright and authorship notice.
93973         Include <limits.h> and <stdbool.h> unconditionally.
93974         (PARAMS): Remove.  All uses removed.
93975         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93976         (enum human_inexact_style): Remove tag; now a nameless enum.
93977         (human_floor, human_ceiling, human_round_to_even): Now have
93978         values 2, 0, 1 rather than -1, 1, 0.
93979         (human_group_digits, human_suppress_point_zero, human_autoscale,
93980         human_base_1024, human_SI, human_B): New constants.
93981         (human_readable_inexact, human_block_size): Remove.
93982         (human_readable): Size args are now uintmax_t, not int.
93983         (human_options): New decl.
93984
93985         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93986         unnecessary now that we assume C89 or better.  This change
93987         imported from coreutils.
93988
93989         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93990         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93991         in the 2003-05-30 sync from glibc.
93992
93993         .h files should stand alone, but we shouldn't include <sys/types.h>
93994         if we can get away with just <stddef.h>.
93995
93996         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93997         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93998         rather than <sys/types.h>, as we merely need size_t.
93999         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94000         to get size_t.
94001         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94002         Include <stdio.h>, to get FILE.
94003         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94004         memcasecmp.h has included <stddef.h> and all we need is size_t.
94005         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94006         our interface, instead of including <sys/types.h>
94007
94008 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94009
94010         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94011         now, as glibc mktime is buggy on non-glibc systems.
94012
94013 2003-06-03  Karl Berry  <karl@gnu.org>
94014
94015         * config/config.sub: update from prep.
94016
94017 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94018
94019         [from coreutils]
94020         Fix some minor time-related bugs with POSIX time arguments.
94021         Some valid time stamps were being rejected (notably -1, and
94022         time stamps before 1900 on 64-bit hosts).  And some invalid
94023         time stamps were being accepted, e.g. September 31.
94024
94025         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94026         that we can return (time_t) -1 successfully.
94027         * lib/posixtm.c: Likewise.
94028         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94029         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94030         (t): Remove static var.
94031         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94032         of static var.  All uses changed.
94033         (year): Do not reject years before 1900; they can occur with
94034         64-bit time_t.
94035         (posix_time_parse): Do not check for out-of-range components;
94036         that is now the caller's responsibility, since our checks were
94037         only approximations.
94038         (posixtime): Use mktime to check for out-of-range components,
94039         since it knows them exactly.
94040         If mktime returns (time_t) -1, check whether an error actually occurred
94041         by invoking localtime on -1.
94042         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94043         posixtime failures better.
94044         Improve the test data (in comments only).
94045
94046 2003-06-02  Karl Berry  <karl@gnu.org>
94047
94048         * config/mkinstalldirs (version): new variable.
94049         (--version): new option.
94050         (usage): improve message.
94051
94052 2003-05-30  Karl Berry  <karl@gnu.org>
94053
94054         * lib/mktime.c: update from libc.
94055
94056 2003-05-30  Bruno Haible  <bruno@clisp.org>
94057
94058         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94059         * config/config.rpath: Upgrade to gettext-0.12.1.
94060
94061 2003-05-30  Bruno Haible  <bruno@clisp.org>
94062
94063         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94064         * m4/nls.m4: New file, from gettext-0.12.1.
94065         * m4/po.m4: New file, from gettext-0.12.1.
94066         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94067
94068 2003-05-30  Bruno Haible  <bruno@clisp.org>
94069
94070         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94071         * lib/localcharset.h: Likewise.
94072         * lib/localcharset.c: Likewise.
94073
94074 2003-05-29  Karl Berry  <karl@gnu.org>
94075
94076         * config/config.rpath: update from gettext.
94077
94078 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94079
94080         Assume the headers required for C89 freestanding compilers.
94081         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94082         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94083         * m4/human.m4 (gl_HUMAN): Likewise.
94084         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94085         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94086         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94087         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94088         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94089         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94090
94091 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94092
94093         Assume the headers required for C89 freestanding compilers.
94094         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94095         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94096         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94097         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94098         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94099         define, since <limits.h> is guaranteed to do that.
94100         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94101         * lib/exclude.c: Include <stdbool.h> unconditionally.
94102         * lib/tempname.c: Include <stddef.h> unconditionally.
94103         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94104         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94105         <stddef.h> does that.
94106         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94107         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94108         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94109         needed.
94110         * lib/xstrtol.c: Likewise.
94111         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94112         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94113
94114         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94115         warnings on some platforms.
94116
94117         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94118         arbitrarily.
94119
94120 2003-05-26  Jim Meyering  <jim@meyering.net>
94121
94122         Merge in a change from coreutils:
94123         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94124         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94125         that condition, rather than `-1' which is slightly misleading.
94126         Change the name of the cache variable to have the gl_ prefix.
94127         Prompted by a patch from Richard Dawe for DJGPP.
94128
94129 2003-05-24  Karl Berry  <karl@gnu.org>
94130
94131         * config/config.guess: update from prep.
94132
94133 2003-05-22  Karl Berry  <karl@gnu.org>
94134
94135         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94136
94137 2003-05-20  Karl Berry  <karl@gnu.org>
94138
94139         * config/config.guess: update from prep.
94140
94141 2003-05-18  Karl Berry  <karl@gnu.org>
94142
94143         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94144         might actually be set by the user.
94145
94146         * config/depcomp, install-sh, mdate-sh: update from automake.
94147
94148 2003-05-17  Bruno Haible  <bruno@clisp.org>
94149
94150         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94151         invalid expansion for AC_EGREP_CPP.
94152         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94153         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94154         Suggested by Akim Demaille <akim@epita.fr> in
94155         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94156
94157 2003-05-12  Jim Meyering  <jim@meyering.net>
94158
94159         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94160         the space-padded-by-default conversion specifiers, %e, %k, %l.
94161
94162 2003-05-12  Bruno Haible  <bruno@clisp.org>
94163
94164         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94165         the string is longer than 4 KB.
94166
94167 2003-05-11  Karl Berry  <karl@gnu.org>
94168
94169         * config/config.{guess,sub}: update from prep.
94170
94171 2003-05-09  Bruno Haible  <bruno@clisp.org>
94172
94173         * modules/error: Add m4/strerror_r.m4 to file list.
94174
94175 2003-05-03  Bruno Haible  <bruno@clisp.org>
94176
94177         Upgrade to Unicode-4.0.
94178         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94179         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94180         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94181         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94182         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94183         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94184         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94185         Change width of U+E0100..U+E01EF from 1 to 0.
94186
94187 2003-04-25  Jim Meyering  <jim@meyering.net>
94188
94189         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94190         of type size_t, not int.
94191
94192 2003-04-25  Bruno Haible  <bruno@clisp.org>
94193
94194         * lib/copy-file.c: Include <stddef.h>, for size_t.
94195
94196 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94197
94198         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94199         code which expansion is under static control.  Patch imported from
94200         Akim Demaille's patch to Bison; see
94201         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94202
94203 2003-04-14  Bruno Haible  <bruno@clisp.org>
94204
94205         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94206
94207 2003-04-11  Jim Meyering  <jim@meyering.net>
94208
94209         Merge changes from Coreutils.
94210
94211         2003-03-22  Jim Meyering  <jim@meyering.net>
94212
94213         * lib/strftime.c (widen): Cast alloca return value to proper type.
94214
94215         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94216
94217         From GNU libc.
94218         * lib/strftime.c (my_strftime): Handle very large width
94219         specifications for numeric values correctly.  Improve checks for
94220         overflow.
94221
94222         2003-01-19  Jim Meyering  <jim@meyering.net>
94223
94224         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94225         definitions.
94226         (nl_get_alt_digit) [! defined my_strftime]: Define.
94227         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94228         _nl_get_alt_digit and _nl_get_walt_digit.
94229
94230         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94231         libc. These changes have no effect outside of _LIBC.
94232
94233 2003-04-10  Bruno Haible  <bruno@clisp.org>
94234
94235         * modules/findprog: New file.
94236         * MODULES.html.sh (func_all_modules): Add it.
94237
94238 2003-04-10  Bruno Haible  <bruno@clisp.org>
94239
94240         * m4/findprog.m4: New file.
94241         * m4/eaccess.m4: New file.
94242
94243 2003-04-10  Bruno Haible  <bruno@clisp.org>
94244
94245         * lib/findprog.h: New file, from GNU gettext.
94246         * lib/findprog.c: New file, from GNU gettext.
94247
94248 2003-04-05  Jim Meyering  <jim@meyering.net>
94249
94250         Merge changes from Coreutils.
94251
94252         * lib/exclude.h (PARAMS): Remove definition and uses.
94253         * lib/exclude.c: Remove uses of `PARAMS'.
94254
94255         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94256         Add test-cases for DOS filenames. Declare program_name.
94257         (main): Set up program_name.  Patch by Rich Dawe.
94258
94259         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94260         error from mntctl.
94261         Use mntctl's return value to drive the entry-processing loop, since
94262         we can't rely on the value of the vmt_length member in the last
94263         entry.  On some systems doing so could result in exhausting
94264         virtual memory.  Based in part on a patch from Mike Jetzer.
94265
94266 2003-04-04  Bruno Haible  <bruno@clisp.org>
94267
94268         * modules/linebreak: New file.
94269         * MODULES.html.sh (func_all_modules): Add it.
94270
94271 2003-04-04  Bruno Haible  <bruno@clisp.org>
94272
94273         * m4/linebreak.m4: New file.
94274
94275 2003-04-04  Bruno Haible  <bruno@clisp.org>
94276
94277         * lib/linebreak.h: New file, from GNU gettext.
94278         * lib/linebreak.c: New file, from GNU gettext with slight
94279         modifications.
94280         * lib/lbrkprop.h: New file, from GNU gettext.
94281
94282 2003-04-03  Bruno Haible  <bruno@clisp.org>
94283
94284         * modules/utf8-ucs4: New file.
94285         * modules/utf16-ucs4: New file.
94286         * modules/ucs4-utf8: New file.
94287         * modules/ucs4-utf16: New file.
94288         * MODULES.html.sh (func_all_modules): Add them.
94289
94290 2003-04-03  Bruno Haible  <bruno@clisp.org>
94291
94292         * m4/utf-ucs4.m4: New file.
94293         * m4/ucs4-utf.m4: New file.
94294
94295 2003-04-03  Bruno Haible  <bruno@clisp.org>
94296
94297         * lib/utf8-ucs4.h: New file, from GNU gettext.
94298         * lib/utf16-ucs4.h: New file, from GNU gettext.
94299         * lib/ucs4-utf8.h: New file, from GNU gettext.
94300         * lib/ucs4-utf16.h: New file, from GNU gettext.
94301
94302 2003-04-02  Bruno Haible  <bruno@clisp.org>
94303
94304         * modules/binary-io: New file.
94305         * MODULES.html.sh (func_all_modules): Add it.
94306
94307 2003-04-02  Bruno Haible  <bruno@clisp.org>
94308
94309         * lib/binary-io.h: New file, from GNU gettext.
94310
94311 2003-04-01  Bruno Haible  <bruno@clisp.org>
94312
94313         * modules/pathname: New file.
94314         * MODULES.html.sh (func_all_modules): Add it.
94315
94316 2003-04-01  Bruno Haible  <bruno@clisp.org>
94317
94318         * lib/pathname.h: New file, from GNU gettext.
94319         * lib/concatpath.c: New file, from GNU gettext.
94320
94321 2003-03-30  Bruno Haible  <bruno@clisp.org>
94322
94323         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94324
94325 2003-03-30  Bruno Haible  <bruno@clisp.org>
94326
94327         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94328         function chown() doesn't exist.
94329
94330 2003-03-28  Bruno Haible  <bruno@clisp.org>
94331
94332         * modules/copy-file: New file.
94333         * MODULES.html.sh (func_all_modules): Add it.
94334
94335 2003-03-28  Bruno Haible  <bruno@clisp.org>
94336
94337         * m4/copy-file.m4: New file.
94338
94339 2003-03-28  Bruno Haible  <bruno@clisp.org>
94340
94341         * lib/copy-file.h: New file, from GNU gettext.
94342         * lib/copy-file.c: New file, from GNU gettext.
94343
94344 2003-03-18  Jim Meyering  <jim@meyering.net>
94345
94346         * lib/quote.c (quote_n): Fix typo in comment.
94347
94348 2003-03-18  Bruno Haible  <bruno@clisp.org>
94349
94350         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94351         checking.
94352         * m4/onceonly_2_57.m4: Likewise.
94353
94354 2003-03-17  Bruno Haible  <bruno@clisp.org>
94355
94356         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94357         (m4_quote): Remove macro.
94358         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94359
94360 2003-03-14  Jim Meyering  <jim@meyering.net>
94361
94362         Merge changes from Coreutils.
94363         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94364         to be const, in order to avoid warnings.
94365         (obstack_room): Likewise.
94366         (obstack_empty_p): Likewise.
94367
94368 2003-03-14  Bruno Haible  <bruno@clisp.org>
94369
94370         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94371         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94372
94373 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94374
94375         Merge changes from Bison.
94376         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94377         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94378         when compiling Bison 1.875's `bitset bset = obstack_alloc
94379         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94380         * lib/hash.c: Include <stdbool.h> unconditionally.
94381
94382 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94383
94384         * m4/onceonly.m4 (m4_quote): New macro.
94385         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94386         Quote AC_FOREACH variable-expansions properly.
94387
94388 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94389
94390         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94391
94392 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94393
94394         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94395         Reported by Bruce Becker; see:
94396         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94397
94398 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94399             Bruno Haible  <bruno@clisp.org>
94400
94401         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94402         Reported by John Hughes, see
94403         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94404
94405 2003-02-20  Bruno Haible  <bruno@clisp.org>
94406
94407         * MODULES.html.sh (func_all_modules): Add poll.
94408
94409 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94410
94411         * modules/poll: New file.
94412
94413 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94414
94415         * lib/poll_.h: New file.
94416         * lib/poll.c: New file.
94417
94418 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94419
94420         * m4/poll.m4: New file.
94421
94422 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94423
94424         * modules/mathl: New file.
94425
94426 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94427
94428         * lib/mathl.h: New file.
94429         * lib/acosl.c: New file.
94430         * lib/asinl.c: New file.
94431         * lib/atanl.c: New file.
94432         * lib/ceill.c: New file.
94433         * lib/cosl.c: New file.
94434         * lib/expl.c: New file.
94435         * lib/floorl.c: New file.
94436         * lib/frexpl.c: New file.
94437         * lib/ldexpl.c: New file.
94438         * lib/logl.c: New file.
94439         * lib/sincosl.c: New file.
94440         * lib/sinl.c: New file.
94441         * lib/sqrtl.c: New file.
94442         * lib/tanl.c: New file.
94443         * lib/trigl.c: New file.
94444         * lib/trigl.h: New file.
94445
94446 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94447
94448         * m4/mathl.m4: New file.
94449
94450 2003-02-18  Bruno Haible  <bruno@clisp.org>
94451
94452         * MODULES.html.sh (func_all_modules): Add mathl.
94453
94454 2003-02-17  Bruno Haible  <bruno@clisp.org>
94455
94456         * modules/mkdtemp: New module.
94457         * MODULES.html.sh (func_all_modules): Add it.
94458
94459 2003-02-17  Bruno Haible  <bruno@clisp.org>
94460
94461         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94462
94463 2003-02-17  Bruno Haible  <bruno@clisp.org>
94464
94465         * lib/mkdtemp.h: New file, from GNU gettext.
94466         * lib/mkdtemp.c: New file, from GNU gettext.
94467
94468 2003-02-02  Jim Meyering  <jim@meyering.net>
94469
94470         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94471         e.g. glibc-2.2.93.
94472
94473 2003-01-31  Bruno Haible  <bruno@clisp.org>
94474
94475         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94476         'rpl_rename'.
94477         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94478         'rpl_strnlen'.
94479         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94480         'rpl_strtod'.
94481         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94482         'rpl_utime'.
94483
94484 2003-01-31  Bruno Haible  <bruno@clisp.org>
94485
94486         * lib/rename.c: #undef rename before defining rpl_rename.
94487         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94488
94489 2003-01-30  Bruno Haible  <bruno@clisp.org>
94490
94491         * modules/vasnprintf, modules/vasprintf: New modules.
94492         * MODULES.html.sh (func_all_modules): Add them.
94493
94494 2003-01-30  Bruno Haible  <bruno@clisp.org>
94495
94496         * m4/signed.m4: New file, from GNU gettext.
94497         * m4/longdouble.m4: New file, from GNU gettext.
94498         * m4/wchar_t.m4: New file, from GNU gettext.
94499         * m4/wint_t.m4: New file, from GNU gettext.
94500         * m4/vasnprintf.m4: New file.
94501         * m4/vasprintf.m4: New file.
94502
94503 2003-01-30  Bruno Haible  <bruno@clisp.org>
94504
94505         * lib/printf-args.h: New file, from GNU gettext.
94506         * lib/printf-args.c: New file, from GNU gettext.
94507         * lib/printf-parse.h: New file, from GNU gettext.
94508         * lib/printf-parse.c: New file, from GNU gettext.
94509         * lib/vasnprintf.h: New file, from GNU gettext.
94510         * lib/vasnprintf.c: New file, from GNU gettext.
94511         * lib/asnprintf.c: New file, from GNU gettext.
94512         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94513         * lib/vasprintf.c: New file, from GNU gettext.
94514         * lib/asprintf.c: New file, from GNU gettext.
94515
94516 2003-01-29  Bruno Haible  <bruno@clisp.org>
94517
94518         * modules/stpncpy: New module.
94519         * MODULES.html.sh (func_all_modules): Add it.
94520
94521 2003-01-29  Bruno Haible  <bruno@clisp.org>
94522
94523         * m4/stpncpy.m4: New file.
94524
94525 2003-01-29  Bruno Haible  <bruno@clisp.org>
94526
94527         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94528         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94529
94530 2003-01-28  Bruno Haible  <bruno@clisp.org>
94531
94532         * modules/c-ctype: New module.
94533         * MODULES.html.sh (func_all_modules): Add it.
94534
94535 2003-01-28  Bruno Haible  <bruno@clisp.org>
94536
94537         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94538         Paul Eggert.
94539         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94540         Paul Eggert.
94541
94542 2003-01-27  Bruno Haible  <bruno@clisp.org>
94543
94544         * modules/xsetenv: New module.
94545         * MODULES.html.sh (func_all_modules): Add it.
94546
94547 2003-01-27  Bruno Haible  <bruno@clisp.org>
94548
94549         * lib/xsetenv.h: New file, from GNU gettext.
94550         * lib/xsetenv.c: New file, from GNU gettext.
94551
94552 2003-01-23  Jim Meyering  <jim@meyering.net>
94553
94554         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94555         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94556
94557 2003-01-23  Bruno Haible  <bruno@clisp.org>
94558
94559         * modules/minmax: New module.
94560         * MODULES.html.sh (func_all_modules): Add it.
94561
94562 2003-01-23  Bruno Haible  <bruno@clisp.org>
94563
94564         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94565         Eggert.
94566
94567 2003-01-22  Bruno Haible  <bruno@clisp.org>
94568
94569         * modules/exit: New module.
94570         * MODULES.html.sh (func_all_modules): Add it.
94571
94572 2003-01-22  Bruno Haible  <bruno@clisp.org>
94573
94574         * lib/exit.h: New file, from GNU gettext.
94575
94576 2003-01-19  Bruno Haible  <bruno@clisp.org>
94577
94578         * gnulib-tool: Recognize option --extract-maintainer.
94579         (func_get_maintainer): New function.
94580         * modules/*: Add Maintainer entry.
94581
94582 2003-01-16  Jim Meyering  <jim@meyering.net>
94583
94584         * m4/regex.m4: The `regex' struct is both input and output.
94585         Initialize it before each use.  Patch by Tim Waugh.
94586
94587 2003-01-16  Bruno Haible  <bruno@clisp.org>
94588
94589         * MODULES.html.sh: Add a table of contents. Add the module name as
94590         leftmost column. Add hyperlinks.
94591
94592 2003-01-15  Bruno Haible  <bruno@clisp.org>
94593
94594         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94595
94596 2003-01-15  Bruno Haible  <bruno@clisp.org>
94597
94598         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94599         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94600         suffix.
94601
94602 2003-01-15  Bruno Haible  <bruno@clisp.org>
94603
94604         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94605
94606 2003-01-15  Bruno Haible  <bruno@clisp.org>
94607
94608         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94609         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94610
94611 2003-01-14  Jim Meyering  <jim@meyering.net>
94612
94613         * lib/same.c (same_name): Tweak a comment.
94614
94615 2003-01-14  Bruno Haible  <bruno@clisp.org>
94616
94617         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94618         when a string comparison is sufficient.
94619
94620 2003-01-14  Bruno Haible  <bruno@clisp.org>
94621
94622         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94623         'unsigned int'.
94624
94625 2003-01-14  Bruno Haible  <bruno@clisp.org>
94626
94627         * lib/hash-pjw.c: Add comment about low quality of this function.
94628
94629 2003-01-13  Bruno Haible  <bruno@clisp.org>
94630
94631         * modules/stpcpy: Distribute lib/stpcpy.h.
94632         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94633
94634 2003-01-13  Bruno Haible  <bruno@clisp.org>
94635
94636         * modules/*: Add a description.
94637         * modules/strpbrk: Fix Makefile.am snippet.
94638         * modules/strtoimax: Fix dependencies.
94639         * modules/strtoumax: Likewise.
94640
94641 2003-01-13  Bruno Haible  <bruno@clisp.org>
94642
94643         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94644         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94645         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94646
94647 2003-01-13  Bruno Haible  <bruno@clisp.org>
94648
94649         * gnulib-tool (func_create_testdir): Store config/* files in the main
94650         directory.
94651         * config.rpath: Move to ...
94652         * config/config.rpath: ... here.
94653         * modules/gettext: Contains config/config.rpath, not config.rpath.
94654         * modules/iconv: Likewise.
94655
94656 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94657
94658         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94659         to avoid collisions with libcurses and libreadline.
94660
94661         * m4/getstr.m4: Remove.
94662         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94663
94664 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94665
94666         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94667         to avoid collisions with libcurses and libreadline.
94668
94669         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94670         * lib/getstr.h, getstr.c: Remove.
94671         * lib/getline.c: Include "getline.h", to check interface.
94672         Move body of old getstr.c here: this defines MIN_CHUNK and
94673         declares getdelim2, which is renamed from getstr.
94674         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94675
94676         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94677         All uses changed.
94678         * lib/linebuffer.h: Likewise.
94679         (readline): Remove backward-compatibility macro.
94680
94681 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94682
94683         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94684         to avoid collisions with libcurses and libreadline.
94685         * getstr: Remove.
94686         * MODULES.html.sh: Remove getstr.
94687         * modules/getline: Depend on unlocked-io, not getstr.
94688
94689 2003-01-12  Jim Meyering  <jim@meyering.net>
94690
94691         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94692
94693 2003-01-10  Bruno Haible  <bruno@clisp.org>
94694
94695         * modules/alloca: Change Makefile.am requirements. Simplify Include
94696         requirements. Add lib/alloca_.h to file list.
94697
94698 2003-01-10  Bruno Haible  <bruno@clisp.org>
94699
94700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94701
94702 2003-01-10  Bruno Haible  <bruno@clisp.org>
94703
94704         * lib/alloca_.h: New file.
94705         * lib/getdate.y: Unconditionally include alloca.h.
94706         * lib/makepath.c: Likewise.
94707         * lib/setenv.c: Likewise.
94708         * lib/userspec.c: Likewise.
94709
94710 2003-01-09  Karl Berry  <karl@gnu.org>
94711
94712         * MODULES.html.sh: include `dirname $0` in PATH, to find
94713         gnulib-tool.
94714
94715 2003-01-09  Bruno Haible  <bruno@clisp.org>
94716
94717         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94718         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94719
94720 2003-01-09  Bruno Haible  <bruno@clisp.org>
94721
94722         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94723
94724 2003-01-09  Bruno Haible  <bruno@clisp.org>
94725
94726         * lib/stdbool.h.in: New file.
94727
94728 2003-01-09  Bruno Haible  <bruno@clisp.org>
94729
94730         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94731         * MODULES.html.sh: Likewise.
94732
94733 2003-01-08  Jim Meyering  <jim@meyering.net>
94734
94735         * lib/full-write.c: Undefine and define-away `const' after inclusion
94736         of errno.h, not before.  Suggestion from Bruno Haible.
94737
94738 2003-01-08  Bruno Haible  <bruno@clisp.org>
94739
94740         * modules/full-read: Depend on full-write.
94741
94742 2003-01-08  Bruno Haible  <bruno@clisp.org>
94743
94744         * lib/safe-read.c: Include specification header first, to ensure its
94745         selfcontainedness.
94746         * lib/full-write.c: Likewise.
94747
94748 2003-01-07  Jim Meyering  <jim@meyering.net>
94749
94750         * lib/full-write.c: Rework so that it may serve to define full_read,
94751         too.
94752         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94753
94754 2003-01-07  Bruno Haible  <bruno@clisp.org>
94755
94756         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94757         <inttypes.h>.
94758         * lib/xstrtol.h: Likewise.
94759         * lib/xstrtoimax.c: Likewise.
94760         * lib/xstrtoumax.c: Likewise.
94761         * lib/human.h: Likewise.
94762
94763         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94764         on systems that have <inttypes.h> but not <stdint.h>.
94765
94766 2003-01-07  Bruno Haible  <bruno@clisp.org>
94767
94768         * MODULES.html.sh: Add copyright notice.
94769         (missed_files): Omit CVS directory entries.
94770         (func_module): Make it work with sed-3.02.
94771         * MODULES.txt: Remove file.
94772
94773 2003-01-06  Jim Meyering  <jim@meyering.net>
94774
94775         * lib/version-etc.c: Update year in translatable copyright string.
94776
94777 2003-01-03  Karl Berry  <karl@gnu.org>
94778
94779         * config/config.{guess,sub}: update from prep.
94780
94781 2003-01-02  Karl Berry  <karl@gnu.org>
94782
94783         * doc/COPYING.DOC: belatedly updated to 1.2.
94784
94785 2003-01-01  Karl Berry  <karl@gnu.org>
94786
94787         * gnulib-tool (func_verify_module): report module name $module in
94788         error message, not $1.
94789         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94790         be created, only if it doesn't exist.
94791         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94792
94793 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94794
94795         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94796
94797 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94798
94799         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94800         memcmp if strcoll doesn't work.
94801
94802 2002-12-31  Bruno Haible  <bruno@clisp.org>
94803
94804         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94805         nonempty.
94806
94807 2002-12-31  Bruno Haible  <bruno@clisp.org>
94808
94809         * lib/memcoll.c (STRCOLL): New macro.
94810         (memcoll): Use it.
94811
94812 2002-12-31  Bruno Haible  <bruno@clisp.org>
94813
94814         * lib/localcharset.h: New file.
94815         * lib/localcharset.c: Include it.
94816         * lib/unicodeio.c: Likewise.
94817
94818 2002-12-31  Bruno Haible  <bruno@clisp.org>
94819
94820         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94821         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94822
94823 2002-12-31  Bruno Haible  <bruno@clisp.org>
94824
94825         * lib/getline.h: Include <stddef.h>, for size_t.
94826
94827         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94828         * lib/unicodeio.c: Don't include <stddef.h>.
94829
94830 2002-12-31  Bruno Haible  <bruno@clisp.org>
94831
94832         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94833         HAVE_TM_ZONE.
94834
94835 2002-12-24  Karl Berry  <karl@gnu.org>
94836
94837         * config/config.guess: update from prep.
94838
94839 2002-12-24  Bruno Haible  <bruno@clisp.org>
94840
94841         General infrasructure.
94842         * m4/README: Rewritten.
94843         * m4/onceonly.m4: New file.
94844         * m4/onceonly_2_57.m4: New file.
94845
94846         Module atexit.
94847         * m4/atexit.m4: New file.
94848
94849         Module strtod.
94850         * m4/strtod.m4: New file.
94851
94852         Module strtol.
94853         * m4/strtol.m4: New file.
94854
94855         Module strtoul.
94856         * m4/strtoul.m4: New file.
94857
94858         Module memchr.
94859         * m4/memchr.m4: New file.
94860
94861         Module memcmp.
94862         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94863         (jm_FUNC_MEMCMP): Invoke it.
94864
94865         Module memcpy.
94866         * m4/memcpy.m4: New file.
94867
94868         Module memmove.
94869         * m4/memmove.m4: New file.
94870
94871         Module memset.
94872         * m4/memset.m4: New file.
94873
94874         Module strcspn.
94875         * m4/strcspn.m4: New file.
94876
94877         Module strpbrk.
94878         * m4/strpbrk.m4: New file.
94879
94880         Module strstr.
94881         * m4/strstr.m4: New file.
94882
94883         Module strerror.
94884         * m4/strerror.m4: New file.
94885
94886         Module mktime.
94887         * m4/mktime.m4: Renamed from jm-mktime.m4.
94888         (gl_PREREQ_MKTIME): New macro.
94889         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94890
94891         Module malloc.
94892         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94893         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94894         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94895
94896         Module realloc.
94897         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94898         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94899         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94900
94901         Module strftime.
94902         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94903         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94904         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94905         gl_TM_GMTOFF.
94906         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94907
94908         Module xalloc.
94909         * m4/xalloc.m4: New file.
94910
94911         Module alloca.
94912         * m4/alloca.m4: New file.
94913
94914         Module putenv.
94915         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94916         (jm_FUNC_PUTENV): Invoke it.
94917
94918         Module setenv.
94919         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94920         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94921         when invoked twice.
94922         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94923         gt_FUNC_SETENV.
94924
94925         Module memrchr.
94926         * m4/memrchr.m4: New file.
94927
94928         Module stpcpy.
94929         * m4/stpcpy.m4: New file.
94930
94931         Module strcase.
94932         * m4/strcase.m4: New file.
94933
94934         Module strdup.
94935         * m4/strdup.m4: New file.
94936
94937         Module strnlen.
94938         * m4/strnlen.m4: New file.
94939
94940         Module strndup.
94941         * m4/strndup.m4: New file.
94942
94943         Module xstrtod.
94944         * m4/xstrtod.m4: New file.
94945
94946         Module xstrtol.
94947         * m4/xstrtol.m4: New file.
94948
94949         Module getdate.
94950         * m4/getdate.m4: New file.
94951
94952         Module unlocked-io.
94953         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94954         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94955         * m4/jm-glibc-io.m4n: Remove file.
94956
94957         Module long-options.
94958         * m4/long-options.m4: New file.
94959
94960         Module md5.
94961         * m4/md5.m4: New file.
94962
94963         Module sha.
94964         * m4/sha.m4: New file.
94965
94966         Module getstr.
94967         * m4/getstr.m4: New file.
94968
94969         Module getline.
94970         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94971         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94972         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94973         simply getline. Infoke gl_PREREQ_GETLINE.
94974
94975         Module obstack.
94976         * m4/obstack.m4: New file.
94977
94978         Module hash.
94979         * m4/hash.m4: New file.
94980
94981         Module readtokens.
94982         * m4/readtokens.m4: New file.
94983
94984         Module strverscmp.
94985         * m4/strverscmp.m4: New file.
94986
94987         Module stdbool.
94988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94989         OSF/1.
94990
94991         Module strtoll.
94992         * m4/strtoll.m4: New file.
94993
94994         Module strtoull.
94995         * m4/strtoull.m4: New file.
94996
94997         Module strtoimax.
94998         * m4/strtoimax.m4: New file.
94999
95000         Module strtoumax.
95001         * m4/strtoumax.m4: New file.
95002
95003         Module xstrtoimax.
95004         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95005         jm_AC_PREREQ_XSTRTOIMAX.
95006         Moved the strtol prerequisites to strtol.m4.
95007         Moved the strtoll prerequisites to strtoll.m4.
95008         Moved the strtoimax prerequisites to strtoimax.m4.
95009
95010         Module xstrtoumax.
95011         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95012         jm_AC_PREREQ_XSTRTOUMAX.
95013         Moved the strtoul prerequisites to strtoul.m4.
95014         Moved the strtoull prerequisites to strtoull.m4.
95015         Moved the strtoumax prerequisites to strtoumax.m4.
95016
95017         Module chown.
95018         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95019         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95020
95021         Module dup2.
95022         * m4/dup2.m4: New file.
95023
95024         Module ftruncate.
95025         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95026         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95027
95028         Module getgroups.
95029         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95030         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95031
95032         Module gettimeofday.
95033         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95034         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95035         gl_PREREQ_GETTIMEOFDAY.
95036
95037         Module mkdir.
95038         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95039         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95040
95041         Module mkstemp.
95042         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95043         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95044         jm_AC_TYPE_UINTMAX_T.
95045         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95046
95047         Module stat.
95048         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95049         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95050
95051         Module lstat.
95052         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95053         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95054
95055         Module timespec.
95056         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95057         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95058         * m4/st_mtim.m4: Indentation.
95059
95060         Module nanosleep.
95061         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95062         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95063         gl_PREREQ_NANOSLEEP.
95064
95065         Module regex.
95066         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95067         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95068         (gl_REGEX): New macro.
95069
95070         Module rename.
95071         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95072         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95073
95074         Module rmdir.
95075         * m4/rmdir.m4: New file.
95076
95077         Module utime.
95078         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95079         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95080         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95081
95082         Module dirname.
95083         * m4/dirname.m4: New file.
95084
95085         Module getopt.
95086         * m4/getopt.m4: New file.
95087
95088         Module unistd-safer.
95089         * m4/unistd-safer.m4: New file.
95090
95091         Module fnmatch.
95092         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95093         declaration.
95094         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95095         (gl_FUNC_FNMATCH_POSIX): New macro.
95096         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95097         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95098         simply fnmatch.
95099
95100         Module exclude.
95101         * m4/exclude.m4: New file.
95102
95103         Module human.
95104         * m4/human.m4: New file.
95105
95106         Module acl.
95107         * m4/acl.m4: Nop.
95108
95109         Module backupfile.
95110         * m4/backupfile.m4: New file.
95111         * m4/d-ino.m4: Indentation.
95112
95113         Module fsusage.
95114         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95115         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95116         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95117
95118         Module dirfd.
95119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95120         requirements.
95121
95122         Module euidaccess.
95123         * m4/euidaccess.m4: New file.
95124
95125         Module file-type.
95126         * m4/file-type.m4: New file.
95127
95128         Module fileblocks.
95129         * m4/fileblocks.m4: New file.
95130
95131         Module filemode.
95132         * m4/filemode.m4: New file.
95133
95134         Module isdir.
95135         * m4/isdir.m4: New file.
95136
95137         Module lchown.
95138         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95139         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95140
95141         Module makepath.
95142         * m4/makepath.m4: New file.
95143
95144         Module modechange.
95145         * m4/modechange.m4: New file.
95146
95147         Module mountlist.
95148         * m4/mountlist.m4: New file.
95149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95150         Indentation.
95151
95152         Module path-concat.
95153         * m4/path-concat.m4: New file.
95154
95155         Module pathmax.
95156         * m4/pathmax.m4: New file.
95157
95158         Module same.
95159         * m4/same.m4: New file.
95160
95161         Module save-cwd.
95162         * m4/save-cwd.m4: New file.
95163
95164         Module savedir.
95165         * m4/savedir.m4: New file.
95166
95167         Module xgetcwd.
95168         * m4/xgetcwd.m4: New file.
95169         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95170
95171         Module xreadlink.
95172         * m4/xreadlink.m4: New file.
95173
95174         Module safe-read.
95175         * m4/safe-read.m4: New file.
95176
95177         Module safe-write.
95178         * m4/safe-write.m4: New file.
95179
95180         Module closeout.
95181         * m4/closeout.m4: New file.
95182
95183         Module stdio-safer.
95184         * m4/stdio-safer.m4: New file.
95185
95186         Module getpass.
95187         * m4/getpass.m4: New file.
95188
95189         Module getugroups.
95190         * m4/getugroups.m4: New file.
95191
95192         Module group-member.
95193         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95194         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95195
95196         Module idcache.
95197         * m4/idcache.m4: New file.
95198
95199         Module userspec.
95200         * m4/userspec.m4: New file.
95201
95202         Module gettime.
95203         * m4/clock_time.m4: New file.
95204         * m4/gettime.m4: New file.
95205
95206         Module settime.
95207         * m4/settime.m4: New file.
95208
95209         Module posixtm.
95210         * m4/posixtm.m4: New file.
95211
95212         Module gethostname.
95213         * m4/gethostname.m4: New file.
95214
95215         Module canon-host.
95216         * m4/canon-host.m4: New file.
95217
95218         Module gettext.
95219         * m4/codeset.m4: New file, from gettext-0.11.5.
95220         * m4/gettext.m4: New file, from gettext-0.11.5.
95221         * m4/glibc21.m4: New file, from gettext-0.11.5.
95222         * m4/iconv.m4: New file, from gettext-0.11.5.
95223         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95224         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95225         * m4/inttypes.m4: New file, from gettext-0.11.5.
95226         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95227         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95228         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95229         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95230         * m4/lib-link.m4: New file, from gettext-0.11.5.
95231         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95232         * m4/progtest.m4: New file, from gettext-0.11.5.
95233         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95234         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95235         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95236
95237         Module localcharset.
95238         * m4/localcharset.m4: New file.
95239
95240         Module hard-locale.
95241         * m4/hard-locale.m4: New file.
95242
95243         Module mbswidth.
95244         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95245         onceonly macros.
95246         * m4/mbrtowc.m4: Add comment.
95247
95248         Module memcasecmp.
95249         * m4/memcasecmp.m4: New file.
95250
95251         Module memcoll.
95252         * m4/memcoll.m4: New file.
95253
95254         Module unicodeio.
95255         * m4/unicodeio.m4: New file.
95256
95257         Module rpmatch.
95258         * m4/rpmatch.m4: New file.
95259
95260         Module yesno.
95261         * m4/yesno.m4: New file.
95262
95263         Module exitfail.
95264         * m4/exitfail.m4: New file.
95265
95266         Module c-stack.
95267         * m4/c-stack.m4 (gl_C_STACK): New macro.
95268         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95269
95270         Module error.
95271         * m4/error.m4 (gl_ERROR): New macro.
95272         (jm_PREREQ_ERROR): Use onceonly macros.
95273
95274         Module fatal.
95275         * m4/fatal.m4: New file.
95276
95277         Module getloadavg.
95278         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95279         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95280
95281         Module getpagesize.
95282         * m4/getpagesize.m4: New file.
95283
95284         Module getusershell.
95285         * m4/getusershell.m4: New file.
95286
95287         Module physmem.
95288         * m4/physmem.m4: New file.
95289
95290         Module posixver.
95291         * m4/posixver.m4: New file.
95292
95293         Module quotearg.
95294         * m4/quotearg.m4: New file.
95295
95296         Module quote.
95297         * m4/quote.m4: New file.
95298
95299         Module readutmp.
95300         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95301
95302         Module sig2str.
95303         * m4/sig2str.m4: New file.
95304
95305         Other.
95306         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95307         ulonglong.m4.
95308         * m4/intmax_t.m4: New file.
95309         * m4/d-type.m4: Indentation.
95310         * m4/jm-macros.m4: Update.
95311         * m4/prereq.m4 (jm_PREREQ): Update.
95312         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95313         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95314         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95315         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95316         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95317         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95318         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95319         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95320         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95321         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95322         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95323         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95324         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95325         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95326         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95327         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95328         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95329         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95330         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95331
95332 2002-12-24  Bruno Haible  <bruno@clisp.org>
95333
95334         * MODULES.txt: Update according to m4/ changes.
95335
95336         Module gettext.
95337         * config.rpath: New file, from gettext-0.11.5.
95338
95339         * modules/*: New module descriptions.
95340         * gnulib-tool: New file.
95341         * MODULES.html.sh: New file.
95342
95343 2002-12-21  Karl Berry  <karl@gnu.org>
95344
95345         * doc/fdl.texi: update to version 1.2.
95346
95347 2002-12-19  Karl Berry  <karl@gnu.org>
95348
95349         * config/config.guess: update from prep.
95350
95351 2002-12-18  Bruno Haible  <bruno@clisp.org>
95352
95353         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95354         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95355
95356 2002-12-17  Bruno Haible  <bruno@clisp.org>
95357
95358         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95359         stdlib.h, string.h.
95360
95361 2002-12-17  Bruno Haible  <bruno@clisp.org>
95362
95363         * lib/canon-host.c (strdup): Remove unused declaration.
95364
95365         * lib/fsusage.c: Include full_read.h.
95366         (get_fs_usage): Use full_read instead of safe_read.
95367
95368         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95369
95370 2002-12-12  Karl Berry  <karl@gnu.org>
95371
95372         * config/config.guess: update from prep.
95373
95374 2002-12-11  Bruno Haible  <bruno@clisp.org>
95375
95376         * m4/setenv.m4: New file, from gettext-0.11.5.
95377
95378 2002-12-11  Bruno Haible  <bruno@clisp.org>
95379
95380         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95381         not unsetenv().
95382         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95383         modifications:
95384
95385         2002-12-11  Bruno Haible  <bruno@clisp.org>
95386
95387                 * setenv.c (alloca): Fall back to malloc.
95388                 (freea): New macro.
95389                 (setenv): Use freea() to free memory allocated with alloca().
95390
95391         2002-11-13  Bruno Haible  <bruno@clisp.org>
95392
95393                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95394                 function declarations.
95395                 * unsetenv.c (unsetenv): Likewise.
95396
95397         2002-03-04  Bruno Haible  <bruno@clisp.org>
95398
95399                 Portability to AIX 4.3.3.
95400                 * unsetenv.c: New file, extracted from setenv.c.
95401                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95402
95403         2001-12-20  Bruno Haible  <bruno@clisp.org>
95404
95405                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95406                 use malloc instead. For SunOS 4.
95407
95408         2001-12-11  Bruno Haible  <bruno@clisp.org>
95409
95410                 * setenv.c: Declare alloca.
95411                 (compar_fn_t): New typedef.
95412                 (KNOWN_VALUE, STORE_VALUE): Use it.
95413
95414         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95415         setenv.h.
95416
95417 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95418
95419         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95420         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95421         Choose values that are less likely to collide with system fnmatch
95422         options.
95423         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95424         defined (e.g., a pure POSIX system).
95425         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95426         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95427
95428 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95429
95430         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95431         a pain in practice to deal with generated m4 files.  This change
95432         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95433
95434         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95435         and jm-glibc-io.m4, as they are no longer a special case.
95436         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95437         kludge and the auto-generation stuff.  Check only whether the
95438         functions are declared, not whether they exist, since older hosts
95439         that don't declare the functions can't use the optimization anyway.
95440
95441 2002-12-06  Jim Meyering  <jim@meyering.net>
95442
95443         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95444
95445         Merge in changes from libc's misc/error.c, in preparation
95446         for the merge of gnulib's changes back into libc.
95447
95448         * lib/error.c (_): Define only if not already defined.
95449         Move definition to follow all #include directives.
95450         Include unlocked-io.h only if !_LIBC.
95451         [_LIBC]: Include <libio/libioP.h>.
95452         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95453         (fflush): Tweak definition to use INTUSE.
95454         (putc): Define.
95455
95456 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95457
95458         * lib/alloca.c [defined emacs]: Include "lisp.h".
95459         (xalloc_die) [defined emacs]: New macro.
95460         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95461         [! defined emacs]: Include <xalloc.h>.
95462         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95463         (pointer): Typedef to POINTER_TYPE *.
95464         (malloc): Remove decl; we now always use xmalloc.
95465         (alloca): Use old-style definition, since Emacs needs this.
95466         Check for arithmetic overflow when computing combined size.
95467
95468 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95469
95470         Do not generate unlocked-io.h automatically, since it's easier to
95471         maintain it by hand.
95472
95473         * lib/unlocked-io.h: New file, from GNU diffutils,
95474         but with proper copyright notice and attribution.
95475         * lib/gen-uio: Remove.
95476         * lib/Makefile.am: Add copyright notice.
95477         (libfetish_a_SOURCES): Add unlocked-io.h.
95478         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95479         (DISTCLEANFILES, io_functions): Remove macros.
95480         (EXTRA_DIST): Remove gen_uio.
95481         (unlocked-io.h): Remove rule.
95482
95483 2002-12-04  Jim Meyering  <jim@meyering.net>
95484
95485         Reflect the fact that stat.c and lstat.c are no longer generated.
95486         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95487         (DISTCLEANFILES): Likewise.
95488         (EXTRA_DIST): Likewise.
95489         (all_local): Don't depend on stat.c or lstat.c.
95490         (stat.c, lstat.c): Remove rules.
95491         (EXTRA_DIST): Remove xstat.in.
95492
95493         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95494         * lib/stat.c: New file.  Contents mostly from xstat.in.
95495         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95496         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95497
95498         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95499         too.
95500         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95501
95502 2002-12-03  Jim Meyering  <jim@meyering.net>
95503
95504         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95505         but not semantics, to minimize the differences between these two files.
95506         (safe_read): Change comment to mention SAFE_READ_ERROR.
95507
95508         * lib/safe-read.c (IS_EINTR): Define.
95509         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95510
95511 2002-12-02  Jim Meyering  <jim@meyering.net>
95512
95513         * lib/safe-read.c (EINTR): Define.
95514         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95515         (INT_MAX): Provide fallback.
95516         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95517
95518         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95519
95520 2002-12-02  Bruno Haible  <bruno@clisp.org>
95521
95522         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95523         Define, taken from safe-read.c.
95524         (INT_MAX): Provide fallback.
95525         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95526         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95527
95528         * lib/safe-read.c (EINTR): Remove definition.
95529         (safe_read): Don't use EINTR if it is absent.
95530
95531 2002-12-01  Jim Meyering  <jim@meyering.net>
95532
95533         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95534         zero.
95535         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95536
95537 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95538
95539         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95540         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95541         with `if (! (value < limit)) abort ();', for readability.
95542
95543 2002-11-26  Karl Berry  <karl@gnu.org>
95544
95545         * lib/strdup.c: copy from libc again, with jim's ok.
95546         * lib/.cppi-disable: re-add strdup.c
95547
95548 2002-11-25  Karl Berry  <karl@gnu.org>
95549
95550         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95551         instead of "strtol.c".
95552
95553 2002-11-25  Karl Berry  <karl@gnu.org>
95554
95555         * config/install-sh: update from automake for variable quoting, $0 in
95556         error msgs, etc.
95557
95558         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95559         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95560         entry.
95561
95562 2002-11-25  Jim Meyering  <jim@meyering.net>
95563
95564         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95565
95566 2002-11-24  Karl Berry  <karl@gnu.org>
95567
95568         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95569         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95570
95571 2002-11-24  Jim Meyering  <jim@meyering.net>
95572
95573         Update from coreutils:
95574
95575         * lib/mktime.c: Merge in changes from libc.
95576
95577         Avoid a link-time failure on some Linux systems.
95578         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95579         (otherwise).
95580         (__mon_yday): Declare with the STATIC attribute.
95581         (__mktime_internal): Likewise.
95582         Based on a report from Greg Schafer.
95583
95584 2002-11-23  Jim Meyering  <jim@meyering.net>
95585
95586         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95587         Use `unsigned', not `int', as type of index.
95588
95589         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95590
95591         * lib/fsusage.c: Remove unneeded parentheses around operands of
95592         `defined'.
95593
95594 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95595
95596         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95597         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95598         so that we can be included first.
95599         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95600         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95601         No need to include stddef.h or sys/types.h any more.
95602         Surround local include files with "", not "<>".
95603         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95604         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95605         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95606         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95607         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95608         (ISPRINT): Remove; no longer needed now that we assume C89.
95609
95610         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95611         Preserve errno.
95612
95613         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95614         quotearg_char): Use SIZE_MAX rather than
95615         (size_t) -1 when we are talking about "infinity".
95616
95617         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95618
95619 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95620
95621         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95622         hint that one should use `if (! x) abort ();' rather than `assert
95623         (x);', and anyway it's one less thing to worry about configuring.
95624         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95625         hash_rehash, hash_insert): Use abort rather than assert.
95626
95627 2002-11-22  Bruno Haible  <bruno@clisp.org>
95628
95629         * lib/safe-read.h: Assume C89. Add comments.
95630         (safe_read): Change return type to size_t.
95631         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95632         byte counts > SSIZE_MAX correctly.
95633         * lib/safe-write.h: New file.
95634         * lib/safe-write.c: New file.
95635         * lib/full-read.h: New file.
95636         * lib/full-read.c: New file.
95637         * lib/full-write.h: Assume C89. Add comments.
95638         * lib/full-write.c: Include safe-write.h.
95639         (full_write): Rewritten to use safe_write.
95640         Suggested by Jim Meyering and Paul Eggert.
95641
95642 2002-11-21  Jim Meyering  <jim@meyering.net>
95643
95644         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95645
95646         Merge in changes from the coreutils.
95647
95648         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95649         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95650         <stdint.h>.
95651         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95652         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95653         int.  Work more efficiently if X is the same width as uintmax_t.
95654         Do not compare X to -1, to avoid bogus compiler warning.
95655         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95656         Don't assume that f_frsize and f_bsize are the same type.
95657
95658         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95659         warning on FreeBSD.
95660
95661         * lib/makepath.c (make_path): Restore umask *before* creating the final
95662         component.
95663         (make_path): Minor reformatting.
95664
95665         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95666         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95667         HAVE_MALLOC/HAVE_REALLOC.
95668
95669         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95670         dummy ones.  At least on GNU/Linux systems, `auto' means something
95671         else.
95672         From Michael Stone.
95673
95674 2002-11-21  Bruno Haible  <bruno@clisp.org>
95675
95676         Remove case insensitive option matching.
95677         * lib/argmatch.h (argcasematch): Remove declaration.
95678         (ARGCASEMATCH): Remove macro.
95679         (__xargmatch_internal): Remove case_sensitive argument.
95680         (XARGMATCH): Update.
95681         (XARGCASEMATCH): Remove macro.
95682         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95683         case_sensitive argument.
95684         (argcasematch): Remove function.
95685         (__xargmatch_internal): Remove case_sensitive argument.
95686         (main): Use XARGMATCH instead of XARGCASEMATCH.
95687
95688         * lib/xmalloc.c: Change compile-time error message. Add comment about
95689         required autoconf version.
95690
95691 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95692
95693         Merge argmatch cleanups from Bison.  Assume C89.
95694
95695         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95696         Include stdlib.h, for EXIT_FAILURE.
95697         Always include <string.h>, since we assume C89.
95698         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95699         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95700         Include <stddef.h> instead, since it's all we need for size_t.
95701         (PARAMS): Remove.  All uses removed.
95702         (ARRAY_CARDINALITY): Do not bother to #undef.
95703         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95704         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95705         Remove unnecessary parentheses.
95706         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95707         Insert necessary parentheses.
95708         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95709         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95710
95711 2002-11-19  Bruno Haible  <bruno@clisp.org>
95712
95713         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95714         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95715
95716         * lib/mbswidth.h (PARAMS): Remove macro.
95717         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95718         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95719
95720         * lib/gcd.h (PARAMS): Remove macro.
95721         (gcd): Use ANSI C function declarations.
95722         * lib/gcd.c (gcd): Likewise.
95723
95724 2002-11-15  Bruno Haible  <bruno@clisp.org>
95725
95726         * lib/strcspn.c: Include <stddef.h>.
95727         (strcspn): Use ANSI C function declaration. Change return type to
95728         size_t. Use NULL.
95729         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95730         (strpbrk): Use NULL.
95731         * lib/strpbrk.h (PARAMS): Remove macro.
95732         (strpbrk): Use ANSI C function declaration.
95733         * lib/strstr.c: Don't include <sys/types.h>.
95734         * lib/strstr.h (PARAMS): Remove macro.
95735         (strstr): Use ANSI C function declarations.
95736
95737 2002-11-14  Karl Berry  <karl@gnu.org>
95738
95739         * config/mkinstalldirs: `do' on separate line, instead of
95740         `for var; do'.
95741
95742 2002-11-06  Bruno Haible  <bruno@clisp.org>
95743
95744         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95745         * lib/gcd.c (gcd): Likewise.
95746
95747 2002-11-05  Bruno Haible  <bruno@clisp.org>
95748
95749         * lib/gcd.h: New file, from gettext-0.11.5.
95750         * lib/gcd.c: New file, from gettext-0.11.5.
95751
95752 2002-11-05  Bruno Haible  <bruno@clisp.org>
95753
95754         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95755         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95756         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95757         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95758
95759         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95760         <libintl.h>.
95761         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95762         <libintl.h>.
95763
95764         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95765         * lib/human.c: Include gettext.h instead of <libintl.h>.
95766         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95767         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95768         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95769         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95770         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95771         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95772         (textdomain): Remove definition.
95773         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95774
95775         * lib/long-options.c: Remove include of <libintl.h> and definition of
95776         _.
95777         * lib/same.c: Remove include of <libintl.h> and definition of _.
95778
95779 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95780
95781         * lib/config.charset: A few additions for Solaris.
95782
95783 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95784
95785         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95786         * lib/localcharset.c (locale_charset): Declare as extern "C".
95787
95788 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95789
95790         * lib/config.charset: msdos in uk_UA uses CP1125.
95791
95792 2002-11-04  Bruno Haible  <bruno@clisp.org>
95793
95794         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95795         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95796         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95797         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95798         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95799
95800 2002-11-04  Bruno Haible  <bruno@clisp.org>
95801
95802         * lib/localcharset.c (locale_charset): Don't return an empty string.
95803
95804 2002-11-04  Bruno Haible  <bruno@clisp.org>
95805
95806         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95807         aliases.
95808
95809 2002-11-04  Bruno Haible  <bruno@clisp.org>
95810
95811         * lib/config.charset: Update for newest glibc. Add canonical names
95812         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95813
95814 2002-11-04  Bruno Haible  <bruno@clisp.org>
95815
95816         * lib/config.charset: Add support for NetBSD.
95817
95818 2002-11-04  Bruno Haible  <bruno@clisp.org>
95819
95820         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95821
95822 2002-11-01  Bruno Haible  <bruno@clisp.org>
95823
95824         * configure.in: Add AC_CONFIG_AUX_DIR call.
95825         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95826         test/Makefile.
95827         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95828
95829 2002-09-28  Karl Berry  <karl@gnu.org>
95830
95831         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95832         installed automake until the next release, since changes have been
95833         made.
95834
95835 2002-09-25  Karl Berry  <karl@gnu.org>
95836
95837         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95838         * lib/getopt*: copy from libc/posix.
95839         * lib/gettext.h: copy from gettext.
95840         * lib/.cppi-disable: add strdup.c, gettext.h.
95841
95842 2002-09-25  Karl Berry  <karl@gnu.org>
95843
95844         * config/srclist.txt: enable gettext.h check.
95845         * config/config.{guess,sub}: update from prep.
95846         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95847                 from automake 1.6.3.
95848         See srclist*.
95849
95850 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95851
95852         * regex.c (PATFETCH): Remove the translating fetch.
95853         (PATFETCH_RAW): Rename to PATFETCH.
95854         (set_image_of_range): New fun.
95855         (SET_RANGE_TABLE_WORK_AREA): Use it.
95856         (regex_compile): Don't translate the pattern chars so eagerly.
95857         Only do it when inserting an `exactn' bytecode or when handling
95858         a char-range.
95859         (mutually_exclusive_p): Avoid empty statement.
95860
95861 2002-07-06  Jim Meyering  <meyering@lucent.com>
95862
95863         * m4/README: Don't mention Makefile.am.in.
95864         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95865
95866 2002-07-01  Jim Meyering  <meyering@lucent.com>
95867
95868         * lib/c-stack.c: Include sys/time.h.
95869         From Volker Borchert.
95870
95871 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95872
95873         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95874
95875 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95876
95877         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95878         New macro.  Use it uniformly instead of
95879         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95880         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95881         reported by Vin Shelton.
95882
95883 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95884
95885         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95886         Do not assume SA_SIGINFO behavior.
95887         Bug reported by Jim Meyering on NetBSD 1.5.2.
95888
95889 2002-06-22  Jim Meyering  <meyering@lucent.com>
95890
95891         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95893
95894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95895         now that configure.ac uses AC_GNU_SOURCE.
95896         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95897         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95898
95899         Update to latest tools.  Suggestions from Paul Eggert.
95900         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95901         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95902         * m4/fnmatch.m4: Likewise.
95903         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95904         to AC_HEADER_STDBOOL
95905
95906 2002-06-22  Jim Meyering  <meyering@lucent.com>
95907
95908         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95909         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95910
95911 2002-06-22  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95914
95915         * lib/exitfail.c, exitfail.h: Likewise.
95916         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95917
95918         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95919         of fnmatch.h.
95920         (EXTRA_DIST): Add fnmatch_loop.c.
95921         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95922
95923         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95924         * lib/fnmatch.c: Update from diffutils-2.8.2.
95925         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95926         * lib/fnmatch.h: Remove file.
95927
95928 2002-06-21  Jim Meyering  <meyering@lucent.com>
95929
95930         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95931         * m4/mbrtowc.m4: Likewise.
95932
95933         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95934         * m4/mbswidth.m4: Reflect name change:
95935         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95937
95938         * m4/lib-link.m4: Update from gettext-0.11.2.
95939         * m4/gettext.m4: Likewise.
95940
95941         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95942         From Alfred M. Szmidt.
95943
95944 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95945
95946         * lib/file-type.h: Report an error if neither S_ISREG nor
95947         S_IFREG is defined, instead of using a test specific to glibc
95948         2.2.  This should be safe, since POSIX requires S_ISREG and
95949         Unix Version 7 had S_IFREG.  We don't need to check for
95950         <sys/types.h> since we don't use any symbols that it defines.
95951
95952 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95953
95954         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95955         $@-t, so that each temporary file name is unique and valid in the first
95956         8 characters, for operation under DOS.
95957
95958 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95959
95960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95961
95962 2002-06-15  Jim Meyering  <meyering@lucent.com>
95963
95964         Work even with DJGPP 2.03, which lacks support for symlinks.
95965         From Richard Dawe.
95966         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95967         is defined.
95968         * lib/lchown.c (S_ISLNK): Likewise.
95969
95970 2002-06-15  Jim Meyering  <meyering@lucent.com>
95971
95972         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95973         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95974         have been included before this file.
95975
95976 2002-06-14  Jim Meyering  <meyering@lucent.com>
95977
95978         * lib/file-type.h: Use the version from diffutils-2.8.2.
95979         * lib/file-type.c: Likewise.
95980
95981 2002-06-07  Jim Meyering  <meyering@lucent.com>
95982
95983         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95984         They're needed at least for NetBSD 1.5.2.
95985         ($statxfs_includes): Include those same headers.
95986         ($statxfs_includes): Include sys/vfs.h if available.
95987         ($statxfs_includes): Likewise for sys/statvfs.h.
95988         Check for the following members in both structs statfs and statvfs:
95989         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95990
95991 2002-06-01  Jim Meyering  <meyering@lucent.com>
95992
95993         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95994         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95995
95996 2002-05-28  Jim Meyering  <meyering@lucent.com>
95997
95998         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95999         Reported by Volker Borchert.
96000
96001 2002-05-27  Jim Meyering  <meyering@lucent.com>
96002
96003         Fix a problem seen only on nonconforming systems whereby ls.c's
96004         use of localtime, and then of gettimeofday would cause trouble:
96005         the localtime call used to initialize rpl_gettimeofday's save
96006         mechanism would clobber ls's current local time information so
96007         that in any long listing the first file would always be listed
96008         with date 1970-01-01.  Analysis by Volker Borchert.
96009
96010         * lib/gettimeofday.c (localtime): Undefine.
96011         (rpl_localtime): New function.
96012
96013 2002-05-27  Jim Meyering  <meyering@lucent.com>
96014
96015         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96016         localtime.
96017
96018         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96019         use the replacement function; it wouldn't resolve at link time.
96020         Reported by Volker Borchert.
96021
96022 2002-05-22  Jim Meyering  <meyering@lucent.com>
96023
96024         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96025         file-type.h.
96026         * lib/file-type.h: New file.
96027         * lib/file-type.c (file_type): New file/function.  Extracted from
96028         diffutils.
96029
96030 2002-04-30  Jim Meyering  <meyering@lucent.com>
96031
96032         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96033
96034 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96035
96036         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96037
96038 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96039
96040         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96041         Do not check for alloca.h (no longer used) or stdbool.h (was never
96042         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96043
96044 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96045
96046         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96047
96048 2002-04-29  Jim Meyering  <meyering@lucent.com>
96049
96050         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96051         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96052         Use AC_FUNC_STRNLEN here instead.
96053
96054         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96055         With autoconf-2.53a, it's part of AC_PROG_CC.
96056
96057 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96058
96059         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96060         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96061
96062 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96063
96064         * lib/sig2str.h, lib/sig2str.c: New files.
96065         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96066
96067 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96068
96069         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96070         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96071         of 127, since 64 is the largest conceivable number for ancient
96072         nonstandard hosts.
96073         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96074
96075 2002-04-28  Jim Meyering  <meyering@lucent.com>
96076
96077         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96078
96079 2002-04-24  Jim Meyering  <meyering@lucent.com>
96080
96081         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96082         (jm_PREREQ): Use it.
96083
96084         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96085         mach/mach.h fcntl.h.
96086         Check for this function: setlocale.
96087
96088 2002-04-24  Jim Meyering  <meyering@lucent.com>
96089
96090         * lib/gettext.h: New file, from Gettext.
96091         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96092         (libfetish_a_SOURCES): Add gettext.h.
96093
96094 2002-04-16  Jim Meyering  <meyering@lucent.com>
96095
96096         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96097         ut_pid, ut_id, ut_exit.
96098
96099 2002-04-16  Jim Meyering  <meyering@lucent.com>
96100
96101         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96102         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96103         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96104
96105 2002-04-12  Jim Meyering  <meyering@lucent.com>
96106
96107         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96108         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96109         existence of the getmntinfo function.  Needed for Darwin 5.3.
96110
96111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96112         This is necessary at least on Darwin 5.3.
96113
96114         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96115         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96116         strnlen.o in the library, and that makes some versions of ranlib
96117         object.
96118
96119 2002-04-12  Jim Meyering  <meyering@lucent.com>
96120
96121         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96122
96123 2002-04-09  Jim Meyering  <meyering@lucent.com>
96124
96125         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96126         to be more precise.  Rather than saying we're checking whether the
96127         function `works', say what we're testing.
96128         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96129         Reported by Bruno Haible.
96130
96131 2002-03-10  Jim Meyering  <meyering@lucent.com>
96132
96133         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96134         Suggestion from Santiago Vila.
96135
96136 2002-03-08  Jim Meyering  <meyering@lucent.com>
96137
96138         * lib/rename.c: Mention that this wrapper is needed also on
96139         mips-dec-ultrix4.4 systems.
96140
96141 2002-03-02  Jim Meyering  <meyering@lucent.com>
96142
96143         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96144         not HAVE_CLOCK_SETTIME.
96145
96146 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96147
96148         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96149         Check for clock_settime.
96150
96151 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96152
96153         * lib/nanosleep.h: Rename to....
96154         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96155
96156         * lib/gettime.c: New file.
96157         * lib/settime.c: New file.
96158         * lib/stime.c: Remove.
96159
96160         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96161         timespec.h.  Remove nanosleep.h.
96162
96163 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96164
96165         * m4/acl.m4: New file.
96166         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96167         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96168
96169 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96170
96171         * lib/acl.c, lib/acl.h: New files.
96172         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96173
96174 2002-02-24  Jim Meyering  <meyering@lucent.com>
96175
96176         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96177         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96178         cause trouble.  Reported by Nelson Beebe.
96179
96180 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96181
96182         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96183         compilers that don't know that xalloc_die never returns.
96184
96185 2002-02-20  Jim Meyering  <meyering@lucent.com>
96186
96187         * lib/getdate.c: Regenerate using bison-1.33.
96188
96189 2002-02-17  Jim Meyering  <meyering@lucent.com>
96190
96191         * config/config.guess (main): Don't use `head -1'; it's no longer
96192         portable. Use `sed 1q' instead.
96193
96194 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96195
96196         * m4/codeset.m4: Upgrade to gettext-0.11.
96197         * m4/gettext.m4: Upgrade to gettext-0.11.
96198         * m4/glibc21.m4: Upgrade to gettext-0.11.
96199         * m4/iconv.m4: Upgrade to gettext-0.11.
96200         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96201         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96202         * m4/lib-ld.m4: New file, from gettext-0.11.
96203         * m4/lib-link.m4: New file, from gettext-0.11.
96204         * m4/lib-prefix.m4: New file, from gettext-0.11.
96205         * m4/progtest.m4: Upgrade to gettext-0.11.
96206
96207 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96208
96209         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96210         (jm_PREREQ): Use it.
96211
96212 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96213
96214         * lib/posixver.c, lib/posixver.h: New files.
96215         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96216
96217 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96218             Bruno Haible  <bruno@clisp.org>
96219
96220         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96221         (fwrite_success_callback): New declaration.
96222         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96223         print_unicode_char. Call failure callback instead of error.
96224         (fwrite_success_callback): New function.
96225         (exit_failure_callback): New function.
96226         (fallback_failure_callback): New function.
96227         (print_unicode_char): Call unicode_to_mb.
96228
96229 2002-01-26  Jim Meyering  <meyering@lucent.com>
96230
96231         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96232         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96233
96234 2002-01-26  Jim Meyering  <meyering@lucent.com>
96235
96236         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96237
96238 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96241
96242 2002-01-22  Jim Meyering  <meyering@lucent.com>
96243
96244         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96245         Otherwise, some versions of automake would omit the rule that makes
96246         Makefile from Makefile.in.
96247
96248 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96249
96250         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96251         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96252         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96253         (memcoll): Set errno to zero if there is no error.
96254
96255         * lib/quotearg.c (quotearg_buffer_restyled):
96256         Fix bug with quoting buffers containing NUL when backslashing escapes.
96257         This bug was exposed by the other changes in this patch.
96258         (quotearg_n_options): New arg ARGSIZE.
96259         All callers changed.
96260         (quoting_options_from_style): New function.
96261         (quotearg_n_style): Use it.
96262         (quotearg_n_style_mem): New function.
96263
96264         * lib/quotearg.h (quotearg_n_style_mem): New function.
96265
96266 2002-01-19  Jim Meyering  <meyering@lucent.com>
96267
96268         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96269         Remove useless quotes: DF_PROG="df".
96270         * m4/strnlen.m4: New file.
96271
96272 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96273
96274         * lib/backupfile.c (ISDIGIT): Comment fix.
96275         * lib/getdate.y (ISDIGIT): Likewise.
96276         * lib/posixtm.c (ISDIGIT, year): Likewise.
96277         * lib/strverscmp.c (ISDIGIT): Likewise.
96278         * lib/userspec.c (ISDIGIT): Likewise.
96279
96280 2002-01-16  Jim Meyering  <meyering@lucent.com>
96281
96282         * lib/getdate.y: Add three semicolons, each just before a closing
96283         brace. Bison (as of version 1.31) no longer papers over that mistake.
96284
96285 2002-01-05  Jim Meyering  <meyering@lucent.com>
96286
96287         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96288
96289 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96290
96291         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96292         not silently exit merely because the output buffer happens to
96293         have nothing pending.
96294
96295 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96296
96297         See the big note in ../ChangeLog.
96298         * lib/human.c (suffixes): Prefer K to k for 1024.
96299         (generate_suffix_backwards): New function.
96300         (human_readable_inexact): Use it.
96301         * lib/xstrtol.c (__xstrtol): If there is no number but there
96302         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96303         Accept 'K' as well as 'k'.
96304
96305 2001-12-15  Jim Meyering  <meyering@lucent.com>
96306
96307         * lib/regex.h (__restrict_arr): Update from libc.
96308
96309         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96310         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96311         (STREQ): Define.
96312
96313 2001-12-14  Jim Meyering  <meyering@lucent.com>
96314
96315         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96316         Suggestion from Bruno Haible.
96317
96318 2001-12-10  Jim Meyering  <meyering@lucent.com>
96319
96320         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96321         xrealloc, Instead, include "xalloc.h".
96322         (initbuffer): Don't cast xmalloc return value to char*.
96323         (readline): Reword comment.
96324         Don't cast xrealloc return value to char*
96325         Return NULL, not 0.
96326
96327 2001-12-09  Jim Meyering  <meyering@lucent.com>
96328
96329         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96330         about `signed and unsigned type in conditional expression'.
96331         * lib/posixtm.c (posix_time_parse): Likewise.
96332
96333         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96334
96335         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96336         to avoid a pedantic warning.
96337
96338         * lib/getstr.c: Don't include assert.h.
96339         (getstr): Remove warning-evoking assertions.
96340         Return -1 if offset parameter is out of bounds.
96341         Change the type of a local from int to size_t.
96342
96343         * lib/strftime.c (my_strftime_localtime_r): Include this function
96344         definition in the `#if ! HAVE_TM_GMTOFF' block.
96345
96346         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96347         Include xalloc.h instead.
96348
96349 2001-12-02  Jim Meyering  <meyering@lucent.com>
96350
96351         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96352         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96353         included.
96354
96355         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96356         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96357
96358 2001-11-30  Akim Demaille  <akim@epita.fr>
96359
96360         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96361         before being defined.
96362
96363 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96364
96365         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96366         First arg is int, not unsigned.
96367         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96368         (SIZE_MAX, UINT_MAX): New macros.
96369         (quotearg_n_options): Abort if N is negative.
96370         Avoid overflow check on hosts where size_t is 64 bits and int
96371         is 32 bits, as overflow is impossible there.
96372         Fix off-by-one typo that caused unnecessary reallocation.
96373
96374 2001-11-27  Jim Meyering  <meyering@lucent.com>
96375
96376         * lib/tempname.c: Merge with version from libc.
96377         * lib/regex.c: Likewise.
96378
96379         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96380         systems for which STDC_HEADERS is 0, it was not included, resulting in
96381         a warning about an integer-to-pointer conversion problem with getenv.
96382         Reported by Volker Borchert.
96383
96384 2001-11-26  Jim Meyering  <meyering@lucent.com>
96385
96386         * lib/gtod.h: Remove file.
96387         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96388         * lib/gettimeofday.c: Don't include gtod.h.
96389         (GTOD_init): Remove function.
96390         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96391         Suggestion from Volker Borchert.
96392
96393 2001-11-23  Jim Meyering  <meyering@lucent.com>
96394
96395         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96396         it.
96397         * lib/hash.c (struct hash_table): Define it here instead.
96398
96399 2001-11-22  Jim Meyering  <meyering@lucent.com>
96400
96401         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96402
96403 2001-11-20  Jim Meyering  <meyering@lucent.com>
96404
96405         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96406         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96407
96408 2001-11-19  Jim Meyering  <meyering@lucent.com>
96409
96410         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96411         directory.  Use "conftestXXXXXX" as the template.
96412         Suggestion from Paul Eggert.
96413
96414         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96415         immediately, so the test doesn't mistakenly hit the max-open-files
96416         limit.
96417
96418 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96419
96420         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96421         (TEMPORARIES): New macro.
96422         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96423         removes an artificial limitation (e.g. HP-UX 10.20, where
96424         TMP_MAX is 17576).
96425
96426 2001-11-18  Jim Meyering  <meyering@lucent.com>
96427
96428         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96429
96430 2001-11-18  Jim Meyering  <meyering@lucent.com>
96431
96432         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96433         on SunOS 4.
96434
96435         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96436         files will be created before anything else.
96437
96438 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96439
96440         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96441         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96442
96443 2001-11-17  Jim Meyering  <meyering@lucent.com>
96444
96445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96446         Prompted by a report from Bob Proulx.
96447
96448         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96449         Instead, require UTILS_FUNC_MKSTEMP.
96450
96451 2001-11-17  Jim Meyering  <meyering@lucent.com>
96452
96453         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96454         Now, that's done as part of AC_FUNC_STRTOD.
96455
96456 2001-11-17  Jim Meyering  <meyering@lucent.com>
96457
96458         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96459         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96460         rather than group writable.  Patch by Juan F. Codagnone.
96461
96462         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96463         xrealloc, Instead, include "xalloc.h".
96464
96465         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96466         Remove explicit declarations of xmalloc, xrealloc,
96467         and xstrdup.  Instead, include "xalloc.h".
96468
96469         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96470         unlocked-io.h.
96471         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96472         Likewise.
96473         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96474
96475         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96476         Reported by Padraig Brady.
96477
96478         * lib/mkstemp.c: #undef mkstemp.
96479         Include config.h.
96480         (rpl_mkstemp): Rename from mkstemp.
96481         Protoize.
96482
96483 2001-11-16  Jim Meyering  <meyering@lucent.com>
96484
96485         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96486         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96487         determine the amount of total physical memory, use pstat_getstatic.
96488         HPUX-11 doesn't define _SC_PHYS_PAGES.
96489         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96490         If sysconf couldn't be used to determine the amount of available
96491         physical memory, use both pstat_getstatic and pstat_getdynamic.
96492         Based on a patch from Bob Proulx.
96493
96494 2001-11-10  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96497         (jm_PREREQ): Use it.
96498
96499 2001-11-09  Jim Meyering  <meyering@lucent.com>
96500
96501         * m4/jm-macros.m4: Require autoconf-2.52f.
96502         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96503         Use these AC_-prefixed names, not the AM_-prefixed ones.
96504
96505         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96506
96507 2001-11-05  Jim Meyering  <meyering@lucent.com>
96508
96509         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96510
96511 2001-11-04  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96514         $DEFS.
96515
96516 2001-11-03  Jim Meyering  <meyering@lucent.com>
96517
96518         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96519         of AC_DEFUN.
96520
96521         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96522         know the name of the variable in the macro definition.
96523
96524 2001-11-03  Jim Meyering  <meyering@lucent.com>
96525
96526         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96527         in argmatch_to_argument call.
96528
96529         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96530         argument.
96531
96532         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96533         e.g., a fault due to an attempt to free a NULL pointer.
96534
96535 2001-11-01  Jim Meyering  <meyering@lucent.com>
96536
96537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96538         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96539
96540 2001-11-01  Jim Meyering  <meyering@lucent.com>
96541
96542         * lib/dirfd.c, lib/dirfd.h: New files.
96543         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96544
96545         * lib/hash.c (hash_print) [TESTING]: Clean up.
96546
96547 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96548
96549         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96550         to avoid a warning if -Wall.
96551
96552 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96553
96554         * README: New file
96555         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96556         (per RMS's instructions, this is now the canonical source)
96557         * lgpl/, gpl/: New directories.
96558
96559 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96560
96561         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96562
96563 2001-10-21  Jim Meyering  <meyering@lucent.com>
96564
96565         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96566         this code would end up calling gettext even in packages built
96567         with --disable-nls.
96568         * lib/getopt.c (_): Likewise.
96569         * lib/regex.c (_): Likewise.
96570
96571 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96572
96573         * m4/error.m4 (jm_PREREQ_ERROR):
96574         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96575         AC_FUNC_STRERROR_R does that.
96576         Check for strerror declaration.
96577
96578         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96579         are supposed to have them these days.
96580         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96581         Merge changes from latest Autoconf CVS.
96582         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96583         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96584         POSIX decided to standardize on the int flavor of strerror_r.
96585
96586 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96587
96588         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96589         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96590         Use strerror_r that is only a macro, even if it is not a function.
96591         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96592         (private_strerror): Use prototypes, not old-style function definition.
96593         (print_errno_message): New function.
96594         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96595         char*-flavored one.
96596         (error_tail, error, error_at_line): Use it.
96597
96598 2001-10-11  Jim Meyering  <meyering@lucent.com>
96599
96600         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96601         and quote_n (1, ... to avoid clobbering a buffer.
96602
96603 2001-10-05  Jim Meyering  <meyering@lucent.com>
96604
96605         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96606         hash-pjw.h.
96607         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96608         * lib/hash-pjw.h: New file.
96609
96610 2001-09-30  Jim Meyering  <meyering@lucent.com>
96611
96612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96613         `struct fsstat' has the `f_fstypename' member.
96614         Use that to define FS_TYPE, which is now used to make
96615         the getfsstat link test tighter.
96616
96617 2001-09-30  Jim Meyering  <meyering@lucent.com>
96618
96619         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96620         Include <sys/ucred.h>, for Apple Darwin.
96621         Include sys/mount.h and sys/fs_types.h only if available.
96622         (FS_TYPE): Define.
96623         (read_filesystem_list): Use FS_TYPE.
96624
96625 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96626
96627         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96628         a boolean context.
96629
96630 2001-09-29  Jim Meyering  <meyering@lucent.com>
96631
96632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96633         [one-argument getmntent function]): Include stdio.h before mntent.h.
96634         SunOS 4.1.x needs it for the declaration of `FILE'.
96635         Patch by Volker Borchert.
96636
96637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96638         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96639         sys/fs_types.h, and make the link-test for getfsstat guard #include
96640         directives with appropriate #if HAVE_*_H tests so that we can
96641         detect getfsstat on Apple Darwin1.3.7 systems.
96642         Reported by Nelson Beebe.
96643         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96644
96645 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96646
96647         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96648         #defines strtoimax.  Also treat the other strto* functions
96649         like strtoimax.
96650
96651         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96652         Check for strtoul and strtoumax,
96653         as those declarations are made even in the signed case.
96654         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96655         Likewise, for strtol and strtoimax.
96656
96657 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96658
96659         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96660         #defines strtoimax.  Also treat the other strto* functions
96661         like strtoimax.
96662
96663         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96664         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96665         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96666
96667 2001-09-26  Jim Meyering  <meyering@lucent.com>
96668
96669         Most macros in unlocked-io.h had the wrong number of arguments.
96670         * lib/gen-uio: New script.
96671         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96672         * lib/unlocked-io.hin: Remove file.
96673         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96674         rather than trying to embed it here.
96675         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96676         Reported by Padraig Brady.
96677
96678 2001-09-25  Volker Borchert  <bt@teknon.de>
96679
96680         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96681         `result'.
96682
96683 2001-09-24  Jim Meyering  <meyering@lucent.com>
96684
96685         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96686
96687 2001-09-23  Jim Meyering  <meyering@lucent.com>
96688
96689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96690         instead of the mere test for existence of mntent.h.  The latter
96691         would get a false-positive on AIX 3.4 systems.
96692         In the outer getmntent if-block, don't die if neither of the getmntent
96693         tests succeeds.  Instead, just fall through and continue with the
96694         remaining tests.
96695
96696 2001-09-23  Jim Meyering  <meyering@lucent.com>
96697
96698         * lib/mountlist.c: Remove useless parentheses in #if directives.
96699         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96700         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96701
96702 2001-09-22  Jim Meyering  <meyering@lucent.com>
96703
96704         * m4/gettext.m4: New file.  From gettext.
96705         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96706         * m4/progtest.m4: Likewise
96707         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96708         * m4/glibc21.m4: Likewise.
96709
96710         * m4/libintl.m4: Remove.  No longer used.
96711
96712 2001-09-22  Jim Meyering  <meyering@lucent.com>
96713
96714         * lib/localcharset.c: Update from latest gettext.
96715         * lib/config.charset: Likewise.
96716
96717 2001-09-20  Jim Meyering  <meyering@lucent.com>
96718
96719         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96720         strtoimax.
96721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96722         strtoumax.
96723
96724 2001-09-20  Jim Meyering  <meyering@lucent.com>
96725
96726         * lib/xstrtol.c (strtoimax): Guard declaration with
96727         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96728         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96729         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96730         (strtoumax): Likewise, for completeness (it wasn't necessary).
96731
96732 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96733
96734         * lib/strtoimax.c (HAVE_LONG_LONG):
96735         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96736         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96737         to work around bug in IBM C compiler.
96738
96739 2001-09-17  Jim Meyering  <meyering@lucent.com>
96740
96741         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96742         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96743         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96744         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96745         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96746         whenever the right hand side need not be expanded by the shell.
96747
96748 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96749
96750         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96751         library.  It's not correct, as some older glibcs are buggy.
96752         fnmatch wasn't fixed until glibc 2.2.
96753
96754         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96755         special shell magic here.
96756
96757 2001-09-16  Jim Meyering  <meyering@lucent.com>
96758
96759         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96760         * m4/jm-macros.m4: Require it.
96761
96762 2001-09-16  Jim Meyering  <meyering@lucent.com>
96763
96764         * lib/mkdir.c: New file.
96765
96766 2001-09-15  Jim Meyering  <meyering@lucent.com>
96767
96768         * m4/jm-macros.m4: Check for help2man.
96769
96770 2001-09-11  Jim Meyering  <meyering@lucent.com>
96771
96772         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96773         The body, by Paul Eggert, was moved here from configure.in.
96774         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96775
96776 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96777
96778         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96779         (jm_PREREQ): Use it.
96780
96781 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96782
96783         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96784         Use ssize_t, not int, to store result of readlink.
96785         Check for ssize_t overflow as well as size_t overflow,
96786         as POSIX says the result of readlink is implementation-defined
96787         when ssize_t overflows.
96788         Remove unnecessary cast to char*.
96789         Use free+malloc instead of realloc, as the storage doesn't need
96790         to be preserved and it's clearer and can be more efficient that way.
96791         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96792         * lib/xreadlink.h (xreadlink): Update prototype.
96793
96794 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96795
96796         * lib/xgetcwd.c: Revert some of the previous change; intead,
96797         fix the HAVE_GETCWD_NULL code to behave more like the
96798         !HAVE_GETCWD_NULL code used to.
96799
96800         Include "xalloc.h".
96801         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96802         invoke xalloc_die.
96803
96804 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96805
96806         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96807         sys/param.h, as pathmax.h includes them.
96808
96809 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96810
96811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96812         (jm_PREREQ_XGETCWD): New macro.
96813
96814         * m4/getcwd.m4: New file.
96815
96816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96817
96818         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96819         like the HAVE_GETCWD_NULL code.
96820         Include pathmax.h if not HAVE_GETCWD.
96821         Do not include xalloc.h.
96822         (INITIAL_BUFFER_SIZE): New symbol.
96823         Do not use xmalloc / xrealloc, since the caller is responsible for
96824         handling errors.  Preserve errno around `free' during failure.
96825         Do not overrun buffer when using getwd.
96826
96827 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96828
96829         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96830         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96831         getcwd (NULL, 0).
96832
96833 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96834
96835         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96836         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96837         spotted by Jim Meyering.
96838
96839 2001-09-03  Jim Meyering  <meyering@lucent.com>
96840
96841         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96842         failure.
96843
96844 2001-09-02  Jim Meyering  <meyering@lucent.com>
96845
96846         * lib/error.c: Update from GNU libc.
96847
96848 2001-09-01  Jim Meyering  <meyering@lucent.com>
96849
96850         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96851         Used by df.
96852
96853 2001-09-01  Jim Meyering  <meyering@lucent.com>
96854
96855         * lib/xreadlink.c: New file.
96856         * lib/xreadlink.h: New file.
96857         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96858         xreadlink.h.
96859
96860         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96861         doesn't conflict with sparc Solaris 7's definition in
96862         /usr/include/sys/int_types.h.
96863
96864         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96865         files.
96866         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96867         and strncasecmp as r-values.  Unixware didn't have declarations.
96868
96869 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96870
96871         * lib/xstrtol.h: Add copyright notice.
96872         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96873         LONGINT_INVALID_SUFFIX_CHAR.
96874
96875 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96876
96877         * lib/xstrtol.c (strtoimax): New decl.
96878
96879 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96880
96881         * lib/xgetcwd.c: Don't include pathmax.h.
96882         Include stdlib.h and unistd.h if available.
96883         Include xalloc.h.
96884         (xmalloc, xstrdup, free): Remove decls.
96885         (xgetcwd): Don't assume sizes fit in unsigned.
96886         Check for overflow when computing sizes.
96887         Simplify reallocation code.
96888
96889 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96890
96891         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96892         a directory's st_size can have an arbitrary value, so the old
96893         usage could waste an arbitrary amount of memory.  All uses
96894         changed.
96895         * lib/savedir.h: Update prototype.
96896
96897 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96898
96899         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96900
96901         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96902         old strtoimax.c.
96903
96904         Also, make the following further changes to make this file's
96905         configuration more similar to that of strtol.c:
96906         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96907         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96908         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96909         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96910         changed to signed values.
96911
96912         And make the following changes as well:
96913         Fix copyright notice, as 1999 was missing.
96914         (verify): New macro.
96915         (strtoimax): Check sizes at compile-time, not run-time.
96916         Prefer strtol to strtoll if both work.
96917         (main): Remove; it was not that useful and was a pain to maintain.
96918
96919         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96920
96921 2001-08-31  Jim Meyering  <meyering@lucent.com>
96922
96923         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96924         Use an initial, malloc'd, buffer of length 128 rather than
96925         a statically allocated one of length 1024.
96926
96927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96928
96929         Simplify code, partly by assuming autoconf 2.52 semantics.
96930
96931         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96932
96933         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96934         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96935         All uses removed.
96936         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96937         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96938         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96939         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96940         jm_AC_HEADER_INTTYPES_H.
96941         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96942
96943         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96944
96945         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96946         Quote first arg of AC_DEFUN.
96947         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96948         since they are needed to parse the include file even if we need
96949         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96951         but with opposite signedness.
96952
96953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96954
96955         Merge 'exclude' changes from tar 1.13.22.
96956         This fixes one or two unlikely storage allocation overflow bugs,
96957         but doesn't change user-visible behavior otherwise.
96958
96959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96960
96961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96962         (jm_PREREQ_EXCLUDE): New macro.
96963
96964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96965
96966         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96967         tm to be declared.
96968
96969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96970
96971         * lib/hash.c: Remove '2001' from copyright notice.
96972
96973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96974
96975         * lib/full-write.h: New file.
96976         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96977         * lib/full-write.c: Correct credits, as cccp.c no longer
96978         exists and anyway it was so heavily changed from the old cccp
96979         code as to be unrecognizable.  Include full-write.h.
96980         (full_write): Return size_t, with short writes meaning failure.
96981         All callers changed.  This fixes a bug with large buffers
96982         on 64-bit hosts.
96983         * lib/utime.c: Include full-write.h.
96984
96985 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96986
96987         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96988         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96989         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96990         Include if available.
96991         (<xalloc.h>): Include
96992         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96993         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96994         collide with FNM macros.
96995         (struct patopts): New struct.
96996         (struct exclude): Use it, as exclude patterns now come with options.
96997         (new_exclude): Support above changes.
96998         (new_exclude, add_exclude_file):
96999         Initial size must now be a power of two to simplify overflow checking.
97000         (free_exclude, fnmatch_no_wildcards): New function.
97001         (excluded_filename): No longer requires options arg, as the options
97002         are determined by add_exclude.  Now returns bool, not int.
97003         (excluded_filename, add_exclude):
97004         Add support for the fancy new exclusion options.
97005         (add_exclude, add_exclude_file): Now takes int options arg.
97006         Check for arithmetic overflow when computing sizes.
97007         (add_exclude_file): xrealloc might modify errno, so don't
97008         realloc until after errno might be used.
97009
97010         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97011         New macros.
97012         (free_exclude): New decl.
97013         (add_exclude, add_exclude_file): Now takes int options arg.
97014         (excluded_filename): No longer requires options arg, as the options
97015         are determined by add_exclude.  Now returns bool, not int.
97016
97017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97018
97019         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97020
97021 2001-08-27  Jim Meyering  <meyering@lucent.com>
97022
97023         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97024
97025         * lib/version-etc.c (N_): Remove definition.
97026         Revert most of last change.
97027         Instead, simply don't mark the `Copyright...' string for translation.
97028         Based on advice from Paul Eggert.
97029
97030         * lib/strtoxmax.c: Tweak comment.
97031
97032 2001-08-26  Jim Meyering  <meyering@lucent.com>
97033
97034         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97035
97036         * m4/xstrtoimax.m4: New file.
97037         * m4/xstrtoumax.m4: Add comments explaining why we
97038         AC_REPLACE_FUNCS(strtol).
97039
97040 2001-08-26  Jim Meyering  <meyering@lucent.com>
97041
97042         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97043         of copyright with `%s' so translators don't get an untranslated
97044         message in 2002.
97045         (COPYRIGHT_YEAR): Define.
97046         (version_etc): Use fprintf rather than fputs.
97047         Suggestion from Ulrich Drepper.
97048
97049         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97050
97051         * lib/strtoll.c: New file, from GNU libc.
97052         * lib/xstrtoimax.c: New file.
97053
97054         * lib/xstrtol.h: Add xstrtoimax.
97055         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97056         * lib/strtoimax.c: New file.  Likewise, but first define
97057         STRTOUXMAX_SIGNED.
97058
97059         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97060         ...
97061         * lib/strtoxmax.c: ... then renamed to this.
97062
97063 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97064
97065         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97066         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97067         (jm_AC_TYPE_INTMAX_T): New macro.
97068         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97069
97070         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97071
97072         * m4/longlong.m4: Renamed from ulonglong.m4.
97073         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97074         * m4/uintmax_t.m4: Removed.
97075
97076 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97077
97078         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97079         Port to Solaris 8, where 'sed' requires a space after the 'r'
97080         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97081         Redirect output to $tmp just once.
97082
97083 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97084
97085         * lib/addext.c (<errno.h>): Include.
97086         (errno): Declare if not defined.
97087         (addext): Work correctly when pathconf returns -1 and leaves
97088         errno alone because there is no limit.  Also, work even if
97089         pathconf returns a value greater than SIZE_MAX.
97090
97091 2001-08-12  Jim Meyering  <meyering@lucent.com>
97092
97093         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97094         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97095         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97096         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97097         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97098         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97099         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97100         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97101         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97102         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97103         utime.m4, utimes.m4, xstrtoumax.m4:
97104         Quote the first argument in each use of AC_DEFUN.
97105
97106 2001-08-12  Jim Meyering  <meyering@lucent.com>
97107
97108         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97109         Simply `return getcwd (NULL, 0);'.
97110         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97111         Use 1300 as initial value for length, not PATH_MAX.
97112
97113         * lib/pathmax.h: Clean up cpp syntax.
97114
97115 2001-08-12  Jim Meyering  <meyering@lucent.com>
97116
97117         * lib/gettimeofday.c: New file.
97118         * lib/gtod.h: New file.
97119         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97120
97121 2001-08-05  Jim Meyering  <meyering@lucent.com>
97122
97123         * m4/jm-macros.m4: Require autoconf-2.52.
97124
97125 2001-08-04  Jim Meyering  <meyering@lucent.com>
97126
97127         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97128         stmt, to get in sync with glibc.
97129
97130 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97131
97132         The following changes are from gettext 0.10.39 as maintained by
97133         Bruno Haible.
97134
97135         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97136         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97137         with inverted sense.  All uses changed.
97138
97139         * lib/mbswidth.c: Don't include <limits.h>.
97140         Include <stdlib.h> and <string.h> unconditionally.
97141         (iswcntrl, mbsinit, ISCNTRL): New macros.
97142         (mbsnwidth): Use K&R style function declarations.
97143         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97144         can optimize it when MB_CUR_MAX == 1.
97145         The width of control characters is zero, not 1.
97146
97147 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97148
97149         The following changes are from gettext 0.10.39 as maintained by
97150         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97151
97152         * m4/codeset.m4: Upgrade to serial AM1.
97153         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97154         all uses changed.  Quote first arg of AC_DEFUN.
97155         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97156
97157         * m4/iconv.m4: Upgrade to serial AM2.
97158         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97159         Add --with-libconv-prefix.
97160         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97161         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97162         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97163         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97164         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97165
97166         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97167         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97168         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97169         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97170         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97171         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97172         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97173         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97174         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97175
97176         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97177         string.h any more.
97178
97179         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97180         not the default value.
97181
97182         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97183         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97184         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97185         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97186         Also check for iswcntrl, used for wcwidth fallback.
97187         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97188         to Autoconf 2.13.
97189
97190 2001-08-03  Jim Meyering  <meyering@lucent.com>
97191
97192         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97193         as it was in the original.  Reported by Paul Eggert.
97194
97195 2001-07-16  Jim Meyering  <meyering@lucent.com>
97196
97197         * m4/gettimeofday.m4: New file.
97198         Prompted by a report from Bernhard Baehr.
97199
97200 2001-07-15  Jim Meyering  <meyering@lucent.com>
97201
97202         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97203         stuff. Now it's in ../Makefile.cfg.
97204
97205 2001-07-15  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97208         (BUILT_SOURCES): Add unlocked-io.h.
97209         (io_functions): Define.
97210         (unlocked-io.h): New rule.
97211         (DISTCLEANFILES): Add unlocked-io.h.
97212         (all-local): Depend on unlocked-io.h, to ensure it is created.
97213
97214         * lib/unlocked-io.hin: New file
97215
97216         * lib/regex.c: Update from glibc.
97217
97218 2001-07-05  Jim Meyering  <meyering@lucent.com>
97219
97220         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97221         recommendation.
97222         (libfetish_a_SOURCES): Put all .h files here instead.
97223         Remove a thus-exposed (better checks in automake) duplicate and
97224         two unnecessary .h files.
97225
97226 2001-07-04  Jim Meyering  <meyering@lucent.com>
97227
97228         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97229         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97230         distcheck failure.
97231
97232 2001-07-02  Jim Meyering  <meyering@lucent.com>
97233
97234         The following changes were prompted by suggestions from Bruno Haible.
97235
97236         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97237         is now generated.
97238         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97239         definition of EXTRA_DIST.
97240         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97241         ensure that the generated file is created/updated whenever the list
97242         of $(unlocked_functions) is changed.
97243         (jm-glibc-io.m4): New rule.
97244         (unlocked-io.h): New rule -- currently unused.
97245
97246 2001-06-24  Jim Meyering  <meyering@lucent.com>
97247
97248         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97249         unmatched right bracket, rather than kludging it with an extra,
97250         falsely-matching quote in a comment.  Patch by Akim Demaille.
97251
97252 2001-06-11  Jim Meyering  <meyering@lucent.com>
97253
97254         * lib/regex.c: Update from GNU libc.
97255
97256 2001-05-27  Jim Meyering  <meyering@lucent.com>
97257
97258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97259         Check for ut_type in struct utmp.
97260
97261 2001-05-27  Jim Meyering  <meyering@lucent.com>
97262
97263         * lib/readutmp.h (UT_TYPE): Define.
97264
97265 2001-05-24  Jim Meyering  <meyering@lucent.com>
97266
97267         * lib/argmatch.c: Include "quote.h".
97268         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97269         quote function.  Reported by Göran Uddeborg.
97270
97271 2001-05-22  Jim Meyering  <meyering@lucent.com>
97272
97273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97274         now that we use the package-supplied version unconditionally.
97275         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97276
97277 2001-05-21  Jim Meyering  <meyering@lucent.com>
97278
97279         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97280         shell syntax errors.
97281
97282 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97283
97284         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97285
97286 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97287
97288         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97289         Don't bother to check library strftime, since
97290         we'll be using our own my_strftime function anyway.
97291         Define my_strftime instead of strftime.
97292
97293 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97294
97295         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97296         which is not yet declared.
97297
97298 2001-05-15  Jim Meyering  <meyering@lucent.com>
97299
97300         * m4/regex.m4: Use proper quoting so brackets appear in the test
97301         program.
97302         Reported by, and with help from, Bruno Haible.
97303
97304 2001-05-13  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97307         undefined.
97308
97309 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97310
97311         dirname code cleanup.  base_name now behaves more compatibly
97312         with POSIX basename when given file names that have trailing
97313         slashes, and similarly for dir_name.  Add new primitives
97314         base_len and dir_len.  Put the directory-name-related decls
97315         into dirname.h.
97316
97317         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97318         * lib/backupfile.c (base_name): Likewise.
97319         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97320         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97321         * lib/makepath.c (strip_trailing_slashes): Likewise.
97322         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97323         ISSLASH): Likewise.
97324         * lib/rename.c (strip_trailing_slashes): Likewise.
97325         * lib/same.c (base_name): Likewise.
97326         * lib/stripslash.c (ISSLASH): Likewise.
97327
97328         * lib/addext.c: Include <dirname.h> after size_t is defined.
97329         * lib/backupfile.c: Likewise.
97330
97331         * lib/addext.c (addext): Use base_len to trim redundant
97332         trailing slashes instead of doing it ourselves.
97333         But do not trim the last slash if it is not redundant.
97334
97335         * lib/backupfile.c (find_backup_file_name,
97336         max_backup_version): Use base_len instead of rolling it ourselves.
97337         Handle the case of "" and (on DOS) "C:" correctly.
97338
97339         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97340         needed. Include <string.h>, <dirname.h>.
97341         (base_name): Allow file names ending in slashes, other than names
97342         that are all slashes.  In this case, return the basename followed
97343         by the slashes.  This is more general, and can be used in places
97344         where the original base_name purposely had an assertion failure.
97345         (base_len): New function.
97346
97347         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97348         Do not include <assert.h>; no longer needed.
97349         Include xalloc.h.
97350         (memrchr): Remove decl.
97351         (dir_name_r): Remove.
97352         (dir_len): Renamed from dirlen.  All callers changed.
97353         Rewrite in terms of base_name, for simplicity and consistency.
97354         (dir_name): Never return NULL.  All callers changed.
97355         Do not include <stdlib.h> in test program; no longer needed.
97356         return 0; is fine for test program.
97357
97358         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97359         New macros.
97360         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97361
97362         * lib/path-concat.c (path_concat): Use base_len to compute
97363         base length, not strlen; this means we cannot rely on memcpy
97364         to null-terminate.
97365
97366         * lib/same.c (STREQ): Remove.
97367         (same_name): Handle the case where the basename ends in trailing '/'.
97368
97369         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97370         a slash was stripped.  Do not strip the last slash after a
97371         file system prefix.
97372
97373 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97374
97375         * lib/Makefile.am (libfetish_a_SOURCES):
97376         Add strftime.c, since we now compile it on all hosts.
97377
97378         * lib/strftime.c (my_strftime):
97379         Define to nstrftime if emacs, but only if my_strftime is not defined.
97380         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97381         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97382         Add one more extra argument: a nanoseconds value.
97383         All uses changed.
97384         (ns): New macro.
97385         (my_strftime function): Add %N format.
97386         (emacs_strftimeu): Renamed from emacs_strftime,
97387         with extra ut argument.
97388
97389 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97390
97391         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97392
97393 2001-04-21  Jim Meyering  <meyering@lucent.com>
97394
97395         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97396         doesn't interfere.
97397
97398 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97399
97400         * m4/ftruncate.m4: Check for chsize.
97401         Link with ftruncate.o unconditionally if ftruncate is missing.
97402         This was required when cross-compiling to i586-mingw32msvc.
97403
97404 2001-04-08  Jim Meyering  <meyering@lucent.com>
97405
97406         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97407         recomputed; that's necessary when the offset spans a DST transition.
97408         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97409
97410 2001-04-02  Jim Meyering  <meyering@lucent.com>
97411
97412         * lib/regex.h, regex.c: Update from GNU libc.
97413
97414 2001-03-24  Jim Meyering  <meyering@lucent.com>
97415
97416         * m4/jm-macros.m4: Require autoconf-2.49d.
97417
97418 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97419
97420         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97421
97422 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97423
97424         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97425
97426 2001-03-17  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97429         now that the version in autoconf is equivalent.
97430         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97431
97432         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97433         Suggestion from Akim Demaille.
97434
97435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97436         (jm_PREREQ_TEMPNAME): New function.
97437
97438 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97439
97440         * lib/tempname.c (uint64_t): Define to uintmax_t if
97441         not defined, and if UINT64_MAX is not defined.
97442         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97443         Reported by John David Anglin.
97444
97445 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97446
97447         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97448         resolve alias if codeset is empty.
97449         * lib/config.charset (BeOS): Use wildcard syntax.
97450
97451 2001-03-13  Jim Meyering  <meyering@lucent.com>
97452
97453         * lib/path-concat.c (path_concat)
97454         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97455         concatenating e.g., `C:' and `foo'.
97456         From Bruno Haible.
97457
97458 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97459
97460         * lib/localcharset.c (locale_charset): Don't use
97461         setlocale(LC_CTYPE,NULL). Don't return NULL.
97462         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97463
97464 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97465
97466         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97467         support for DOS/DJGPP.
97468
97469 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97470
97471         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97472         lacks mkstemp.  Compile our own tempname.c if we compile our own
97473         mkstemp.c, as mkstemp relies on tempname.
97474
97475 2001-03-01  Jim Meyering  <meyering@lucent.com>
97476
97477         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97478         AH_VERBATIM really does output its argument verbatim.
97479
97480 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97481
97482         * lib/Makefile.am (libfetish_a_SOURCES):
97483         Add dup-safer.c, fopen-safer.c.
97484         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97485
97486         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97487         * lib/unistd-safer.h: New files.
97488
97489 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97490
97491         The mkstemp replacement is taken from glibc 2.2.2, with some
97492         portability fixes for use outside glibc, as follows:
97493
97494         * lib/tempname.c (struct_stat64): New macro.
97495         (direxists, __gen_tempname): Use it.
97496         This avoids a portability problem with Solaris 8.
97497
97498         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97499         (<stddef.h>, <stdint.h>, <string.h>):
97500         Include only if STDC_HEADERS || _LIBC.
97501         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97502         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97503         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97504         (__set_errno): Define this macro if <errno.h> doesn't.
97505         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97506         Define these macros if <stdio.h> doesn't.
97507         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97508         Define these macros if <sys/stat.h>
97509         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97510         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97511         __xstat64): Define if not _LIBC.
97512         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97513         (__gen_tempname): Invoke gettimeofday only if
97514         HAVE_GETTIMEOFDAY || _LIBC;
97515         otherwise, fall back on plain "time".
97516         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97517
97518         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97519
97520         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97521
97522 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97523
97524         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97525
97526 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97527
97528         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97529         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97530         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97531         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97532
97533 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97534
97535         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97536         Remove workaround macros for hosts that have mbrtowc but not
97537         mbstate_t, as we now insist on proper declarations for both
97538         before using mbrtowc.
97539
97540 2001-02-17  Jim Meyering  <meyering@lucent.com>
97541
97542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97543         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97544         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97545         UnixWare 7.1.1.
97546
97547         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97548         rather than AC_CACHE_VAL.
97549
97550 2001-02-17  Jim Meyering  <meyering@lucent.com>
97551
97552         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97553         around included file name.
97554
97555         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97556
97557         * lib/strftime.c: Update from GNU libc (the only changes were to
97558         comments).
97559
97560 2001-02-17  Jim Meyering  <meyering@lucent.com>
97561
97562         * lib/regex.c: Update from libc.
97563
97564 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97565
97566         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97567         clash.
97568
97569 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97570
97571         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97572         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97573         Reported by Mark Hounschell via Paul Eggert.
97574
97575 2001-02-07  Jim Meyering  <meyering@lucent.com>
97576
97577         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97578
97579 2001-02-05  Jim Meyering  <meyering@lucent.com>
97580
97581         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97582         it includes the patch required for `large file' support with at least
97583         HP-UX's 10.20 /bin/cc.
97584
97585 2001-02-03  Jim Meyering  <meyering@lucent.com>
97586
97587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97588         AS_IF, now that it works once again (mysteriously).
97589         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97590
97591 2001-01-30  Jim Meyering  <meyering@lucent.com>
97592
97593         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97594         * m4/chown.m4: Rename conftestchown to conftest.chown.
97595         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97596         s/conftestdir2/conftest.d2/.
97597         * m4/utimes.m4: s/conftestdata/conftest.data/
97598         Inspired by Pavel Roskin's change in autoconf.
97599
97600 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97601
97602         * lib/config.charset: Update for FreeBSD 4.2.
97603
97604 2001-01-27  Jim Meyering  <meyering@lucent.com>
97605
97606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97607         a use of AS_IF.
97608         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97609
97610 2001-01-26  Jim Meyering  <meyering@lucent.com>
97611
97612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97613         quotearg.c includes it.
97614
97615 2001-01-26  Jim Meyering  <meyering@lucent.com>
97616
97617         * lib/quotearg.c: Include stddef.h.
97618         * lib/quote.c: Include stddef.h.
97619         Reported by Axel Kittenberger.
97620
97621         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97622         line in double quotes so that it evokes a better diagnostic.
97623         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97624         Reported by Axel Kittenberger.
97625
97626 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97627
97628         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97629         as if it was a `charset'.
97630
97631 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97632
97633         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97634         has const.
97635
97636 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97637
97638         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97639         to avoid a warning.  Add back 'const' to inptr.
97640
97641 2001-01-20  Jim Meyering  <meyering@lucent.com>
97642
97643         Be sure that headers are checked before used in code compiled
97644         for the type checks.
97645         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97646         In place of that, invoke jm_CHECK_ALL_TYPES.
97647         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97648         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97649         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97650         The check for ssize_t was mistakenly run before the test for unistd.h.
97651
97652         The configure-time check for stdbool.h was missing.
97653         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97654         (jm_PREREQ_HASH): New function.
97655
97656 2001-01-17  Jim Meyering  <meyering@lucent.com>
97657
97658         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97659         for autoconf-2.49c.
97660         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97661
97662 2001-01-16  Jim Meyering  <meyering@lucent.com>
97663
97664         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97665         From Bruno Haible.
97666
97667 2001-01-14  Jim Meyering  <meyering@lucent.com>
97668
97669         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97670         foo and bar.  Create conftestdir/ in the script, not in the C code.
97671         Remove directories in the script, not in the C code.
97672         Remove conftestdir{,2} before trying to create the directory.
97673         Make the entire configure script fail if the mkdir fails.
97674
97675 2001-01-14  Jim Meyering  <meyering@lucent.com>
97676
97677         * lib/rename.c: New file.  From Volker Borchert.
97678         Include stdlib.h, string.h or strings.h, and xalloc.h.
97679         Use strip_trailing_slashes rather than open-coding it.
97680
97681 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97682
97683         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97684
97685 2001-01-03  Jim Meyering  <meyering@lucent.com>
97686
97687         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97688         of local `inptr' to avoid warning with some system declarations of
97689         iconv.
97690
97691 2001-01-02  Volker Borchert  <bt@teknon.de>
97692
97693         * m4/rename.m4: New file.
97694         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97695
97696 2001-01-01  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97699         even on systems with utmpx.h.  It's necessary for the declaration of
97700         utmp's ut_user member.  Reported by Andreas Jaeger.
97701
97702         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97703         available. They are required for the declarations of getgrgid and
97704         getpwuid resp.
97705         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97706         Reported by Andreas Jaeger.
97707
97708 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97709
97710         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97711         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97712         so `make install' also works in VPATH builds.
97713
97714 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97715
97716         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97717         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97718         can be used in subdirectories.
97719
97720 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97721
97722         * lib/modechange.c: Do not assume that mode_t uses the
97723         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97724         the other-execute bit of FOO even if S_IXOTH != 1.
97725
97726         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97727         WOTH, XOTH, ALLM): New macros.
97728         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97729          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97730         Use them.
97731         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97732         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97733         (mode_compile):
97734         No need to use uintmax_t; unsigned long is long enough.
97735         Don't bother to get suffix since we don't use it.
97736
97737 2000-12-26  Jim Meyering  <meyering@lucent.com>
97738
97739         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97740         better with autoheader.
97741
97742 2000-12-24  Jim Meyering  <meyering@lucent.com>
97743
97744         * lib/hash.c (is_prime): Return explicit boolean values.
97745         (hash_get_first): Return NULL to appease Irix5.6's 89.
97746         Reported by Nelson Beebe.
97747
97748 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97749
97750         * lib/localcharset.c (locale_charset): Add support for Win32.
97751
97752 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97753
97754         * lib/physmem.h, lib/physmem.c: New files.
97755
97756         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97757         (noinst_HEADERS): Add physmem.h.
97758
97759         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97760         't' for compatibility with Solaris 8 sort.
97761
97762 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97763
97764         * lib/config.charset: Add support for BeOS.
97765
97766 2000-12-17  Jim Meyering  <meyering@lucent.com>
97767
97768         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97769         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97770
97771 2000-12-16  Jim Meyering  <meyering@lucent.com>
97772
97773         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97774         N and M) would have treated it like `chown N:N FILE'.
97775
97776         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97777
97778 2000-12-16  Jim Meyering  <meyering@lucent.com>
97779
97780         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97781         SHELLS_FILE to a file name that's useful on djgpp systems.
97782         Include stdlib.h.
97783         (ADDITIONAL_DEFAULT_SHELLS): Define.
97784         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97785         Based mostly on a patch from Prashant TR.
97786
97787 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97788
97789         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97790         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97791         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97792
97793 2000-12-08  Andreas Schwab  <schwab@suse.de>
97794
97795         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97796         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97797
97798 2000-12-07  Jim Meyering  <meyering@lucent.com>
97799
97800         * lib/stripslash.c (ISSLASH): Define.
97801         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97802         `/'.
97803         From Prashant TR.
97804
97805         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97806         (dir_name_r): Declare this function as static.
97807         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97808         manifest itself on a name containing a mix of slashes and
97809         backslashes.
97810         Make this function work with names starting with a DOS-style
97811         drive letter and colon prefix.
97812         (dir_name): Append `.' if necessary.
97813         Based mostly on patches from Prashant TR and Eli Zaretskii.
97814
97815         * lib/dirname.h (dir_name_r): Remove prototype.
97816
97817 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97818
97819         * m4/off_t-format.m4: Remove this file.
97820         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97821
97822 2000-12-06  Jim Meyering  <meyering@lucent.com>
97823
97824         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97825         replacement strtoull, we may well need the replacement strtoul, too.
97826         Check for declarations of strtoul and strtoull.
97827         Check for strtol.  Mainly as a cue to cause automake to include
97828         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97829         Check for limits.h -- strtol.c needs it.
97830
97831 2000-12-05  Jim Meyering  <meyering@lucent.com>
97832
97833         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97834
97835 2000-12-04  Jim Meyering  <meyering@lucent.com>
97836
97837         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97838         Also include memory.h, stdlib.h, unistd.h if appropriate.
97839         Reported by Andreas Jaeger (conflicting declaration of malloc).
97840
97841 2000-12-02  Jim Meyering  <meyering@lucent.com>
97842
97843         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97844         * m4/jm-macros.m4 (jm_MACROS): require it.
97845
97846 2000-12-02  Jim Meyering  <meyering@lucent.com>
97847
97848         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97849
97850 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97851
97852         * lib/memrchr.c: Include <config.h> before any system include file.
97853
97854 2000-11-30  Jim Meyering  <meyering@lucent.com>
97855
97856         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97857
97858 2000-11-30  Jim Meyering  <meyering@lucent.com>
97859
97860         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97861
97862 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97863
97864         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97865
97866 2000-11-26  Jim Meyering  <meyering@lucent.com>
97867
97868         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97869
97870 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97871
97872         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97873         size of (size_t) -1; it's not portable.
97874
97875 2000-11-17  Jim Meyering  <meyering@lucent.com>
97876
97877         * lib/strstr.c: Update from GNU libc.
97878
97879 2000-11-17  Akim Demaille  <akim@epita.fr>
97880
97881         * lib/obstack.h: Formatting changes.
97882         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97883         prevent type checking.
97884         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97885         cast the value to (void *): assigning a `foo *' to a `void *'
97886         variable is valid.
97887         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97888
97889 2000-11-16  Jim Meyering  <meyering@lucent.com>
97890
97891         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97892
97893 2000-11-11  Jim Meyering  <meyering@lucent.com>
97894
97895         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97896
97897 2000-11-10  Jim Meyering  <meyering@lucent.com>
97898
97899         * lib/obstack.h: Update from GNU libc.
97900         * lib/obstack.c: Likewise.
97901
97902 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97903
97904         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97905
97906 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97907
97908         * lib/getusershell.c (setusershell): Use rewind rather than
97909         fseek/fseeko, to avoid configuration hassles with fseeko.
97910         Don't bother opening SHELLS_FILE if shellstream is NULL;
97911         it's not necessary.
97912
97913 2000-11-05  Jim Meyering  <meyering@lucent.com>
97914
97915         * lib/makepath.h (make_dir): Declare.
97916         * lib/makepath.c (make_dir): Remove `static' attribute.
97917         Tweak a comment.
97918
97919 2000-11-04  Jim Meyering  <meyering@lucent.com>
97920
97921         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97922
97923 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97924
97925         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97926         last one in a bucket, advance to the next bucket.
97927
97928 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97929
97930         * lib/fnmatch.c: Do not comment out all the code if we are using
97931         the GNU C library, because in some cases we are replacing buggy
97932         code in the GNU C library itself.
97933
97934 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97935
97936         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97937         (regex_compile): Catch bogus \(\1\).
97938
97939 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97940
97941         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97942         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97943         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97944
97945 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97946
97947         * lib/error.h, getline.h, modechange.h:
97948         Remove "2000" from Copyright line, as the file hasn't been
97949         changed this year other than in the copyright notice.
97950
97951         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97952         was changed this year.
97953
97954 2000-10-29  Jim Meyering  <meyering@lucent.com>
97955
97956         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97957         renaming.
97958         * m4/ls-mntd-fs.m4: Likewise
97959
97960 2000-10-29  Jim Meyering  <meyering@lucent.com>
97961
97962         * lib/xstat.in: Fix grammar in comment.
97963
97964 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97965
97966         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97967         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97968         doesn't define __restrict_arr.
97969
97970 2000-10-28  Jim Meyering  <meyering@lucent.com>
97971
97972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97973         (jm_PREREQ_MEMCHR): New function.
97974
97975 2000-10-28  Jim Meyering  <meyering@lucent.com>
97976
97977         * lib/memchr.c: Update from libc.
97978         Adjust for portability:
97979         [HAVE_STDLIB_H]: Include stdlib.h.
97980         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97981         Undef __memchr, too.
97982         [!weak_alias]: Define __memchr to memchr.
97983
97984         * lib/regex.c: Update from libc.
97985         * lib/regex.h: Likewise.
97986         * lib/getopt1.c: Likewise.
97987         * lib/memcmp.c: Likewise.
97988
97989         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97990         Avoid using fseek, when possible -- it's broken by design.
97991         Patch by Ulrich Drepper.
97992
97993 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97994
97995         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97996         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97997         Giving in to popular pressure to shut up the compiler with casts.
97998
97999 2000-10-26  Jim Meyering  <meyering@lucent.com>
98000
98001         * lib/strftime.c: Update from libc.
98002
98003 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98004
98005         * regex.c: More `unsigned char' -> `re_char' changes.
98006         Also change several `int' into `re_wchar_t'.
98007         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98008         (PUSH_FAILURE_POINTER): Don't cast any more.
98009         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98010         We want GCC to complain, since this piece of code makes
98011         re_match non-reentrant, which *should* be fixed.
98012         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98013         (EXTEND_BUFFER): Use RETALLOC.
98014         (SET_LIST_BIT): Don't cast.
98015         (re_wchar_t): New type.
98016         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98017         that those two functions will always properly return.
98018         (IMMEDIATE_QUIT_CHECK): Cast to void.
98019         (analyse_first): Use recursion rather than an explicit stack.
98020         (re_compile_fastmap): Can't fail anymore.
98021         (re_search_2): Don't check re_compile_fastmap for failure.
98022         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98023         Now also sets the new value (passed in a new argument).
98024         (re_match_2_internal): Use it.
98025         Also, use a new var `reg' of type size_t when looping through regs
98026         rather than reuse the inappropriate `mcnt'.
98027
98028 2000-10-25  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/obstack.c: Update from libc.
98031
98032 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98033
98034         * regex.c (regex_compile): Change the way of handling a range from
98035         a char less than 256 to a char not less than 256.
98036
98037 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98038
98039         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98040         NT-Emacs only.
98041         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98042         so that re_search functions only quit when callers expect them to.
98043
98044 2000-10-23  Jim Meyering  <meyering@lucent.com>
98045
98046         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98047         wrong.  That set_locale call must not have any side effects.
98048         From Paul Eggert.
98049
98050 2000-10-22  Jim Meyering  <meyering@lucent.com>
98051
98052         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98053         [CYCLIC]: Remove now-unused definition.
98054
98055         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98056         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98057         Suggestion from Ulrich Drepper.
98058
98059 2000-10-21  Jim Meyering  <meyering@lucent.com>
98060
98061         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98062         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98064
98065 2000-10-21  Jim Meyering  <meyering@lucent.com>
98066
98067         * lib/dirname.c (memrchr): Declare if necessary.
98068         (dir_name): Remove the restriction that there be no
98069         trailing slashes.  Now, this code skips past them, effectively
98070         ignoring them.
98071         [TEST_DIRNAME] (main): New unit tests.
98072
98073         * lib/memrchr.c: New file from GNU libc.
98074         Undef __memrchr, too.
98075         [!weak_alias]: Define __memrchr to memrchr.
98076         Guard weak_alias use with `#ifdef weak_alias'.
98077
98078 2000-10-21  Jim Meyering  <meyering@lucent.com>
98079
98080         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98081         (dir_name): Use dir_name_r.
98082         * lib/dirname.h (dir_name_r): Declare it.
98083
98084 2000-10-17  Jim Meyering  <meyering@lucent.com>
98085
98086         * lib/quote.h (PARAMS): Define and use.
98087         Reported by Akim Demaille.
98088
98089         * lib/getopt.c: Update from libc.
98090
98091 2000-10-16  Jim Meyering  <meyering@lucent.com>
98092
98093         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98094         setlocale.
98095         From Jan Fedak.
98096
98097 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98098
98099         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98100
98101 2000-09-25  Jim Meyering  <meyering@lucent.com>
98102
98103         * lib/md5.h (rol): Define (from GnuPG).
98104
98105         * lib/sha.c: Give credit (GnuPG) where due.
98106         (M): Use rol rather than open-coding it.
98107         Add a FIXME comment.
98108
98109 2000-09-21  Jim Meyering  <meyering@lucent.com>
98110
98111         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98112         Reported by Michael Stone.
98113
98114 2000-09-20  Jim Meyering  <meyering@lucent.com>
98115
98116         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98117         (noinst_HEADERS): Add sha.h.
98118         Based on code from Scott G. Miller and from GnuPG.
98119
98120 2000-09-18  Jim Meyering  <meyering@lucent.com>
98121
98122         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98123         LIBS. Otherwise, everyone ends up linking with -lelf for some
98124         configurations.
98125         Reported by Mike Stone.
98126
98127 2000-09-15  Jim Meyering  <meyering@lucent.com>
98128
98129         * lib/regex.c: Update from libc.
98130
98131 2000-09-10  Jim Meyering  <meyering@lucent.com>
98132
98133         * lib/getopt.c (_getopt_internal): Update from glibc.
98134
98135 2000-09-09  Jim Meyering  <meyering@lucent.com>
98136
98137         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98138         think it should be used as a general replacement for isascii.
98139         * lib/fnmatch.c: Likewise.
98140         * lib/mbswidth.c: Likewise
98141         * lib/regex.c: Likewise.
98142
98143         Don't use atoi.
98144         * lib/userspec.c: Include sys/param.h and limits.h.
98145         Include xstrtol.h.
98146         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98147         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98148         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98149         UID, GID.  Check range.
98150
98151 2000-09-06  Jim Meyering  <meyering@lucent.com>
98152
98153         * lib/getopt.c (_getopt_internal): Update from glibc.
98154
98155 2000-08-30  Jim Meyering  <meyering@lucent.com>
98156
98157         * lib/strftime.c: Merge in changes from GNU libc.
98158
98159 2000-08-26  Jim Meyering  <meyering@lucent.com>
98160
98161         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98162         * m4/fpending.m4: New file.
98163
98164 2000-08-26  Jim Meyering  <meyering@lucent.com>
98165
98166         * lib/closeout.c: Include "__fpending.h".
98167         (close_stdout_status): Return right away if there's nothing to flush.
98168
98169         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98170         * lib/__fpending.c: New file.
98171         * lib/__fpending.h: New file.
98172
98173 2000-08-20  Jim Meyering  <meyering@lucent.com>
98174
98175         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98176         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98177         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98178
98179 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98180
98181         Improve fileutils installation on systems where running
98182         programs (like install) can't be unlinked.
98183         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98184         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98185
98186 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98187
98188         Standardize on "memory exhausted" instead of "Memory exhausted"
98189         or "virtual memory exhausted".
98190         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98191         "virtual memory exhausted".
98192         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98193         our own message.
98194         * lib/userspec.c (parse_user_spec): Likewise.
98195         * lib/bumpalloc.h: comment fix
98196         * lib/same.c, userspec.c: Include xalloc.h.
98197
98198         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98199         not char *const and pointing to a constant array.
98200         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98201         (xrealloc): Comment fix.
98202
98203         * lib/userspec.c (parse_user_spec):
98204         Don't translate a message until just before returning,
98205         to avoid unnecessary translation.
98206
98207 2000-08-07  Jim Meyering  <meyering@lucent.com>
98208
98209         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98210         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98211         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98212         getgroups.c, gethostname.c, getopt.h, group-member.c,
98213         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98214         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98215         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98216         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98217         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98218         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98219         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98220         yesno.c: Back out Copyright date changes for each file with no change
98221         this year.  This eases coordination with other programs using the same
98222         source code modules.  From Paul Eggert.
98223
98224 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98225
98226         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98227         not char, for compatibility with glibc 2.1.3 strftime.c.
98228
98229 2000-08-03  Greg McGary  <greg@mcgary.org>
98230
98231         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98232         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98233         (EXTEND_BUFFER): Use them.
98234
98235 2000-08-01  Jim Meyering  <meyering@lucent.com>
98236
98237         * lib/dirname.c (ISSLASH): Define.
98238         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98239         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98240         both `\' and `/' may be use as path separators.
98241         Based on a patch from Prashant TR.
98242
98243 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98244
98245         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98246         slot vector a constant, since it might get modified.
98247
98248 2000-07-31  Jim Meyering  <meyering@lucent.com>
98249
98250         * lib/xmalloc.c: Use `virtual memory exhausted', not
98251         `Memory exhausted'.
98252         * lib/obstack.c (print_and_abort): Likewise.
98253
98254 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98255
98256         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98257         buffer, so that the caller can always quote one small
98258         component of a "memory exhausted" message in slot 0.
98259         From a suggestion by Jim Meyering.
98260
98261 2000-07-30  Jim Meyering  <meyering@lucent.com>
98262
98263         * lib/makepath.c (make_path): Quote the other instance, too.
98264
98265         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98266         (STATIC_BUF_SIZE): Define.
98267         (quotearg_n_options): Use only statically allocated storage when
98268         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98269         than STATIC_BUF_SIZE.
98270
98271 2000-07-29  Jim Meyering  <meyering@lucent.com>
98272
98273         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98274         * lib/dirname.c (dir_name): Likewise.
98275
98276         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98277         `/'.
98278
98279         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98280         (dir_name): Assert that there are no trailing slashes.
98281
98282 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98283
98284         * lib/mbswidth.h (mbswidth): Add a flags argument.
98285         (mbswidth): New declaration.
98286         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98287         * lib/mbswidth.c (mbswidth): Add a flags argument.
98288         (mbsnwidth): New function.
98289
98290 2000-07-24  Jim Meyering  <meyering@lucent.com>
98291
98292         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98293
98294 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98295
98296         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98297
98298 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98299
98300         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98301         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98302         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98303         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98304         invoke multibyte primitives.
98305
98306 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98307
98308         * lib/quotearg.c:
98309         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98310         so that mbstate_t is always defined.
98311
98312         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98313         be 1 in at least one GCC installation, and this configuration
98314         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98315         performance on hosts that have mbrtowc but have only unibyte
98316         locales, but I assume these hosts are rare.
98317
98318 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98319
98320         * lib/mbswidth.c (_XOPEN_SOURCE):
98321         Don't define; this causes problems on Solaris 7.
98322         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98323
98324 2000-07-23  Jim Meyering  <meyering@lucent.com>
98325
98326         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98327         too: getgrgid, getpwuid, getuid.
98328
98329 2000-07-23  Jim Meyering  <meyering@lucent.com>
98330
98331         * lib/basename.c (base_name): Add an assertion.
98332
98333 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98334
98335         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98336         shadow its mbsinit function.
98337
98338 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98339
98340         * lib/mbswidth.h: New file.
98341         * lib/mbswidth.c: New file.
98342         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98343         (noinst_HEADERS): Add mbswidth.h.
98344
98345 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98346
98347         * lib/config.charset: Add support for FreeBSD. Improve support for
98348         HP-UX and IRIX 6.
98349
98350 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98351
98352         * m4/mbswidth.m4: New file.
98353         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98354
98355 2000-07-15  Jim Meyering  <meyering@lucent.com>
98356
98357         * lib/makepath.c: Include quote.h.
98358         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98359         corresponding argument in a `quote (...)' call.
98360         Give better diagnostics.
98361
98362         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98363         (noinst_HEADERS): Add quote.h.
98364
98365         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98366         from tar's src/misc.c.
98367         * lib/quote.h: New file.  Prototypes for same.
98368
98369 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98370
98371         From a suggestion by Bruno Haible.
98372         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98373         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98374         to decide whether to define the BeOS workaround macro;
98375         this adjusts to the change to AC_MBSTATE_T.
98376
98377 2000-07-14  Jim Meyering  <meyering@lucent.com>
98378
98379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98380         jm_AC_TYPE_UINTMAX_T.
98381
98382 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98383
98384         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98385
98386         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98387         quotearg_buffer_restyled): Add support for
98388         clocale_quoting_style.  Undo previous change to
98389         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98390         and "{RIGHT QUOTATION MARK}" msgids.
98391
98392 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98393
98394         From a suggestion by Bruno Haible.
98395         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98396         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98397         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98398         and mbstate_t, to a single-part test that simply defines mbstate_t.
98399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98400         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98401
98402 2000-07-10  Jim Meyering  <meyering@lucent.com>
98403
98404         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98405
98406         * m4/gnu-source.m4: Output to confdefs.h directly.
98407         Suggestion from Akim Demaille.
98408
98409 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98410
98411         The old behavior of quoting `like this' doesn't look good with
98412         newer, ISO-style fonts.  See:
98413         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98414
98415         Instead, quote "like this" by default.  Let the translator
98416         tailor the locale-specific quoting behavior by providing
98417         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98418
98419         * lib/quotearg.c (N_): New macro.
98420         (gettext_default): New function.
98421         (quotearg_buffer_restyled): Use
98422         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98423         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98424
98425 2000-07-09  Jim Meyering  <meyering@lucent.com>
98426
98427         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98428         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98429
98430         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98432
98433 2000-07-09  Jim Meyering  <meyering@lucent.com>
98434
98435         * lib/Most files: Update copyright dates to include 2000.
98436
98437 2000-07-08  Jim Meyering  <meyering@lucent.com>
98438
98439         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98440         if not defined.
98441         (xgethostname): Remove now-unnecessary #ifdef.
98442         Move declaration of `err' into loop where it's used.
98443
98444 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98445         and Bruno Haible  <haible@clisp.cons.org>
98446
98447         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98448         only if the test for an object-type mbstate_t fails.  This
98449         prevents us from mistakenly reporting that mbstate_t is a
98450         system object type after we "#define mbstate_t int" to work
98451         around its lack.
98452
98453 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98454         and Bruno Haible  <haible@clisp.cons.org>
98455
98456         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98457
98458 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98459
98460         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98461         to strerror_r.
98462         Include <ctype.h> for use of isalpha.
98463
98464 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98465
98466         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98467         by allocating a larger buffer. Test the gethostname return value for
98468         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98469         returns an error and ENAMETOOLONG isn't defined.
98470
98471 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98472
98473         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98474         dimension.
98475
98476 2000-07-04  Jim Meyering  <meyering@lucent.com>
98477
98478         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98479         of the deprecated AC_CHECKING.
98480
98481 2000-07-04  Jim Meyering  <meyering@lucent.com>
98482
98483         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98484         Reported by Bruno Haible.
98485
98486 2000-07-04  Jim Meyering  <meyering@lucent.com>
98487
98488         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98489         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98490         lacks mbrtowc.
98491
98492 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98493
98494         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98495         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98496
98497 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98498         and Bruno Haible  <haible@clisp.cons.org>
98499
98500         * lib/quotearg.c (mbrtowc):
98501         Assign to *pwc, and return 1 only if result is nonzero.
98502         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98503
98504 2000-07-03  Jim Meyering  <meyering@lucent.com>
98505
98506         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98507
98508 2000-07-03  Jim Meyering  <meyering@lucent.com>
98509
98510         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98511         This is necessary to get a definition of e.g., UTMP_FILE on
98512         HP-UX 10.20.
98513         From Bob Proulx.
98514
98515 2000-07-02  Jim Meyering  <meyering@lucent.com>
98516
98517         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98518
98519         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98520         AC_LIBOBJ(function_name).
98521         * m4/chown.m4: Likewise.
98522         * m4/fnmatch.m4: Likewise.
98523         * m4/ftruncate.m4: Likewise.
98524         * m4/getgroups.m4: Likewise.
98525         * m4/getline.m4: Likewise.
98526         * m4/group-member.m4: Likewise.
98527         * m4/jm-macros.m4: Likewise.
98528         * m4/lstat.m4: Likewise.
98529         * m4/malloc.m4: Likewise.
98530         * m4/memcmp.m4: Likewise.
98531         * m4/nanosleep.m4: Likewise.
98532         * m4/putenv.m4: Likewise.
98533         * m4/realloc.m4: Likewise.
98534         * m4/regex.m4: Likewise.
98535         * m4/stat.m4: Likewise.
98536         * m4/strftime.m4: Likewise.
98537
98538 2000-07-02  Jim Meyering  <meyering@lucent.com>
98539
98540         * lib/quotearg.c (mbstate_t): Don't define here.
98541
98542 2000-07-02  Jim Meyering  <meyering@lucent.com>
98543
98544         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98545
98546 2000-07-01  Jim Meyering  <meyering@lucent.com>
98547
98548         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98549
98550 2000-07-01  Jim Meyering  <meyering@lucent.com>
98551
98552         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98553         problem.
98554
98555 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98556
98557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98558         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98559
98560 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98561
98562         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98563         per change in ../m4/ls-mntd-fs.m4.
98564         (read_filesystem_list): Ignore symbolic links.
98565
98566 2000-06-29  Jim Meyering  <meyering@lucent.com>
98567
98568         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98569         for declaration of strcmp.
98570
98571         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98572
98573         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98574         Avoid warning by casting result to `char *' to remove `const'.
98575
98576 2000-06-28  Jim Meyering  <meyering@lucent.com>
98577
98578         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98579         included by quotearg.c, for which we perform this test.  From
98580         Bruno Haible.
98581
98582 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98583
98584         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98585         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98586         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98587
98588 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98589
98590         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98591
98592 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98593
98594         savedir now sets errno on failure and invokes xmalloc to get memory.
98595         Fix a couple of other minor bugs while we're at it.
98596
98597         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98598         (NAMLEN): Remove macro.
98599         (malloc, realloc): Remove decls.
98600         (stpcpy): Likewise.
98601         ("xalloc.h"): Include.
98602         (NAME_SIZE_DEFAULT): New macro.
98603         (savedir): Use xmalloc / xrealloc to allocate memory.
98604         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98605         Skip "" directory entries.
98606         Use strlen to calculate directory entry length, since the old method
98607         is rarely used these days and isn't worth supporting.
98608         Don't use a pointer after freeing it.
98609         Check for integer overflow when calculating allocation size.
98610         Use memcpy to copy entries, instead of stpcpy.
98611         Set errno properly when returning NULL.
98612         Check for readdir error.
98613
98614 2000-06-26  Jim Meyering  <meyering@lucent.com>
98615
98616         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98617
98618 2000-06-25  Jim Meyering  <meyering@lucent.com>
98619
98620         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98621         Linux header bug when _XOPEN_SOURCE is defined to 500.
98622
98623 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98624
98625         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98626         deficiency.
98627
98628 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98629
98630         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98631         Include xalloc.h.
98632         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98633
98634 2000-06-24  Jim Meyering  <meyering@lucent.com>
98635
98636         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98637         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98638         for which strerror does return char*, but which lacks a conveniently
98639         accessible declaration of the function.  If the compile-test says
98640         strerror_r doesn't work, then resort to a `run'-test that works on
98641         BeOS and segfaults on DEC Unix.
98642
98643 2000-06-24  Jim Meyering  <meyering@lucent.com>
98644
98645         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98646
98647 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98648
98649         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98651
98652 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98653
98654         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98655         (mbrtowc, mbstate_t): Define substitutes if
98656         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98657         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98658         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98659
98660 2000-06-23  Jim Meyering  <meyering@lucent.com>
98661
98662         * m4/afs.m4: Add missing AC_MSG_RESULT.
98663         Reported by Bruno Haible.
98664
98665         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98666         Suggestion from Bruno Haible.
98667
98668 2000-06-23  Jim Meyering  <meyering@lucent.com>
98669
98670         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98671
98672 2000-06-21  Jim Meyering  <meyering@lucent.com>
98673
98674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98675
98676 2000-06-21  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98679         (noinst_HEADERS): Add getstr.h.
98680
98681         * lib/getline.c (getstr): Move into a separate file.
98682         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98683         the following changes: new parameter, delim2; both delim[12]
98684         parameters have type `int', not `char'.  The latter would lose
98685         with 8-bit delimiters.
98686         * lib/getstr.h: New file.
98687
98688 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98689
98690         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98691         than 1024, return a memory chunk of least possible size, instead
98692         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98693         Use free/xmalloc instead of xrealloc to avoid copying for very long
98694         paths.
98695
98696 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98697
98698         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98699         the empty string.
98700
98701 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98702
98703         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98704         address, not strdup.  Include <stdlib.h> and don't declare free().
98705
98706 2000-06-19  Jim Meyering  <meyering@lucent.com>
98707
98708         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98709
98710 2000-06-18  Jim Meyering  <meyering@lucent.com>
98711
98712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98713
98714         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98715         `checking whether...' message to be consistent with that of the
98716         lstat test.
98717
98718 2000-06-18  Jim Meyering  <meyering@lucent.com>
98719
98720         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98721         Besides, these days every porting target provides a mkdir function.
98722
98723         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98724         needed. (this snippet comes from src/system.h).
98725
98726 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98727
98728         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98729
98730 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98731
98732         * lib/human.c (adjust_value): New function.
98733         (human_readable_inexact): Apply rounding style even when
98734         printing approximate values.
98735
98736 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98737
98738         * lib/human.c (human_readable_inexact): Allow an input block
98739         size that is not a multiple of the output block size, and vice versa.
98740         Reported by Piergiorgio Sartor.
98741
98742 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98743
98744         * lib/getdate.y (get_date): Apply relative times after time
98745         zone indicator, not before.  Reported by Todd A. Jacobs.
98746
98747 2000-06-13  Jim Meyering  <meyering@lucent.com>
98748
98749         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98750
98751         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98752
98753 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98754
98755         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98756
98757 2000-06-12  Jim Meyering  <meyering@lucent.com>
98758
98759         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98760         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98761         optional argument.
98762         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98763         the optional argument, `lib'.
98764
98765 2000-06-08  Jim Meyering  <meyering@lucent.com>
98766
98767         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98768
98769 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98770
98771         Rewrite largefile configuration so that we don't need to run
98772         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98773         AC_CANONICAL_HOST in configure.in -- jmm]
98774
98775         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98776         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98777         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98778         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98779         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98780         All uses changed.
98781         Instead of inspecting the output of getconf, try to compile the
98782         test program without and with the macro definition.
98783         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98784         for getconf.  Instead, check for the needed flags by compiling
98785         test programs.
98786
98787 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98788
98789         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98790
98791 2000-06-04  Jim Meyering  <meyering@lucent.com>
98792
98793         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98794         SunOS 4.1.4 for which gid_t is an unsigned type.
98795
98796 2000-06-03  Jim Meyering  <meyering@lucent.com>
98797
98798         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98799         now that autoconf requires that.
98800
98801         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98802         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98803         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98804
98805 2000-06-03  Jim Meyering  <meyering@lucent.com>
98806
98807         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98808
98809 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98810
98811         * m4/glibc21.m4: New file.
98812         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98813
98814 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98815
98816         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98817         newer, don't install charset.alias.
98818         * lib/config.charset: Change the Linux/glibc rules so they become empty
98819         on glibc-2.1 or newer.
98820
98821 2000-06-02  Jim Meyering  <meyering@lucent.com>
98822
98823         * lib/mountlist.c: Back out last change.  Instead, do this...
98824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98825         me_dummy member using the same `ignore'-testing code.
98826         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98827         fs_type strings.
98828         From Mark D. Roth.
98829
98830 2000-05-29  Jim Meyering  <meyering@lucent.com>
98831
98832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98833         mounts with the `ignore' attribute.  Based on a patch from
98834         Mark D. Roth.
98835
98836 2000-05-28  Jim Meyering  <meyering@lucent.com>
98837
98838         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98839         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98840         * m4/stat.m4: Likewise.
98841         * m4/lstat.m4: Likewise.
98842         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98843
98844         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98845         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98846
98847 2000-05-26  Jim Meyering  <meyering@lucent.com>
98848
98849         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98850
98851 2000-05-24  Jim Meyering  <meyering@lucent.com>
98852
98853         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98854         autoconf requires that.
98855         * m4/lib-check.m4: Likewise.
98856         * m4/jm-macros.m4: Likewise.
98857         * m4/strftime.m4: Likewise.
98858
98859         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98860         AC_CHECK_DECLS, now that autoconf requires that.
98861
98862 2000-05-22  Jim Meyering  <meyering@lucent.com>
98863
98864         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98865         * m4/lstat.m4: Likewise.
98866
98867 2000-05-22  Jim Meyering  <meyering@lucent.com>
98868
98869         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98870
98871 2000-05-20  Jim Meyering  <meyering@lucent.com>
98872
98873         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98874         (jm_PREREQ): Use it.
98875
98876 2000-05-18  Jim Meyering  <meyering@lucent.com>
98877
98878         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98879         back, too, since it may have been modified by allocate_entry.
98880         (hash_delete): Rewrite to use neither the assignment operator
98881         nor the comma operator in an if-expression.
98882
98883 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98884
98885         * lib/closeout.c:
98886         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98887         Remove; no longer needed.
98888         "quotearg.h": Add include.
98889         (file_name): Do not bother to explicitly initialize to NULL; it's less
98890         efficient on some hosts.
98891         (close_stdout_status): Remove test as to whether stdout was already
98892         closed; it breaks for the case "echo x | sort >&-".
98893         Quote file name colons.
98894         Do not assume that _("write error") lacks format strings.
98895
98896 2000-05-15  Jim Meyering  <meyering@lucent.com>
98897
98898         * lib/version-etc.c (version_etc_copyright): Update the copyright
98899         string used in all --version output.
98900
98901 2000-05-14  Jim Meyering  <meyering@lucent.com>
98902
98903         * lib/closeout.c (close_stdout_set_file_name): New function.
98904         (close_stdout_status): Use new file-scoped global.
98905         Return right away if fstat says the stdout file descriptor is invalid.
98906         * lib/closeout.h (close_stdout_set_file_name): Declare.
98907
98908 2000-05-10  Jim Meyering  <meyering@lucent.com>
98909
98910         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98911         (close_stdout_set_status): New function.
98912         * lib/closeout.h (close_stdout_set_status): Declare.
98913
98914 2000-05-09  Jim Meyering  <meyering@lucent.com>
98915
98916         * m4/gettext.m4: Rename this...
98917         * m4/libintl.m4: ...to this.
98918
98919 2000-05-08  Jim Meyering  <meyering@lucent.com>
98920
98921         * lib/long-options.c: Don't include closeout.h.
98922         (parse_long_options): Don't call close_stdout for --version.
98923
98924 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98925
98926         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98927         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98928         2.1.3 bug.  This avoids a clash when files like regex.c define
98929         _GNU_SOURCE.
98930
98931 2000-05-06  Jim Meyering  <meyering@lucent.com>
98932
98933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98934         (AC_REPLACE_FUNCS): Add strnlen.
98935
98936         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98937         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98938
98939         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98940         AC_SEARCH_LIBS call for nanosleep.
98941         (LIB_NANOSLEEP): Set and AC_SUBST.
98942
98943 2000-05-06  Jim Meyering  <meyering@lucent.com>
98944
98945         * lib/strnlen.c: Undefine __strnlen and strnlen.
98946         [!weak_alias]: Define __strnlen to strnlen.
98947
98948         * lib/atexit.c: New file, from libiberty.
98949
98950 2000-05-06  Jim Meyering  <meyering@lucent.com>
98951
98952         * lib/closeout.c (close_stdout_status): Also check for errors on the
98953         stderr stream.
98954
98955 2000-05-05  Jim Meyering  <meyering@lucent.com>
98956
98957         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98958         AC_SEARCH_LIBS call for clock_gettime.
98959         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98960
98961         * m4/search-libs.m4: Update from autoconf.
98962
98963         su doesn't work on Solaris 2.6.
98964         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98965         <shadow.h>.  Reported by Dragos Harabor.
98966
98967 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98968
98969         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98970         memcpy instead of xmalloc, xrealloc, path_concat.
98971         (locale_charset): Treat empty environment variables as absent.
98972         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98973
98974 2000-05-04  Jim Meyering  <meyering@lucent.com>
98975
98976         * lib/getopt.c: Update from glibc.
98977         * lib/obstack.c: Likewise.
98978         * lib/obstack.h: Likewise.
98979         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98980         file
98981
98982         * lib/regex.h: Likewise.
98983         * lib/strndup.c: Likewise.
98984         * lib/strnlen.c: New file, from glibc.
98985
98986 2000-05-03  Jim Meyering  <meyering@lucent.com>
98987
98988         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98989
98990 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98991
98992         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98993         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98994         compile-time test, rather than inspecting host and OS, to
98995         decide whether to define _LARGEFILE_SOURCE.
98996
98997 2000-05-01  Jim Meyering  <meyering@lucent.com>
98998
98999         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99000
99001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99002         Based on a patch from Bruno Haible.
99003
99004 2000-05-01  Jim Meyering  <meyering@lucent.com>
99005
99006         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99007
99008 2000-04-29  Jim Meyering  <meyering@lucent.com>
99009
99010         * lib/path-concat.c: Declare strdup only if it's not defined.
99011         * lib/canon-host.c: Likewise.
99012
99013 2000-04-28  Jim Meyering  <meyering@lucent.com>
99014
99015         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99016         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99017         is included first, then limits.h is included by locale.h by libintl.h.
99018         From John David Anglin.
99019
99020 2000-04-25  Jim Meyering  <meyering@lucent.com>
99021
99022         * lib/makepath.c (S_IRWXUGO): Define.
99023         (make_path): Always perform explicit chmod if MODE specifies any
99024         of the `special' permission bits.  Prompted by a bug report against
99025         install from Mate Wierdl and Joost van Baal.
99026
99027 2000-04-18  Jim Meyering  <meyering@lucent.com>
99028
99029         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99030         (jm_PREREQ): Use it.
99031
99032 2000-04-18  Jim Meyering  <meyering@lucent.com>
99033
99034         * lib/README: New file.
99035
99036         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99037         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99038
99039 2000-04-17  Jim Meyering  <meyering@lucent.com>
99040
99041         Get it right :-)
99042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99043         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99044         Suggestion from Akim Demaille.
99045
99046 2000-04-17  Jim Meyering  <meyering@lucent.com>
99047
99048         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99049         the definition of it to rpl_strftime also defined-away the system's
99050         declaration.
99051
99052 2000-04-15  Jim Meyering  <meyering@lucent.com>
99053
99054         Use `C' to denote so-called `contiguous' files, the same way
99055         that tar does.
99056         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99057         (ftypelet): Use S_ISCTG.
99058         From Michael Deutschmann.
99059
99060 2000-04-14  Jim Meyering  <meyering@lucent.com>
99061
99062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99063         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99064         clobbered.
99065
99066 2000-04-14  Jim Meyering  <meyering@lucent.com>
99067
99068         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99069
99070 2000-04-13  Jim Meyering  <meyering@lucent.com>
99071
99072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99073         AH_VERBATIM to insert required #ifndef into config.h.in.
99074         Suggestion from Akim Demaille.
99075
99076 2000-04-12  Jim Meyering  <meyering@lucent.com>
99077
99078         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99079         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99080         Christian Krackowizer.
99081
99082         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99083         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99084         (AC_SYS_LARGEFILE): Require.
99085         (AM_C_PROTOTYPES): Require.
99086
99087 2000-04-08  Jim Meyering  <meyering@lucent.com>
99088
99089         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99090         names don't conflict.  Reported by Eli Zaretskii.
99091
99092 2000-04-07  Jim Meyering  <meyering@lucent.com>
99093
99094         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99095         sys/types.h, to work around system header problems on AIX 3.2.5.
99096         From Bruno Haible.
99097
99098 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99099
99100         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99101         bug.  Deal with the different error behavior of Irix iconv.
99102
99103 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99104
99105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99106         IRIX if the installer said otherwise.
99107
99108 2000-04-05  Jim Meyering  <meyering@lucent.com>
99109
99110         Portability tweaks required for ultrix4.3.
99111         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99112         (jm_CHECK_DECLS): Add getutent to the list of functions.
99113         (_jm_DECL_HEADERS): Add utmpx.h.
99114         From John David Anglin.
99115
99116         * m4/strftime.m4: Back out the 2000-04-02 change.
99117         Instead of that change, simply undefine putenv in the test program.
99118
99119 2000-04-05  Jim Meyering  <meyering@lucent.com>
99120
99121         Portability tweaks required for ultrix4.3.
99122         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99123         getutent.
99124         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99125         * lib/canon-host.c: Declare strdup.
99126         * lib/path-concat.c: Likewise.
99127         From John David Anglin.
99128
99129 2000-04-04  Jim Meyering  <meyering@lucent.com>
99130
99131         Be more DOS 8.3-friendly.
99132         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99133         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99134         * lib/Makefile.am: Reflect renaming.
99135         Reported by Eli Zaretskii.
99136
99137         Use a temporary file name that won't clash with `charset.alias'
99138         in the DOS 8.3 name space.
99139         * lib/Makefile.am (charset_tmp): Define.
99140         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99141         (uninstall-local): Likewise.
99142         Reported by Eli Zaretskii.
99143
99144 2000-04-03  Jim Meyering  <meyering@lucent.com>
99145
99146         * m4/gettext.m4: Fix typo in comment.
99147
99148         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99149         textutils/configure.in).  Suggestion from Paul Eggert.
99150         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99151
99152 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99153
99154         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99155         variable in the shell rather than using putenv, which isn't
99156         portable.  This avoids the configure-time inter-test dependency
99157         on the potentially-renamed putenv function.
99158
99159 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99160
99161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99162         before checking struct stat.st_blksize, so that
99163         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99164
99165 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99166
99167         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99168         since strftime.c uses HAVE_STRFTIME to decide whether to use
99169         the underlying strftime.
99170
99171 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99172
99173         * lib/time/strftime.c (my_strftime): Make sure we call the system
99174         strftime, not ourselves, when invoking the underlying strftime.
99175
99176 2000-03-24  Jim Meyering  <meyering@lucent.com>
99177
99178         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99179         (charset_alias): Define.
99180         (install-exec-local): Factor out common code.
99181         (uninstall-local): Split lines longer than 80.
99182         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99183         (SUFFIXES): Define.
99184         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99185         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99186
99187 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99188
99189         * lib/config.charset: Output a line containing "Packages using this
99190         file".
99191         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99192         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99193         ref-del.sed): New rules.
99194
99195 2000-03-17  Jim Meyering  <meyering@lucent.com>
99196
99197         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99198         Otherwise, include <strings.h>
99199
99200 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99201
99202         * lib/unicodeio.c (utf8_wctomb): New function.
99203         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99204         format instead of in UCS-4 with platform dependent endianness.
99205
99206 2000-03-10  Jim Meyering  <meyering@lucent.com>
99207
99208         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99209         From Marco Franzen.
99210
99211 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99212
99213         * lib/savedir.c (savedir): Work even if directory size is
99214         negative; this can happen with some screwy NFS configurations.
99215
99216 2000-03-06  Jim Meyering  <meyering@lucent.com>
99217
99218         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99219         if it's NULL (because we ran out of memory).  From Bruno Haible.
99220
99221 2000-03-05  Jim Meyering  <meyering@lucent.com>
99222
99223         * lib/localcharset.c ("path-concat.h"): Include.
99224         (get_charset_aliases): Use path_concat instead of ANSI string
99225         concatenation.
99226
99227         * lib/unicodeio.h (PARAMS): Define.
99228         Use it to guard prototype.
99229
99230 2000-03-04  Jim Meyering  <meyering@lucent.com>
99231
99232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99233         for lib/localcharset.c.
99234
99235 2000-03-04  Jim Meyering  <meyering@lucent.com>
99236
99237         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99238         installing into it.
99239         (uninstall-local): Uncomment this rule so `make distcheck' works
99240         once again.
99241
99242         * lib/unicodeio.c (<errno.h>): Include it.
99243         (errno): Declare if not defined.
99244
99245         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99246
99247         * lib/config.charset: New version, incorporating remarks from a linux
99248         i18n mailing list.  From Bruno Haible.
99249
99250 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99251
99252         * m4/codeset.m4: New file.
99253         * m4/iconv.m4: New file.
99254         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99255
99256 2000-03-03  Jim Meyering  <meyering@lucent.com>
99257
99258         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99259
99260 2000-03-02  Jim Meyering  <meyering@lucent.com>
99261
99262         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99263         the messages come out on separate lines.
99264
99265         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99266         rather than jm_CHECK_DECLARATIONS.
99267         * m4/decl.m4: Remove now-unused file.
99268
99269         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99270         geteuid.
99271
99272 2000-03-02  Jim Meyering  <meyering@lucent.com>
99273
99274         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99275
99276 2000-03-01  Jim Meyering  <meyering@lucent.com>
99277
99278         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99279         * lib/unicodeio.c: Likewise.
99280
99281 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99282
99283         * lib/config.charset: New file.
99284         * lib/localcharset.c: New file.
99285         * lib/unicodeio.h, lib/unicodeio.c: New files.
99286         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99287         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99288         (noinst_HEADERS): Add unicodeio.h.
99289         (all-local, install-exec-local, charset.alias): New targets.
99290
99291 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99292
99293         * lib/quotearg.c (ALERT_CHAR): New macro.
99294         (quotearg_buffer_restyled): Use it.
99295
99296 2000-02-27  Jim Meyering  <meyering@lucent.com>
99297
99298         * m4/check-decl.m4: Add getenv to the list.
99299
99300 2000-02-27  Jim Meyering  <meyering@lucent.com>
99301
99302         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99303         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99304
99305         * lib/backupfile.c: Guard inclusion of stdlib.h with
99306         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99307         Declare malloc if needed.
99308
99309         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99310         `#ifndef HAVE_DECL..'
99311         now that autoconf always defines the HAVE_DECL_ symbols.
99312         * lib/human.c: Likewise.
99313         * lib/same.c: Likewise.
99314         * lib/strtoumax.c: Likewise.
99315
99316         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99317         declaration check was not run.
99318         * lib/hash.c: Likewise.
99319         * lib/human.c: Likewise.
99320         * lib/same.c: Likewise.
99321         * lib/strtoumax.c: Likewise.
99322
99323         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99324         `.', then first look up the entire `.'-containing string as a login
99325         name.
99326
99327 2000-02-23  Jim Meyering  <meyering@lucent.com>
99328
99329         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99330         in place of my hack.
99331
99332 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99333
99334         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99335         (textint): New typedef.
99336         (parser_control): Member year changed from int to textint.
99337         All uses changed.
99338         (YYSTYPE): Removed; replaced by %union with int and textint members.
99339         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99340         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99341         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99342         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99343         (date, number, to_year): Use width of number in digits, not its value,
99344         to determine whether it's a 2-digit year, or a 2-digit time.
99345         (yylex): Store number of digits of numeric tokens.
99346         Reported by John Kendall.
99347
99348         (parser_control): Changed from struct parser_control to typedef (for
99349         consistency).  All uses changed.
99350
99351         (tID): Removed; not used.
99352         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99353
99354 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99355
99356         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99357         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99358
99359 2000-02-12  Jim Meyering  <meyering@lucent.com>
99360
99361         * lib/userspec.c (ISDIGIT): Define it.
99362         (isdigit): Remove definition.
99363         (is_number): Use ISDIGIT, not isdigit.
99364         <libintl.h>: Include.
99365         (_ and N_): Define.
99366         (parse_user_spec): Mark translatable strings.
99367
99368 2000-02-10  Jim Meyering  <meyering@lucent.com>
99369
99370         With these changes, nanosleep.[ch] are finally enough like the other
99371         lib/* replacement files to compile on a few more losing systems.
99372
99373         * lib/nanosleep.h: Don't include config.h.
99374         Remove prototype from declaration of nanosleep.
99375         (PARAMS): Remove now-unneeded definition.
99376         * lib/nanosleep.c: #undef nanosleep.
99377         (rpl_nanosleep): Rename from nanosleep.
99378
99379 2000-02-10  Jim Meyering  <meyering@lucent.com>
99380
99381         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99382         gnu_nanosleep to rpl_nanosleep.
99383
99384 2000-02-09  Jim Meyering  <meyering@lucent.com>
99385
99386         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99387         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99388
99389 2000-02-08  Akim Demaille  <akim@epita.fr>
99390
99391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99392         `[' and `]' and remove uses of `changequote'.
99393         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99394         (AC_SYS_LARGEFILE): Likewise.
99395         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99396         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99397         of changequote.
99398         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99399         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99400         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99401         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99402
99403 2000-02-05  Jim Meyering  <meyering@lucent.com>
99404
99405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99406         Remove explicit use of AC_HEADER_TIME.  It is required by
99407         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99408         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99409         in autoconf whereby the expansion of the latter ended up preceding
99410         the expansion of its prerequisite, AC_HEADER_TIME.
99411         Reported by Volker Borchert.
99412
99413 2000-02-03  Jim Meyering  <meyering@lucent.com>
99414
99415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99416
99417 2000-02-03  Jim Meyering  <meyering@lucent.com>
99418
99419         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99420         rather than with `#if HAVE_UTMPNAME'.
99421
99422 2000-02-02  Jim Meyering  <meyering@lucent.com>
99423
99424         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99425         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99426         Reported by Eli Zaretskii.
99427
99428 2000-02-01  Jim Meyering  <meyering@lucent.com>
99429
99430         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99431
99432 2000-01-31  Jim Meyering  <meyering@lucent.com>
99433
99434         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99435         functions.  Add the time.h and sys/time.h headers along with the
99436         AC_REQUIRE'ment of AC_HEADER_TIME.
99437
99438 2000-01-31  Jim Meyering  <meyering@lucent.com>
99439
99440         * lib/nanosleep.h (nanosleep): Guard declaration with
99441         `#if ! HAVE_DECL_NANOSLEEP'.
99442         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99443         the declaration in that vendor's sys/timers.h.
99444         Reported by Christian Krackowizer.
99445
99446         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99447         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99448         (ISPRINT): Likewise.
99449         Reported by Tom Tromey.
99450
99451 2000-01-30  Jim Meyering  <meyering@lucent.com>
99452
99453         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99454
99455         * m4/prereq.m4 (utmp_includes): Define.
99456         Check for ut_user and ut_name members in both struct utmpx
99457         and struct utmp.
99458
99459 2000-01-30  Jim Meyering  <meyering@lucent.com>
99460
99461         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99462         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99463         header files where only utmpx.ut_user is declared.
99464
99465         * lib/readutmp.h (UT_USER): Define.
99466
99467 2000-01-29  Jim Meyering  <meyering@lucent.com>
99468
99469         * m4/lib-check.m4: New file containing library-related checks from
99470         fileutils and sh-utils (textutils had none).
99471
99472 2000-01-28  Jim Meyering  <meyering@lucent.com>
99473
99474         * m4/perl.m4: Change format of warning message to look more like that
99475         from the missing script.  Suggestion from François Pinard.
99476
99477 2000-01-25  Jim Meyering  <meyering@lucent.com>
99478
99479         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99480         well as time.h in the compile check.
99481         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99482         Fix typo in cross-compiling case: s/yes/no/.
99483
99484 2000-01-23  Jim Meyering  <meyering@lucent.com>
99485
99486         * m4/jm-macros.m4: Move df-related tests here from
99487         fileutils/configure.in
99488
99489         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99490         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99491
99492         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99493         s/space/ac_fsusage_space/.
99494         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99495
99496         * m4/ftruncate.m4: New file (derived from part of
99497         fileutils/configure.in).
99498         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99499         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99500
99501         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99502         AC_SUBST these here, rather than just in sh-util/configure.in, so
99503         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99504         all the same.
99505         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99506         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99507         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99508         (AC_SUBST(POW_LIBM)): Likewise.
99509         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99510
99511 2000-01-23  Jim Meyering  <meyering@lucent.com>
99512
99513         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99514         obstack.c.
99515
99516 2000-01-22  Jim Meyering  <meyering@lucent.com>
99517
99518         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99519
99520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99521
99522         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99523         configure.in
99524         (AC_CHECK_HEADERS): Likewise for sh-utils.
99525         (AC_CHECK_HEADERS): Likewise for textutils.
99526         Merge the three lists of headers.
99527
99528         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99529         from fileutils' configure.in.
99530
99531         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99532         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99533         check-decl.m4.
99534
99535         * m4/check-decl.m4: Use #if rather than #ifdef.
99536         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99537         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99538         (_jm_DECL_HEADERS): Define new function.
99539         (jm_CHECK_DECLARATIONS): Require it.
99540
99541 2000-01-22  Jim Meyering  <meyering@lucent.com>
99542
99543         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99544         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99545         Required for some AIX systems.  Reported by Christian Krackowizer.
99546         [TESTING] (main): New function.
99547
99548         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99549         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99550         letters.
99551
99552         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99553         iswprint.
99554
99555         * lib/strverscmp.c (ISDIGIT): Define.
99556         (strverscmp): Use ISDIGIT, not isdigit.
99557
99558 2000-01-19  Jim Meyering  <meyering@lucent.com>
99559
99560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99561         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99562         defines `struct timespec' in <sys/time.h>
99563
99564         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99565         Thanks to Akim for explaining.
99566
99567 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99568
99569         * lib/nanosleep.c (nanosleep):
99570         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99571         POSIX.1 doesn't require SA_INTERRUPT and some systems
99572         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99573         it's been part of POSIX.1 since day 1 (in 1988).
99574
99575 2000-01-17  Jim Meyering  <meyering@lucent.com>
99576
99577         * lib/interlock: Remove unused file.  Reported by François Pinard.
99578
99579 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99580
99581         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99582         alert, backslash, formfeed, and vertical tab unnecessarily in
99583         shell quoting style.
99584
99585 2000-01-16  Jim Meyering  <meyering@lucent.com>
99586
99587         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99588         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99589         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99590         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99591
99592 2000-01-16  Jim Meyering  <meyering@lucent.com>
99593
99594         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99595         because the latter didn't work.
99596
99597 2000-01-15  Jim Meyering  <meyering@lucent.com>
99598
99599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99600         (AC_REPLACE_FUNCS): Add memcpy and memset.
99601         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99602         Add strpbrk.
99603         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99604
99605 2000-01-12  Jim Meyering  <meyering@lucent.com>
99606
99607         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99608         (jm_PREREQ): Use it.
99609         (jm_PREREQ_READUTMP): New macro.
99610         (jm_PREREQ): Use it.
99611
99612 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99613
99614         Quote multibyte characters correctly.
99615         * m4/c-bs-a.m4: New file.
99616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99617         (jm_PREREQ): Use it.
99618
99619 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99620
99621         * m4/uintmax_t.m4: Port to autoconf 2.13.
99622
99623 2000-01-08  Jim Meyering  <meyering@ascend.com>
99624
99625         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99626         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99627
99628 2000-01-04  Jim Meyering  <meyering@ascend.com>
99629
99630         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99631         jm_STRUCT_DIRENT_D_TYPE.
99632         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99633         jm_STRUCT_DIRENT_D_INO.
99634         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99635         jm_STRUCT_UTIMBUF.
99636         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99637         renamings.
99638         * m4/utime.m4: Likewise.
99639
99640         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99641         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99642
99643 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99644
99645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99646         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99647
99648 2000-01-02  Jim Meyering  <meyering@ascend.com>
99649
99650         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99651         remember if this is necessary.
99652
99653 1999-12-26  Jim Meyering  <meyering@ascend.com>
99654
99655         * m4/jm-macros.m4: Use it here.
99656         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99657
99658 1999-12-23  Jim Meyering  <meyering@ascend.com>
99659
99660         * m4/jm-macros.m4: Check for clock_gettime (moved from
99661         fileutils/configure.in)
99662         Check for gettimeofday.
99663
99664 1999-12-20  Jim Meyering  <meyering@ascend.com>
99665
99666         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99667         autoconf-2.14a-1999-12-20.
99668
99669 1999-12-19  Jim Meyering  <meyering@ascend.com>
99670
99671         * m4/lstat-slash.m4: New file.
99672         * m4/jm-macros.m4: Use the new macro:
99673         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99674
99675 1999-12-07  Jim Meyering  <meyering@ascend.com>
99676
99677         * m4/perl.m4: Require that File::Compare be available, too.
99678         Too many systems seem to lack it.
99679
99680         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99681         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99682
99683 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99684
99685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99686         problem with the QNX 4.25 shell, which doesn't propagate exit
99687         status of failed commands inside shell assignments.
99688
99689 1999-11-17  Jim Meyering  <meyering@ascend.com>
99690
99691         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99692
99693 1999-11-07  Jim Meyering  <meyering@ascend.com>
99694
99695         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99696
99697 1999-11-06  Jim Meyering  <meyering@ascend.com>
99698
99699         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99700         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99701
99702 1999-11-05  Jim Meyering  <meyering@ascend.com>
99703
99704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99705         configure.in of textutils, fileutils, and sh-utils into this one
99706         (shared between those packages) file.
99707         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99708         AC_STRUCT_ST_BLKSIZE.
99709
99710 1999-11-03  Jim Meyering  <meyering@ascend.com>
99711
99712         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99713         of AC_CHECK_TYPE checks includes unistd.h.
99714         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99715         Suggestion from Akim Demaille.
99716
99717 1999-10-30  Jim Meyering  <meyering@ascend.com>
99718
99719         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99720         m4-quoted string.
99721         * m4/ls-mntd-fs.m4: Likewise.
99722         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99723         * m4/jm-winsz1.m4: Likewise.
99724
99725         * m4/const.m4: Remove file, since the fix made it into the experimental
99726         version of autoconf.
99727         * m4/mktime.m4: Likewise.
99728
99729         * m4/check-type.m4: Remove file, now that the latest version of
99730         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99731
99732         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99733         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99734         AC_CHECK_TYPE.
99735
99736 1999-10-04  Jim Meyering  <meyering@ascend.com>
99737
99738         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99739
99740 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99741
99742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99743         2.95.1 bug with HP-UX 10.20.
99744
99745 1999-09-17  Jim Meyering  <meyering@ascend.com>
99746
99747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99748         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99749         due to missing strdup (against sh-utils-2.0).
99750
99751 1999-08-29  Jim Meyering  <meyering@ascend.com>
99752
99753         * m4/jm-macros.m4: Require jm_BISON.
99754         * m4/bison.m4: New file.
99755
99756 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99757
99758         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99759         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99760
99761 1999-08-05  Jim Meyering  <meyering@ascend.com>
99762
99763         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99764         to avoid conflicts with `conftest' on 8+3 filesystems.
99765         Suggestion from Eli Zaretskii.
99766
99767 1999-08-04  Jim Meyering  <meyering@ascend.com>
99768
99769         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99770         fileutils and sh-utils (textutils's getline test was inadequate).
99771         (AM_FUNC_GETLINE): Run this test.
99772         (AC_CHECK_FUNCS): Check for getdelim.
99773         Reported by Bob Proulx.
99774
99775 1999-08-02  Jim Meyering  <meyering@ascend.com>
99776
99777         * m4/jm-macros.m4: Add a comment.
99778
99779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99780
99781         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99782         <inttypes.h> defines strtoumax as a macro (and not as a
99783         function).
99784
99785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99786
99787         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99788         that we can shift, multiply and divide unsigned long long
99789         values; Ultrix cc can't do it.
99790
99791 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99792
99793         * m4/mktime.m4: New file, which is a preview of what should appear
99794         in the next public autoconf release.
99795
99796 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99797
99798         * m4/lfs.m4: Remove this file.
99799         * m4/largefile.m4: New file.  It contains the old contents of
99800         lfs.m4, except that all names with prefix AC_LFS have been
99801         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99802         compatible with future autoconf versions.  Also, some minor m4
99803         quoting problems have been fixed.
99804
99805 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99806
99807         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99808         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99809         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99810         and simplify the shell code.
99811
99812 1999-08-01  Jim Meyering  <meyering@ascend.com>
99813
99814         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99815         m4.
99816
99817 1999-07-20  Jim Meyering  <meyering@ascend.com>
99818
99819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99820
99821 1999-07-15  Jim Meyering  <meyering@ascend.com>
99822
99823         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99824
99825 1999-05-22  Jim Meyering  <meyering@ascend.com>
99826
99827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99828
99829 1999-05-20  Jim Meyering  <meyering@ascend.com>
99830
99831         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99832         Add a colon after each `then' in case $4 is empty.
99833
99834 1999-05-16  Jim Meyering  <meyering@ascend.com>
99835
99836         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99837
99838 1999-05-10  Jim Meyering  <meyering@ascend.com>
99839
99840         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99841
99842         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99843         AC_FUNC_MKTIME.
99844
99845 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99846
99847         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99848
99849 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99850
99851         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99852         not CPPFLAGS, so that linking works correctly in IRIX.
99853
99854 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99855
99856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99857
99858 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99859
99860         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99861         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99863         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99864         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99865
99866         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99867
99868 1999-04-20  Jim Meyering  <meyering@ascend.com>
99869
99870         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99871         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99872         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99873
99874 1999-04-18  Jim Meyering  <meyering@ascend.com>
99875
99876         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99877         * m4/jm-macros.m4: Use it.
99878
99879 1999-04-06  Jim Meyering  <meyering@ascend.com>
99880
99881         * m4/strftime.m4: Remove test for %f.
99882
99883 1999-03-29  Jim Meyering  <meyering@ascend.com>
99884
99885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99886         superset of the AC_TYPE_* checks in the textutils, fileutils,
99887         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99888         AC_TYPE_PID_T.
99889
99890 1999-03-28  Jim Meyering  <meyering@ascend.com>
99891
99892         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99893         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99894         replaced e.g., in the *.sh files of the sh-utils.
99895
99896 1999-03-20  Jim Meyering  <meyering@ascend.com>
99897
99898         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99899         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99900         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99901
99902 1999-03-19  Jim Meyering  <meyering@ascend.com>
99903
99904         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99905
99906 1999-03-12  Jim Meyering  <meyering@ascend.com>
99907
99908         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99909
99910 1999-03-07  Jim Meyering  <meyering@ascend.com>
99911
99912         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99913         declared.
99914
99915 1999-02-17  Jim Meyering  <meyering@ascend.com>
99916
99917         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99918         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99919
99920 1999-02-07  Jim Meyering  <meyering@ascend.com>
99921
99922         * m4/group-member.m4: New file -- extracted from sh-utils'
99923         configure.in.
99924
99925         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99926         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99927
99928 1999-02-06  Jim Meyering  <meyering@ascend.com>
99929
99930         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99931         * m4/fnmatch.m4: Likewise.
99932         * m4/getgroups.m4: Likewise.
99933         * m4/lstat.m4: Likewise.
99934         * m4/malloc.m4: Likewise.
99935         * m4/putenv.m4: Likewise.
99936         * m4/realloc.m4: Likewise.
99937         * m4/regex.m4: Likewise.
99938         * m4/stat.m4: Likewise.
99939         * m4/strftime.m4: Likewise.
99940         Suggestion from Alain Magloire.
99941
99942         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99943         * m4/fnmatch.m4: Likewise.
99944         * m4/getgroups.m4: Likewise.
99945         * m4/getline.m4: Likewise.
99946         * m4/lstat.m4: Likewise.
99947         * m4/malloc.m4: Likewise.
99948         * m4/memcmp.m4: Likewise.
99949         * m4/putenv.m4: Likewise.
99950         * m4/realloc.m4: Likewise.
99951         * m4/regex.m4: Likewise.
99952         * m4/stat.m4: Likewise.
99953         * m4/strftime.m4: Likewise.
99954         Suggestion from Alain Magloire.
99955
99956         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99957         an argument.
99958
99959         * m4/regex.m4: Add a run-time Test for proper operation of
99960         re_compile_pattern.
99961
99962 1999-01-31  Jim Meyering  <meyering@ascend.com>
99963
99964         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99965
99966 1999-01-30  Jim Meyering  <meyering@ascend.com>
99967
99968         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99969
99970         * m4/jm-mktime.m4: Make this a wrapper around the official
99971         AM_FUNC_MKTIME rather than my private copy, now that the official one
99972         is up to date.
99973         * m4/mktime.m4: Remove file.
99974
99975         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99976         * m4/uptime.m4: Likewise.
99977         * m4/uintmax_t.m4: Likewise.
99978
99979 1999-01-28  Jim Meyering  <meyering@ascend.com>
99980
99981         * m4/jm-macros.m4: Use jm_AFS.
99982         * m4/afs.m4: New file (from fileutils' configure.in).
99983
99984         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99985         * m4/chown.m4: Likewise.
99986         * m4/d-ino.m4: Likewise.
99987         * m4/d-type.m4: Likewise.
99988         * m4/fnmatch.m4: Likewise.
99989         * m4/getgroups.m4: Likewise.
99990         * m4/gettext.m4: Likewise.
99991         * m4/jm-mktime.m4: Likewise.
99992         * m4/jm-winsz2.m4: Likewise.
99993         * m4/lcmessage.m4: Likewise.
99994         * m4/ls-mntd-fs.m4: Likewise.
99995         * m4/malloc.m4: Likewise.
99996         * m4/memcmp.m4: Likewise.
99997         * m4/putenv.m4: Likewise.
99998         * m4/realloc.m4: Likewise.
99999         * m4/st_mtim.m4: Likewise.
100000         * m4/strftime.m4: Likewise.
100001
100002 1999-01-16  Jim Meyering  <meyering@ascend.com>
100003
100004         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100005         (ARGMATCH_DIE_DECL): Define.
100006
100007 1999-01-12  Jim Meyering  <meyering@ascend.com>
100008
100009         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100010         Reported by Lars Hecking.
100011
100012 1999-01-10  Jim Meyering  <meyering@ascend.com>
100013
100014         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100015         gross kludge.
100016         * m4/inttypes_h.m4: Likewise.
100017         * m4/lstat.m4: Likewise.
100018         * m4/malloc.m4: Likewise.
100019         * m4/readdir.m4: Likewise.
100020         * m4/realloc.m4: Likewise.
100021         * m4/st_dm_mode.m4: Likewise.
100022         * m4/stat.m4: Likewise.
100023         * m4/utimbuf.m4: Likewise.
100024         * m4/utimes.m4: Likewise.
100025
100026         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100027         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100028         comments in config.h.in are meaningful.
100029
100030         * m4/jm-macros.m4: Require autoconf-2.13 here.
100031
100032         * m4/regex.m4: By default, don't use the included regex.c on systems
100033         with glibc 2.  Suggestion from Uli Drepper.
100034
100035 1999-01-02  Jim Meyering  <meyering@ascend.com>
100036
100037         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100038
100039 1998-12-18  Jim Meyering  <meyering@ascend.com>
100040
100041         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100042         Based on a suggestion from Lars Hecking.
100043
100044 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100045
100046         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100047
100048 1998-11-16  Jim Meyering  <meyering@ascend.com>
100049
100050         * m4/lfs.m4: Double-quote the `uname...` expression.
100051
100052 1998-11-14  Jim Meyering  <meyering@ascend.com>
100053
100054         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100055         * m4/stat.m4: Likewise.
100056
100057 1998-11-03  Jim Meyering  <meyering@ascend.com>
100058
100059         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100060         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100061
100062 1998-10-18  Jim Meyering  <meyering@ascend.com>
100063
100064         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100065
100066 1998-10-17  Jim Meyering  <meyering@ascend.com>
100067
100068         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100069         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100070         calls for those previously hard-coded headers.  Instead, take a new
100071         parameter.
100072         (jm_CHECK_DECLARATIONS): Reflect interface change.
100073         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100074         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100075
100076         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100077
100078 1998-10-14  Jim Meyering  <meyering@ascend.com>
100079
100080         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100081         instead of "TZ=America/Vancouver".  From Paul Eggert.
100082
100083 1998-10-11  Jim Meyering  <meyering@ascend.com>
100084
100085         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100086         This adds a test for a recently added compatibility fix for mktime.c.
100087         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100088
100089 1998-09-27  Jim Meyering  <meyering@ascend.com>
100090
100091         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100092
100093         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100094         ../configure.in, including a change from Gordon Matzigkeit to allow
100095         cross-compiling for the Hurd.
100096
100097         * m4/glibc.m4: New file/macro to test for the GNU C Library
100098         versions 1 and 2.  From Gordon Matzigkeit.
100099         Indent.
100100
100101 1998-09-21  Jim Meyering  <meyering@ascend.com>
100102
100103         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100104
100105 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100106
100107         Port nanosecond-resolution times to UnixWare 2.1.2 and
100108         pedantic Solaris 2.6.
100109
100110         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100111         AC_STRUCT_ST_MTIM.
100112         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100113         Generate name of ns member, instead of just 1 or undef.
100114         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100115
100116 1998-08-15  Jim Meyering  <meyering@ascend.com>
100117
100118         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100119         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100120         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100121         instead of jm_TYPE_SSIZE_T.
100122
100123 1998-08-12  Jim Meyering  <meyering@ascend.com>
100124
100125         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100126
100127 1998-08-02  Jim Meyering  <meyering@ascend.com>
100128
100129         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100130         in acconfig.h manually.
100131
100132 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100133
100134         * m4/st_mtim.m4: New file.
100135
100136 1998-07-28  Jim Meyering  <meyering@ascend.com>
100137
100138         * m4/utimes.m4: Undef stat.
100139
100140 1998-07-25  Jim Meyering  <meyering@ascend.com>
100141
100142         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100143         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100144
100145 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100146
100147         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100148         uid and gid actually remain unchanged.
100149
100150 1998-07-07  Jim Meyering  <meyering@ascend.com>
100151
100152         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100153
100154 1998-07-04  Jim Meyering  <meyering@ascend.com>
100155
100156         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100157         to prove that this macro can be used in packages without regex.c.
100158
100159 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100160
100161         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100162         is to be used.
100163
100164 1998-07-03  Jim Meyering  <meyering@ascend.com>
100165
100166         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100167
100168         * m4/gettext.m4: New file -- from gettext-0.10.35.
100169         * m4/lcmessage.m4: Likewise.
100170         * m4/progtest.m4: Likewise.
100171
100172         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100173         * m4/jm-macros.m4: Require the new macro.
100174
100175 1998-06-29  Jim Meyering  <meyering@ascend.com>
100176
100177         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100178         for the definition of NGROUPS (used in a system header included
100179         by sys/mount.h).
100180
100181 1998-06-28  Jim Meyering  <meyering@ascend.com>
100182
100183         * m4/ls-mntd-fs.m4: New file.
100184         * m4/fstypename.m4: New file.
100185
100186         * m4/jm-macros.m4: Require the new macro.
100187         * m4/jm-glibc-io.m4: New file.
100188
100189 1998-05-19  Jim Meyering  <meyering@ascend.com>
100190
100191         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100192         * m4/lchown.m4: New file.
100193
100194         * m4/Makefile.am.in: New file.
100195         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100196
100197 1998-05-14  Jim Meyering  <meyering@ascend.com>
100198
100199         * m4/Makefile.am (EXTRA_DIST): Add them.
100200         * m4/jm-macros.m4: New file.
100201         * m4/utimbuf.m4: New file.
100202
100203 1998-05-12  Jim Meyering  <meyering@ascend.com>
100204
100205         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100206
100207 1998-05-11  Jim Meyering  <meyering@ascend.com>
100208
100209         * m4/isc-posix.m4: New file.
100210
100211 1998-05-10  Jim Meyering  <meyering@ascend.com>
100212
100213         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100214
100215 1998-05-09  Jim Meyering  <meyering@ascend.com>
100216
100217         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100218         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100219         with automake.
100220
100221         * m4/ssize_t.m4: New file.
100222         * m4/mktime.m4: Remove file -- the new automake has this now.
100223
100224 1998-04-26  Jim Meyering  <meyering@ascend.com>
100225
100226         * m4/assert.m4: New file.
100227         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100228
100229 1998-04-05  Jim Meyering  <meyering@ascend.com>
100230
100231         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100232         (jm_PREREQ): Use it here.
100233
100234 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100235
100236         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100237         in acconfig.h.
100238
100239 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100240
100241         * m4/prereq.m4: New file.
100242         * m4/error.m4: New file.
100243         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100244
100245 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100246
100247         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100248         cache-check for the same variable -- that defeated the purpose of
100249         the test; the test program was never run.  This was a problem only
100250         on systems with losing getline functions -- HP-UX 10.20 is one.
100251         Reported by Bjorn Helgaas.
100252
100253 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100254
100255         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100256
100257 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100258
100259         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100260
100261         * m4/const.m4: New file.  Use an initializer in this declaration
100262         typedef int charset[2]; const charset x;
100263         Reported by Bob Glickstein.
100264
100265 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100266
100267         * m4/chown.m4: Fix reversed types on -1 args to chown.
100268         From Kaveh Ghazi.
100269
100270 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100271
100272         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100273         Add lseek and memchr.
100274
100275         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100276         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100277         have a 20-character limit on names.
100278
100279 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100280
100281         * m4/inttypes_h.m4: New file.
100282         * m4/uintmax_t.m4: New file.
100283         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100284
100285
100286         -----
100287
100288         Local Variables:
100289         coding: utf-8
100290         End:
100291
100292         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100293
100294         Copying and distribution of this file, with or without
100295         modification, are permitted provided the copyright notice
100296         and this notice are preserved.